@factorialco/f0-react 8.28.3 → 8.28.4
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-D5hDwmp7.js → ChatDocxThumbnail-DTpOzL9A.js} +7 -7
- package/dist/{ChatPdfThumbnail-Cf74m771.js → ChatPdfThumbnail-QKm8T1iP.js} +1 -1
- package/dist/{ChatPostComposerDialog-pRNELk68.js → ChatPostComposerDialog-DF5B8NLo.js} +3 -3
- package/dist/{ChatSheetThumbnail-D8aN1W_0.js → ChatSheetThumbnail-CyiwSdZJ.js} +1 -1
- package/dist/{DocumentToolbar-C4DUcWl7.js → DocumentToolbar-BAa5mh7x.js} +2 -2
- package/dist/{DocxViewer-M4FGdd_h.js → DocxViewer-CYBh46FI.js} +7 -7
- package/dist/{F0AiProcessingOverlay-Cpx37q3a.js → F0AiProcessingOverlay-3H79lgMd.js} +1 -1
- package/dist/{F0CanvasPanel-CRTe0CIF.js → F0CanvasPanel-DAEeI3lV.js} +199 -199
- package/dist/{F0Map-BywRoarL.js → F0Map-B7PwCmUl.js} +4 -4
- package/dist/{F0VideoPlayer-DUv08bcV.js → F0VideoPlayer-CNvEtJ9U.js} +18 -18
- package/dist/{MapProvider-CTtL5mc3.js → MapProvider-WM9ZFI_s.js} +2 -2
- package/dist/SheetViewer-CvQ24W5k.js +123 -0
- package/dist/{TextViewer-54DAaDA1.js → TextViewer-uZnjAB6W.js} +2 -2
- package/dist/ai.d.ts +6 -6
- package/dist/ai.js +2 -2
- package/dist/component-status.d.ts +6 -6
- package/dist/component-status.js +1 -1
- package/dist/{experimental-STLmChcB.js → experimental-Bzwkrec6.js} +179 -179
- package/dist/experimental.d.ts +6 -6
- package/dist/experimental.js +40 -40
- package/dist/f0.d.ts +6 -6
- package/dist/f0.js +10 -10
- package/dist/i18n-provider-defaults.d.ts +6 -6
- package/dist/{index-DFrzKaGA.js → index-98s6Ae16.js} +62 -62
- package/dist/{index-9MKvlApA.js → index-B1tQWotf.js} +28 -28
- package/dist/{index-BXS__6p-.js → index-BuHr35P1.js} +15 -15
- package/dist/{index-CKzBQYgd.js → index-Ck8-Kqxo.js} +2 -2
- package/dist/index-D4H-LP6r.js +4 -0
- package/dist/{pdfWorker-DACTjTuR.js → pdfWorker-C8Mu95m3.js} +2 -2
- package/dist/{docx-preview-BaRDMyPN.js → renderDocx-CVEzw9MK.js} +920 -901
- package/dist/sheetPreview-Bqj3xODH.js +51 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/SheetViewer-BK9NNMZ9.js +0 -111
- package/dist/index-D0rQW0DI.js +0 -4
- package/dist/sheetPreview-Djc-YyVs.js +0 -37
package/dist/experimental.d.ts
CHANGED
|
@@ -21151,8 +21151,10 @@ declare module "@tiptap/core" {
|
|
|
21151
21151
|
|
|
21152
21152
|
declare module "@tiptap/core" {
|
|
21153
21153
|
interface Commands<ReturnType> {
|
|
21154
|
-
|
|
21155
|
-
|
|
21154
|
+
videoEmbed: {
|
|
21155
|
+
setVideoEmbed: (options: {
|
|
21156
|
+
src: string;
|
|
21157
|
+
}) => ReturnType;
|
|
21156
21158
|
};
|
|
21157
21159
|
}
|
|
21158
21160
|
}
|
|
@@ -21160,10 +21162,8 @@ declare module "@tiptap/core" {
|
|
|
21160
21162
|
|
|
21161
21163
|
declare module "@tiptap/core" {
|
|
21162
21164
|
interface Commands<ReturnType> {
|
|
21163
|
-
|
|
21164
|
-
|
|
21165
|
-
src: string;
|
|
21166
|
-
}) => ReturnType;
|
|
21165
|
+
transcript: {
|
|
21166
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
21167
21167
|
};
|
|
21168
21168
|
}
|
|
21169
21169
|
}
|
package/dist/experimental.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { K as s, J as t, A as i, b as o, _ as r, bv as n, bu as l, bw as S, I as b, M as d, Q as g, a0 as c, bC as u, bD as C, bM as m, O as p, N as F, bB as P, bN as T, T as h, R as I, ah as M, c6 as E, cd as f, $ as A, c5 as D, E as L, d as R, g as y, w as B, aC as
|
|
2
|
-
import { ec as Ns, eP as xs, eO as ws, e$ as Vs,
|
|
3
|
-
import { aW as Bt, aX as
|
|
4
|
-
import { b as Ki, e as Xi, i as ji, g as Qi, h as Yi, a as
|
|
1
|
+
import { K as s, J as t, A as i, b as o, _ as r, bv as n, bu as l, bw as S, I as b, M as d, Q as g, a0 as c, bC as u, bD as C, bM as m, O as p, N as F, bB as P, bN as T, T as h, R as I, ah as M, c6 as E, cd as f, $ as A, c5 as D, E as L, d as R, g as y, w as B, aC as _, aF as k, aD as v, aA as O, U as W, h as H, br as N, F as x, aL as w, k as V, aQ as G, aM as U, aN as z, aO as K, q as X, t as j, x as Q, y as Y, C as q, aE as J, P as Z, bQ as $, bR as aa, bF as ea, aK as sa, bU as ta, c3 as ia, bx as oa, b3 as ra, aP as na, b1 as la, b0 as Sa, aV as ba, b2 as da, ak as ga, bP as ca, a6 as ua, at as Ca, Y as ma, X as pa, Z as Fa, ch as Pa, a7 as Ta, a1 as ha, a2 as Ia, a3 as Ma, by as Ea, V as fa, c1 as Aa, c7 as Da, S as La, an as Ra, ao as ya, ac as Ba, ad as _a, ae as ka, ab as va, af as Oa, a8 as Wa, ag as Ha, ai as Na, aj as xa, al as wa, am as Va, ap as Ga, aq as Ua, ar as za, cb as Ka, ca as Xa, bt as ja, bs as Qa, bA as Ya, bO as qa, bL as Ja, bz as Za, as as $a, bG as ae, cc as ee, cf as se, bE as te, bJ as ie, bH as oe, cg as re, bK as ne, bI as le, ce as Se, e as be, l as de, b9 as ge, ax as ce, az as ue, j as Ce, aY as me, c9 as pe, c8 as Fe, ay as Pe, au as Te, aG as he, f as Ie, bm as Me, bq as Ee, bk as fe, bl as Ae, bi as De, bj as Le, bn as Re, bo as ye, bh as Be, o as _e, p as ke, bp as ve, bX as Oe, bV as We, aJ as He, aH as Ne, aI as xe, b5 as we, c4 as Ve, bW as Ge, D as Ue, G as ze, m as Ke, bc as Xe, W as je, H as Qe, bd as Ye, r as qe, b$ as Je, b8 as Ze, v as $e, b7 as as, be as es, bT as ss, bY as ts, av as is, bf as os, c2 as rs, b4 as ns, b6 as ls, B as Ss, ba as bs, bb as ds, c as gs, aB as cs, L as us, i as Cs, aw as ms, u as ps, aR as Fs, aS as Ps, aT as Ts, aU as hs, bS as Is, aZ as Ms, a_ as Es, aW as fs, aX as As, a5 as Ds, a4 as Ls, aa as Rs, a9 as ys, z as Bs, a$ as _s, bg as ks, c0 as vs, b_ as Os, bZ as Ws } from "./experimental-Bzwkrec6.js";
|
|
2
|
+
import { ec as Ns, eP as xs, eO as ws, e$ as Vs, s as Gs, eM as Us, cH as zs, cm as Ks, cE as Xs, eH as js, cs as Qs, cs as Ys, cp as qs, eI as Js, cK as Zs, es as $s, cL as at, f2 as et, eN as st, eX as tt, eY as it, eb as ot, f0 as rt, l as nt, ed as lt, d5 as St, eL as bt, dU as dt, eQ as gt, T as ct, h as ut, cq as Ct, eZ as mt, f3 as pt, e_ as Ft, f1 as Pt, eW as Tt, eT as ht, eV as It, eR as Mt, eJ as Et, eK as ft, eD as At, eU as Dt, eS as Lt, dW as Rt } from "./F0CanvasPanel-DAEeI3lV.js";
|
|
3
|
+
import { aW as Bt, aX as _t, aq as kt, ar as vt, ao as Ot, aB as Wt, w as Ht, as as Nt, b5 as xt, ax as wt, b4 as Vt, aA as Gt, ap as Ut, aU as zt, aC as Kt, b7 as Xt, b6 as jt, aK as Qt, aL as Yt, aD as qt, aP as Jt, F as Zt, an as $t, aR as ai, aN as ei, aO as si, aI as ti, aG as ii, bb as oi, aH as ri, aS as ni, aT as li, at as Si, b8 as bi, b9 as di, aJ as gi, aV as ci, b1 as ui, T as Ci, b3 as mi, au as pi, bd as Fi, aw as Pi, ay as Ti, aP as hi, ba as Ii, aQ as Mi, aM as Ei, bc as fi, av as Ai, X as Di, az as Li, am as Ri, ak as yi, al as Bi, a_ as _i, a$ as ki, aY as vi, be as Oi, b2 as Wi, aF as Hi, aE as Ni, u as xi, A as wi, aZ as Vi, b0 as Gi, a4 as Ui } from "./MapProvider-WM9ZFI_s.js";
|
|
4
|
+
import { b as Ki, e as Xi, i as ji, g as Qi, h as Yi, a as qi, R as Ji, l as Zi, f as $i, j as ao, k as eo, u as so } from "./F0Map-B7PwCmUl.js";
|
|
5
5
|
export {
|
|
6
6
|
Bt as AUTO_PER_PAGE_MAX,
|
|
7
|
-
|
|
7
|
+
_t as AUTO_PER_PAGE_MIN_RESERVED_ROWS,
|
|
8
8
|
s as ActivityItemList,
|
|
9
9
|
t as ActivityItemListSkeleton,
|
|
10
10
|
i as AiPromotionChat,
|
|
11
11
|
o as AiPromotionChatProvider,
|
|
12
12
|
r as ApplicationFrame,
|
|
13
|
-
|
|
13
|
+
kt as AreaChart,
|
|
14
14
|
n as AreaChartWidget,
|
|
15
15
|
l as AutoGrid,
|
|
16
16
|
Ns as Badge,
|
|
@@ -58,15 +58,15 @@ export {
|
|
|
58
58
|
Qs as F0CardHorizontal,
|
|
59
59
|
Ys as F0CardRow,
|
|
60
60
|
B as F0CarouselDialog,
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
_ as F0Chat,
|
|
62
|
+
k as F0ChatHistoryLimitCard,
|
|
63
63
|
v as F0ChatProvider,
|
|
64
64
|
O as F0CommandPaletteProvider,
|
|
65
65
|
W as F0CommunityPostsCarousel,
|
|
66
66
|
H as F0Confetti,
|
|
67
67
|
N as F0ENPSButton,
|
|
68
68
|
x as F0EmojiPicker,
|
|
69
|
-
|
|
69
|
+
qs as F0FileItem,
|
|
70
70
|
zt as F0FormEditableTable,
|
|
71
71
|
Kt as F0LocationInput,
|
|
72
72
|
Ki as F0Map,
|
|
@@ -74,7 +74,7 @@ export {
|
|
|
74
74
|
ji as F0MapList,
|
|
75
75
|
Qi as F0MapSidebar,
|
|
76
76
|
Yi as F0MapSidebarToggle,
|
|
77
|
-
|
|
77
|
+
qi as F0MapSkeleton,
|
|
78
78
|
w as F0Meeting,
|
|
79
79
|
V as F0MeetingCard,
|
|
80
80
|
G as F0MeetingProvider,
|
|
@@ -85,29 +85,29 @@ export {
|
|
|
85
85
|
jt as F0NotesTextEditorSkeleton,
|
|
86
86
|
Qt as F0NumberInput,
|
|
87
87
|
Yt as F0NumberInputInline,
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
qt as F0PhoneInput,
|
|
89
|
+
Js as F0ProgressSeries,
|
|
90
90
|
X as F0PulseDot,
|
|
91
91
|
j as F0Resizable,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
Jt as F0ResourceHeader,
|
|
93
|
+
Zs as F0RichTextDisplay,
|
|
94
|
+
Zt as F0RichTextEditor,
|
|
95
|
+
$s as F0SearchInput,
|
|
96
96
|
Q as F0SegmentedBar,
|
|
97
|
-
|
|
97
|
+
$t as F0SegmentedControl,
|
|
98
98
|
Y as F0SwipeDeck,
|
|
99
99
|
ai as F0TableOfContent,
|
|
100
100
|
ei as F0TextAreaInput,
|
|
101
101
|
si as F0TextAreaInputInline,
|
|
102
102
|
at as F0TextInput,
|
|
103
103
|
ti as F0TextInputInline,
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
q as F0VersionHistory,
|
|
105
|
+
J as F0_CHAT_HEADER_TITLE_SELECTOR,
|
|
106
106
|
ii as F1SearchBox,
|
|
107
107
|
oi as FILE_TYPES,
|
|
108
108
|
et as FileItem,
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
Z as HighlightBanner,
|
|
110
|
+
$ as HomeSlotItem,
|
|
111
111
|
aa as HomeSlotItems,
|
|
112
112
|
ea as IndicatorsList,
|
|
113
113
|
ri as Input,
|
|
@@ -151,7 +151,7 @@ export {
|
|
|
151
151
|
Ea as PieChartWidget,
|
|
152
152
|
Fi as PrivateBox,
|
|
153
153
|
Pi as ProgressBarChart,
|
|
154
|
-
|
|
154
|
+
Ji as RECOMMENDED_MAX_MARKERS,
|
|
155
155
|
Ti as RadarChart,
|
|
156
156
|
fa as Reactions,
|
|
157
157
|
hi as ResourceHeader,
|
|
@@ -166,8 +166,8 @@ export {
|
|
|
166
166
|
lt as Shortcut,
|
|
167
167
|
ya as Sidebar,
|
|
168
168
|
Ba as SidebarChatBlankState,
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
_a as SidebarChatItem,
|
|
170
|
+
ka as SidebarChatItemSkeleton,
|
|
171
171
|
va as SidebarChatList,
|
|
172
172
|
Oa as SidebarChatListSkeleton,
|
|
173
173
|
Wa as SidebarChatProvider,
|
|
@@ -188,16 +188,16 @@ export {
|
|
|
188
188
|
bt as Switch,
|
|
189
189
|
dt as Tabs,
|
|
190
190
|
gt as TabsSkeleton,
|
|
191
|
-
|
|
191
|
+
qa as TasksList,
|
|
192
192
|
Ei as Textarea,
|
|
193
193
|
ct as ToggleGroup,
|
|
194
194
|
ut as ToggleGroupItem,
|
|
195
195
|
Ct as Tooltip,
|
|
196
|
-
|
|
196
|
+
Ja as TwoColumnsList,
|
|
197
197
|
fi as UPLOAD_INPUT_ID,
|
|
198
198
|
Ai as VerticalBarChart,
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
Za as VerticalBarChartWidget,
|
|
200
|
+
$a as VirtualList,
|
|
201
201
|
mt as WeekStartDay,
|
|
202
202
|
pt as Weekdays,
|
|
203
203
|
Di as Widget,
|
|
@@ -223,16 +223,16 @@ export {
|
|
|
223
223
|
ue as commandActionRisks,
|
|
224
224
|
Ce as confettiPalette,
|
|
225
225
|
me as createMeetingSignalStore,
|
|
226
|
-
|
|
226
|
+
Zi as defaultMapStyle,
|
|
227
227
|
pe as defaultSlotRenderers,
|
|
228
228
|
Fe as defaultSlotSkeleton,
|
|
229
229
|
Pe as defineStepByStepCoachmarkGuidance,
|
|
230
|
-
|
|
230
|
+
_i as downloadAsCSV,
|
|
231
231
|
Te as downloadAsExcel,
|
|
232
232
|
he as f0ChatSenderColors,
|
|
233
233
|
Ie as f0EmojiPickerSizes,
|
|
234
234
|
Pt as f0FileItemSizes,
|
|
235
|
-
|
|
235
|
+
$i as f0MapMarkerVariants,
|
|
236
236
|
ao as f0MapStyles,
|
|
237
237
|
Me as f0MeetingConnectionQualities,
|
|
238
238
|
Ee as f0MeetingCoreActionIds,
|
|
@@ -243,11 +243,11 @@ export {
|
|
|
243
243
|
Re as f0MeetingSurfaceDestinations,
|
|
244
244
|
ye as f0MeetingSurfaceModes,
|
|
245
245
|
Be as f0MeetingTrackKinds,
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
_e as f0ProgressSeriesColors,
|
|
247
|
+
ke as f0ProgressSeriesSizes,
|
|
248
248
|
ve as f0WindowCorners,
|
|
249
249
|
Oe as fromParams,
|
|
250
|
-
|
|
250
|
+
ki as generateCSVContent,
|
|
251
251
|
vi as getAutoPerPageMinHeight,
|
|
252
252
|
Tt as getGranularityDefinition,
|
|
253
253
|
ht as getGranularityDefinitions,
|
|
@@ -273,11 +273,11 @@ export {
|
|
|
273
273
|
Qe as phoneInputSizes,
|
|
274
274
|
Ye as placementFromRect,
|
|
275
275
|
Wi as predefinedPresets,
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
qe as pulseDotVariants,
|
|
277
|
+
Je as railActionTones,
|
|
278
278
|
Dt as rangeSeparator,
|
|
279
|
-
|
|
280
|
-
|
|
279
|
+
Ze as reorderForSpeakers,
|
|
280
|
+
$e as resizableDirections,
|
|
281
281
|
as as resolveAutoFocus,
|
|
282
282
|
Lt as resolveGranularityDefinition,
|
|
283
283
|
es as resolvePlacement,
|
|
@@ -319,9 +319,9 @@ export {
|
|
|
319
319
|
Rs as useSidebarChatActions,
|
|
320
320
|
ys as useSidebarChats,
|
|
321
321
|
Bs as useSwipeDeck,
|
|
322
|
-
|
|
322
|
+
_s as useTrackBinding,
|
|
323
323
|
Ui as useWidgetIsWide,
|
|
324
|
-
|
|
324
|
+
ks as viewportRect,
|
|
325
325
|
vs as widgetChrome,
|
|
326
326
|
Os as widgetParamsAreComplete,
|
|
327
327
|
Ws as widgetTitle
|
package/dist/f0.d.ts
CHANGED
|
@@ -22821,8 +22821,10 @@ declare module "@tiptap/core" {
|
|
|
22821
22821
|
|
|
22822
22822
|
declare module "@tiptap/core" {
|
|
22823
22823
|
interface Commands<ReturnType> {
|
|
22824
|
-
|
|
22825
|
-
|
|
22824
|
+
videoEmbed: {
|
|
22825
|
+
setVideoEmbed: (options: {
|
|
22826
|
+
src: string;
|
|
22827
|
+
}) => ReturnType;
|
|
22826
22828
|
};
|
|
22827
22829
|
}
|
|
22828
22830
|
}
|
|
@@ -22830,10 +22832,8 @@ declare module "@tiptap/core" {
|
|
|
22830
22832
|
|
|
22831
22833
|
declare module "@tiptap/core" {
|
|
22832
22834
|
interface Commands<ReturnType> {
|
|
22833
|
-
|
|
22834
|
-
|
|
22835
|
-
src: string;
|
|
22836
|
-
}) => ReturnType;
|
|
22835
|
+
transcript: {
|
|
22836
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
22837
22837
|
};
|
|
22838
22838
|
}
|
|
22839
22839
|
}
|
package/dist/f0.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { iG as EI,
|
|
2
|
-
import { jE as Tme, C as Dme, D as Ame, dD as Mme, c as Eme, F as Lme, a as Nme, jw as Ime, f as Pme, cU as kme, dE as Rme, eA as Ome, cF as Bme, cG as zme,
|
|
1
|
+
import { iG as EI, G as yt, ew as px, cR as Wn, hQ as LI, gf as J5, ad as Va, fL as eG, iH as tG, iI as NI, H as sr, cm as If, iJ as OS, iK as kr, iL as no, iM as rG, iN as Mi, u as Be, af as Lp, iO as nu, iP as II, iQ as PI, cr as bl, hM as D0, iR as nG, S as ae, J as gx, iS as iG, iT as aG, iU as BS, cW as oG, iV as sG, iW as lG, iX as kI, iY as uG, K as Pf, L as kf, z as lt, M as Rf, N as qr, a1 as cG, a2 as fG, O as Pl, Q as kl, a_ as Fa, U as Rl, gW as A0, dS as Ft, w as ut, aI as Ol, gV as Ga, dm as mx, iZ as dG, t as hG, v as zS, A as RI, x as Bl, ac as OI, y as vG, e$ as rv, eq as BI, i_ as pG, hP as VS, df as gG, i$ as FS, a6 as mG, j0 as yG, cw as zI, em as VI, gF as M0, hg as iu, hh as Of, hX as bG, gD as FI, s as _G, ax as E0, aw as yx, hj as GI, gB as xG, j1 as Np, bz as bx, hz as wG, cC as HI, gn as SG, aX as CG, iB as _x, bC as WI, cy as TG, cz as DG, cA as AG, d as MG, c8 as $I, aK as gs, cd as UI, by as YI, aG as xx, cf as XI, a9 as Sx, W as _l, X as xl, Z as wl, _ as Sl, gX as Fi, ap as qI, k as EG, Y as Br, eL as LG, bw as nv, aU as zl, cq as Cx, bA as L0, cO as Yc, cL as NG, bl as Bf, ak as au, aJ as ZI, dK as jI, dx as KI, ht as Wr, j2 as IG, j3 as PG, j4 as kG, j5 as Tx, j6 as RG, j7 as OG, a5 as En, a3 as QI, a4 as JI, n as BG, j8 as zG, cE as e2, ek as VG, el as FG, cn as Cl, dj as ou, ez as su, fm as zf, cg as GG, ex as HG, b_ as WG, aM as t2, ab as r2, aL as $G, bq as GS, cc as Xc, hV as UG, bg as YG, j9 as XG, ja as qG, jb as ZG, b as n2, dg as i2, cK as jG, bt as KG, m as a2, ay as QG, av as JG, jc as eH, jd as tH, je as rH, hU as nH, ah as o2, jf as iH, i as aH, d5 as oH, jg as s2, jh as sH, ji as lH, I as uH, jj as cH, jk as fH, jl as dH, jm as hH } from "./F0CanvasPanel-DAEeI3lV.js";
|
|
2
|
+
import { jE as Tme, C as Dme, D as Ame, dD as Mme, c as Eme, F as Lme, a as Nme, jw as Ime, f as Pme, cU as kme, dE as Rme, eA as Ome, cF as Bme, cG as zme, r as Vme, cD as Fme, cT as Gme, ds as Hme, eH as Wme, g as $me, cB as Ume, cs as Yme, jr as Xme, jK as qme, cp as Zme, e as jme, es as Kme, l as Qme, jy as Jme, cV as eye, jz as tye, dP as rye, jA as nye, jC as iye, jD as aye, f2 as oye, jG as sye, jH as lye, eX as uye, eY as cye, P as fye, f0 as dye, jB as hye, eZ as vye, jF as pye, jL as gye, jo as mye, jp as yye, jq as bye, jn as _ye, e_ as xye, jJ as wye, jx as Sye, ju as Cye, jt as Tye, f1 as Dye, gR as Aye, hG as Mye, jI as Eye, dG as Lye, eW as Nye, eT as Iye, eV as Pye, eR as kye, jv as Rye, hB as Oye, hw as Bye, hk as zye, jO as Vye, eD as Fye, eU as Gye, jN as Hye, eg as Wye, eS as $ye, cI as Uye, gQ as Yye, hm as Xye, ej as qye, hW as Zye, dF as jye, cJ as Kye, js as Qye, hy as Jye, hx as e0e, jM as t0e } from "./F0CanvasPanel-DAEeI3lV.js";
|
|
3
3
|
import { jsx as x, jsxs as B, Fragment as nt } from "react/jsx-runtime";
|
|
4
|
-
import { w as vH, X as pH, a9 as gH, aa as mH, ab as yH, ac as HS, bf as bH, bg as _H, aj as xH, ad as wH, af as SH, ah as CH, ai as TH, Q as DH, a as qc, an as l2, bh as AH, bi as MH, bj as EH, bk as LH, bl as NH, bm as u2, bn as IH, n as Dx, bo as io, bp as Ns, bq as c2, br as PH, bs as kH, bt as RH, bu as OH, bv as BH, bw as zH, bx as VH, by as FH, bz as GH, a7 as Ax, bA as Mx, aA as HH, bB as WH, bC as $H, bD as UH, bE as YH, aR as XH, b4 as qH, bF as ZH, aK as jH, E as KH, h as QH, z as Ip, R as Ex, i as Lx, aP as f2, T as Nx, bG as d2, bH as WS, U as Ix, ao as JH, bI as N0, W as e3, A as h2, aV as v2, L as t3, bJ as r3, bK as n3, bL as i3, bM as a3, p as o3, bN as Ig, bO as s3, bP as l3, bQ as u3, b5 as c3, bR as f3, M as d3 } from "./MapProvider-
|
|
5
|
-
import { aq as n0e, ar as i0e, aB as a0e, as as o0e, ax as s0e, cc as l0e, cb as u0e, c5 as c0e, bU as f0e, bS as d0e, bT as h0e, bV as v0e, bW as p0e, bY as g0e, a8 as m0e, y as y0e, b7 as b0e, b6 as _0e, aL as x0e, F as w0e, aN as S0e, aO as C0e, aI as T0e, aG as D0e, bb as A0e, c0 as M0e, aH as E0e, at as L0e, cd as N0e, b8 as I0e, b9 as P0e, aJ as k0e, au as R0e, x as O0e, aw as B0e, ay as z0e, ba as V0e, aM as F0e, bc as G0e, av as H0e, az as W0e, cf as $0e, am as U0e, ak as Y0e, al as X0e, c4 as q0e, s as Z0e, s as j0e, ca as K0e, b$ as Q0e, b_ as J0e, ce as ebe, b2 as tbe, c2 as rbe, c3 as nbe, aF as ibe, aE as abe, cg as obe, ch as sbe, O as lbe, B as ube, c6 as cbe, c7 as fbe, c8 as dbe, bX as hbe, c1 as vbe, D as pbe, c9 as gbe, bZ as mbe, ci as ybe } from "./MapProvider-
|
|
4
|
+
import { w as vH, X as pH, a9 as gH, aa as mH, ab as yH, ac as HS, bf as bH, bg as _H, aj as xH, ad as wH, af as SH, ah as CH, ai as TH, Q as DH, a as qc, an as l2, bh as AH, bi as MH, bj as EH, bk as LH, bl as NH, bm as u2, bn as IH, n as Dx, bo as io, bp as Ns, bq as c2, br as PH, bs as kH, bt as RH, bu as OH, bv as BH, bw as zH, bx as VH, by as FH, bz as GH, a7 as Ax, bA as Mx, aA as HH, bB as WH, bC as $H, bD as UH, bE as YH, aR as XH, b4 as qH, bF as ZH, aK as jH, E as KH, h as QH, z as Ip, R as Ex, i as Lx, aP as f2, T as Nx, bG as d2, bH as WS, U as Ix, ao as JH, bI as N0, W as e3, A as h2, aV as v2, L as t3, bJ as r3, bK as n3, bL as i3, bM as a3, p as o3, bN as Ig, bO as s3, bP as l3, bQ as u3, b5 as c3, bR as f3, M as d3 } from "./MapProvider-WM9ZFI_s.js";
|
|
5
|
+
import { aq as n0e, ar as i0e, aB as a0e, as as o0e, ax as s0e, cc as l0e, cb as u0e, c5 as c0e, bU as f0e, bS as d0e, bT as h0e, bV as v0e, bW as p0e, bY as g0e, a8 as m0e, y as y0e, b7 as b0e, b6 as _0e, aL as x0e, F as w0e, aN as S0e, aO as C0e, aI as T0e, aG as D0e, bb as A0e, c0 as M0e, aH as E0e, at as L0e, cd as N0e, b8 as I0e, b9 as P0e, aJ as k0e, au as R0e, x as O0e, aw as B0e, ay as z0e, ba as V0e, aM as F0e, bc as G0e, av as H0e, az as W0e, cf as $0e, am as U0e, ak as Y0e, al as X0e, c4 as q0e, s as Z0e, s as j0e, ca as K0e, b$ as Q0e, b_ as J0e, ce as ebe, b2 as tbe, c2 as rbe, c3 as nbe, aF as ibe, aE as abe, cg as obe, ch as sbe, O as lbe, B as ube, c6 as cbe, c7 as fbe, c8 as dbe, bX as hbe, c1 as vbe, D as pbe, c9 as gbe, bZ as mbe, ci as ybe } from "./MapProvider-WM9ZFI_s.js";
|
|
6
6
|
import * as ge from "react";
|
|
7
7
|
import h3, { forwardRef as Hr, useRef as ce, useImperativeHandle as p2, Children as iv, createContext as na, useContext as ia, useState as ve, useMemo as _e, useEffect as Te, useCallback as de, useLayoutEffect as as, isValidElement as g2, Fragment as lu, memo as Px, useSyncExternalStore as Zc, useId as Tl, createElement as $S } from "react";
|
|
8
8
|
import * as kx from "react-dom";
|
|
9
9
|
import { createPortal as Vf } from "react-dom";
|
|
10
10
|
import { d as ne, u as Ff, h as v3, i as fl, j as Gf, g as uu, k as p3, f as _n } from "./tooltip-CrXp1Uaz.js";
|
|
11
|
-
import { l as I0, c as m2, d as av, r as P0 } from "./F0VideoPlayer-
|
|
12
|
-
import { F as _be } from "./F0VideoPlayer-
|
|
13
|
-
import { F as wbe, c as Sbe, p as Cbe } from "./index-
|
|
14
|
-
import { c as Dbe } from "./pdfWorker-
|
|
15
|
-
import { H as g3, I as ov, J as Rx, K as y2, L as m3, M as y3, N as b3, O as _3, P as x3, F as w3 } from "./F0AiProcessingOverlay-
|
|
16
|
-
import { A as Mbe, C as Ebe, t as Lbe, s as Nbe, v as Ibe, y as Pbe, B as kbe, l as Rbe, i as Obe, q as Bbe, E as zbe, G as Vbe, p as Fbe, r as Gbe, j as Hbe, e as Wbe, g as $be, k as Ube, T as Ybe, w as Xbe, h as qbe, a as Zbe, n as jbe, z as Kbe, m as Qbe, o as Jbe, D as e_e, b as t_e, f as r_e, x as n_e, c as i_e, d as a_e, u as o_e } from "./F0AiProcessingOverlay-
|
|
11
|
+
import { l as I0, c as m2, d as av, r as P0 } from "./F0VideoPlayer-CNvEtJ9U.js";
|
|
12
|
+
import { F as _be } from "./F0VideoPlayer-CNvEtJ9U.js";
|
|
13
|
+
import { F as wbe, c as Sbe, p as Cbe } from "./index-B1tQWotf.js";
|
|
14
|
+
import { c as Dbe } from "./pdfWorker-C8Mu95m3.js";
|
|
15
|
+
import { H as g3, I as ov, J as Rx, K as y2, L as m3, M as y3, N as b3, O as _3, P as x3, F as w3 } from "./F0AiProcessingOverlay-3H79lgMd.js";
|
|
16
|
+
import { A as Mbe, C as Ebe, t as Lbe, s as Nbe, v as Ibe, y as Pbe, B as kbe, l as Rbe, i as Obe, q as Bbe, E as zbe, G as Vbe, p as Fbe, r as Gbe, j as Hbe, e as Wbe, g as $be, k as Ube, T as Ybe, w as Xbe, h as qbe, a as Zbe, n as jbe, z as Kbe, m as Qbe, o as Jbe, D as e_e, b as t_e, f as r_e, x as n_e, c as i_e, d as a_e, u as o_e } from "./F0AiProcessingOverlay-3H79lgMd.js";
|
|
17
17
|
import { utils as Dl, write as b2 } from "./xlsx-CzlURDDb.js";
|
|
18
18
|
import { defaultTranslations as l_e } from "./i18n-provider-defaults.js";
|
|
19
19
|
import './f0.css';const S3 = {
|
|
@@ -1646,8 +1646,10 @@ declare module "@tiptap/core" {
|
|
|
1646
1646
|
|
|
1647
1647
|
declare module "@tiptap/core" {
|
|
1648
1648
|
interface Commands<ReturnType> {
|
|
1649
|
-
|
|
1650
|
-
|
|
1649
|
+
videoEmbed: {
|
|
1650
|
+
setVideoEmbed: (options: {
|
|
1651
|
+
src: string;
|
|
1652
|
+
}) => ReturnType;
|
|
1651
1653
|
};
|
|
1652
1654
|
}
|
|
1653
1655
|
}
|
|
@@ -1655,10 +1657,8 @@ declare module "@tiptap/core" {
|
|
|
1655
1657
|
|
|
1656
1658
|
declare module "@tiptap/core" {
|
|
1657
1659
|
interface Commands<ReturnType> {
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
src: string;
|
|
1661
|
-
}) => ReturnType;
|
|
1660
|
+
transcript: {
|
|
1661
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
1662
1662
|
};
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as E } from "./F0CanvasPanel-DAEeI3lV.js";
|
|
2
2
|
const P = 5.3, G = 11 - P, S = (e) => {
|
|
3
|
-
let t,
|
|
3
|
+
let t, n;
|
|
4
4
|
return {
|
|
5
5
|
set: (s) => {
|
|
6
6
|
if (!s) {
|
|
7
|
-
|
|
7
|
+
n?.remove(), n = void 0, t = void 0;
|
|
8
8
|
return;
|
|
9
9
|
}
|
|
10
10
|
if (!t) {
|
|
@@ -15,13 +15,13 @@ const P = 5.3, G = 11 - P, S = (e) => {
|
|
|
15
15
|
`background:hsl(${E.malibu[60]})`,
|
|
16
16
|
`box-shadow:0 0 0 ${G}px hsl(${E.malibu[50]} / 0.3)`,
|
|
17
17
|
"pointer-events:none"
|
|
18
|
-
].join(";"),
|
|
18
|
+
].join(";"), n = e.add(t, s, { beneath: !0 });
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
n?.setPosition(s);
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
}, _ = (e) => e.map(([t,
|
|
24
|
+
}, _ = (e) => e.map(([t, n]) => ({ lat: n, lng: t })), b = (e, t) => ({
|
|
25
25
|
strokeColor: t && e.hover?.color || e.color,
|
|
26
26
|
strokeWeight: t && e.hover?.width || e.width,
|
|
27
27
|
strokeOpacity: e.dashed ? 0 : (t ? e.hover?.opacity : void 0) ?? e.opacity,
|
|
@@ -41,14 +41,14 @@ const P = 5.3, G = 11 - P, S = (e) => {
|
|
|
41
41
|
] : void 0
|
|
42
42
|
}), W = (e) => {
|
|
43
43
|
let t = [];
|
|
44
|
-
const
|
|
44
|
+
const n = () => {
|
|
45
45
|
for (const s of t)
|
|
46
46
|
s.listeners.forEach((a) => a.remove()), s.polyline.setMap(null);
|
|
47
47
|
t = [];
|
|
48
48
|
};
|
|
49
49
|
return {
|
|
50
50
|
set: (s, a) => {
|
|
51
|
-
|
|
51
|
+
n(), t = s.map((l) => {
|
|
52
52
|
const p = new google.maps.Polyline({
|
|
53
53
|
map: e,
|
|
54
54
|
path: _(l.coordinates),
|
|
@@ -66,7 +66,7 @@ const P = 5.3, G = 11 - P, S = (e) => {
|
|
|
66
66
|
), { line: l, polyline: p, listeners: u };
|
|
67
67
|
});
|
|
68
68
|
},
|
|
69
|
-
destroy:
|
|
69
|
+
destroy: n
|
|
70
70
|
};
|
|
71
71
|
}, L = "__f0GoogleMapsReady", j = "https://maps.googleapis.com/maps/api/js";
|
|
72
72
|
let v;
|
|
@@ -78,16 +78,16 @@ const C = () => new Error("F0Map: the Google Maps JavaScript API failed to load.
|
|
|
78
78
|
}
|
|
79
79
|
if (!e?.Map)
|
|
80
80
|
throw C();
|
|
81
|
-
}, H = (e) => new Promise((t,
|
|
82
|
-
e.addEventListener("load", () => t(), { once: !0 }), e.addEventListener("error", () =>
|
|
83
|
-
}), K = (e) => new Promise((t,
|
|
81
|
+
}, H = (e) => new Promise((t, n) => {
|
|
82
|
+
e.addEventListener("load", () => t(), { once: !0 }), e.addEventListener("error", () => n(C()), { once: !0 });
|
|
83
|
+
}), K = (e) => new Promise((t, n) => {
|
|
84
84
|
const s = window;
|
|
85
85
|
s[L] = () => {
|
|
86
86
|
Reflect.deleteProperty(s, L), t();
|
|
87
87
|
};
|
|
88
88
|
const a = document.createElement("script");
|
|
89
89
|
a.async = !0, a.src = j + `?key=${encodeURIComponent(e)}&v=weekly&loading=async&libraries=maps&callback=${L}`, a.onerror = () => {
|
|
90
|
-
a.remove(),
|
|
90
|
+
a.remove(), n(C());
|
|
91
91
|
}, document.head.appendChild(a);
|
|
92
92
|
}), D = (e) => {
|
|
93
93
|
if (v)
|
|
@@ -99,7 +99,7 @@ const C = () => new Error("F0Map: the Google Maps JavaScript API failed to load.
|
|
|
99
99
|
throw v = void 0, s;
|
|
100
100
|
}), v;
|
|
101
101
|
}, U = (e) => {
|
|
102
|
-
const t = /* @__PURE__ */ new Set(),
|
|
102
|
+
const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
|
103
103
|
let s, a, l = !1, p = !1;
|
|
104
104
|
const u = (c, h) => {
|
|
105
105
|
const o = h.fromLatLngToDivPixel(
|
|
@@ -110,12 +110,12 @@ const C = () => new Error("F0Map: the Google Maps JavaScript API failed to load.
|
|
|
110
110
|
class x extends google.maps.OverlayView {
|
|
111
111
|
onAdd() {
|
|
112
112
|
const h = this.getPanes(), o = () => {
|
|
113
|
-
const
|
|
114
|
-
return
|
|
113
|
+
const r = document.createElement("div");
|
|
114
|
+
return r.style.cssText = "position:absolute;left:0;top:0;width:0;height:0", r;
|
|
115
115
|
};
|
|
116
116
|
s = o(), a = o();
|
|
117
|
-
for (const
|
|
118
|
-
(
|
|
117
|
+
for (const r of t)
|
|
118
|
+
(r.beneath ? a : s).appendChild(r.element);
|
|
119
119
|
h?.overlayMouseTarget.appendChild(s), h?.mapPane.appendChild(a);
|
|
120
120
|
}
|
|
121
121
|
draw() {
|
|
@@ -123,7 +123,7 @@ const C = () => new Error("F0Map: the Google Maps JavaScript API failed to load.
|
|
|
123
123
|
if (h) {
|
|
124
124
|
for (const o of t)
|
|
125
125
|
u(o, h);
|
|
126
|
-
l || (l = !0,
|
|
126
|
+
l || (l = !0, n.forEach((o) => o()));
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
onRemove() {
|
|
@@ -135,38 +135,38 @@ const C = () => new Error("F0Map: the Google Maps JavaScript API failed to load.
|
|
|
135
135
|
const f = () => p ? void 0 : y.getProjection();
|
|
136
136
|
return {
|
|
137
137
|
add: (c, h, o) => {
|
|
138
|
-
const
|
|
139
|
-
t.add(
|
|
138
|
+
const r = { element: c, at: h, beneath: o?.beneath ?? !1 };
|
|
139
|
+
t.add(r), c.style.position = "absolute", (r.beneath ? a : s)?.appendChild(c);
|
|
140
140
|
const d = f();
|
|
141
|
-
return d && u(
|
|
141
|
+
return d && u(r, d), {
|
|
142
142
|
setPosition: (i) => {
|
|
143
|
-
|
|
143
|
+
r.at = i;
|
|
144
144
|
const m = f();
|
|
145
|
-
m && u(
|
|
145
|
+
m && u(r, m);
|
|
146
146
|
},
|
|
147
147
|
remove: () => {
|
|
148
|
-
t.delete(
|
|
148
|
+
t.delete(r), c.remove();
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
151
|
},
|
|
152
152
|
onReady: (c) => l ? (c(), () => {
|
|
153
|
-
}) : (
|
|
153
|
+
}) : (n.add(c), () => n.delete(c)),
|
|
154
154
|
isReady: () => l,
|
|
155
155
|
destroy: () => {
|
|
156
|
-
p = !0, l = !1,
|
|
156
|
+
p = !0, l = !1, n.clear();
|
|
157
157
|
for (const c of t)
|
|
158
158
|
c.element.remove();
|
|
159
159
|
t.clear(), y.setMap(null);
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
162
|
}, M = 256, O = ([e, t]) => {
|
|
163
|
-
const
|
|
163
|
+
const n = Math.min(
|
|
164
164
|
Math.max(Math.sin(t * Math.PI / 180), -0.9999),
|
|
165
165
|
0.9999
|
|
166
166
|
);
|
|
167
167
|
return {
|
|
168
168
|
x: M * (0.5 + e / 360),
|
|
169
|
-
y: M * (0.5 - Math.log((1 +
|
|
169
|
+
y: M * (0.5 - Math.log((1 + n) / (1 - n)) / (4 * Math.PI))
|
|
170
170
|
};
|
|
171
171
|
}, N = ({ x: e, y: t }) => [
|
|
172
172
|
(e / M - 0.5) * 360,
|
|
@@ -186,7 +186,7 @@ const C = () => new Error("F0Map: the Google Maps JavaScript API failed to load.
|
|
|
186
186
|
}, J = (e) => {
|
|
187
187
|
const t = document.createElement("div");
|
|
188
188
|
t.style.cssText = "position:absolute;inset:0", e.container.appendChild(t);
|
|
189
|
-
const
|
|
189
|
+
const n = new google.maps.Map(t, {
|
|
190
190
|
center: w(e.center),
|
|
191
191
|
zoom: e.zoom,
|
|
192
192
|
minZoom: e.minZoom,
|
|
@@ -196,55 +196,55 @@ const C = () => new Error("F0Map: the Google Maps JavaScript API failed to load.
|
|
|
196
196
|
styles: I(e.style),
|
|
197
197
|
disableDefaultUI: !0,
|
|
198
198
|
gestureHandling: e.interactive ? e.cooperativeGestures ? "cooperative" : "greedy" : "none"
|
|
199
|
-
}), s = U(
|
|
199
|
+
}), s = U(n), a = S(s), l = W(n);
|
|
200
200
|
let p = !1;
|
|
201
|
-
const u = () =>
|
|
202
|
-
const o =
|
|
201
|
+
const u = () => n.getZoom() ?? e.zoom, x = () => {
|
|
202
|
+
const o = n.getCenter();
|
|
203
203
|
return o ? [o.lng(), o.lat()] : e.center;
|
|
204
204
|
}, y = () => p || !s.isReady() ? null : {
|
|
205
205
|
scale: 2 ** u(),
|
|
206
206
|
centre: O(x()),
|
|
207
207
|
half: { x: t.clientWidth / 2, y: t.clientHeight / 2 }
|
|
208
208
|
}, f = (o) => {
|
|
209
|
-
const
|
|
210
|
-
if (!
|
|
209
|
+
const r = y();
|
|
210
|
+
if (!r)
|
|
211
211
|
return null;
|
|
212
212
|
const d = O(o);
|
|
213
213
|
return {
|
|
214
|
-
x: (d.x -
|
|
215
|
-
y: (d.y -
|
|
214
|
+
x: (d.x - r.centre.x) * r.scale + r.half.x,
|
|
215
|
+
y: (d.y - r.centre.y) * r.scale + r.half.y
|
|
216
216
|
};
|
|
217
217
|
}, c = (o) => {
|
|
218
|
-
const
|
|
219
|
-
return
|
|
220
|
-
x:
|
|
221
|
-
y:
|
|
218
|
+
const r = y();
|
|
219
|
+
return r ? N({
|
|
220
|
+
x: r.centre.x + (o.x - r.half.x) / r.scale,
|
|
221
|
+
y: r.centre.y + (o.y - r.half.y) / r.scale
|
|
222
222
|
}) : null;
|
|
223
223
|
}, h = (o) => {
|
|
224
|
-
|
|
224
|
+
n.panTo(w(o.center)), o.zoom !== void 0 && n.setZoom(o.zoom);
|
|
225
225
|
};
|
|
226
226
|
return {
|
|
227
227
|
provider: "google",
|
|
228
228
|
capabilities: V,
|
|
229
|
-
native: () =>
|
|
229
|
+
native: () => n,
|
|
230
230
|
isAlive: () => !p,
|
|
231
231
|
destroy: () => {
|
|
232
232
|
p = !0, l.destroy(), a.set(null), s.destroy(), t.remove();
|
|
233
233
|
},
|
|
234
|
-
on: (o,
|
|
234
|
+
on: (o, r) => {
|
|
235
235
|
if (o === "ready")
|
|
236
|
-
return s.onReady(
|
|
236
|
+
return s.onReady(r);
|
|
237
237
|
if (o === "resize") {
|
|
238
|
-
const i = new ResizeObserver(() =>
|
|
238
|
+
const i = new ResizeObserver(() => r());
|
|
239
239
|
return i.observe(e.container), () => i.disconnect();
|
|
240
240
|
}
|
|
241
241
|
if (o === "error") {
|
|
242
242
|
const i = window, m = i.gm_authFailure;
|
|
243
|
-
return i.gm_authFailure =
|
|
243
|
+
return i.gm_authFailure = r, () => {
|
|
244
244
|
i.gm_authFailure = m;
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
|
-
const d =
|
|
247
|
+
const d = n.addListener(q[o], r);
|
|
248
248
|
return () => d.remove();
|
|
249
249
|
},
|
|
250
250
|
project: f,
|
|
@@ -252,7 +252,7 @@ const C = () => new Error("F0Map: the Google Maps JavaScript API failed to load.
|
|
|
252
252
|
getZoom: u,
|
|
253
253
|
getCenter: x,
|
|
254
254
|
jumpTo: (o) => {
|
|
255
|
-
|
|
255
|
+
n.moveCamera({
|
|
256
256
|
center: w(o.center),
|
|
257
257
|
...o.zoom === void 0 ? {} : { zoom: o.zoom }
|
|
258
258
|
});
|
|
@@ -260,23 +260,23 @@ const C = () => new Error("F0Map: the Google Maps JavaScript API failed to load.
|
|
|
260
260
|
easeTo: h,
|
|
261
261
|
// No coupled pan+zoom arc exists here; the renderer glides on its own.
|
|
262
262
|
flyTo: h,
|
|
263
|
-
fitCoordinates: (o,
|
|
263
|
+
fitCoordinates: (o, r) => {
|
|
264
264
|
const d = new google.maps.LatLngBounds();
|
|
265
265
|
o.forEach((m) => d.extend(w(m)));
|
|
266
|
-
const i =
|
|
267
|
-
if (
|
|
266
|
+
const i = r?.gutter ?? 0;
|
|
267
|
+
if (n.fitBounds(d, {
|
|
268
268
|
top: i,
|
|
269
269
|
right: i,
|
|
270
270
|
bottom: i,
|
|
271
271
|
left: i
|
|
272
|
-
}),
|
|
273
|
-
const m =
|
|
274
|
-
m !== void 0 && m >
|
|
272
|
+
}), r?.maxZoom !== void 0) {
|
|
273
|
+
const m = n.getZoom();
|
|
274
|
+
m !== void 0 && m > r.maxZoom && n.setZoom(r.maxZoom);
|
|
275
275
|
}
|
|
276
276
|
},
|
|
277
277
|
// Google has no `cameraForBounds`: the pixel box at the current zoom gives
|
|
278
278
|
// the scale change to fit, which is a zoom delta.
|
|
279
|
-
cameraForCoordinates: (o,
|
|
279
|
+
cameraForCoordinates: (o, r) => {
|
|
280
280
|
if (o.length === 0)
|
|
281
281
|
return null;
|
|
282
282
|
const d = o.map(f);
|
|
@@ -288,24 +288,24 @@ const C = () => new Error("F0Map: the Google Maps JavaScript API failed to load.
|
|
|
288
288
|
});
|
|
289
289
|
if (!z)
|
|
290
290
|
return null;
|
|
291
|
-
const Z =
|
|
291
|
+
const Z = r?.gutter ?? 0, R = Math.max(Math.max(...i) - Math.min(...i), 1), T = Math.max(Math.max(...m) - Math.min(...m), 1), k = {
|
|
292
292
|
width: Math.max(e.container.clientWidth - Z * 2, 1),
|
|
293
293
|
height: Math.max(e.container.clientHeight - Z * 2, 1)
|
|
294
294
|
}, $ = Math.min(k.width / R, k.height / T), F = Math.min(
|
|
295
295
|
u() + Math.log2($),
|
|
296
|
-
|
|
296
|
+
r?.maxZoom ?? 1 / 0
|
|
297
297
|
);
|
|
298
298
|
return { center: z, zoom: F };
|
|
299
299
|
},
|
|
300
300
|
addDomMarker: s.add,
|
|
301
|
-
setLines: (o,
|
|
301
|
+
setLines: (o, r) => l.set(o, r?.onClick),
|
|
302
302
|
setCurrentLocation: (o) => a.set(o),
|
|
303
|
-
zoomIn: () =>
|
|
304
|
-
zoomOut: () =>
|
|
303
|
+
zoomIn: () => n.setZoom(u() + 1),
|
|
304
|
+
zoomOut: () => n.setZoom(u() - 1),
|
|
305
305
|
// Google re-reads its container on its own; there is nothing to poke.
|
|
306
306
|
resize: () => {
|
|
307
307
|
},
|
|
308
|
-
applyStyle: (o) =>
|
|
308
|
+
applyStyle: (o) => n.setOptions({ styles: I(o) }),
|
|
309
309
|
setGlobeProjection: () => {
|
|
310
310
|
}
|
|
311
311
|
};
|