@factorialco/f0-react 12.13.0 → 12.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ArchiveThumbnail-BZgITTo2.js → ArchiveThumbnail-dGuKclaw.js} +3 -3
- package/dist/{ArchiveViewer-BHu224N3.js → ArchiveViewer-D4fZ2Zko.js} +12 -12
- package/dist/{ChatPostComposerDialog-CsxxDqxh.js → ChatPostComposerDialog-ZUy4oL4n.js} +2 -2
- package/dist/{CoachmarkProvider-9PVhiN-N.js → CoachmarkProvider-Bui0J43V.js} +20828 -20827
- package/dist/{CodeThumbnail-ChpXV1S-.js → CodeThumbnail-BN74kiZ4.js} +1 -1
- package/dist/{CodeViewer-BKw04W0G.js → CodeViewer-DAISBEVU.js} +4 -4
- package/dist/{DocumentToolbar-mB3bK8uS.js → DocumentToolbar-DY0Zl0N_.js} +2 -2
- package/dist/{DocxViewer-Dr8WXU1s.js → DocxViewer-CU-h8JZo.js} +1 -1
- package/dist/Ellipsis-CBouJQYY.js +34 -0
- package/dist/{F0AiProcessingOverlay-BUynKfyI.js → F0AiProcessingOverlay-1sgWr47b.js} +1576 -1443
- package/dist/{F0Alert-ALRcL0Af.js → F0Alert--45qrdm9.js} +10 -10
- package/dist/F0AudioPlayer-ZqghWPaS.js +2 -0
- package/dist/{F0CanvasPanel-D1QmpvzX.js → F0CanvasPanel-B07KPl9L.js} +10961 -9679
- package/dist/{F0DocumentViewer-ChCqzIK3.js → F0DocumentViewer-CPu9X2o1.js} +2 -2
- package/dist/{F0DocumentViewer-CEuF9b_u.js → F0DocumentViewer-gfD2E9-m.js} +1 -1
- package/dist/{F0Map-CWhV5A03.js → F0Map-CpggFT94.js} +130 -143
- package/dist/{F0Select-BZ20yXKy.js → F0Select-DmSUsNZ8.js} +1 -1
- package/dist/F0Text-CXHuzMbj.js +14 -0
- package/dist/F0VideoPlayer-BqAcQLm4.js +1 -0
- package/dist/{F0VideoPlayer-wTc25_qN.js → F0VideoPlayer-C1JRJ63P.js} +310 -310
- package/dist/{HtmlViewer-Uxb8n2vn.js → HtmlViewer-D6_vKugG.js} +4 -4
- package/dist/{Map-95w5slTZ.js → Map-BSvthUb7.js} +29 -28
- package/dist/{PdfThumbnail-BYrhsyMw.js → PdfThumbnail-CXumcn98.js} +1 -1
- package/dist/{PdfViewer-DUxhQr-O.js → PdfViewer-Pdk37Dts.js} +8 -8
- package/dist/{SheetViewer-C9Rbh_xJ.js → SheetViewer-BvAA9h38.js} +2 -2
- package/dist/{TextViewer-DP9lYxAB.js → TextViewer-D9CCbblP.js} +1 -1
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +3 -3
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +13 -2
- package/dist/experimental.js +5270 -5346
- package/dist/{exports-cxvNeHfV.d.ts → exports-4R3tYgiD.d.ts} +21 -11
- package/dist/f0.d.ts +7 -7
- package/dist/f0.js +382 -381
- package/dist/{highlight-Bjt-wXg6.js → highlight-cuPZlWw_.js} +4 -4
- package/dist/{index-DF8ubeg6.d.ts → index-MOV0Rv_v.d.ts} +411 -83
- package/dist/localized-CnKvEJya.js +73 -0
- package/dist/{maplibre-tJ3UolSF.js → maplibre-D0TBtDi0.js} +1 -1
- package/dist/{pdfWorker-BBnYtb1A.js → pdfWorker-B3PnBrSO.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{types-oJKIDe-E.d.ts → types-BdObZULx.d.ts} +2 -300
- package/package.json +1 -1
- package/dist/F0AudioPlayer-Cd9nIQX5.js +0 -2
- package/dist/F0AudioPlayer-vRJmmSpp.js +0 -1175
- package/dist/F0VideoPlayer-DUw-DouS.js +0 -1
- package/dist/localized-BrUgGMzm.js +0 -46
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as e, o as t, ui as n } from "./CoachmarkProvider-
|
|
1
|
+
import { a as e, o as t, ui as n } from "./CoachmarkProvider-Bui0J43V.js";
|
|
2
2
|
import { i as r, r as i } from "./i18n-provider-Bdgo-LeP.js";
|
|
3
3
|
import { L as a, R as o } from "./tooltip-BX4dSfeL.js";
|
|
4
4
|
import { H as s, T as c, U as l, b as u, h as d, t as f, wt as p } from "./F0Button-d91IgOnc.js";
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { N as
|
|
8
|
-
import {
|
|
5
|
+
import { Js as m, Ro as h, ht as g, l as _, ps as v, uc as y } from "./F0CanvasPanel-B07KPl9L.js";
|
|
6
|
+
import { t as b } from "./F0Icon-DmCBV0gK.js";
|
|
7
|
+
import { N as x, T as S, U as C, f as w, z as T } from "./useData-BYkiGUHX.js";
|
|
8
|
+
import { n as E, o as ee, s as te, t as D } from "./dist-Cuwaibqg.js";
|
|
9
9
|
import { createContext as O, forwardRef as k, useCallback as A, useContext as j, useEffect as M, useId as ne, useImperativeHandle as re, useLayoutEffect as ie, useMemo as N, useRef as P, useState as F } from "react";
|
|
10
10
|
import { Fragment as ae, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
11
11
|
import { createPortal as oe } from "react-dom";
|
|
@@ -145,30 +145,30 @@ var se = (e, t) => ({
|
|
|
145
145
|
let e = Se.xl;
|
|
146
146
|
return -(e.d - e.caretOverlap + e.caretH + z + Ce) + 3;
|
|
147
147
|
}, B = "hsl(var(--white-100))", V = k(function(e, t) {
|
|
148
|
-
let { size: i = "md", selected: s = !1, collapsed: c = !1, label: u, showLabel: d = !0, labelPlacement: f = "right", onClick: m, ariaLabel: h, presentational: g = !1, dataTestId: _, className: v } = e,
|
|
148
|
+
let { size: i = "md", selected: s = !1, collapsed: c = !1, label: u, showLabel: d = !0, labelPlacement: f = "right", onClick: m, ariaLabel: h, presentational: g = !1, dataTestId: _, className: v } = e, y = e.variant ?? "color", x = Se[s ? "xl" : i], C = !!m, T = y === "color" || y === "icon" || y === "letter", E = y === "person" && "firstName" in e ? e.firstName + e.lastName : (y === "team" || y === "company") && "name" in e ? e.name : null, ee = T ? e.color ?? "radical" : E ? y === "person" && "src" in e && e.src ? "grey" : S(E) ?? "grey" : "neutral", te = n(), D = s ? 32 : {
|
|
149
149
|
xs: 12,
|
|
150
150
|
sm: 16,
|
|
151
151
|
md: 20,
|
|
152
152
|
lg: 24
|
|
153
|
-
}[
|
|
153
|
+
}[x.icon], O = {
|
|
154
154
|
xs: 20,
|
|
155
155
|
sm: 24,
|
|
156
156
|
md: 32,
|
|
157
157
|
lg: 40
|
|
158
|
-
}, k = Se[i].avatar, A = s ? O[
|
|
158
|
+
}, k = Se[i].avatar, A = s ? O[x.avatar] / O[k] : 1, j = (e) => /* @__PURE__ */ I("span", {
|
|
159
159
|
className: "flex shrink-0 items-center justify-center transition-transform duration-200 ease-out",
|
|
160
160
|
style: { transform: `scale(${A})` },
|
|
161
161
|
children: e
|
|
162
|
-
}), M =
|
|
162
|
+
}), M = y === "color" ? null : y === "icon" && "icon" in e ? /* @__PURE__ */ I(b, {
|
|
163
163
|
icon: e.icon,
|
|
164
|
-
size:
|
|
164
|
+
size: x.icon,
|
|
165
165
|
color: "#ffffff",
|
|
166
166
|
style: {
|
|
167
167
|
width: D,
|
|
168
168
|
height: D,
|
|
169
169
|
transition: "width 200ms ease-out, height 200ms ease-out"
|
|
170
170
|
}
|
|
171
|
-
}) :
|
|
171
|
+
}) : y === "letter" && "letter" in e ? /* @__PURE__ */ I("span", {
|
|
172
172
|
"aria-hidden": !0,
|
|
173
173
|
className: "font-semibold leading-none",
|
|
174
174
|
style: {
|
|
@@ -177,7 +177,7 @@ var se = (e, t) => ({
|
|
|
177
177
|
transition: "font-size 200ms ease-out"
|
|
178
178
|
},
|
|
179
179
|
children: e.letter.charAt(0).toUpperCase()
|
|
180
|
-
}) :
|
|
180
|
+
}) : y === "person" && "firstName" in e ? j(/* @__PURE__ */ I(w, {
|
|
181
181
|
avatar: {
|
|
182
182
|
type: "person",
|
|
183
183
|
firstName: e.firstName,
|
|
@@ -185,51 +185,51 @@ var se = (e, t) => ({
|
|
|
185
185
|
src: e.src
|
|
186
186
|
},
|
|
187
187
|
size: k
|
|
188
|
-
})) :
|
|
188
|
+
})) : y === "team" && "name" in e ? j(/* @__PURE__ */ I(w, {
|
|
189
189
|
avatar: {
|
|
190
190
|
type: "team",
|
|
191
191
|
name: e.name,
|
|
192
192
|
src: e.src
|
|
193
193
|
},
|
|
194
194
|
size: k
|
|
195
|
-
})) :
|
|
195
|
+
})) : y === "company" && "name" in e ? j(/* @__PURE__ */ I(w, {
|
|
196
196
|
avatar: {
|
|
197
197
|
type: "company",
|
|
198
198
|
name: e.name,
|
|
199
199
|
src: e.src
|
|
200
200
|
},
|
|
201
201
|
size: k
|
|
202
|
-
})) :
|
|
202
|
+
})) : y === "image" && "src" in e ? /* @__PURE__ */ I("img", {
|
|
203
203
|
src: e.src,
|
|
204
204
|
alt: "alt" in e ? e.alt ?? "" : "",
|
|
205
205
|
className: "h-full w-full object-cover"
|
|
206
|
-
}) : null, ne =
|
|
206
|
+
}) : null, ne = y === "team" || y === "company" || y === "icon", re = /* @__PURE__ */ I("span", {
|
|
207
207
|
className: "relative z-[1] flex shrink-0 items-center justify-center overflow-hidden border-solid transition-all duration-200 ease-out",
|
|
208
208
|
style: {
|
|
209
|
-
width:
|
|
210
|
-
height:
|
|
211
|
-
borderRadius: ne ? Math.round(
|
|
212
|
-
borderWidth:
|
|
209
|
+
width: x.d,
|
|
210
|
+
height: x.d,
|
|
211
|
+
borderRadius: ne ? Math.round(x.d * .3) : 9999,
|
|
212
|
+
borderWidth: x.border,
|
|
213
213
|
borderColor: B,
|
|
214
214
|
backgroundColor: T ? ve(ee) : B
|
|
215
215
|
},
|
|
216
|
-
children:
|
|
216
|
+
children: y === "color" ? /* @__PURE__ */ I("span", {
|
|
217
217
|
className: "rounded-full transition-all duration-200 ease-out",
|
|
218
218
|
style: {
|
|
219
|
-
width:
|
|
220
|
-
height:
|
|
219
|
+
width: x.d * .36,
|
|
220
|
+
height: x.d * .36,
|
|
221
221
|
backgroundColor: B
|
|
222
222
|
}
|
|
223
223
|
}) : M
|
|
224
224
|
}), ie = /* @__PURE__ */ I(p, { children: s ? /* @__PURE__ */ I(l.svg, {
|
|
225
|
-
width:
|
|
226
|
-
height:
|
|
225
|
+
width: x.caretW,
|
|
226
|
+
height: x.caretH,
|
|
227
227
|
viewBox: "0 0 16 13",
|
|
228
228
|
"aria-hidden": !0,
|
|
229
229
|
className: "absolute left-1/2",
|
|
230
230
|
style: {
|
|
231
|
-
top:
|
|
232
|
-
marginLeft: -
|
|
231
|
+
top: x.d - x.caretOverlap - 3,
|
|
232
|
+
marginLeft: -x.caretW / 2,
|
|
233
233
|
fill: B,
|
|
234
234
|
transformOrigin: "50% 0%"
|
|
235
235
|
},
|
|
@@ -253,9 +253,9 @@ var se = (e, t) => ({
|
|
|
253
253
|
children: /* @__PURE__ */ I("path", { d: "M0 0h16c-4.2 3-6.6 6.9-7.4 11.7a0.62 0.62 0 0 1-1.2 0C6.6 6.9 4.2 3 0 0Z" })
|
|
254
254
|
}, "caret") : null }), N = /* @__PURE__ */ L("span", {
|
|
255
255
|
className: "relative inline-flex",
|
|
256
|
-
style: { filter: `drop-shadow(0 ${
|
|
256
|
+
style: { filter: `drop-shadow(0 ${x.shadowY}px ${x.shadowBlur / 2}px hsl(${xe} / 0.3))` },
|
|
257
257
|
children: [ie, re]
|
|
258
|
-
}), P = Se[i], F =
|
|
258
|
+
}), P = Se[i], F = x.d / 2, oe = z, se = s ? we() : -F, ce = s ? "bottom" : f, le = `0 0 ${Math.max(2, Math.round(P.label * .28))}px ${B}`, ue = [
|
|
259
259
|
le,
|
|
260
260
|
le,
|
|
261
261
|
`0 1px 2px ${B}`,
|
|
@@ -322,7 +322,7 @@ var se = (e, t) => ({
|
|
|
322
322
|
] });
|
|
323
323
|
return /* @__PURE__ */ I(r, {
|
|
324
324
|
dataTestId: _,
|
|
325
|
-
children:
|
|
325
|
+
children: C ? /* @__PURE__ */ I("button", {
|
|
326
326
|
ref: t,
|
|
327
327
|
type: "button",
|
|
328
328
|
...g ? {
|
|
@@ -385,7 +385,7 @@ var Te = V, H = (e, t) => `hsl(${be(e, t).replace(/ /g, ", ")})`, Ee = (e, t) =>
|
|
|
385
385
|
}
|
|
386
386
|
}, Me = ({ children: e }) => /* @__PURE__ */ I("div", {
|
|
387
387
|
className: Ae(U.control),
|
|
388
|
-
children: /* @__PURE__ */ I(
|
|
388
|
+
children: /* @__PURE__ */ I(x, {
|
|
389
389
|
...Oe,
|
|
390
390
|
borderRadius: U.control,
|
|
391
391
|
padding: "none",
|
|
@@ -408,28 +408,28 @@ var Te = V, H = (e, t) => `hsl(${be(e, t).replace(/ /g, ", ")})`, Ee = (e, t) =>
|
|
|
408
408
|
variant: "ghost",
|
|
409
409
|
size: "md",
|
|
410
410
|
label: o?.fit ?? l.map.controls.fit,
|
|
411
|
-
icon:
|
|
411
|
+
icon: m,
|
|
412
412
|
hideLabel: !0,
|
|
413
413
|
onClick: n
|
|
414
414
|
}) : null, a ? /* @__PURE__ */ I(f, {
|
|
415
415
|
variant: "ghost",
|
|
416
416
|
size: "md",
|
|
417
417
|
label: o?.locate ?? l.map.controls.locate,
|
|
418
|
-
icon:
|
|
418
|
+
icon: h,
|
|
419
419
|
hideLabel: !0,
|
|
420
420
|
onClick: a
|
|
421
421
|
}) : null] })) : null, d ? p(/* @__PURE__ */ L(ae, { children: [e ? /* @__PURE__ */ I(f, {
|
|
422
422
|
variant: "ghost",
|
|
423
423
|
size: "md",
|
|
424
424
|
label: o?.zoomIn ?? l.map.controls.zoomIn,
|
|
425
|
-
icon:
|
|
425
|
+
icon: C,
|
|
426
426
|
hideLabel: !0,
|
|
427
427
|
onClick: e
|
|
428
428
|
}) : null, t ? /* @__PURE__ */ I(f, {
|
|
429
429
|
variant: "ghost",
|
|
430
430
|
size: "md",
|
|
431
431
|
label: o?.zoomOut ?? l.map.controls.zoomOut,
|
|
432
|
-
icon:
|
|
432
|
+
icon: T,
|
|
433
433
|
hideLabel: !0,
|
|
434
434
|
onClick: t
|
|
435
435
|
}) : null] })) : null]
|
|
@@ -734,7 +734,7 @@ var Fe = ({ adapter: e, points: t, enabled: n, radius: r = 12, clusterRadius: i
|
|
|
734
734
|
case "workplace": return {
|
|
735
735
|
variant: {
|
|
736
736
|
variant: "icon",
|
|
737
|
-
icon:
|
|
737
|
+
icon: v
|
|
738
738
|
},
|
|
739
739
|
color: qe
|
|
740
740
|
};
|
|
@@ -1034,7 +1034,7 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
|
|
|
1034
1034
|
from: v.current.to,
|
|
1035
1035
|
to: _
|
|
1036
1036
|
});
|
|
1037
|
-
let y = _ > v.current.from ? G.enter : G.exit,
|
|
1037
|
+
let y = _ > v.current.from ? G.enter : G.exit, b = c === "grow" ? "translateX(-10%) scale(0.97)" : `translateX(calc(-100% - ${W.inset}px))`;
|
|
1038
1038
|
return /* @__PURE__ */ I(r, {
|
|
1039
1039
|
dataTestId: p,
|
|
1040
1040
|
children: /* @__PURE__ */ I("div", {
|
|
@@ -1056,13 +1056,13 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
|
|
|
1056
1056
|
},
|
|
1057
1057
|
className: a("relative h-full overflow-hidden text-base", Ae(U.panel), t ? "pointer-events-auto" : "opacity-0"),
|
|
1058
1058
|
style: {
|
|
1059
|
-
transform: t || h ? "translateX(0px) scale(1)" :
|
|
1059
|
+
transform: t || h ? "translateX(0px) scale(1)" : b,
|
|
1060
1060
|
transformOrigin: c === "grow" ? "left center" : void 0,
|
|
1061
1061
|
transitionProperty: h ? "opacity" : "transform, opacity",
|
|
1062
1062
|
transitionDuration: g.duration,
|
|
1063
1063
|
transitionTimingFunction: g.easing
|
|
1064
1064
|
},
|
|
1065
|
-
children: /* @__PURE__ */ I(
|
|
1065
|
+
children: /* @__PURE__ */ I(x, {
|
|
1066
1066
|
...Oe,
|
|
1067
1067
|
borderRadius: U.panel,
|
|
1068
1068
|
padding: "none",
|
|
@@ -1117,12 +1117,12 @@ function vt({ enabled: e, children: t, ...n }) {
|
|
|
1117
1117
|
});
|
|
1118
1118
|
}
|
|
1119
1119
|
function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
1120
|
-
let { isInstant: r, landInstantly: i } = gt(), a = _t(), [o, s] = F(te.primary), [c, l] = F(te.panel), [d, f] =
|
|
1120
|
+
let { isInstant: r, landInstantly: i } = gt(), a = _t(), [o, s] = F(te.primary), [c, l] = F(te.panel), [d, f] = g({
|
|
1121
1121
|
key: ft,
|
|
1122
1122
|
fallback: null,
|
|
1123
1123
|
validate: pt,
|
|
1124
1124
|
debounceMs: 200
|
|
1125
|
-
}), p = lt(a, o, Math.max(320, c)),
|
|
1125
|
+
}), p = lt(a, o, Math.max(320, c)), m = Math.min(c, p), h = d === null ? m : ut(d, p), _ = A(function(e) {
|
|
1126
1126
|
s(e);
|
|
1127
1127
|
}, []), v = P(c), y = A(function(e) {
|
|
1128
1128
|
e !== v.current && (v.current = e, i(), l(e));
|
|
@@ -1130,7 +1130,7 @@ function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
|
1130
1130
|
i(), f(e);
|
|
1131
1131
|
}, [i, f]), x = A(function() {
|
|
1132
1132
|
i(), f(null);
|
|
1133
|
-
}, [i, f]), S = u(`(max-width: ${o + (e ?
|
|
1133
|
+
}, [i, f]), S = u(`(max-width: ${o + (e ? m : te.panel) + ee.mainMin - 1}px)`, { initializeWithValue: !0 }) ? "overlay" : "docked", [C, w] = F(!1), T = P(0), E = A(function() {
|
|
1134
1134
|
w(!1);
|
|
1135
1135
|
}, []);
|
|
1136
1136
|
ie(function() {
|
|
@@ -1179,7 +1179,7 @@ function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
|
1179
1179
|
primarySidebarWidth: o,
|
|
1180
1180
|
reportPrimarySidebarWidth: _,
|
|
1181
1181
|
hasSecondarySidebar: e,
|
|
1182
|
-
secondarySidebarWidth:
|
|
1182
|
+
secondarySidebarWidth: h,
|
|
1183
1183
|
secondarySidebarMaxWidth: p,
|
|
1184
1184
|
declareSecondarySidebarWidth: y,
|
|
1185
1185
|
resizeSecondarySidebar: b,
|
|
@@ -1198,7 +1198,7 @@ function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
|
1198
1198
|
o,
|
|
1199
1199
|
_,
|
|
1200
1200
|
e,
|
|
1201
|
-
|
|
1201
|
+
h,
|
|
1202
1202
|
p,
|
|
1203
1203
|
y,
|
|
1204
1204
|
b,
|
|
@@ -1292,21 +1292,8 @@ function Dt({ children: e }) {
|
|
|
1292
1292
|
});
|
|
1293
1293
|
}
|
|
1294
1294
|
//#endregion
|
|
1295
|
-
//#region src/blocks/
|
|
1296
|
-
var
|
|
1297
|
-
duration: Ot.base,
|
|
1298
|
-
ease: kt.outSwift
|
|
1299
|
-
}, Nt = {
|
|
1300
|
-
duration: Ot.reveal,
|
|
1301
|
-
ease: [
|
|
1302
|
-
.2,
|
|
1303
|
-
0,
|
|
1304
|
-
0,
|
|
1305
|
-
1
|
|
1306
|
-
]
|
|
1307
|
-
};
|
|
1308
|
-
Ot.fast, kt.outSwift;
|
|
1309
|
-
var Pt = { duration: 0 }, Ft = (e, t = !1) => e || t ? Pt : Mt, It = (e, t, n = !1) => e || n ? Pt : t ? Nt : Mt, Lt = ({ coversFrame: e, isFullscreen: t, isClosingFromFullscreen: n, isActivePanel: r, reservedWidth: i }) => e || (t || n) && r ? "100%" : i, Rt = "duration-base ease-out-swift motion-reduce:transition-none", zt = O("classic"), Bt = zt.Provider, Vt = () => j(zt), Ht = "M10.417 10L14.167 10M10.417 10L12.0837 8.33337M10.417 10L12.0837 11.6667", Ut = {
|
|
1295
|
+
//#region src/blocks/Navigation/Sidebar/navigationVariant.ts
|
|
1296
|
+
var Ot = O("classic"), kt = Ot.Provider, At = () => j(Ot), jt = "M10.417 10L14.167 10M10.417 10L12.0837 8.33337M10.417 10L12.0837 11.6667", Mt = {
|
|
1310
1297
|
open: {
|
|
1311
1298
|
rest: {
|
|
1312
1299
|
arrow: "opacity-0 translate-x-0",
|
|
@@ -1327,9 +1314,9 @@ var Pt = { duration: 0 }, Ft = (e, t = !1) => e || t ? Pt : Mt, It = (e, t, n =
|
|
|
1327
1314
|
line: "opacity-100 translate-x-0"
|
|
1328
1315
|
}
|
|
1329
1316
|
}
|
|
1330
|
-
},
|
|
1331
|
-
function
|
|
1332
|
-
let n =
|
|
1317
|
+
}, Nt = "[transform-box:view-box] transition-[transform,opacity]";
|
|
1318
|
+
function Pt({ isExpanded: e, isHovered: t = !1 }) {
|
|
1319
|
+
let n = Mt[e ? "open" : "closed"][t ? "hover" : "rest"];
|
|
1333
1320
|
return /* @__PURE__ */ L("svg", {
|
|
1334
1321
|
width: "20",
|
|
1335
1322
|
height: "20",
|
|
@@ -1350,24 +1337,24 @@ function Gt({ isExpanded: e, isHovered: t = !1 }) {
|
|
|
1350
1337
|
}),
|
|
1351
1338
|
/* @__PURE__ */ I("path", {
|
|
1352
1339
|
id: "arrow",
|
|
1353
|
-
d:
|
|
1340
|
+
d: jt,
|
|
1354
1341
|
strokeWidth: "1.3",
|
|
1355
1342
|
strokeLinecap: "round",
|
|
1356
1343
|
strokeLinejoin: "round",
|
|
1357
|
-
className: a("stroke-current",
|
|
1344
|
+
className: a("stroke-current", Nt, _, "origin-[10.5835px_10px]", e ? "scale-x-100" : "-scale-x-100", n.arrow)
|
|
1358
1345
|
}),
|
|
1359
1346
|
/* @__PURE__ */ I("path", {
|
|
1360
1347
|
id: "line",
|
|
1361
1348
|
d: "M7.5 5L7.5 15",
|
|
1362
1349
|
strokeWidth: "1.3",
|
|
1363
1350
|
strokeLinecap: "round",
|
|
1364
|
-
className: a("stroke-current",
|
|
1351
|
+
className: a("stroke-current", Nt, _, n.line)
|
|
1365
1352
|
})
|
|
1366
1353
|
]
|
|
1367
1354
|
});
|
|
1368
1355
|
}
|
|
1369
|
-
function
|
|
1370
|
-
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n } = wt(), r = P(null), [a, o] = F(!1), s =
|
|
1356
|
+
function Ft() {
|
|
1357
|
+
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n } = wt(), r = P(null), [a, o] = F(!1), s = At() === "two-level";
|
|
1371
1358
|
M(function() {
|
|
1372
1359
|
s && e === "hidden" && t !== "hidden" && r.current?.focus();
|
|
1373
1360
|
}, [
|
|
@@ -1388,13 +1375,13 @@ function Kt() {
|
|
|
1388
1375
|
"aria-expanded": u,
|
|
1389
1376
|
onMouseEnter: () => o(!0),
|
|
1390
1377
|
onMouseLeave: () => o(!1),
|
|
1391
|
-
children: /* @__PURE__ */ I(
|
|
1378
|
+
children: /* @__PURE__ */ I(Pt, {
|
|
1392
1379
|
isExpanded: u,
|
|
1393
1380
|
isHovered: a
|
|
1394
1381
|
})
|
|
1395
1382
|
});
|
|
1396
1383
|
}
|
|
1397
|
-
function
|
|
1384
|
+
function It({ isExpanded: e }) {
|
|
1398
1385
|
return /* @__PURE__ */ L("svg", {
|
|
1399
1386
|
width: "20",
|
|
1400
1387
|
height: "20",
|
|
@@ -1431,7 +1418,7 @@ function qt({ isExpanded: e }) {
|
|
|
1431
1418
|
]
|
|
1432
1419
|
});
|
|
1433
1420
|
}
|
|
1434
|
-
function
|
|
1421
|
+
function Lt() {
|
|
1435
1422
|
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n, isSmallScreen: r } = wt(), i = P(null);
|
|
1436
1423
|
return M(() => {
|
|
1437
1424
|
e === "hidden" && t === "locked" && i.current?.focus();
|
|
@@ -1446,23 +1433,23 @@ function Jt() {
|
|
|
1446
1433
|
"aria-label": "Close Sidebar",
|
|
1447
1434
|
children: [/* @__PURE__ */ I("div", {
|
|
1448
1435
|
className: a("hidden", { flex: !r }),
|
|
1449
|
-
children: /* @__PURE__ */ I(
|
|
1436
|
+
children: /* @__PURE__ */ I(It, { isExpanded: t === "locked" })
|
|
1450
1437
|
}), /* @__PURE__ */ I("div", {
|
|
1451
1438
|
className: a("hidden", { flex: r }),
|
|
1452
|
-
children: /* @__PURE__ */ I(
|
|
1453
|
-
icon:
|
|
1439
|
+
children: /* @__PURE__ */ I(b, {
|
|
1440
|
+
icon: y,
|
|
1454
1441
|
size: "md"
|
|
1455
1442
|
})
|
|
1456
1443
|
})]
|
|
1457
1444
|
});
|
|
1458
1445
|
}
|
|
1459
|
-
function
|
|
1446
|
+
function Rt() {
|
|
1460
1447
|
let { hasPrimarySidebar: e } = wt();
|
|
1461
|
-
return I(e ?
|
|
1448
|
+
return I(e ? Ft : Lt, {});
|
|
1462
1449
|
}
|
|
1463
1450
|
//#endregion
|
|
1464
1451
|
//#region src/addons/map/F0Map/components/F0MapSidebarToggle/F0MapSidebarToggle.tsx
|
|
1465
|
-
var
|
|
1452
|
+
var zt = k(({ expanded: e, onToggle: t, label: n, bare: a = !1, dataTestId: o }, s) => {
|
|
1466
1453
|
let l = i(), u = n ?? (e ? l.map.controls.hidePanel : l.map.controls.showPanel), d = /* @__PURE__ */ I(c, {
|
|
1467
1454
|
ref: s,
|
|
1468
1455
|
variant: "ghost",
|
|
@@ -1473,29 +1460,29 @@ var Xt = k(({ expanded: e, onToggle: t, label: n, bare: a = !1, dataTestId: o },
|
|
|
1473
1460
|
title: u,
|
|
1474
1461
|
"aria-label": u,
|
|
1475
1462
|
"aria-expanded": e,
|
|
1476
|
-
children: /* @__PURE__ */ I(
|
|
1463
|
+
children: /* @__PURE__ */ I(It, { isExpanded: e })
|
|
1477
1464
|
});
|
|
1478
1465
|
return /* @__PURE__ */ I(r, {
|
|
1479
1466
|
dataTestId: o,
|
|
1480
1467
|
children: a ? d : /* @__PURE__ */ I(Me, { children: d })
|
|
1481
1468
|
});
|
|
1482
1469
|
});
|
|
1483
|
-
|
|
1470
|
+
zt.displayName = "F0MapSidebarToggle";
|
|
1484
1471
|
//#endregion
|
|
1485
1472
|
//#region src/addons/map/F0Map/utils/arc.ts
|
|
1486
|
-
var
|
|
1473
|
+
var Bt = (e, t, n = .3, r = 64) => {
|
|
1487
1474
|
let [i, a] = e, [o, s] = t, c = (i + o) / 2, l = (a + s) / 2, u = c - (s - a) * n, d = l + (o - i) * n, f = [];
|
|
1488
1475
|
for (let e = 0; e <= r; e++) {
|
|
1489
1476
|
let t = e / r, n = 1 - t, c = n * n, l = 2 * n * t, p = t * t;
|
|
1490
1477
|
f.push([c * i + l * u + p * o, c * a + l * d + p * s]);
|
|
1491
1478
|
}
|
|
1492
1479
|
return f;
|
|
1493
|
-
},
|
|
1480
|
+
}, Vt = (e, t) => e.color ?? H(e.variant ?? "radical", t), Ht = (e, t) => e.color ?? H(e.variant ?? "radical", !t), Ut = ({ id: e, kind: t, coordinates: n, style: r, isDark: i }) => {
|
|
1494
1481
|
let a = r.width ?? 3;
|
|
1495
1482
|
return {
|
|
1496
1483
|
id: e,
|
|
1497
1484
|
coordinates: n,
|
|
1498
|
-
color:
|
|
1485
|
+
color: Vt(r, i),
|
|
1499
1486
|
width: a,
|
|
1500
1487
|
opacity: r.opacity ?? 1,
|
|
1501
1488
|
dashed: r.dashed ?? !1,
|
|
@@ -1503,21 +1490,21 @@ var Zt = (e, t, n = .3, r = 64) => {
|
|
|
1503
1490
|
width: a * 1.6,
|
|
1504
1491
|
opacity: 1
|
|
1505
1492
|
} : {
|
|
1506
|
-
color:
|
|
1493
|
+
color: Ht(r, i),
|
|
1507
1494
|
opacity: 1
|
|
1508
1495
|
}
|
|
1509
1496
|
};
|
|
1510
|
-
},
|
|
1511
|
-
let o = N(() => [...t.map((e) =>
|
|
1497
|
+
}, Wt = ({ adapter: e, routes: t, arcs: n, isDark: r, onRouteClick: i, onArcClick: a }) => {
|
|
1498
|
+
let o = N(() => [...t.map((e) => Ut({
|
|
1512
1499
|
id: e.id,
|
|
1513
1500
|
kind: "route",
|
|
1514
1501
|
coordinates: e.coordinates,
|
|
1515
1502
|
style: e,
|
|
1516
1503
|
isDark: r
|
|
1517
|
-
})), ...n.map((e) =>
|
|
1504
|
+
})), ...n.map((e) => Ut({
|
|
1518
1505
|
id: e.id,
|
|
1519
1506
|
kind: "arc",
|
|
1520
|
-
coordinates:
|
|
1507
|
+
coordinates: Bt(e.from, e.to, e.curvature),
|
|
1521
1508
|
style: e,
|
|
1522
1509
|
isDark: r
|
|
1523
1510
|
}))], [
|
|
@@ -1545,23 +1532,23 @@ var Zt = (e, t, n = .3, r = 64) => {
|
|
|
1545
1532
|
o,
|
|
1546
1533
|
l
|
|
1547
1534
|
]), M(() => () => e.setLines([]), [e]), null;
|
|
1548
|
-
},
|
|
1535
|
+
}, Gt = ({ adapter: e, coords: t }) => (M(() => {
|
|
1549
1536
|
e.setCurrentLocation(t);
|
|
1550
1537
|
}, [e, t]), M(() => () => e.setCurrentLocation(null), [e]), null);
|
|
1551
|
-
|
|
1538
|
+
Gt.displayName = "CurrentLocationLayer";
|
|
1552
1539
|
//#endregion
|
|
1553
1540
|
//#region src/addons/map/F0Map/constants.ts
|
|
1554
|
-
var
|
|
1541
|
+
var Kt = {
|
|
1555
1542
|
curve: 1.42,
|
|
1556
1543
|
duration: 1400
|
|
1557
|
-
},
|
|
1544
|
+
}, qt = 200, Jt = ({ dataTestId: e, className: t }) => /* @__PURE__ */ I(r, {
|
|
1558
1545
|
dataTestId: e,
|
|
1559
1546
|
children: /* @__PURE__ */ I("div", {
|
|
1560
1547
|
"aria-busy": "true",
|
|
1561
1548
|
"aria-live": "polite",
|
|
1562
1549
|
className: a("h-full w-full animate-pulse bg-f1-background-secondary", t)
|
|
1563
1550
|
})
|
|
1564
|
-
}),
|
|
1551
|
+
}), Yt = (e) => {
|
|
1565
1552
|
let [t, n] = F(null), r = A((t) => {
|
|
1566
1553
|
e && typeof navigator < "u" && navigator.geolocation && navigator.geolocation.getCurrentPosition((e) => {
|
|
1567
1554
|
let r = [e.coords.longitude, e.coords.latitude];
|
|
@@ -1584,7 +1571,7 @@ var rn = {
|
|
|
1584
1571
|
coords: t,
|
|
1585
1572
|
request: r
|
|
1586
1573
|
};
|
|
1587
|
-
},
|
|
1574
|
+
}, Xt = () => {
|
|
1588
1575
|
let [e, t] = F(!1), n = P(null), r = A((e) => {
|
|
1589
1576
|
if (n.current?.disconnect(), n.current = null, !e) return;
|
|
1590
1577
|
let r = () => t(e.closest(".dark") !== null);
|
|
@@ -1600,17 +1587,17 @@ var rn = {
|
|
|
1600
1587
|
containerRef: r,
|
|
1601
1588
|
isDark: e
|
|
1602
1589
|
};
|
|
1603
|
-
},
|
|
1604
|
-
maplibre: async () => (await import("./maplibre-
|
|
1590
|
+
}, Zt = {
|
|
1591
|
+
maplibre: async () => (await import("./maplibre-D0TBtDi0.js")).createMaplibreAdapter,
|
|
1605
1592
|
google: async (e) => (await import("./google-D1V0swd7.js")).loadGoogleAdapter(e)
|
|
1606
|
-
},
|
|
1607
|
-
let n =
|
|
1593
|
+
}, Qt = /* @__PURE__ */ new Map(), $t = (e, t) => {
|
|
1594
|
+
let n = Qt.get(e);
|
|
1608
1595
|
if (n) return n;
|
|
1609
|
-
let r =
|
|
1610
|
-
throw
|
|
1596
|
+
let r = Zt[e](t).catch((t) => {
|
|
1597
|
+
throw Qt.delete(e), t;
|
|
1611
1598
|
});
|
|
1612
|
-
return
|
|
1613
|
-
},
|
|
1599
|
+
return Qt.set(e, r), r;
|
|
1600
|
+
}, en = {
|
|
1614
1601
|
version: 8,
|
|
1615
1602
|
sources: { openmaptiles: {
|
|
1616
1603
|
type: "vector",
|
|
@@ -6498,7 +6485,7 @@ var rn = {
|
|
|
6498
6485
|
],
|
|
6499
6486
|
name: "f0-dark",
|
|
6500
6487
|
metadata: { "f0:generated": !0 }
|
|
6501
|
-
},
|
|
6488
|
+
}, tn = {
|
|
6502
6489
|
version: 8,
|
|
6503
6490
|
sources: { openmaptiles: {
|
|
6504
6491
|
type: "vector",
|
|
@@ -11386,7 +11373,7 @@ var rn = {
|
|
|
11386
11373
|
],
|
|
11387
11374
|
name: "f0-light",
|
|
11388
11375
|
metadata: { "f0:generated": !0 }
|
|
11389
|
-
},
|
|
11376
|
+
}, nn = [
|
|
11390
11377
|
{
|
|
11391
11378
|
featureType: "landscape",
|
|
11392
11379
|
elementType: "geometry.fill",
|
|
@@ -11542,7 +11529,7 @@ var rn = {
|
|
|
11542
11529
|
elementType: "labels.icon",
|
|
11543
11530
|
stylers: [{ visibility: "off" }]
|
|
11544
11531
|
}
|
|
11545
|
-
],
|
|
11532
|
+
], rn = [
|
|
11546
11533
|
{
|
|
11547
11534
|
featureType: "landscape",
|
|
11548
11535
|
elementType: "geometry.fill",
|
|
@@ -11698,44 +11685,44 @@ var rn = {
|
|
|
11698
11685
|
elementType: "labels.icon",
|
|
11699
11686
|
stylers: [{ visibility: "off" }]
|
|
11700
11687
|
}
|
|
11701
|
-
],
|
|
11688
|
+
], an = {
|
|
11702
11689
|
provider: "maplibre",
|
|
11703
|
-
light:
|
|
11704
|
-
dark:
|
|
11705
|
-
},
|
|
11690
|
+
light: tn,
|
|
11691
|
+
dark: en
|
|
11692
|
+
}, on = {
|
|
11706
11693
|
provider: "google",
|
|
11707
|
-
light:
|
|
11708
|
-
dark:
|
|
11709
|
-
},
|
|
11694
|
+
light: rn,
|
|
11695
|
+
dark: nn
|
|
11696
|
+
}, sn = (e, t) => ({
|
|
11710
11697
|
featureType: e,
|
|
11711
11698
|
elementType: t,
|
|
11712
11699
|
stylers: [{ visibility: "off" }]
|
|
11713
|
-
}),
|
|
11714
|
-
|
|
11715
|
-
|
|
11716
|
-
|
|
11717
|
-
],
|
|
11700
|
+
}), cn = [
|
|
11701
|
+
sn("poi", "labels"),
|
|
11702
|
+
sn("transit", "labels"),
|
|
11703
|
+
sn("road", "labels.icon")
|
|
11704
|
+
], ln = {
|
|
11718
11705
|
provider: "google",
|
|
11719
|
-
light:
|
|
11720
|
-
dark:
|
|
11721
|
-
},
|
|
11706
|
+
light: cn,
|
|
11707
|
+
dark: cn
|
|
11708
|
+
}, un = (e) => e === "google" ? ln : an, dn = (e, t, n) => {
|
|
11722
11709
|
let r = e.on(t, () => {
|
|
11723
11710
|
r(), n();
|
|
11724
11711
|
});
|
|
11725
11712
|
return r;
|
|
11726
|
-
},
|
|
11713
|
+
}, fn = {
|
|
11727
11714
|
center: [2.154, 41.39],
|
|
11728
11715
|
zoom: 11
|
|
11729
|
-
},
|
|
11716
|
+
}, pn = (e, t, n, r) => [
|
|
11730
11717
|
...e.map((e) => e.coordinates),
|
|
11731
11718
|
...t.flatMap((e) => e.coordinates),
|
|
11732
11719
|
...n.flatMap((e) => [e.from, e.to]),
|
|
11733
11720
|
...r.flatMap((e) => he(e.center, e.radiusMeters))
|
|
11734
|
-
],
|
|
11735
|
-
let l =
|
|
11721
|
+
], mn = (e) => e.top === 0 && e.right === 0 && e.bottom === 0 && e.left === 0, hn = ({ adapter: e, points: t, animate: n, routes: r = [], arcs: i = [], areas: a = [], gutter: o = 64, inset: s, size: c }) => {
|
|
11722
|
+
let l = pn(t, r, i, a);
|
|
11736
11723
|
if (l.length === 0) return;
|
|
11737
11724
|
let u = a.length > 0 ? 17 : 15;
|
|
11738
|
-
if (l.length > 1 &&
|
|
11725
|
+
if (l.length > 1 && mn(s)) {
|
|
11739
11726
|
e.fitCoordinates(l, {
|
|
11740
11727
|
gutter: o,
|
|
11741
11728
|
maxZoom: u,
|
|
@@ -11755,10 +11742,10 @@ var rn = {
|
|
|
11755
11742
|
maxZoom: u
|
|
11756
11743
|
});
|
|
11757
11744
|
d && (n ? e.easeTo(d, { animate: n }) : e.jumpTo(d, { animate: n }));
|
|
11758
|
-
},
|
|
11759
|
-
let Se = w ?? (O ? "greedy" : "cooperative"), R = i(), z = e(ge), Ce = t(), we = P(null), B = P(null), [V, Te] = F(null), [H, Ee] = F(!1), [Oe, U] = F(!1), [ke, Ae] = F(0), je = ne(), K = d(), { containerRef: Fe, isDark: Ie } =
|
|
11745
|
+
}, gn = (e) => `${e.top},${e.right},${e.bottom},${e.left}`, _n = k(function({ markers: n = [], routes: o = [], arcs: s = [], areas: c = [], onRouteClick: l, onArcClick: u, selectedMarkerId: f, defaultSelectedMarkerId: p = null, onMarkerSelect: m, onMarkerDrag: h, onMarkerDragEnd: g, highlightedId: _ = null, viewportInset: v, centerOnMarkerClick: y = !1, fitToMarkers: b, initialViewport: x, mapStyle: S, interactive: C = !0, gestureHandling: w, minZoom: T, maxZoom: E = 18, showControls: ee = !0, controlLabels: te, showCurrentLocation: D = !1, fullScreen: O = !1, onSidebarToggle: k, sidebarExpanded: j = !1, sidebarToggleAddon: ie, sidebarHeaderStart: N, sidebar: oe, detail: fe, detailOpen: pe = !1, clearSelectionOnBackgroundClick: me = !0, projection: he = "mercator", provider: ge, loading: _e = !1, ariaLabel: ve, dataTestId: ye, className: be }, xe) {
|
|
11746
|
+
let Se = w ?? (O ? "greedy" : "cooperative"), R = i(), z = e(ge), Ce = t(), we = P(null), B = P(null), [V, Te] = F(null), [H, Ee] = F(!1), [Oe, U] = F(!1), [ke, Ae] = F(0), je = ne(), K = d(), { containerRef: Fe, isDark: Ie } = Xt(), Le = A((e) => {
|
|
11760
11747
|
we.current = e, Fe(e);
|
|
11761
|
-
}, [Fe]), Re = Ie, ze = !S || S.provider === z, Be = ze ? S ??
|
|
11748
|
+
}, [Fe]), Re = Ie, ze = !S || S.provider === z, Be = ze ? S ?? un(z) : un(z), q = Re ? Be.dark : Be.light, Ve = P(!1);
|
|
11762
11749
|
M(() => {
|
|
11763
11750
|
ze || Ve.current || (Ve.current = !0, console.warn(`F0Map: ignoring a "${S?.provider}" mapStyle on the "${z}" engine - the shapes are not interchangeable. Pass a "${z}" style, or none for its default look.`));
|
|
11764
11751
|
}, [
|
|
@@ -11796,7 +11783,7 @@ var rn = {
|
|
|
11796
11783
|
size: e
|
|
11797
11784
|
};
|
|
11798
11785
|
}, []), at = A((e, t) => {
|
|
11799
|
-
Z.current = { kind: "fit" },
|
|
11786
|
+
Z.current = { kind: "fit" }, hn({
|
|
11800
11787
|
adapter: e,
|
|
11801
11788
|
points: Y.current,
|
|
11802
11789
|
animate: t,
|
|
@@ -11833,7 +11820,7 @@ var rn = {
|
|
|
11833
11820
|
M(() => {
|
|
11834
11821
|
ut.current || n.length <= 200 || (ut.current = !0, console.warn(`F0Map: ${n.length} markers exceeds the recommended maximum of 200. Markers are DOM elements - pan/zoom will degrade. Aggregate or filter the data, or wait for a GL clustering path.`));
|
|
11835
11822
|
}, [n.length]);
|
|
11836
|
-
let { coords: dt, request: ft } =
|
|
11823
|
+
let { coords: dt, request: ft } = Yt(D), pt = A(() => {
|
|
11837
11824
|
Z.current = null, B.current?.zoomIn();
|
|
11838
11825
|
}, []), mt = A(() => {
|
|
11839
11826
|
Z.current = null, B.current?.zoomOut();
|
|
@@ -11895,21 +11882,21 @@ var rn = {
|
|
|
11895
11882
|
yt.current = q;
|
|
11896
11883
|
let bt = P(Ce);
|
|
11897
11884
|
bt.current = Ce;
|
|
11898
|
-
let xt = P(null), St = P(x ??
|
|
11885
|
+
let xt = P(null), St = P(x ?? fn);
|
|
11899
11886
|
M(() => {
|
|
11900
11887
|
if (_e) return;
|
|
11901
11888
|
let e = we.current;
|
|
11902
11889
|
if (!e) return;
|
|
11903
11890
|
xt.current = yt.current;
|
|
11904
11891
|
let t = St.current, n = null, r = !1, i = [];
|
|
11905
|
-
return
|
|
11892
|
+
return $t(z, bt.current).then((i) => {
|
|
11906
11893
|
if (!r) {
|
|
11907
11894
|
try {
|
|
11908
11895
|
n = i({
|
|
11909
11896
|
container: e,
|
|
11910
11897
|
style: yt.current,
|
|
11911
11898
|
center: t.center,
|
|
11912
|
-
zoom: t.zoom ??
|
|
11899
|
+
zoom: t.zoom ?? fn.zoom,
|
|
11913
11900
|
minZoom: T,
|
|
11914
11901
|
maxZoom: E,
|
|
11915
11902
|
interactive: C,
|
|
@@ -11929,8 +11916,8 @@ var rn = {
|
|
|
11929
11916
|
function a(e) {
|
|
11930
11917
|
B.current = e, Te(e), Ee(!1);
|
|
11931
11918
|
let t = !1;
|
|
11932
|
-
i.push(
|
|
11933
|
-
t = !0, U(!1), e.resize(), it &&
|
|
11919
|
+
i.push(dn(e, "ready", () => {
|
|
11920
|
+
t = !0, U(!1), e.resize(), it && hn({
|
|
11934
11921
|
adapter: e,
|
|
11935
11922
|
points: Y.current,
|
|
11936
11923
|
animate: !1,
|
|
@@ -11956,7 +11943,7 @@ var rn = {
|
|
|
11956
11943
|
ke
|
|
11957
11944
|
]), M(() => {
|
|
11958
11945
|
let e = B.current;
|
|
11959
|
-
e && xt.current !== q && (xt.current = q, e.applyStyle(q),
|
|
11946
|
+
e && xt.current !== q && (xt.current = q, e.applyStyle(q), dn(e, "styled", () => e.setGlobeProjection(et.current === "globe")));
|
|
11960
11947
|
}, [q]), M(() => {
|
|
11961
11948
|
B.current?.setGlobeProjection(he === "globe");
|
|
11962
11949
|
}, [he]);
|
|
@@ -11966,7 +11953,7 @@ var rn = {
|
|
|
11966
11953
|
let e = B.current, t = Y.current.find((e) => e.id === _);
|
|
11967
11954
|
e && t && Ct.current(e, t);
|
|
11968
11955
|
}, [_]);
|
|
11969
|
-
let wt =
|
|
11956
|
+
let wt = gn(Xe), Tt = P(null);
|
|
11970
11957
|
M(() => {
|
|
11971
11958
|
let e = Tt.current;
|
|
11972
11959
|
Tt.current = nt.current;
|
|
@@ -12002,7 +11989,7 @@ var rn = {
|
|
|
12002
11989
|
let kt = Dt > Ot.current.from ? G.enter : G.exit, At = J ? G.enter : G.exit;
|
|
12003
11990
|
return /* @__PURE__ */ I(r, {
|
|
12004
11991
|
dataTestId: ye,
|
|
12005
|
-
children: _e ? /* @__PURE__ */ I(
|
|
11992
|
+
children: _e ? /* @__PURE__ */ I(Jt, { className: be }) : /* @__PURE__ */ L("div", {
|
|
12006
11993
|
ref: Le,
|
|
12007
11994
|
role: "region",
|
|
12008
11995
|
"aria-label": ve ?? R.map.region,
|
|
@@ -12024,14 +12011,14 @@ var rn = {
|
|
|
12024
12011
|
areas: c,
|
|
12025
12012
|
isDark: Re
|
|
12026
12013
|
}) : null,
|
|
12027
|
-
!H && V && dt ? /* @__PURE__ */ L(ae, { children: [/* @__PURE__ */ I(
|
|
12014
|
+
!H && V && dt ? /* @__PURE__ */ L(ae, { children: [/* @__PURE__ */ I(Gt, {
|
|
12028
12015
|
adapter: V,
|
|
12029
12016
|
coords: dt
|
|
12030
12017
|
}), /* @__PURE__ */ I("span", {
|
|
12031
12018
|
className: "sr-only",
|
|
12032
12019
|
children: R.map.currentLocation
|
|
12033
12020
|
})] }) : null,
|
|
12034
|
-
!H && V && Et ? /* @__PURE__ */ I(
|
|
12021
|
+
!H && V && Et ? /* @__PURE__ */ I(Wt, {
|
|
12035
12022
|
adapter: V,
|
|
12036
12023
|
routes: o,
|
|
12037
12024
|
arcs: s,
|
|
@@ -12071,7 +12058,7 @@ var rn = {
|
|
|
12071
12058
|
ref: (e) => {
|
|
12072
12059
|
J ? e?.setAttribute("inert", "") : e?.removeAttribute("inert");
|
|
12073
12060
|
},
|
|
12074
|
-
children: [/* @__PURE__ */ I(
|
|
12061
|
+
children: [/* @__PURE__ */ I(zt, {
|
|
12075
12062
|
expanded: !1,
|
|
12076
12063
|
onToggle: k
|
|
12077
12064
|
}), ie ? /* @__PURE__ */ I(Me, { children: ie }) : null]
|
|
@@ -12082,7 +12069,7 @@ var rn = {
|
|
|
12082
12069
|
offsetX: W.inset,
|
|
12083
12070
|
width: W.listWidth,
|
|
12084
12071
|
headerStart: N,
|
|
12085
|
-
headerEnd: /* @__PURE__ */ I(
|
|
12072
|
+
headerEnd: /* @__PURE__ */ I(zt, {
|
|
12086
12073
|
expanded: !0,
|
|
12087
12074
|
onToggle: k,
|
|
12088
12075
|
bare: !0,
|
|
@@ -12131,7 +12118,7 @@ var rn = {
|
|
|
12131
12118
|
})
|
|
12132
12119
|
});
|
|
12133
12120
|
});
|
|
12134
|
-
|
|
12135
|
-
var
|
|
12121
|
+
_n.displayName = "F0Map";
|
|
12122
|
+
var vn = _n;
|
|
12136
12123
|
//#endregion
|
|
12137
|
-
export { Ne as
|
|
12124
|
+
export { Ne as S, vt as _, ln as a, Ke as b, qt as c, It as d, kt as f, wt as g, Ct as h, on as i, zt as l, Dt as m, un as n, Jt as o, At as p, an as r, Kt as s, vn as t, Rt as u, ht as v, Pe as x, ct as y };
|