@factorialco/f0-react 10.1.0 → 10.2.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/{ChatDocxThumbnail-CX5HYrKS.js → ChatDocxThumbnail-DdI_ITWn.js} +1 -1
- package/dist/{ChatPdfThumbnail-ISkJYLY9.js → ChatPdfThumbnail-DftUFjlF.js} +1 -1
- package/dist/{ChatPostComposerDialog-DxbHdZxW.js → ChatPostComposerDialog-Gj1gd5ED.js} +3 -3
- package/dist/{ChatSheetThumbnail-B2lUZoSi.js → ChatSheetThumbnail-BKCy7BGq.js} +1 -1
- package/dist/{CoachmarkProvider-DqWyppW-.js → CoachmarkProvider-CsqkzlOs.js} +66867 -19860
- package/dist/{DocumentToolbar-BcDACwRP.js → DocumentToolbar-DeE70FQ2.js} +5 -5
- package/dist/{DocxViewer-D-5449ha.js → DocxViewer-bEu4jZnY.js} +3 -3
- package/dist/F0AiProcessingOverlay-IdMxPTPz.js +5999 -0
- package/dist/{F0Box-DrW7A9gg.js → F0Box-D0fWIRgc.js} +20 -20
- package/dist/{F0CanvasPanel-DCKaKwkK.js → F0CanvasPanel-mMDAtCgu.js} +12993 -9719
- package/dist/F0DocumentViewer-CyCOZ_XC.js +391 -0
- package/dist/F0DocumentViewer-DZSiAv1A.js +3 -0
- package/dist/{F0Map-o0Ni4sbn.js → F0Map-DyOzE_rQ.js} +170 -170
- package/dist/{F0Select-CwkVLiZO.js → F0Select-BrvzcAQQ.js} +2270 -2269
- package/dist/F0VideoPlayer-2XgTkMzT.js +1 -0
- package/dist/{F0VideoPlayer-Iw-SFQqN.js → F0VideoPlayer-CEjGJ_6y.js} +396 -397
- package/dist/{LocationMap-CYwkLWH5.js → LocationMap-Ds0SgBMO.js} +2 -2
- package/dist/{Map-DM9wfTpz.js → Map-DVMFiMrr.js} +55 -55
- package/dist/{SheetViewer-BbDeLWkN.js → SheetViewer-DOPvERv8.js} +5 -5
- package/dist/{TextViewer-CnI7Nabs.js → TextViewer-WRl8atLN.js} +2 -2
- package/dist/ai.d.ts +2 -2
- package/dist/ai.js +3 -3
- package/dist/{axe-Z5T0keK7.js → axe-CpDXsSXe.js} +1 -1
- package/dist/component-status.js +54 -9
- package/dist/{dist-DjxhsV9m.js → dist-7YY6sRd4.js} +1 -1
- package/dist/experimental.d.ts +1702 -66
- package/dist/experimental.js +8944 -8185
- package/dist/{exports-CcIlylmm.d.ts → exports-BDFKcDjH.d.ts} +1 -1
- package/dist/f0.d.ts +3 -3
- package/dist/f0.js +3994 -51002
- package/dist/{index-B_My10oo.d.ts → index-C_3CYY4r.d.ts} +1 -1
- package/dist/{index-CAJfRljV.d.ts → index-NaWQyQZT.d.ts} +7 -1
- package/dist/{maplibre-BD2IQLbD.js → maplibre-DYBwcFt1.js} +3 -3
- package/dist/{maplibre-gl-DT2EWG65.js → maplibre-gl-DVldSYfz.js} +1 -1
- package/dist/{papaparse.min-CJow4fNM.js → papaparse.min-BwPbUAd9.js} +1 -1
- package/dist/{pdfWorker-DYQKoZEy.js → pdfWorker-C_6XT3yW.js} +4 -3
- package/dist/{popover-BTxkQ2PV.js → popover-B2hEEubt.js} +2821 -2780
- package/dist/{renderDocx-gCyLwCY2.js → renderDocx-_UmnE-yc.js} +1 -1
- package/dist/rolldown-runtime-BItFwnF5.js +30 -0
- package/dist/{sheetPreview-CcQwSTIl.js → sheetPreview-Ca0kCtSa.js} +2 -2
- package/dist/styles.css +1 -1
- package/dist/{tooltip-DVXqL5Ri.js → tooltip-TOvfXq9F.js} +1481 -1509
- package/dist/{useData-CiWwYG4W.js → useData-DjJsB0qa.js} +4744 -4743
- package/package.json +1 -1
- package/dist/F0AiProcessingOverlay-CmqXWu0j.js +0 -9183
- package/dist/F0DocumentViewer-CEhoiH_i.js +0 -3
- package/dist/F0DocumentViewer-DpuzMqKE.js +0 -392
- package/dist/F0VideoPlayer-CnrSP5Em.js +0 -1
- package/dist/Printer-snTHysV7.js +0 -34
- package/dist/VolumeMuted-Db9P5djr.js +0 -65
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as h, t as g } from "./F0Box-
|
|
5
|
-
import {
|
|
6
|
-
import { J as b, N as x, W as S, x as ee } from "./useData-
|
|
1
|
+
import { a as e, ii as t, o as n } from "./CoachmarkProvider-CsqkzlOs.js";
|
|
2
|
+
import { Ht as r, Lt as i, Mt as a, Zn as o, b as s, gn as c, in as l, ir as u, mn as d, rn as f } from "./popover-B2hEEubt.js";
|
|
3
|
+
import { I as p, L as m } from "./tooltip-TOvfXq9F.js";
|
|
4
|
+
import { n as h, t as g } from "./F0Box-D0fWIRgc.js";
|
|
5
|
+
import { La as _, oa as v, vo as y } from "./F0CanvasPanel-mMDAtCgu.js";
|
|
6
|
+
import { J as b, N as x, W as S, x as ee } from "./useData-DjJsB0qa.js";
|
|
7
7
|
import { n as te, t as C } from "./dist-CSP_0yKt.js";
|
|
8
8
|
import { createContext as ne, forwardRef as w, useCallback as T, useContext as re, useEffect as E, useId as ie, useImperativeHandle as ae, useLayoutEffect as oe, useMemo as D, useRef as O, useState as k } from "react";
|
|
9
9
|
import { Fragment as se, jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
@@ -143,8 +143,8 @@ var ce = (e, t) => ({
|
|
|
143
143
|
}, xe = (e) => be[e], Se = 5.6, Ce = 1.5, we = () => {
|
|
144
144
|
let e = be.xl;
|
|
145
145
|
return -(e.d - e.caretOverlap + e.caretH + Se + Ce) + 3;
|
|
146
|
-
}, I = "hsl(var(--white-100))", L = w(function(
|
|
147
|
-
let { size:
|
|
146
|
+
}, I = "hsl(var(--white-100))", L = w(function(e, n) {
|
|
147
|
+
let { size: r = "md", selected: i = !1, collapsed: a = !1, label: s, showLabel: d = !0, labelPlacement: f = "right", onClick: h, ariaLabel: g, presentational: _ = !1, dataTestId: v, className: y } = e, b = e.variant ?? "color", S = be[i ? "xl" : r], te = !!h, C = b === "color" || b === "icon" || b === "letter", ne = b === "person" && "firstName" in e ? e.firstName + e.lastName : (b === "team" || b === "company") && "name" in e ? e.name : null, w = C ? e.color ?? "radical" : ne ? b === "person" && "src" in e && e.src ? "grey" : x(ne) ?? "grey" : "neutral", T = t(), re = i ? 32 : {
|
|
148
148
|
xs: 12,
|
|
149
149
|
sm: 16,
|
|
150
150
|
md: 20,
|
|
@@ -154,12 +154,12 @@ var ce = (e, t) => ({
|
|
|
154
154
|
sm: 24,
|
|
155
155
|
md: 32,
|
|
156
156
|
lg: 40
|
|
157
|
-
}, ie = be[
|
|
157
|
+
}, ie = be[r].avatar, ae = i ? E[S.avatar] / E[ie] : 1, oe = (e) => /* @__PURE__ */ A("span", {
|
|
158
158
|
className: "flex shrink-0 items-center justify-center transition-transform duration-200 ease-out",
|
|
159
159
|
style: { transform: `scale(${ae})` },
|
|
160
160
|
children: e
|
|
161
|
-
}), D = b === "color" ? null : b === "icon" && "icon" in
|
|
162
|
-
icon:
|
|
161
|
+
}), D = b === "color" ? null : b === "icon" && "icon" in e ? /* @__PURE__ */ A(l, {
|
|
162
|
+
icon: e.icon,
|
|
163
163
|
size: S.icon,
|
|
164
164
|
color: "#ffffff",
|
|
165
165
|
style: {
|
|
@@ -167,7 +167,7 @@ var ce = (e, t) => ({
|
|
|
167
167
|
height: re,
|
|
168
168
|
transition: "width 200ms ease-out, height 200ms ease-out"
|
|
169
169
|
}
|
|
170
|
-
}) : b === "letter" && "letter" in
|
|
170
|
+
}) : b === "letter" && "letter" in e ? /* @__PURE__ */ A("span", {
|
|
171
171
|
"aria-hidden": !0,
|
|
172
172
|
className: "font-semibold leading-none",
|
|
173
173
|
style: {
|
|
@@ -175,32 +175,32 @@ var ce = (e, t) => ({
|
|
|
175
175
|
fontSize: Math.round(re * .78),
|
|
176
176
|
transition: "font-size 200ms ease-out"
|
|
177
177
|
},
|
|
178
|
-
children:
|
|
179
|
-
}) : b === "person" && "firstName" in
|
|
178
|
+
children: e.letter.charAt(0).toUpperCase()
|
|
179
|
+
}) : b === "person" && "firstName" in e ? oe(/* @__PURE__ */ A(ee, {
|
|
180
180
|
avatar: {
|
|
181
181
|
type: "person",
|
|
182
|
-
firstName:
|
|
183
|
-
lastName:
|
|
184
|
-
src:
|
|
182
|
+
firstName: e.firstName,
|
|
183
|
+
lastName: e.lastName,
|
|
184
|
+
src: e.src
|
|
185
185
|
},
|
|
186
186
|
size: ie
|
|
187
|
-
})) : b === "team" && "name" in
|
|
187
|
+
})) : b === "team" && "name" in e ? oe(/* @__PURE__ */ A(ee, {
|
|
188
188
|
avatar: {
|
|
189
189
|
type: "team",
|
|
190
|
-
name:
|
|
191
|
-
src:
|
|
190
|
+
name: e.name,
|
|
191
|
+
src: e.src
|
|
192
192
|
},
|
|
193
193
|
size: ie
|
|
194
|
-
})) : b === "company" && "name" in
|
|
194
|
+
})) : b === "company" && "name" in e ? oe(/* @__PURE__ */ A(ee, {
|
|
195
195
|
avatar: {
|
|
196
196
|
type: "company",
|
|
197
|
-
name:
|
|
198
|
-
src:
|
|
197
|
+
name: e.name,
|
|
198
|
+
src: e.src
|
|
199
199
|
},
|
|
200
200
|
size: ie
|
|
201
|
-
})) : b === "image" && "src" in
|
|
202
|
-
src:
|
|
203
|
-
alt: "alt" in
|
|
201
|
+
})) : b === "image" && "src" in e ? /* @__PURE__ */ A("img", {
|
|
202
|
+
src: e.src,
|
|
203
|
+
alt: "alt" in e ? e.alt ?? "" : "",
|
|
204
204
|
className: "h-full w-full object-cover"
|
|
205
205
|
}) : null, O = b === "team" || b === "company" || b === "icon", k = /* @__PURE__ */ A("span", {
|
|
206
206
|
className: "relative z-[1] flex shrink-0 items-center justify-center overflow-hidden border-solid transition-all duration-200 ease-out",
|
|
@@ -220,7 +220,7 @@ var ce = (e, t) => ({
|
|
|
220
220
|
backgroundColor: I
|
|
221
221
|
}
|
|
222
222
|
}) : D
|
|
223
|
-
}), M = /* @__PURE__ */ A(
|
|
223
|
+
}), M = /* @__PURE__ */ A(o, { children: i ? /* @__PURE__ */ A(c.svg, {
|
|
224
224
|
width: S.caretW,
|
|
225
225
|
height: S.caretH,
|
|
226
226
|
viewBox: "0 0 16 13",
|
|
@@ -254,14 +254,14 @@ var ce = (e, t) => ({
|
|
|
254
254
|
className: "relative inline-flex",
|
|
255
255
|
style: { filter: `drop-shadow(0 ${S.shadowY}px ${S.shadowBlur / 2}px hsl(${ye} / 0.3))` },
|
|
256
256
|
children: [M, k]
|
|
257
|
-
}), N = be[
|
|
257
|
+
}), N = be[r], le = S.d / 2, P = Se, ue = i ? we() : -le, de = i ? "bottom" : f, fe = `0 0 ${Math.max(2, Math.round(N.label * .28))}px ${I}`, pe = [
|
|
258
258
|
fe,
|
|
259
259
|
fe,
|
|
260
260
|
`0 1px 2px ${I}`,
|
|
261
261
|
`0 -1px 2px ${I}`,
|
|
262
262
|
`1px 0 2px ${I}`,
|
|
263
263
|
`-1px 0 2px ${I}`
|
|
264
|
-
].join(","), me = !
|
|
264
|
+
].join(","), me = !i && (de === "top" || de === "bottom"), he = me ? "line-clamp-4 text-center" : i ? "whitespace-nowrap text-center" : "whitespace-nowrap", F = N.d / 2, ve = {
|
|
265
265
|
right: {
|
|
266
266
|
transform: `translate(${F}px, -50%)`,
|
|
267
267
|
style: { paddingLeft: N.gap }
|
|
@@ -278,11 +278,11 @@ var ce = (e, t) => ({
|
|
|
278
278
|
style: { paddingBottom: N.gap }
|
|
279
279
|
},
|
|
280
280
|
bottom: {
|
|
281
|
-
transform: `translate(-50%, ${
|
|
282
|
-
style: { paddingTop: N.gap + (
|
|
281
|
+
transform: `translate(-50%, ${i ? P : F}px)`,
|
|
282
|
+
style: { paddingTop: N.gap + (i ? 4 : 0) }
|
|
283
283
|
}
|
|
284
|
-
}[de], xe =
|
|
285
|
-
className:
|
|
284
|
+
}[de], xe = s && d && !a && /* @__PURE__ */ A("span", {
|
|
285
|
+
className: p("absolute left-0 top-0 font-semibold leading-tight transition-all duration-200 ease-out", he),
|
|
286
286
|
style: {
|
|
287
287
|
color: `hsl(${_e[w]})`,
|
|
288
288
|
fontSize: N.label,
|
|
@@ -291,7 +291,7 @@ var ce = (e, t) => ({
|
|
|
291
291
|
maxWidth: me ? N.maxLabelW : void 0,
|
|
292
292
|
...ve.style
|
|
293
293
|
},
|
|
294
|
-
children:
|
|
294
|
+
children: s
|
|
295
295
|
}), Ce = /* @__PURE__ */ A("span", {
|
|
296
296
|
"aria-hidden": !0,
|
|
297
297
|
className: "absolute left-0 top-0 rounded-full border-solid transition-all duration-200 ease-out",
|
|
@@ -304,40 +304,40 @@ var ce = (e, t) => ({
|
|
|
304
304
|
borderColor: I,
|
|
305
305
|
backgroundColor: ge(w),
|
|
306
306
|
boxShadow: `0 1px 2px hsl(${ye} / 0.3)`,
|
|
307
|
-
transform: `scale(${
|
|
308
|
-
opacity:
|
|
307
|
+
transform: `scale(${i || a ? 1 : 0})`,
|
|
308
|
+
opacity: i || a ? 1 : 0
|
|
309
309
|
}
|
|
310
310
|
}), L = /* @__PURE__ */ j(se, { children: [
|
|
311
311
|
Ce,
|
|
312
312
|
/* @__PURE__ */ A("span", {
|
|
313
313
|
className: "absolute left-0 top-0 transition-all duration-200 ease-out",
|
|
314
314
|
style: {
|
|
315
|
-
transform: `translate(-50%, ${ue}px) scale(${+!
|
|
316
|
-
opacity: +!
|
|
315
|
+
transform: `translate(-50%, ${ue}px) scale(${+!a})`,
|
|
316
|
+
opacity: +!a
|
|
317
317
|
},
|
|
318
318
|
children: ce
|
|
319
319
|
}),
|
|
320
320
|
xe
|
|
321
321
|
] });
|
|
322
|
-
return /* @__PURE__ */ A(
|
|
322
|
+
return /* @__PURE__ */ A(u, {
|
|
323
323
|
dataTestId: v,
|
|
324
324
|
children: te ? /* @__PURE__ */ A("button", {
|
|
325
|
-
ref:
|
|
325
|
+
ref: n,
|
|
326
326
|
type: "button",
|
|
327
327
|
..._ ? {
|
|
328
328
|
tabIndex: -1,
|
|
329
329
|
"aria-hidden": !0
|
|
330
330
|
} : {
|
|
331
331
|
"aria-label": g,
|
|
332
|
-
"aria-pressed":
|
|
332
|
+
"aria-pressed": i
|
|
333
333
|
},
|
|
334
334
|
onClick: h,
|
|
335
|
-
className:
|
|
335
|
+
className: p("relative inline-flex cursor-pointer border-0 bg-transparent p-0", "transition-transform duration-150 hover:scale-[1.05]", m("rounded-full"), y),
|
|
336
336
|
children: L
|
|
337
337
|
}) : /* @__PURE__ */ A("span", {
|
|
338
338
|
role: "img",
|
|
339
339
|
"aria-label": g,
|
|
340
|
-
className:
|
|
340
|
+
className: p("relative inline-flex", y),
|
|
341
341
|
children: L
|
|
342
342
|
})
|
|
343
343
|
});
|
|
@@ -394,40 +394,40 @@ var Te = L, R = (e, t) => `hsl(${ve(e, t).replace(/ /g, ", ")})`, z = (e, t) =>
|
|
|
394
394
|
})
|
|
395
395
|
})
|
|
396
396
|
}), je = w(({ onZoomIn: e, onZoomOut: t, onFit: n, onLocate: r, labels: i, dataTestId: a }, o) => {
|
|
397
|
-
let
|
|
398
|
-
return /* @__PURE__ */ A(
|
|
397
|
+
let c = f(), l = !!(r || n), d = !!(e || t), p = (e) => /* @__PURE__ */ A(Ae, { children: e });
|
|
398
|
+
return /* @__PURE__ */ A(u, {
|
|
399
399
|
dataTestId: a,
|
|
400
400
|
children: /* @__PURE__ */ j("div", {
|
|
401
401
|
ref: o,
|
|
402
402
|
role: "toolbar",
|
|
403
403
|
"aria-orientation": "vertical",
|
|
404
|
-
"aria-label":
|
|
404
|
+
"aria-label": c.map.navigation,
|
|
405
405
|
className: "flex flex-col items-center gap-2",
|
|
406
|
-
children: [
|
|
406
|
+
children: [l ? p(/* @__PURE__ */ j(se, { children: [n ? /* @__PURE__ */ A(s, {
|
|
407
407
|
variant: "ghost",
|
|
408
408
|
size: "md",
|
|
409
|
-
label: i?.fit ??
|
|
409
|
+
label: i?.fit ?? c.map.controls.fit,
|
|
410
410
|
icon: y,
|
|
411
411
|
hideLabel: !0,
|
|
412
412
|
onClick: n
|
|
413
|
-
}) : null, r ? /* @__PURE__ */ A(
|
|
413
|
+
}) : null, r ? /* @__PURE__ */ A(s, {
|
|
414
414
|
variant: "ghost",
|
|
415
415
|
size: "md",
|
|
416
|
-
label: i?.locate ??
|
|
416
|
+
label: i?.locate ?? c.map.controls.locate,
|
|
417
417
|
icon: v,
|
|
418
418
|
hideLabel: !0,
|
|
419
419
|
onClick: r
|
|
420
|
-
}) : null] })) : null,
|
|
420
|
+
}) : null] })) : null, d ? p(/* @__PURE__ */ j(se, { children: [e ? /* @__PURE__ */ A(s, {
|
|
421
421
|
variant: "ghost",
|
|
422
422
|
size: "md",
|
|
423
|
-
label: i?.zoomIn ??
|
|
423
|
+
label: i?.zoomIn ?? c.map.controls.zoomIn,
|
|
424
424
|
icon: b,
|
|
425
425
|
hideLabel: !0,
|
|
426
426
|
onClick: e
|
|
427
|
-
}) : null, t ? /* @__PURE__ */ A(
|
|
427
|
+
}) : null, t ? /* @__PURE__ */ A(s, {
|
|
428
428
|
variant: "ghost",
|
|
429
429
|
size: "md",
|
|
430
|
-
label: i?.zoomOut ??
|
|
430
|
+
label: i?.zoomOut ?? c.map.controls.zoomOut,
|
|
431
431
|
icon: S,
|
|
432
432
|
hideLabel: !0,
|
|
433
433
|
onClick: t
|
|
@@ -446,28 +446,28 @@ var Me = (e, t) => {
|
|
|
446
446
|
case "stop": return e.letter.charAt(0).toUpperCase();
|
|
447
447
|
default: return t;
|
|
448
448
|
}
|
|
449
|
-
}, Ne = w(function({ points:
|
|
450
|
-
let
|
|
451
|
-
return /* @__PURE__ */ A(
|
|
452
|
-
dataTestId:
|
|
449
|
+
}, Ne = w(function({ points: e, selectedId: t, onSelect: n, visible: r = !1, label: i, id: a, dataTestId: o, className: s }, c) {
|
|
450
|
+
let l = f(), d = i ?? l.map.listLabel;
|
|
451
|
+
return /* @__PURE__ */ A(u, {
|
|
452
|
+
dataTestId: o,
|
|
453
453
|
children: /* @__PURE__ */ j("nav", {
|
|
454
|
-
ref:
|
|
455
|
-
id:
|
|
454
|
+
ref: c,
|
|
455
|
+
id: a,
|
|
456
456
|
"aria-label": d,
|
|
457
457
|
tabIndex: -1,
|
|
458
|
-
className:
|
|
459
|
-
children: [
|
|
458
|
+
className: p("outline-none", r ? "absolute inset-0 z-20 overflow-auto bg-f1-background p-4" : "sr-only", s),
|
|
459
|
+
children: [r ? /* @__PURE__ */ A("h2", {
|
|
460
460
|
className: "text-f1-foreground mb-2 text-base font-medium",
|
|
461
461
|
children: d
|
|
462
462
|
}) : null, /* @__PURE__ */ A("ul", {
|
|
463
|
-
className:
|
|
464
|
-
children:
|
|
463
|
+
className: r ? "flex flex-col gap-0.5" : void 0,
|
|
464
|
+
children: e.map((e) => /* @__PURE__ */ A("li", { children: /* @__PURE__ */ A("button", {
|
|
465
465
|
type: "button",
|
|
466
|
-
"aria-current":
|
|
467
|
-
onClick: () =>
|
|
468
|
-
className:
|
|
469
|
-
children: Me(
|
|
470
|
-
}) },
|
|
466
|
+
"aria-current": e.id === t || void 0,
|
|
467
|
+
onClick: () => n(e.id),
|
|
468
|
+
className: p("w-full text-left", r && "text-f1-foreground hover:bg-f1-background-hover aria-[current=true]:bg-f1-background-selected rounded-md px-3 py-2 text-sm"),
|
|
469
|
+
children: Me(e, l.map.unnamedLocation)
|
|
470
|
+
}) }, e.id))
|
|
471
471
|
})]
|
|
472
472
|
})
|
|
473
473
|
});
|
|
@@ -780,30 +780,30 @@ var Je = qe, Ye = 4, Xe = 3, Ze = 1.3, J = 1.08, Qe = "cubic-bezier(0.16, 1, 0.3
|
|
|
780
780
|
[-8, 8],
|
|
781
781
|
[8, 8]
|
|
782
782
|
]
|
|
783
|
-
}, tt = w(function({ count:
|
|
784
|
-
let
|
|
783
|
+
}, tt = w(function({ count: e, members: t, onClick: n, ariaLabel: r, dataTestId: i, className: a }, o) {
|
|
784
|
+
let s = f(), [c, l] = k(!1), d = t.slice(0, e <= Ye ? Ye : Xe), m = Math.max(0, e - d.length), h = m > 0, g = m > 99 ? "+99" : `+${m}`, _ = et[d.length + +!!h] ?? et[4], v = c ? Ze : 1, y = c ? J : 1, b = (e) => {
|
|
785
785
|
let [t, n] = _[e] ?? [0, 0];
|
|
786
786
|
return {
|
|
787
787
|
transform: `translate(${t * v}px, ${n * v}px) scale(${y})`,
|
|
788
788
|
transition: `transform 240ms ${Qe}`
|
|
789
789
|
};
|
|
790
790
|
};
|
|
791
|
-
return /* @__PURE__ */ A(
|
|
792
|
-
dataTestId:
|
|
791
|
+
return /* @__PURE__ */ A(u, {
|
|
792
|
+
dataTestId: i,
|
|
793
793
|
children: /* @__PURE__ */ j("div", {
|
|
794
|
-
ref:
|
|
794
|
+
ref: o,
|
|
795
795
|
role: "button",
|
|
796
796
|
tabIndex: 0,
|
|
797
|
-
"aria-label":
|
|
798
|
-
onClick:
|
|
797
|
+
"aria-label": r ?? s.t("map.cluster", { count: e }),
|
|
798
|
+
onClick: n,
|
|
799
799
|
onKeyDown: (e) => {
|
|
800
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
800
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), n?.());
|
|
801
801
|
},
|
|
802
|
-
onPointerEnter: () =>
|
|
803
|
-
onPointerLeave: () =>
|
|
804
|
-
onFocus: () =>
|
|
805
|
-
onBlur: () =>
|
|
806
|
-
className:
|
|
802
|
+
onPointerEnter: () => l(!0),
|
|
803
|
+
onPointerLeave: () => l(!1),
|
|
804
|
+
onFocus: () => l(!0),
|
|
805
|
+
onBlur: () => l(!1),
|
|
806
|
+
className: p("group relative h-0 w-0 cursor-pointer outline-none", a),
|
|
807
807
|
children: [
|
|
808
808
|
/* @__PURE__ */ A("span", {
|
|
809
809
|
"aria-hidden": !0,
|
|
@@ -827,13 +827,13 @@ var Je = qe, Ye = 4, Xe = 3, Ze = 1.3, J = 1.08, Qe = "cubic-bezier(0.16, 1, 0.3
|
|
|
827
827
|
})
|
|
828
828
|
}, t)),
|
|
829
829
|
h ? (() => {
|
|
830
|
-
let [
|
|
830
|
+
let [e, t] = _[d.length] ?? [0, 0];
|
|
831
831
|
return /* @__PURE__ */ j("span", {
|
|
832
|
-
className:
|
|
832
|
+
className: p("absolute left-0 top-0 flex h-6 min-w-6 items-center justify-center overflow-hidden rounded-full px-1.5", "border border-solid border-f1-border-secondary", "text-f1-foreground-secondary text-sm font-medium leading-none"),
|
|
833
833
|
style: {
|
|
834
834
|
zIndex: Xe,
|
|
835
835
|
backgroundColor: "hsl(var(--white-90))",
|
|
836
|
-
transform: `translate(${
|
|
836
|
+
transform: `translate(${e * v}px, ${t * v}px) translate(-50%, -50%) scale(${y})`,
|
|
837
837
|
transition: `transform 240ms ${Qe}`
|
|
838
838
|
},
|
|
839
839
|
children: [/* @__PURE__ */ A("span", {
|
|
@@ -923,25 +923,25 @@ var Y = tt, nt = 16, rt = (e, t, n, r) => {
|
|
|
923
923
|
}), E(() => {
|
|
924
924
|
a.style.zIndex = n ? "2" : "";
|
|
925
925
|
}, [a, n]), M(i, a);
|
|
926
|
-
}, ot = ({ adapter: e, points: t, selectedId: n, highlightedId: r, onSelect: i, onMarkerDrag: a, onMarkerDragEnd:
|
|
927
|
-
let
|
|
926
|
+
}, ot = ({ adapter: e, points: t, selectedId: n, highlightedId: r, onSelect: i, onMarkerDrag: a, onMarkerDragEnd: s, onClusterExpand: l }) => {
|
|
927
|
+
let u = f(), d = !!s, p = D(() => d ? t.filter((e) => !e.draggable) : t, [t, d]), m = Pe({
|
|
928
928
|
adapter: e,
|
|
929
|
-
points:
|
|
929
|
+
points: p,
|
|
930
930
|
enabled: !0
|
|
931
|
-
}), { clusters: h } =
|
|
932
|
-
if (
|
|
933
|
-
let e = new Set(
|
|
931
|
+
}), { clusters: h } = m, g = D(() => {
|
|
932
|
+
if (p === t) return m.singles;
|
|
933
|
+
let e = new Set(m.singles);
|
|
934
934
|
return t.filter((t) => t.draggable || e.has(t));
|
|
935
935
|
}, [
|
|
936
|
-
|
|
937
|
-
|
|
936
|
+
m.singles,
|
|
937
|
+
p,
|
|
938
938
|
t
|
|
939
939
|
]), _ = We(e, nt) ? "lg" : "md", v = He(e, g, _), y = new Map(t.map((e) => [e.id, e])), b = h.length > 0, x = it(e, n ? y.get(n) : void 0, g, _);
|
|
940
|
-
return /* @__PURE__ */ j(
|
|
940
|
+
return /* @__PURE__ */ j(o, { children: [h.map((t) => /* @__PURE__ */ A(at, {
|
|
941
941
|
adapter: e,
|
|
942
942
|
coordinates: t.coordinates,
|
|
943
943
|
selected: !1,
|
|
944
|
-
children: /* @__PURE__ */ A(
|
|
944
|
+
children: /* @__PURE__ */ A(c.span, {
|
|
945
945
|
initial: {
|
|
946
946
|
scale: .8,
|
|
947
947
|
opacity: 0
|
|
@@ -968,20 +968,20 @@ var Y = tt, nt = 16, rt = (e, t, n, r) => {
|
|
|
968
968
|
children: /* @__PURE__ */ A(Y, {
|
|
969
969
|
count: t.count,
|
|
970
970
|
members: t.pointIds.map((e) => y.get(e)).filter((e) => !!e).map(X),
|
|
971
|
-
onClick: () =>
|
|
971
|
+
onClick: () => l(t.bounds)
|
|
972
972
|
})
|
|
973
973
|
})
|
|
974
974
|
}, t.id)), g.map((t) => {
|
|
975
|
-
let
|
|
975
|
+
let l = v[t.id], d = x?.has(t.id) ?? !1, f = r === t.id;
|
|
976
976
|
return /* @__PURE__ */ A(at, {
|
|
977
977
|
adapter: e,
|
|
978
978
|
coordinates: t.coordinates,
|
|
979
979
|
selected: n === t.id || f,
|
|
980
|
-
drag: t.draggable &&
|
|
980
|
+
drag: t.draggable && s ? {
|
|
981
981
|
onDrag: a && ((e) => a(t.id, e)),
|
|
982
|
-
onDragEnd: (e) =>
|
|
982
|
+
onDragEnd: (e) => s(t.id, e)
|
|
983
983
|
} : void 0,
|
|
984
|
-
children: /* @__PURE__ */ A(
|
|
984
|
+
children: /* @__PURE__ */ A(c.span, {
|
|
985
985
|
initial: { opacity: 0 },
|
|
986
986
|
animate: { opacity: 1 },
|
|
987
987
|
exit: {
|
|
@@ -996,9 +996,9 @@ var Y = tt, nt = 16, rt = (e, t, n, r) => {
|
|
|
996
996
|
ease: "easeOut"
|
|
997
997
|
},
|
|
998
998
|
className: "absolute left-0 top-0",
|
|
999
|
-
children: /* @__PURE__ */ A(
|
|
999
|
+
children: /* @__PURE__ */ A(o, {
|
|
1000
1000
|
initial: !1,
|
|
1001
|
-
children: /* @__PURE__ */ A(
|
|
1001
|
+
children: /* @__PURE__ */ A(c.span, {
|
|
1002
1002
|
initial: { opacity: 0 },
|
|
1003
1003
|
animate: { opacity: 1 },
|
|
1004
1004
|
exit: { opacity: 0 },
|
|
@@ -1011,21 +1011,21 @@ var Y = tt, nt = 16, rt = (e, t, n, r) => {
|
|
|
1011
1011
|
...X(t),
|
|
1012
1012
|
size: _,
|
|
1013
1013
|
label: t.label,
|
|
1014
|
-
showLabel: n === t.id || f || !b &&
|
|
1015
|
-
labelPlacement:
|
|
1014
|
+
showLabel: n === t.id || f || !b && l !== null,
|
|
1015
|
+
labelPlacement: l ?? "right",
|
|
1016
1016
|
selected: n === t.id,
|
|
1017
1017
|
collapsed: d,
|
|
1018
1018
|
onClick: () => i(t.id),
|
|
1019
1019
|
presentational: !0,
|
|
1020
|
-
ariaLabel: t.label ??
|
|
1020
|
+
ariaLabel: t.label ?? u.map.unnamedLocation
|
|
1021
1021
|
})
|
|
1022
1022
|
}, _)
|
|
1023
1023
|
})
|
|
1024
1024
|
})
|
|
1025
1025
|
}, t.id);
|
|
1026
1026
|
})] });
|
|
1027
|
-
}, st = ({ children:
|
|
1028
|
-
let
|
|
1027
|
+
}, st = ({ children: e, open: t, offsetX: n, offsetY: r = H.inset, width: i, entrance: o = "slide", headerStart: s, headerEnd: c, ariaLabel: l, dataTestId: d }) => {
|
|
1028
|
+
let m = f(), h = a(), _ = t ? U.enter : U.exit, v = n - H.inset, y = O({
|
|
1029
1029
|
from: v,
|
|
1030
1030
|
to: v
|
|
1031
1031
|
});
|
|
@@ -1034,14 +1034,14 @@ var Y = tt, nt = 16, rt = (e, t, n, r) => {
|
|
|
1034
1034
|
to: v
|
|
1035
1035
|
});
|
|
1036
1036
|
let b = v > y.current.from ? U.enter : U.exit, x = o === "grow" ? "translateX(-10%) scale(0.97)" : `translateX(calc(-100% - ${H.inset}px))`;
|
|
1037
|
-
return /* @__PURE__ */ A(
|
|
1037
|
+
return /* @__PURE__ */ A(u, {
|
|
1038
1038
|
dataTestId: d,
|
|
1039
1039
|
children: /* @__PURE__ */ A("div", {
|
|
1040
1040
|
className: "pointer-events-none absolute bottom-2 z-10",
|
|
1041
1041
|
style: {
|
|
1042
1042
|
left: H.inset,
|
|
1043
|
-
top:
|
|
1044
|
-
width:
|
|
1043
|
+
top: r,
|
|
1044
|
+
width: i,
|
|
1045
1045
|
transform: `translateX(${v}px)`,
|
|
1046
1046
|
transitionProperty: h ? "none" : "transform, top",
|
|
1047
1047
|
transitionDuration: b.duration,
|
|
@@ -1049,13 +1049,13 @@ var Y = tt, nt = 16, rt = (e, t, n, r) => {
|
|
|
1049
1049
|
},
|
|
1050
1050
|
children: /* @__PURE__ */ A("div", {
|
|
1051
1051
|
role: "complementary",
|
|
1052
|
-
"aria-label":
|
|
1052
|
+
"aria-label": l ?? m.map.panel,
|
|
1053
1053
|
ref: (e) => {
|
|
1054
|
-
|
|
1054
|
+
t ? e?.removeAttribute("inert") : e?.setAttribute("inert", "");
|
|
1055
1055
|
},
|
|
1056
|
-
className:
|
|
1056
|
+
className: p("relative h-full overflow-hidden text-base", Oe(De.panel), t ? "pointer-events-auto" : "opacity-0"),
|
|
1057
1057
|
style: {
|
|
1058
|
-
transform:
|
|
1058
|
+
transform: t || h ? "translateX(0px) scale(1)" : x,
|
|
1059
1059
|
transformOrigin: o === "grow" ? "left center" : void 0,
|
|
1060
1060
|
transitionProperty: h ? "opacity" : "transform, opacity",
|
|
1061
1061
|
transitionDuration: _.duration,
|
|
@@ -1068,15 +1068,15 @@ var Y = tt, nt = 16, rt = (e, t, n, r) => {
|
|
|
1068
1068
|
height: "full",
|
|
1069
1069
|
children: /* @__PURE__ */ j("div", {
|
|
1070
1070
|
className: "flex h-full flex-col",
|
|
1071
|
-
children: [
|
|
1071
|
+
children: [s || c ? /* @__PURE__ */ j("div", {
|
|
1072
1072
|
className: "flex shrink-0 items-center justify-between gap-1 p-0.5",
|
|
1073
1073
|
children: [/* @__PURE__ */ A("div", {
|
|
1074
1074
|
className: "flex min-w-0 flex-1 justify-start",
|
|
1075
|
-
children:
|
|
1076
|
-
}),
|
|
1075
|
+
children: s
|
|
1076
|
+
}), c]
|
|
1077
1077
|
}) : null, /* @__PURE__ */ A("div", {
|
|
1078
1078
|
className: "min-h-0 flex-1",
|
|
1079
|
-
children:
|
|
1079
|
+
children: e
|
|
1080
1080
|
})]
|
|
1081
1081
|
})
|
|
1082
1082
|
})
|
|
@@ -1100,33 +1100,33 @@ function ct() {
|
|
|
1100
1100
|
} : e;
|
|
1101
1101
|
}
|
|
1102
1102
|
function lt({ children: e }) {
|
|
1103
|
-
let { currentPath: t } =
|
|
1103
|
+
let { currentPath: t } = d(), [n, r] = k(!1), [a, o] = k(0), [s, c] = k(!1), l = n ? te.xl : te.md, u = i(`(max-width: ${l}px)`, { initializeWithValue: !0 }), [f, p] = k(() => {
|
|
1104
1104
|
let e = localStorage.getItem(Z);
|
|
1105
1105
|
return e === null || !!e;
|
|
1106
1106
|
}), [m, h] = k(!1), [g, _] = k(null), v = T(() => h(!1), []), y = T(({ isInvokedByUser: e } = { isInvokedByUser: !0 }) => {
|
|
1107
|
-
c(e ?? !0), u && h(!m),
|
|
1107
|
+
c(e ?? !0), u && h(!m), p(!f);
|
|
1108
1108
|
}, [
|
|
1109
1109
|
u,
|
|
1110
1110
|
m,
|
|
1111
|
-
d,
|
|
1112
1111
|
f,
|
|
1112
|
+
p,
|
|
1113
1113
|
h
|
|
1114
1114
|
]), b = T((e) => {
|
|
1115
|
-
u || (e.clientX >=
|
|
1115
|
+
u || (e.clientX >= a && e.clientX < a + 32 && h(!0), e.clientX > a + 280 && h(!1));
|
|
1116
1116
|
}, [
|
|
1117
1117
|
u,
|
|
1118
1118
|
h,
|
|
1119
|
-
|
|
1120
|
-
]), x = D(() => u ? m ? "unlocked" : "hidden" : !
|
|
1119
|
+
a
|
|
1120
|
+
]), x = D(() => u ? m ? "unlocked" : "hidden" : !f && !m ? "hidden" : !f && m ? "unlocked" : "locked", [
|
|
1121
1121
|
u,
|
|
1122
1122
|
m,
|
|
1123
|
-
|
|
1123
|
+
f
|
|
1124
1124
|
]);
|
|
1125
1125
|
return E(() => {
|
|
1126
1126
|
h(!1);
|
|
1127
1127
|
}, [t]), E(() => {
|
|
1128
|
-
s && localStorage.setItem(Z,
|
|
1129
|
-
}, [
|
|
1128
|
+
s && localStorage.setItem(Z, f ? "1" : "");
|
|
1129
|
+
}, [f, s]), E(() => () => {
|
|
1130
1130
|
_(x);
|
|
1131
1131
|
}, [x]), /* @__PURE__ */ A(Q.Provider, {
|
|
1132
1132
|
value: {
|
|
@@ -1137,9 +1137,9 @@ function lt({ children: e }) {
|
|
|
1137
1137
|
toggleSidebar: y,
|
|
1138
1138
|
prevSidebarState: g,
|
|
1139
1139
|
setForceFloat: r,
|
|
1140
|
-
railWidth:
|
|
1141
|
-
hasRail:
|
|
1142
|
-
setRailWidth:
|
|
1140
|
+
railWidth: a,
|
|
1141
|
+
hasRail: a > 0,
|
|
1142
|
+
setRailWidth: o
|
|
1143
1143
|
},
|
|
1144
1144
|
children: /* @__PURE__ */ A("div", {
|
|
1145
1145
|
onPointerMove: b,
|
|
@@ -1150,7 +1150,7 @@ function lt({ children: e }) {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
//#endregion
|
|
1152
1152
|
//#region src/blocks/Navigation/Sidebar/Icon/Icon.tsx
|
|
1153
|
-
function ut({ isExpanded:
|
|
1153
|
+
function ut({ isExpanded: e }) {
|
|
1154
1154
|
return /* @__PURE__ */ j("svg", {
|
|
1155
1155
|
width: "20",
|
|
1156
1156
|
height: "20",
|
|
@@ -1171,41 +1171,41 @@ function ut({ isExpanded: t }) {
|
|
|
1171
1171
|
}),
|
|
1172
1172
|
/* @__PURE__ */ A("path", {
|
|
1173
1173
|
id: "arrow",
|
|
1174
|
-
d:
|
|
1174
|
+
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",
|
|
1175
1175
|
strokeWidth: "1.3",
|
|
1176
1176
|
strokeLinecap: "round",
|
|
1177
1177
|
strokeLinejoin: "round",
|
|
1178
|
-
className:
|
|
1178
|
+
className: p("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]")
|
|
1179
1179
|
}),
|
|
1180
1180
|
/* @__PURE__ */ A("path", {
|
|
1181
1181
|
id: "line",
|
|
1182
1182
|
d: "M7.5 5L7.5 15",
|
|
1183
1183
|
strokeWidth: "1.3",
|
|
1184
1184
|
strokeLinecap: "round",
|
|
1185
|
-
className:
|
|
1185
|
+
className: p("stroke-current transition-all duration-200 ease-out motion-reduce:transition-none", e ? "translate-x-0 opacity-100 group-hover:-translate-x-0.5 group-hover:opacity-0" : "-translate-x-0.5 opacity-0 group-hover:translate-x-0 group-hover:opacity-100")
|
|
1186
1186
|
})
|
|
1187
1187
|
]
|
|
1188
1188
|
});
|
|
1189
1189
|
}
|
|
1190
1190
|
function dt() {
|
|
1191
|
-
let { prevSidebarState:
|
|
1191
|
+
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n, isSmallScreen: i } = ct(), a = O(null);
|
|
1192
1192
|
return E(() => {
|
|
1193
|
-
|
|
1194
|
-
}, [
|
|
1193
|
+
e === "hidden" && t === "locked" && a.current?.focus();
|
|
1194
|
+
}, [e, t]), /* @__PURE__ */ j(r, {
|
|
1195
1195
|
variant: "ghost",
|
|
1196
1196
|
size: "md",
|
|
1197
|
-
onClick: () =>
|
|
1197
|
+
onClick: () => n(),
|
|
1198
1198
|
className: "group hover:bg-f1-background-hover",
|
|
1199
1199
|
title: "Close Sidebar",
|
|
1200
|
-
ref:
|
|
1200
|
+
ref: a,
|
|
1201
1201
|
compact: !0,
|
|
1202
1202
|
"aria-label": "Close Sidebar",
|
|
1203
1203
|
children: [/* @__PURE__ */ A("div", {
|
|
1204
|
-
className:
|
|
1205
|
-
children: /* @__PURE__ */ A(ut, { isExpanded:
|
|
1204
|
+
className: p("hidden", { flex: !i }),
|
|
1205
|
+
children: /* @__PURE__ */ A(ut, { isExpanded: t === "locked" })
|
|
1206
1206
|
}), /* @__PURE__ */ A("div", {
|
|
1207
|
-
className:
|
|
1208
|
-
children: /* @__PURE__ */ A(
|
|
1207
|
+
className: p("hidden", { flex: i }),
|
|
1208
|
+
children: /* @__PURE__ */ A(l, {
|
|
1209
1209
|
icon: h,
|
|
1210
1210
|
size: "md"
|
|
1211
1211
|
})
|
|
@@ -1214,8 +1214,8 @@ function dt() {
|
|
|
1214
1214
|
}
|
|
1215
1215
|
//#endregion
|
|
1216
1216
|
//#region src/addons/map/F0Map/components/F0MapSidebarToggle/F0MapSidebarToggle.tsx
|
|
1217
|
-
var ft = w(({ expanded: e, onToggle: t, label: n, bare:
|
|
1218
|
-
let s =
|
|
1217
|
+
var ft = w(({ expanded: e, onToggle: t, label: n, bare: i = !1, dataTestId: a }, o) => {
|
|
1218
|
+
let s = f(), c = n ?? (e ? s.map.controls.hidePanel : s.map.controls.showPanel), l = /* @__PURE__ */ A(r, {
|
|
1219
1219
|
ref: o,
|
|
1220
1220
|
variant: "ghost",
|
|
1221
1221
|
size: "md",
|
|
@@ -1227,9 +1227,9 @@ var ft = w(({ expanded: e, onToggle: t, label: n, bare: r = !1, dataTestId: i },
|
|
|
1227
1227
|
"aria-expanded": e,
|
|
1228
1228
|
children: /* @__PURE__ */ A(ut, { isExpanded: e })
|
|
1229
1229
|
});
|
|
1230
|
-
return /* @__PURE__ */ A(
|
|
1231
|
-
dataTestId:
|
|
1232
|
-
children:
|
|
1230
|
+
return /* @__PURE__ */ A(u, {
|
|
1231
|
+
dataTestId: a,
|
|
1232
|
+
children: i ? l : /* @__PURE__ */ A(Ae, { children: l })
|
|
1233
1233
|
});
|
|
1234
1234
|
});
|
|
1235
1235
|
ft.displayName = "F0MapSidebarToggle";
|
|
@@ -1306,12 +1306,12 @@ vt.displayName = "CurrentLocationLayer";
|
|
|
1306
1306
|
var yt = {
|
|
1307
1307
|
curve: 1.42,
|
|
1308
1308
|
duration: 1400
|
|
1309
|
-
}, bt = 200, xt = ({ dataTestId:
|
|
1310
|
-
dataTestId:
|
|
1309
|
+
}, bt = 200, xt = ({ dataTestId: e, className: t }) => /* @__PURE__ */ A(u, {
|
|
1310
|
+
dataTestId: e,
|
|
1311
1311
|
children: /* @__PURE__ */ A("div", {
|
|
1312
1312
|
"aria-busy": "true",
|
|
1313
1313
|
"aria-live": "polite",
|
|
1314
|
-
className:
|
|
1314
|
+
className: p("h-full w-full animate-pulse bg-f1-background-secondary", t)
|
|
1315
1315
|
})
|
|
1316
1316
|
}), St = (e) => {
|
|
1317
1317
|
let [t, n] = k(null), r = T((t) => {
|
|
@@ -1353,7 +1353,7 @@ var yt = {
|
|
|
1353
1353
|
isDark: e
|
|
1354
1354
|
};
|
|
1355
1355
|
}, wt = {
|
|
1356
|
-
maplibre: async () => (await import("./maplibre-
|
|
1356
|
+
maplibre: async () => (await import("./maplibre-DYBwcFt1.js")).createMaplibreAdapter,
|
|
1357
1357
|
google: async (e) => (await import("./google-B7uAYsxU.js")).loadGoogleAdapter(e)
|
|
1358
1358
|
}, Tt = /* @__PURE__ */ new Map(), Et = (e, t) => {
|
|
1359
1359
|
let n = Tt.get(e);
|
|
@@ -11507,8 +11507,8 @@ var yt = {
|
|
|
11507
11507
|
maxZoom: u
|
|
11508
11508
|
});
|
|
11509
11509
|
d && (n ? e.easeTo(d, { animate: n }) : e.jumpTo(d, { animate: n }));
|
|
11510
|
-
}, Vt = (e) => `${e.top},${e.right},${e.bottom},${e.left}`, Ht = w(function({ markers: t = [], routes:
|
|
11511
|
-
let we = te ?? (D ? "greedy" : "cooperative"), I =
|
|
11510
|
+
}, Vt = (e) => `${e.top},${e.right},${e.bottom},${e.left}`, Ht = w(function({ markers: t = [], routes: r = [], arcs: i = [], areas: o = [], onRouteClick: s, onArcClick: c, selectedMarkerId: l, defaultSelectedMarkerId: d = null, onMarkerSelect: m, onMarkerDrag: h, onMarkerDragEnd: g, highlightedId: _ = null, viewportInset: v, centerOnMarkerClick: y = !1, fitToMarkers: b, initialViewport: x, mapStyle: S, interactive: ee = !0, gestureHandling: te, minZoom: C, maxZoom: ne = 18, showControls: w = !0, controlLabels: re, showCurrentLocation: oe = !1, fullScreen: D = !1, onSidebarToggle: M, sidebarExpanded: de = !1, sidebarToggleAddon: fe, sidebarHeaderStart: pe, sidebar: me, detail: he, detailOpen: F = !1, clearSelectionOnBackgroundClick: ge = !0, projection: _e = "mercator", provider: ve, loading: ye = !1, ariaLabel: be, dataTestId: xe, className: Se }, Ce) {
|
|
11511
|
+
let we = te ?? (D ? "greedy" : "cooperative"), I = f(), L = e(ve), Te = n(), R = O(null), z = O(null), [B, De] = k(null), [V, Oe] = k(!1), [ke, Me] = k(!1), [Pe, Fe] = k(0), Ie = ie(), W = a(), { containerRef: Le, isDark: Re } = Ct(), ze = T((e) => {
|
|
11512
11512
|
R.current = e, Le(e);
|
|
11513
11513
|
}, [Le]), Be = Re, Ve = !S || S.provider === L, He = Ve ? S ?? Ft(L) : Ft(L), G = Be ? He.dark : He.light, Ue = O(!1);
|
|
11514
11514
|
E(() => {
|
|
@@ -11518,14 +11518,14 @@ var yt = {
|
|
|
11518
11518
|
S?.provider,
|
|
11519
11519
|
L
|
|
11520
11520
|
]);
|
|
11521
|
-
let [We, Ge] = k(d), K =
|
|
11522
|
-
|
|
11523
|
-
}, [
|
|
11521
|
+
let [We, Ge] = k(d), K = l === void 0 ? We : l, Ke = T((e) => {
|
|
11522
|
+
l === void 0 && Ge(e), m?.(e);
|
|
11523
|
+
}, [l, m]), q = de && !!M, qe = F && !!he, Je = q ? H.inset + H.listWidth + H.gap : H.inset, Ye = q ? H.inset : H.inset + H.toggleSize + H.gap, Xe = qe ? Je + H.detailWidth : q ? H.inset + H.listWidth : null, Ze = ce(v, { left: Xe === null ? 0 : Xe + H.gap }), J = O(t);
|
|
11524
11524
|
J.current = t;
|
|
11525
|
-
let Qe = O(
|
|
11526
|
-
Qe.current =
|
|
11527
|
-
let $e = O(
|
|
11528
|
-
$e.current =
|
|
11525
|
+
let Qe = O(r);
|
|
11526
|
+
Qe.current = r;
|
|
11527
|
+
let $e = O(i);
|
|
11528
|
+
$e.current = i;
|
|
11529
11529
|
let et = O(o);
|
|
11530
11530
|
et.current = o;
|
|
11531
11531
|
let tt = O(_e);
|
|
@@ -11743,7 +11743,7 @@ var yt = {
|
|
|
11743
11743
|
});
|
|
11744
11744
|
u && t.easeTo({ center: u }, { animate: a });
|
|
11745
11745
|
}, [Mt, Z]);
|
|
11746
|
-
let Pt =
|
|
11746
|
+
let Pt = r.length > 0 || i.length > 0, $ = Xe === null ? 0 : Xe + H.gap - H.inset, Rt = O({
|
|
11747
11747
|
from: $,
|
|
11748
11748
|
to: $
|
|
11749
11749
|
});
|
|
@@ -11752,13 +11752,13 @@ var yt = {
|
|
|
11752
11752
|
to: $
|
|
11753
11753
|
});
|
|
11754
11754
|
let zt = $ > Rt.current.from ? U.enter : U.exit, Ht = q ? U.enter : U.exit;
|
|
11755
|
-
return /* @__PURE__ */ A(
|
|
11755
|
+
return /* @__PURE__ */ A(u, {
|
|
11756
11756
|
dataTestId: xe,
|
|
11757
11757
|
children: ye ? /* @__PURE__ */ A(xt, { className: Se }) : /* @__PURE__ */ j("div", {
|
|
11758
11758
|
ref: ze,
|
|
11759
11759
|
role: "region",
|
|
11760
11760
|
"aria-label": be ?? I.map.region,
|
|
11761
|
-
className:
|
|
11761
|
+
className: p("f0-map relative h-full w-full overflow-hidden", Be && "dark", !D && "rounded-2xl border border-solid border-f1-border-secondary", Se),
|
|
11762
11762
|
children: [
|
|
11763
11763
|
/* @__PURE__ */ A("a", {
|
|
11764
11764
|
href: `#${Ie}`,
|
|
@@ -11785,11 +11785,11 @@ var yt = {
|
|
|
11785
11785
|
})] }) : null,
|
|
11786
11786
|
!V && B && Pt ? /* @__PURE__ */ A(_t, {
|
|
11787
11787
|
adapter: B,
|
|
11788
|
-
routes:
|
|
11789
|
-
arcs:
|
|
11788
|
+
routes: r,
|
|
11789
|
+
arcs: i,
|
|
11790
11790
|
isDark: Be,
|
|
11791
|
-
onRouteClick:
|
|
11792
|
-
onArcClick:
|
|
11791
|
+
onRouteClick: s,
|
|
11792
|
+
onArcClick: c
|
|
11793
11793
|
}) : null,
|
|
11794
11794
|
!V && B && t.length > 0 ? /* @__PURE__ */ A(ot, {
|
|
11795
11795
|
adapter: B,
|
|
@@ -11811,7 +11811,7 @@ var yt = {
|
|
|
11811
11811
|
children: he
|
|
11812
11812
|
}) : null,
|
|
11813
11813
|
!V && B && M ? /* @__PURE__ */ A("div", {
|
|
11814
|
-
className:
|
|
11814
|
+
className: p("absolute left-2 top-2 z-10", q && "opacity-0"),
|
|
11815
11815
|
style: {
|
|
11816
11816
|
transitionProperty: W ? "none" : "opacity",
|
|
11817
11817
|
transitionDuration: Ht.duration,
|
|
@@ -11843,7 +11843,7 @@ var yt = {
|
|
|
11843
11843
|
children: me
|
|
11844
11844
|
}) : null,
|
|
11845
11845
|
!V && B && w && ee ? /* @__PURE__ */ A("div", {
|
|
11846
|
-
className:
|
|
11846
|
+
className: p("absolute left-2 z-10", L === "google" ? "bottom-8" : "bottom-2"),
|
|
11847
11847
|
style: {
|
|
11848
11848
|
transform: `translateX(${$}px)`,
|
|
11849
11849
|
transitionProperty: W ? "none" : "transform",
|