@factorialco/f0-react 12.0.2 → 12.2.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 (37) hide show
  1. package/dist/{ChatPostComposerDialog-BjrsNFUH.js → ChatPostComposerDialog-DxjgJvww.js} +3 -3
  2. package/dist/{CoachmarkProvider-BJFpsBQz.js → CoachmarkProvider-DxxTrrK0.js} +27397 -27397
  3. package/dist/{DocumentToolbar-CS2Z7HiZ.js → DocumentToolbar-MbpAP2xa.js} +5 -5
  4. package/dist/{DocxViewer-B_NnBwF0.js → DocxViewer-DLnunbBn.js} +2 -2
  5. package/dist/{F0AiProcessingOverlay-_6Q5DfJg.js → F0AiProcessingOverlay-cNJdJNme.js} +1063 -1047
  6. package/dist/{F0CanvasPanel-BMURqtcr.js → F0CanvasPanel-d0ARNvCs.js} +7881 -7877
  7. package/dist/F0DocumentViewer-CMTc9-v6.js +3 -0
  8. package/dist/{F0DocumentViewer-DRm6fqh4.js → F0DocumentViewer-DU0u8sE9.js} +39 -39
  9. package/dist/{F0Map-f0PCE1Mz.js → F0Map-Ytutlfjd.js} +125 -125
  10. package/dist/{F0Select-BcKwX9W8.js → F0Select-DKCy1C1n.js} +5549 -5477
  11. package/dist/F0Text-BtzfLrwP.js +81 -0
  12. package/dist/F0VideoPlayer-BZmP3fGi.js +1 -0
  13. package/dist/{F0VideoPlayer-CRXj4sNZ.js → F0VideoPlayer-DWE0J3NR.js} +290 -290
  14. package/dist/{Map-Cq4G6JVt.js → Map-DyNfwVdY.js} +20 -20
  15. package/dist/{PdfThumbnail-BEH1NBCB.js → PdfThumbnail-C-F-aujX.js} +1 -1
  16. package/dist/{SheetViewer-CcXri71G.js → SheetViewer-BRTqhc5o.js} +6 -6
  17. package/dist/{TextViewer-BMHUpHg-.js → TextViewer-_rXZwM4E.js} +2 -2
  18. package/dist/ai.d.ts +2 -2
  19. package/dist/ai.js +4 -4
  20. package/dist/component-status.js +1 -1
  21. package/dist/{dist-UTTWm0CV.js → dist-DvxtFKDL.js} +1 -1
  22. package/dist/experimental.d.ts +2 -2
  23. package/dist/experimental.js +4529 -4707
  24. package/dist/{exports-CMhLojYN.d.ts → exports-CnbBeOMM.d.ts} +1 -1
  25. package/dist/f0.d.ts +3 -3
  26. package/dist/f0.js +500 -500
  27. package/dist/{index-aXC2gQbs.d.ts → index-DE9tIS8D.d.ts} +1 -1
  28. package/dist/{maplibre-B2bLeY4t.js → maplibre-BMdn9aMc.js} +1 -1
  29. package/dist/{pdfWorker-C7GrpmLJ.js → pdfWorker-YDigL1gB.js} +1 -1
  30. package/dist/{popover-B-ET_Kay.js → popover-BjrPOMeQ.js} +1 -1
  31. package/dist/styles.css +1 -1
  32. package/dist/{types-CEo4cZBQ.d.ts → types-DiDeZRzi.d.ts} +5 -1
  33. package/dist/{useData-DpxY5-yo.js → useData-BPTvQHGp.js} +5800 -4789
  34. package/package.json +1 -1
  35. package/dist/F0DocumentViewer-7PUNVXNk.js +0 -3
  36. package/dist/F0Text-Bu80O85X.js +0 -1093
  37. package/dist/F0VideoPlayer-cuFJGYLM.js +0 -1
@@ -1,9 +1,9 @@
1
- import { a as e, o as t, pi as n } from "./CoachmarkProvider-BJFpsBQz.js";
2
- import { Bt as r, Ft as i, Gt as a, _n as o, b as s, er as c, on as l, sn as u, sr as d, yn as f } from "./popover-B-ET_Kay.js";
1
+ import { a as e, o as t, pi as n } from "./CoachmarkProvider-DxxTrrK0.js";
2
+ import { Ht as r, Lt as i, Mt as a, Zn as o, b as s, gn as c, in as l, ir as u, mn as d, rn as f } from "./popover-BjrPOMeQ.js";
3
3
  import { L as p, R as m } from "./tooltip-BX4dSfeL.js";
4
- import { n as h, r as g } from "./F0Text-Bu80O85X.js";
5
- import { Io as _, Z as v, _s as y, ao as b } from "./F0CanvasPanel-BMURqtcr.js";
6
- import { K as x, X as S, j as ee, y as C } from "./useData-DpxY5-yo.js";
4
+ import { n as h } from "./F0Text-BtzfLrwP.js";
5
+ import { Fo as g, X as _, gs as v, io as y } from "./F0CanvasPanel-d0ARNvCs.js";
6
+ import { V as b, Z as x, j as S, q as ee, y as C } from "./useData-BPTvQHGp.js";
7
7
  import { a as w, n as T, o as te, s as ne, t as E } from "./dist-Cuwaibqg.js";
8
8
  import { createContext as D, forwardRef as O, useCallback as k, useContext as A, useEffect as j, useId as re, useImperativeHandle as ie, useLayoutEffect as ae, useMemo as M, useRef as N, useState as P } from "react";
9
9
  import { Fragment as oe, jsx as F, jsxs as I } from "react/jsx-runtime";
@@ -144,7 +144,7 @@ var ce = (e, t) => ({
144
144
  let e = Ce.xl;
145
145
  return -(e.d - e.caretOverlap + e.caretH + R + we) + 3;
146
146
  }, z = "hsl(var(--white-100))", B = O(function(e, t) {
147
- let { size: r = "md", selected: i = !1, collapsed: a = !1, label: o, showLabel: s = !0, labelPlacement: l = "right", onClick: h, ariaLabel: g, presentational: _ = !1, dataTestId: v, className: y } = e, b = e.variant ?? "color", x = Ce[i ? "xl" : r], S = !!h, w = b === "color" || b === "icon" || b === "letter", T = b === "person" && "firstName" in e ? e.firstName + e.lastName : (b === "team" || b === "company") && "name" in e ? e.name : null, te = w ? e.color ?? "radical" : T ? b === "person" && "src" in e && e.src ? "grey" : ee(T) ?? "grey" : "neutral", ne = n(), E = i ? 32 : {
147
+ let { size: r = "md", selected: i = !1, collapsed: a = !1, label: s, showLabel: d = !0, labelPlacement: f = "right", onClick: h, ariaLabel: g, presentational: _ = !1, dataTestId: v, className: y } = e, b = e.variant ?? "color", x = Ce[i ? "xl" : r], ee = !!h, w = b === "color" || b === "icon" || b === "letter", T = b === "person" && "firstName" in e ? e.firstName + e.lastName : (b === "team" || b === "company") && "name" in e ? e.name : null, te = w ? e.color ?? "radical" : T ? b === "person" && "src" in e && e.src ? "grey" : S(T) ?? "grey" : "neutral", ne = n(), E = i ? 32 : {
148
148
  xs: 12,
149
149
  sm: 16,
150
150
  md: 20,
@@ -158,7 +158,7 @@ var ce = (e, t) => ({
158
158
  className: "flex shrink-0 items-center justify-center transition-transform duration-200 ease-out",
159
159
  style: { transform: `scale(${k})` },
160
160
  children: e
161
- }), j = b === "color" ? null : b === "icon" && "icon" in e ? /* @__PURE__ */ F(u, {
161
+ }), j = b === "color" ? null : b === "icon" && "icon" in e ? /* @__PURE__ */ F(l, {
162
162
  icon: e.icon,
163
163
  size: x.icon,
164
164
  color: "#ffffff",
@@ -220,7 +220,7 @@ var ce = (e, t) => ({
220
220
  backgroundColor: z
221
221
  }
222
222
  }) : j
223
- }), ae = /* @__PURE__ */ F(c, { children: i ? /* @__PURE__ */ F(f.svg, {
223
+ }), ae = /* @__PURE__ */ F(o, { children: i ? /* @__PURE__ */ F(c.svg, {
224
224
  width: x.caretW,
225
225
  height: x.caretH,
226
226
  viewBox: "0 0 16 13",
@@ -254,7 +254,7 @@ var ce = (e, t) => ({
254
254
  className: "relative inline-flex",
255
255
  style: { filter: `drop-shadow(0 ${x.shadowY}px ${x.shadowBlur / 2}px hsl(${Se} / 0.3))` },
256
256
  children: [ae, ie]
257
- }), N = Ce[r], P = x.d / 2, se = R, ce = i ? Te() : -P, le = i ? "bottom" : l, ue = `0 0 ${Math.max(2, Math.round(N.label * .28))}px ${z}`, de = [
257
+ }), N = Ce[r], P = x.d / 2, se = R, ce = i ? Te() : -P, le = i ? "bottom" : f, ue = `0 0 ${Math.max(2, Math.round(N.label * .28))}px ${z}`, de = [
258
258
  ue,
259
259
  ue,
260
260
  `0 1px 2px ${z}`,
@@ -281,7 +281,7 @@ var ce = (e, t) => ({
281
281
  transform: `translate(-50%, ${i ? se : me}px)`,
282
282
  style: { paddingTop: N.gap + (i ? 4 : 0) }
283
283
  }
284
- }[le], ge = o && s && !a && /* @__PURE__ */ F("span", {
284
+ }[le], ge = s && d && !a && /* @__PURE__ */ F("span", {
285
285
  className: p("absolute left-0 top-0 font-semibold leading-tight transition-all duration-200 ease-out", pe),
286
286
  style: {
287
287
  color: `hsl(${be[te]})`,
@@ -291,7 +291,7 @@ var ce = (e, t) => ({
291
291
  maxWidth: fe ? N.maxLabelW : void 0,
292
292
  ...he.style
293
293
  },
294
- children: o
294
+ children: s
295
295
  }), _e = /* @__PURE__ */ F("span", {
296
296
  "aria-hidden": !0,
297
297
  className: "absolute left-0 top-0 rounded-full border-solid transition-all duration-200 ease-out",
@@ -319,9 +319,9 @@ var ce = (e, t) => ({
319
319
  }),
320
320
  ge
321
321
  ] });
322
- return /* @__PURE__ */ F(d, {
322
+ return /* @__PURE__ */ F(u, {
323
323
  dataTestId: v,
324
- children: S ? /* @__PURE__ */ F("button", {
324
+ children: ee ? /* @__PURE__ */ F("button", {
325
325
  ref: t,
326
326
  type: "button",
327
327
  ..._ ? {
@@ -384,7 +384,7 @@ var Ee = B, V = (e, t) => `hsl(${xe(e, t).replace(/ /g, ", ")})`, De = (e, t) =>
384
384
  }
385
385
  }, Ne = ({ children: e }) => /* @__PURE__ */ F("div", {
386
386
  className: je(H.control),
387
- children: /* @__PURE__ */ F(h, {
387
+ children: /* @__PURE__ */ F(b, {
388
388
  ...ke,
389
389
  borderRadius: H.control,
390
390
  padding: "none",
@@ -394,8 +394,8 @@ var Ee = B, V = (e, t) => `hsl(${xe(e, t).replace(/ /g, ", ")})`, De = (e, t) =>
394
394
  })
395
395
  })
396
396
  }), Pe = O(({ onZoomIn: e, onZoomOut: t, onFit: n, onLocate: r, labels: i, dataTestId: a }, o) => {
397
- let c = l(), u = !!(r || n), f = !!(e || t), p = (e) => /* @__PURE__ */ F(Ne, { children: e });
398
- return /* @__PURE__ */ F(d, {
397
+ let c = f(), l = !!(r || n), d = !!(e || t), p = (e) => /* @__PURE__ */ F(Ne, { children: e });
398
+ return /* @__PURE__ */ F(u, {
399
399
  dataTestId: a,
400
400
  children: /* @__PURE__ */ I("div", {
401
401
  ref: o,
@@ -403,32 +403,32 @@ var Ee = B, V = (e, t) => `hsl(${xe(e, t).replace(/ /g, ", ")})`, De = (e, t) =>
403
403
  "aria-orientation": "vertical",
404
404
  "aria-label": c.map.navigation,
405
405
  className: "flex flex-col items-center gap-2",
406
- children: [u ? p(/* @__PURE__ */ I(oe, { children: [n ? /* @__PURE__ */ F(s, {
406
+ children: [l ? p(/* @__PURE__ */ I(oe, { children: [n ? /* @__PURE__ */ F(s, {
407
407
  variant: "ghost",
408
408
  size: "md",
409
409
  label: i?.fit ?? c.map.controls.fit,
410
- icon: y,
410
+ icon: v,
411
411
  hideLabel: !0,
412
412
  onClick: n
413
413
  }) : null, r ? /* @__PURE__ */ F(s, {
414
414
  variant: "ghost",
415
415
  size: "md",
416
416
  label: i?.locate ?? c.map.controls.locate,
417
- icon: b,
417
+ icon: y,
418
418
  hideLabel: !0,
419
419
  onClick: r
420
- }) : null] })) : null, f ? p(/* @__PURE__ */ I(oe, { children: [e ? /* @__PURE__ */ F(s, {
420
+ }) : null] })) : null, d ? p(/* @__PURE__ */ I(oe, { children: [e ? /* @__PURE__ */ F(s, {
421
421
  variant: "ghost",
422
422
  size: "md",
423
423
  label: i?.zoomIn ?? c.map.controls.zoomIn,
424
- icon: S,
424
+ icon: x,
425
425
  hideLabel: !0,
426
426
  onClick: e
427
427
  }) : null, t ? /* @__PURE__ */ F(s, {
428
428
  variant: "ghost",
429
429
  size: "md",
430
430
  label: i?.zoomOut ?? c.map.controls.zoomOut,
431
- icon: x,
431
+ icon: ee,
432
432
  hideLabel: !0,
433
433
  onClick: t
434
434
  }) : null] })) : null]
@@ -447,18 +447,18 @@ var G = (e, t) => {
447
447
  default: return t;
448
448
  }
449
449
  }, Fe = O(function({ points: e, selectedId: t, onSelect: n, visible: r = !1, label: i, id: a, dataTestId: o, className: s }, c) {
450
- let u = l(), f = i ?? u.map.listLabel;
451
- return /* @__PURE__ */ F(d, {
450
+ let l = f(), d = i ?? l.map.listLabel;
451
+ return /* @__PURE__ */ F(u, {
452
452
  dataTestId: o,
453
453
  children: /* @__PURE__ */ I("nav", {
454
454
  ref: c,
455
455
  id: a,
456
- "aria-label": f,
456
+ "aria-label": d,
457
457
  tabIndex: -1,
458
458
  className: p("outline-none", r ? "absolute inset-0 z-20 overflow-auto bg-f1-background p-4" : "sr-only", s),
459
459
  children: [r ? /* @__PURE__ */ F("h2", {
460
460
  className: "text-f1-foreground mb-2 text-base font-medium",
461
- children: f
461
+ children: d
462
462
  }) : null, /* @__PURE__ */ F("ul", {
463
463
  className: r ? "flex flex-col gap-0.5" : void 0,
464
464
  children: e.map((e) => /* @__PURE__ */ F("li", { children: /* @__PURE__ */ F("button", {
@@ -466,7 +466,7 @@ var G = (e, t) => {
466
466
  "aria-current": e.id === t || void 0,
467
467
  onClick: () => n(e.id),
468
468
  className: p("w-full text-left", r && "text-f1-foreground hover:bg-f1-background-hover aria-[current=true]:bg-f1-background-selected rounded-md px-3 py-2 text-sm"),
469
- children: G(e, u.map.unnamedLocation)
469
+ children: G(e, l.map.unnamedLocation)
470
470
  }) }, e.id))
471
471
  })]
472
472
  })
@@ -733,7 +733,7 @@ var Ie = ({ adapter: e, points: t, enabled: n, radius: r = 12, clusterRadius: i
733
733
  case "workplace": return {
734
734
  variant: {
735
735
  variant: "icon",
736
- icon: _
736
+ icon: g
737
737
  },
738
738
  color: qe
739
739
  };
@@ -781,14 +781,14 @@ var Y = Xe, Ze = 4, Qe = 3, $e = 1.3, et = 1.08, X = "cubic-bezier(0.16, 1, 0.3,
781
781
  [8, 8]
782
782
  ]
783
783
  }, rt = O(function({ count: e, members: t, onClick: n, ariaLabel: r, dataTestId: i, className: a }, o) {
784
- let s = l(), [c, u] = P(!1), f = t.slice(0, e <= Ze ? Ze : Qe), m = Math.max(0, e - f.length), h = m > 0, g = m > 99 ? "+99" : `+${m}`, _ = nt[f.length + +!!h] ?? nt[4], v = c ? $e : 1, y = c ? et : 1, b = (e) => {
784
+ let s = f(), [c, l] = P(!1), d = t.slice(0, e <= Ze ? Ze : Qe), m = Math.max(0, e - d.length), h = m > 0, g = m > 99 ? "+99" : `+${m}`, _ = nt[d.length + +!!h] ?? nt[4], v = c ? $e : 1, y = c ? et : 1, b = (e) => {
785
785
  let [t, n] = _[e] ?? [0, 0];
786
786
  return {
787
787
  transform: `translate(${t * v}px, ${n * v}px) scale(${y})`,
788
788
  transition: `transform 240ms ${X}`
789
789
  };
790
790
  };
791
- return /* @__PURE__ */ F(d, {
791
+ return /* @__PURE__ */ F(u, {
792
792
  dataTestId: i,
793
793
  children: /* @__PURE__ */ I("div", {
794
794
  ref: o,
@@ -799,10 +799,10 @@ var Y = Xe, Ze = 4, Qe = 3, $e = 1.3, et = 1.08, X = "cubic-bezier(0.16, 1, 0.3,
799
799
  onKeyDown: (e) => {
800
800
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), n?.());
801
801
  },
802
- onPointerEnter: () => u(!0),
803
- onPointerLeave: () => u(!1),
804
- onFocus: () => u(!0),
805
- onBlur: () => u(!1),
802
+ onPointerEnter: () => l(!0),
803
+ onPointerLeave: () => l(!1),
804
+ onFocus: () => l(!0),
805
+ onBlur: () => l(!1),
806
806
  className: p("group relative h-0 w-0 cursor-pointer outline-none", a),
807
807
  children: [
808
808
  /* @__PURE__ */ F("span", {
@@ -815,7 +815,7 @@ var Y = Xe, Ze = 4, Qe = 3, $e = 1.3, et = 1.08, X = "cubic-bezier(0.16, 1, 0.3,
815
815
  height: tt
816
816
  }
817
817
  }),
818
- f.map((e, t) => /* @__PURE__ */ F("span", {
818
+ d.map((e, t) => /* @__PURE__ */ F("span", {
819
819
  className: "absolute left-0 top-0 flex leading-none",
820
820
  style: {
821
821
  zIndex: t,
@@ -827,7 +827,7 @@ var Y = Xe, Ze = 4, Qe = 3, $e = 1.3, et = 1.08, X = "cubic-bezier(0.16, 1, 0.3,
827
827
  })
828
828
  }, t)),
829
829
  h ? (() => {
830
- let [e, t] = _[f.length] ?? [0, 0];
830
+ let [e, t] = _[d.length] ?? [0, 0];
831
831
  return /* @__PURE__ */ I("span", {
832
832
  className: p("absolute left-0 top-0 flex h-6 min-w-6 items-center justify-center overflow-hidden rounded-full px-1.5", "border border-solid border-f1-border-secondary", "text-f1-foreground-secondary text-sm font-medium leading-none"),
833
833
  style: {
@@ -923,8 +923,8 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
923
923
  }), j(() => {
924
924
  a.style.zIndex = n ? "2" : "";
925
925
  }, [a, n]), se(i, a);
926
- }, st = ({ adapter: e, points: t, selectedId: n, highlightedId: r, onSelect: i, onMarkerDrag: a, onMarkerDragEnd: o, onClusterExpand: s }) => {
927
- let u = l(), d = !!o, p = M(() => d ? t.filter((e) => !e.draggable) : t, [t, d]), m = Ie({
926
+ }, st = ({ adapter: e, points: t, selectedId: n, highlightedId: r, onSelect: i, onMarkerDrag: a, onMarkerDragEnd: s, onClusterExpand: l }) => {
927
+ let u = f(), d = !!s, p = M(() => d ? t.filter((e) => !e.draggable) : t, [t, d]), m = Ie({
928
928
  adapter: e,
929
929
  points: p,
930
930
  enabled: !0
@@ -937,11 +937,11 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
937
937
  p,
938
938
  t
939
939
  ]), _ = J(e, it) ? "lg" : "md", v = We(e, g, _), y = new Map(t.map((e) => [e.id, e])), b = h.length > 0, x = at(e, n ? y.get(n) : void 0, g, _);
940
- return /* @__PURE__ */ I(c, { children: [h.map((t) => /* @__PURE__ */ F($, {
940
+ return /* @__PURE__ */ I(o, { children: [h.map((t) => /* @__PURE__ */ F($, {
941
941
  adapter: e,
942
942
  coordinates: t.coordinates,
943
943
  selected: !1,
944
- children: /* @__PURE__ */ F(f.span, {
944
+ children: /* @__PURE__ */ F(c.span, {
945
945
  initial: {
946
946
  scale: .8,
947
947
  opacity: 0
@@ -968,20 +968,20 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
968
968
  children: /* @__PURE__ */ F(Z, {
969
969
  count: t.count,
970
970
  members: t.pointIds.map((e) => y.get(e)).filter((e) => !!e).map(ot),
971
- onClick: () => s(t.bounds)
971
+ onClick: () => l(t.bounds)
972
972
  })
973
973
  })
974
974
  }, t.id)), g.map((t) => {
975
- let s = v[t.id], l = x?.has(t.id) ?? !1, d = r === t.id;
975
+ let l = v[t.id], d = x?.has(t.id) ?? !1, f = r === t.id;
976
976
  return /* @__PURE__ */ F($, {
977
977
  adapter: e,
978
978
  coordinates: t.coordinates,
979
- selected: n === t.id || d,
980
- drag: t.draggable && o ? {
979
+ selected: n === t.id || f,
980
+ drag: t.draggable && s ? {
981
981
  onDrag: a && ((e) => a(t.id, e)),
982
- onDragEnd: (e) => o(t.id, e)
982
+ onDragEnd: (e) => s(t.id, e)
983
983
  } : void 0,
984
- children: /* @__PURE__ */ F(f.span, {
984
+ children: /* @__PURE__ */ F(c.span, {
985
985
  initial: { opacity: 0 },
986
986
  animate: { opacity: 1 },
987
987
  exit: {
@@ -996,9 +996,9 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
996
996
  ease: "easeOut"
997
997
  },
998
998
  className: "absolute left-0 top-0",
999
- children: /* @__PURE__ */ F(c, {
999
+ children: /* @__PURE__ */ F(o, {
1000
1000
  initial: !1,
1001
- children: /* @__PURE__ */ F(f.span, {
1001
+ children: /* @__PURE__ */ F(c.span, {
1002
1002
  initial: { opacity: 0 },
1003
1003
  animate: { opacity: 1 },
1004
1004
  exit: { opacity: 0 },
@@ -1011,10 +1011,10 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
1011
1011
  ...ot(t),
1012
1012
  size: _,
1013
1013
  label: t.label,
1014
- showLabel: n === t.id || d || !b && s !== null,
1015
- labelPlacement: s ?? "right",
1014
+ showLabel: n === t.id || f || !b && l !== null,
1015
+ labelPlacement: l ?? "right",
1016
1016
  selected: n === t.id,
1017
- collapsed: l,
1017
+ collapsed: d,
1018
1018
  onClick: () => i(t.id),
1019
1019
  presentational: !0,
1020
1020
  ariaLabel: t.label ?? u.map.unnamedLocation
@@ -1024,44 +1024,44 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
1024
1024
  })
1025
1025
  }, t.id);
1026
1026
  })] });
1027
- }, ct = ({ children: e, open: t, offsetX: n, offsetY: r = U.inset, width: a, entrance: o = "slide", headerStart: s, headerEnd: c, ariaLabel: u, dataTestId: f }) => {
1028
- let m = l(), g = i(), _ = t ? W.enter : W.exit, v = n - U.inset, y = N({
1029
- from: v,
1030
- to: v
1027
+ }, ct = ({ children: e, open: t, offsetX: n, offsetY: r = U.inset, width: i, entrance: o = "slide", headerStart: s, headerEnd: c, ariaLabel: l, dataTestId: d }) => {
1028
+ let m = f(), h = a(), g = t ? W.enter : W.exit, _ = n - U.inset, v = N({
1029
+ from: _,
1030
+ to: _
1031
1031
  });
1032
- y.current.to !== v && (y.current = {
1033
- from: y.current.to,
1034
- to: v
1032
+ v.current.to !== _ && (v.current = {
1033
+ from: v.current.to,
1034
+ to: _
1035
1035
  });
1036
- let b = v > y.current.from ? W.enter : W.exit, x = o === "grow" ? "translateX(-10%) scale(0.97)" : `translateX(calc(-100% - ${U.inset}px))`;
1037
- return /* @__PURE__ */ F(d, {
1038
- dataTestId: f,
1036
+ let y = _ > v.current.from ? W.enter : W.exit, x = o === "grow" ? "translateX(-10%) scale(0.97)" : `translateX(calc(-100% - ${U.inset}px))`;
1037
+ return /* @__PURE__ */ F(u, {
1038
+ dataTestId: d,
1039
1039
  children: /* @__PURE__ */ F("div", {
1040
1040
  className: "pointer-events-none absolute bottom-2 z-10",
1041
1041
  style: {
1042
1042
  left: U.inset,
1043
1043
  top: r,
1044
- width: a,
1045
- transform: `translateX(${v}px)`,
1046
- transitionProperty: g ? "none" : "transform, top",
1047
- transitionDuration: b.duration,
1048
- transitionTimingFunction: b.easing
1044
+ width: i,
1045
+ transform: `translateX(${_}px)`,
1046
+ transitionProperty: h ? "none" : "transform, top",
1047
+ transitionDuration: y.duration,
1048
+ transitionTimingFunction: y.easing
1049
1049
  },
1050
1050
  children: /* @__PURE__ */ F("div", {
1051
1051
  role: "complementary",
1052
- "aria-label": u ?? m.map.panel,
1052
+ "aria-label": l ?? m.map.panel,
1053
1053
  ref: (e) => {
1054
1054
  t ? e?.removeAttribute("inert") : e?.setAttribute("inert", "");
1055
1055
  },
1056
1056
  className: p("relative h-full overflow-hidden text-base", je(H.panel), t ? "pointer-events-auto" : "opacity-0"),
1057
1057
  style: {
1058
- transform: t || g ? "translateX(0px) scale(1)" : x,
1058
+ transform: t || h ? "translateX(0px) scale(1)" : x,
1059
1059
  transformOrigin: o === "grow" ? "left center" : void 0,
1060
- transitionProperty: g ? "opacity" : "transform, opacity",
1061
- transitionDuration: _.duration,
1062
- transitionTimingFunction: _.easing
1060
+ transitionProperty: h ? "opacity" : "transform, opacity",
1061
+ transitionDuration: g.duration,
1062
+ transitionTimingFunction: g.easing
1063
1063
  },
1064
- children: /* @__PURE__ */ F(h, {
1064
+ children: /* @__PURE__ */ F(b, {
1065
1065
  ...ke,
1066
1066
  borderRadius: H.panel,
1067
1067
  padding: "none",
@@ -1116,20 +1116,20 @@ function vt({ enabled: e, children: t, ...n }) {
1116
1116
  });
1117
1117
  }
1118
1118
  function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
1119
- let { isInstant: i, landInstantly: a } = gt(), o = _t(), [s, c] = P(ne.primary), [l, u] = P(ne.panel), [d, f] = v({
1119
+ let { isInstant: r, landInstantly: a } = gt(), o = _t(), [s, c] = P(ne.primary), [l, u] = P(ne.panel), [d, f] = _({
1120
1120
  key: ft,
1121
1121
  fallback: null,
1122
1122
  validate: pt,
1123
1123
  debounceMs: 200
1124
1124
  }), p = lt(o, s, Math.max(320, l)), m = Math.min(l, p), h = d === null ? m : ut(d, p), g = k(function(e) {
1125
1125
  c(e);
1126
- }, []), _ = N(l), y = k(function(e) {
1127
- e !== _.current && (_.current = e, a(), u(e));
1126
+ }, []), v = N(l), y = k(function(e) {
1127
+ e !== v.current && (v.current = e, a(), u(e));
1128
1128
  }, [a]), b = k(function(e) {
1129
1129
  a(), f(e);
1130
1130
  }, [a, f]), x = k(function() {
1131
1131
  a(), f(null);
1132
- }, [a, f]), S = r(`(max-width: ${s + (e ? m : ne.panel) + te.mainMin - 1}px)`, { initializeWithValue: !0 }) ? "overlay" : "docked", [ee, C] = P(!1), w = N(0), T = k(function() {
1132
+ }, [a, f]), S = i(`(max-width: ${s + (e ? m : ne.panel) + te.mainMin - 1}px)`, { initializeWithValue: !0 }) ? "overlay" : "docked", [ee, C] = P(!1), w = N(0), T = k(function() {
1133
1133
  C(!1);
1134
1134
  }, []);
1135
1135
  ae(function() {
@@ -1190,7 +1190,7 @@ function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
1190
1190
  closeOverPage: re,
1191
1191
  closeOverPageAfterRouteChange: oe,
1192
1192
  topBarHeight: t,
1193
- isInstant: i,
1193
+ isInstant: r,
1194
1194
  landInstantly: a
1195
1195
  };
1196
1196
  }, [
@@ -1209,7 +1209,7 @@ function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
1209
1209
  re,
1210
1210
  oe,
1211
1211
  t,
1212
- i,
1212
+ r,
1213
1213
  a
1214
1214
  ]);
1215
1215
  return /* @__PURE__ */ F(mt.Provider, {
@@ -1237,34 +1237,34 @@ function wt() {
1237
1237
  }
1238
1238
  var Tt = (e, t) => e.navigationMode === "overlay" ? e.isOpenOverPage ? "unlocked" : "hidden" : t ? "locked" : "hidden", Et = (e, t, n) => e || !t ? n ? "unlocked" : "hidden" : "locked";
1239
1239
  function Dt({ children: e }) {
1240
- let { currentPath: t } = o(), n = ht(), [i, a] = P(!1), [s, c] = P(!1), l = i ? T.xl : T.md, u = r(`(max-width: ${l}px)`, { initializeWithValue: !0 }), [d, f] = P(() => {
1240
+ let { currentPath: t } = d(), n = ht(), [r, a] = P(!1), [o, s] = P(!1), c = r ? T.xl : T.md, l = i(`(max-width: ${c}px)`, { initializeWithValue: !0 }), [u, f] = P(() => {
1241
1241
  let e = localStorage.getItem(bt);
1242
1242
  return e === null || !!e;
1243
1243
  }), [p, m] = P(!1), [h, g] = P(null), _ = k(function() {
1244
1244
  n ? n.closeOverPage() : m(!1);
1245
1245
  }, [n]), v = k(function({ isInvokedByUser: e } = { isInvokedByUser: !0 }) {
1246
- n?.navigationMode === "overlay" ? n.toggleOverPage() : (c(e ?? !0), u && !n && m(!p), f(!d));
1246
+ n?.navigationMode === "overlay" ? n.toggleOverPage() : (s(e ?? !0), l && !n && m(!p), f(!u));
1247
1247
  }, [
1248
1248
  n,
1249
- u,
1249
+ l,
1250
1250
  p,
1251
- d
1251
+ u
1252
1252
  ]), y = k(function(e) {
1253
- u || n || St.has(e.nativeEvent) || (e.clientX < 32 && m(!0), e.clientX > 280 && m(!1));
1254
- }, [u, n]), b = n ? Tt(n, d) : Et(u, d, p), x = n?.closeOverPageAfterRouteChange;
1253
+ l || n || St.has(e.nativeEvent) || (e.clientX < 32 && m(!0), e.clientX > 280 && m(!1));
1254
+ }, [l, n]), b = n ? Tt(n, u) : Et(l, u, p), x = n?.closeOverPageAfterRouteChange;
1255
1255
  j(function() {
1256
1256
  m(!1), x?.();
1257
1257
  }, [t, x]), j(function() {
1258
- s && localStorage.setItem(bt, d ? "1" : "");
1259
- }, [d, s]), j(function() {
1258
+ o && localStorage.setItem(bt, u ? "1" : "");
1259
+ }, [u, o]), j(function() {
1260
1260
  return () => {
1261
1261
  g(b);
1262
1262
  };
1263
1263
  }, [b]);
1264
1264
  let S = n !== null, ee = M(function() {
1265
1265
  return {
1266
- isSmallScreen: u,
1267
- isLastToggleInvokedByUser: s,
1266
+ isSmallScreen: l,
1267
+ isLastToggleInvokedByUser: o,
1268
1268
  sidebarState: b,
1269
1269
  hideSidebar: _,
1270
1270
  toggleSidebar: v,
@@ -1273,8 +1273,8 @@ function Dt({ children: e }) {
1273
1273
  hasPrimarySidebar: S
1274
1274
  };
1275
1275
  }, [
1276
- u,
1277
- s,
1276
+ l,
1277
+ o,
1278
1278
  b,
1279
1279
  _,
1280
1280
  v,
@@ -1359,30 +1359,30 @@ function Gt({ isExpanded: e, isHovered: t = !1 }) {
1359
1359
  });
1360
1360
  }
1361
1361
  function Kt() {
1362
- let { prevSidebarState: e, sidebarState: t, toggleSidebar: n } = wt(), r = N(null), [i, o] = P(!1), s = Vt() === "two-level";
1362
+ let { prevSidebarState: e, sidebarState: t, toggleSidebar: n } = wt(), i = N(null), [a, o] = P(!1), s = Vt() === "two-level";
1363
1363
  j(function() {
1364
- s && e === "hidden" && t !== "hidden" && r.current?.focus();
1364
+ s && e === "hidden" && t !== "hidden" && i.current?.focus();
1365
1365
  }, [
1366
1366
  s,
1367
1367
  e,
1368
1368
  t
1369
1369
  ]);
1370
- let c = l(), u = t !== "hidden", d = u ? c.navigation.sidebar.closePanel : c.navigation.sidebar.openPanel;
1371
- return /* @__PURE__ */ F(a, {
1370
+ let c = f(), l = t !== "hidden", u = l ? c.navigation.sidebar.closePanel : c.navigation.sidebar.openPanel;
1371
+ return /* @__PURE__ */ F(r, {
1372
1372
  variant: "ghost",
1373
1373
  size: "md",
1374
1374
  onClick: () => n(),
1375
1375
  className: "hover:bg-f1-background-hover",
1376
- title: d,
1377
- ref: r,
1376
+ title: u,
1377
+ ref: i,
1378
1378
  compact: !0,
1379
- "aria-label": d,
1380
- "aria-expanded": u,
1379
+ "aria-label": u,
1380
+ "aria-expanded": l,
1381
1381
  onMouseEnter: () => o(!0),
1382
1382
  onMouseLeave: () => o(!1),
1383
1383
  children: /* @__PURE__ */ F(Gt, {
1384
- isExpanded: u,
1385
- isHovered: i
1384
+ isExpanded: l,
1385
+ isHovered: a
1386
1386
  })
1387
1387
  });
1388
1388
  }
@@ -1424,25 +1424,25 @@ function qt({ isExpanded: e }) {
1424
1424
  });
1425
1425
  }
1426
1426
  function Jt() {
1427
- let { prevSidebarState: e, sidebarState: t, toggleSidebar: n, isSmallScreen: r } = wt(), i = N(null);
1427
+ let { prevSidebarState: e, sidebarState: t, toggleSidebar: n, isSmallScreen: i } = wt(), a = N(null);
1428
1428
  return j(() => {
1429
- e === "hidden" && t === "locked" && i.current?.focus();
1430
- }, [e, t]), /* @__PURE__ */ I(a, {
1429
+ e === "hidden" && t === "locked" && a.current?.focus();
1430
+ }, [e, t]), /* @__PURE__ */ I(r, {
1431
1431
  variant: "ghost",
1432
1432
  size: "md",
1433
1433
  onClick: () => n(),
1434
1434
  className: "group hover:bg-f1-background-hover",
1435
1435
  title: "Close Sidebar",
1436
- ref: i,
1436
+ ref: a,
1437
1437
  compact: !0,
1438
1438
  "aria-label": "Close Sidebar",
1439
1439
  children: [/* @__PURE__ */ F("div", {
1440
- className: p("hidden", { flex: !r }),
1440
+ className: p("hidden", { flex: !i }),
1441
1441
  children: /* @__PURE__ */ F(qt, { isExpanded: t === "locked" })
1442
1442
  }), /* @__PURE__ */ F("div", {
1443
- className: p("hidden", { flex: r }),
1444
- children: /* @__PURE__ */ F(u, {
1445
- icon: g,
1443
+ className: p("hidden", { flex: i }),
1444
+ children: /* @__PURE__ */ F(l, {
1445
+ icon: h,
1446
1446
  size: "md"
1447
1447
  })
1448
1448
  })]
@@ -1454,8 +1454,8 @@ function Yt() {
1454
1454
  }
1455
1455
  //#endregion
1456
1456
  //#region src/addons/map/F0Map/components/F0MapSidebarToggle/F0MapSidebarToggle.tsx
1457
- var Xt = O(({ expanded: e, onToggle: t, label: n, bare: r = !1, dataTestId: i }, o) => {
1458
- let s = l(), c = n ?? (e ? s.map.controls.hidePanel : s.map.controls.showPanel), u = /* @__PURE__ */ F(a, {
1457
+ var Xt = O(({ expanded: e, onToggle: t, label: n, bare: i = !1, dataTestId: a }, o) => {
1458
+ let s = f(), c = n ?? (e ? s.map.controls.hidePanel : s.map.controls.showPanel), l = /* @__PURE__ */ F(r, {
1459
1459
  ref: o,
1460
1460
  variant: "ghost",
1461
1461
  size: "md",
@@ -1467,9 +1467,9 @@ var Xt = O(({ expanded: e, onToggle: t, label: n, bare: r = !1, dataTestId: i },
1467
1467
  "aria-expanded": e,
1468
1468
  children: /* @__PURE__ */ F(qt, { isExpanded: e })
1469
1469
  });
1470
- return /* @__PURE__ */ F(d, {
1471
- dataTestId: i,
1472
- children: r ? u : /* @__PURE__ */ F(Ne, { children: u })
1470
+ return /* @__PURE__ */ F(u, {
1471
+ dataTestId: a,
1472
+ children: i ? l : /* @__PURE__ */ F(Ne, { children: l })
1473
1473
  });
1474
1474
  });
1475
1475
  Xt.displayName = "F0MapSidebarToggle";
@@ -1546,7 +1546,7 @@ nn.displayName = "CurrentLocationLayer";
1546
1546
  var rn = {
1547
1547
  curve: 1.42,
1548
1548
  duration: 1400
1549
- }, an = 200, on = ({ dataTestId: e, className: t }) => /* @__PURE__ */ F(d, {
1549
+ }, an = 200, on = ({ dataTestId: e, className: t }) => /* @__PURE__ */ F(u, {
1550
1550
  dataTestId: e,
1551
1551
  children: /* @__PURE__ */ F("div", {
1552
1552
  "aria-busy": "true",
@@ -1593,7 +1593,7 @@ var rn = {
1593
1593
  isDark: e
1594
1594
  };
1595
1595
  }, ln = {
1596
- maplibre: async () => (await import("./maplibre-B2bLeY4t.js")).createMaplibreAdapter,
1596
+ maplibre: async () => (await import("./maplibre-BMdn9aMc.js")).createMaplibreAdapter,
1597
1597
  google: async (e) => (await import("./google-D1V0swd7.js")).loadGoogleAdapter(e)
1598
1598
  }, un = /* @__PURE__ */ new Map(), dn = (e, t) => {
1599
1599
  let n = un.get(e);
@@ -11747,8 +11747,8 @@ var rn = {
11747
11747
  maxZoom: u
11748
11748
  });
11749
11749
  d && (n ? e.easeTo(d, { animate: n }) : e.jumpTo(d, { animate: n }));
11750
- }, Dn = (e) => `${e.top},${e.right},${e.bottom},${e.left}`, On = O(function({ markers: n = [], routes: r = [], arcs: a = [], areas: o = [], onRouteClick: s, onArcClick: c, selectedMarkerId: u, defaultSelectedMarkerId: f = null, onMarkerSelect: m, onMarkerDrag: h, onMarkerDragEnd: g, highlightedId: _ = null, viewportInset: v, centerOnMarkerClick: y = !1, fitToMarkers: b, initialViewport: x, mapStyle: S, interactive: ee = !0, gestureHandling: C, minZoom: w, maxZoom: T = 18, showControls: te = !0, controlLabels: ne, showCurrentLocation: E = !1, fullScreen: D = !1, onSidebarToggle: O, sidebarExpanded: A = !1, sidebarToggleAddon: ae, sidebarHeaderStart: M, sidebar: se, detail: pe, detailOpen: me = !1, clearSelectionOnBackgroundClick: he = !0, projection: ge = "mercator", provider: _e, loading: ve = !1, ariaLabel: ye, dataTestId: be, className: xe }, Se) {
11751
- let Ce = C ?? (D ? "greedy" : "cooperative"), L = l(), R = e(_e), we = t(), Te = N(null), z = N(null), [B, Ee] = P(null), [V, De] = P(!1), [ke, H] = P(!1), [Ae, je] = P(0), Me = re(), G = i(), { containerRef: Ie, isDark: Le } = cn(), Re = k((e) => {
11750
+ }, Dn = (e) => `${e.top},${e.right},${e.bottom},${e.left}`, On = O(function({ markers: n = [], routes: r = [], arcs: i = [], areas: o = [], onRouteClick: s, onArcClick: c, selectedMarkerId: l, defaultSelectedMarkerId: d = null, onMarkerSelect: m, onMarkerDrag: h, onMarkerDragEnd: g, highlightedId: _ = null, viewportInset: v, centerOnMarkerClick: y = !1, fitToMarkers: b, initialViewport: x, mapStyle: S, interactive: ee = !0, gestureHandling: C, minZoom: w, maxZoom: T = 18, showControls: te = !0, controlLabels: ne, showCurrentLocation: E = !1, fullScreen: D = !1, onSidebarToggle: O, sidebarExpanded: A = !1, sidebarToggleAddon: ae, sidebarHeaderStart: M, sidebar: se, detail: pe, detailOpen: me = !1, clearSelectionOnBackgroundClick: he = !0, projection: ge = "mercator", provider: _e, loading: ve = !1, ariaLabel: ye, dataTestId: be, className: xe }, Se) {
11751
+ let Ce = C ?? (D ? "greedy" : "cooperative"), L = f(), R = e(_e), we = t(), Te = N(null), z = N(null), [B, Ee] = P(null), [V, De] = P(!1), [ke, H] = P(!1), [Ae, je] = P(0), Me = re(), G = a(), { containerRef: Ie, isDark: Le } = cn(), Re = k((e) => {
11752
11752
  Te.current = e, Ie(e);
11753
11753
  }, [Ie]), ze = Le, Be = !S || S.provider === R, Ve = Be ? S ?? xn(R) : xn(R), K = ze ? Ve.dark : Ve.light, He = N(!1);
11754
11754
  j(() => {
@@ -11758,14 +11758,14 @@ var rn = {
11758
11758
  S?.provider,
11759
11759
  R
11760
11760
  ]);
11761
- let [Ue, We] = P(f), q = u === void 0 ? Ue : u, Ge = k((e) => {
11762
- u === void 0 && We(e), m?.(e);
11763
- }, [u, m]), J = A && !!O, Ke = me && !!pe, qe = J ? U.inset + U.listWidth + U.gap : U.inset, Je = J ? U.inset : U.inset + U.toggleSize + U.gap, Ye = Ke ? qe + U.detailWidth : J ? U.inset + U.listWidth : null, Xe = ce(v, { left: Ye === null ? 0 : Ye + U.gap }), Y = N(n);
11761
+ let [Ue, We] = P(d), q = l === void 0 ? Ue : l, Ge = k((e) => {
11762
+ l === void 0 && We(e), m?.(e);
11763
+ }, [l, m]), J = A && !!O, Ke = me && !!pe, qe = J ? U.inset + U.listWidth + U.gap : U.inset, Je = J ? U.inset : U.inset + U.toggleSize + U.gap, Ye = Ke ? qe + U.detailWidth : J ? U.inset + U.listWidth : null, Xe = ce(v, { left: Ye === null ? 0 : Ye + U.gap }), Y = N(n);
11764
11764
  Y.current = n;
11765
11765
  let Ze = N(r);
11766
11766
  Ze.current = r;
11767
- let Qe = N(a);
11768
- Qe.current = a;
11767
+ let Qe = N(i);
11768
+ Qe.current = i;
11769
11769
  let $e = N(o);
11770
11770
  $e.current = o;
11771
11771
  let et = N(ge);
@@ -11983,7 +11983,7 @@ var rn = {
11983
11983
  });
11984
11984
  u && t.easeTo({ center: u }, { animate: a });
11985
11985
  }, [wt, Q]);
11986
- let Et = r.length > 0 || a.length > 0, Dt = Ye === null ? 0 : Ye + U.gap - U.inset, Ot = N({
11986
+ let Et = r.length > 0 || i.length > 0, Dt = Ye === null ? 0 : Ye + U.gap - U.inset, Ot = N({
11987
11987
  from: Dt,
11988
11988
  to: Dt
11989
11989
  });
@@ -11992,7 +11992,7 @@ var rn = {
11992
11992
  to: Dt
11993
11993
  });
11994
11994
  let kt = Dt > Ot.current.from ? W.enter : W.exit, At = J ? W.enter : W.exit;
11995
- return /* @__PURE__ */ F(d, {
11995
+ return /* @__PURE__ */ F(u, {
11996
11996
  dataTestId: be,
11997
11997
  children: ve ? /* @__PURE__ */ F(on, { className: xe }) : /* @__PURE__ */ I("div", {
11998
11998
  ref: Re,
@@ -12026,7 +12026,7 @@ var rn = {
12026
12026
  !V && B && Et ? /* @__PURE__ */ F(tn, {
12027
12027
  adapter: B,
12028
12028
  routes: r,
12029
- arcs: a,
12029
+ arcs: i,
12030
12030
  isDark: ze,
12031
12031
  onRouteClick: s,
12032
12032
  onArcClick: c