@factorialco/f0-react 10.13.0 → 10.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/{ChatPostComposerDialog-Dxf_Nbbb.js → ChatPostComposerDialog-CuX3o_oh.js} +3 -3
  2. package/dist/{CoachmarkProvider-ByfCE0-j.js → CoachmarkProvider-CIV3QGRl.js} +16122 -16128
  3. package/dist/{DocumentToolbar-UFkOiw8e.js → DocumentToolbar-B7Ogfhbf.js} +5 -5
  4. package/dist/{DocxViewer-BjmzL4sn.js → DocxViewer-Bi5IBCVR.js} +2 -2
  5. package/dist/{F0AiProcessingOverlay-B2kWuLdK.js → F0AiProcessingOverlay-CXtHszCl.js} +467 -466
  6. package/dist/{F0CanvasPanel-9PijExob.js → F0CanvasPanel-BwiuYNuv.js} +7447 -7408
  7. package/dist/F0DocumentViewer-COyn9iCi.js +3 -0
  8. package/dist/{F0DocumentViewer-hMDS3Kpg.js → F0DocumentViewer-_gFXfngB.js} +9 -9
  9. package/dist/{F0Map-CznQg3YF.js → F0Map-iRiXTNz0.js} +845 -607
  10. package/dist/{F0Select-By_QpX1S.js → F0Select-CFbVOJB3.js} +73 -73
  11. package/dist/{F0Box-CYL5_Zhb.js → F0Text-eOwHoc51.js} +104 -96
  12. package/dist/{F0VideoPlayer-BByW1cIV.js → F0VideoPlayer-BQ7uYpjS.js} +279 -279
  13. package/dist/F0VideoPlayer-DXYd-l_R.js +1 -0
  14. package/dist/{Map-DZ1yBUGL.js → Map-YThRZm6N.js} +53 -52
  15. package/dist/{PdfThumbnail-Dkwm6GDn.js → PdfThumbnail-C6ZtNGG7.js} +1 -1
  16. package/dist/{SheetViewer-DT6WypD8.js → SheetViewer-BRaB_JYe.js} +4 -4
  17. package/dist/{TextViewer-D8MLMNev.js → TextViewer-TgTOiUHO.js} +2 -2
  18. package/dist/ai.d.ts +3 -3
  19. package/dist/ai.js +4 -4
  20. package/dist/component-status.js +28 -28
  21. package/dist/{dist-CUsub1Mu.js → dist-Ck_UA8Lz.js} +1 -1
  22. package/dist/{dist-CSP_0yKt.js → dist-Cuwaibqg.js} +2 -1
  23. package/dist/experimental.d.ts +240 -115
  24. package/dist/experimental.js +6128 -4839
  25. package/dist/{exports-0B2luDkl.d.ts → exports-BaPJp_sC.d.ts} +3 -1
  26. package/dist/f0.d.ts +12 -7
  27. package/dist/f0.js +704 -704
  28. package/dist/{google-B7uAYsxU.js → google-D1V0swd7.js} +1 -1
  29. package/dist/{i18n-provider-defaults-BA2_-hRH.js → i18n-provider-defaults-Ch0JDGbK.js} +12 -3
  30. package/dist/{i18n-provider-defaults-m88KkXdP.d.ts → i18n-provider-defaults-D1lWzbYx.d.ts} +14 -1
  31. package/dist/i18n-provider-defaults.d.ts +1 -1
  32. package/dist/i18n-provider-defaults.js +1 -1
  33. package/dist/{index-Bdpf44A3.d.ts → index--CBjax6U.d.ts} +2 -2
  34. package/dist/{index-s5SdT3uE.d.ts → index-2J8R9Uml.d.ts} +3 -1
  35. package/dist/{maplibre-GffVTD0r.js → maplibre-BTZrvtMK.js} +2 -2
  36. package/dist/{pdfWorker-C3UVNtZV.js → pdfWorker-DvhMae6d.js} +2 -2
  37. package/dist/{popover-B7fqB9lu.js → popover-DNcAIP25.js} +20 -20
  38. package/dist/styles.css +1 -1
  39. package/dist/{tooltip-TOvfXq9F.js → tooltip-BX4dSfeL.js} +338 -247
  40. package/dist/{useData-CAl9SKtE.js → useData-zygrn6e-.js} +950 -949
  41. package/package.json +2 -2
  42. package/dist/F0DocumentViewer-DDaXV0U3.js +0 -3
  43. package/dist/F0VideoPlayer-DerqL5g5.js +0 -1
@@ -1,9 +1,9 @@
1
1
  import { o as e, r as t, t as n } from "./rolldown-runtime-BItFwnF5.js";
2
- import { $ as r, G as i, J as a, K as o, Mt as s, Ot as c, Q as l, Qt as u, T as d, Ut as f, Vt as p, Wt as m, X as h, Xt as g, Y as _, Z as v, Zn as y, _ as b, _t as x, a as S, an as C, ar as w, at as T, b as E, ct as D, d as O, et as k, ft as ee, g as te, gn as A, gt as j, hn as ne, ht as re, i as ie, in as M, ir as ae, it as oe, k as N, ln as se, lt as ce, mt as le, nt as ue, ot as de, p as fe, pt as pe, q as me, rn as he, rr as ge, rt as _e, st as ve, t as ye, tt as be, ut as xe, vt as Se, x as Ce, y as we, yt as Te } from "./popover-B7fqB9lu.js";
3
- import { I as P, L as F, i as Ee, n as De, r as Oe, t as ke, u as Ae } from "./tooltip-TOvfXq9F.js";
4
- import { D as je, J as Me, K as Ne, S as Pe, U as Fe, V as Ie, W as Le, a as Re, d as ze, f as Be, i as Ve, k as He, l as Ue, p as We, q as Ge, u as Ke, x as qe, y as Je, z as Ye } from "./useData-CAl9SKtE.js";
2
+ import { $ as r, G as i, J as a, K as o, Mt as s, Ot as c, Q as l, Qt as u, T as d, Ut as f, Vt as p, Wt as m, X as h, Xt as g, Y as _, Z as v, Zn as y, _ as b, _t as x, a as S, an as C, ar as w, at as T, b as E, ct as D, d as O, et as k, ft as ee, g as te, gn as A, gt as j, hn as ne, ht as re, i as ie, in as M, ir as ae, it as oe, k as N, ln as se, lt as ce, mt as le, nt as ue, ot as de, p as fe, pt as pe, q as me, rn as he, rr as ge, rt as _e, st as ve, t as ye, tt as be, ut as xe, vt as Se, x as Ce, y as we, yt as Te } from "./popover-DNcAIP25.js";
3
+ import { L as P, R as F, d as Ee, i as De, n as Oe, r as ke, t as Ae } from "./tooltip-BX4dSfeL.js";
4
+ import { D as je, J as Me, K as Ne, L as Pe, R as Fe, T as Ie, U as Le, V as Re, W as ze, _ as Be, a as Ve, b as He, d as Ue, i as We, l as Ge, q as Ke, u as qe, y as Je, z as Ye } from "./useData-zygrn6e-.js";
5
5
  import { t as Xe } from "./Check-DAp9gCRh.js";
6
- import { t as Ze } from "./dist-CSP_0yKt.js";
6
+ import { t as Ze } from "./dist-Cuwaibqg.js";
7
7
  import * as I from "react";
8
8
  import Qe, { Component as $e, Fragment as et, cloneElement as tt, createContext as nt, forwardRef as L, useCallback as R, useContext as rt, useEffect as z, useId as it, useImperativeHandle as at, useLayoutEffect as ot, useMemo as B, useReducer as st, useRef as V, useState as H } from "react";
9
9
  import { Fragment as ct, jsx as U, jsxs as W } from "react/jsx-runtime";
@@ -1195,7 +1195,7 @@ ba(ya, { path: "/" }), (/* @__PURE__ */ n(((e, t) => {
1195
1195
  }
1196
1196
  }), n ? t.exports = a : window.screenfull = a) : n ? t.exports = { isEnabled: !1 } : window.screenfull = { isEnabled: !1 };
1197
1197
  })();
1198
- })))(), Ae();
1198
+ })))(), Ee();
1199
1199
  var xa;
1200
1200
  process.env.NODE_ENV === "development" || process.env.NODE_ENV;
1201
1201
  var Sa = typeof window < "u", Ca = typeof navigator < "u";
@@ -44659,7 +44659,7 @@ function AS(e, t) {
44659
44659
  }
44660
44660
  function jS({ items: e, activeKey: t }) {
44661
44661
  let n = e.some((e) => e.key === t);
44662
- return /* @__PURE__ */ U(ke, {
44662
+ return /* @__PURE__ */ U(Ae, {
44663
44663
  className: "flex flex-col gap-0.5 text-sm",
44664
44664
  children: e.map((e) => /* @__PURE__ */ W("div", {
44665
44665
  className: P("flex items-center gap-1", n && e.key !== t && "opacity-50"),
@@ -48518,7 +48518,7 @@ var GC = w(WC), KC = L(({ avatar: e, text: t, deactivated: n }, r) => (c(t, { di
48518
48518
  ref: r,
48519
48519
  deactivated: n,
48520
48520
  className: "border-[1px] border-solid border-f1-border-secondary py-[1px] pl-[1px]",
48521
- left: /* @__PURE__ */ U(qe, {
48521
+ left: /* @__PURE__ */ U(Je, {
48522
48522
  avatar: e,
48523
48523
  size: "xs"
48524
48524
  }),
@@ -48683,7 +48683,7 @@ var uw = lw, dw = ne({
48683
48683
  } },
48684
48684
  defaultVariants: { variant: "default" }
48685
48685
  }), fw = ge("Chip", ({ deactivated: e, label: t, variant: n, onClick: r, onClose: i, avatar: a, icon: o }) => {
48686
- let s = it(), c = /* @__PURE__ */ W(ct, { children: [a ? /* @__PURE__ */ U(qe, {
48686
+ let s = it(), c = /* @__PURE__ */ W(ct, { children: [a ? /* @__PURE__ */ U(Je, {
48687
48687
  avatar: a,
48688
48688
  size: "xs"
48689
48689
  }) : null, /* @__PURE__ */ W("div", {
@@ -48952,7 +48952,7 @@ var Aw = (e, t) => {
48952
48952
  let n = e.type ?? "person";
48953
48953
  return /* @__PURE__ */ U("div", {
48954
48954
  className: P("pointer-events-auto w-full", t.visualization === "table" && Cw.avatarList),
48955
- children: /* @__PURE__ */ U(ze, {
48955
+ children: /* @__PURE__ */ U(Ge, {
48956
48956
  type: n,
48957
48957
  avatars: e.avatarList,
48958
48958
  size: "xs",
@@ -48991,9 +48991,9 @@ function Yw({ point: e, scaleMax: t, formatLabel: n, formatValue: r, formatToolt
48991
48991
  formattedLabel: f,
48992
48992
  formattedValue: p
48993
48993
  }) ?? `${f} – ${p}`, h = d ? `${m}. ${d}` : m, g = Math.max(c ?? 0, 0), _ = o + g, v = s != null && _ < s, y = s != null && o > s, b = t > 0 ? Math.round(o / t * Pw) : 0, x = l ? Pw : t > 0 ? Math.round(g / t * Pw) : 0, S = Math.min(x, Pw - b), C = s != null && t > 0 && !v ? Math.round(Math.min(o, s) / t * Pw) : b, w = y ? Math.round(Pw * ((o - (s ?? 0)) / t)) : 0;
48994
- return /* @__PURE__ */ W(Oe, {
48994
+ return /* @__PURE__ */ W(ke, {
48995
48995
  disableHoverablePopup: !0,
48996
- children: [/* @__PURE__ */ U(Ee, {
48996
+ children: [/* @__PURE__ */ U(De, {
48997
48997
  delay: 100,
48998
48998
  render: /* @__PURE__ */ U("div", {
48999
48999
  className: "flex-shrink-0 cursor-default rounded-sm transition-opacity hover:opacity-90",
@@ -49059,7 +49059,7 @@ function Yw({ point: e, scaleMax: t, formatLabel: n, formatValue: r, formatToolt
49059
49059
  borderRadius: b > 0 ? "0 0 2px 2px" : 2
49060
49060
  }
49061
49061
  }) : null] })
49062
- }), /* @__PURE__ */ W(ke, {
49062
+ }), /* @__PURE__ */ W(Ae, {
49063
49063
  positionerClassName: "pointer-events-none z-[100]",
49064
49064
  className: "max-w-xs",
49065
49065
  side: "top",
@@ -49126,7 +49126,7 @@ function nT({ meta: e }) {
49126
49126
  }
49127
49127
  function rT({ dataPoints: e, total: t, hideTooltip: n, meta: r }) {
49128
49128
  let [i, a] = H(void 0), o = kS(e, t, (e, t) => e.color ? Qw(e.color) : TS(t)), s = AS(o, t);
49129
- return /* @__PURE__ */ W(Oe, { children: [/* @__PURE__ */ U(Ee, {
49129
+ return /* @__PURE__ */ W(ke, { children: [/* @__PURE__ */ U(De, {
49130
49130
  delay: 350,
49131
49131
  render: /* @__PURE__ */ U("div", {
49132
49132
  className: P(eT(), "pointer-events-auto", F(), r.visualization === "table" && "-my-2.5 box-content py-2.5"),
@@ -49179,7 +49179,7 @@ var iT = (e, t) => {
49179
49179
  let { lines: n, full: r, wraps: i } = kw(e);
49180
49180
  return /* @__PURE__ */ W("div", {
49181
49181
  className: P("flex min-w-0 flex-1 gap-2", i ? "items-start" : "items-center", t.visualization === "table" && (i ? Cw.multiline : Cw.avatar)),
49182
- children: [/* @__PURE__ */ U(qe, {
49182
+ children: [/* @__PURE__ */ U(Je, {
49183
49183
  avatar: {
49184
49184
  type: "company",
49185
49185
  name: e.name,
@@ -49300,7 +49300,7 @@ var iT = (e, t) => {
49300
49300
  return /* @__PURE__ */ W("div", {
49301
49301
  "data-cell-type": "country",
49302
49302
  className: "flex items-center gap-2",
49303
- children: [/* @__PURE__ */ U(je, {
49303
+ children: [/* @__PURE__ */ U(Ie, {
49304
49304
  size: "xs",
49305
49305
  flag: e.code,
49306
49306
  "aria-label": n
@@ -49341,7 +49341,7 @@ var iT = (e, t) => {
49341
49341
  className: "text-f1-text-default text-md flex items-center gap-2 font-medium",
49342
49342
  "data-cell-type": "file",
49343
49343
  children: [
49344
- /* @__PURE__ */ U(He, { file: e }),
49344
+ /* @__PURE__ */ U(je, { file: e }),
49345
49345
  " ",
49346
49346
  /* @__PURE__ */ U("span", { children: e.name })
49347
49347
  ]
@@ -49470,7 +49470,7 @@ var jT = (e, t) => {
49470
49470
  let n = `${e.firstName.toString()} ${e.lastName.toString()}`;
49471
49471
  return /* @__PURE__ */ W("div", {
49472
49472
  className: P("flex min-w-0 flex-1 items-center gap-2", t.visualization === "table" && Cw.avatar),
49473
- children: [/* @__PURE__ */ U(qe, {
49473
+ children: [/* @__PURE__ */ U(Je, {
49474
49474
  avatar: {
49475
49475
  type: "person",
49476
49476
  firstName: e.firstName.toString(),
@@ -49570,7 +49570,7 @@ function ZT(e, t, n) {
49570
49570
  }
49571
49571
  function QT({ resolved: e, rounded: t, hideTooltip: n }) {
49572
49572
  let { bar: r, isEmpty: i, pct: a, tooltip: o } = e;
49573
- return /* @__PURE__ */ W(Oe, { children: [/* @__PURE__ */ U(Ee, {
49573
+ return /* @__PURE__ */ W(ke, { children: [/* @__PURE__ */ U(De, {
49574
49574
  render: /* @__PURE__ */ U("div", {
49575
49575
  role: "img",
49576
49576
  "aria-label": o,
@@ -49581,7 +49581,7 @@ function QT({ resolved: e, rounded: t, hideTooltip: n }) {
49581
49581
  pct: a,
49582
49582
  color: r.color ?? VT
49583
49583
  }) : null
49584
- }), n ? null : /* @__PURE__ */ U(ke, {
49584
+ }), n ? null : /* @__PURE__ */ U(Ae, {
49585
49585
  className: "text-sm",
49586
49586
  children: o
49587
49587
  })] });
@@ -49618,7 +49618,7 @@ var nE = L(({ bars: e, maxLabels: t = BT, hideTooltip: n, formatValue: r = Strin
49618
49618
  return /* @__PURE__ */ U("div", {
49619
49619
  ref: o,
49620
49620
  className: "flex w-full flex-col gap-1",
49621
- children: /* @__PURE__ */ W(De, {
49621
+ children: /* @__PURE__ */ W(Oe, {
49622
49622
  delay: 700,
49623
49623
  timeout: 300,
49624
49624
  children: [/* @__PURE__ */ U("div", {
@@ -49868,7 +49868,7 @@ var BE = ({ count: e, list: t }) => {
49868
49868
  }) }), /* @__PURE__ */ U(zE, {
49869
49869
  side: "top",
49870
49870
  className: "w-fit bg-f1-background text-f1-foreground shadow-md ring-1 ring-f1-border-secondary",
49871
- children: /* @__PURE__ */ U(We, {
49871
+ children: /* @__PURE__ */ U(Ue, {
49872
49872
  className: "flex max-h-[220px] w-fit flex-col",
49873
49873
  children: t.map((e, t) => /* @__PURE__ */ U("div", {
49874
49874
  className: "flex w-max max-w-72 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
@@ -49888,7 +49888,7 @@ var VE = ({ type: e, tags: t, max: n = 4, remainingCount: r }) => {
49888
49888
  type: e,
49889
49889
  ...t
49890
49890
  }));
49891
- return /* @__PURE__ */ U(Je, {
49891
+ return /* @__PURE__ */ U(Be, {
49892
49892
  items: i,
49893
49893
  max: n,
49894
49894
  min: 1,
@@ -49935,7 +49935,7 @@ var HE = w(VE), UE = {
49935
49935
  let { lines: n, full: r, wraps: i } = kw(e);
49936
49936
  return /* @__PURE__ */ W("div", {
49937
49937
  className: P("flex min-w-0 flex-1 gap-2", i ? "items-start" : "items-center", t.visualization === "table" && (i ? Cw.multiline : Cw.avatar)),
49938
- children: [/* @__PURE__ */ U(qe, {
49938
+ children: [/* @__PURE__ */ U(Je, {
49939
49939
  avatar: {
49940
49940
  type: "team",
49941
49941
  name: e.name,
@@ -50107,7 +50107,7 @@ var iD = QE, aD = eD, oD = I.forwardRef(({ className: e, indeterminate: t, disab
50107
50107
  children: /* @__PURE__ */ U(y, { children: /* @__PURE__ */ U(aD, {
50108
50108
  className: "absolute inset-0 z-[2] flex items-center justify-center text-current transition-none",
50109
50109
  children: t ? /* @__PURE__ */ U(M, {
50110
- icon: Le,
50110
+ icon: ze,
50111
50111
  size: "sm"
50112
50112
  }) : /* @__PURE__ */ U(M, {
50113
50113
  icon: Xe,
@@ -50117,13 +50117,13 @@ var iD = QE, aD = eD, oD = I.forwardRef(({ className: e, indeterminate: t, disab
50117
50117
  }), d ? /* @__PURE__ */ W("label", {
50118
50118
  htmlFor: l,
50119
50119
  className: P("flex flex-col pl-2 hover:cursor-pointer", a && "pt-0.5", n && "cursor-not-allowed opacity-50 hover:cursor-not-allowed"),
50120
- children: [o.title ? /* @__PURE__ */ U(Ue, {
50120
+ children: [o.title ? /* @__PURE__ */ U(Pe, {
50121
50121
  as: "span",
50122
50122
  variant: "label",
50123
50123
  content: o.title,
50124
50124
  required: i,
50125
50125
  className: "flex items-center gap-0.5"
50126
- }) : null, a ? /* @__PURE__ */ U(Ue, {
50126
+ }) : null, a ? /* @__PURE__ */ U(Pe, {
50127
50127
  as: "span",
50128
50128
  id: u,
50129
50129
  variant: "description",
@@ -53613,23 +53613,23 @@ var uM = ({ text: e }) => /* @__PURE__ */ U("div", {
53613
53613
  }
53614
53614
  Te(t), _e.onChange?.(t);
53615
53615
  }, De = () => {
53616
- k || Ee(S), _e.onClear?.(), ye && Le.current?.focus();
53616
+ k || Ee(S), _e.onClear?.(), ye && Ie.current?.focus();
53617
53617
  }, Oe = (e) => {
53618
53618
  t || ne?.(e);
53619
53619
  }, ke = () => {
53620
53620
  t || j?.();
53621
53621
  }, Ae = () => {
53622
53622
  t || te?.();
53623
- }, [je, Me] = H(!1), Fe = (e) => {
53623
+ }, [je, Me] = H(!1), Pe = (e) => {
53624
53624
  e.animationName === "autofill" && Me(!0);
53625
- }, Ie = V(null), Le = V(null), Re = x(_e.inputRef, Le);
53626
- z(() => (je && !Ie.current && (Ie.current = setInterval(() => {
53627
- let e = Le.current;
53628
- e && (e.matches(":-webkit-autofill") || e.matches(":autofill") || (Me(!1), Ie.current &&= (clearInterval(Ie.current), null)));
53625
+ }, Fe = V(null), Ie = V(null), Le = x(_e.inputRef, Ie);
53626
+ z(() => (je && !Fe.current && (Fe.current = setInterval(() => {
53627
+ let e = Ie.current;
53628
+ e && (e.matches(":-webkit-autofill") || e.matches(":autofill") || (Me(!1), Fe.current &&= (clearInterval(Fe.current), null)));
53629
53629
  }, 100)), () => {
53630
- Ie.current &&= (clearInterval(Ie.current), null);
53631
- }), [je, Re]);
53632
- let ze = E || ae || de, Be = ee ?? !b(we), Ve = O != null && yM(we) && !je;
53630
+ Fe.current &&= (clearInterval(Fe.current), null);
53631
+ }), [je, Le]);
53632
+ let Re = E || ae || de, ze = ee ?? !b(we), Be = O != null && yM(we) && !je;
53633
53633
  return ye && !me ? /* @__PURE__ */ W("div", {
53634
53634
  className: P("flex h-full w-full flex-col gap-2", o),
53635
53635
  ref: ve,
@@ -53704,12 +53704,12 @@ var uM = ({ text: e }) => /* @__PURE__ */ U("div", {
53704
53704
  onClick: Oe,
53705
53705
  icon: f,
53706
53706
  color: "default"
53707
- }) : null, oe ? /* @__PURE__ */ U(Pe, {
53707
+ }) : null, oe ? /* @__PURE__ */ U(He, {
53708
53708
  avatar: oe,
53709
53709
  size: "xs"
53710
53710
  }) : null]
53711
53711
  }) : null,
53712
- Ve ? /* @__PURE__ */ U("div", {
53712
+ Be ? /* @__PURE__ */ U("div", {
53713
53713
  "data-slot": "value",
53714
53714
  className: P("pointer-events-none flex min-w-0 shrink items-center pr-0", "pl-3", (f || oe) && "pl-8", (f || oe) && be === "md" && "pl-9", fM({ size: be })),
53715
53715
  children: O
@@ -53721,11 +53721,11 @@ var uM = ({ text: e }) => /* @__PURE__ */ U("div", {
53721
53721
  onChange: Ee,
53722
53722
  onBlur: _e.onBlur,
53723
53723
  onFocus: _e.onFocus,
53724
- onAnimationStart: Fe,
53724
+ onAnimationStart: Pe,
53725
53725
  disabled: Ce,
53726
53726
  readOnly: n,
53727
53727
  role: ie,
53728
- ref: Re,
53728
+ ref: Le,
53729
53729
  "aria-controls": N,
53730
53730
  "aria-expanded": ie === "combobox" ? se : void 0,
53731
53731
  "aria-activedescendant": ce,
@@ -53737,12 +53737,12 @@ var uM = ({ text: e }) => /* @__PURE__ */ U("div", {
53737
53737
  "aria-busy": h,
53738
53738
  "aria-disabled": Ce,
53739
53739
  name: re,
53740
- className: P("h-full w-full min-w-0 px-3 text-f1-foreground", "[&::-webkit-search-cancel-button]:hidden", (f || oe) && "pl-8", (f || oe) && be === "md" && "pl-9", Ve && "pl-0", t && "cursor-not-allowed", e.props.className, fM({ size: be }))
53740
+ className: P("h-full w-full min-w-0 px-3 text-f1-foreground", "[&::-webkit-search-cancel-button]:hidden", (f || oe) && "pl-8", (f || oe) && be === "md" && "pl-9", Be && "pl-0", t && "cursor-not-allowed", e.props.className, fM({ size: be }))
53741
53741
  })
53742
53742
  }),
53743
53743
  /* @__PURE__ */ U("div", {
53744
53744
  "data-slot": "placeholder",
53745
- className: P("pointer-events-none absolute inset-x-0 top-[1px] z-10 flex flex-1 justify-start overflow-hidden px-3 text-f1-foreground-secondary transition-opacity", !p && "bottom-0", p && "items-start", (f || oe) && "pl-8", (f || oe) && be === "md" && "pl-9", fM({ size: be }), _ && !D && !Ve && b(we) && !je ? "opacity-100" : "opacity-0"),
53745
+ className: P("pointer-events-none absolute inset-x-0 top-[1px] z-10 flex flex-1 justify-start overflow-hidden px-3 text-f1-foreground-secondary transition-opacity", !p && "bottom-0", p && "items-start", (f || oe) && "pl-8", (f || oe) && be === "md" && "pl-9", fM({ size: be }), _ && !D && !Be && b(we) && !je ? "opacity-100" : "opacity-0"),
53746
53746
  onClick: Ae,
53747
53747
  "aria-hidden": "true",
53748
53748
  title: _,
@@ -53751,12 +53751,12 @@ var uM = ({ text: e }) => /* @__PURE__ */ U("div", {
53751
53751
  children: _
53752
53752
  })
53753
53753
  }),
53754
- v || ze || h ? /* @__PURE__ */ W("div", {
53754
+ v || Re || h ? /* @__PURE__ */ W("div", {
53755
53755
  className: P("flex h-fit min-w-6 items-center gap-1.5 self-center pr-[3px]", be === "md" && "pr-[7px]", "relative"),
53756
53756
  children: [
53757
53757
  v && !Ce ? /* @__PURE__ */ U(y, {
53758
- initial: Be,
53759
- children: Be ? /* @__PURE__ */ U(A.button, {
53758
+ initial: ze,
53759
+ children: ze ? /* @__PURE__ */ U(A.button, {
53760
53760
  initial: { opacity: 0 },
53761
53761
  animate: { opacity: 1 },
53762
53762
  exit: { opacity: 0 },
@@ -53776,7 +53776,7 @@ var uM = ({ text: e }) => /* @__PURE__ */ U("div", {
53776
53776
  })
53777
53777
  }) : null
53778
53778
  }) : null,
53779
- ze ? /* @__PURE__ */ W("div", {
53779
+ Re ? /* @__PURE__ */ W("div", {
53780
53780
  className: "flex min-h-6 min-w-6 items-center justify-center self-center",
53781
53781
  children: [
53782
53782
  E,
@@ -54312,7 +54312,7 @@ function zM({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
54312
54312
  for (let t of e) {
54313
54313
  let e = h?.(t);
54314
54314
  if (e === void 0) continue;
54315
- let n = t[Re];
54315
+ let n = t[Ve];
54316
54316
  n && x.get(n)?.checked && Ee(e, !0, !0);
54317
54317
  }
54318
54318
  }, [
@@ -54410,7 +54410,7 @@ var BM = ({ open: e, className: t, onClick: n, disabled: r, size: i = "xs", clos
54410
54410
  className: P("flex h-3 w-3 shrink-0 items-center justify-center", r && "cursor-not-allowed opacity-50", t),
54411
54411
  onClick: n,
54412
54412
  children: /* @__PURE__ */ U(M, {
54413
- icon: Ge,
54413
+ icon: Ke,
54414
54414
  size: i,
54415
54415
  role: "button"
54416
54416
  })
@@ -54487,7 +54487,7 @@ var BM = ({ open: e, className: t, onClick: n, disabled: r, size: i = "xs", clos
54487
54487
  n === void 0 ? null : /* @__PURE__ */ U(VM, {
54488
54488
  resolve: n,
54489
54489
  fallback: /* @__PURE__ */ U(se, { className: "size-5 rounded-full" }),
54490
- children: (e) => e ? /* @__PURE__ */ U(Pe, {
54490
+ children: (e) => e ? /* @__PURE__ */ U(He, {
54491
54491
  avatar: e,
54492
54492
  size: "xs"
54493
54493
  }) : null
@@ -56265,7 +56265,7 @@ var QP = 8, $P = [
56265
56265
  children: /* @__PURE__ */ U("div", {
56266
56266
  role: "option",
56267
56267
  "aria-disabled": "true",
56268
- children: /* @__PURE__ */ U(Ue, {
56268
+ children: /* @__PURE__ */ U(Pe, {
56269
56269
  variant: "description",
56270
56270
  align: "center",
56271
56271
  content: a || "-"
@@ -56342,7 +56342,7 @@ var QP = 8, $P = [
56342
56342
  "aria-busy": "true",
56343
56343
  children: /* @__PURE__ */ U(ow, {})
56344
56344
  }) : null,
56345
- /* @__PURE__ */ U(We, {
56345
+ /* @__PURE__ */ U(Ue, {
56346
56346
  viewportRef: O,
56347
56347
  className: P("flex h-full flex-col", te ? "justify-center" : "pb-1", me && "select-none opacity-10 transition-opacity"),
56348
56348
  onScrollBottom: l,
@@ -56640,7 +56640,7 @@ var vF = L(function({ selection: e, multiple: t, totalSelectedCount: n, allSelec
56640
56640
  children: [
56641
56641
  c.avatar ? /* @__PURE__ */ U("div", {
56642
56642
  className: "flex shrink-0 items-center",
56643
- children: /* @__PURE__ */ U(qe, {
56643
+ children: /* @__PURE__ */ U(Je, {
56644
56644
  avatar: c.avatar,
56645
56645
  size: "xs"
56646
56646
  })
@@ -56665,7 +56665,7 @@ function bF({ item: e, onDeselect: t }) {
56665
56665
  children: [/* @__PURE__ */ W("div", {
56666
56666
  className: "flex min-w-0 flex-1 items-center gap-1.5",
56667
56667
  children: [
56668
- e.avatar ? /* @__PURE__ */ U(qe, {
56668
+ e.avatar ? /* @__PURE__ */ U(Je, {
56669
56669
  avatar: e.avatar,
56670
56670
  size: "xs"
56671
56671
  }) : null,
@@ -56715,7 +56715,7 @@ function xF({ items: e, onDeselect: t, allSelected: n, onLoadMore: r, isLoadingM
56715
56715
  })
56716
56716
  }) : /* @__PURE__ */ U("div", {
56717
56717
  className: "flex min-h-0 flex-1 flex-col overflow-hidden",
56718
- children: /* @__PURE__ */ U(We, {
56718
+ children: /* @__PURE__ */ U(Ue, {
56719
56719
  className: "flex h-full flex-col",
56720
56720
  onScrollBottom: () => {
56721
56721
  s && !i && r?.();
@@ -56777,7 +56777,7 @@ var CF = /^\+\d{1,4}$/, wF = /* @__PURE__ */ new Set(), TF = (e) => e.type === "
56777
56777
  children: [
56778
56778
  e.avatar ? /* @__PURE__ */ U("div", {
56779
56779
  className: "flex shrink-0 items-center",
56780
- children: /* @__PURE__ */ U(qe, {
56780
+ children: /* @__PURE__ */ U(Je, {
56781
56781
  avatar: e.avatar,
56782
56782
  size: "xs"
56783
56783
  })
@@ -57347,7 +57347,7 @@ var QF = (e, t) => !e || "from" in e && !e.from && t.schema.options.mode === "si
57347
57347
  className: P(e.className, "animate-spin")
57348
57348
  }));
57349
57349
  tI.displayName = "LoadingIcon";
57350
- var nI = L(({ value: e, threshold: t = 0, onChange: n, onBlur: r, onFocus: i, size: a = "sm", debounceTime: o = 0, clearable: s = !1, tabIndex: c = -1, icon: l = Ie, role: u = "searchbox", onKeyDown: d, "aria-controls": f, "aria-expanded": p, "aria-activedescendant": m, "aria-autocomplete": h, ...g }, _) => {
57350
+ var nI = L(({ value: e, threshold: t = 0, onChange: n, onBlur: r, onFocus: i, size: a = "sm", debounceTime: o = 0, clearable: s = !1, tabIndex: c = -1, icon: l = Re, role: u = "searchbox", onKeyDown: d, "aria-controls": f, "aria-expanded": p, "aria-activedescendant": m, "aria-autocomplete": h, ...g }, _) => {
57351
57351
  let v = V(null);
57352
57352
  at(_, () => v.current), z(() => {
57353
57353
  let e = v.current;
@@ -57470,7 +57470,7 @@ function hI({ schema: e, search: t }) {
57470
57470
  enabled: !0,
57471
57471
  sync: !0
57472
57472
  }
57473
- } : { dataAdapter: { fetchData: async () => ({ records: [] }) } }, [u]), { data: f, isInitialLoading: p, loadMore: m, isLoadingMore: h, paginationInfo: g } = Ve({
57473
+ } : { dataAdapter: { fetchData: async () => ({ records: [] }) } }, [u]), { data: f, isInitialLoading: p, loadMore: m, isLoadingMore: h, paginationInfo: g } = We({
57474
57474
  ...d,
57475
57475
  currentSearch: t
57476
57476
  }, {}, [u]), _ = R(async (t = !1) => {
@@ -57540,7 +57540,7 @@ var bI = ({ label: e, expanded: t, hasSelectedDescendant: n, onToggle: r }) => {
57540
57540
  variant: "ghost",
57541
57541
  size: "sm",
57542
57542
  onClick: r,
57543
- icon: t ? Ge : vt,
57543
+ icon: t ? Ke : vt,
57544
57544
  label: e,
57545
57545
  "aria-label": a,
57546
57546
  "aria-expanded": t,
@@ -57765,7 +57765,7 @@ function TI({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
57765
57765
  isCompactMode: r,
57766
57766
  onCheckedChange: te
57767
57767
  }),
57768
- /* @__PURE__ */ W(We, {
57768
+ /* @__PURE__ */ W(Ue, {
57769
57769
  className: P("[&>div]:pb-2", r && "px-1", r ? "max-h-[360px]" : "flex-1 min-h-0"),
57770
57770
  onScrollBottom: A,
57771
57771
  scrollMargin: 50,
@@ -58578,7 +58578,7 @@ function nL({ selectedFilterKey: e, definition: t, tempFilters: n, onFilterChang
58578
58578
  //#endregion
58579
58579
  //#region src/blocks/OneFilterPicker/components/FilterList.tsx
58580
58580
  function rL({ definition: e, tempFilters: t, selectedFilterKey: n, onFilterSelect: r, isCompactMode: i, onClickApplyFilters: a, quickFilterLabel: o, quickFilterIcon: c, quickFilterSelected: l, onQuickFilterSelect: u }) {
58581
- let d = he(), f = it(), p = s(), m = i ? Be : We, h = B(() => {
58581
+ let d = he(), f = it(), p = s(), m = i ? qe : Ue, h = B(() => {
58582
58582
  let t = /* @__PURE__ */ new Map();
58583
58583
  for (let [n, r] of Object.entries(e)) if (r.type === "in" && "options" in r) {
58584
58584
  let e = yI(r);
@@ -59126,7 +59126,7 @@ var fL = ge("Preset", ({ label: e, number: t, onClick: n, selected: r, descripti
59126
59126
  size: "sm",
59127
59127
  hideLabel: !0,
59128
59128
  label: s.actions.editPreset,
59129
- icon: Fe,
59129
+ icon: Le,
59130
59130
  onClick: ((e) => (t) => {
59131
59131
  t.preventDefault(), t.stopPropagation(), e();
59132
59132
  })(a)
@@ -59135,10 +59135,10 @@ var fL = ge("Preset", ({ label: e, number: t, onClick: n, selected: r, descripti
59135
59135
  }) : null
59136
59136
  ]
59137
59137
  });
59138
- return i ? /* @__PURE__ */ W(Oe, { children: [/* @__PURE__ */ U(Ee, {
59138
+ return i ? /* @__PURE__ */ W(ke, { children: [/* @__PURE__ */ U(De, {
59139
59139
  delay: 400,
59140
59140
  render: f
59141
- }), /* @__PURE__ */ U(ke, {
59141
+ }), /* @__PURE__ */ U(Ae, {
59142
59142
  className: "max-w-xs",
59143
59143
  children: /* @__PURE__ */ U("p", {
59144
59144
  className: "font-normal",
@@ -59247,14 +59247,14 @@ var fL = ge("Preset", ({ label: e, number: t, onClick: n, selected: r, descripti
59247
59247
  }, t);
59248
59248
  if (r) {
59249
59249
  let e = Array.from({ length: mL }, (e, t) => t);
59250
- return /* @__PURE__ */ U(Je, {
59250
+ return /* @__PURE__ */ U(Be, {
59251
59251
  items: e,
59252
59252
  renderListItem: b,
59253
59253
  renderDropdownItem: x,
59254
59254
  className: "min-w-0 flex-1"
59255
59255
  });
59256
59256
  }
59257
- return _.length === 0 ? null : /* @__PURE__ */ U(Je, {
59257
+ return _.length === 0 ? null : /* @__PURE__ */ U(Be, {
59258
59258
  items: _,
59259
59259
  renderListItem: v,
59260
59260
  renderDropdownItem: y,
@@ -59451,7 +59451,7 @@ var CL = SL, wL = ({ filters: e, currentFilters: t, onFiltersChange: n }) => {
59451
59451
  let o = (e) => {
59452
59452
  n(Object.fromEntries(Object.entries(t).filter(([t]) => t !== e)));
59453
59453
  };
59454
- return /* @__PURE__ */ U(We, { children: /* @__PURE__ */ U("div", {
59454
+ return /* @__PURE__ */ U(Ue, { children: /* @__PURE__ */ U("div", {
59455
59455
  className: "flex gap-1 border-0 p-2",
59456
59456
  children: /* @__PURE__ */ U(y, {
59457
59457
  mode: "popLayout",
@@ -59661,7 +59661,7 @@ var TL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
59661
59661
  info: "border-f1-border-info-bold"
59662
59662
  } },
59663
59663
  defaultVariants: { status: "default" }
59664
- }), NL = P("group inline-flex h-8 w-fit max-w-full items-center gap-1 rounded border-0 bg-transparent pl-3 pr-2 shadow-none outline-none transition-colors enabled:cursor-pointer enabled:hover:bg-f1-background-hover data-[state=open]:bg-f1-background-hover disabled:cursor-not-allowed disabled:bg-f1-background-tertiary disabled:text-f1-foreground-disabled disabled:data-[state=open]:bg-f1-background-tertiary disabled:[&_*]:text-f1-foreground-disabled", Ke({ variant: "label" })), PL = L(function({ label: e, placeholder: t, selection: n, hasValue: r }, i) {
59664
+ }), NL = P("group inline-flex h-8 w-fit max-w-full items-center gap-1 rounded border-0 bg-transparent pl-3 pr-2 shadow-none outline-none transition-colors enabled:cursor-pointer enabled:hover:bg-f1-background-hover data-[state=open]:bg-f1-background-hover disabled:cursor-not-allowed disabled:bg-f1-background-tertiary disabled:text-f1-foreground-disabled disabled:data-[state=open]:bg-f1-background-tertiary disabled:[&_*]:text-f1-foreground-disabled", Fe({ variant: "label" })), PL = L(function({ label: e, placeholder: t, selection: n, hasValue: r }, i) {
59665
59665
  return /* @__PURE__ */ W(rF, {
59666
59666
  ref: i,
59667
59667
  "aria-label": e,
@@ -59679,7 +59679,7 @@ var TL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
59679
59679
  className: "flex size-4 shrink-0 items-center justify-center text-f1-icon",
59680
59680
  "aria-hidden": "true",
59681
59681
  children: /* @__PURE__ */ U(M, {
59682
- icon: Ge,
59682
+ icon: Ke,
59683
59683
  size: "sm"
59684
59684
  })
59685
59685
  })]
@@ -59703,7 +59703,7 @@ var FL = L(function({ variant: e = "field", placeholder: t, onChange: n, withApp
59703
59703
  ze(Array.from(new Set(e.map(String))));
59704
59704
  }
59705
59705
  }, [o]);
59706
- let He = B(() => {
59706
+ let Ve = B(() => {
59707
59707
  if (O && !["infinite-scroll", "no-pagination"].includes(OM(O.dataAdapter))) throw Error("Select component only supports `infinite-scroll` or `no-pagination` pagination types");
59708
59708
  return {
59709
59709
  ...O,
@@ -59716,15 +59716,15 @@ var FL = L(function({ variant: e = "field", placeholder: t, onChange: n, withApp
59716
59716
  s,
59717
59717
  O,
59718
59718
  "searchFn" in _e && _e.searchFn
59719
- ]), Ue = e === "field" && !ce && !l, We = !!g, Ge = AM({
59720
- ...He,
59719
+ ]), He = e === "field" && !ce && !l, Ue = !!g, Ge = AM({
59720
+ ...Ve,
59721
59721
  selectable: (e) => {
59722
59722
  if (!e) return;
59723
59723
  let t = Ke(e);
59724
59724
  return t.type === "separator" ? void 0 : String(t.value);
59725
59725
  },
59726
- search: We ? {
59727
- enabled: We,
59726
+ search: Ue ? {
59727
+ enabled: Ue,
59728
59728
  sync: !O
59729
59729
  } : void 0
59730
59730
  }, [s]), Ke = R((e) => {
@@ -59733,7 +59733,7 @@ var FL = L(function({ variant: e = "field", placeholder: t, onChange: n, withApp
59733
59733
  return c(e);
59734
59734
  }
59735
59735
  return e;
59736
- }, [c, O]), { data: qe, isInitialLoading: Je, loadMore: Ye, isLoadingMore: Xe, isLoading: Ze, paginationInfo: I } = Ve(Ge), { currentSearch: Qe, setCurrentSearch: $e } = Ge, et = We && Ue && !Ge.filters, tt = We && !et, nt = V(/* @__PURE__ */ new Map()), L = B(() => {
59736
+ }, [c, O]), { data: qe, isInitialLoading: Je, loadMore: Ye, isLoadingMore: Xe, isLoading: Ze, paginationInfo: I } = We(Ge), { currentSearch: Qe, setCurrentSearch: $e } = Ge, et = Ue && He && !Ge.filters, tt = Ue && !et, nt = V(/* @__PURE__ */ new Map()), L = B(() => {
59737
59737
  let e = [];
59738
59738
  for (let t of qe.records) {
59739
59739
  let n = Ke(t);