@factorialco/f0-react 10.5.0 → 10.6.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-BcB8BFAo.js → ChatPdfThumbnail-adL3N5Xz.js} +1 -1
- package/dist/{ChatPostComposerDialog-DpVmittj.js → ChatPostComposerDialog-BeJZv7tT.js} +1 -1
- package/dist/{CoachmarkProvider-B5ciI6gR.js → CoachmarkProvider-DVF40v2q.js} +1 -1
- package/dist/{DocumentToolbar-D_Hxbc_D.js → DocumentToolbar-rCarM1oo.js} +1 -1
- package/dist/{DocxViewer-CVGAzLmU.js → DocxViewer-C1dP05wX.js} +1 -1
- package/dist/{F0AiProcessingOverlay-BXmzGEmi.js → F0AiProcessingOverlay-CrvPHV1G.js} +1 -1
- package/dist/{F0DocumentViewer-BQCW-WqC.js → F0DocumentViewer-BrxSgrT8.js} +2 -2
- package/dist/F0DocumentViewer-Crhq3XFQ.js +3 -0
- package/dist/{F0Map-6nNKQ0OZ.js → F0Map-DC_Mplnx.js} +104 -102
- package/dist/F0VideoPlayer-C0kP3yFk.js +1 -0
- package/dist/{F0VideoPlayer-CHCDLaVw.js → F0VideoPlayer-NjaAU0Gm.js} +1 -1
- package/dist/{Map-BMUPE5wX.js → Map-D6mJxw2a.js} +2 -2
- package/dist/{SheetViewer-B8kBlT00.js → SheetViewer-8ZWEuOLq.js} +2 -2
- package/dist/{TextViewer-DOHOHITw.js → TextViewer-B00Rmqc7.js} +1 -1
- package/dist/ai.js +1 -1
- package/dist/component-status.js +1 -1
- package/dist/experimental.js +3105 -3105
- package/dist/f0.js +5 -5
- package/dist/{maplibre-CUHfatAR.js → maplibre-C8TCdToL.js} +1 -1
- package/dist/{pdfWorker-BKuO7yxP.js → pdfWorker-8f29nzGo.js} +1 -1
- package/package.json +1 -1
- package/dist/F0DocumentViewer-DmypZ_lC.js +0 -3
- package/dist/F0VideoPlayer-B5R8MIiN.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e, n as t, r as n } from "./pdfWorker-
|
|
1
|
+
import { i as e, n as t, r as n } from "./pdfWorker-8f29nzGo.js";
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
3
|
//#region src/domains/platform/communications/chat/F0Chat/components/ChatPdfThumbnail.tsx
|
|
4
4
|
t();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as e } from "./CoachmarkProvider-
|
|
1
|
+
import { M as e } from "./CoachmarkProvider-DVF40v2q.js";
|
|
2
2
|
import { rn as t } from "./popover-B2hEEubt.js";
|
|
3
3
|
import { sn as n } from "./F0CanvasPanel-C7vHU_iJ.js";
|
|
4
4
|
import { a as r, f as i, i as a, u as o } from "./posts-DgzHTT_B.js";
|
|
@@ -81581,7 +81581,7 @@ var $X = ({ lanes: e, renderCard: t, getKey: n, onCreate: r, onMove: i, idProvid
|
|
|
81581
81581
|
})]
|
|
81582
81582
|
})
|
|
81583
81583
|
});
|
|
81584
|
-
}, D8e = tre(() => import("./Map-
|
|
81584
|
+
}, D8e = tre(() => import("./Map-D6mJxw2a.js").then((e) => ({ default: e.MapCollection }))), rZ = {
|
|
81585
81585
|
table: {
|
|
81586
81586
|
name: "Table",
|
|
81587
81587
|
icon: vte,
|
|
@@ -2,7 +2,7 @@ import { rn as e } from "./popover-B2hEEubt.js";
|
|
|
2
2
|
import { Ao as t } from "./F0CanvasPanel-C7vHU_iJ.js";
|
|
3
3
|
import { W as n } from "./useData-DjJsB0qa.js";
|
|
4
4
|
import { dr as r, t as i } from "./F0Select-CovHF33V.js";
|
|
5
|
-
import { a, c as o, i as s, l as c, o as l, r as u, s as d } from "./F0DocumentViewer-
|
|
5
|
+
import { a, c as o, i as s, l as c, o as l, r as u, s as d } from "./F0DocumentViewer-BrxSgrT8.js";
|
|
6
6
|
import { useCallback as f, useMemo as p, useState as m } from "react";
|
|
7
7
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
8
8
|
//#region src/addons/documents/F0DocumentViewer/components/DocumentToolbar.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ln as e, rn as t } from "./popover-B2hEEubt.js";
|
|
2
2
|
import { t as n } from "./renderDocx-_UmnE-yc.js";
|
|
3
|
-
import { n as r, t as i } from "./DocumentToolbar-
|
|
3
|
+
import { n as r, t as i } from "./DocumentToolbar-rCarM1oo.js";
|
|
4
4
|
import { useEffect as a, useRef as o, useState as s } from "react";
|
|
5
5
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
6
|
//#region src/addons/documents/F0DocumentViewer/components/DocxViewer.tsx
|
|
@@ -2238,7 +2238,7 @@ function xr({ children: e, title: t, ...n }) {
|
|
|
2238
2238
|
br(i.current, e, n);
|
|
2239
2239
|
}, [t]);
|
|
2240
2240
|
return /* @__PURE__ */ Q("div", {
|
|
2241
|
-
className: "group/table relative flex flex-col gap-2 rounded-md border border-solid border-f1-border-secondary",
|
|
2241
|
+
className: "group/table relative my-2 flex flex-col gap-2 rounded-md border border-solid border-f1-border-secondary first:mt-0 last:mb-0",
|
|
2242
2242
|
children: [/* @__PURE__ */ Q("div", {
|
|
2243
2243
|
className: "flex items-center justify-between gap-3 border-0 border-b border-solid border-f1-border-secondary px-3 py-2",
|
|
2244
2244
|
children: [/* @__PURE__ */ Z(v, {
|
|
@@ -3,7 +3,7 @@ import { I as o } from "./tooltip-TOvfXq9F.js";
|
|
|
3
3
|
import { Ao as s, Mi as c, Ta as l, va as u } from "./F0CanvasPanel-C7vHU_iJ.js";
|
|
4
4
|
import { W as d, q as f } from "./useData-DjJsB0qa.js";
|
|
5
5
|
import { Er as p, dr as m, t as h } from "./F0Select-CovHF33V.js";
|
|
6
|
-
import { i as g, n as _, r as v } from "./pdfWorker-
|
|
6
|
+
import { i as g, n as _, r as v } from "./pdfWorker-8f29nzGo.js";
|
|
7
7
|
import { Suspense as y, forwardRef as b, lazy as x, useCallback as S, useEffect as C, useMemo as w, useRef as T, useState as E } from "react";
|
|
8
8
|
import { jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
9
9
|
import './F0DocumentViewer.css';//#region src/addons/documents/F0DocumentViewer/components/PdfLoadingState.tsx
|
|
@@ -183,7 +183,7 @@ var k = ({ label: e, width: t, height: r }) => /* @__PURE__ */ D("div", {
|
|
|
183
183
|
//#endregion
|
|
184
184
|
//#region src/addons/documents/F0DocumentViewer/F0DocumentViewer.tsx
|
|
185
185
|
_();
|
|
186
|
-
var z = x(() => import("./SheetViewer-
|
|
186
|
+
var z = x(() => import("./SheetViewer-8ZWEuOLq.js")), B = x(() => import("./DocxViewer-C1dP05wX.js")), V = x(() => import("./TextViewer-B00Rmqc7.js")), se = 48, ce = 150, H = b((e, t) => {
|
|
187
187
|
let { kind: r = "pdf", mimeType: i, toolbar: a = "top", ...o } = e;
|
|
188
188
|
if (r === "pdf") return /* @__PURE__ */ D(U, {
|
|
189
189
|
ref: t,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, ai as t, o as n } from "./CoachmarkProvider-
|
|
1
|
+
import { a as e, ai as t, o as n } from "./CoachmarkProvider-DVF40v2q.js";
|
|
2
2
|
import { Ht as r, Lt as i, Mt as a, Zn as o, b as s, gn as c, in as l, ir as u, mn as d, rn as f } from "./popover-B2hEEubt.js";
|
|
3
3
|
import { I as p, L as m } from "./tooltip-TOvfXq9F.js";
|
|
4
4
|
import { n as h, t as g } from "./F0Box-D0fWIRgc.js";
|
|
@@ -1083,8 +1083,10 @@ var Y = tt, nt = 16, rt = (e, t, n, r) => {
|
|
|
1083
1083
|
})
|
|
1084
1084
|
})
|
|
1085
1085
|
});
|
|
1086
|
-
}, Z = "one_sidebar_locked", Q = ne(void 0)
|
|
1087
|
-
|
|
1086
|
+
}, Z = "one_sidebar_locked", Q = ne(void 0), ct = /* @__PURE__ */ new WeakSet(), lt = (e) => {
|
|
1087
|
+
ct.add(e.nativeEvent);
|
|
1088
|
+
};
|
|
1089
|
+
function ut() {
|
|
1088
1090
|
let e = re(Q);
|
|
1089
1091
|
return e === void 0 ? {
|
|
1090
1092
|
isSmallScreen: !1,
|
|
@@ -1099,7 +1101,7 @@ function ct() {
|
|
|
1099
1101
|
setRailWidth: () => {}
|
|
1100
1102
|
} : e;
|
|
1101
1103
|
}
|
|
1102
|
-
function
|
|
1104
|
+
function dt({ children: e }) {
|
|
1103
1105
|
let { currentPath: t } = d(), [n, r] = k(!1), [a, o] = k(0), [s, c] = k(!1), l = n ? te.xl : te.md, u = i(`(max-width: ${l}px)`, { initializeWithValue: !0 }), [f, p] = k(() => {
|
|
1104
1106
|
let e = localStorage.getItem(Z);
|
|
1105
1107
|
return e === null || !!e;
|
|
@@ -1112,7 +1114,7 @@ function lt({ children: e }) {
|
|
|
1112
1114
|
p,
|
|
1113
1115
|
h
|
|
1114
1116
|
]), b = T((e) => {
|
|
1115
|
-
u || (e.clientX >= a && e.clientX < a + 32 && h(!0), e.clientX > a + 280 && h(!1));
|
|
1117
|
+
u || ct.has(e.nativeEvent) || (e.clientX >= a && e.clientX < a + 32 && h(!0), e.clientX > a + 280 && h(!1));
|
|
1116
1118
|
}, [
|
|
1117
1119
|
u,
|
|
1118
1120
|
h,
|
|
@@ -1150,7 +1152,7 @@ function lt({ children: e }) {
|
|
|
1150
1152
|
}
|
|
1151
1153
|
//#endregion
|
|
1152
1154
|
//#region src/blocks/Navigation/Sidebar/Icon/Icon.tsx
|
|
1153
|
-
function
|
|
1155
|
+
function ft({ isExpanded: e }) {
|
|
1154
1156
|
return /* @__PURE__ */ j("svg", {
|
|
1155
1157
|
width: "20",
|
|
1156
1158
|
height: "20",
|
|
@@ -1187,8 +1189,8 @@ function ut({ isExpanded: e }) {
|
|
|
1187
1189
|
]
|
|
1188
1190
|
});
|
|
1189
1191
|
}
|
|
1190
|
-
function
|
|
1191
|
-
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n, isSmallScreen: i } =
|
|
1192
|
+
function pt() {
|
|
1193
|
+
let { prevSidebarState: e, sidebarState: t, toggleSidebar: n, isSmallScreen: i } = ut(), a = O(null);
|
|
1192
1194
|
return E(() => {
|
|
1193
1195
|
e === "hidden" && t === "locked" && a.current?.focus();
|
|
1194
1196
|
}, [e, t]), /* @__PURE__ */ j(r, {
|
|
@@ -1202,7 +1204,7 @@ function dt() {
|
|
|
1202
1204
|
"aria-label": "Close Sidebar",
|
|
1203
1205
|
children: [/* @__PURE__ */ A("div", {
|
|
1204
1206
|
className: p("hidden", { flex: !i }),
|
|
1205
|
-
children: /* @__PURE__ */ A(
|
|
1207
|
+
children: /* @__PURE__ */ A(ft, { isExpanded: t === "locked" })
|
|
1206
1208
|
}), /* @__PURE__ */ A("div", {
|
|
1207
1209
|
className: p("hidden", { flex: i }),
|
|
1208
1210
|
children: /* @__PURE__ */ A(l, {
|
|
@@ -1214,7 +1216,7 @@ function dt() {
|
|
|
1214
1216
|
}
|
|
1215
1217
|
//#endregion
|
|
1216
1218
|
//#region src/addons/map/F0Map/components/F0MapSidebarToggle/F0MapSidebarToggle.tsx
|
|
1217
|
-
var
|
|
1219
|
+
var mt = w(({ expanded: e, onToggle: t, label: n, bare: i = !1, dataTestId: a }, o) => {
|
|
1218
1220
|
let s = f(), c = n ?? (e ? s.map.controls.hidePanel : s.map.controls.showPanel), l = /* @__PURE__ */ A(r, {
|
|
1219
1221
|
ref: o,
|
|
1220
1222
|
variant: "ghost",
|
|
@@ -1225,29 +1227,29 @@ var ft = w(({ expanded: e, onToggle: t, label: n, bare: i = !1, dataTestId: a },
|
|
|
1225
1227
|
title: c,
|
|
1226
1228
|
"aria-label": c,
|
|
1227
1229
|
"aria-expanded": e,
|
|
1228
|
-
children: /* @__PURE__ */ A(
|
|
1230
|
+
children: /* @__PURE__ */ A(ft, { isExpanded: e })
|
|
1229
1231
|
});
|
|
1230
1232
|
return /* @__PURE__ */ A(u, {
|
|
1231
1233
|
dataTestId: a,
|
|
1232
1234
|
children: i ? l : /* @__PURE__ */ A(Ae, { children: l })
|
|
1233
1235
|
});
|
|
1234
1236
|
});
|
|
1235
|
-
|
|
1237
|
+
mt.displayName = "F0MapSidebarToggle";
|
|
1236
1238
|
//#endregion
|
|
1237
1239
|
//#region src/addons/map/F0Map/utils/arc.ts
|
|
1238
|
-
var
|
|
1240
|
+
var ht = (e, t, n = .3, r = 64) => {
|
|
1239
1241
|
let [i, a] = e, [o, s] = t, c = (i + o) / 2, l = (a + s) / 2, u = c - (s - a) * n, d = l + (o - i) * n, f = [];
|
|
1240
1242
|
for (let e = 0; e <= r; e++) {
|
|
1241
1243
|
let t = e / r, n = 1 - t, c = n * n, l = 2 * n * t, p = t * t;
|
|
1242
1244
|
f.push([c * i + l * u + p * o, c * a + l * d + p * s]);
|
|
1243
1245
|
}
|
|
1244
1246
|
return f;
|
|
1245
|
-
},
|
|
1247
|
+
}, gt = (e, t) => e.color ?? R(e.variant ?? "radical", t), _t = (e, t) => e.color ?? R(e.variant ?? "radical", !t), vt = ({ id: e, kind: t, coordinates: n, style: r, isDark: i }) => {
|
|
1246
1248
|
let a = r.width ?? 3;
|
|
1247
1249
|
return {
|
|
1248
1250
|
id: e,
|
|
1249
1251
|
coordinates: n,
|
|
1250
|
-
color:
|
|
1252
|
+
color: gt(r, i),
|
|
1251
1253
|
width: a,
|
|
1252
1254
|
opacity: r.opacity ?? 1,
|
|
1253
1255
|
dashed: r.dashed ?? !1,
|
|
@@ -1255,21 +1257,21 @@ var pt = (e, t, n = .3, r = 64) => {
|
|
|
1255
1257
|
width: a * 1.6,
|
|
1256
1258
|
opacity: 1
|
|
1257
1259
|
} : {
|
|
1258
|
-
color:
|
|
1260
|
+
color: _t(r, i),
|
|
1259
1261
|
opacity: 1
|
|
1260
1262
|
}
|
|
1261
1263
|
};
|
|
1262
|
-
},
|
|
1263
|
-
let o = D(() => [...t.map((e) =>
|
|
1264
|
+
}, yt = ({ adapter: e, routes: t, arcs: n, isDark: r, onRouteClick: i, onArcClick: a }) => {
|
|
1265
|
+
let o = D(() => [...t.map((e) => vt({
|
|
1264
1266
|
id: e.id,
|
|
1265
1267
|
kind: "route",
|
|
1266
1268
|
coordinates: e.coordinates,
|
|
1267
1269
|
style: e,
|
|
1268
1270
|
isDark: r
|
|
1269
|
-
})), ...n.map((e) =>
|
|
1271
|
+
})), ...n.map((e) => vt({
|
|
1270
1272
|
id: e.id,
|
|
1271
1273
|
kind: "arc",
|
|
1272
|
-
coordinates:
|
|
1274
|
+
coordinates: ht(e.from, e.to, e.curvature),
|
|
1273
1275
|
style: e,
|
|
1274
1276
|
isDark: r
|
|
1275
1277
|
}))], [
|
|
@@ -1297,23 +1299,23 @@ var pt = (e, t, n = .3, r = 64) => {
|
|
|
1297
1299
|
o,
|
|
1298
1300
|
l
|
|
1299
1301
|
]), E(() => () => e.setLines([]), [e]), null;
|
|
1300
|
-
},
|
|
1302
|
+
}, bt = ({ adapter: e, coords: t }) => (E(() => {
|
|
1301
1303
|
e.setCurrentLocation(t);
|
|
1302
1304
|
}, [e, t]), E(() => () => e.setCurrentLocation(null), [e]), null);
|
|
1303
|
-
|
|
1305
|
+
bt.displayName = "CurrentLocationLayer";
|
|
1304
1306
|
//#endregion
|
|
1305
1307
|
//#region src/addons/map/F0Map/constants.ts
|
|
1306
|
-
var
|
|
1308
|
+
var xt = {
|
|
1307
1309
|
curve: 1.42,
|
|
1308
1310
|
duration: 1400
|
|
1309
|
-
},
|
|
1311
|
+
}, St = 200, Ct = ({ dataTestId: e, className: t }) => /* @__PURE__ */ A(u, {
|
|
1310
1312
|
dataTestId: e,
|
|
1311
1313
|
children: /* @__PURE__ */ A("div", {
|
|
1312
1314
|
"aria-busy": "true",
|
|
1313
1315
|
"aria-live": "polite",
|
|
1314
1316
|
className: p("h-full w-full animate-pulse bg-f1-background-secondary", t)
|
|
1315
1317
|
})
|
|
1316
|
-
}),
|
|
1318
|
+
}), wt = (e) => {
|
|
1317
1319
|
let [t, n] = k(null), r = T((t) => {
|
|
1318
1320
|
e && typeof navigator < "u" && navigator.geolocation && navigator.geolocation.getCurrentPosition((e) => {
|
|
1319
1321
|
let r = [e.coords.longitude, e.coords.latitude];
|
|
@@ -1336,7 +1338,7 @@ var yt = {
|
|
|
1336
1338
|
coords: t,
|
|
1337
1339
|
request: r
|
|
1338
1340
|
};
|
|
1339
|
-
},
|
|
1341
|
+
}, Tt = () => {
|
|
1340
1342
|
let [e, t] = k(!1), n = O(null), r = T((e) => {
|
|
1341
1343
|
if (n.current?.disconnect(), n.current = null, !e) return;
|
|
1342
1344
|
let r = () => t(e.closest(".dark") !== null);
|
|
@@ -1352,17 +1354,17 @@ var yt = {
|
|
|
1352
1354
|
containerRef: r,
|
|
1353
1355
|
isDark: e
|
|
1354
1356
|
};
|
|
1355
|
-
},
|
|
1356
|
-
maplibre: async () => (await import("./maplibre-
|
|
1357
|
+
}, Et = {
|
|
1358
|
+
maplibre: async () => (await import("./maplibre-C8TCdToL.js")).createMaplibreAdapter,
|
|
1357
1359
|
google: async (e) => (await import("./google-B7uAYsxU.js")).loadGoogleAdapter(e)
|
|
1358
|
-
},
|
|
1359
|
-
let n =
|
|
1360
|
+
}, Dt = /* @__PURE__ */ new Map(), Ot = (e, t) => {
|
|
1361
|
+
let n = Dt.get(e);
|
|
1360
1362
|
if (n) return n;
|
|
1361
|
-
let r =
|
|
1362
|
-
throw
|
|
1363
|
+
let r = Et[e](t).catch((t) => {
|
|
1364
|
+
throw Dt.delete(e), t;
|
|
1363
1365
|
});
|
|
1364
|
-
return
|
|
1365
|
-
},
|
|
1366
|
+
return Dt.set(e, r), r;
|
|
1367
|
+
}, kt = {
|
|
1366
1368
|
version: 8,
|
|
1367
1369
|
sources: { openmaptiles: {
|
|
1368
1370
|
type: "vector",
|
|
@@ -6250,7 +6252,7 @@ var yt = {
|
|
|
6250
6252
|
],
|
|
6251
6253
|
name: "f0-dark",
|
|
6252
6254
|
metadata: { "f0:generated": !0 }
|
|
6253
|
-
},
|
|
6255
|
+
}, At = {
|
|
6254
6256
|
version: 8,
|
|
6255
6257
|
sources: { openmaptiles: {
|
|
6256
6258
|
type: "vector",
|
|
@@ -11138,7 +11140,7 @@ var yt = {
|
|
|
11138
11140
|
],
|
|
11139
11141
|
name: "f0-light",
|
|
11140
11142
|
metadata: { "f0:generated": !0 }
|
|
11141
|
-
},
|
|
11143
|
+
}, jt = [
|
|
11142
11144
|
{
|
|
11143
11145
|
featureType: "landscape",
|
|
11144
11146
|
elementType: "geometry.fill",
|
|
@@ -11294,7 +11296,7 @@ var yt = {
|
|
|
11294
11296
|
elementType: "labels.icon",
|
|
11295
11297
|
stylers: [{ visibility: "off" }]
|
|
11296
11298
|
}
|
|
11297
|
-
],
|
|
11299
|
+
], Mt = [
|
|
11298
11300
|
{
|
|
11299
11301
|
featureType: "landscape",
|
|
11300
11302
|
elementType: "geometry.fill",
|
|
@@ -11450,44 +11452,44 @@ var yt = {
|
|
|
11450
11452
|
elementType: "labels.icon",
|
|
11451
11453
|
stylers: [{ visibility: "off" }]
|
|
11452
11454
|
}
|
|
11453
|
-
],
|
|
11455
|
+
], Nt = {
|
|
11454
11456
|
provider: "maplibre",
|
|
11455
|
-
light: Ot,
|
|
11456
|
-
dark: Dt
|
|
11457
|
-
}, Mt = {
|
|
11458
|
-
provider: "google",
|
|
11459
11457
|
light: At,
|
|
11460
11458
|
dark: kt
|
|
11461
|
-
},
|
|
11459
|
+
}, Pt = {
|
|
11460
|
+
provider: "google",
|
|
11461
|
+
light: Mt,
|
|
11462
|
+
dark: jt
|
|
11463
|
+
}, $ = (e, t) => ({
|
|
11462
11464
|
featureType: e,
|
|
11463
11465
|
elementType: t,
|
|
11464
11466
|
stylers: [{ visibility: "off" }]
|
|
11465
|
-
}),
|
|
11466
|
-
|
|
11467
|
-
|
|
11468
|
-
|
|
11469
|
-
],
|
|
11467
|
+
}), Ft = [
|
|
11468
|
+
$("poi", "labels"),
|
|
11469
|
+
$("transit", "labels"),
|
|
11470
|
+
$("road", "labels.icon")
|
|
11471
|
+
], It = {
|
|
11470
11472
|
provider: "google",
|
|
11471
|
-
light:
|
|
11472
|
-
dark:
|
|
11473
|
-
},
|
|
11473
|
+
light: Ft,
|
|
11474
|
+
dark: Ft
|
|
11475
|
+
}, Lt = (e) => e === "google" ? It : Nt, Rt = (e, t, n) => {
|
|
11474
11476
|
let r = e.on(t, () => {
|
|
11475
11477
|
r(), n();
|
|
11476
11478
|
});
|
|
11477
11479
|
return r;
|
|
11478
|
-
},
|
|
11480
|
+
}, zt = {
|
|
11479
11481
|
center: [2.154, 41.39],
|
|
11480
11482
|
zoom: 11
|
|
11481
|
-
},
|
|
11483
|
+
}, Bt = (e, t, n, r) => [
|
|
11482
11484
|
...e.map((e) => e.coordinates),
|
|
11483
11485
|
...t.flatMap((e) => e.coordinates),
|
|
11484
11486
|
...n.flatMap((e) => [e.from, e.to]),
|
|
11485
11487
|
...r.flatMap((e) => me(e.center, e.radiusMeters))
|
|
11486
|
-
],
|
|
11487
|
-
let l =
|
|
11488
|
+
], Vt = (e) => e.top === 0 && e.right === 0 && e.bottom === 0 && e.left === 0, Ht = ({ adapter: e, points: t, animate: n, routes: r = [], arcs: i = [], areas: a = [], gutter: o = 64, inset: s, size: c }) => {
|
|
11489
|
+
let l = Bt(t, r, i, a);
|
|
11488
11490
|
if (l.length === 0) return;
|
|
11489
11491
|
let u = a.length > 0 ? 17 : 15;
|
|
11490
|
-
if (l.length > 1 &&
|
|
11492
|
+
if (l.length > 1 && Vt(s)) {
|
|
11491
11493
|
e.fitCoordinates(l, {
|
|
11492
11494
|
gutter: o,
|
|
11493
11495
|
maxZoom: u,
|
|
@@ -11507,10 +11509,10 @@ var yt = {
|
|
|
11507
11509
|
maxZoom: u
|
|
11508
11510
|
});
|
|
11509
11511
|
d && (n ? e.easeTo(d, { animate: n }) : e.jumpTo(d, { animate: n }));
|
|
11510
|
-
},
|
|
11511
|
-
let we = te ?? (D ? "greedy" : "cooperative"), I = f(), L = e(ve), Te = n(), R = O(null), z = O(null), [B, De] = k(null), [V, Oe] = k(!1), [ke, Me] = k(!1), [Pe, Fe] = k(0), Ie = ie(), W = a(), { containerRef: Le, isDark: Re } =
|
|
11512
|
+
}, Ut = (e) => `${e.top},${e.right},${e.bottom},${e.left}`, Wt = w(function({ markers: t = [], routes: r = [], arcs: i = [], areas: o = [], onRouteClick: s, onArcClick: c, selectedMarkerId: l, defaultSelectedMarkerId: d = null, onMarkerSelect: m, onMarkerDrag: h, onMarkerDragEnd: g, highlightedId: _ = null, viewportInset: v, centerOnMarkerClick: y = !1, fitToMarkers: b, initialViewport: x, mapStyle: S, interactive: ee = !0, gestureHandling: te, minZoom: C, maxZoom: ne = 18, showControls: w = !0, controlLabels: re, showCurrentLocation: oe = !1, fullScreen: D = !1, onSidebarToggle: M, sidebarExpanded: de = !1, sidebarToggleAddon: fe, sidebarHeaderStart: pe, sidebar: me, detail: he, detailOpen: F = !1, clearSelectionOnBackgroundClick: ge = !0, projection: _e = "mercator", provider: ve, loading: ye = !1, ariaLabel: be, dataTestId: xe, className: Se }, Ce) {
|
|
11513
|
+
let we = te ?? (D ? "greedy" : "cooperative"), I = f(), L = e(ve), Te = n(), R = O(null), z = O(null), [B, De] = k(null), [V, Oe] = k(!1), [ke, Me] = k(!1), [Pe, Fe] = k(0), Ie = ie(), W = a(), { containerRef: Le, isDark: Re } = Tt(), ze = T((e) => {
|
|
11512
11514
|
R.current = e, Le(e);
|
|
11513
|
-
}, [Le]), Be = Re, Ve = !S || S.provider === L, He = Ve ? S ??
|
|
11515
|
+
}, [Le]), Be = Re, Ve = !S || S.provider === L, He = Ve ? S ?? Lt(L) : Lt(L), G = Be ? He.dark : He.light, Ue = O(!1);
|
|
11514
11516
|
E(() => {
|
|
11515
11517
|
Ve || Ue.current || (Ue.current = !0, console.warn(`F0Map: ignoring a "${S?.provider}" mapStyle on the "${L}" engine - the shapes are not interchangeable. Pass a "${L}" style, or none for its default look.`));
|
|
11516
11518
|
}, [
|
|
@@ -11548,7 +11550,7 @@ var yt = {
|
|
|
11548
11550
|
size: e
|
|
11549
11551
|
};
|
|
11550
11552
|
}, []), Q = T((e, t) => {
|
|
11551
|
-
X.current = { kind: "fit" },
|
|
11553
|
+
X.current = { kind: "fit" }, Ht({
|
|
11552
11554
|
adapter: e,
|
|
11553
11555
|
points: J.current,
|
|
11554
11556
|
animate: t,
|
|
@@ -11585,14 +11587,14 @@ var yt = {
|
|
|
11585
11587
|
E(() => {
|
|
11586
11588
|
dt.current || t.length <= 200 || (dt.current = !0, console.warn(`F0Map: ${t.length} markers exceeds the recommended maximum of 200. Markers are DOM elements - pan/zoom will degrade. Aggregate or filter the data, or wait for a GL clustering path.`));
|
|
11587
11589
|
}, [t.length]);
|
|
11588
|
-
let { coords:
|
|
11590
|
+
let { coords: ft, request: pt } = wt(oe), ht = T(() => {
|
|
11589
11591
|
X.current = null, z.current?.zoomIn();
|
|
11590
11592
|
}, []), gt = T(() => {
|
|
11591
11593
|
X.current = null, z.current?.zoomOut();
|
|
11592
|
-
}, []),
|
|
11594
|
+
}, []), _t = T(() => {
|
|
11593
11595
|
z.current && Q(z.current, !W);
|
|
11594
|
-
}, [Q, W]),
|
|
11595
|
-
|
|
11596
|
+
}, [Q, W]), vt = T(() => {
|
|
11597
|
+
pt((e) => {
|
|
11596
11598
|
let t = z.current;
|
|
11597
11599
|
if (!t) return;
|
|
11598
11600
|
X.current = null;
|
|
@@ -11603,10 +11605,10 @@ var yt = {
|
|
|
11603
11605
|
}, { animate: !W });
|
|
11604
11606
|
});
|
|
11605
11607
|
}, [
|
|
11606
|
-
|
|
11608
|
+
pt,
|
|
11607
11609
|
Z,
|
|
11608
11610
|
W
|
|
11609
|
-
]),
|
|
11611
|
+
]), xt = T((e) => {
|
|
11610
11612
|
let t = z.current;
|
|
11611
11613
|
if (!t) return;
|
|
11612
11614
|
X.current = null;
|
|
@@ -11618,7 +11620,7 @@ var yt = {
|
|
|
11618
11620
|
maxZoom: 16
|
|
11619
11621
|
});
|
|
11620
11622
|
n && (W ? t.jumpTo(n, { animate: !1 }) : t.flyTo(n));
|
|
11621
|
-
}, [Z, W]),
|
|
11623
|
+
}, [Z, W]), St = T((e) => {
|
|
11622
11624
|
let t = z.current, n = J.current.find((t) => t.id === e);
|
|
11623
11625
|
t && n && lt(t, n), Ke(e);
|
|
11624
11626
|
}, [lt, Ke]);
|
|
@@ -11643,25 +11645,25 @@ var yt = {
|
|
|
11643
11645
|
lt,
|
|
11644
11646
|
W
|
|
11645
11647
|
]);
|
|
11646
|
-
let
|
|
11647
|
-
|
|
11648
|
-
let
|
|
11649
|
-
|
|
11650
|
-
let kt = O(null), At = O(x ??
|
|
11648
|
+
let Et = O(G);
|
|
11649
|
+
Et.current = G;
|
|
11650
|
+
let Dt = O(Te);
|
|
11651
|
+
Dt.current = Te;
|
|
11652
|
+
let kt = O(null), At = O(x ?? zt);
|
|
11651
11653
|
E(() => {
|
|
11652
11654
|
if (ye) return;
|
|
11653
11655
|
let e = R.current;
|
|
11654
11656
|
if (!e) return;
|
|
11655
|
-
kt.current =
|
|
11657
|
+
kt.current = Et.current;
|
|
11656
11658
|
let t = At.current, n = null, r = !1, i = [];
|
|
11657
|
-
return
|
|
11659
|
+
return Ot(L, Dt.current).then((i) => {
|
|
11658
11660
|
if (!r) {
|
|
11659
11661
|
try {
|
|
11660
11662
|
n = i({
|
|
11661
11663
|
container: e,
|
|
11662
|
-
style:
|
|
11664
|
+
style: Et.current,
|
|
11663
11665
|
center: t.center,
|
|
11664
|
-
zoom: t.zoom ??
|
|
11666
|
+
zoom: t.zoom ?? zt.zoom,
|
|
11665
11667
|
minZoom: C,
|
|
11666
11668
|
maxZoom: ne,
|
|
11667
11669
|
interactive: ee,
|
|
@@ -11681,8 +11683,8 @@ var yt = {
|
|
|
11681
11683
|
function a(e) {
|
|
11682
11684
|
z.current = e, De(e), Oe(!1);
|
|
11683
11685
|
let t = !1;
|
|
11684
|
-
i.push(
|
|
11685
|
-
t = !0, Me(!1), e.resize(), at &&
|
|
11686
|
+
i.push(Rt(e, "ready", () => {
|
|
11687
|
+
t = !0, Me(!1), e.resize(), at && Ht({
|
|
11686
11688
|
adapter: e,
|
|
11687
11689
|
points: J.current,
|
|
11688
11690
|
animate: !1,
|
|
@@ -11708,7 +11710,7 @@ var yt = {
|
|
|
11708
11710
|
Pe
|
|
11709
11711
|
]), E(() => {
|
|
11710
11712
|
let e = z.current;
|
|
11711
|
-
e && kt.current !== G && (kt.current = G, e.applyStyle(G),
|
|
11713
|
+
e && kt.current !== G && (kt.current = G, e.applyStyle(G), Rt(e, "styled", () => e.setGlobeProjection(tt.current === "globe")));
|
|
11712
11714
|
}, [G]), E(() => {
|
|
11713
11715
|
z.current?.setGlobeProjection(_e === "globe");
|
|
11714
11716
|
}, [_e]);
|
|
@@ -11718,7 +11720,7 @@ var yt = {
|
|
|
11718
11720
|
let e = z.current, t = J.current.find((e) => e.id === _);
|
|
11719
11721
|
e && t && jt.current(e, t);
|
|
11720
11722
|
}, [_]);
|
|
11721
|
-
let Mt =
|
|
11723
|
+
let Mt = Ut(Ze), Nt = O(null);
|
|
11722
11724
|
E(() => {
|
|
11723
11725
|
let e = Nt.current;
|
|
11724
11726
|
Nt.current = rt.current;
|
|
@@ -11743,18 +11745,18 @@ var yt = {
|
|
|
11743
11745
|
});
|
|
11744
11746
|
u && t.easeTo({ center: u }, { animate: a });
|
|
11745
11747
|
}, [Mt, Z]);
|
|
11746
|
-
let Pt = r.length > 0 || i.length > 0, $ = Xe === null ? 0 : Xe + H.gap - H.inset,
|
|
11748
|
+
let Pt = r.length > 0 || i.length > 0, $ = Xe === null ? 0 : Xe + H.gap - H.inset, Ft = O({
|
|
11747
11749
|
from: $,
|
|
11748
11750
|
to: $
|
|
11749
11751
|
});
|
|
11750
|
-
|
|
11751
|
-
from:
|
|
11752
|
+
Ft.current.to !== $ && (Ft.current = {
|
|
11753
|
+
from: Ft.current.to,
|
|
11752
11754
|
to: $
|
|
11753
11755
|
});
|
|
11754
|
-
let
|
|
11756
|
+
let It = $ > Ft.current.from ? U.enter : U.exit, Bt = q ? U.enter : U.exit;
|
|
11755
11757
|
return /* @__PURE__ */ A(u, {
|
|
11756
11758
|
dataTestId: xe,
|
|
11757
|
-
children: ye ? /* @__PURE__ */ A(
|
|
11759
|
+
children: ye ? /* @__PURE__ */ A(Ct, { className: Se }) : /* @__PURE__ */ j("div", {
|
|
11758
11760
|
ref: ze,
|
|
11759
11761
|
role: "region",
|
|
11760
11762
|
"aria-label": be ?? I.map.region,
|
|
@@ -11776,14 +11778,14 @@ var yt = {
|
|
|
11776
11778
|
areas: o,
|
|
11777
11779
|
isDark: Be
|
|
11778
11780
|
}) : null,
|
|
11779
|
-
!V && B &&
|
|
11781
|
+
!V && B && ft ? /* @__PURE__ */ j(se, { children: [/* @__PURE__ */ A(bt, {
|
|
11780
11782
|
adapter: B,
|
|
11781
|
-
coords:
|
|
11783
|
+
coords: ft
|
|
11782
11784
|
}), /* @__PURE__ */ A("span", {
|
|
11783
11785
|
className: "sr-only",
|
|
11784
11786
|
children: I.map.currentLocation
|
|
11785
11787
|
})] }) : null,
|
|
11786
|
-
!V && B && Pt ? /* @__PURE__ */ A(
|
|
11788
|
+
!V && B && Pt ? /* @__PURE__ */ A(yt, {
|
|
11787
11789
|
adapter: B,
|
|
11788
11790
|
routes: r,
|
|
11789
11791
|
arcs: i,
|
|
@@ -11799,7 +11801,7 @@ var yt = {
|
|
|
11799
11801
|
onSelect: ut,
|
|
11800
11802
|
onMarkerDrag: h,
|
|
11801
11803
|
onMarkerDragEnd: g,
|
|
11802
|
-
onClusterExpand:
|
|
11804
|
+
onClusterExpand: xt
|
|
11803
11805
|
}) : null,
|
|
11804
11806
|
!V && B && he ? /* @__PURE__ */ A(st, {
|
|
11805
11807
|
open: qe,
|
|
@@ -11814,8 +11816,8 @@ var yt = {
|
|
|
11814
11816
|
className: p("absolute left-2 top-2 z-10", q && "opacity-0"),
|
|
11815
11817
|
style: {
|
|
11816
11818
|
transitionProperty: W ? "none" : "opacity",
|
|
11817
|
-
transitionDuration:
|
|
11818
|
-
transitionTimingFunction:
|
|
11819
|
+
transitionDuration: Bt.duration,
|
|
11820
|
+
transitionTimingFunction: Bt.easing
|
|
11819
11821
|
},
|
|
11820
11822
|
children: /* @__PURE__ */ j("div", {
|
|
11821
11823
|
className: "flex items-start gap-2",
|
|
@@ -11823,7 +11825,7 @@ var yt = {
|
|
|
11823
11825
|
ref: (e) => {
|
|
11824
11826
|
q ? e?.setAttribute("inert", "") : e?.removeAttribute("inert");
|
|
11825
11827
|
},
|
|
11826
|
-
children: [/* @__PURE__ */ A(
|
|
11828
|
+
children: [/* @__PURE__ */ A(mt, {
|
|
11827
11829
|
expanded: !1,
|
|
11828
11830
|
onToggle: M
|
|
11829
11831
|
}), fe ? /* @__PURE__ */ A(Ae, { children: fe }) : null]
|
|
@@ -11834,7 +11836,7 @@ var yt = {
|
|
|
11834
11836
|
offsetX: H.inset,
|
|
11835
11837
|
width: H.listWidth,
|
|
11836
11838
|
headerStart: pe,
|
|
11837
|
-
headerEnd: /* @__PURE__ */ A(
|
|
11839
|
+
headerEnd: /* @__PURE__ */ A(mt, {
|
|
11838
11840
|
expanded: !0,
|
|
11839
11841
|
onToggle: M,
|
|
11840
11842
|
bare: !0,
|
|
@@ -11847,14 +11849,14 @@ var yt = {
|
|
|
11847
11849
|
style: {
|
|
11848
11850
|
transform: `translateX(${$}px)`,
|
|
11849
11851
|
transitionProperty: W ? "none" : "transform",
|
|
11850
|
-
transitionDuration:
|
|
11851
|
-
transitionTimingFunction:
|
|
11852
|
+
transitionDuration: It.duration,
|
|
11853
|
+
transitionTimingFunction: It.easing
|
|
11852
11854
|
},
|
|
11853
11855
|
children: /* @__PURE__ */ A(je, {
|
|
11854
11856
|
onZoomIn: ht,
|
|
11855
11857
|
onZoomOut: gt,
|
|
11856
|
-
onFit: t.length > 0 || Pt || o.length > 0 ?
|
|
11857
|
-
onLocate:
|
|
11858
|
+
onFit: t.length > 0 || Pt || o.length > 0 ? _t : void 0,
|
|
11859
|
+
onLocate: vt,
|
|
11858
11860
|
labels: re
|
|
11859
11861
|
})
|
|
11860
11862
|
}) : null,
|
|
@@ -11865,7 +11867,7 @@ var yt = {
|
|
|
11865
11867
|
onClick: () => {
|
|
11866
11868
|
Me(!1);
|
|
11867
11869
|
let e = z.current;
|
|
11868
|
-
e ? e.applyStyle(
|
|
11870
|
+
e ? e.applyStyle(Et.current) : Fe((e) => e + 1);
|
|
11869
11871
|
},
|
|
11870
11872
|
className: "font-medium underline",
|
|
11871
11873
|
children: I.map.retry
|
|
@@ -11876,14 +11878,14 @@ var yt = {
|
|
|
11876
11878
|
label: I.map.listLabel,
|
|
11877
11879
|
points: t,
|
|
11878
11880
|
selectedId: K,
|
|
11879
|
-
onSelect:
|
|
11881
|
+
onSelect: St,
|
|
11880
11882
|
visible: V
|
|
11881
11883
|
})
|
|
11882
11884
|
]
|
|
11883
11885
|
})
|
|
11884
11886
|
});
|
|
11885
11887
|
});
|
|
11886
|
-
|
|
11887
|
-
var
|
|
11888
|
+
Wt.displayName = "F0Map";
|
|
11889
|
+
var Gt = Wt;
|
|
11888
11890
|
//#endregion
|
|
11889
|
-
export {
|
|
11891
|
+
export { Ne as _, It as a, St as c, ft as d, dt as f, Ge as g, st as h, Pt as i, mt as l, ut as m, Lt as n, Ct as o, lt as p, Nt as r, xt as s, Gt as t, pt as u, je as v };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as F0VideoPlayer } from "./F0VideoPlayer-NjaAU0Gm.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as e } from "./CoachmarkProvider-
|
|
1
|
+
import { w as e } from "./CoachmarkProvider-DVF40v2q.js";
|
|
2
2
|
import { A as t, B as n, F as r, I as i, L as a, U as o, V as s, a as c, an as l, ar as u, b as d, i as f, in as p, j as m, rn as h, rr as g, t as _, z as v } from "./popover-B2hEEubt.js";
|
|
3
3
|
import { I as y, L as b } from "./tooltip-TOvfXq9F.js";
|
|
4
4
|
import { Ao as x, Ji as S, Ki as C, Wa as ee, Za as te, _a as w, ma as T, mo as E, pa as ne, qi as re } from "./F0CanvasPanel-C7vHU_iJ.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Nt as e, Pt as t, tr as n } from "./CoachmarkProvider-
|
|
1
|
+
import { Nt as e, Pt as t, tr as n } from "./CoachmarkProvider-DVF40v2q.js";
|
|
2
2
|
import { Vt as r, in as i, pt as a, rn as o } from "./popover-B2hEEubt.js";
|
|
3
3
|
import { I as s, L as c } from "./tooltip-TOvfXq9F.js";
|
|
4
4
|
import { Jn as l, Kn as u, qn as d } from "./F0CanvasPanel-C7vHU_iJ.js";
|
|
5
5
|
import { d as f, l as p, q as ee } from "./useData-DjJsB0qa.js";
|
|
6
|
-
import { o as m, t as h } from "./F0Map-
|
|
6
|
+
import { o as m, t as h } from "./F0Map-DC_Mplnx.js";
|
|
7
7
|
import { useCallback as g, useEffect as _, useMemo as v, useRef as y, useState as b } from "react";
|
|
8
8
|
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
9
9
|
//#region src/addons/data-collection/OneDataCollection/visualizations/collection/Map/components/MapNotOnMapButton.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ln as e, rn as t } from "./popover-B2hEEubt.js";
|
|
2
2
|
import { Yn as n, c as r, s as i } from "./F0CanvasPanel-C7vHU_iJ.js";
|
|
3
|
-
import { o as a } from "./F0DocumentViewer-
|
|
4
|
-
import { n as o, t as s } from "./DocumentToolbar-
|
|
3
|
+
import { o as a } from "./F0DocumentViewer-BrxSgrT8.js";
|
|
4
|
+
import { n as o, t as s } from "./DocumentToolbar-rCarM1oo.js";
|
|
5
5
|
import { n as c, t as l } from "./sheetPreview-Ca0kCtSa.js";
|
|
6
6
|
import { useEffect as u, useState as d } from "react";
|
|
7
7
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ln as e, rn as t, xt as n } from "./popover-B2hEEubt.js";
|
|
2
|
-
import { n as r, t as i } from "./DocumentToolbar-
|
|
2
|
+
import { n as r, t as i } from "./DocumentToolbar-rCarM1oo.js";
|
|
3
3
|
import { useEffect as a, useState as o } from "react";
|
|
4
4
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
5
|
//#region src/addons/documents/F0DocumentViewer/components/TextViewer.tsx
|