@factorialco/f0-react 16.13.0 → 16.14.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 (40) hide show
  1. package/dist/{ArchiveThumbnail-kVvnmcNP.js → ArchiveThumbnail-Im-F4iBB.js} +1 -1
  2. package/dist/{ArchiveViewer-LoDtTFPw.js → ArchiveViewer-DSlBGIWL.js} +2 -2
  3. package/dist/{ChatPostComposerDialog-CWuAwaxT.js → ChatPostComposerDialog-BUIrVPYB.js} +2 -2
  4. package/dist/{CoachmarkProvider-CXX2hils.js → CoachmarkProvider-TVPzpGcL.js} +4 -4
  5. package/dist/{CodeThumbnail-BPzGrqCR.js → CodeThumbnail-BzOAwnmv.js} +1 -1
  6. package/dist/{CodeViewer-BJHe81-h.js → CodeViewer-2-rYX9r-.js} +4 -4
  7. package/dist/{DocumentToolbar-B4woad-i.js → DocumentToolbar-BvTTYoE9.js} +2 -2
  8. package/dist/{DocxViewer-DCM40Mo0.js → DocxViewer-D6Gnx4Nv.js} +1 -1
  9. package/dist/{F0AiProcessingOverlay-y2w5s8R8.js → F0AiProcessingOverlay-BGJYN4-Y.js} +2 -2
  10. package/dist/{F0Alert-9-f6emAt.js → F0Alert-BsVVBxpJ.js} +1 -1
  11. package/dist/F0AudioPlayer-BBBT6xNg.js +2 -0
  12. package/dist/{F0CanvasPanel-B2kfi_Sm.js → F0CanvasPanel-BvVr_-L-.js} +6 -6
  13. package/dist/{F0DocumentViewer-Bm9HGUKj.js → F0DocumentViewer-CcxOcWPu.js} +1 -1
  14. package/dist/{F0DocumentViewer-Bf3k6qWH.js → F0DocumentViewer-DYB9Bsue.js} +2 -2
  15. package/dist/{F0Map-BHqjk1cE.js → F0Map-CACIkmZH.js} +3 -3
  16. package/dist/{F0Select-C0ksBfvC.js → F0Select-CTtudO6a.js} +376 -365
  17. package/dist/F0VideoPlayer-4BH24LDU.js +1 -0
  18. package/dist/{F0VideoPlayer-5cbAf-1r.js → F0VideoPlayer-CDx6HjtC.js} +1 -1
  19. package/dist/{HtmlViewer-BDxnRGDb.js → HtmlViewer-DmV7nLoP.js} +4 -4
  20. package/dist/{Map-C57R5gqo.js → Map-Yy8alpbY.js} +3 -3
  21. package/dist/{PdfThumbnail-BpT_494N.js → PdfThumbnail-Cn3Bjm2o.js} +1 -1
  22. package/dist/{PdfViewer-0xGXvrPx.js → PdfViewer-BlJilT0q.js} +3 -3
  23. package/dist/{SheetViewer-BQmd8Rls.js → SheetViewer-D9BALsKs.js} +2 -2
  24. package/dist/{TextViewer-Dxt47cYf.js → TextViewer-RMttR3nS.js} +1 -1
  25. package/dist/ai.d.ts +2 -2
  26. package/dist/ai.js +2 -2
  27. package/dist/component-status.js +2 -2
  28. package/dist/experimental.d.ts +2 -2
  29. package/dist/experimental.js +5 -5
  30. package/dist/{exports-BUUgzFDC.d.ts → exports-DqLVNMDb.d.ts} +1 -1
  31. package/dist/f0.d.ts +3 -3
  32. package/dist/f0.js +7 -7
  33. package/dist/{highlight-IM63cmnl.js → highlight-HLbV8eK1.js} +1 -1
  34. package/dist/{index-CuvcGvuW.d.ts → index-UqIoYwH1.d.ts} +12 -2
  35. package/dist/{maplibre-BzEyrX8G.js → maplibre-Dg-6a8kB.js} +1 -1
  36. package/dist/{pdfWorker-DMK6xCNQ.js → pdfWorker-1QNx8xpe.js} +1 -1
  37. package/dist/{types-B3TzvLpB.d.ts → types-Cz4ZsFAM.d.ts} +1 -1
  38. package/package.json +1 -1
  39. package/dist/F0AudioPlayer-CRA_PbpO.js +0 -2
  40. package/dist/F0VideoPlayer-VlXUzX6c.js +0 -1
@@ -56280,36 +56280,40 @@ var _F = 8, vF = [
56280
56280
  j,
56281
56281
  e,
56282
56282
  n
56283
- ]), ee = S(), [te, ne] = V(ee), [re, ie] = V(!1), { value: ae, open: oe, as: se } = dt(lN), N = se === "list", P = z(() => new Set((Array.isArray(ae) ? ae : [ae]).filter((e) => e !== void 0)), [ae]), ce = z(() => e?.findIndex((e) => e.value !== void 0 && P.has(e.value)) ?? -1, [e, P]), le = gF({
56283
+ ]), ee = S(), [te, ne] = V(ee), [re, ie] = V(!1), { value: ae, open: oe, as: se } = dt(lN), N = se === "list", P = z(() => new Set((Array.isArray(ae) ? ae : [ae]).filter((e) => e !== void 0)), [ae]), ce = z(() => e?.findIndex((e) => e.value !== void 0 && P.has(e.value)) ?? -1, [e, P]), le = N || ee || re, ue = gF({
56284
56284
  count: e?.length || 0,
56285
56285
  getScrollElement: () => k.current,
56286
56286
  estimateSize: (t) => e?.[t]?.height || 0,
56287
56287
  getItemKey: (t) => e?.[t]?.key ?? t,
56288
56288
  overscan: 5,
56289
56289
  measureElement: (e, t) => Math.round(t?.borderBoxSize?.[0]?.blockSize ?? (e instanceof HTMLElement ? e.offsetHeight : e.getBoundingClientRect().height)),
56290
- enabled: N || ee || re
56290
+ enabled: le
56291
56291
  });
56292
56292
  R(() => {
56293
56293
  oe || (ie(!1), ne(!0));
56294
56294
  }, [oe]), R(() => {
56295
- N || le.measure();
56295
+ N || ue.measure();
56296
56296
  }, [
56297
- le,
56297
+ ue,
56298
56298
  re,
56299
56299
  N
56300
56300
  ]);
56301
- let ue = B(!1);
56302
- R(() => {
56303
- !oe && !N && (ue.current = !1);
56304
- }, [oe, N]), R(() => {
56305
- ue.current || ce < 0 || (oe || N) && (ue.current = !0, le.scrollToIndex(ce));
56301
+ let de = B(!1), [fe, pe] = ht((e) => e + 1, 0);
56302
+ R(function() {
56303
+ !oe && !N && (de.current = !1);
56304
+ }, [oe, N]), R(function() {
56305
+ le && (oe || N) && (!de.current && ce >= 0 ? (de.current = !0, setTimeout(() => {
56306
+ !ue.scrollElement && k.current ? (de.current = !1, pe()) : (ue.scrollToIndex(ce, { align: "center" }), ne(!0));
56307
+ })) : ne(!0));
56306
56308
  }, [
56307
56309
  N,
56308
56310
  oe,
56309
56311
  ce,
56310
- le
56312
+ ue,
56313
+ le,
56314
+ fe
56311
56315
  ]);
56312
- let de = le.getVirtualItems(), fe = (e) => {
56316
+ let me = ue.getVirtualItems(), he = (e) => {
56313
56317
  if (w.onKeyDown?.(e), e.defaultPrevented || e.key !== "Tab") return;
56314
56318
  let t = e.target, n = e.currentTarget, r = t.closest("[role=\"option\"]");
56315
56319
  r && r.getAttribute("aria-disabled") !== "true" && (A.current = r);
@@ -56319,7 +56323,7 @@ var _F = 8, vF = [
56319
56323
  ...o ? [o] : []
56320
56324
  ])).sort((e, t) => e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1), c = r ?? t, l = s.indexOf(c), u = l >= 0 ? s[l + (e.shiftKey ? -1 : 1)] : void 0;
56321
56325
  u && (e.preventDefault(), u.focus());
56322
- }, pe = M ? /* @__PURE__ */ H("div", {
56326
+ }, ge = M ? /* @__PURE__ */ H("div", {
56323
56327
  className: c("flex h-full w-full flex-col items-center justify-center", s ? c("px-2 pt-8", o ? "pb-1" : "pb-8") : "p-2"),
56324
56328
  children: /* @__PURE__ */ H("div", {
56325
56329
  role: "option",
@@ -56333,7 +56337,7 @@ var _F = 8, vF = [
56333
56337
  }) : j ? /* @__PURE__ */ H("div", {
56334
56338
  className: c(!N && "transition-opacity delay-100", N || te ? "" : "opacity-0", !N && m ? "min-h-[412px]" : ""),
56335
56339
  style: {
56336
- height: le.getTotalSize() + _F,
56340
+ height: ue.getTotalSize() + _F,
56337
56341
  width: "100%",
56338
56342
  position: "relative",
56339
56343
  overflow: "visible",
@@ -56345,20 +56349,20 @@ var _F = 8, vF = [
56345
56349
  top: 0,
56346
56350
  left: 0,
56347
56351
  width: "100%",
56348
- transform: `translateY(${de[0]?.start ?? 0}px)`
56352
+ transform: `translateY(${me[0]?.start ?? 0}px)`
56349
56353
  },
56350
- children: de.map((t, n) => /* @__PURE__ */ H("div", {
56354
+ children: me.map((t, n) => /* @__PURE__ */ H("div", {
56351
56355
  role: "presentation",
56352
56356
  "data-index": t.index,
56353
- ref: le.measureElement,
56357
+ ref: ue.measureElement,
56354
56358
  style: { display: "flow-root" },
56355
- children: d && n === de.length - 1 ? /* @__PURE__ */ H("div", {
56359
+ children: d && n === me.length - 1 ? /* @__PURE__ */ H("div", {
56356
56360
  className: "flex w-full items-center justify-center py-4",
56357
56361
  children: /* @__PURE__ */ H(cw, { size: "small" })
56358
56362
  }) : e[t.index].item
56359
56363
  }, t.key))
56360
56364
  })
56361
- }) : /* @__PURE__ */ H("div", { children: n }), me = f && !d, he = /* @__PURE__ */ H(LP, {
56365
+ }) : /* @__PURE__ */ H("div", { children: n }), _e = f && !d, ve = /* @__PURE__ */ H(LP, {
56362
56366
  ref: T,
56363
56367
  asChild: _,
56364
56368
  disableScrollLock: N || !!O,
@@ -56370,14 +56374,12 @@ var _F = 8, vF = [
56370
56374
  collisionPadding: 16,
56371
56375
  avoidCollisions: !0,
56372
56376
  ...w,
56373
- onKeyDown: fe,
56377
+ onKeyDown: he,
56374
56378
  onCloseAutoFocus: (e) => {
56375
56379
  w.onCloseAutoFocus && typeof w.onCloseAutoFocus == "function" && w.onCloseAutoFocus(e), e.preventDefault();
56376
56380
  },
56377
- onAnimationStart: () => {
56378
- ie(!0), setTimeout(() => {
56379
- le.scrollToIndex(ce, { align: "center" }), ne(!0);
56380
- });
56381
+ onAnimationStart: (e) => {
56382
+ !re && e.currentTarget.contains(e.target) && ie(!0);
56381
56383
  },
56382
56384
  children: /* @__PURE__ */ U("div", {
56383
56385
  className: "flex min-h-0 flex-1 flex-col",
@@ -56396,7 +56398,7 @@ var _F = 8, vF = [
56396
56398
  className: c("relative flex flex-1 min-h-0 min-w-0 flex-col overflow-hidden", N && "flex flex-col overflow-hidden flex-1 min-h-0"),
56397
56399
  children: [
56398
56400
  !N || w.right ? w.top : null,
56399
- g && me ? /* @__PURE__ */ H("div", {
56401
+ g && _e ? /* @__PURE__ */ H("div", {
56400
56402
  className: "absolute inset-0 flex cursor-progress items-center justify-center",
56401
56403
  "aria-live": "polite",
56402
56404
  "aria-busy": "true",
@@ -56404,7 +56406,7 @@ var _F = 8, vF = [
56404
56406
  }) : null,
56405
56407
  /* @__PURE__ */ H(et, {
56406
56408
  viewportRef: k,
56407
- className: c("flex h-full flex-col", M ? "justify-center" : "pb-1", me && "select-none opacity-10 transition-opacity"),
56409
+ className: c("flex h-full flex-col", M ? "justify-center" : "pb-1", _e && "select-none opacity-10 transition-opacity"),
56408
56410
  onScrollBottom: l,
56409
56411
  onScrollTop: u,
56410
56412
  scrollMargin: p,
@@ -56415,7 +56417,7 @@ var _F = 8, vF = [
56415
56417
  "aria-describedby": C,
56416
56418
  children: /* @__PURE__ */ H("div", {
56417
56419
  className: "min-h-0 p-1",
56418
- children: pe
56420
+ children: ge
56419
56421
  })
56420
56422
  }) : /* @__PURE__ */ H(RP, {
56421
56423
  asChild: !0,
@@ -56425,7 +56427,7 @@ var _F = 8, vF = [
56425
56427
  children: /* @__PURE__ */ H(zP, {
56426
56428
  asChild: !0,
56427
56429
  className: c("p-1", r === "popper" && "h-[var(--radix-select-trigger-height)] w-full", M && "flex h-full"),
56428
- children: pe
56430
+ children: ge
56429
56431
  })
56430
56432
  })
56431
56433
  })
@@ -56442,7 +56444,7 @@ var _F = 8, vF = [
56442
56444
  ]
56443
56445
  })
56444
56446
  });
56445
- return N ? he : /* @__PURE__ */ H(IP, {
56447
+ return N ? ve : /* @__PURE__ */ H(IP, {
56446
56448
  container: O,
56447
56449
  children: /* @__PURE__ */ U(gt, { children: [oe && !O ? /* @__PURE__ */ H("div", {
56448
56450
  "data-f0-select-overlay": "",
@@ -56450,7 +56452,7 @@ var _F = 8, vF = [
56450
56452
  onClick: (e) => {
56451
56453
  e.preventDefault(), e.stopPropagation();
56452
56454
  }
56453
- }) : null, he] })
56455
+ }) : null, ve] })
56454
56456
  });
56455
56457
  });
56456
56458
  bF.displayName = LP.displayName;
@@ -56609,17 +56611,26 @@ function AF(e) {
56609
56611
  containerRef: t
56610
56612
  };
56611
56613
  }
56612
- var jF = (e) => e.selectedLabel ?? e.label;
56614
+ var jF = (e) => e.selectedLabel ?? e.label, MF = 200, NF = (e, t, n) => {
56615
+ let r = [], i = 0;
56616
+ for (let t of e) {
56617
+ let e = i + (r.length > 0 ? 2 : 0) + t.length;
56618
+ if (r.length > 0 && e > MF) break;
56619
+ r.push(t), i = e;
56620
+ }
56621
+ let a = Math.max(t, e.length) - r.length, o = r.join(", ");
56622
+ return a > 0 ? `${o} ${n(a)}` : o;
56623
+ };
56613
56624
  //#endregion
56614
56625
  //#region src/blocks/F0Select/components/SelectedItems.tsx
56615
- function MF(e, t) {
56626
+ function PF(e, t) {
56616
56627
  R(() => {
56617
56628
  t !== null && e?.(t);
56618
56629
  }, [e, t]);
56619
56630
  }
56620
- function NF({ count: e, noTooltip: t, onSpelledOutChange: n }) {
56631
+ function FF({ count: e, noTooltip: t, onSpelledOutChange: n }) {
56621
56632
  let r = a();
56622
- return MF(n, !1), /* @__PURE__ */ H("div", {
56633
+ return PF(n, !1), /* @__PURE__ */ H("div", {
56623
56634
  className: "flex w-full items-center gap-1 text-left",
56624
56635
  children: /* @__PURE__ */ H(T, {
56625
56636
  className: "min-w-0 flex-1 text-f1-foreground",
@@ -56628,9 +56639,9 @@ function NF({ count: e, noTooltip: t, onSpelledOutChange: n }) {
56628
56639
  })
56629
56640
  });
56630
56641
  }
56631
- function PF({ selection: e, totalSelectedCount: t, noTooltip: n, onSpelledOutChange: r }) {
56642
+ function IF({ selection: e, totalSelectedCount: t, noTooltip: n, onSpelledOutChange: r }) {
56632
56643
  let i = e.map((e) => e.selectedLabel ?? e.label), { allFit: a, containerRef: o } = AF(i);
56633
- return MF(r, a), a ? /* @__PURE__ */ H("div", {
56644
+ return PF(r, a), a ? /* @__PURE__ */ H("div", {
56634
56645
  ref: o,
56635
56646
  className: "flex w-full items-center gap-1 text-left",
56636
56647
  children: /* @__PURE__ */ H("span", {
@@ -56640,41 +56651,41 @@ function PF({ selection: e, totalSelectedCount: t, noTooltip: n, onSpelledOutCha
56640
56651
  }) : /* @__PURE__ */ H("div", {
56641
56652
  ref: o,
56642
56653
  className: "flex w-full items-center text-left",
56643
- children: /* @__PURE__ */ H(NF, {
56654
+ children: /* @__PURE__ */ H(FF, {
56644
56655
  count: t,
56645
56656
  noTooltip: n
56646
56657
  })
56647
56658
  });
56648
56659
  }
56649
- function FF({ selection: e, totalSelectedCount: t, allSelected: n, noTooltip: r, onSpelledOutChange: i }) {
56660
+ function LF({ selection: e, totalSelectedCount: t, allSelected: n, noTooltip: r, onSpelledOutChange: i }) {
56650
56661
  let o = a(), s = t ?? e.length;
56651
- return MF(i, s === 0 && e.length === 0 || n !== !0 && null), s === 0 && e.length === 0 ? null : n === !0 ? /* @__PURE__ */ H("div", {
56662
+ return PF(i, s === 0 && e.length === 0 || n !== !0 && null), s === 0 && e.length === 0 ? null : n === !0 ? /* @__PURE__ */ H("div", {
56652
56663
  className: "flex w-full items-center gap-1 text-left",
56653
56664
  children: /* @__PURE__ */ H(T, {
56654
56665
  className: "min-w-0 flex-1 text-f1-foreground",
56655
56666
  noTooltip: r,
56656
56667
  children: `${o.status.selected.all} (${s})`
56657
56668
  })
56658
- }) : e.length === 0 && s > 0 ? /* @__PURE__ */ H(NF, {
56669
+ }) : e.length === 0 && s > 0 ? /* @__PURE__ */ H(FF, {
56659
56670
  count: s,
56660
56671
  noTooltip: r,
56661
56672
  onSpelledOutChange: i
56662
- }) : /* @__PURE__ */ H(PF, {
56673
+ }) : /* @__PURE__ */ H(IF, {
56663
56674
  selection: e,
56664
56675
  totalSelectedCount: s,
56665
56676
  noTooltip: r,
56666
56677
  onSpelledOutChange: i
56667
56678
  });
56668
56679
  }
56669
- function IF(e) {
56680
+ function RF(e) {
56670
56681
  return !!e.tag && typeof e.tag != "string" && e.tag.type === "status";
56671
56682
  }
56672
- function LF(e, t, n) {
56673
- return e ? !IF(e) && !n : !(t && t > 0);
56683
+ function zF(e, t, n) {
56684
+ return e ? !RF(e) && !n : !(t && t > 0);
56674
56685
  }
56675
- var RF = I(function({ selection: e, multiple: t, totalSelectedCount: n, allSelected: r, hideItemIcon: i, noTooltip: a, onSpelledOutChange: o }, s) {
56686
+ var BF = I(function({ selection: e, multiple: t, totalSelectedCount: n, allSelected: r, hideItemIcon: i, noTooltip: a, onSpelledOutChange: o }, s) {
56676
56687
  let c = e[0], l = c ? c.selectedLabel ?? c.label : "", u = B(null), d = DF(u, l);
56677
- return MF(o, t ? null : LF(c, n, d)), t ? /* @__PURE__ */ H(FF, {
56688
+ return PF(o, t ? null : zF(c, n, d)), t ? /* @__PURE__ */ H(LF, {
56678
56689
  selection: e,
56679
56690
  totalSelectedCount: n,
56680
56691
  allSelected: r,
@@ -56689,7 +56700,7 @@ var RF = I(function({ selection: e, multiple: t, totalSelectedCount: n, allSelec
56689
56700
  noTooltip: a,
56690
56701
  children: "..."
56691
56702
  })
56692
- }) : c ? IF(c) ? /* @__PURE__ */ H("div", {
56703
+ }) : c ? RF(c) ? /* @__PURE__ */ H("div", {
56693
56704
  className: "flex min-w-0 flex-1 justify-start",
56694
56705
  ref: s,
56695
56706
  children: /* @__PURE__ */ H(Gs, {
@@ -56720,8 +56731,8 @@ var RF = I(function({ selection: e, multiple: t, totalSelectedCount: n, allSelec
56720
56731
  })
56721
56732
  ]
56722
56733
  }) : null;
56723
- }), zF = 10;
56724
- function BF({ item: e, onDeselect: t }) {
56734
+ }), VF = 10;
56735
+ function HF({ item: e, onDeselect: t }) {
56725
56736
  return /* @__PURE__ */ U("div", {
56726
56737
  className: "flex w-fit max-w-full min-w-0 items-center justify-between gap-1.5 rounded-md border border-solid border-f1-border-secondary p-1",
56727
56738
  children: [/* @__PURE__ */ U("div", {
@@ -56757,7 +56768,7 @@ function BF({ item: e, onDeselect: t }) {
56757
56768
  })]
56758
56769
  });
56759
56770
  }
56760
- function VF({ items: e, onDeselect: t, allSelected: n, onLoadMore: r, isLoadingMore: i }) {
56771
+ function UF({ items: e, onDeselect: t, allSelected: n, onLoadMore: r, isLoadingMore: i }) {
56761
56772
  let o = a(), s = B(null), c = (n === !0 || n === "indeterminate") && !!r, l = e.length === 0;
56762
56773
  return R(() => {
56763
56774
  let e = s.current;
@@ -56782,10 +56793,10 @@ function VF({ items: e, onDeselect: t, allSelected: n, onLoadMore: r, isLoadingM
56782
56793
  onScrollBottom: () => {
56783
56794
  c && !i && r?.();
56784
56795
  },
56785
- scrollMargin: zF,
56796
+ scrollMargin: VF,
56786
56797
  children: /* @__PURE__ */ U("div", {
56787
56798
  className: "flex flex-col gap-1 p-2",
56788
- children: [e.map((e) => /* @__PURE__ */ H(BF, {
56799
+ children: [e.map((e) => /* @__PURE__ */ H(HF, {
56789
56800
  item: e,
56790
56801
  onDeselect: t
56791
56802
  }, String(e.value))), i ? /* @__PURE__ */ H("div", {
@@ -56799,7 +56810,7 @@ function VF({ items: e, onDeselect: t, allSelected: n, onLoadMore: r, isLoadingM
56799
56810
  }
56800
56811
  //#endregion
56801
56812
  //#region src/elements/primitives/Select/components/SelectItem.tsx
56802
- var HF = F.forwardRef(({ className: e, children: t, ...n }, r) => {
56813
+ var WF = F.forwardRef(({ className: e, children: t, ...n }, r) => {
56803
56814
  let i = uN(), { multiple: a } = i, o = z(() => Array.isArray(i.value) ? i.value.includes(n.value) : i.value === n.value, [i.value, n.value]);
56804
56815
  return /* @__PURE__ */ U(BP, {
56805
56816
  ref: r,
@@ -56820,12 +56831,12 @@ var HF = F.forwardRef(({ className: e, children: t, ...n }, r) => {
56820
56831
  })]
56821
56832
  });
56822
56833
  });
56823
- HF.displayName = BP.displayName;
56834
+ WF.displayName = BP.displayName;
56824
56835
  //#endregion
56825
56836
  //#region src/blocks/F0Select/components/SelectItem.tsx
56826
- var UF = /^\+\d{1,4}$/, WF = /* @__PURE__ */ new Set(), GF = (e) => e.type === "dialCode" ? (process.env.NODE_ENV !== "production" && !UF.test(e.dialCode) && !WF.has(e.dialCode) && (WF.add(e.dialCode), console.warn(`[F0Select] metadata dialCode "${e.dialCode}" is not a valid dial code (expected "+" followed by 1-4 digits).`)), e.dialCode) : "", KF = ({ item: e, optionId: t }) => {
56837
+ var GF = /^\+\d{1,4}$/, KF = /* @__PURE__ */ new Set(), qF = (e) => e.type === "dialCode" ? (process.env.NODE_ENV !== "production" && !GF.test(e.dialCode) && !KF.has(e.dialCode) && (KF.add(e.dialCode), console.warn(`[F0Select] metadata dialCode "${e.dialCode}" is not a valid dial code (expected "+" followed by 1-4 digits).`)), e.dialCode) : "", JF = ({ item: e, optionId: t }) => {
56827
56838
  let n = e.tag && typeof e.tag != "string" && e.tag.type === "status", r = String(e.value), i = dt(CF), a = i?.value === r;
56828
- return /* @__PURE__ */ H(HF, {
56839
+ return /* @__PURE__ */ H(WF, {
56829
56840
  value: r,
56830
56841
  disabled: e.disabled,
56831
56842
  id: t,
@@ -56858,7 +56869,7 @@ var UF = /^\+\d{1,4}$/, WF = /* @__PURE__ */ new Set(), GF = (e) => e.type === "
56858
56869
  children: e.label
56859
56870
  }), e.metadata ? /* @__PURE__ */ H("span", {
56860
56871
  className: "whitespace-nowrap text-f1-foreground-secondary",
56861
- children: GF(e.metadata)
56872
+ children: qF(e.metadata)
56862
56873
  }) : null]
56863
56874
  }), e.description ? /* @__PURE__ */ H(T, {
56864
56875
  lines: 2,
@@ -56883,12 +56894,12 @@ var UF = /^\+\d{1,4}$/, WF = /* @__PURE__ */ new Set(), GF = (e) => e.type === "
56883
56894
  ]
56884
56895
  })
56885
56896
  });
56886
- }, qF = "__no-grouping__", JF = (e) => !!e && !e.hideSelector && !(e.mandatory && Object.keys(e.groupBy).length < 2), YF = ({ grouping: e, currentGrouping: t, onGroupingChange: n, hideLabel: r = !1 }) => {
56897
+ }, YF = "__no-grouping__", XF = (e) => !!e && !e.hideSelector && !(e.mandatory && Object.keys(e.groupBy).length < 2), ZF = ({ grouping: e, currentGrouping: t, onGroupingChange: n, hideLabel: r = !1 }) => {
56887
56898
  let i = a();
56888
- if (!e || !JF(e)) return null;
56899
+ if (!e || !XF(e)) return null;
56889
56900
  let o = [...e.mandatory ? [] : [{
56890
56901
  label: i.collections.grouping.noGrouping,
56891
- value: qF
56902
+ value: YF
56892
56903
  }], ...Object.entries(e.groupBy || {}).filter((e) => !!e[1]).map(([e, t]) => ({
56893
56904
  label: t.name,
56894
56905
  value: e
@@ -56899,12 +56910,12 @@ var UF = /^\+\d{1,4}$/, WF = /* @__PURE__ */ new Set(), GF = (e) => e.type === "
56899
56910
  className: "flex items-end gap-2",
56900
56911
  children: [/* @__PURE__ */ H("div", {
56901
56912
  className: "shrink grow [&_button]:h-8 [&_button]:rounded",
56902
- children: /* @__PURE__ */ H(oR, {
56913
+ children: /* @__PURE__ */ H(cR, {
56903
56914
  label: i.collections.grouping.groupBy,
56904
56915
  options: o,
56905
56916
  hideLabel: r,
56906
- value: t?.field.toString() ?? qF,
56907
- onChange: (r) => n?.(r === qF ? void 0 : {
56917
+ value: t?.field.toString() ?? YF,
56918
+ onChange: (r) => n?.(r === YF ? void 0 : {
56908
56919
  field: r,
56909
56920
  order: e.groupBy[r]?.defaultDirection ?? t?.order ?? "asc"
56910
56921
  })
@@ -56921,8 +56932,8 @@ var UF = /^\+\d{1,4}$/, WF = /* @__PURE__ */ new Set(), GF = (e) => e.type === "
56921
56932
  }) : null]
56922
56933
  })
56923
56934
  });
56924
- }, XF = ut(null);
56925
- function ZF({ children: e, onEvent: t, enabled: n = !0, catchEvents: r }) {
56935
+ }, QF = ut(null);
56936
+ function $F({ children: e, onEvent: t, enabled: n = !0, catchEvents: r }) {
56926
56937
  let i = L((e, i) => {
56927
56938
  !n || r && !r.includes(e) || t(e, i);
56928
56939
  }, [
@@ -56930,38 +56941,38 @@ function ZF({ children: e, onEvent: t, enabled: n = !0, catchEvents: r }) {
56930
56941
  r,
56931
56942
  t
56932
56943
  ]), a = z(() => ({ onEvent: i }), [i]);
56933
- return /* @__PURE__ */ H(XF.Provider, {
56944
+ return /* @__PURE__ */ H(QF.Provider, {
56934
56945
  value: a,
56935
56946
  children: e
56936
56947
  });
56937
56948
  }
56938
- function QF() {
56939
- return dt(XF) ?? { onEvent: () => void 0 };
56949
+ function eI() {
56950
+ return dt(QF) ?? { onEvent: () => void 0 };
56940
56951
  }
56941
56952
  //#endregion
56942
56953
  //#region src/addons/data-collection/providers/events/normalize.ts
56943
- var $F = (e) => {
56954
+ var tI = (e) => {
56944
56955
  if (e != null) {
56945
56956
  if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
56946
56957
  if (e instanceof Date) return e.toISOString();
56947
- if (Array.isArray(e)) return e.map((e) => $F(e) ?? null);
56958
+ if (Array.isArray(e)) return e.map((e) => tI(e) ?? null);
56948
56959
  if (typeof e == "object") {
56949
56960
  let t = {};
56950
56961
  for (let [n, r] of Object.entries(e)) {
56951
- let e = $F(r);
56962
+ let e = tI(r);
56952
56963
  e !== void 0 && (t[n] = e);
56953
56964
  }
56954
56965
  return t;
56955
56966
  }
56956
56967
  }
56957
- }, eI = ({ defaultFilters: e, defaultSorting: t, currentVisualization: n }) => {
56958
- let r = B(e), i = B(t), { onEvent: a } = QF();
56968
+ }, nI = ({ defaultFilters: e, defaultSorting: t, currentVisualization: n }) => {
56969
+ let r = B(e), i = B(t), { onEvent: a } = eI();
56959
56970
  return {
56960
56971
  emitFilterChange: L((e) => {
56961
56972
  if (!e) return;
56962
56973
  let t = Object.entries(e).find(([e, t]) => r.current?.[e] !== t);
56963
56974
  if (!t) return;
56964
- let [i, o] = t, s = $F(o);
56975
+ let [i, o] = t, s = tI(o);
56965
56976
  s !== void 0 && (r.current = e, a("datacollection.filter-change", {
56966
56977
  name: i,
56967
56978
  value: s,
@@ -56978,7 +56989,7 @@ var $F = (e) => {
56978
56989
  if (!e) return;
56979
56990
  let t = Object.entries(e).find(([e, t]) => r.current?.[e] !== t);
56980
56991
  if (!t) return;
56981
- let [i, o] = t, s = $F(o);
56992
+ let [i, o] = t, s = tI(o);
56982
56993
  s !== void 0 && (r.current = e, a("datacollection.preset-click", {
56983
56994
  name: i,
56984
56995
  value: s,
@@ -56986,7 +56997,7 @@ var $F = (e) => {
56986
56997
  }));
56987
56998
  }, [a, n])
56988
56999
  };
56989
- }, tI = class extends st {
57000
+ }, rI = class extends st {
56990
57001
  state = { hasError: !1 };
56991
57002
  static getDerivedStateFromError() {
56992
57003
  return { hasError: !0 };
@@ -56997,7 +57008,7 @@ var $F = (e) => {
56997
57008
  render() {
56998
57009
  return this.state.hasError ? this.props.fallback ?? null : this.props.children;
56999
57010
  }
57000
- }, nI = F.forwardRef(({ className: e, type: t, label: n, labelIcon: r, icon: i, error: a, status: o, hint: s, disabled: l, required: u, value: d, placeholder: f, clearable: p, onClear: m, size: h, loading: g, isEmpty: _, emptyValue: v, maxLength: y, hideMaxLength: b, append: x, onChange: S, role: C, appendTag: w, lengthProvider: T, onClickContent: E, hideLabel: D, name: O, onFocus: k, onBlur: A, onBlurWithin: j, onKeyDown: M, readonly: ee, buttonToggle: te, transparent: ne, variant: re, editing: ie, inlineText: ae, autocomplete: oe, "aria-controls": se, "aria-expanded": N, "aria-activedescendant": P, "aria-autocomplete": ce, ...le }, ue) => /* @__PURE__ */ H(VM, {
57011
+ }, iI = F.forwardRef(({ className: e, type: t, label: n, labelIcon: r, icon: i, error: a, status: o, hint: s, disabled: l, required: u, value: d, placeholder: f, clearable: p, onClear: m, size: h, loading: g, isEmpty: _, emptyValue: v, maxLength: y, hideMaxLength: b, append: x, onChange: S, role: C, appendTag: w, lengthProvider: T, onClickContent: E, hideLabel: D, name: O, onFocus: k, onBlur: A, onBlurWithin: j, onKeyDown: M, readonly: ee, buttonToggle: te, transparent: ne, variant: re, editing: ie, inlineText: ae, autocomplete: oe, "aria-controls": se, "aria-expanded": N, "aria-activedescendant": P, "aria-autocomplete": ce, ...le }, ue) => /* @__PURE__ */ H(VM, {
57001
57012
  label: n,
57002
57013
  icon: i,
57003
57014
  labelIcon: r,
@@ -57048,26 +57059,26 @@ var $F = (e) => {
57048
57059
  className: c("[&::-webkit-search-cancel-button]:hidden", "w-full shrink placeholder:-z-10 disabled:cursor-not-allowed", C === "combobox" && "cursor-text")
57049
57060
  })
57050
57061
  }));
57051
- nI.displayName = "Input";
57062
+ iI.displayName = "Input";
57052
57063
  //#endregion
57053
57064
  //#region src/blocks/OneCalendar/CalendarPopupContext.ts
57054
- var rI = ut(null);
57055
- function iI(e, t, n, r) {
57065
+ var aI = ut(null);
57066
+ function oI(e, t, n, r) {
57056
57067
  let i = t ? t.getFullYear() : e - 120, a = n ? n.getFullYear() : e + 120;
57057
57068
  return {
57058
57069
  fromYear: Math.min(i, a, r ?? Infinity),
57059
57070
  toYear: Math.max(i, a, r ?? -Infinity)
57060
57071
  };
57061
57072
  }
57062
- function aI(e, t, n, r) {
57063
- let { fromYear: i, toYear: a } = iI(e, t, n, r), o = [];
57073
+ function sI(e, t, n, r) {
57074
+ let { fromYear: i, toYear: a } = oI(e, t, n, r), o = [];
57064
57075
  for (let e = a; e >= i; e--) o.push({
57065
57076
  value: String(e),
57066
57077
  label: String(e)
57067
57078
  });
57068
57079
  return o;
57069
57080
  }
57070
- function oI({ year: e, locale: t, minDate: n, maxDate: r, format: i = "long" }) {
57081
+ function cI({ year: e, locale: t, minDate: n, maxDate: r, format: i = "long" }) {
57071
57082
  let a = new Intl.DateTimeFormat(t, { month: i });
57072
57083
  return Array.from({ length: 12 }, (t, i) => {
57073
57084
  let o = new Date(e, i, 1), s = !!(n && wl(jk(o), n) || r && Cl(Ec(o), r));
@@ -57078,12 +57089,12 @@ function oI({ year: e, locale: t, minDate: n, maxDate: r, format: i = "long" })
57078
57089
  };
57079
57090
  });
57080
57091
  }
57081
- function sI({ viewDate: e, onViewDateChange: t, showMonth: n, locale: r = "en-US", minDate: i, maxDate: o, compact: s = !1 }) {
57082
- let c = a(), l = z(() => aI((/* @__PURE__ */ new Date()).getFullYear(), i, o, e.getFullYear()), [
57092
+ function lI({ viewDate: e, onViewDateChange: t, showMonth: n, locale: r = "en-US", minDate: i, maxDate: o, compact: s = !1 }) {
57093
+ let c = a(), l = z(() => sI((/* @__PURE__ */ new Date()).getFullYear(), i, o, e.getFullYear()), [
57083
57094
  i,
57084
57095
  o,
57085
57096
  e
57086
- ]), u = z(() => oI({
57097
+ ]), u = z(() => cI({
57087
57098
  year: e.getFullYear(),
57088
57099
  locale: r,
57089
57100
  minDate: i,
@@ -57100,7 +57111,7 @@ function sI({ viewDate: e, onViewDateChange: t, showMonth: n, locale: r = "en-US
57100
57111
  className: "flex min-w-0 items-center gap-1",
57101
57112
  children: [n ? /* @__PURE__ */ H("div", {
57102
57113
  className: s ? "w-[5.5rem]" : "w-[8.5rem]",
57103
- children: /* @__PURE__ */ H(oR, {
57114
+ children: /* @__PURE__ */ H(cR, {
57104
57115
  size: "sm",
57105
57116
  label: c.date.selectMonth,
57106
57117
  hideLabel: !0,
@@ -57114,7 +57125,7 @@ function sI({ viewDate: e, onViewDateChange: t, showMonth: n, locale: r = "en-US
57114
57125
  })
57115
57126
  }) : null, /* @__PURE__ */ H("div", {
57116
57127
  className: s ? "w-[5.5rem]" : "w-[6rem]",
57117
- children: /* @__PURE__ */ H(oR, {
57128
+ children: /* @__PURE__ */ H(cR, {
57118
57129
  size: "sm",
57119
57130
  label: c.date.selectYear,
57120
57131
  hideLabel: !0,
@@ -57132,19 +57143,19 @@ function sI({ viewDate: e, onViewDateChange: t, showMonth: n, locale: r = "en-US
57132
57143
  }
57133
57144
  //#endregion
57134
57145
  //#region src/blocks/OneCalendar/OneCalendar.tsx
57135
- var cI = 366, lI = (e) => {
57146
+ var uI = 366, dI = (e) => {
57136
57147
  let t = SM(e);
57137
57148
  return {
57138
57149
  toRangeString: t.toRangeString,
57139
57150
  toString: t.toString
57140
57151
  };
57141
- }, uI = (e) => SM(e), dI = ({ mode: e, value: t, error: n, onChange: r, onCommit: i, onNavigate: o }) => {
57152
+ }, fI = (e) => SM(e), pI = ({ mode: e, value: t, error: n, onChange: r, onCommit: i, onNavigate: o }) => {
57142
57153
  let s = a(), c = (e) => (t) => {
57143
57154
  t.key === "Enter" && i(e), (t.key === "ArrowUp" || t.key === "ArrowDown") && (t.preventDefault(), o(e, t.key === "ArrowDown" ? -1 : 1));
57144
57155
  };
57145
57156
  return /* @__PURE__ */ U("div", {
57146
57157
  className: "mb-2 flex gap-2",
57147
- children: [/* @__PURE__ */ H(nI, {
57158
+ children: [/* @__PURE__ */ H(iI, {
57148
57159
  label: s.date.from,
57149
57160
  hideLabel: !0,
57150
57161
  error: n.from,
@@ -57156,7 +57167,7 @@ var cI = 366, lI = (e) => {
57156
57167
  ...t,
57157
57168
  from: e
57158
57169
  })
57159
- }), e === "range" ? /* @__PURE__ */ H(nI, {
57170
+ }), e === "range" ? /* @__PURE__ */ H(iI, {
57160
57171
  label: s.date.to,
57161
57172
  hideLabel: !0,
57162
57173
  error: n.to,
@@ -57170,11 +57181,11 @@ var cI = 366, lI = (e) => {
57170
57181
  })
57171
57182
  }) : null]
57172
57183
  });
57173
- }, fI = ({ label: e, dropdowns: t, viewDate: n, onViewDateChange: r, minDate: i, maxDate: o, compact: s, canNavigate: l, onNavigate: u }) => {
57184
+ }, mI = ({ label: e, dropdowns: t, viewDate: n, onViewDateChange: r, minDate: i, maxDate: o, compact: s, canNavigate: l, onNavigate: u }) => {
57174
57185
  let d = a(), f = Ku();
57175
57186
  return /* @__PURE__ */ U("div", {
57176
57187
  className: c("flex items-center justify-between", s ? "mx-2 pb-2" : "pb-3"),
57177
- children: [t ? /* @__PURE__ */ H(sI, {
57188
+ children: [t ? /* @__PURE__ */ H(lI, {
57178
57189
  viewDate: n,
57179
57190
  onViewDateChange: r,
57180
57191
  showMonth: t === "month-year",
@@ -57206,7 +57217,7 @@ var cI = 366, lI = (e) => {
57206
57217
  })]
57207
57218
  })]
57208
57219
  });
57209
- }, pI = ({ mode: e = "single", view: t = "month", onSelect: n, defaultMonth: r, defaultSelected: i = null, showNavigation: o = !0, showInput: s = !1, minDate: c, maxDate: l, disabledDates: u, highlightedDates: d, compact: f = !1, weekStartsOn: p, selectOnCellOnly: m = !1, periods: h }) => {
57220
+ }, hI = ({ mode: e = "single", view: t = "month", onSelect: n, defaultMonth: r, defaultSelected: i = null, showNavigation: o = !0, showInput: s = !1, minDate: c, maxDate: l, disabledDates: u, highlightedDates: d, compact: f = !1, weekStartsOn: p, selectOnCellOnly: m = !1, periods: h }) => {
57210
57221
  let g = a(), _ = Ku(), v = p ?? _.date?.weekStartsOn ?? Hu.Monday, y = z(() => {
57211
57222
  if (r) return r;
57212
57223
  let e = /* @__PURE__ */ new Date();
@@ -57230,7 +57241,7 @@ var cI = 366, lI = (e) => {
57230
57241
  R(() => {
57231
57242
  D(i);
57232
57243
  }, [i]);
57233
- let O = () => E.label(b, g, _.locale), k = E.calendarView === "day" || E.calendarView === "week" ? "month-year" : E.calendarView === "month" || E.calendarView === "periods" ? "year" : null, A = E.getViewDateBounds?.(), j = Pk(c, A?.min), M = Fk(l, A?.max), ee = k ? iI((/* @__PURE__ */ new Date()).getFullYear(), j, M, b.getFullYear()) : null, te = (e) => {
57244
+ let O = () => E.label(b, g, _.locale), k = E.calendarView === "day" || E.calendarView === "week" ? "month-year" : E.calendarView === "month" || E.calendarView === "periods" ? "year" : null, A = E.getViewDateBounds?.(), j = Pk(c, A?.min), M = Fk(l, A?.max), ee = k ? oI((/* @__PURE__ */ new Date()).getFullYear(), j, M, b.getFullYear()) : null, te = (e) => {
57234
57245
  if (!ee) return !0;
57235
57246
  let t = E.navigateUIView(b, e).getFullYear();
57236
57247
  return t >= ee.fromYear && t <= ee.toYear;
@@ -57240,7 +57251,7 @@ var cI = 366, lI = (e) => {
57240
57251
  T(e), x(t);
57241
57252
  }, re = (e) => {
57242
57253
  T(e.getTime() >= b.getTime() ? 1 : -1), x(e);
57243
- }, ie = dt(rI), ae = (t) => {
57254
+ }, ie = dt(aI), ae = (t) => {
57244
57255
  let n = e === "range" && t !== null && !(t instanceof Date) && t.to === void 0;
57245
57256
  oe(t), ie?.(!n);
57246
57257
  }, oe = (e) => {
@@ -57287,7 +57298,7 @@ var cI = 366, lI = (e) => {
57287
57298
  }, [E, S]);
57288
57299
  let fe = (e, t) => {
57289
57300
  let n = se[e] ? E.fromString(se[e], g) : void 0, r = n ? E.navigate(n.from, t) : void 0;
57290
- for (let e = 0; r && e < cI && !ue(r) && Kk(r, E, {
57301
+ for (let e = 0; r && e < uI && !ue(r) && Kk(r, E, {
57291
57302
  minDate: c,
57292
57303
  maxDate: l
57293
57304
  }); e++) r = E.navigate(r, t);
@@ -57302,7 +57313,7 @@ var cI = 366, lI = (e) => {
57302
57313
  return /* @__PURE__ */ U("div", {
57303
57314
  className: "flex flex-col",
57304
57315
  children: [
57305
- pe ? /* @__PURE__ */ H(dI, {
57316
+ pe ? /* @__PURE__ */ H(pI, {
57306
57317
  mode: e,
57307
57318
  value: se,
57308
57319
  error: {
@@ -57313,7 +57324,7 @@ var cI = 366, lI = (e) => {
57313
57324
  onCommit: le,
57314
57325
  onNavigate: fe
57315
57326
  }) : null,
57316
- o ? /* @__PURE__ */ H(fI, {
57327
+ o ? /* @__PURE__ */ H(mI, {
57317
57328
  label: O(),
57318
57329
  dropdowns: k,
57319
57330
  viewDate: b,
@@ -57345,12 +57356,12 @@ var cI = 366, lI = (e) => {
57345
57356
  })
57346
57357
  ]
57347
57358
  });
57348
- }, mI = (e) => /* @__PURE__ */ H(pI, { ...e });
57349
- mI.displayName = "OneCalendar";
57350
- var hI = r(mI);
57359
+ }, gI = (e) => /* @__PURE__ */ H(hI, { ...e });
57360
+ gI.displayName = "OneCalendar";
57361
+ var _I = r(gI);
57351
57362
  //#endregion
57352
57363
  //#region src/blocks/OneFilterPicker/filterTypes/getOptionsWithDefaults.ts
57353
- function gI(e, t) {
57364
+ function vI(e, t) {
57354
57365
  return {
57355
57366
  ...t,
57356
57367
  ...e
@@ -57358,7 +57369,7 @@ function gI(e, t) {
57358
57369
  }
57359
57370
  //#endregion
57360
57371
  //#region src/blocks/OneFilterPicker/filterTypes/DateFilter/DateFilter.tsx
57361
- function _I({ value: e, onChange: t, schema: n, isCompactMode: r }) {
57372
+ function yI({ value: e, onChange: t, schema: n, isCompactMode: r }) {
57362
57373
  let i = {
57363
57374
  mode: "single",
57364
57375
  view: "day",
@@ -57368,7 +57379,7 @@ function _I({ value: e, onChange: t, schema: n, isCompactMode: r }) {
57368
57379
  };
57369
57380
  return /* @__PURE__ */ U(gt, { children: [/* @__PURE__ */ H("div", {
57370
57381
  className: "space-y-4 overflow-x-hidden p-3",
57371
- children: /* @__PURE__ */ H(pI, {
57382
+ children: /* @__PURE__ */ H(hI, {
57372
57383
  defaultSelected: e || i.defaultSelected,
57373
57384
  onSelect: (e) => t(e ?? void 0),
57374
57385
  view: i.view,
@@ -57389,14 +57400,14 @@ function _I({ value: e, onChange: t, schema: n, isCompactMode: r }) {
57389
57400
  }
57390
57401
  //#endregion
57391
57402
  //#region src/blocks/OneFilterPicker/filterTypes/DateFilter/definition.tsx
57392
- var vI = (e, t) => !e || "from" in e && !e.from && t.schema.options.mode === "single" || "from" in e && !e.from && !e.to && t.schema.options.mode === "range", yI = {
57403
+ var bI = (e, t) => !e || "from" in e && !e.from && t.schema.options.mode === "single" || "from" in e && !e.from && !e.to && t.schema.options.mode === "range", xI = {
57393
57404
  mode: "single",
57394
57405
  view: "day"
57395
- }, bI = {
57406
+ }, SI = {
57396
57407
  emptyValue: void 0,
57397
57408
  render: (e) => {
57398
- let t = gI(e.schema.options, yI);
57399
- return /* @__PURE__ */ H(_I, {
57409
+ let t = vI(e.schema.options, xI);
57410
+ return /* @__PURE__ */ H(yI, {
57400
57411
  ...e,
57401
57412
  schema: {
57402
57413
  ...e.schema,
@@ -57404,16 +57415,16 @@ var vI = (e, t) => !e || "from" in e && !e.from && t.schema.options.mode === "si
57404
57415
  }
57405
57416
  });
57406
57417
  },
57407
- isEmpty: vI,
57408
- chipLabel: (e, t) => lI(gI(t.schema.options, yI).view).toString(e, t.i18n),
57418
+ isEmpty: bI,
57419
+ chipLabel: (e, t) => dI(vI(t.schema.options, xI).view).toString(e, t.i18n),
57409
57420
  formHeight: 520
57410
- }, xI = I((e, t) => /* @__PURE__ */ H(ee, {
57421
+ }, CI = I((e, t) => /* @__PURE__ */ H(ee, {
57411
57422
  ...e,
57412
57423
  ref: t,
57413
57424
  className: c(e.className, "animate-spin")
57414
57425
  }));
57415
- xI.displayName = "LoadingIcon";
57416
- var SI = I(({ 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 = te, role: u = "searchbox", onKeyDown: d, "aria-controls": f, "aria-expanded": p, "aria-activedescendant": m, "aria-autocomplete": h, ...g }, _) => {
57426
+ CI.displayName = "LoadingIcon";
57427
+ var wI = I(({ 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 = te, role: u = "searchbox", onKeyDown: d, "aria-controls": f, "aria-expanded": p, "aria-activedescendant": m, "aria-autocomplete": h, ...g }, _) => {
57417
57428
  let v = B(null);
57418
57429
  pt(_, () => v.current), R(() => {
57419
57430
  let e = v.current;
@@ -57440,11 +57451,11 @@ var SI = I(({ value: e, threshold: t = 0, onChange: n, onBlur: r, onFocus: i, si
57440
57451
  t,
57441
57452
  o
57442
57453
  ]);
57443
- return /* @__PURE__ */ H(nI, {
57454
+ return /* @__PURE__ */ H(iI, {
57444
57455
  ref: v,
57445
57456
  type: "search",
57446
57457
  tabIndex: c,
57447
- icon: g.loading ? xI : l,
57458
+ icon: g.loading ? CI : l,
57448
57459
  value: e,
57449
57460
  label: g.placeholder ?? "Search",
57450
57461
  hideLabel: !0,
@@ -57464,11 +57475,11 @@ var SI = I(({ value: e, threshold: t = 0, onChange: n, onBlur: r, onFocus: i, si
57464
57475
  name: g.name
57465
57476
  }, "search-input");
57466
57477
  });
57467
- SI.displayName = "F0SearchInput";
57468
- var CI = SI;
57478
+ wI.displayName = "F0SearchInput";
57479
+ var TI = wI;
57469
57480
  //#endregion
57470
57481
  //#region src/blocks/OneFilterPicker/filterTypes/InFilter/components/InFilterOptionCheckbox.tsx
57471
- function wI({ label: e, isSelected: t, onToggle: n, disabled: r, descriptionId: i }) {
57482
+ function EI({ label: e, isSelected: t, onToggle: n, disabled: r, descriptionId: i }) {
57472
57483
  return /* @__PURE__ */ H("div", {
57473
57484
  className: "shrink-0",
57474
57485
  onClick: (e) => e.stopPropagation(),
@@ -57486,7 +57497,7 @@ function wI({ label: e, isSelected: t, onToggle: n, disabled: r, descriptionId:
57486
57497
  }
57487
57498
  //#endregion
57488
57499
  //#region src/blocks/OneFilterPicker/filterTypes/InFilter/components/InFilterFlatOption.tsx
57489
- function TI({ option: e, isSelected: t, onToggle: n, isCompactMode: r, disabled: i, disabledHintId: a }) {
57500
+ function DI({ option: e, isSelected: t, onToggle: n, isCompactMode: r, disabled: i, disabledHintId: a }) {
57490
57501
  return /* @__PURE__ */ H("div", {
57491
57502
  className: c("w-full", !r && "px-2"),
57492
57503
  children: /* @__PURE__ */ U("div", {
@@ -57496,7 +57507,7 @@ function TI({ option: e, isSelected: t, onToggle: n, isCompactMode: r, disabled:
57496
57507
  children: [/* @__PURE__ */ H("span", {
57497
57508
  className: "min-w-0 flex-1",
57498
57509
  children: /* @__PURE__ */ H(T, { children: e.label })
57499
- }), /* @__PURE__ */ H(wI, {
57510
+ }), /* @__PURE__ */ H(EI, {
57500
57511
  label: e.label,
57501
57512
  isSelected: t,
57502
57513
  onToggle: n,
@@ -57508,31 +57519,31 @@ function TI({ option: e, isSelected: t, onToggle: n, isCompactMode: r, disabled:
57508
57519
  }
57509
57520
  //#endregion
57510
57521
  //#region src/blocks/OneFilterPicker/filterTypes/InFilter/useLoadOptions.ts
57511
- var EI = /* @__PURE__ */ new Map(), DI = /* @__PURE__ */ new Map(), OI = /* @__PURE__ */ new Map();
57512
- function kI(e) {
57522
+ var OI = /* @__PURE__ */ new Map(), kI = /* @__PURE__ */ new Map(), AI = /* @__PURE__ */ new Map();
57523
+ function jI(e) {
57513
57524
  return JSON.stringify(e);
57514
57525
  }
57515
- function AI(e, t, n) {
57526
+ function MI(e, t, n) {
57516
57527
  let r = `${e}:${String(t)}`;
57517
- DI.set(r, n);
57528
+ kI.set(r, n);
57518
57529
  }
57519
- function jI(e, t) {
57530
+ function NI(e, t) {
57520
57531
  let n = `${e}:${String(t)}`;
57521
- return DI.get(n);
57532
+ return kI.get(n);
57522
57533
  }
57523
- function MI(e, t, n) {
57524
- OI.set(`${e}:${String(t)}`, n);
57534
+ function PI(e, t, n) {
57535
+ AI.set(`${e}:${String(t)}`, n);
57525
57536
  }
57526
- function NI(e, t) {
57527
- return OI.get(`${e}:${String(t)}`);
57537
+ function FI(e, t) {
57538
+ return AI.get(`${e}:${String(t)}`);
57528
57539
  }
57529
- async function PI(e, t, n = !1) {
57530
- if (n && EI.has(e)) return EI.get(e);
57540
+ async function II(e, t, n = !1) {
57541
+ if (n && OI.has(e)) return OI.get(e);
57531
57542
  let r = await (typeof t == "function" ? t : () => t)();
57532
- return EI.set(e, r), r;
57543
+ return OI.set(e, r), r;
57533
57544
  }
57534
- function FI({ schema: e, search: t }) {
57535
- let n = kI(e), [r, i] = V([]), [a, o] = V(!1), [s, c] = V(null), l = "options" in e.options ? e.options.options : void 0, u = "source" in e.options ? e.options.source : void 0, d = JM(u ? {
57545
+ function LI({ schema: e, search: t }) {
57546
+ let n = jI(e), [r, i] = V([]), [a, o] = V(!1), [s, c] = V(null), l = "options" in e.options ? e.options.options : void 0, u = "source" in e.options ? e.options.source : void 0, d = JM(u ? {
57536
57547
  ...u,
57537
57548
  search: {
57538
57549
  enabled: !0,
@@ -57543,10 +57554,10 @@ function FI({ schema: e, search: t }) {
57543
57554
  currentSearch: t
57544
57555
  }, {}, [u]), _ = L(async (t = !1) => {
57545
57556
  if (l) {
57546
- t && EI.delete(n);
57557
+ t && OI.delete(n);
57547
57558
  try {
57548
57559
  o(!0), c(null);
57549
- let t = await PI(n, l, e.options.cache);
57560
+ let t = await II(n, l, e.options.cache);
57550
57561
  i(t);
57551
57562
  } catch (e) {
57552
57563
  c(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load options"));
@@ -57577,47 +57588,47 @@ function FI({ schema: e, search: t }) {
57577
57588
  }
57578
57589
  //#endregion
57579
57590
  //#region src/blocks/OneFilterPicker/filterTypes/InFilter/components/option-utils.ts
57580
- function II(e, t) {
57581
- return e.label.toLowerCase().includes(t) ? !0 : e.children ? e.children.options.some((e) => II(e, t)) : !1;
57591
+ function RI(e, t) {
57592
+ return e.label.toLowerCase().includes(t) ? !0 : e.children ? e.children.options.some((e) => RI(e, t)) : !1;
57582
57593
  }
57583
- function LI(e, t, n = !1) {
57594
+ function zI(e, t, n = !1) {
57584
57595
  let r = e.children?.options ?? [];
57585
57596
  if (!t) return {
57586
57597
  subtreeMatchesSearch: !1,
57587
57598
  visibleChildren: r,
57588
57599
  hasMatchingChild: !1
57589
57600
  };
57590
- let i = n || e.label.toLowerCase().includes(t), a = r.filter((e) => II(e, t));
57601
+ let i = n || e.label.toLowerCase().includes(t), a = r.filter((e) => RI(e, t));
57591
57602
  return {
57592
57603
  subtreeMatchesSearch: i,
57593
57604
  visibleChildren: i ? r : a,
57594
57605
  hasMatchingChild: a.length > 0
57595
57606
  };
57596
57607
  }
57597
- function RI(e, t) {
57608
+ function BI(e, t) {
57598
57609
  if (!e.children || !t) return !1;
57599
57610
  let { filterKey: n, options: r } = e.children, i = t[n] ?? [];
57600
- for (let e of r) if (i.includes(e.value) || RI(e, t)) return !0;
57611
+ for (let e of r) if (i.includes(e.value) || BI(e, t)) return !0;
57601
57612
  return !1;
57602
57613
  }
57603
- function zI(e) {
57604
- return e.some((e) => !!e.disabled || zI(e.children?.options ?? []));
57614
+ function VI(e) {
57615
+ return e.some((e) => !!e.disabled || VI(e.children?.options ?? []));
57605
57616
  }
57606
- function BI(e) {
57617
+ function HI(e) {
57607
57618
  let t = /* @__PURE__ */ new Set();
57608
57619
  function n(e) {
57609
57620
  for (let r of e) r.children && (t.add(r.children.filterKey), n(r.children.options));
57610
57621
  }
57611
57622
  return n(e ?? []), [...t];
57612
57623
  }
57613
- function VI(e) {
57624
+ function UI(e) {
57614
57625
  let t = e.options, n = new Set(t.nestedFilterKeys ?? []), r = "options" in t && Array.isArray(t.options) ? t.options : void 0;
57615
- for (let e of BI(r)) n.add(e);
57626
+ for (let e of HI(r)) n.add(e);
57616
57627
  return [...n];
57617
57628
  }
57618
57629
  //#endregion
57619
57630
  //#region src/blocks/OneFilterPicker/filterTypes/InFilter/components/InFilterOptionRow.tsx
57620
- var HI = ({ label: e, expanded: t, hasSelectedDescendant: n, onToggle: r }) => {
57631
+ var WI = ({ label: e, expanded: t, hasSelectedDescendant: n, onToggle: r }) => {
57621
57632
  let i = a(), o = n ? `${e}. ${i.status.selected.singular}` : e;
57622
57633
  return /* @__PURE__ */ U("div", {
57623
57634
  className: "relative shrink-0",
@@ -57636,8 +57647,8 @@ var HI = ({ label: e, expanded: t, hasSelectedDescendant: n, onToggle: r }) => {
57636
57647
  }) : null]
57637
57648
  });
57638
57649
  };
57639
- function UI({ option: e, isSelected: t, onToggle: n, isCompactMode: r, depth: i, onFilterChange: o, allFiltersValue: s, cacheKey: u, searchTerm: d, searchRevision: f, ancestorMatchesSearch: p = !1, disabled: m, disabledHintId: h }) {
57640
- let [g, _] = V(!1), [v, y] = V(null), b = a(), x = (e.children?.options ?? []).length > 0, { subtreeMatchesSearch: S, visibleChildren: C, hasMatchingChild: w } = LI(e, d, p), E = v?.revision === f ? v.expanded : w, D = d ? E : g, O = () => {
57650
+ function GI({ option: e, isSelected: t, onToggle: n, isCompactMode: r, depth: i, onFilterChange: o, allFiltersValue: s, cacheKey: u, searchTerm: d, searchRevision: f, ancestorMatchesSearch: p = !1, disabled: m, disabledHintId: h }) {
57651
+ let [g, _] = V(!1), [v, y] = V(null), b = a(), x = (e.children?.options ?? []).length > 0, { subtreeMatchesSearch: S, visibleChildren: C, hasMatchingChild: w } = zI(e, d, p), E = v?.revision === f ? v.expanded : w, D = d ? E : g, O = () => {
57641
57652
  d ? y({
57642
57653
  revision: f,
57643
57654
  expanded: !D
@@ -57647,9 +57658,9 @@ function UI({ option: e, isSelected: t, onToggle: n, isCompactMode: r, depth: i,
57647
57658
  let i = A.includes(t);
57648
57659
  if (!i && r) return;
57649
57660
  if (!i) {
57650
- AI(u, t, n);
57661
+ MI(u, t, n);
57651
57662
  let r = `${e.label} > ${n}`;
57652
- MI(k, t, r);
57663
+ PI(k, t, r);
57653
57664
  }
57654
57665
  let a = i ? A.filter((e) => e !== t) : [...A, t];
57655
57666
  o(k, a);
@@ -57659,13 +57670,13 @@ function UI({ option: e, isSelected: t, onToggle: n, isCompactMode: r, depth: i,
57659
57670
  o,
57660
57671
  u,
57661
57672
  e.label
57662
- ]), M = x && RI(e, s), ee = b.t(D ? "actions.collapseItem" : "actions.expandItem", { title: e.label });
57673
+ ]), M = x && BI(e, s), ee = b.t(D ? "actions.collapseItem" : "actions.expandItem", { title: e.label });
57663
57674
  return /* @__PURE__ */ U("div", {
57664
57675
  className: c("w-full", i === 0 && !r && "px-2", i === 0 && "border-0 border-b border-solid border-f1-border-secondary last:border-b-0"),
57665
57676
  children: [/* @__PURE__ */ U("div", {
57666
57677
  className: "flex flex-row items-center overflow-hidden min-w-0",
57667
57678
  style: { paddingLeft: `${i * 24}px` },
57668
- children: [x ? /* @__PURE__ */ H(HI, {
57679
+ children: [x ? /* @__PURE__ */ H(WI, {
57669
57680
  label: ee,
57670
57681
  expanded: D,
57671
57682
  hasSelectedDescendant: M,
@@ -57679,7 +57690,7 @@ function UI({ option: e, isSelected: t, onToggle: n, isCompactMode: r, depth: i,
57679
57690
  children: [/* @__PURE__ */ H("span", {
57680
57691
  className: "min-w-0 flex-1",
57681
57692
  children: /* @__PURE__ */ H(T, { children: e.label })
57682
- }), /* @__PURE__ */ H(wI, {
57693
+ }), /* @__PURE__ */ H(EI, {
57683
57694
  label: e.label,
57684
57695
  isSelected: t,
57685
57696
  onToggle: n,
@@ -57690,7 +57701,7 @@ function UI({ option: e, isSelected: t, onToggle: n, isCompactMode: r, depth: i,
57690
57701
  })]
57691
57702
  }), D && x ? /* @__PURE__ */ H("div", { children: C.map((e) => {
57692
57703
  let t = A.includes(e.value);
57693
- return /* @__PURE__ */ H(UI, {
57704
+ return /* @__PURE__ */ H(GI, {
57694
57705
  option: e,
57695
57706
  isSelected: t,
57696
57707
  onToggle: () => j(e.value, e.label, e.disabled),
@@ -57710,7 +57721,7 @@ function UI({ option: e, isSelected: t, onToggle: n, isCompactMode: r, depth: i,
57710
57721
  }
57711
57722
  //#endregion
57712
57723
  //#region src/blocks/OneFilterPicker/filterTypes/InFilter/components/InFilterSelectionHeader.tsx
57713
- function WI({ selectedCount: e, totalSelected: t, maxSelected: n, allFilteredSelected: r, isIndeterminate: i, canSelectAll: o, isCompactMode: s, onCheckedChange: l }) {
57724
+ function KI({ selectedCount: e, totalSelected: t, maxSelected: n, allFilteredSelected: r, isIndeterminate: i, canSelectAll: o, isCompactMode: s, onCheckedChange: l }) {
57714
57725
  let u = a(), d = s ? "px-2" : "px-3.5", f = n !== void 0, p = t > 0, m = f && e >= n, h = f ? u.t("filters.inFilter.selectedOfMax", {
57715
57726
  count: e,
57716
57727
  max: n
@@ -57747,7 +57758,7 @@ function WI({ selectedCount: e, totalSelected: t, maxSelected: n, allFilteredSel
57747
57758
  }
57748
57759
  //#endregion
57749
57760
  //#region src/blocks/OneFilterPicker/filterTypes/InFilter/InFilter.tsx
57750
- var GI = ({ isLoading: e, error: t, optionCount: n, hasSource: r }) => e && n === 0 ? "loading" : t ? "error" : n === 0 && !r ? "empty" : null, KI = ({ state: e, onRetry: t }) => {
57761
+ var qI = ({ isLoading: e, error: t, optionCount: n, hasSource: r }) => e && n === 0 ? "loading" : t ? "error" : n === 0 && !r ? "empty" : null, JI = ({ state: e, onRetry: t }) => {
57751
57762
  let n = a();
57752
57763
  return e === "loading" ? /* @__PURE__ */ H("div", {
57753
57764
  className: "flex w-full items-center justify-center py-4",
@@ -57767,16 +57778,16 @@ var GI = ({ isLoading: e, error: t, optionCount: n, hasSource: r }) => e && n ==
57767
57778
  children: "No options available"
57768
57779
  });
57769
57780
  };
57770
- function qI({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange: i, allFiltersValue: o }) {
57781
+ function YI({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange: i, allFiltersValue: o }) {
57771
57782
  let s = a(), [l, u] = V(""), [d, f] = V(0), p = (e) => {
57772
57783
  u(e), f((e) => e + 1);
57773
- }, m = B(!0), { options: h, isLoading: g, error: _, loadOptions: v, loadMore: y } = FI({
57784
+ }, m = B(!0), { options: h, isLoading: g, error: _, loadOptions: v, loadMore: y } = LI({
57774
57785
  schema: {
57775
57786
  ...e,
57776
57787
  type: "in"
57777
57788
  },
57778
57789
  search: l
57779
- }), b = kI(e);
57790
+ }), b = jI(e);
57780
57791
  R(() => {
57781
57792
  if (!o || !h.length) return;
57782
57793
  let e = (t) => {
@@ -57785,7 +57796,7 @@ function qI({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
57785
57796
  for (let a of r) {
57786
57797
  if (i.includes(a.value)) {
57787
57798
  let e = `${n.label} > ${a.label}`;
57788
- MI(t, a.value, e), AI(b, a.value, a.label);
57799
+ PI(t, a.value, e), MI(b, a.value, a.label);
57789
57800
  }
57790
57801
  a.children && e([a]);
57791
57802
  }
@@ -57806,27 +57817,27 @@ function qI({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
57806
57817
  R(() => {
57807
57818
  u("");
57808
57819
  }, [e]);
57809
- let C = l.toLowerCase(), w = z(() => x ? h : h.filter((e) => II(e, C)), [
57820
+ let C = l.toLowerCase(), w = z(() => x ? h : h.filter((e) => RI(e, C)), [
57810
57821
  x,
57811
57822
  h,
57812
57823
  C
57813
- ]), T = z(() => [.../* @__PURE__ */ new Set([...VI(e), ...BI(h)])], [e, h]), E = z(() => T.reduce((e, t) => {
57824
+ ]), T = z(() => [.../* @__PURE__ */ new Set([...UI(e), ...HI(h)])], [e, h]), E = z(() => T.reduce((e, t) => {
57814
57825
  let n = o?.[t];
57815
57826
  return e + (Array.isArray(n) ? n.length : 0);
57816
- }, 0), [T, o]), D = E > 0, O = GI({
57827
+ }, 0), [T, o]), D = E > 0, O = qI({
57817
57828
  isLoading: g,
57818
57829
  error: _,
57819
57830
  optionCount: h.length,
57820
57831
  hasSource: x
57821
57832
  });
57822
- if (O) return /* @__PURE__ */ H(KI, {
57833
+ if (O) return /* @__PURE__ */ H(JI, {
57823
57834
  state: O,
57824
57835
  onRetry: () => v(!0)
57825
57836
  });
57826
57837
  let A = h.length > 0 || x, j = e.options.maxSelected, M = j !== void 0, ee = M && t.length >= j, te = w.filter((e) => !e.disabled), ne = te.length > 0 && te.every((e) => t.includes(e.value)), re = (t.length > 0 || D) && !ne, ie = () => {
57827
57838
  let e = [...t ?? []];
57828
57839
  te.forEach((t) => {
57829
- e.includes(t.value) || (e.push(t.value), AI(b, t.value, t.label));
57840
+ e.includes(t.value) || (e.push(t.value), MI(b, t.value, t.label));
57830
57841
  }), n(e);
57831
57842
  }, ae = () => {
57832
57843
  n([]), i && T.forEach((e) => {
@@ -57838,8 +57849,8 @@ function qI({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
57838
57849
  !g && y && m.current && y();
57839
57850
  }, N = (e) => !t.includes(e.value) && (ee || !!e.disabled), P = (e) => {
57840
57851
  let r = t.includes(e.value);
57841
- N(e) || (r || AI(b, e.value, e.label), n(r ? t.filter((t) => t !== e.value) : [...t, e.value]));
57842
- }, ce = t.length + E, le = e.options.disabledHint, ue = !!le && zI(w), de = w.some((e) => !!e.children?.options.length);
57852
+ N(e) || (r || MI(b, e.value, e.label), n(r ? t.filter((t) => t !== e.value) : [...t, e.value]));
57853
+ }, ce = t.length + E, le = e.options.disabledHint, ue = !!le && VI(w), de = w.some((e) => !!e.children?.options.length);
57843
57854
  return /* @__PURE__ */ U("div", {
57844
57855
  className: "flex max-h-full w-full flex-col flex-1 min-h-0",
57845
57856
  role: "group",
@@ -57847,14 +57858,14 @@ function qI({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
57847
57858
  children: [
57848
57859
  A ? /* @__PURE__ */ H("div", {
57849
57860
  className: "rounded-tr-xl p-2",
57850
- children: /* @__PURE__ */ H(SI, {
57861
+ children: /* @__PURE__ */ H(wI, {
57851
57862
  placeholder: s.filters.inFilter.searchPlaceholder,
57852
57863
  value: l,
57853
57864
  onChange: p,
57854
57865
  clearable: !0
57855
57866
  })
57856
57867
  }) : null,
57857
- /* @__PURE__ */ H(WI, {
57868
+ /* @__PURE__ */ H(KI, {
57858
57869
  selectedCount: t.length,
57859
57870
  totalSelected: ce,
57860
57871
  maxSelected: j,
@@ -57873,7 +57884,7 @@ function qI({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
57873
57884
  className: "flex w-full items-center justify-center py-4 text-sm text-f1-foreground-secondary",
57874
57885
  children: s.select.noResults
57875
57886
  }) : null,
57876
- de ? w.map((e) => /* @__PURE__ */ H(UI, {
57887
+ de ? w.map((e) => /* @__PURE__ */ H(GI, {
57877
57888
  option: e,
57878
57889
  isSelected: t.includes(e.value),
57879
57890
  onToggle: () => P(e),
@@ -57886,7 +57897,7 @@ function qI({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
57886
57897
  cacheKey: b,
57887
57898
  searchTerm: C,
57888
57899
  searchRevision: d
57889
- }, String(e.value))) : w.map((e) => /* @__PURE__ */ H(TI, {
57900
+ }, String(e.value))) : w.map((e) => /* @__PURE__ */ H(DI, {
57890
57901
  option: e,
57891
57902
  isSelected: t.includes(e.value),
57892
57903
  onToggle: () => P(e),
@@ -57916,20 +57927,20 @@ function qI({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
57916
57927
  }
57917
57928
  //#endregion
57918
57929
  //#region src/blocks/OneFilterPicker/filterTypes/InFilter/definition.tsx
57919
- var JI = {
57930
+ var XI = {
57920
57931
  emptyValue: [],
57921
57932
  isEmpty: (e) => (e || []).length === 0,
57922
- render: (e) => /* @__PURE__ */ H(qI, { ...e }),
57933
+ render: (e) => /* @__PURE__ */ H(YI, { ...e }),
57923
57934
  chipLabel: async (e, { schema: t, filterKey: n }) => {
57924
- let r = kI(t);
57935
+ let r = jI(t);
57925
57936
  if (n) {
57926
- let t = e.map((e) => NI(n, e));
57937
+ let t = e.map((e) => FI(n, e));
57927
57938
  if (t[0]) {
57928
57939
  let e = t.length - 1;
57929
57940
  return e > 0 ? `${t[0]} +${e}` : t[0];
57930
57941
  }
57931
57942
  }
57932
- let i = e.map((e) => jI(r, e));
57943
+ let i = e.map((e) => NI(r, e));
57933
57944
  if (i[0]) {
57934
57945
  let e = i[0], t = i.length - 1;
57935
57946
  return t > 0 ? `${e} +${t}` : e;
@@ -57937,13 +57948,13 @@ var JI = {
57937
57948
  if (t.options.getLabel) {
57938
57949
  let n = e[0];
57939
57950
  if (!n) return "";
57940
- let i = jI(r, n);
57951
+ let i = NI(r, n);
57941
57952
  if (i) {
57942
57953
  let t = e.length - 1;
57943
57954
  return t > 0 ? `${i} +${t}` : i;
57944
57955
  }
57945
57956
  let a = await t.options.getLabel(n);
57946
- AI(r, n, a);
57957
+ MI(r, n, a);
57947
57958
  let o = e.length - 1;
57948
57959
  return o > 0 ? `${a} +${o}` : a;
57949
57960
  }
@@ -57952,16 +57963,16 @@ var JI = {
57952
57963
  let t = e[0], n = e.length - 1;
57953
57964
  return n > 0 ? `${String(t)} +${n}` : String(t);
57954
57965
  }
57955
- let o = await PI(r, a, t.options.cache), s = e.map((e) => {
57966
+ let o = await II(r, a, t.options.cache), s = e.map((e) => {
57956
57967
  let t = o.find((t) => t.value === e), n = t?.label ?? String(e);
57957
- return t && AI(r, e, n), n;
57968
+ return t && MI(r, e, n), n;
57958
57969
  }), c = s[0], l = s.length - 1;
57959
57970
  return l > 0 ? `${c} +${l}` : c;
57960
57971
  }
57961
57972
  };
57962
57973
  //#endregion
57963
57974
  //#region src/blocks/Fields/Switch/Switch.tsx
57964
- function YI({ title: e, onCheckedChange: t, id: n, disabled: r, checked: i = !1, value: a, hideLabel: o = !1, presentational: s = !1, required: c = !1, ...l }) {
57975
+ function ZI({ title: e, onCheckedChange: t, id: n, disabled: r, checked: i = !1, value: a, hideLabel: o = !1, presentational: s = !1, required: c = !1, ...l }) {
57965
57976
  return /* @__PURE__ */ H(js, {
57966
57977
  title: e,
57967
57978
  onCheckedChange: t,
@@ -57975,7 +57986,7 @@ function YI({ title: e, onCheckedChange: t, id: n, disabled: r, checked: i = !1,
57975
57986
  ...l
57976
57987
  });
57977
57988
  }
57978
- var XI = o("Switch", YI), ZI = ({ onClickArrow: e, step: t, disabled: n }) => !t || n ? null : /* @__PURE__ */ U("div", {
57989
+ var QI = o("Switch", ZI), $I = ({ onClickArrow: e, step: t, disabled: n }) => !t || n ? null : /* @__PURE__ */ U("div", {
57979
57990
  className: "-mt-1 hidden h-full flex-col group-focus-within:flex group-hover:flex",
57980
57991
  onClick: (e) => e.preventDefault(),
57981
57992
  onMouseDown: (e) => e.preventDefault(),
@@ -57998,13 +58009,13 @@ var XI = o("Switch", YI), ZI = ({ onClickArrow: e, step: t, disabled: n }) => !t
57998
58009
  icon: gs
57999
58010
  })
58000
58011
  })]
58001
- }), QI = /^(-?)(\d+)?(?:([\.,])(\d+)?)?$/;
58002
- function $I(e, { maxDecimals: t }) {
58012
+ }), eL = /^(-?)(\d+)?(?:([\.,])(\d+)?)?$/;
58013
+ function tL(e, { maxDecimals: t }) {
58003
58014
  if (!e || e === "-") return {
58004
58015
  formattedValue: e ?? "",
58005
58016
  value: null
58006
58017
  };
58007
- let n = e.match(QI);
58018
+ let n = e.match(eL);
58008
58019
  if (!n) return null;
58009
58020
  let [r, i, a, o, s] = n;
58010
58021
  t && (s?.length ?? 0) > t ? s = s?.slice(0, t) : t === 0 && (s = ""), a = a?.replace(/^0+(\d)/, (e, t) => t) ?? "";
@@ -58016,28 +58027,28 @@ function $I(e, { maxDecimals: t }) {
58016
58027
  }
58017
58028
  //#endregion
58018
58029
  //#region src/elements/F0NumberInput/internal.tsx
58019
- var eL = (e, t, n, r = !1) => new Intl.NumberFormat(t, {
58030
+ var nL = (e, t, n, r = !1) => new Intl.NumberFormat(t, {
58020
58031
  maximumFractionDigits: n,
58021
58032
  useGrouping: r
58022
- }).format(e), tL = (e, t, { maxDecimals: n, grouping: r = !1, units: i } = {}) => {
58033
+ }).format(e), rL = (e, t, { maxDecimals: n, grouping: r = !1, units: i } = {}) => {
58023
58034
  if (e == null) return "";
58024
- let a = eL(e, t, n, r);
58035
+ let a = nL(e, t, n, r);
58025
58036
  return i ? `${a} ${i}` : a;
58026
- }, nL = (e, t, n) => {
58037
+ }, iL = (e, t, n) => {
58027
58038
  if (t != null && n != null) return e.t("numberInput.between", {
58028
58039
  min: t,
58029
58040
  max: n
58030
58041
  });
58031
58042
  if (t != null) return e.t("numberInput.greaterThan", { min: t });
58032
58043
  if (n != null) return e.t("numberInput.lessThan", { max: n });
58033
- }, rL = (e, { hint: t, min: n, max: r, inline: i }) => t ?? (i ? void 0 : nL(e, n, r)), iL = (e, t, n) => (r) => {
58044
+ }, aL = (e, { hint: t, min: n, max: r, inline: i }) => t ?? (i ? void 0 : iL(e, n, r)), oL = (e, t, n) => (r) => {
58034
58045
  e && r.key === "Enter" && r.preventDefault();
58035
58046
  let i = {
58036
58047
  Enter: t,
58037
58048
  Escape: n
58038
58049
  }[r.key];
58039
58050
  i?.();
58040
- }, aL = (e, t, n) => {
58051
+ }, sL = (e, t, n) => {
58041
58052
  if (t) return {
58042
58053
  type: "error",
58043
58054
  message: typeof t == "string" ? t : void 0
@@ -58048,7 +58059,7 @@ var eL = (e, t, n, r = !1) => new Intl.NumberFormat(t, {
58048
58059
  };
58049
58060
  if (n) return n;
58050
58061
  };
58051
- function oL({ label: e, htmlFor: t, disabled: n }) {
58062
+ function cL({ label: e, htmlFor: t, disabled: n }) {
58052
58063
  return /* @__PURE__ */ H(FM, {
58053
58064
  label: e,
58054
58065
  htmlFor: t,
@@ -58056,16 +58067,16 @@ function oL({ label: e, htmlFor: t, disabled: n }) {
58056
58067
  className: "mb-2"
58057
58068
  });
58058
58069
  }
58059
- function sL(e) {
58070
+ function lL(e) {
58060
58071
  if (e && e !== "auto") return { width: e };
58061
58072
  }
58062
- function cL({ children: e, extraContent: t, inputWidth: n, trailingAction: r }) {
58073
+ function uL({ children: e, extraContent: t, inputWidth: n, trailingAction: r }) {
58063
58074
  let i = !n || n === "auto";
58064
58075
  return /* @__PURE__ */ U("div", {
58065
58076
  className: "flex flex-wrap items-center gap-3",
58066
58077
  children: [
58067
58078
  /* @__PURE__ */ H("div", {
58068
- style: sL(n),
58079
+ style: lL(n),
58069
58080
  className: c(i ? "w-auto" : void 0),
58070
58081
  children: e
58071
58082
  }),
@@ -58077,12 +58088,12 @@ function cL({ children: e, extraContent: t, inputWidth: n, trailingAction: r })
58077
58088
  ]
58078
58089
  });
58079
58090
  }
58080
- var lL = I(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i = !1, step: o, min: s, max: l, onChange: u, units: d, extraContent: f, inputWidth: p, popover: m, label: h, hint: g, error: _, status: v, hideLabel: y = !1, disabled: b, readonly: x, loading: S, onBlur: C, variant: w, editing: T = !1, onBlurWithin: D, onPressEnter: O, onPressEscape: k, ...A }, j) {
58091
+ var dL = I(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i = !1, step: o, min: s, max: l, onChange: u, units: d, extraContent: f, inputWidth: p, popover: m, label: h, hint: g, error: _, status: v, hideLabel: y = !1, disabled: b, readonly: x, loading: S, onBlur: C, variant: w, editing: T = !1, onBlurWithin: D, onPressEnter: O, onPressEscape: k, ...A }, j) {
58081
58092
  let M = a(), ee = ft(), te = t ?? ee, [ne, re] = Oe({
58082
58093
  prop: m?.open,
58083
58094
  defaultProp: !1,
58084
58095
  onChange: m?.onOpenChange
58085
- }), [ie, ae] = V(!1), [oe, se] = V(() => n == null ? "" : eL(n, e, r, i)), [N, P] = V(n ?? null), ce = w === "inline", le = z(() => rL(M, {
58096
+ }), [ie, ae] = V(!1), [oe, se] = V(() => n == null ? "" : nL(n, e, r, i)), [N, P] = V(n ?? null), ce = w === "inline", le = z(() => aL(M, {
58086
58097
  hint: g,
58087
58098
  min: s,
58088
58099
  max: l,
@@ -58092,7 +58103,7 @@ var lL = I(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
58092
58103
  s,
58093
58104
  l,
58094
58105
  ce
58095
- ]), ue = !!f, fe = m?.commitMode === "deferred", pe = m !== void 0 || ue, me = !y && h != null, he = aL(le, _, v), ge = pe && he != null, _e = !!(b || x || S), ve = (e) => {
58106
+ ]), ue = !!f, fe = m?.commitMode === "deferred", pe = m !== void 0 || ue, me = !y && h != null, he = sL(le, _, v), ge = pe && he != null, _e = !!(b || x || S), ve = (e) => {
58096
58107
  e && _e || re(e);
58097
58108
  };
58098
58109
  R(() => {
@@ -58102,7 +58113,7 @@ var lL = I(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
58102
58113
  ne,
58103
58114
  n
58104
58115
  ]);
58105
- let ye = fe ? N : n, be = tL(ye, e, {
58116
+ let ye = fe ? N : n, be = rL(ye, e, {
58106
58117
  maxDecimals: r,
58107
58118
  grouping: i,
58108
58119
  units: d
@@ -58110,9 +58121,9 @@ var lL = I(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
58110
58121
  let t = e.nativeEvent.data;
58111
58122
  if (!t) return;
58112
58123
  let n = e.currentTarget, i = n.selectionStart ?? 0, a = n.selectionEnd ?? 0;
58113
- (!$I(n.value.slice(0, i) + t + n.value.slice(a), { maxDecimals: r }) || r === 0 && /[.,]/.test(t)) && e.preventDefault();
58124
+ (!tL(n.value.slice(0, i) + t + n.value.slice(a), { maxDecimals: r }) || r === 0 && /[.,]/.test(t)) && e.preventDefault();
58114
58125
  }, [r]), Ce = (e) => {
58115
- let t = $I(e, { maxDecimals: r });
58126
+ let t = tL(e, { maxDecimals: r });
58116
58127
  if (!t) return;
58117
58128
  let { value: n } = t;
58118
58129
  if (n === null) {
@@ -58124,21 +58135,21 @@ var lL = I(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
58124
58135
  se(t.formattedValue), xe?.(n);
58125
58136
  return;
58126
58137
  }
58127
- let a = $I(i.toString(), { maxDecimals: r });
58138
+ let a = tL(i.toString(), { maxDecimals: r });
58128
58139
  se(a?.formattedValue ?? ""), xe?.(a?.value ?? null);
58129
58140
  }, we = (t) => () => {
58130
58141
  if (!o) return;
58131
- if (ye == null) return Ce(eL(o, e, r));
58142
+ if (ye == null) return Ce(nL(o, e, r));
58132
58143
  let n = t === "increase" ? ye + o : ye - o;
58133
- s != null && n < s || l != null && n > l || Ce(eL(n, e, r));
58144
+ s != null && n < s || l != null && n > l || Ce(nL(n, e, r));
58134
58145
  };
58135
58146
  R(() => {
58136
58147
  if (i && !ie) {
58137
- se(ye == null ? "" : eL(ye, e, r, !0));
58148
+ se(ye == null ? "" : nL(ye, e, r, !0));
58138
58149
  return;
58139
58150
  }
58140
- let t = $I(oe, { maxDecimals: r });
58141
- ye !== void 0 && ye !== (t?.value ?? null) && se(ye == null ? "" : eL(ye, e, r));
58151
+ let t = tL(oe, { maxDecimals: r });
58152
+ ye !== void 0 && ye !== (t?.value ?? null) && se(ye == null ? "" : nL(ye, e, r));
58142
58153
  }, [
58143
58154
  oe,
58144
58155
  ye,
@@ -58149,7 +58160,7 @@ var lL = I(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
58149
58160
  ]);
58150
58161
  let Te = he ? { type: he.type } : void 0, Ee = /* @__PURE__ */ H("div", {
58151
58162
  className: c("group relative", { "h-full w-full": ce }),
58152
- children: /* @__PURE__ */ H(nI, {
58163
+ children: /* @__PURE__ */ H(iI, {
58153
58164
  type: "text",
58154
58165
  ref: j,
58155
58166
  id: te,
@@ -58160,7 +58171,7 @@ var lL = I(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
58160
58171
  variant: w,
58161
58172
  editing: T,
58162
58173
  inlineText: be,
58163
- onKeyDown: iL(ce, O, k),
58174
+ onKeyDown: oL(ce, O, k),
58164
58175
  onBlurWithin: D,
58165
58176
  label: pe ? h ?? "" : h,
58166
58177
  hideLabel: y || pe,
@@ -58176,7 +58187,7 @@ var lL = I(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
58176
58187
  },
58177
58188
  onBeforeInput: Se,
58178
58189
  appendTag: d,
58179
- append: o ? /* @__PURE__ */ H(ZI, {
58190
+ append: o ? /* @__PURE__ */ H($I, {
58180
58191
  step: o,
58181
58192
  disabled: b,
58182
58193
  onClickArrow: we
@@ -58204,12 +58215,12 @@ var lL = I(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
58204
58215
  children: /* @__PURE__ */ U("div", {
58205
58216
  className: "flex flex-col",
58206
58217
  children: [
58207
- me ? /* @__PURE__ */ H(oL, {
58218
+ me ? /* @__PURE__ */ H(cL, {
58208
58219
  label: h,
58209
58220
  htmlFor: te,
58210
58221
  disabled: _e
58211
58222
  }) : null,
58212
- /* @__PURE__ */ H(cL, {
58223
+ /* @__PURE__ */ H(uL, {
58213
58224
  extraContent: f,
58214
58225
  inputWidth: p,
58215
58226
  trailingAction: a ? /* @__PURE__ */ H(E, {
@@ -58231,12 +58242,12 @@ var lL = I(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
58231
58242
  return ue ? /* @__PURE__ */ U("div", {
58232
58243
  className: "flex flex-col",
58233
58244
  children: [
58234
- me ? /* @__PURE__ */ H(oL, {
58245
+ me ? /* @__PURE__ */ H(cL, {
58235
58246
  label: h,
58236
58247
  htmlFor: te,
58237
58248
  disabled: _e
58238
58249
  }) : null,
58239
- /* @__PURE__ */ H(cL, {
58250
+ /* @__PURE__ */ H(uL, {
58240
58251
  extraContent: f,
58241
58252
  inputWidth: p,
58242
58253
  children: Ee
@@ -58245,10 +58256,10 @@ var lL = I(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
58245
58256
  ]
58246
58257
  }) : Ee;
58247
58258
  });
58248
- lL.displayName = "NumberInputInternal";
58259
+ dL.displayName = "NumberInputInternal";
58249
58260
  //#endregion
58250
58261
  //#region src/blocks/OneFilterPicker/filterTypes/NumberFilter/NumberFilter.tsx
58251
- function uL({ value: e, onChange: t, schema: n, isCompactMode: r }) {
58262
+ function fL({ value: e, onChange: t, schema: n, isCompactMode: r }) {
58252
58263
  let i = {
58253
58264
  mode: n.options?.modes?.[0] ?? "single",
58254
58265
  ...n.options
@@ -58331,7 +58342,7 @@ function uL({ value: e, onChange: t, schema: n, isCompactMode: r }) {
58331
58342
  className: "flex flex-row gap-2",
58332
58343
  children: [/* @__PURE__ */ H("div", {
58333
58344
  className: "min-w-1/2 flex-1",
58334
- children: /* @__PURE__ */ H(lL, {
58345
+ children: /* @__PURE__ */ H(dL, {
58335
58346
  label: u?.mode === "range" ? u?.from?.closed ? o.filters.number.greaterOrEqual : o.filters.number.greaterThan : o.filters.number.value,
58336
58347
  locale: s.locale,
58337
58348
  value: h.from.value,
@@ -58347,7 +58358,7 @@ function uL({ value: e, onChange: t, schema: n, isCompactMode: r }) {
58347
58358
  })
58348
58359
  }), u?.mode === "range" ? /* @__PURE__ */ H("div", {
58349
58360
  className: "min-w-1/2 flex-1",
58350
- children: /* @__PURE__ */ H(lL, {
58361
+ children: /* @__PURE__ */ H(dL, {
58351
58362
  label: u?.to?.closed ? o.filters.number.lessOrEqual : o.filters.number.lessThan,
58352
58363
  locale: s.locale,
58353
58364
  value: h.to.value,
@@ -58362,7 +58373,7 @@ function uL({ value: e, onChange: t, schema: n, isCompactMode: r }) {
58362
58373
  } : void 0
58363
58374
  })
58364
58375
  }) : null]
58365
- }), l ? /* @__PURE__ */ H(XI, {
58376
+ }), l ? /* @__PURE__ */ H(QI, {
58366
58377
  title: o.filters.number.rangeTitle,
58367
58378
  checked: u?.mode === "range",
58368
58379
  onCheckedChange: f
@@ -58380,14 +58391,14 @@ function uL({ value: e, onChange: t, schema: n, isCompactMode: r }) {
58380
58391
  }
58381
58392
  //#endregion
58382
58393
  //#region src/blocks/OneFilterPicker/filterTypes/NumberFilter/definition.tsx
58383
- var dL = (e) => !e || e?.mode === "range" && e?.from?.value === e?.to?.value && e?.from?.value === void 0 || e?.mode === "single" && e?.value === void 0, fL = {
58394
+ var pL = (e) => !e || e?.mode === "range" && e?.from?.value === e?.to?.value && e?.from?.value === void 0 || e?.mode === "single" && e?.value === void 0, mL = {
58384
58395
  min: void 0,
58385
58396
  max: void 0
58386
- }, pL = {
58397
+ }, hL = {
58387
58398
  emptyValue: void 0,
58388
58399
  render: (e) => {
58389
- let t = gI(e.schema.options, fL);
58390
- return /* @__PURE__ */ H(uL, {
58400
+ let t = vI(e.schema.options, mL);
58401
+ return /* @__PURE__ */ H(fL, {
58391
58402
  ...e,
58392
58403
  schema: {
58393
58404
  ...e.schema,
@@ -58395,7 +58406,7 @@ var dL = (e) => !e || e?.mode === "range" && e?.from?.value === e?.to?.value &&
58395
58406
  }
58396
58407
  });
58397
58408
  },
58398
- isEmpty: dL,
58409
+ isEmpty: pL,
58399
58410
  chipLabel: (e, t) => {
58400
58411
  let n = t.i18n;
58401
58412
  if (e?.mode === "single" || e?.mode === void 0) return e?.value === void 0 ? "" : n.t("filters.number.equalShort", { value: e?.value?.toString() });
@@ -58411,20 +58422,20 @@ var dL = (e) => !e || e?.mode === "range" && e?.from?.value === e?.to?.value &&
58411
58422
  }
58412
58423
  return "";
58413
58424
  }
58414
- }, mL = {
58425
+ }, gL = {
58415
58426
  autoComplete: "off",
58416
58427
  "data-1p-ignore": !0,
58417
58428
  "data-lpignore": "true",
58418
58429
  "data-form-type": "other",
58419
58430
  "data-bwignore": !0
58420
- }, hL = (e, t, n) => (r) => {
58431
+ }, _L = (e, t, n) => (r) => {
58421
58432
  e && r.key === "Enter" && r.preventDefault();
58422
58433
  let i = {
58423
58434
  Enter: t,
58424
58435
  Escape: n
58425
58436
  }[r.key];
58426
58437
  i?.();
58427
- }, gL = ({ type: e, onPressEnter: t, onPressEscape: n, ...r }) => {
58438
+ }, vL = ({ type: e, onPressEnter: t, onPressEscape: n, ...r }) => {
58428
58439
  let [i, o] = V(!1), [s, c] = V(!1);
58429
58440
  R(() => {
58430
58441
  r.variant === "inline" && !r.editing && c(!1);
@@ -58451,9 +58462,9 @@ var dL = (e) => !e || e?.mode === "range" && e?.from?.value === e?.to?.value &&
58451
58462
  i,
58452
58463
  e
58453
58464
  ]);
58454
- return /* @__PURE__ */ H(nI, {
58465
+ return /* @__PURE__ */ H(iI, {
58455
58466
  ...r,
58456
- ...e === "private" ? mL : {},
58467
+ ...e === "private" ? gL : {},
58457
58468
  type: l,
58458
58469
  inlineText: e === "private" || e === "password" ? "••••••••" : void 0,
58459
58470
  onFocus: () => {
@@ -58465,14 +58476,14 @@ var dL = (e) => !e || e?.mode === "range" && e?.from?.value === e?.to?.value &&
58465
58476
  e === "private" && (!(n instanceof Node) || !t.currentTarget.contains(n)) && c(!1), r.onBlurWithin?.(t);
58466
58477
  },
58467
58478
  onChange: (t) => r.onChange?.(e === "email" ? t.toLowerCase() : t),
58468
- onKeyDown: hL(r.variant === "inline", t, n),
58479
+ onKeyDown: _L(r.variant === "inline", t, n),
58469
58480
  icon: u,
58470
58481
  buttonToggle: f
58471
58482
  });
58472
58483
  };
58473
58484
  //#endregion
58474
58485
  //#region src/blocks/OneFilterPicker/filterTypes/SearchFilter/SearchFilter.tsx
58475
- function _L({ schema: e, value: t, onChange: n }) {
58486
+ function yL({ schema: e, value: t, onChange: n }) {
58476
58487
  let r = "options" in e ? e.options : void 0, i = (r && "defaultStrict" in r && r.defaultStrict) ?? !1, o = {
58477
58488
  strictToggle: r ? r.strictToggle : !1,
58478
58489
  defaultStrict: r ? i : !1,
@@ -58490,7 +58501,7 @@ function _L({ schema: e, value: t, onChange: n }) {
58490
58501
  }, [u, d] = V(o.defaultStrict), f = z(() => typeof t == "object" && "value" in t ? t.value : t ?? "", [t]);
58491
58502
  return /* @__PURE__ */ H("div", {
58492
58503
  className: "space-y-4 p-2",
58493
- children: /* @__PURE__ */ H(gL, {
58504
+ children: /* @__PURE__ */ H(vL, {
58494
58505
  label: `Search ${e.label.toLowerCase()}...`,
58495
58506
  hideLabel: !0,
58496
58507
  placeholder: `Search ${e.label.toLowerCase()}...`,
@@ -58508,12 +58519,12 @@ function _L({ schema: e, value: t, onChange: n }) {
58508
58519
  }
58509
58520
  //#endregion
58510
58521
  //#region src/blocks/OneFilterPicker/filterTypes/filters.tsx
58511
- var vL = {
58512
- in: JI,
58522
+ var bL = {
58523
+ in: XI,
58513
58524
  search: {
58514
58525
  emptyValue: "",
58515
58526
  defaultOptions: { strictToggle: !1 },
58516
- render: (e) => /* @__PURE__ */ H(_L, { ...e }),
58527
+ render: (e) => /* @__PURE__ */ H(yL, { ...e }),
58517
58528
  isEmpty: (e) => typeof e == "object" && "value" in e ? e.value?.trim() === "" : (e ?? "").trim() === "",
58518
58529
  chipLabel: (e) => typeof e == "object" && "value" in e ? {
58519
58530
  label: e.value,
@@ -58521,23 +58532,23 @@ var vL = {
58521
58532
  avatar: void 0
58522
58533
  } : e ?? ""
58523
58534
  },
58524
- date: bI,
58525
- number: pL
58526
- }, yL = (e) => {
58527
- let t = vL[e];
58535
+ date: SI,
58536
+ number: hL
58537
+ }, xL = (e) => {
58538
+ let t = bL[e];
58528
58539
  if (!t) throw Error(`Filter type ${e.toString()} not found`);
58529
58540
  return t;
58530
- }, bL = (e, t, n) => Object.keys(e).filter((r) => {
58541
+ }, SL = (e, t, n) => Object.keys(e).filter((r) => {
58531
58542
  let i = t[r], a = e[r];
58532
- return !yL(a.type).isEmpty(i, {
58543
+ return !xL(a.type).isEmpty(i, {
58533
58544
  schema: a,
58534
58545
  i18n: n
58535
58546
  });
58536
58547
  });
58537
58548
  //#endregion
58538
58549
  //#region src/blocks/OneFilterPicker/components/FilterChipButton.tsx
58539
- function xL({ filter: e, filterKey: t, value: n, onSelect: r, onRemove: i, disabled: o = !1 }) {
58540
- let [c, l] = V(!0), u = S(), d = yL(e.type), f = a(), [p, m] = V({ label: "" });
58550
+ function CL({ filter: e, filterKey: t, value: n, onSelect: r, onRemove: i, disabled: o = !1 }) {
58551
+ let [c, l] = V(!0), u = S(), d = xL(e.type), f = a(), [p, m] = V({ label: "" });
58541
58552
  return R(() => {
58542
58553
  (async () => {
58543
58554
  if (n === void 0) return;
@@ -58589,13 +58600,13 @@ function xL({ filter: e, filterKey: t, value: n, onSelect: r, onRemove: i, disab
58589
58600
  }
58590
58601
  //#endregion
58591
58602
  //#region src/blocks/OneFilterPicker/components/FiltersChipsList.tsx
58592
- var SL = (e, t) => e ? {} : t;
58593
- function CL({ filters: e, value: t = {}, onFilterSelect: n, onFilterRemove: r, onClearAll: i, hideChips: o = !1, resultCount: s, quickFilterChip: c, onQuickFilterChipSelect: l, disabled: u = !1 }) {
58594
- let d = a(), f = S(), p = bL(e, t, d), m = !o && p.length > 0, h = m || c !== void 0;
58603
+ var wL = (e, t) => e ? {} : t;
58604
+ function TL({ filters: e, value: t = {}, onFilterSelect: n, onFilterRemove: r, onClearAll: i, hideChips: o = !1, resultCount: s, quickFilterChip: c, onQuickFilterChipSelect: l, disabled: u = !1 }) {
58605
+ let d = a(), f = S(), p = SL(e, t, d), m = !o && p.length > 0, h = m || c !== void 0;
58595
58606
  if (!h) return null;
58596
58607
  let g = () => {
58597
58608
  c?.onRemove(), i();
58598
- }, v = SL(u, {
58609
+ }, v = wL(u, {
58599
58610
  onClose: c?.onRemove,
58600
58611
  onClick: l
58601
58612
  });
@@ -58633,10 +58644,10 @@ function CL({ filters: e, value: t = {}, onFilterSelect: n, onFilterRemove: r, o
58633
58644
  let a = e[i];
58634
58645
  if (!e[i]) return null;
58635
58646
  let o = t?.[i];
58636
- return yL(a.type).isEmpty(o, {
58647
+ return xL(a.type).isEmpty(o, {
58637
58648
  schema: a,
58638
58649
  i18n: d
58639
- }) ? null : /* @__PURE__ */ H(xL, {
58650
+ }) ? null : /* @__PURE__ */ H(CL, {
58640
58651
  filter: a,
58641
58652
  filterKey: String(i),
58642
58653
  value: o,
@@ -58656,15 +58667,15 @@ function CL({ filters: e, value: t = {}, onFilterSelect: n, onFilterRemove: r, o
58656
58667
  }
58657
58668
  //#endregion
58658
58669
  //#region src/blocks/OneFilterPicker/components/FilterContent.tsx
58659
- function wL({ selectedFilterKey: e, definition: t, tempFilters: n, onFilterChange: r, isCompactMode: i }) {
58670
+ function EL({ selectedFilterKey: e, definition: t, tempFilters: n, onFilterChange: r, isCompactMode: i }) {
58660
58671
  if (!e) return null;
58661
- let a = t[e], o = yL(a.type);
58672
+ let a = t[e], o = xL(a.type);
58662
58673
  if (!o) throw Error(`Filter type ${a.type} not found`);
58663
58674
  let s = n[e] || o.emptyValue, c = (e, t) => {
58664
58675
  r(e, t);
58665
58676
  };
58666
58677
  function l({ schema: e, value: t, onChange: r }) {
58667
- return yL(e.type).render({
58678
+ return xL(e.type).render({
58668
58679
  schema: e,
58669
58680
  value: t,
58670
58681
  onChange: r,
@@ -58689,7 +58700,7 @@ function wL({ selectedFilterKey: e, definition: t, tempFilters: n, onFilterChang
58689
58700
  }
58690
58701
  //#endregion
58691
58702
  //#region src/blocks/OneFilterPicker/components/FilterListItem.tsx
58692
- function TL({ label: e, isActive: t, isSelected: n, isCompactMode: r, activeDescriptionId: i, onSelect: o }) {
58703
+ function DL({ label: e, isActive: t, isSelected: n, isCompactMode: r, activeDescriptionId: i, onSelect: o }) {
58693
58704
  let s = a(), u = S();
58694
58705
  return /* @__PURE__ */ U("button", {
58695
58706
  className: c("group relative flex w-full appearance-none items-center justify-between rounded px-2 py-1.5 font-medium transition-colors", "hover:bg-f1-background-secondary", n && "bg-f1-background-secondary", l()),
@@ -58729,16 +58740,16 @@ function TL({ label: e, isActive: t, isSelected: n, isCompactMode: r, activeDesc
58729
58740
  }
58730
58741
  //#endregion
58731
58742
  //#region src/blocks/OneFilterPicker/components/FilterList.tsx
58732
- function EL({ definition: e, tempFilters: t, selectedFilterKey: n, onFilterSelect: r, isCompactMode: i, onClickApplyFilters: o, quickFilterLabel: s, quickFilterIcon: u, quickFilterSelected: d, onQuickFilterSelect: f }) {
58743
+ function OL({ definition: e, tempFilters: t, selectedFilterKey: n, onFilterSelect: r, isCompactMode: i, onClickApplyFilters: o, quickFilterLabel: s, quickFilterIcon: u, quickFilterSelected: d, onQuickFilterSelect: f }) {
58733
58744
  let p = a(), m = ft(), h = ft(), g = i ? $e : et, _ = z(() => {
58734
58745
  let t = /* @__PURE__ */ new Map();
58735
58746
  for (let [n, r] of Object.entries(e)) if (r.type === "in" && "options" in r) {
58736
- let e = VI(r);
58747
+ let e = UI(r);
58737
58748
  e.length > 0 && t.set(n, e);
58738
58749
  }
58739
58750
  return t;
58740
58751
  }, [e]), v = (e, n) => {
58741
- let r = yL(n.type), i = t[e], a = !r.isEmpty(i, {
58752
+ let r = xL(n.type), i = t[e], a = !r.isEmpty(i, {
58742
58753
  schema: n,
58743
58754
  i18n: p
58744
58755
  }), o = _.get(e), s = !a && !!o?.some((e) => {
@@ -58783,7 +58794,7 @@ function EL({ definition: e, tempFilters: t, selectedFilterKey: n, onFilterSelec
58783
58794
  ]
58784
58795
  })
58785
58796
  }) : null, y.map((e, t) => {
58786
- let a = e.entries.map(([e, t]) => /* @__PURE__ */ H(TL, {
58797
+ let a = e.entries.map(([e, t]) => /* @__PURE__ */ H(DL, {
58787
58798
  label: t.label,
58788
58799
  isActive: v(e, t),
58789
58800
  isSelected: n === e,
@@ -58819,7 +58830,7 @@ function EL({ definition: e, tempFilters: t, selectedFilterKey: n, onFilterSelec
58819
58830
  }
58820
58831
  //#endregion
58821
58832
  //#region src/blocks/F0FilterPickerContent/internal.tsx
58822
- function DL({ filters: e, tempFilters: t, selectedFilterKey: n, onFilterSelect: r, onFilterChange: i, onApply: o, onClear: s, height: l, showApplyButton: u = !0, applyButtonLabel: d, className: f, quickFilter: p, quickFilterSelected: m, onQuickFilterSelect: h, onStageFilters: g }) {
58833
+ function kL({ filters: e, tempFilters: t, selectedFilterKey: n, onFilterSelect: r, onFilterChange: i, onApply: o, onClear: s, height: l, showApplyButton: u = !0, applyButtonLabel: d, className: f, quickFilter: p, quickFilterSelected: m, onQuickFilterSelect: h, onStageFilters: g }) {
58823
58834
  let _ = a();
58824
58835
  return /* @__PURE__ */ U("div", {
58825
58836
  className: c("flex flex-col transition-all", "max-h-[calc(var(--radix-popover-content-available-height)-15px)] min-h-[250px]", f),
@@ -58827,7 +58838,7 @@ function DL({ filters: e, tempFilters: t, selectedFilterKey: n, onFilterSelect:
58827
58838
  children: [/* @__PURE__ */ U("div", {
58828
58839
  className: "flex min-h-0 flex-1",
58829
58840
  children: [
58830
- /* @__PURE__ */ H(EL, {
58841
+ /* @__PURE__ */ H(OL, {
58831
58842
  definition: e,
58832
58843
  tempFilters: t,
58833
58844
  selectedFilterKey: n,
@@ -58844,7 +58855,7 @@ function DL({ filters: e, tempFilters: t, selectedFilterKey: n, onFilterSelect:
58844
58855
  }) : null,
58845
58856
  n ? /* @__PURE__ */ H("div", {
58846
58857
  className: "min-w-[340px] flex-1",
58847
- children: /* @__PURE__ */ H(wL, {
58858
+ children: /* @__PURE__ */ H(EL, {
58848
58859
  selectedFilterKey: n,
58849
58860
  definition: e,
58850
58861
  tempFilters: t,
@@ -58865,40 +58876,40 @@ function DL({ filters: e, tempFilters: t, selectedFilterKey: n, onFilterSelect:
58865
58876
  }) : null]
58866
58877
  });
58867
58878
  }
58868
- DL.displayName = "FilterPickerInternal";
58879
+ kL.displayName = "FilterPickerInternal";
58869
58880
  //#endregion
58870
58881
  //#region src/blocks/OneFilterPicker/internal/getActiveFiltersValue.ts
58871
- var OL = (e, t, n) => {
58882
+ var AL = (e, t, n) => {
58872
58883
  let r = {};
58873
- for (let i of bL(e, t, n)) r[i] = t[i];
58884
+ for (let i of SL(e, t, n)) r[i] = t[i];
58874
58885
  return r;
58875
58886
  };
58876
58887
  //#endregion
58877
58888
  //#region src/blocks/OneFilterPicker/internal/getClearedFiltersValue.ts
58878
- function kL(e) {
58889
+ function jL(e) {
58879
58890
  let t = {};
58880
58891
  for (let [n, r] of Object.entries(e)) {
58881
58892
  let e = n;
58882
- if (t[e] = yL(r.type).emptyValue, r.type === "in" && "options" in r) for (let e of VI(r)) t[e] = [];
58893
+ if (t[e] = xL(r.type).emptyValue, r.type === "in" && "options" in r) for (let e of UI(r)) t[e] = [];
58883
58894
  }
58884
58895
  return t;
58885
58896
  }
58886
58897
  //#endregion
58887
58898
  //#region src/blocks/OneFilterPicker/components/FiltersControls.tsx
58888
- var AL = /* @__PURE__ */ e(hs(), 1), jL = 388;
58889
- function ML({ id: e, text: t }) {
58899
+ var ML = /* @__PURE__ */ e(hs(), 1), NL = 388;
58900
+ function PL({ id: e, text: t }) {
58890
58901
  return /* @__PURE__ */ H("span", {
58891
58902
  id: e,
58892
58903
  title: t,
58893
58904
  className: "sr-only"
58894
58905
  });
58895
58906
  }
58896
- var NL = I((e, t) => /* @__PURE__ */ H(w, {
58907
+ var FL = I((e, t) => /* @__PURE__ */ H(w, {
58897
58908
  ...e,
58898
58909
  ref: t
58899
58910
  }));
58900
- NL.displayName = "DescribedFilterButton";
58901
- function PL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpenChange: o, hideLabel: s, mode: c = "default", displayCounter: l = !1, quickFilter: u, disabled: d = !1 }) {
58911
+ FL.displayName = "DescribedFilterButton";
58912
+ function IL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpenChange: o, hideLabel: s, mode: c = "default", displayCounter: l = !1, quickFilter: u, disabled: d = !1 }) {
58902
58913
  let f = t ?? e, p = Object.keys(e)[0] ?? null, [m, h] = V(c === "compact" ? null : p), [g, v] = V(!1), y = () => {
58903
58914
  h(null), v(!0);
58904
58915
  }, x = (e) => {
@@ -58932,7 +58943,7 @@ function PL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
58932
58943
  }));
58933
58944
  let ie = B(n);
58934
58945
  R(() => {
58935
- (0, AL.default)(ie.current, n) || (ie.current = n, j(n));
58946
+ (0, ML.default)(ie.current, n) || (ie.current = n, j(n));
58936
58947
  }, [n]);
58937
58948
  let ae = (e, t) => {
58938
58949
  j((n) => ({
@@ -58940,11 +58951,11 @@ function PL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
58940
58951
  [e]: t
58941
58952
  }));
58942
58953
  }, oe = () => {
58943
- g && u?.onApply?.() === !1 || (r(OL(f, A, C)), te(!1, !0));
58954
+ g && u?.onApply?.() === !1 || (r(AL(f, A, C)), te(!1, !0));
58944
58955
  }, se = () => {
58945
- j(kL(f)), u?.chip?.onRemove();
58956
+ j(jL(f)), u?.chip?.onRemove();
58946
58957
  }, N = () => {
58947
- m ? h(null) : (r(OL(f, A, C)), te(!1, !0));
58958
+ m ? h(null) : (r(AL(f, A, C)), te(!1, !0));
58948
58959
  }, P = () => {
58949
58960
  j(n), ne(!1);
58950
58961
  }, ce = () => {
@@ -58953,7 +58964,7 @@ function PL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
58953
58964
  R(() => {
58954
58965
  let t = re.current;
58955
58966
  O && (re.current = !1);
58956
- let n = () => Object.entries(A || {}).find(([t, n]) => e[t] ? !yL(e[t].type).isEmpty(n, {
58967
+ let n = () => Object.entries(A || {}).find(([t, n]) => e[t] ? !xL(e[t].type).isEmpty(n, {
58957
58968
  schema: e[t],
58958
58969
  i18n: C
58959
58970
  }) : !1);
@@ -58971,9 +58982,9 @@ function PL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
58971
58982
  }
58972
58983
  }, [O]);
58973
58984
  let le = z(() => Object.entries(e).reduce((e, [t, n]) => {
58974
- let r = yL(n.type);
58975
- return Math.max(e, r?.formHeight || jL);
58976
- }, 0), [e]), ue = ft(), de = `${ue}-active-filters-description`, fe = z(() => bL(f, n, C), [
58985
+ let r = xL(n.type);
58986
+ return Math.max(e, r?.formHeight || NL);
58987
+ }, 0), [e]), ue = ft(), de = `${ue}-active-filters-description`, fe = z(() => SL(f, n, C), [
58977
58988
  f,
58978
58989
  n,
58979
58990
  C
@@ -58984,11 +58995,11 @@ function PL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
58984
58995
  className: "flex items-center gap-2",
58985
58996
  children: [/* @__PURE__ */ U("div", {
58986
58997
  className: "relative",
58987
- children: [/* @__PURE__ */ H(NL, {
58998
+ children: [/* @__PURE__ */ H(FL, {
58988
58999
  variant: "outline",
58989
59000
  label: C.filters.label,
58990
59001
  "aria-describedby": me ? de : void 0,
58991
- append: me ? /* @__PURE__ */ H(ML, {
59002
+ append: me ? /* @__PURE__ */ H(PL, {
58992
59003
  id: de,
58993
59004
  text: me
58994
59005
  }) : void 0,
@@ -59042,7 +59053,7 @@ function PL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
59042
59053
  /* @__PURE__ */ U("div", {
59043
59054
  className: "flex flex-1 min-h-0 max-h-full",
59044
59055
  children: [
59045
- /* @__PURE__ */ H(EL, {
59056
+ /* @__PURE__ */ H(OL, {
59046
59057
  definition: e,
59047
59058
  tempFilters: A,
59048
59059
  selectedFilterKey: m,
@@ -59059,7 +59070,7 @@ function PL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
59059
59070
  }) : null,
59060
59071
  m ? /* @__PURE__ */ H("div", {
59061
59072
  className: "flex-1 min-w-0 overflow-hidden",
59062
- children: /* @__PURE__ */ H(wL, {
59073
+ children: /* @__PURE__ */ H(EL, {
59063
59074
  selectedFilterKey: m,
59064
59075
  definition: e,
59065
59076
  tempFilters: A,
@@ -59103,11 +59114,11 @@ function PL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
59103
59114
  className: "flex items-center gap-2",
59104
59115
  children: [/* @__PURE__ */ U("div", {
59105
59116
  className: "relative",
59106
- children: [/* @__PURE__ */ H(NL, {
59117
+ children: [/* @__PURE__ */ H(FL, {
59107
59118
  variant: "outline",
59108
59119
  label: C.filters.label,
59109
59120
  "aria-describedby": me ? de : void 0,
59110
- append: me ? /* @__PURE__ */ H(ML, {
59121
+ append: me ? /* @__PURE__ */ H(PL, {
59111
59122
  id: de,
59112
59123
  text: me
59113
59124
  }) : void 0,
@@ -59153,7 +59164,7 @@ function PL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
59153
59164
  exit: { opacity: 0 },
59154
59165
  transition: { duration: .2 },
59155
59166
  className: "h-full w-full bg-f1-background",
59156
- children: /* @__PURE__ */ H(wL, {
59167
+ children: /* @__PURE__ */ H(EL, {
59157
59168
  selectedFilterKey: m,
59158
59169
  definition: e,
59159
59170
  tempFilters: A,
@@ -59166,7 +59177,7 @@ function PL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
59166
59177
  exit: { opacity: 0 },
59167
59178
  transition: { duration: .2 },
59168
59179
  className: "h-full w-full bg-f1-background",
59169
- children: /* @__PURE__ */ H(EL, {
59180
+ children: /* @__PURE__ */ H(OL, {
59170
59181
  definition: e,
59171
59182
  tempFilters: A,
59172
59183
  selectedFilterKey: m,
@@ -59191,11 +59202,11 @@ function PL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
59191
59202
  modal: !0,
59192
59203
  children: [/* @__PURE__ */ H(Ve, {
59193
59204
  asChild: !0,
59194
- children: /* @__PURE__ */ H(NL, {
59205
+ children: /* @__PURE__ */ H(FL, {
59195
59206
  variant: "outline",
59196
59207
  label: C.filters.label,
59197
59208
  "aria-describedby": me ? de : void 0,
59198
- append: me ? /* @__PURE__ */ H(ML, {
59209
+ append: me ? /* @__PURE__ */ H(PL, {
59199
59210
  id: de,
59200
59211
  text: me
59201
59212
  }) : void 0,
@@ -59213,7 +59224,7 @@ function PL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
59213
59224
  id: ue,
59214
59225
  "aria-label": C.filters.label,
59215
59226
  container: D,
59216
- children: /* @__PURE__ */ H(DL, {
59227
+ children: /* @__PURE__ */ H(kL, {
59217
59228
  filters: e,
59218
59229
  tempFilters: A,
59219
59230
  selectedFilterKey: m,
@@ -59225,13 +59236,13 @@ function PL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
59225
59236
  onFilterChange: ae,
59226
59237
  onApply: oe,
59227
59238
  onClear: se,
59228
- height: le || jL
59239
+ height: le || NL
59229
59240
  })
59230
59241
  })]
59231
59242
  })
59232
59243
  });
59233
59244
  }
59234
- var FL = o("Preset", ({ label: e, number: t, onClick: n, selected: r, description: i, onEdit: o, disabled: l = !1 }) => {
59245
+ var LL = o("Preset", ({ label: e, number: t, onClick: n, selected: r, description: i, onEdit: o, disabled: l = !1 }) => {
59235
59246
  let u = a(), f = !!o && !l, g = !!n && !l, [v, y] = V(!1), x = /* @__PURE__ */ U(_.label, {
59236
59247
  layout: !0,
59237
59248
  transition: {
@@ -59305,18 +59316,18 @@ var FL = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
59305
59316
  children: i
59306
59317
  })
59307
59318
  })] }) : x;
59308
- }), IL = (e, t) => {
59319
+ }), RL = (e, t) => {
59309
59320
  let n = e.filter;
59310
59321
  if (typeof n != "object" || !n || Array.isArray(n)) return !1;
59311
59322
  let r = Object.keys(n).filter((e) => n[e] !== void 0), i = Object.keys(t).filter((e) => t[e] !== void 0);
59312
- return r.length === i.length && Object.entries(n).filter(([, e]) => e !== void 0).every(([e, n]) => (0, AL.default)(t[e], n));
59313
- }, LL = 4, RL = ({ presets: e, value: t, onPresetsChange: n, presetsLoading: r = !1, selectedPresetId: i, onSelectPreset: o, editablePresetIds: u, onEditPreset: d, presetActionState: f = "none", onPresetAction: p, disabled: m = !1 }) => {
59323
+ return r.length === i.length && Object.entries(n).filter(([, e]) => e !== void 0).every(([e, n]) => (0, ML.default)(t[e], n));
59324
+ }, zL = 4, BL = ({ presets: e, value: t, onPresetsChange: n, presetsLoading: r = !1, selectedPresetId: i, onSelectPreset: o, editablePresetIds: u, onEditPreset: d, presetActionState: f = "none", onPresetAction: p, disabled: m = !1 }) => {
59314
59325
  let g = a(), _ = z(() => typeof t == "object" && t && !Array.isArray(t) ? t : {}, [t]), v = (e, t) => {
59315
59326
  if (o) return {
59316
59327
  isSelected: t === i,
59317
59328
  handleClick: () => o(t)
59318
59329
  };
59319
- let r = IL(e, _);
59330
+ let r = RL(e, _);
59320
59331
  return {
59321
59332
  isSelected: r,
59322
59333
  handleClick: () => {
@@ -59361,7 +59372,7 @@ var FL = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
59361
59372
  }), g.actions.saveAsPreset]
59362
59373
  });
59363
59374
  let { preset: r, presetId: i } = e, { isSelected: a, handleClick: o } = v(r, i), s = r.itemsCount?.(_), f = u?.includes(i) ?? !1;
59364
- return /* @__PURE__ */ H(FL, {
59375
+ return /* @__PURE__ */ H(LL, {
59365
59376
  label: r.label,
59366
59377
  description: r.description,
59367
59378
  selected: a,
@@ -59406,7 +59417,7 @@ var FL = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
59406
59417
  children: [/* @__PURE__ */ H(s, { className: "h-4 w-24" }), /* @__PURE__ */ H(s, { className: "h-4 w-6" })]
59407
59418
  }, t);
59408
59419
  if (r) {
59409
- let e = Array.from({ length: LL }, (e, t) => t);
59420
+ let e = Array.from({ length: zL }, (e, t) => t);
59410
59421
  return /* @__PURE__ */ H(le, {
59411
59422
  items: e,
59412
59423
  renderListItem: w,
@@ -59422,7 +59433,7 @@ var FL = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
59422
59433
  min: 1,
59423
59434
  fluidItems: !0
59424
59435
  });
59425
- }, zL = ut({
59436
+ }, VL = ut({
59426
59437
  filters: {},
59427
59438
  value: {},
59428
59439
  presets: [],
@@ -59444,16 +59455,16 @@ var FL = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
59444
59455
  presetActionState: "none",
59445
59456
  onPresetAction: void 0,
59446
59457
  disabled: !1
59447
- }), BL = ut("optimistic");
59458
+ }), HL = ut("optimistic");
59448
59459
  //#endregion
59449
59460
  //#region src/blocks/OneFilterPicker/internal/useFilterChangeEvent.ts
59450
- function VL(e, t) {
59451
- let { onEvent: n } = QF(), r = a();
59461
+ function UL(e, t) {
59462
+ let { onEvent: n } = eI(), r = a();
59452
59463
  return (i, a) => {
59453
59464
  if (!e) return;
59454
- let o = new Set(bL(e, t, r)), s = new Set(bL(e, i, r)), c = Object.keys(e).flatMap((e) => {
59465
+ let o = new Set(SL(e, t, r)), s = new Set(SL(e, i, r)), c = Object.keys(e).flatMap((e) => {
59455
59466
  let n = o.has(e), r = s.has(e);
59456
- return !n && !r || (0, AL.default)(t[e], i[e]) ? [] : [{
59467
+ return !n && !r || (0, ML.default)(t[e], i[e]) ? [] : [{
59457
59468
  name: e,
59458
59469
  action: r ? "applied" : "cleared"
59459
59470
  }];
@@ -59466,8 +59477,8 @@ function VL(e, t) {
59466
59477
  }
59467
59478
  //#endregion
59468
59479
  //#region src/blocks/OneFilterPicker/OneFilterPicker.tsx
59469
- var HL = ({ filters: e, value: t, children: n, presetsLoading: r = !1, mode: i = "default", onOpenChange: a, ...o }) => {
59470
- let s = dt(BL), { emitFilterChange: c, emitPresetClick: l } = eI({ defaultFilters: B(t).current }), [u, d] = V(!1);
59480
+ var WL = ({ filters: e, value: t, children: n, presetsLoading: r = !1, mode: i = "default", onOpenChange: a, ...o }) => {
59481
+ let s = dt(HL), { emitFilterChange: c, emitPresetClick: l } = nI({ defaultFilters: B(t).current }), [u, d] = V(!1);
59471
59482
  R(() => {
59472
59483
  a?.(u);
59473
59484
  }, [u, a]);
@@ -59475,15 +59486,15 @@ var HL = ({ filters: e, value: t, children: n, presetsLoading: r = !1, mode: i =
59475
59486
  R(() => {
59476
59487
  p(t ?? {});
59477
59488
  }, [JSON.stringify(e), JSON.stringify(t)]);
59478
- let m = s === "controlled" ? t : f, h = VL(e, m), g = (t) => {
59489
+ let m = s === "controlled" ? t : f, h = UL(e, m), g = (t) => {
59479
59490
  let n = e?.[t], r = /* @__PURE__ */ new Set([String(t)]);
59480
- if (n?.type === "in" && n.options) for (let e of VI(n)) r.add(String(e));
59491
+ if (n?.type === "in" && n.options) for (let e of UI(n)) r.add(String(e));
59481
59492
  let i = Object.fromEntries(Object.entries(m).filter(([e]) => !r.has(e)));
59482
59493
  s === "optimistic" && p(i), h(i, "remove"), o.onChange(i);
59483
59494
  }, _ = (e) => {
59484
59495
  s === "optimistic" && p(e), o.onChange(e);
59485
59496
  };
59486
- return /* @__PURE__ */ H(zL.Provider, {
59497
+ return /* @__PURE__ */ H(VL.Provider, {
59487
59498
  value: {
59488
59499
  ...o,
59489
59500
  mode: i,
@@ -59502,10 +59513,10 @@ var HL = ({ filters: e, value: t, children: n, presetsLoading: r = !1, mode: i =
59502
59513
  children: n
59503
59514
  });
59504
59515
  };
59505
- HL.displayName = "OneFilterPicker.Root";
59506
- var UL = () => {
59507
- let { value: e, filters: t, isFiltersOpen: n, setIsFiltersOpen: r, setFiltersValue: i, presets: a, emitFilterChange: o, emitUserFilterChange: s, mode: c, displayCounter: l, quickFilter: u, disabled: d } = dt(zL), f = t ? Object.fromEntries(Object.entries(t).filter(([e, t]) => !t.hideSelector)) : void 0;
59508
- return !f || Object.keys(f).length === 0 ? null : /* @__PURE__ */ U(gt, { children: [/* @__PURE__ */ H(PL, {
59516
+ WL.displayName = "OneFilterPicker.Root";
59517
+ var GL = () => {
59518
+ let { value: e, filters: t, isFiltersOpen: n, setIsFiltersOpen: r, setFiltersValue: i, presets: a, emitFilterChange: o, emitUserFilterChange: s, mode: c, displayCounter: l, quickFilter: u, disabled: d } = dt(VL), f = t ? Object.fromEntries(Object.entries(t).filter(([e, t]) => !t.hideSelector)) : void 0;
59519
+ return !f || Object.keys(f).length === 0 ? null : /* @__PURE__ */ U(gt, { children: [/* @__PURE__ */ H(IL, {
59509
59520
  filters: f,
59510
59521
  allFilters: t,
59511
59522
  value: e,
@@ -59524,12 +59535,12 @@ var UL = () => {
59524
59535
  children: /* @__PURE__ */ H("div", { className: "mx-2 h-4 w-px bg-f1-background-secondary-hover" })
59525
59536
  }) : null] });
59526
59537
  };
59527
- UL.displayName = "OneFilterPicker.Controls";
59528
- var WL = () => {
59529
- let { presets: e, presetsLoading: t, value: n, setFiltersValue: r, emitPresetClick: i, selectedPresetId: a, onSelectPreset: o, editablePresetIds: s, onEditPreset: c, presetActionState: l, onPresetAction: u, disabled: d } = dt(zL);
59530
- return e && /* @__PURE__ */ H(tI, {
59538
+ GL.displayName = "OneFilterPicker.Controls";
59539
+ var KL = () => {
59540
+ let { presets: e, presetsLoading: t, value: n, setFiltersValue: r, emitPresetClick: i, selectedPresetId: a, onSelectPreset: o, editablePresetIds: s, onEditPreset: c, presetActionState: l, onPresetAction: u, disabled: d } = dt(VL);
59541
+ return e && /* @__PURE__ */ H(rI, {
59531
59542
  onError: (e) => console.error("[f0-react] FiltersPresets failed to render; hiding the presets row", e),
59532
- children: /* @__PURE__ */ H(RL, {
59543
+ children: /* @__PURE__ */ H(BL, {
59533
59544
  presets: e,
59534
59545
  presetsLoading: t,
59535
59546
  value: n,
@@ -59549,14 +59560,14 @@ var WL = () => {
59549
59560
  })
59550
59561
  });
59551
59562
  };
59552
- WL.displayName = "Filters.Presets";
59553
- var GL = () => {
59554
- let { value: e, filters: t, setIsFiltersOpen: n, presets: r, removeFilterValue: i, setFiltersValue: a, resultCount: o, emitUserFilterChange: s, onSelectPreset: c, quickFilter: l, disabled: u } = dt(zL), d = z(() => c || !r?.length ? !1 : r.some((t) => IL(t, e)), [
59563
+ KL.displayName = "Filters.Presets";
59564
+ var qL = () => {
59565
+ let { value: e, filters: t, setIsFiltersOpen: n, presets: r, removeFilterValue: i, setFiltersValue: a, resultCount: o, emitUserFilterChange: s, onSelectPreset: c, quickFilter: l, disabled: u } = dt(VL), d = z(() => c || !r?.length ? !1 : r.some((t) => RL(t, e)), [
59555
59566
  r,
59556
59567
  e,
59557
59568
  c
59558
59569
  ]);
59559
- return t && /* @__PURE__ */ H(CL, {
59570
+ return t && /* @__PURE__ */ H(TL, {
59560
59571
  filters: t,
59561
59572
  value: e,
59562
59573
  onFilterSelect: () => n(!0),
@@ -59571,28 +59582,28 @@ var GL = () => {
59571
59582
  disabled: u
59572
59583
  });
59573
59584
  };
59574
- GL.displayName = "OneFilterPicker.ChipsList";
59575
- var KL = (e) => {
59585
+ qL.displayName = "OneFilterPicker.ChipsList";
59586
+ var JL = (e) => {
59576
59587
  let { dataTestId: t, ...n } = e;
59577
59588
  return /* @__PURE__ */ H(i, {
59578
59589
  dataTestId: t,
59579
- children: /* @__PURE__ */ U(HL, {
59590
+ children: /* @__PURE__ */ U(WL, {
59580
59591
  ...n,
59581
59592
  children: [/* @__PURE__ */ U("div", {
59582
59593
  className: c("flex items-center justify-between gap-4", !n.filters && "justify-end"),
59583
59594
  children: [n.filters ? /* @__PURE__ */ U("div", {
59584
59595
  className: "flex min-w-0 flex-1 gap-1",
59585
- children: [/* @__PURE__ */ H(UL, {}), /* @__PURE__ */ H(WL, {})]
59596
+ children: [/* @__PURE__ */ H(GL, {}), /* @__PURE__ */ H(KL, {})]
59586
59597
  }) : null, n.children ? /* @__PURE__ */ H("div", {
59587
59598
  className: "flex shrink-0 items-center gap-2",
59588
59599
  children: n.children
59589
59600
  }) : null]
59590
- }), !n.mode || n.mode === "default" ? /* @__PURE__ */ H(GL, {}) : null]
59601
+ }), !n.mode || n.mode === "default" ? /* @__PURE__ */ H(qL, {}) : null]
59591
59602
  })
59592
59603
  });
59593
59604
  };
59594
- KL.displayName = "OneFilterPicker";
59595
- var qL = KL, JL = ({ filters: e, currentFilters: t, onFiltersChange: n }) => {
59605
+ JL.displayName = "OneFilterPicker";
59606
+ var YL = JL, XL = ({ filters: e, currentFilters: t, onFiltersChange: n }) => {
59596
59607
  let [r, i] = V([]), o = a();
59597
59608
  if (R(() => {
59598
59609
  (async () => {
@@ -59603,7 +59614,7 @@ var qL = KL, JL = ({ filters: e, currentFilters: t, onFiltersChange: n }) => {
59603
59614
  label: i,
59604
59615
  displayText: String(n)
59605
59616
  };
59606
- let a = vL[r.type];
59617
+ let a = bL[r.type];
59607
59618
  if (!a?.chipLabel) return {
59608
59619
  key: t,
59609
59620
  label: i,
@@ -59669,14 +59680,14 @@ var qL = KL, JL = ({ filters: e, currentFilters: t, onFiltersChange: n }) => {
59669
59680
  })
59670
59681
  }) });
59671
59682
  };
59672
- JL.displayName = "ActiveFiltersChips";
59683
+ XL.displayName = "ActiveFiltersChips";
59673
59684
  //#endregion
59674
59685
  //#region src/blocks/F0Select/components/SelectTopActions.tsx
59675
- var YL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, searchValue: r, grouping: i, currentGrouping: o, onGroupingChange: s, filters: c, currentFilters: l, onFiltersChange: u, asList: d = !1, onFiltersOpenChange: f, showPreview: p = !1 }) => {
59686
+ var ZL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, searchValue: r, grouping: i, currentGrouping: o, onGroupingChange: s, filters: c, currentFilters: l, onFiltersChange: u, asList: d = !1, onFiltersOpenChange: f, showPreview: p = !1 }) => {
59676
59687
  let m = a(), [h, g] = V(!1), v = L((e) => {
59677
59688
  g(e), f?.(e);
59678
59689
  }, [f]);
59679
- return !e && !c && !JF(i) ? null : /* @__PURE__ */ U("div", {
59690
+ return !e && !c && !XF(i) ? null : /* @__PURE__ */ U("div", {
59680
59691
  className: "flex flex-col",
59681
59692
  children: [/* @__PURE__ */ U("div", {
59682
59693
  className: "flex gap-2 p-2 border-0 border-b border-solid border-f1-border-secondary",
@@ -59684,7 +59695,7 @@ var YL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
59684
59695
  className: "flex flex-1 flex-row gap-2",
59685
59696
  children: [e ? /* @__PURE__ */ H("div", {
59686
59697
  className: "flex-1",
59687
- children: /* @__PURE__ */ H(SI, {
59698
+ children: /* @__PURE__ */ H(wI, {
59688
59699
  placeholder: t ?? m.toc.search,
59689
59700
  onChange: n,
59690
59701
  value: r,
@@ -59692,20 +59703,20 @@ var YL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
59692
59703
  autoFocus: !d && !h,
59693
59704
  clearable: !0
59694
59705
  })
59695
- }) : null, c ? /* @__PURE__ */ H(qL, {
59706
+ }) : null, c ? /* @__PURE__ */ H(YL, {
59696
59707
  filters: c,
59697
59708
  value: l,
59698
59709
  onChange: u,
59699
59710
  mode: p ? "inline" : d ? "simple" : "compact",
59700
59711
  onOpenChange: v
59701
59712
  }) : null]
59702
- }), /* @__PURE__ */ H(YF, {
59713
+ }), /* @__PURE__ */ H(ZF, {
59703
59714
  hideLabel: !0,
59704
59715
  grouping: i,
59705
59716
  currentGrouping: o,
59706
59717
  onGroupingChange: s
59707
59718
  })]
59708
- }), /* @__PURE__ */ H(b, { children: c && XL(l) ? /* @__PURE__ */ H(_.div, {
59719
+ }), /* @__PURE__ */ H(b, { children: c && QL(l) ? /* @__PURE__ */ H(_.div, {
59709
59720
  initial: {
59710
59721
  opacity: 0,
59711
59722
  height: 0
@@ -59723,14 +59734,14 @@ var YL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
59723
59734
  duration: .3,
59724
59735
  bounce: 0
59725
59736
  },
59726
- children: /* @__PURE__ */ H(JL, {
59737
+ children: /* @__PURE__ */ H(XL, {
59727
59738
  filters: c,
59728
59739
  currentFilters: l,
59729
59740
  onFiltersChange: u
59730
59741
  })
59731
59742
  }) : null })]
59732
59743
  });
59733
- }, XL = (e) => Object.entries(e).some(([, e]) => e == null ? !1 : Array.isArray(e) ? e.length > 0 : e !== ""), ZL = ({ enabled: e, open: t, restingText: n, onOpen: r, onClose: i, onSearchChange: a, onSearchReset: o, onCloseEmpty: s, closeWasRequested: c, onActiveMove: l, onSelectActive: u, onBackspaceOnEmpty: d, triggerRef: f }) => {
59744
+ }, QL = (e) => Object.entries(e).some(([, e]) => e == null ? !1 : Array.isArray(e) ? e.length > 0 : e !== ""), $L = ({ enabled: e, open: t, restingText: n, onOpen: r, onClose: i, onSearchChange: a, onSearchReset: o, onCloseEmpty: s, closeWasRequested: c, onActiveMove: l, onSelectActive: u, onBackspaceOnEmpty: d, triggerRef: f }) => {
59734
59745
  let [p, m] = V(n), [h, g] = V(!1), _ = B(null);
59735
59746
  R(() => {
59736
59747
  e && !h && m(n);
@@ -59828,7 +59839,7 @@ var YL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
59828
59839
  t
59829
59840
  ])
59830
59841
  };
59831
- }, QL = $S(), $L = 400, eR = (e, t) => {
59842
+ }, eR = $S(), tR = 400, nR = (e, t) => {
59832
59843
  if (e.type === "separator" || !t) return !0;
59833
59844
  let n = t.toLowerCase(), r = e.metadata?.type === "dialCode" ? e.metadata.dialCode : void 0;
59834
59845
  return [
@@ -59836,9 +59847,9 @@ var YL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
59836
59847
  e.description,
59837
59848
  r
59838
59849
  ].some((e) => e?.toLowerCase().includes(n));
59839
- }, tR = (e) => {
59850
+ }, rR = (e) => {
59840
59851
  if (e.type !== "separator" && e.tag !== void 0 && typeof e.tag != "string") return e.tag.type;
59841
- }, nR = O({
59852
+ }, iR = O({
59842
59853
  base: "flex flex-col rounded-md border border-solid bg-f1-background max-h-full",
59843
59854
  variants: { status: {
59844
59855
  default: "border-f1-border-secondary",
@@ -59847,14 +59858,14 @@ var YL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
59847
59858
  info: "border-f1-border-info-bold"
59848
59859
  } },
59849
59860
  defaultVariants: { status: "default" }
59850
- }), rR = c("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", Je({ variant: "label" })), iR = I(function({ label: e, placeholder: t, selection: n, hasValue: r }, i) {
59861
+ }), aR = c("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", Je({ variant: "label" })), oR = I(function({ label: e, placeholder: t, selection: n, hasValue: r }, i) {
59851
59862
  return /* @__PURE__ */ U(SF, {
59852
59863
  ref: i,
59853
59864
  "aria-label": e,
59854
- className: c(rR, l()),
59865
+ className: c(aR, l()),
59855
59866
  children: [/* @__PURE__ */ H("span", {
59856
59867
  className: "flex min-w-0 max-w-full items-center",
59857
- children: r ? /* @__PURE__ */ H(RF, {
59868
+ children: r ? /* @__PURE__ */ H(BF, {
59858
59869
  selection: n,
59859
59870
  totalSelectedCount: 1
59860
59871
  }) : /* @__PURE__ */ H("span", {
@@ -59871,8 +59882,8 @@ var YL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
59871
59882
  })]
59872
59883
  });
59873
59884
  });
59874
- iR.displayName = "InlineSelectTrigger";
59875
- var aR = I(function({ variant: e = "field", placeholder: t, onChange: n, withApplySelection: r = !1, applySelectionLabel: o, onChangeSelectedOption: s, value: l, options: u = [], mapOptions: d, children: f, disabled: p, open: m, defaultOpen: h, hideLabel: g, onOpenChange: _, showSearchBox: v, onSearchChange: b, searchBoxPlaceholder: x, searchEmptyMessage: S, searchEmptyAction: C, spaciousEmptyState: w, size: T, actions: D, onCreate: O, onFiltersChange: k, source: A, label: j, icon: M, labelIcon: ee, clearable: te, loading: ne, name: re, error: ie, status: ae, hint: oe, required: se, multiple: P, portalContainer: ce, asList: le = !1, showPreview: ue = !1, hideArrow: de = !1, preserveSelectionOnDatasetChange: fe = !0, fitContentWidth: pe, getSelectedLabel: me, dataTestId: he, ...ge }, _e) {
59885
+ oR.displayName = "InlineSelectTrigger";
59886
+ var sR = I(function({ variant: e = "field", placeholder: t, onChange: n, withApplySelection: r = !1, applySelectionLabel: o, onChangeSelectedOption: s, value: l, options: u = [], mapOptions: d, children: f, disabled: p, open: m, defaultOpen: h, hideLabel: g, onOpenChange: _, showSearchBox: v, onSearchChange: b, searchBoxPlaceholder: x, searchEmptyMessage: S, searchEmptyAction: C, spaciousEmptyState: w, size: T, actions: D, onCreate: O, onFiltersChange: k, source: A, label: j, icon: M, labelIcon: ee, clearable: te, loading: ne, name: re, error: ie, status: ae, hint: oe, required: se, multiple: P, portalContainer: ce, asList: le = !1, showPreview: ue = !1, hideArrow: de = !1, preserveSelectionOnDatasetChange: fe = !0, fitContentWidth: pe, getSelectedLabel: me, dataTestId: he, ...ge }, _e) {
59876
59887
  let ve = ft(), be = T ?? "sm", xe = dt(HM), Se = xe.portalContainer && (xe.position === "center" || xe.position === "fullscreen"), Ce = ce === void 0 ? Se ? xe.portalContainer : void 0 : ce, we = "onSelectItems" in ge ? ge.onSelectItems : void 0, Te = "disableSelectAll" in ge && ge.disableSelectAll, [Ee, De] = Oe({
59877
59888
  prop: m,
59878
59889
  defaultProp: h,
@@ -59884,7 +59895,7 @@ var aR = I(function({ variant: e = "field", placeholder: t, onChange: n, withApp
59884
59895
  let Re = z(() => cN(ge.defaultItem).filter((e) => e !== void 0), [ge.defaultItem]), ze = z(() => Re.map((e) => String(e.value)), [Re]), [Be, Ve] = V(() => (cN(l) ?? ze ?? []).map(String)), He = e === "inline" && typeof l == "string" ? String(l) : void 0;
59885
59896
  R(() => {
59886
59897
  let e = (cN(l) ?? []).map(String);
59887
- if (!(0, QL.isEqual)(e, Be ?? [])) {
59898
+ if (!(0, eR.isEqual)(e, Be ?? [])) {
59888
59899
  let e = cN(l) ?? ze ?? [];
59889
59900
  Ve(Array.from(new Set(e.map(String))));
59890
59901
  }
@@ -59894,7 +59905,7 @@ var aR = I(function({ variant: e = "field", placeholder: t, onChange: n, withApp
59894
59905
  return {
59895
59906
  ...A,
59896
59907
  dataAdapter: A ? A.dataAdapter : { fetchData: ({ search: e }) => {
59897
- let t = "searchFn" in ge && ge.searchFn ? ge.searchFn : eR;
59908
+ let t = "searchFn" in ge && ge.searchFn ? ge.searchFn : nR;
59898
59909
  return { records: u.filter((n) => t(n, e) ?? !0) };
59899
59910
  } }
59900
59911
  };
@@ -60001,7 +60012,7 @@ var aR = I(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60001
60012
  at,
60002
60013
  Re,
60003
60014
  me
60004
- ]), _t = z(() => Je.records.some((e) => tR(qe(e)) === "status") || ht.some((e) => tR(e) === "status"), [
60015
+ ]), _t = z(() => Je.records.some((e) => rR(qe(e)) === "status") || ht.some((e) => rR(e) === "status"), [
60005
60016
  Je.records,
60006
60017
  qe,
60007
60018
  ht
@@ -60014,7 +60025,7 @@ var aR = I(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60014
60025
  let St = (e) => {
60015
60026
  xt(), A ? bt.current = setTimeout(() => {
60016
60027
  bt.current = null, yt(e);
60017
- }, $L) : yt(e);
60028
+ }, tR) : yt(e);
60018
60029
  }, Ct = P && !le, wt = !!(r && Ct), Tt = B(!1), Et = B(!0), Dt = B(null), Ot = B(null), kt = L((e, t) => {
60019
60030
  if (!P && !te && !t && Be[0] === e) return;
60020
60031
  Tt.current = !0, st(e, t);
@@ -60146,7 +60157,7 @@ var aR = I(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60146
60157
  fe
60147
60158
  ]);
60148
60159
  let qt = Ke.grouping?.collapsible ?? !1, Jt = Ke.grouping?.defaultOpenGroups, { openGroups: Yt, setGroupOpen: Xt } = ZM(Je?.type === "grouped" ? Je.groups : [], Jt), Zt = L((e, t) => e.map((e, n) => {
60149
- let r = qe(e), i = tR(r);
60160
+ let r = qe(e), i = rR(r);
60150
60161
  if (i !== void 0 && (t.add(i), t.size > 1)) throw Error(`[F0Select] All options must use the same tag type, but multiple were provided: ${Array.from(t).map((e) => `"${e}"`).join(", ")}.`);
60151
60162
  return r.type === "separator" ? {
60152
60163
  height: 1,
@@ -60157,7 +60168,7 @@ var aR = I(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60157
60168
  height: r.description ? 64 : 32,
60158
60169
  key: `item-${r.value}`,
60159
60170
  type: "item",
60160
- item: /* @__PURE__ */ H(KF, {
60171
+ item: /* @__PURE__ */ H(JF, {
60161
60172
  item: r,
60162
60173
  optionId: nt ? Me(String(r.value)) : void 0
60163
60174
  }, String(r.value)),
@@ -60281,7 +60292,7 @@ var aR = I(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60281
60292
  kt
60282
60293
  ]), fn = !P && ht[0] ? String(jF(ht[0])) : "", pn = P ? Math.max(Be.length, ut.selectedItemsCount) : +!!Be[0], mn = pn > 0, hn = () => {
60283
60294
  Tt.current = !0, lt(), it.current.clear(), s?.(void 0, !1);
60284
- }, { draft: gn, inputRef: _n, focusInput: vn, resetText: yn, handleChange: bn, handleFocus: xn, handleClick: Sn, handleBlur: Cn, handleKeyDown: wn } = ZL({
60295
+ }, { draft: gn, inputRef: _n, focusInput: vn, resetText: yn, handleChange: bn, handleFocus: xn, handleClick: Sn, handleBlur: Cn, handleKeyDown: wn } = $L({
60285
60296
  enabled: nt,
60286
60297
  open: !!Ee,
60287
60298
  restingText: nt ? fn : "",
@@ -60349,7 +60360,7 @@ var aR = I(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60349
60360
  onCancel: Vt,
60350
60361
  showCancelButton: wt
60351
60362
  }),
60352
- top: /* @__PURE__ */ U(gt, { children: [/* @__PURE__ */ H(YL, {
60363
+ top: /* @__PURE__ */ U(gt, { children: [/* @__PURE__ */ H(ZL, {
60353
60364
  searchValue: et,
60354
60365
  onSearchChange: yt,
60355
60366
  searchBoxPlaceholder: x,
@@ -60374,7 +60385,7 @@ var aR = I(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60374
60385
  items: ht,
60375
60386
  paddingTop: !rt && !Ke.filters
60376
60387
  }) : null] }),
60377
- right: P && !Wt && ue ? /* @__PURE__ */ H(VF, {
60388
+ right: P && !Wt && ue ? /* @__PURE__ */ H(UF, {
60378
60389
  items: ht,
60379
60390
  onDeselect: (e) => kt(e, !1),
60380
60391
  allSelected: ct.allSelected,
@@ -60388,7 +60399,7 @@ var aR = I(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60388
60399
  isLoading: Qe,
60389
60400
  showLoadingIndicator: !!f,
60390
60401
  portalContainer: Ce
60391
- }), kn = `${ve}-selection`, [An, jn] = V(!1), Mn = /* @__PURE__ */ H(RF, {
60402
+ }), kn = `${ve}-selection`, [An, jn] = V(!1), Mn = /* @__PURE__ */ H(BF, {
60392
60403
  multiple: P,
60393
60404
  totalSelectedCount: pn,
60394
60405
  allSelected: ct.allSelected,
@@ -60396,7 +60407,7 @@ var aR = I(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60396
60407
  hideItemIcon: !!M,
60397
60408
  noTooltip: !0,
60398
60409
  onSpelledOutChange: jn
60399
- }), Nn = ht.map(jF).filter(Boolean).join(", "), Pn = (e) => {
60410
+ }), Nn = NF(ht.map(jF).filter(Boolean), pn, (e) => rn.t("toc.moreResults", { count: e })), Pn = (e) => {
60400
60411
  let t = /* @__PURE__ */ H("div", {
60401
60412
  className: c("w-full min-w-0", !!f && "h-full", nt && Ee && "relative z-50"),
60402
60413
  children: e
@@ -60420,7 +60431,7 @@ var aR = I(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60420
60431
  disabled: p
60421
60432
  }) : null,
60422
60433
  /* @__PURE__ */ H("div", {
60423
- className: c("flex-1 min-h-0", nR({ status: ie ? "error" : ae?.type ? ae?.type : "default" })),
60434
+ className: c("flex-1 min-h-0", iR({ status: ie ? "error" : ae?.type ? ae?.type : "default" })),
60424
60435
  children: /* @__PURE__ */ H(WP, {
60425
60436
  ...sn,
60426
60437
  children: On
@@ -60432,7 +60443,7 @@ var aR = I(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60432
60443
  });
60433
60444
  let Fn = /* @__PURE__ */ U(WP, {
60434
60445
  ...sn,
60435
- children: [e === "inline" ? /* @__PURE__ */ H(iR, {
60446
+ children: [e === "inline" ? /* @__PURE__ */ H(oR, {
60436
60447
  ref: Fe,
60437
60448
  label: j,
60438
60449
  placeholder: t,
@@ -60523,6 +60534,6 @@ var aR = I(function({ variant: e = "field", placeholder: t, onChange: n, withApp
60523
60534
  dataTestId: he,
60524
60535
  children: e === "inline" ? Fn : Pn(Fn)
60525
60536
  });
60526
- }), oR = o("F0Select", aR);
60537
+ }), cR = o("F0Select", sR);
60527
60538
  //#endregion
60528
- export { PM as $, Oo as $n, MS as $t, wF as A, zs as An, bt as Ar, iw as At, oN as B, as as Bn, DC as Bt, eI as C, Js as Cn, Dt as Cr, yw as Ct, HF as D, Gs as Dn, Ct as Dr, lw as Dt, JF as E, K as En, wt as Er, uw as Et, cF as F, As as Fn, qC as Ft, qM as G, qo as Gn, kC as Gt, iN as H, ts as Hn, MC as Ht, sF as I, gs as In, UC as It, HM as J, Io as Jn, $S as Jt, KM as K, Wo as Kn, jC as Kt, WP as L, hs as Ln, BC as Lt, bF as M, Is as Mn, ew as Mt, gF as N, js as Nn, QC as Nt, RF as O, Us as On, St as Or, cw as Ot, tF as P, ks as Pn, XC as Pt, FM as Q, ko as Qn, AS as Qt, cN as R, ms as Rn, zC as Rt, tI as S, ec as Sn, Ot as Sr, qT as St, YF as T, Ks as Tn, Tt as Tr, hw as Tt, $M as U, Xo as Un, IC as Ut, aN as V, is as Vn, FC as Vt, ZM as W, Jo as Wn, NC as Wt, WM as X, Po as Xn, NS as Xt, UM as Y, Fo as Yn, QS as Yt, VM as Z, Ao as Zn, jS as Zt, hI as _, ic as _n, Nt as _r, JE as _t, BL as a, Hu as an, Qa as ar, lj as at, rI as b, nc as bn, At as br, KE as bt, EL as c, Fu as cn, Ia as cr, Wk as ct, yL as d, zc as dn, zt as dr, yD as dt, DS as en, To as er, MM as et, gL as f, Sc as fn, Rt as fr, _D as ft, CI as g, lc as gn, Pt as gr, XE as gt, SI as h, mc as hn, Ft as hr, ZE as ht, VL as i, Ku as in, $a as ir, SM as it, xF as j, Ls as jn, yt as jr, nw as jt, jF as k, Bs as kn, xt as kr, aw as kt, wL as l, Tl as ln, Na as lr, Uk as lt, XI as m, _c as mn, It as mr, $E as mt, aR as n, ES as nn, oo as nr, DM as nt, OL as o, zu as on, Ya as or, Xk as ot, lL as p, yc as pn, Lt as pr, eD as pt, JM as q, Ho as qn, LC as qt, qL as r, Gu as rn, eo as rr, xM as rt, DL as s, Lu as sn, Ja as sr, Kk as st, oR as t, kS as tn, Co as tr, kM as tt, bL as u, pl as un, Bt as ur, Tk as ut, uI as v, Qs as vn, Mt as vr, GE as vt, ZF as w, qs as wn, Et as wr, _w as wt, nI as x, tc as xn, kt as xr, dE as xt, lI as y, Zs as yn, jt as yr, qE as yt, sN as z, us as zn, AC as zt };
60539
+ export { PM as $, Oo as $n, MS as $t, wF as A, zs as An, bt as Ar, iw as At, oN as B, as as Bn, DC as Bt, nI as C, Js as Cn, Dt as Cr, yw as Ct, WF as D, Gs as Dn, Ct as Dr, lw as Dt, XF as E, K as En, wt as Er, uw as Et, cF as F, As as Fn, qC as Ft, qM as G, qo as Gn, kC as Gt, iN as H, ts as Hn, MC as Ht, sF as I, gs as In, UC as It, HM as J, Io as Jn, $S as Jt, KM as K, Wo as Kn, jC as Kt, WP as L, hs as Ln, BC as Lt, bF as M, Is as Mn, ew as Mt, gF as N, js as Nn, QC as Nt, BF as O, Us as On, St as Or, cw as Ot, tF as P, ks as Pn, XC as Pt, FM as Q, ko as Qn, AS as Qt, cN as R, ms as Rn, zC as Rt, rI as S, ec as Sn, Ot as Sr, qT as St, ZF as T, Ks as Tn, Tt as Tr, hw as Tt, $M as U, Xo as Un, IC as Ut, aN as V, is as Vn, FC as Vt, ZM as W, Jo as Wn, NC as Wt, WM as X, Po as Xn, NS as Xt, UM as Y, Fo as Yn, QS as Yt, VM as Z, Ao as Zn, jS as Zt, _I as _, ic as _n, Nt as _r, JE as _t, HL as a, Hu as an, Qa as ar, lj as at, aI as b, nc as bn, At as br, KE as bt, OL as c, Fu as cn, Ia as cr, Wk as ct, xL as d, zc as dn, zt as dr, yD as dt, DS as en, To as er, MM as et, vL as f, Sc as fn, Rt as fr, _D as ft, TI as g, lc as gn, Pt as gr, XE as gt, wI as h, mc as hn, Ft as hr, ZE as ht, UL as i, Ku as in, $a as ir, SM as it, xF as j, Ls as jn, yt as jr, nw as jt, jF as k, Bs as kn, xt as kr, aw as kt, EL as l, Tl as ln, Na as lr, Uk as lt, QI as m, _c as mn, It as mr, $E as mt, sR as n, ES as nn, oo as nr, DM as nt, AL as o, zu as on, Ya as or, Xk as ot, dL as p, yc as pn, Lt as pr, eD as pt, JM as q, Ho as qn, LC as qt, YL as r, Gu as rn, eo as rr, xM as rt, kL as s, Lu as sn, Ja as sr, Kk as st, cR as t, kS as tn, Co as tr, kM as tt, SL as u, pl as un, Bt as ur, Tk as ut, fI as v, Qs as vn, Mt as vr, GE as vt, $F as w, qs as wn, Et as wr, _w as wt, iI as x, tc as xn, kt as xr, dE as xt, dI as y, Zs as yn, jt as yr, qE as yt, sN as z, us as zn, AC as zt };