@factorialco/f0-react 13.1.0 → 13.1.1
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-Bz26vD3k.js → ArchiveThumbnail-BhSVjw6x.js} +1 -1
- package/dist/{ArchiveViewer-Br_UrMQq.js → ArchiveViewer-DASJzwJb.js} +2 -2
- package/dist/{ChatPostComposerDialog-xaCrNutP.js → ChatPostComposerDialog-D92jj4BV.js} +2 -2
- package/dist/{CoachmarkProvider-DYNzyAzo.js → CoachmarkProvider-dxh4P0AZ.js} +3 -3
- package/dist/{CodeThumbnail-gCUveng3.js → CodeThumbnail-IP_vOyov.js} +1 -1
- package/dist/{CodeViewer-DIWvig04.js → CodeViewer-DZoJ7fdL.js} +3 -3
- package/dist/{DocumentToolbar-KSR6JvwX.js → DocumentToolbar-B8_j2Zl4.js} +1 -1
- package/dist/{DocxViewer-BaJCyWOv.js → DocxViewer-DboJaTr3.js} +1 -1
- package/dist/{F0AiProcessingOverlay-BOFAcdmY.js → F0AiProcessingOverlay-DT4ktT3j.js} +1 -1
- package/dist/{F0Alert-BkFPrwRK.js → F0Alert-BfltCzQ2.js} +1 -1
- package/dist/F0AudioPlayer-DJ7kXNPF.js +2 -0
- package/dist/{F0CanvasPanel-DUZAHcRh.js → F0CanvasPanel-Cj4TWcke.js} +5872 -5866
- package/dist/{F0DocumentViewer-D4NVYpen.js → F0DocumentViewer-7bsl-VJ7.js} +1 -1
- package/dist/{F0DocumentViewer-DaymVJJ7.js → F0DocumentViewer-BqYSh98Y.js} +2 -2
- package/dist/{F0Map-DValPZZ3.js → F0Map-DV3c_rk8.js} +169 -148
- package/dist/{F0VideoPlayer-_ThwtIuS.js → F0VideoPlayer-5HdkeIbo.js} +1 -1
- package/dist/F0VideoPlayer-Czpw9u5k.js +1 -0
- package/dist/{HtmlViewer-Bqei9VAg.js → HtmlViewer-Ux6YE3lc.js} +3 -3
- package/dist/{Map-CSuL7eRp.js → Map-BMb6SEH2.js} +3 -3
- package/dist/{PdfThumbnail-B20soGGL.js → PdfThumbnail-BXNX1dm4.js} +1 -1
- package/dist/{PdfViewer-06FXAmNj.js → PdfViewer-vXrU8Kxe.js} +2 -2
- package/dist/{SheetViewer-C3Phf24V.js → SheetViewer-DMQqX_e_.js} +2 -2
- package/dist/{TextViewer-DCVutuqX.js → TextViewer-YNNSwjUG.js} +1 -1
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/experimental.js +4 -4
- package/dist/f0.js +6 -6
- package/dist/{highlight-BfB_NSI3.js → highlight-D_pakpV2.js} +1 -1
- package/dist/{maplibre-6PzgwdR7.js → maplibre-C_cFb8qK.js} +1 -1
- package/dist/{pdfWorker-BhhAlqi1.js → pdfWorker-Cr7w7uDW.js} +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/F0AudioPlayer-Dq4-9QDJ.js +0 -2
- package/dist/F0VideoPlayer-D3U1y8RL.js +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as e, di as t, o as n } from "./CoachmarkProvider-
|
|
1
|
+
import { a as e, di as t, o as n } from "./CoachmarkProvider-dxh4P0AZ.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-C1-0hRRA.js";
|
|
5
|
-
import { Js as m, Ro as h, ht as g, l as _, ps as v, uc as y } from "./F0CanvasPanel-
|
|
5
|
+
import { Js as m, Ro as h, ht as g, l as _, ps as v, uc as y } from "./F0CanvasPanel-Cj4TWcke.js";
|
|
6
6
|
import { t as b } from "./F0Icon-DmCBV0gK.js";
|
|
7
|
-
import { N as x, T as S, U as
|
|
8
|
-
import { n as
|
|
7
|
+
import { N as x, T as S, U as ee, f as C, z as w } from "./useData-DikJqoNa.js";
|
|
8
|
+
import { n as T, o as E, 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,7 +145,7 @@ 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, n) {
|
|
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],
|
|
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], ee = !!m, w = y === "color" || y === "icon" || y === "letter", T = y === "person" && "firstName" in e ? e.firstName + e.lastName : (y === "team" || y === "company") && "name" in e ? e.name : null, E = w ? e.color ?? "radical" : T ? y === "person" && "src" in e && e.src ? "grey" : S(T) ?? "grey" : "neutral", te = t(), D = s ? 32 : {
|
|
149
149
|
xs: 12,
|
|
150
150
|
sm: 16,
|
|
151
151
|
md: 20,
|
|
@@ -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
|
-
}) : y === "person" && "firstName" in e ? j(/* @__PURE__ */ I(
|
|
180
|
+
}) : y === "person" && "firstName" in e ? j(/* @__PURE__ */ I(C, {
|
|
181
181
|
avatar: {
|
|
182
182
|
type: "person",
|
|
183
183
|
firstName: e.firstName,
|
|
@@ -185,14 +185,14 @@ var se = (e, t) => ({
|
|
|
185
185
|
src: e.src
|
|
186
186
|
},
|
|
187
187
|
size: k
|
|
188
|
-
})) : y === "team" && "name" in e ? j(/* @__PURE__ */ I(
|
|
188
|
+
})) : y === "team" && "name" in e ? j(/* @__PURE__ */ I(C, {
|
|
189
189
|
avatar: {
|
|
190
190
|
type: "team",
|
|
191
191
|
name: e.name,
|
|
192
192
|
src: e.src
|
|
193
193
|
},
|
|
194
194
|
size: k
|
|
195
|
-
})) : y === "company" && "name" in e ? j(/* @__PURE__ */ I(
|
|
195
|
+
})) : y === "company" && "name" in e ? j(/* @__PURE__ */ I(C, {
|
|
196
196
|
avatar: {
|
|
197
197
|
type: "company",
|
|
198
198
|
name: e.name,
|
|
@@ -211,7 +211,7 @@ var se = (e, t) => ({
|
|
|
211
211
|
borderRadius: ne ? Math.round(x.d * .3) : 9999,
|
|
212
212
|
borderWidth: x.border,
|
|
213
213
|
borderColor: B,
|
|
214
|
-
backgroundColor:
|
|
214
|
+
backgroundColor: w ? ve(E) : B
|
|
215
215
|
},
|
|
216
216
|
children: y === "color" ? /* @__PURE__ */ I("span", {
|
|
217
217
|
className: "rounded-full transition-all duration-200 ease-out",
|
|
@@ -285,7 +285,7 @@ var se = (e, t) => ({
|
|
|
285
285
|
}[ce], he = u && d && !c && /* @__PURE__ */ I("span", {
|
|
286
286
|
className: a("absolute left-0 top-0 font-semibold leading-tight transition-all duration-200 ease-out", fe),
|
|
287
287
|
style: {
|
|
288
|
-
color: `hsl(${ye[
|
|
288
|
+
color: `hsl(${ye[E]})`,
|
|
289
289
|
fontSize: P.label,
|
|
290
290
|
textShadow: ue,
|
|
291
291
|
transform: me.transform,
|
|
@@ -303,7 +303,7 @@ var se = (e, t) => ({
|
|
|
303
303
|
marginTop: -5.6,
|
|
304
304
|
borderWidth: 1.5,
|
|
305
305
|
borderColor: B,
|
|
306
|
-
backgroundColor: ve(
|
|
306
|
+
backgroundColor: ve(E),
|
|
307
307
|
boxShadow: `0 1px 2px hsl(${xe} / 0.3)`,
|
|
308
308
|
transform: `scale(${s || c ? 1 : 0})`,
|
|
309
309
|
opacity: s || c ? 1 : 0
|
|
@@ -322,7 +322,7 @@ var se = (e, t) => ({
|
|
|
322
322
|
] });
|
|
323
323
|
return /* @__PURE__ */ I(r, {
|
|
324
324
|
dataTestId: _,
|
|
325
|
-
children:
|
|
325
|
+
children: ee ? /* @__PURE__ */ I("button", {
|
|
326
326
|
ref: n,
|
|
327
327
|
type: "button",
|
|
328
328
|
...g ? {
|
|
@@ -422,14 +422,14 @@ var Te = V, H = (e, t) => `hsl(${be(e, t).replace(/ /g, ", ")})`, Ee = (e, t) =>
|
|
|
422
422
|
variant: "ghost",
|
|
423
423
|
size: "md",
|
|
424
424
|
label: o?.zoomIn ?? l.map.controls.zoomIn,
|
|
425
|
-
icon:
|
|
425
|
+
icon: ee,
|
|
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: w,
|
|
433
433
|
hideLabel: !0,
|
|
434
434
|
onClick: t
|
|
435
435
|
}) : null] })) : null]
|
|
@@ -1084,7 +1084,7 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
|
|
|
1084
1084
|
})
|
|
1085
1085
|
})
|
|
1086
1086
|
});
|
|
1087
|
-
}, lt = (e, t, n = 320) => Math.max(216, Math.min(n, e - t -
|
|
1087
|
+
}, lt = (e, t, n = 320) => Math.max(216, Math.min(n, e - t - E.mainHardMin)), ut = (e, t = 320) => Math.min(t, Math.max(216, Math.round(e))), dt = 500, ft = "f0-secondary-sidebar-width", pt = (e) => e === null || typeof e == "number" && Number.isFinite(e), mt = O(null), ht = () => j(mt);
|
|
1088
1088
|
function gt() {
|
|
1089
1089
|
let [e, t] = F(!1), n = P(0), r = A(function() {
|
|
1090
1090
|
t(!0), cancelAnimationFrame(n.current), n.current = requestAnimationFrame(function() {
|
|
@@ -1130,23 +1130,23 @@ 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 ? m : te.panel) +
|
|
1134
|
-
|
|
1133
|
+
}, [i, f]), S = u(`(max-width: ${o + (e ? m : te.panel) + E.mainMin - 1}px)`, { initializeWithValue: !0 }) ? "overlay" : "docked", [ee, C] = F(!1), w = P(0), T = A(function() {
|
|
1134
|
+
C(!1);
|
|
1135
1135
|
}, []);
|
|
1136
1136
|
ie(function() {
|
|
1137
|
-
i(), S === "docked" &&
|
|
1137
|
+
i(), S === "docked" && T();
|
|
1138
1138
|
}, [
|
|
1139
1139
|
S,
|
|
1140
1140
|
i,
|
|
1141
|
-
|
|
1141
|
+
T
|
|
1142
1142
|
]);
|
|
1143
|
-
let D = S === "overlay" &&
|
|
1143
|
+
let D = S === "overlay" && ee && e;
|
|
1144
1144
|
ie(function() {
|
|
1145
|
-
i(), e ||
|
|
1145
|
+
i(), e || T();
|
|
1146
1146
|
}, [
|
|
1147
1147
|
e,
|
|
1148
1148
|
i,
|
|
1149
|
-
|
|
1149
|
+
T
|
|
1150
1150
|
]);
|
|
1151
1151
|
let O = P(e);
|
|
1152
1152
|
ie(function() {
|
|
@@ -1159,21 +1159,21 @@ function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
|
1159
1159
|
};
|
|
1160
1160
|
}, []);
|
|
1161
1161
|
let j = A(function() {
|
|
1162
|
-
S !== "docked" && (
|
|
1163
|
-
O.current ||
|
|
1162
|
+
S !== "docked" && (w.current = Date.now(), C(!0), k.current && clearTimeout(k.current), k.current = setTimeout(function() {
|
|
1163
|
+
O.current || C(!1);
|
|
1164
1164
|
}, dt));
|
|
1165
|
-
}, [S]), ne =
|
|
1166
|
-
D || (
|
|
1165
|
+
}, [S]), ne = T, re = A(function() {
|
|
1166
|
+
D || (w.current = Date.now()), C(!D);
|
|
1167
1167
|
}, [D]);
|
|
1168
1168
|
M(function() {
|
|
1169
1169
|
if (!D) return;
|
|
1170
1170
|
let e = (e) => {
|
|
1171
|
-
e.key === "Escape" && !e.defaultPrevented &&
|
|
1171
|
+
e.key === "Escape" && !e.defaultPrevented && C(!1);
|
|
1172
1172
|
};
|
|
1173
1173
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
1174
1174
|
}, [D]);
|
|
1175
1175
|
let ae = A(function() {
|
|
1176
|
-
Date.now() -
|
|
1176
|
+
Date.now() - w.current < dt || C(!1);
|
|
1177
1177
|
}, []), L = N(function() {
|
|
1178
1178
|
return {
|
|
1179
1179
|
primarySidebarWidth: o,
|
|
@@ -1220,11 +1220,11 @@ function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
|
1220
1220
|
}
|
|
1221
1221
|
//#endregion
|
|
1222
1222
|
//#region src/blocks/ApplicationFrame/FrameProvider.tsx
|
|
1223
|
-
var bt = "one_sidebar_locked", xt = O(void 0),
|
|
1224
|
-
|
|
1223
|
+
var bt = "one_sidebar_locked", xt = 32, St = 180, Ct = 280, wt = 300, Tt = O(void 0), Et = /* @__PURE__ */ new WeakSet(), Dt = (e) => {
|
|
1224
|
+
Et.add(e.nativeEvent);
|
|
1225
1225
|
};
|
|
1226
|
-
function
|
|
1227
|
-
let e = j(
|
|
1226
|
+
function Ot() {
|
|
1227
|
+
let e = j(Tt);
|
|
1228
1228
|
return e === void 0 ? {
|
|
1229
1229
|
isSmallScreen: !1,
|
|
1230
1230
|
isLastToggleInvokedByUser: !0,
|
|
@@ -1236,56 +1236,77 @@ function wt() {
|
|
|
1236
1236
|
hasPrimarySidebar: !1
|
|
1237
1237
|
} : e;
|
|
1238
1238
|
}
|
|
1239
|
-
var
|
|
1240
|
-
function
|
|
1241
|
-
let { currentPath: t } = s(), n = ht(), [r, i] = F(!1), [a, o] = F(!1), c = r ?
|
|
1239
|
+
var kt = (e, t) => e.navigationMode === "overlay" ? e.isOpenOverPage ? "unlocked" : "hidden" : t ? "locked" : "hidden", At = (e, t, n) => e || !t ? n ? "unlocked" : "hidden" : "locked";
|
|
1240
|
+
function jt({ children: e }) {
|
|
1241
|
+
let { currentPath: t } = s(), n = ht(), [r, i] = F(!1), [a, o] = F(!1), c = r ? T.xl : T.md, l = u(`(max-width: ${c}px)`, { initializeWithValue: !0 }), [d, f] = F(() => {
|
|
1242
1242
|
let e = localStorage.getItem(bt);
|
|
1243
1243
|
return e === null || !!e;
|
|
1244
|
-
}), [p, m] = F(!1), [h, g] = F(null), _ = A(function() {
|
|
1245
|
-
|
|
1246
|
-
}, [
|
|
1244
|
+
}), [p, m] = F(!1), [h, g] = F(null), _ = P(null), v = P(null), y = A(function() {
|
|
1245
|
+
_.current && clearTimeout(_.current), _.current = null, v.current = null;
|
|
1246
|
+
}, []), b = A(function(e, t) {
|
|
1247
|
+
v.current !== e && (y(), v.current = e, _.current = setTimeout(() => {
|
|
1248
|
+
_.current = null, v.current = null, m(e);
|
|
1249
|
+
}, t));
|
|
1250
|
+
}, [y]);
|
|
1251
|
+
M(() => y, [y]);
|
|
1252
|
+
let x = A(function() {
|
|
1253
|
+
n ? n.closeOverPage() : (y(), m(!1));
|
|
1254
|
+
}, [n, y]), S = A(function({ isInvokedByUser: e } = { isInvokedByUser: !0 }) {
|
|
1247
1255
|
n?.navigationMode === "overlay" ? n.toggleOverPage() : (o(e ?? !0), l && !n && m(!p), f(!d));
|
|
1248
1256
|
}, [
|
|
1249
1257
|
n,
|
|
1250
1258
|
l,
|
|
1251
1259
|
p,
|
|
1252
1260
|
d
|
|
1253
|
-
]),
|
|
1254
|
-
l || n ||
|
|
1255
|
-
}, [
|
|
1261
|
+
]), ee = A(function(e) {
|
|
1262
|
+
l || n || (Et.has(e.nativeEvent) ? y() : !p && e.clientX < xt ? b(!0, St) : p && e.clientX > Ct ? b(!1, wt) : y());
|
|
1263
|
+
}, [
|
|
1264
|
+
l,
|
|
1265
|
+
n,
|
|
1266
|
+
p,
|
|
1267
|
+
b,
|
|
1268
|
+
y
|
|
1269
|
+
]), C = A(function() {
|
|
1270
|
+
v.current && y();
|
|
1271
|
+
}, [y]), w = n ? kt(n, d) : At(l, d, p), E = n?.closeOverPageAfterRouteChange;
|
|
1256
1272
|
M(function() {
|
|
1257
|
-
m(!1),
|
|
1258
|
-
}, [
|
|
1273
|
+
y(), m(!1), E?.();
|
|
1274
|
+
}, [
|
|
1275
|
+
t,
|
|
1276
|
+
E,
|
|
1277
|
+
y
|
|
1278
|
+
]), M(function() {
|
|
1259
1279
|
a && localStorage.setItem(bt, d ? "1" : "");
|
|
1260
1280
|
}, [d, a]), M(function() {
|
|
1261
1281
|
return () => {
|
|
1262
|
-
g(
|
|
1282
|
+
g(w);
|
|
1263
1283
|
};
|
|
1264
|
-
}, [
|
|
1265
|
-
let
|
|
1284
|
+
}, [w]);
|
|
1285
|
+
let te = n !== null, D = N(function() {
|
|
1266
1286
|
return {
|
|
1267
1287
|
isSmallScreen: l,
|
|
1268
1288
|
isLastToggleInvokedByUser: a,
|
|
1269
|
-
sidebarState:
|
|
1270
|
-
hideSidebar:
|
|
1271
|
-
toggleSidebar:
|
|
1289
|
+
sidebarState: w,
|
|
1290
|
+
hideSidebar: x,
|
|
1291
|
+
toggleSidebar: S,
|
|
1272
1292
|
prevSidebarState: h,
|
|
1273
1293
|
setForceFloat: i,
|
|
1274
|
-
hasPrimarySidebar:
|
|
1294
|
+
hasPrimarySidebar: te
|
|
1275
1295
|
};
|
|
1276
1296
|
}, [
|
|
1277
1297
|
l,
|
|
1278
1298
|
a,
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1299
|
+
w,
|
|
1300
|
+
x,
|
|
1301
|
+
S,
|
|
1282
1302
|
h,
|
|
1283
|
-
|
|
1303
|
+
te
|
|
1284
1304
|
]);
|
|
1285
|
-
return /* @__PURE__ */ I(
|
|
1286
|
-
value:
|
|
1305
|
+
return /* @__PURE__ */ I(Tt.Provider, {
|
|
1306
|
+
value: D,
|
|
1287
1307
|
children: /* @__PURE__ */ I("div", {
|
|
1288
|
-
onPointerMove:
|
|
1308
|
+
onPointerMove: ee,
|
|
1309
|
+
onPointerLeave: C,
|
|
1289
1310
|
className: "h-screen w-screen",
|
|
1290
1311
|
children: e
|
|
1291
1312
|
})
|
|
@@ -1293,7 +1314,7 @@ function Dt({ children: e }) {
|
|
|
1293
1314
|
}
|
|
1294
1315
|
//#endregion
|
|
1295
1316
|
//#region src/blocks/Navigation/Sidebar/navigationVariant.ts
|
|
1296
|
-
var
|
|
1317
|
+
var Mt = O("classic"), Nt = Mt.Provider, Pt = () => j(Mt), Ft = "M10.417 10L14.167 10M10.417 10L12.0837 8.33337M10.417 10L12.0837 11.6667", It = {
|
|
1297
1318
|
open: {
|
|
1298
1319
|
rest: {
|
|
1299
1320
|
arrow: "opacity-0 translate-x-0",
|
|
@@ -1314,9 +1335,9 @@ var Ot = O("classic"), kt = Ot.Provider, At = () => j(Ot), jt = "M10.417 10L14.1
|
|
|
1314
1335
|
line: "opacity-100 translate-x-0"
|
|
1315
1336
|
}
|
|
1316
1337
|
}
|
|
1317
|
-
},
|
|
1318
|
-
function
|
|
1319
|
-
let n =
|
|
1338
|
+
}, Lt = "[transform-box:view-box] transition-[transform,opacity]";
|
|
1339
|
+
function Rt({ isExpanded: e, isHovered: t = !1 }) {
|
|
1340
|
+
let n = It[e ? "open" : "closed"][t ? "hover" : "rest"];
|
|
1320
1341
|
return /* @__PURE__ */ L("svg", {
|
|
1321
1342
|
width: "20",
|
|
1322
1343
|
height: "20",
|
|
@@ -1337,24 +1358,24 @@ function Pt({ isExpanded: e, isHovered: t = !1 }) {
|
|
|
1337
1358
|
}),
|
|
1338
1359
|
/* @__PURE__ */ I("path", {
|
|
1339
1360
|
id: "arrow",
|
|
1340
|
-
d:
|
|
1361
|
+
d: Ft,
|
|
1341
1362
|
strokeWidth: "1.3",
|
|
1342
1363
|
strokeLinecap: "round",
|
|
1343
1364
|
strokeLinejoin: "round",
|
|
1344
|
-
className: a("stroke-current",
|
|
1365
|
+
className: a("stroke-current", Lt, _, "origin-[10.5835px_10px]", e ? "scale-x-100" : "-scale-x-100", n.arrow)
|
|
1345
1366
|
}),
|
|
1346
1367
|
/* @__PURE__ */ I("path", {
|
|
1347
1368
|
id: "line",
|
|
1348
1369
|
d: "M7.5 5L7.5 15",
|
|
1349
1370
|
strokeWidth: "1.3",
|
|
1350
1371
|
strokeLinecap: "round",
|
|
1351
|
-
className: a("stroke-current",
|
|
1372
|
+
className: a("stroke-current", Lt, _, n.line)
|
|
1352
1373
|
})
|
|
1353
1374
|
]
|
|
1354
1375
|
});
|
|
1355
1376
|
}
|
|
1356
|
-
function
|
|
1357
|
-
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n } =
|
|
1377
|
+
function zt() {
|
|
1378
|
+
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n } = Ot(), r = P(null), [a, o] = F(!1), s = Pt() === "two-level";
|
|
1358
1379
|
M(function() {
|
|
1359
1380
|
s && e === "hidden" && t !== "hidden" && r.current?.focus();
|
|
1360
1381
|
}, [
|
|
@@ -1375,13 +1396,13 @@ function Ft() {
|
|
|
1375
1396
|
"aria-expanded": u,
|
|
1376
1397
|
onMouseEnter: () => o(!0),
|
|
1377
1398
|
onMouseLeave: () => o(!1),
|
|
1378
|
-
children: /* @__PURE__ */ I(
|
|
1399
|
+
children: /* @__PURE__ */ I(Rt, {
|
|
1379
1400
|
isExpanded: u,
|
|
1380
1401
|
isHovered: a
|
|
1381
1402
|
})
|
|
1382
1403
|
});
|
|
1383
1404
|
}
|
|
1384
|
-
function
|
|
1405
|
+
function Bt({ isExpanded: e }) {
|
|
1385
1406
|
return /* @__PURE__ */ L("svg", {
|
|
1386
1407
|
width: "20",
|
|
1387
1408
|
height: "20",
|
|
@@ -1418,8 +1439,8 @@ function It({ isExpanded: e }) {
|
|
|
1418
1439
|
]
|
|
1419
1440
|
});
|
|
1420
1441
|
}
|
|
1421
|
-
function
|
|
1422
|
-
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n, isSmallScreen: r } =
|
|
1442
|
+
function Vt() {
|
|
1443
|
+
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n, isSmallScreen: r } = Ot(), i = P(null);
|
|
1423
1444
|
return M(() => {
|
|
1424
1445
|
e === "hidden" && t === "locked" && i.current?.focus();
|
|
1425
1446
|
}, [e, t]), /* @__PURE__ */ L(c, {
|
|
@@ -1433,7 +1454,7 @@ function Lt() {
|
|
|
1433
1454
|
"aria-label": "Close Sidebar",
|
|
1434
1455
|
children: [/* @__PURE__ */ I("div", {
|
|
1435
1456
|
className: a("hidden", { flex: !r }),
|
|
1436
|
-
children: /* @__PURE__ */ I(
|
|
1457
|
+
children: /* @__PURE__ */ I(Bt, { isExpanded: t === "locked" })
|
|
1437
1458
|
}), /* @__PURE__ */ I("div", {
|
|
1438
1459
|
className: a("hidden", { flex: r }),
|
|
1439
1460
|
children: /* @__PURE__ */ I(b, {
|
|
@@ -1443,13 +1464,13 @@ function Lt() {
|
|
|
1443
1464
|
})]
|
|
1444
1465
|
});
|
|
1445
1466
|
}
|
|
1446
|
-
function
|
|
1447
|
-
let { hasPrimarySidebar: e } =
|
|
1448
|
-
return I(e ?
|
|
1467
|
+
function Ht() {
|
|
1468
|
+
let { hasPrimarySidebar: e } = Ot();
|
|
1469
|
+
return I(e ? zt : Vt, {});
|
|
1449
1470
|
}
|
|
1450
1471
|
//#endregion
|
|
1451
1472
|
//#region src/addons/map/F0Map/components/F0MapSidebarToggle/F0MapSidebarToggle.tsx
|
|
1452
|
-
var
|
|
1473
|
+
var Ut = k(({ expanded: e, onToggle: t, label: n, bare: a = !1, dataTestId: o }, s) => {
|
|
1453
1474
|
let l = i(), u = n ?? (e ? l.map.controls.hidePanel : l.map.controls.showPanel), d = /* @__PURE__ */ I(c, {
|
|
1454
1475
|
ref: s,
|
|
1455
1476
|
variant: "ghost",
|
|
@@ -1460,29 +1481,29 @@ var zt = k(({ expanded: e, onToggle: t, label: n, bare: a = !1, dataTestId: o },
|
|
|
1460
1481
|
title: u,
|
|
1461
1482
|
"aria-label": u,
|
|
1462
1483
|
"aria-expanded": e,
|
|
1463
|
-
children: /* @__PURE__ */ I(
|
|
1484
|
+
children: /* @__PURE__ */ I(Bt, { isExpanded: e })
|
|
1464
1485
|
});
|
|
1465
1486
|
return /* @__PURE__ */ I(r, {
|
|
1466
1487
|
dataTestId: o,
|
|
1467
1488
|
children: a ? d : /* @__PURE__ */ I(Me, { children: d })
|
|
1468
1489
|
});
|
|
1469
1490
|
});
|
|
1470
|
-
|
|
1491
|
+
Ut.displayName = "F0MapSidebarToggle";
|
|
1471
1492
|
//#endregion
|
|
1472
1493
|
//#region src/addons/map/F0Map/utils/arc.ts
|
|
1473
|
-
var
|
|
1494
|
+
var Wt = (e, t, n = .3, r = 64) => {
|
|
1474
1495
|
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 = [];
|
|
1475
1496
|
for (let e = 0; e <= r; e++) {
|
|
1476
1497
|
let t = e / r, n = 1 - t, c = n * n, l = 2 * n * t, p = t * t;
|
|
1477
1498
|
f.push([c * i + l * u + p * o, c * a + l * d + p * s]);
|
|
1478
1499
|
}
|
|
1479
1500
|
return f;
|
|
1480
|
-
},
|
|
1501
|
+
}, Gt = (e, t) => e.color ?? H(e.variant ?? "radical", t), Kt = (e, t) => e.color ?? H(e.variant ?? "radical", !t), qt = ({ id: e, kind: t, coordinates: n, style: r, isDark: i }) => {
|
|
1481
1502
|
let a = r.width ?? 3;
|
|
1482
1503
|
return {
|
|
1483
1504
|
id: e,
|
|
1484
1505
|
coordinates: n,
|
|
1485
|
-
color:
|
|
1506
|
+
color: Gt(r, i),
|
|
1486
1507
|
width: a,
|
|
1487
1508
|
opacity: r.opacity ?? 1,
|
|
1488
1509
|
dashed: r.dashed ?? !1,
|
|
@@ -1490,21 +1511,21 @@ var Bt = (e, t, n = .3, r = 64) => {
|
|
|
1490
1511
|
width: a * 1.6,
|
|
1491
1512
|
opacity: 1
|
|
1492
1513
|
} : {
|
|
1493
|
-
color:
|
|
1514
|
+
color: Kt(r, i),
|
|
1494
1515
|
opacity: 1
|
|
1495
1516
|
}
|
|
1496
1517
|
};
|
|
1497
|
-
},
|
|
1498
|
-
let o = N(() => [...t.map((e) =>
|
|
1518
|
+
}, Jt = ({ adapter: e, routes: t, arcs: n, isDark: r, onRouteClick: i, onArcClick: a }) => {
|
|
1519
|
+
let o = N(() => [...t.map((e) => qt({
|
|
1499
1520
|
id: e.id,
|
|
1500
1521
|
kind: "route",
|
|
1501
1522
|
coordinates: e.coordinates,
|
|
1502
1523
|
style: e,
|
|
1503
1524
|
isDark: r
|
|
1504
|
-
})), ...n.map((e) =>
|
|
1525
|
+
})), ...n.map((e) => qt({
|
|
1505
1526
|
id: e.id,
|
|
1506
1527
|
kind: "arc",
|
|
1507
|
-
coordinates:
|
|
1528
|
+
coordinates: Wt(e.from, e.to, e.curvature),
|
|
1508
1529
|
style: e,
|
|
1509
1530
|
isDark: r
|
|
1510
1531
|
}))], [
|
|
@@ -1532,23 +1553,23 @@ var Bt = (e, t, n = .3, r = 64) => {
|
|
|
1532
1553
|
o,
|
|
1533
1554
|
l
|
|
1534
1555
|
]), M(() => () => e.setLines([]), [e]), null;
|
|
1535
|
-
},
|
|
1556
|
+
}, Yt = ({ adapter: e, coords: t }) => (M(() => {
|
|
1536
1557
|
e.setCurrentLocation(t);
|
|
1537
1558
|
}, [e, t]), M(() => () => e.setCurrentLocation(null), [e]), null);
|
|
1538
|
-
|
|
1559
|
+
Yt.displayName = "CurrentLocationLayer";
|
|
1539
1560
|
//#endregion
|
|
1540
1561
|
//#region src/addons/map/F0Map/constants.ts
|
|
1541
|
-
var
|
|
1562
|
+
var Xt = {
|
|
1542
1563
|
curve: 1.42,
|
|
1543
1564
|
duration: 1400
|
|
1544
|
-
},
|
|
1565
|
+
}, Zt = 200, Qt = ({ dataTestId: e, className: t }) => /* @__PURE__ */ I(r, {
|
|
1545
1566
|
dataTestId: e,
|
|
1546
1567
|
children: /* @__PURE__ */ I("div", {
|
|
1547
1568
|
"aria-busy": "true",
|
|
1548
1569
|
"aria-live": "polite",
|
|
1549
1570
|
className: a("h-full w-full animate-pulse bg-f1-background-secondary", t)
|
|
1550
1571
|
})
|
|
1551
|
-
}),
|
|
1572
|
+
}), $t = (e) => {
|
|
1552
1573
|
let [t, n] = F(null), r = A((t) => {
|
|
1553
1574
|
e && typeof navigator < "u" && navigator.geolocation && navigator.geolocation.getCurrentPosition((e) => {
|
|
1554
1575
|
let r = [e.coords.longitude, e.coords.latitude];
|
|
@@ -1571,7 +1592,7 @@ var Kt = {
|
|
|
1571
1592
|
coords: t,
|
|
1572
1593
|
request: r
|
|
1573
1594
|
};
|
|
1574
|
-
},
|
|
1595
|
+
}, en = () => {
|
|
1575
1596
|
let [e, t] = F(!1), n = P(null), r = A((e) => {
|
|
1576
1597
|
if (n.current?.disconnect(), n.current = null, !e) return;
|
|
1577
1598
|
let r = () => t(e.closest(".dark") !== null);
|
|
@@ -1587,17 +1608,17 @@ var Kt = {
|
|
|
1587
1608
|
containerRef: r,
|
|
1588
1609
|
isDark: e
|
|
1589
1610
|
};
|
|
1590
|
-
},
|
|
1591
|
-
maplibre: async () => (await import("./maplibre-
|
|
1611
|
+
}, tn = {
|
|
1612
|
+
maplibre: async () => (await import("./maplibre-C_cFb8qK.js")).createMaplibreAdapter,
|
|
1592
1613
|
google: async (e) => (await import("./google-D1V0swd7.js")).loadGoogleAdapter(e)
|
|
1593
|
-
},
|
|
1594
|
-
let n =
|
|
1614
|
+
}, nn = /* @__PURE__ */ new Map(), rn = (e, t) => {
|
|
1615
|
+
let n = nn.get(e);
|
|
1595
1616
|
if (n) return n;
|
|
1596
|
-
let r =
|
|
1597
|
-
throw
|
|
1617
|
+
let r = tn[e](t).catch((t) => {
|
|
1618
|
+
throw nn.delete(e), t;
|
|
1598
1619
|
});
|
|
1599
|
-
return
|
|
1600
|
-
},
|
|
1620
|
+
return nn.set(e, r), r;
|
|
1621
|
+
}, an = {
|
|
1601
1622
|
version: 8,
|
|
1602
1623
|
sources: { openmaptiles: {
|
|
1603
1624
|
type: "vector",
|
|
@@ -6485,7 +6506,7 @@ var Kt = {
|
|
|
6485
6506
|
],
|
|
6486
6507
|
name: "f0-dark",
|
|
6487
6508
|
metadata: { "f0:generated": !0 }
|
|
6488
|
-
},
|
|
6509
|
+
}, on = {
|
|
6489
6510
|
version: 8,
|
|
6490
6511
|
sources: { openmaptiles: {
|
|
6491
6512
|
type: "vector",
|
|
@@ -11373,7 +11394,7 @@ var Kt = {
|
|
|
11373
11394
|
],
|
|
11374
11395
|
name: "f0-light",
|
|
11375
11396
|
metadata: { "f0:generated": !0 }
|
|
11376
|
-
},
|
|
11397
|
+
}, sn = [
|
|
11377
11398
|
{
|
|
11378
11399
|
featureType: "landscape",
|
|
11379
11400
|
elementType: "geometry.fill",
|
|
@@ -11529,7 +11550,7 @@ var Kt = {
|
|
|
11529
11550
|
elementType: "labels.icon",
|
|
11530
11551
|
stylers: [{ visibility: "off" }]
|
|
11531
11552
|
}
|
|
11532
|
-
],
|
|
11553
|
+
], cn = [
|
|
11533
11554
|
{
|
|
11534
11555
|
featureType: "landscape",
|
|
11535
11556
|
elementType: "geometry.fill",
|
|
@@ -11685,44 +11706,44 @@ var Kt = {
|
|
|
11685
11706
|
elementType: "labels.icon",
|
|
11686
11707
|
stylers: [{ visibility: "off" }]
|
|
11687
11708
|
}
|
|
11688
|
-
],
|
|
11709
|
+
], ln = {
|
|
11689
11710
|
provider: "maplibre",
|
|
11690
|
-
light:
|
|
11691
|
-
dark:
|
|
11692
|
-
},
|
|
11711
|
+
light: on,
|
|
11712
|
+
dark: an
|
|
11713
|
+
}, un = {
|
|
11693
11714
|
provider: "google",
|
|
11694
|
-
light:
|
|
11695
|
-
dark:
|
|
11696
|
-
},
|
|
11715
|
+
light: cn,
|
|
11716
|
+
dark: sn
|
|
11717
|
+
}, dn = (e, t) => ({
|
|
11697
11718
|
featureType: e,
|
|
11698
11719
|
elementType: t,
|
|
11699
11720
|
stylers: [{ visibility: "off" }]
|
|
11700
|
-
}),
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
|
|
11704
|
-
],
|
|
11721
|
+
}), fn = [
|
|
11722
|
+
dn("poi", "labels"),
|
|
11723
|
+
dn("transit", "labels"),
|
|
11724
|
+
dn("road", "labels.icon")
|
|
11725
|
+
], pn = {
|
|
11705
11726
|
provider: "google",
|
|
11706
|
-
light:
|
|
11707
|
-
dark:
|
|
11708
|
-
},
|
|
11727
|
+
light: fn,
|
|
11728
|
+
dark: fn
|
|
11729
|
+
}, mn = (e) => e === "google" ? pn : ln, hn = (e, t, n) => {
|
|
11709
11730
|
let r = e.on(t, () => {
|
|
11710
11731
|
r(), n();
|
|
11711
11732
|
});
|
|
11712
11733
|
return r;
|
|
11713
|
-
},
|
|
11734
|
+
}, gn = {
|
|
11714
11735
|
center: [2.154, 41.39],
|
|
11715
11736
|
zoom: 11
|
|
11716
|
-
},
|
|
11737
|
+
}, _n = (e, t, n, r) => [
|
|
11717
11738
|
...e.map((e) => e.coordinates),
|
|
11718
11739
|
...t.flatMap((e) => e.coordinates),
|
|
11719
11740
|
...n.flatMap((e) => [e.from, e.to]),
|
|
11720
11741
|
...r.flatMap((e) => he(e.center, e.radiusMeters))
|
|
11721
|
-
],
|
|
11722
|
-
let l =
|
|
11742
|
+
], vn = (e) => e.top === 0 && e.right === 0 && e.bottom === 0 && e.left === 0, yn = ({ adapter: e, points: t, animate: n, routes: r = [], arcs: i = [], areas: a = [], gutter: o = 64, inset: s, size: c }) => {
|
|
11743
|
+
let l = _n(t, r, i, a);
|
|
11723
11744
|
if (l.length === 0) return;
|
|
11724
11745
|
let u = a.length > 0 ? 17 : 15;
|
|
11725
|
-
if (l.length > 1 &&
|
|
11746
|
+
if (l.length > 1 && vn(s)) {
|
|
11726
11747
|
e.fitCoordinates(l, {
|
|
11727
11748
|
gutter: o,
|
|
11728
11749
|
maxZoom: u,
|
|
@@ -11742,10 +11763,10 @@ var Kt = {
|
|
|
11742
11763
|
maxZoom: u
|
|
11743
11764
|
});
|
|
11744
11765
|
d && (n ? e.easeTo(d, { animate: n }) : e.jumpTo(d, { animate: n }));
|
|
11745
|
-
},
|
|
11746
|
-
let Se =
|
|
11766
|
+
}, bn = (e) => `${e.top},${e.right},${e.bottom},${e.left}`, xn = k(function({ markers: t = [], 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: ee = !0, gestureHandling: C, minZoom: w, maxZoom: T = 18, showControls: E = !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) {
|
|
11767
|
+
let Se = C ?? (O ? "greedy" : "cooperative"), R = i(), z = e(ge), Ce = n(), 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 } = en(), Le = A((e) => {
|
|
11747
11768
|
we.current = e, Fe(e);
|
|
11748
|
-
}, [Fe]), Re = Ie, ze = !S || S.provider === z, Be = ze ? S ??
|
|
11769
|
+
}, [Fe]), Re = Ie, ze = !S || S.provider === z, Be = ze ? S ?? mn(z) : mn(z), q = Re ? Be.dark : Be.light, Ve = P(!1);
|
|
11749
11770
|
M(() => {
|
|
11750
11771
|
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.`));
|
|
11751
11772
|
}, [
|
|
@@ -11783,7 +11804,7 @@ var Kt = {
|
|
|
11783
11804
|
size: e
|
|
11784
11805
|
};
|
|
11785
11806
|
}, []), at = A((e, t) => {
|
|
11786
|
-
Z.current = { kind: "fit" },
|
|
11807
|
+
Z.current = { kind: "fit" }, yn({
|
|
11787
11808
|
adapter: e,
|
|
11788
11809
|
points: Y.current,
|
|
11789
11810
|
animate: t,
|
|
@@ -11820,7 +11841,7 @@ var Kt = {
|
|
|
11820
11841
|
M(() => {
|
|
11821
11842
|
ut.current || t.length <= 200 || (ut.current = !0, console.warn(`F0Map: ${t.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.`));
|
|
11822
11843
|
}, [t.length]);
|
|
11823
|
-
let { coords: dt, request: ft } =
|
|
11844
|
+
let { coords: dt, request: ft } = $t(D), pt = A(() => {
|
|
11824
11845
|
Z.current = null, B.current?.zoomIn();
|
|
11825
11846
|
}, []), mt = A(() => {
|
|
11826
11847
|
Z.current = null, B.current?.zoomOut();
|
|
@@ -11882,24 +11903,24 @@ var Kt = {
|
|
|
11882
11903
|
yt.current = q;
|
|
11883
11904
|
let bt = P(Ce);
|
|
11884
11905
|
bt.current = Ce;
|
|
11885
|
-
let xt = P(null), St = P(x ??
|
|
11906
|
+
let xt = P(null), St = P(x ?? gn);
|
|
11886
11907
|
M(() => {
|
|
11887
11908
|
if (_e) return;
|
|
11888
11909
|
let e = we.current;
|
|
11889
11910
|
if (!e) return;
|
|
11890
11911
|
xt.current = yt.current;
|
|
11891
11912
|
let t = St.current, n = null, r = !1, i = [];
|
|
11892
|
-
return
|
|
11913
|
+
return rn(z, bt.current).then((i) => {
|
|
11893
11914
|
if (!r) {
|
|
11894
11915
|
try {
|
|
11895
11916
|
n = i({
|
|
11896
11917
|
container: e,
|
|
11897
11918
|
style: yt.current,
|
|
11898
11919
|
center: t.center,
|
|
11899
|
-
zoom: t.zoom ??
|
|
11900
|
-
minZoom:
|
|
11901
|
-
maxZoom:
|
|
11902
|
-
interactive:
|
|
11920
|
+
zoom: t.zoom ?? gn.zoom,
|
|
11921
|
+
minZoom: w,
|
|
11922
|
+
maxZoom: T,
|
|
11923
|
+
interactive: ee,
|
|
11903
11924
|
cooperativeGestures: Se === "cooperative"
|
|
11904
11925
|
});
|
|
11905
11926
|
} catch {
|
|
@@ -11916,8 +11937,8 @@ var Kt = {
|
|
|
11916
11937
|
function a(e) {
|
|
11917
11938
|
B.current = e, Te(e), Ee(!1);
|
|
11918
11939
|
let t = !1;
|
|
11919
|
-
i.push(
|
|
11920
|
-
t = !0, U(!1), e.resize(), it &&
|
|
11940
|
+
i.push(hn(e, "ready", () => {
|
|
11941
|
+
t = !0, U(!1), e.resize(), it && yn({
|
|
11921
11942
|
adapter: e,
|
|
11922
11943
|
points: Y.current,
|
|
11923
11944
|
animate: !1,
|
|
@@ -11934,16 +11955,16 @@ var Kt = {
|
|
|
11934
11955
|
}
|
|
11935
11956
|
}, [
|
|
11936
11957
|
_e,
|
|
11937
|
-
|
|
11958
|
+
ee,
|
|
11938
11959
|
Se,
|
|
11960
|
+
w,
|
|
11939
11961
|
T,
|
|
11940
|
-
E,
|
|
11941
11962
|
it,
|
|
11942
11963
|
z,
|
|
11943
11964
|
ke
|
|
11944
11965
|
]), M(() => {
|
|
11945
11966
|
let e = B.current;
|
|
11946
|
-
e && xt.current !== q && (xt.current = q, e.applyStyle(q),
|
|
11967
|
+
e && xt.current !== q && (xt.current = q, e.applyStyle(q), hn(e, "styled", () => e.setGlobeProjection(et.current === "globe")));
|
|
11947
11968
|
}, [q]), M(() => {
|
|
11948
11969
|
B.current?.setGlobeProjection(he === "globe");
|
|
11949
11970
|
}, [he]);
|
|
@@ -11953,7 +11974,7 @@ var Kt = {
|
|
|
11953
11974
|
let e = B.current, t = Y.current.find((e) => e.id === _);
|
|
11954
11975
|
e && t && Ct.current(e, t);
|
|
11955
11976
|
}, [_]);
|
|
11956
|
-
let wt =
|
|
11977
|
+
let wt = bn(Xe), Tt = P(null);
|
|
11957
11978
|
M(() => {
|
|
11958
11979
|
let e = Tt.current;
|
|
11959
11980
|
Tt.current = nt.current;
|
|
@@ -11989,7 +12010,7 @@ var Kt = {
|
|
|
11989
12010
|
let kt = Dt > Ot.current.from ? G.enter : G.exit, At = J ? G.enter : G.exit;
|
|
11990
12011
|
return /* @__PURE__ */ I(r, {
|
|
11991
12012
|
dataTestId: ye,
|
|
11992
|
-
children: _e ? /* @__PURE__ */ I(
|
|
12013
|
+
children: _e ? /* @__PURE__ */ I(Qt, { className: be }) : /* @__PURE__ */ L("div", {
|
|
11993
12014
|
ref: Le,
|
|
11994
12015
|
role: "region",
|
|
11995
12016
|
"aria-label": ve ?? R.map.region,
|
|
@@ -12011,14 +12032,14 @@ var Kt = {
|
|
|
12011
12032
|
areas: c,
|
|
12012
12033
|
isDark: Re
|
|
12013
12034
|
}) : null,
|
|
12014
|
-
!H && V && dt ? /* @__PURE__ */ L(ae, { children: [/* @__PURE__ */ I(
|
|
12035
|
+
!H && V && dt ? /* @__PURE__ */ L(ae, { children: [/* @__PURE__ */ I(Yt, {
|
|
12015
12036
|
adapter: V,
|
|
12016
12037
|
coords: dt
|
|
12017
12038
|
}), /* @__PURE__ */ I("span", {
|
|
12018
12039
|
className: "sr-only",
|
|
12019
12040
|
children: R.map.currentLocation
|
|
12020
12041
|
})] }) : null,
|
|
12021
|
-
!H && V && Et ? /* @__PURE__ */ I(
|
|
12042
|
+
!H && V && Et ? /* @__PURE__ */ I(Jt, {
|
|
12022
12043
|
adapter: V,
|
|
12023
12044
|
routes: o,
|
|
12024
12045
|
arcs: s,
|
|
@@ -12058,7 +12079,7 @@ var Kt = {
|
|
|
12058
12079
|
ref: (e) => {
|
|
12059
12080
|
J ? e?.setAttribute("inert", "") : e?.removeAttribute("inert");
|
|
12060
12081
|
},
|
|
12061
|
-
children: [/* @__PURE__ */ I(
|
|
12082
|
+
children: [/* @__PURE__ */ I(Ut, {
|
|
12062
12083
|
expanded: !1,
|
|
12063
12084
|
onToggle: k
|
|
12064
12085
|
}), ie ? /* @__PURE__ */ I(Me, { children: ie }) : null]
|
|
@@ -12069,7 +12090,7 @@ var Kt = {
|
|
|
12069
12090
|
offsetX: W.inset,
|
|
12070
12091
|
width: W.listWidth,
|
|
12071
12092
|
headerStart: N,
|
|
12072
|
-
headerEnd: /* @__PURE__ */ I(
|
|
12093
|
+
headerEnd: /* @__PURE__ */ I(Ut, {
|
|
12073
12094
|
expanded: !0,
|
|
12074
12095
|
onToggle: k,
|
|
12075
12096
|
bare: !0,
|
|
@@ -12077,7 +12098,7 @@ var Kt = {
|
|
|
12077
12098
|
}),
|
|
12078
12099
|
children: oe
|
|
12079
12100
|
}) : null,
|
|
12080
|
-
!H && V &&
|
|
12101
|
+
!H && V && E && ee ? /* @__PURE__ */ I("div", {
|
|
12081
12102
|
className: a("absolute left-2 z-10", z === "google" ? "bottom-8" : "bottom-2"),
|
|
12082
12103
|
style: {
|
|
12083
12104
|
transform: `translateX(${Dt}px)`,
|
|
@@ -12118,7 +12139,7 @@ var Kt = {
|
|
|
12118
12139
|
})
|
|
12119
12140
|
});
|
|
12120
12141
|
});
|
|
12121
|
-
|
|
12122
|
-
var
|
|
12142
|
+
xn.displayName = "F0Map";
|
|
12143
|
+
var Sn = xn;
|
|
12123
12144
|
//#endregion
|
|
12124
|
-
export { Ne as S, vt as _,
|
|
12145
|
+
export { Ne as S, vt as _, pn as a, Ke as b, Zt as c, Bt as d, Nt as f, Ot as g, Dt as h, un as i, Ut as l, jt as m, mn as n, Qt as o, Pt as p, ln as r, Xt as s, Sn as t, Ht as u, ht as v, Pe as x, ct as y };
|