@factorialco/f0-react 11.10.1 → 11.11.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.
- package/dist/{ChatPostComposerDialog-s4prfEkC.js → ChatPostComposerDialog-BqAJZqD9.js} +4 -4
- package/dist/{CoachmarkProvider-DxDuinVA.js → CoachmarkProvider-DCHKWnIq.js} +2044 -2044
- package/dist/{DocumentToolbar-BuctnVHN.js → DocumentToolbar-BU9PTMlI.js} +5 -5
- package/dist/{DocxViewer-CAGBzliC.js → DocxViewer-8FiXi45s.js} +2 -2
- package/dist/{F0AiProcessingOverlay-Dl_56dL9.js → F0AiProcessingOverlay-L6LooNzN.js} +511 -511
- package/dist/{F0CanvasPanel-C8MuYy_8.js → F0CanvasPanel-D--qira6.js} +2641 -2623
- package/dist/{F0DocumentViewer-C9gCxjxk.js → F0DocumentViewer-C7Wv7NTY.js} +35 -35
- package/dist/F0DocumentViewer-DACK-OvI.js +3 -0
- package/dist/{F0Map-D4esyFFE.js → F0Map-DbbjpLjI.js} +100 -100
- package/dist/{F0Select-dBwkgMBc.js → F0Select-CY_CcXQ2.js} +1030 -1030
- package/dist/{F0Text-D0_mpu2P.js → F0Text-MLpPbWjh.js} +12 -12
- package/dist/{F0VideoPlayer-CUUQmvVm.js → F0VideoPlayer-BFo3wQQU.js} +38 -38
- package/dist/F0VideoPlayer-D7RCk_24.js +1 -0
- package/dist/{Map-DFCc5qR0.js → Map-BfheF0i_.js} +17 -17
- package/dist/{PdfThumbnail-D09QDkNP.js → PdfThumbnail-B8kgKi-5.js} +1 -1
- package/dist/{SheetViewer-Cvd2xwE5.js → SheetViewer-Dy1cNTbd.js} +4 -4
- package/dist/{TextViewer-Bk0Xz1nv.js → TextViewer-DSec8GUk.js} +2 -2
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +5 -5
- package/dist/component-status.js +1 -1
- package/dist/{dist-r1yM6TIs.js → dist-BB2MlAD_.js} +1 -1
- package/dist/experimental.d.ts +69 -4
- package/dist/experimental.js +5341 -5003
- package/dist/{exports-DsGJH4CD.d.ts → exports-CJtG_boZ.d.ts} +1 -1
- package/dist/f0.d.ts +4 -4
- package/dist/f0.js +326 -326
- package/dist/{i18n-provider-defaults-D7TVD4xk.js → i18n-provider-defaults-DD76Cjbd.js} +5 -0
- package/dist/{i18n-provider-defaults-14y_lreJ.d.ts → i18n-provider-defaults-iAsTLZ8q.d.ts} +6 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-CL4pclEl.d.ts → index-DGmIutN2.d.ts} +1 -1
- package/dist/{maplibre-B5inXAW8.js → maplibre-Dg0SWOg-.js} +1 -1
- package/dist/{pdfWorker-5t9rytw2.js → pdfWorker-CK_VPj2f.js} +1 -1
- package/dist/{popover-DquDnBKd.js → popover-C8rmkngm.js} +2 -2
- package/dist/{posts-DgzHTT_B.js → posts-DGtDUrKT.js} +2 -0
- package/dist/styles.css +1 -1
- package/dist/{types-Di2cYBLz.d.ts → types-BkW50Whp.d.ts} +2 -2
- package/dist/{useData-BEZesy_8.js → useData-DqN-h3iG.js} +287 -287
- package/package.json +1 -1
- package/dist/F0DocumentViewer-CUkiuREP.js +0 -3
- package/dist/F0VideoPlayer-rLZ5qvuq.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as e, o as t, pi as n } from "./CoachmarkProvider-
|
|
2
|
-
import {
|
|
1
|
+
import { a as e, o as t, pi as n } from "./CoachmarkProvider-DCHKWnIq.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-C8rmkngm.js";
|
|
3
3
|
import { L as p, R as m } from "./tooltip-BX4dSfeL.js";
|
|
4
|
-
import { n as h, r as g } from "./F0Text-
|
|
5
|
-
import { Io as _, Z as v, _s as y, ao as b } from "./F0CanvasPanel-
|
|
6
|
-
import { K as x, X as S, j as ee, y as C } from "./useData-
|
|
4
|
+
import { n as h, r as g } from "./F0Text-MLpPbWjh.js";
|
|
5
|
+
import { Io as _, Z as v, _s as y, ao as b } from "./F0CanvasPanel-D--qira6.js";
|
|
6
|
+
import { K as x, X as S, j as ee, y as C } from "./useData-DqN-h3iG.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:
|
|
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 : {
|
|
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(
|
|
161
|
+
}), j = b === "color" ? null : b === "icon" && "icon" in e ? /* @__PURE__ */ F(u, {
|
|
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(
|
|
223
|
+
}), ae = /* @__PURE__ */ F(c, { children: i ? /* @__PURE__ */ F(f.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" :
|
|
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 = [
|
|
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 =
|
|
284
|
+
}[le], ge = o && s && !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:
|
|
294
|
+
children: o
|
|
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,7 +319,7 @@ var ce = (e, t) => ({
|
|
|
319
319
|
}),
|
|
320
320
|
ge
|
|
321
321
|
] });
|
|
322
|
-
return /* @__PURE__ */ F(
|
|
322
|
+
return /* @__PURE__ */ F(d, {
|
|
323
323
|
dataTestId: v,
|
|
324
324
|
children: S ? /* @__PURE__ */ F("button", {
|
|
325
325
|
ref: t,
|
|
@@ -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 =
|
|
398
|
-
return /* @__PURE__ */ F(
|
|
397
|
+
let c = l(), u = !!(r || n), f = !!(e || t), p = (e) => /* @__PURE__ */ F(Ne, { children: e });
|
|
398
|
+
return /* @__PURE__ */ F(d, {
|
|
399
399
|
dataTestId: a,
|
|
400
400
|
children: /* @__PURE__ */ I("div", {
|
|
401
401
|
ref: o,
|
|
@@ -403,7 +403,7 @@ 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: [
|
|
406
|
+
children: [u ? 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,
|
|
@@ -417,7 +417,7 @@ var Ee = B, V = (e, t) => `hsl(${xe(e, t).replace(/ /g, ", ")})`, De = (e, t) =>
|
|
|
417
417
|
icon: b,
|
|
418
418
|
hideLabel: !0,
|
|
419
419
|
onClick: r
|
|
420
|
-
}) : null] })) : null,
|
|
420
|
+
}) : null] })) : null, f ? 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,
|
|
@@ -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
|
|
451
|
-
return /* @__PURE__ */ F(
|
|
450
|
+
let u = l(), f = i ?? u.map.listLabel;
|
|
451
|
+
return /* @__PURE__ */ F(d, {
|
|
452
452
|
dataTestId: o,
|
|
453
453
|
children: /* @__PURE__ */ I("nav", {
|
|
454
454
|
ref: c,
|
|
455
455
|
id: a,
|
|
456
|
-
"aria-label":
|
|
456
|
+
"aria-label": f,
|
|
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:
|
|
461
|
+
children: f
|
|
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,
|
|
469
|
+
children: G(e, u.map.unnamedLocation)
|
|
470
470
|
}) }, e.id))
|
|
471
471
|
})]
|
|
472
472
|
})
|
|
@@ -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 =
|
|
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) => {
|
|
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(
|
|
791
|
+
return /* @__PURE__ */ F(d, {
|
|
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: () =>
|
|
803
|
-
onPointerLeave: () =>
|
|
804
|
-
onFocus: () =>
|
|
805
|
-
onBlur: () =>
|
|
802
|
+
onPointerEnter: () => u(!0),
|
|
803
|
+
onPointerLeave: () => u(!1),
|
|
804
|
+
onFocus: () => u(!0),
|
|
805
|
+
onBlur: () => u(!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
|
-
|
|
818
|
+
f.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] = _[
|
|
830
|
+
let [e, t] = _[f.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:
|
|
927
|
-
let u =
|
|
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({
|
|
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(
|
|
940
|
+
return /* @__PURE__ */ I(c, { children: [h.map((t) => /* @__PURE__ */ F($, {
|
|
941
941
|
adapter: e,
|
|
942
942
|
coordinates: t.coordinates,
|
|
943
943
|
selected: !1,
|
|
944
|
-
children: /* @__PURE__ */ F(
|
|
944
|
+
children: /* @__PURE__ */ F(f.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: () =>
|
|
971
|
+
onClick: () => s(t.bounds)
|
|
972
972
|
})
|
|
973
973
|
})
|
|
974
974
|
}, t.id)), g.map((t) => {
|
|
975
|
-
let
|
|
975
|
+
let s = v[t.id], l = x?.has(t.id) ?? !1, d = r === t.id;
|
|
976
976
|
return /* @__PURE__ */ F($, {
|
|
977
977
|
adapter: e,
|
|
978
978
|
coordinates: t.coordinates,
|
|
979
|
-
selected: n === t.id ||
|
|
980
|
-
drag: t.draggable &&
|
|
979
|
+
selected: n === t.id || d,
|
|
980
|
+
drag: t.draggable && o ? {
|
|
981
981
|
onDrag: a && ((e) => a(t.id, e)),
|
|
982
|
-
onDragEnd: (e) =>
|
|
982
|
+
onDragEnd: (e) => o(t.id, e)
|
|
983
983
|
} : void 0,
|
|
984
|
-
children: /* @__PURE__ */ F(
|
|
984
|
+
children: /* @__PURE__ */ F(f.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(
|
|
999
|
+
children: /* @__PURE__ */ F(c, {
|
|
1000
1000
|
initial: !1,
|
|
1001
|
-
children: /* @__PURE__ */ F(
|
|
1001
|
+
children: /* @__PURE__ */ F(f.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 ||
|
|
1015
|
-
labelPlacement:
|
|
1014
|
+
showLabel: n === t.id || d || !b && s !== null,
|
|
1015
|
+
labelPlacement: s ?? "right",
|
|
1016
1016
|
selected: n === t.id,
|
|
1017
|
-
collapsed:
|
|
1017
|
+
collapsed: l,
|
|
1018
1018
|
onClick: () => i(t.id),
|
|
1019
1019
|
presentational: !0,
|
|
1020
1020
|
ariaLabel: t.label ?? u.map.unnamedLocation
|
|
@@ -1024,8 +1024,8 @@ 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:
|
|
1028
|
-
let m =
|
|
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
1029
|
from: v,
|
|
1030
1030
|
to: v
|
|
1031
1031
|
});
|
|
@@ -1034,14 +1034,14 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
|
|
|
1034
1034
|
to: v
|
|
1035
1035
|
});
|
|
1036
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(
|
|
1038
|
-
dataTestId:
|
|
1037
|
+
return /* @__PURE__ */ F(d, {
|
|
1038
|
+
dataTestId: f,
|
|
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:
|
|
1044
|
+
width: a,
|
|
1045
1045
|
transform: `translateX(${v}px)`,
|
|
1046
1046
|
transitionProperty: g ? "none" : "transform, top",
|
|
1047
1047
|
transitionDuration: b.duration,
|
|
@@ -1049,7 +1049,7 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
|
|
|
1049
1049
|
},
|
|
1050
1050
|
children: /* @__PURE__ */ F("div", {
|
|
1051
1051
|
role: "complementary",
|
|
1052
|
-
"aria-label":
|
|
1052
|
+
"aria-label": u ?? m.map.panel,
|
|
1053
1053
|
ref: (e) => {
|
|
1054
1054
|
t ? e?.removeAttribute("inert") : e?.setAttribute("inert", "");
|
|
1055
1055
|
},
|
|
@@ -1116,7 +1116,7 @@ function vt({ enabled: e, children: t, ...n }) {
|
|
|
1116
1116
|
});
|
|
1117
1117
|
}
|
|
1118
1118
|
function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
1119
|
-
let { isInstant:
|
|
1119
|
+
let { isInstant: i, landInstantly: a } = gt(), o = _t(), [s, c] = P(ne.primary), [l, u] = P(ne.panel), [d, f] = v({
|
|
1120
1120
|
key: ft,
|
|
1121
1121
|
fallback: null,
|
|
1122
1122
|
validate: pt,
|
|
@@ -1129,7 +1129,7 @@ function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
|
1129
1129
|
a(), f(e);
|
|
1130
1130
|
}, [a, f]), x = k(function() {
|
|
1131
1131
|
a(), f(null);
|
|
1132
|
-
}, [a, f]), S =
|
|
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() {
|
|
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:
|
|
1193
|
+
isInstant: i,
|
|
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
|
-
|
|
1212
|
+
i,
|
|
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 } =
|
|
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(() => {
|
|
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() : (
|
|
1246
|
+
n?.navigationMode === "overlay" ? n.toggleOverPage() : (c(e ?? !0), u && !n && m(!p), f(!d));
|
|
1247
1247
|
}, [
|
|
1248
1248
|
n,
|
|
1249
|
-
|
|
1249
|
+
u,
|
|
1250
1250
|
p,
|
|
1251
|
-
|
|
1251
|
+
d
|
|
1252
1252
|
]), y = k(function(e) {
|
|
1253
|
-
|
|
1254
|
-
}, [
|
|
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;
|
|
1255
1255
|
j(function() {
|
|
1256
1256
|
m(!1), x?.();
|
|
1257
1257
|
}, [t, x]), j(function() {
|
|
1258
|
-
|
|
1259
|
-
}, [
|
|
1258
|
+
s && localStorage.setItem(bt, d ? "1" : "");
|
|
1259
|
+
}, [d, s]), 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:
|
|
1267
|
-
isLastToggleInvokedByUser:
|
|
1266
|
+
isSmallScreen: u,
|
|
1267
|
+
isLastToggleInvokedByUser: s,
|
|
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
|
-
|
|
1277
|
-
|
|
1276
|
+
u,
|
|
1277
|
+
s,
|
|
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(),
|
|
1362
|
+
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n } = wt(), r = N(null), [i, o] = P(!1), s = Vt() === "two-level";
|
|
1363
1363
|
j(function() {
|
|
1364
|
-
s && e === "hidden" && t !== "hidden" &&
|
|
1364
|
+
s && e === "hidden" && t !== "hidden" && r.current?.focus();
|
|
1365
1365
|
}, [
|
|
1366
1366
|
s,
|
|
1367
1367
|
e,
|
|
1368
1368
|
t
|
|
1369
1369
|
]);
|
|
1370
|
-
let c =
|
|
1371
|
-
return /* @__PURE__ */ F(
|
|
1370
|
+
let c = l(), u = t !== "hidden", d = u ? c.navigation.sidebar.closePanel : c.navigation.sidebar.openPanel;
|
|
1371
|
+
return /* @__PURE__ */ F(a, {
|
|
1372
1372
|
variant: "ghost",
|
|
1373
1373
|
size: "md",
|
|
1374
1374
|
onClick: () => n(),
|
|
1375
1375
|
className: "hover:bg-f1-background-hover",
|
|
1376
|
-
title:
|
|
1377
|
-
ref:
|
|
1376
|
+
title: d,
|
|
1377
|
+
ref: r,
|
|
1378
1378
|
compact: !0,
|
|
1379
|
-
"aria-label":
|
|
1380
|
-
"aria-expanded":
|
|
1379
|
+
"aria-label": d,
|
|
1380
|
+
"aria-expanded": u,
|
|
1381
1381
|
onMouseEnter: () => o(!0),
|
|
1382
1382
|
onMouseLeave: () => o(!1),
|
|
1383
1383
|
children: /* @__PURE__ */ F(Gt, {
|
|
1384
|
-
isExpanded:
|
|
1385
|
-
isHovered:
|
|
1384
|
+
isExpanded: u,
|
|
1385
|
+
isHovered: i
|
|
1386
1386
|
})
|
|
1387
1387
|
});
|
|
1388
1388
|
}
|
|
@@ -1424,24 +1424,24 @@ function qt({ isExpanded: e }) {
|
|
|
1424
1424
|
});
|
|
1425
1425
|
}
|
|
1426
1426
|
function Jt() {
|
|
1427
|
-
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n, isSmallScreen:
|
|
1427
|
+
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n, isSmallScreen: r } = wt(), i = N(null);
|
|
1428
1428
|
return j(() => {
|
|
1429
|
-
e === "hidden" && t === "locked" &&
|
|
1430
|
-
}, [e, t]), /* @__PURE__ */ I(
|
|
1429
|
+
e === "hidden" && t === "locked" && i.current?.focus();
|
|
1430
|
+
}, [e, t]), /* @__PURE__ */ I(a, {
|
|
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:
|
|
1436
|
+
ref: i,
|
|
1437
1437
|
compact: !0,
|
|
1438
1438
|
"aria-label": "Close Sidebar",
|
|
1439
1439
|
children: [/* @__PURE__ */ F("div", {
|
|
1440
|
-
className: p("hidden", { flex: !
|
|
1440
|
+
className: p("hidden", { flex: !r }),
|
|
1441
1441
|
children: /* @__PURE__ */ F(qt, { isExpanded: t === "locked" })
|
|
1442
1442
|
}), /* @__PURE__ */ F("div", {
|
|
1443
|
-
className: p("hidden", { flex:
|
|
1444
|
-
children: /* @__PURE__ */ F(
|
|
1443
|
+
className: p("hidden", { flex: r }),
|
|
1444
|
+
children: /* @__PURE__ */ F(u, {
|
|
1445
1445
|
icon: g,
|
|
1446
1446
|
size: "md"
|
|
1447
1447
|
})
|
|
@@ -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:
|
|
1458
|
-
let s =
|
|
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, {
|
|
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: i = !1, dataTestId: a },
|
|
|
1467
1467
|
"aria-expanded": e,
|
|
1468
1468
|
children: /* @__PURE__ */ F(qt, { isExpanded: e })
|
|
1469
1469
|
});
|
|
1470
|
-
return /* @__PURE__ */ F(
|
|
1471
|
-
dataTestId:
|
|
1472
|
-
children:
|
|
1470
|
+
return /* @__PURE__ */ F(d, {
|
|
1471
|
+
dataTestId: i,
|
|
1472
|
+
children: r ? u : /* @__PURE__ */ F(Ne, { children: u })
|
|
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(
|
|
1549
|
+
}, an = 200, on = ({ dataTestId: e, className: t }) => /* @__PURE__ */ F(d, {
|
|
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-
|
|
1596
|
+
maplibre: async () => (await import("./maplibre-Dg0SWOg-.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:
|
|
11751
|
-
let Ce = C ?? (D ? "greedy" : "cooperative"), L =
|
|
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) => {
|
|
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(
|
|
11762
|
-
|
|
11763
|
-
}, [
|
|
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);
|
|
11764
11764
|
Y.current = n;
|
|
11765
11765
|
let Ze = N(r);
|
|
11766
11766
|
Ze.current = r;
|
|
11767
|
-
let Qe = N(
|
|
11768
|
-
Qe.current =
|
|
11767
|
+
let Qe = N(a);
|
|
11768
|
+
Qe.current = a;
|
|
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 ||
|
|
11986
|
+
let Et = r.length > 0 || a.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(
|
|
11995
|
+
return /* @__PURE__ */ F(d, {
|
|
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:
|
|
12029
|
+
arcs: a,
|
|
12030
12030
|
isDark: ze,
|
|
12031
12031
|
onRouteClick: s,
|
|
12032
12032
|
onArcClick: c
|