@factorialco/f0-react 16.32.1 → 16.34.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-BuNA4UrO.js → ArchiveThumbnail-VRBMnfOQ.js} +4 -4
- package/dist/{ArchiveViewer-W103xRky.js → ArchiveViewer-FmO3W9El.js} +12 -12
- package/dist/{ChatPostComposerDialog-BCXfHgyD.js → ChatPostComposerDialog-UWNCaU6S.js} +2 -2
- package/dist/{CoachmarkProvider-CXRAZo57.js → CoachmarkProvider-NJDyjcbB.js} +17288 -17310
- package/dist/{CodeThumbnail-CrMWds9n.js → CodeThumbnail-BLWM5FmO.js} +1 -1
- package/dist/{CodeViewer-BYY3y3VG.js → CodeViewer-BjVmQeMm.js} +4 -4
- package/dist/{DocumentToolbar-CipRq68O.js → DocumentToolbar-Dq3Lwikl.js} +3 -3
- package/dist/{DocxViewer-8dEvcQjH.js → DocxViewer-70VqeeOa.js} +1 -1
- package/dist/{F0AiProcessingOverlay-CelAhVN1.js → F0AiProcessingOverlay-DFJNq358.js} +506 -506
- package/dist/{F0Alert-CjoArzBk.js → F0Alert-nVgfw7WI.js} +6 -6
- package/dist/F0AudioPlayer-CG3RpwqJ.js +2 -0
- package/dist/{F0CanvasPanel-B7AXL0XT.js → F0CanvasPanel-Dg-yCd06.js} +9497 -9662
- package/dist/{F0DocumentViewer-DcNc-yXR.js → F0DocumentViewer-QvayGtJt.js} +2 -2
- package/dist/{F0DocumentViewer-DVByu4vb.js → F0DocumentViewer-s2CNCz31.js} +1 -1
- package/dist/{F0Map-BN8BQzMZ.js → F0Map-BPWgG3Br.js} +503 -503
- package/dist/{F0Select-CtRlKRnL.js → F0Select-DV2A6yo2.js} +5684 -5684
- package/dist/{F0VideoPlayer-THvSQSCu.js → F0VideoPlayer-D7wWuao2.js} +14 -14
- package/dist/F0VideoPlayer-Dn8MFW-n.js +1 -0
- package/dist/{HtmlViewer-ClgjG-H_.js → HtmlViewer-B79wACEv.js} +4 -4
- package/dist/{Map-CdRcz8MV.js → Map-BwNqQnRV.js} +7 -7
- package/dist/{PdfThumbnail-CXYyO2sc.js → PdfThumbnail-BiI4wG8G.js} +1 -1
- package/dist/{PdfViewer-BNPz0po0.js → PdfViewer-DxW7iBqZ.js} +6 -6
- package/dist/{SheetViewer-BV4RjCqC.js → SheetViewer-CDGVktjK.js} +4 -4
- package/dist/{TextViewer-B-a77tb9.js → TextViewer-DSWQD1PY.js} +1 -1
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +3 -3
- package/dist/component-status.js +5 -5
- package/dist/experimental.d.ts +2 -2
- package/dist/experimental.js +570 -570
- package/dist/{exports-DxWkQJMl.d.ts → exports-DjzAyxYh.d.ts} +1 -1
- package/dist/f0.d.ts +3 -3
- package/dist/f0.js +944 -944
- package/dist/{highlight-B3C1rkLK.js → highlight-Ca0-nk5V.js} +6 -6
- package/dist/{index-MQOQkW-2.d.ts → index-D-HizTYE.d.ts} +13 -8
- package/dist/{index-CZ-TTSgT.d.ts → index-R6m9VGPq.d.ts} +8 -4
- package/dist/{maplibre-D5u_EpGf.js → maplibre-CQlQTgFD.js} +1 -1
- package/dist/{pdfWorker-allMZ4J8.js → pdfWorker-VXyiKOiL.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{useData-Clrt5l2P.js → useData-BUahpDRq.js} +1 -1
- package/package.json +2 -2
- package/dist/F0AudioPlayer-_zrcaPAA.js +0 -2
- package/dist/F0VideoPlayer-CB52ikkB.js +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Ci as e, a as t, o as n } from "./CoachmarkProvider-
|
|
1
|
+
import { Ci as e, a as t, o as n } from "./CoachmarkProvider-NJDyjcbB.js";
|
|
2
2
|
import { i as r, r as i } from "./i18n-provider-DEmElb7u.js";
|
|
3
3
|
import { L as a, R as o } from "./tooltip-NXXT56H4.js";
|
|
4
4
|
import { K as s, O as c, X as l, h as u, q as d, t as f, x as p } from "./F0Button-B9tE57M3.js";
|
|
5
|
-
import {
|
|
6
|
-
import { a as
|
|
7
|
-
import {
|
|
8
|
-
import { n as
|
|
9
|
-
import { createContext as
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import { createPortal as
|
|
5
|
+
import { Fs as m, Gc as h, dc as g, ll as _, p as v, r as y, sn as b, tn as ee } from "./F0CanvasPanel-Dg-yCd06.js";
|
|
6
|
+
import { a as x } from "./createIcon-l_kbsdJi.js";
|
|
7
|
+
import { N as S, T as C, U as w, p as T, z as E } from "./useData-BUahpDRq.js";
|
|
8
|
+
import { n as te, o as D, s as O, t as k } from "./dist-DMTFO2gF.js";
|
|
9
|
+
import { createContext as A, forwardRef as j, useCallback as M, useContext as ne, useEffect as N, useId as re, useImperativeHandle as ie, useLayoutEffect as P, useMemo as F, useRef as I, useState as L } from "react";
|
|
10
|
+
import { Fragment as ae, jsx as R, jsxs as z } from "react/jsx-runtime";
|
|
11
|
+
import { createPortal as oe } from "react-dom";
|
|
12
12
|
//#region src/addons/map/F0Map/camera.ts
|
|
13
|
-
var
|
|
13
|
+
var se = (e, t) => ({
|
|
14
14
|
top: Math.max(e?.top ?? 0, t?.top ?? 0),
|
|
15
15
|
right: Math.max(e?.right ?? 0, t?.right ?? 0),
|
|
16
16
|
bottom: Math.max(e?.bottom ?? 0, t?.bottom ?? 0),
|
|
17
17
|
left: Math.max(e?.left ?? 0, t?.left ?? 0)
|
|
18
|
-
}),
|
|
18
|
+
}), ce = (e, { width: t, height: n }) => {
|
|
19
19
|
let r = t > 0 && e.left + e.right >= t, i = n > 0 && e.top + e.bottom >= n;
|
|
20
20
|
return {
|
|
21
21
|
top: i ? 0 : e.top,
|
|
@@ -23,18 +23,18 @@ var oe = (e, t) => ({
|
|
|
23
23
|
left: r ? 0 : e.left,
|
|
24
24
|
right: r ? 0 : e.right
|
|
25
25
|
};
|
|
26
|
-
},
|
|
26
|
+
}, le = (e) => ({
|
|
27
27
|
x: (e.left - e.right) / 2,
|
|
28
28
|
y: (e.top - e.bottom) / 2
|
|
29
|
-
}),
|
|
30
|
-
let i =
|
|
29
|
+
}), ue = (e, t, n, r = e.getZoom()) => {
|
|
30
|
+
let i = le(n), a = e.project(t);
|
|
31
31
|
if (!a || i.x === 0 && i.y === 0) return t;
|
|
32
32
|
let o = 2 ** (e.getZoom() - r);
|
|
33
33
|
return e.unproject({
|
|
34
34
|
x: a.x - i.x * o,
|
|
35
35
|
y: a.y - i.y * o
|
|
36
36
|
}) ?? t;
|
|
37
|
-
},
|
|
37
|
+
}, de = ({ adapter: e, coordinates: t, inset: n, size: r, gutter: i, maxZoom: a }) => {
|
|
38
38
|
let o = e.cameraForCoordinates(t, { gutter: i });
|
|
39
39
|
if (!o) return null;
|
|
40
40
|
let s = (e, t, n) => e > 2 * i ? (e - t - n - 2 * i) / (e - 2 * i) : 1, c = Math.min(s(r.width, n.left, n.right), s(r.height, n.top, n.bottom)), l = o.zoom ?? e.getZoom();
|
|
@@ -44,17 +44,17 @@ var oe = (e, t) => ({
|
|
|
44
44
|
};
|
|
45
45
|
let u = Math.min(l + Math.log2(c), a);
|
|
46
46
|
return {
|
|
47
|
-
center:
|
|
47
|
+
center: ue(e, o.center, n, u),
|
|
48
48
|
zoom: u
|
|
49
49
|
};
|
|
50
|
-
},
|
|
51
|
-
let [r, i] = e, a =
|
|
50
|
+
}, fe = 6371008.8, pe = (e) => e * Math.PI / 180, me = (e) => e * 180 / Math.PI, he = (e, t, n = 64) => {
|
|
51
|
+
let [r, i] = e, a = pe(i), o = pe(r), s = Math.max(t, 0) / fe, c = [];
|
|
52
52
|
for (let e = 0; e < n; e++) {
|
|
53
53
|
let t = 2 * Math.PI * e / n, r = Math.asin(Math.sin(a) * Math.cos(s) + Math.cos(a) * Math.sin(s) * Math.cos(t)), i = o + Math.atan2(Math.sin(t) * Math.sin(s) * Math.cos(a), Math.cos(s) - Math.sin(a) * Math.sin(r));
|
|
54
|
-
c.push([
|
|
54
|
+
c.push([me(i), me(r)]);
|
|
55
55
|
}
|
|
56
56
|
return c.push(c[0]), c;
|
|
57
|
-
},
|
|
57
|
+
}, ge = [
|
|
58
58
|
"neutral",
|
|
59
59
|
"grey",
|
|
60
60
|
"radical",
|
|
@@ -72,15 +72,15 @@ var oe = (e, t) => ({
|
|
|
72
72
|
"army",
|
|
73
73
|
"smoke",
|
|
74
74
|
"barbie"
|
|
75
|
-
].filter((e) => e !== "neutral" && e !== "grey"),
|
|
76
|
-
neutral:
|
|
77
|
-
grey:
|
|
78
|
-
...Object.fromEntries(
|
|
79
|
-
},
|
|
80
|
-
neutral:
|
|
75
|
+
].filter((e) => e !== "neutral" && e !== "grey"), _e = {
|
|
76
|
+
neutral: k.grey[100],
|
|
77
|
+
grey: k.grey.solid[50],
|
|
78
|
+
...Object.fromEntries(ge.map((e) => [e, k[e][50]]))
|
|
79
|
+
}, ve = (e) => `hsl(${_e[e]})`, ye = {
|
|
80
|
+
neutral: k.grey[100],
|
|
81
81
|
grey: "218 14% 30%",
|
|
82
|
-
...Object.fromEntries(
|
|
83
|
-
},
|
|
82
|
+
...Object.fromEntries(ge.map((e) => [e, k[e][70]]))
|
|
83
|
+
}, be = (e, t) => t ? ye[e] : _e[e], B = k.grey[100], V = {
|
|
84
84
|
sm: {
|
|
85
85
|
d: 16,
|
|
86
86
|
border: 1.5,
|
|
@@ -141,87 +141,87 @@ var oe = (e, t) => ({
|
|
|
141
141
|
icon: "lg",
|
|
142
142
|
avatar: "lg"
|
|
143
143
|
}
|
|
144
|
-
},
|
|
145
|
-
let e =
|
|
146
|
-
return -(e.d - e.caretOverlap + e.caretH +
|
|
147
|
-
},
|
|
148
|
-
let { size: i = "md", selected: s = !1, collapsed: c = !1, label: u, showLabel: f = !0, labelPlacement: p = "right", onClick: m, ariaLabel: h, presentational: g = !1, dataTestId: _, className: v } = t, y = t.variant ?? "color", b =
|
|
144
|
+
}, xe = (e) => V[e], H = 5.6, U = 1.5, W = () => {
|
|
145
|
+
let e = V.xl;
|
|
146
|
+
return -(e.d - e.caretOverlap + e.caretH + H + U) + 3;
|
|
147
|
+
}, G = "hsl(var(--white-100))", K = j(function(t, n) {
|
|
148
|
+
let { size: i = "md", selected: s = !1, collapsed: c = !1, label: u, showLabel: f = !0, labelPlacement: p = "right", onClick: m, ariaLabel: h, presentational: g = !1, dataTestId: _, className: v } = t, y = t.variant ?? "color", b = V[s ? "xl" : i], ee = !!m, S = y === "color" || y === "icon" || y === "letter", w = y === "person" && "firstName" in t ? t.firstName + t.lastName : (y === "team" || y === "company") && "name" in t ? t.name : null, E = S ? t.color ?? "radical" : w ? y === "person" && "src" in t && t.src ? "grey" : C(w) ?? "grey" : "neutral", te = e(), D = s ? 32 : {
|
|
149
149
|
xs: 12,
|
|
150
150
|
sm: 16,
|
|
151
151
|
md: 20,
|
|
152
152
|
lg: 24
|
|
153
|
-
}[b.icon],
|
|
153
|
+
}[b.icon], O = {
|
|
154
154
|
xs: 20,
|
|
155
155
|
sm: 24,
|
|
156
156
|
md: 32,
|
|
157
157
|
lg: 40
|
|
158
|
-
},
|
|
158
|
+
}, k = V[i].avatar, A = s ? O[b.avatar] / O[k] : 1, j = (e) => /* @__PURE__ */ R("span", {
|
|
159
159
|
className: "flex shrink-0 items-center justify-center transition-transform duration-200 ease-out",
|
|
160
|
-
style: { transform: `scale(${
|
|
160
|
+
style: { transform: `scale(${A})` },
|
|
161
161
|
children: e
|
|
162
|
-
}),
|
|
162
|
+
}), M = y === "color" ? null : y === "icon" && "icon" in t ? /* @__PURE__ */ R(x, {
|
|
163
163
|
icon: t.icon,
|
|
164
164
|
size: b.icon,
|
|
165
165
|
color: "#ffffff",
|
|
166
166
|
style: {
|
|
167
|
-
width:
|
|
168
|
-
height:
|
|
167
|
+
width: D,
|
|
168
|
+
height: D,
|
|
169
169
|
transition: "width 200ms ease-out, height 200ms ease-out"
|
|
170
170
|
}
|
|
171
|
-
}) : y === "letter" && "letter" in t ? /* @__PURE__ */
|
|
171
|
+
}) : y === "letter" && "letter" in t ? /* @__PURE__ */ R("span", {
|
|
172
172
|
"aria-hidden": !0,
|
|
173
173
|
className: "font-semibold leading-none",
|
|
174
174
|
style: {
|
|
175
|
-
color:
|
|
176
|
-
fontSize: Math.round(
|
|
175
|
+
color: G,
|
|
176
|
+
fontSize: Math.round(D * .78),
|
|
177
177
|
transition: "font-size 200ms ease-out"
|
|
178
178
|
},
|
|
179
179
|
children: t.letter.charAt(0).toUpperCase()
|
|
180
|
-
}) : y === "person" && "firstName" in t ?
|
|
180
|
+
}) : y === "person" && "firstName" in t ? j(/* @__PURE__ */ R(T, {
|
|
181
181
|
avatar: {
|
|
182
182
|
type: "person",
|
|
183
183
|
firstName: t.firstName,
|
|
184
184
|
lastName: t.lastName,
|
|
185
185
|
src: t.src
|
|
186
186
|
},
|
|
187
|
-
size:
|
|
188
|
-
})) : y === "team" && "name" in t ?
|
|
187
|
+
size: k
|
|
188
|
+
})) : y === "team" && "name" in t ? j(/* @__PURE__ */ R(T, {
|
|
189
189
|
avatar: {
|
|
190
190
|
type: "team",
|
|
191
191
|
name: t.name,
|
|
192
192
|
src: t.src
|
|
193
193
|
},
|
|
194
|
-
size:
|
|
195
|
-
})) : y === "company" && "name" in t ?
|
|
194
|
+
size: k
|
|
195
|
+
})) : y === "company" && "name" in t ? j(/* @__PURE__ */ R(T, {
|
|
196
196
|
avatar: {
|
|
197
197
|
type: "company",
|
|
198
198
|
name: t.name,
|
|
199
199
|
src: t.src
|
|
200
200
|
},
|
|
201
|
-
size:
|
|
202
|
-
})) : y === "image" && "src" in t ? /* @__PURE__ */
|
|
201
|
+
size: k
|
|
202
|
+
})) : y === "image" && "src" in t ? /* @__PURE__ */ R("img", {
|
|
203
203
|
src: t.src,
|
|
204
204
|
alt: "alt" in t ? t.alt ?? "" : "",
|
|
205
205
|
className: "h-full w-full object-cover"
|
|
206
|
-
}) : null,
|
|
206
|
+
}) : null, ne = y === "team" || y === "company" || y === "icon", N = /* @__PURE__ */ R("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
209
|
width: b.d,
|
|
210
210
|
height: b.d,
|
|
211
|
-
borderRadius:
|
|
211
|
+
borderRadius: ne ? Math.round(b.d * .3) : 9999,
|
|
212
212
|
borderWidth: b.border,
|
|
213
|
-
borderColor:
|
|
214
|
-
backgroundColor:
|
|
213
|
+
borderColor: G,
|
|
214
|
+
backgroundColor: S ? ve(E) : G
|
|
215
215
|
},
|
|
216
|
-
children: y === "color" ? /* @__PURE__ */
|
|
216
|
+
children: y === "color" ? /* @__PURE__ */ R("span", {
|
|
217
217
|
className: "rounded-full transition-all duration-200 ease-out",
|
|
218
218
|
style: {
|
|
219
219
|
width: b.d * .36,
|
|
220
220
|
height: b.d * .36,
|
|
221
|
-
backgroundColor:
|
|
221
|
+
backgroundColor: G
|
|
222
222
|
}
|
|
223
|
-
}) :
|
|
224
|
-
}),
|
|
223
|
+
}) : M
|
|
224
|
+
}), re = /* @__PURE__ */ R(l, { children: s ? /* @__PURE__ */ R(d.svg, {
|
|
225
225
|
width: b.caretW,
|
|
226
226
|
height: b.caretH,
|
|
227
227
|
viewBox: "0 0 16 13",
|
|
@@ -230,7 +230,7 @@ var oe = (e, t) => ({
|
|
|
230
230
|
style: {
|
|
231
231
|
top: b.d - b.caretOverlap - 3,
|
|
232
232
|
marginLeft: -b.caretW / 2,
|
|
233
|
-
fill:
|
|
233
|
+
fill: G,
|
|
234
234
|
transformOrigin: "50% 0%"
|
|
235
235
|
},
|
|
236
236
|
initial: {
|
|
@@ -245,84 +245,84 @@ var oe = (e, t) => ({
|
|
|
245
245
|
scaleY: 0,
|
|
246
246
|
opacity: 0
|
|
247
247
|
},
|
|
248
|
-
transition:
|
|
248
|
+
transition: te ? { duration: 0 } : {
|
|
249
249
|
duration: .18,
|
|
250
250
|
ease: "easeOut",
|
|
251
251
|
opacity: { duration: .1 }
|
|
252
252
|
},
|
|
253
|
-
children: /* @__PURE__ */
|
|
254
|
-
}, "caret") : null }),
|
|
253
|
+
children: /* @__PURE__ */ R("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
|
+
}, "caret") : null }), ie = /* @__PURE__ */ z("span", {
|
|
255
255
|
className: "relative inline-flex",
|
|
256
|
-
style: { filter: `drop-shadow(0 ${b.shadowY}px ${b.shadowBlur / 2}px hsl(${
|
|
257
|
-
children: [
|
|
258
|
-
}),
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
`0 1px 2px ${
|
|
262
|
-
`0 -1px 2px ${
|
|
263
|
-
`1px 0 2px ${
|
|
264
|
-
`-1px 0 2px ${
|
|
265
|
-
].join(","),
|
|
256
|
+
style: { filter: `drop-shadow(0 ${b.shadowY}px ${b.shadowBlur / 2}px hsl(${B} / 0.3))` },
|
|
257
|
+
children: [re, N]
|
|
258
|
+
}), P = V[i], F = b.d / 2, I = H, L = s ? W() : -F, oe = s ? "bottom" : p, se = `0 0 ${Math.max(2, Math.round(P.label * .28))}px ${G}`, ce = [
|
|
259
|
+
se,
|
|
260
|
+
se,
|
|
261
|
+
`0 1px 2px ${G}`,
|
|
262
|
+
`0 -1px 2px ${G}`,
|
|
263
|
+
`1px 0 2px ${G}`,
|
|
264
|
+
`-1px 0 2px ${G}`
|
|
265
|
+
].join(","), le = !s && (oe === "top" || oe === "bottom"), ue = le ? "line-clamp-4 text-center" : s ? "whitespace-nowrap text-center" : "whitespace-nowrap", de = P.d / 2, fe = {
|
|
266
266
|
right: {
|
|
267
|
-
transform: `translate(${
|
|
268
|
-
style: { paddingLeft:
|
|
267
|
+
transform: `translate(${de}px, -50%)`,
|
|
268
|
+
style: { paddingLeft: P.gap }
|
|
269
269
|
},
|
|
270
270
|
left: {
|
|
271
|
-
transform: `translate(calc(-100% - ${
|
|
271
|
+
transform: `translate(calc(-100% - ${de}px), -50%)`,
|
|
272
272
|
style: {
|
|
273
|
-
paddingRight:
|
|
273
|
+
paddingRight: P.gap,
|
|
274
274
|
textAlign: "right"
|
|
275
275
|
}
|
|
276
276
|
},
|
|
277
277
|
top: {
|
|
278
|
-
transform: `translate(-50%, calc(-100% - ${
|
|
279
|
-
style: { paddingBottom:
|
|
278
|
+
transform: `translate(-50%, calc(-100% - ${de}px))`,
|
|
279
|
+
style: { paddingBottom: P.gap }
|
|
280
280
|
},
|
|
281
281
|
bottom: {
|
|
282
|
-
transform: `translate(-50%, ${s ?
|
|
283
|
-
style: { paddingTop:
|
|
282
|
+
transform: `translate(-50%, ${s ? I : de}px)`,
|
|
283
|
+
style: { paddingTop: P.gap + (s ? 4 : 0) }
|
|
284
284
|
}
|
|
285
|
-
}[
|
|
286
|
-
className: a("absolute left-0 top-0 font-semibold leading-tight transition-all duration-200 ease-out",
|
|
285
|
+
}[oe], pe = u && f && !c && /* @__PURE__ */ R("span", {
|
|
286
|
+
className: a("absolute left-0 top-0 font-semibold leading-tight transition-all duration-200 ease-out", ue),
|
|
287
287
|
style: {
|
|
288
|
-
color: `hsl(${
|
|
289
|
-
fontSize:
|
|
290
|
-
textShadow:
|
|
291
|
-
transform:
|
|
292
|
-
maxWidth:
|
|
293
|
-
...
|
|
288
|
+
color: `hsl(${ye[E]})`,
|
|
289
|
+
fontSize: P.label,
|
|
290
|
+
textShadow: ce,
|
|
291
|
+
transform: fe.transform,
|
|
292
|
+
maxWidth: le ? P.maxLabelW : void 0,
|
|
293
|
+
...fe.style
|
|
294
294
|
},
|
|
295
295
|
children: u
|
|
296
|
-
}),
|
|
296
|
+
}), me = /* @__PURE__ */ R("span", {
|
|
297
297
|
"aria-hidden": !0,
|
|
298
298
|
className: "absolute left-0 top-0 rounded-full border-solid transition-all duration-200 ease-out",
|
|
299
299
|
style: {
|
|
300
|
-
width:
|
|
301
|
-
height:
|
|
300
|
+
width: I * 2,
|
|
301
|
+
height: I * 2,
|
|
302
302
|
marginLeft: -5.6,
|
|
303
303
|
marginTop: -5.6,
|
|
304
304
|
borderWidth: 1.5,
|
|
305
|
-
borderColor:
|
|
306
|
-
backgroundColor:
|
|
307
|
-
boxShadow: `0 1px 2px hsl(${
|
|
305
|
+
borderColor: G,
|
|
306
|
+
backgroundColor: ve(E),
|
|
307
|
+
boxShadow: `0 1px 2px hsl(${B} / 0.3)`,
|
|
308
308
|
transform: `scale(${s || c ? 1 : 0})`,
|
|
309
309
|
opacity: s || c ? 1 : 0
|
|
310
310
|
}
|
|
311
|
-
}),
|
|
312
|
-
|
|
313
|
-
/* @__PURE__ */
|
|
311
|
+
}), he = /* @__PURE__ */ z(ae, { children: [
|
|
312
|
+
me,
|
|
313
|
+
/* @__PURE__ */ R("span", {
|
|
314
314
|
className: "absolute left-0 top-0 transition-all duration-200 ease-out",
|
|
315
315
|
style: {
|
|
316
|
-
transform: `translate(-50%, ${
|
|
316
|
+
transform: `translate(-50%, ${L}px) scale(${+!c})`,
|
|
317
317
|
opacity: +!c
|
|
318
318
|
},
|
|
319
|
-
children:
|
|
319
|
+
children: ie
|
|
320
320
|
}),
|
|
321
|
-
|
|
321
|
+
pe
|
|
322
322
|
] });
|
|
323
|
-
return /* @__PURE__ */
|
|
323
|
+
return /* @__PURE__ */ R(r, {
|
|
324
324
|
dataTestId: _,
|
|
325
|
-
children:
|
|
325
|
+
children: ee ? /* @__PURE__ */ R("button", {
|
|
326
326
|
ref: n,
|
|
327
327
|
type: "button",
|
|
328
328
|
...g ? {
|
|
@@ -334,102 +334,102 @@ var oe = (e, t) => ({
|
|
|
334
334
|
},
|
|
335
335
|
onClick: m,
|
|
336
336
|
className: a("relative inline-flex cursor-pointer border-0 bg-transparent p-0", "transition-transform duration-150 hover:scale-[1.05]", o("rounded-full"), v),
|
|
337
|
-
children:
|
|
338
|
-
}) : /* @__PURE__ */
|
|
337
|
+
children: he
|
|
338
|
+
}) : /* @__PURE__ */ R("span", {
|
|
339
339
|
role: "img",
|
|
340
340
|
"aria-label": h,
|
|
341
341
|
className: a("relative inline-flex", v),
|
|
342
|
-
children:
|
|
342
|
+
children: he
|
|
343
343
|
})
|
|
344
344
|
});
|
|
345
345
|
});
|
|
346
|
-
|
|
347
|
-
var
|
|
346
|
+
K.displayName = "BaseMapMarker";
|
|
347
|
+
var Se = K, Ce = (e, t) => `hsl(${be(e, t).replace(/ /g, ", ")})`, we = (e, t) => ({
|
|
348
348
|
id: e.id,
|
|
349
|
-
ring:
|
|
350
|
-
color: e.color ??
|
|
349
|
+
ring: he(e.center, e.radiusMeters),
|
|
350
|
+
color: e.color ?? Ce(e.variant ?? "malibu", t),
|
|
351
351
|
fillOpacity: .15,
|
|
352
352
|
strokeWidth: 2
|
|
353
|
-
}),
|
|
354
|
-
let r =
|
|
355
|
-
return
|
|
353
|
+
}), Te = ({ adapter: e, areas: t, isDark: n }) => {
|
|
354
|
+
let r = F(() => t.map((e) => we(e, n)), [t, n]);
|
|
355
|
+
return N(function() {
|
|
356
356
|
e.setAreas(r);
|
|
357
|
-
}, [e, r]),
|
|
357
|
+
}, [e, r]), N(function() {
|
|
358
358
|
return () => e.setAreas([]);
|
|
359
359
|
}, [e]), null;
|
|
360
|
-
},
|
|
360
|
+
}, Ee = {
|
|
361
361
|
background: "transparent",
|
|
362
362
|
border: "default",
|
|
363
363
|
borderStyle: "solid",
|
|
364
364
|
borderColor: "secondary"
|
|
365
|
-
},
|
|
365
|
+
}, De = {
|
|
366
366
|
control: "md",
|
|
367
367
|
panel: "xl"
|
|
368
|
-
},
|
|
368
|
+
}, Oe = {
|
|
369
369
|
md: "rounded-md backdrop-blur-md bg-f1-background-inverse-secondary dark:bg-f1-background-tertiary",
|
|
370
370
|
xl: "rounded-xl backdrop-blur-md bg-f1-background-inverse-secondary dark:bg-f1-background-tertiary"
|
|
371
|
-
},
|
|
371
|
+
}, q = (e) => Oe[e], J = {
|
|
372
372
|
inset: 8,
|
|
373
373
|
gap: 8,
|
|
374
374
|
listWidth: 214,
|
|
375
375
|
detailWidth: 344,
|
|
376
376
|
toggleSize: 38
|
|
377
|
-
},
|
|
377
|
+
}, ke = "cubic-bezier(0.77, 0, 0.175, 1)", Y = {
|
|
378
378
|
enter: {
|
|
379
379
|
duration: "175ms",
|
|
380
|
-
easing:
|
|
380
|
+
easing: ke
|
|
381
381
|
},
|
|
382
382
|
exit: {
|
|
383
383
|
duration: "250ms",
|
|
384
|
-
easing:
|
|
384
|
+
easing: ke
|
|
385
385
|
}
|
|
386
|
-
}, Ae = ({ children: e }) => /* @__PURE__ */
|
|
387
|
-
className:
|
|
388
|
-
children: /* @__PURE__ */
|
|
389
|
-
...
|
|
390
|
-
borderRadius:
|
|
386
|
+
}, Ae = ({ children: e }) => /* @__PURE__ */ R("div", {
|
|
387
|
+
className: q(De.control),
|
|
388
|
+
children: /* @__PURE__ */ R(S, {
|
|
389
|
+
...Ee,
|
|
390
|
+
borderRadius: De.control,
|
|
391
391
|
padding: "none",
|
|
392
|
-
children: /* @__PURE__ */
|
|
392
|
+
children: /* @__PURE__ */ R("div", {
|
|
393
393
|
className: "flex flex-col items-center gap-1 p-0.5",
|
|
394
394
|
children: e
|
|
395
395
|
})
|
|
396
396
|
})
|
|
397
|
-
}), je =
|
|
398
|
-
let l = i(), u = !!(a || n), d = !!(e || t), p = (e) => /* @__PURE__ */
|
|
399
|
-
return /* @__PURE__ */
|
|
397
|
+
}), je = j(({ onZoomIn: e, onZoomOut: t, onFit: n, onLocate: a, labels: o, dataTestId: s }, c) => {
|
|
398
|
+
let l = i(), u = !!(a || n), d = !!(e || t), p = (e) => /* @__PURE__ */ R(Ae, { children: e });
|
|
399
|
+
return /* @__PURE__ */ R(r, {
|
|
400
400
|
dataTestId: s,
|
|
401
|
-
children: /* @__PURE__ */
|
|
401
|
+
children: /* @__PURE__ */ z("div", {
|
|
402
402
|
ref: c,
|
|
403
403
|
role: "toolbar",
|
|
404
404
|
"aria-orientation": "vertical",
|
|
405
405
|
"aria-label": l.map.navigation,
|
|
406
406
|
className: "flex flex-col items-center gap-2",
|
|
407
|
-
children: [u ? p(/* @__PURE__ */
|
|
407
|
+
children: [u ? p(/* @__PURE__ */ z(ae, { children: [n ? /* @__PURE__ */ R(f, {
|
|
408
408
|
variant: "ghost",
|
|
409
409
|
size: "md",
|
|
410
410
|
label: o?.fit ?? l.map.controls.fit,
|
|
411
411
|
icon: h,
|
|
412
412
|
hideLabel: !0,
|
|
413
413
|
onClick: n
|
|
414
|
-
}) : null, a ? /* @__PURE__ */
|
|
414
|
+
}) : null, a ? /* @__PURE__ */ R(f, {
|
|
415
415
|
variant: "ghost",
|
|
416
416
|
size: "md",
|
|
417
417
|
label: o?.locate ?? l.map.controls.locate,
|
|
418
418
|
icon: m,
|
|
419
419
|
hideLabel: !0,
|
|
420
420
|
onClick: a
|
|
421
|
-
}) : null] })) : null, d ? p(/* @__PURE__ */
|
|
421
|
+
}) : null] })) : null, d ? p(/* @__PURE__ */ z(ae, { children: [e ? /* @__PURE__ */ R(f, {
|
|
422
422
|
variant: "ghost",
|
|
423
423
|
size: "md",
|
|
424
424
|
label: o?.zoomIn ?? l.map.controls.zoomIn,
|
|
425
|
-
icon:
|
|
425
|
+
icon: w,
|
|
426
426
|
hideLabel: !0,
|
|
427
427
|
onClick: e
|
|
428
|
-
}) : null, t ? /* @__PURE__ */
|
|
428
|
+
}) : null, t ? /* @__PURE__ */ R(f, {
|
|
429
429
|
variant: "ghost",
|
|
430
430
|
size: "md",
|
|
431
431
|
label: o?.zoomOut ?? l.map.controls.zoomOut,
|
|
432
|
-
icon:
|
|
432
|
+
icon: E,
|
|
433
433
|
hideLabel: !0,
|
|
434
434
|
onClick: t
|
|
435
435
|
}) : null] })) : null]
|
|
@@ -447,22 +447,22 @@ var Me = (e, t) => {
|
|
|
447
447
|
case "stop": return e.letter.charAt(0).toUpperCase();
|
|
448
448
|
default: return t;
|
|
449
449
|
}
|
|
450
|
-
}, Ne =
|
|
450
|
+
}, Ne = j(function({ points: e, selectedId: t, onSelect: n, visible: o = !1, label: s, id: c, dataTestId: l, className: u }, d) {
|
|
451
451
|
let f = i(), p = s ?? f.map.listLabel;
|
|
452
|
-
return /* @__PURE__ */
|
|
452
|
+
return /* @__PURE__ */ R(r, {
|
|
453
453
|
dataTestId: l,
|
|
454
|
-
children: /* @__PURE__ */
|
|
454
|
+
children: /* @__PURE__ */ z("nav", {
|
|
455
455
|
ref: d,
|
|
456
456
|
id: c,
|
|
457
457
|
"aria-label": p,
|
|
458
458
|
tabIndex: -1,
|
|
459
459
|
className: a("outline-none", o ? "absolute inset-0 z-20 overflow-auto bg-f1-background p-4" : "sr-only", u),
|
|
460
|
-
children: [o ? /* @__PURE__ */
|
|
460
|
+
children: [o ? /* @__PURE__ */ R("h2", {
|
|
461
461
|
className: "text-f1-foreground mb-2 text-base font-medium",
|
|
462
462
|
children: p
|
|
463
|
-
}) : null, /* @__PURE__ */
|
|
463
|
+
}) : null, /* @__PURE__ */ R("ul", {
|
|
464
464
|
className: o ? "flex flex-col gap-0.5" : void 0,
|
|
465
|
-
children: e.map((e) => /* @__PURE__ */
|
|
465
|
+
children: e.map((e) => /* @__PURE__ */ R("li", { children: /* @__PURE__ */ R("button", {
|
|
466
466
|
type: "button",
|
|
467
467
|
"aria-current": e.id === t || void 0,
|
|
468
468
|
onClick: () => n(e.id),
|
|
@@ -477,11 +477,11 @@ Ne.displayName = "F0MapList";
|
|
|
477
477
|
//#endregion
|
|
478
478
|
//#region src/addons/map/F0Map/hooks/useClusters.ts
|
|
479
479
|
var Pe = ({ adapter: e, points: t, enabled: n, radius: r = 12, clusterRadius: i = 164 }) => {
|
|
480
|
-
let [a, o] =
|
|
480
|
+
let [a, o] = L({
|
|
481
481
|
clusters: [],
|
|
482
482
|
singles: t
|
|
483
483
|
});
|
|
484
|
-
return
|
|
484
|
+
return N(() => {
|
|
485
485
|
if (!e || !n) {
|
|
486
486
|
o({
|
|
487
487
|
clusters: [],
|
|
@@ -562,7 +562,7 @@ var Pe = ({ adapter: e, points: t, enabled: n, radius: r = 12, clusterRadius: i
|
|
|
562
562
|
"left",
|
|
563
563
|
"top"
|
|
564
564
|
], Re = 1.7, ze = (e, t) => e.x < t.x + t.w && e.x + e.w > t.x && e.y < t.y + t.h && e.y + e.h > t.y, Be = null, Ve = (e, t) => (!Be && typeof document < "u" && (Be = document.createElement("canvas").getContext("2d")), Be ? (Be.font = `600 ${t}px Inter, system-ui, sans-serif`, Be.measureText(e).width) : e.length * t * .55), He = ({ placement: e, cx: t, cy: n, point: r, size: i }) => {
|
|
565
|
-
let a =
|
|
565
|
+
let a = xe(i), o = Ve(r.label ?? "", a.label) + 2, s = a.d / 2;
|
|
566
566
|
if (e === "right" || e === "left") {
|
|
567
567
|
let r = o, i = a.lineH;
|
|
568
568
|
return {
|
|
@@ -580,14 +580,14 @@ var Pe = ({ adapter: e, points: t, enabled: n, radius: r = 12, clusterRadius: i
|
|
|
580
580
|
h: l
|
|
581
581
|
};
|
|
582
582
|
}, Ue = (e, t, n = "md") => {
|
|
583
|
-
let [r, i] =
|
|
584
|
-
return
|
|
583
|
+
let [r, i] = L({});
|
|
584
|
+
return N(() => {
|
|
585
585
|
if (!e) {
|
|
586
586
|
i({});
|
|
587
587
|
return;
|
|
588
588
|
}
|
|
589
589
|
let r = 0, a = () => {
|
|
590
|
-
let r =
|
|
590
|
+
let r = xe(n).d, a = [], o = [];
|
|
591
591
|
for (let n of t) {
|
|
592
592
|
let t = e.project(n.coordinates);
|
|
593
593
|
if (!t) return;
|
|
@@ -657,18 +657,18 @@ var Pe = ({ adapter: e, points: t, enabled: n, radius: r = 12, clusterRadius: i
|
|
|
657
657
|
n
|
|
658
658
|
]), r;
|
|
659
659
|
}, X = 3, We = ({ adapter: e, el: t, markerRef: n, coordinates: r, drag: i }) => {
|
|
660
|
-
let a =
|
|
660
|
+
let a = I({
|
|
661
661
|
coordinates: r,
|
|
662
662
|
drag: i
|
|
663
663
|
});
|
|
664
|
-
|
|
664
|
+
P(function() {
|
|
665
665
|
a.current = {
|
|
666
666
|
coordinates: r,
|
|
667
667
|
drag: i
|
|
668
668
|
};
|
|
669
669
|
});
|
|
670
670
|
let o = !!i;
|
|
671
|
-
|
|
671
|
+
N(function() {
|
|
672
672
|
if (!o) return;
|
|
673
673
|
let r = null, i = !1, s = null, c = (t) => r ? e.unproject({
|
|
674
674
|
x: r.at.x + t.clientX - r.x,
|
|
@@ -703,8 +703,8 @@ var Pe = ({ adapter: e, points: t, enabled: n, radius: r = 12, clusterRadius: i
|
|
|
703
703
|
o
|
|
704
704
|
]);
|
|
705
705
|
}, Ge = (e, t) => {
|
|
706
|
-
let [n, r] =
|
|
707
|
-
return
|
|
706
|
+
let [n, r] = L(() => e ? e.getZoom() >= t : !1);
|
|
707
|
+
return N(() => {
|
|
708
708
|
if (!e) {
|
|
709
709
|
r(!1);
|
|
710
710
|
return;
|
|
@@ -734,7 +734,7 @@ var Pe = ({ 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: g
|
|
738
738
|
},
|
|
739
739
|
color: qe
|
|
740
740
|
};
|
|
@@ -747,9 +747,9 @@ var Pe = ({ adapter: e, points: t, enabled: n, radius: r = 12, clusterRadius: i
|
|
|
747
747
|
};
|
|
748
748
|
default: return { variant: { variant: "color" } };
|
|
749
749
|
}
|
|
750
|
-
}, Ye =
|
|
750
|
+
}, Ye = j(function(e, t) {
|
|
751
751
|
let { variant: n, color: r } = Z(e);
|
|
752
|
-
return /* @__PURE__ */
|
|
752
|
+
return /* @__PURE__ */ R(Se, {
|
|
753
753
|
ref: t,
|
|
754
754
|
...n,
|
|
755
755
|
color: r,
|
|
@@ -781,17 +781,17 @@ var Xe = Ye, Ze = 4, Qe = 3, $e = 1.3, et = 1.08, tt = "cubic-bezier(0.16, 1, 0.
|
|
|
781
781
|
[-8, 8],
|
|
782
782
|
[8, 8]
|
|
783
783
|
]
|
|
784
|
-
}, rt =
|
|
785
|
-
let u = i(), [d, f] =
|
|
784
|
+
}, rt = j(function({ count: e, members: t, onClick: n, ariaLabel: o, dataTestId: s, className: c }, l) {
|
|
785
|
+
let u = i(), [d, f] = L(!1), p = t.slice(0, e <= Ze ? Ze : Qe), m = Math.max(0, e - p.length), h = m > 0, g = m > 99 ? "+99" : `+${m}`, _ = Q[p.length + +!!h] ?? Q[4], v = d ? $e : 1, y = d ? et : 1, b = (e) => {
|
|
786
786
|
let [t, n] = _[e] ?? [0, 0];
|
|
787
787
|
return {
|
|
788
788
|
transform: `translate(${t * v}px, ${n * v}px) scale(${y})`,
|
|
789
789
|
transition: `transform 240ms ${tt}`
|
|
790
790
|
};
|
|
791
791
|
};
|
|
792
|
-
return /* @__PURE__ */
|
|
792
|
+
return /* @__PURE__ */ R(r, {
|
|
793
793
|
dataTestId: s,
|
|
794
|
-
children: /* @__PURE__ */
|
|
794
|
+
children: /* @__PURE__ */ z("div", {
|
|
795
795
|
ref: l,
|
|
796
796
|
role: "button",
|
|
797
797
|
tabIndex: 0,
|
|
@@ -806,7 +806,7 @@ var Xe = Ye, Ze = 4, Qe = 3, $e = 1.3, et = 1.08, tt = "cubic-bezier(0.16, 1, 0.
|
|
|
806
806
|
onBlur: () => f(!1),
|
|
807
807
|
className: a("group relative h-0 w-0 cursor-pointer outline-none", c),
|
|
808
808
|
children: [
|
|
809
|
-
/* @__PURE__ */
|
|
809
|
+
/* @__PURE__ */ R("span", {
|
|
810
810
|
"aria-hidden": !0,
|
|
811
811
|
className: "absolute rounded-lg group-focus-visible:ring-1 group-focus-visible:ring-f1-special-ring group-focus-visible:ring-offset-1",
|
|
812
812
|
style: {
|
|
@@ -816,20 +816,20 @@ var Xe = Ye, Ze = 4, Qe = 3, $e = 1.3, et = 1.08, tt = "cubic-bezier(0.16, 1, 0.
|
|
|
816
816
|
height: nt
|
|
817
817
|
}
|
|
818
818
|
}),
|
|
819
|
-
p.map((e, t) => /* @__PURE__ */
|
|
819
|
+
p.map((e, t) => /* @__PURE__ */ R("span", {
|
|
820
820
|
className: "absolute left-0 top-0 flex leading-none",
|
|
821
821
|
style: {
|
|
822
822
|
zIndex: t,
|
|
823
823
|
...b(t)
|
|
824
824
|
},
|
|
825
|
-
children: /* @__PURE__ */
|
|
825
|
+
children: /* @__PURE__ */ R(Xe, {
|
|
826
826
|
...e,
|
|
827
827
|
showLabel: !1
|
|
828
828
|
})
|
|
829
829
|
}, t)),
|
|
830
830
|
h ? (() => {
|
|
831
831
|
let [e, t] = _[p.length] ?? [0, 0];
|
|
832
|
-
return /* @__PURE__ */
|
|
832
|
+
return /* @__PURE__ */ z("span", {
|
|
833
833
|
className: a("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"),
|
|
834
834
|
style: {
|
|
835
835
|
zIndex: Qe,
|
|
@@ -837,10 +837,10 @@ var Xe = Ye, Ze = 4, Qe = 3, $e = 1.3, et = 1.08, tt = "cubic-bezier(0.16, 1, 0.
|
|
|
837
837
|
transform: `translate(${e * v}px, ${t * v}px) translate(-50%, -50%) scale(${y})`,
|
|
838
838
|
transition: `transform 240ms ${tt}`
|
|
839
839
|
},
|
|
840
|
-
children: [/* @__PURE__ */
|
|
840
|
+
children: [/* @__PURE__ */ R("span", {
|
|
841
841
|
"aria-hidden": !0,
|
|
842
842
|
className: "absolute inset-0 bg-f1-background-hover"
|
|
843
|
-
}), /* @__PURE__ */
|
|
843
|
+
}), /* @__PURE__ */ R("span", {
|
|
844
844
|
className: "relative",
|
|
845
845
|
children: g
|
|
846
846
|
})]
|
|
@@ -854,14 +854,14 @@ rt.displayName = "F0MapCluster";
|
|
|
854
854
|
var $ = rt, it = 16, at = (e, t, n, r) => {
|
|
855
855
|
let i = e.project(t.coordinates);
|
|
856
856
|
if (!i) return null;
|
|
857
|
-
let a =
|
|
857
|
+
let a = xe("xl"), o = xe(r), s = i.y + W(), c = {
|
|
858
858
|
x: i.x - a.d / 2,
|
|
859
859
|
y: s,
|
|
860
860
|
w: a.d,
|
|
861
861
|
h: a.d
|
|
862
862
|
}, l = t.label ? Ve(t.label, o.label) : 0, u = {
|
|
863
863
|
x: i.x - l / 2,
|
|
864
|
-
y: i.y +
|
|
864
|
+
y: i.y + H,
|
|
865
865
|
w: l,
|
|
866
866
|
h: o.lineH
|
|
867
867
|
}, d = o.d, f = /* @__PURE__ */ new Set();
|
|
@@ -878,8 +878,8 @@ var $ = rt, it = 16, at = (e, t, n, r) => {
|
|
|
878
878
|
}
|
|
879
879
|
return f;
|
|
880
880
|
}, ot = (e, t, n, r) => {
|
|
881
|
-
let [i, a] =
|
|
882
|
-
return
|
|
881
|
+
let [i, a] = L(null);
|
|
882
|
+
return N(() => {
|
|
883
883
|
if (!t || !n.some((e) => e.id === t.id)) {
|
|
884
884
|
a(null);
|
|
885
885
|
return;
|
|
@@ -905,15 +905,15 @@ var $ = rt, it = 16, at = (e, t, n, r) => {
|
|
|
905
905
|
let { id: t, coordinates: n, label: r, draggable: i, ...a } = e;
|
|
906
906
|
return a;
|
|
907
907
|
}, ct = ({ adapter: e, coordinates: t, selected: n, drag: r, children: i }) => {
|
|
908
|
-
let [a] =
|
|
909
|
-
return
|
|
908
|
+
let [a] = L(() => document.createElement("div")), o = I(null);
|
|
909
|
+
return N(() => {
|
|
910
910
|
let n = (e) => e.stopPropagation();
|
|
911
911
|
a.style.cursor = "pointer", a.addEventListener("click", n);
|
|
912
912
|
let r = e.addDomMarker(a, t);
|
|
913
913
|
return o.current = r, () => {
|
|
914
914
|
a.removeEventListener("click", n), r.remove(), o.current = null;
|
|
915
915
|
};
|
|
916
|
-
}, [e, a]),
|
|
916
|
+
}, [e, a]), N(() => {
|
|
917
917
|
o.current?.setPosition(t);
|
|
918
918
|
}, [t]), We({
|
|
919
919
|
adapter: e,
|
|
@@ -921,15 +921,15 @@ var $ = rt, it = 16, at = (e, t, n, r) => {
|
|
|
921
921
|
markerRef: o,
|
|
922
922
|
coordinates: t,
|
|
923
923
|
drag: r
|
|
924
|
-
}),
|
|
924
|
+
}), N(() => {
|
|
925
925
|
a.style.zIndex = n ? "2" : "";
|
|
926
|
-
}, [a, n]),
|
|
926
|
+
}, [a, n]), oe(i, a);
|
|
927
927
|
}, lt = ({ adapter: e, points: t, selectedId: n, highlightedId: r, onSelect: a, onMarkerDrag: o, onMarkerDragEnd: s, onClusterExpand: c }) => {
|
|
928
|
-
let u = i(), f = !!s, p =
|
|
928
|
+
let u = i(), f = !!s, p = F(() => f ? t.filter((e) => !e.draggable) : t, [t, f]), m = Pe({
|
|
929
929
|
adapter: e,
|
|
930
930
|
points: p,
|
|
931
931
|
enabled: !0
|
|
932
|
-
}), { clusters: h } = m, g =
|
|
932
|
+
}), { clusters: h } = m, g = F(() => {
|
|
933
933
|
if (p === t) return m.singles;
|
|
934
934
|
let e = new Set(m.singles);
|
|
935
935
|
return t.filter((t) => t.draggable || e.has(t));
|
|
@@ -937,12 +937,12 @@ var $ = rt, it = 16, at = (e, t, n, r) => {
|
|
|
937
937
|
m.singles,
|
|
938
938
|
p,
|
|
939
939
|
t
|
|
940
|
-
]), _ = Ge(e, it) ? "lg" : "md", v = Ue(e, g, _), y = new Map(t.map((e) => [e.id, e])), b = h.length > 0,
|
|
941
|
-
return /* @__PURE__ */
|
|
940
|
+
]), _ = Ge(e, it) ? "lg" : "md", v = Ue(e, g, _), y = new Map(t.map((e) => [e.id, e])), b = h.length > 0, ee = ot(e, n ? y.get(n) : void 0, g, _);
|
|
941
|
+
return /* @__PURE__ */ z(l, { children: [h.map((t) => /* @__PURE__ */ R(ct, {
|
|
942
942
|
adapter: e,
|
|
943
943
|
coordinates: t.coordinates,
|
|
944
944
|
selected: !1,
|
|
945
|
-
children: /* @__PURE__ */
|
|
945
|
+
children: /* @__PURE__ */ R(d.span, {
|
|
946
946
|
initial: {
|
|
947
947
|
scale: .8,
|
|
948
948
|
opacity: 0
|
|
@@ -966,15 +966,15 @@ var $ = rt, it = 16, at = (e, t, n, r) => {
|
|
|
966
966
|
]
|
|
967
967
|
},
|
|
968
968
|
className: "absolute left-0 top-0 flex leading-none",
|
|
969
|
-
children: /* @__PURE__ */
|
|
969
|
+
children: /* @__PURE__ */ R($, {
|
|
970
970
|
count: t.count,
|
|
971
971
|
members: t.pointIds.map((e) => y.get(e)).filter((e) => !!e).map(st),
|
|
972
972
|
onClick: () => c(t.bounds)
|
|
973
973
|
})
|
|
974
974
|
})
|
|
975
975
|
}, t.id)), g.map((t) => {
|
|
976
|
-
let i = v[t.id], c =
|
|
977
|
-
return /* @__PURE__ */
|
|
976
|
+
let i = v[t.id], c = ee?.has(t.id) ?? !1, f = r === t.id;
|
|
977
|
+
return /* @__PURE__ */ R(ct, {
|
|
978
978
|
adapter: e,
|
|
979
979
|
coordinates: t.coordinates,
|
|
980
980
|
selected: n === t.id || f,
|
|
@@ -982,7 +982,7 @@ var $ = rt, it = 16, at = (e, t, n, r) => {
|
|
|
982
982
|
onDrag: o && ((e) => o(t.id, e)),
|
|
983
983
|
onDragEnd: (e) => s(t.id, e)
|
|
984
984
|
} : void 0,
|
|
985
|
-
children: /* @__PURE__ */
|
|
985
|
+
children: /* @__PURE__ */ R(d.span, {
|
|
986
986
|
initial: { opacity: 0 },
|
|
987
987
|
animate: { opacity: 1 },
|
|
988
988
|
exit: {
|
|
@@ -997,9 +997,9 @@ var $ = rt, it = 16, at = (e, t, n, r) => {
|
|
|
997
997
|
ease: "easeOut"
|
|
998
998
|
},
|
|
999
999
|
className: "absolute left-0 top-0",
|
|
1000
|
-
children: /* @__PURE__ */
|
|
1000
|
+
children: /* @__PURE__ */ R(l, {
|
|
1001
1001
|
initial: !1,
|
|
1002
|
-
children: /* @__PURE__ */
|
|
1002
|
+
children: /* @__PURE__ */ R(d.span, {
|
|
1003
1003
|
initial: { opacity: 0 },
|
|
1004
1004
|
animate: { opacity: 1 },
|
|
1005
1005
|
exit: { opacity: 0 },
|
|
@@ -1008,7 +1008,7 @@ var $ = rt, it = 16, at = (e, t, n, r) => {
|
|
|
1008
1008
|
ease: "easeOut"
|
|
1009
1009
|
},
|
|
1010
1010
|
className: "absolute left-0 top-0 flex leading-none",
|
|
1011
|
-
children: /* @__PURE__ */
|
|
1011
|
+
children: /* @__PURE__ */ R(Xe, {
|
|
1012
1012
|
...st(t),
|
|
1013
1013
|
size: _,
|
|
1014
1014
|
label: t.label,
|
|
@@ -1025,8 +1025,8 @@ var $ = rt, it = 16, at = (e, t, n, r) => {
|
|
|
1025
1025
|
})
|
|
1026
1026
|
}, t.id);
|
|
1027
1027
|
})] });
|
|
1028
|
-
}, ut = ({ children: e, open: t, offsetX: n, offsetY: o =
|
|
1029
|
-
let m = i(), h = u(), g = t ?
|
|
1028
|
+
}, ut = ({ children: e, open: t, offsetX: n, offsetY: o = J.inset, width: s, entrance: c = "slide", headerStart: l, headerEnd: d, ariaLabel: f, dataTestId: p }) => {
|
|
1029
|
+
let m = i(), h = u(), g = t ? Y.enter : Y.exit, _ = n - J.inset, v = I({
|
|
1030
1030
|
from: _,
|
|
1031
1031
|
to: _
|
|
1032
1032
|
});
|
|
@@ -1034,13 +1034,13 @@ var $ = rt, it = 16, at = (e, t, n, r) => {
|
|
|
1034
1034
|
from: v.current.to,
|
|
1035
1035
|
to: _
|
|
1036
1036
|
});
|
|
1037
|
-
let y = _ > v.current.from ?
|
|
1038
|
-
return /* @__PURE__ */
|
|
1037
|
+
let y = _ > v.current.from ? Y.enter : Y.exit, b = c === "grow" ? "translateX(-10%) scale(0.97)" : `translateX(calc(-100% - ${J.inset}px))`;
|
|
1038
|
+
return /* @__PURE__ */ R(r, {
|
|
1039
1039
|
dataTestId: p,
|
|
1040
|
-
children: /* @__PURE__ */
|
|
1040
|
+
children: /* @__PURE__ */ R("div", {
|
|
1041
1041
|
className: "pointer-events-none absolute bottom-2 z-10",
|
|
1042
1042
|
style: {
|
|
1043
|
-
left:
|
|
1043
|
+
left: J.inset,
|
|
1044
1044
|
top: o,
|
|
1045
1045
|
width: s,
|
|
1046
1046
|
transform: `translateX(${_}px)`,
|
|
@@ -1048,13 +1048,13 @@ var $ = rt, it = 16, at = (e, t, n, r) => {
|
|
|
1048
1048
|
transitionDuration: y.duration,
|
|
1049
1049
|
transitionTimingFunction: y.easing
|
|
1050
1050
|
},
|
|
1051
|
-
children: /* @__PURE__ */
|
|
1051
|
+
children: /* @__PURE__ */ R("div", {
|
|
1052
1052
|
role: "complementary",
|
|
1053
1053
|
"aria-label": f ?? m.map.panel,
|
|
1054
1054
|
ref: (e) => {
|
|
1055
1055
|
t ? e?.removeAttribute("inert") : e?.setAttribute("inert", "");
|
|
1056
1056
|
},
|
|
1057
|
-
className: a("relative h-full overflow-hidden text-base",
|
|
1057
|
+
className: a("relative h-full overflow-hidden text-base", q(De.panel), t ? "pointer-events-auto" : "opacity-0"),
|
|
1058
1058
|
style: {
|
|
1059
1059
|
transform: t || h ? "translateX(0px) scale(1)" : b,
|
|
1060
1060
|
transformOrigin: c === "grow" ? "left center" : void 0,
|
|
@@ -1062,20 +1062,20 @@ var $ = rt, it = 16, at = (e, t, n, r) => {
|
|
|
1062
1062
|
transitionDuration: g.duration,
|
|
1063
1063
|
transitionTimingFunction: g.easing
|
|
1064
1064
|
},
|
|
1065
|
-
children: /* @__PURE__ */
|
|
1066
|
-
...
|
|
1067
|
-
borderRadius:
|
|
1065
|
+
children: /* @__PURE__ */ R(S, {
|
|
1066
|
+
...Ee,
|
|
1067
|
+
borderRadius: De.panel,
|
|
1068
1068
|
padding: "none",
|
|
1069
1069
|
height: "full",
|
|
1070
|
-
children: /* @__PURE__ */
|
|
1070
|
+
children: /* @__PURE__ */ z("div", {
|
|
1071
1071
|
className: "flex h-full flex-col",
|
|
1072
|
-
children: [l || d ? /* @__PURE__ */
|
|
1072
|
+
children: [l || d ? /* @__PURE__ */ z("div", {
|
|
1073
1073
|
className: "flex shrink-0 items-center justify-between gap-1 p-0.5",
|
|
1074
|
-
children: [/* @__PURE__ */
|
|
1074
|
+
children: [/* @__PURE__ */ R("div", {
|
|
1075
1075
|
className: "flex min-w-0 flex-1 justify-start",
|
|
1076
1076
|
children: l
|
|
1077
1077
|
}), d]
|
|
1078
|
-
}) : null, /* @__PURE__ */
|
|
1078
|
+
}) : null, /* @__PURE__ */ R("div", {
|
|
1079
1079
|
className: "min-h-0 flex-1",
|
|
1080
1080
|
children: e
|
|
1081
1081
|
})]
|
|
@@ -1084,16 +1084,16 @@ var $ = rt, it = 16, at = (e, t, n, r) => {
|
|
|
1084
1084
|
})
|
|
1085
1085
|
})
|
|
1086
1086
|
});
|
|
1087
|
-
}, dt = (e, t, n = 320) => Math.max(216, Math.min(n, e - t -
|
|
1087
|
+
}, dt = (e, t, n = 320) => Math.max(216, Math.min(n, e - t - D.mainHardMin)), ft = (e, t = 320) => Math.min(t, Math.max(216, Math.round(e))), pt = 500, mt = "f0-secondary-sidebar-width", ht = O.primaryCompact, gt = (e) => e === null || typeof e == "number" && Number.isFinite(e), _t = A(null), vt = () => ne(_t);
|
|
1088
1088
|
function yt() {
|
|
1089
|
-
let [e, t] =
|
|
1089
|
+
let [e, t] = L(!1), n = I(0), r = M(function() {
|
|
1090
1090
|
t(!0), cancelAnimationFrame(n.current), n.current = requestAnimationFrame(function() {
|
|
1091
1091
|
n.current = requestAnimationFrame(function() {
|
|
1092
1092
|
t(!1);
|
|
1093
1093
|
});
|
|
1094
1094
|
});
|
|
1095
1095
|
}, []);
|
|
1096
|
-
return
|
|
1096
|
+
return N(function() {
|
|
1097
1097
|
return () => cancelAnimationFrame(n.current);
|
|
1098
1098
|
}, []), {
|
|
1099
1099
|
isInstant: e,
|
|
@@ -1101,78 +1101,78 @@ function yt() {
|
|
|
1101
1101
|
};
|
|
1102
1102
|
}
|
|
1103
1103
|
function bt() {
|
|
1104
|
-
let [e, t] =
|
|
1105
|
-
return
|
|
1104
|
+
let [e, t] = L(() => window.innerWidth);
|
|
1105
|
+
return N(function() {
|
|
1106
1106
|
let e = () => t(window.innerWidth);
|
|
1107
1107
|
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
1108
1108
|
}, []), e;
|
|
1109
1109
|
}
|
|
1110
1110
|
function xt({ enabled: e, children: t, ...n }) {
|
|
1111
|
-
return e ? /* @__PURE__ */
|
|
1111
|
+
return e ? /* @__PURE__ */ R(St, {
|
|
1112
1112
|
...n,
|
|
1113
1113
|
children: t
|
|
1114
|
-
}) : /* @__PURE__ */
|
|
1114
|
+
}) : /* @__PURE__ */ R(_t.Provider, {
|
|
1115
1115
|
value: null,
|
|
1116
1116
|
children: t
|
|
1117
1117
|
});
|
|
1118
1118
|
}
|
|
1119
1119
|
function St({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
1120
|
-
let { isInstant: r, landInstantly: i } = yt(), a = bt(), [o, s] =
|
|
1120
|
+
let { isInstant: r, landInstantly: i } = yt(), a = bt(), [o, s] = L(O.panel), [c, l] = ee({
|
|
1121
1121
|
key: mt,
|
|
1122
1122
|
fallback: null,
|
|
1123
1123
|
validate: gt,
|
|
1124
1124
|
debounceMs: 200
|
|
1125
|
-
}), u = dt(a, ht, Math.max(320, o)), d = Math.min(o, u), f = c === null ? d : ft(c, u), m =
|
|
1125
|
+
}), u = dt(a, ht, Math.max(320, o)), d = Math.min(o, u), f = c === null ? d : ft(c, u), m = I(o), h = M(function(e) {
|
|
1126
1126
|
e !== m.current && (m.current = e, i(), s(e));
|
|
1127
|
-
}, [i]), g =
|
|
1127
|
+
}, [i]), g = M(function(e) {
|
|
1128
1128
|
i(), l(e);
|
|
1129
|
-
}, [i, l]), _ =
|
|
1129
|
+
}, [i, l]), _ = M(function() {
|
|
1130
1130
|
i(), l(null);
|
|
1131
|
-
}, [i, l]), v = p(`(max-width: ${ht + (e ? d :
|
|
1132
|
-
|
|
1131
|
+
}, [i, l]), v = p(`(max-width: ${ht + (e ? d : O.panel) + D.mainMin - 1}px)`, { initializeWithValue: !0 }) ? "overlay" : "docked", [y, b] = L(!1), x = I(0), S = M(function() {
|
|
1132
|
+
b(!1);
|
|
1133
1133
|
}, []);
|
|
1134
|
-
|
|
1135
|
-
i(), v === "docked" &&
|
|
1134
|
+
P(function() {
|
|
1135
|
+
i(), v === "docked" && S();
|
|
1136
1136
|
}, [
|
|
1137
1137
|
v,
|
|
1138
1138
|
i,
|
|
1139
|
-
|
|
1139
|
+
S
|
|
1140
1140
|
]);
|
|
1141
|
-
let
|
|
1142
|
-
|
|
1143
|
-
i(), e ||
|
|
1141
|
+
let C = v === "overlay" && y && e;
|
|
1142
|
+
P(function() {
|
|
1143
|
+
i(), e || S();
|
|
1144
1144
|
}, [
|
|
1145
1145
|
e,
|
|
1146
1146
|
i,
|
|
1147
|
-
|
|
1147
|
+
S
|
|
1148
1148
|
]);
|
|
1149
|
-
let
|
|
1150
|
-
F(function() {
|
|
1151
|
-
T.current = e;
|
|
1152
|
-
});
|
|
1153
|
-
let E = L(null);
|
|
1149
|
+
let w = I(e);
|
|
1154
1150
|
P(function() {
|
|
1151
|
+
w.current = e;
|
|
1152
|
+
});
|
|
1153
|
+
let T = I(null);
|
|
1154
|
+
N(function() {
|
|
1155
1155
|
return () => {
|
|
1156
|
-
|
|
1156
|
+
T.current && clearTimeout(T.current);
|
|
1157
1157
|
};
|
|
1158
1158
|
}, []);
|
|
1159
|
-
let
|
|
1160
|
-
v !== "docked" && (
|
|
1161
|
-
|
|
1159
|
+
let E = M(function() {
|
|
1160
|
+
v !== "docked" && (x.current = Date.now(), b(!0), T.current && clearTimeout(T.current), T.current = setTimeout(function() {
|
|
1161
|
+
w.current || b(!1);
|
|
1162
1162
|
}, pt));
|
|
1163
|
-
}, [v]),
|
|
1164
|
-
|
|
1165
|
-
}, [
|
|
1166
|
-
|
|
1167
|
-
if (!
|
|
1163
|
+
}, [v]), te = S, k = M(function() {
|
|
1164
|
+
C || (x.current = Date.now()), b(!C);
|
|
1165
|
+
}, [C]);
|
|
1166
|
+
N(function() {
|
|
1167
|
+
if (!C) return;
|
|
1168
1168
|
let e = (e) => {
|
|
1169
|
-
e.key === "Escape" && !e.defaultPrevented &&
|
|
1169
|
+
e.key === "Escape" && !e.defaultPrevented && b(!1);
|
|
1170
1170
|
};
|
|
1171
1171
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
1172
|
-
}, [
|
|
1173
|
-
let
|
|
1174
|
-
Date.now() -
|
|
1175
|
-
}, []),
|
|
1172
|
+
}, [C]);
|
|
1173
|
+
let A = M(function() {
|
|
1174
|
+
Date.now() - x.current < pt || b(!1);
|
|
1175
|
+
}, []), j = F(function() {
|
|
1176
1176
|
return {
|
|
1177
1177
|
primarySidebarWidth: ht,
|
|
1178
1178
|
hasSecondarySidebar: e,
|
|
@@ -1182,11 +1182,11 @@ function St({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
|
1182
1182
|
resizeSecondarySidebar: g,
|
|
1183
1183
|
resetSecondarySidebarWidth: _,
|
|
1184
1184
|
navigationMode: v,
|
|
1185
|
-
isOpenOverPage:
|
|
1186
|
-
openOverPage:
|
|
1187
|
-
toggleOverPage:
|
|
1188
|
-
closeOverPage:
|
|
1189
|
-
closeOverPageAfterRouteChange:
|
|
1185
|
+
isOpenOverPage: C,
|
|
1186
|
+
openOverPage: E,
|
|
1187
|
+
toggleOverPage: k,
|
|
1188
|
+
closeOverPage: te,
|
|
1189
|
+
closeOverPageAfterRouteChange: A,
|
|
1190
1190
|
topBarHeight: t,
|
|
1191
1191
|
isInstant: r,
|
|
1192
1192
|
landInstantly: i
|
|
@@ -1199,30 +1199,30 @@ function St({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
|
1199
1199
|
g,
|
|
1200
1200
|
_,
|
|
1201
1201
|
v,
|
|
1202
|
-
|
|
1203
|
-
|
|
1202
|
+
C,
|
|
1203
|
+
E,
|
|
1204
|
+
k,
|
|
1205
|
+
te,
|
|
1204
1206
|
A,
|
|
1205
|
-
ee,
|
|
1206
|
-
j,
|
|
1207
1207
|
t,
|
|
1208
1208
|
r,
|
|
1209
1209
|
i
|
|
1210
1210
|
]);
|
|
1211
|
-
return /* @__PURE__ */
|
|
1212
|
-
value:
|
|
1211
|
+
return /* @__PURE__ */ R(_t.Provider, {
|
|
1212
|
+
value: j,
|
|
1213
1213
|
children: n
|
|
1214
1214
|
});
|
|
1215
1215
|
}
|
|
1216
1216
|
//#endregion
|
|
1217
1217
|
//#region src/blocks/ApplicationFrame/FrameProvider.tsx
|
|
1218
|
-
var Ct = "one_sidebar_locked", wt = 32, Tt = 180, Et = 280, Dt = 300, Ot =
|
|
1218
|
+
var Ct = "one_sidebar_locked", wt = 32, Tt = 180, Et = 280, Dt = 300, Ot = A(void 0), kt = A({
|
|
1219
1219
|
steppedAsideFor: null,
|
|
1220
1220
|
takeCard: () => {}
|
|
1221
|
-
}), At = () =>
|
|
1221
|
+
}), At = () => ne(kt), jt = /* @__PURE__ */ new WeakSet(), Mt = (e) => {
|
|
1222
1222
|
jt.add(e.nativeEvent);
|
|
1223
1223
|
};
|
|
1224
1224
|
function Nt() {
|
|
1225
|
-
let e =
|
|
1225
|
+
let e = ne(Ot);
|
|
1226
1226
|
return e === void 0 ? {
|
|
1227
1227
|
isSmallScreen: !1,
|
|
1228
1228
|
isLastToggleInvokedByUser: !0,
|
|
@@ -1238,94 +1238,94 @@ function Nt() {
|
|
|
1238
1238
|
}
|
|
1239
1239
|
var Pt = (e, t) => e.navigationMode === "overlay" ? e.isOpenOverPage ? "unlocked" : "hidden" : t ? "locked" : "hidden", Ft = (e, t, n) => e || !t ? n ? "unlocked" : "hidden" : "locked";
|
|
1240
1240
|
function It({ children: e }) {
|
|
1241
|
-
let { currentPath: t } = s(), n = vt(), [r, i] =
|
|
1241
|
+
let { currentPath: t } = s(), n = vt(), [r, i] = L(!1), [a, o] = L(!1), c = p(`(max-width: ${te.md}px)`, { initializeWithValue: !0 }), l = p(`(max-width: ${te.xl}px)`, { initializeWithValue: !0 }), u = r ? l : c, [d, f] = L(() => {
|
|
1242
1242
|
let e = localStorage.getItem(Ct);
|
|
1243
1243
|
return e === null || !!e;
|
|
1244
|
-
}), [m, h] =
|
|
1245
|
-
|
|
1246
|
-
}, []), [
|
|
1247
|
-
|
|
1248
|
-
}, []),
|
|
1249
|
-
|
|
1250
|
-
|
|
1244
|
+
}), [m, h] = L(!1), g = b(), [_, v] = L(null), [y, ee] = L(null), x = g && n?.hasSecondarySidebar === !0 && n.navigationMode === "docked" && d && y !== _ ? _ : null, S = M(function(e) {
|
|
1245
|
+
v(e), o(!1);
|
|
1246
|
+
}, []), [C, w] = L(null), T = I(null), E = I(null), D = M(function() {
|
|
1247
|
+
T.current && clearTimeout(T.current), T.current = null, E.current = null;
|
|
1248
|
+
}, []), O = M(function(e, t) {
|
|
1249
|
+
E.current !== e && (D(), E.current = e, T.current = setTimeout(() => {
|
|
1250
|
+
T.current = null, E.current = null, h(e);
|
|
1251
1251
|
}, t));
|
|
1252
|
-
}, [
|
|
1253
|
-
|
|
1254
|
-
let
|
|
1255
|
-
n ? n.closeOverPage() : (
|
|
1256
|
-
}, [n,
|
|
1257
|
-
n?.navigationMode === "overlay" ? n.toggleOverPage() : (o(e ?? !0),
|
|
1252
|
+
}, [D]);
|
|
1253
|
+
N(() => D, [D]);
|
|
1254
|
+
let k = M(function() {
|
|
1255
|
+
n ? n.closeOverPage() : (D(), h(!1));
|
|
1256
|
+
}, [n, D]), A = M(function({ isInvokedByUser: e } = { isInvokedByUser: !0 }) {
|
|
1257
|
+
n?.navigationMode === "overlay" ? n.toggleOverPage() : (o(e ?? !0), ee(_), !x && (u && !n && h(!m), f(!d)));
|
|
1258
1258
|
}, [
|
|
1259
1259
|
n,
|
|
1260
1260
|
u,
|
|
1261
1261
|
m,
|
|
1262
1262
|
d,
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
]),
|
|
1266
|
-
u || n || d || (jt.has(e.nativeEvent) ?
|
|
1263
|
+
_,
|
|
1264
|
+
x
|
|
1265
|
+
]), j = M(function(e) {
|
|
1266
|
+
u || n || d || (jt.has(e.nativeEvent) ? D() : !m && e.clientX < wt ? O(!0, Tt) : m && e.clientX > Et ? O(!1, Dt) : D());
|
|
1267
1267
|
}, [
|
|
1268
1268
|
u,
|
|
1269
1269
|
n,
|
|
1270
1270
|
d,
|
|
1271
1271
|
m,
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
]),
|
|
1275
|
-
|
|
1276
|
-
}, [
|
|
1277
|
-
|
|
1278
|
-
|
|
1272
|
+
O,
|
|
1273
|
+
D
|
|
1274
|
+
]), ne = M(function() {
|
|
1275
|
+
E.current && D();
|
|
1276
|
+
}, [D]), re = n ? Pt(n, d && x === null) : Ft(u, d, m), ie = n?.closeOverPageAfterRouteChange;
|
|
1277
|
+
N(function() {
|
|
1278
|
+
D(), h(!1), ie?.();
|
|
1279
1279
|
}, [
|
|
1280
1280
|
t,
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
]),
|
|
1281
|
+
ie,
|
|
1282
|
+
D
|
|
1283
|
+
]), N(function() {
|
|
1284
1284
|
a && localStorage.setItem(Ct, d ? "1" : "");
|
|
1285
|
-
}, [d, a]),
|
|
1285
|
+
}, [d, a]), N(function() {
|
|
1286
1286
|
return () => {
|
|
1287
|
-
|
|
1288
|
-
sidebarState:
|
|
1287
|
+
w({
|
|
1288
|
+
sidebarState: re,
|
|
1289
1289
|
locked: d
|
|
1290
1290
|
});
|
|
1291
1291
|
};
|
|
1292
|
-
}, [
|
|
1293
|
-
let
|
|
1292
|
+
}, [re, d]);
|
|
1293
|
+
let P = C?.sidebarState ?? null, ae = a && C?.sidebarState === "hidden" && !C.locked && re === "locked", z = n !== null, oe = !z && l, se = F(function() {
|
|
1294
1294
|
return {
|
|
1295
1295
|
isSmallScreen: u,
|
|
1296
1296
|
isLastToggleInvokedByUser: a,
|
|
1297
|
-
sidebarState:
|
|
1298
|
-
hideSidebar:
|
|
1299
|
-
toggleSidebar:
|
|
1300
|
-
prevSidebarState:
|
|
1301
|
-
isDockedByUser:
|
|
1297
|
+
sidebarState: re,
|
|
1298
|
+
hideSidebar: k,
|
|
1299
|
+
toggleSidebar: A,
|
|
1300
|
+
prevSidebarState: P,
|
|
1301
|
+
isDockedByUser: ae,
|
|
1302
1302
|
setForceFloat: i,
|
|
1303
|
-
floatsWhenForced:
|
|
1304
|
-
hasPrimarySidebar:
|
|
1303
|
+
floatsWhenForced: oe,
|
|
1304
|
+
hasPrimarySidebar: z
|
|
1305
1305
|
};
|
|
1306
1306
|
}, [
|
|
1307
1307
|
u,
|
|
1308
1308
|
a,
|
|
1309
|
-
|
|
1309
|
+
re,
|
|
1310
|
+
k,
|
|
1310
1311
|
A,
|
|
1311
|
-
|
|
1312
|
-
F,
|
|
1313
|
-
ie,
|
|
1312
|
+
P,
|
|
1314
1313
|
ae,
|
|
1315
|
-
|
|
1316
|
-
|
|
1314
|
+
oe,
|
|
1315
|
+
z
|
|
1316
|
+
]), ce = F(function() {
|
|
1317
1317
|
return {
|
|
1318
|
-
steppedAsideFor:
|
|
1319
|
-
takeCard:
|
|
1318
|
+
steppedAsideFor: x,
|
|
1319
|
+
takeCard: S
|
|
1320
1320
|
};
|
|
1321
|
-
}, [
|
|
1322
|
-
return /* @__PURE__ */
|
|
1323
|
-
value:
|
|
1324
|
-
children: /* @__PURE__ */
|
|
1325
|
-
value:
|
|
1326
|
-
children: /* @__PURE__ */
|
|
1327
|
-
onPointerMove:
|
|
1328
|
-
onPointerLeave:
|
|
1321
|
+
}, [x, S]);
|
|
1322
|
+
return /* @__PURE__ */ R(Ot.Provider, {
|
|
1323
|
+
value: se,
|
|
1324
|
+
children: /* @__PURE__ */ R(kt.Provider, {
|
|
1325
|
+
value: ce,
|
|
1326
|
+
children: /* @__PURE__ */ R("div", {
|
|
1327
|
+
onPointerMove: j,
|
|
1328
|
+
onPointerLeave: ne,
|
|
1329
1329
|
className: "h-screen w-screen",
|
|
1330
1330
|
children: e
|
|
1331
1331
|
})
|
|
@@ -1358,7 +1358,7 @@ var Lt = "M10.417 10L14.167 10M10.417 10L12.0837 8.33337M10.417 10L12.0837 11.66
|
|
|
1358
1358
|
}, zt = "[transform-box:view-box] transition-[transform,opacity]";
|
|
1359
1359
|
function Bt({ isExpanded: e, isHovered: t = !1 }) {
|
|
1360
1360
|
let n = Rt[e ? "open" : "closed"][t ? "hover" : "rest"];
|
|
1361
|
-
return /* @__PURE__ */
|
|
1361
|
+
return /* @__PURE__ */ z("svg", {
|
|
1362
1362
|
width: "20",
|
|
1363
1363
|
height: "20",
|
|
1364
1364
|
viewBox: "0 0 20 20",
|
|
@@ -1366,7 +1366,7 @@ function Bt({ isExpanded: e, isHovered: t = !1 }) {
|
|
|
1366
1366
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1367
1367
|
className: "text-f1-icon-bold",
|
|
1368
1368
|
children: [
|
|
1369
|
-
/* @__PURE__ */
|
|
1369
|
+
/* @__PURE__ */ R("rect", {
|
|
1370
1370
|
id: "container",
|
|
1371
1371
|
x: "3.33325",
|
|
1372
1372
|
y: "5",
|
|
@@ -1376,7 +1376,7 @@ function Bt({ isExpanded: e, isHovered: t = !1 }) {
|
|
|
1376
1376
|
strokeWidth: "1.3",
|
|
1377
1377
|
className: "stroke-current"
|
|
1378
1378
|
}),
|
|
1379
|
-
/* @__PURE__ */
|
|
1379
|
+
/* @__PURE__ */ R("path", {
|
|
1380
1380
|
id: "arrow",
|
|
1381
1381
|
d: Lt,
|
|
1382
1382
|
strokeWidth: "1.3",
|
|
@@ -1384,7 +1384,7 @@ function Bt({ isExpanded: e, isHovered: t = !1 }) {
|
|
|
1384
1384
|
strokeLinejoin: "round",
|
|
1385
1385
|
className: a("stroke-current", zt, v, "origin-[10.5835px_10px]", e ? "scale-x-100" : "-scale-x-100", n.arrow)
|
|
1386
1386
|
}),
|
|
1387
|
-
/* @__PURE__ */
|
|
1387
|
+
/* @__PURE__ */ R("path", {
|
|
1388
1388
|
id: "line",
|
|
1389
1389
|
d: "M7.5 5L7.5 15",
|
|
1390
1390
|
strokeWidth: "1.3",
|
|
@@ -1395,8 +1395,8 @@ function Bt({ isExpanded: e, isHovered: t = !1 }) {
|
|
|
1395
1395
|
});
|
|
1396
1396
|
}
|
|
1397
1397
|
function Vt() {
|
|
1398
|
-
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n, isLastToggleInvokedByUser: r } = Nt(), a =
|
|
1399
|
-
|
|
1398
|
+
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n, isLastToggleInvokedByUser: r } = Nt(), a = I(null), [o, s] = L(!1), l = y() === "two-level";
|
|
1399
|
+
N(function() {
|
|
1400
1400
|
l && e === "hidden" && (t === "unlocked" || t === "locked" && r) && a.current?.focus();
|
|
1401
1401
|
}, [
|
|
1402
1402
|
l,
|
|
@@ -1405,7 +1405,7 @@ function Vt() {
|
|
|
1405
1405
|
r
|
|
1406
1406
|
]);
|
|
1407
1407
|
let u = i(), d = t !== "hidden", f = d ? u.navigation.sidebar.closePanel : u.navigation.sidebar.openPanel;
|
|
1408
|
-
return /* @__PURE__ */
|
|
1408
|
+
return /* @__PURE__ */ R(c, {
|
|
1409
1409
|
variant: "ghost",
|
|
1410
1410
|
size: "md",
|
|
1411
1411
|
onClick: () => n(),
|
|
@@ -1417,14 +1417,14 @@ function Vt() {
|
|
|
1417
1417
|
"aria-expanded": d,
|
|
1418
1418
|
onMouseEnter: () => s(!0),
|
|
1419
1419
|
onMouseLeave: () => s(!1),
|
|
1420
|
-
children: /* @__PURE__ */
|
|
1420
|
+
children: /* @__PURE__ */ R(Bt, {
|
|
1421
1421
|
isExpanded: d,
|
|
1422
1422
|
isHovered: o
|
|
1423
1423
|
})
|
|
1424
1424
|
});
|
|
1425
1425
|
}
|
|
1426
1426
|
function Ht({ isExpanded: e }) {
|
|
1427
|
-
return /* @__PURE__ */
|
|
1427
|
+
return /* @__PURE__ */ z("svg", {
|
|
1428
1428
|
width: "20",
|
|
1429
1429
|
height: "20",
|
|
1430
1430
|
viewBox: "0 0 20 20",
|
|
@@ -1432,7 +1432,7 @@ function Ht({ isExpanded: e }) {
|
|
|
1432
1432
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1433
1433
|
className: "text-f1-icon-bold",
|
|
1434
1434
|
children: [
|
|
1435
|
-
/* @__PURE__ */
|
|
1435
|
+
/* @__PURE__ */ R("rect", {
|
|
1436
1436
|
id: "container",
|
|
1437
1437
|
x: "3.33325",
|
|
1438
1438
|
y: "5",
|
|
@@ -1442,7 +1442,7 @@ function Ht({ isExpanded: e }) {
|
|
|
1442
1442
|
strokeWidth: "1.3",
|
|
1443
1443
|
className: "stroke-current"
|
|
1444
1444
|
}),
|
|
1445
|
-
/* @__PURE__ */
|
|
1445
|
+
/* @__PURE__ */ R("path", {
|
|
1446
1446
|
id: "arrow",
|
|
1447
1447
|
d: e ? "M10.417 10L14.167 10M10.417 10L12.0837 8.33337M10.417 10L12.0837 11.6667" : "M10.75 10L7 10M10.75 10L9.08333 8.33337M10.75 10L9.08333 11.6667",
|
|
1448
1448
|
strokeWidth: "1.3",
|
|
@@ -1450,7 +1450,7 @@ function Ht({ isExpanded: e }) {
|
|
|
1450
1450
|
strokeLinejoin: "round",
|
|
1451
1451
|
className: a("translate-x-0 stroke-current transition-all duration-200 ease-out motion-reduce:transition-none", e ? "opacity-0 group-hover:-translate-x-1 group-hover:opacity-100" : "opacity-1 group-hover:translate-x-[3px]")
|
|
1452
1452
|
}),
|
|
1453
|
-
/* @__PURE__ */
|
|
1453
|
+
/* @__PURE__ */ R("path", {
|
|
1454
1454
|
id: "line",
|
|
1455
1455
|
d: "M7.5 5L7.5 15",
|
|
1456
1456
|
strokeWidth: "1.3",
|
|
@@ -1461,10 +1461,10 @@ function Ht({ isExpanded: e }) {
|
|
|
1461
1461
|
});
|
|
1462
1462
|
}
|
|
1463
1463
|
function Ut() {
|
|
1464
|
-
let { isDockedByUser: e, sidebarState: t, toggleSidebar: n, isSmallScreen: r } = Nt(), i =
|
|
1465
|
-
return
|
|
1464
|
+
let { isDockedByUser: e, sidebarState: t, toggleSidebar: n, isSmallScreen: r } = Nt(), i = I(null);
|
|
1465
|
+
return N(() => {
|
|
1466
1466
|
e && i.current?.focus();
|
|
1467
|
-
}, [e]), /* @__PURE__ */
|
|
1467
|
+
}, [e]), /* @__PURE__ */ z(c, {
|
|
1468
1468
|
variant: "ghost",
|
|
1469
1469
|
size: "md",
|
|
1470
1470
|
onClick: () => n(),
|
|
@@ -1473,13 +1473,13 @@ function Ut() {
|
|
|
1473
1473
|
ref: i,
|
|
1474
1474
|
compact: !0,
|
|
1475
1475
|
"aria-label": "Close Sidebar",
|
|
1476
|
-
children: [/* @__PURE__ */
|
|
1476
|
+
children: [/* @__PURE__ */ R("div", {
|
|
1477
1477
|
className: a("hidden", { flex: !r }),
|
|
1478
|
-
children: /* @__PURE__ */
|
|
1479
|
-
}), /* @__PURE__ */
|
|
1478
|
+
children: /* @__PURE__ */ R(Ht, { isExpanded: t === "locked" })
|
|
1479
|
+
}), /* @__PURE__ */ R("div", {
|
|
1480
1480
|
className: a("hidden", { flex: r }),
|
|
1481
|
-
children: /* @__PURE__ */
|
|
1482
|
-
icon:
|
|
1481
|
+
children: /* @__PURE__ */ R(x, {
|
|
1482
|
+
icon: _,
|
|
1483
1483
|
size: "md"
|
|
1484
1484
|
})
|
|
1485
1485
|
})]
|
|
@@ -1487,12 +1487,12 @@ function Ut() {
|
|
|
1487
1487
|
}
|
|
1488
1488
|
function Wt() {
|
|
1489
1489
|
let { hasPrimarySidebar: e } = Nt();
|
|
1490
|
-
return
|
|
1490
|
+
return R(e ? Vt : Ut, {});
|
|
1491
1491
|
}
|
|
1492
1492
|
//#endregion
|
|
1493
1493
|
//#region src/addons/map/F0Map/components/F0MapSidebarToggle/F0MapSidebarToggle.tsx
|
|
1494
|
-
var Gt =
|
|
1495
|
-
let l = i(), u = n ?? (e ? l.map.controls.hidePanel : l.map.controls.showPanel), d = /* @__PURE__ */
|
|
1494
|
+
var Gt = j(({ expanded: e, onToggle: t, label: n, bare: a = !1, dataTestId: o }, s) => {
|
|
1495
|
+
let l = i(), u = n ?? (e ? l.map.controls.hidePanel : l.map.controls.showPanel), d = /* @__PURE__ */ R(c, {
|
|
1496
1496
|
ref: s,
|
|
1497
1497
|
variant: "ghost",
|
|
1498
1498
|
size: "md",
|
|
@@ -1502,11 +1502,11 @@ var Gt = M(({ expanded: e, onToggle: t, label: n, bare: a = !1, dataTestId: o },
|
|
|
1502
1502
|
title: u,
|
|
1503
1503
|
"aria-label": u,
|
|
1504
1504
|
"aria-expanded": e,
|
|
1505
|
-
children: /* @__PURE__ */
|
|
1505
|
+
children: /* @__PURE__ */ R(Ht, { isExpanded: e })
|
|
1506
1506
|
});
|
|
1507
|
-
return /* @__PURE__ */
|
|
1507
|
+
return /* @__PURE__ */ R(r, {
|
|
1508
1508
|
dataTestId: o,
|
|
1509
|
-
children: a ? d : /* @__PURE__ */
|
|
1509
|
+
children: a ? d : /* @__PURE__ */ R(Ae, { children: d })
|
|
1510
1510
|
});
|
|
1511
1511
|
});
|
|
1512
1512
|
Gt.displayName = "F0MapSidebarToggle";
|
|
@@ -1519,7 +1519,7 @@ var Kt = (e, t, n = .3, r = 64) => {
|
|
|
1519
1519
|
f.push([c * i + l * u + p * o, c * a + l * d + p * s]);
|
|
1520
1520
|
}
|
|
1521
1521
|
return f;
|
|
1522
|
-
}, qt = (e, t) => e.color ??
|
|
1522
|
+
}, qt = (e, t) => e.color ?? Ce(e.variant ?? "radical", t), Jt = (e, t) => e.color ?? Ce(e.variant ?? "radical", !t), Yt = ({ id: e, kind: t, coordinates: n, style: r, isDark: i }) => {
|
|
1523
1523
|
let a = r.width ?? 3;
|
|
1524
1524
|
return {
|
|
1525
1525
|
id: e,
|
|
@@ -1537,7 +1537,7 @@ var Kt = (e, t, n = .3, r = 64) => {
|
|
|
1537
1537
|
}
|
|
1538
1538
|
};
|
|
1539
1539
|
}, Xt = ({ adapter: e, routes: t, arcs: n, isDark: r, onRouteClick: i, onArcClick: a }) => {
|
|
1540
|
-
let o =
|
|
1540
|
+
let o = F(() => [...t.map((e) => Yt({
|
|
1541
1541
|
id: e.id,
|
|
1542
1542
|
kind: "route",
|
|
1543
1543
|
coordinates: e.coordinates,
|
|
@@ -1553,7 +1553,7 @@ var Kt = (e, t, n = .3, r = 64) => {
|
|
|
1553
1553
|
t,
|
|
1554
1554
|
n,
|
|
1555
1555
|
r
|
|
1556
|
-
]), s =
|
|
1556
|
+
]), s = F(() => new Map([...t.map((e) => [e.id, "route"]), ...n.map((e) => [e.id, "arc"])]), [t, n]), c = I({
|
|
1557
1557
|
onRouteClick: i,
|
|
1558
1558
|
onArcClick: a,
|
|
1559
1559
|
kinds: s
|
|
@@ -1564,7 +1564,7 @@ var Kt = (e, t, n = .3, r = 64) => {
|
|
|
1564
1564
|
kinds: s
|
|
1565
1565
|
};
|
|
1566
1566
|
let l = !!(i || a);
|
|
1567
|
-
return
|
|
1567
|
+
return N(() => {
|
|
1568
1568
|
e.setLines(o, l ? { onClick: (e) => {
|
|
1569
1569
|
let { onRouteClick: t, onArcClick: n, kinds: r } = c.current;
|
|
1570
1570
|
r.get(e) === "arc" ? n?.(e) : t?.(e);
|
|
@@ -1573,25 +1573,25 @@ var Kt = (e, t, n = .3, r = 64) => {
|
|
|
1573
1573
|
e,
|
|
1574
1574
|
o,
|
|
1575
1575
|
l
|
|
1576
|
-
]),
|
|
1577
|
-
}, Zt = ({ adapter: e, coords: t }) => (
|
|
1576
|
+
]), N(() => () => e.setLines([]), [e]), null;
|
|
1577
|
+
}, Zt = ({ adapter: e, coords: t }) => (N(() => {
|
|
1578
1578
|
e.setCurrentLocation(t);
|
|
1579
|
-
}, [e, t]),
|
|
1579
|
+
}, [e, t]), N(() => () => e.setCurrentLocation(null), [e]), null);
|
|
1580
1580
|
Zt.displayName = "CurrentLocationLayer";
|
|
1581
1581
|
//#endregion
|
|
1582
1582
|
//#region src/addons/map/F0Map/constants.ts
|
|
1583
1583
|
var Qt = {
|
|
1584
1584
|
curve: 1.42,
|
|
1585
1585
|
duration: 1400
|
|
1586
|
-
}, $t = 200, en = ({ dataTestId: e, className: t }) => /* @__PURE__ */
|
|
1586
|
+
}, $t = 200, en = ({ dataTestId: e, className: t }) => /* @__PURE__ */ R(r, {
|
|
1587
1587
|
dataTestId: e,
|
|
1588
|
-
children: /* @__PURE__ */
|
|
1588
|
+
children: /* @__PURE__ */ R("div", {
|
|
1589
1589
|
"aria-busy": "true",
|
|
1590
1590
|
"aria-live": "polite",
|
|
1591
1591
|
className: a("h-full w-full animate-pulse bg-f1-background-secondary", t)
|
|
1592
1592
|
})
|
|
1593
1593
|
}), tn = (e) => {
|
|
1594
|
-
let [t, n] =
|
|
1594
|
+
let [t, n] = L(null), r = M((t) => {
|
|
1595
1595
|
e && typeof navigator < "u" && navigator.geolocation && navigator.geolocation.getCurrentPosition((e) => {
|
|
1596
1596
|
let r = [e.coords.longitude, e.coords.latitude];
|
|
1597
1597
|
n(r), t?.(r);
|
|
@@ -1601,7 +1601,7 @@ var Qt = {
|
|
|
1601
1601
|
maximumAge: 6e4
|
|
1602
1602
|
});
|
|
1603
1603
|
}, [e]);
|
|
1604
|
-
return
|
|
1604
|
+
return N(() => {
|
|
1605
1605
|
e && !t && typeof navigator < "u" && navigator.permissions?.query({ name: "geolocation" }).then((e) => {
|
|
1606
1606
|
e.state === "granted" && r();
|
|
1607
1607
|
}).catch(() => {});
|
|
@@ -1614,7 +1614,7 @@ var Qt = {
|
|
|
1614
1614
|
request: r
|
|
1615
1615
|
};
|
|
1616
1616
|
}, nn = () => {
|
|
1617
|
-
let [e, t] =
|
|
1617
|
+
let [e, t] = L(!1), n = I(null), r = M((e) => {
|
|
1618
1618
|
if (n.current?.disconnect(), n.current = null, !e) return;
|
|
1619
1619
|
let r = () => t(e.closest(".dark") !== null);
|
|
1620
1620
|
r();
|
|
@@ -1625,12 +1625,12 @@ var Qt = {
|
|
|
1625
1625
|
});
|
|
1626
1626
|
n.current = i;
|
|
1627
1627
|
}, []);
|
|
1628
|
-
return
|
|
1628
|
+
return N(() => () => n.current?.disconnect(), []), {
|
|
1629
1629
|
containerRef: r,
|
|
1630
1630
|
isDark: e
|
|
1631
1631
|
};
|
|
1632
1632
|
}, rn = {
|
|
1633
|
-
maplibre: async () => (await import("./maplibre-
|
|
1633
|
+
maplibre: async () => (await import("./maplibre-CQlQTgFD.js")).createMaplibreAdapter,
|
|
1634
1634
|
google: async (e) => (await import("./google-DDQ7XfPD.js")).loadGoogleAdapter(e)
|
|
1635
1635
|
}, an = /* @__PURE__ */ new Map(), on = (e, t) => {
|
|
1636
1636
|
let n = an.get(e);
|
|
@@ -11759,7 +11759,7 @@ var Qt = {
|
|
|
11759
11759
|
...e.map((e) => e.coordinates),
|
|
11760
11760
|
...t.flatMap((e) => e.coordinates),
|
|
11761
11761
|
...n.flatMap((e) => [e.from, e.to]),
|
|
11762
|
-
...r.flatMap((e) =>
|
|
11762
|
+
...r.flatMap((e) => he(e.center, e.radiusMeters))
|
|
11763
11763
|
], bn = (e) => e.top === 0 && e.right === 0 && e.bottom === 0 && e.left === 0, xn = ({ adapter: e, points: t, animate: n, routes: r = [], arcs: i = [], areas: a = [], gutter: o = 64, inset: s, size: c }) => {
|
|
11764
11764
|
let l = yn(t, r, i, a);
|
|
11765
11765
|
if (l.length === 0) return;
|
|
@@ -11773,9 +11773,9 @@ var Qt = {
|
|
|
11773
11773
|
return;
|
|
11774
11774
|
}
|
|
11775
11775
|
let d = l.length === 1 ? {
|
|
11776
|
-
center:
|
|
11776
|
+
center: ue(e, l[0], s, 14),
|
|
11777
11777
|
zoom: 14
|
|
11778
|
-
} :
|
|
11778
|
+
} : de({
|
|
11779
11779
|
adapter: e,
|
|
11780
11780
|
coordinates: l,
|
|
11781
11781
|
inset: s,
|
|
@@ -11784,47 +11784,47 @@ var Qt = {
|
|
|
11784
11784
|
maxZoom: u
|
|
11785
11785
|
});
|
|
11786
11786
|
d && (n ? e.easeTo(d, { animate: n }) : e.jumpTo(d, { animate: n }));
|
|
11787
|
-
}, Sn = (e) => `${e.top},${e.right},${e.bottom},${e.left}`, Cn =
|
|
11788
|
-
let
|
|
11789
|
-
|
|
11790
|
-
}, [
|
|
11791
|
-
|
|
11792
|
-
Ie || ze.current || (ze.current = !0, console.warn(`F0Map: ignoring a "${
|
|
11787
|
+
}, Sn = (e) => `${e.top},${e.right},${e.bottom},${e.left}`, Cn = j(function({ markers: e = [], routes: o = [], arcs: s = [], areas: c = [], onRouteClick: l, onArcClick: d, selectedMarkerId: f, defaultSelectedMarkerId: p = null, onMarkerSelect: m, onMarkerDrag: h, onMarkerDragEnd: g, highlightedId: _ = null, viewportInset: v, centerOnMarkerClick: y = !1, fitToMarkers: b, initialViewport: ee, mapStyle: x, interactive: S = !0, gestureHandling: C, minZoom: w, maxZoom: T = 18, showControls: E = !0, controlLabels: te, showCurrentLocation: D = !1, fullScreen: O = !1, onSidebarToggle: k, sidebarExpanded: A = !1, sidebarToggleAddon: j, sidebarHeaderStart: ne, sidebar: P, detail: F, detailOpen: oe = !1, clearSelectionOnBackgroundClick: fe = !0, projection: pe = "mercator", provider: me, loading: he = !1, ariaLabel: ge, dataTestId: _e, className: ve }, ye) {
|
|
11788
|
+
let be = C ?? (O ? "greedy" : "cooperative"), B = i(), V = t(me), xe = n(), H = I(null), U = I(null), [W, G] = L(null), [K, Se] = L(!1), [Ce, we] = L(!1), [Ee, De] = L(0), Oe = re(), q = u(), { containerRef: ke, isDark: Me } = nn(), Pe = M((e) => {
|
|
11789
|
+
H.current = e, ke(e);
|
|
11790
|
+
}, [ke]), Fe = Me, Ie = !x || x.provider === V, Le = Ie ? x ?? gn(V) : gn(V), Re = Fe ? Le.dark : Le.light, ze = I(!1);
|
|
11791
|
+
N(() => {
|
|
11792
|
+
Ie || ze.current || (ze.current = !0, console.warn(`F0Map: ignoring a "${x?.provider}" mapStyle on the "${V}" engine - the shapes are not interchangeable. Pass a "${V}" style, or none for its default look.`));
|
|
11793
11793
|
}, [
|
|
11794
11794
|
Ie,
|
|
11795
|
-
|
|
11796
|
-
|
|
11795
|
+
x?.provider,
|
|
11796
|
+
V
|
|
11797
11797
|
]);
|
|
11798
|
-
let [Be, Ve] =
|
|
11798
|
+
let [Be, Ve] = L(p), He = f === void 0 ? Be : f, Ue = M((e) => {
|
|
11799
11799
|
f === void 0 && Ve(e), m?.(e);
|
|
11800
|
-
}, [f, m]), X =
|
|
11800
|
+
}, [f, m]), X = A && !!k, We = oe && !!F, Ge = X ? J.inset + J.listWidth + J.gap : J.inset, Ke = X ? J.inset : J.inset + J.toggleSize + J.gap, qe = We ? Ge + J.detailWidth : X ? J.inset + J.listWidth : null, Je = se(v, { left: qe === null ? 0 : qe + J.gap }), Z = I(e);
|
|
11801
11801
|
Z.current = e;
|
|
11802
|
-
let Ye =
|
|
11802
|
+
let Ye = I(o);
|
|
11803
11803
|
Ye.current = o;
|
|
11804
|
-
let Xe =
|
|
11804
|
+
let Xe = I(s);
|
|
11805
11805
|
Xe.current = s;
|
|
11806
|
-
let Ze =
|
|
11806
|
+
let Ze = I(c);
|
|
11807
11807
|
Ze.current = c;
|
|
11808
|
-
let Qe =
|
|
11809
|
-
Qe.current =
|
|
11810
|
-
let $e =
|
|
11808
|
+
let Qe = I(pe);
|
|
11809
|
+
Qe.current = pe;
|
|
11810
|
+
let $e = I(Ue);
|
|
11811
11811
|
$e.current = Ue;
|
|
11812
|
-
let et =
|
|
11812
|
+
let et = I(He);
|
|
11813
11813
|
et.current = He;
|
|
11814
|
-
let tt =
|
|
11814
|
+
let tt = I(Je);
|
|
11815
11815
|
tt.current = Je;
|
|
11816
|
-
let nt =
|
|
11817
|
-
nt.current =
|
|
11818
|
-
let Q =
|
|
11816
|
+
let nt = I(fe);
|
|
11817
|
+
nt.current = fe;
|
|
11818
|
+
let Q = I(null), rt = b ?? ee === void 0, $ = M(() => {
|
|
11819
11819
|
let e = {
|
|
11820
|
-
width:
|
|
11821
|
-
height:
|
|
11820
|
+
width: H.current?.clientWidth ?? 0,
|
|
11821
|
+
height: H.current?.clientHeight ?? 0
|
|
11822
11822
|
};
|
|
11823
11823
|
return {
|
|
11824
|
-
inset:
|
|
11824
|
+
inset: ce(tt.current, e),
|
|
11825
11825
|
size: e
|
|
11826
11826
|
};
|
|
11827
|
-
}, []), it =
|
|
11827
|
+
}, []), it = M((e, t) => {
|
|
11828
11828
|
Q.current = { kind: "fit" }, xn({
|
|
11829
11829
|
adapter: e,
|
|
11830
11830
|
points: Z.current,
|
|
@@ -11834,9 +11834,9 @@ var Qt = {
|
|
|
11834
11834
|
areas: Ze.current,
|
|
11835
11835
|
...$()
|
|
11836
11836
|
});
|
|
11837
|
-
}, [$]), at =
|
|
11837
|
+
}, [$]), at = I(it);
|
|
11838
11838
|
at.current = it;
|
|
11839
|
-
let ot =
|
|
11839
|
+
let ot = M((e, t) => {
|
|
11840
11840
|
let n = Math.max(e.getZoom(), 15);
|
|
11841
11841
|
Q.current = {
|
|
11842
11842
|
kind: "flight",
|
|
@@ -11844,94 +11844,94 @@ var Qt = {
|
|
|
11844
11844
|
};
|
|
11845
11845
|
let { inset: r } = $();
|
|
11846
11846
|
e.easeTo({
|
|
11847
|
-
center:
|
|
11847
|
+
center: ue(e, t.coordinates, r, n),
|
|
11848
11848
|
zoom: n
|
|
11849
|
-
}, { animate: !
|
|
11850
|
-
}, [$,
|
|
11851
|
-
let t =
|
|
11849
|
+
}, { animate: !q });
|
|
11850
|
+
}, [$, q]), st = M((e) => {
|
|
11851
|
+
let t = U.current, n = Z.current.find((t) => t.id === e);
|
|
11852
11852
|
if (Q.current = null, y && t && n) {
|
|
11853
11853
|
let { inset: e } = $();
|
|
11854
|
-
t.easeTo({ center:
|
|
11854
|
+
t.easeTo({ center: ue(t, n.coordinates, e) }, { animate: !q });
|
|
11855
11855
|
}
|
|
11856
11856
|
$e.current(e);
|
|
11857
11857
|
}, [
|
|
11858
11858
|
y,
|
|
11859
11859
|
$,
|
|
11860
|
-
|
|
11861
|
-
]), ct =
|
|
11862
|
-
|
|
11860
|
+
q
|
|
11861
|
+
]), ct = I(!1);
|
|
11862
|
+
N(() => {
|
|
11863
11863
|
ct.current || e.length <= 200 || (ct.current = !0, console.warn(`F0Map: ${e.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.`));
|
|
11864
11864
|
}, [e.length]);
|
|
11865
|
-
let { coords: dt, request: ft } = tn(
|
|
11866
|
-
Q.current = null,
|
|
11867
|
-
}, []), mt =
|
|
11868
|
-
Q.current = null,
|
|
11869
|
-
}, []), ht =
|
|
11870
|
-
|
|
11871
|
-
}, [it,
|
|
11865
|
+
let { coords: dt, request: ft } = tn(D), pt = M(() => {
|
|
11866
|
+
Q.current = null, U.current?.zoomIn();
|
|
11867
|
+
}, []), mt = M(() => {
|
|
11868
|
+
Q.current = null, U.current?.zoomOut();
|
|
11869
|
+
}, []), ht = M(() => {
|
|
11870
|
+
U.current && it(U.current, !q);
|
|
11871
|
+
}, [it, q]), gt = M(() => {
|
|
11872
11872
|
ft((e) => {
|
|
11873
|
-
let t =
|
|
11873
|
+
let t = U.current;
|
|
11874
11874
|
if (!t) return;
|
|
11875
11875
|
Q.current = null;
|
|
11876
11876
|
let n = Math.max(t.getZoom(), 13), { inset: r } = $();
|
|
11877
11877
|
t.flyTo({
|
|
11878
|
-
center:
|
|
11878
|
+
center: ue(t, e, r, n),
|
|
11879
11879
|
zoom: n
|
|
11880
|
-
}, { animate: !
|
|
11880
|
+
}, { animate: !q });
|
|
11881
11881
|
});
|
|
11882
11882
|
}, [
|
|
11883
11883
|
ft,
|
|
11884
11884
|
$,
|
|
11885
|
-
|
|
11886
|
-
]), _t =
|
|
11887
|
-
let t =
|
|
11885
|
+
q
|
|
11886
|
+
]), _t = M((e) => {
|
|
11887
|
+
let t = U.current;
|
|
11888
11888
|
if (!t) return;
|
|
11889
11889
|
Q.current = null;
|
|
11890
|
-
let n =
|
|
11890
|
+
let n = de({
|
|
11891
11891
|
adapter: t,
|
|
11892
11892
|
coordinates: e,
|
|
11893
11893
|
...$(),
|
|
11894
11894
|
gutter: 64,
|
|
11895
11895
|
maxZoom: 16
|
|
11896
11896
|
});
|
|
11897
|
-
n && (
|
|
11898
|
-
}, [$,
|
|
11899
|
-
let t =
|
|
11897
|
+
n && (q ? t.jumpTo(n, { animate: !1 }) : t.flyTo(n));
|
|
11898
|
+
}, [$, q]), vt = M((e) => {
|
|
11899
|
+
let t = U.current, n = Z.current.find((t) => t.id === e);
|
|
11900
11900
|
t && n && ot(t, n), Ue(e);
|
|
11901
11901
|
}, [ot, Ue]);
|
|
11902
|
-
|
|
11902
|
+
N(() => {
|
|
11903
11903
|
if (!We || He === null) return;
|
|
11904
11904
|
let e = (e) => {
|
|
11905
11905
|
e.key !== "Escape" || e.defaultPrevented || (e.preventDefault(), $e.current(null));
|
|
11906
|
-
}, t =
|
|
11906
|
+
}, t = H.current?.ownerDocument ?? document;
|
|
11907
11907
|
return t.addEventListener("keydown", e), () => t.removeEventListener("keydown", e);
|
|
11908
|
-
}, [We, He]),
|
|
11909
|
-
getNativeMap: () =>
|
|
11908
|
+
}, [We, He]), ie(ye, () => ({
|
|
11909
|
+
getNativeMap: () => U.current?.native() ?? null,
|
|
11910
11910
|
focusMarker: (e) => {
|
|
11911
|
-
let t =
|
|
11911
|
+
let t = U.current, n = Z.current.find((t) => t.id === e);
|
|
11912
11912
|
t && n && (ot(t, n), $e.current(e));
|
|
11913
11913
|
},
|
|
11914
11914
|
fitToMarkers: () => {
|
|
11915
|
-
|
|
11915
|
+
U.current && it(U.current, !q);
|
|
11916
11916
|
},
|
|
11917
11917
|
clearSelection: () => $e.current(null)
|
|
11918
11918
|
}), [
|
|
11919
11919
|
it,
|
|
11920
11920
|
ot,
|
|
11921
|
-
|
|
11921
|
+
q
|
|
11922
11922
|
]);
|
|
11923
|
-
let yt =
|
|
11923
|
+
let yt = I(Re);
|
|
11924
11924
|
yt.current = Re;
|
|
11925
|
-
let bt =
|
|
11926
|
-
bt.current =
|
|
11927
|
-
let xt =
|
|
11928
|
-
|
|
11929
|
-
if (
|
|
11930
|
-
let e =
|
|
11925
|
+
let bt = I(xe);
|
|
11926
|
+
bt.current = xe;
|
|
11927
|
+
let xt = I(null), St = I(ee ?? vn);
|
|
11928
|
+
N(() => {
|
|
11929
|
+
if (he) return;
|
|
11930
|
+
let e = H.current;
|
|
11931
11931
|
if (!e) return;
|
|
11932
11932
|
xt.current = yt.current;
|
|
11933
11933
|
let t = St.current, n = null, r = !1, i = [];
|
|
11934
|
-
return on(
|
|
11934
|
+
return on(V, bt.current).then((i) => {
|
|
11935
11935
|
if (!r) {
|
|
11936
11936
|
try {
|
|
11937
11937
|
n = i({
|
|
@@ -11939,27 +11939,27 @@ var Qt = {
|
|
|
11939
11939
|
style: yt.current,
|
|
11940
11940
|
center: t.center,
|
|
11941
11941
|
zoom: t.zoom ?? vn.zoom,
|
|
11942
|
-
minZoom:
|
|
11943
|
-
maxZoom:
|
|
11944
|
-
interactive:
|
|
11945
|
-
cooperativeGestures:
|
|
11942
|
+
minZoom: w,
|
|
11943
|
+
maxZoom: T,
|
|
11944
|
+
interactive: S,
|
|
11945
|
+
cooperativeGestures: be === "cooperative"
|
|
11946
11946
|
});
|
|
11947
11947
|
} catch {
|
|
11948
|
-
|
|
11948
|
+
Se(!0);
|
|
11949
11949
|
return;
|
|
11950
11950
|
}
|
|
11951
11951
|
a(n);
|
|
11952
11952
|
}
|
|
11953
11953
|
}).catch((e) => {
|
|
11954
|
-
console.error("[F0Map] could not load the map engine", e), r ||
|
|
11954
|
+
console.error("[F0Map] could not load the map engine", e), r || we(!0);
|
|
11955
11955
|
}), () => {
|
|
11956
|
-
r = !0, i.forEach((e) => e()), n && (
|
|
11956
|
+
r = !0, i.forEach((e) => e()), n && (U.current = null, G(null), n.destroy());
|
|
11957
11957
|
};
|
|
11958
11958
|
function a(e) {
|
|
11959
|
-
|
|
11959
|
+
U.current = e, G(e), Se(!1);
|
|
11960
11960
|
let t = !1;
|
|
11961
11961
|
i.push(_n(e, "ready", () => {
|
|
11962
|
-
t = !0,
|
|
11962
|
+
t = !0, we(!1), e.resize(), rt && xn({
|
|
11963
11963
|
adapter: e,
|
|
11964
11964
|
points: Z.current,
|
|
11965
11965
|
animate: !1,
|
|
@@ -11969,43 +11969,43 @@ var Qt = {
|
|
|
11969
11969
|
...$()
|
|
11970
11970
|
}), e.setGlobeProjection(Qe.current === "globe");
|
|
11971
11971
|
}), e.on("error", () => {
|
|
11972
|
-
t ||
|
|
11972
|
+
t || we(!0);
|
|
11973
11973
|
}), e.on("click", () => {
|
|
11974
11974
|
nt.current && $e.current(null);
|
|
11975
11975
|
}));
|
|
11976
11976
|
}
|
|
11977
11977
|
}, [
|
|
11978
|
-
|
|
11979
|
-
|
|
11980
|
-
|
|
11978
|
+
he,
|
|
11979
|
+
S,
|
|
11980
|
+
be,
|
|
11981
|
+
w,
|
|
11981
11982
|
T,
|
|
11982
|
-
E,
|
|
11983
11983
|
rt,
|
|
11984
|
-
|
|
11985
|
-
|
|
11986
|
-
]),
|
|
11987
|
-
let e =
|
|
11984
|
+
V,
|
|
11985
|
+
Ee
|
|
11986
|
+
]), N(() => {
|
|
11987
|
+
let e = U.current;
|
|
11988
11988
|
e && xt.current !== Re && (xt.current = Re, e.applyStyle(Re), _n(e, "styled", () => e.setGlobeProjection(Qe.current === "globe")));
|
|
11989
|
-
}, [Re]),
|
|
11990
|
-
|
|
11991
|
-
}, [
|
|
11992
|
-
let Ct =
|
|
11993
|
-
Ct.current = ot,
|
|
11989
|
+
}, [Re]), N(() => {
|
|
11990
|
+
U.current?.setGlobeProjection(pe === "globe");
|
|
11991
|
+
}, [pe]);
|
|
11992
|
+
let Ct = I(ot);
|
|
11993
|
+
Ct.current = ot, N(() => {
|
|
11994
11994
|
if (!_) return;
|
|
11995
|
-
let e =
|
|
11995
|
+
let e = U.current, t = Z.current.find((e) => e.id === _);
|
|
11996
11996
|
e && t && Ct.current(e, t);
|
|
11997
11997
|
}, [_]);
|
|
11998
|
-
let wt = Sn(Je), Tt =
|
|
11999
|
-
|
|
11998
|
+
let wt = Sn(Je), Tt = I(null);
|
|
11999
|
+
N(() => {
|
|
12000
12000
|
let e = Tt.current;
|
|
12001
12001
|
Tt.current = tt.current;
|
|
12002
|
-
let t =
|
|
12002
|
+
let t = U.current;
|
|
12003
12003
|
if (!e || !t) return;
|
|
12004
|
-
let { inset: n, size: r } = $(), i = Q.current, a = !
|
|
12004
|
+
let { inset: n, size: r } = $(), i = Q.current, a = !q, o = Z.current.find((e) => e.id === et.current);
|
|
12005
12005
|
if (o) {
|
|
12006
12006
|
let e = i?.kind === "flight" ? i.zoom : void 0;
|
|
12007
12007
|
t.easeTo({
|
|
12008
|
-
center:
|
|
12008
|
+
center: ue(t, o.coordinates, n, e),
|
|
12009
12009
|
zoom: e
|
|
12010
12010
|
}, { animate: a });
|
|
12011
12011
|
return;
|
|
@@ -12014,13 +12014,13 @@ var Qt = {
|
|
|
12014
12014
|
at.current(t, a);
|
|
12015
12015
|
return;
|
|
12016
12016
|
}
|
|
12017
|
-
let s = ce(
|
|
12017
|
+
let s = le(ce(e, r)), c = le(n), l = t.project(t.getCenter()), u = l && t.unproject({
|
|
12018
12018
|
x: l.x + s.x - c.x,
|
|
12019
12019
|
y: l.y + s.y - c.y
|
|
12020
12020
|
});
|
|
12021
12021
|
u && t.easeTo({ center: u }, { animate: a });
|
|
12022
12022
|
}, [wt, $]);
|
|
12023
|
-
let Et = o.length > 0 || s.length > 0, Dt = qe === null ? 0 : qe +
|
|
12023
|
+
let Et = o.length > 0 || s.length > 0, Dt = qe === null ? 0 : qe + J.gap - J.inset, Ot = I({
|
|
12024
12024
|
from: Dt,
|
|
12025
12025
|
to: Dt
|
|
12026
12026
|
});
|
|
@@ -12028,48 +12028,48 @@ var Qt = {
|
|
|
12028
12028
|
from: Ot.current.to,
|
|
12029
12029
|
to: Dt
|
|
12030
12030
|
});
|
|
12031
|
-
let kt = Dt > Ot.current.from ?
|
|
12032
|
-
return /* @__PURE__ */
|
|
12033
|
-
dataTestId:
|
|
12034
|
-
children:
|
|
12031
|
+
let kt = Dt > Ot.current.from ? Y.enter : Y.exit, At = X ? Y.enter : Y.exit;
|
|
12032
|
+
return /* @__PURE__ */ R(r, {
|
|
12033
|
+
dataTestId: _e,
|
|
12034
|
+
children: he ? /* @__PURE__ */ R(en, { className: ve }) : /* @__PURE__ */ z("div", {
|
|
12035
12035
|
ref: Pe,
|
|
12036
12036
|
role: "region",
|
|
12037
|
-
"aria-label":
|
|
12038
|
-
className: a("f0-map relative h-full w-full overflow-hidden", Fe && "dark", !
|
|
12037
|
+
"aria-label": ge ?? B.map.region,
|
|
12038
|
+
className: a("f0-map relative h-full w-full overflow-hidden", Fe && "dark", !O && "rounded-2xl border border-solid border-f1-border-secondary", ve),
|
|
12039
12039
|
children: [
|
|
12040
|
-
/* @__PURE__ */
|
|
12041
|
-
href: `#${
|
|
12040
|
+
/* @__PURE__ */ R("a", {
|
|
12041
|
+
href: `#${Oe}`,
|
|
12042
12042
|
className: "sr-only rounded-md focus:not-sr-only focus:absolute focus:left-2 focus:top-2 focus:z-30 focus:bg-f1-background focus:px-3 focus:py-2 focus:text-sm focus:text-f1-foreground focus:shadow-md focus:outline-none focus:ring-1 focus:ring-f1-special-ring",
|
|
12043
|
-
children:
|
|
12043
|
+
children: B.map.skipToList
|
|
12044
12044
|
}),
|
|
12045
|
-
/* @__PURE__ */
|
|
12045
|
+
/* @__PURE__ */ R("div", {
|
|
12046
12046
|
role: "status",
|
|
12047
12047
|
"aria-live": "polite",
|
|
12048
12048
|
className: "sr-only",
|
|
12049
|
-
children: `${e.length} ${e.length === 1 ?
|
|
12049
|
+
children: `${e.length} ${e.length === 1 ? B.map.location : B.map.locations}`
|
|
12050
12050
|
}),
|
|
12051
|
-
!
|
|
12052
|
-
adapter:
|
|
12051
|
+
!K && W && c.length > 0 ? /* @__PURE__ */ R(Te, {
|
|
12052
|
+
adapter: W,
|
|
12053
12053
|
areas: c,
|
|
12054
12054
|
isDark: Fe
|
|
12055
12055
|
}) : null,
|
|
12056
|
-
!
|
|
12057
|
-
adapter:
|
|
12056
|
+
!K && W && dt ? /* @__PURE__ */ z(ae, { children: [/* @__PURE__ */ R(Zt, {
|
|
12057
|
+
adapter: W,
|
|
12058
12058
|
coords: dt
|
|
12059
|
-
}), /* @__PURE__ */
|
|
12059
|
+
}), /* @__PURE__ */ R("span", {
|
|
12060
12060
|
className: "sr-only",
|
|
12061
|
-
children:
|
|
12061
|
+
children: B.map.currentLocation
|
|
12062
12062
|
})] }) : null,
|
|
12063
|
-
!
|
|
12064
|
-
adapter:
|
|
12063
|
+
!K && W && Et ? /* @__PURE__ */ R(Xt, {
|
|
12064
|
+
adapter: W,
|
|
12065
12065
|
routes: o,
|
|
12066
12066
|
arcs: s,
|
|
12067
12067
|
isDark: Fe,
|
|
12068
12068
|
onRouteClick: l,
|
|
12069
12069
|
onArcClick: d
|
|
12070
12070
|
}) : null,
|
|
12071
|
-
!
|
|
12072
|
-
adapter:
|
|
12071
|
+
!K && W && e.length > 0 ? /* @__PURE__ */ R(lt, {
|
|
12072
|
+
adapter: W,
|
|
12073
12073
|
points: e,
|
|
12074
12074
|
selectedId: He,
|
|
12075
12075
|
highlightedId: _,
|
|
@@ -12078,83 +12078,83 @@ var Qt = {
|
|
|
12078
12078
|
onMarkerDragEnd: g,
|
|
12079
12079
|
onClusterExpand: _t
|
|
12080
12080
|
}) : null,
|
|
12081
|
-
!
|
|
12081
|
+
!K && W && F ? /* @__PURE__ */ R(ut, {
|
|
12082
12082
|
open: We,
|
|
12083
12083
|
offsetX: Ge,
|
|
12084
12084
|
offsetY: Ke,
|
|
12085
|
-
width:
|
|
12085
|
+
width: J.detailWidth,
|
|
12086
12086
|
entrance: "grow",
|
|
12087
|
-
ariaLabel:
|
|
12088
|
-
children:
|
|
12087
|
+
ariaLabel: B.map.detailPanel,
|
|
12088
|
+
children: F
|
|
12089
12089
|
}) : null,
|
|
12090
|
-
!
|
|
12090
|
+
!K && W && k ? /* @__PURE__ */ R("div", {
|
|
12091
12091
|
className: a("absolute left-2 top-2 z-10", X && "opacity-0"),
|
|
12092
12092
|
style: {
|
|
12093
|
-
transitionProperty:
|
|
12093
|
+
transitionProperty: q ? "none" : "opacity",
|
|
12094
12094
|
transitionDuration: At.duration,
|
|
12095
12095
|
transitionTimingFunction: At.easing
|
|
12096
12096
|
},
|
|
12097
|
-
children: /* @__PURE__ */
|
|
12097
|
+
children: /* @__PURE__ */ z("div", {
|
|
12098
12098
|
className: "flex items-start gap-2",
|
|
12099
12099
|
"aria-hidden": X || void 0,
|
|
12100
12100
|
ref: (e) => {
|
|
12101
12101
|
X ? e?.setAttribute("inert", "") : e?.removeAttribute("inert");
|
|
12102
12102
|
},
|
|
12103
|
-
children: [/* @__PURE__ */
|
|
12103
|
+
children: [/* @__PURE__ */ R(Gt, {
|
|
12104
12104
|
expanded: !1,
|
|
12105
|
-
onToggle:
|
|
12106
|
-
}),
|
|
12105
|
+
onToggle: k
|
|
12106
|
+
}), j ? /* @__PURE__ */ R(Ae, { children: j }) : null]
|
|
12107
12107
|
})
|
|
12108
12108
|
}) : null,
|
|
12109
|
-
!
|
|
12109
|
+
!K && W && k ? /* @__PURE__ */ R(ut, {
|
|
12110
12110
|
open: X,
|
|
12111
|
-
offsetX:
|
|
12112
|
-
width:
|
|
12113
|
-
headerStart:
|
|
12114
|
-
headerEnd: /* @__PURE__ */
|
|
12111
|
+
offsetX: J.inset,
|
|
12112
|
+
width: J.listWidth,
|
|
12113
|
+
headerStart: ne,
|
|
12114
|
+
headerEnd: /* @__PURE__ */ R(Gt, {
|
|
12115
12115
|
expanded: !0,
|
|
12116
|
-
onToggle:
|
|
12116
|
+
onToggle: k,
|
|
12117
12117
|
bare: !0,
|
|
12118
12118
|
dataTestId: "map-panel-toggle-open"
|
|
12119
12119
|
}),
|
|
12120
|
-
children:
|
|
12120
|
+
children: P
|
|
12121
12121
|
}) : null,
|
|
12122
|
-
!
|
|
12123
|
-
className: a("absolute left-2 z-10",
|
|
12122
|
+
!K && W && E && S ? /* @__PURE__ */ R("div", {
|
|
12123
|
+
className: a("absolute left-2 z-10", V === "google" ? "bottom-8" : "bottom-2"),
|
|
12124
12124
|
style: {
|
|
12125
12125
|
transform: `translateX(${Dt}px)`,
|
|
12126
|
-
transitionProperty:
|
|
12126
|
+
transitionProperty: q ? "none" : "transform",
|
|
12127
12127
|
transitionDuration: kt.duration,
|
|
12128
12128
|
transitionTimingFunction: kt.easing
|
|
12129
12129
|
},
|
|
12130
|
-
children: /* @__PURE__ */
|
|
12130
|
+
children: /* @__PURE__ */ R(je, {
|
|
12131
12131
|
onZoomIn: pt,
|
|
12132
12132
|
onZoomOut: mt,
|
|
12133
12133
|
onFit: e.length > 0 || Et || c.length > 0 ? ht : void 0,
|
|
12134
12134
|
onLocate: gt,
|
|
12135
|
-
labels:
|
|
12135
|
+
labels: te
|
|
12136
12136
|
})
|
|
12137
12137
|
}) : null,
|
|
12138
|
-
|
|
12138
|
+
Ce && !K ? /* @__PURE__ */ z("div", {
|
|
12139
12139
|
className: "absolute inset-x-0 top-0 z-30 flex items-center justify-between gap-3 border-b border-solid border-f1-border-secondary bg-f1-background px-4 py-2 text-sm text-f1-foreground",
|
|
12140
|
-
children: [/* @__PURE__ */
|
|
12140
|
+
children: [/* @__PURE__ */ R("span", { children: B.map.loadError }), /* @__PURE__ */ R("button", {
|
|
12141
12141
|
type: "button",
|
|
12142
12142
|
onClick: () => {
|
|
12143
|
-
|
|
12144
|
-
let e =
|
|
12145
|
-
e ? e.applyStyle(yt.current) :
|
|
12143
|
+
we(!1);
|
|
12144
|
+
let e = U.current;
|
|
12145
|
+
e ? e.applyStyle(yt.current) : De((e) => e + 1);
|
|
12146
12146
|
},
|
|
12147
12147
|
className: "font-medium underline",
|
|
12148
|
-
children:
|
|
12148
|
+
children: B.map.retry
|
|
12149
12149
|
})]
|
|
12150
12150
|
}) : null,
|
|
12151
|
-
/* @__PURE__ */
|
|
12152
|
-
id:
|
|
12153
|
-
label:
|
|
12151
|
+
/* @__PURE__ */ R(Ne, {
|
|
12152
|
+
id: Oe,
|
|
12153
|
+
label: B.map.listLabel,
|
|
12154
12154
|
points: e,
|
|
12155
12155
|
selectedId: He,
|
|
12156
12156
|
onSelect: vt,
|
|
12157
|
-
visible:
|
|
12157
|
+
visible: K
|
|
12158
12158
|
})
|
|
12159
12159
|
]
|
|
12160
12160
|
})
|