@factorialco/f0-react 12.9.1 → 12.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ArchiveThumbnail-cs8kx5Zf.js +70 -0
- package/dist/ArchiveViewer-BXUH8Lm5.js +172 -0
- package/dist/{ChatPostComposerDialog-CWTlUs36.js → ChatPostComposerDialog-CGil1xkf.js} +4 -4
- package/dist/{CoachmarkProvider-BMunnTvE.js → CoachmarkProvider-cZnuTk79.js} +21047 -21041
- package/dist/CodeThumbnail-Dcer4AyK.js +31 -0
- package/dist/CodeViewer-DFBwdIFm.js +98 -0
- package/dist/DocumentToolbar-vZEyzJ89.js +74 -0
- package/dist/{DocxThumbnail-kHTNnwW0.js → DocxThumbnail-CK9vFoTB.js} +2 -2
- package/dist/{DocxViewer-C1yw4Yqt.js → DocxViewer-DQV5Kv1n.js} +25 -23
- package/dist/ExternalLink-RdKU698E.js +22 -0
- package/dist/{F0AiProcessingOverlay-cdj77_VP.js → F0AiProcessingOverlay-DjGkQ2Nc.js} +1903 -1795
- package/dist/{popover-BjrPOMeQ.js → F0Button-FXkThQ9H.js} +3164 -8587
- package/dist/{F0CanvasPanel-DPEwyR89.js → F0CanvasPanel-BgDo2LWP.js} +3704 -3274
- package/dist/F0DocumentViewer-BXifXzUW.js +79 -0
- package/dist/F0DocumentViewer-DWuIFBHu.js +3 -0
- package/dist/F0Icon-Cj0USbCF.js +202 -0
- package/dist/{F0Map-ZSo-alK8.js → F0Map-Dwev4u-_.js} +199 -191
- package/dist/{F0Select-B-ZxVjXG.js → F0Select-BWWdEd7l.js} +6696 -6726
- package/dist/{F0Text-D92NWQRd.js → F0Text-DMZW7dhN.js} +25 -41
- package/dist/{F0VideoPlayer-B1-tEFuq.js → F0VideoPlayer-BmCmHG87.js} +206 -202
- package/dist/F0VideoPlayer-C8oYUUZM.js +1 -0
- package/dist/HtmlThumbnail-BAgkBH2r.js +60 -0
- package/dist/HtmlViewer-FRfNoxhP.js +208 -0
- package/dist/LockLocked-gdodYvT_.js +41 -0
- package/dist/{Map-B_Hw6nIS.js → Map-BxGPElF2.js} +56 -53
- package/dist/{PdfThumbnail-BWqOqM04.js → PdfThumbnail-CpGZz5Kq.js} +5 -5
- package/dist/PdfViewer-C81MK43i.js +296 -0
- package/dist/SandboxedHtmlFrame-B6YWhgyg.js +309 -0
- package/dist/{SheetViewer-B8JTSi3B.js → SheetViewer-DPGpMNqq.js} +36 -26
- package/dist/TextThumbnail-DKNxh344.js +15 -0
- package/dist/{TextViewer-CEZd1H8u.js → TextViewer-BH42AeG8.js} +44 -41
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +5 -5
- package/dist/bash-BcZBmoDA.js +169 -0
- package/dist/c-Dv-5_kUQ.js +187 -0
- package/dist/component-status.js +2 -2
- package/dist/core-C0MCmPil.js +842 -0
- package/dist/cpp-CMQhucZt.js +236 -0
- package/dist/csharp-CuDKSCf2.js +260 -0
- package/dist/css-Dta7Q4Li.js +145 -0
- package/dist/dart-po7Eq73d.js +134 -0
- package/dist/diff-IgsQP-8T.js +39 -0
- package/dist/dist-D-MJbPvE.js +59 -0
- package/dist/dockerfile-B4Bz9I5u.js +34 -0
- package/dist/dos-1TcyLtUq.js +57 -0
- package/dist/elixir-BnEjyLGa.js +189 -0
- package/dist/erlang-tgri7ZSv.js +218 -0
- package/dist/experimental.d.ts +24 -4
- package/dist/experimental.js +5080 -4883
- package/dist/{exports-BdFDYdp1.d.ts → exports-C0yM5usu.d.ts} +13 -2
- package/dist/f0.d.ts +130 -8
- package/dist/f0.js +751 -745
- package/dist/fetchText-o_GOtiv3.js +54 -0
- package/dist/go-CEVmppuo.js +144 -0
- package/dist/graphql-BWwc-u8d.js +67 -0
- package/dist/groovy-BELuqtd6.js +127 -0
- package/dist/haskell-Cxh7aaFM.js +138 -0
- package/dist/highlight-CyebkDAD.js +114 -0
- package/dist/i18n-provider-BBhzYHef.js +150 -0
- package/dist/{i18n-provider-defaults-p0UGTA_k.js → i18n-provider-defaults-BUagKwGN.js} +32 -1
- package/dist/{i18n-provider-defaults-DQxuUMpU.d.ts → i18n-provider-defaults-CTDMMs-y.d.ts} +31 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-DIwa_k8B.d.ts → index-CduxMW5L.d.ts} +16 -2
- package/dist/ini-DA-F0rRr.js +88 -0
- package/dist/java-Bujnoc_f.js +174 -0
- package/dist/javascript-BeEhpXRE.js +431 -0
- package/dist/json-CxvE7tEw.js +42 -0
- package/dist/kotlin-DOwDGI_m.js +206 -0
- package/dist/less-DWlR-e-o.js +196 -0
- package/dist/lua-BlZiakwh.js +46 -0
- package/dist/makefile-D3841Yg4.js +57 -0
- package/dist/{maplibre-BSY0r3_z.js → maplibre-g-8NG-3q.js} +1 -1
- package/dist/markdown-D1wNG79U.js +178 -0
- package/dist/objectivec-DxtRzTBy.js +117 -0
- package/dist/ownValue-D4uSXt0d.js +4 -0
- package/dist/{pdfWorker-DRgGoc3T.js → pdfWorker-D5NB2V5s.js} +12 -9
- package/dist/pdfWorkerConfig-BwllKt1K.js +8 -0
- package/dist/perl-BWRmkuyz.js +192 -0
- package/dist/php-CjwybYSP.js +300 -0
- package/dist/popover-CQztsDta.js +4486 -0
- package/dist/{posts-DGtDUrKT.js → posts-BHRBUAYJ.js} +2 -0
- package/dist/powershell-CgKcNA5Q.js +188 -0
- package/dist/properties-Bc45MTzW.js +38 -0
- package/dist/protobuf-Bv_xSUaI.js +61 -0
- package/dist/purify.es-ZpfdAuNV.js +545 -0
- package/dist/python-D8PdGjgy.js +238 -0
- package/dist/r-DA-9ZIdU.js +140 -0
- package/dist/{renderDocx-_UmnE-yc.js → renderDocx-BW-uDyaZ.js} +2 -0
- package/dist/ruby-Bqr16BpN.js +262 -0
- package/dist/rust-BCvJMwk8.js +182 -0
- package/dist/scala-Du8mOD2z.js +162 -0
- package/dist/scss-AMxHqh46.js +155 -0
- package/dist/skeleton-DqejhQgn.js +72 -0
- package/dist/sql-BbYSgcOA.js +118 -0
- package/dist/styles.css +1 -1
- package/dist/swift-DRKtalPn.js +575 -0
- package/dist/toolbarStyles-0IygMI4H.js +52 -0
- package/dist/{types-hr47rxX3.d.ts → types-DlwD3i9z.d.ts} +3 -95
- package/dist/typescript-Bv8uKU6V.js +516 -0
- package/dist/{useData-B7LYSzh0.js → useData-Dkq5W4r6.js} +4917 -4876
- package/dist/useFetchedText-BR3_KLXx.js +38 -0
- package/dist/useThumbnailText-DwXQvLIe.js +22 -0
- package/dist/xml-BVpP05uE.js +162 -0
- package/dist/yaml-BNe2WG-i.js +144 -0
- package/dist/zipTree-B2zUYl6b.js +247 -0
- package/package.json +2 -1
- package/dist/DocumentToolbar-iHZHYbFM.js +0 -70
- package/dist/F0DocumentViewer-CzNVxjsJ.js +0 -3
- package/dist/F0DocumentViewer-sRCjFb2O.js +0 -400
- package/dist/F0VideoPlayer-B4Nu7ugx.js +0 -1
- package/dist/TextThumbnail-X04JgaNI.js +0 -26
- package/dist/dist-DvxtFKDL.js +0 -78
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { a as e, o as t, pi as n } from "./CoachmarkProvider-
|
|
2
|
-
import {
|
|
3
|
-
import { L as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { a as e, o as t, pi as n } from "./CoachmarkProvider-cZnuTk79.js";
|
|
2
|
+
import { i as r, r as i } from "./i18n-provider-BBhzYHef.js";
|
|
3
|
+
import { L as a, R as o } from "./tooltip-BX4dSfeL.js";
|
|
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-FXkThQ9H.js";
|
|
5
|
+
import { Bo as m, Rs as h, Z as g, lo as _, xs as v } from "./F0CanvasPanel-BgDo2LWP.js";
|
|
6
|
+
import { t as y } from "./F0Icon-Cj0USbCF.js";
|
|
7
|
+
import { V as b, Z as x, j as S, q as ee, y as C } from "./useData-Dkq5W4r6.js";
|
|
7
8
|
import { a as w, n as T, o as te, s as ne, t as E } from "./dist-Cuwaibqg.js";
|
|
8
9
|
import { createContext as D, forwardRef as O, useCallback as k, useContext as A, useEffect as j, useId as re, useImperativeHandle as ie, useLayoutEffect as ae, useMemo as M, useRef as N, useState as P } from "react";
|
|
9
10
|
import { Fragment as oe, jsx as F, jsxs as I } from "react/jsx-runtime";
|
|
@@ -144,7 +145,7 @@ var ce = (e, t) => ({
|
|
|
144
145
|
let e = Ce.xl;
|
|
145
146
|
return -(e.d - e.caretOverlap + e.caretH + R + we) + 3;
|
|
146
147
|
}, z = "hsl(var(--white-100))", B = O(function(e, t) {
|
|
147
|
-
let { size:
|
|
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, b = e.variant ?? "color", x = Ce[s ? "xl" : i], ee = !!m, w = b === "color" || b === "icon" || b === "letter", T = b === "person" && "firstName" in e ? e.firstName + e.lastName : (b === "team" || b === "company") && "name" in e ? e.name : null, te = w ? e.color ?? "radical" : T ? b === "person" && "src" in e && e.src ? "grey" : S(T) ?? "grey" : "neutral", ne = n(), E = s ? 32 : {
|
|
148
149
|
xs: 12,
|
|
149
150
|
sm: 16,
|
|
150
151
|
md: 20,
|
|
@@ -154,11 +155,11 @@ var ce = (e, t) => ({
|
|
|
154
155
|
sm: 24,
|
|
155
156
|
md: 32,
|
|
156
157
|
lg: 40
|
|
157
|
-
}, O = Ce[
|
|
158
|
+
}, O = Ce[i].avatar, k = s ? D[x.avatar] / D[O] : 1, A = (e) => /* @__PURE__ */ F("span", {
|
|
158
159
|
className: "flex shrink-0 items-center justify-center transition-transform duration-200 ease-out",
|
|
159
160
|
style: { transform: `scale(${k})` },
|
|
160
161
|
children: e
|
|
161
|
-
}), j = b === "color" ? null : b === "icon" && "icon" in e ? /* @__PURE__ */ F(
|
|
162
|
+
}), j = b === "color" ? null : b === "icon" && "icon" in e ? /* @__PURE__ */ F(y, {
|
|
162
163
|
icon: e.icon,
|
|
163
164
|
size: x.icon,
|
|
164
165
|
color: "#ffffff",
|
|
@@ -220,7 +221,7 @@ var ce = (e, t) => ({
|
|
|
220
221
|
backgroundColor: z
|
|
221
222
|
}
|
|
222
223
|
}) : j
|
|
223
|
-
}), ae = /* @__PURE__ */ F(
|
|
224
|
+
}), ae = /* @__PURE__ */ F(p, { children: s ? /* @__PURE__ */ F(l.svg, {
|
|
224
225
|
width: x.caretW,
|
|
225
226
|
height: x.caretH,
|
|
226
227
|
viewBox: "0 0 16 13",
|
|
@@ -254,14 +255,14 @@ var ce = (e, t) => ({
|
|
|
254
255
|
className: "relative inline-flex",
|
|
255
256
|
style: { filter: `drop-shadow(0 ${x.shadowY}px ${x.shadowBlur / 2}px hsl(${Se} / 0.3))` },
|
|
256
257
|
children: [ae, ie]
|
|
257
|
-
}), N = Ce[
|
|
258
|
+
}), N = Ce[i], P = x.d / 2, se = R, ce = s ? Te() : -P, le = s ? "bottom" : f, ue = `0 0 ${Math.max(2, Math.round(N.label * .28))}px ${z}`, de = [
|
|
258
259
|
ue,
|
|
259
260
|
ue,
|
|
260
261
|
`0 1px 2px ${z}`,
|
|
261
262
|
`0 -1px 2px ${z}`,
|
|
262
263
|
`1px 0 2px ${z}`,
|
|
263
264
|
`-1px 0 2px ${z}`
|
|
264
|
-
].join(","), fe = !
|
|
265
|
+
].join(","), fe = !s && (le === "top" || le === "bottom"), pe = fe ? "line-clamp-4 text-center" : s ? "whitespace-nowrap text-center" : "whitespace-nowrap", me = N.d / 2, he = {
|
|
265
266
|
right: {
|
|
266
267
|
transform: `translate(${me}px, -50%)`,
|
|
267
268
|
style: { paddingLeft: N.gap }
|
|
@@ -278,11 +279,11 @@ var ce = (e, t) => ({
|
|
|
278
279
|
style: { paddingBottom: N.gap }
|
|
279
280
|
},
|
|
280
281
|
bottom: {
|
|
281
|
-
transform: `translate(-50%, ${
|
|
282
|
-
style: { paddingTop: N.gap + (
|
|
282
|
+
transform: `translate(-50%, ${s ? se : me}px)`,
|
|
283
|
+
style: { paddingTop: N.gap + (s ? 4 : 0) }
|
|
283
284
|
}
|
|
284
|
-
}[le], ge =
|
|
285
|
-
className:
|
|
285
|
+
}[le], ge = u && d && !c && /* @__PURE__ */ F("span", {
|
|
286
|
+
className: a("absolute left-0 top-0 font-semibold leading-tight transition-all duration-200 ease-out", pe),
|
|
286
287
|
style: {
|
|
287
288
|
color: `hsl(${be[te]})`,
|
|
288
289
|
fontSize: N.label,
|
|
@@ -291,7 +292,7 @@ var ce = (e, t) => ({
|
|
|
291
292
|
maxWidth: fe ? N.maxLabelW : void 0,
|
|
292
293
|
...he.style
|
|
293
294
|
},
|
|
294
|
-
children:
|
|
295
|
+
children: u
|
|
295
296
|
}), _e = /* @__PURE__ */ F("span", {
|
|
296
297
|
"aria-hidden": !0,
|
|
297
298
|
className: "absolute left-0 top-0 rounded-full border-solid transition-all duration-200 ease-out",
|
|
@@ -304,40 +305,40 @@ var ce = (e, t) => ({
|
|
|
304
305
|
borderColor: z,
|
|
305
306
|
backgroundColor: ye(te),
|
|
306
307
|
boxShadow: `0 1px 2px hsl(${Se} / 0.3)`,
|
|
307
|
-
transform: `scale(${
|
|
308
|
-
opacity:
|
|
308
|
+
transform: `scale(${s || c ? 1 : 0})`,
|
|
309
|
+
opacity: s || c ? 1 : 0
|
|
309
310
|
}
|
|
310
311
|
}), ve = /* @__PURE__ */ I(oe, { children: [
|
|
311
312
|
_e,
|
|
312
313
|
/* @__PURE__ */ F("span", {
|
|
313
314
|
className: "absolute left-0 top-0 transition-all duration-200 ease-out",
|
|
314
315
|
style: {
|
|
315
|
-
transform: `translate(-50%, ${ce}px) scale(${+!
|
|
316
|
-
opacity: +!
|
|
316
|
+
transform: `translate(-50%, ${ce}px) scale(${+!c})`,
|
|
317
|
+
opacity: +!c
|
|
317
318
|
},
|
|
318
319
|
children: M
|
|
319
320
|
}),
|
|
320
321
|
ge
|
|
321
322
|
] });
|
|
322
|
-
return /* @__PURE__ */ F(
|
|
323
|
-
dataTestId:
|
|
323
|
+
return /* @__PURE__ */ F(r, {
|
|
324
|
+
dataTestId: _,
|
|
324
325
|
children: ee ? /* @__PURE__ */ F("button", {
|
|
325
326
|
ref: t,
|
|
326
327
|
type: "button",
|
|
327
|
-
...
|
|
328
|
+
...g ? {
|
|
328
329
|
tabIndex: -1,
|
|
329
330
|
"aria-hidden": !0
|
|
330
331
|
} : {
|
|
331
|
-
"aria-label":
|
|
332
|
-
"aria-pressed":
|
|
332
|
+
"aria-label": h,
|
|
333
|
+
"aria-pressed": s
|
|
333
334
|
},
|
|
334
|
-
onClick:
|
|
335
|
-
className:
|
|
335
|
+
onClick: m,
|
|
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),
|
|
336
337
|
children: ve
|
|
337
338
|
}) : /* @__PURE__ */ F("span", {
|
|
338
339
|
role: "img",
|
|
339
|
-
"aria-label":
|
|
340
|
-
className:
|
|
340
|
+
"aria-label": h,
|
|
341
|
+
className: a("relative inline-flex", v),
|
|
341
342
|
children: ve
|
|
342
343
|
})
|
|
343
344
|
});
|
|
@@ -393,41 +394,41 @@ var Ee = B, V = (e, t) => `hsl(${xe(e, t).replace(/ /g, ", ")})`, De = (e, t) =>
|
|
|
393
394
|
children: e
|
|
394
395
|
})
|
|
395
396
|
})
|
|
396
|
-
}), Pe = O(({ onZoomIn: e, onZoomOut: t, onFit: n, onLocate:
|
|
397
|
-
let
|
|
398
|
-
return /* @__PURE__ */ F(
|
|
399
|
-
dataTestId:
|
|
397
|
+
}), Pe = O(({ 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__ */ F(Ne, { children: e });
|
|
399
|
+
return /* @__PURE__ */ F(r, {
|
|
400
|
+
dataTestId: s,
|
|
400
401
|
children: /* @__PURE__ */ I("div", {
|
|
401
|
-
ref:
|
|
402
|
+
ref: c,
|
|
402
403
|
role: "toolbar",
|
|
403
404
|
"aria-orientation": "vertical",
|
|
404
|
-
"aria-label":
|
|
405
|
+
"aria-label": l.map.navigation,
|
|
405
406
|
className: "flex flex-col items-center gap-2",
|
|
406
|
-
children: [
|
|
407
|
+
children: [u ? p(/* @__PURE__ */ I(oe, { children: [n ? /* @__PURE__ */ F(f, {
|
|
407
408
|
variant: "ghost",
|
|
408
409
|
size: "md",
|
|
409
|
-
label:
|
|
410
|
+
label: o?.fit ?? l.map.controls.fit,
|
|
410
411
|
icon: v,
|
|
411
412
|
hideLabel: !0,
|
|
412
413
|
onClick: n
|
|
413
|
-
}) : null,
|
|
414
|
+
}) : null, a ? /* @__PURE__ */ F(f, {
|
|
414
415
|
variant: "ghost",
|
|
415
416
|
size: "md",
|
|
416
|
-
label:
|
|
417
|
-
icon:
|
|
417
|
+
label: o?.locate ?? l.map.controls.locate,
|
|
418
|
+
icon: _,
|
|
418
419
|
hideLabel: !0,
|
|
419
|
-
onClick:
|
|
420
|
-
}) : null] })) : null, d ? p(/* @__PURE__ */ I(oe, { children: [e ? /* @__PURE__ */ F(
|
|
420
|
+
onClick: a
|
|
421
|
+
}) : null] })) : null, d ? p(/* @__PURE__ */ I(oe, { children: [e ? /* @__PURE__ */ F(f, {
|
|
421
422
|
variant: "ghost",
|
|
422
423
|
size: "md",
|
|
423
|
-
label:
|
|
424
|
+
label: o?.zoomIn ?? l.map.controls.zoomIn,
|
|
424
425
|
icon: x,
|
|
425
426
|
hideLabel: !0,
|
|
426
427
|
onClick: e
|
|
427
|
-
}) : null, t ? /* @__PURE__ */ F(
|
|
428
|
+
}) : null, t ? /* @__PURE__ */ F(f, {
|
|
428
429
|
variant: "ghost",
|
|
429
430
|
size: "md",
|
|
430
|
-
label:
|
|
431
|
+
label: o?.zoomOut ?? l.map.controls.zoomOut,
|
|
431
432
|
icon: ee,
|
|
432
433
|
hideLabel: !0,
|
|
433
434
|
onClick: t
|
|
@@ -446,27 +447,27 @@ var G = (e, t) => {
|
|
|
446
447
|
case "stop": return e.letter.charAt(0).toUpperCase();
|
|
447
448
|
default: return t;
|
|
448
449
|
}
|
|
449
|
-
}, Fe = O(function({ points: e, selectedId: t, onSelect: n, visible:
|
|
450
|
-
let
|
|
451
|
-
return /* @__PURE__ */ F(
|
|
452
|
-
dataTestId:
|
|
450
|
+
}, Fe = O(function({ points: e, selectedId: t, onSelect: n, visible: o = !1, label: s, id: c, dataTestId: l, className: u }, d) {
|
|
451
|
+
let f = i(), p = s ?? f.map.listLabel;
|
|
452
|
+
return /* @__PURE__ */ F(r, {
|
|
453
|
+
dataTestId: l,
|
|
453
454
|
children: /* @__PURE__ */ I("nav", {
|
|
454
|
-
ref:
|
|
455
|
-
id:
|
|
456
|
-
"aria-label":
|
|
455
|
+
ref: d,
|
|
456
|
+
id: c,
|
|
457
|
+
"aria-label": p,
|
|
457
458
|
tabIndex: -1,
|
|
458
|
-
className:
|
|
459
|
-
children: [
|
|
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__ */ F("h2", {
|
|
460
461
|
className: "text-f1-foreground mb-2 text-base font-medium",
|
|
461
|
-
children:
|
|
462
|
+
children: p
|
|
462
463
|
}) : null, /* @__PURE__ */ F("ul", {
|
|
463
|
-
className:
|
|
464
|
+
className: o ? "flex flex-col gap-0.5" : void 0,
|
|
464
465
|
children: e.map((e) => /* @__PURE__ */ F("li", { children: /* @__PURE__ */ F("button", {
|
|
465
466
|
type: "button",
|
|
466
467
|
"aria-current": e.id === t || void 0,
|
|
467
468
|
onClick: () => n(e.id),
|
|
468
|
-
className:
|
|
469
|
-
children: G(e,
|
|
469
|
+
className: a("w-full text-left", o && "text-f1-foreground hover:bg-f1-background-hover aria-[current=true]:bg-f1-background-selected rounded-md px-3 py-2 text-sm"),
|
|
470
|
+
children: G(e, f.map.unnamedLocation)
|
|
470
471
|
}) }, e.id))
|
|
471
472
|
})]
|
|
472
473
|
})
|
|
@@ -733,7 +734,7 @@ var Ie = ({ adapter: e, points: t, enabled: n, radius: r = 12, clusterRadius: i
|
|
|
733
734
|
case "workplace": return {
|
|
734
735
|
variant: {
|
|
735
736
|
variant: "icon",
|
|
736
|
-
icon:
|
|
737
|
+
icon: m
|
|
737
738
|
},
|
|
738
739
|
color: qe
|
|
739
740
|
};
|
|
@@ -780,30 +781,30 @@ var Y = Xe, Ze = 4, Qe = 3, $e = 1.3, et = 1.08, X = "cubic-bezier(0.16, 1, 0.3,
|
|
|
780
781
|
[-8, 8],
|
|
781
782
|
[8, 8]
|
|
782
783
|
]
|
|
783
|
-
}, rt = O(function({ count: e, members: t, onClick: n, ariaLabel:
|
|
784
|
-
let
|
|
784
|
+
}, rt = O(function({ count: e, members: t, onClick: n, ariaLabel: o, dataTestId: s, className: c }, l) {
|
|
785
|
+
let u = i(), [d, f] = P(!1), p = t.slice(0, e <= Ze ? Ze : Qe), m = Math.max(0, e - p.length), h = m > 0, g = m > 99 ? "+99" : `+${m}`, _ = nt[p.length + +!!h] ?? nt[4], v = d ? $e : 1, y = d ? et : 1, b = (e) => {
|
|
785
786
|
let [t, n] = _[e] ?? [0, 0];
|
|
786
787
|
return {
|
|
787
788
|
transform: `translate(${t * v}px, ${n * v}px) scale(${y})`,
|
|
788
789
|
transition: `transform 240ms ${X}`
|
|
789
790
|
};
|
|
790
791
|
};
|
|
791
|
-
return /* @__PURE__ */ F(
|
|
792
|
-
dataTestId:
|
|
792
|
+
return /* @__PURE__ */ F(r, {
|
|
793
|
+
dataTestId: s,
|
|
793
794
|
children: /* @__PURE__ */ I("div", {
|
|
794
|
-
ref:
|
|
795
|
+
ref: l,
|
|
795
796
|
role: "button",
|
|
796
797
|
tabIndex: 0,
|
|
797
|
-
"aria-label":
|
|
798
|
+
"aria-label": o ?? u.t("map.cluster", { count: e }),
|
|
798
799
|
onClick: n,
|
|
799
800
|
onKeyDown: (e) => {
|
|
800
801
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), n?.());
|
|
801
802
|
},
|
|
802
|
-
onPointerEnter: () =>
|
|
803
|
-
onPointerLeave: () =>
|
|
804
|
-
onFocus: () =>
|
|
805
|
-
onBlur: () =>
|
|
806
|
-
className:
|
|
803
|
+
onPointerEnter: () => f(!0),
|
|
804
|
+
onPointerLeave: () => f(!1),
|
|
805
|
+
onFocus: () => f(!0),
|
|
806
|
+
onBlur: () => f(!1),
|
|
807
|
+
className: a("group relative h-0 w-0 cursor-pointer outline-none", c),
|
|
807
808
|
children: [
|
|
808
809
|
/* @__PURE__ */ F("span", {
|
|
809
810
|
"aria-hidden": !0,
|
|
@@ -815,7 +816,7 @@ var Y = Xe, Ze = 4, Qe = 3, $e = 1.3, et = 1.08, X = "cubic-bezier(0.16, 1, 0.3,
|
|
|
815
816
|
height: tt
|
|
816
817
|
}
|
|
817
818
|
}),
|
|
818
|
-
|
|
819
|
+
p.map((e, t) => /* @__PURE__ */ F("span", {
|
|
819
820
|
className: "absolute left-0 top-0 flex leading-none",
|
|
820
821
|
style: {
|
|
821
822
|
zIndex: t,
|
|
@@ -827,9 +828,9 @@ var Y = Xe, Ze = 4, Qe = 3, $e = 1.3, et = 1.08, X = "cubic-bezier(0.16, 1, 0.3,
|
|
|
827
828
|
})
|
|
828
829
|
}, t)),
|
|
829
830
|
h ? (() => {
|
|
830
|
-
let [e, t] = _[
|
|
831
|
+
let [e, t] = _[p.length] ?? [0, 0];
|
|
831
832
|
return /* @__PURE__ */ I("span", {
|
|
832
|
-
className:
|
|
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"),
|
|
833
834
|
style: {
|
|
834
835
|
zIndex: Qe,
|
|
835
836
|
backgroundColor: "hsl(var(--white-90))",
|
|
@@ -923,25 +924,25 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
|
|
|
923
924
|
}), j(() => {
|
|
924
925
|
a.style.zIndex = n ? "2" : "";
|
|
925
926
|
}, [a, n]), se(i, a);
|
|
926
|
-
}, st = ({ adapter: e, points: t, selectedId: n, highlightedId: r, onSelect:
|
|
927
|
-
let u =
|
|
927
|
+
}, st = ({ adapter: e, points: t, selectedId: n, highlightedId: r, onSelect: a, onMarkerDrag: o, onMarkerDragEnd: s, onClusterExpand: c }) => {
|
|
928
|
+
let u = i(), d = !!s, f = M(() => d ? t.filter((e) => !e.draggable) : t, [t, d]), m = Ie({
|
|
928
929
|
adapter: e,
|
|
929
|
-
points:
|
|
930
|
+
points: f,
|
|
930
931
|
enabled: !0
|
|
931
932
|
}), { clusters: h } = m, g = M(() => {
|
|
932
|
-
if (
|
|
933
|
+
if (f === t) return m.singles;
|
|
933
934
|
let e = new Set(m.singles);
|
|
934
935
|
return t.filter((t) => t.draggable || e.has(t));
|
|
935
936
|
}, [
|
|
936
937
|
m.singles,
|
|
937
|
-
|
|
938
|
+
f,
|
|
938
939
|
t
|
|
939
940
|
]), _ = J(e, it) ? "lg" : "md", v = We(e, g, _), y = new Map(t.map((e) => [e.id, e])), b = h.length > 0, x = at(e, n ? y.get(n) : void 0, g, _);
|
|
940
|
-
return /* @__PURE__ */ I(
|
|
941
|
+
return /* @__PURE__ */ I(p, { children: [h.map((t) => /* @__PURE__ */ F($, {
|
|
941
942
|
adapter: e,
|
|
942
943
|
coordinates: t.coordinates,
|
|
943
944
|
selected: !1,
|
|
944
|
-
children: /* @__PURE__ */ F(
|
|
945
|
+
children: /* @__PURE__ */ F(l.span, {
|
|
945
946
|
initial: {
|
|
946
947
|
scale: .8,
|
|
947
948
|
opacity: 0
|
|
@@ -968,20 +969,20 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
|
|
|
968
969
|
children: /* @__PURE__ */ F(Z, {
|
|
969
970
|
count: t.count,
|
|
970
971
|
members: t.pointIds.map((e) => y.get(e)).filter((e) => !!e).map(ot),
|
|
971
|
-
onClick: () =>
|
|
972
|
+
onClick: () => c(t.bounds)
|
|
972
973
|
})
|
|
973
974
|
})
|
|
974
975
|
}, t.id)), g.map((t) => {
|
|
975
|
-
let
|
|
976
|
+
let i = v[t.id], c = x?.has(t.id) ?? !1, d = r === t.id;
|
|
976
977
|
return /* @__PURE__ */ F($, {
|
|
977
978
|
adapter: e,
|
|
978
979
|
coordinates: t.coordinates,
|
|
979
|
-
selected: n === t.id ||
|
|
980
|
+
selected: n === t.id || d,
|
|
980
981
|
drag: t.draggable && s ? {
|
|
981
|
-
onDrag:
|
|
982
|
+
onDrag: o && ((e) => o(t.id, e)),
|
|
982
983
|
onDragEnd: (e) => s(t.id, e)
|
|
983
984
|
} : void 0,
|
|
984
|
-
children: /* @__PURE__ */ F(
|
|
985
|
+
children: /* @__PURE__ */ F(l.span, {
|
|
985
986
|
initial: { opacity: 0 },
|
|
986
987
|
animate: { opacity: 1 },
|
|
987
988
|
exit: {
|
|
@@ -996,9 +997,9 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
|
|
|
996
997
|
ease: "easeOut"
|
|
997
998
|
},
|
|
998
999
|
className: "absolute left-0 top-0",
|
|
999
|
-
children: /* @__PURE__ */ F(
|
|
1000
|
+
children: /* @__PURE__ */ F(p, {
|
|
1000
1001
|
initial: !1,
|
|
1001
|
-
children: /* @__PURE__ */ F(
|
|
1002
|
+
children: /* @__PURE__ */ F(l.span, {
|
|
1002
1003
|
initial: { opacity: 0 },
|
|
1003
1004
|
animate: { opacity: 1 },
|
|
1004
1005
|
exit: { opacity: 0 },
|
|
@@ -1011,11 +1012,11 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
|
|
|
1011
1012
|
...ot(t),
|
|
1012
1013
|
size: _,
|
|
1013
1014
|
label: t.label,
|
|
1014
|
-
showLabel: n === t.id ||
|
|
1015
|
-
labelPlacement:
|
|
1015
|
+
showLabel: n === t.id || d || !b && i !== null,
|
|
1016
|
+
labelPlacement: i ?? "right",
|
|
1016
1017
|
selected: n === t.id,
|
|
1017
|
-
collapsed:
|
|
1018
|
-
onClick: () =>
|
|
1018
|
+
collapsed: c,
|
|
1019
|
+
onClick: () => a(t.id),
|
|
1019
1020
|
presentational: !0,
|
|
1020
1021
|
ariaLabel: t.label ?? u.map.unnamedLocation
|
|
1021
1022
|
})
|
|
@@ -1024,8 +1025,8 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
|
|
|
1024
1025
|
})
|
|
1025
1026
|
}, t.id);
|
|
1026
1027
|
})] });
|
|
1027
|
-
}, ct = ({ children: e, open: t, offsetX: n, offsetY:
|
|
1028
|
-
let m =
|
|
1028
|
+
}, ct = ({ children: e, open: t, offsetX: n, offsetY: o = U.inset, width: s, entrance: c = "slide", headerStart: l, headerEnd: u, ariaLabel: f, dataTestId: p }) => {
|
|
1029
|
+
let m = i(), h = d(), g = t ? W.enter : W.exit, _ = n - U.inset, v = N({
|
|
1029
1030
|
from: _,
|
|
1030
1031
|
to: _
|
|
1031
1032
|
});
|
|
@@ -1033,15 +1034,15 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
|
|
|
1033
1034
|
from: v.current.to,
|
|
1034
1035
|
to: _
|
|
1035
1036
|
});
|
|
1036
|
-
let y = _ > v.current.from ? W.enter : W.exit, x =
|
|
1037
|
-
return /* @__PURE__ */ F(
|
|
1038
|
-
dataTestId:
|
|
1037
|
+
let y = _ > v.current.from ? W.enter : W.exit, x = c === "grow" ? "translateX(-10%) scale(0.97)" : `translateX(calc(-100% - ${U.inset}px))`;
|
|
1038
|
+
return /* @__PURE__ */ F(r, {
|
|
1039
|
+
dataTestId: p,
|
|
1039
1040
|
children: /* @__PURE__ */ F("div", {
|
|
1040
1041
|
className: "pointer-events-none absolute bottom-2 z-10",
|
|
1041
1042
|
style: {
|
|
1042
1043
|
left: U.inset,
|
|
1043
|
-
top:
|
|
1044
|
-
width:
|
|
1044
|
+
top: o,
|
|
1045
|
+
width: s,
|
|
1045
1046
|
transform: `translateX(${_}px)`,
|
|
1046
1047
|
transitionProperty: h ? "none" : "transform, top",
|
|
1047
1048
|
transitionDuration: y.duration,
|
|
@@ -1049,14 +1050,14 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
|
|
|
1049
1050
|
},
|
|
1050
1051
|
children: /* @__PURE__ */ F("div", {
|
|
1051
1052
|
role: "complementary",
|
|
1052
|
-
"aria-label":
|
|
1053
|
+
"aria-label": f ?? m.map.panel,
|
|
1053
1054
|
ref: (e) => {
|
|
1054
1055
|
t ? e?.removeAttribute("inert") : e?.setAttribute("inert", "");
|
|
1055
1056
|
},
|
|
1056
|
-
className:
|
|
1057
|
+
className: a("relative h-full overflow-hidden text-base", je(H.panel), t ? "pointer-events-auto" : "opacity-0"),
|
|
1057
1058
|
style: {
|
|
1058
1059
|
transform: t || h ? "translateX(0px) scale(1)" : x,
|
|
1059
|
-
transformOrigin:
|
|
1060
|
+
transformOrigin: c === "grow" ? "left center" : void 0,
|
|
1060
1061
|
transitionProperty: h ? "opacity" : "transform, opacity",
|
|
1061
1062
|
transitionDuration: g.duration,
|
|
1062
1063
|
transitionTimingFunction: g.easing
|
|
@@ -1068,12 +1069,12 @@ var Z = rt, it = 16, Q = (e, t, n, r) => {
|
|
|
1068
1069
|
height: "full",
|
|
1069
1070
|
children: /* @__PURE__ */ I("div", {
|
|
1070
1071
|
className: "flex h-full flex-col",
|
|
1071
|
-
children: [
|
|
1072
|
+
children: [l || u ? /* @__PURE__ */ I("div", {
|
|
1072
1073
|
className: "flex shrink-0 items-center justify-between gap-1 p-0.5",
|
|
1073
1074
|
children: [/* @__PURE__ */ F("div", {
|
|
1074
1075
|
className: "flex min-w-0 flex-1 justify-start",
|
|
1075
|
-
children:
|
|
1076
|
-
}),
|
|
1076
|
+
children: l
|
|
1077
|
+
}), u]
|
|
1077
1078
|
}) : null, /* @__PURE__ */ F("div", {
|
|
1078
1079
|
className: "min-h-0 flex-1",
|
|
1079
1080
|
children: e
|
|
@@ -1116,35 +1117,35 @@ function vt({ enabled: e, children: t, ...n }) {
|
|
|
1116
1117
|
});
|
|
1117
1118
|
}
|
|
1118
1119
|
function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
1119
|
-
let { isInstant: r, landInstantly:
|
|
1120
|
+
let { isInstant: r, landInstantly: i } = gt(), a = _t(), [o, s] = P(ne.primary), [c, l] = P(ne.panel), [d, f] = g({
|
|
1120
1121
|
key: ft,
|
|
1121
1122
|
fallback: null,
|
|
1122
1123
|
validate: pt,
|
|
1123
1124
|
debounceMs: 200
|
|
1124
|
-
}), p = lt(
|
|
1125
|
-
|
|
1126
|
-
}, []), v = N(
|
|
1127
|
-
e !== v.current && (v.current = e,
|
|
1128
|
-
}, [
|
|
1129
|
-
|
|
1130
|
-
}, [
|
|
1131
|
-
|
|
1132
|
-
}, [
|
|
1125
|
+
}), p = lt(a, o, Math.max(320, c)), m = Math.min(c, p), h = d === null ? m : ut(d, p), _ = k(function(e) {
|
|
1126
|
+
s(e);
|
|
1127
|
+
}, []), v = N(c), y = k(function(e) {
|
|
1128
|
+
e !== v.current && (v.current = e, i(), l(e));
|
|
1129
|
+
}, [i]), b = k(function(e) {
|
|
1130
|
+
i(), f(e);
|
|
1131
|
+
}, [i, f]), x = k(function() {
|
|
1132
|
+
i(), f(null);
|
|
1133
|
+
}, [i, f]), S = u(`(max-width: ${o + (e ? m : ne.panel) + te.mainMin - 1}px)`, { initializeWithValue: !0 }) ? "overlay" : "docked", [ee, C] = P(!1), w = N(0), T = k(function() {
|
|
1133
1134
|
C(!1);
|
|
1134
1135
|
}, []);
|
|
1135
1136
|
ae(function() {
|
|
1136
|
-
|
|
1137
|
+
i(), S === "docked" && T();
|
|
1137
1138
|
}, [
|
|
1138
1139
|
S,
|
|
1139
|
-
|
|
1140
|
+
i,
|
|
1140
1141
|
T
|
|
1141
1142
|
]);
|
|
1142
1143
|
let E = S === "overlay" && ee && e;
|
|
1143
1144
|
ae(function() {
|
|
1144
|
-
|
|
1145
|
+
i(), e || T();
|
|
1145
1146
|
}, [
|
|
1146
1147
|
e,
|
|
1147
|
-
|
|
1148
|
+
i,
|
|
1148
1149
|
T
|
|
1149
1150
|
]);
|
|
1150
1151
|
let D = N(e);
|
|
@@ -1175,8 +1176,8 @@ function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
|
1175
1176
|
Date.now() - w.current < dt || C(!1);
|
|
1176
1177
|
}, []), I = M(function() {
|
|
1177
1178
|
return {
|
|
1178
|
-
primarySidebarWidth:
|
|
1179
|
-
reportPrimarySidebarWidth:
|
|
1179
|
+
primarySidebarWidth: o,
|
|
1180
|
+
reportPrimarySidebarWidth: _,
|
|
1180
1181
|
hasSecondarySidebar: e,
|
|
1181
1182
|
secondarySidebarWidth: h,
|
|
1182
1183
|
secondarySidebarMaxWidth: p,
|
|
@@ -1191,11 +1192,11 @@ function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
|
1191
1192
|
closeOverPageAfterRouteChange: oe,
|
|
1192
1193
|
topBarHeight: t,
|
|
1193
1194
|
isInstant: r,
|
|
1194
|
-
landInstantly:
|
|
1195
|
+
landInstantly: i
|
|
1195
1196
|
};
|
|
1196
1197
|
}, [
|
|
1197
|
-
|
|
1198
|
-
|
|
1198
|
+
o,
|
|
1199
|
+
_,
|
|
1199
1200
|
e,
|
|
1200
1201
|
h,
|
|
1201
1202
|
p,
|
|
@@ -1210,7 +1211,7 @@ function yt({ hasSecondarySidebar: e, topBarHeight: t, children: n }) {
|
|
|
1210
1211
|
oe,
|
|
1211
1212
|
t,
|
|
1212
1213
|
r,
|
|
1213
|
-
|
|
1214
|
+
i
|
|
1214
1215
|
]);
|
|
1215
1216
|
return /* @__PURE__ */ F(mt.Provider, {
|
|
1216
1217
|
value: I,
|
|
@@ -1237,26 +1238,26 @@ function wt() {
|
|
|
1237
1238
|
}
|
|
1238
1239
|
var Tt = (e, t) => e.navigationMode === "overlay" ? e.isOpenOverPage ? "unlocked" : "hidden" : t ? "locked" : "hidden", Et = (e, t, n) => e || !t ? n ? "unlocked" : "hidden" : "locked";
|
|
1239
1240
|
function Dt({ children: e }) {
|
|
1240
|
-
let { currentPath: t } =
|
|
1241
|
+
let { currentPath: t } = s(), n = ht(), [r, i] = P(!1), [a, o] = P(!1), c = r ? T.xl : T.md, l = u(`(max-width: ${c}px)`, { initializeWithValue: !0 }), [d, f] = P(() => {
|
|
1241
1242
|
let e = localStorage.getItem(bt);
|
|
1242
1243
|
return e === null || !!e;
|
|
1243
1244
|
}), [p, m] = P(!1), [h, g] = P(null), _ = k(function() {
|
|
1244
1245
|
n ? n.closeOverPage() : m(!1);
|
|
1245
1246
|
}, [n]), v = k(function({ isInvokedByUser: e } = { isInvokedByUser: !0 }) {
|
|
1246
|
-
n?.navigationMode === "overlay" ? n.toggleOverPage() : (
|
|
1247
|
+
n?.navigationMode === "overlay" ? n.toggleOverPage() : (o(e ?? !0), l && !n && m(!p), f(!d));
|
|
1247
1248
|
}, [
|
|
1248
1249
|
n,
|
|
1249
1250
|
l,
|
|
1250
1251
|
p,
|
|
1251
|
-
|
|
1252
|
+
d
|
|
1252
1253
|
]), y = k(function(e) {
|
|
1253
1254
|
l || n || St.has(e.nativeEvent) || (e.clientX < 32 && m(!0), e.clientX > 280 && m(!1));
|
|
1254
|
-
}, [l, n]), b = n ? Tt(n,
|
|
1255
|
+
}, [l, n]), b = n ? Tt(n, d) : Et(l, d, p), x = n?.closeOverPageAfterRouteChange;
|
|
1255
1256
|
j(function() {
|
|
1256
1257
|
m(!1), x?.();
|
|
1257
1258
|
}, [t, x]), j(function() {
|
|
1258
|
-
|
|
1259
|
-
}, [
|
|
1259
|
+
a && localStorage.setItem(bt, d ? "1" : "");
|
|
1260
|
+
}, [d, a]), j(function() {
|
|
1260
1261
|
return () => {
|
|
1261
1262
|
g(b);
|
|
1262
1263
|
};
|
|
@@ -1264,17 +1265,17 @@ function Dt({ children: e }) {
|
|
|
1264
1265
|
let S = n !== null, ee = M(function() {
|
|
1265
1266
|
return {
|
|
1266
1267
|
isSmallScreen: l,
|
|
1267
|
-
isLastToggleInvokedByUser:
|
|
1268
|
+
isLastToggleInvokedByUser: a,
|
|
1268
1269
|
sidebarState: b,
|
|
1269
1270
|
hideSidebar: _,
|
|
1270
1271
|
toggleSidebar: v,
|
|
1271
1272
|
prevSidebarState: h,
|
|
1272
|
-
setForceFloat:
|
|
1273
|
+
setForceFloat: i,
|
|
1273
1274
|
hasPrimarySidebar: S
|
|
1274
1275
|
};
|
|
1275
1276
|
}, [
|
|
1276
1277
|
l,
|
|
1277
|
-
|
|
1278
|
+
a,
|
|
1278
1279
|
b,
|
|
1279
1280
|
_,
|
|
1280
1281
|
v,
|
|
@@ -1297,8 +1298,15 @@ var { duration: Ot, ease: kt, settleMs: At } = w, jt = At, Mt = {
|
|
|
1297
1298
|
ease: kt.outSwift
|
|
1298
1299
|
}, Nt = {
|
|
1299
1300
|
duration: Ot.reveal,
|
|
1300
|
-
ease:
|
|
1301
|
-
|
|
1301
|
+
ease: [
|
|
1302
|
+
.2,
|
|
1303
|
+
0,
|
|
1304
|
+
0,
|
|
1305
|
+
1
|
|
1306
|
+
]
|
|
1307
|
+
};
|
|
1308
|
+
Ot.fast, kt.outSwift;
|
|
1309
|
+
var Pt = { duration: 0 }, Ft = (e, t = !1) => e || t ? Pt : Mt, It = (e, t, n = !1) => e || n ? Pt : t ? Nt : Mt, Lt = ({ coversFrame: e, isFullscreen: t, isClosingFromFullscreen: n, isActivePanel: r, reservedWidth: i }) => e || (t || n) && r ? "100%" : i, Rt = "duration-base ease-out-swift motion-reduce:transition-none", zt = D("classic"), Bt = zt.Provider, Vt = () => A(zt), Ht = "M10.417 10L14.167 10M10.417 10L12.0837 8.33337M10.417 10L12.0837 11.6667", Ut = {
|
|
1302
1310
|
open: {
|
|
1303
1311
|
rest: {
|
|
1304
1312
|
arrow: "opacity-0 translate-x-0",
|
|
@@ -1346,42 +1354,42 @@ function Gt({ isExpanded: e, isHovered: t = !1 }) {
|
|
|
1346
1354
|
strokeWidth: "1.3",
|
|
1347
1355
|
strokeLinecap: "round",
|
|
1348
1356
|
strokeLinejoin: "round",
|
|
1349
|
-
className:
|
|
1357
|
+
className: a("stroke-current", Wt, Rt, "origin-[10.5835px_10px]", e ? "scale-x-100" : "-scale-x-100", n.arrow)
|
|
1350
1358
|
}),
|
|
1351
1359
|
/* @__PURE__ */ F("path", {
|
|
1352
1360
|
id: "line",
|
|
1353
1361
|
d: "M7.5 5L7.5 15",
|
|
1354
1362
|
strokeWidth: "1.3",
|
|
1355
1363
|
strokeLinecap: "round",
|
|
1356
|
-
className:
|
|
1364
|
+
className: a("stroke-current", Wt, Rt, n.line)
|
|
1357
1365
|
})
|
|
1358
1366
|
]
|
|
1359
1367
|
});
|
|
1360
1368
|
}
|
|
1361
1369
|
function Kt() {
|
|
1362
|
-
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n } = wt(),
|
|
1370
|
+
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n } = wt(), r = N(null), [a, o] = P(!1), s = Vt() === "two-level";
|
|
1363
1371
|
j(function() {
|
|
1364
|
-
s && e === "hidden" && t !== "hidden" &&
|
|
1372
|
+
s && e === "hidden" && t !== "hidden" && r.current?.focus();
|
|
1365
1373
|
}, [
|
|
1366
1374
|
s,
|
|
1367
1375
|
e,
|
|
1368
1376
|
t
|
|
1369
1377
|
]);
|
|
1370
|
-
let
|
|
1371
|
-
return /* @__PURE__ */ F(
|
|
1378
|
+
let l = i(), u = t !== "hidden", d = u ? l.navigation.sidebar.closePanel : l.navigation.sidebar.openPanel;
|
|
1379
|
+
return /* @__PURE__ */ F(c, {
|
|
1372
1380
|
variant: "ghost",
|
|
1373
1381
|
size: "md",
|
|
1374
1382
|
onClick: () => n(),
|
|
1375
1383
|
className: "hover:bg-f1-background-hover",
|
|
1376
|
-
title:
|
|
1377
|
-
ref:
|
|
1384
|
+
title: d,
|
|
1385
|
+
ref: r,
|
|
1378
1386
|
compact: !0,
|
|
1379
|
-
"aria-label":
|
|
1380
|
-
"aria-expanded":
|
|
1387
|
+
"aria-label": d,
|
|
1388
|
+
"aria-expanded": u,
|
|
1381
1389
|
onMouseEnter: () => o(!0),
|
|
1382
1390
|
onMouseLeave: () => o(!1),
|
|
1383
1391
|
children: /* @__PURE__ */ F(Gt, {
|
|
1384
|
-
isExpanded:
|
|
1392
|
+
isExpanded: u,
|
|
1385
1393
|
isHovered: a
|
|
1386
1394
|
})
|
|
1387
1395
|
});
|
|
@@ -1411,37 +1419,37 @@ function qt({ isExpanded: e }) {
|
|
|
1411
1419
|
strokeWidth: "1.3",
|
|
1412
1420
|
strokeLinecap: "round",
|
|
1413
1421
|
strokeLinejoin: "round",
|
|
1414
|
-
className:
|
|
1422
|
+
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]")
|
|
1415
1423
|
}),
|
|
1416
1424
|
/* @__PURE__ */ F("path", {
|
|
1417
1425
|
id: "line",
|
|
1418
1426
|
d: "M7.5 5L7.5 15",
|
|
1419
1427
|
strokeWidth: "1.3",
|
|
1420
1428
|
strokeLinecap: "round",
|
|
1421
|
-
className:
|
|
1429
|
+
className: a("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")
|
|
1422
1430
|
})
|
|
1423
1431
|
]
|
|
1424
1432
|
});
|
|
1425
1433
|
}
|
|
1426
1434
|
function Jt() {
|
|
1427
|
-
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n, isSmallScreen:
|
|
1435
|
+
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n, isSmallScreen: r } = wt(), i = N(null);
|
|
1428
1436
|
return j(() => {
|
|
1429
|
-
e === "hidden" && t === "locked" &&
|
|
1430
|
-
}, [e, t]), /* @__PURE__ */ I(
|
|
1437
|
+
e === "hidden" && t === "locked" && i.current?.focus();
|
|
1438
|
+
}, [e, t]), /* @__PURE__ */ I(c, {
|
|
1431
1439
|
variant: "ghost",
|
|
1432
1440
|
size: "md",
|
|
1433
1441
|
onClick: () => n(),
|
|
1434
1442
|
className: "group hover:bg-f1-background-hover",
|
|
1435
1443
|
title: "Close Sidebar",
|
|
1436
|
-
ref:
|
|
1444
|
+
ref: i,
|
|
1437
1445
|
compact: !0,
|
|
1438
1446
|
"aria-label": "Close Sidebar",
|
|
1439
1447
|
children: [/* @__PURE__ */ F("div", {
|
|
1440
|
-
className:
|
|
1448
|
+
className: a("hidden", { flex: !r }),
|
|
1441
1449
|
children: /* @__PURE__ */ F(qt, { isExpanded: t === "locked" })
|
|
1442
1450
|
}), /* @__PURE__ */ F("div", {
|
|
1443
|
-
className:
|
|
1444
|
-
children: /* @__PURE__ */ F(
|
|
1451
|
+
className: a("hidden", { flex: r }),
|
|
1452
|
+
children: /* @__PURE__ */ F(y, {
|
|
1445
1453
|
icon: h,
|
|
1446
1454
|
size: "md"
|
|
1447
1455
|
})
|
|
@@ -1454,22 +1462,22 @@ function Yt() {
|
|
|
1454
1462
|
}
|
|
1455
1463
|
//#endregion
|
|
1456
1464
|
//#region src/addons/map/F0Map/components/F0MapSidebarToggle/F0MapSidebarToggle.tsx
|
|
1457
|
-
var Xt = O(({ expanded: e, onToggle: t, label: n, bare:
|
|
1458
|
-
let
|
|
1459
|
-
ref:
|
|
1465
|
+
var Xt = O(({ expanded: e, onToggle: t, label: n, bare: a = !1, dataTestId: o }, s) => {
|
|
1466
|
+
let l = i(), u = n ?? (e ? l.map.controls.hidePanel : l.map.controls.showPanel), d = /* @__PURE__ */ F(c, {
|
|
1467
|
+
ref: s,
|
|
1460
1468
|
variant: "ghost",
|
|
1461
1469
|
size: "md",
|
|
1462
1470
|
compact: !0,
|
|
1463
1471
|
className: "group",
|
|
1464
1472
|
onClick: t,
|
|
1465
|
-
title:
|
|
1466
|
-
"aria-label":
|
|
1473
|
+
title: u,
|
|
1474
|
+
"aria-label": u,
|
|
1467
1475
|
"aria-expanded": e,
|
|
1468
1476
|
children: /* @__PURE__ */ F(qt, { isExpanded: e })
|
|
1469
1477
|
});
|
|
1470
|
-
return /* @__PURE__ */ F(
|
|
1471
|
-
dataTestId:
|
|
1472
|
-
children:
|
|
1478
|
+
return /* @__PURE__ */ F(r, {
|
|
1479
|
+
dataTestId: o,
|
|
1480
|
+
children: a ? d : /* @__PURE__ */ F(Ne, { children: d })
|
|
1473
1481
|
});
|
|
1474
1482
|
});
|
|
1475
1483
|
Xt.displayName = "F0MapSidebarToggle";
|
|
@@ -1546,12 +1554,12 @@ nn.displayName = "CurrentLocationLayer";
|
|
|
1546
1554
|
var rn = {
|
|
1547
1555
|
curve: 1.42,
|
|
1548
1556
|
duration: 1400
|
|
1549
|
-
}, an = 200, on = ({ dataTestId: e, className: t }) => /* @__PURE__ */ F(
|
|
1557
|
+
}, an = 200, on = ({ dataTestId: e, className: t }) => /* @__PURE__ */ F(r, {
|
|
1550
1558
|
dataTestId: e,
|
|
1551
1559
|
children: /* @__PURE__ */ F("div", {
|
|
1552
1560
|
"aria-busy": "true",
|
|
1553
1561
|
"aria-live": "polite",
|
|
1554
|
-
className:
|
|
1562
|
+
className: a("h-full w-full animate-pulse bg-f1-background-secondary", t)
|
|
1555
1563
|
})
|
|
1556
1564
|
}), sn = (e) => {
|
|
1557
1565
|
let [t, n] = P(null), r = k((t) => {
|
|
@@ -1593,7 +1601,7 @@ var rn = {
|
|
|
1593
1601
|
isDark: e
|
|
1594
1602
|
};
|
|
1595
1603
|
}, ln = {
|
|
1596
|
-
maplibre: async () => (await import("./maplibre-
|
|
1604
|
+
maplibre: async () => (await import("./maplibre-g-8NG-3q.js")).createMaplibreAdapter,
|
|
1597
1605
|
google: async (e) => (await import("./google-D1V0swd7.js")).loadGoogleAdapter(e)
|
|
1598
1606
|
}, un = /* @__PURE__ */ new Map(), dn = (e, t) => {
|
|
1599
1607
|
let n = un.get(e);
|
|
@@ -11747,8 +11755,8 @@ var rn = {
|
|
|
11747
11755
|
maxZoom: u
|
|
11748
11756
|
});
|
|
11749
11757
|
d && (n ? e.easeTo(d, { animate: n }) : e.jumpTo(d, { animate: n }));
|
|
11750
|
-
}, Dn = (e) => `${e.top},${e.right},${e.bottom},${e.left}`, On = O(function({ markers: n = [], routes:
|
|
11751
|
-
let Ce = C ?? (D ? "greedy" : "cooperative"), L =
|
|
11758
|
+
}, Dn = (e) => `${e.top},${e.right},${e.bottom},${e.left}`, On = O(function({ markers: n = [], routes: o = [], arcs: s = [], areas: c = [], onRouteClick: l, onArcClick: u, selectedMarkerId: f, defaultSelectedMarkerId: p = null, onMarkerSelect: m, onMarkerDrag: h, onMarkerDragEnd: g, highlightedId: _ = null, viewportInset: v, centerOnMarkerClick: y = !1, fitToMarkers: b, initialViewport: x, mapStyle: S, interactive: ee = !0, gestureHandling: C, minZoom: w, maxZoom: T = 18, showControls: te = !0, controlLabels: ne, showCurrentLocation: E = !1, fullScreen: D = !1, onSidebarToggle: O, sidebarExpanded: A = !1, sidebarToggleAddon: ae, sidebarHeaderStart: M, sidebar: se, detail: pe, detailOpen: me = !1, clearSelectionOnBackgroundClick: he = !0, projection: ge = "mercator", provider: _e, loading: ve = !1, ariaLabel: ye, dataTestId: be, className: xe }, Se) {
|
|
11759
|
+
let Ce = C ?? (D ? "greedy" : "cooperative"), L = i(), R = e(_e), we = t(), Te = N(null), z = N(null), [B, Ee] = P(null), [V, De] = P(!1), [ke, H] = P(!1), [Ae, je] = P(0), Me = re(), G = d(), { containerRef: Ie, isDark: Le } = cn(), Re = k((e) => {
|
|
11752
11760
|
Te.current = e, Ie(e);
|
|
11753
11761
|
}, [Ie]), ze = Le, Be = !S || S.provider === R, Ve = Be ? S ?? xn(R) : xn(R), K = ze ? Ve.dark : Ve.light, He = N(!1);
|
|
11754
11762
|
j(() => {
|
|
@@ -11758,16 +11766,16 @@ var rn = {
|
|
|
11758
11766
|
S?.provider,
|
|
11759
11767
|
R
|
|
11760
11768
|
]);
|
|
11761
|
-
let [Ue, We] = P(
|
|
11762
|
-
|
|
11763
|
-
}, [
|
|
11769
|
+
let [Ue, We] = P(p), q = f === void 0 ? Ue : f, Ge = k((e) => {
|
|
11770
|
+
f === void 0 && We(e), m?.(e);
|
|
11771
|
+
}, [f, m]), J = A && !!O, Ke = me && !!pe, qe = J ? U.inset + U.listWidth + U.gap : U.inset, Je = J ? U.inset : U.inset + U.toggleSize + U.gap, Ye = Ke ? qe + U.detailWidth : J ? U.inset + U.listWidth : null, Xe = ce(v, { left: Ye === null ? 0 : Ye + U.gap }), Y = N(n);
|
|
11764
11772
|
Y.current = n;
|
|
11765
|
-
let Ze = N(
|
|
11766
|
-
Ze.current =
|
|
11767
|
-
let Qe = N(
|
|
11768
|
-
Qe.current =
|
|
11769
|
-
let $e = N(
|
|
11770
|
-
$e.current =
|
|
11773
|
+
let Ze = N(o);
|
|
11774
|
+
Ze.current = o;
|
|
11775
|
+
let Qe = N(s);
|
|
11776
|
+
Qe.current = s;
|
|
11777
|
+
let $e = N(c);
|
|
11778
|
+
$e.current = c;
|
|
11771
11779
|
let et = N(ge);
|
|
11772
11780
|
et.current = ge;
|
|
11773
11781
|
let X = N(Ge);
|
|
@@ -11983,7 +11991,7 @@ var rn = {
|
|
|
11983
11991
|
});
|
|
11984
11992
|
u && t.easeTo({ center: u }, { animate: a });
|
|
11985
11993
|
}, [wt, Q]);
|
|
11986
|
-
let Et =
|
|
11994
|
+
let Et = o.length > 0 || s.length > 0, Dt = Ye === null ? 0 : Ye + U.gap - U.inset, Ot = N({
|
|
11987
11995
|
from: Dt,
|
|
11988
11996
|
to: Dt
|
|
11989
11997
|
});
|
|
@@ -11992,13 +12000,13 @@ var rn = {
|
|
|
11992
12000
|
to: Dt
|
|
11993
12001
|
});
|
|
11994
12002
|
let kt = Dt > Ot.current.from ? W.enter : W.exit, At = J ? W.enter : W.exit;
|
|
11995
|
-
return /* @__PURE__ */ F(
|
|
12003
|
+
return /* @__PURE__ */ F(r, {
|
|
11996
12004
|
dataTestId: be,
|
|
11997
12005
|
children: ve ? /* @__PURE__ */ F(on, { className: xe }) : /* @__PURE__ */ I("div", {
|
|
11998
12006
|
ref: Re,
|
|
11999
12007
|
role: "region",
|
|
12000
12008
|
"aria-label": ye ?? L.map.region,
|
|
12001
|
-
className:
|
|
12009
|
+
className: a("f0-map relative h-full w-full overflow-hidden", ze && "dark", !D && "rounded-2xl border border-solid border-f1-border-secondary", xe),
|
|
12002
12010
|
children: [
|
|
12003
12011
|
/* @__PURE__ */ F("a", {
|
|
12004
12012
|
href: `#${Me}`,
|
|
@@ -12011,9 +12019,9 @@ var rn = {
|
|
|
12011
12019
|
className: "sr-only",
|
|
12012
12020
|
children: `${n.length} ${n.length === 1 ? L.map.location : L.map.locations}`
|
|
12013
12021
|
}),
|
|
12014
|
-
!V && B &&
|
|
12022
|
+
!V && B && c.length > 0 ? /* @__PURE__ */ F(Oe, {
|
|
12015
12023
|
adapter: B,
|
|
12016
|
-
areas:
|
|
12024
|
+
areas: c,
|
|
12017
12025
|
isDark: ze
|
|
12018
12026
|
}) : null,
|
|
12019
12027
|
!V && B && dt ? /* @__PURE__ */ I(oe, { children: [/* @__PURE__ */ F(nn, {
|
|
@@ -12025,11 +12033,11 @@ var rn = {
|
|
|
12025
12033
|
})] }) : null,
|
|
12026
12034
|
!V && B && Et ? /* @__PURE__ */ F(tn, {
|
|
12027
12035
|
adapter: B,
|
|
12028
|
-
routes:
|
|
12029
|
-
arcs:
|
|
12036
|
+
routes: o,
|
|
12037
|
+
arcs: s,
|
|
12030
12038
|
isDark: ze,
|
|
12031
|
-
onRouteClick:
|
|
12032
|
-
onArcClick:
|
|
12039
|
+
onRouteClick: l,
|
|
12040
|
+
onArcClick: u
|
|
12033
12041
|
}) : null,
|
|
12034
12042
|
!V && B && n.length > 0 ? /* @__PURE__ */ F(st, {
|
|
12035
12043
|
adapter: B,
|
|
@@ -12051,7 +12059,7 @@ var rn = {
|
|
|
12051
12059
|
children: pe
|
|
12052
12060
|
}) : null,
|
|
12053
12061
|
!V && B && O ? /* @__PURE__ */ F("div", {
|
|
12054
|
-
className:
|
|
12062
|
+
className: a("absolute left-2 top-2 z-10", J && "opacity-0"),
|
|
12055
12063
|
style: {
|
|
12056
12064
|
transitionProperty: G ? "none" : "opacity",
|
|
12057
12065
|
transitionDuration: At.duration,
|
|
@@ -12083,7 +12091,7 @@ var rn = {
|
|
|
12083
12091
|
children: se
|
|
12084
12092
|
}) : null,
|
|
12085
12093
|
!V && B && te && ee ? /* @__PURE__ */ F("div", {
|
|
12086
|
-
className:
|
|
12094
|
+
className: a("absolute left-2 z-10", R === "google" ? "bottom-8" : "bottom-2"),
|
|
12087
12095
|
style: {
|
|
12088
12096
|
transform: `translateX(${Dt}px)`,
|
|
12089
12097
|
transitionProperty: G ? "none" : "transform",
|
|
@@ -12093,7 +12101,7 @@ var rn = {
|
|
|
12093
12101
|
children: /* @__PURE__ */ F(Pe, {
|
|
12094
12102
|
onZoomIn: pt,
|
|
12095
12103
|
onZoomOut: mt,
|
|
12096
|
-
onFit: n.length > 0 || Et ||
|
|
12104
|
+
onFit: n.length > 0 || Et || c.length > 0 ? ht : void 0,
|
|
12097
12105
|
onLocate: gt,
|
|
12098
12106
|
labels: ne
|
|
12099
12107
|
})
|
|
@@ -12126,4 +12134,4 @@ var rn = {
|
|
|
12126
12134
|
On.displayName = "F0Map";
|
|
12127
12135
|
var kn = On;
|
|
12128
12136
|
//#endregion
|
|
12129
|
-
export {
|
|
12137
|
+
export { Pe as A, Ct as C, ct as D, ht as E, Ke as O, Dt as S, vt as T, Rt as _, bn as a, It as b, an as c, qt as d, Bt as f, jt as g, Pt as h, _n as i, Fe as k, Xt as l, Mt as m, xn as n, on as o, Vt as p, gn as r, rn as s, kn as t, Yt as u, Nt as v, wt as w, Lt as x, Ft as y };
|