@factorialco/f0-react 7.35.0 → 7.35.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/{ChatPdfThumbnail-BDgzIfCN.js → ChatPdfThumbnail-CP8J1TgU.js} +1 -1
- package/dist/{ChatPostComposerDialog-SVcKg-wn.js → ChatPostComposerDialog-CW6k7zUO.js} +2 -2
- package/dist/{DocumentToolbar-gJWaStGV.js → DocumentToolbar-DRVoTpae.js} +1 -1
- package/dist/{DocxViewer-BXXgJXpj.js → DocxViewer-gChAIutZ.js} +1 -1
- package/dist/{F0Map-Bva6_CXT.js → F0Map-Cg8XuZ1A.js} +564 -483
- package/dist/{F0VideoPlayer-COE_GnIT.js → F0VideoPlayer-o4yCeeor.js} +1 -1
- package/dist/{MapProvider-D7fCPtpO.js → MapProvider-DVrIr6zm.js} +1 -1
- package/dist/{SheetViewer-BX20kP4V.js → SheetViewer-Bj_g_o7k.js} +1 -1
- package/dist/{TextViewer-DUWw3Q54.js → TextViewer-u0RHT2X8.js} +1 -1
- package/dist/ai.d.ts +10 -10
- package/dist/component-status.d.ts +10 -10
- package/dist/component-status.js +1 -1
- package/dist/{experimental-uK79fur-.js → experimental-i8ZkeQnG.js} +6 -6
- package/dist/experimental.d.ts +13 -13
- package/dist/experimental.js +3 -3
- package/dist/f0.d.ts +17 -12
- package/dist/f0.js +8 -16
- package/dist/i18n-provider-defaults.d.ts +10 -10
- package/dist/index-CXEDu0Pr.js +4 -0
- package/dist/index-CoR8O7is.js +322 -0
- package/dist/{index-D7YSSoL3.js → index-DBv7E55t.js} +1 -1
- package/dist/{index-BDGCJ0_G.js → index-Dc6gkOtm.js} +2 -2
- package/dist/{index-BJw_9Cag.js → index-afOc7BBN.js} +2 -2
- package/dist/{pdfWorker-DG2DNdLq.js → pdfWorker-DhZN-GI-.js} +1 -1
- package/package.json +1 -1
- package/dist/index-Bgs0HZ5x.js +0 -4
- package/dist/index-C3iCeJK1.js +0 -281
|
@@ -2,8 +2,8 @@ import { d7 as Nv, d8 as ed, d9 as Iv, da as Tv, db as Pt, dc as Rv, dd as Ev, d
|
|
|
2
2
|
import { jsxs as v, jsx as a, Fragment as Ne } from "react/jsx-runtime";
|
|
3
3
|
import ge, { useRef as M, useEffect as K, useContext as bn, createContext as vn, useState as W, forwardRef as en, useId as Oi, useMemo as ne, useCallback as O, useLayoutEffect as mn, Fragment as Bn, useSyncExternalStore as Lu, memo as et, useTransition as S0, isValidElement as Hs, cloneElement as Ou, Suspense as ra, lazy as Bi, createElement as Ea, Children as Ws } from "react";
|
|
4
4
|
import { d as N, u as zu, f as Ue, P as N0, T as I0, a as T0, b as R0, c as E0 } from "./tooltip-CrXp1Uaz.js";
|
|
5
|
-
import { g as _o, n as Bu, r as M0, E as F0, h as A0, p as Et, P as Du, C as P0, i as L0, j as O0, k as z0, l as td, a as ad, m as B0, b as D0, M as H0, o as W0, q as Hu, s as j0, t as $0, R as od, v as Wu, w as q0, x as G0, y as U0, z as V0, A as K0, B as ju, D as $u, G as Y0, U as X0, O as qu, H as Gu, I as J0, W as Ki, J as Q0, K as Z0, L as eb, N as nb, V as ib, Q as tb, T as ab, X as ob, Y as js, Z as rb, _ as sb, $ as Uu, a0 as Vu, a1 as lb, a2 as db, a3 as fb, a4 as cb, a5 as ub, a6 as mb, a7 as hb, a8 as gb, a9 as vb, aa as rd, ab as pb, ac as bb } from "./MapProvider-
|
|
6
|
-
import { c as kb, u as nt, S as Ku, d as yb } from "./F0Map-
|
|
5
|
+
import { g as _o, n as Bu, r as M0, E as F0, h as A0, p as Et, P as Du, C as P0, i as L0, j as O0, k as z0, l as td, a as ad, m as B0, b as D0, M as H0, o as W0, q as Hu, s as j0, t as $0, R as od, v as Wu, w as q0, x as G0, y as U0, z as V0, A as K0, B as ju, D as $u, G as Y0, U as X0, O as qu, H as Gu, I as J0, W as Ki, J as Q0, K as Z0, L as eb, N as nb, V as ib, Q as tb, T as ab, X as ob, Y as js, Z as rb, _ as sb, $ as Uu, a0 as Vu, a1 as lb, a2 as db, a3 as fb, a4 as cb, a5 as ub, a6 as mb, a7 as hb, a8 as gb, a9 as vb, aa as rd, ab as pb, ac as bb } from "./MapProvider-DVrIr6zm.js";
|
|
6
|
+
import { c as kb, u as nt, S as Ku, d as yb } from "./F0Map-Cg8XuZ1A.js";
|
|
7
7
|
import wb, { createPortal as Ht } from "react-dom";
|
|
8
8
|
import './maplibre-gl.css';/* empty css */
|
|
9
9
|
const _b = Nv("Search", [
|
|
@@ -15892,7 +15892,7 @@ const U4 = /* @__PURE__ */ new Set(["blob:", "data:"]), V4 = /* @__PURE__ */ new
|
|
|
15892
15892
|
),
|
|
15893
15893
|
children: e
|
|
15894
15894
|
}
|
|
15895
|
-
), Q4 = () => import("./ChatPdfThumbnail-
|
|
15895
|
+
), Q4 = () => import("./ChatPdfThumbnail-CP8J1TgU.js"), Z4 = () => import("./ChatSheetThumbnail-D8aN1W_0.js"), e6 = () => import("./ChatDocxThumbnail-D5hDwmp7.js"), n6 = () => import("./ChatTextThumbnail-B53pSYUy.js"), i6 = Bi(Q4), t6 = Bi(Z4), a6 = Bi(e6), o6 = Bi(n6), r6 = 384, s6 = 160, l6 = ({
|
|
15896
15896
|
kind: e,
|
|
15897
15897
|
url: n,
|
|
15898
15898
|
width: i,
|
|
@@ -21684,7 +21684,7 @@ const CS = {
|
|
|
21684
21684
|
}
|
|
21685
21685
|
) }) });
|
|
21686
21686
|
}, FS = Bi(
|
|
21687
|
-
() => import("./index-
|
|
21687
|
+
() => import("./index-Dc6gkOtm.js").then((e) => e.i).then((e) => ({
|
|
21688
21688
|
default: e.F0PdfViewer
|
|
21689
21689
|
}))
|
|
21690
21690
|
), AS = () => {
|
|
@@ -24373,7 +24373,7 @@ const i9 = 1e3, t9 = ({
|
|
|
24373
24373
|
]
|
|
24374
24374
|
}
|
|
24375
24375
|
);
|
|
24376
|
-
}, j9 = () => import("./index-
|
|
24376
|
+
}, j9 = () => import("./index-CXEDu0Pr.js").then((e) => ({
|
|
24377
24377
|
default: e.F0VideoPlayer
|
|
24378
24378
|
})), $9 = Bi(j9), q9 = ({
|
|
24379
24379
|
file: e,
|
|
@@ -26063,7 +26063,7 @@ const i9 = 1e3, t9 = ({
|
|
|
26063
26063
|
}
|
|
26064
26064
|
);
|
|
26065
26065
|
}, PI = /* @__PURE__ */ new Set(), LI = Bi(
|
|
26066
|
-
() => import("./ChatPostComposerDialog-
|
|
26066
|
+
() => import("./ChatPostComposerDialog-CW6k7zUO.js").then((e) => ({
|
|
26067
26067
|
default: e.ChatPostComposerDialog
|
|
26068
26068
|
}))
|
|
26069
26069
|
), OI = () => {
|
package/dist/experimental.d.ts
CHANGED
|
@@ -12667,9 +12667,9 @@ export declare const getSecondaryActions: (secondaryActions: SecondaryActionsDef
|
|
|
12667
12667
|
export declare const getUpsellAction: (upsellAction: UpsellActionDefinitionFn | undefined) => UpsellActionDefinition | undefined;
|
|
12668
12668
|
|
|
12669
12669
|
/**
|
|
12670
|
-
*
|
|
12671
|
-
* data-driven stylers, so
|
|
12672
|
-
* keep Google's colours.
|
|
12670
|
+
* MapLibre's palette in Google's far coarser styling model: no per-layer or
|
|
12671
|
+
* data-driven stylers, so 17 of the 25 roles carry an expression and the rest
|
|
12672
|
+
* keep Google's colours.
|
|
12673
12673
|
*/
|
|
12674
12674
|
export declare const googleMapStyles: F0MapStyle;
|
|
12675
12675
|
|
|
@@ -20501,16 +20501,6 @@ declare namespace Calendar {
|
|
|
20501
20501
|
}
|
|
20502
20502
|
|
|
20503
20503
|
|
|
20504
|
-
declare module "@tiptap/core" {
|
|
20505
|
-
interface Commands<ReturnType> {
|
|
20506
|
-
fontSize: {
|
|
20507
|
-
setFontSize: (fontSize: string) => ReturnType;
|
|
20508
|
-
unsetFontSize: () => ReturnType;
|
|
20509
|
-
};
|
|
20510
|
-
}
|
|
20511
|
-
}
|
|
20512
|
-
|
|
20513
|
-
|
|
20514
20504
|
declare module "@tiptap/core" {
|
|
20515
20505
|
interface Commands<ReturnType> {
|
|
20516
20506
|
aiBlock: {
|
|
@@ -20533,6 +20523,16 @@ declare module "@tiptap/core" {
|
|
|
20533
20523
|
}
|
|
20534
20524
|
|
|
20535
20525
|
|
|
20526
|
+
declare module "@tiptap/core" {
|
|
20527
|
+
interface Commands<ReturnType> {
|
|
20528
|
+
fontSize: {
|
|
20529
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
20530
|
+
unsetFontSize: () => ReturnType;
|
|
20531
|
+
};
|
|
20532
|
+
}
|
|
20533
|
+
}
|
|
20534
|
+
|
|
20535
|
+
|
|
20536
20536
|
declare module "@tiptap/core" {
|
|
20537
20537
|
interface Commands<ReturnType> {
|
|
20538
20538
|
indent: {
|
package/dist/experimental.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { v as s, t, A as i, b as o, L as r, bi as n, bh as l, bj as S, B as d, w as g, y as b, N as u, bp as C, bq as c, bz as m, x as p, C as F, bo as P, bA as T, D as I, z as h, a5 as M, bV as E, c0 as f, M as A, bU as L, E as R, d as D, g as y, l as B, ap as _, as as v, aq as k, an as O, G as W, be as H, F as N, ay as x, h as V, aD as w, az as G, aA as U, aB as z, n as K, o as X, ar as j, H as Y, bD as J, bE as Q, bs as Z, ax as $, bH as q, bS as aa, bk as ea, aS as sa, aC as ta, aQ as ia, aP as oa, aI as ra, aR as na, a8 as la, bC as Sa, W as da, ah as ga, J as ba, O as ua, K as Ca, c4 as ca, X as ma, P as pa, Q as Fa, T as Pa, bl as Ta, R as Ia, bQ as ha, bW as Ma, S as Ea, ab as fa, ac as Aa, a0 as La, a1 as Ra, a2 as Da, $ as ya, a3 as Ba, Y as _a, a4 as va, a6 as ka, a7 as Oa, a9 as Wa, aa as Ha, ad as Na, ae as xa, af as Va, b_ as wa, bZ as Ga, bg as Ua, bf as za, bn as Ka, bB as Xa, by as ja, bm as Ya, ag as Ja, bt as Qa, b$ as Za, c2 as $a, br as qa, bw as ae, bu as ee, c3 as se, bx as te, bv as ie, c1 as oe, e as re, i as ne, aY as le, ak as Se, am as de, aL as ge, bY as be, bX as ue, al as Ce, at as ce, f as me, b9 as pe, bd as Fe, b7 as Pe, b8 as Te, b5 as Ie, b6 as he, ba as Me, bb as Ee, b4 as fe, j as Ae, k as Le, bc as Re, bK as De, bI as ye, aw as Be, au as _e, av as ve, aU as ke, bT as Oe, bJ as We, p as He, q as Ne, m as xe, a$ as Ve, I as we, r as Ge, b0 as Ue, bO as ze, aX as Ke, aW as Xe, b1 as je, bG as Ye, bL as Je, ai as Qe, b2 as Ze, bR as $e, aT as qe, aV as as, aZ as es, a_ as ss, c as ts, ao as is, aj as os, u as rs, aE as ns, aF as ls, aG as Ss, aH as ds, bF as gs, aM as bs, aN as us, aJ as Cs, aK as cs, V as ms, U as ps, _ as Fs, Z as Ps, aO as Ts, b3 as Is, bP as hs, bN as Ms, bM as Es } from "./experimental-
|
|
1
|
+
import { v as s, t, A as i, b as o, L as r, bi as n, bh as l, bj as S, B as d, w as g, y as b, N as u, bp as C, bq as c, bz as m, x as p, C as F, bo as P, bA as T, D as I, z as h, a5 as M, bV as E, c0 as f, M as A, bU as L, E as R, d as D, g as y, l as B, ap as _, as as v, aq as k, an as O, G as W, be as H, F as N, ay as x, h as V, aD as w, az as G, aA as U, aB as z, n as K, o as X, ar as j, H as Y, bD as J, bE as Q, bs as Z, ax as $, bH as q, bS as aa, bk as ea, aS as sa, aC as ta, aQ as ia, aP as oa, aI as ra, aR as na, a8 as la, bC as Sa, W as da, ah as ga, J as ba, O as ua, K as Ca, c4 as ca, X as ma, P as pa, Q as Fa, T as Pa, bl as Ta, R as Ia, bQ as ha, bW as Ma, S as Ea, ab as fa, ac as Aa, a0 as La, a1 as Ra, a2 as Da, $ as ya, a3 as Ba, Y as _a, a4 as va, a6 as ka, a7 as Oa, a9 as Wa, aa as Ha, ad as Na, ae as xa, af as Va, b_ as wa, bZ as Ga, bg as Ua, bf as za, bn as Ka, bB as Xa, by as ja, bm as Ya, ag as Ja, bt as Qa, b$ as Za, c2 as $a, br as qa, bw as ae, bu as ee, c3 as se, bx as te, bv as ie, c1 as oe, e as re, i as ne, aY as le, ak as Se, am as de, aL as ge, bY as be, bX as ue, al as Ce, at as ce, f as me, b9 as pe, bd as Fe, b7 as Pe, b8 as Te, b5 as Ie, b6 as he, ba as Me, bb as Ee, b4 as fe, j as Ae, k as Le, bc as Re, bK as De, bI as ye, aw as Be, au as _e, av as ve, aU as ke, bT as Oe, bJ as We, p as He, q as Ne, m as xe, a$ as Ve, I as we, r as Ge, b0 as Ue, bO as ze, aX as Ke, aW as Xe, b1 as je, bG as Ye, bL as Je, ai as Qe, b2 as Ze, bR as $e, aT as qe, aV as as, aZ as es, a_ as ss, c as ts, ao as is, aj as os, u as rs, aE as ns, aF as ls, aG as Ss, aH as ds, bF as gs, aM as bs, aN as us, aJ as Cs, aK as cs, V as ms, U as ps, _ as Fs, Z as Ps, aO as Ts, b3 as Is, bP as hs, bN as Ms, bM as Es } from "./experimental-i8ZkeQnG.js";
|
|
2
2
|
import { ec as As, eP as Ls, eO as Rs, e$ as Ds, r as ys, eM as Bs, cG as _s, cC as vs, cD as ks, eH as Os, cp as Ws, cp as Hs, cm as Ns, eI as xs, cJ as Vs, es as ws, cK as Gs, f2 as Us, eN as zs, eX as Ks, eY as Xs, eb as js, f0 as Ys, k as Js, ed as Qs, d4 as Zs, eL as $s, dT as qs, eQ as at, T as et, h as st, cn as tt, eZ as it, f3 as ot, e_ as rt, f1 as nt, eW as lt, eT as St, eV as dt, eR as gt, eJ as bt, eK as ut, eD as Ct, eU as ct, eS as mt, dV as pt } from "./F0CanvasPanel-B8GTWbHT.js";
|
|
3
|
-
import { aP as Pt, aQ as Tt, aj as It, ak as ht, ah as Mt, au as Et, s as ft, al as At, a_ as Lt, aq as Rt, aZ as Dt, at as yt, ai as Bt, aN as _t, av as vt, b0 as kt, a$ as Ot, aD as Wt, aE as Ht, aw as Nt, aI as xt, F as Vt, ag as wt, aK as Gt, aG as Ut, aH as zt, aB as Kt, az as Xt, b4 as jt, aA as Yt, aL as Jt, aM as Qt, am as Zt, b1 as $t, b2 as qt, aC as ai, aO as ei, aW as si, O as ti, aY as ii, an as oi, b6 as ri, ap as ni, ar as li, aI as Si, b3 as di, aJ as gi, aF as bi, b5 as ui, ao as Ci, W as ci, as as mi, af as pi, ad as Fi, ae as Pi, aT as Ti, aU as Ii, aR as hi, b7 as Mi, aX as Ei, ay as fi, ax as Ai, u as Li, x as Ri, aS as Di, aV as yi, Y as Bi } from "./MapProvider-
|
|
4
|
-
import { b as vi, e as ki, i as Oi, g as Wi, h as Hi, a as Ni, R as xi, l as Vi, f as wi, j as Gi, k as Ui, u as zi } from "./F0Map-
|
|
3
|
+
import { aP as Pt, aQ as Tt, aj as It, ak as ht, ah as Mt, au as Et, s as ft, al as At, a_ as Lt, aq as Rt, aZ as Dt, at as yt, ai as Bt, aN as _t, av as vt, b0 as kt, a$ as Ot, aD as Wt, aE as Ht, aw as Nt, aI as xt, F as Vt, ag as wt, aK as Gt, aG as Ut, aH as zt, aB as Kt, az as Xt, b4 as jt, aA as Yt, aL as Jt, aM as Qt, am as Zt, b1 as $t, b2 as qt, aC as ai, aO as ei, aW as si, O as ti, aY as ii, an as oi, b6 as ri, ap as ni, ar as li, aI as Si, b3 as di, aJ as gi, aF as bi, b5 as ui, ao as Ci, W as ci, as as mi, af as pi, ad as Fi, ae as Pi, aT as Ti, aU as Ii, aR as hi, b7 as Mi, aX as Ei, ay as fi, ax as Ai, u as Li, x as Ri, aS as Di, aV as yi, Y as Bi } from "./MapProvider-DVrIr6zm.js";
|
|
4
|
+
import { b as vi, e as ki, i as Oi, g as Wi, h as Hi, a as Ni, R as xi, l as Vi, f as wi, j as Gi, k as Ui, u as zi } from "./F0Map-Cg8XuZ1A.js";
|
|
5
5
|
export {
|
|
6
6
|
Pt as AUTO_PER_PAGE_MAX,
|
|
7
7
|
Tt as AUTO_PER_PAGE_MIN_RESERVED_ROWS,
|
package/dist/f0.d.ts
CHANGED
|
@@ -13324,8 +13324,7 @@ export declare const F0Provider: React.FC<{
|
|
|
13324
13324
|
* ```
|
|
13325
13325
|
*/
|
|
13326
13326
|
formComponent?: F0FormLikeComponent;
|
|
13327
|
-
|
|
13328
|
-
mapConfig?: MapProviderConfig;
|
|
13327
|
+
map?: MapContextValue;
|
|
13329
13328
|
}>;
|
|
13330
13329
|
|
|
13331
13330
|
export declare const F0QuestionCardMultiStep: ({ steps, onComplete, onSkip, sendAsMessage, onSendMessage, }: F0QuestionCardMultiStepProps) => JSX_2.Element | null;
|
|
@@ -16732,6 +16731,12 @@ export declare type LockedSectionNotice = {
|
|
|
16732
16731
|
|
|
16733
16732
|
declare type MapCollectionProps<Record extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<Record>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<Record>> = CollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping, MapVisualizationOptions<Record, Filters, Sortings>>;
|
|
16734
16733
|
|
|
16734
|
+
declare interface MapContextValue {
|
|
16735
|
+
provider?: F0MapProvider;
|
|
16736
|
+
/** Settings the chosen engine needs, such as Google's API key. */
|
|
16737
|
+
config?: MapProviderConfig;
|
|
16738
|
+
}
|
|
16739
|
+
|
|
16735
16740
|
/** A leaf module: the registry and `F0Provider` both need the shape. */
|
|
16736
16741
|
declare interface MapProviderConfig {
|
|
16737
16742
|
/** Required by `google`; `maplibre`'s tiles are keyless. */
|
|
@@ -22351,16 +22356,6 @@ declare namespace Calendar {
|
|
|
22351
22356
|
}
|
|
22352
22357
|
|
|
22353
22358
|
|
|
22354
|
-
declare module "@tiptap/core" {
|
|
22355
|
-
interface Commands<ReturnType> {
|
|
22356
|
-
fontSize: {
|
|
22357
|
-
setFontSize: (fontSize: string) => ReturnType;
|
|
22358
|
-
unsetFontSize: () => ReturnType;
|
|
22359
|
-
};
|
|
22360
|
-
}
|
|
22361
|
-
}
|
|
22362
|
-
|
|
22363
|
-
|
|
22364
22359
|
declare module "@tiptap/core" {
|
|
22365
22360
|
interface Commands<ReturnType> {
|
|
22366
22361
|
aiBlock: {
|
|
@@ -22383,6 +22378,16 @@ declare module "@tiptap/core" {
|
|
|
22383
22378
|
}
|
|
22384
22379
|
|
|
22385
22380
|
|
|
22381
|
+
declare module "@tiptap/core" {
|
|
22382
|
+
interface Commands<ReturnType> {
|
|
22383
|
+
fontSize: {
|
|
22384
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
22385
|
+
unsetFontSize: () => ReturnType;
|
|
22386
|
+
};
|
|
22387
|
+
}
|
|
22388
|
+
}
|
|
22389
|
+
|
|
22390
|
+
|
|
22386
22391
|
declare module "@tiptap/core" {
|
|
22387
22392
|
interface Commands<ReturnType> {
|
|
22388
22393
|
indent: {
|
package/dist/f0.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { iy as DI, B as vt, eu as vx, cQ as Hn, hN as AI, gf as Z5, ab as Va, fL as j5, iz as K5, iA as MI, E as sr, cC as If, iB as RS, iC as Rr, iD as no, iE as Q5, iF as Mi, u as Be, ad as Ep, iG as nu, iH as J5, iI as EI, co as yl, hJ as T0, iJ as eG, S as ae, G as px, iK as tG, iL as rG, iM as OS, cV as nG, iN as iG, iO as aG, iP as LI, iQ as oG, H as Pf, J as kf, y as lt, K as Rf, L as qr, $ as sG, a0 as lG, M as Il, N as Pl, aY as Fa, Q as kl, gV as D0, dR as Ft, v as ut, aG as Rl, ea as Ga, dk as gx, iR as uG, s as cG, t as BS, z as NI, w as Ol, aa as II, x as fG, e$ as tv, eq as PI, iS as dG, hM as zS, de as hG, iT as VS, a4 as vG, iU as pG, ct as kI, em as RI, gF as A0, hf as iu, hg as Of, hU as gG, gD as OI, r as mG, av as M0, au as mx, hi as BI, o as yG, gB as bG, iV as Lp, bx as yx, hw as _G, cA as zI, gn as xG, aV as wG, it as bx, bA as VI, cw as SG, cx as CG, cy as TG, d as DG, c6 as FI, aI as ps, cb as GI, bw as HI, aE as _x, cd as WI, a7 as xx, U as bl, V as _l, X as xl, Y as wl, gW as Fi, an as $I, j as AG, W as zr, eL as MG, bu as rv, aS as Bl, cn as Sx, by as E0, cN as Yc, cK as EG, bj as Bf, ai as au, aH as UI, dI as YI, dv as XI, hq as Wr, iW as LG, iX as NG, iY as IG, iZ as Cx, i_ as PG, i$ as kG, a3 as si, a1 as qI, a2 as ZI, m as RG, j0 as OG, cD as jI, ek as BG, el as zG, ck as Sl, dh as ou, ex as su, fm as zf, ce as VG, ev as FG, bY as GG, aK as KI, a9 as QI, aJ as HG, bo as FS, ca as Xc, hS as WG, be as $G, j1 as UG, j2 as YG, j3 as XG, b as JI, df as e2, cJ as qG, br as ZG, l as t2, aw as jG, at as KG, j4 as QG, j5 as JG, j6 as eH, hR as tH, af as r2, j7 as rH, cv as nH, d4 as iH, j8 as n2, j9 as aH, ja as oH, I as sH, jb as lH, jc as uH, jd as cH, je as fH } from "./F0CanvasPanel-B8GTWbHT.js";
|
|
2
2
|
import { jw as dme, C as hme, D as vme, dC as pme, c as gme, F as mme, a as yme, jo as bme, f as _me, cT as xme, dD as wme, ez as Sme, cE as Cme, cF as Tme, q as Dme, cB as Ame, cS as Mme, dq as Eme, eH as Lme, g as Nme, cz as Ime, cp as Pme, jj as kme, jC as Rme, cm as Ome, e as Bme, es as zme, k as Vme, jq as Fme, cU as Gme, jr as Hme, dO as Wme, js as $me, ju as Ume, jv as Yme, f2 as Xme, jy as qme, jz as Zme, eX as jme, eY as Kme, P as Qme, f0 as Jme, jt as eye, eZ as tye, jx as rye, jD as nye, jg as iye, jh as aye, ji as oye, jf as sye, e_ as lye, jB as uye, jp as cye, jm as fye, jl as dye, f1 as hye, gR as vye, hD as pye, jA as gye, dF as mye, eW as yye, eT as bye, eV as _ye, eR as xye, jn as wye, hy as Sye, ht as Cye, hj as Tye, jG as Dye, eD as Aye, eU as Mye, jF as Eye, eg as Lye, eS as Nye, cH as Iye, gQ as Pye, hk as kye, ej as Rye, hT as Oye, dE as Bye, cI as zye, jk as Vye, hv as Fye, hu as Gye, jE as Hye } from "./F0CanvasPanel-B8GTWbHT.js";
|
|
3
3
|
import { jsx as x, jsxs as B, Fragment as nt } from "react/jsx-runtime";
|
|
4
|
-
import { s as dH, W as hH, a1 as vH, a2 as pH, a3 as gH, a4 as GS, b8 as mH, b9 as yH, ab as bH, a5 as _H, a7 as xH, a9 as wH, aa as SH, G as CH, a as qc, ag as i2, ba as TH, bb as DH, bc as AH, bd as MH, be as EH, bf as a2, bg as LH, n as Tx, bh as io, bi as Ls, bj as o2, bk as NH, bl as IH, bm as PH, bn as kH, bo as RH, bp as OH, $ as Dx, bq as Ax, at as BH, br as zH, bs as VH, bt as FH, bu as GH, aK as HH, aZ as WH, bv as $H, aD as UH, E as YH, h as XH, v as Np, R as Mx, w as Ex, aI as s2, O as Lx, bw as l2, bx as HS, U as Nx, ah as qH, by as L0, I as ZH, x as u2, aO as c2, bz as jH, bA as KH, bB as QH, bC as JH, bD as e3, p as t3, bE as Ng, bF as r3, bG as n3, bH as i3, a_ as a3, bI as o3, M as s3 } from "./MapProvider-
|
|
5
|
-
import { aj as $ye, ak as Uye, au as Yye, al as Xye, aq as qye, c4 as Zye, c3 as jye, bY as Kye, bL as Qye, bJ as Jye, bK as e0e, bM as t0e, bN as r0e, bP as n0e, a0 as i0e, b0 as a0e, a$ as o0e, aE as s0e, F as l0e, aG as u0e, aH as c0e, aB as f0e, az as d0e, b4 as h0e, bT as v0e, aA as p0e, am as g0e, c5 as m0e, b1 as y0e, b2 as b0e, aC as _0e, an as x0e, t as w0e, ap as S0e, ar as C0e, b3 as T0e, aF as D0e, b5 as A0e, ao as M0e, as as E0e, c7 as L0e, af as N0e, ad as I0e, ae as P0e, bX as k0e, c1 as R0e, c1 as O0e, c2 as B0e, bS as z0e, bR as V0e, c6 as F0e, aX as G0e, bV as H0e, bW as W0e, ay as $0e, ax as U0e, c8 as Y0e, c9 as X0e, D as q0e, y as Z0e, bZ as j0e, b_ as K0e, b$ as Q0e, bO as J0e, bU as ebe, z as tbe, c0 as rbe, bQ as nbe, ca as ibe } from "./MapProvider-
|
|
4
|
+
import { s as dH, W as hH, a1 as vH, a2 as pH, a3 as gH, a4 as GS, b8 as mH, b9 as yH, ab as bH, a5 as _H, a7 as xH, a9 as wH, aa as SH, G as CH, a as qc, ag as i2, ba as TH, bb as DH, bc as AH, bd as MH, be as EH, bf as a2, bg as LH, n as Tx, bh as io, bi as Ls, bj as o2, bk as NH, bl as IH, bm as PH, bn as kH, bo as RH, bp as OH, $ as Dx, bq as Ax, at as BH, br as zH, bs as VH, bt as FH, bu as GH, aK as HH, aZ as WH, bv as $H, aD as UH, E as YH, h as XH, v as Np, R as Mx, w as Ex, aI as s2, O as Lx, bw as l2, bx as HS, U as Nx, ah as qH, by as L0, I as ZH, x as u2, aO as c2, bz as jH, bA as KH, bB as QH, bC as JH, bD as e3, p as t3, bE as Ng, bF as r3, bG as n3, bH as i3, a_ as a3, bI as o3, M as s3 } from "./MapProvider-DVrIr6zm.js";
|
|
5
|
+
import { aj as $ye, ak as Uye, au as Yye, al as Xye, aq as qye, c4 as Zye, c3 as jye, bY as Kye, bL as Qye, bJ as Jye, bK as e0e, bM as t0e, bN as r0e, bP as n0e, a0 as i0e, b0 as a0e, a$ as o0e, aE as s0e, F as l0e, aG as u0e, aH as c0e, aB as f0e, az as d0e, b4 as h0e, bT as v0e, aA as p0e, am as g0e, c5 as m0e, b1 as y0e, b2 as b0e, aC as _0e, an as x0e, t as w0e, ap as S0e, ar as C0e, b3 as T0e, aF as D0e, b5 as A0e, ao as M0e, as as E0e, c7 as L0e, af as N0e, ad as I0e, ae as P0e, bX as k0e, c1 as R0e, c1 as O0e, c2 as B0e, bS as z0e, bR as V0e, c6 as F0e, aX as G0e, bV as H0e, bW as W0e, ay as $0e, ax as U0e, c8 as Y0e, c9 as X0e, D as q0e, y as Z0e, bZ as j0e, b_ as K0e, b$ as Q0e, bO as J0e, bU as ebe, z as tbe, c0 as rbe, bQ as nbe, ca as ibe } from "./MapProvider-DVrIr6zm.js";
|
|
6
6
|
import * as pe from "react";
|
|
7
7
|
import l3, { forwardRef as Pr, useRef as ce, useImperativeHandle as f2, Children as nv, createContext as na, useContext as ia, useState as de, useMemo as be, useEffect as we, useCallback as he, useLayoutEffect as zl, isValidElement as d2, Fragment as lu, memo as Ix, useSyncExternalStore as Zc, useId as Cl, createElement as WS } from "react";
|
|
8
8
|
import * as Px from "react-dom";
|
|
9
9
|
import { createPortal as Vf } from "react-dom";
|
|
10
10
|
import { d as ie, u as Ff, h as u3, i as cl, j as Gf, g as uu, k as c3, f as _n } from "./tooltip-CrXp1Uaz.js";
|
|
11
|
-
import { l as N0, c as h2, d as iv, r as I0 } from "./F0VideoPlayer-
|
|
12
|
-
import { F as obe } from "./F0VideoPlayer-
|
|
13
|
-
import { F as lbe, p as ube } from "./index-
|
|
14
|
-
import { c as fbe } from "./pdfWorker-
|
|
11
|
+
import { l as N0, c as h2, d as iv, r as I0 } from "./F0VideoPlayer-o4yCeeor.js";
|
|
12
|
+
import { F as obe } from "./F0VideoPlayer-o4yCeeor.js";
|
|
13
|
+
import { F as lbe, p as ube } from "./index-Dc6gkOtm.js";
|
|
14
|
+
import { c as fbe } from "./pdfWorker-DhZN-GI-.js";
|
|
15
15
|
import { H as f3, I as av, J as kx, K as v2, L as d3, M as h3, N as v3, O as p3, P as g3, F as m3 } from "./F0AiProcessingOverlay-BsKOOcJf.js";
|
|
16
16
|
import { A as hbe, C as vbe, t as pbe, s as gbe, v as mbe, y as ybe, B as bbe, l as _be, i as xbe, q as wbe, E as Sbe, G as Cbe, p as Tbe, r as Dbe, j as Abe, e as Mbe, g as Ebe, k as Lbe, T as Nbe, w as Ibe, h as Pbe, a as kbe, n as Rbe, z as Obe, m as Bbe, o as zbe, D as Vbe, b as Fbe, f as Gbe, x as Hbe, c as Wbe, d as $be, u as Ube } from "./F0AiProcessingOverlay-BsKOOcJf.js";
|
|
17
17
|
import { utils as Tl, write as p2 } from "./xlsx-CzlURDDb.js";
|
|
@@ -69560,8 +69560,7 @@ const Npe = ie(
|
|
|
69560
69560
|
showExperimentalWarnings: c = !1,
|
|
69561
69561
|
renderDataTestIdAttribute: f = !1,
|
|
69562
69562
|
formComponent: d,
|
|
69563
|
-
|
|
69564
|
-
mapConfig: v
|
|
69563
|
+
map: h
|
|
69565
69564
|
}) => /* @__PURE__ */ x(ege, { children: /* @__PURE__ */ x(
|
|
69566
69565
|
aH,
|
|
69567
69566
|
{
|
|
@@ -69588,14 +69587,7 @@ const Npe = ie(
|
|
|
69588
69587
|
W5.Provider,
|
|
69589
69588
|
{
|
|
69590
69589
|
value: d,
|
|
69591
|
-
children: /* @__PURE__ */ x(m3, { children: /* @__PURE__ */ x(a3, { children: /* @__PURE__ */ x(
|
|
69592
|
-
o3,
|
|
69593
|
-
{
|
|
69594
|
-
provider: h,
|
|
69595
|
-
config: v,
|
|
69596
|
-
children: r
|
|
69597
|
-
}
|
|
69598
|
-
) }) })
|
|
69590
|
+
children: /* @__PURE__ */ x(m3, { children: /* @__PURE__ */ x(a3, { children: /* @__PURE__ */ x(o3, { ...h, children: r }) }) })
|
|
69599
69591
|
}
|
|
69600
69592
|
) })
|
|
69601
69593
|
}
|
|
@@ -1566,16 +1566,6 @@ declare namespace Calendar {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
|
|
1568
1568
|
|
|
1569
|
-
declare module "@tiptap/core" {
|
|
1570
|
-
interface Commands<ReturnType> {
|
|
1571
|
-
fontSize: {
|
|
1572
|
-
setFontSize: (fontSize: string) => ReturnType;
|
|
1573
|
-
unsetFontSize: () => ReturnType;
|
|
1574
|
-
};
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
1569
|
declare module "@tiptap/core" {
|
|
1580
1570
|
interface Commands<ReturnType> {
|
|
1581
1571
|
aiBlock: {
|
|
@@ -1598,6 +1588,16 @@ declare module "@tiptap/core" {
|
|
|
1598
1588
|
}
|
|
1599
1589
|
|
|
1600
1590
|
|
|
1591
|
+
declare module "@tiptap/core" {
|
|
1592
|
+
interface Commands<ReturnType> {
|
|
1593
|
+
fontSize: {
|
|
1594
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
1595
|
+
unsetFontSize: () => ReturnType;
|
|
1596
|
+
};
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
|
|
1601
1601
|
declare module "@tiptap/core" {
|
|
1602
1602
|
interface Commands<ReturnType> {
|
|
1603
1603
|
indent: {
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import { n as E } from "./F0CanvasPanel-B8GTWbHT.js";
|
|
2
|
+
const P = 5.3, G = 11 - P, S = (e) => {
|
|
3
|
+
let t, r;
|
|
4
|
+
return {
|
|
5
|
+
set: (s) => {
|
|
6
|
+
if (!s) {
|
|
7
|
+
r?.remove(), r = void 0, t = void 0;
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (!t) {
|
|
11
|
+
t = document.createElement("div"), t.style.cssText = [
|
|
12
|
+
`width:${P * 2}px`,
|
|
13
|
+
`height:${P * 2}px`,
|
|
14
|
+
"border-radius:50%",
|
|
15
|
+
`background:hsl(${E.malibu[60]})`,
|
|
16
|
+
`box-shadow:0 0 0 ${G}px hsl(${E.malibu[50]} / 0.3)`,
|
|
17
|
+
"pointer-events:none"
|
|
18
|
+
].join(";"), r = e.add(t, s, { beneath: !0 });
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
r?.setPosition(s);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}, _ = (e) => e.map(([t, r]) => ({ lat: r, lng: t })), b = (e, t) => ({
|
|
25
|
+
strokeColor: t && e.hover?.color || e.color,
|
|
26
|
+
strokeWeight: t && e.hover?.width || e.width,
|
|
27
|
+
strokeOpacity: e.dashed ? 0 : (t ? e.hover?.opacity : void 0) ?? e.opacity,
|
|
28
|
+
// Google has no dash array on a stroke: a dashed line is an invisible stroke
|
|
29
|
+
// carrying repeated dot symbols, spaced to match MapLibre's [1.5, 2.8].
|
|
30
|
+
icons: e.dashed ? [
|
|
31
|
+
{
|
|
32
|
+
icon: {
|
|
33
|
+
path: "M 0,-1 0,1",
|
|
34
|
+
strokeOpacity: (t ? e.hover?.opacity : void 0) ?? e.opacity,
|
|
35
|
+
strokeWeight: t && e.hover?.width || e.width,
|
|
36
|
+
scale: 1
|
|
37
|
+
},
|
|
38
|
+
offset: "0",
|
|
39
|
+
repeat: `${(t && e.hover?.width || e.width) * 2.9}px`
|
|
40
|
+
}
|
|
41
|
+
] : void 0
|
|
42
|
+
}), W = (e) => {
|
|
43
|
+
let t = [];
|
|
44
|
+
const r = () => {
|
|
45
|
+
for (const s of t)
|
|
46
|
+
s.listeners.forEach((a) => a.remove()), s.polyline.setMap(null);
|
|
47
|
+
t = [];
|
|
48
|
+
};
|
|
49
|
+
return {
|
|
50
|
+
set: (s, a) => {
|
|
51
|
+
r(), t = s.map((l) => {
|
|
52
|
+
const p = new google.maps.Polyline({
|
|
53
|
+
map: e,
|
|
54
|
+
path: _(l.coordinates),
|
|
55
|
+
clickable: !!a,
|
|
56
|
+
...b(l, !1)
|
|
57
|
+
}), u = [];
|
|
58
|
+
return a && u.push(
|
|
59
|
+
p.addListener("mouseover", () => {
|
|
60
|
+
p.setOptions(b(l, !0)), e.setOptions({ draggableCursor: "pointer" });
|
|
61
|
+
}),
|
|
62
|
+
p.addListener("mouseout", () => {
|
|
63
|
+
p.setOptions(b(l, !1)), e.setOptions({ draggableCursor: null });
|
|
64
|
+
}),
|
|
65
|
+
p.addListener("click", () => a(l.id))
|
|
66
|
+
), { line: l, polyline: p, listeners: u };
|
|
67
|
+
});
|
|
68
|
+
},
|
|
69
|
+
destroy: r
|
|
70
|
+
};
|
|
71
|
+
}, L = "__f0GoogleMapsReady", j = "https://maps.googleapis.com/maps/api/js";
|
|
72
|
+
let v;
|
|
73
|
+
const C = () => new Error("F0Map: the Google Maps JavaScript API failed to load."), A = () => window.google?.maps, B = async () => {
|
|
74
|
+
const e = A();
|
|
75
|
+
if (e?.importLibrary) {
|
|
76
|
+
await e.importLibrary("maps");
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
if (!e?.Map)
|
|
80
|
+
throw C();
|
|
81
|
+
}, H = (e) => new Promise((t, r) => {
|
|
82
|
+
e.addEventListener("load", () => t(), { once: !0 }), e.addEventListener("error", () => r(C()), { once: !0 });
|
|
83
|
+
}), K = (e) => new Promise((t, r) => {
|
|
84
|
+
const s = window;
|
|
85
|
+
s[L] = () => {
|
|
86
|
+
Reflect.deleteProperty(s, L), t();
|
|
87
|
+
};
|
|
88
|
+
const a = document.createElement("script");
|
|
89
|
+
a.async = !0, a.src = j + `?key=${encodeURIComponent(e)}&v=weekly&loading=async&libraries=maps&callback=${L}`, a.onerror = () => {
|
|
90
|
+
a.remove(), r(C());
|
|
91
|
+
}, document.head.appendChild(a);
|
|
92
|
+
}), D = (e) => {
|
|
93
|
+
if (v)
|
|
94
|
+
return v;
|
|
95
|
+
const t = document.querySelector(
|
|
96
|
+
`script[src^="${j}"]`
|
|
97
|
+
);
|
|
98
|
+
return v = (A() ? Promise.resolve() : t ? H(t) : K(e)).then(B).catch((s) => {
|
|
99
|
+
throw v = void 0, s;
|
|
100
|
+
}), v;
|
|
101
|
+
}, U = (e) => {
|
|
102
|
+
const t = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
103
|
+
let s, a, l = !1, p = !1;
|
|
104
|
+
const u = (c, h) => {
|
|
105
|
+
const o = h.fromLatLngToDivPixel(
|
|
106
|
+
new google.maps.LatLng(c.at[1], c.at[0])
|
|
107
|
+
);
|
|
108
|
+
o && (c.element.style.transform = `translate(${o.x}px, ${o.y}px) translate(-50%, -50%)`);
|
|
109
|
+
};
|
|
110
|
+
class x extends google.maps.OverlayView {
|
|
111
|
+
onAdd() {
|
|
112
|
+
const h = this.getPanes(), o = () => {
|
|
113
|
+
const n = document.createElement("div");
|
|
114
|
+
return n.style.cssText = "position:absolute;left:0;top:0;width:0;height:0", n;
|
|
115
|
+
};
|
|
116
|
+
s = o(), a = o();
|
|
117
|
+
for (const n of t)
|
|
118
|
+
(n.beneath ? a : s).appendChild(n.element);
|
|
119
|
+
h?.overlayMouseTarget.appendChild(s), h?.mapPane.appendChild(a);
|
|
120
|
+
}
|
|
121
|
+
draw() {
|
|
122
|
+
const h = this.getProjection();
|
|
123
|
+
if (h) {
|
|
124
|
+
for (const o of t)
|
|
125
|
+
u(o, h);
|
|
126
|
+
l || (l = !0, r.forEach((o) => o()));
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
onRemove() {
|
|
130
|
+
s?.remove(), a?.remove(), s = void 0, a = void 0;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
const y = new x();
|
|
134
|
+
y.setMap(e);
|
|
135
|
+
const f = () => p ? void 0 : y.getProjection();
|
|
136
|
+
return {
|
|
137
|
+
add: (c, h, o) => {
|
|
138
|
+
const n = { element: c, at: h, beneath: o?.beneath ?? !1 };
|
|
139
|
+
t.add(n), c.style.position = "absolute", (n.beneath ? a : s)?.appendChild(c);
|
|
140
|
+
const d = f();
|
|
141
|
+
return d && u(n, d), {
|
|
142
|
+
setPosition: (i) => {
|
|
143
|
+
n.at = i;
|
|
144
|
+
const m = f();
|
|
145
|
+
m && u(n, m);
|
|
146
|
+
},
|
|
147
|
+
remove: () => {
|
|
148
|
+
t.delete(n), c.remove();
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
},
|
|
152
|
+
onReady: (c) => l ? (c(), () => {
|
|
153
|
+
}) : (r.add(c), () => r.delete(c)),
|
|
154
|
+
isReady: () => l,
|
|
155
|
+
destroy: () => {
|
|
156
|
+
p = !0, l = !1, r.clear();
|
|
157
|
+
for (const c of t)
|
|
158
|
+
c.element.remove();
|
|
159
|
+
t.clear(), y.setMap(null);
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
}, M = 256, O = ([e, t]) => {
|
|
163
|
+
const r = Math.min(
|
|
164
|
+
Math.max(Math.sin(t * Math.PI / 180), -0.9999),
|
|
165
|
+
0.9999
|
|
166
|
+
);
|
|
167
|
+
return {
|
|
168
|
+
x: M * (0.5 + e / 360),
|
|
169
|
+
y: M * (0.5 - Math.log((1 + r) / (1 - r)) / (4 * Math.PI))
|
|
170
|
+
};
|
|
171
|
+
}, N = ({ x: e, y: t }) => [
|
|
172
|
+
(e / M - 0.5) * 360,
|
|
173
|
+
Math.atan(Math.sinh(Math.PI * (1 - 2 * t / M))) * 180 / Math.PI
|
|
174
|
+
], V = {
|
|
175
|
+
globeProjection: !1,
|
|
176
|
+
/**
|
|
177
|
+
* The getters report the destination in the same tick, so a flight in
|
|
178
|
+
* progress cannot be read even though the renderer glides.
|
|
179
|
+
*/
|
|
180
|
+
observableFlight: !1
|
|
181
|
+
}, I = (e) => e, w = ([e, t]) => ({ lat: t, lng: e }), q = {
|
|
182
|
+
move: "bounds_changed",
|
|
183
|
+
zoom: "zoom_changed",
|
|
184
|
+
click: "click",
|
|
185
|
+
styled: "idle"
|
|
186
|
+
}, J = (e) => {
|
|
187
|
+
const t = document.createElement("div");
|
|
188
|
+
t.style.cssText = "position:absolute;inset:0", e.container.appendChild(t);
|
|
189
|
+
const r = new google.maps.Map(t, {
|
|
190
|
+
center: w(e.center),
|
|
191
|
+
zoom: e.zoom,
|
|
192
|
+
minZoom: e.minZoom,
|
|
193
|
+
maxZoom: e.maxZoom,
|
|
194
|
+
// No `mapId` deliberately: with one, `styles` is ignored and the theme is
|
|
195
|
+
// immutable after the first render, so a light/dark swap means a teardown.
|
|
196
|
+
styles: I(e.style),
|
|
197
|
+
disableDefaultUI: !0,
|
|
198
|
+
gestureHandling: e.interactive ? e.cooperativeGestures ? "cooperative" : "greedy" : "none"
|
|
199
|
+
}), s = U(r), a = S(s), l = W(r);
|
|
200
|
+
let p = !1;
|
|
201
|
+
const u = () => r.getZoom() ?? e.zoom, x = () => {
|
|
202
|
+
const o = r.getCenter();
|
|
203
|
+
return o ? [o.lng(), o.lat()] : e.center;
|
|
204
|
+
}, y = () => p || !s.isReady() ? null : {
|
|
205
|
+
scale: 2 ** u(),
|
|
206
|
+
centre: O(x()),
|
|
207
|
+
half: { x: t.clientWidth / 2, y: t.clientHeight / 2 }
|
|
208
|
+
}, f = (o) => {
|
|
209
|
+
const n = y();
|
|
210
|
+
if (!n)
|
|
211
|
+
return null;
|
|
212
|
+
const d = O(o);
|
|
213
|
+
return {
|
|
214
|
+
x: (d.x - n.centre.x) * n.scale + n.half.x,
|
|
215
|
+
y: (d.y - n.centre.y) * n.scale + n.half.y
|
|
216
|
+
};
|
|
217
|
+
}, c = (o) => {
|
|
218
|
+
const n = y();
|
|
219
|
+
return n ? N({
|
|
220
|
+
x: n.centre.x + (o.x - n.half.x) / n.scale,
|
|
221
|
+
y: n.centre.y + (o.y - n.half.y) / n.scale
|
|
222
|
+
}) : null;
|
|
223
|
+
}, h = (o) => {
|
|
224
|
+
r.panTo(w(o.center)), o.zoom !== void 0 && r.setZoom(o.zoom);
|
|
225
|
+
};
|
|
226
|
+
return {
|
|
227
|
+
provider: "google",
|
|
228
|
+
capabilities: V,
|
|
229
|
+
native: () => r,
|
|
230
|
+
isAlive: () => !p,
|
|
231
|
+
destroy: () => {
|
|
232
|
+
p = !0, l.destroy(), a.set(null), s.destroy(), t.remove();
|
|
233
|
+
},
|
|
234
|
+
on: (o, n) => {
|
|
235
|
+
if (o === "ready")
|
|
236
|
+
return s.onReady(n);
|
|
237
|
+
if (o === "resize") {
|
|
238
|
+
const i = new ResizeObserver(() => n());
|
|
239
|
+
return i.observe(e.container), () => i.disconnect();
|
|
240
|
+
}
|
|
241
|
+
if (o === "error") {
|
|
242
|
+
const i = window, m = i.gm_authFailure;
|
|
243
|
+
return i.gm_authFailure = n, () => {
|
|
244
|
+
i.gm_authFailure = m;
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
const d = r.addListener(q[o], n);
|
|
248
|
+
return () => d.remove();
|
|
249
|
+
},
|
|
250
|
+
project: f,
|
|
251
|
+
unproject: c,
|
|
252
|
+
getZoom: u,
|
|
253
|
+
getCenter: x,
|
|
254
|
+
jumpTo: (o) => {
|
|
255
|
+
r.moveCamera({
|
|
256
|
+
center: w(o.center),
|
|
257
|
+
...o.zoom === void 0 ? {} : { zoom: o.zoom }
|
|
258
|
+
});
|
|
259
|
+
},
|
|
260
|
+
easeTo: h,
|
|
261
|
+
// No coupled pan+zoom arc exists here; the renderer glides on its own.
|
|
262
|
+
flyTo: h,
|
|
263
|
+
fitCoordinates: (o, n) => {
|
|
264
|
+
const d = new google.maps.LatLngBounds();
|
|
265
|
+
o.forEach((m) => d.extend(w(m)));
|
|
266
|
+
const i = n?.gutter ?? 0;
|
|
267
|
+
if (r.fitBounds(d, {
|
|
268
|
+
top: i,
|
|
269
|
+
right: i,
|
|
270
|
+
bottom: i,
|
|
271
|
+
left: i
|
|
272
|
+
}), n?.maxZoom !== void 0) {
|
|
273
|
+
const m = r.getZoom();
|
|
274
|
+
m !== void 0 && m > n.maxZoom && r.setZoom(n.maxZoom);
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
// Google has no `cameraForBounds`: the pixel box at the current zoom gives
|
|
278
|
+
// the scale change to fit, which is a zoom delta.
|
|
279
|
+
cameraForCoordinates: (o, n) => {
|
|
280
|
+
if (o.length === 0)
|
|
281
|
+
return null;
|
|
282
|
+
const d = o.map(f);
|
|
283
|
+
if (d.some((g) => g === null))
|
|
284
|
+
return null;
|
|
285
|
+
const i = d.map((g) => g.x), m = d.map((g) => g.y), z = c({
|
|
286
|
+
x: (Math.min(...i) + Math.max(...i)) / 2,
|
|
287
|
+
y: (Math.min(...m) + Math.max(...m)) / 2
|
|
288
|
+
});
|
|
289
|
+
if (!z)
|
|
290
|
+
return null;
|
|
291
|
+
const Z = n?.gutter ?? 0, R = Math.max(Math.max(...i) - Math.min(...i), 1), T = Math.max(Math.max(...m) - Math.min(...m), 1), k = {
|
|
292
|
+
width: Math.max(e.container.clientWidth - Z * 2, 1),
|
|
293
|
+
height: Math.max(e.container.clientHeight - Z * 2, 1)
|
|
294
|
+
}, $ = Math.min(k.width / R, k.height / T), F = Math.min(
|
|
295
|
+
u() + Math.log2($),
|
|
296
|
+
n?.maxZoom ?? 1 / 0
|
|
297
|
+
);
|
|
298
|
+
return { center: z, zoom: F };
|
|
299
|
+
},
|
|
300
|
+
addDomMarker: s.add,
|
|
301
|
+
setLines: (o, n) => l.set(o, n?.onClick),
|
|
302
|
+
setCurrentLocation: (o) => a.set(o),
|
|
303
|
+
zoomIn: () => r.setZoom(u() + 1),
|
|
304
|
+
zoomOut: () => r.setZoom(u() - 1),
|
|
305
|
+
// Google re-reads its container on its own; there is nothing to poke.
|
|
306
|
+
resize: () => {
|
|
307
|
+
},
|
|
308
|
+
applyStyle: (o) => r.setOptions({ styles: I(o) }),
|
|
309
|
+
setGlobeProjection: () => {
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
}, X = async (e) => {
|
|
313
|
+
if (!e?.apiKey)
|
|
314
|
+
throw new Error(
|
|
315
|
+
"F0Map: the google provider needs an apiKey on <F0Provider map={{ config: { apiKey } }}>."
|
|
316
|
+
);
|
|
317
|
+
return await D(e.apiKey), J;
|
|
318
|
+
};
|
|
319
|
+
export {
|
|
320
|
+
J as createGoogleAdapter,
|
|
321
|
+
X as loadGoogleAdapter
|
|
322
|
+
};
|