@map-colonies/react-components 4.4.0 → 4.4.2
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.
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('body[dir=rtl] .drpOpener .mdc-text-field{direction:ltr}body[dir=rtl] .drpContainer .MuiInputLabel-formControl{right:0px;left:unset}body[dir=rtl] .drpContainer .MuiInputBase-input{direction:ltr;text-align:end}.map{height:100%;width:100%}.ol-mouse-position{top:auto!important;right:auto!important;bottom:8px;left:8px;background-color:#fff;opacity:.7;font-size:12px;padding:2px;border-radius:2px}.ol-zoom{top:2.5em;right:.5em;left:unset}.trackerPosition{background-color:var(--mdc-theme-surface);z-index:2000;padding:2px;border-radius:2px;font-size:12px;height:24px;text-align:center;line-height:20px;white-space:nowrap}.scalePosition{background-color:var(--mdc-theme-surface);padding:1px;border-radius:2px;font-size:12px;width:110px}.distance-legend-label{text-align:center}.distance-legend-scale-bar{background:var(--mdc-theme-on-surface);margin:0 auto;display:block;transition:all .5s ease-in-out}.zoomLevel{z-index:2000;background-color:var(--mdc-theme-surface);border-radius:2px;padding:2px;height:24px}.zoomLevelValue{margin:2px;font-size:14px;line-height:10px;text-align:center}.zoomLevelLabel{font-size:8px;line-height:8px}.mapViewIcon{fill:#fff;width:40px;height:40px;background:#303336;border:1px solid #444;border-radius:4px}.mapViewIcon:hover{background:#48b;border-color:#aef}.mapViewCurrent{fill:#aef;border:1px solid #aef;border-radius:4px}.mapSelector{width:260px;list-style:none;padding-left:0;display:flex;flex-wrap:wrap;grid-gap:4px;min-height:140px;margin-block-start:0px;padding-inline-start:0px}.mapContainerSelected{border:blueviolet 2px solid!important;border-radius:2px}.mapContainer:hover{border:tomato 2px solid;border-radius:2px}.mapContainerImg{width:100%;height:100%}.mapLabel{font-size:12px}.mapLabel:before{content:"\\a0"}.mapScenesContainer{display:flex;gap:8px}.settingsIconContainer,.mapLegendToggleContainer{fill:#fff;width:40px;height:40px;background:#303336;border:1px solid #444;border-radius:4px}.settingsIconContainer:hover,.mapLegendToggleContainer:hover{background:#48b;border-color:#aef}.baseMapsContainer{margin-top:12px;min-height:58%}.settingsDialogPortal{transform:translateZ(0);height:calc(100vh - 220px);max-height:460px;width:280px;position:absolute;top:40px;right:80px}.settingsDialogPortal .mdc-dialog__container{align-items:unset}.settingsDialogPortal .mdc-dialog .mdc-dialog__surface{max-height:unset}body[dir=rtl] .settingsDialogPortal{left:80px;right:unset}.sectionLabel{margin-block-end:.5em}.mapLegendSidebarContainer{width:340px;height:100%;position:relative;overflow-y:auto;overflow-x:hidden;font-size:16px}.mapLegendSidebarContainer.mdc-drawer--animate{transform:translate(0)!important;transition:none!important}.mapLegendSidebarContainer.mdc-drawer--dismissible{position:relative}div.MuiPaper-root{transition:none!important}.mapLegendCloseBtn{position:absolute;top:0;right:0;cursor:pointer;width:50px;height:50px;padding:20px;font-size:24px}body[dir=rtl] .mapLegendCloseBtn{right:unset;left:0}.mapLegendToggleContainer{display:flex;align-items:center;justify-content:center}.mapLegendIcon{width:2rem;height:2rem;transform:translate(8%,8%)}.sidebarHeaderContainer{text-align:center;margin-top:40px}.sidebarTitle{font-size:1.5rem;font-weight:700}.mapLegend{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 14px}.layerNameContainer{width:90%;display:flex;justify-content:center;align-items:center}.layerName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legendImg{width:90%;height:150px;border:1px solid black;border-radius:5px;object-fit:cover;cursor:pointer}.legendActionsContainer{display:flex;flex-direction:row;align-self:center}.legendAction:not(:last-child):after{content:"|";margin:0 4px}.mapLegendsList{display:flex;flex-direction:column;padding:20px 0;width:100%;height:90%}.legendAction{text-decoration:underline;cursor:pointer;font-size:1.1rem;transition:all .1s ease-in-out;width:max-content}.legendAction:hover{filter:brightness(1.2)}.noLegendsContainer{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.noLegendsMsg{text-align:center}.cesium-widget-credits{display:none!important}.cesium-viewer-fullscreenContainer{bottom:8px;right:8px;left:unset}body[dir=rtl] .cesium-viewer-fullscreenContainer{left:8px;right:unset}body[dir=rtl] .cesium-viewer-toolbar{left:5px;right:unset}.cesium-button.cesium-fullscreenButton{border-radius:14%}.toolsContainer{color:var(--mdc-theme-on-surface);display:flex;gap:8px;z-index:2000;position:absolute;bottom:12px;right:40px;opacity:.7}body[dir=rtl] .toolsContainer{left:40px;right:unset}.sideToolsContainer{display:flex;flex-direction:row;gap:8px;z-index:2000;position:absolute;top:12px;right:40px}body[dir=rtl] .sideToolsContainer{left:40px;right:unset}.viewer{display:flex;flex-direction:row}.viewer .mdc-linear-progress__bar-inner{border-top-width:10px}.twipsy{display:block;position:absolute;visibility:visible;max-width:200px;min-width:100px;padding:5px;font-size:11px;z-index:1000;opacity:.8;-khtml-opacity:.8;-moz-opacity:.8;filter:alpha(opacity=80)}.twipsy.left .twipsy-arrow{top:50%;right:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #000000}.twipsy.right .twipsy-arrow{top:50%;left:0;margin-top:-5px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid #000000}.twipsy-inner{padding:3px 8px;background-color:#000;color:#fff;text-align:center;max-width:200px;text-decoration:none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.twipsy-arrow{position:absolute;width:0;height:0}.toolbar{margin:0;padding:0;background:white}.toolbar>.button{margin:5px;padding:5px;border:1px solid #eee;cursor:pointer}.toolbar>.button:hover{background:#eee}.infoWindow{position:absolute;min-width:100px;max-width:300px}.infoWindow #frame{padding:10px;border:1px solid black;background:white}.infoWindow #close{float:right;margin:5px 2px;font-size:small;color:gray;cursor:pointer}.infoWindow #arrow{position:absolute;bottom:-8px;left:50%;margin-left:-10px;border-right:10px solid transparent;border-left:10px solid transparent;border-top:10px solid white}.react-autocomplete-input{background-clip:padding-box;background-color:#fff;bottom:auto;box-shadow:0 6px 12px #0000002d;display:block;font-size:14px;list-style:none;padding:1px;position:absolute;z-index:20000;margin-block-start:unset;margin-block-end:unset}.react-autocomplete-input>li{cursor:pointer;padding:10px;min-width:100px}.react-autocomplete-input>li.active{background-color:#337ab7;color:#fff}body[dir=rtl] .chonky-fileListWrapper [class^=listContainer-]{direction:rtl!important}body[dir=rtl] .chonky-fileEntryClickableWrapper [class^=listFileEntryProperty-],body[dir=rtl] .chonky-navbarContainer{direction:ltr!important}body[dir=rtl] .chonky-chonkyRoot{text-align:right}body[dir=rtl] .chonky-infoText{margin-left:unset;margin-right:12px}body[dir=rtl] .chonky-contextMenuList .MuiListItemText-root,body[dir=rtl] .chonky-dropdownList .MuiListItemText-root{text-align:right}body[dir=rtl] .chonky-icon{margin-right:unset;margin-left:8px}.chonky-chonkyRoot div[class^=folderBackSide]{box-shadow:unset}.chonky-chonkyRoot div[class^=folderBackSide]:after{border-color:var(--fp-theme-background, #fff) var(--fp-theme-background, #fff) transparent transparent}.chonky-chonkyRoot div[class^=listFileEntryIcon-]{color:#d5d5d5}.chonky-chonkyRoot div[class*=previewFile-d]{background-color:#d5d5d5}.chonky-chonkyRoot div[class^=selectionIndicator-]{background:var(--fp-theme-selection-background, #455570)}.chonky-chonkyRoot{background-color:var(--fp-theme-background, #fff)!important}.chonky-contextMenuList{background-color:var(--fp-theme-surface, #fff)!important}button[class*=chonky-activeButton],.chonky-selectionSizeText{color:var(--fp-theme-primary, #24aee9)!important}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var Z = (e, n, t) => (
|
|
2
|
+
var sn = Object.defineProperty;
|
|
3
|
+
var an = (e, n, t) => n in e ? sn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
4
|
+
var Z = (e, n, t) => (an(e, typeof n != "symbol" ? n + "" : n, t), t);
|
|
5
5
|
import { jsx as l, jsxs as N, Fragment as te } from "react/jsx-runtime";
|
|
6
|
-
import * as
|
|
7
|
-
import ve, { useState as A, useEffect as I, useMemo as
|
|
8
|
-
import { isValid as _e, isBefore as
|
|
9
|
-
import { he as
|
|
10
|
-
import { MuiPickersUtilsProvider as
|
|
11
|
-
import
|
|
12
|
-
import { createTheme as
|
|
13
|
-
import { Box as
|
|
14
|
-
import { useTheme as
|
|
6
|
+
import * as kt from "react";
|
|
7
|
+
import ve, { useState as A, useEffect as I, useMemo as We, forwardRef as ln, createContext as Ie, useRef as be, useContext as xe, useCallback as me, useLayoutEffect as cn } from "react";
|
|
8
|
+
import { isValid as _e, isBefore as dn, format as gt, endOfDay as un, isSameDay as ft } from "date-fns";
|
|
9
|
+
import { he as Ot, enUS as Rt } from "date-fns/locale";
|
|
10
|
+
import { MuiPickersUtilsProvider as Nt, KeyboardDateTimePicker as et, KeyboardDatePicker as hn } from "@material-ui/pickers";
|
|
11
|
+
import Bt from "@date-io/date-fns";
|
|
12
|
+
import { createTheme as mn, makeStyles as ke, createStyles as Ue } from "@material-ui/core/styles";
|
|
13
|
+
import { Box as pn, ThemeProvider as Ft, Popover as gn, Paper as tt, TableRow as Ge, TableCell as Me, TableSortLabel as fn, IconButton as yn, Collapse as vn, TableContainer as En, Table as Cn, TableBody as wn, Typography as bn, TablePagination as Tn } from "@material-ui/core";
|
|
14
|
+
import { useTheme as Ht, ThemeProvider as _n, Button as Ae, TextField as Ve, Tooltip as nt, Menu as Ln, MenuItem as qe, Icon as Pe, Dialog as Sn, DialogTitle as Mn, DialogContent as Pn, Drawer as Dn, DrawerHeader as An, DrawerTitle as In, DrawerContent as xn, LinearProgress as kn } from "@map-colonies/react-core";
|
|
15
15
|
import { default as js } from "@material-ui/core/useMediaQuery";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
16
|
+
import On, { registerLocale as Rn } from "react-datepicker";
|
|
17
|
+
import Nn from "date-fns/locale/he";
|
|
18
18
|
import Le from "moment";
|
|
19
|
-
import
|
|
20
|
-
import { Map as
|
|
19
|
+
import Bn from "@turf/rewind";
|
|
20
|
+
import { Map as Fn, View as Hn } from "ol";
|
|
21
21
|
import "ol/ol.css";
|
|
22
|
-
import { format as
|
|
23
|
-
import { defaults as
|
|
24
|
-
import
|
|
25
|
-
import { transform as
|
|
26
|
-
import { Tile as
|
|
27
|
-
import { Vector as
|
|
28
|
-
import { GeoJSON as
|
|
29
|
-
import { Draw as
|
|
30
|
-
import { createBox as
|
|
31
|
-
import
|
|
32
|
-
import { createSvgIcon as
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import { createPortal as
|
|
36
|
-
import { Viewer as
|
|
22
|
+
import { format as yt } from "ol/coordinate";
|
|
23
|
+
import { defaults as Gn, FullScreen as vt } from "ol/control";
|
|
24
|
+
import Ye from "ol/control/MousePosition";
|
|
25
|
+
import { transform as Vn } from "ol/proj";
|
|
26
|
+
import { Tile as zn, Vector as $n } from "ol/layer";
|
|
27
|
+
import { Vector as Wn, OSM as Un } from "ol/source";
|
|
28
|
+
import { GeoJSON as Gt } from "ol/format";
|
|
29
|
+
import { Draw as Kn } from "ol/interaction";
|
|
30
|
+
import { createBox as jn } from "ol/interaction/Draw";
|
|
31
|
+
import qn from "@material-ui/core/TableHead";
|
|
32
|
+
import { createSvgIcon as Vt } from "@material-ui/core/utils";
|
|
33
|
+
import Yn from "@material-ui/core/CssBaseline";
|
|
34
|
+
import Xn from "@material-ui/core/ScopedCssBaseline";
|
|
35
|
+
import { createPortal as Zn } from "react-dom";
|
|
36
|
+
import { Viewer as Jn, Cesium3DTileset as Qn, GeoJsonDataSource as ei, ImageryLayer as ti, Entity as ni, EntityDescription as zt, PolygonGraphics as ii, RectangleGraphics as ri, CustomDataSource as oi, PolylineGraphics as si } from "resium";
|
|
37
37
|
import * as p from "cesium";
|
|
38
|
-
import { ScreenSpaceEventType as
|
|
38
|
+
import { ScreenSpaceEventType as ai, Cartesian3 as pe, Math as ce, WebMercatorProjection as li, SceneMode as we, Cartesian2 as Ee, Cartographic as Oe, EventHelper as ci, EllipsoidGeodesic as di, UrlTemplateImageryProvider as ct, WebMapServiceImageryProvider as dt, WebMapTileServiceImageryProvider as ut, Event as ui, SingleTileImageryProvider as hi, Rectangle as Se, Viewer as mi, Matrix4 as pi, OpenStreetMapImageryProvider as gi, Color as it, PolygonHierarchy as fi, PolylineDashMaterialProperty as yi, ConstantProperty as vi, ConstantPositionProperty as Ei, BoundingSphere as Ci, Ellipsoid as $t, GeographicTilingScheme as wi, Resource as bi, EllipsoidTerrainProvider as Ti, CesiumTerrainProvider as _i, VerticalOrigin as rt, LabelStyle as Wt, viewerCesiumInspectorMixin as Li, sampleTerrainMostDetailed as Si } from "cesium";
|
|
39
39
|
import { Math as Ys, sampleTerrainMostDetailed as Xs } from "cesium";
|
|
40
|
-
import { get as ee, isNumber as
|
|
40
|
+
import { get as ee, isNumber as ze, isEmpty as ot, isArray as Mi, cloneDeep as Pi, find as Et } from "lodash";
|
|
41
41
|
import Di from "@turf/boolean-point-in-polygon";
|
|
42
42
|
import "@map-colonies/react-core/dist/linear-progress/styles";
|
|
43
|
-
import * as
|
|
44
|
-
import
|
|
45
|
-
import
|
|
43
|
+
import * as Ut from "@turf/helpers";
|
|
44
|
+
import Kt from "@turf/bbox";
|
|
45
|
+
import jt from "@turf/bbox-polygon";
|
|
46
46
|
import Ai from "textarea-caret";
|
|
47
47
|
import Ii, { setCaretPosition as xi } from "get-input-selection";
|
|
48
|
-
import { ChonkyActions as G, FileHelper as
|
|
48
|
+
import { ChonkyActions as G, FileHelper as qt, setChonkyDefaults as ki, FullFileBrowser as Oi } from "chonky";
|
|
49
49
|
import { ChonkyIconFA as Ri } from "chonky-icon-fontawesome";
|
|
50
50
|
import Ni from "filesize";
|
|
51
|
-
var se = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(se || {}), de = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(de || {}),
|
|
51
|
+
var se = /* @__PURE__ */ ((e) => (e.BOX = "BOX", e.POLYGON = "POLYGON", e.UNKNOWN = "UNKNOWN", e))(se || {}), de = /* @__PURE__ */ ((e) => (e.HE = "he", e.EN = "en", e.RU = "ru", e))(de || {}), st = /* @__PURE__ */ ((e) => (e.TOP_RIGHT = "TOP_RIGHT", e.BOTTOM_LEFT = "BOTTOM_LEFT", e))(st || {});
|
|
52
52
|
const J = {
|
|
53
53
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
54
54
|
DATE_PICKER: {
|
|
@@ -78,11 +78,11 @@ const J = {
|
|
|
78
78
|
}
|
|
79
79
|
}, ae = (e) => {
|
|
80
80
|
const { children: n, ...t } = e;
|
|
81
|
-
return /* @__PURE__ */ l(
|
|
82
|
-
},
|
|
81
|
+
return /* @__PURE__ */ l(pn, { ...t, children: n });
|
|
82
|
+
}, Yt = (e) => {
|
|
83
83
|
const n = e.type === "dark";
|
|
84
84
|
return ve.useMemo(() => Bi(e, n), [n, e]);
|
|
85
|
-
}, Bi = (e, n = !1) =>
|
|
85
|
+
}, Bi = (e, n = !1) => mn({
|
|
86
86
|
palette: {
|
|
87
87
|
type: n ? "dark" : "light",
|
|
88
88
|
primary: {
|
|
@@ -105,7 +105,7 @@ const J = {
|
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
const Fi = 2, Hi = 0.5, Gi = ke(
|
|
108
|
-
(e) =>
|
|
108
|
+
(e) => Ue({
|
|
109
109
|
container: {
|
|
110
110
|
padding: e.spacing(Fi),
|
|
111
111
|
alignItems: "center"
|
|
@@ -119,7 +119,7 @@ const Fi = 2, Hi = 0.5, Gi = ke(
|
|
|
119
119
|
})
|
|
120
120
|
), Vi = (e) => {
|
|
121
121
|
var K, x, W, O;
|
|
122
|
-
const n = Gi(), t =
|
|
122
|
+
const n = Gi(), t = Ht(), i = Yt(t), [o, r] = A(null), [d, u] = A(null), [h, E] = A(J.DATE_RANGE_PICKER.dateFormat), C = e.controlsLayout ?? J.DATE_RANGE_PICKER.controlsLayout, L = e.disableFuture ?? J.DATE_RANGE_PICKER.disableFuture, b = ((K = e.local) == null ? void 0 : K.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, P = ((x = e.local) == null ? void 0 : x.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, B = ((W = e.local) == null ? void 0 : W.setText) ?? J.DATE_RANGE_PICKER.local.setText, q = (((O = e.local) == null ? void 0 : O.calendarLocale) ?? J.DATE_RANGE_PICKER.local.calendarLocale) === de.HE ? Ot : Rt;
|
|
123
123
|
I(() => {
|
|
124
124
|
r(e.from ?? null);
|
|
125
125
|
}, [e.from]), I(() => {
|
|
@@ -128,23 +128,23 @@ const Fi = 2, Hi = 0.5, Gi = ke(
|
|
|
128
128
|
E(e.dateFormat ?? J.DATE_RANGE_PICKER.dateFormat);
|
|
129
129
|
}, [e.dateFormat]);
|
|
130
130
|
const H = Boolean(
|
|
131
|
-
_e(o) && !d || _e(d) && !o || o && d && _e(o) && _e(d) &&
|
|
131
|
+
_e(o) && !d || _e(d) && !o || o && d && _e(o) && _e(d) && dn(o, d)
|
|
132
132
|
), Y = () => {
|
|
133
133
|
e.onChange({
|
|
134
134
|
from: o && _e(o) ? o : void 0,
|
|
135
135
|
to: d && _e(d) ? d : void 0
|
|
136
136
|
});
|
|
137
137
|
};
|
|
138
|
-
return /* @__PURE__ */ l(
|
|
138
|
+
return /* @__PURE__ */ l(Ft, { theme: i, children: /* @__PURE__ */ l(
|
|
139
139
|
ae,
|
|
140
140
|
{
|
|
141
141
|
className: `${n.container} drpContainer`,
|
|
142
142
|
display: "flex",
|
|
143
143
|
flexDirection: C,
|
|
144
144
|
width: C === "column" ? e.contentWidth : "unset",
|
|
145
|
-
children: /* @__PURE__ */ N(
|
|
145
|
+
children: /* @__PURE__ */ N(Nt, { utils: Bt, locale: q, children: [
|
|
146
146
|
/* @__PURE__ */ l(
|
|
147
|
-
|
|
147
|
+
et,
|
|
148
148
|
{
|
|
149
149
|
variant: "inline",
|
|
150
150
|
placeholder: b,
|
|
@@ -157,7 +157,7 @@ const Fi = 2, Hi = 0.5, Gi = ke(
|
|
|
157
157
|
}
|
|
158
158
|
),
|
|
159
159
|
/* @__PURE__ */ l(
|
|
160
|
-
|
|
160
|
+
et,
|
|
161
161
|
{
|
|
162
162
|
variant: "inline",
|
|
163
163
|
placeholder: P,
|
|
@@ -170,7 +170,7 @@ const Fi = 2, Hi = 0.5, Gi = ke(
|
|
|
170
170
|
minDate: e.minDate
|
|
171
171
|
}
|
|
172
172
|
),
|
|
173
|
-
/* @__PURE__ */ l(
|
|
173
|
+
/* @__PURE__ */ l(_n, { options: t, children: /* @__PURE__ */ l(
|
|
174
174
|
Ae,
|
|
175
175
|
{
|
|
176
176
|
className: `${n.setButton} ${n.margin}`,
|
|
@@ -185,7 +185,7 @@ const Fi = 2, Hi = 0.5, Gi = ke(
|
|
|
185
185
|
) });
|
|
186
186
|
}, zi = (e) => {
|
|
187
187
|
const { children: n, ...t } = e;
|
|
188
|
-
return /* @__PURE__ */ l(
|
|
188
|
+
return /* @__PURE__ */ l(gn, { ...t, children: n });
|
|
189
189
|
};
|
|
190
190
|
const os = (e) => {
|
|
191
191
|
var x, W;
|
|
@@ -203,10 +203,10 @@ const os = (e) => {
|
|
|
203
203
|
}, [e.to]), I(() => {
|
|
204
204
|
d(e.dateFormat ?? J.DATE_RANGE_PICKER.dateFormat);
|
|
205
205
|
}, [e.dateFormat]);
|
|
206
|
-
const B = ((x = e.local) == null ? void 0 : x.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, $ = ((W = e.local) == null ? void 0 : W.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, q = e.renderAsButton === void 0 ? J.DATE_RANGE_PICKER.renderAsButton : e.renderAsButton, H = e.offset === void 0 ? J.DATE_RANGE_PICKER.offset : e.offset, Y = e.disableFuture === void 0 ? J.DATE_RANGE_PICKER.disableFuture : e.disableFuture, K =
|
|
206
|
+
const B = ((x = e.local) == null ? void 0 : x.startPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.startPlaceHolderText, $ = ((W = e.local) == null ? void 0 : W.endPlaceHolderText) ?? J.DATE_RANGE_PICKER.local.endPlaceHolderText, q = e.renderAsButton === void 0 ? J.DATE_RANGE_PICKER.renderAsButton : e.renderAsButton, H = e.offset === void 0 ? J.DATE_RANGE_PICKER.offset : e.offset, Y = e.disableFuture === void 0 ? J.DATE_RANGE_PICKER.disableFuture : e.disableFuture, K = We(() => `${n ? gt(n, r) : B} - ${i ? gt(i, r) : $}`, [n, i, r, B, $]);
|
|
207
207
|
return /* @__PURE__ */ N(te, { children: [
|
|
208
208
|
q ? /* @__PURE__ */ l(Ae, { style: { width: e.width }, raised: !0, onClick: E, className: "drpOpener", children: K }) : /* @__PURE__ */ l(
|
|
209
|
-
|
|
209
|
+
Ve,
|
|
210
210
|
{
|
|
211
211
|
className: "drpOpener",
|
|
212
212
|
readOnly: !0,
|
|
@@ -238,7 +238,7 @@ const os = (e) => {
|
|
|
238
238
|
}
|
|
239
239
|
) })
|
|
240
240
|
] });
|
|
241
|
-
},
|
|
241
|
+
}, Xe = (e) => typeof e < "u" && e !== null && "startDate" in e && "endDate" in e, ss = ({
|
|
242
242
|
endDate: e,
|
|
243
243
|
startDate: n,
|
|
244
244
|
setEndDate: t = () => {
|
|
@@ -254,7 +254,7 @@ const os = (e) => {
|
|
|
254
254
|
startTimeWrapperClassName: C = ""
|
|
255
255
|
}) => /* @__PURE__ */ N("div", { className: `timeRangeWrapper ${u}`, children: [
|
|
256
256
|
/* @__PURE__ */ l("div", { className: `startTimeWrapper ${C}`, children: /* @__PURE__ */ l(
|
|
257
|
-
|
|
257
|
+
Ve,
|
|
258
258
|
{
|
|
259
259
|
label: E,
|
|
260
260
|
disabled: n === null,
|
|
@@ -272,7 +272,7 @@ const os = (e) => {
|
|
|
272
272
|
}
|
|
273
273
|
) }),
|
|
274
274
|
/* @__PURE__ */ l("div", { className: `endTimeWrapper ${d}`, children: /* @__PURE__ */ l(
|
|
275
|
-
|
|
275
|
+
Ve,
|
|
276
276
|
{
|
|
277
277
|
label: r,
|
|
278
278
|
disabled: e === null,
|
|
@@ -289,9 +289,9 @@ const os = (e) => {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
) })
|
|
292
|
-
] }), $i =
|
|
292
|
+
] }), $i = ln(
|
|
293
293
|
({ value: e, onClick: n, onInputClick: t, ...i }, o) => /* @__PURE__ */ l(
|
|
294
|
-
|
|
294
|
+
Ve,
|
|
295
295
|
{
|
|
296
296
|
...i,
|
|
297
297
|
className: "dateRangeCustomInput",
|
|
@@ -306,13 +306,13 @@ const os = (e) => {
|
|
|
306
306
|
), Wi = ({ setStartDate: e = () => {
|
|
307
307
|
}, setEndDate: n = () => {
|
|
308
308
|
}, shortcuts: t, dateRange: i, onShortcut: o }) => {
|
|
309
|
-
const [r, d] = A(), u =
|
|
309
|
+
const [r, d] = A(), u = We(
|
|
310
310
|
() => t.map((h) => h instanceof Function ? h() : h),
|
|
311
311
|
[t]
|
|
312
312
|
);
|
|
313
313
|
return I(() => {
|
|
314
314
|
for (const h of u) {
|
|
315
|
-
const E = i.startDate && i.endDate &&
|
|
315
|
+
const E = i.startDate && i.endDate && ft(h.startDate, i.startDate) && ft(h.endDate, i.endDate);
|
|
316
316
|
r ? h.id === r && (E || d(void 0)) : E && d(h.id);
|
|
317
317
|
}
|
|
318
318
|
}, [i, r, u]), /* @__PURE__ */ l("div", { className: "shortcutsContainer", children: u.map((h, E) => {
|
|
@@ -356,12 +356,12 @@ const os = (e) => {
|
|
|
356
356
|
locale: C = "en"
|
|
357
357
|
} = e, [L, b] = A(null), [P, B] = A(null), [$, q] = A(!1), H = r ? { startDate: L, endDate: P } : L;
|
|
358
358
|
I(() => {
|
|
359
|
-
C === "he" &&
|
|
359
|
+
C === "he" && Rn("he", Nn);
|
|
360
360
|
}, [C]), I(() => {
|
|
361
361
|
var x, W;
|
|
362
362
|
((x = e.startDate) == null ? void 0 : x.toString()) !== (L == null ? void 0 : L.toString()) && b(e.startDate), ((W = e.endDate) == null ? void 0 : W.toString()) !== (P == null ? void 0 : P.toString()) && B(e.endDate);
|
|
363
363
|
}, [e.startDate, e.endDate, L, P]);
|
|
364
|
-
const Y =
|
|
364
|
+
const Y = We(() => {
|
|
365
365
|
let x = "pickerContainer" + (C === "he" ? " pickerContainer-rtl" : "");
|
|
366
366
|
return E && r && (x += " pickerContainer-withShortcuts"), x;
|
|
367
367
|
}, [C, E, r]), K = h ? {
|
|
@@ -370,15 +370,15 @@ const os = (e) => {
|
|
|
370
370
|
dropdownMode: "select"
|
|
371
371
|
} : {};
|
|
372
372
|
return /* @__PURE__ */ l("div", { className: Y, style: { direction: C === "he" ? "rtl" : "ltr" }, children: /* @__PURE__ */ l(
|
|
373
|
-
|
|
373
|
+
On,
|
|
374
374
|
{
|
|
375
375
|
...e,
|
|
376
376
|
ref: n,
|
|
377
377
|
onClickOutside: () => q(!1),
|
|
378
378
|
open: $,
|
|
379
|
-
startDate:
|
|
379
|
+
startDate: Xe(H) ? L : void 0,
|
|
380
380
|
selected: L,
|
|
381
|
-
endDate:
|
|
381
|
+
endDate: Xe(H) ? P : void 0,
|
|
382
382
|
monthsShown: e.monthsShown ?? 2,
|
|
383
383
|
calendarClassName: `pickerCalendar ${t}`,
|
|
384
384
|
weekDayClassName: (x) => `pickerWeek ${(i == null ? void 0 : i(x)) ?? ""}`,
|
|
@@ -387,7 +387,7 @@ const os = (e) => {
|
|
|
387
387
|
onChange: (x, W) => {
|
|
388
388
|
if (Array.isArray(x)) {
|
|
389
389
|
const [O, V] = x;
|
|
390
|
-
b(O), B(V), d == null || d({ startDate: O, endDate: V &&
|
|
390
|
+
b(O), B(V), d == null || d({ startDate: O, endDate: V && un(V) }, W);
|
|
391
391
|
} else
|
|
392
392
|
b(x), d == null || d(x, W);
|
|
393
393
|
},
|
|
@@ -396,7 +396,7 @@ const os = (e) => {
|
|
|
396
396
|
} }),
|
|
397
397
|
showTimeInput: !!(E && r),
|
|
398
398
|
timeInputLabel: "",
|
|
399
|
-
customTimeInput: E &&
|
|
399
|
+
customTimeInput: E && Xe(H) && /* @__PURE__ */ l(Wi, { onShortcut: (x) => {
|
|
400
400
|
d == null || d(x), q(!1);
|
|
401
401
|
}, shortcuts: E, setEndDate: B, setStartDate: b, dateRange: H }),
|
|
402
402
|
showMonthYearDropdown: void 0,
|
|
@@ -405,7 +405,7 @@ const os = (e) => {
|
|
|
405
405
|
) });
|
|
406
406
|
});
|
|
407
407
|
const ls = (e) => {
|
|
408
|
-
const n =
|
|
408
|
+
const n = Ht(), t = Yt(n), [i, o] = A(e.value), {
|
|
409
409
|
format: r = J.DATE_PICKER.dateFormat,
|
|
410
410
|
variant: d = J.DATE_PICKER.variant,
|
|
411
411
|
disableFuture: u = J.DATE_PICKER.disableFuture,
|
|
@@ -417,12 +417,12 @@ const ls = (e) => {
|
|
|
417
417
|
} = e, { placeHolderText: P = J.DATE_PICKER.local.placeHolderText, calendarLocale: B } = h ?? {
|
|
418
418
|
placeHolderText: J.DATE_PICKER.local.placeHolderText,
|
|
419
419
|
calendarLocale: de.EN
|
|
420
|
-
}, $ = B === de.HE ?
|
|
420
|
+
}, $ = B === de.HE ? Ot : Rt, q = (H) => {
|
|
421
421
|
o(H), E(H);
|
|
422
422
|
};
|
|
423
|
-
return /* @__PURE__ */ l(
|
|
423
|
+
return /* @__PURE__ */ l(Ft, { theme: t, children: /* @__PURE__ */ N(Nt, { utils: Bt, locale: $, children: [
|
|
424
424
|
C && /* @__PURE__ */ l(
|
|
425
|
-
|
|
425
|
+
et,
|
|
426
426
|
{
|
|
427
427
|
variant: d,
|
|
428
428
|
placeholder: P,
|
|
@@ -434,7 +434,7 @@ const ls = (e) => {
|
|
|
434
434
|
}
|
|
435
435
|
),
|
|
436
436
|
!C && /* @__PURE__ */ l(
|
|
437
|
-
|
|
437
|
+
hn,
|
|
438
438
|
{
|
|
439
439
|
variant: d,
|
|
440
440
|
placeholder: P,
|
|
@@ -447,7 +447,7 @@ const ls = (e) => {
|
|
|
447
447
|
)
|
|
448
448
|
] }) });
|
|
449
449
|
}, Ui = 18, Ki = ke(
|
|
450
|
-
(e) =>
|
|
450
|
+
(e) => Ue({
|
|
451
451
|
drawingButton: {
|
|
452
452
|
width: e.spacing(Ui)
|
|
453
453
|
},
|
|
@@ -462,17 +462,17 @@ const ls = (e) => {
|
|
|
462
462
|
}, E = () => {
|
|
463
463
|
i(null);
|
|
464
464
|
};
|
|
465
|
-
return o ? /* @__PURE__ */ l(
|
|
466
|
-
/* @__PURE__ */ l(
|
|
465
|
+
return o ? /* @__PURE__ */ l(nt, { content: "Cancel the ongoing draw", align: "bottomLeft", children: /* @__PURE__ */ l(Ae, { className: n.drawingButton, raised: !0, onClick: r, children: "Cancel Draw" }) }) : /* @__PURE__ */ N(ae, { position: "relative", children: [
|
|
466
|
+
/* @__PURE__ */ l(nt, { content: "draw an Area of interest to limit the search", align: "bottomLeft", children: /* @__PURE__ */ l(Ae, { className: n.drawingButton, raised: !0, onClick: h, children: "Draw AOI" }) }),
|
|
467
467
|
/* @__PURE__ */ N(
|
|
468
|
-
|
|
468
|
+
Ln,
|
|
469
469
|
{
|
|
470
470
|
className: n.fullWidth,
|
|
471
471
|
open: Boolean(t),
|
|
472
472
|
onClose: E,
|
|
473
473
|
children: [
|
|
474
474
|
/* @__PURE__ */ l(
|
|
475
|
-
|
|
475
|
+
qe,
|
|
476
476
|
{
|
|
477
477
|
onClick: () => {
|
|
478
478
|
d(se.POLYGON), E();
|
|
@@ -481,7 +481,7 @@ const ls = (e) => {
|
|
|
481
481
|
}
|
|
482
482
|
),
|
|
483
483
|
/* @__PURE__ */ l(
|
|
484
|
-
|
|
484
|
+
qe,
|
|
485
485
|
{
|
|
486
486
|
onClick: () => {
|
|
487
487
|
d(se.BOX), E();
|
|
@@ -490,7 +490,7 @@ const ls = (e) => {
|
|
|
490
490
|
}
|
|
491
491
|
),
|
|
492
492
|
/* @__PURE__ */ l(
|
|
493
|
-
|
|
493
|
+
qe,
|
|
494
494
|
{
|
|
495
495
|
onClick: () => {
|
|
496
496
|
u(), E();
|
|
@@ -504,27 +504,27 @@ const ls = (e) => {
|
|
|
504
504
|
] });
|
|
505
505
|
};
|
|
506
506
|
var he = /* @__PURE__ */ ((e) => (e.WGS84 = "EPSG:4326", e.WEB_MERCATOR = "EPSG:3857", e))(he || {});
|
|
507
|
-
const
|
|
507
|
+
const at = 5, lt = 2, Xt = Ie(null), qi = Xt.Provider, Ct = 35, wt = 32, Yi = 10, Xi = (e) => e !== void 0 && e !== he.WGS84 ? Vn([Ct, wt], he.WGS84, e) : [Ct, wt], Zi = (e) => {
|
|
508
508
|
switch (e) {
|
|
509
509
|
case he.WEB_MERCATOR:
|
|
510
|
-
return (n) =>
|
|
510
|
+
return (n) => yt(n, "Mercator: {y}m, {x}m", lt);
|
|
511
511
|
case he.WGS84:
|
|
512
|
-
return (n) =>
|
|
512
|
+
return (n) => yt(n, "WGS84: {y}°N {x}°E", at);
|
|
513
513
|
default:
|
|
514
514
|
return (n) => "";
|
|
515
515
|
}
|
|
516
|
-
},
|
|
517
|
-
const e = xe(
|
|
516
|
+
}, ht = () => {
|
|
517
|
+
const e = xe(Xt);
|
|
518
518
|
if (e === null)
|
|
519
519
|
throw new Error("map context is null, please check the provider");
|
|
520
520
|
return e;
|
|
521
521
|
}, Ji = (e) => {
|
|
522
522
|
const n = be(null), { allowFullScreen: t, showMousePosition: i, projection: o } = e, [r] = A(
|
|
523
|
-
new
|
|
524
|
-
view: new
|
|
523
|
+
new Fn({
|
|
524
|
+
view: new Hn({
|
|
525
525
|
projection: o ?? he.WGS84
|
|
526
526
|
}),
|
|
527
|
-
controls:
|
|
527
|
+
controls: Gn()
|
|
528
528
|
})
|
|
529
529
|
);
|
|
530
530
|
I(() => {
|
|
@@ -538,53 +538,53 @@ const st = 5, at = 2, Zt = Ie(null), qi = Zt.Provider, Et = 35, Ct = 32, Yi = 10
|
|
|
538
538
|
});
|
|
539
539
|
};
|
|
540
540
|
return I(() => {
|
|
541
|
-
r.setTarget(n.current), t !== void 0 && t ? r.addControl(new
|
|
541
|
+
r.setTarget(n.current), t !== void 0 && t ? r.addControl(new vt()) : d(vt, r);
|
|
542
542
|
}, [r, t]), I(() => {
|
|
543
|
-
i !== void 0 && i ? (d(
|
|
544
|
-
new
|
|
543
|
+
i !== void 0 && i ? (d(Ye, r), r.addControl(
|
|
544
|
+
new Ye({
|
|
545
545
|
coordinateFormat: Zi(o ?? he.WGS84),
|
|
546
546
|
projection: o ?? he.WGS84,
|
|
547
547
|
undefinedHTML: " "
|
|
548
548
|
})
|
|
549
|
-
)) : d(
|
|
549
|
+
)) : d(Ye, r);
|
|
550
550
|
}, [r, i, o]), /* @__PURE__ */ N(qi, { value: r, children: [
|
|
551
551
|
/* @__PURE__ */ l("div", { className: "map", ref: n }),
|
|
552
552
|
e.children
|
|
553
553
|
] });
|
|
554
|
-
},
|
|
555
|
-
const e = xe(
|
|
554
|
+
}, Zt = Ie(null), Qi = Zt.Provider, er = () => {
|
|
555
|
+
const e = xe(Zt);
|
|
556
556
|
if (e === null)
|
|
557
557
|
throw new Error("tile layer context is null, please check the provider");
|
|
558
558
|
return e;
|
|
559
559
|
}, tr = ({ options: e, children: n }) => {
|
|
560
|
-
const t =
|
|
560
|
+
const t = ht(), [i] = A(new zn(e));
|
|
561
561
|
return I(() => (t.addLayer(i), () => {
|
|
562
562
|
t.removeLayer(i);
|
|
563
563
|
}), [t, i]), /* @__PURE__ */ l(Qi, { value: i, children: n });
|
|
564
|
-
},
|
|
565
|
-
const e = xe(
|
|
564
|
+
}, Jt = Ie(null), nr = Jt.Provider, ir = () => {
|
|
565
|
+
const e = xe(Jt);
|
|
566
566
|
if (e === null)
|
|
567
567
|
throw new Error("vector layer context is null, please check the provider");
|
|
568
568
|
return e;
|
|
569
569
|
}, rr = ({ children: e }) => {
|
|
570
|
-
const n =
|
|
570
|
+
const n = ht(), [t] = A(new $n());
|
|
571
571
|
return I(() => (n.addLayer(t), () => {
|
|
572
572
|
n.removeLayer(t);
|
|
573
573
|
}), [n, t]), /* @__PURE__ */ l(nr, { value: t, children: e });
|
|
574
|
-
},
|
|
575
|
-
const e = xe(
|
|
574
|
+
}, Qt = Ie(null), or = Qt.Provider, sr = () => {
|
|
575
|
+
const e = xe(Qt);
|
|
576
576
|
if (e === null)
|
|
577
577
|
throw new Error("vector source context is null, please check the provider");
|
|
578
578
|
return e;
|
|
579
579
|
}, ar = ({ children: e }) => {
|
|
580
|
-
const n = ir(), [t] = A(new
|
|
580
|
+
const n = ir(), [t] = A(new Wn());
|
|
581
581
|
return I(() => {
|
|
582
582
|
n.setSource(t);
|
|
583
583
|
}, [t, n]), /* @__PURE__ */ l(or, { value: t, children: e });
|
|
584
584
|
}, lr = ({ geometry: e }) => {
|
|
585
585
|
const n = sr();
|
|
586
586
|
return I(() => {
|
|
587
|
-
const i = new
|
|
587
|
+
const i = new Gt().readFeature(e);
|
|
588
588
|
return n.addFeature(i), () => {
|
|
589
589
|
n.removeFeature(i);
|
|
590
590
|
};
|
|
@@ -592,10 +592,10 @@ const st = 5, at = 2, Zt = Ie(null), qi = Zt.Provider, Et = 35, Ct = 32, Yi = 10
|
|
|
592
592
|
}, cr = (e) => {
|
|
593
593
|
const n = er();
|
|
594
594
|
return I(() => {
|
|
595
|
-
n.setSource(new
|
|
595
|
+
n.setSource(new Un());
|
|
596
596
|
}, [n]), null;
|
|
597
597
|
}, dr = ({ drawType: e, onPolygonSelected: n }) => {
|
|
598
|
-
const t =
|
|
598
|
+
const t = ht();
|
|
599
599
|
return I(() => {
|
|
600
600
|
const i = {
|
|
601
601
|
type: "Circle"
|
|
@@ -603,7 +603,7 @@ const st = 5, at = 2, Zt = Ie(null), qi = Zt.Provider, Et = 35, Ct = 32, Yi = 10
|
|
|
603
603
|
};
|
|
604
604
|
switch (e) {
|
|
605
605
|
case se.BOX:
|
|
606
|
-
i.geometryFunction =
|
|
606
|
+
i.geometryFunction = jn();
|
|
607
607
|
break;
|
|
608
608
|
case se.POLYGON:
|
|
609
609
|
i.type = "Polygon";
|
|
@@ -611,10 +611,10 @@ const st = 5, at = 2, Zt = Ie(null), qi = Zt.Provider, Et = 35, Ct = 32, Yi = 10
|
|
|
611
611
|
default:
|
|
612
612
|
return;
|
|
613
613
|
}
|
|
614
|
-
const o = new
|
|
614
|
+
const o = new Kn(i);
|
|
615
615
|
t.addInteraction(o);
|
|
616
616
|
const r = (d) => {
|
|
617
|
-
const h = new
|
|
617
|
+
const h = new Gt().writeGeometryObject(d.feature.getGeometry());
|
|
618
618
|
n == null || n(h);
|
|
619
619
|
};
|
|
620
620
|
return o.on("drawend", r), () => {
|
|
@@ -624,7 +624,7 @@ const st = 5, at = 2, Zt = Ie(null), qi = Zt.Provider, Et = 35, Ct = 32, Yi = 10
|
|
|
624
624
|
};
|
|
625
625
|
const ur = (e) => {
|
|
626
626
|
const n = (t) => {
|
|
627
|
-
const i =
|
|
627
|
+
const i = Bn(t);
|
|
628
628
|
e.onPolygonSelection(i);
|
|
629
629
|
};
|
|
630
630
|
return /* @__PURE__ */ N(Ji, { allowFullScreen: !0, showMousePosition: !0, children: [
|
|
@@ -633,8 +633,8 @@ const ur = (e) => {
|
|
|
633
633
|
e.children,
|
|
634
634
|
e.drawType !== void 0 && /* @__PURE__ */ l(dr, { drawType: e.drawType, onPolygonSelected: n })
|
|
635
635
|
] });
|
|
636
|
-
},
|
|
637
|
-
(e) =>
|
|
636
|
+
}, Ze = 1.5, hr = 80, mr = ke(
|
|
637
|
+
(e) => Ue({
|
|
638
638
|
map: {
|
|
639
639
|
height: "100%",
|
|
640
640
|
width: "100%",
|
|
@@ -643,11 +643,11 @@ const ur = (e) => {
|
|
|
643
643
|
absolute: {
|
|
644
644
|
position: "absolute",
|
|
645
645
|
zIndex: 1e3,
|
|
646
|
-
left: e.spacing(
|
|
647
|
-
top: e.spacing(
|
|
646
|
+
left: e.spacing(Ze),
|
|
647
|
+
top: e.spacing(Ze)
|
|
648
648
|
},
|
|
649
649
|
contentContainer: {
|
|
650
|
-
marginTop: e.spacing(
|
|
650
|
+
marginTop: e.spacing(Ze),
|
|
651
651
|
width: e.spacing(hr)
|
|
652
652
|
},
|
|
653
653
|
filtersContainer: {
|
|
@@ -667,7 +667,7 @@ const ur = (e) => {
|
|
|
667
667
|
};
|
|
668
668
|
return /* @__PURE__ */ N("div", { className: r.map, children: [
|
|
669
669
|
/* @__PURE__ */ N("div", { className: `${r.absolute}`, children: [
|
|
670
|
-
/* @__PURE__ */ N(
|
|
670
|
+
/* @__PURE__ */ N(tt, { className: r.filtersContainer, children: [
|
|
671
671
|
/* @__PURE__ */ l(
|
|
672
672
|
ji,
|
|
673
673
|
{
|
|
@@ -679,7 +679,7 @@ const ur = (e) => {
|
|
|
679
679
|
),
|
|
680
680
|
(h = e.filters) == null ? void 0 : h.map((E, C) => /* @__PURE__ */ l("div", { className: r.filtersMargin, children: E }, C))
|
|
681
681
|
] }),
|
|
682
|
-
/* @__PURE__ */ l(
|
|
682
|
+
/* @__PURE__ */ l(tt, { color: "red", className: `${r.contentContainer}`, children: e.children })
|
|
683
683
|
] }),
|
|
684
684
|
/* @__PURE__ */ l(ur, { children: e.mapContent, onPolygonSelection: d, drawType: n, selectionPolygon: i })
|
|
685
685
|
] });
|
|
@@ -688,7 +688,7 @@ function pr(e) {
|
|
|
688
688
|
const { headCells: n, order: t, orderBy: i, onRequestSort: o, isCollapseable: r } = e, d = (u) => (h) => {
|
|
689
689
|
o(h, u);
|
|
690
690
|
};
|
|
691
|
-
return /* @__PURE__ */ l(
|
|
691
|
+
return /* @__PURE__ */ l(qn, { children: /* @__PURE__ */ N(Ge, { children: [
|
|
692
692
|
r && /* @__PURE__ */ l(Me, {}),
|
|
693
693
|
n.map((u) => /* @__PURE__ */ l(
|
|
694
694
|
Me,
|
|
@@ -697,7 +697,7 @@ function pr(e) {
|
|
|
697
697
|
padding: u.disablePadding ? "none" : "default",
|
|
698
698
|
sortDirection: i === u.id ? t : !1,
|
|
699
699
|
children: /* @__PURE__ */ l(
|
|
700
|
-
|
|
700
|
+
fn,
|
|
701
701
|
{
|
|
702
702
|
active: i === u.id,
|
|
703
703
|
direction: i === u.id ? t : "asc",
|
|
@@ -710,13 +710,13 @@ function pr(e) {
|
|
|
710
710
|
))
|
|
711
711
|
] }) });
|
|
712
712
|
}
|
|
713
|
-
const gr =
|
|
714
|
-
/* @__PURE__ */
|
|
713
|
+
const gr = Vt(
|
|
714
|
+
/* @__PURE__ */ kt.createElement("path", {
|
|
715
715
|
d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"
|
|
716
716
|
}),
|
|
717
717
|
"KeyboardArrowDown"
|
|
718
|
-
), fr =
|
|
719
|
-
/* @__PURE__ */
|
|
718
|
+
), fr = Vt(
|
|
719
|
+
/* @__PURE__ */ kt.createElement("path", {
|
|
720
720
|
d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"
|
|
721
721
|
}),
|
|
722
722
|
"KeyboardArrowUp"
|
|
@@ -724,11 +724,11 @@ const gr = zt(
|
|
|
724
724
|
function yr(e) {
|
|
725
725
|
const { cellsMetadata: n, isRowSelected: t, item: i, onRowSelected: o, rowIndex: r, isCollapseable: d, collapsedElement: u } = e, [h, E] = A(!1), C = n.length;
|
|
726
726
|
return /* @__PURE__ */ N(te, { children: [
|
|
727
|
-
/* @__PURE__ */ N(
|
|
727
|
+
/* @__PURE__ */ N(Ge, { hover: !0, selected: t, onClick: () => {
|
|
728
728
|
o == null || o(r);
|
|
729
729
|
}, children: [
|
|
730
730
|
d && /* @__PURE__ */ l(Me, { padding: "checkbox", children: /* @__PURE__ */ l(
|
|
731
|
-
|
|
731
|
+
yn,
|
|
732
732
|
{
|
|
733
733
|
"aria-label": "expand row",
|
|
734
734
|
size: "small",
|
|
@@ -748,7 +748,7 @@ function yr(e) {
|
|
|
748
748
|
b.id + r.toString()
|
|
749
749
|
))
|
|
750
750
|
] }),
|
|
751
|
-
d && /* @__PURE__ */ l(
|
|
751
|
+
d && /* @__PURE__ */ l(Ge, { children: /* @__PURE__ */ l(Me, { style: { paddingBottom: 0, paddingTop: 0 }, colSpan: C + 1, children: /* @__PURE__ */ l(vn, { in: h, unmountOnExit: !0, timeout: "auto", children: u == null ? void 0 : u(i) }) }) })
|
|
752
752
|
] });
|
|
753
753
|
}
|
|
754
754
|
function ds(e) {
|
|
@@ -766,8 +766,8 @@ function ds(e) {
|
|
|
766
766
|
handleChangePage: $,
|
|
767
767
|
handleChangeRowsPerPage: q
|
|
768
768
|
} = e;
|
|
769
|
-
return /* @__PURE__ */ N(
|
|
770
|
-
/* @__PURE__ */ N(
|
|
769
|
+
return /* @__PURE__ */ N(En, { component: tt, children: [
|
|
770
|
+
/* @__PURE__ */ N(Cn, { size: L ? "small" : "medium", children: [
|
|
771
771
|
/* @__PURE__ */ l(
|
|
772
772
|
pr,
|
|
773
773
|
{
|
|
@@ -781,7 +781,7 @@ function ds(e) {
|
|
|
781
781
|
isCollapseable: E
|
|
782
782
|
}
|
|
783
783
|
),
|
|
784
|
-
/* @__PURE__ */ N(
|
|
784
|
+
/* @__PURE__ */ N(wn, { children: [
|
|
785
785
|
d.map((Y, K) => /* @__PURE__ */ l(
|
|
786
786
|
yr,
|
|
787
787
|
{
|
|
@@ -796,18 +796,18 @@ function ds(e) {
|
|
|
796
796
|
K
|
|
797
797
|
)),
|
|
798
798
|
(d.length === 0 || P > d.length) && /* @__PURE__ */ l(
|
|
799
|
-
|
|
799
|
+
Ge,
|
|
800
800
|
{
|
|
801
801
|
style: {
|
|
802
802
|
height: (L ? 33 : 53) * (P - d.length)
|
|
803
803
|
},
|
|
804
|
-
children: /* @__PURE__ */ l(Me, { colSpan: E ? r.length + 1 : r.length, children: d.length === 0 && /* @__PURE__ */ l(
|
|
804
|
+
children: /* @__PURE__ */ l(Me, { colSpan: E ? r.length + 1 : r.length, children: d.length === 0 && /* @__PURE__ */ l(bn, { align: "center", children: "No results :(" }) })
|
|
805
805
|
}
|
|
806
806
|
)
|
|
807
807
|
] })
|
|
808
808
|
] }),
|
|
809
809
|
/* @__PURE__ */ l(
|
|
810
|
-
|
|
810
|
+
Tn,
|
|
811
811
|
{
|
|
812
812
|
rowsPerPage: P,
|
|
813
813
|
rowsPerPageOptions: [5, 10],
|
|
@@ -822,17 +822,17 @@ function ds(e) {
|
|
|
822
822
|
}
|
|
823
823
|
const us = (e) => {
|
|
824
824
|
const { children: n, ...t } = e;
|
|
825
|
-
return /* @__PURE__ */ l(
|
|
825
|
+
return /* @__PURE__ */ l(Yn, { ...t, children: n });
|
|
826
826
|
}, hs = (e) => {
|
|
827
827
|
const { children: n, ...t } = e;
|
|
828
|
-
return /* @__PURE__ */ l(
|
|
829
|
-
},
|
|
828
|
+
return /* @__PURE__ */ l(Xn, { ...t, children: n });
|
|
829
|
+
}, bt = (e) => e * Math.PI / 180, Be = (e) => e * (180 / Math.PI), vr = (e) => 0.05 * (5916575505e-1 / Math.pow(2, e - 1) / 2) * (Math.cos(bt(85.362 / 2)) / Math.sin(bt(85.362 / 2)));
|
|
830
830
|
const Er = (e) => {
|
|
831
831
|
const n = le(), t = be(null), [i, o] = A({ x: 0, y: 0 });
|
|
832
832
|
return I(() => {
|
|
833
833
|
n.screenSpaceEventHandler.setInputAction((r) => {
|
|
834
834
|
r != null && r.endPosition && o({ ...r.endPosition });
|
|
835
|
-
},
|
|
835
|
+
}, ai.MOUSE_MOVE);
|
|
836
836
|
}, [t, n]), I(() => {
|
|
837
837
|
const r = n.scene.globe.ellipsoid, d = n.camera.pickEllipsoid(new pe(i.x, i.y), r);
|
|
838
838
|
if (d) {
|
|
@@ -841,15 +841,15 @@ const Er = (e) => {
|
|
|
841
841
|
let h = "";
|
|
842
842
|
switch (e.projection) {
|
|
843
843
|
case he.WEB_MERCATOR: {
|
|
844
|
-
const C = new
|
|
845
|
-
h = `Mercator: ${C.y.toFixed(
|
|
846
|
-
|
|
844
|
+
const C = new li(r).project(u);
|
|
845
|
+
h = `Mercator: ${C.y.toFixed(lt)}m, ${C.x.toFixed(
|
|
846
|
+
lt
|
|
847
847
|
)}m`, t.current.style.width = "220px";
|
|
848
848
|
break;
|
|
849
849
|
}
|
|
850
850
|
case he.WGS84: {
|
|
851
|
-
const E = ce.toDegrees(u.longitude).toFixed(
|
|
852
|
-
h = `WGS84: ${ce.toDegrees(u.latitude).toFixed(
|
|
851
|
+
const E = ce.toDegrees(u.longitude).toFixed(at);
|
|
852
|
+
h = `WGS84: ${ce.toDegrees(u.latitude).toFixed(at)}°N ${E}°E`, t.current.style.width = "200px";
|
|
853
853
|
break;
|
|
854
854
|
}
|
|
855
855
|
}
|
|
@@ -857,7 +857,7 @@ const Er = (e) => {
|
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
859
|
}, [i, t, n, e.projection]), /* @__PURE__ */ l("div", { className: "trackerPosition", ref: t });
|
|
860
|
-
},
|
|
860
|
+
}, en = (e, n, t) => {
|
|
861
861
|
let i;
|
|
862
862
|
if (e.scene.mode !== we.SCENE2D)
|
|
863
863
|
i = e.scene.pickPosition(new Ee(n, t));
|
|
@@ -867,7 +867,7 @@ const Er = (e) => {
|
|
|
867
867
|
}
|
|
868
868
|
return Oe.fromCartesian(i);
|
|
869
869
|
}, Cr = (e, n, t) => {
|
|
870
|
-
const i =
|
|
870
|
+
const i = en(e, n, t);
|
|
871
871
|
return {
|
|
872
872
|
type: "Feature",
|
|
873
873
|
properties: {},
|
|
@@ -878,7 +878,7 @@ const Er = (e) => {
|
|
|
878
878
|
};
|
|
879
879
|
}, wr = (e, n, t) => {
|
|
880
880
|
try {
|
|
881
|
-
const i =
|
|
881
|
+
const i = en(e, n, t);
|
|
882
882
|
return {
|
|
883
883
|
longitude: ce.toDegrees(i.longitude),
|
|
884
884
|
latitude: ce.toDegrees(i.latitude)
|
|
@@ -887,7 +887,7 @@ const Er = (e) => {
|
|
|
887
887
|
return;
|
|
888
888
|
}
|
|
889
889
|
};
|
|
890
|
-
const
|
|
890
|
+
const Je = [
|
|
891
891
|
1,
|
|
892
892
|
2,
|
|
893
893
|
3,
|
|
@@ -925,7 +925,7 @@ const Ze = [
|
|
|
925
925
|
barWidth: void 0,
|
|
926
926
|
distanceLabel: void 0,
|
|
927
927
|
lastLegendUpdate: n.lastLegendUpdate
|
|
928
|
-
}, u = new
|
|
928
|
+
}, u = new di(), h = new Date().getTime();
|
|
929
929
|
if (h < d.lastLegendUpdate + 250)
|
|
930
930
|
return;
|
|
931
931
|
d.lastLegendUpdate = h;
|
|
@@ -936,9 +936,9 @@ const Ze = [
|
|
|
936
936
|
u.setEndPoints(q, H);
|
|
937
937
|
const Y = u.surfaceDistance, K = 100;
|
|
938
938
|
let x;
|
|
939
|
-
for (let W =
|
|
940
|
-
|
|
941
|
-
if (
|
|
939
|
+
for (let W = Je.length - 1; !ze(x) && W >= 0; --W)
|
|
940
|
+
Je[W] / Y < K && (x = Je[W]);
|
|
941
|
+
if (ze(x)) {
|
|
942
942
|
let W = "";
|
|
943
943
|
x >= 1e3 ? W = `${(x / 1e3).toString()} ${r}` : W = `${x.toString()} ${o}`, d.barWidth = x / Y | 0, d.distanceLabel = W;
|
|
944
944
|
}
|
|
@@ -952,7 +952,7 @@ const Ze = [
|
|
|
952
952
|
I(() => {
|
|
953
953
|
const r = (h) => {
|
|
954
954
|
br(n, t, i, e.locale);
|
|
955
|
-
}, d = new
|
|
955
|
+
}, d = new ci(), u = (h) => {
|
|
956
956
|
n.scene.globe.tilesLoaded && (r(new MouseEvent("mouse")), d.removeAll());
|
|
957
957
|
};
|
|
958
958
|
return d.add(n.scene.globe.tileLoadProgressEvent, u), n.camera.moveEnd.addEventListener(r), () => {
|
|
@@ -964,7 +964,7 @@ const Ze = [
|
|
|
964
964
|
};
|
|
965
965
|
}, [n, e.locale, t]);
|
|
966
966
|
const o = (r) => 5 + (125 - r) / 2;
|
|
967
|
-
return /* @__PURE__ */ l("div", { className: "scalePosition", children:
|
|
967
|
+
return /* @__PURE__ */ l("div", { className: "scalePosition", children: ze(t.barWidth) && /* @__PURE__ */ N(te, { children: [
|
|
968
968
|
/* @__PURE__ */ l("div", { className: "distance-legend-label", children: /* @__PURE__ */ l("bdi", { children: t.distanceLabel }) }),
|
|
969
969
|
/* @__PURE__ */ l(
|
|
970
970
|
"div",
|
|
@@ -984,7 +984,7 @@ const Ze = [
|
|
|
984
984
|
SCENE2D: we.SCENE2D,
|
|
985
985
|
SCENE3D: we.SCENE3D
|
|
986
986
|
};
|
|
987
|
-
const
|
|
987
|
+
const Tt = (e, n) => {
|
|
988
988
|
const i = ee(n.scene.globe, "_surface.tileProvider"), o = i._quadtree, r = n.canvas.height, d = ee(n.camera.frustum, "sseDenominator") ?? 1;
|
|
989
989
|
for (let u = 0; u <= 19; u++)
|
|
990
990
|
if (i.getLevelMaximumGeometricError(u) * r / (e * d) < o.maximumScreenSpaceError)
|
|
@@ -995,13 +995,13 @@ const bt = (e, n) => {
|
|
|
995
995
|
const t = [];
|
|
996
996
|
let i = 1e5, o = 0;
|
|
997
997
|
for (let r = 1e8; r > i; r = r - i) {
|
|
998
|
-
const d =
|
|
998
|
+
const d = Tt(r, n);
|
|
999
999
|
if (d === null)
|
|
1000
1000
|
break;
|
|
1001
1001
|
if (d !== o) {
|
|
1002
1002
|
let u = r, h = r + i;
|
|
1003
1003
|
for (; h - u > e; )
|
|
1004
|
-
r = u + (h - u) / 2,
|
|
1004
|
+
r = u + (h - u) / 2, Tt(r, n) === d ? u = r : h = r;
|
|
1005
1005
|
t.push({
|
|
1006
1006
|
level: d,
|
|
1007
1007
|
height: Math.round(r)
|
|
@@ -1081,7 +1081,7 @@ const Sr = -1, Mr = (e) => {
|
|
|
1081
1081
|
] });
|
|
1082
1082
|
};
|
|
1083
1083
|
const Pr = ke(
|
|
1084
|
-
(e) =>
|
|
1084
|
+
(e) => Ue({
|
|
1085
1085
|
mapContainer: {
|
|
1086
1086
|
width: "60px",
|
|
1087
1087
|
height: "60px",
|
|
@@ -1125,13 +1125,13 @@ const Pr = ke(
|
|
|
1125
1125
|
) }, E.id)) })
|
|
1126
1126
|
] });
|
|
1127
1127
|
};
|
|
1128
|
-
const
|
|
1128
|
+
const Qe = "ic_settings_24px", Ar = (e) => {
|
|
1129
1129
|
const [n, t] = A(!1), { sceneModes: i, baseMaps: o, locale: r } = e, d = be(null), u = ee(r, "MAP_SETTINGS_DIALOG_TITLE") ?? "Map Settings", h = ee(r, "MAP_SETTINGS_SCENE_MODE_TITLE") ?? "Scene Mode", E = ee(r, "MAP_SETTINGS_BASE_MAP_TITLE") ?? "Base Map";
|
|
1130
1130
|
return I(() => {
|
|
1131
1131
|
const C = (L) => {
|
|
1132
1132
|
var B;
|
|
1133
1133
|
const b = L.target, P = ee(d, "current");
|
|
1134
|
-
P && !P.contains(b) && b.id !==
|
|
1134
|
+
P && !P.contains(b) && b.id !== Qe && ((B = b.parentElement) == null ? void 0 : B.id) !== Qe && (document.removeEventListener("click", C, !1), t(!1));
|
|
1135
1135
|
};
|
|
1136
1136
|
return document.addEventListener("click", C, !1), () => {
|
|
1137
1137
|
document.removeEventListener("click", C, !1);
|
|
@@ -1140,22 +1140,22 @@ const Je = "ic_settings_24px", Ar = (e) => {
|
|
|
1140
1140
|
/* @__PURE__ */ l(
|
|
1141
1141
|
Pe,
|
|
1142
1142
|
{
|
|
1143
|
-
icon: /* @__PURE__ */ l("div", { className: "settingsIconContainer", children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 24 24", id:
|
|
1143
|
+
icon: /* @__PURE__ */ l("div", { className: "settingsIconContainer", children: /* @__PURE__ */ l("svg", { width: "100%", height: "100%", viewBox: "0 0 24 24", id: Qe, x: "288", y: "24", children: /* @__PURE__ */ l("path", { d: "M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.488.488 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z" }) }) }),
|
|
1144
1144
|
onClick: () => {
|
|
1145
1145
|
t(!n);
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
1148
|
),
|
|
1149
1149
|
n && /* @__PURE__ */ l("div", { id: "dialog-portal-example", className: "settingsDialogPortal", ref: d, children: /* @__PURE__ */ N(
|
|
1150
|
-
|
|
1150
|
+
Sn,
|
|
1151
1151
|
{
|
|
1152
1152
|
open: n,
|
|
1153
1153
|
onClosed: () => {
|
|
1154
1154
|
t(!1);
|
|
1155
1155
|
},
|
|
1156
1156
|
children: [
|
|
1157
|
-
/* @__PURE__ */ l(
|
|
1158
|
-
/* @__PURE__ */ N(
|
|
1157
|
+
/* @__PURE__ */ l(Mn, { children: u }),
|
|
1158
|
+
/* @__PURE__ */ N(Pn, { children: [
|
|
1159
1159
|
/* @__PURE__ */ l("h4", { className: "sectionLabel", children: h }),
|
|
1160
1160
|
/* @__PURE__ */ l(ae, { className: "mapScenesContainer", children: /* @__PURE__ */ l(Mr, { sceneModes: i }) }),
|
|
1161
1161
|
/* @__PURE__ */ l(ae, { className: "baseMapsContainer", children: o && /* @__PURE__ */ N(te, { children: [
|
|
@@ -1180,7 +1180,7 @@ const Ir = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
|
|
|
1180
1180
|
}, [n]);
|
|
1181
1181
|
const d = me(() => {
|
|
1182
1182
|
const E = /* @__PURE__ */ l(ae, { className: "layerNameContainer", children: /* @__PURE__ */ l("h3", { style: { maxWidth: `${15}ch` }, className: "layerName", children: t }) });
|
|
1183
|
-
return (t ?? "").length > 15 ? /* @__PURE__ */ l(
|
|
1183
|
+
return (t ?? "").length > 15 ? /* @__PURE__ */ l(nt, { content: t, children: E }) : E;
|
|
1184
1184
|
}, [t]), u = me(() => [
|
|
1185
1185
|
typeof e == "string" && /* @__PURE__ */ l("a", { className: "legendAction", href: e, target: "_blank", rel: "noreferrer", children: o }),
|
|
1186
1186
|
typeof n == "string" && /* @__PURE__ */ l("a", { className: "legendAction", href: n, target: "_blank", rel: "noreferrer", children: i })
|
|
@@ -1200,13 +1200,13 @@ const Ir = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
|
|
|
1200
1200
|
noLegendsText: i = "No legends to display...",
|
|
1201
1201
|
actionsTexts: o = { docText: "Docs", imgText: "View Image" },
|
|
1202
1202
|
legends: r = []
|
|
1203
|
-
}) => e ? /* @__PURE__ */ N(
|
|
1204
|
-
/* @__PURE__ */ l(
|
|
1205
|
-
/* @__PURE__ */ N(
|
|
1203
|
+
}) => e ? /* @__PURE__ */ N(Dn, { className: "mapLegendSidebarContainer", modal: !1, dismissible: !0, open: e, children: [
|
|
1204
|
+
/* @__PURE__ */ l(An, { className: "sidebarHeaderContainer", children: /* @__PURE__ */ l(In, { className: "sidebarTitle", children: t }) }),
|
|
1205
|
+
/* @__PURE__ */ N(xn, { className: "sidebarContent", children: [
|
|
1206
1206
|
/* @__PURE__ */ l(Pe, { onClick: n, className: "mapLegendCloseBtn", icon: { icon: "close", size: "small" } }),
|
|
1207
1207
|
/* @__PURE__ */ l(Or, { noLegendsText: i, legends: r, actionsTexts: o })
|
|
1208
1208
|
] })
|
|
1209
|
-
] }) : null, ue = document.createElement("canvas"), re = ue.getContext("2d"),
|
|
1209
|
+
] }) : null, ue = document.createElement("canvas"), re = ue.getContext("2d"), _t = (e) => {
|
|
1210
1210
|
const i = (e == null ? void 0 : e.data) ?? [];
|
|
1211
1211
|
for (let o = 3; o < i.length; o += 4)
|
|
1212
1212
|
if (i[o] < 255)
|
|
@@ -1220,7 +1220,7 @@ const Ir = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
|
|
|
1220
1220
|
o = e;
|
|
1221
1221
|
else if (e instanceof ImageBitmap) {
|
|
1222
1222
|
ue.width = e.width, ue.height = e.height, re == null || re.drawImage(e, 0, 0);
|
|
1223
|
-
const r = re == null ? void 0 : re.getImageData(0, 0, ue.width, ue.height), d =
|
|
1223
|
+
const r = re == null ? void 0 : re.getImageData(0, 0, ue.width, ue.height), d = _t(r);
|
|
1224
1224
|
d && n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(d);
|
|
1225
1225
|
return;
|
|
1226
1226
|
} else
|
|
@@ -1228,7 +1228,7 @@ const Ir = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
|
|
|
1228
1228
|
o.onload = () => {
|
|
1229
1229
|
ue.width = o.width, ue.height = o.height, re == null || re.drawImage(o, 0, 0);
|
|
1230
1230
|
const r = re == null ? void 0 : re.getImageData(0, 0, ue.width, ue.height);
|
|
1231
|
-
|
|
1231
|
+
_t(r) ? (n && (n.tileTransparencyCheckedCounter = n.maxTilesForTransparencyCheck), t(!0)) : t(!1);
|
|
1232
1232
|
};
|
|
1233
1233
|
} catch (o) {
|
|
1234
1234
|
console.error("Could not determine image transparency. Error => ", o), i(o);
|
|
@@ -1236,8 +1236,8 @@ const Ir = /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", enabl
|
|
|
1236
1236
|
})), Fe = (e, n) => {
|
|
1237
1237
|
const { west: t, east: i, north: o, south: r } = e, { west: d, east: u, north: h, south: E } = n;
|
|
1238
1238
|
return t >= d && i <= u && o <= h && r >= E;
|
|
1239
|
-
},
|
|
1240
|
-
function
|
|
1239
|
+
}, Ke = 3, $e = "hasTransparency";
|
|
1240
|
+
function mt(e, n, t, i, o) {
|
|
1241
1241
|
return setTimeout(() => {
|
|
1242
1242
|
var u;
|
|
1243
1243
|
const r = (u = this.layerListInstance.find(
|
|
@@ -1247,60 +1247,60 @@ function ht(e, n, t, i, o) {
|
|
|
1247
1247
|
return ((E = h._imageryProvider._resource) == null ? void 0 : E._url) === ((C = this._resource) == null ? void 0 : C._url);
|
|
1248
1248
|
}
|
|
1249
1249
|
/* eslint-enable */
|
|
1250
|
-
)) == null ? void 0 : u.meta, d = ee(r,
|
|
1251
|
-
this.tileTransparencyCheckedCounter <
|
|
1250
|
+
)) == null ? void 0 : u.meta, d = ee(r, $e) === !0;
|
|
1251
|
+
this.tileTransparencyCheckedCounter < Ke && !d && Nr(o == null ? void 0 : o.url, this).then((h) => {
|
|
1252
1252
|
var E;
|
|
1253
1253
|
(E = this.mapViewer.layersManager) == null || E.addMetaToLayer(
|
|
1254
|
-
{ [
|
|
1254
|
+
{ [$e]: h },
|
|
1255
1255
|
/* eslint-disable */
|
|
1256
1256
|
(C) => C._imageryProvider._resource._url === this._resource._url
|
|
1257
1257
|
);
|
|
1258
1258
|
});
|
|
1259
1259
|
}, 0), e(n, t, i, o);
|
|
1260
1260
|
}
|
|
1261
|
-
class
|
|
1261
|
+
class tn extends ct {
|
|
1262
1262
|
constructor(t, i) {
|
|
1263
1263
|
var o;
|
|
1264
1264
|
super(t);
|
|
1265
1265
|
Z(this, "layerListInstance");
|
|
1266
1266
|
Z(this, "mapViewer");
|
|
1267
|
-
Z(this, "maxTilesForTransparencyCheck",
|
|
1267
|
+
Z(this, "maxTilesForTransparencyCheck", Ke);
|
|
1268
1268
|
Z(this, "tileTransparencyCheckedCounter", 0);
|
|
1269
1269
|
this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
|
|
1270
1270
|
}
|
|
1271
1271
|
requestImage(t, i, o, r) {
|
|
1272
|
-
return
|
|
1272
|
+
return mt.call(this, super.requestImage.bind(this), t, i, o, r);
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
|
-
class
|
|
1275
|
+
class nn extends dt {
|
|
1276
1276
|
constructor(t, i) {
|
|
1277
1277
|
var o;
|
|
1278
1278
|
super(t);
|
|
1279
1279
|
Z(this, "layerListInstance");
|
|
1280
1280
|
Z(this, "mapViewer");
|
|
1281
|
-
Z(this, "maxTilesForTransparencyCheck",
|
|
1281
|
+
Z(this, "maxTilesForTransparencyCheck", Ke);
|
|
1282
1282
|
Z(this, "tileTransparencyCheckedCounter", 0);
|
|
1283
1283
|
this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
|
|
1284
1284
|
}
|
|
1285
1285
|
requestImage(t, i, o, r) {
|
|
1286
|
-
return
|
|
1286
|
+
return mt.call(this, super.requestImage.bind(this), t, i, o, r);
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
|
-
class
|
|
1289
|
+
class rn extends ut {
|
|
1290
1290
|
constructor(t, i) {
|
|
1291
1291
|
var o;
|
|
1292
1292
|
super(t);
|
|
1293
1293
|
Z(this, "layerListInstance");
|
|
1294
1294
|
Z(this, "mapViewer");
|
|
1295
|
-
Z(this, "maxTilesForTransparencyCheck",
|
|
1295
|
+
Z(this, "maxTilesForTransparencyCheck", Ke);
|
|
1296
1296
|
Z(this, "tileTransparencyCheckedCounter", 0);
|
|
1297
1297
|
this.layerListInstance = (o = i.layersManager) == null ? void 0 : o.layerList, this.mapViewer = i;
|
|
1298
1298
|
}
|
|
1299
1299
|
requestImage(t, i, o, r) {
|
|
1300
|
-
return
|
|
1300
|
+
return mt.call(this, super.requestImage.bind(this), t, i, o, r);
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
|
-
const Br = 1, Fr = -1,
|
|
1303
|
+
const Br = 1, Fr = -1, Lt = "TRANSPARENT_BASE_LAYER";
|
|
1304
1304
|
class Hr {
|
|
1305
1305
|
constructor(n, t, i, o) {
|
|
1306
1306
|
Z(this, "mapViewer");
|
|
@@ -1309,9 +1309,9 @@ class Hr {
|
|
|
1309
1309
|
Z(this, "layers");
|
|
1310
1310
|
Z(this, "legendsExtractor");
|
|
1311
1311
|
Z(this, "layerManagerFootprintMetaFieldPath");
|
|
1312
|
-
this.mapViewer = n, this.layers = this.mapViewer.imageryLayers._layers, this.legendsList = [], this.legendsExtractor = t, this.layerUpdated = new
|
|
1312
|
+
this.mapViewer = n, this.layers = this.mapViewer.imageryLayers._layers, this.legendsList = [], this.legendsExtractor = t, this.layerUpdated = new ui(), this.layerManagerFootprintMetaFieldPath = o, i && this.layerUpdated.addEventListener(i, this), this.mapViewer.shouldOptimizedTileRequests && (this.layerUpdated.addEventListener((r) => {
|
|
1313
1313
|
const d = Object.keys(r);
|
|
1314
|
-
d.length === 1 && d[0] ===
|
|
1314
|
+
d.length === 1 && d[0] === $e && (this.markRelevantLayersForExtent(), this.hideNonRelevantLayers());
|
|
1315
1315
|
}), this.mapViewer.imageryLayers.layerRemoved.addEventListener(() => {
|
|
1316
1316
|
this.setLegends(), this.markRelevantLayersForExtent(), this.hideNonRelevantLayers();
|
|
1317
1317
|
}), this.mapViewer.imageryLayers.layerMoved.addEventListener(() => {
|
|
@@ -1336,23 +1336,23 @@ class Hr {
|
|
|
1336
1336
|
setBaseMapLayers(n) {
|
|
1337
1337
|
n.baseRasteLayers.sort((i, o) => i.zIndex - o.zIndex).forEach((i, o) => {
|
|
1338
1338
|
this.addRasterLayer(i, o, n.id);
|
|
1339
|
-
}), this.mapViewer.shouldOptimizedTileRequests && (this.removeLayer(
|
|
1339
|
+
}), this.mapViewer.shouldOptimizedTileRequests && (this.removeLayer(Lt), this.addTransparentImageryProvider());
|
|
1340
1340
|
}
|
|
1341
1341
|
addRasterLayer(n, t, i) {
|
|
1342
1342
|
let o;
|
|
1343
1343
|
switch (n.type) {
|
|
1344
1344
|
case "XYZ_LAYER": {
|
|
1345
|
-
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new
|
|
1345
|
+
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new tn(r, this.mapViewer) : new ct(r);
|
|
1346
1346
|
o = this.mapViewer.imageryLayers.addImageryProvider(d, t);
|
|
1347
1347
|
break;
|
|
1348
1348
|
}
|
|
1349
1349
|
case "WMS_LAYER": {
|
|
1350
|
-
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new
|
|
1350
|
+
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new nn(r, this.mapViewer) : new dt(r);
|
|
1351
1351
|
o = this.mapViewer.imageryLayers.addImageryProvider(d, t);
|
|
1352
1352
|
break;
|
|
1353
1353
|
}
|
|
1354
1354
|
case "WMTS_LAYER": {
|
|
1355
|
-
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new
|
|
1355
|
+
const r = n.options, d = this.mapViewer.shouldOptimizedTileRequests ? new rn(r, this.mapViewer) : new ut(r);
|
|
1356
1356
|
o = this.mapViewer.imageryLayers.addImageryProvider(d, t);
|
|
1357
1357
|
break;
|
|
1358
1358
|
}
|
|
@@ -1441,7 +1441,7 @@ class Hr {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
addTransparentImageryProvider() {
|
|
1443
1443
|
const n = this.mapViewer.imageryLayers.addImageryProvider(
|
|
1444
|
-
new
|
|
1444
|
+
new hi({
|
|
1445
1445
|
url: "./assets/img/transparent-tile.png",
|
|
1446
1446
|
/* eslint-disable @typescript-eslint/no-magic-numbers */
|
|
1447
1447
|
rectangle: new Se(-3.141592653589793, -1.5707963267948966, 3.141592653589793, 1.5707963267948966)
|
|
@@ -1450,7 +1450,7 @@ class Hr {
|
|
|
1450
1450
|
0
|
|
1451
1451
|
);
|
|
1452
1452
|
n.meta = {
|
|
1453
|
-
id:
|
|
1453
|
+
id: Lt,
|
|
1454
1454
|
skipRelevancyCheck: !0,
|
|
1455
1455
|
parentBasetMapId: "TRANSPARENT_LAYER"
|
|
1456
1456
|
};
|
|
@@ -1484,13 +1484,13 @@ class Hr {
|
|
|
1484
1484
|
try {
|
|
1485
1485
|
const i = this.mapViewer.camera.computeViewRectangle();
|
|
1486
1486
|
for (let o = this.layers.length - 1; o >= 0; o--) {
|
|
1487
|
-
const r = this.layers[o], d = !
|
|
1487
|
+
const r = this.layers[o], d = !ot(i) && !ot(r.rectangle) && Se.intersection(i, r.rectangle);
|
|
1488
1488
|
for (let u = this.layers.length - 1; u >= o; u--) {
|
|
1489
1489
|
if (((n = r.meta) == null ? void 0 : n.skipRelevancyCheck) === !0) {
|
|
1490
1490
|
r.meta = { ...r.meta, relevantToExtent: !0 };
|
|
1491
1491
|
continue;
|
|
1492
1492
|
}
|
|
1493
|
-
const h = this.layers[u], E = ((t = h.meta) == null ? void 0 : t[
|
|
1493
|
+
const h = this.layers[u], E = ((t = h.meta) == null ? void 0 : t[$e]) === !0;
|
|
1494
1494
|
if (r !== h)
|
|
1495
1495
|
if (d instanceof Se) {
|
|
1496
1496
|
if (Fe(i, r.rectangle))
|
|
@@ -1531,8 +1531,8 @@ class Hr {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
1533
1533
|
}
|
|
1534
|
-
const
|
|
1535
|
-
class ms extends
|
|
1534
|
+
const St = 212, Mt = 260, Gr = 0;
|
|
1535
|
+
class ms extends mi {
|
|
1536
1536
|
constructor(t, i) {
|
|
1537
1537
|
super(t, i);
|
|
1538
1538
|
Z(this, "layersManager");
|
|
@@ -1545,8 +1545,8 @@ class ms extends pi {
|
|
|
1545
1545
|
this.useOptimizedTileRequests = t;
|
|
1546
1546
|
}
|
|
1547
1547
|
}
|
|
1548
|
-
const
|
|
1549
|
-
const e = xe(
|
|
1548
|
+
const on = Ie(null), Vr = on.Provider, le = () => {
|
|
1549
|
+
const e = xe(on);
|
|
1550
1550
|
if (e === null)
|
|
1551
1551
|
throw new Error("map context is null, please check the provider");
|
|
1552
1552
|
return e;
|
|
@@ -1561,6 +1561,7 @@ const sn = Ie(null), Vr = sn.Provider, le = () => {
|
|
|
1561
1561
|
navigationHelpButton: !1,
|
|
1562
1562
|
homeButton: !1,
|
|
1563
1563
|
sceneModePicker: !1,
|
|
1564
|
+
imageryProvider: !1,
|
|
1564
1565
|
...e
|
|
1565
1566
|
}, _ = (F, k, j, fe, Te) => {
|
|
1566
1567
|
const ye = t.container, Re = ye.clientWidth, Ne = ye.clientHeight, De = fe + Te;
|
|
@@ -1686,14 +1687,14 @@ const sn = Ie(null), Vr = sn.Provider, le = () => {
|
|
|
1686
1687
|
};
|
|
1687
1688
|
}, [t]), I(() => {
|
|
1688
1689
|
const F = e.zoom, k = e.center;
|
|
1689
|
-
t &&
|
|
1690
|
+
t && ze(F) && Mi(k) && t.camera.flyTo({
|
|
1690
1691
|
destination: pe.fromDegrees(k[0], k[1], vr(F)),
|
|
1691
1692
|
duration: 0
|
|
1692
1693
|
});
|
|
1693
1694
|
}, [e.zoom, e.center, t]);
|
|
1694
|
-
const M = me(() => t &&
|
|
1695
|
+
const M = me(() => t && Zn(
|
|
1695
1696
|
/* @__PURE__ */ N(te, { children: [
|
|
1696
|
-
b === !0 ? B && /* @__PURE__ */ l(
|
|
1697
|
+
b === !0 ? B && /* @__PURE__ */ l(kn, { style: { position: "absolute", top: 0, height: "10px", zIndex: 4 } }) : /* @__PURE__ */ l(te, {}),
|
|
1697
1698
|
/* @__PURE__ */ N(ae, { className: "sideToolsContainer", children: [
|
|
1698
1699
|
/* @__PURE__ */ l(Ar, { sceneModes: K, baseMaps: V, locale: q }),
|
|
1699
1700
|
/* @__PURE__ */ l(xr, { onClick: () => v(!m) })
|
|
@@ -1706,7 +1707,7 @@ const sn = Ie(null), Vr = sn.Provider, le = () => {
|
|
|
1706
1707
|
] }),
|
|
1707
1708
|
document.querySelector(".cesium-viewer")
|
|
1708
1709
|
), [V, q, t, o, K, d, C, m, B]);
|
|
1709
|
-
return /* @__PURE__ */ l(
|
|
1710
|
+
return /* @__PURE__ */ l(Jn, { className: "viewer", full: !0, ref: n, ...S, children: /* @__PURE__ */ N(Vr, { value: t, children: [
|
|
1710
1711
|
/* @__PURE__ */ l(
|
|
1711
1712
|
Rr,
|
|
1712
1713
|
{
|
|
@@ -1730,13 +1731,13 @@ const sn = Ie(null), Vr = sn.Provider, le = () => {
|
|
|
1730
1731
|
style: _(
|
|
1731
1732
|
c.x,
|
|
1732
1733
|
c.y,
|
|
1733
|
-
((Q = e.imageryContextMenuSize) == null ? void 0 : Q.width) ??
|
|
1734
|
-
((ie = e.imageryContextMenuSize) == null ? void 0 : ie.height) ??
|
|
1734
|
+
((Q = e.imageryContextMenuSize) == null ? void 0 : Q.width) ?? Mt,
|
|
1735
|
+
((ie = e.imageryContextMenuSize) == null ? void 0 : ie.height) ?? St,
|
|
1735
1736
|
((ge = e.imageryContextMenuSize) == null ? void 0 : ge.dynamicHeightIncrement) ?? Gr
|
|
1736
1737
|
),
|
|
1737
1738
|
size: e.imageryContextMenuSize ?? {
|
|
1738
|
-
height:
|
|
1739
|
-
width:
|
|
1739
|
+
height: St,
|
|
1740
|
+
width: Mt
|
|
1740
1741
|
},
|
|
1741
1742
|
handleClose: () => {
|
|
1742
1743
|
a(!s);
|
|
@@ -1747,7 +1748,7 @@ const sn = Ie(null), Vr = sn.Provider, le = () => {
|
|
|
1747
1748
|
}, zr = 0, gs = (e) => {
|
|
1748
1749
|
const n = le();
|
|
1749
1750
|
return /* @__PURE__ */ l(
|
|
1750
|
-
|
|
1751
|
+
Qn,
|
|
1751
1752
|
{
|
|
1752
1753
|
...e,
|
|
1753
1754
|
onReady: (t) => {
|
|
@@ -1757,52 +1758,52 @@ const sn = Ie(null), Vr = sn.Provider, le = () => {
|
|
|
1757
1758
|
const o = Oe.fromCartesian(t.boundingSphere.center), r = e.heightFromGround ?? zr;
|
|
1758
1759
|
if (r) {
|
|
1759
1760
|
const d = pe.fromRadians(o.longitude, o.latitude, o.height), u = pe.fromRadians(o.longitude, o.latitude, o.height + r), h = pe.subtract(u, d, new pe());
|
|
1760
|
-
t.modelMatrix =
|
|
1761
|
+
t.modelMatrix = pi.fromTranslation(h);
|
|
1761
1762
|
}
|
|
1762
1763
|
}
|
|
1763
1764
|
}
|
|
1764
1765
|
);
|
|
1765
|
-
},
|
|
1766
|
-
Math.abs(e[0])
|
|
1767
|
-
},
|
|
1766
|
+
}, He = 180, Pt = 1e-3, Dt = (e) => Math.abs(e) / e, At = (e) => {
|
|
1767
|
+
He - Math.abs(e[0]) < Pt && (e[0] = Dt(e[0]) * (He - 1)), He / 2 - Math.abs(e[1]) < Pt && (e[1] = Dt(e[1]) * (He / 2 - 1));
|
|
1768
|
+
}, It = (e) => {
|
|
1768
1769
|
switch (e.type) {
|
|
1769
1770
|
case "LineString":
|
|
1770
1771
|
e.coordinates.forEach((n) => {
|
|
1771
|
-
|
|
1772
|
+
At(n);
|
|
1772
1773
|
});
|
|
1773
1774
|
break;
|
|
1774
1775
|
case "Polygon":
|
|
1775
1776
|
e.coordinates.forEach((n) => {
|
|
1776
1777
|
n.forEach((t) => {
|
|
1777
|
-
|
|
1778
|
+
At(t);
|
|
1778
1779
|
});
|
|
1779
1780
|
});
|
|
1780
1781
|
break;
|
|
1781
1782
|
}
|
|
1782
1783
|
}, fs = (e) => {
|
|
1783
|
-
const { data: n, ...t } = e;
|
|
1784
|
-
return
|
|
1785
|
-
|
|
1786
|
-
}) :
|
|
1787
|
-
},
|
|
1784
|
+
const { data: n, ...t } = e, i = Pi(n);
|
|
1785
|
+
return i && (typeof i.features < "u" ? i.features.forEach((o) => {
|
|
1786
|
+
It(o.geometry);
|
|
1787
|
+
}) : It(i)), /* @__PURE__ */ l(ei, { data: i, ...t });
|
|
1788
|
+
}, je = (e) => {
|
|
1788
1789
|
const { meta: n, ...t } = e, i = le();
|
|
1789
|
-
return
|
|
1790
|
+
return cn(() => {
|
|
1790
1791
|
var o;
|
|
1791
1792
|
(o = i.layersManager) == null || o.addMetaToLayer(n, n.searchLayerPredicate);
|
|
1792
|
-
}, [n, i]), /* @__PURE__ */ l(
|
|
1793
|
+
}, [n, i]), /* @__PURE__ */ l(ti, { ...t });
|
|
1793
1794
|
}, ys = (e) => {
|
|
1794
|
-
const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new
|
|
1795
|
-
return /* @__PURE__ */ l(
|
|
1795
|
+
const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new nn(n, i) : new dt(n);
|
|
1796
|
+
return /* @__PURE__ */ l(je, { ...t, imageryProvider: o });
|
|
1796
1797
|
}, vs = (e) => {
|
|
1797
|
-
const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new
|
|
1798
|
-
return /* @__PURE__ */ l(
|
|
1798
|
+
const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new rn(n, i) : new ut(n);
|
|
1799
|
+
return /* @__PURE__ */ l(je, { ...t, imageryProvider: o });
|
|
1799
1800
|
}, Es = (e) => {
|
|
1800
|
-
const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new
|
|
1801
|
-
return /* @__PURE__ */ l(
|
|
1801
|
+
const { options: n, ...t } = e, i = le(), o = i.shouldOptimizedTileRequests ? new tn(n, i) : new ct(n);
|
|
1802
|
+
return /* @__PURE__ */ l(je, { ...t, imageryProvider: o });
|
|
1802
1803
|
}, Cs = (e) => {
|
|
1803
1804
|
const { options: n, ...t } = e;
|
|
1804
|
-
return /* @__PURE__ */ l(
|
|
1805
|
-
}, $r = (e) => /* @__PURE__ */ l(
|
|
1805
|
+
return /* @__PURE__ */ l(je, { ...t, imageryProvider: new gi(n) });
|
|
1806
|
+
}, $r = (e) => /* @__PURE__ */ l(ni, { ...e }), ws = (e) => /* @__PURE__ */ l(zt, { ...e }), Wr = (e) => /* @__PURE__ */ l(zt, { ...e }), Ur = (e) => /* @__PURE__ */ l(ii, { ...e }), Kr = (e) => /* @__PURE__ */ l(ri, { ...e }), jr = (e) => /* @__PURE__ */ l(oi, { ...e }), qr = (e) => /* @__PURE__ */ l(si, { ...e });
|
|
1806
1807
|
var Ce = function() {
|
|
1807
1808
|
var e = p.Ellipsoid.WGS84, n, t = p.Material.fromType(p.Material.ColorType);
|
|
1808
1809
|
function i(s, a = new p.Color(1, 1, 0, 0.5), y = new p.Color(1, 1, 1, 1)) {
|
|
@@ -2715,12 +2716,12 @@ const Yr = 2, Xr = (e, n) => {
|
|
|
2715
2716
|
case se.BOX: {
|
|
2716
2717
|
if (n.features.length !== Yr)
|
|
2717
2718
|
throw new Error(`${e} must have 2 points`);
|
|
2718
|
-
const t =
|
|
2719
|
+
const t = Et(n.features, (o) => {
|
|
2719
2720
|
var r;
|
|
2720
|
-
return ((r = o.properties) == null ? void 0 : r.type) ===
|
|
2721
|
-
}), i =
|
|
2721
|
+
return ((r = o.properties) == null ? void 0 : r.type) === st.BOTTOM_LEFT;
|
|
2722
|
+
}), i = Et(n.features, (o) => {
|
|
2722
2723
|
var r;
|
|
2723
|
-
return ((r = o.properties) == null ? void 0 : r.type) ===
|
|
2724
|
+
return ((r = o.properties) == null ? void 0 : r.type) === st.TOP_RIGHT;
|
|
2724
2725
|
});
|
|
2725
2726
|
if (i && t) {
|
|
2726
2727
|
if (t.geometry.coordinates[0] === i.geometry.coordinates[0] && t.geometry.coordinates[1] === i.geometry.coordinates[1])
|
|
@@ -2751,19 +2752,19 @@ const Yr = 2, Xr = (e, n) => {
|
|
|
2751
2752
|
}
|
|
2752
2753
|
};
|
|
2753
2754
|
}, Jr = (e) => {
|
|
2754
|
-
const n =
|
|
2755
|
+
const n = Ut.lineString([
|
|
2755
2756
|
[ce.toDegrees(e.west), ce.toDegrees(e.south)],
|
|
2756
2757
|
[ce.toDegrees(e.east), ce.toDegrees(e.north)]
|
|
2757
2758
|
]);
|
|
2758
|
-
return
|
|
2759
|
+
return jt(Kt(n));
|
|
2759
2760
|
}, Qr = (e) => {
|
|
2760
|
-
const n =
|
|
2761
|
+
const n = Ut.lineString([
|
|
2761
2762
|
[e.west, e.south],
|
|
2762
2763
|
[e.east, e.north]
|
|
2763
2764
|
]);
|
|
2764
|
-
return
|
|
2765
|
+
return jt(Kt(n)).geometry.coordinates[0].map((i) => pe.fromRadiansArray(i)[0]);
|
|
2765
2766
|
};
|
|
2766
|
-
class bs extends
|
|
2767
|
+
class bs extends it {
|
|
2767
2768
|
}
|
|
2768
2769
|
const Ts = (e) => {
|
|
2769
2770
|
const { drawState: n, drawingMaterial: t, drawingVertexColor: i, material: o, hollow: r, outlineWidth: d } = e, u = le(), [h, E] = A();
|
|
@@ -2814,7 +2815,7 @@ const Ts = (e) => {
|
|
|
2814
2815
|
case se.BOX:
|
|
2815
2816
|
return /* @__PURE__ */ l(Kr, { coordinates: b, material: o ?? t });
|
|
2816
2817
|
case se.POLYGON:
|
|
2817
|
-
return /* @__PURE__ */ l(Ur, { hierarchy: new
|
|
2818
|
+
return /* @__PURE__ */ l(Ur, { hierarchy: new fi(b), material: o ?? t });
|
|
2818
2819
|
default:
|
|
2819
2820
|
return /* @__PURE__ */ l(te, {});
|
|
2820
2821
|
}
|
|
@@ -2846,11 +2847,11 @@ const Ts = (e) => {
|
|
|
2846
2847
|
C(L)
|
|
2847
2848
|
] }, L.id)) });
|
|
2848
2849
|
};
|
|
2849
|
-
class _s extends
|
|
2850
|
+
class _s extends yi {
|
|
2850
2851
|
}
|
|
2851
|
-
class Ls extends
|
|
2852
|
+
class Ls extends vi {
|
|
2852
2853
|
}
|
|
2853
|
-
class Ss extends
|
|
2854
|
+
class Ss extends Ei {
|
|
2854
2855
|
}
|
|
2855
2856
|
class Ms extends Ee {
|
|
2856
2857
|
}
|
|
@@ -2858,26 +2859,26 @@ class Ps extends pe {
|
|
|
2858
2859
|
}
|
|
2859
2860
|
class Ds extends Oe {
|
|
2860
2861
|
}
|
|
2861
|
-
class As extends
|
|
2862
|
+
class As extends Ci {
|
|
2862
2863
|
}
|
|
2863
|
-
class Is extends
|
|
2864
|
+
class Is extends $t {
|
|
2864
2865
|
}
|
|
2865
|
-
class xs extends
|
|
2866
|
+
class xs extends wi {
|
|
2866
2867
|
}
|
|
2867
2868
|
class ks extends Se {
|
|
2868
2869
|
}
|
|
2869
|
-
class Os extends
|
|
2870
|
+
class Os extends bi {
|
|
2870
2871
|
}
|
|
2871
|
-
class Rs extends
|
|
2872
|
+
class Rs extends Ti {
|
|
2872
2873
|
}
|
|
2873
|
-
class Ns extends
|
|
2874
|
+
class Ns extends _i {
|
|
2874
2875
|
}
|
|
2875
|
-
const Bs =
|
|
2876
|
+
const Bs = rt, Fs = Wt, Hs = (e) => {
|
|
2876
2877
|
const n = le();
|
|
2877
2878
|
return I(() => {
|
|
2878
|
-
n.extend(
|
|
2879
|
+
n.extend(Li);
|
|
2879
2880
|
}, [n]), /* @__PURE__ */ l(te, {});
|
|
2880
|
-
}, eo = -25,
|
|
2881
|
+
}, eo = -25, xt = 2, Gs = (e) => {
|
|
2881
2882
|
const n = le(), t = (r, d = ",") => r.slice(r.indexOf(`
|
|
2882
2883
|
`) + 1).split(`
|
|
2883
2884
|
`).map((E) => {
|
|
@@ -2892,30 +2893,30 @@ const Bs = it, Fs = Ut, Hs = (e) => {
|
|
|
2892
2893
|
const d = new FileReader();
|
|
2893
2894
|
d.onload = (h) => {
|
|
2894
2895
|
var b;
|
|
2895
|
-
const E = (b = h.target) == null ? void 0 : b.result, C = t(E), L =
|
|
2896
|
+
const E = (b = h.target) == null ? void 0 : b.result, C = t(E), L = $t.WGS84;
|
|
2896
2897
|
console.log(`Loaded CSV content:
|
|
2897
|
-
`, E),
|
|
2898
|
+
`, E), Si(
|
|
2898
2899
|
n.terrainProvider,
|
|
2899
2900
|
C.map((P) => P.cartographic)
|
|
2900
2901
|
).then(
|
|
2901
2902
|
(P) => {
|
|
2902
2903
|
console.log(P), P = P.slice(0, P.length - 1), n.scene.globe.depthTestAgainstTerrain = !0, n.entities.suspendEvents(), n.entities.removeAll(), P.forEach((B, $) => {
|
|
2903
2904
|
n.entities.add({
|
|
2904
|
-
name: ($ +
|
|
2905
|
+
name: ($ + xt).toString(),
|
|
2905
2906
|
position: L.cartographicToCartesian(B),
|
|
2906
2907
|
billboard: {
|
|
2907
|
-
verticalOrigin:
|
|
2908
|
+
verticalOrigin: rt.BOTTOM,
|
|
2908
2909
|
scale: 0.7,
|
|
2909
2910
|
image: "assets/img/map-marker.gif"
|
|
2910
2911
|
},
|
|
2911
2912
|
label: {
|
|
2912
|
-
text: ($ +
|
|
2913
|
+
text: ($ + xt).toString(),
|
|
2913
2914
|
font: "14pt monospace",
|
|
2914
|
-
fillColor:
|
|
2915
|
-
style:
|
|
2915
|
+
fillColor: it.BLACK,
|
|
2916
|
+
style: Wt.FILL_AND_OUTLINE,
|
|
2916
2917
|
outlineWidth: 4,
|
|
2917
|
-
outlineColor:
|
|
2918
|
-
verticalOrigin:
|
|
2918
|
+
outlineColor: it.BLACK,
|
|
2919
|
+
verticalOrigin: rt.BOTTOM,
|
|
2919
2920
|
pixelOffset: new Ee(0, eo)
|
|
2920
2921
|
},
|
|
2921
2922
|
description: `
|
|
@@ -3046,7 +3047,7 @@ const to = 38, no = 40, io = 13, ro = 14, oo = 27, so = 9, ao = 10, lo = 100, co
|
|
|
3046
3047
|
if (i && g.length && T.length > 2 && w.length) {
|
|
3047
3048
|
for (let D = 0; D < Math.max(_.length, T.length); ++D)
|
|
3048
3049
|
if (_[D] !== T[D]) {
|
|
3049
|
-
if (D >= 2 && T[D - 1] === w && g.indexOf(T[D - 2]) === -1 && g.indexOf(T[D]) !== -1 && !
|
|
3050
|
+
if (D >= 2 && T[D - 1] === w && g.indexOf(T[D - 2]) === -1 && g.indexOf(T[D]) !== -1 && !ot(h(T.substring(0, D - 2), M - 3, v))) {
|
|
3050
3051
|
const U = `${T.slice(0, D - 1)}${T.slice(D, D + 1)}${T.slice(D - 1, D)}${T.slice(D + 1)}`;
|
|
3051
3052
|
return q(D + 1), u.current !== null && (u.current.value = U), S || H({
|
|
3052
3053
|
...r,
|
|
@@ -3248,9 +3249,9 @@ const to = 38, no = 40, io = 13, ro = 14, oo = 27, so = 9, ao = 10, lo = 100, co
|
|
|
3248
3249
|
regex: ".",
|
|
3249
3250
|
spacer: ""
|
|
3250
3251
|
}), /* @__PURE__ */ l(co, { ...n });
|
|
3251
|
-
},
|
|
3252
|
+
}, pt = {
|
|
3252
3253
|
formatFileModDate: (e, n) => {
|
|
3253
|
-
const t =
|
|
3254
|
+
const t = qt.getModDate(n);
|
|
3254
3255
|
return t ? e.formatDate(t, {
|
|
3255
3256
|
dateStyle: "short",
|
|
3256
3257
|
timeStyle: "short"
|
|
@@ -3267,10 +3268,10 @@ const to = 38, no = 40, io = 13, ro = 14, oo = 27, so = 9, ao = 10, lo = 100, co
|
|
|
3267
3268
|
}
|
|
3268
3269
|
}, ho = {
|
|
3269
3270
|
locale: de.EN,
|
|
3270
|
-
formatters: { ...
|
|
3271
|
+
formatters: { ...pt }
|
|
3271
3272
|
}, mo = {
|
|
3272
3273
|
locale: de.RU,
|
|
3273
|
-
formatters: { ...
|
|
3274
|
+
formatters: { ...pt },
|
|
3274
3275
|
messages: {
|
|
3275
3276
|
"chonky.toolbar.searchPlaceholder": "Поиск",
|
|
3276
3277
|
"chonky.toolbar.visibleFileCount": `{fileCount, plural,
|
|
@@ -3310,7 +3311,7 @@ const to = 38, no = 40, io = 13, ro = 14, oo = 27, so = 9, ao = 10, lo = 100, co
|
|
|
3310
3311
|
}
|
|
3311
3312
|
}, po = {
|
|
3312
3313
|
locale: de.HE,
|
|
3313
|
-
formatters: { ...
|
|
3314
|
+
formatters: { ...pt },
|
|
3314
3315
|
messages: {
|
|
3315
3316
|
"chonky.toolbar.searchPlaceholder": "חיפוש",
|
|
3316
3317
|
"chonky.toolbar.visibleFileCount": `{fileCount, plural,
|
|
@@ -3352,7 +3353,7 @@ const to = 38, no = 40, io = 13, ro = 14, oo = 27, so = 9, ao = 10, lo = 100, co
|
|
|
3352
3353
|
[de.RU]: mo,
|
|
3353
3354
|
[de.HE]: po
|
|
3354
3355
|
};
|
|
3355
|
-
class zs extends
|
|
3356
|
+
class zs extends qt {
|
|
3356
3357
|
}
|
|
3357
3358
|
const $s = G, fo = {
|
|
3358
3359
|
listView: G.EnableListView.id,
|
|
@@ -3387,7 +3388,7 @@ const Ws = ve.memo(
|
|
|
3387
3388
|
}
|
|
3388
3389
|
}
|
|
3389
3390
|
})();
|
|
3390
|
-
const L = (V) => V.replace(/([A-Z])/g, (ne) => "-" + ne.toLowerCase()), b =
|
|
3391
|
+
const L = (V) => V.replace(/([A-Z])/g, (ne) => "-" + ne.toLowerCase()), b = We(() => e !== void 0 ? Object.keys(e).reduce((ne, s) => {
|
|
3391
3392
|
const a = e[s];
|
|
3392
3393
|
return s = s.startsWith("--") ? s : `--fp-theme-${L(s)}`, ne[s] = a, ne;
|
|
3393
3394
|
}, {}) : {}, [e]), [P, B] = A(!1), [$, q] = A(), [H, Y] = A(!1), [K, x] = A(), [W, O] = A();
|
|
@@ -3425,10 +3426,10 @@ const Ws = ve.memo(
|
|
|
3425
3426
|
);
|
|
3426
3427
|
export {
|
|
3427
3428
|
Vs as Autocomplete,
|
|
3428
|
-
|
|
3429
|
+
st as BboxCorner,
|
|
3429
3430
|
ae as Box,
|
|
3430
|
-
|
|
3431
|
-
|
|
3431
|
+
lt as COORDINATES_MERCATOR_FRACTION_DIGITS,
|
|
3432
|
+
at as COORDINATES_WGS_FRACTION_DIGITS,
|
|
3432
3433
|
gs as Cesium3DTileset,
|
|
3433
3434
|
As as CesiumBoundingSphere,
|
|
3434
3435
|
Ms as CesiumCartesian2,
|
|
@@ -3447,7 +3448,7 @@ export {
|
|
|
3447
3448
|
Wr as CesiumEntityStaticDescription,
|
|
3448
3449
|
xs as CesiumGeographicTilingScheme,
|
|
3449
3450
|
fs as CesiumGeojsonLayer,
|
|
3450
|
-
|
|
3451
|
+
je as CesiumImageryLayer,
|
|
3451
3452
|
Fs as CesiumLabelStyle,
|
|
3452
3453
|
ps as CesiumMap,
|
|
3453
3454
|
Ys as CesiumMath,
|
|
@@ -3487,13 +3488,13 @@ export {
|
|
|
3487
3488
|
ss as TimeRangeInput,
|
|
3488
3489
|
Lr as ZoomLevelTrackerTool,
|
|
3489
3490
|
Xs as cesiumSampleTerrainMostDetailed,
|
|
3490
|
-
|
|
3491
|
-
|
|
3491
|
+
pt as defaultFormatters,
|
|
3492
|
+
Xe as isDateRange,
|
|
3492
3493
|
Bi as mapMcToMuiTheme,
|
|
3493
3494
|
Zr as polygonToGeoJSON,
|
|
3494
3495
|
Jr as rectangleToGeoJSON,
|
|
3495
3496
|
Qr as rectangleToPositions,
|
|
3496
3497
|
le as useCesiumMap,
|
|
3497
|
-
|
|
3498
|
+
Yt as useMappedMuiTheme,
|
|
3498
3499
|
js as useMediaQuery
|
|
3499
3500
|
};
|