@kystverket/styrbord-kart 0.0.21 → 0.0.22
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/style.js +903 -892
- package/dist/style.umd.cjs +8 -8
- package/package.json +1 -1
package/dist/style.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
var Yl = Object.defineProperty;
|
|
3
3
|
var Wl = (n, r, e) => r in n ? Yl(n, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[r] = e;
|
|
4
|
-
var
|
|
4
|
+
var V = (n, r, e) => Wl(n, typeof r != "symbol" ? r + "" : r, e);
|
|
5
5
|
import * as te from "react";
|
|
6
|
-
import S, { useLayoutEffect as mo, cloneElement as go, createRef as Ht, Component as Oe, useRef as
|
|
6
|
+
import S, { useLayoutEffect as mo, cloneElement as go, createRef as Ht, Component as Oe, useRef as G, useEffect as Z, useCallback as q, createElement as Hl, createContext as It, forwardRef as Ul, useState as ne, useImperativeHandle as yo, useContext as $e, useMemo as be, useId as vo } from "react";
|
|
7
7
|
import { Card as bo, Dialog as ko, DialogBlock as Ma, Heading as Nn, Spinner as wo, Paragraph as Mt, Checkbox as Vl, Button as zl, Tabs as fi, Table as Mr, Tooltip as Gl, Textfield as _o, Tag as $l, ValidationMessage as ca, Label as Kl, Field as ql } from "@digdir/designsystemet-react";
|
|
8
8
|
import { useTranslation as So, NamespaceProvider as Ql } from "@kystverket/sprak-react";
|
|
9
9
|
import * as Xl from "react-dom";
|
|
@@ -70,7 +70,7 @@ function oc() {
|
|
|
70
70
|
return "StrictMode";
|
|
71
71
|
case _:
|
|
72
72
|
return "Suspense";
|
|
73
|
-
case
|
|
73
|
+
case E:
|
|
74
74
|
return "SuspenseList";
|
|
75
75
|
case L:
|
|
76
76
|
return "Activity";
|
|
@@ -111,8 +111,8 @@ function oc() {
|
|
|
111
111
|
}
|
|
112
112
|
if (R) {
|
|
113
113
|
R = console;
|
|
114
|
-
var
|
|
115
|
-
return
|
|
114
|
+
var $ = R.error, Q = typeof Symbol == "function" && Symbol.toStringTag && m[Symbol.toStringTag] || m.constructor.name || "Object";
|
|
115
|
+
return $.call(
|
|
116
116
|
R,
|
|
117
117
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
118
118
|
Q
|
|
@@ -131,7 +131,7 @@ function oc() {
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
function a() {
|
|
134
|
-
var m =
|
|
134
|
+
var m = T.A;
|
|
135
135
|
return m === null ? null : m.getOwner();
|
|
136
136
|
}
|
|
137
137
|
function i() {
|
|
@@ -145,14 +145,14 @@ function oc() {
|
|
|
145
145
|
return m.key !== void 0;
|
|
146
146
|
}
|
|
147
147
|
function o(m, R) {
|
|
148
|
-
function
|
|
148
|
+
function $() {
|
|
149
149
|
B || (B = !0, console.error(
|
|
150
150
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
151
151
|
R
|
|
152
152
|
));
|
|
153
153
|
}
|
|
154
|
-
|
|
155
|
-
get:
|
|
154
|
+
$.isReactWarning = !0, Object.defineProperty(m, "key", {
|
|
155
|
+
get: $,
|
|
156
156
|
configurable: !0
|
|
157
157
|
});
|
|
158
158
|
}
|
|
@@ -162,13 +162,13 @@ function oc() {
|
|
|
162
162
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
163
163
|
)), m = this.props.ref, m !== void 0 ? m : null;
|
|
164
164
|
}
|
|
165
|
-
function c(m, R,
|
|
166
|
-
var X =
|
|
165
|
+
function c(m, R, $, Q, pe, Ae) {
|
|
166
|
+
var X = $.ref;
|
|
167
167
|
return m = {
|
|
168
168
|
$$typeof: h,
|
|
169
169
|
type: m,
|
|
170
170
|
key: R,
|
|
171
|
-
props:
|
|
171
|
+
props: $,
|
|
172
172
|
_owner: Q
|
|
173
173
|
}, (X !== void 0 ? X : null) !== null ? Object.defineProperty(m, "ref", {
|
|
174
174
|
enumerable: !1,
|
|
@@ -187,7 +187,7 @@ function oc() {
|
|
|
187
187
|
configurable: !1,
|
|
188
188
|
enumerable: !1,
|
|
189
189
|
writable: !0,
|
|
190
|
-
value:
|
|
190
|
+
value: pe
|
|
191
191
|
}), Object.defineProperty(m, "_debugTask", {
|
|
192
192
|
configurable: !1,
|
|
193
193
|
enumerable: !1,
|
|
@@ -195,7 +195,7 @@ function oc() {
|
|
|
195
195
|
value: Ae
|
|
196
196
|
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
197
197
|
}
|
|
198
|
-
function u(m, R,
|
|
198
|
+
function u(m, R, $, Q, pe, Ae) {
|
|
199
199
|
var X = R.children;
|
|
200
200
|
if (X !== void 0)
|
|
201
201
|
if (Q)
|
|
@@ -210,10 +210,10 @@ function oc() {
|
|
|
210
210
|
else d(X);
|
|
211
211
|
if (O.call(R, "key")) {
|
|
212
212
|
X = n(m);
|
|
213
|
-
var
|
|
213
|
+
var ye = Object.keys(R).filter(function(Rt) {
|
|
214
214
|
return Rt !== "key";
|
|
215
215
|
});
|
|
216
|
-
Q = 0 <
|
|
216
|
+
Q = 0 < ye.length ? "{key: someKey, " + ye.join(": ..., ") + ": ...}" : "{key: someKey}", J[X + Q] || (ye = 0 < ye.length ? "{" + ye.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
217
217
|
`A props object containing a "key" prop is being spread into JSX:
|
|
218
218
|
let props = %s;
|
|
219
219
|
<%s {...props} />
|
|
@@ -222,24 +222,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
222
222
|
<%s key={someKey} {...props} />`,
|
|
223
223
|
Q,
|
|
224
224
|
X,
|
|
225
|
-
|
|
225
|
+
ye,
|
|
226
226
|
X
|
|
227
227
|
), J[X + Q] = !0);
|
|
228
228
|
}
|
|
229
|
-
if (X = null,
|
|
230
|
-
|
|
231
|
-
for (var
|
|
232
|
-
|
|
233
|
-
} else
|
|
229
|
+
if (X = null, $ !== void 0 && (e($), X = "" + $), s(R) && (e(R.key), X = "" + R.key), "key" in R) {
|
|
230
|
+
$ = {};
|
|
231
|
+
for (var Ue in R)
|
|
232
|
+
Ue !== "key" && ($[Ue] = R[Ue]);
|
|
233
|
+
} else $ = R;
|
|
234
234
|
return X && o(
|
|
235
|
-
|
|
235
|
+
$,
|
|
236
236
|
typeof m == "function" ? m.displayName || m.name || "Unknown" : m
|
|
237
237
|
), c(
|
|
238
238
|
m,
|
|
239
239
|
X,
|
|
240
|
-
|
|
240
|
+
$,
|
|
241
241
|
a(),
|
|
242
|
-
|
|
242
|
+
pe,
|
|
243
243
|
Ae
|
|
244
244
|
);
|
|
245
245
|
}
|
|
@@ -249,7 +249,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
249
249
|
function p(m) {
|
|
250
250
|
return typeof m == "object" && m !== null && m.$$typeof === h;
|
|
251
251
|
}
|
|
252
|
-
var f = S, h = Symbol.for("react.transitional.element"), y = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), D = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"),
|
|
252
|
+
var f = S, h = Symbol.for("react.transitional.element"), y = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), D = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), T = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, O = Object.prototype.hasOwnProperty, F = Array.isArray, j = console.createTask ? console.createTask : function() {
|
|
253
253
|
return null;
|
|
254
254
|
};
|
|
255
255
|
f = {
|
|
@@ -257,29 +257,29 @@ React keys must be passed directly to JSX without using spread:
|
|
|
257
257
|
return m();
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
|
-
var B, Y = {},
|
|
260
|
+
var B, Y = {}, M = f.react_stack_bottom_frame.bind(
|
|
261
261
|
f,
|
|
262
262
|
i
|
|
263
|
-
)(),
|
|
264
|
-
Nr.Fragment = g, Nr.jsx = function(m, R,
|
|
265
|
-
var Q = 1e4 >
|
|
263
|
+
)(), z = j(t(i)), J = {};
|
|
264
|
+
Nr.Fragment = g, Nr.jsx = function(m, R, $) {
|
|
265
|
+
var Q = 1e4 > T.recentlyCreatedOwnerStacks++;
|
|
266
266
|
return u(
|
|
267
267
|
m,
|
|
268
268
|
R,
|
|
269
|
-
|
|
269
|
+
$,
|
|
270
270
|
!1,
|
|
271
|
-
Q ? Error("react-stack-top-frame") :
|
|
272
|
-
Q ? j(t(m)) :
|
|
271
|
+
Q ? Error("react-stack-top-frame") : M,
|
|
272
|
+
Q ? j(t(m)) : z
|
|
273
273
|
);
|
|
274
|
-
}, Nr.jsxs = function(m, R,
|
|
275
|
-
var Q = 1e4 >
|
|
274
|
+
}, Nr.jsxs = function(m, R, $) {
|
|
275
|
+
var Q = 1e4 > T.recentlyCreatedOwnerStacks++;
|
|
276
276
|
return u(
|
|
277
277
|
m,
|
|
278
278
|
R,
|
|
279
|
-
|
|
279
|
+
$,
|
|
280
280
|
!0,
|
|
281
|
-
Q ? Error("react-stack-top-frame") :
|
|
282
|
-
Q ? j(t(m)) :
|
|
281
|
+
Q ? Error("react-stack-top-frame") : M,
|
|
282
|
+
Q ? j(t(m)) : z
|
|
283
283
|
);
|
|
284
284
|
};
|
|
285
285
|
})()), Nr;
|
|
@@ -288,7 +288,7 @@ var zi;
|
|
|
288
288
|
function lc() {
|
|
289
289
|
return zi || (zi = 1, process.env.NODE_ENV === "production" ? ln.exports = sc() : ln.exports = oc()), ln.exports;
|
|
290
290
|
}
|
|
291
|
-
var
|
|
291
|
+
var P = lc();
|
|
292
292
|
function Do(n) {
|
|
293
293
|
var r, e, t = "";
|
|
294
294
|
if (typeof n == "string" || typeof n == "number") t += n;
|
|
@@ -1728,7 +1728,7 @@ function mu(n, r) {
|
|
|
1728
1728
|
function st(n, r) {
|
|
1729
1729
|
return K(n, r == null ? void 0 : r.in).getMinutes();
|
|
1730
1730
|
}
|
|
1731
|
-
function
|
|
1731
|
+
function Ke(n, r) {
|
|
1732
1732
|
return K(n, r == null ? void 0 : r.in).getMonth();
|
|
1733
1733
|
}
|
|
1734
1734
|
function Yt(n) {
|
|
@@ -1765,7 +1765,7 @@ function vu(n) {
|
|
|
1765
1765
|
const bu = 10;
|
|
1766
1766
|
class Ro {
|
|
1767
1767
|
constructor() {
|
|
1768
|
-
|
|
1768
|
+
V(this, "subPriority", 0);
|
|
1769
1769
|
}
|
|
1770
1770
|
validate(r, e) {
|
|
1771
1771
|
return !0;
|
|
@@ -1785,8 +1785,8 @@ class ku extends Ro {
|
|
|
1785
1785
|
class wu extends Ro {
|
|
1786
1786
|
constructor(e, t) {
|
|
1787
1787
|
super();
|
|
1788
|
-
|
|
1789
|
-
|
|
1788
|
+
V(this, "priority", bu);
|
|
1789
|
+
V(this, "subPriority", -1);
|
|
1790
1790
|
this.context = e || ((a) => fe(t, a));
|
|
1791
1791
|
}
|
|
1792
1792
|
set(e, t) {
|
|
@@ -1814,8 +1814,8 @@ class ue {
|
|
|
1814
1814
|
class _u extends ue {
|
|
1815
1815
|
constructor() {
|
|
1816
1816
|
super(...arguments);
|
|
1817
|
-
|
|
1818
|
-
|
|
1817
|
+
V(this, "priority", 140);
|
|
1818
|
+
V(this, "incompatibleTokens", ["R", "u", "t", "T"]);
|
|
1819
1819
|
}
|
|
1820
1820
|
parse(e, t, a) {
|
|
1821
1821
|
switch (t) {
|
|
@@ -1837,7 +1837,7 @@ class _u extends ue {
|
|
|
1837
1837
|
return t.era = a, e.setFullYear(a, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
1838
1838
|
}
|
|
1839
1839
|
}
|
|
1840
|
-
const
|
|
1840
|
+
const ke = {
|
|
1841
1841
|
month: /^(1[0-2]|0?\d)/,
|
|
1842
1842
|
// 0 to 12
|
|
1843
1843
|
date: /^(3[0-1]|[0-2]?\d)/,
|
|
@@ -1882,13 +1882,13 @@ const be = {
|
|
|
1882
1882
|
extended: /^([+-])(\d{2}):(\d{2})|Z/,
|
|
1883
1883
|
extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
|
|
1884
1884
|
};
|
|
1885
|
-
function
|
|
1885
|
+
function we(n, r) {
|
|
1886
1886
|
return n && {
|
|
1887
1887
|
value: r(n.value),
|
|
1888
1888
|
rest: n.rest
|
|
1889
1889
|
};
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1891
|
+
function me(n, r) {
|
|
1892
1892
|
const e = r.match(n);
|
|
1893
1893
|
return e ? {
|
|
1894
1894
|
value: parseInt(e[0], 10),
|
|
@@ -1911,34 +1911,34 @@ function mt(n, r) {
|
|
|
1911
1911
|
};
|
|
1912
1912
|
}
|
|
1913
1913
|
function Fo(n) {
|
|
1914
|
-
return
|
|
1914
|
+
return me(ke.anyDigitsSigned, n);
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1916
|
+
function ge(n, r) {
|
|
1917
1917
|
switch (n) {
|
|
1918
1918
|
case 1:
|
|
1919
|
-
return
|
|
1919
|
+
return me(ke.singleDigit, r);
|
|
1920
1920
|
case 2:
|
|
1921
|
-
return
|
|
1921
|
+
return me(ke.twoDigits, r);
|
|
1922
1922
|
case 3:
|
|
1923
|
-
return
|
|
1923
|
+
return me(ke.threeDigits, r);
|
|
1924
1924
|
case 4:
|
|
1925
|
-
return
|
|
1925
|
+
return me(ke.fourDigits, r);
|
|
1926
1926
|
default:
|
|
1927
|
-
return
|
|
1927
|
+
return me(new RegExp("^\\d{1," + n + "}"), r);
|
|
1928
1928
|
}
|
|
1929
1929
|
}
|
|
1930
1930
|
function Wn(n, r) {
|
|
1931
1931
|
switch (n) {
|
|
1932
1932
|
case 1:
|
|
1933
|
-
return
|
|
1933
|
+
return me(ke.singleDigitSigned, r);
|
|
1934
1934
|
case 2:
|
|
1935
|
-
return
|
|
1935
|
+
return me(ke.twoDigitsSigned, r);
|
|
1936
1936
|
case 3:
|
|
1937
|
-
return
|
|
1937
|
+
return me(ke.threeDigitsSigned, r);
|
|
1938
1938
|
case 4:
|
|
1939
|
-
return
|
|
1939
|
+
return me(ke.fourDigitsSigned, r);
|
|
1940
1940
|
default:
|
|
1941
|
-
return
|
|
1941
|
+
return me(new RegExp("^-?\\d{1," + n + "}"), r);
|
|
1942
1942
|
}
|
|
1943
1943
|
}
|
|
1944
1944
|
function gi(n) {
|
|
@@ -1975,8 +1975,8 @@ function Ao(n) {
|
|
|
1975
1975
|
class Su extends ue {
|
|
1976
1976
|
constructor() {
|
|
1977
1977
|
super(...arguments);
|
|
1978
|
-
|
|
1979
|
-
|
|
1978
|
+
V(this, "priority", 130);
|
|
1979
|
+
V(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
|
|
1980
1980
|
}
|
|
1981
1981
|
parse(e, t, a) {
|
|
1982
1982
|
const i = (s) => ({
|
|
@@ -1985,16 +1985,16 @@ class Su extends ue {
|
|
|
1985
1985
|
});
|
|
1986
1986
|
switch (t) {
|
|
1987
1987
|
case "y":
|
|
1988
|
-
return
|
|
1988
|
+
return we(ge(4, e), i);
|
|
1989
1989
|
case "yo":
|
|
1990
|
-
return
|
|
1990
|
+
return we(
|
|
1991
1991
|
a.ordinalNumber(e, {
|
|
1992
1992
|
unit: "year"
|
|
1993
1993
|
}),
|
|
1994
1994
|
i
|
|
1995
1995
|
);
|
|
1996
1996
|
default:
|
|
1997
|
-
return
|
|
1997
|
+
return we(ge(t.length, e), i);
|
|
1998
1998
|
}
|
|
1999
1999
|
}
|
|
2000
2000
|
validate(e, t) {
|
|
@@ -2016,8 +2016,8 @@ class Su extends ue {
|
|
|
2016
2016
|
class Du extends ue {
|
|
2017
2017
|
constructor() {
|
|
2018
2018
|
super(...arguments);
|
|
2019
|
-
|
|
2020
|
-
|
|
2019
|
+
V(this, "priority", 130);
|
|
2020
|
+
V(this, "incompatibleTokens", [
|
|
2021
2021
|
"y",
|
|
2022
2022
|
"R",
|
|
2023
2023
|
"u",
|
|
@@ -2040,16 +2040,16 @@ class Du extends ue {
|
|
|
2040
2040
|
});
|
|
2041
2041
|
switch (t) {
|
|
2042
2042
|
case "Y":
|
|
2043
|
-
return
|
|
2043
|
+
return we(ge(4, e), i);
|
|
2044
2044
|
case "Yo":
|
|
2045
|
-
return
|
|
2045
|
+
return we(
|
|
2046
2046
|
a.ordinalNumber(e, {
|
|
2047
2047
|
unit: "year"
|
|
2048
2048
|
}),
|
|
2049
2049
|
i
|
|
2050
2050
|
);
|
|
2051
2051
|
default:
|
|
2052
|
-
return
|
|
2052
|
+
return we(ge(t.length, e), i);
|
|
2053
2053
|
}
|
|
2054
2054
|
}
|
|
2055
2055
|
validate(e, t) {
|
|
@@ -2075,8 +2075,8 @@ class Du extends ue {
|
|
|
2075
2075
|
class xu extends ue {
|
|
2076
2076
|
constructor() {
|
|
2077
2077
|
super(...arguments);
|
|
2078
|
-
|
|
2079
|
-
|
|
2078
|
+
V(this, "priority", 130);
|
|
2079
|
+
V(this, "incompatibleTokens", [
|
|
2080
2080
|
"G",
|
|
2081
2081
|
"y",
|
|
2082
2082
|
"Y",
|
|
@@ -2105,8 +2105,8 @@ class xu extends ue {
|
|
|
2105
2105
|
class Cu extends ue {
|
|
2106
2106
|
constructor() {
|
|
2107
2107
|
super(...arguments);
|
|
2108
|
-
|
|
2109
|
-
|
|
2108
|
+
V(this, "priority", 130);
|
|
2109
|
+
V(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
|
|
2110
2110
|
}
|
|
2111
2111
|
parse(e, t) {
|
|
2112
2112
|
return Wn(t === "u" ? 4 : t.length, e);
|
|
@@ -2118,8 +2118,8 @@ class Cu extends ue {
|
|
|
2118
2118
|
class Mu extends ue {
|
|
2119
2119
|
constructor() {
|
|
2120
2120
|
super(...arguments);
|
|
2121
|
-
|
|
2122
|
-
|
|
2121
|
+
V(this, "priority", 120);
|
|
2122
|
+
V(this, "incompatibleTokens", [
|
|
2123
2123
|
"Y",
|
|
2124
2124
|
"R",
|
|
2125
2125
|
"q",
|
|
@@ -2141,7 +2141,7 @@ class Mu extends ue {
|
|
|
2141
2141
|
// 1, 2, 3, 4
|
|
2142
2142
|
case "Q":
|
|
2143
2143
|
case "QQ":
|
|
2144
|
-
return
|
|
2144
|
+
return ge(t.length, e);
|
|
2145
2145
|
// 1st, 2nd, 3rd, 4th
|
|
2146
2146
|
case "Qo":
|
|
2147
2147
|
return a.ordinalNumber(e, { unit: "quarter" });
|
|
@@ -2185,8 +2185,8 @@ class Mu extends ue {
|
|
|
2185
2185
|
class Pu extends ue {
|
|
2186
2186
|
constructor() {
|
|
2187
2187
|
super(...arguments);
|
|
2188
|
-
|
|
2189
|
-
|
|
2188
|
+
V(this, "priority", 120);
|
|
2189
|
+
V(this, "incompatibleTokens", [
|
|
2190
2190
|
"Y",
|
|
2191
2191
|
"R",
|
|
2192
2192
|
"Q",
|
|
@@ -2208,7 +2208,7 @@ class Pu extends ue {
|
|
|
2208
2208
|
// 1, 2, 3, 4
|
|
2209
2209
|
case "q":
|
|
2210
2210
|
case "qq":
|
|
2211
|
-
return
|
|
2211
|
+
return ge(t.length, e);
|
|
2212
2212
|
// 1st, 2nd, 3rd, 4th
|
|
2213
2213
|
case "qo":
|
|
2214
2214
|
return a.ordinalNumber(e, { unit: "quarter" });
|
|
@@ -2252,7 +2252,7 @@ class Pu extends ue {
|
|
|
2252
2252
|
class Tu extends ue {
|
|
2253
2253
|
constructor() {
|
|
2254
2254
|
super(...arguments);
|
|
2255
|
-
|
|
2255
|
+
V(this, "incompatibleTokens", [
|
|
2256
2256
|
"Y",
|
|
2257
2257
|
"R",
|
|
2258
2258
|
"q",
|
|
@@ -2267,23 +2267,23 @@ class Tu extends ue {
|
|
|
2267
2267
|
"t",
|
|
2268
2268
|
"T"
|
|
2269
2269
|
]);
|
|
2270
|
-
|
|
2270
|
+
V(this, "priority", 110);
|
|
2271
2271
|
}
|
|
2272
2272
|
parse(e, t, a) {
|
|
2273
2273
|
const i = (s) => s - 1;
|
|
2274
2274
|
switch (t) {
|
|
2275
2275
|
// 1, 2, ..., 12
|
|
2276
2276
|
case "M":
|
|
2277
|
-
return
|
|
2278
|
-
|
|
2277
|
+
return we(
|
|
2278
|
+
me(ke.month, e),
|
|
2279
2279
|
i
|
|
2280
2280
|
);
|
|
2281
2281
|
// 01, 02, ..., 12
|
|
2282
2282
|
case "MM":
|
|
2283
|
-
return
|
|
2283
|
+
return we(ge(2, e), i);
|
|
2284
2284
|
// 1st, 2nd, ..., 12th
|
|
2285
2285
|
case "Mo":
|
|
2286
|
-
return
|
|
2286
|
+
return we(
|
|
2287
2287
|
a.ordinalNumber(e, {
|
|
2288
2288
|
unit: "month"
|
|
2289
2289
|
}),
|
|
@@ -2320,8 +2320,8 @@ class Tu extends ue {
|
|
|
2320
2320
|
class Eu extends ue {
|
|
2321
2321
|
constructor() {
|
|
2322
2322
|
super(...arguments);
|
|
2323
|
-
|
|
2324
|
-
|
|
2323
|
+
V(this, "priority", 110);
|
|
2324
|
+
V(this, "incompatibleTokens", [
|
|
2325
2325
|
"Y",
|
|
2326
2326
|
"R",
|
|
2327
2327
|
"q",
|
|
@@ -2342,16 +2342,16 @@ class Eu extends ue {
|
|
|
2342
2342
|
switch (t) {
|
|
2343
2343
|
// 1, 2, ..., 12
|
|
2344
2344
|
case "L":
|
|
2345
|
-
return
|
|
2346
|
-
|
|
2345
|
+
return we(
|
|
2346
|
+
me(ke.month, e),
|
|
2347
2347
|
i
|
|
2348
2348
|
);
|
|
2349
2349
|
// 01, 02, ..., 12
|
|
2350
2350
|
case "LL":
|
|
2351
|
-
return
|
|
2351
|
+
return we(ge(2, e), i);
|
|
2352
2352
|
// 1st, 2nd, ..., 12th
|
|
2353
2353
|
case "Lo":
|
|
2354
|
-
return
|
|
2354
|
+
return we(
|
|
2355
2355
|
a.ordinalNumber(e, {
|
|
2356
2356
|
unit: "month"
|
|
2357
2357
|
}),
|
|
@@ -2392,8 +2392,8 @@ function Lu(n, r, e) {
|
|
|
2392
2392
|
class Iu extends ue {
|
|
2393
2393
|
constructor() {
|
|
2394
2394
|
super(...arguments);
|
|
2395
|
-
|
|
2396
|
-
|
|
2395
|
+
V(this, "priority", 100);
|
|
2396
|
+
V(this, "incompatibleTokens", [
|
|
2397
2397
|
"y",
|
|
2398
2398
|
"R",
|
|
2399
2399
|
"u",
|
|
@@ -2412,11 +2412,11 @@ class Iu extends ue {
|
|
|
2412
2412
|
parse(e, t, a) {
|
|
2413
2413
|
switch (t) {
|
|
2414
2414
|
case "w":
|
|
2415
|
-
return
|
|
2415
|
+
return me(ke.week, e);
|
|
2416
2416
|
case "wo":
|
|
2417
2417
|
return a.ordinalNumber(e, { unit: "week" });
|
|
2418
2418
|
default:
|
|
2419
|
-
return
|
|
2419
|
+
return ge(t.length, e);
|
|
2420
2420
|
}
|
|
2421
2421
|
}
|
|
2422
2422
|
validate(e, t) {
|
|
@@ -2433,8 +2433,8 @@ function Ou(n, r, e) {
|
|
|
2433
2433
|
class Nu extends ue {
|
|
2434
2434
|
constructor() {
|
|
2435
2435
|
super(...arguments);
|
|
2436
|
-
|
|
2437
|
-
|
|
2436
|
+
V(this, "priority", 100);
|
|
2437
|
+
V(this, "incompatibleTokens", [
|
|
2438
2438
|
"y",
|
|
2439
2439
|
"Y",
|
|
2440
2440
|
"u",
|
|
@@ -2454,11 +2454,11 @@ class Nu extends ue {
|
|
|
2454
2454
|
parse(e, t, a) {
|
|
2455
2455
|
switch (t) {
|
|
2456
2456
|
case "I":
|
|
2457
|
-
return
|
|
2457
|
+
return me(ke.week, e);
|
|
2458
2458
|
case "Io":
|
|
2459
2459
|
return a.ordinalNumber(e, { unit: "week" });
|
|
2460
2460
|
default:
|
|
2461
|
-
return
|
|
2461
|
+
return ge(t.length, e);
|
|
2462
2462
|
}
|
|
2463
2463
|
}
|
|
2464
2464
|
validate(e, t) {
|
|
@@ -2485,9 +2485,9 @@ const Ru = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Fu = [
|
|
|
2485
2485
|
class ju extends ue {
|
|
2486
2486
|
constructor() {
|
|
2487
2487
|
super(...arguments);
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2488
|
+
V(this, "priority", 90);
|
|
2489
|
+
V(this, "subPriority", 1);
|
|
2490
|
+
V(this, "incompatibleTokens", [
|
|
2491
2491
|
"Y",
|
|
2492
2492
|
"R",
|
|
2493
2493
|
"q",
|
|
@@ -2505,11 +2505,11 @@ class ju extends ue {
|
|
|
2505
2505
|
parse(e, t, a) {
|
|
2506
2506
|
switch (t) {
|
|
2507
2507
|
case "d":
|
|
2508
|
-
return
|
|
2508
|
+
return me(ke.date, e);
|
|
2509
2509
|
case "do":
|
|
2510
2510
|
return a.ordinalNumber(e, { unit: "date" });
|
|
2511
2511
|
default:
|
|
2512
|
-
return
|
|
2512
|
+
return ge(t.length, e);
|
|
2513
2513
|
}
|
|
2514
2514
|
}
|
|
2515
2515
|
validate(e, t) {
|
|
@@ -2523,9 +2523,9 @@ class ju extends ue {
|
|
|
2523
2523
|
class Au extends ue {
|
|
2524
2524
|
constructor() {
|
|
2525
2525
|
super(...arguments);
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2526
|
+
V(this, "priority", 90);
|
|
2527
|
+
V(this, "subpriority", 1);
|
|
2528
|
+
V(this, "incompatibleTokens", [
|
|
2529
2529
|
"Y",
|
|
2530
2530
|
"R",
|
|
2531
2531
|
"q",
|
|
@@ -2547,11 +2547,11 @@ class Au extends ue {
|
|
|
2547
2547
|
switch (t) {
|
|
2548
2548
|
case "D":
|
|
2549
2549
|
case "DD":
|
|
2550
|
-
return
|
|
2550
|
+
return me(ke.dayOfYear, e);
|
|
2551
2551
|
case "Do":
|
|
2552
2552
|
return a.ordinalNumber(e, { unit: "date" });
|
|
2553
2553
|
default:
|
|
2554
|
-
return
|
|
2554
|
+
return ge(t.length, e);
|
|
2555
2555
|
}
|
|
2556
2556
|
}
|
|
2557
2557
|
validate(e, t) {
|
|
@@ -2570,8 +2570,8 @@ function yi(n, r, e) {
|
|
|
2570
2570
|
class Bu extends ue {
|
|
2571
2571
|
constructor() {
|
|
2572
2572
|
super(...arguments);
|
|
2573
|
-
|
|
2574
|
-
|
|
2573
|
+
V(this, "priority", 90);
|
|
2574
|
+
V(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
|
|
2575
2575
|
}
|
|
2576
2576
|
parse(e, t, a) {
|
|
2577
2577
|
switch (t) {
|
|
@@ -2611,8 +2611,8 @@ class Bu extends ue {
|
|
|
2611
2611
|
class Yu extends ue {
|
|
2612
2612
|
constructor() {
|
|
2613
2613
|
super(...arguments);
|
|
2614
|
-
|
|
2615
|
-
|
|
2614
|
+
V(this, "priority", 90);
|
|
2615
|
+
V(this, "incompatibleTokens", [
|
|
2616
2616
|
"y",
|
|
2617
2617
|
"R",
|
|
2618
2618
|
"u",
|
|
@@ -2639,10 +2639,10 @@ class Yu extends ue {
|
|
|
2639
2639
|
// 3
|
|
2640
2640
|
case "e":
|
|
2641
2641
|
case "ee":
|
|
2642
|
-
return
|
|
2642
|
+
return we(ge(t.length, e), s);
|
|
2643
2643
|
// 3rd
|
|
2644
2644
|
case "eo":
|
|
2645
|
-
return
|
|
2645
|
+
return we(
|
|
2646
2646
|
a.ordinalNumber(e, {
|
|
2647
2647
|
unit: "day"
|
|
2648
2648
|
}),
|
|
@@ -2682,8 +2682,8 @@ class Yu extends ue {
|
|
|
2682
2682
|
class Wu extends ue {
|
|
2683
2683
|
constructor() {
|
|
2684
2684
|
super(...arguments);
|
|
2685
|
-
|
|
2686
|
-
|
|
2685
|
+
V(this, "priority", 90);
|
|
2686
|
+
V(this, "incompatibleTokens", [
|
|
2687
2687
|
"y",
|
|
2688
2688
|
"R",
|
|
2689
2689
|
"u",
|
|
@@ -2710,10 +2710,10 @@ class Wu extends ue {
|
|
|
2710
2710
|
// 3
|
|
2711
2711
|
case "c":
|
|
2712
2712
|
case "cc":
|
|
2713
|
-
return
|
|
2713
|
+
return we(ge(t.length, e), s);
|
|
2714
2714
|
// 3rd
|
|
2715
2715
|
case "co":
|
|
2716
|
-
return
|
|
2716
|
+
return we(
|
|
2717
2717
|
a.ordinalNumber(e, {
|
|
2718
2718
|
unit: "day"
|
|
2719
2719
|
}),
|
|
@@ -2757,8 +2757,8 @@ function Hu(n, r, e) {
|
|
|
2757
2757
|
class Uu extends ue {
|
|
2758
2758
|
constructor() {
|
|
2759
2759
|
super(...arguments);
|
|
2760
|
-
|
|
2761
|
-
|
|
2760
|
+
V(this, "priority", 90);
|
|
2761
|
+
V(this, "incompatibleTokens", [
|
|
2762
2762
|
"y",
|
|
2763
2763
|
"Y",
|
|
2764
2764
|
"u",
|
|
@@ -2782,13 +2782,13 @@ class Uu extends ue {
|
|
|
2782
2782
|
// 2
|
|
2783
2783
|
case "i":
|
|
2784
2784
|
case "ii":
|
|
2785
|
-
return
|
|
2785
|
+
return ge(t.length, e);
|
|
2786
2786
|
// 2nd
|
|
2787
2787
|
case "io":
|
|
2788
2788
|
return a.ordinalNumber(e, { unit: "day" });
|
|
2789
2789
|
// Tue
|
|
2790
2790
|
case "iii":
|
|
2791
|
-
return
|
|
2791
|
+
return we(
|
|
2792
2792
|
a.day(e, {
|
|
2793
2793
|
width: "abbreviated",
|
|
2794
2794
|
context: "formatting"
|
|
@@ -2803,7 +2803,7 @@ class Uu extends ue {
|
|
|
2803
2803
|
);
|
|
2804
2804
|
// T
|
|
2805
2805
|
case "iiiii":
|
|
2806
|
-
return
|
|
2806
|
+
return we(
|
|
2807
2807
|
a.day(e, {
|
|
2808
2808
|
width: "narrow",
|
|
2809
2809
|
context: "formatting"
|
|
@@ -2812,7 +2812,7 @@ class Uu extends ue {
|
|
|
2812
2812
|
);
|
|
2813
2813
|
// Tu
|
|
2814
2814
|
case "iiiiii":
|
|
2815
|
-
return
|
|
2815
|
+
return we(
|
|
2816
2816
|
a.day(e, {
|
|
2817
2817
|
width: "short",
|
|
2818
2818
|
context: "formatting"
|
|
@@ -2825,7 +2825,7 @@ class Uu extends ue {
|
|
|
2825
2825
|
// Tuesday
|
|
2826
2826
|
case "iiii":
|
|
2827
2827
|
default:
|
|
2828
|
-
return
|
|
2828
|
+
return we(
|
|
2829
2829
|
a.day(e, {
|
|
2830
2830
|
width: "wide",
|
|
2831
2831
|
context: "formatting"
|
|
@@ -2853,8 +2853,8 @@ class Uu extends ue {
|
|
|
2853
2853
|
class Vu extends ue {
|
|
2854
2854
|
constructor() {
|
|
2855
2855
|
super(...arguments);
|
|
2856
|
-
|
|
2857
|
-
|
|
2856
|
+
V(this, "priority", 80);
|
|
2857
|
+
V(this, "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
|
|
2858
2858
|
}
|
|
2859
2859
|
parse(e, t, a) {
|
|
2860
2860
|
switch (t) {
|
|
@@ -2894,8 +2894,8 @@ class Vu extends ue {
|
|
|
2894
2894
|
class zu extends ue {
|
|
2895
2895
|
constructor() {
|
|
2896
2896
|
super(...arguments);
|
|
2897
|
-
|
|
2898
|
-
|
|
2897
|
+
V(this, "priority", 80);
|
|
2898
|
+
V(this, "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
|
|
2899
2899
|
}
|
|
2900
2900
|
parse(e, t, a) {
|
|
2901
2901
|
switch (t) {
|
|
@@ -2935,8 +2935,8 @@ class zu extends ue {
|
|
|
2935
2935
|
class Gu extends ue {
|
|
2936
2936
|
constructor() {
|
|
2937
2937
|
super(...arguments);
|
|
2938
|
-
|
|
2939
|
-
|
|
2938
|
+
V(this, "priority", 80);
|
|
2939
|
+
V(this, "incompatibleTokens", ["a", "b", "t", "T"]);
|
|
2940
2940
|
}
|
|
2941
2941
|
parse(e, t, a) {
|
|
2942
2942
|
switch (t) {
|
|
@@ -2976,17 +2976,17 @@ class Gu extends ue {
|
|
|
2976
2976
|
class $u extends ue {
|
|
2977
2977
|
constructor() {
|
|
2978
2978
|
super(...arguments);
|
|
2979
|
-
|
|
2980
|
-
|
|
2979
|
+
V(this, "priority", 70);
|
|
2980
|
+
V(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
|
|
2981
2981
|
}
|
|
2982
2982
|
parse(e, t, a) {
|
|
2983
2983
|
switch (t) {
|
|
2984
2984
|
case "h":
|
|
2985
|
-
return
|
|
2985
|
+
return me(ke.hour12h, e);
|
|
2986
2986
|
case "ho":
|
|
2987
2987
|
return a.ordinalNumber(e, { unit: "hour" });
|
|
2988
2988
|
default:
|
|
2989
|
-
return
|
|
2989
|
+
return ge(t.length, e);
|
|
2990
2990
|
}
|
|
2991
2991
|
}
|
|
2992
2992
|
validate(e, t) {
|
|
@@ -3000,17 +3000,17 @@ class $u extends ue {
|
|
|
3000
3000
|
class Ku extends ue {
|
|
3001
3001
|
constructor() {
|
|
3002
3002
|
super(...arguments);
|
|
3003
|
-
|
|
3004
|
-
|
|
3003
|
+
V(this, "priority", 70);
|
|
3004
|
+
V(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
|
|
3005
3005
|
}
|
|
3006
3006
|
parse(e, t, a) {
|
|
3007
3007
|
switch (t) {
|
|
3008
3008
|
case "H":
|
|
3009
|
-
return
|
|
3009
|
+
return me(ke.hour23h, e);
|
|
3010
3010
|
case "Ho":
|
|
3011
3011
|
return a.ordinalNumber(e, { unit: "hour" });
|
|
3012
3012
|
default:
|
|
3013
|
-
return
|
|
3013
|
+
return ge(t.length, e);
|
|
3014
3014
|
}
|
|
3015
3015
|
}
|
|
3016
3016
|
validate(e, t) {
|
|
@@ -3023,17 +3023,17 @@ class Ku extends ue {
|
|
|
3023
3023
|
class qu extends ue {
|
|
3024
3024
|
constructor() {
|
|
3025
3025
|
super(...arguments);
|
|
3026
|
-
|
|
3027
|
-
|
|
3026
|
+
V(this, "priority", 70);
|
|
3027
|
+
V(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
|
|
3028
3028
|
}
|
|
3029
3029
|
parse(e, t, a) {
|
|
3030
3030
|
switch (t) {
|
|
3031
3031
|
case "K":
|
|
3032
|
-
return
|
|
3032
|
+
return me(ke.hour11h, e);
|
|
3033
3033
|
case "Ko":
|
|
3034
3034
|
return a.ordinalNumber(e, { unit: "hour" });
|
|
3035
3035
|
default:
|
|
3036
|
-
return
|
|
3036
|
+
return ge(t.length, e);
|
|
3037
3037
|
}
|
|
3038
3038
|
}
|
|
3039
3039
|
validate(e, t) {
|
|
@@ -3046,17 +3046,17 @@ class qu extends ue {
|
|
|
3046
3046
|
class Qu extends ue {
|
|
3047
3047
|
constructor() {
|
|
3048
3048
|
super(...arguments);
|
|
3049
|
-
|
|
3050
|
-
|
|
3049
|
+
V(this, "priority", 70);
|
|
3050
|
+
V(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
|
|
3051
3051
|
}
|
|
3052
3052
|
parse(e, t, a) {
|
|
3053
3053
|
switch (t) {
|
|
3054
3054
|
case "k":
|
|
3055
|
-
return
|
|
3055
|
+
return me(ke.hour24h, e);
|
|
3056
3056
|
case "ko":
|
|
3057
3057
|
return a.ordinalNumber(e, { unit: "hour" });
|
|
3058
3058
|
default:
|
|
3059
|
-
return
|
|
3059
|
+
return ge(t.length, e);
|
|
3060
3060
|
}
|
|
3061
3061
|
}
|
|
3062
3062
|
validate(e, t) {
|
|
@@ -3070,17 +3070,17 @@ class Qu extends ue {
|
|
|
3070
3070
|
class Xu extends ue {
|
|
3071
3071
|
constructor() {
|
|
3072
3072
|
super(...arguments);
|
|
3073
|
-
|
|
3074
|
-
|
|
3073
|
+
V(this, "priority", 60);
|
|
3074
|
+
V(this, "incompatibleTokens", ["t", "T"]);
|
|
3075
3075
|
}
|
|
3076
3076
|
parse(e, t, a) {
|
|
3077
3077
|
switch (t) {
|
|
3078
3078
|
case "m":
|
|
3079
|
-
return
|
|
3079
|
+
return me(ke.minute, e);
|
|
3080
3080
|
case "mo":
|
|
3081
3081
|
return a.ordinalNumber(e, { unit: "minute" });
|
|
3082
3082
|
default:
|
|
3083
|
-
return
|
|
3083
|
+
return ge(t.length, e);
|
|
3084
3084
|
}
|
|
3085
3085
|
}
|
|
3086
3086
|
validate(e, t) {
|
|
@@ -3093,17 +3093,17 @@ class Xu extends ue {
|
|
|
3093
3093
|
class Ju extends ue {
|
|
3094
3094
|
constructor() {
|
|
3095
3095
|
super(...arguments);
|
|
3096
|
-
|
|
3097
|
-
|
|
3096
|
+
V(this, "priority", 50);
|
|
3097
|
+
V(this, "incompatibleTokens", ["t", "T"]);
|
|
3098
3098
|
}
|
|
3099
3099
|
parse(e, t, a) {
|
|
3100
3100
|
switch (t) {
|
|
3101
3101
|
case "s":
|
|
3102
|
-
return
|
|
3102
|
+
return me(ke.second, e);
|
|
3103
3103
|
case "so":
|
|
3104
3104
|
return a.ordinalNumber(e, { unit: "second" });
|
|
3105
3105
|
default:
|
|
3106
|
-
return
|
|
3106
|
+
return ge(t.length, e);
|
|
3107
3107
|
}
|
|
3108
3108
|
}
|
|
3109
3109
|
validate(e, t) {
|
|
@@ -3116,12 +3116,12 @@ class Ju extends ue {
|
|
|
3116
3116
|
class Zu extends ue {
|
|
3117
3117
|
constructor() {
|
|
3118
3118
|
super(...arguments);
|
|
3119
|
-
|
|
3120
|
-
|
|
3119
|
+
V(this, "priority", 30);
|
|
3120
|
+
V(this, "incompatibleTokens", ["t", "T"]);
|
|
3121
3121
|
}
|
|
3122
3122
|
parse(e, t) {
|
|
3123
3123
|
const a = (i) => Math.trunc(i * Math.pow(10, -t.length + 3));
|
|
3124
|
-
return
|
|
3124
|
+
return we(ge(t.length, e), a);
|
|
3125
3125
|
}
|
|
3126
3126
|
set(e, t, a) {
|
|
3127
3127
|
return e.setMilliseconds(a), e;
|
|
@@ -3130,8 +3130,8 @@ class Zu extends ue {
|
|
|
3130
3130
|
class ed extends ue {
|
|
3131
3131
|
constructor() {
|
|
3132
3132
|
super(...arguments);
|
|
3133
|
-
|
|
3134
|
-
|
|
3133
|
+
V(this, "priority", 10);
|
|
3134
|
+
V(this, "incompatibleTokens", ["t", "T", "x"]);
|
|
3135
3135
|
}
|
|
3136
3136
|
parse(e, t) {
|
|
3137
3137
|
switch (t) {
|
|
@@ -3167,8 +3167,8 @@ class ed extends ue {
|
|
|
3167
3167
|
class td extends ue {
|
|
3168
3168
|
constructor() {
|
|
3169
3169
|
super(...arguments);
|
|
3170
|
-
|
|
3171
|
-
|
|
3170
|
+
V(this, "priority", 10);
|
|
3171
|
+
V(this, "incompatibleTokens", ["t", "T", "X"]);
|
|
3172
3172
|
}
|
|
3173
3173
|
parse(e, t) {
|
|
3174
3174
|
switch (t) {
|
|
@@ -3204,8 +3204,8 @@ class td extends ue {
|
|
|
3204
3204
|
class rd extends ue {
|
|
3205
3205
|
constructor() {
|
|
3206
3206
|
super(...arguments);
|
|
3207
|
-
|
|
3208
|
-
|
|
3207
|
+
V(this, "priority", 40);
|
|
3208
|
+
V(this, "incompatibleTokens", "*");
|
|
3209
3209
|
}
|
|
3210
3210
|
parse(e) {
|
|
3211
3211
|
return Fo(e);
|
|
@@ -3217,8 +3217,8 @@ class rd extends ue {
|
|
|
3217
3217
|
class nd extends ue {
|
|
3218
3218
|
constructor() {
|
|
3219
3219
|
super(...arguments);
|
|
3220
|
-
|
|
3221
|
-
|
|
3220
|
+
V(this, "priority", 20);
|
|
3221
|
+
V(this, "incompatibleTokens", "*");
|
|
3222
3222
|
}
|
|
3223
3223
|
parse(e) {
|
|
3224
3224
|
return Fo(e);
|
|
@@ -3261,8 +3261,8 @@ const ad = {
|
|
|
3261
3261
|
T: new nd()
|
|
3262
3262
|
}, id = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, sd = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, od = /^'([^]*?)'?$/, ld = /''/g, cd = /\S/, ud = /[a-zA-Z]/;
|
|
3263
3263
|
function dd(n, r, e, t) {
|
|
3264
|
-
var g, w, v, b, D, I, _,
|
|
3265
|
-
const a = () => fe((t == null ? void 0 : t.in) || e, NaN), i = hu(), s = (t == null ? void 0 : t.locale) ?? i.locale ?? Io, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((w = (g = t == null ? void 0 : t.locale) == null ? void 0 : g.options) == null ? void 0 : w.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((b = (v = i.locale) == null ? void 0 : v.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, l = (t == null ? void 0 : t.weekStartsOn) ?? ((I = (D = t == null ? void 0 : t.locale) == null ? void 0 : D.options) == null ? void 0 : I.weekStartsOn) ?? i.weekStartsOn ?? ((
|
|
3264
|
+
var g, w, v, b, D, I, _, E;
|
|
3265
|
+
const a = () => fe((t == null ? void 0 : t.in) || e, NaN), i = hu(), s = (t == null ? void 0 : t.locale) ?? i.locale ?? Io, o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((w = (g = t == null ? void 0 : t.locale) == null ? void 0 : g.options) == null ? void 0 : w.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((b = (v = i.locale) == null ? void 0 : v.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, l = (t == null ? void 0 : t.weekStartsOn) ?? ((I = (D = t == null ? void 0 : t.locale) == null ? void 0 : D.options) == null ? void 0 : I.weekStartsOn) ?? i.weekStartsOn ?? ((E = (_ = i.locale) == null ? void 0 : _.options) == null ? void 0 : E.weekStartsOn) ?? 0;
|
|
3266
3266
|
if (!r)
|
|
3267
3267
|
return n ? a() : K(e, t == null ? void 0 : t.in);
|
|
3268
3268
|
const c = {
|
|
@@ -3294,15 +3294,15 @@ function dd(n, r, e, t) {
|
|
|
3294
3294
|
`The format string mustn't contain \`${k}\` and any other token at the same time`
|
|
3295
3295
|
);
|
|
3296
3296
|
p.push({ token: x, fullToken: k });
|
|
3297
|
-
const
|
|
3297
|
+
const T = L.run(
|
|
3298
3298
|
n,
|
|
3299
3299
|
k,
|
|
3300
3300
|
s.match,
|
|
3301
3301
|
c
|
|
3302
3302
|
);
|
|
3303
|
-
if (!
|
|
3303
|
+
if (!T)
|
|
3304
3304
|
return a();
|
|
3305
|
-
u.push(
|
|
3305
|
+
u.push(T.setter), n = T.rest;
|
|
3306
3306
|
} else {
|
|
3307
3307
|
if (x.match(ud))
|
|
3308
3308
|
throw new RangeError(
|
|
@@ -3482,7 +3482,7 @@ function Ld(n, r, e) {
|
|
|
3482
3482
|
function Id(n, r) {
|
|
3483
3483
|
return r >= 0 && r <= 59;
|
|
3484
3484
|
}
|
|
3485
|
-
function
|
|
3485
|
+
function Xe(n, r, e) {
|
|
3486
3486
|
const t = K(n, e == null ? void 0 : e.in), a = t.getFullYear(), i = t.getDate(), s = fe(n, 0);
|
|
3487
3487
|
s.setFullYear(a, r, 15), s.setHours(0, 0, 0, 0);
|
|
3488
3488
|
const o = pu(s);
|
|
@@ -3498,7 +3498,7 @@ function Pn(n, r, e) {
|
|
|
3498
3498
|
}
|
|
3499
3499
|
function hr(n, r, e) {
|
|
3500
3500
|
const t = K(n, e == null ? void 0 : e.in), a = Math.trunc(t.getMonth() / 3) + 1, i = r - a;
|
|
3501
|
-
return
|
|
3501
|
+
return Xe(t, t.getMonth() + i * 3);
|
|
3502
3502
|
}
|
|
3503
3503
|
function Tn(n, r, e) {
|
|
3504
3504
|
const t = K(n, e == null ? void 0 : e.in);
|
|
@@ -3526,7 +3526,7 @@ function ha() {
|
|
|
3526
3526
|
function Pr(n) {
|
|
3527
3527
|
return Wo(n) ? (n.nodeName || "").toLowerCase() : "#document";
|
|
3528
3528
|
}
|
|
3529
|
-
function
|
|
3529
|
+
function Ze(n) {
|
|
3530
3530
|
var r;
|
|
3531
3531
|
return (n == null || (r = n.ownerDocument) == null ? void 0 : r.defaultView) || window;
|
|
3532
3532
|
}
|
|
@@ -3535,16 +3535,16 @@ function kt(n) {
|
|
|
3535
3535
|
return (r = (Wo(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : r.documentElement;
|
|
3536
3536
|
}
|
|
3537
3537
|
function Wo(n) {
|
|
3538
|
-
return ha() ? n instanceof Node || n instanceof
|
|
3538
|
+
return ha() ? n instanceof Node || n instanceof Ze(n).Node : !1;
|
|
3539
3539
|
}
|
|
3540
3540
|
function Fe(n) {
|
|
3541
|
-
return ha() ? n instanceof Element || n instanceof
|
|
3541
|
+
return ha() ? n instanceof Element || n instanceof Ze(n).Element : !1;
|
|
3542
3542
|
}
|
|
3543
3543
|
function Nt(n) {
|
|
3544
|
-
return ha() ? n instanceof HTMLElement || n instanceof
|
|
3544
|
+
return ha() ? n instanceof HTMLElement || n instanceof Ze(n).HTMLElement : !1;
|
|
3545
3545
|
}
|
|
3546
3546
|
function ns(n) {
|
|
3547
|
-
return !ha() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof
|
|
3547
|
+
return !ha() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof Ze(n).ShadowRoot;
|
|
3548
3548
|
}
|
|
3549
3549
|
function rn(n) {
|
|
3550
3550
|
const {
|
|
@@ -3552,7 +3552,7 @@ function rn(n) {
|
|
|
3552
3552
|
overflowX: e,
|
|
3553
3553
|
overflowY: t,
|
|
3554
3554
|
display: a
|
|
3555
|
-
} =
|
|
3555
|
+
} = nt(n);
|
|
3556
3556
|
return /auto|scroll|overlay|hidden|clip/.test(r + t + e) && a !== "inline" && a !== "contents";
|
|
3557
3557
|
}
|
|
3558
3558
|
function Od(n) {
|
|
@@ -3573,7 +3573,7 @@ function ma(n) {
|
|
|
3573
3573
|
const Nd = /transform|translate|scale|rotate|perspective|filter/, Rd = /paint|layout|strict|content/, Gt = (n) => !!n && n !== "none";
|
|
3574
3574
|
let Ea;
|
|
3575
3575
|
function vi(n) {
|
|
3576
|
-
const r = Fe(n) ?
|
|
3576
|
+
const r = Fe(n) ? nt(n) : n;
|
|
3577
3577
|
return Gt(r.transform) || Gt(r.translate) || Gt(r.scale) || Gt(r.rotate) || Gt(r.perspective) || !bi() && (Gt(r.backdropFilter) || Gt(r.filter)) || Nd.test(r.willChange || "") || Rd.test(r.contain || "");
|
|
3578
3578
|
}
|
|
3579
3579
|
function Fd(n) {
|
|
@@ -3593,8 +3593,8 @@ function bi() {
|
|
|
3593
3593
|
function _r(n) {
|
|
3594
3594
|
return /^(html|body|#document)$/.test(Pr(n));
|
|
3595
3595
|
}
|
|
3596
|
-
function
|
|
3597
|
-
return
|
|
3596
|
+
function nt(n) {
|
|
3597
|
+
return Ze(n).getComputedStyle(n);
|
|
3598
3598
|
}
|
|
3599
3599
|
function ga(n) {
|
|
3600
3600
|
return Fe(n) ? {
|
|
@@ -3624,7 +3624,7 @@ function Ho(n) {
|
|
|
3624
3624
|
function Jr(n, r, e) {
|
|
3625
3625
|
var t;
|
|
3626
3626
|
r === void 0 && (r = []), e === void 0 && (e = !0);
|
|
3627
|
-
const a = Ho(n), i = a === ((t = n.ownerDocument) == null ? void 0 : t.body), s =
|
|
3627
|
+
const a = Ho(n), i = a === ((t = n.ownerDocument) == null ? void 0 : t.body), s = Ze(a);
|
|
3628
3628
|
if (i) {
|
|
3629
3629
|
const o = Ja(s);
|
|
3630
3630
|
return r.concat(s, s.visualViewport || [], rn(a) ? a : [], o && e ? Jr(o) : []);
|
|
@@ -3935,9 +3935,9 @@ const ef = 50, tf = async (n, r, e) => {
|
|
|
3935
3935
|
x: e,
|
|
3936
3936
|
y: t
|
|
3937
3937
|
}, f = wi(a), h = ki(f), y = await s.getDimensions(c), g = f === "y", w = g ? "top" : "left", v = g ? "bottom" : "right", b = g ? "clientHeight" : "clientWidth", D = i.reference[h] + i.reference[f] - p[f] - i.floating[h], I = p[f] - i.reference[f], _ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
3938
|
-
let
|
|
3939
|
-
(!
|
|
3940
|
-
const k = D / 2 - I / 2, x =
|
|
3938
|
+
let E = _ ? _[b] : 0;
|
|
3939
|
+
(!E || !await (s.isElement == null ? void 0 : s.isElement(_))) && (E = o.floating[b] || i.floating[h]);
|
|
3940
|
+
const k = D / 2 - I / 2, x = E / 2 - y[h] / 2 - 1, L = Sr(d[w], x), C = Sr(d[v], x), T = L, O = E - y[h] - C, F = E / 2 - y[h] / 2 + k, j = Ad(T, F, O), B = !l.arrow && nn(a) != null && F !== j && i.reference[h] / 2 - (F < T ? L : C) - y[h] / 2 < 0, Y = B ? F < T ? F - T : F - O : 0;
|
|
3941
3941
|
return {
|
|
3942
3942
|
[f]: p[f] + Y,
|
|
3943
3943
|
data: {
|
|
@@ -3976,7 +3976,7 @@ const ef = 50, tf = async (n, r, e) => {
|
|
|
3976
3976
|
return {};
|
|
3977
3977
|
const w = Dr(a), v = Qt(o), b = Dr(o) === o, D = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), I = p || (b || !y ? [Un(o)] : Wd(o)), _ = h !== "none";
|
|
3978
3978
|
!p && _ && I.push(...zd(o, y, h, D));
|
|
3979
|
-
const
|
|
3979
|
+
const E = [o, ...I], k = await l.detectOverflow(r, g), x = [];
|
|
3980
3980
|
let L = ((t = i.flip) == null ? void 0 : t.overflows) || [];
|
|
3981
3981
|
if (u && x.push(k[w]), d) {
|
|
3982
3982
|
const F = Yd(a, s, D);
|
|
@@ -3986,11 +3986,11 @@ const ef = 50, tf = async (n, r, e) => {
|
|
|
3986
3986
|
placement: a,
|
|
3987
3987
|
overflows: x
|
|
3988
3988
|
}], !x.every((F) => F <= 0)) {
|
|
3989
|
-
var C,
|
|
3990
|
-
const F = (((C = i.flip) == null ? void 0 : C.index) || 0) + 1, j =
|
|
3989
|
+
var C, T;
|
|
3990
|
+
const F = (((C = i.flip) == null ? void 0 : C.index) || 0) + 1, j = E[F];
|
|
3991
3991
|
if (j && (!(d === "alignment" ? v !== Qt(j) : !1) || // We leave the current main axis only if every placement on that axis
|
|
3992
3992
|
// overflows the main axis.
|
|
3993
|
-
L.every((
|
|
3993
|
+
L.every((M) => Qt(M.placement) === v ? M.overflows[0] > 0 : !0)))
|
|
3994
3994
|
return {
|
|
3995
3995
|
data: {
|
|
3996
3996
|
index: F,
|
|
@@ -4000,20 +4000,20 @@ const ef = 50, tf = async (n, r, e) => {
|
|
|
4000
4000
|
placement: j
|
|
4001
4001
|
}
|
|
4002
4002
|
};
|
|
4003
|
-
let B = (
|
|
4003
|
+
let B = (T = L.filter((Y) => Y.overflows[0] <= 0).sort((Y, M) => Y.overflows[1] - M.overflows[1])[0]) == null ? void 0 : T.placement;
|
|
4004
4004
|
if (!B)
|
|
4005
4005
|
switch (f) {
|
|
4006
4006
|
case "bestFit": {
|
|
4007
4007
|
var O;
|
|
4008
|
-
const Y = (O = L.filter((
|
|
4008
|
+
const Y = (O = L.filter((M) => {
|
|
4009
4009
|
if (_) {
|
|
4010
|
-
const
|
|
4011
|
-
return
|
|
4010
|
+
const z = Qt(M.placement);
|
|
4011
|
+
return z === v || // Create a bias to the `y` side axis due to horizontal
|
|
4012
4012
|
// reading directions favoring greater width.
|
|
4013
|
-
|
|
4013
|
+
z === "y";
|
|
4014
4014
|
}
|
|
4015
4015
|
return !0;
|
|
4016
|
-
}).map((
|
|
4016
|
+
}).map((M) => [M.placement, M.overflows.filter((z) => z > 0).reduce((z, J) => z + J, 0)]).sort((M, z) => M[1] - z[1])[0]) == null ? void 0 : O[0];
|
|
4017
4017
|
Y && (B = Y);
|
|
4018
4018
|
break;
|
|
4019
4019
|
}
|
|
@@ -4083,7 +4083,7 @@ const of = function(n) {
|
|
|
4083
4083
|
};
|
|
4084
4084
|
};
|
|
4085
4085
|
function Vo(n) {
|
|
4086
|
-
const r =
|
|
4086
|
+
const r = nt(n);
|
|
4087
4087
|
let e = parseFloat(r.width) || 0, t = parseFloat(r.height) || 0;
|
|
4088
4088
|
const a = Nt(n), i = a ? n.offsetWidth : e, s = a ? n.offsetHeight : t, o = Hn(e) !== i || Hn(t) !== s;
|
|
4089
4089
|
return o && (e = i, t = s), {
|
|
@@ -4112,14 +4112,14 @@ function gr(n) {
|
|
|
4112
4112
|
}
|
|
4113
4113
|
const lf = /* @__PURE__ */ bt(0);
|
|
4114
4114
|
function zo(n) {
|
|
4115
|
-
const r =
|
|
4115
|
+
const r = Ze(n);
|
|
4116
4116
|
return !bi() || !r.visualViewport ? lf : {
|
|
4117
4117
|
x: r.visualViewport.offsetLeft,
|
|
4118
4118
|
y: r.visualViewport.offsetTop
|
|
4119
4119
|
};
|
|
4120
4120
|
}
|
|
4121
4121
|
function cf(n, r, e) {
|
|
4122
|
-
return r === void 0 && (r = !1), !e || r && e !==
|
|
4122
|
+
return r === void 0 && (r = !1), !e || r && e !== Ze(n) ? !1 : r;
|
|
4123
4123
|
}
|
|
4124
4124
|
function rr(n, r, e, t) {
|
|
4125
4125
|
r === void 0 && (r = !1), e === void 0 && (e = !1);
|
|
@@ -4129,11 +4129,11 @@ function rr(n, r, e, t) {
|
|
|
4129
4129
|
const o = cf(i, e, t) ? zo(i) : bt(0);
|
|
4130
4130
|
let l = (a.left + o.x) / s.x, c = (a.top + o.y) / s.y, u = a.width / s.x, d = a.height / s.y;
|
|
4131
4131
|
if (i) {
|
|
4132
|
-
const p =
|
|
4132
|
+
const p = Ze(i), f = t && Fe(t) ? Ze(t) : t;
|
|
4133
4133
|
let h = p, y = Ja(h);
|
|
4134
4134
|
for (; y && t && f !== h; ) {
|
|
4135
|
-
const g = gr(y), w = y.getBoundingClientRect(), v =
|
|
4136
|
-
l *= g.x, c *= g.y, u *= g.x, d *= g.y, l += b, c += D, h =
|
|
4135
|
+
const g = gr(y), w = y.getBoundingClientRect(), v = nt(y), b = w.left + (y.clientLeft + parseFloat(v.paddingLeft)) * g.x, D = w.top + (y.clientTop + parseFloat(v.paddingTop)) * g.y;
|
|
4136
|
+
l *= g.x, c *= g.y, u *= g.x, d *= g.y, l += b, c += D, h = Ze(y), y = Ja(h);
|
|
4137
4137
|
}
|
|
4138
4138
|
}
|
|
4139
4139
|
return Vn({
|
|
@@ -4188,7 +4188,7 @@ function ff(n) {
|
|
|
4188
4188
|
const r = kt(n), e = ga(n), t = n.ownerDocument.body, a = er(r.scrollWidth, r.clientWidth, t.scrollWidth, t.clientWidth), i = er(r.scrollHeight, r.clientHeight, t.scrollHeight, t.clientHeight);
|
|
4189
4189
|
let s = -e.scrollLeft + va(n);
|
|
4190
4190
|
const o = -e.scrollTop;
|
|
4191
|
-
return
|
|
4191
|
+
return nt(t).direction === "rtl" && (s += er(r.clientWidth, t.clientWidth) - a), {
|
|
4192
4192
|
width: a,
|
|
4193
4193
|
height: i,
|
|
4194
4194
|
x: s,
|
|
@@ -4197,7 +4197,7 @@ function ff(n) {
|
|
|
4197
4197
|
}
|
|
4198
4198
|
const os = 25;
|
|
4199
4199
|
function pf(n, r) {
|
|
4200
|
-
const e =
|
|
4200
|
+
const e = Ze(n), t = kt(n), a = e.visualViewport;
|
|
4201
4201
|
let i = t.clientWidth, s = t.clientHeight, o = 0, l = 0;
|
|
4202
4202
|
if (a) {
|
|
4203
4203
|
i = a.width, s = a.height;
|
|
@@ -4246,17 +4246,17 @@ function ls(n, r, e) {
|
|
|
4246
4246
|
}
|
|
4247
4247
|
function $o(n, r) {
|
|
4248
4248
|
const e = Vt(n);
|
|
4249
|
-
return e === r || !Fe(e) || _r(e) ? !1 :
|
|
4249
|
+
return e === r || !Fe(e) || _r(e) ? !1 : nt(e).position === "fixed" || $o(e, r);
|
|
4250
4250
|
}
|
|
4251
4251
|
function mf(n, r) {
|
|
4252
4252
|
const e = r.get(n);
|
|
4253
4253
|
if (e)
|
|
4254
4254
|
return e;
|
|
4255
4255
|
let t = Jr(n, [], !1).filter((o) => Fe(o) && Pr(o) !== "body"), a = null;
|
|
4256
|
-
const i =
|
|
4256
|
+
const i = nt(n).position === "fixed";
|
|
4257
4257
|
let s = i ? Vt(n) : n;
|
|
4258
4258
|
for (; Fe(s) && !_r(s); ) {
|
|
4259
|
-
const o =
|
|
4259
|
+
const o = nt(s), l = vi(s);
|
|
4260
4260
|
!l && o.position === "fixed" && (a = null), (i ? !l && !a : !l && o.position === "static" && !!a && (a.position === "absolute" || a.position === "fixed") || rn(s) && !l && $o(n, s)) ? t = t.filter((u) => u !== s) : a = o, s = Vt(s);
|
|
4261
4261
|
}
|
|
4262
4262
|
return r.set(n, t), t;
|
|
@@ -4316,10 +4316,10 @@ function vf(n, r, e) {
|
|
|
4316
4316
|
};
|
|
4317
4317
|
}
|
|
4318
4318
|
function La(n) {
|
|
4319
|
-
return
|
|
4319
|
+
return nt(n).position === "static";
|
|
4320
4320
|
}
|
|
4321
4321
|
function cs(n, r) {
|
|
4322
|
-
if (!Nt(n) ||
|
|
4322
|
+
if (!Nt(n) || nt(n).position === "fixed")
|
|
4323
4323
|
return null;
|
|
4324
4324
|
if (r)
|
|
4325
4325
|
return r(n);
|
|
@@ -4327,7 +4327,7 @@ function cs(n, r) {
|
|
|
4327
4327
|
return kt(n) === e && (e = e.ownerDocument.body), e;
|
|
4328
4328
|
}
|
|
4329
4329
|
function Ko(n, r) {
|
|
4330
|
-
const e =
|
|
4330
|
+
const e = Ze(n);
|
|
4331
4331
|
if (ma(n))
|
|
4332
4332
|
return e;
|
|
4333
4333
|
if (!Nt(n)) {
|
|
@@ -4357,7 +4357,7 @@ const bf = async function(n) {
|
|
|
4357
4357
|
};
|
|
4358
4358
|
};
|
|
4359
4359
|
function kf(n) {
|
|
4360
|
-
return
|
|
4360
|
+
return nt(n).direction === "rtl";
|
|
4361
4361
|
}
|
|
4362
4362
|
const wf = {
|
|
4363
4363
|
convertOffsetParentRelativeRectToViewportRelativeRect: uf,
|
|
@@ -4397,15 +4397,15 @@ function _f(n, r) {
|
|
|
4397
4397
|
};
|
|
4398
4398
|
let D = !0;
|
|
4399
4399
|
function I(_) {
|
|
4400
|
-
const
|
|
4401
|
-
if (
|
|
4400
|
+
const E = _[0].intersectionRatio;
|
|
4401
|
+
if (E !== l) {
|
|
4402
4402
|
if (!D)
|
|
4403
4403
|
return s();
|
|
4404
|
-
|
|
4404
|
+
E ? s(!1, E) : t = setTimeout(() => {
|
|
4405
4405
|
s(!1, 1e-7);
|
|
4406
4406
|
}, 1e3);
|
|
4407
4407
|
}
|
|
4408
|
-
|
|
4408
|
+
E === 1 && !qo(c, n.getBoundingClientRect()) && s(), D = !1;
|
|
4409
4409
|
}
|
|
4410
4410
|
try {
|
|
4411
4411
|
e = new IntersectionObserver(I, {
|
|
@@ -4537,35 +4537,35 @@ function Tf(n) {
|
|
|
4537
4537
|
isPositioned: !1
|
|
4538
4538
|
}), [p, f] = te.useState(t);
|
|
4539
4539
|
Gn(p, t) || f(t);
|
|
4540
|
-
const [h, y] = te.useState(null), [g, w] = te.useState(null), v = te.useCallback((
|
|
4541
|
-
|
|
4542
|
-
}, []), b = te.useCallback((
|
|
4543
|
-
|
|
4544
|
-
}, []), D = i || h, I = s || g, _ = te.useRef(null),
|
|
4545
|
-
if (!_.current || !
|
|
4540
|
+
const [h, y] = te.useState(null), [g, w] = te.useState(null), v = te.useCallback((M) => {
|
|
4541
|
+
M !== _.current && (_.current = M, y(M));
|
|
4542
|
+
}, []), b = te.useCallback((M) => {
|
|
4543
|
+
M !== E.current && (E.current = M, w(M));
|
|
4544
|
+
}, []), D = i || h, I = s || g, _ = te.useRef(null), E = te.useRef(null), k = te.useRef(u), x = l != null, L = Ia(l), C = Ia(a), T = Ia(c), O = te.useCallback(() => {
|
|
4545
|
+
if (!_.current || !E.current)
|
|
4546
4546
|
return;
|
|
4547
|
-
const
|
|
4547
|
+
const M = {
|
|
4548
4548
|
placement: r,
|
|
4549
4549
|
strategy: e,
|
|
4550
4550
|
middleware: p
|
|
4551
4551
|
};
|
|
4552
|
-
C.current && (
|
|
4552
|
+
C.current && (M.platform = C.current), Cf(_.current, E.current, M).then((z) => {
|
|
4553
4553
|
const J = {
|
|
4554
|
-
...
|
|
4554
|
+
...z,
|
|
4555
4555
|
// The floating element's position may be recomputed while it's closed
|
|
4556
4556
|
// but still mounted (such as when transitioning out). To ensure
|
|
4557
4557
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
4558
4558
|
// setting it to `true` when `open === false` (must be specified).
|
|
4559
|
-
isPositioned:
|
|
4559
|
+
isPositioned: T.current !== !1
|
|
4560
4560
|
};
|
|
4561
4561
|
F.current && !Gn(k.current, J) && (k.current = J, Xl.flushSync(() => {
|
|
4562
4562
|
d(J);
|
|
4563
4563
|
}));
|
|
4564
4564
|
});
|
|
4565
|
-
}, [p, r, e, C,
|
|
4565
|
+
}, [p, r, e, C, T]);
|
|
4566
4566
|
En(() => {
|
|
4567
|
-
c === !1 && k.current.isPositioned && (k.current.isPositioned = !1, d((
|
|
4568
|
-
...
|
|
4567
|
+
c === !1 && k.current.isPositioned && (k.current.isPositioned = !1, d((M) => ({
|
|
4568
|
+
...M,
|
|
4569
4569
|
isPositioned: !1
|
|
4570
4570
|
})));
|
|
4571
4571
|
}, [c]);
|
|
@@ -4573,7 +4573,7 @@ function Tf(n) {
|
|
|
4573
4573
|
En(() => (F.current = !0, () => {
|
|
4574
4574
|
F.current = !1;
|
|
4575
4575
|
}), []), En(() => {
|
|
4576
|
-
if (D && (_.current = D), I && (
|
|
4576
|
+
if (D && (_.current = D), I && (E.current = I), D && I) {
|
|
4577
4577
|
if (L.current)
|
|
4578
4578
|
return L.current(D, I, O);
|
|
4579
4579
|
O();
|
|
@@ -4581,30 +4581,30 @@ function Tf(n) {
|
|
|
4581
4581
|
}, [D, I, O, L, x]);
|
|
4582
4582
|
const j = te.useMemo(() => ({
|
|
4583
4583
|
reference: _,
|
|
4584
|
-
floating:
|
|
4584
|
+
floating: E,
|
|
4585
4585
|
setReference: v,
|
|
4586
4586
|
setFloating: b
|
|
4587
4587
|
}), [v, b]), B = te.useMemo(() => ({
|
|
4588
4588
|
reference: D,
|
|
4589
4589
|
floating: I
|
|
4590
4590
|
}), [D, I]), Y = te.useMemo(() => {
|
|
4591
|
-
const
|
|
4591
|
+
const M = {
|
|
4592
4592
|
position: e,
|
|
4593
4593
|
left: 0,
|
|
4594
4594
|
top: 0
|
|
4595
4595
|
};
|
|
4596
4596
|
if (!B.floating)
|
|
4597
|
-
return
|
|
4598
|
-
const
|
|
4597
|
+
return M;
|
|
4598
|
+
const z = ds(B.floating, u.x), J = ds(B.floating, u.y);
|
|
4599
4599
|
return o ? {
|
|
4600
|
-
...
|
|
4601
|
-
transform: "translate(" +
|
|
4600
|
+
...M,
|
|
4601
|
+
transform: "translate(" + z + "px, " + J + "px)",
|
|
4602
4602
|
...Qo(B.floating) >= 1.5 && {
|
|
4603
4603
|
willChange: "transform"
|
|
4604
4604
|
}
|
|
4605
4605
|
} : {
|
|
4606
4606
|
position: e,
|
|
4607
|
-
left:
|
|
4607
|
+
left: z,
|
|
4608
4608
|
top: J
|
|
4609
4609
|
};
|
|
4610
4610
|
}, [e, o, B.floating, u.x, u.y]);
|
|
@@ -4725,26 +4725,26 @@ const Yf = /* @__PURE__ */ te.forwardRef(function(r, e) {
|
|
|
4725
4725
|
const w = Xo(), [v, b] = te.useState(!1);
|
|
4726
4726
|
if (zn(() => {
|
|
4727
4727
|
if (!a) return;
|
|
4728
|
-
|
|
4728
|
+
nt(a).direction === "rtl" && b(!0);
|
|
4729
4729
|
}, [a]), !a)
|
|
4730
4730
|
return null;
|
|
4731
4731
|
const [D, I] = t.split("-"), _ = D === "top" || D === "bottom";
|
|
4732
|
-
let
|
|
4733
|
-
(_ && s != null && s.x || !_ && s != null && s.y) && (
|
|
4734
|
-
const k = u * 2, x = k / 2, L = o / 2 * (c / -8 + 1), C = l / 2 * c / 4,
|
|
4735
|
-
let F =
|
|
4736
|
-
|
|
4737
|
-
const j = (i == null ? void 0 : i.x) != null ?
|
|
4738
|
-
top:
|
|
4739
|
-
left:
|
|
4740
|
-
bottom:
|
|
4741
|
-
right:
|
|
4732
|
+
let E = d;
|
|
4733
|
+
(_ && s != null && s.x || !_ && s != null && s.y) && (E = null);
|
|
4734
|
+
const k = u * 2, x = k / 2, L = o / 2 * (c / -8 + 1), C = l / 2 * c / 4, T = !!f, O = E && I === "end" ? "bottom" : "top";
|
|
4735
|
+
let F = E && I === "end" ? "right" : "left";
|
|
4736
|
+
E && v && (F = I === "end" ? "left" : "right");
|
|
4737
|
+
const j = (i == null ? void 0 : i.x) != null ? E || i.x : "", B = (i == null ? void 0 : i.y) != null ? E || i.y : "", Y = f || "M0,0" + (" H" + o) + (" L" + (o - L) + "," + (l - C)) + (" Q" + o / 2 + "," + l + " " + L + "," + (l - C)) + " Z", M = {
|
|
4738
|
+
top: T ? "rotate(180deg)" : "",
|
|
4739
|
+
left: T ? "rotate(90deg)" : "rotate(-90deg)",
|
|
4740
|
+
bottom: T ? "" : "rotate(180deg)",
|
|
4741
|
+
right: T ? "rotate(-90deg)" : "rotate(90deg)"
|
|
4742
4742
|
}[D];
|
|
4743
|
-
return /* @__PURE__ */
|
|
4743
|
+
return /* @__PURE__ */ P.jsxs("svg", {
|
|
4744
4744
|
...g,
|
|
4745
4745
|
"aria-hidden": !0,
|
|
4746
4746
|
ref: e,
|
|
4747
|
-
width:
|
|
4747
|
+
width: T ? o : o + k,
|
|
4748
4748
|
height: o,
|
|
4749
4749
|
viewBox: "0 0 " + o + " " + (l > o ? l : o),
|
|
4750
4750
|
style: {
|
|
@@ -4752,24 +4752,24 @@ const Yf = /* @__PURE__ */ te.forwardRef(function(r, e) {
|
|
|
4752
4752
|
pointerEvents: "none",
|
|
4753
4753
|
[F]: j,
|
|
4754
4754
|
[O]: B,
|
|
4755
|
-
[D]: _ ||
|
|
4756
|
-
transform: [
|
|
4755
|
+
[D]: _ || T ? "100%" : "calc(100% - " + k / 2 + "px)",
|
|
4756
|
+
transform: [M, h].filter((z) => !!z).join(" "),
|
|
4757
4757
|
...y
|
|
4758
4758
|
},
|
|
4759
|
-
children: [k > 0 && /* @__PURE__ */
|
|
4759
|
+
children: [k > 0 && /* @__PURE__ */ P.jsx("path", {
|
|
4760
4760
|
clipPath: "url(#" + w + ")",
|
|
4761
4761
|
fill: "none",
|
|
4762
4762
|
stroke: p,
|
|
4763
4763
|
strokeWidth: k + (f ? 0 : 1),
|
|
4764
4764
|
d: Y
|
|
4765
|
-
}), /* @__PURE__ */
|
|
4765
|
+
}), /* @__PURE__ */ P.jsx("path", {
|
|
4766
4766
|
stroke: k && !f ? g.fill : "none",
|
|
4767
4767
|
d: Y
|
|
4768
|
-
}), /* @__PURE__ */
|
|
4768
|
+
}), /* @__PURE__ */ P.jsx("clipPath", {
|
|
4769
4769
|
id: w,
|
|
4770
|
-
children: /* @__PURE__ */
|
|
4770
|
+
children: /* @__PURE__ */ P.jsx("rect", {
|
|
4771
4771
|
x: -x,
|
|
4772
|
-
y: x * (
|
|
4772
|
+
y: x * (T ? -1 : 1),
|
|
4773
4773
|
width: o + k,
|
|
4774
4774
|
height: o
|
|
4775
4775
|
})
|
|
@@ -4931,7 +4931,7 @@ var Kf = function(n) {
|
|
|
4931
4931
|
var r = n.showTimeSelectOnly, e = r === void 0 ? !1 : r, t = n.showTime, a = t === void 0 ? !1 : t, i = n.className, s = n.children, o = n.inline, l = e ? "Choose Time" : "Choose Date".concat(a ? " and Time" : "");
|
|
4932
4932
|
return S.createElement("div", { className: i, "aria-label": l, role: o ? void 0 : "dialog", "aria-modal": o ? void 0 : "true" }, s);
|
|
4933
4933
|
}, qf = function(n, r) {
|
|
4934
|
-
var e =
|
|
4934
|
+
var e = G(null), t = G(n);
|
|
4935
4935
|
Z(function() {
|
|
4936
4936
|
t.current = n;
|
|
4937
4937
|
}, [n]);
|
|
@@ -4964,7 +4964,7 @@ function ce(n) {
|
|
|
4964
4964
|
if (n == null)
|
|
4965
4965
|
return /* @__PURE__ */ new Date();
|
|
4966
4966
|
var r = typeof n == "string" ? yd(n) : K(n);
|
|
4967
|
-
return
|
|
4967
|
+
return Je(r) ? r : /* @__PURE__ */ new Date();
|
|
4968
4968
|
}
|
|
4969
4969
|
function lr(n, r, e, t, a) {
|
|
4970
4970
|
a === void 0 && (a = ce());
|
|
@@ -4972,15 +4972,15 @@ function lr(n, r, e, t, a) {
|
|
|
4972
4972
|
var c = l[o], u = dd(n, c, a, {
|
|
4973
4973
|
locale: i
|
|
4974
4974
|
});
|
|
4975
|
-
if (
|
|
4975
|
+
if (Je(u) && (!t || n === he(u, c, e)))
|
|
4976
4976
|
return u;
|
|
4977
4977
|
}
|
|
4978
4978
|
return null;
|
|
4979
4979
|
}
|
|
4980
|
-
function
|
|
4980
|
+
function Je(n, r) {
|
|
4981
4981
|
return jn(n) && !yt(n, /* @__PURE__ */ new Date("1/1/1800"));
|
|
4982
4982
|
}
|
|
4983
|
-
function
|
|
4983
|
+
function he(n, r, e) {
|
|
4984
4984
|
if (e === "en")
|
|
4985
4985
|
return es(n, r, {
|
|
4986
4986
|
useAdditionalWeekYearTokens: !0,
|
|
@@ -4993,25 +4993,25 @@ function pe(n, r, e) {
|
|
|
4993
4993
|
useAdditionalDayOfYearTokens: !0
|
|
4994
4994
|
});
|
|
4995
4995
|
}
|
|
4996
|
-
function
|
|
4996
|
+
function Qe(n, r) {
|
|
4997
4997
|
var e = r.dateFormat, t = r.locale, a = Array.isArray(e) && e.length > 0 ? e[0] : e;
|
|
4998
|
-
return n &&
|
|
4998
|
+
return n && he(n, a, t) || "";
|
|
4999
4999
|
}
|
|
5000
5000
|
var Jo = " - ";
|
|
5001
5001
|
function Qf(n, r, e) {
|
|
5002
5002
|
if (!n && !r)
|
|
5003
5003
|
return "";
|
|
5004
|
-
var t = n ?
|
|
5004
|
+
var t = n ? Qe(n, e) : "", a = r ? Qe(r, e) : "", i = e.rangeSeparator || Jo;
|
|
5005
5005
|
return "".concat(t).concat(i).concat(a);
|
|
5006
5006
|
}
|
|
5007
5007
|
function Xf(n, r) {
|
|
5008
5008
|
if (!(n != null && n.length))
|
|
5009
5009
|
return "";
|
|
5010
|
-
var e = n[0] ?
|
|
5010
|
+
var e = n[0] ? Qe(n[0], r) : "";
|
|
5011
5011
|
if (n.length === 1)
|
|
5012
5012
|
return e;
|
|
5013
5013
|
if (n.length === 2 && n[1]) {
|
|
5014
|
-
var t =
|
|
5014
|
+
var t = Qe(n[1], r);
|
|
5015
5015
|
return "".concat(e, ", ").concat(t);
|
|
5016
5016
|
}
|
|
5017
5017
|
var a = n.length - 1;
|
|
@@ -5025,7 +5025,7 @@ function Jf(n) {
|
|
|
5025
5025
|
return hi(n);
|
|
5026
5026
|
}
|
|
5027
5027
|
function Zf(n, r) {
|
|
5028
|
-
return
|
|
5028
|
+
return he(n, "ddd", r);
|
|
5029
5029
|
}
|
|
5030
5030
|
function Vr(n) {
|
|
5031
5031
|
return tr(n);
|
|
@@ -5098,24 +5098,24 @@ function xr(n) {
|
|
|
5098
5098
|
return n;
|
|
5099
5099
|
}
|
|
5100
5100
|
function rp(n, r, e) {
|
|
5101
|
-
return r(
|
|
5101
|
+
return r(he(n, "EEEE", e));
|
|
5102
5102
|
}
|
|
5103
5103
|
function np(n, r) {
|
|
5104
|
-
return
|
|
5104
|
+
return he(n, "EEEEEE", r);
|
|
5105
5105
|
}
|
|
5106
5106
|
function ap(n, r) {
|
|
5107
|
-
return
|
|
5107
|
+
return he(n, "EEE", r);
|
|
5108
5108
|
}
|
|
5109
5109
|
function xi(n, r) {
|
|
5110
|
-
return
|
|
5110
|
+
return he(Xe(ce(), n), "LLLL", r);
|
|
5111
5111
|
}
|
|
5112
5112
|
function el(n, r) {
|
|
5113
|
-
return
|
|
5113
|
+
return he(Xe(ce(), n), "LLL", r);
|
|
5114
5114
|
}
|
|
5115
5115
|
function ip(n, r) {
|
|
5116
|
-
return
|
|
5116
|
+
return he(hr(ce(), n), "QQQ", r);
|
|
5117
5117
|
}
|
|
5118
|
-
function
|
|
5118
|
+
function tt(n, r) {
|
|
5119
5119
|
var e = r === void 0 ? {} : r, t = e.minDate, a = e.maxDate, i = e.excludeDates, s = e.excludeDateIntervals, o = e.includeDates, l = e.includeDateIntervals, c = e.filterDate, u = e.disabled;
|
|
5120
5120
|
return u ? !0 : sn(n, { minDate: t, maxDate: a }) || i && i.some(function(d) {
|
|
5121
5121
|
return d instanceof Date ? oe(n, d) : oe(n, d.date);
|
|
@@ -5151,7 +5151,7 @@ function tl(n, r) {
|
|
|
5151
5151
|
}) || o && !o(ce(n)) || !1;
|
|
5152
5152
|
}
|
|
5153
5153
|
function fn(n, r, e, t) {
|
|
5154
|
-
var a = ie(n), i =
|
|
5154
|
+
var a = ie(n), i = Ke(n), s = ie(r), o = Ke(r), l = ie(t);
|
|
5155
5155
|
return a === s && a === l ? i <= e && e <= o : a < s ? l === a && i <= e || l === s && o >= e || l < s && l > a : !1;
|
|
5156
5156
|
}
|
|
5157
5157
|
function sp(n, r) {
|
|
@@ -5293,7 +5293,7 @@ function Ds(n, r) {
|
|
|
5293
5293
|
for (var t = /* @__PURE__ */ new Map(), a = 0, i = n.length; a < i; a++) {
|
|
5294
5294
|
var s = n[a];
|
|
5295
5295
|
if (Tt(s)) {
|
|
5296
|
-
var o =
|
|
5296
|
+
var o = he(s, "MM.dd.yyyy"), l = t.get(o) || [];
|
|
5297
5297
|
l.includes(r) || (l.push(r), t.set(o, l));
|
|
5298
5298
|
} else if (typeof s == "object") {
|
|
5299
5299
|
var c = Object.keys(s), u = (e = c[0]) !== null && e !== void 0 ? e : "", d = s[u];
|
|
@@ -5301,7 +5301,7 @@ function Ds(n, r) {
|
|
|
5301
5301
|
for (var p = 0, f = d.length; p < f; p++) {
|
|
5302
5302
|
var h = d[p];
|
|
5303
5303
|
if (h) {
|
|
5304
|
-
var o =
|
|
5304
|
+
var o = he(h, "MM.dd.yyyy"), l = t.get(o) || [];
|
|
5305
5305
|
l.includes(u) || (l.push(u), t.set(o, l));
|
|
5306
5306
|
}
|
|
5307
5307
|
}
|
|
@@ -5320,7 +5320,7 @@ function fp(n, r) {
|
|
|
5320
5320
|
return n.forEach(function(t) {
|
|
5321
5321
|
var a = t.date, i = t.holidayName;
|
|
5322
5322
|
if (Tt(a)) {
|
|
5323
|
-
var s =
|
|
5323
|
+
var s = he(a, "MM.dd.yyyy"), o = e.get(s) || {
|
|
5324
5324
|
className: "",
|
|
5325
5325
|
holidayNames: []
|
|
5326
5326
|
};
|
|
@@ -5447,7 +5447,7 @@ var mp = (
|
|
|
5447
5447
|
}) : e.isSameDayOrWeek(e.props.selected), i = e.props.preSelection && e.isDisabled(e.props.preSelection);
|
|
5448
5448
|
return !a && e.isSameDayOrWeek(e.props.preSelection) && !i;
|
|
5449
5449
|
}, e.isDisabled = function(t) {
|
|
5450
|
-
return t === void 0 && (t = e.props.day),
|
|
5450
|
+
return t === void 0 && (t = e.props.day), tt(t, {
|
|
5451
5451
|
minDate: e.props.minDate,
|
|
5452
5452
|
maxDate: e.props.maxDate,
|
|
5453
5453
|
excludeDates: e.props.excludeDates,
|
|
@@ -5472,13 +5472,13 @@ var mp = (
|
|
|
5472
5472
|
var t = e.props, a = t.day, i = t.highlightDates;
|
|
5473
5473
|
if (!i)
|
|
5474
5474
|
return !1;
|
|
5475
|
-
var s =
|
|
5475
|
+
var s = he(a, "MM.dd.yyyy");
|
|
5476
5476
|
return i.get(s);
|
|
5477
5477
|
}, e.getHolidaysClass = function() {
|
|
5478
5478
|
var t, a = e.props, i = a.day, s = a.holidays;
|
|
5479
5479
|
if (!s)
|
|
5480
5480
|
return [void 0];
|
|
5481
|
-
var o =
|
|
5481
|
+
var o = he(i, "MM.dd.yyyy");
|
|
5482
5482
|
return s.has(o) ? [(t = s.get(o)) === null || t === void 0 ? void 0 : t.className] : [void 0];
|
|
5483
5483
|
}, e.isInRange = function() {
|
|
5484
5484
|
var t = e.props, a = t.day, i = t.startDate, s = t.endDate;
|
|
@@ -5520,9 +5520,9 @@ var mp = (
|
|
|
5520
5520
|
var t = fu(e.props.day);
|
|
5521
5521
|
return t === 0 || t === 6;
|
|
5522
5522
|
}, e.isAfterMonth = function() {
|
|
5523
|
-
return e.props.month !== void 0 && (e.props.month + 1) % 12 ===
|
|
5523
|
+
return e.props.month !== void 0 && (e.props.month + 1) % 12 === Ke(e.props.day);
|
|
5524
5524
|
}, e.isBeforeMonth = function() {
|
|
5525
|
-
return e.props.month !== void 0 && (
|
|
5525
|
+
return e.props.month !== void 0 && (Ke(e.props.day) + 1) % 12 === e.props.month;
|
|
5526
5526
|
}, e.isCurrentDay = function() {
|
|
5527
5527
|
return e.isSameDay(ce());
|
|
5528
5528
|
}, e.isSelected = function() {
|
|
@@ -5549,9 +5549,9 @@ var mp = (
|
|
|
5549
5549
|
}, e.getHighLightedClass(), e.getHolidaysClass());
|
|
5550
5550
|
}, e.getAriaLabel = function() {
|
|
5551
5551
|
var t = e.props, a = t.day, i = t.ariaLabelPrefixWhenEnabled, s = i === void 0 ? "Choose" : i, o = t.ariaLabelPrefixWhenDisabled, l = o === void 0 ? "Not available" : o, c = e.isDisabled() || e.isExcluded() ? l : s;
|
|
5552
|
-
return "".concat(c, " ").concat(
|
|
5552
|
+
return "".concat(c, " ").concat(he(a, "PPPP", e.props.locale));
|
|
5553
5553
|
}, e.getTitle = function() {
|
|
5554
|
-
var t = e.props, a = t.day, i = t.holidays, s = i === void 0 ? /* @__PURE__ */ new Map() : i, o = t.excludeDates, l =
|
|
5554
|
+
var t = e.props, a = t.day, i = t.holidays, s = i === void 0 ? /* @__PURE__ */ new Map() : i, o = t.excludeDates, l = he(a, "MM.dd.yyyy"), c = [];
|
|
5555
5555
|
return s.has(l) && c.push.apply(c, s.get(l).holidayNames), e.isExcluded() && c.push(o == null ? void 0 : o.filter(function(u) {
|
|
5556
5556
|
return u instanceof Date ? oe(u, a) : oe(u == null ? void 0 : u.date, a);
|
|
5557
5557
|
}).map(function(u) {
|
|
@@ -5643,7 +5643,7 @@ var mp = (
|
|
|
5643
5643
|
function r() {
|
|
5644
5644
|
var e = n !== null && n.apply(this, arguments) || this;
|
|
5645
5645
|
return e.isDisabled = function(t) {
|
|
5646
|
-
return
|
|
5646
|
+
return tt(t, {
|
|
5647
5647
|
minDate: e.props.minDate,
|
|
5648
5648
|
maxDate: e.props.maxDate,
|
|
5649
5649
|
excludeDates: e.props.excludeDates,
|
|
@@ -5753,7 +5753,7 @@ var kp = (
|
|
|
5753
5753
|
}), e.QUARTER_REFS = vt([], Array(4), !0).map(function() {
|
|
5754
5754
|
return Ht();
|
|
5755
5755
|
}), e.isDisabled = function(t) {
|
|
5756
|
-
return
|
|
5756
|
+
return tt(t, {
|
|
5757
5757
|
minDate: e.props.minDate,
|
|
5758
5758
|
maxDate: e.props.maxDate,
|
|
5759
5759
|
excludeDates: e.props.excludeDates,
|
|
@@ -5779,13 +5779,13 @@ var kp = (
|
|
|
5779
5779
|
(a = (t = e.props).onMouseLeave) === null || a === void 0 || a.call(t);
|
|
5780
5780
|
}, e.isRangeStartMonth = function(t) {
|
|
5781
5781
|
var a = e.props, i = a.day, s = a.startDate, o = a.endDate;
|
|
5782
|
-
return !s || !o ? !1 : We(
|
|
5782
|
+
return !s || !o ? !1 : We(Xe(i, t), s);
|
|
5783
5783
|
}, e.isRangeStartQuarter = function(t) {
|
|
5784
5784
|
var a = e.props, i = a.day, s = a.startDate, o = a.endDate;
|
|
5785
5785
|
return !s || !o ? !1 : $n(hr(i, t), s);
|
|
5786
5786
|
}, e.isRangeEndMonth = function(t) {
|
|
5787
5787
|
var a = e.props, i = a.day, s = a.startDate, o = a.endDate;
|
|
5788
|
-
return !s || !o ? !1 : We(
|
|
5788
|
+
return !s || !o ? !1 : We(Xe(i, t), o);
|
|
5789
5789
|
}, e.isRangeEndQuarter = function(t) {
|
|
5790
5790
|
var a = e.props, i = a.day, s = a.startDate, o = a.endDate;
|
|
5791
5791
|
return !s || !o ? !1 : $n(hr(i, t), o);
|
|
@@ -5796,13 +5796,13 @@ var kp = (
|
|
|
5796
5796
|
var a;
|
|
5797
5797
|
if (!e.isInSelectingRangeMonth(t))
|
|
5798
5798
|
return !1;
|
|
5799
|
-
var i = e.props, s = i.day, o = i.startDate, l = i.selectsStart, c =
|
|
5799
|
+
var i = e.props, s = i.day, o = i.startDate, l = i.selectsStart, c = Xe(s, t), u = (a = e.props.selectingDate) !== null && a !== void 0 ? a : e.props.preSelection;
|
|
5800
5800
|
return l ? We(c, u) : We(c, o);
|
|
5801
5801
|
}, e.isSelectingMonthRangeEnd = function(t) {
|
|
5802
5802
|
var a;
|
|
5803
5803
|
if (!e.isInSelectingRangeMonth(t))
|
|
5804
5804
|
return !1;
|
|
5805
|
-
var i = e.props, s = i.day, o = i.endDate, l = i.selectsEnd, c = i.selectsRange, u =
|
|
5805
|
+
var i = e.props, s = i.day, o = i.endDate, l = i.selectsEnd, c = i.selectsRange, u = Xe(s, t), d = (a = e.props.selectingDate) !== null && a !== void 0 ? a : e.props.preSelection;
|
|
5806
5806
|
return l || c ? We(u, d) : We(u, o);
|
|
5807
5807
|
}, e.isInSelectingRangeQuarter = function(t) {
|
|
5808
5808
|
var a, i = e.props, s = i.day, o = i.selectsStart, l = i.selectsEnd, c = i.selectsRange, u = i.startDate, d = i.endDate, p = (a = e.props.selectingDate) !== null && a !== void 0 ? a : e.props.preSelection;
|
|
@@ -5811,11 +5811,11 @@ var kp = (
|
|
|
5811
5811
|
var a = e.props.day, i = lt(t, 6);
|
|
5812
5812
|
return We(t, a) || We(i, a);
|
|
5813
5813
|
}, e.isCurrentMonth = function(t, a) {
|
|
5814
|
-
return ie(t) === ie(ce()) && a ===
|
|
5814
|
+
return ie(t) === ie(ce()) && a === Ke(ce());
|
|
5815
5815
|
}, e.isCurrentQuarter = function(t, a) {
|
|
5816
5816
|
return ie(t) === ie(ce()) && a === Bt(ce());
|
|
5817
5817
|
}, e.isSelectedMonth = function(t, a, i) {
|
|
5818
|
-
return
|
|
5818
|
+
return Ke(i) === a && ie(t) === ie(i);
|
|
5819
5819
|
}, e.isSelectMonthInList = function(t, a, i) {
|
|
5820
5820
|
return i.some(function(s) {
|
|
5821
5821
|
return e.isSelectedMonth(t, a, s);
|
|
@@ -5827,7 +5827,7 @@ var kp = (
|
|
|
5827
5827
|
return e.isSelectedQuarter(t, a, s);
|
|
5828
5828
|
});
|
|
5829
5829
|
}, e.isMonthSelected = function() {
|
|
5830
|
-
var t = e.props, a = t.day, i = t.selected, s = t.selectedDates, o = t.selectsMultiple, l =
|
|
5830
|
+
var t = e.props, a = t.day, i = t.selected, s = t.selectedDates, o = t.selectsMultiple, l = Ke(a);
|
|
5831
5831
|
return o ? s == null ? void 0 : s.some(function(c) {
|
|
5832
5832
|
return e.isSelectedMonth(a, l, c);
|
|
5833
5833
|
}) : !!i && e.isSelectedMonth(a, l, i);
|
|
@@ -5837,13 +5837,13 @@ var kp = (
|
|
|
5837
5837
|
return e.isSelectedQuarter(a, l, c);
|
|
5838
5838
|
}) : !!i && e.isSelectedQuarter(a, l, i);
|
|
5839
5839
|
}, e.renderWeeks = function() {
|
|
5840
|
-
if (!
|
|
5840
|
+
if (!Je(e.props.day))
|
|
5841
5841
|
return [];
|
|
5842
5842
|
for (var t = [], a = e.props.fixedHeight, i = 0, s = !1, o = Wt(Et(e.props.day), e.props.locale, e.props.calendarStartDay), l = function(h) {
|
|
5843
5843
|
return e.props.showWeekPicker ? Wt(h, e.props.locale, e.props.calendarStartDay) : e.props.preSelection;
|
|
5844
5844
|
}, c = function(h) {
|
|
5845
5845
|
return e.props.showWeekPicker ? Wt(h, e.props.locale, e.props.calendarStartDay) : e.props.selected;
|
|
5846
|
-
}, u = e.props.selected ? c(e.props.selected) : void 0, d = e.props.preSelection ? l(e.props.preSelection) : void 0; t.push(S.createElement(vp, ae({}, e.props, { ariaLabelPrefix: e.props.weekAriaLabelPrefix, key: i, day: o, month:
|
|
5846
|
+
}, u = e.props.selected ? c(e.props.selected) : void 0, d = e.props.preSelection ? l(e.props.preSelection) : void 0; t.push(S.createElement(vp, ae({}, e.props, { ariaLabelPrefix: e.props.weekAriaLabelPrefix, key: i, day: o, month: Ke(e.props.day), onDayClick: e.handleDayClick, onDayMouseEnter: e.handleDayMouseEnter, selected: u, preSelection: d, showWeekNumber: e.props.showWeekNumbers }))), !s; ) {
|
|
5847
5847
|
i++, o = Fn(o, 1);
|
|
5848
5848
|
var p = a && i >= bp, f = !a && !e.isWeekInMonth(o);
|
|
5849
5849
|
if (p || f)
|
|
@@ -5865,25 +5865,25 @@ var kp = (
|
|
|
5865
5865
|
}, e.handleKeyboardNavigation = function(t, a, i) {
|
|
5866
5866
|
var s, o = e.props, l = o.selected, c = o.preSelection, u = o.setPreSelection, d = o.minDate, p = o.maxDate, f = o.showFourColumnMonthYearPicker, h = o.showTwoColumnMonthYearPicker;
|
|
5867
5867
|
if (c) {
|
|
5868
|
-
var y = Ps(f, h), g = e.getVerticalOffset(y), w = (s = Na[y]) === null || s === void 0 ? void 0 : s.grid, v = function(
|
|
5869
|
-
var L, C,
|
|
5870
|
-
switch (
|
|
5868
|
+
var y = Ps(f, h), g = e.getVerticalOffset(y), w = (s = Na[y]) === null || s === void 0 ? void 0 : s.grid, v = function(E, k, x) {
|
|
5869
|
+
var L, C, T = k, O = x;
|
|
5870
|
+
switch (E) {
|
|
5871
5871
|
case U.ArrowRight:
|
|
5872
|
-
|
|
5872
|
+
T = ct(k, gn), O = x === 11 ? 0 : x + gn;
|
|
5873
5873
|
break;
|
|
5874
5874
|
case U.ArrowLeft:
|
|
5875
|
-
|
|
5875
|
+
T = Zt(k, gn), O = x === 0 ? 11 : x - gn;
|
|
5876
5876
|
break;
|
|
5877
5877
|
case U.ArrowUp:
|
|
5878
|
-
|
|
5878
|
+
T = Zt(k, g), O = !((L = w == null ? void 0 : w[0]) === null || L === void 0) && L.includes(x) ? x + 12 - g : x - g;
|
|
5879
5879
|
break;
|
|
5880
5880
|
case U.ArrowDown:
|
|
5881
|
-
|
|
5881
|
+
T = ct(k, g), O = !((C = w == null ? void 0 : w[w.length - 1]) === null || C === void 0) && C.includes(x) ? x - 12 + g : x + g;
|
|
5882
5882
|
break;
|
|
5883
5883
|
}
|
|
5884
|
-
return { newCalculatedDate:
|
|
5885
|
-
}, b = function(
|
|
5886
|
-
for (var L = 40, C =
|
|
5884
|
+
return { newCalculatedDate: T, newCalculatedMonth: O };
|
|
5885
|
+
}, b = function(E, k, x) {
|
|
5886
|
+
for (var L = 40, C = E, T = !1, O = 0, F = v(C, k, x), j = F.newCalculatedDate, B = F.newCalculatedMonth; !T; ) {
|
|
5887
5887
|
if (O >= L) {
|
|
5888
5888
|
j = k, B = x;
|
|
5889
5889
|
break;
|
|
@@ -5902,7 +5902,7 @@ var kp = (
|
|
|
5902
5902
|
var Y = v(C, j, B);
|
|
5903
5903
|
j = Y.newCalculatedDate, B = Y.newCalculatedMonth;
|
|
5904
5904
|
} else
|
|
5905
|
-
|
|
5905
|
+
T = !0;
|
|
5906
5906
|
O++;
|
|
5907
5907
|
}
|
|
5908
5908
|
return { newCalculatedDate: j, newCalculatedMonth: B };
|
|
@@ -5955,10 +5955,10 @@ var kp = (
|
|
|
5955
5955
|
break;
|
|
5956
5956
|
}
|
|
5957
5957
|
}, e.isMonthDisabledForLabelDate = function(t) {
|
|
5958
|
-
var a, i = e.props, s = i.day, o = i.disabled, l = i.minDate, c = i.maxDate, u = i.excludeDates, d = i.includeDates, p =
|
|
5958
|
+
var a, i = e.props, s = i.day, o = i.disabled, l = i.minDate, c = i.maxDate, u = i.excludeDates, d = i.includeDates, p = Xe(s, t);
|
|
5959
5959
|
return o ? {
|
|
5960
5960
|
isDisabled: !0,
|
|
5961
|
-
labelDate:
|
|
5961
|
+
labelDate: Xe(s, t)
|
|
5962
5962
|
} : {
|
|
5963
5963
|
isDisabled: (a = (l || c || u || d) && tl(p, e.props)) !== null && a !== void 0 ? a : !1,
|
|
5964
5964
|
labelDate: p
|
|
@@ -5967,7 +5967,7 @@ var kp = (
|
|
|
5967
5967
|
var a = e.isMonthDisabledForLabelDate(t).isDisabled;
|
|
5968
5968
|
return a;
|
|
5969
5969
|
}, e.getMonthClassNames = function(t) {
|
|
5970
|
-
var a = e.props, i = a.day, s = a.startDate, o = a.endDate, l = a.preSelection, c = a.monthClassName, u = c ? c(
|
|
5970
|
+
var a = e.props, i = a.day, s = a.startDate, o = a.endDate, l = a.preSelection, c = a.monthClassName, u = c ? c(Xe(i, t)) : void 0, d = e.getSelection();
|
|
5971
5971
|
return Le("react-datepicker__month-text", "react-datepicker__month-".concat(t), u, {
|
|
5972
5972
|
"react-datepicker__month-text--disabled": e.isMonthDisabled(t),
|
|
5973
5973
|
"react-datepicker__month-text--selected": d ? e.isSelectMonthInList(i, t, d) : void 0,
|
|
@@ -5983,7 +5983,7 @@ var kp = (
|
|
|
5983
5983
|
}, e.getTabIndex = function(t) {
|
|
5984
5984
|
if (e.props.preSelection == null)
|
|
5985
5985
|
return "-1";
|
|
5986
|
-
var a =
|
|
5986
|
+
var a = Ke(e.props.preSelection), i = e.isMonthDisabledForLabelDate(a).isDisabled, s = t === a && !(i || e.props.disabledKeyboardNavigation) ? "0" : "-1";
|
|
5987
5987
|
return s;
|
|
5988
5988
|
}, e.getQuarterTabIndex = function(t) {
|
|
5989
5989
|
if (e.props.preSelection == null)
|
|
@@ -5991,8 +5991,8 @@ var kp = (
|
|
|
5991
5991
|
var a = Bt(e.props.preSelection), i = pn(e.props.day, e.props), s = t === a && !(i || e.props.disabledKeyboardNavigation) ? "0" : "-1";
|
|
5992
5992
|
return s;
|
|
5993
5993
|
}, e.getAriaLabel = function(t) {
|
|
5994
|
-
var a = e.props, i = a.chooseDayAriaLabelPrefix, s = i === void 0 ? "Choose" : i, o = a.disabledDayAriaLabelPrefix, l = o === void 0 ? "Not available" : o, c = a.day, u = a.locale, d =
|
|
5995
|
-
return "".concat(p, " ").concat(
|
|
5994
|
+
var a = e.props, i = a.chooseDayAriaLabelPrefix, s = i === void 0 ? "Choose" : i, o = a.disabledDayAriaLabelPrefix, l = o === void 0 ? "Not available" : o, c = a.day, u = a.locale, d = Xe(c, t), p = e.isDisabled(d) || e.isExcluded(d) ? l : s;
|
|
5995
|
+
return "".concat(p, " ").concat(he(d, "MMMM yyyy", u));
|
|
5996
5996
|
}, e.getQuarterClassNames = function(t) {
|
|
5997
5997
|
var a = e.props, i = a.day, s = a.startDate, o = a.endDate, l = a.minDate, c = a.maxDate, u = a.excludeDates, d = a.includeDates, p = a.filterDate, f = a.preSelection, h = a.disabledKeyboardNavigation, y = a.disabled, g = (l || c || u || d || p || y) && pn(hr(i, t), e.props), w = e.getSelection();
|
|
5998
5998
|
return Le("react-datepicker__quarter-text", "react-datepicker__quarter-".concat(t), {
|
|
@@ -6053,7 +6053,7 @@ var kp = (
|
|
|
6053
6053
|
if (t)
|
|
6054
6054
|
return [t];
|
|
6055
6055
|
}, r.prototype.render = function() {
|
|
6056
|
-
var e = this.props, t = e.showMonthYearPicker, a = e.showQuarterYearPicker, i = e.day, s = e.ariaLabelPrefix, o = s === void 0 ? "Month " : s, l = o ? o.trim() + " " : "", c =
|
|
6056
|
+
var e = this.props, t = e.showMonthYearPicker, a = e.showQuarterYearPicker, i = e.day, s = e.ariaLabelPrefix, o = s === void 0 ? "Month " : s, l = o ? o.trim() + " " : "", c = Je(i) ? "".concat(l).concat(he(i, "MMMM, yyyy", this.props.locale)) : "", u = t || a;
|
|
6057
6057
|
return u ? S.createElement("div", { className: this.getClassNames(), onMouseLeave: this.props.usePointerEvent ? void 0 : this.handleMouseLeave, onPointerLeave: this.props.usePointerEvent ? this.handleMouseLeave : void 0, "aria-label": c, role: "listbox" }, t ? this.renderMonths() : this.renderQuarters()) : S.createElement(
|
|
6058
6058
|
"div",
|
|
6059
6059
|
{ role: "table" },
|
|
@@ -6180,7 +6180,7 @@ var Dp = (
|
|
|
6180
6180
|
"div",
|
|
6181
6181
|
{ className: s ? "react-datepicker__month-year-option--selected_month-year" : "react-datepicker__month-year-option", key: i, onClick: t.onChange.bind(t, i), "aria-selected": s ? "true" : void 0 },
|
|
6182
6182
|
s ? S.createElement("span", { className: "react-datepicker__month-year-option--selected" }, "✓") : "",
|
|
6183
|
-
|
|
6183
|
+
he(a, t.props.dateFormat, t.props.locale)
|
|
6184
6184
|
);
|
|
6185
6185
|
});
|
|
6186
6186
|
}, t.onChange = function(a) {
|
|
@@ -6210,7 +6210,7 @@ var Dp = (
|
|
|
6210
6210
|
}, e.renderSelectOptions = function() {
|
|
6211
6211
|
for (var t = Et(e.props.minDate), a = Et(e.props.maxDate), i = []; !Ut(t, a); ) {
|
|
6212
6212
|
var s = Xa(t);
|
|
6213
|
-
i.push(S.createElement("option", { key: s, value: s },
|
|
6213
|
+
i.push(S.createElement("option", { key: s, value: s }, he(t, e.props.dateFormat, e.props.locale))), t = ct(t, 1);
|
|
6214
6214
|
}
|
|
6215
6215
|
return i;
|
|
6216
6216
|
}, e.onSelectChange = function(t) {
|
|
@@ -6218,7 +6218,7 @@ var Dp = (
|
|
|
6218
6218
|
}, e.renderSelectMode = function() {
|
|
6219
6219
|
return S.createElement("select", { value: Xa(Et(e.props.date)), className: "react-datepicker__month-year-select", onChange: e.onSelectChange }, e.renderSelectOptions());
|
|
6220
6220
|
}, e.renderReadView = function(t) {
|
|
6221
|
-
var a =
|
|
6221
|
+
var a = he(e.props.date, e.props.dateFormat, e.props.locale);
|
|
6222
6222
|
return S.createElement(
|
|
6223
6223
|
"div",
|
|
6224
6224
|
{ key: "read", style: { visibility: t ? "visible" : "hidden" }, className: "react-datepicker__month-year-read-view", onClick: e.toggleDropdown },
|
|
@@ -6300,7 +6300,7 @@ var Dp = (
|
|
|
6300
6300
|
g === y && (e.centerLi = w);
|
|
6301
6301
|
}, onKeyDown: function(w) {
|
|
6302
6302
|
e.handleOnKeyDown(w, g);
|
|
6303
|
-
}, tabIndex: g === y ? 0 : -1, role: "option", "aria-selected": e.isSelectedTime(g) ? "true" : void 0, "aria-disabled": e.isDisabledTime(g) ? "true" : void 0 },
|
|
6303
|
+
}, tabIndex: g === y ? 0 : -1, role: "option", "aria-selected": e.isSelectedTime(g) ? "true" : void 0, "aria-disabled": e.isDisabledTime(g) ? "true" : void 0 }, he(g, i, e.props.locale));
|
|
6304
6304
|
});
|
|
6305
6305
|
}, e.renderTimeCaption = function() {
|
|
6306
6306
|
return e.props.showTimeCaption === !1 ? S.createElement(S.Fragment, null) : S.createElement(
|
|
@@ -6368,7 +6368,7 @@ var Dp = (
|
|
|
6368
6368
|
return t.YEAR_REFS = vt([], Array(t.props.yearItemNumber), !0).map(function() {
|
|
6369
6369
|
return Ht();
|
|
6370
6370
|
}), t.isDisabled = function(a) {
|
|
6371
|
-
return
|
|
6371
|
+
return tt(a, {
|
|
6372
6372
|
minDate: t.props.minDate,
|
|
6373
6373
|
maxDate: t.props.maxDate,
|
|
6374
6374
|
excludeDates: t.props.excludeDates,
|
|
@@ -6737,11 +6737,11 @@ var Tp = (
|
|
|
6737
6737
|
var i, s, o, l;
|
|
6738
6738
|
(s = (i = t.props).onYearChange) === null || s === void 0 || s.call(i, a), t.setState({ isRenderAriaLiveMessage: !0 }), t.props.adjustDateOnChange && (t.props.onSelect(a), (l = (o = t.props).setOpen) === null || l === void 0 || l.call(o, !0)), t.props.setPreSelection && t.props.setPreSelection(a);
|
|
6739
6739
|
}, t.getEnabledPreSelectionDateForMonth = function(a) {
|
|
6740
|
-
if (!
|
|
6740
|
+
if (!tt(a, t.props))
|
|
6741
6741
|
return a;
|
|
6742
6742
|
for (var i = Et(a), s = tp(a), o = gc(s, i), l = null, c = 0; c <= o; c++) {
|
|
6743
6743
|
var u = lt(i, c);
|
|
6744
|
-
if (!
|
|
6744
|
+
if (!tt(u, t.props)) {
|
|
6745
6745
|
l = u;
|
|
6746
6746
|
break;
|
|
6747
6747
|
}
|
|
@@ -6768,7 +6768,7 @@ var Tp = (
|
|
|
6768
6768
|
t.setState(function(i) {
|
|
6769
6769
|
var s = i.date;
|
|
6770
6770
|
return {
|
|
6771
|
-
date:
|
|
6771
|
+
date: Xe(s, Number(a))
|
|
6772
6772
|
};
|
|
6773
6773
|
}, function() {
|
|
6774
6774
|
return t.handleMonthChange(t.state.date);
|
|
@@ -6777,13 +6777,13 @@ var Tp = (
|
|
|
6777
6777
|
t.setState(function(i) {
|
|
6778
6778
|
var s = i.date;
|
|
6779
6779
|
return {
|
|
6780
|
-
date: ft(
|
|
6780
|
+
date: ft(Xe(s, Ke(a)), ie(a))
|
|
6781
6781
|
};
|
|
6782
6782
|
}, function() {
|
|
6783
6783
|
return t.handleMonthYearChange(t.state.date);
|
|
6784
6784
|
});
|
|
6785
6785
|
}, t.header = function(a) {
|
|
6786
|
-
if (a === void 0 && (a = t.state.date), !
|
|
6786
|
+
if (a === void 0 && (a = t.state.date), !Je(a))
|
|
6787
6787
|
return [];
|
|
6788
6788
|
var i = t.props.disabled, s = Wt(a, t.props.locale, t.props.calendarStartDay), o = [];
|
|
6789
6789
|
return t.props.showWeekNumbers && o.push(S.createElement(
|
|
@@ -6796,7 +6796,7 @@ var Tp = (
|
|
|
6796
6796
|
return S.createElement(
|
|
6797
6797
|
"div",
|
|
6798
6798
|
{ key: l, role: "columnheader", className: Le("react-datepicker__day-name", d, i ? "react-datepicker__day-name--disabled" : "") },
|
|
6799
|
-
S.createElement("span", { className: "react-datepicker__sr-only" },
|
|
6799
|
+
S.createElement("span", { className: "react-datepicker__sr-only" }, he(c, "EEEE", t.props.locale)),
|
|
6800
6800
|
S.createElement("span", { "aria-hidden": "true" }, u)
|
|
6801
6801
|
);
|
|
6802
6802
|
}));
|
|
@@ -6843,10 +6843,10 @@ var Tp = (
|
|
|
6843
6843
|
"react-datepicker__navigation--previous"
|
|
6844
6844
|
], h = t.decreaseMonth;
|
|
6845
6845
|
(t.props.showMonthYearPicker || t.props.showQuarterYearPicker || t.props.showYearPicker) && (h = t.decreaseYear), d && t.props.showDisabledMonthNavigation && (f.push("react-datepicker__navigation--previous--disabled"), h = void 0);
|
|
6846
|
-
var y = t.props.showMonthYearPicker || t.props.showQuarterYearPicker || t.props.showYearPicker, g = t.props, w = g.previousMonthButtonLabel, v = w === void 0 ? r.defaultProps.previousMonthButtonLabel : w, b = g.previousYearButtonLabel, D = b === void 0 ? r.defaultProps.previousYearButtonLabel : b, I = t.props, _ = I.previousMonthAriaLabel,
|
|
6846
|
+
var y = t.props.showMonthYearPicker || t.props.showQuarterYearPicker || t.props.showYearPicker, g = t.props, w = g.previousMonthButtonLabel, v = w === void 0 ? r.defaultProps.previousMonthButtonLabel : w, b = g.previousYearButtonLabel, D = b === void 0 ? r.defaultProps.previousYearButtonLabel : b, I = t.props, _ = I.previousMonthAriaLabel, E = _ === void 0 ? typeof v == "string" ? v : "Previous Month" : _, k = I.previousYearAriaLabel, x = k === void 0 ? typeof D == "string" ? D : "Previous Year" : k;
|
|
6847
6847
|
return S.createElement(
|
|
6848
6848
|
"button",
|
|
6849
|
-
{ type: "button", className: f.join(" "), onClick: h, onKeyDown: t.props.handleOnKeyDown, "aria-label": y ? x :
|
|
6849
|
+
{ type: "button", className: f.join(" "), onClick: h, onKeyDown: t.props.handleOnKeyDown, "aria-label": y ? x : E },
|
|
6850
6850
|
S.createElement("span", { className: p.join(" ") }, y ? D : v)
|
|
6851
6851
|
);
|
|
6852
6852
|
}
|
|
@@ -6903,13 +6903,13 @@ var Tp = (
|
|
|
6903
6903
|
}, t.renderCurrentMonth = function(a) {
|
|
6904
6904
|
a === void 0 && (a = t.state.date);
|
|
6905
6905
|
var i = ["react-datepicker__current-month"];
|
|
6906
|
-
return t.props.showYearDropdown && i.push("react-datepicker__current-month--hasYearDropdown"), t.props.showMonthDropdown && i.push("react-datepicker__current-month--hasMonthDropdown"), t.props.showMonthYearDropdown && i.push("react-datepicker__current-month--hasMonthYearDropdown"), S.createElement("h2", { className: i.join(" ") },
|
|
6906
|
+
return t.props.showYearDropdown && i.push("react-datepicker__current-month--hasYearDropdown"), t.props.showMonthDropdown && i.push("react-datepicker__current-month--hasMonthDropdown"), t.props.showMonthYearDropdown && i.push("react-datepicker__current-month--hasMonthYearDropdown"), S.createElement("h2", { className: i.join(" ") }, Je(a) ? he(a, t.props.dateFormat, t.props.locale) : "");
|
|
6907
6907
|
}, t.renderYearDropdown = function(a) {
|
|
6908
6908
|
if (a === void 0 && (a = !1), !(!t.props.showYearDropdown || a))
|
|
6909
6909
|
return S.createElement(Ep, ae({}, r.defaultProps, t.props, { date: t.state.date, onChange: t.changeYear, year: ie(t.state.date) }));
|
|
6910
6910
|
}, t.renderMonthDropdown = function(a) {
|
|
6911
6911
|
if (a === void 0 && (a = !1), !(!t.props.showMonthDropdown || a))
|
|
6912
|
-
return S.createElement(_p, ae({}, r.defaultProps, t.props, { month:
|
|
6912
|
+
return S.createElement(_p, ae({}, r.defaultProps, t.props, { month: Ke(t.state.date), onChange: t.changeMonth }));
|
|
6913
6913
|
}, t.renderMonthYearDropdown = function(a) {
|
|
6914
6914
|
if (a === void 0 && (a = !1), !(!t.props.showMonthYearDropdown || a))
|
|
6915
6915
|
return S.createElement(xp, ae({}, r.defaultProps, t.props, { date: t.state.date, onChange: t.changeMonthYear }));
|
|
@@ -6989,15 +6989,15 @@ var Tp = (
|
|
|
6989
6989
|
if (t.props.showTimeSelect && (t.state.monthContainer || t.props.showTimeSelectOnly))
|
|
6990
6990
|
return S.createElement(Cp, ae({}, r.defaultProps, t.props, { onChange: t.props.onTimeChange, format: t.props.timeFormat, intervals: t.props.timeIntervals, monthRef: t.state.monthContainer }));
|
|
6991
6991
|
}, t.renderInputTimeSection = function() {
|
|
6992
|
-
var a = t.props.selected ? new Date(t.props.selected) : void 0, i = a &&
|
|
6992
|
+
var a = t.props.selected ? new Date(t.props.selected) : void 0, i = a && Je(a) && !!t.props.selected, s = i ? "".concat(xs(a.getHours()), ":").concat(xs(a.getMinutes())) : "";
|
|
6993
6993
|
if (t.props.showTimeInput)
|
|
6994
6994
|
return S.createElement(mp, ae({}, r.defaultProps, t.props, { date: a, timeString: s, onChange: t.props.onTimeChange }));
|
|
6995
6995
|
}, t.renderAriaLiveRegion = function() {
|
|
6996
6996
|
var a;
|
|
6997
|
-
if (!
|
|
6997
|
+
if (!Je(t.state.date))
|
|
6998
6998
|
return S.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" });
|
|
6999
6999
|
var i = Ct(t.state.date, (a = t.props.yearItemNumber) !== null && a !== void 0 ? a : r.defaultProps.yearItemNumber), s = i.startPeriod, o = i.endPeriod, l;
|
|
7000
|
-
return t.props.showYearPicker ? l = "".concat(s, " - ").concat(o) : t.props.showMonthYearPicker || t.props.showQuarterYearPicker ? l = ie(t.state.date) : l = "".concat(xi(
|
|
7000
|
+
return t.props.showYearPicker ? l = "".concat(s, " - ").concat(o) : t.props.showMonthYearPicker || t.props.showQuarterYearPicker ? l = ie(t.state.date) : l = "".concat(xi(Ke(t.state.date), t.props.locale), " ").concat(ie(t.state.date)), S.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, t.state.isRenderAriaLiveMessage && l);
|
|
7001
7001
|
}, t.renderChildren = function() {
|
|
7002
7002
|
if (t.props.children)
|
|
7003
7003
|
return S.createElement("div", { className: "react-datepicker__children-container" }, t.props.children);
|
|
@@ -7031,7 +7031,7 @@ var Tp = (
|
|
|
7031
7031
|
})());
|
|
7032
7032
|
}, r.prototype.componentDidUpdate = function(e) {
|
|
7033
7033
|
var t = this;
|
|
7034
|
-
if (this.props.preSelection &&
|
|
7034
|
+
if (this.props.preSelection && Je(this.props.preSelection) && (!oe(this.props.preSelection, e.preSelection) || this.props.monthSelectedIn !== e.monthSelectedIn)) {
|
|
7035
7035
|
var a = !We(this.state.date, this.props.preSelection);
|
|
7036
7036
|
this.setState({
|
|
7037
7037
|
date: this.props.preSelection
|
|
@@ -7137,7 +7137,7 @@ var Tp = (
|
|
|
7137
7137
|
);
|
|
7138
7138
|
function jp(n) {
|
|
7139
7139
|
function r(e) {
|
|
7140
|
-
var t, a = typeof e.hidePopper == "boolean" ? e.hidePopper : !0, i =
|
|
7140
|
+
var t, a = typeof e.hidePopper == "boolean" ? e.hidePopper : !0, i = G(null), s = $f(ae({ open: !a, whileElementsMounted: Sf, placement: e.popperPlacement, middleware: vt([
|
|
7141
7141
|
If({ padding: 15 }),
|
|
7142
7142
|
Lf(10),
|
|
7143
7143
|
// eslint-disable-next-line react-hooks/refs -- Floating UI requires refs to be passed during render
|
|
@@ -7172,7 +7172,7 @@ var Ap = function(n) {
|
|
|
7172
7172
|
);
|
|
7173
7173
|
}, Bp = jp(Ap);
|
|
7174
7174
|
function Yp(n, r) {
|
|
7175
|
-
return n && r ?
|
|
7175
|
+
return n && r ? Ke(n) !== Ke(r) || ie(n) !== ie(r) : n !== r;
|
|
7176
7176
|
}
|
|
7177
7177
|
var Ra = "Date input not valid.";
|
|
7178
7178
|
(function(n) {
|
|
@@ -7185,7 +7185,7 @@ var Ra = "Date input not valid.";
|
|
|
7185
7185
|
var a;
|
|
7186
7186
|
return (a = t.props.holidays) === null || a === void 0 ? void 0 : a.reduce(function(i, s) {
|
|
7187
7187
|
var o = new Date(s.date);
|
|
7188
|
-
return
|
|
7188
|
+
return Je(o) ? vt(vt([], i, !0), [ae(ae({}, s), { date: o })], !1) : i;
|
|
7189
7189
|
}, []);
|
|
7190
7190
|
}, t.calcInitialState = function() {
|
|
7191
7191
|
var a, i = t.getPreSelection(), s = rl(t.props), o = nl(t.props), l = s && yt(i, Vr(s)) ? s : o && Ut(i, gs(o)) ? o : i;
|
|
@@ -7213,7 +7213,7 @@ var Ra = "Date input not valid.";
|
|
|
7213
7213
|
}) : p ? Xf(d ?? [], {
|
|
7214
7214
|
dateFormat: y,
|
|
7215
7215
|
locale: s
|
|
7216
|
-
}) :
|
|
7216
|
+
}) : Qe(u, {
|
|
7217
7217
|
dateFormat: y,
|
|
7218
7218
|
locale: s
|
|
7219
7219
|
});
|
|
@@ -7291,13 +7291,13 @@ var Ra = "Date input not valid.";
|
|
|
7291
7291
|
if (f) {
|
|
7292
7292
|
var b = t.props.rangeSeparator, D = b.trim(), I = v.split(g.includes(D) ? b : D, 2).map(function(O) {
|
|
7293
7293
|
return O.trim();
|
|
7294
|
-
}), _ = I[0],
|
|
7295
|
-
if (!L && !C || k &&
|
|
7294
|
+
}), _ = I[0], E = I[1], k = lr(_ ?? "", g, t.props.locale, w), x = k ? lr(E ?? "", g, t.props.locale, w) : null, L = (h == null ? void 0 : h.getTime()) !== (k == null ? void 0 : k.getTime()), C = (y == null ? void 0 : y.getTime()) !== (x == null ? void 0 : x.getTime());
|
|
7295
|
+
if (!L && !C || k && tt(k, t.props) || x && tt(x, t.props))
|
|
7296
7296
|
return;
|
|
7297
7297
|
(o = (s = t.props).onChange) === null || o === void 0 || o.call(s, [k, x], d);
|
|
7298
7298
|
} else {
|
|
7299
|
-
var
|
|
7300
|
-
(
|
|
7299
|
+
var T = lr(v, g, t.props.locale, w, (l = t.props.selected) !== null && l !== void 0 ? l : void 0);
|
|
7300
|
+
(T || !v) && t.setSelected(T, d, !0);
|
|
7301
7301
|
}
|
|
7302
7302
|
}
|
|
7303
7303
|
}, t.handleSelect = function(a, i, s) {
|
|
@@ -7305,7 +7305,7 @@ var Ra = "Date input not valid.";
|
|
|
7305
7305
|
if (!t.props.readOnly) {
|
|
7306
7306
|
var l = t.props, c = l.selectsRange, u = l.startDate, d = l.endDate, p = l.locale, f = l.swapRange, h = (o = t.props.dateFormat) !== null && o !== void 0 ? o : r.defaultProps.dateFormat, y = !c || u && !d && (f || !Oa(a, u));
|
|
7307
7307
|
if (t.props.shouldCloseOnSelect && !t.props.showTimeSelect && y && t.sendFocusBackToInput(), t.props.onChangeRaw) {
|
|
7308
|
-
var g =
|
|
7308
|
+
var g = Qe(a, {
|
|
7309
7309
|
dateFormat: h,
|
|
7310
7310
|
locale: p
|
|
7311
7311
|
});
|
|
@@ -7321,7 +7321,7 @@ var Ra = "Date input not valid.";
|
|
|
7321
7321
|
} else if (t.props.showMonthYearPicker) {
|
|
7322
7322
|
if (u !== null && tl(u, t.props))
|
|
7323
7323
|
return;
|
|
7324
|
-
} else if (u !== null &&
|
|
7324
|
+
} else if (u !== null && tt(u, t.props))
|
|
7325
7325
|
return;
|
|
7326
7326
|
var d = t.props, p = d.onChange, f = d.selectsRange, h = d.startDate, y = d.endDate, g = d.selectsMultiple, w = d.selectedDates, v = d.minTime, b = d.swapRange;
|
|
7327
7327
|
if (!Xt(t.props.selected, u) || t.props.allowSameDay || f || g)
|
|
@@ -7336,8 +7336,8 @@ var Ra = "Date input not valid.";
|
|
|
7336
7336
|
})), t.props.inline || t.setState({
|
|
7337
7337
|
preSelection: u
|
|
7338
7338
|
}), t.props.focusSelectedMonth || t.setState({ monthSelectedIn: o })), f) {
|
|
7339
|
-
var D = !h && !y, I = h && !y, _ = !h && !!y,
|
|
7340
|
-
D ? p == null || p([u, null], i) : I ? u === null ? p == null || p([null, null], i) : Oa(u, h) ? b ? p == null || p([u, h], i) : p == null || p([u, null], i) : p == null || p([h, u], i) : _ && (u && Oa(u, y) ? p == null || p([u, y], i) : p == null || p([u, null], i)),
|
|
7339
|
+
var D = !h && !y, I = h && !y, _ = !h && !!y, E = h && y;
|
|
7340
|
+
D ? p == null || p([u, null], i) : I ? u === null ? p == null || p([null, null], i) : Oa(u, h) ? b ? p == null || p([u, h], i) : p == null || p([u, null], i) : p == null || p([h, u], i) : _ && (u && Oa(u, y) ? p == null || p([u, y], i) : p == null || p([u, null], i)), E && (p == null || p([u, null], i));
|
|
7341
7341
|
} else if (g) {
|
|
7342
7342
|
if (u !== null)
|
|
7343
7343
|
if (!(w != null && w.length))
|
|
@@ -7401,7 +7401,7 @@ var Ra = "Date input not valid.";
|
|
|
7401
7401
|
var w = Math.min(y, h + u);
|
|
7402
7402
|
g = Qr(f, w);
|
|
7403
7403
|
}
|
|
7404
|
-
var v =
|
|
7404
|
+
var v = he(g, p || r.defaultProps.dateFormat, t.props.locale);
|
|
7405
7405
|
if (t.setState({
|
|
7406
7406
|
preSelection: g,
|
|
7407
7407
|
inputValue: v
|
|
@@ -7416,7 +7416,7 @@ var Ra = "Date input not valid.";
|
|
|
7416
7416
|
}
|
|
7417
7417
|
}, t.handleTimeOnlyEnterKey = function(a) {
|
|
7418
7418
|
var i, s, o, l, c = a.target, u = c.value, d = (i = t.props.dateFormat) !== null && i !== void 0 ? i : r.defaultProps.dateFormat, p = t.props.timeFormat || "p", f = t.state.preSelection || t.props.selected || ce(), h = lr(u, d, t.props.locale, (s = t.props.strictParsing) !== null && s !== void 0 ? s : !1, f), y = f;
|
|
7419
|
-
if (h &&
|
|
7419
|
+
if (h && Je(h))
|
|
7420
7420
|
y = h;
|
|
7421
7421
|
else {
|
|
7422
7422
|
var g = ((o = t.calendar) === null || o === void 0 ? void 0 : o.containerRef.current) instanceof Element && t.calendar.containerRef.current.querySelector(".react-datepicker__time-list-item[tabindex='0']");
|
|
@@ -7424,7 +7424,7 @@ var Ra = "Date input not valid.";
|
|
|
7424
7424
|
var w = (l = g.textContent) === null || l === void 0 ? void 0 : l.trim();
|
|
7425
7425
|
if (w) {
|
|
7426
7426
|
var v = lr(w, p, t.props.locale, !1, f);
|
|
7427
|
-
v &&
|
|
7427
|
+
v && Je(v) && (y = v);
|
|
7428
7428
|
}
|
|
7429
7429
|
}
|
|
7430
7430
|
}
|
|
@@ -7436,7 +7436,7 @@ var Ra = "Date input not valid.";
|
|
|
7436
7436
|
var h = f[p], y = (s = h.textContent) === null || s === void 0 ? void 0 : s.trim();
|
|
7437
7437
|
if (y) {
|
|
7438
7438
|
var g = lr(y, d, t.props.locale, !1, a);
|
|
7439
|
-
if (g &&
|
|
7439
|
+
if (g && Je(g)) {
|
|
7440
7440
|
if (al(g, a)) {
|
|
7441
7441
|
c = h;
|
|
7442
7442
|
break;
|
|
@@ -7493,47 +7493,47 @@ var Ra = "Date input not valid.";
|
|
|
7493
7493
|
}, t.onDayKeyDown = function(a) {
|
|
7494
7494
|
var i, s, o, l, c, u, d = t.props, p = d.minDate, f = d.maxDate, h = d.disabledKeyboardNavigation, y = d.showWeekPicker, g = d.shouldCloseOnSelect, w = d.locale, v = d.calendarStartDay, b = d.adjustDateOnChange, D = d.inline;
|
|
7495
7495
|
if ((s = (i = t.props).onKeyDown) === null || s === void 0 || s.call(i, a), !h) {
|
|
7496
|
-
var I = a.key, _ = a.shiftKey,
|
|
7497
|
-
var O =
|
|
7496
|
+
var I = a.key, _ = a.shiftKey, E = ce(t.state.preSelection), k = function(C, T) {
|
|
7497
|
+
var O = T;
|
|
7498
7498
|
switch (C) {
|
|
7499
7499
|
case U.ArrowRight:
|
|
7500
|
-
O = y ? Fn(
|
|
7500
|
+
O = y ? Fn(T, 1) : lt(T, 1);
|
|
7501
7501
|
break;
|
|
7502
7502
|
case U.ArrowLeft:
|
|
7503
|
-
O = y ? rs(
|
|
7503
|
+
O = y ? rs(T) : gd(T);
|
|
7504
7504
|
break;
|
|
7505
7505
|
case U.ArrowUp:
|
|
7506
|
-
O = rs(
|
|
7506
|
+
O = rs(T);
|
|
7507
7507
|
break;
|
|
7508
7508
|
case U.ArrowDown:
|
|
7509
|
-
O = Fn(
|
|
7509
|
+
O = Fn(T, 1);
|
|
7510
7510
|
break;
|
|
7511
7511
|
case U.PageUp:
|
|
7512
|
-
O = _ ? wr(
|
|
7512
|
+
O = _ ? wr(T, 1) : Zt(T, 1);
|
|
7513
7513
|
break;
|
|
7514
7514
|
case U.PageDown:
|
|
7515
|
-
O = _ ? Pt(
|
|
7515
|
+
O = _ ? Pt(T, 1) : ct(T, 1);
|
|
7516
7516
|
break;
|
|
7517
7517
|
case U.Home:
|
|
7518
|
-
O = Wt(
|
|
7518
|
+
O = Wt(T, w, v);
|
|
7519
7519
|
break;
|
|
7520
7520
|
case U.End:
|
|
7521
|
-
O = ep(
|
|
7521
|
+
O = ep(T);
|
|
7522
7522
|
break;
|
|
7523
7523
|
}
|
|
7524
7524
|
return O;
|
|
7525
|
-
}, x = function(C,
|
|
7526
|
-
for (var O = 40, F = C, j = !1, B = 0, Y = k(C,
|
|
7525
|
+
}, x = function(C, T) {
|
|
7526
|
+
for (var O = 40, F = C, j = !1, B = 0, Y = k(C, T); !j; ) {
|
|
7527
7527
|
if (B >= O) {
|
|
7528
|
-
Y =
|
|
7528
|
+
Y = T;
|
|
7529
7529
|
break;
|
|
7530
7530
|
}
|
|
7531
|
-
p && Y < p && (F = U.ArrowRight, Y =
|
|
7531
|
+
p && Y < p && (F = U.ArrowRight, Y = tt(p, t.props) ? k(F, Y) : p), f && Y > f && (F = U.ArrowLeft, Y = tt(f, t.props) ? k(F, Y) : f), tt(Y, t.props) ? ((F === U.PageUp || F === U.Home) && (F = U.ArrowRight), (F === U.PageDown || F === U.End) && (F = U.ArrowLeft), Y = k(F, Y)) : j = !0, B++;
|
|
7532
7532
|
}
|
|
7533
7533
|
return Y;
|
|
7534
7534
|
};
|
|
7535
7535
|
if (I === U.Enter) {
|
|
7536
|
-
a.preventDefault(), t.handleSelect(
|
|
7536
|
+
a.preventDefault(), t.handleSelect(E, a), !g && t.setPreSelection(E);
|
|
7537
7537
|
return;
|
|
7538
7538
|
} else if (I === U.Escape) {
|
|
7539
7539
|
a.preventDefault(), t.setOpen(!1), t.inputOk() || (l = (o = t.props).onInputError) === null || l === void 0 || l.call(o, { code: 1, msg: Ra });
|
|
@@ -7549,7 +7549,7 @@ var Ra = "Date input not valid.";
|
|
|
7549
7549
|
case U.PageDown:
|
|
7550
7550
|
case U.Home:
|
|
7551
7551
|
case U.End:
|
|
7552
|
-
L = x(I,
|
|
7552
|
+
L = x(I, E);
|
|
7553
7553
|
break;
|
|
7554
7554
|
}
|
|
7555
7555
|
if (!L) {
|
|
@@ -7576,16 +7576,16 @@ var Ra = "Date input not valid.";
|
|
|
7576
7576
|
} }, t.props, t.state, { setOpen: t.setOpen, dateFormat: (a = t.props.dateFormatCalendar) !== null && a !== void 0 ? a : r.defaultProps.dateFormatCalendar, onSelect: t.handleSelect, onClickOutside: t.handleCalendarClickOutside, holidays: fp(t.modifyHolidays()), outsideClickIgnoreClass: t.props.outsideClickIgnoreClass, onDropdownFocus: t.handleDropdownFocus, onTimeChange: t.handleTimeChange, className: t.props.calendarClassName, container: t.props.calendarContainer, handleOnKeyDown: t.props.onKeyDown, handleOnDayKeyDown: t.onDayKeyDown, setPreSelection: t.setPreSelection, dropdownMode: (i = t.props.dropdownMode) !== null && i !== void 0 ? i : r.defaultProps.dropdownMode }), t.props.children);
|
|
7577
7577
|
}, t.renderAriaLiveRegion = function() {
|
|
7578
7578
|
var a, i = t.props.locale, s = (a = t.props.dateFormat) !== null && a !== void 0 ? a : r.defaultProps.dateFormat, o = t.props.showTimeInput || t.props.showTimeSelect, l = o ? "PPPPp" : "PPPP", c;
|
|
7579
|
-
return t.props.selectsRange ? c = "Selected start date: ".concat(
|
|
7579
|
+
return t.props.selectsRange ? c = "Selected start date: ".concat(Qe(t.props.startDate, {
|
|
7580
7580
|
dateFormat: l,
|
|
7581
7581
|
locale: i
|
|
7582
|
-
}), ". ").concat(t.props.endDate ? "End date: " +
|
|
7582
|
+
}), ". ").concat(t.props.endDate ? "End date: " + Qe(t.props.endDate, {
|
|
7583
7583
|
dateFormat: l,
|
|
7584
7584
|
locale: i
|
|
7585
|
-
}) : "") : t.props.showTimeSelectOnly ? c = "Selected time: ".concat(
|
|
7585
|
+
}) : "") : t.props.showTimeSelectOnly ? c = "Selected time: ".concat(Qe(t.props.selected, { dateFormat: s, locale: i })) : t.props.showYearPicker ? c = "Selected year: ".concat(Qe(t.props.selected, { dateFormat: "yyyy", locale: i })) : t.props.showMonthYearPicker ? c = "Selected month: ".concat(Qe(t.props.selected, { dateFormat: "MMMM yyyy", locale: i })) : t.props.showQuarterYearPicker ? c = "Selected quarter: ".concat(Qe(t.props.selected, {
|
|
7586
7586
|
dateFormat: "yyyy, QQQ",
|
|
7587
7587
|
locale: i
|
|
7588
|
-
})) : c = "Selected date: ".concat(
|
|
7588
|
+
})) : c = "Selected date: ".concat(Qe(t.props.selected, {
|
|
7589
7589
|
dateFormat: l,
|
|
7590
7590
|
locale: i
|
|
7591
7591
|
})), S.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, c);
|
|
@@ -7909,7 +7909,7 @@ function ii(n, r, e) {
|
|
|
7909
7909
|
let t, a = n.get(r);
|
|
7910
7910
|
for (t of e) a.set(t[0], t[1]);
|
|
7911
7911
|
}
|
|
7912
|
-
const
|
|
7912
|
+
const qe = /* @__PURE__ */ new Map(), ar = /* @__PURE__ */ new Map(), In = /* @__PURE__ */ new Map(), vn = ["chunked", "firstChunkSize", "firstChunkSizeNode", "firstChunkSizeBrowser", "chunkSize", "chunkLimit"], fl = ["jfif", "xmp", "icc", "iptc", "ihdr"], si = ["tiff", ...fl], Ce = ["ifd0", "ifd1", "exif", "gps", "interop"], bn = [...si, ...Ce], kn = ["makerNote", "userComment"], pl = ["translateKeys", "translateValues", "reviveValues", "multiSegment"], wn = [...pl, "sanitize", "mergeOutput", "silentErrors"];
|
|
7913
7913
|
class hl {
|
|
7914
7914
|
get translate() {
|
|
7915
7915
|
return this.translateKeys || this.translateValues || this.reviveValues;
|
|
@@ -7920,7 +7920,7 @@ class Br extends hl {
|
|
|
7920
7920
|
return this.enabled || this.deps.size > 0;
|
|
7921
7921
|
}
|
|
7922
7922
|
constructor(r, e, t, a) {
|
|
7923
|
-
if (super(), ee(this, "enabled", !1), ee(this, "skip", /* @__PURE__ */ new Set()), ee(this, "pick", /* @__PURE__ */ new Set()), ee(this, "deps", /* @__PURE__ */ new Set()), ee(this, "translateKeys", !1), ee(this, "translateValues", !1), ee(this, "reviveValues", !1), this.key = r, this.enabled = e, this.parse = this.enabled, this.applyInheritables(a), this.canBeFiltered = Ce.includes(r), this.canBeFiltered && (this.dict =
|
|
7923
|
+
if (super(), ee(this, "enabled", !1), ee(this, "skip", /* @__PURE__ */ new Set()), ee(this, "pick", /* @__PURE__ */ new Set()), ee(this, "deps", /* @__PURE__ */ new Set()), ee(this, "translateKeys", !1), ee(this, "translateValues", !1), ee(this, "reviveValues", !1), this.key = r, this.enabled = e, this.parse = this.enabled, this.applyInheritables(a), this.canBeFiltered = Ce.includes(r), this.canBeFiltered && (this.dict = qe.get(r)), t !== void 0) if (Array.isArray(t)) this.parse = this.enabled = !0, this.canBeFiltered && t.length > 0 && this.translateTagSet(t, this.pick);
|
|
7924
7924
|
else if (typeof t == "object") {
|
|
7925
7925
|
if (this.enabled = !0, this.parse = t.parse !== !1, this.canBeFiltered) {
|
|
7926
7926
|
let { pick: i, skip: s } = t;
|
|
@@ -8021,7 +8021,7 @@ class ml extends hl {
|
|
|
8021
8021
|
function Os(n, r) {
|
|
8022
8022
|
let e, t, a, i, s = [];
|
|
8023
8023
|
for (a of r) {
|
|
8024
|
-
for (i of (e =
|
|
8024
|
+
for (i of (e = qe.get(a), t = [], e)) (n.includes(i[0]) || n.includes(i[1])) && t.push(i[0]);
|
|
8025
8025
|
t.length && s.push([a, t]);
|
|
8026
8026
|
}
|
|
8027
8027
|
return s;
|
|
@@ -8092,7 +8092,7 @@ class ot {
|
|
|
8092
8092
|
return this.translated ? this.translated : this.raw ? Object.fromEntries(this.raw) : void 0;
|
|
8093
8093
|
}
|
|
8094
8094
|
translateBlock(r, e) {
|
|
8095
|
-
let t = In.get(e), a = ar.get(e), i =
|
|
8095
|
+
let t = In.get(e), a = ar.get(e), i = qe.get(e), s = this.options[e], o = s.reviveValues && !!t, l = s.translateValues && !!a, c = s.translateKeys && !!i, u = {};
|
|
8096
8096
|
for (let [d, p] of r) o && t.has(d) ? p = t.get(d)(p) : l && a.has(d) && (p = this.translateValue(p, a.get(d))), c && i.has(d) && (d = i.get(d) || d), u[d] = p;
|
|
8097
8097
|
return u;
|
|
8098
8098
|
}
|
|
@@ -8593,7 +8593,7 @@ class yl extends gl {
|
|
|
8593
8593
|
ee(yl, "type", "heic");
|
|
8594
8594
|
class js extends gl {
|
|
8595
8595
|
}
|
|
8596
|
-
ee(js, "type", "avif"), en.set("heic", yl), en.set("avif", js), Ie(
|
|
8596
|
+
ee(js, "type", "avif"), en.set("heic", yl), en.set("avif", js), Ie(qe, ["ifd0", "ifd1"], [[256, "ImageWidth"], [257, "ImageHeight"], [258, "BitsPerSample"], [259, "Compression"], [262, "PhotometricInterpretation"], [270, "ImageDescription"], [271, "Make"], [272, "Model"], [273, "StripOffsets"], [274, "Orientation"], [277, "SamplesPerPixel"], [278, "RowsPerStrip"], [279, "StripByteCounts"], [282, "XResolution"], [283, "YResolution"], [284, "PlanarConfiguration"], [296, "ResolutionUnit"], [301, "TransferFunction"], [305, "Software"], [306, "ModifyDate"], [315, "Artist"], [316, "HostComputer"], [317, "Predictor"], [318, "WhitePoint"], [319, "PrimaryChromaticities"], [513, "ThumbnailOffset"], [514, "ThumbnailLength"], [529, "YCbCrCoefficients"], [530, "YCbCrSubSampling"], [531, "YCbCrPositioning"], [532, "ReferenceBlackWhite"], [700, "ApplicationNotes"], [33432, "Copyright"], [33723, "IPTC"], [34665, "ExifIFD"], [34675, "ICC"], [34853, "GpsIFD"], [330, "SubIFD"], [40965, "InteropIFD"], [40091, "XPTitle"], [40092, "XPComment"], [40093, "XPAuthor"], [40094, "XPKeywords"], [40095, "XPSubject"]]), Ie(qe, "exif", [[33434, "ExposureTime"], [33437, "FNumber"], [34850, "ExposureProgram"], [34852, "SpectralSensitivity"], [34855, "ISO"], [34858, "TimeZoneOffset"], [34859, "SelfTimerMode"], [34864, "SensitivityType"], [34865, "StandardOutputSensitivity"], [34866, "RecommendedExposureIndex"], [34867, "ISOSpeed"], [34868, "ISOSpeedLatitudeyyy"], [34869, "ISOSpeedLatitudezzz"], [36864, "ExifVersion"], [36867, "DateTimeOriginal"], [36868, "CreateDate"], [36873, "GooglePlusUploadCode"], [36880, "OffsetTime"], [36881, "OffsetTimeOriginal"], [36882, "OffsetTimeDigitized"], [37121, "ComponentsConfiguration"], [37122, "CompressedBitsPerPixel"], [37377, "ShutterSpeedValue"], [37378, "ApertureValue"], [37379, "BrightnessValue"], [37380, "ExposureCompensation"], [37381, "MaxApertureValue"], [37382, "SubjectDistance"], [37383, "MeteringMode"], [37384, "LightSource"], [37385, "Flash"], [37386, "FocalLength"], [37393, "ImageNumber"], [37394, "SecurityClassification"], [37395, "ImageHistory"], [37396, "SubjectArea"], [37500, "MakerNote"], [37510, "UserComment"], [37520, "SubSecTime"], [37521, "SubSecTimeOriginal"], [37522, "SubSecTimeDigitized"], [37888, "AmbientTemperature"], [37889, "Humidity"], [37890, "Pressure"], [37891, "WaterDepth"], [37892, "Acceleration"], [37893, "CameraElevationAngle"], [40960, "FlashpixVersion"], [40961, "ColorSpace"], [40962, "ExifImageWidth"], [40963, "ExifImageHeight"], [40964, "RelatedSoundFile"], [41483, "FlashEnergy"], [41486, "FocalPlaneXResolution"], [41487, "FocalPlaneYResolution"], [41488, "FocalPlaneResolutionUnit"], [41492, "SubjectLocation"], [41493, "ExposureIndex"], [41495, "SensingMethod"], [41728, "FileSource"], [41729, "SceneType"], [41730, "CFAPattern"], [41985, "CustomRendered"], [41986, "ExposureMode"], [41987, "WhiteBalance"], [41988, "DigitalZoomRatio"], [41989, "FocalLengthIn35mmFormat"], [41990, "SceneCaptureType"], [41991, "GainControl"], [41992, "Contrast"], [41993, "Saturation"], [41994, "Sharpness"], [41996, "SubjectDistanceRange"], [42016, "ImageUniqueID"], [42032, "OwnerName"], [42033, "SerialNumber"], [42034, "LensInfo"], [42035, "LensMake"], [42036, "LensModel"], [42037, "LensSerialNumber"], [42080, "CompositeImage"], [42081, "CompositeImageCount"], [42082, "CompositeImageExposureTimes"], [42240, "Gamma"], [59932, "Padding"], [59933, "OffsetSchema"], [65e3, "OwnerName"], [65001, "SerialNumber"], [65002, "Lens"], [65100, "RawFile"], [65101, "Converter"], [65102, "WhiteBalance"], [65105, "Exposure"], [65106, "Shadows"], [65107, "Brightness"], [65108, "Contrast"], [65109, "Saturation"], [65110, "Sharpness"], [65111, "Smoothness"], [65112, "MoireFilter"], [40965, "InteropIFD"]]), Ie(qe, "gps", [[0, "GPSVersionID"], [1, "GPSLatitudeRef"], [2, "GPSLatitude"], [3, "GPSLongitudeRef"], [4, "GPSLongitude"], [5, "GPSAltitudeRef"], [6, "GPSAltitude"], [7, "GPSTimeStamp"], [8, "GPSSatellites"], [9, "GPSStatus"], [10, "GPSMeasureMode"], [11, "GPSDOP"], [12, "GPSSpeedRef"], [13, "GPSSpeed"], [14, "GPSTrackRef"], [15, "GPSTrack"], [16, "GPSImgDirectionRef"], [17, "GPSImgDirection"], [18, "GPSMapDatum"], [19, "GPSDestLatitudeRef"], [20, "GPSDestLatitude"], [21, "GPSDestLongitudeRef"], [22, "GPSDestLongitude"], [23, "GPSDestBearingRef"], [24, "GPSDestBearing"], [25, "GPSDestDistanceRef"], [26, "GPSDestDistance"], [27, "GPSProcessingMethod"], [28, "GPSAreaInformation"], [29, "GPSDateStamp"], [30, "GPSDifferential"], [31, "GPSHPositioningError"]]), Ie(ar, ["ifd0", "ifd1"], [[274, { 1: "Horizontal (normal)", 2: "Mirror horizontal", 3: "Rotate 180", 4: "Mirror vertical", 5: "Mirror horizontal and rotate 270 CW", 6: "Rotate 90 CW", 7: "Mirror horizontal and rotate 90 CW", 8: "Rotate 270 CW" }], [296, { 1: "None", 2: "inches", 3: "cm" }]]);
|
|
8597
8597
|
let Kr = Ie(ar, "exif", [[34850, { 0: "Not defined", 1: "Manual", 2: "Normal program", 3: "Aperture priority", 4: "Shutter priority", 5: "Creative program", 6: "Action program", 7: "Portrait mode", 8: "Landscape mode" }], [37121, { 0: "-", 1: "Y", 2: "Cb", 3: "Cr", 4: "R", 5: "G", 6: "B" }], [37383, { 0: "Unknown", 1: "Average", 2: "CenterWeightedAverage", 3: "Spot", 4: "MultiSpot", 5: "Pattern", 6: "Partial", 255: "Other" }], [37384, { 0: "Unknown", 1: "Daylight", 2: "Fluorescent", 3: "Tungsten (incandescent light)", 4: "Flash", 9: "Fine weather", 10: "Cloudy weather", 11: "Shade", 12: "Daylight fluorescent (D 5700 - 7100K)", 13: "Day white fluorescent (N 4600 - 5400K)", 14: "Cool white fluorescent (W 3900 - 4500K)", 15: "White fluorescent (WW 3200 - 3700K)", 17: "Standard light A", 18: "Standard light B", 19: "Standard light C", 20: "D55", 21: "D65", 22: "D75", 23: "D50", 24: "ISO studio tungsten", 255: "Other" }], [37385, { 0: "Flash did not fire", 1: "Flash fired", 5: "Strobe return light not detected", 7: "Strobe return light detected", 9: "Flash fired, compulsory flash mode", 13: "Flash fired, compulsory flash mode, return light not detected", 15: "Flash fired, compulsory flash mode, return light detected", 16: "Flash did not fire, compulsory flash mode", 24: "Flash did not fire, auto mode", 25: "Flash fired, auto mode", 29: "Flash fired, auto mode, return light not detected", 31: "Flash fired, auto mode, return light detected", 32: "No flash function", 65: "Flash fired, red-eye reduction mode", 69: "Flash fired, red-eye reduction mode, return light not detected", 71: "Flash fired, red-eye reduction mode, return light detected", 73: "Flash fired, compulsory flash mode, red-eye reduction mode", 77: "Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected", 79: "Flash fired, compulsory flash mode, red-eye reduction mode, return light detected", 89: "Flash fired, auto mode, red-eye reduction mode", 93: "Flash fired, auto mode, return light not detected, red-eye reduction mode", 95: "Flash fired, auto mode, return light detected, red-eye reduction mode" }], [41495, { 1: "Not defined", 2: "One-chip color area sensor", 3: "Two-chip color area sensor", 4: "Three-chip color area sensor", 5: "Color sequential area sensor", 7: "Trilinear sensor", 8: "Color sequential linear sensor" }], [41728, { 1: "Film Scanner", 2: "Reflection Print Scanner", 3: "Digital Camera" }], [41729, { 1: "Directly photographed" }], [41985, { 0: "Normal", 1: "Custom", 2: "HDR (no original saved)", 3: "HDR (original saved)", 4: "Original (for HDR)", 6: "Panorama", 7: "Portrait HDR", 8: "Portrait" }], [41986, { 0: "Auto", 1: "Manual", 2: "Auto bracket" }], [41987, { 0: "Auto", 1: "Manual" }], [41990, { 0: "Standard", 1: "Landscape", 2: "Portrait", 3: "Night", 4: "Other" }], [41991, { 0: "None", 1: "Low gain up", 2: "High gain up", 3: "Low gain down", 4: "High gain down" }], [41996, { 0: "Unknown", 1: "Macro", 2: "Close", 3: "Distant" }], [42080, { 0: "Unknown", 1: "Not a Composite Image", 2: "General Composite Image", 3: "Composite Image Captured While Shooting" }]]);
|
|
8598
8598
|
const As = { 1: "No absolute unit of measurement", 2: "Inch", 3: "Centimeter" };
|
|
8599
8599
|
Kr.set(37392, As), Kr.set(41488, As);
|
|
@@ -8881,9 +8881,9 @@ class Vs extends _a {
|
|
|
8881
8881
|
}
|
|
8882
8882
|
}
|
|
8883
8883
|
}
|
|
8884
|
-
ee(Vs, "type", "png"), en.set("png", Vs), Ie(
|
|
8884
|
+
ee(Vs, "type", "png"), en.set("png", Vs), Ie(qe, "interop", [[1, "InteropIndex"], [2, "InteropVersion"], [4096, "RelatedImageFileFormat"], [4097, "RelatedImageWidth"], [4098, "RelatedImageHeight"]]), ii(qe, "ifd0", [[11, "ProcessingSoftware"], [254, "SubfileType"], [255, "OldSubfileType"], [263, "Thresholding"], [264, "CellWidth"], [265, "CellLength"], [266, "FillOrder"], [269, "DocumentName"], [280, "MinSampleValue"], [281, "MaxSampleValue"], [285, "PageName"], [286, "XPosition"], [287, "YPosition"], [290, "GrayResponseUnit"], [297, "PageNumber"], [321, "HalftoneHints"], [322, "TileWidth"], [323, "TileLength"], [332, "InkSet"], [337, "TargetPrinter"], [18246, "Rating"], [18249, "RatingPercent"], [33550, "PixelScale"], [34264, "ModelTransform"], [34377, "PhotoshopSettings"], [50706, "DNGVersion"], [50707, "DNGBackwardVersion"], [50708, "UniqueCameraModel"], [50709, "LocalizedCameraModel"], [50736, "DNGLensInfo"], [50739, "ShadowScale"], [50740, "DNGPrivateData"], [33920, "IntergraphMatrix"], [33922, "ModelTiePoint"], [34118, "SEMInfo"], [34735, "GeoTiffDirectory"], [34736, "GeoTiffDoubleParams"], [34737, "GeoTiffAsciiParams"], [50341, "PrintIM"], [50721, "ColorMatrix1"], [50722, "ColorMatrix2"], [50723, "CameraCalibration1"], [50724, "CameraCalibration2"], [50725, "ReductionMatrix1"], [50726, "ReductionMatrix2"], [50727, "AnalogBalance"], [50728, "AsShotNeutral"], [50729, "AsShotWhiteXY"], [50730, "BaselineExposure"], [50731, "BaselineNoise"], [50732, "BaselineSharpness"], [50734, "LinearResponseLimit"], [50735, "CameraSerialNumber"], [50741, "MakerNoteSafety"], [50778, "CalibrationIlluminant1"], [50779, "CalibrationIlluminant2"], [50781, "RawDataUniqueID"], [50827, "OriginalRawFileName"], [50828, "OriginalRawFileData"], [50831, "AsShotICCProfile"], [50832, "AsShotPreProfileMatrix"], [50833, "CurrentICCProfile"], [50834, "CurrentPreProfileMatrix"], [50879, "ColorimetricReference"], [50885, "SRawType"], [50898, "PanasonicTitle"], [50899, "PanasonicTitle2"], [50931, "CameraCalibrationSig"], [50932, "ProfileCalibrationSig"], [50933, "ProfileIFD"], [50934, "AsShotProfileName"], [50936, "ProfileName"], [50937, "ProfileHueSatMapDims"], [50938, "ProfileHueSatMapData1"], [50939, "ProfileHueSatMapData2"], [50940, "ProfileToneCurve"], [50941, "ProfileEmbedPolicy"], [50942, "ProfileCopyright"], [50964, "ForwardMatrix1"], [50965, "ForwardMatrix2"], [50966, "PreviewApplicationName"], [50967, "PreviewApplicationVersion"], [50968, "PreviewSettingsName"], [50969, "PreviewSettingsDigest"], [50970, "PreviewColorSpace"], [50971, "PreviewDateTime"], [50972, "RawImageDigest"], [50973, "OriginalRawFileDigest"], [50981, "ProfileLookTableDims"], [50982, "ProfileLookTableData"], [51043, "TimeCodes"], [51044, "FrameRate"], [51058, "TStop"], [51081, "ReelName"], [51089, "OriginalDefaultFinalSize"], [51090, "OriginalBestQualitySize"], [51091, "OriginalDefaultCropSize"], [51105, "CameraLabel"], [51107, "ProfileHueSatMapEncoding"], [51108, "ProfileLookTableEncoding"], [51109, "BaselineExposureOffset"], [51110, "DefaultBlackRender"], [51111, "NewRawImageDigest"], [51112, "RawToPreviewGain"]]);
|
|
8885
8885
|
let zs = [[273, "StripOffsets"], [279, "StripByteCounts"], [288, "FreeOffsets"], [289, "FreeByteCounts"], [291, "GrayResponseCurve"], [292, "T4Options"], [293, "T6Options"], [300, "ColorResponseUnit"], [320, "ColorMap"], [324, "TileOffsets"], [325, "TileByteCounts"], [326, "BadFaxLines"], [327, "CleanFaxData"], [328, "ConsecutiveBadFaxLines"], [330, "SubIFD"], [333, "InkNames"], [334, "NumberofInks"], [336, "DotRange"], [338, "ExtraSamples"], [339, "SampleFormat"], [340, "SMinSampleValue"], [341, "SMaxSampleValue"], [342, "TransferRange"], [343, "ClipPath"], [344, "XClipPathUnits"], [345, "YClipPathUnits"], [346, "Indexed"], [347, "JPEGTables"], [351, "OPIProxy"], [400, "GlobalParametersIFD"], [401, "ProfileType"], [402, "FaxProfile"], [403, "CodingMethods"], [404, "VersionYear"], [405, "ModeNumber"], [433, "Decode"], [434, "DefaultImageColor"], [435, "T82Options"], [437, "JPEGTables"], [512, "JPEGProc"], [515, "JPEGRestartInterval"], [517, "JPEGLosslessPredictors"], [518, "JPEGPointTransforms"], [519, "JPEGQTables"], [520, "JPEGDCTables"], [521, "JPEGACTables"], [559, "StripRowCounts"], [999, "USPTOMiscellaneous"], [18247, "XP_DIP_XML"], [18248, "StitchInfo"], [28672, "SonyRawFileType"], [28688, "SonyToneCurve"], [28721, "VignettingCorrection"], [28722, "VignettingCorrParams"], [28724, "ChromaticAberrationCorrection"], [28725, "ChromaticAberrationCorrParams"], [28726, "DistortionCorrection"], [28727, "DistortionCorrParams"], [29895, "SonyCropTopLeft"], [29896, "SonyCropSize"], [32781, "ImageID"], [32931, "WangTag1"], [32932, "WangAnnotation"], [32933, "WangTag3"], [32934, "WangTag4"], [32953, "ImageReferencePoints"], [32954, "RegionXformTackPoint"], [32955, "WarpQuadrilateral"], [32956, "AffineTransformMat"], [32995, "Matteing"], [32996, "DataType"], [32997, "ImageDepth"], [32998, "TileDepth"], [33300, "ImageFullWidth"], [33301, "ImageFullHeight"], [33302, "TextureFormat"], [33303, "WrapModes"], [33304, "FovCot"], [33305, "MatrixWorldToScreen"], [33306, "MatrixWorldToCamera"], [33405, "Model2"], [33421, "CFARepeatPatternDim"], [33422, "CFAPattern2"], [33423, "BatteryLevel"], [33424, "KodakIFD"], [33445, "MDFileTag"], [33446, "MDScalePixel"], [33447, "MDColorTable"], [33448, "MDLabName"], [33449, "MDSampleInfo"], [33450, "MDPrepDate"], [33451, "MDPrepTime"], [33452, "MDFileUnits"], [33589, "AdventScale"], [33590, "AdventRevision"], [33628, "UIC1Tag"], [33629, "UIC2Tag"], [33630, "UIC3Tag"], [33631, "UIC4Tag"], [33918, "IntergraphPacketData"], [33919, "IntergraphFlagRegisters"], [33921, "INGRReserved"], [34016, "Site"], [34017, "ColorSequence"], [34018, "IT8Header"], [34019, "RasterPadding"], [34020, "BitsPerRunLength"], [34021, "BitsPerExtendedRunLength"], [34022, "ColorTable"], [34023, "ImageColorIndicator"], [34024, "BackgroundColorIndicator"], [34025, "ImageColorValue"], [34026, "BackgroundColorValue"], [34027, "PixelIntensityRange"], [34028, "TransparencyIndicator"], [34029, "ColorCharacterization"], [34030, "HCUsage"], [34031, "TrapIndicator"], [34032, "CMYKEquivalent"], [34152, "AFCP_IPTC"], [34232, "PixelMagicJBIGOptions"], [34263, "JPLCartoIFD"], [34306, "WB_GRGBLevels"], [34310, "LeafData"], [34687, "TIFF_FXExtensions"], [34688, "MultiProfiles"], [34689, "SharedData"], [34690, "T88Options"], [34732, "ImageLayer"], [34750, "JBIGOptions"], [34856, "Opto-ElectricConvFactor"], [34857, "Interlace"], [34908, "FaxRecvParams"], [34909, "FaxSubAddress"], [34910, "FaxRecvTime"], [34929, "FedexEDR"], [34954, "LeafSubIFD"], [37387, "FlashEnergy"], [37388, "SpatialFrequencyResponse"], [37389, "Noise"], [37390, "FocalPlaneXResolution"], [37391, "FocalPlaneYResolution"], [37392, "FocalPlaneResolutionUnit"], [37397, "ExposureIndex"], [37398, "TIFF-EPStandardID"], [37399, "SensingMethod"], [37434, "CIP3DataFile"], [37435, "CIP3Sheet"], [37436, "CIP3Side"], [37439, "StoNits"], [37679, "MSDocumentText"], [37680, "MSPropertySetStorage"], [37681, "MSDocumentTextPosition"], [37724, "ImageSourceData"], [40965, "InteropIFD"], [40976, "SamsungRawPointersOffset"], [40977, "SamsungRawPointersLength"], [41217, "SamsungRawByteOrder"], [41218, "SamsungRawUnknown"], [41484, "SpatialFrequencyResponse"], [41485, "Noise"], [41489, "ImageNumber"], [41490, "SecurityClassification"], [41491, "ImageHistory"], [41494, "TIFF-EPStandardID"], [41995, "DeviceSettingDescription"], [42112, "GDALMetadata"], [42113, "GDALNoData"], [44992, "ExpandSoftware"], [44993, "ExpandLens"], [44994, "ExpandFilm"], [44995, "ExpandFilterLens"], [44996, "ExpandScanner"], [44997, "ExpandFlashLamp"], [46275, "HasselbladRawImage"], [48129, "PixelFormat"], [48130, "Transformation"], [48131, "Uncompressed"], [48132, "ImageType"], [48256, "ImageWidth"], [48257, "ImageHeight"], [48258, "WidthResolution"], [48259, "HeightResolution"], [48320, "ImageOffset"], [48321, "ImageByteCount"], [48322, "AlphaOffset"], [48323, "AlphaByteCount"], [48324, "ImageDataDiscard"], [48325, "AlphaDataDiscard"], [50215, "OceScanjobDesc"], [50216, "OceApplicationSelector"], [50217, "OceIDNumber"], [50218, "OceImageLogic"], [50255, "Annotations"], [50459, "HasselbladExif"], [50547, "OriginalFileName"], [50560, "USPTOOriginalContentType"], [50656, "CR2CFAPattern"], [50710, "CFAPlaneColor"], [50711, "CFALayout"], [50712, "LinearizationTable"], [50713, "BlackLevelRepeatDim"], [50714, "BlackLevel"], [50715, "BlackLevelDeltaH"], [50716, "BlackLevelDeltaV"], [50717, "WhiteLevel"], [50718, "DefaultScale"], [50719, "DefaultCropOrigin"], [50720, "DefaultCropSize"], [50733, "BayerGreenSplit"], [50737, "ChromaBlurRadius"], [50738, "AntiAliasStrength"], [50752, "RawImageSegmentation"], [50780, "BestQualityScale"], [50784, "AliasLayerMetadata"], [50829, "ActiveArea"], [50830, "MaskedAreas"], [50935, "NoiseReductionApplied"], [50974, "SubTileBlockSize"], [50975, "RowInterleaveFactor"], [51008, "OpcodeList1"], [51009, "OpcodeList2"], [51022, "OpcodeList3"], [51041, "NoiseProfile"], [51114, "CacheVersion"], [51125, "DefaultUserCrop"], [51157, "NikonNEFInfo"], [65024, "KdcIFD"]];
|
|
8886
|
-
ii(
|
|
8886
|
+
ii(qe, "ifd0", zs), ii(qe, "exif", zs), Ie(ar, "gps", [[23, { M: "Magnetic North", T: "True North" }], [25, { K: "Kilometers", M: "Miles", N: "Nautical Miles" }]]);
|
|
8887
8887
|
class Ha extends ot {
|
|
8888
8888
|
static canHandle(r, e) {
|
|
8889
8889
|
return r.getUint8(e + 1) === 224 && r.getUint32(e + 4) === 1246120262 && r.getUint8(e + 8) === 0;
|
|
@@ -8895,7 +8895,7 @@ class Ha extends ot {
|
|
|
8895
8895
|
this.raw = /* @__PURE__ */ new Map([[0, this.chunk.getUint16(0)], [2, this.chunk.getUint8(2)], [3, this.chunk.getUint16(3)], [5, this.chunk.getUint16(5)], [7, this.chunk.getUint8(7)], [8, this.chunk.getUint8(8)]]);
|
|
8896
8896
|
}
|
|
8897
8897
|
}
|
|
8898
|
-
ee(Ha, "type", "jfif"), ee(Ha, "headerLength", 9), He.set("jfif", Ha), Ie(
|
|
8898
|
+
ee(Ha, "type", "jfif"), ee(Ha, "headerLength", 9), He.set("jfif", Ha), Ie(qe, "jfif", [[0, "JFIFVersion"], [2, "ResolutionUnit"], [3, "XResolution"], [5, "YResolution"], [7, "ThumbnailWidth"], [8, "ThumbnailHeight"]]);
|
|
8899
8899
|
class Gs extends ot {
|
|
8900
8900
|
parse() {
|
|
8901
8901
|
return this.parseTags(), this.translate(), this.output;
|
|
@@ -8904,7 +8904,7 @@ class Gs extends ot {
|
|
|
8904
8904
|
this.raw = new Map([[0, this.chunk.getUint32(0)], [4, this.chunk.getUint32(4)], [8, this.chunk.getUint8(8)], [9, this.chunk.getUint8(9)], [10, this.chunk.getUint8(10)], [11, this.chunk.getUint8(11)], [12, this.chunk.getUint8(12)], ...Array.from(this.raw)]);
|
|
8905
8905
|
}
|
|
8906
8906
|
}
|
|
8907
|
-
ee(Gs, "type", "ihdr"), He.set("ihdr", Gs), Ie(
|
|
8907
|
+
ee(Gs, "type", "ihdr"), He.set("ihdr", Gs), Ie(qe, "ihdr", [[0, "ImageWidth"], [4, "ImageHeight"], [8, "BitDepth"], [9, "ColorType"], [10, "Compression"], [11, "Filter"], [12, "Interlace"]]), Ie(ar, "ihdr", [[9, { 0: "Grayscale", 2: "RGB", 3: "Palette", 4: "Grayscale with Alpha", 6: "RGB with Alpha", DEFAULT: "Unknown" }], [10, { 0: "Deflate/Inflate", DEFAULT: "Unknown" }], [11, { 0: "Adaptive", DEFAULT: "Unknown" }], [12, { 0: "Noninterlaced", 1: "Adam7 Interlace", DEFAULT: "Unknown" }]]);
|
|
8908
8908
|
class On extends ot {
|
|
8909
8909
|
static canHandle(r, e) {
|
|
8910
8910
|
return r.getUint8(e + 1) === 226 && r.getUint32(e + 4) === 1229144927;
|
|
@@ -8989,7 +8989,7 @@ const lh = { 4: _t, 8: function(n, r) {
|
|
|
8989
8989
|
function _t(n, r) {
|
|
8990
8990
|
return Jt(n.getString(r, 4));
|
|
8991
8991
|
}
|
|
8992
|
-
He.set("icc", On), Ie(
|
|
8992
|
+
He.set("icc", On), Ie(qe, "icc", [[4, "ProfileCMMType"], [8, "ProfileVersion"], [12, "ProfileClass"], [16, "ColorSpaceData"], [20, "ProfileConnectionSpace"], [24, "ProfileDateTime"], [36, "ProfileFileSignature"], [40, "PrimaryPlatform"], [44, "CMMFlags"], [48, "DeviceManufacturer"], [52, "DeviceModel"], [56, "DeviceAttributes"], [64, "RenderingIntent"], [68, "ConnectionSpaceIlluminant"], [80, "ProfileCreator"], [84, "ProfileID"], ["Header", "ProfileHeader"], ["MS00", "WCSProfiles"], ["bTRC", "BlueTRC"], ["bXYZ", "BlueMatrixColumn"], ["bfd", "UCRBG"], ["bkpt", "MediaBlackPoint"], ["calt", "CalibrationDateTime"], ["chad", "ChromaticAdaptation"], ["chrm", "Chromaticity"], ["ciis", "ColorimetricIntentImageState"], ["clot", "ColorantTableOut"], ["clro", "ColorantOrder"], ["clrt", "ColorantTable"], ["cprt", "ProfileCopyright"], ["crdi", "CRDInfo"], ["desc", "ProfileDescription"], ["devs", "DeviceSettings"], ["dmdd", "DeviceModelDesc"], ["dmnd", "DeviceMfgDesc"], ["dscm", "ProfileDescriptionML"], ["fpce", "FocalPlaneColorimetryEstimates"], ["gTRC", "GreenTRC"], ["gXYZ", "GreenMatrixColumn"], ["gamt", "Gamut"], ["kTRC", "GrayTRC"], ["lumi", "Luminance"], ["meas", "Measurement"], ["meta", "Metadata"], ["mmod", "MakeAndModel"], ["ncl2", "NamedColor2"], ["ncol", "NamedColor"], ["ndin", "NativeDisplayInfo"], ["pre0", "Preview0"], ["pre1", "Preview1"], ["pre2", "Preview2"], ["ps2i", "PS2RenderingIntent"], ["ps2s", "PostScript2CSA"], ["psd0", "PostScript2CRD0"], ["psd1", "PostScript2CRD1"], ["psd2", "PostScript2CRD2"], ["psd3", "PostScript2CRD3"], ["pseq", "ProfileSequenceDesc"], ["psid", "ProfileSequenceIdentifier"], ["psvm", "PS2CRDVMSize"], ["rTRC", "RedTRC"], ["rXYZ", "RedMatrixColumn"], ["resp", "OutputResponse"], ["rhoc", "ReflectionHardcopyOrigColorimetry"], ["rig0", "PerceptualRenderingIntentGamut"], ["rig2", "SaturationRenderingIntentGamut"], ["rpoc", "ReflectionPrintOutputColorimetry"], ["sape", "SceneAppearanceEstimates"], ["scoe", "SceneColorimetryEstimates"], ["scrd", "ScreeningDesc"], ["scrn", "Screening"], ["targ", "CharTarget"], ["tech", "Technology"], ["vcgt", "VideoCardGamma"], ["view", "ViewingConditions"], ["vued", "ViewingCondDesc"], ["wtpt", "MediaWhitePoint"]]);
|
|
8993
8993
|
const _n = { "4d2p": "Erdt Systems", AAMA: "Aamazing Technologies", ACER: "Acer", ACLT: "Acolyte Color Research", ACTI: "Actix Sytems", ADAR: "Adara Technology", ADBE: "Adobe", ADI: "ADI Systems", AGFA: "Agfa Graphics", ALMD: "Alps Electric", ALPS: "Alps Electric", ALWN: "Alwan Color Expertise", AMTI: "Amiable Technologies", AOC: "AOC International", APAG: "Apago", APPL: "Apple Computer", AST: "AST", "AT&T": "AT&T", BAEL: "BARBIERI electronic", BRCO: "Barco NV", BRKP: "Breakpoint", BROT: "Brother", BULL: "Bull", BUS: "Bus Computer Systems", "C-IT": "C-Itoh", CAMR: "Intel", CANO: "Canon", CARR: "Carroll Touch", CASI: "Casio", CBUS: "Colorbus PL", CEL: "Crossfield", CELx: "Crossfield", CGS: "CGS Publishing Technologies International", CHM: "Rochester Robotics", CIGL: "Colour Imaging Group, London", CITI: "Citizen", CL00: "Candela", CLIQ: "Color IQ", CMCO: "Chromaco", CMiX: "CHROMiX", COLO: "Colorgraphic Communications", COMP: "Compaq", COMp: "Compeq/Focus Technology", CONR: "Conrac Display Products", CORD: "Cordata Technologies", CPQ: "Compaq", CPRO: "ColorPro", CRN: "Cornerstone", CTX: "CTX International", CVIS: "ColorVision", CWC: "Fujitsu Laboratories", DARI: "Darius Technology", DATA: "Dataproducts", DCP: "Dry Creek Photo", DCRC: "Digital Contents Resource Center, Chung-Ang University", DELL: "Dell Computer", DIC: "Dainippon Ink and Chemicals", DICO: "Diconix", DIGI: "Digital", "DL&C": "Digital Light & Color", DPLG: "Doppelganger", DS: "Dainippon Screen", DSOL: "DOOSOL", DUPN: "DuPont", EPSO: "Epson", ESKO: "Esko-Graphics", ETRI: "Electronics and Telecommunications Research Institute", EVER: "Everex Systems", EXAC: "ExactCODE", Eizo: "Eizo", FALC: "Falco Data Products", FF: "Fuji Photo Film", FFEI: "FujiFilm Electronic Imaging", FNRD: "Fnord Software", FORA: "Fora", FORE: "Forefront Technology", FP: "Fujitsu", FPA: "WayTech Development", FUJI: "Fujitsu", FX: "Fuji Xerox", GCC: "GCC Technologies", GGSL: "Global Graphics Software", GMB: "Gretagmacbeth", GMG: "GMG", GOLD: "GoldStar Technology", GOOG: "Google", GPRT: "Giantprint", GTMB: "Gretagmacbeth", GVC: "WayTech Development", GW2K: "Sony", HCI: "HCI", HDM: "Heidelberger Druckmaschinen", HERM: "Hermes", HITA: "Hitachi America", HP: "Hewlett-Packard", HTC: "Hitachi", HiTi: "HiTi Digital", IBM: "IBM", IDNT: "Scitex", IEC: "Hewlett-Packard", IIYA: "Iiyama North America", IKEG: "Ikegami Electronics", IMAG: "Image Systems", IMI: "Ingram Micro", INTC: "Intel", INTL: "N/A (INTL)", INTR: "Intra Electronics", IOCO: "Iocomm International Technology", IPS: "InfoPrint Solutions Company", IRIS: "Scitex", ISL: "Ichikawa Soft Laboratory", ITNL: "N/A (ITNL)", IVM: "IVM", IWAT: "Iwatsu Electric", Idnt: "Scitex", Inca: "Inca Digital Printers", Iris: "Scitex", JPEG: "Joint Photographic Experts Group", JSFT: "Jetsoft Development", JVC: "JVC Information Products", KART: "Scitex", KFC: "KFC Computek Components", KLH: "KLH Computers", KMHD: "Konica Minolta", KNCA: "Konica", KODA: "Kodak", KYOC: "Kyocera", Kart: "Scitex", LCAG: "Leica", LCCD: "Leeds Colour", LDAK: "Left Dakota", LEAD: "Leading Technology", LEXM: "Lexmark International", LINK: "Link Computer", LINO: "Linotronic", LITE: "Lite-On", Leaf: "Leaf", Lino: "Linotronic", MAGC: "Mag Computronic", MAGI: "MAG Innovision", MANN: "Mannesmann", MICN: "Micron Technology", MICR: "Microtek", MICV: "Microvitec", MINO: "Minolta", MITS: "Mitsubishi Electronics America", MITs: "Mitsuba", MNLT: "Minolta", MODG: "Modgraph", MONI: "Monitronix", MONS: "Monaco Systems", MORS: "Morse Technology", MOTI: "Motive Systems", MSFT: "Microsoft", MUTO: "MUTOH INDUSTRIES", Mits: "Mitsubishi Electric", NANA: "NANAO", NEC: "NEC", NEXP: "NexPress Solutions", NISS: "Nissei Sangyo America", NKON: "Nikon", NONE: "none", OCE: "Oce Technologies", OCEC: "OceColor", OKI: "Oki", OKID: "Okidata", OKIP: "Okidata", OLIV: "Olivetti", OLYM: "Olympus", ONYX: "Onyx Graphics", OPTI: "Optiquest", PACK: "Packard Bell", PANA: "Matsushita Electric Industrial", PANT: "Pantone", PBN: "Packard Bell", PFU: "PFU", PHIL: "Philips Consumer Electronics", PNTX: "HOYA", POne: "Phase One A/S", PREM: "Premier Computer Innovations", PRIN: "Princeton Graphic Systems", PRIP: "Princeton Publishing Labs", QLUX: "Hong Kong", QMS: "QMS", QPCD: "QPcard AB", QUAD: "QuadLaser", QUME: "Qume", RADI: "Radius", RDDx: "Integrated Color Solutions", RDG: "Roland DG", REDM: "REDMS Group", RELI: "Relisys", RGMS: "Rolf Gierling Multitools", RICO: "Ricoh", RNLD: "Edmund Ronald", ROYA: "Royal", RPC: "Ricoh Printing Systems", RTL: "Royal Information Electronics", SAMP: "Sampo", SAMS: "Samsung", SANT: "Jaime Santana Pomares", SCIT: "Scitex", SCRN: "Dainippon Screen", SDP: "Scitex", SEC: "Samsung", SEIK: "Seiko Instruments", SEIk: "Seikosha", SGUY: "ScanGuy.com", SHAR: "Sharp Laboratories", SICC: "International Color Consortium", SONY: "Sony", SPCL: "SpectraCal", STAR: "Star", STC: "Sampo Technology", Scit: "Scitex", Sdp: "Scitex", Sony: "Sony", TALO: "Talon Technology", TAND: "Tandy", TATU: "Tatung", TAXA: "TAXAN America", TDS: "Tokyo Denshi Sekei", TECO: "TECO Information Systems", TEGR: "Tegra", TEKT: "Tektronix", TI: "Texas Instruments", TMKR: "TypeMaker", TOSB: "Toshiba", TOSH: "Toshiba", TOTK: "TOTOKU ELECTRIC", TRIU: "Triumph", TSBT: "Toshiba", TTX: "TTX Computer Products", TVM: "TVM Professional Monitor", TW: "TW Casper", ULSX: "Ulead Systems", UNIS: "Unisys", UTZF: "Utz Fehlau & Sohn", VARI: "Varityper", VIEW: "Viewsonic", VISL: "Visual communication", VIVO: "Vivo Mobile Communication", WANG: "Wang", WLBR: "Wilbur Imaging", WTG2: "Ware To Go", WYSE: "WYSE Technology", XERX: "Xerox", XRIT: "X-Rite", ZRAN: "Zoran", Zebr: "Zebra Technologies", appl: "Apple Computer", bICC: "basICColor", berg: "bergdesign", ceyd: "Integrated Color Solutions", clsp: "MacDermid ColorSpan", ds: "Dainippon Screen", dupn: "DuPont", ffei: "FujiFilm Electronic Imaging", flux: "FluxData", iris: "Scitex", kart: "Scitex", lcms: "Little CMS", lino: "Linotronic", none: "none", ob4d: "Erdt Systems", obic: "Medigraph", quby: "Qubyx Sarl", scit: "Scitex", scrn: "Dainippon Screen", sdp: "Scitex", siwi: "SIWI GRAFIKA", yxym: "YxyMaster" }, $s = { scnr: "Scanner", mntr: "Monitor", prtr: "Printer", link: "Device Link", abst: "Abstract", spac: "Color Space Conversion Profile", nmcl: "Named Color", cenc: "ColorEncodingSpace profile", mid: "MultiplexIdentification profile", mlnk: "MultiplexLink profile", mvis: "MultiplexVisualization profile", nkpf: "Nikon Input Device Profile (NON-STANDARD!)" };
|
|
8994
8994
|
Ie(ar, "icc", [[4, _n], [12, $s], [40, Object.assign({}, _n, $s)], [48, _n], [80, _n], [64, { 0: "Perceptual", 1: "Relative Colorimetric", 2: "Saturation", 3: "Absolute Colorimetric" }], ["tech", { amd: "Active Matrix Display", crt: "Cathode Ray Tube Display", kpcd: "Photo CD", pmd: "Passive Matrix Display", dcam: "Digital Camera", dcpj: "Digital Cinema Projector", dmpc: "Digital Motion Picture Camera", dsub: "Dye Sublimation Printer", epho: "Electrophotographic Printer", esta: "Electrostatic Printer", flex: "Flexography", fprn: "Film Writer", fscn: "Film Scanner", grav: "Gravure", ijet: "Ink Jet Printer", imgs: "Photo Image Setter", mpfr: "Motion Picture Film Recorder", mpfs: "Motion Picture Film Scanner", offs: "Offset Lithography", pjtv: "Projection Television", rpho: "Photographic Paper Printer", rscn: "Reflective Scanner", silk: "Silkscreen", twax: "Thermal Wax Printer", vidc: "Video Camera", vidm: "Video Monitor" }]]);
|
|
8995
8995
|
class Sn extends ot {
|
|
@@ -9019,7 +9019,7 @@ class Sn extends ot {
|
|
|
9019
9019
|
return r !== void 0 ? r instanceof Array ? (r.push(e), r) : [r, e] : e;
|
|
9020
9020
|
}
|
|
9021
9021
|
}
|
|
9022
|
-
ee(Sn, "type", "iptc"), ee(Sn, "translateValues", !1), ee(Sn, "reviveValues", !1), He.set("iptc", Sn), Ie(
|
|
9022
|
+
ee(Sn, "type", "iptc"), ee(Sn, "translateValues", !1), ee(Sn, "reviveValues", !1), He.set("iptc", Sn), Ie(qe, "iptc", [[0, "ApplicationRecordVersion"], [3, "ObjectTypeReference"], [4, "ObjectAttributeReference"], [5, "ObjectName"], [7, "EditStatus"], [8, "EditorialUpdate"], [10, "Urgency"], [12, "SubjectReference"], [15, "Category"], [20, "SupplementalCategories"], [22, "FixtureIdentifier"], [25, "Keywords"], [26, "ContentLocationCode"], [27, "ContentLocationName"], [30, "ReleaseDate"], [35, "ReleaseTime"], [37, "ExpirationDate"], [38, "ExpirationTime"], [40, "SpecialInstructions"], [42, "ActionAdvised"], [45, "ReferenceService"], [47, "ReferenceDate"], [50, "ReferenceNumber"], [55, "DateCreated"], [60, "TimeCreated"], [62, "DigitalCreationDate"], [63, "DigitalCreationTime"], [65, "OriginatingProgram"], [70, "ProgramVersion"], [75, "ObjectCycle"], [80, "Byline"], [85, "BylineTitle"], [90, "City"], [92, "Sublocation"], [95, "State"], [100, "CountryCode"], [101, "Country"], [103, "OriginalTransmissionReference"], [105, "Headline"], [110, "Credit"], [115, "Source"], [116, "CopyrightNotice"], [118, "Contact"], [120, "Caption"], [121, "LocalCaption"], [122, "Writer"], [125, "RasterizedCaption"], [130, "ImageType"], [131, "ImageOrientation"], [135, "LanguageIdentifier"], [150, "AudioType"], [151, "AudioSamplingRate"], [152, "AudioSamplingResolution"], [153, "AudioDuration"], [154, "AudioOutcue"], [184, "JobID"], [185, "MasterDocumentID"], [186, "ShortDocumentID"], [187, "UniqueDocumentID"], [188, "OwnerID"], [200, "ObjectPreviewFileFormat"], [201, "ObjectPreviewFileVersion"], [202, "ObjectPreviewData"], [221, "Prefs"], [225, "ClassifyState"], [228, "SimilarityIndex"], [230, "DocumentNotes"], [231, "DocumentHistory"], [232, "ExifCameraInfo"], [255, "CatalogSets"]]), Ie(ar, "iptc", [[10, { 0: "0 (reserved)", 1: "1 (most urgent)", 2: "2", 3: "3", 4: "4", 5: "5 (normal urgency)", 6: "6", 7: "7", 8: "8 (least urgent)", 9: "9 (user-defined priority)" }], [75, { a: "Morning", b: "Both Morning and Evening", p: "Evening" }], [131, { L: "Landscape", P: "Portrait", S: "Square" }]]);
|
|
9023
9023
|
const Te = [];
|
|
9024
9024
|
for (let n = 0; n < 256; ++n)
|
|
9025
9025
|
Te.push((n + 256).toString(16).slice(1));
|
|
@@ -9106,7 +9106,7 @@ function mh() {
|
|
|
9106
9106
|
return "StrictMode";
|
|
9107
9107
|
case _:
|
|
9108
9108
|
return "Suspense";
|
|
9109
|
-
case
|
|
9109
|
+
case E:
|
|
9110
9110
|
return "SuspenseList";
|
|
9111
9111
|
case L:
|
|
9112
9112
|
return "Activity";
|
|
@@ -9147,8 +9147,8 @@ function mh() {
|
|
|
9147
9147
|
}
|
|
9148
9148
|
if (R) {
|
|
9149
9149
|
R = console;
|
|
9150
|
-
var
|
|
9151
|
-
return
|
|
9150
|
+
var $ = R.error, Q = typeof Symbol == "function" && Symbol.toStringTag && m[Symbol.toStringTag] || m.constructor.name || "Object";
|
|
9151
|
+
return $.call(
|
|
9152
9152
|
R,
|
|
9153
9153
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
9154
9154
|
Q
|
|
@@ -9167,7 +9167,7 @@ function mh() {
|
|
|
9167
9167
|
}
|
|
9168
9168
|
}
|
|
9169
9169
|
function a() {
|
|
9170
|
-
var m =
|
|
9170
|
+
var m = T.A;
|
|
9171
9171
|
return m === null ? null : m.getOwner();
|
|
9172
9172
|
}
|
|
9173
9173
|
function i() {
|
|
@@ -9181,14 +9181,14 @@ function mh() {
|
|
|
9181
9181
|
return m.key !== void 0;
|
|
9182
9182
|
}
|
|
9183
9183
|
function o(m, R) {
|
|
9184
|
-
function
|
|
9184
|
+
function $() {
|
|
9185
9185
|
B || (B = !0, console.error(
|
|
9186
9186
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
9187
9187
|
R
|
|
9188
9188
|
));
|
|
9189
9189
|
}
|
|
9190
|
-
|
|
9191
|
-
get:
|
|
9190
|
+
$.isReactWarning = !0, Object.defineProperty(m, "key", {
|
|
9191
|
+
get: $,
|
|
9192
9192
|
configurable: !0
|
|
9193
9193
|
});
|
|
9194
9194
|
}
|
|
@@ -9198,13 +9198,13 @@ function mh() {
|
|
|
9198
9198
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
9199
9199
|
)), m = this.props.ref, m !== void 0 ? m : null;
|
|
9200
9200
|
}
|
|
9201
|
-
function c(m, R,
|
|
9202
|
-
var X =
|
|
9201
|
+
function c(m, R, $, Q, pe, Ae) {
|
|
9202
|
+
var X = $.ref;
|
|
9203
9203
|
return m = {
|
|
9204
9204
|
$$typeof: h,
|
|
9205
9205
|
type: m,
|
|
9206
9206
|
key: R,
|
|
9207
|
-
props:
|
|
9207
|
+
props: $,
|
|
9208
9208
|
_owner: Q
|
|
9209
9209
|
}, (X !== void 0 ? X : null) !== null ? Object.defineProperty(m, "ref", {
|
|
9210
9210
|
enumerable: !1,
|
|
@@ -9223,7 +9223,7 @@ function mh() {
|
|
|
9223
9223
|
configurable: !1,
|
|
9224
9224
|
enumerable: !1,
|
|
9225
9225
|
writable: !0,
|
|
9226
|
-
value:
|
|
9226
|
+
value: pe
|
|
9227
9227
|
}), Object.defineProperty(m, "_debugTask", {
|
|
9228
9228
|
configurable: !1,
|
|
9229
9229
|
enumerable: !1,
|
|
@@ -9231,7 +9231,7 @@ function mh() {
|
|
|
9231
9231
|
value: Ae
|
|
9232
9232
|
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
9233
9233
|
}
|
|
9234
|
-
function u(m, R,
|
|
9234
|
+
function u(m, R, $, Q, pe, Ae) {
|
|
9235
9235
|
var X = R.children;
|
|
9236
9236
|
if (X !== void 0)
|
|
9237
9237
|
if (Q)
|
|
@@ -9246,10 +9246,10 @@ function mh() {
|
|
|
9246
9246
|
else d(X);
|
|
9247
9247
|
if (O.call(R, "key")) {
|
|
9248
9248
|
X = n(m);
|
|
9249
|
-
var
|
|
9249
|
+
var ye = Object.keys(R).filter(function(Rt) {
|
|
9250
9250
|
return Rt !== "key";
|
|
9251
9251
|
});
|
|
9252
|
-
Q = 0 <
|
|
9252
|
+
Q = 0 < ye.length ? "{key: someKey, " + ye.join(": ..., ") + ": ...}" : "{key: someKey}", J[X + Q] || (ye = 0 < ye.length ? "{" + ye.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
9253
9253
|
`A props object containing a "key" prop is being spread into JSX:
|
|
9254
9254
|
let props = %s;
|
|
9255
9255
|
<%s {...props} />
|
|
@@ -9258,24 +9258,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
9258
9258
|
<%s key={someKey} {...props} />`,
|
|
9259
9259
|
Q,
|
|
9260
9260
|
X,
|
|
9261
|
-
|
|
9261
|
+
ye,
|
|
9262
9262
|
X
|
|
9263
9263
|
), J[X + Q] = !0);
|
|
9264
9264
|
}
|
|
9265
|
-
if (X = null,
|
|
9266
|
-
|
|
9267
|
-
for (var
|
|
9268
|
-
|
|
9269
|
-
} else
|
|
9265
|
+
if (X = null, $ !== void 0 && (e($), X = "" + $), s(R) && (e(R.key), X = "" + R.key), "key" in R) {
|
|
9266
|
+
$ = {};
|
|
9267
|
+
for (var Ue in R)
|
|
9268
|
+
Ue !== "key" && ($[Ue] = R[Ue]);
|
|
9269
|
+
} else $ = R;
|
|
9270
9270
|
return X && o(
|
|
9271
|
-
|
|
9271
|
+
$,
|
|
9272
9272
|
typeof m == "function" ? m.displayName || m.name || "Unknown" : m
|
|
9273
9273
|
), c(
|
|
9274
9274
|
m,
|
|
9275
9275
|
X,
|
|
9276
|
-
|
|
9276
|
+
$,
|
|
9277
9277
|
a(),
|
|
9278
|
-
|
|
9278
|
+
pe,
|
|
9279
9279
|
Ae
|
|
9280
9280
|
);
|
|
9281
9281
|
}
|
|
@@ -9285,7 +9285,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
9285
9285
|
function p(m) {
|
|
9286
9286
|
return typeof m == "object" && m !== null && m.$$typeof === h;
|
|
9287
9287
|
}
|
|
9288
|
-
var f = S, h = Symbol.for("react.transitional.element"), y = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), D = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"),
|
|
9288
|
+
var f = S, h = Symbol.for("react.transitional.element"), y = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), D = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), T = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, O = Object.prototype.hasOwnProperty, F = Array.isArray, j = console.createTask ? console.createTask : function() {
|
|
9289
9289
|
return null;
|
|
9290
9290
|
};
|
|
9291
9291
|
f = {
|
|
@@ -9293,29 +9293,29 @@ React keys must be passed directly to JSX without using spread:
|
|
|
9293
9293
|
return m();
|
|
9294
9294
|
}
|
|
9295
9295
|
};
|
|
9296
|
-
var B, Y = {},
|
|
9296
|
+
var B, Y = {}, M = f.react_stack_bottom_frame.bind(
|
|
9297
9297
|
f,
|
|
9298
9298
|
i
|
|
9299
|
-
)(),
|
|
9300
|
-
Dn.Fragment = g, Dn.jsx = function(m, R,
|
|
9301
|
-
var Q = 1e4 >
|
|
9299
|
+
)(), z = j(t(i)), J = {};
|
|
9300
|
+
Dn.Fragment = g, Dn.jsx = function(m, R, $) {
|
|
9301
|
+
var Q = 1e4 > T.recentlyCreatedOwnerStacks++;
|
|
9302
9302
|
return u(
|
|
9303
9303
|
m,
|
|
9304
9304
|
R,
|
|
9305
|
-
|
|
9305
|
+
$,
|
|
9306
9306
|
!1,
|
|
9307
|
-
Q ? Error("react-stack-top-frame") :
|
|
9308
|
-
Q ? j(t(m)) :
|
|
9307
|
+
Q ? Error("react-stack-top-frame") : M,
|
|
9308
|
+
Q ? j(t(m)) : z
|
|
9309
9309
|
);
|
|
9310
|
-
}, Dn.jsxs = function(m, R,
|
|
9311
|
-
var Q = 1e4 >
|
|
9310
|
+
}, Dn.jsxs = function(m, R, $) {
|
|
9311
|
+
var Q = 1e4 > T.recentlyCreatedOwnerStacks++;
|
|
9312
9312
|
return u(
|
|
9313
9313
|
m,
|
|
9314
9314
|
R,
|
|
9315
|
-
|
|
9315
|
+
$,
|
|
9316
9316
|
!0,
|
|
9317
|
-
Q ? Error("react-stack-top-frame") :
|
|
9318
|
-
Q ? j(t(m)) :
|
|
9317
|
+
Q ? Error("react-stack-top-frame") : M,
|
|
9318
|
+
Q ? j(t(m)) : z
|
|
9319
9319
|
);
|
|
9320
9320
|
};
|
|
9321
9321
|
})()), Dn;
|
|
@@ -9364,7 +9364,7 @@ const yh = "_frame_1d6ym_1", vh = "_fileSize_1d6ym_17", bh = "_topRightButtonCon
|
|
|
9364
9364
|
if (n.contentType === "image") return /* @__PURE__ */ N.jsx(jh, { file: n, className: r });
|
|
9365
9365
|
if (n.contentType === "json") return /* @__PURE__ */ N.jsx(Bh, { tabIndex: t, file: n, className: r });
|
|
9366
9366
|
if (n.contentType === "pdf") return /* @__PURE__ */ N.jsx(Wh, { tabIndex: t, file: n, className: r });
|
|
9367
|
-
}, Fh = ({ file: n, className: r }) => /* @__PURE__ */ N.jsx("img", { src: n.src, className: `${tn.image} ${r || ""}` }), jh = ({ file: n, className: r }) => /* @__PURE__ */ N.jsx("img", { className: `${tn.previewFile} ${r || ""}`, src: n.src }), Ah = () => /* @__PURE__ */ N.jsx(
|
|
9367
|
+
}, Fh = ({ file: n, className: r }) => /* @__PURE__ */ N.jsx("img", { src: n.src, className: `${tn.image} ${r || ""}` }), jh = ({ file: n, className: r }) => /* @__PURE__ */ N.jsx("img", { className: `${tn.previewFile} ${r || ""}`, src: n.src }), Ah = () => /* @__PURE__ */ N.jsx(rt, { size: "3xl", material: "code_blocks" });
|
|
9368
9368
|
function Bh({
|
|
9369
9369
|
file: n,
|
|
9370
9370
|
className: r,
|
|
@@ -9392,12 +9392,12 @@ function Bh({
|
|
|
9392
9392
|
}
|
|
9393
9393
|
);
|
|
9394
9394
|
}
|
|
9395
|
-
const Yh = () => /* @__PURE__ */ N.jsx(
|
|
9395
|
+
const Yh = () => /* @__PURE__ */ N.jsx(rt, { size: "3xl", material: "description" }), Wh = ({
|
|
9396
9396
|
file: n,
|
|
9397
9397
|
className: r,
|
|
9398
9398
|
tabIndex: e
|
|
9399
9399
|
}) => /* @__PURE__ */ N.jsx("embed", { tabIndex: e, className: `${tn.previewFile} ${r || ""}`, src: n.src }), Hh = () => {
|
|
9400
|
-
const n =
|
|
9400
|
+
const n = G(null), r = G(!1), e = G(!1), t = G(0), a = G(0), i = q((l) => {
|
|
9401
9401
|
n.current && (r.current = !0, e.current = !1, t.current = l.pageX - n.current.offsetLeft, a.current = n.current.scrollLeft);
|
|
9402
9402
|
}, []), s = q((l) => {
|
|
9403
9403
|
if (!r.current || !n.current) return;
|
|
@@ -9450,7 +9450,7 @@ const Sl = (n) => {
|
|
|
9450
9450
|
const r = JSON.stringify(n.data, null, 2), e = new Blob([r], { type: "application/json" }), t = URL.createObjectURL(e);
|
|
9451
9451
|
window.open(t, "_blank", "noopener,noreferrer"), setTimeout(() => URL.revokeObjectURL(t), 100);
|
|
9452
9452
|
}, Uh = (n) => ({ ...Ih[n.contentType], ...n.buttons }), Vh = ({ animation: n = "slide", onClose: r, files: e, startIndex: t }) => {
|
|
9453
|
-
const a =
|
|
9453
|
+
const a = G(null), [i, s] = ne(e[t ?? 0]), [o, l] = ne(t ?? 0), c = G(o), u = G([]), { scrollRef: d, hasMovedRef: p, handlers: f } = Hh(), h = Uh(i);
|
|
9454
9454
|
Z(() => {
|
|
9455
9455
|
var _;
|
|
9456
9456
|
s(e[o]), c.current = o, u.current[o] && ((_ = u.current[o]) == null || _.scrollIntoView({
|
|
@@ -9459,8 +9459,8 @@ const Sl = (n) => {
|
|
|
9459
9459
|
inline: "center"
|
|
9460
9460
|
}));
|
|
9461
9461
|
}, [o]), Z(() => {
|
|
9462
|
-
const _ = (
|
|
9463
|
-
|
|
9462
|
+
const _ = (E) => {
|
|
9463
|
+
E.key === "ArrowRight" ? v() : E.key === "ArrowLeft" ? b() : E.key === "Escape" && y();
|
|
9464
9464
|
};
|
|
9465
9465
|
return window.addEventListener("keydown", _), () => window.removeEventListener("keydown", _);
|
|
9466
9466
|
}, []);
|
|
@@ -9487,10 +9487,10 @@ const Sl = (n) => {
|
|
|
9487
9487
|
] }),
|
|
9488
9488
|
/* @__PURE__ */ N.jsxs(le, { horizontal: !0, className: Pe.topRightButtonContainer, children: [
|
|
9489
9489
|
/* @__PURE__ */ N.jsxs(le, { horizontal: !0, children: [
|
|
9490
|
-
h.showOpenInNew && /* @__PURE__ */ N.jsx(gt, { title: "Åpne i ny fane", onClick: w, ...I, children: /* @__PURE__ */ N.jsx(
|
|
9491
|
-
h.showDownload && /* @__PURE__ */ N.jsx(gt, { title: "Last ned", onClick: g, ...I, children: /* @__PURE__ */ N.jsx(
|
|
9490
|
+
h.showOpenInNew && /* @__PURE__ */ N.jsx(gt, { title: "Åpne i ny fane", onClick: w, ...I, children: /* @__PURE__ */ N.jsx(rt, { material: "open_in_new", size: "lg" }) }),
|
|
9491
|
+
h.showDownload && /* @__PURE__ */ N.jsx(gt, { title: "Last ned", onClick: g, ...I, children: /* @__PURE__ */ N.jsx(rt, { material: "download", size: "lg" }) })
|
|
9492
9492
|
] }),
|
|
9493
|
-
/* @__PURE__ */ N.jsx(le, { children: /* @__PURE__ */ N.jsx(gt, { title: "Lukk", onClick: y, ...I, children: /* @__PURE__ */ N.jsx(
|
|
9493
|
+
/* @__PURE__ */ N.jsx(le, { children: /* @__PURE__ */ N.jsx(gt, { title: "Lukk", onClick: y, ...I, children: /* @__PURE__ */ N.jsx(rt, { material: "close", size: "lg" }) }) })
|
|
9494
9494
|
] })
|
|
9495
9495
|
] }),
|
|
9496
9496
|
/* @__PURE__ */ N.jsxs(le, { className: Pe.content, children: [
|
|
@@ -9501,7 +9501,7 @@ const Sl = (n) => {
|
|
|
9501
9501
|
onClick: b,
|
|
9502
9502
|
className: `${Pe.switchButton} ${Pe.left}`,
|
|
9503
9503
|
...I,
|
|
9504
|
-
children: /* @__PURE__ */ N.jsx(
|
|
9504
|
+
children: /* @__PURE__ */ N.jsx(rt, { material: "chevron_left", size: "lg" })
|
|
9505
9505
|
}
|
|
9506
9506
|
),
|
|
9507
9507
|
o < e.length - 1 && /* @__PURE__ */ N.jsx(
|
|
@@ -9511,10 +9511,10 @@ const Sl = (n) => {
|
|
|
9511
9511
|
onClick: v,
|
|
9512
9512
|
className: `${Pe.switchButton} ${Pe.right}`,
|
|
9513
9513
|
...I,
|
|
9514
|
-
children: /* @__PURE__ */ N.jsx(
|
|
9514
|
+
children: /* @__PURE__ */ N.jsx(rt, { material: "chevron_right", size: "lg" })
|
|
9515
9515
|
}
|
|
9516
9516
|
),
|
|
9517
|
-
/* @__PURE__ */ N.jsx(le, { className: Pe.fileInnerContainer, children: e.map((_,
|
|
9517
|
+
/* @__PURE__ */ N.jsx(le, { className: Pe.fileInnerContainer, children: e.map((_, E) => /* @__PURE__ */ N.jsx(le, { className: `${Pe.file} ${Pe[n]} ${D(E)}`, children: /* @__PURE__ */ N.jsx(oi, { tabIndex: E === o ? 0 : -1, mode: "full", file: _ }) }, `${E}-display`)) })
|
|
9518
9518
|
] }),
|
|
9519
9519
|
/* @__PURE__ */ N.jsx(
|
|
9520
9520
|
"div",
|
|
@@ -9525,23 +9525,23 @@ const Sl = (n) => {
|
|
|
9525
9525
|
ref: d,
|
|
9526
9526
|
className: Pe.selectArea,
|
|
9527
9527
|
...f,
|
|
9528
|
-
children: e.map((_,
|
|
9528
|
+
children: e.map((_, E) => /* @__PURE__ */ N.jsx(
|
|
9529
9529
|
"button",
|
|
9530
9530
|
{
|
|
9531
9531
|
ref: (k) => {
|
|
9532
|
-
u.current[
|
|
9532
|
+
u.current[E] = k;
|
|
9533
9533
|
},
|
|
9534
9534
|
onKeyDown: (k) => {
|
|
9535
|
-
(k.key === "Enter" || k.key === " ") && l(
|
|
9535
|
+
(k.key === "Enter" || k.key === " ") && l(E);
|
|
9536
9536
|
},
|
|
9537
9537
|
className: Pe.previewButton,
|
|
9538
9538
|
onClick: () => {
|
|
9539
|
-
p.current || l(
|
|
9539
|
+
p.current || l(E);
|
|
9540
9540
|
},
|
|
9541
|
-
"aria-selected": o ===
|
|
9541
|
+
"aria-selected": o === E,
|
|
9542
9542
|
children: /* @__PURE__ */ N.jsx(oi, { file: _ })
|
|
9543
9543
|
},
|
|
9544
|
-
`${
|
|
9544
|
+
`${E}-preview`
|
|
9545
9545
|
))
|
|
9546
9546
|
}
|
|
9547
9547
|
)
|
|
@@ -9552,7 +9552,7 @@ const Sl = (n) => {
|
|
|
9552
9552
|
},
|
|
9553
9553
|
ref: null
|
|
9554
9554
|
}), zh = ({ animation: n, children: r, ref: e, files: t }) => {
|
|
9555
|
-
const a =
|
|
9555
|
+
const a = G(null), i = e || a, [s, o] = ne(t ?? []), [l, c] = ne(0), [u, d] = ne(!1);
|
|
9556
9556
|
if (yo(i, () => ({
|
|
9557
9557
|
close() {
|
|
9558
9558
|
d(!1);
|
|
@@ -9586,7 +9586,7 @@ const Sl = (n) => {
|
|
|
9586
9586
|
fileSize: Jh,
|
|
9587
9587
|
fileInfoContainer: Zh
|
|
9588
9588
|
}, em = ({ file: n, index: r }) => {
|
|
9589
|
-
const { setFiles: e, ref: t } =
|
|
9589
|
+
const { setFiles: e, ref: t } = $e(li);
|
|
9590
9590
|
if (!n) return;
|
|
9591
9591
|
if (!li) throw new Error("Missing context!");
|
|
9592
9592
|
Z(
|
|
@@ -9626,7 +9626,7 @@ const Sl = (n) => {
|
|
|
9626
9626
|
onClick: (o) => {
|
|
9627
9627
|
o.stopPropagation(), Sl(n);
|
|
9628
9628
|
},
|
|
9629
|
-
children: /* @__PURE__ */ N.jsx(
|
|
9629
|
+
children: /* @__PURE__ */ N.jsx(rt, { material: "open_in_new" })
|
|
9630
9630
|
}
|
|
9631
9631
|
),
|
|
9632
9632
|
/* @__PURE__ */ N.jsx(
|
|
@@ -9640,7 +9640,7 @@ const Sl = (n) => {
|
|
|
9640
9640
|
onClick: (o) => {
|
|
9641
9641
|
o.stopPropagation(), _l(n);
|
|
9642
9642
|
},
|
|
9643
|
-
children: /* @__PURE__ */ N.jsx(
|
|
9643
|
+
children: /* @__PURE__ */ N.jsx(rt, { material: "download" })
|
|
9644
9644
|
}
|
|
9645
9645
|
)
|
|
9646
9646
|
] })
|
|
@@ -9688,7 +9688,7 @@ const nm = "_icon_zv10m_2", am = "_filled_zv10m_7", Js = {
|
|
|
9688
9688
|
// 48px
|
|
9689
9689
|
"3xl": "4rem"
|
|
9690
9690
|
// 64px
|
|
9691
|
-
},
|
|
9691
|
+
}, rt = ({ material: n, filled: r = !1, className: e = "", size: t = "md", title: a }) => {
|
|
9692
9692
|
const i = [Js.icon, e, "material-symbols-outlined"], s = {};
|
|
9693
9693
|
return r && i.push(Js.filled), s.fontSize = Zs[t], s.height = Zs[t], /* @__PURE__ */ N.jsx("span", { title: a, "aria-hidden": !0, style: s, className: i.join(" "), children: n });
|
|
9694
9694
|
}, im = "_box_jv17j_2", sm = "_horizontal_jv17j_20", om = "_show_jv17j_24", Be = {
|
|
@@ -10322,7 +10322,7 @@ Ul(
|
|
|
10322
10322
|
const D = b.map((I) => I.files).flat();
|
|
10323
10323
|
p(
|
|
10324
10324
|
D.reduce(
|
|
10325
|
-
(I, _) => (_.storageId && (I[_.storageId] = !!r.find((
|
|
10325
|
+
(I, _) => (_.storageId && (I[_.storageId] = !!r.find((E) => E.storageId === _.storageId)), I),
|
|
10326
10326
|
{}
|
|
10327
10327
|
)
|
|
10328
10328
|
);
|
|
@@ -10337,10 +10337,10 @@ Ul(
|
|
|
10337
10337
|
}, w = () => {
|
|
10338
10338
|
const b = o.map((k) => k.files).flat(), D = new Set(b.map((k) => k.storageId).filter(Boolean)), I = r.filter(
|
|
10339
10339
|
(k) => !k.storageId || !D.has(k.storageId)
|
|
10340
|
-
), _ = b.filter((k) => k.storageId && d[k.storageId]),
|
|
10340
|
+
), _ = b.filter((k) => k.storageId && d[k.storageId]), E = [...I];
|
|
10341
10341
|
_.forEach((k) => {
|
|
10342
|
-
k.storageId && !
|
|
10343
|
-
}), t(
|
|
10342
|
+
k.storageId && !E.some((x) => x.storageId === k.storageId) && E.push(k);
|
|
10343
|
+
}), t(E), f == null || f.close();
|
|
10344
10344
|
}, v = () => f == null ? void 0 : f.close();
|
|
10345
10345
|
return /* @__PURE__ */ N.jsxs(ko, { ref: h, closedby: "any", children: [
|
|
10346
10346
|
/* @__PURE__ */ N.jsx(Ma, { children: /* @__PURE__ */ N.jsx(Nn, { level: 2, "data-size": "sm", children: n("existingFiles.dialogTitle") }) }),
|
|
@@ -10358,7 +10358,7 @@ Ul(
|
|
|
10358
10358
|
icon: !0,
|
|
10359
10359
|
color: "neutral",
|
|
10360
10360
|
variant: "ghost",
|
|
10361
|
-
children: /* @__PURE__ */ N.jsx(
|
|
10361
|
+
children: /* @__PURE__ */ N.jsx(rt, { size: "xl", material: "chevron_left" })
|
|
10362
10362
|
}
|
|
10363
10363
|
),
|
|
10364
10364
|
/* @__PURE__ */ N.jsxs(Nn, { children: [
|
|
@@ -10412,7 +10412,7 @@ function ug({ existingFilesProviderItem: n, onClick: r }) {
|
|
|
10412
10412
|
/* @__PURE__ */ N.jsx(Nn, { children: n.title }),
|
|
10413
10413
|
/* @__PURE__ */ N.jsx(Mt, { className: xt.subtitle, children: n.label })
|
|
10414
10414
|
] }),
|
|
10415
|
-
/* @__PURE__ */ N.jsx(
|
|
10415
|
+
/* @__PURE__ */ N.jsx(rt, { material: "chevron_right" })
|
|
10416
10416
|
] })
|
|
10417
10417
|
}
|
|
10418
10418
|
);
|
|
@@ -10443,7 +10443,7 @@ function dg({ file: n, handleExistingFileCheckboxChange: r, selectedExistingFile
|
|
|
10443
10443
|
}
|
|
10444
10444
|
),
|
|
10445
10445
|
/* @__PURE__ */ N.jsxs(le, { gap: 12, horizontal: !0, children: [
|
|
10446
|
-
/* @__PURE__ */ N.jsx(le, { className: xt.filePreview, children: n.thumbnailUri ? /* @__PURE__ */ N.jsx("img", { src: n.thumbnailUri, alt: n.fileName || t("unknownFilename") }) : /* @__PURE__ */ N.jsx(
|
|
10446
|
+
/* @__PURE__ */ N.jsx(le, { className: xt.filePreview, children: n.thumbnailUri ? /* @__PURE__ */ N.jsx("img", { src: n.thumbnailUri, alt: n.fileName || t("unknownFilename") }) : /* @__PURE__ */ N.jsx(rt, { size: "lg", material: tg(n.contentType) }) }),
|
|
10447
10447
|
/* @__PURE__ */ N.jsxs(le, { gap: 2, children: [
|
|
10448
10448
|
/* @__PURE__ */ N.jsx(Mt, { className: xt.fileName, children: n.fileName || t("unknownFilename") }),
|
|
10449
10449
|
n.sizeInBytes && /* @__PURE__ */ N.jsx(Mt, { className: xt.subtitle, children: Ii(n.sizeInBytes) })
|
|
@@ -10596,7 +10596,7 @@ Mr.Body;
|
|
|
10596
10596
|
Mr.Row;
|
|
10597
10597
|
Mr.Foot;
|
|
10598
10598
|
const Tg = It({ path: [] }), Eg = () => {
|
|
10599
|
-
const { path: n } =
|
|
10599
|
+
const { path: n } = $e(Tg);
|
|
10600
10600
|
return { getId: (...r) => [...n, ...r].map(String).map((e) => e.toLocaleLowerCase()).join("__") };
|
|
10601
10601
|
}, Lg = "_slotDialogOverrides_3pma0_2", Ig = "_dialogBlockBase_3pma0_24", Og = "_longContent_3pma0_27", Ng = "_headerBlock_3pma0_32", Rg = "_contentBlock_3pma0_42", Fg = "_buttonBlock_3pma0_54", dr = {
|
|
10602
10602
|
slotDialogOverrides: Lg,
|
|
@@ -10614,7 +10614,7 @@ function jg({ children: n }) {
|
|
|
10614
10614
|
return /* @__PURE__ */ N.jsx(Ni.Provider, { value: { setButtons: e, buttons: r }, children: n });
|
|
10615
10615
|
}
|
|
10616
10616
|
function Ag({ children: n }) {
|
|
10617
|
-
const { setButtons: r } =
|
|
10617
|
+
const { setButtons: r } = $e(Ni);
|
|
10618
10618
|
return Z(() => {
|
|
10619
10619
|
if (r)
|
|
10620
10620
|
return r(n), () => {
|
|
@@ -10636,7 +10636,7 @@ function Bg({ title: n, subtitle: r, open: e, onClose: t, ref: a, children: i, l
|
|
|
10636
10636
|
] }) });
|
|
10637
10637
|
}
|
|
10638
10638
|
function Yg({ className: n }) {
|
|
10639
|
-
const { buttons: r } =
|
|
10639
|
+
const { buttons: r } = $e(Ni);
|
|
10640
10640
|
return r ? /* @__PURE__ */ N.jsx(le, { className: n, children: /* @__PURE__ */ N.jsx(le, { horizontal: !0, gap: 12, children: r }) }) : null;
|
|
10641
10641
|
}
|
|
10642
10642
|
Object.assign(Bg, {
|
|
@@ -10680,7 +10680,7 @@ function zg(n, r, e) {
|
|
|
10680
10680
|
}
|
|
10681
10681
|
const Ai = () => zg(), Gg = "_mapContainer_skx3k_1", Pl = {
|
|
10682
10682
|
mapContainer: Gg
|
|
10683
|
-
}, $g = "_editorWrapper_6ks74_1", Kg = "_toolbar_6ks74_6", qg = "_toolbarButton_6ks74_21", Qg = "_active_6ks74_43", Xg = "_danger_6ks74_49", Jg = "_toolbarDivider_6ks74_58",
|
|
10683
|
+
}, $g = "_editorWrapper_6ks74_1", Kg = "_toolbar_6ks74_6", qg = "_toolbarButton_6ks74_21", Qg = "_active_6ks74_43", Xg = "_danger_6ks74_49", Jg = "_toolbarDivider_6ks74_58", et = {
|
|
10684
10684
|
editorWrapper: $g,
|
|
10685
10685
|
toolbar: Kg,
|
|
10686
10686
|
toolbarButton: qg,
|
|
@@ -10732,7 +10732,7 @@ const Ai = () => zg(), Gg = "_mapContainer_skx3k_1", Pl = {
|
|
|
10732
10732
|
), s = (o) => {
|
|
10733
10733
|
i(o);
|
|
10734
10734
|
};
|
|
10735
|
-
return /* @__PURE__ */
|
|
10735
|
+
return /* @__PURE__ */ P.jsx(
|
|
10736
10736
|
Il.Provider,
|
|
10737
10737
|
{
|
|
10738
10738
|
value: {
|
|
@@ -10755,7 +10755,7 @@ const Ai = () => zg(), Gg = "_mapContainer_skx3k_1", Pl = {
|
|
|
10755
10755
|
baseLayers: r,
|
|
10756
10756
|
defaultActiveId: e
|
|
10757
10757
|
}) => {
|
|
10758
|
-
const t =
|
|
10758
|
+
const t = be(
|
|
10759
10759
|
() => r && r.length > 0 ? r : Xn,
|
|
10760
10760
|
[r]
|
|
10761
10761
|
), [a, i] = S.useState(
|
|
@@ -10768,7 +10768,7 @@ const Ai = () => zg(), Gg = "_mapContainer_skx3k_1", Pl = {
|
|
|
10768
10768
|
t.some((c) => c.id === l) && i(l);
|
|
10769
10769
|
},
|
|
10770
10770
|
[t]
|
|
10771
|
-
), o =
|
|
10771
|
+
), o = be(
|
|
10772
10772
|
() => ({
|
|
10773
10773
|
availableBaseLayers: t,
|
|
10774
10774
|
activeBaseLayerId: a,
|
|
@@ -10776,7 +10776,7 @@ const Ai = () => zg(), Gg = "_mapContainer_skx3k_1", Pl = {
|
|
|
10776
10776
|
}),
|
|
10777
10777
|
[t, a, s]
|
|
10778
10778
|
);
|
|
10779
|
-
return /* @__PURE__ */
|
|
10779
|
+
return /* @__PURE__ */ P.jsx(Bi.Provider, { value: o, children: n });
|
|
10780
10780
|
};
|
|
10781
10781
|
function A(n, r, e, t) {
|
|
10782
10782
|
const a = `kv-${n}`, i = {
|
|
@@ -12076,10 +12076,10 @@ const iy = {
|
|
|
12076
12076
|
include: r,
|
|
12077
12077
|
exclude: e
|
|
12078
12078
|
}) => {
|
|
12079
|
-
const t =
|
|
12079
|
+
const t = be(() => {
|
|
12080
12080
|
if (r) return { include: r };
|
|
12081
12081
|
if (e) return { exclude: e };
|
|
12082
|
-
}, [r, e]), a =
|
|
12082
|
+
}, [r, e]), a = be(
|
|
12083
12083
|
() => ry.filter((p) => ay(p.id, t)),
|
|
12084
12084
|
[t]
|
|
12085
12085
|
), [i, s] = S.useState(
|
|
@@ -12106,7 +12106,7 @@ const iy = {
|
|
|
12106
12106
|
}, []), u = q(
|
|
12107
12107
|
(p) => i.has(p),
|
|
12108
12108
|
[i]
|
|
12109
|
-
), d =
|
|
12109
|
+
), d = be(
|
|
12110
12110
|
() => ({
|
|
12111
12111
|
availableLayers: a,
|
|
12112
12112
|
visibleLayerIds: i,
|
|
@@ -12124,7 +12124,7 @@ const iy = {
|
|
|
12124
12124
|
u
|
|
12125
12125
|
]
|
|
12126
12126
|
);
|
|
12127
|
-
return /* @__PURE__ */
|
|
12127
|
+
return /* @__PURE__ */ P.jsx(Yi.Provider, { value: d, children: n });
|
|
12128
12128
|
}, sy = {
|
|
12129
12129
|
layers: [],
|
|
12130
12130
|
visibleLayerIds: /* @__PURE__ */ new Set(),
|
|
@@ -12184,7 +12184,7 @@ const iy = {
|
|
|
12184
12184
|
}, []), d = q(
|
|
12185
12185
|
(f) => a.has(f),
|
|
12186
12186
|
[a]
|
|
12187
|
-
), p =
|
|
12187
|
+
), p = be(
|
|
12188
12188
|
() => ({
|
|
12189
12189
|
layers: e,
|
|
12190
12190
|
visibleLayerIds: a,
|
|
@@ -12206,7 +12206,7 @@ const iy = {
|
|
|
12206
12206
|
d
|
|
12207
12207
|
]
|
|
12208
12208
|
);
|
|
12209
|
-
return /* @__PURE__ */
|
|
12209
|
+
return /* @__PURE__ */ P.jsx(Wi.Provider, { value: p, children: n });
|
|
12210
12210
|
}, oy = {
|
|
12211
12211
|
loading: !1,
|
|
12212
12212
|
error: null,
|
|
@@ -12286,7 +12286,7 @@ const Xv = ({
|
|
|
12286
12286
|
[]
|
|
12287
12287
|
), [c, u] = S.useState(
|
|
12288
12288
|
/* @__PURE__ */ new Set()
|
|
12289
|
-
), d =
|
|
12289
|
+
), d = be(
|
|
12290
12290
|
() => uy(r),
|
|
12291
12291
|
[r]
|
|
12292
12292
|
);
|
|
@@ -12305,7 +12305,7 @@ const Xv = ({
|
|
|
12305
12305
|
v = !0;
|
|
12306
12306
|
};
|
|
12307
12307
|
}, [r]);
|
|
12308
|
-
const p =
|
|
12308
|
+
const p = be(
|
|
12309
12309
|
() => o.map(
|
|
12310
12310
|
(v) => cy(v, d, e)
|
|
12311
12311
|
),
|
|
@@ -12330,7 +12330,7 @@ const Xv = ({
|
|
|
12330
12330
|
}, []), g = q(
|
|
12331
12331
|
(v) => c.has(v),
|
|
12332
12332
|
[c]
|
|
12333
|
-
), w =
|
|
12333
|
+
), w = be(
|
|
12334
12334
|
() => ({
|
|
12335
12335
|
loading: t,
|
|
12336
12336
|
error: i,
|
|
@@ -12356,7 +12356,7 @@ const Xv = ({
|
|
|
12356
12356
|
g
|
|
12357
12357
|
]
|
|
12358
12358
|
);
|
|
12359
|
-
return /* @__PURE__ */
|
|
12359
|
+
return /* @__PURE__ */ P.jsx(Da.Provider, { value: w, children: n });
|
|
12360
12360
|
};
|
|
12361
12361
|
function Ol({
|
|
12362
12362
|
initialCoordinate: n,
|
|
@@ -12364,11 +12364,11 @@ function Ol({
|
|
|
12364
12364
|
onMapClick: e,
|
|
12365
12365
|
height: t
|
|
12366
12366
|
} = {}) {
|
|
12367
|
-
const a =
|
|
12367
|
+
const a = G(null), i = G(null), [s, o] = ne(!1), { viewBounds: l, defaultBounds: c } = $e(Il), u = $e(Bi), d = $e(Yi), p = $e(Wi), f = $e(Da), h = G(r);
|
|
12368
12368
|
Z(() => {
|
|
12369
12369
|
h.current = r;
|
|
12370
12370
|
}, [r]);
|
|
12371
|
-
const y =
|
|
12371
|
+
const y = G(e);
|
|
12372
12372
|
y.current = e, Z(() => {
|
|
12373
12373
|
if (!s) return;
|
|
12374
12374
|
const v = i.current;
|
|
@@ -12390,10 +12390,10 @@ function Ol({
|
|
|
12390
12390
|
n.latitude
|
|
12391
12391
|
], L.zoom = 14) : (L.bounds = c, L.fitBoundsOptions = { padding: 20 });
|
|
12392
12392
|
const C = new ua.Map(L);
|
|
12393
|
-
i.current = C, o(!0), C.on("click", (
|
|
12393
|
+
i.current = C, o(!0), C.on("click", (T) => {
|
|
12394
12394
|
var j;
|
|
12395
12395
|
if (h.current) return;
|
|
12396
|
-
const { lng: O, lat: F } =
|
|
12396
|
+
const { lng: O, lat: F } = T.lngLat;
|
|
12397
12397
|
(j = y.current) == null || j.call(y, {
|
|
12398
12398
|
latitude: ao(Fi(F), 6),
|
|
12399
12399
|
longitude: ao(ji(O), 6)
|
|
@@ -12402,10 +12402,10 @@ function Ol({
|
|
|
12402
12402
|
}, D = () => {
|
|
12403
12403
|
const L = i.current;
|
|
12404
12404
|
if (!L) return;
|
|
12405
|
-
const C = L.getCanvas(),
|
|
12405
|
+
const C = L.getCanvas(), T = (C == null ? void 0 : C.getContext("webgl2")) ?? (C == null ? void 0 : C.getContext("webgl")), O = T == null ? void 0 : T.getExtension("WEBGL_lose_context");
|
|
12406
12406
|
L.remove(), O == null || O.loseContext(), i.current = null, o(!1);
|
|
12407
|
-
}, I = v.getBoundingClientRect(), _ = window.innerHeight || document.documentElement.clientHeight,
|
|
12408
|
-
if (I.bottom > 0 && I.right > 0 && I.top < _ && I.left <
|
|
12407
|
+
}, I = v.getBoundingClientRect(), _ = window.innerHeight || document.documentElement.clientHeight, E = window.innerWidth || document.documentElement.clientWidth;
|
|
12408
|
+
if (I.bottom > 0 && I.right > 0 && I.top < _ && I.left < E)
|
|
12409
12409
|
return b(), D;
|
|
12410
12410
|
const x = new IntersectionObserver(
|
|
12411
12411
|
(L) => {
|
|
@@ -12422,30 +12422,30 @@ function Ol({
|
|
|
12422
12422
|
if (!v || !l || l.length === 0) return;
|
|
12423
12423
|
const b = l.flat();
|
|
12424
12424
|
if (b.length === 0) return;
|
|
12425
|
-
let D = 1 / 0, I = -1 / 0, _ = 1 / 0,
|
|
12425
|
+
let D = 1 / 0, I = -1 / 0, _ = 1 / 0, E = -1 / 0;
|
|
12426
12426
|
for (const [k, x] of b)
|
|
12427
|
-
k < D && (D = k), k > I && (I = k), x < _ && (_ = x), x >
|
|
12427
|
+
k < D && (D = k), k > I && (I = k), x < _ && (_ = x), x > E && (E = x);
|
|
12428
12428
|
v.fitBounds(
|
|
12429
12429
|
[
|
|
12430
12430
|
[D, _],
|
|
12431
|
-
[I,
|
|
12431
|
+
[I, E]
|
|
12432
12432
|
],
|
|
12433
12433
|
{ padding: 20, duration: 300 }
|
|
12434
12434
|
);
|
|
12435
12435
|
}, [l, s]);
|
|
12436
|
-
const g =
|
|
12436
|
+
const g = G(null);
|
|
12437
12437
|
Z(() => {
|
|
12438
12438
|
if (!s) return;
|
|
12439
12439
|
const v = i.current;
|
|
12440
12440
|
if (!v) return;
|
|
12441
12441
|
const b = () => {
|
|
12442
|
-
var _,
|
|
12442
|
+
var _, E;
|
|
12443
12443
|
const D = u.availableBaseLayers.find(
|
|
12444
12444
|
(k) => k.id === u.activeBaseLayerId
|
|
12445
12445
|
), I = g.current;
|
|
12446
12446
|
if ((I == null ? void 0 : I.id) !== (D == null ? void 0 : D.id)) {
|
|
12447
12447
|
if (I && so(v, I), D) {
|
|
12448
|
-
const k = (
|
|
12448
|
+
const k = (E = (_ = v.getStyle().layers) == null ? void 0 : _[0]) == null ? void 0 : E.id;
|
|
12449
12449
|
for (const [x, L] of Object.entries(D.sources))
|
|
12450
12450
|
v.getSource(x) || v.addSource(x, L);
|
|
12451
12451
|
for (const x of D.layers)
|
|
@@ -12456,7 +12456,7 @@ function Ol({
|
|
|
12456
12456
|
};
|
|
12457
12457
|
v.loaded() ? b() : v.once("load", b);
|
|
12458
12458
|
}, [u.activeBaseLayerId, u.availableBaseLayers, s]);
|
|
12459
|
-
const w =
|
|
12459
|
+
const w = G(/* @__PURE__ */ new Set());
|
|
12460
12460
|
return Z(() => {
|
|
12461
12461
|
if (!s) return;
|
|
12462
12462
|
const v = i.current;
|
|
@@ -12470,14 +12470,14 @@ function Ol({
|
|
|
12470
12470
|
...d.visibleLayerIds,
|
|
12471
12471
|
...p.visibleLayerIds,
|
|
12472
12472
|
...f.visibleLayerIds
|
|
12473
|
-
]), _ = new Set(D.map((k) => k.id)),
|
|
12474
|
-
for (const k of
|
|
12473
|
+
]), _ = new Set(D.map((k) => k.id)), E = w.current;
|
|
12474
|
+
for (const k of E)
|
|
12475
12475
|
if (!_.has(k)) {
|
|
12476
12476
|
const x = dy(k, D);
|
|
12477
|
-
x && so(v, x),
|
|
12477
|
+
x && so(v, x), E.delete(k);
|
|
12478
12478
|
}
|
|
12479
12479
|
for (const k of D) {
|
|
12480
|
-
const x =
|
|
12480
|
+
const x = E.has(k.id), L = I.has(k.id);
|
|
12481
12481
|
if (x)
|
|
12482
12482
|
for (const C of k.layers)
|
|
12483
12483
|
v.getLayer(C.id) && v.setLayoutProperty(
|
|
@@ -12486,15 +12486,15 @@ function Ol({
|
|
|
12486
12486
|
L ? "visible" : "none"
|
|
12487
12487
|
);
|
|
12488
12488
|
else {
|
|
12489
|
-
for (const [C,
|
|
12490
|
-
v.getSource(C) || v.addSource(C,
|
|
12489
|
+
for (const [C, T] of Object.entries(k.sources))
|
|
12490
|
+
v.getSource(C) || v.addSource(C, T);
|
|
12491
12491
|
for (const C of k.layers)
|
|
12492
12492
|
v.getLayer(C.id) || v.addLayer(C), v.setLayoutProperty(
|
|
12493
12493
|
C.id,
|
|
12494
12494
|
"visibility",
|
|
12495
12495
|
L ? "visible" : "none"
|
|
12496
12496
|
);
|
|
12497
|
-
|
|
12497
|
+
E.add(k.id);
|
|
12498
12498
|
}
|
|
12499
12499
|
}
|
|
12500
12500
|
};
|
|
@@ -12665,9 +12665,9 @@ function Nl({
|
|
|
12665
12665
|
coordinate: r,
|
|
12666
12666
|
enabled: e = !0
|
|
12667
12667
|
}) {
|
|
12668
|
-
const { baseUrl: t, catalogEntries: a, visibleLayerIds: i } =
|
|
12668
|
+
const { baseUrl: t, catalogEntries: a, visibleLayerIds: i } = $e(
|
|
12669
12669
|
Da
|
|
12670
|
-
), [s, o] = ne(!1), [l, c] = ne(null), u =
|
|
12670
|
+
), [s, o] = ne(!1), [l, c] = ne(null), u = G(null);
|
|
12671
12671
|
return Z(() => {
|
|
12672
12672
|
var v;
|
|
12673
12673
|
if ((v = u.current) == null || v.abort(), u.current = null, !e || !r || !t)
|
|
@@ -12876,15 +12876,15 @@ function Dy({
|
|
|
12876
12876
|
onChange: o,
|
|
12877
12877
|
onSelect: l
|
|
12878
12878
|
}) {
|
|
12879
|
-
const c =
|
|
12879
|
+
const c = G(null), [u, d] = ne("static"), [p, f] = ne(!1), [h, y] = ne([]), [g, w] = ne(!1), v = G(!1), b = G(o);
|
|
12880
12880
|
b.current = o;
|
|
12881
|
-
const D =
|
|
12881
|
+
const D = G(l);
|
|
12882
12882
|
D.current = l;
|
|
12883
|
-
const I =
|
|
12883
|
+
const I = G(s);
|
|
12884
12884
|
I.current = s;
|
|
12885
|
-
const _ =
|
|
12885
|
+
const _ = G(e);
|
|
12886
12886
|
_.current = e;
|
|
12887
|
-
const
|
|
12887
|
+
const E = q(() => {
|
|
12888
12888
|
const O = c.current;
|
|
12889
12889
|
if (!O || !b.current) return;
|
|
12890
12890
|
v.current = !0;
|
|
@@ -12892,14 +12892,14 @@ function Dy({
|
|
|
12892
12892
|
type: "FeatureCollection",
|
|
12893
12893
|
features: O.getSnapshot().filter(
|
|
12894
12894
|
(Y) => {
|
|
12895
|
-
var
|
|
12896
|
-
return ((
|
|
12895
|
+
var M;
|
|
12896
|
+
return ((M = Y.properties) == null ? void 0 : M.mode) !== "select";
|
|
12897
12897
|
}
|
|
12898
|
-
).map(({ id: Y, geometry:
|
|
12898
|
+
).map(({ id: Y, geometry: M, properties: z }) => ({
|
|
12899
12899
|
type: "Feature",
|
|
12900
12900
|
...Y != null ? { id: Y } : {},
|
|
12901
|
-
geometry:
|
|
12902
|
-
properties: { ...
|
|
12901
|
+
geometry: M,
|
|
12902
|
+
properties: { ...z }
|
|
12903
12903
|
}))
|
|
12904
12904
|
};
|
|
12905
12905
|
b.current(B);
|
|
@@ -12909,8 +12909,8 @@ function Dy({
|
|
|
12909
12909
|
if (!O || !r || i) return;
|
|
12910
12910
|
const F = () => {
|
|
12911
12911
|
if (c.current) return;
|
|
12912
|
-
const
|
|
12913
|
-
switch (
|
|
12912
|
+
const Y = e.map((J) => {
|
|
12913
|
+
switch (J) {
|
|
12914
12914
|
case "point":
|
|
12915
12915
|
return new tc({
|
|
12916
12916
|
styles: {
|
|
@@ -12966,7 +12966,7 @@ function Dy({
|
|
|
12966
12966
|
});
|
|
12967
12967
|
}
|
|
12968
12968
|
});
|
|
12969
|
-
t &&
|
|
12969
|
+
t && Y.push(
|
|
12970
12970
|
new rc({
|
|
12971
12971
|
styles: {
|
|
12972
12972
|
selectedPointColor: "#ff451f",
|
|
@@ -13010,7 +13010,7 @@ function Dy({
|
|
|
13010
13010
|
}
|
|
13011
13011
|
}
|
|
13012
13012
|
})
|
|
13013
|
-
),
|
|
13013
|
+
), Y.push(
|
|
13014
13014
|
new nc({
|
|
13015
13015
|
modeName: "static",
|
|
13016
13016
|
styles: {
|
|
@@ -13027,61 +13027,72 @@ function Dy({
|
|
|
13027
13027
|
}
|
|
13028
13028
|
})
|
|
13029
13029
|
);
|
|
13030
|
-
const
|
|
13030
|
+
const M = new ac({
|
|
13031
13031
|
adapter: new ic({ map: O }),
|
|
13032
|
-
modes:
|
|
13032
|
+
modes: Y
|
|
13033
13033
|
});
|
|
13034
|
-
|
|
13035
|
-
const
|
|
13036
|
-
|
|
13037
|
-
const
|
|
13038
|
-
|
|
13039
|
-
}),
|
|
13034
|
+
M.start();
|
|
13035
|
+
const z = s && e.length > 0 ? e[0] : "static";
|
|
13036
|
+
M.setMode(z), d(z), M.on("change", () => {
|
|
13037
|
+
const J = M.getMode();
|
|
13038
|
+
J === "linestring" || J === "polygon" || E();
|
|
13039
|
+
}), M.on("finish", (J) => {
|
|
13040
13040
|
I.current && e.length > 0 ? Promise.resolve().then(() => {
|
|
13041
|
-
const
|
|
13042
|
-
if (!
|
|
13043
|
-
const
|
|
13044
|
-
(
|
|
13045
|
-
var
|
|
13046
|
-
return ((
|
|
13041
|
+
const m = c.current;
|
|
13042
|
+
if (!m) return;
|
|
13043
|
+
const $ = m.getSnapshot().filter(
|
|
13044
|
+
(pe) => {
|
|
13045
|
+
var Ae, X, ye, Ue;
|
|
13046
|
+
return ((Ae = pe.properties) == null ? void 0 : Ae.mode) !== "select" && !((X = pe.properties) != null && X.closingPoint) && !((ye = pe.properties) != null && ye.snappingPoint) && !((Ue = pe.properties) != null && Ue.coordinatePoint) && pe.id !== J;
|
|
13047
13047
|
}
|
|
13048
|
-
).map((
|
|
13049
|
-
if (
|
|
13048
|
+
).map((pe) => pe.id);
|
|
13049
|
+
if ($.length > 0)
|
|
13050
13050
|
try {
|
|
13051
|
-
|
|
13051
|
+
m.removeFeatures($);
|
|
13052
13052
|
} catch {
|
|
13053
13053
|
}
|
|
13054
|
-
|
|
13055
|
-
const
|
|
13056
|
-
|
|
13057
|
-
}) :
|
|
13058
|
-
}),
|
|
13059
|
-
var
|
|
13054
|
+
E();
|
|
13055
|
+
const Q = e[0];
|
|
13056
|
+
m.getMode() !== Q && (m.setMode(Q), d(Q));
|
|
13057
|
+
}) : E();
|
|
13058
|
+
}), M.on("select", () => {
|
|
13059
|
+
var R;
|
|
13060
13060
|
f(!0);
|
|
13061
|
-
const
|
|
13062
|
-
var
|
|
13063
|
-
return ((
|
|
13064
|
-
}).map(({ id:
|
|
13061
|
+
const m = M.getSnapshot().filter(($) => {
|
|
13062
|
+
var Q;
|
|
13063
|
+
return ((Q = $.properties) == null ? void 0 : Q.selected) === !0;
|
|
13064
|
+
}).map(({ id: $, geometry: Q, properties: pe }) => ({
|
|
13065
13065
|
type: "Feature",
|
|
13066
|
-
|
|
13067
|
-
geometry:
|
|
13068
|
-
properties: { ...
|
|
13066
|
+
...$ != null ? { id: $ } : {},
|
|
13067
|
+
geometry: Q,
|
|
13068
|
+
properties: { ...pe }
|
|
13069
13069
|
}));
|
|
13070
|
-
y(
|
|
13071
|
-
}),
|
|
13072
|
-
var
|
|
13073
|
-
f(!1), y([]), (
|
|
13074
|
-
}), c.current =
|
|
13070
|
+
y(m), (R = D.current) == null || R.call(D, m.length > 0 ? m : null);
|
|
13071
|
+
}), M.on("deselect", () => {
|
|
13072
|
+
var J;
|
|
13073
|
+
f(!1), y([]), (J = D.current) == null || J.call(D, null);
|
|
13074
|
+
}), c.current = M, w(!0);
|
|
13075
13075
|
};
|
|
13076
|
-
let j =
|
|
13077
|
-
|
|
13078
|
-
c.current || F();
|
|
13079
|
-
}
|
|
13080
|
-
|
|
13081
|
-
|
|
13082
|
-
|
|
13076
|
+
let j = !1;
|
|
13077
|
+
const B = () => {
|
|
13078
|
+
j || c.current || F();
|
|
13079
|
+
};
|
|
13080
|
+
if (O.loaded())
|
|
13081
|
+
B();
|
|
13082
|
+
else {
|
|
13083
|
+
const Y = () => {
|
|
13084
|
+
j || B();
|
|
13085
|
+
};
|
|
13086
|
+
O.once("load", Y), requestAnimationFrame(() => {
|
|
13087
|
+
!j && !c.current && O.loaded() && (O.off("load", Y), B());
|
|
13088
|
+
});
|
|
13089
|
+
}
|
|
13090
|
+
return () => {
|
|
13091
|
+
j = !0;
|
|
13092
|
+
const Y = c.current;
|
|
13093
|
+
if (Y) {
|
|
13083
13094
|
try {
|
|
13084
|
-
|
|
13095
|
+
Y.stop();
|
|
13085
13096
|
} catch {
|
|
13086
13097
|
}
|
|
13087
13098
|
c.current = null, v.current = !1, w(!1);
|
|
@@ -13094,35 +13105,35 @@ function Dy({
|
|
|
13094
13105
|
e,
|
|
13095
13106
|
t,
|
|
13096
13107
|
s,
|
|
13097
|
-
|
|
13108
|
+
E
|
|
13098
13109
|
]);
|
|
13099
13110
|
const k = q(
|
|
13100
13111
|
(O) => {
|
|
13101
13112
|
const F = c.current;
|
|
13102
13113
|
if (!F) return;
|
|
13103
13114
|
const B = F.getSnapshot().filter(
|
|
13104
|
-
(
|
|
13105
|
-
var J, m, R,
|
|
13106
|
-
return ((J =
|
|
13115
|
+
(z) => {
|
|
13116
|
+
var J, m, R, $;
|
|
13117
|
+
return ((J = z.properties) == null ? void 0 : J.mode) !== "select" && !((m = z.properties) != null && m.closingPoint) && !((R = z.properties) != null && R.snappingPoint) && !(($ = z.properties) != null && $.coordinatePoint);
|
|
13107
13118
|
}
|
|
13108
|
-
).map((
|
|
13119
|
+
).map((z) => z.id);
|
|
13109
13120
|
if (B.length > 0)
|
|
13110
13121
|
try {
|
|
13111
13122
|
F.removeFeatures(B);
|
|
13112
13123
|
} catch {
|
|
13113
13124
|
}
|
|
13114
13125
|
if (v.current = !1, !O || O.features.length === 0) return;
|
|
13115
|
-
const
|
|
13116
|
-
...
|
|
13126
|
+
const M = oa(O).features.map((z) => ({
|
|
13127
|
+
...z,
|
|
13117
13128
|
properties: {
|
|
13118
|
-
...
|
|
13119
|
-
mode: lo(
|
|
13129
|
+
...z.properties,
|
|
13130
|
+
mode: lo(z.geometry, _.current)
|
|
13120
13131
|
}
|
|
13121
13132
|
}));
|
|
13122
13133
|
try {
|
|
13123
|
-
F.addFeatures(
|
|
13124
|
-
} catch (
|
|
13125
|
-
console.error("[GeoJsonEditor] Error replacing features:",
|
|
13134
|
+
F.addFeatures(M), v.current = !0;
|
|
13135
|
+
} catch (z) {
|
|
13136
|
+
console.error("[GeoJsonEditor] Error replacing features:", z);
|
|
13126
13137
|
}
|
|
13127
13138
|
},
|
|
13128
13139
|
[]
|
|
@@ -13160,15 +13171,15 @@ function Dy({
|
|
|
13160
13171
|
if (!O || !a) return;
|
|
13161
13172
|
const j = O.getSnapshot().filter(
|
|
13162
13173
|
(Y) => {
|
|
13163
|
-
var
|
|
13164
|
-
return ((
|
|
13174
|
+
var M;
|
|
13175
|
+
return ((M = Y.properties) == null ? void 0 : M.selected) === !0;
|
|
13165
13176
|
}
|
|
13166
13177
|
);
|
|
13167
13178
|
if (j.length > 0) {
|
|
13168
|
-
const Y = j.map((
|
|
13169
|
-
O.removeFeatures(Y), f(!1), y([]), (B = D.current) == null || B.call(D, null),
|
|
13179
|
+
const Y = j.map((M) => M.id);
|
|
13180
|
+
O.removeFeatures(Y), f(!1), y([]), (B = D.current) == null || B.call(D, null), E();
|
|
13170
13181
|
}
|
|
13171
|
-
}, [a,
|
|
13182
|
+
}, [a, E]), T = q(() => {
|
|
13172
13183
|
const O = c.current;
|
|
13173
13184
|
return O ? O.getSnapshot().filter((j) => {
|
|
13174
13185
|
var B;
|
|
@@ -13186,7 +13197,7 @@ function Dy({
|
|
|
13186
13197
|
deleteSelected: C,
|
|
13187
13198
|
hasSelection: p,
|
|
13188
13199
|
selectedFeatures: h,
|
|
13189
|
-
getSnapshot:
|
|
13200
|
+
getSnapshot: T,
|
|
13190
13201
|
isReady: g,
|
|
13191
13202
|
/** @internal — exposed for the component to call after mount */
|
|
13192
13203
|
loadInitialData: x,
|
|
@@ -13237,66 +13248,66 @@ function Ty({
|
|
|
13237
13248
|
onChange: i,
|
|
13238
13249
|
onSelect: s
|
|
13239
13250
|
}) {
|
|
13240
|
-
const o =
|
|
13251
|
+
const o = G([]), l = G([]), [c, u] = ne(null), d = G(null), p = G(!1), f = G(t);
|
|
13241
13252
|
f.current = t;
|
|
13242
|
-
const h =
|
|
13253
|
+
const h = G(e);
|
|
13243
13254
|
h.current = e;
|
|
13244
|
-
const y =
|
|
13255
|
+
const y = G(i);
|
|
13245
13256
|
y.current = i;
|
|
13246
|
-
const g =
|
|
13257
|
+
const g = G(s);
|
|
13247
13258
|
g.current = s, d.current = c;
|
|
13248
|
-
const w =
|
|
13259
|
+
const w = G(a);
|
|
13249
13260
|
w.current = a;
|
|
13250
13261
|
const v = q(
|
|
13251
13262
|
(C) => {
|
|
13252
|
-
const
|
|
13253
|
-
if (!
|
|
13254
|
-
const { container: O, compass: F, handle: j } = Rl(), [B, Y] = C.geometry.coordinates,
|
|
13255
|
-
la(F, j,
|
|
13256
|
-
let
|
|
13257
|
-
const
|
|
13263
|
+
const T = n.current;
|
|
13264
|
+
if (!T) return;
|
|
13265
|
+
const { container: O, compass: F, handle: j } = Rl(), [B, Y] = C.geometry.coordinates, M = C.properties.direction ?? 0;
|
|
13266
|
+
la(F, j, M);
|
|
13267
|
+
let z = !1, J = null, m = null, R = !1;
|
|
13268
|
+
const $ = () => o.current.find(
|
|
13258
13269
|
(se) => se.properties.id === C.properties.id
|
|
13259
13270
|
), Q = (se) => {
|
|
13260
|
-
const
|
|
13261
|
-
if (!
|
|
13262
|
-
const [ut, Se] =
|
|
13271
|
+
const Ve = $();
|
|
13272
|
+
if (!T || !Ve) return 0;
|
|
13273
|
+
const [ut, Se] = Ve.geometry.coordinates, ze = T.project([ut, Se]), zt = T.getContainer().getBoundingClientRect(), Ft = se.clientX - zt.left, Tr = se.clientY - zt.top, ir = Ft - ze.x, W = ze.y - Tr;
|
|
13263
13274
|
return Ri(Math.atan2(ir, W) * 180 / Math.PI);
|
|
13264
|
-
},
|
|
13275
|
+
}, pe = (se) => {
|
|
13265
13276
|
if (h.current) return;
|
|
13266
13277
|
R = !0, se.currentTarget.setPointerCapture(se.pointerId), se.stopPropagation(), se.preventDefault(), b(C.properties.id);
|
|
13267
|
-
const
|
|
13268
|
-
D(C.properties.id,
|
|
13278
|
+
const Ve = Math.round(Q(se));
|
|
13279
|
+
D(C.properties.id, Ve);
|
|
13269
13280
|
}, Ae = (se) => {
|
|
13270
13281
|
if (!R) return;
|
|
13271
|
-
const
|
|
13272
|
-
D(C.properties.id,
|
|
13282
|
+
const Ve = Math.round(Q(se));
|
|
13283
|
+
D(C.properties.id, Ve);
|
|
13273
13284
|
}, X = (se) => {
|
|
13274
13285
|
R && (R = !1, se.currentTarget.releasePointerCapture(se.pointerId), se.stopPropagation(), se.preventDefault());
|
|
13275
|
-
},
|
|
13286
|
+
}, ye = (se) => {
|
|
13276
13287
|
if (h.current) return;
|
|
13277
|
-
se.stopPropagation(), se.preventDefault(), b(C.properties.id),
|
|
13278
|
-
const
|
|
13279
|
-
J =
|
|
13280
|
-
const
|
|
13281
|
-
|
|
13282
|
-
|
|
13283
|
-
|
|
13284
|
-
]),
|
|
13285
|
-
},
|
|
13286
|
-
if (!
|
|
13288
|
+
se.stopPropagation(), se.preventDefault(), b(C.properties.id), z = !0, se.currentTarget.setPointerCapture(se.pointerId);
|
|
13289
|
+
const Ve = T.getContainer().getBoundingClientRect(), ut = se.clientX - Ve.left, Se = se.clientY - Ve.top;
|
|
13290
|
+
J = T.unproject([ut, Se]);
|
|
13291
|
+
const ze = $();
|
|
13292
|
+
ze && (m = [
|
|
13293
|
+
ze.geometry.coordinates[0],
|
|
13294
|
+
ze.geometry.coordinates[1]
|
|
13295
|
+
]), T.dragPan.disable();
|
|
13296
|
+
}, Ue = (se) => {
|
|
13297
|
+
if (!z || !J || !m)
|
|
13287
13298
|
return;
|
|
13288
|
-
const
|
|
13299
|
+
const Ve = T.getContainer().getBoundingClientRect(), ut = se.clientX - Ve.left, Se = se.clientY - Ve.top, ze = T.unproject([ut, Se]), zt = ze.lng - J.lng, Ft = ze.lat - J.lat, Tr = m[0] + zt, ir = m[1] + Ft;
|
|
13289
13300
|
I(C.properties.id, Tr, ir);
|
|
13290
13301
|
}, Rt = (se) => {
|
|
13291
|
-
|
|
13302
|
+
z && (z = !1, J = null, m = null, se.currentTarget.releasePointerCapture(se.pointerId), se.stopPropagation(), se.preventDefault(), T.dragPan.enable());
|
|
13292
13303
|
}, Me = (se) => {
|
|
13293
13304
|
se.stopPropagation();
|
|
13294
13305
|
};
|
|
13295
|
-
j.addEventListener("pointerdown",
|
|
13306
|
+
j.addEventListener("pointerdown", pe), j.addEventListener("pointermove", Ae), j.addEventListener("pointerup", X), j.addEventListener("mousedown", Me), j.addEventListener("click", Me), F.addEventListener("pointerdown", ye), F.addEventListener("pointermove", Ue), F.addEventListener("pointerup", Rt), F.addEventListener("mousedown", Me), F.addEventListener("click", Me);
|
|
13296
13307
|
const xa = new ua.Marker({
|
|
13297
13308
|
element: O,
|
|
13298
13309
|
anchor: "center"
|
|
13299
|
-
}).setLngLat([B, Y]).addTo(
|
|
13310
|
+
}).setLngLat([B, Y]).addTo(T), Ca = {
|
|
13300
13311
|
featureId: C.properties.id,
|
|
13301
13312
|
marker: xa,
|
|
13302
13313
|
compass: F,
|
|
@@ -13308,9 +13319,9 @@ function Ty({
|
|
|
13308
13319
|
[n]
|
|
13309
13320
|
), b = q((C) => {
|
|
13310
13321
|
var j;
|
|
13311
|
-
const
|
|
13312
|
-
if (
|
|
13313
|
-
const B = l.current.find((Y) => Y.featureId ===
|
|
13322
|
+
const T = d.current;
|
|
13323
|
+
if (T) {
|
|
13324
|
+
const B = l.current.find((Y) => Y.featureId === T);
|
|
13314
13325
|
B && Ka(B.container, !1);
|
|
13315
13326
|
}
|
|
13316
13327
|
u(C);
|
|
@@ -13318,39 +13329,39 @@ function Ty({
|
|
|
13318
13329
|
O && Ka(O.container, !0);
|
|
13319
13330
|
const F = o.current.find((B) => B.properties.id === C);
|
|
13320
13331
|
(j = g.current) == null || j.call(g, F ?? null);
|
|
13321
|
-
}, []), D = q((C,
|
|
13332
|
+
}, []), D = q((C, T) => {
|
|
13322
13333
|
var F;
|
|
13323
13334
|
o.current = o.current.map(
|
|
13324
13335
|
(j) => j.properties.id === C ? {
|
|
13325
13336
|
...j,
|
|
13326
|
-
properties: { ...j.properties, direction:
|
|
13337
|
+
properties: { ...j.properties, direction: T }
|
|
13327
13338
|
} : j
|
|
13328
13339
|
);
|
|
13329
13340
|
const O = l.current.find((j) => j.featureId === C);
|
|
13330
|
-
O && la(O.compass, O.handle,
|
|
13331
|
-
}, []), I = q((C,
|
|
13341
|
+
O && la(O.compass, O.handle, T), (F = y.current) == null || F.call(y);
|
|
13342
|
+
}, []), I = q((C, T, O) => {
|
|
13332
13343
|
var j;
|
|
13333
13344
|
o.current = o.current.map(
|
|
13334
13345
|
(B) => B.properties.id === C ? {
|
|
13335
13346
|
...B,
|
|
13336
|
-
geometry: { ...B.geometry, coordinates: [
|
|
13347
|
+
geometry: { ...B.geometry, coordinates: [T, O] }
|
|
13337
13348
|
} : B
|
|
13338
13349
|
);
|
|
13339
13350
|
const F = l.current.find((B) => B.featureId === C);
|
|
13340
|
-
F && F.marker.setLngLat([
|
|
13351
|
+
F && F.marker.setLngLat([T, O]), (j = y.current) == null || j.call(y);
|
|
13341
13352
|
}, []);
|
|
13342
13353
|
Z(() => {
|
|
13343
13354
|
const C = n.current;
|
|
13344
13355
|
if (!C || !r || e) return;
|
|
13345
|
-
const
|
|
13356
|
+
const T = (O) => {
|
|
13346
13357
|
var Y;
|
|
13347
13358
|
if (f.current !== "directional-point") return;
|
|
13348
13359
|
p.current = !0;
|
|
13349
13360
|
let F = 0;
|
|
13350
13361
|
if (w.current && o.current.length > 0) {
|
|
13351
13362
|
F = o.current[0].properties.direction;
|
|
13352
|
-
for (const
|
|
13353
|
-
|
|
13363
|
+
for (const M of l.current)
|
|
13364
|
+
M.marker.remove();
|
|
13354
13365
|
l.current = [], o.current = [], u(null);
|
|
13355
13366
|
}
|
|
13356
13367
|
const j = Ai(), B = {
|
|
@@ -13367,43 +13378,43 @@ function Ty({
|
|
|
13367
13378
|
};
|
|
13368
13379
|
o.current = [...o.current, B], v(B), (Y = y.current) == null || Y.call(y);
|
|
13369
13380
|
};
|
|
13370
|
-
return C.on("click",
|
|
13371
|
-
C.off("click",
|
|
13381
|
+
return C.on("click", T), () => {
|
|
13382
|
+
C.off("click", T);
|
|
13372
13383
|
};
|
|
13373
13384
|
}, [n, r, e, v]);
|
|
13374
13385
|
const _ = q(() => {
|
|
13375
|
-
var
|
|
13386
|
+
var T;
|
|
13376
13387
|
const C = d.current;
|
|
13377
13388
|
if (C) {
|
|
13378
13389
|
const O = l.current.find((F) => F.featureId === C);
|
|
13379
13390
|
O && Ka(O.container, !1);
|
|
13380
13391
|
}
|
|
13381
|
-
u(null), (
|
|
13382
|
-
}, []),
|
|
13392
|
+
u(null), (T = g.current) == null || T.call(g, null);
|
|
13393
|
+
}, []), E = q(() => {
|
|
13383
13394
|
var O, F;
|
|
13384
13395
|
const C = d.current;
|
|
13385
13396
|
if (!C) return;
|
|
13386
|
-
const
|
|
13387
|
-
|
|
13397
|
+
const T = l.current.find((j) => j.featureId === C);
|
|
13398
|
+
T && T.marker.remove(), l.current = l.current.filter((j) => j.featureId !== C), o.current = o.current.filter(
|
|
13388
13399
|
(j) => j.properties.id !== C
|
|
13389
13400
|
), u(null), (O = g.current) == null || O.call(g, null), (F = y.current) == null || F.call(y);
|
|
13390
13401
|
}, []), k = q(() => o.current, []), x = q(
|
|
13391
13402
|
(C) => {
|
|
13392
13403
|
if (!p.current) {
|
|
13393
13404
|
p.current = !0, o.current = C;
|
|
13394
|
-
for (const
|
|
13395
|
-
l.current.some((O) => O.featureId ===
|
|
13405
|
+
for (const T of C)
|
|
13406
|
+
l.current.some((O) => O.featureId === T.properties.id) || v(T);
|
|
13396
13407
|
}
|
|
13397
13408
|
},
|
|
13398
13409
|
[v]
|
|
13399
13410
|
), L = q(
|
|
13400
13411
|
(C) => {
|
|
13401
|
-
for (const
|
|
13402
|
-
|
|
13412
|
+
for (const T of l.current)
|
|
13413
|
+
T.marker.remove();
|
|
13403
13414
|
if (l.current = [], o.current = [], u(null), p.current = !1, C.length !== 0) {
|
|
13404
13415
|
o.current = C, p.current = !0;
|
|
13405
|
-
for (const
|
|
13406
|
-
v(
|
|
13416
|
+
for (const T of C)
|
|
13417
|
+
v(T);
|
|
13407
13418
|
}
|
|
13408
13419
|
},
|
|
13409
13420
|
[v]
|
|
@@ -13414,7 +13425,7 @@ function Ty({
|
|
|
13414
13425
|
l.current = [];
|
|
13415
13426
|
}, []), {
|
|
13416
13427
|
hasSelection: c !== null,
|
|
13417
|
-
deleteSelected:
|
|
13428
|
+
deleteSelected: E,
|
|
13418
13429
|
getFeatures: k,
|
|
13419
13430
|
loadFeatures: x,
|
|
13420
13431
|
replaceFeatures: L,
|
|
@@ -13443,7 +13454,7 @@ const Ey = { directionalPoint: "Tegn retningspunkt", linestring: "Tegn linje", p
|
|
|
13443
13454
|
"nb-NO": Ry,
|
|
13444
13455
|
"nn-NO": Wy,
|
|
13445
13456
|
"en-US": $y
|
|
13446
|
-
}, Fl = "styrbord-kart", Jv = (n) => /* @__PURE__ */
|
|
13457
|
+
}, Fl = "styrbord-kart", Jv = (n) => /* @__PURE__ */ P.jsx(
|
|
13447
13458
|
Ql,
|
|
13448
13459
|
{
|
|
13449
13460
|
ns: Fl,
|
|
@@ -13453,7 +13464,7 @@ const Ey = { directionalPoint: "Tegn retningspunkt", linestring: "Tegn linje", p
|
|
|
13453
13464
|
), on = So.bind(
|
|
13454
13465
|
null,
|
|
13455
13466
|
Fl
|
|
13456
|
-
), qy = () => /* @__PURE__ */
|
|
13467
|
+
), qy = () => /* @__PURE__ */ P.jsx(
|
|
13457
13468
|
"svg",
|
|
13458
13469
|
{
|
|
13459
13470
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13461,9 +13472,9 @@ const Ey = { directionalPoint: "Tegn retningspunkt", linestring: "Tegn linje", p
|
|
|
13461
13472
|
viewBox: "0 -960 960 960",
|
|
13462
13473
|
width: "20px",
|
|
13463
13474
|
fill: "currentColor",
|
|
13464
|
-
children: /* @__PURE__ */
|
|
13475
|
+
children: /* @__PURE__ */ P.jsx("path", { d: "M480-96Q323.03-227.11 245.51-339.55 168-452 168-549q0-134 89-224.5T480-864q12 0 24 .5t24 2.31V-788q-11-2-23-3t-25-1q-103 0-171.5 69T240-549q0 71 60.5 161T480-191q119-107 179.5-197T720-549v-13.5q0-6.75-1-13.5h72q1 7 1 13.67V-549q0 97-77 209T480-96Zm51-405.21q21-21.21 21-51T530.79-603q-21.21-21-51-21T429-602.79q-21 21.21-21 51T429.21-501q21.21 21 51 21T531-501.21ZM480-552Zm240-96h72v-120h120v-72H792v-120h-72v120H600v72h120v120Z" })
|
|
13465
13476
|
}
|
|
13466
|
-
), Qy = () => /* @__PURE__ */
|
|
13477
|
+
), Qy = () => /* @__PURE__ */ P.jsx(
|
|
13467
13478
|
"svg",
|
|
13468
13479
|
{
|
|
13469
13480
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13471,9 +13482,9 @@ const Ey = { directionalPoint: "Tegn retningspunkt", linestring: "Tegn linje", p
|
|
|
13471
13482
|
viewBox: "0 -960 960 960",
|
|
13472
13483
|
width: "20px",
|
|
13473
13484
|
fill: "currentColor",
|
|
13474
|
-
children: /* @__PURE__ */
|
|
13485
|
+
children: /* @__PURE__ */ P.jsx("path", { d: "M119.79-240Q90-240 69-261.21t-21-51Q48-342 69.04-363t50.59-21q5.37 0 9.87.5 4.5.5 9.5 1.5l200-199.52q-2-5.48-2.5-9.48t-.5-9.37q0-29.55 21.21-50.59 21.21-21.04 51-21.04T459-650.85q21 21.15 21 50.85 0 3-3 18l104.86 105q5.14-2 9-2.5 3.85-.5 9-.5 5.14 0 9.64.5 4.5.5 9.5 1.5l152-151.66q-2-5.34-2.5-9.34t-.5-9.37q0-29.55 21.21-50.59 21.21-21.04 51-21.04T891-698.79q21 21.21 21 51T890.96-597q-21.04 21-50.59 21-5.37 0-9.87-.5-4.5-.5-9.5-1.5L669-426.34q2 5.34 2.5 9.34t.5 9.37q0 29.55-21.21 50.59-21.21 21.04-51 21.04T549-357.04q-21-21.04-21-50.59 0-5.37.5-9.87.5-4.5 1.5-9.5L426.09-531q-5.09 2-9.09 2.5t-9 .5q-5 0-19-2L189-330.48q2 5.48 2.5 9.48t.5 9.37q0 29.55-21.21 50.59-21.21 21.04-51 21.04Z" })
|
|
13475
13486
|
}
|
|
13476
|
-
), Xy = () => /* @__PURE__ */
|
|
13487
|
+
), Xy = () => /* @__PURE__ */ P.jsx(
|
|
13477
13488
|
"svg",
|
|
13478
13489
|
{
|
|
13479
13490
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13481,9 +13492,9 @@ const Ey = { directionalPoint: "Tegn retningspunkt", linestring: "Tegn linje", p
|
|
|
13481
13492
|
viewBox: "0 -960 960 960",
|
|
13482
13493
|
width: "20px",
|
|
13483
13494
|
fill: "currentColor",
|
|
13484
|
-
children: /* @__PURE__ */
|
|
13495
|
+
children: /* @__PURE__ */ P.jsx("path", { d: "M306-168h349l123-356-298-205-298 205 124 356Zm-52 72L96-552l384-264 384 264L706-96H254Zm226-353Z" })
|
|
13485
13496
|
}
|
|
13486
|
-
), Jy = () => /* @__PURE__ */
|
|
13497
|
+
), Jy = () => /* @__PURE__ */ P.jsx("svg", { viewBox: "0 0 24 24", width: "18", height: "18", fill: "currentColor", children: /* @__PURE__ */ P.jsx("path", { d: "M5,3 L5,19 L10,15 L14,21 L16,20 L12,14 L18,14 Z" }) }), Zy = () => /* @__PURE__ */ P.jsxs(
|
|
13487
13498
|
"svg",
|
|
13488
13499
|
{
|
|
13489
13500
|
viewBox: "0 0 24 24",
|
|
@@ -13495,14 +13506,14 @@ const Ey = { directionalPoint: "Tegn retningspunkt", linestring: "Tegn linje", p
|
|
|
13495
13506
|
strokeLinecap: "round",
|
|
13496
13507
|
strokeLinejoin: "round",
|
|
13497
13508
|
children: [
|
|
13498
|
-
/* @__PURE__ */
|
|
13499
|
-
/* @__PURE__ */
|
|
13500
|
-
/* @__PURE__ */
|
|
13501
|
-
/* @__PURE__ */
|
|
13502
|
-
/* @__PURE__ */
|
|
13509
|
+
/* @__PURE__ */ P.jsx("polyline", { points: "3,6 5,6 21,6" }),
|
|
13510
|
+
/* @__PURE__ */ P.jsx("path", { d: "M6,6 L6,20 C6,21.1 6.9,22 8,22 L16,22 C17.1,22 18,21.1 18,20 L18,6" }),
|
|
13511
|
+
/* @__PURE__ */ P.jsx("line", { x1: "10", y1: "11", x2: "10", y2: "17" }),
|
|
13512
|
+
/* @__PURE__ */ P.jsx("line", { x1: "14", y1: "11", x2: "14", y2: "17" }),
|
|
13513
|
+
/* @__PURE__ */ P.jsx("path", { d: "M9,6 L9,4 C9,3.4 9.4,3 10,3 L14,3 C14.6,3 15,3.4 15,4 L15,6" })
|
|
13503
13514
|
]
|
|
13504
13515
|
}
|
|
13505
|
-
), ev = () => /* @__PURE__ */
|
|
13516
|
+
), ev = () => /* @__PURE__ */ P.jsx(
|
|
13506
13517
|
"svg",
|
|
13507
13518
|
{
|
|
13508
13519
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13510,9 +13521,9 @@ const Ey = { directionalPoint: "Tegn retningspunkt", linestring: "Tegn linje", p
|
|
|
13510
13521
|
viewBox: "0 -960 960 960",
|
|
13511
13522
|
width: "20px",
|
|
13512
13523
|
fill: "currentColor",
|
|
13513
|
-
children: /* @__PURE__ */
|
|
13524
|
+
children: /* @__PURE__ */ P.jsx("path", { d: "m312-312 264-72 72-264-264 72-72 264Zm168-120q-20 1-34-13.5T432-480q0-20 14-34t34-14q20 0 34 14t14 34q0 20-14 34t-34 14Zm.28 336Q401-96 331-126t-122.5-82.5Q156-261 126-330.96t-30-149.5Q96-560 126-629.5q30-69.5 82.5-122T330.96-834q69.96-30 149.5-30t149.04 30q69.5 30 122 82.5T834-629.28q30 69.73 30 149Q864-401 834-331t-82.5 122.5Q699-156 629.28-126q-69.73 30-149 30Zm-.05-72Q610-168 701-259.23t91-221Q792-610 700.77-701t-221-91Q350-792 259-700.77t-91 221Q168-350 259.23-259t221 91ZM480-480Z" })
|
|
13514
13525
|
}
|
|
13515
|
-
), tv = () => /* @__PURE__ */
|
|
13526
|
+
), tv = () => /* @__PURE__ */ P.jsx(
|
|
13516
13527
|
"svg",
|
|
13517
13528
|
{
|
|
13518
13529
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13520,7 +13531,7 @@ const Ey = { directionalPoint: "Tegn retningspunkt", linestring: "Tegn linje", p
|
|
|
13520
13531
|
viewBox: "0 -960 960 960",
|
|
13521
13532
|
width: "20px",
|
|
13522
13533
|
fill: "currentColor",
|
|
13523
|
-
children: /* @__PURE__ */
|
|
13534
|
+
children: /* @__PURE__ */ P.jsx("path", { d: "M440-200h80v-167l64 64 56-57-160-160-160 160 57 56 63-63v167ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z" })
|
|
13524
13535
|
}
|
|
13525
13536
|
), rv = {
|
|
13526
13537
|
point: qy,
|
|
@@ -13594,7 +13605,7 @@ function av({
|
|
|
13594
13605
|
onImport: o,
|
|
13595
13606
|
onImportError: l
|
|
13596
13607
|
}) {
|
|
13597
|
-
const { t: c } = on(), u =
|
|
13608
|
+
const { t: c } = on(), u = G(null), d = (p) => {
|
|
13598
13609
|
var y;
|
|
13599
13610
|
const f = (y = p.target.files) == null ? void 0 : y[0];
|
|
13600
13611
|
if (!f) return;
|
|
@@ -13612,8 +13623,8 @@ function av({
|
|
|
13612
13623
|
console.warn(`GeoJsonEditor: failed to read file — ${g}`), l == null || l("invalid-json", g);
|
|
13613
13624
|
}, h.readAsText(f), p.target.value = "";
|
|
13614
13625
|
};
|
|
13615
|
-
return /* @__PURE__ */
|
|
13616
|
-
/* @__PURE__ */
|
|
13626
|
+
return /* @__PURE__ */ P.jsxs("div", { className: et.toolbar, children: [
|
|
13627
|
+
/* @__PURE__ */ P.jsx(
|
|
13617
13628
|
"input",
|
|
13618
13629
|
{
|
|
13619
13630
|
ref: u,
|
|
@@ -13625,38 +13636,38 @@ function av({
|
|
|
13625
13636
|
),
|
|
13626
13637
|
n.map((p) => {
|
|
13627
13638
|
const f = rv[p], h = r === p;
|
|
13628
|
-
return /* @__PURE__ */
|
|
13639
|
+
return /* @__PURE__ */ P.jsx(
|
|
13629
13640
|
"button",
|
|
13630
13641
|
{
|
|
13631
13642
|
type: "button",
|
|
13632
13643
|
title: c(po[p]),
|
|
13633
13644
|
"aria-label": c(po[p]),
|
|
13634
13645
|
"aria-pressed": h,
|
|
13635
|
-
className: [
|
|
13646
|
+
className: [et.toolbarButton, h && et.active].filter(Boolean).join(" "),
|
|
13636
13647
|
onClick: () => i(h ? "static" : p),
|
|
13637
|
-
children: /* @__PURE__ */
|
|
13648
|
+
children: /* @__PURE__ */ P.jsx(f, {})
|
|
13638
13649
|
},
|
|
13639
13650
|
p
|
|
13640
13651
|
);
|
|
13641
13652
|
}),
|
|
13642
|
-
/* @__PURE__ */
|
|
13643
|
-
/* @__PURE__ */
|
|
13653
|
+
/* @__PURE__ */ P.jsx("div", { className: et.toolbarDivider }),
|
|
13654
|
+
/* @__PURE__ */ P.jsx(
|
|
13644
13655
|
"button",
|
|
13645
13656
|
{
|
|
13646
13657
|
type: "button",
|
|
13647
13658
|
title: c("toolbar.import"),
|
|
13648
13659
|
"aria-label": c("toolbar.import"),
|
|
13649
|
-
className:
|
|
13660
|
+
className: et.toolbarButton,
|
|
13650
13661
|
onClick: () => {
|
|
13651
13662
|
var p;
|
|
13652
13663
|
return (p = u.current) == null ? void 0 : p.click();
|
|
13653
13664
|
},
|
|
13654
|
-
children: /* @__PURE__ */
|
|
13665
|
+
children: /* @__PURE__ */ P.jsx(tv, {})
|
|
13655
13666
|
}
|
|
13656
13667
|
),
|
|
13657
|
-
a && /* @__PURE__ */
|
|
13658
|
-
/* @__PURE__ */
|
|
13659
|
-
/* @__PURE__ */
|
|
13668
|
+
a && /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
|
|
13669
|
+
/* @__PURE__ */ P.jsx("div", { className: et.toolbarDivider }),
|
|
13670
|
+
/* @__PURE__ */ P.jsx(
|
|
13660
13671
|
"button",
|
|
13661
13672
|
{
|
|
13662
13673
|
type: "button",
|
|
@@ -13664,41 +13675,41 @@ function av({
|
|
|
13664
13675
|
"aria-label": c("toolbar.select"),
|
|
13665
13676
|
"aria-pressed": r === "select",
|
|
13666
13677
|
className: [
|
|
13667
|
-
|
|
13668
|
-
r === "select" &&
|
|
13678
|
+
et.toolbarButton,
|
|
13679
|
+
r === "select" && et.active
|
|
13669
13680
|
].filter(Boolean).join(" "),
|
|
13670
13681
|
onClick: () => i(r === "select" ? "static" : "select"),
|
|
13671
|
-
children: /* @__PURE__ */
|
|
13682
|
+
children: /* @__PURE__ */ P.jsx(Jy, {})
|
|
13672
13683
|
}
|
|
13673
13684
|
)
|
|
13674
13685
|
] }),
|
|
13675
|
-
t && e && /* @__PURE__ */
|
|
13676
|
-
/* @__PURE__ */
|
|
13677
|
-
/* @__PURE__ */
|
|
13686
|
+
t && e && /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
|
|
13687
|
+
/* @__PURE__ */ P.jsx("div", { className: et.toolbarDivider }),
|
|
13688
|
+
/* @__PURE__ */ P.jsx(
|
|
13678
13689
|
"button",
|
|
13679
13690
|
{
|
|
13680
13691
|
type: "button",
|
|
13681
13692
|
title: c("toolbar.delete"),
|
|
13682
13693
|
"aria-label": c("toolbar.delete"),
|
|
13683
|
-
className: [
|
|
13694
|
+
className: [et.toolbarButton, et.danger].join(" "),
|
|
13684
13695
|
onClick: s,
|
|
13685
|
-
children: /* @__PURE__ */
|
|
13696
|
+
children: /* @__PURE__ */ P.jsx(Zy, {})
|
|
13686
13697
|
}
|
|
13687
13698
|
)
|
|
13688
13699
|
] })
|
|
13689
13700
|
] });
|
|
13690
13701
|
}
|
|
13691
13702
|
function iv() {
|
|
13692
|
-
const n =
|
|
13703
|
+
const n = $e(Bi), r = $e(Yi), e = $e(Wi), t = $e(Da), a = be(
|
|
13693
13704
|
() => new Set(r.availableLayers.map((f) => f.id)),
|
|
13694
13705
|
[r.availableLayers]
|
|
13695
|
-
), i =
|
|
13706
|
+
), i = be(
|
|
13696
13707
|
() => new Set(e.layers.map((f) => f.id)),
|
|
13697
13708
|
[e.layers]
|
|
13698
|
-
), s =
|
|
13709
|
+
), s = be(
|
|
13699
13710
|
() => new Set(t.layers.map((f) => f.id)),
|
|
13700
13711
|
[t.layers]
|
|
13701
|
-
), o =
|
|
13712
|
+
), o = be(() => {
|
|
13702
13713
|
const f = [];
|
|
13703
13714
|
for (const h of r.availableLayers)
|
|
13704
13715
|
f.push({
|
|
@@ -13726,7 +13737,7 @@ function iv() {
|
|
|
13726
13737
|
e.visibleLayerIds,
|
|
13727
13738
|
t.layers,
|
|
13728
13739
|
t.visibleLayerIds
|
|
13729
|
-
]), l =
|
|
13740
|
+
]), l = be(
|
|
13730
13741
|
() => o.filter((f) => f.visible),
|
|
13731
13742
|
[o]
|
|
13732
13743
|
), c = (f) => a.has(f) ? (r.toggleLayer(f), !0) : i.has(f) ? (e.toggleLayer(f), !0) : s.has(f) ? (t.toggleLayer(f), !0) : !1, u = (f) => a.has(f) ? (r.showLayer(f), !0) : i.has(f) ? (e.showLayer(f), !0) : s.has(f) ? (t.showLayer(f), !0) : !1, d = (f) => a.has(f) ? (r.hideLayer(f), !0) : i.has(f) ? (e.hideLayer(f), !0) : s.has(f) ? (t.hideLayer(f), !0) : !1, p = (f) => a.has(f) ? r.isVisible(f) : i.has(f) ? e.isVisible(f) : s.has(f) ? t.isVisible(f) : !1;
|
|
@@ -13744,7 +13755,7 @@ function iv() {
|
|
|
13744
13755
|
isVisible: p
|
|
13745
13756
|
};
|
|
13746
13757
|
}
|
|
13747
|
-
const sv = "_root_flgzd_1", ov = "_toggleButton_flgzd_13", lv = "_toggleButtonIcon_flgzd_34", cv = "_panel_flgzd_40", uv = "_filterWrapper_flgzd_51", dv = "_filterInput_flgzd_56", fv = "_categoryHeading_flgzd_78", pv = "_chevron_flgzd_99", hv = "_layerItem_flgzd_105", mv = "_checkbox_flgzd_120", gv = "_radio_flgzd_128", yv = "_emptyMessage_flgzd_136",
|
|
13758
|
+
const sv = "_root_flgzd_1", ov = "_toggleButton_flgzd_13", lv = "_toggleButtonIcon_flgzd_34", cv = "_panel_flgzd_40", uv = "_filterWrapper_flgzd_51", dv = "_filterInput_flgzd_56", fv = "_categoryHeading_flgzd_78", pv = "_chevron_flgzd_99", hv = "_layerItem_flgzd_105", mv = "_checkbox_flgzd_120", gv = "_radio_flgzd_128", yv = "_emptyMessage_flgzd_136", Ge = {
|
|
13748
13759
|
root: sv,
|
|
13749
13760
|
toggleButton: ov,
|
|
13750
13761
|
toggleButtonIcon: lv,
|
|
@@ -13759,7 +13770,7 @@ const sv = "_root_flgzd_1", ov = "_toggleButton_flgzd_13", lv = "_toggleButtonIc
|
|
|
13759
13770
|
emptyMessage: yv
|
|
13760
13771
|
};
|
|
13761
13772
|
function vv({ className: n }) {
|
|
13762
|
-
return /* @__PURE__ */
|
|
13773
|
+
return /* @__PURE__ */ P.jsxs(
|
|
13763
13774
|
"svg",
|
|
13764
13775
|
{
|
|
13765
13776
|
className: n,
|
|
@@ -13771,9 +13782,9 @@ function vv({ className: n }) {
|
|
|
13771
13782
|
strokeLinejoin: "round",
|
|
13772
13783
|
"aria-hidden": "true",
|
|
13773
13784
|
children: [
|
|
13774
|
-
/* @__PURE__ */
|
|
13775
|
-
/* @__PURE__ */
|
|
13776
|
-
/* @__PURE__ */
|
|
13785
|
+
/* @__PURE__ */ P.jsx("polygon", { points: "12 2 2 7 12 12 22 7 12 2" }),
|
|
13786
|
+
/* @__PURE__ */ P.jsx("polyline", { points: "2 17 12 22 22 17" }),
|
|
13787
|
+
/* @__PURE__ */ P.jsx("polyline", { points: "2 12 12 17 22 12" })
|
|
13777
13788
|
]
|
|
13778
13789
|
}
|
|
13779
13790
|
);
|
|
@@ -13782,7 +13793,7 @@ function bv({
|
|
|
13782
13793
|
expanded: n,
|
|
13783
13794
|
className: r
|
|
13784
13795
|
}) {
|
|
13785
|
-
return /* @__PURE__ */
|
|
13796
|
+
return /* @__PURE__ */ P.jsx(
|
|
13786
13797
|
"svg",
|
|
13787
13798
|
{
|
|
13788
13799
|
className: r,
|
|
@@ -13797,7 +13808,7 @@ function bv({
|
|
|
13797
13808
|
transform: n ? "rotate(90deg)" : void 0,
|
|
13798
13809
|
transition: "transform 150ms ease"
|
|
13799
13810
|
},
|
|
13800
|
-
children: /* @__PURE__ */
|
|
13811
|
+
children: /* @__PURE__ */ P.jsx("polyline", { points: "6 4 10 8 6 12" })
|
|
13801
13812
|
}
|
|
13802
13813
|
);
|
|
13803
13814
|
}
|
|
@@ -13811,14 +13822,14 @@ function jl({
|
|
|
13811
13822
|
availableBaseLayers: d,
|
|
13812
13823
|
activeBaseLayerId: p,
|
|
13813
13824
|
setActiveBaseLayer: f
|
|
13814
|
-
} = iv(), h =
|
|
13825
|
+
} = iv(), h = G(null), y = d.length > 1, g = q((k) => {
|
|
13815
13826
|
l((x) => {
|
|
13816
13827
|
const L = new Set(x);
|
|
13817
13828
|
return L.has(k) ? L.delete(k) : L.add(k), L;
|
|
13818
13829
|
});
|
|
13819
|
-
}, []), w = i.trim().toLowerCase(), v =
|
|
13830
|
+
}, []), w = i.trim().toLowerCase(), v = be(() => w ? d.filter(
|
|
13820
13831
|
(k) => k.label.toLowerCase().includes(w)
|
|
13821
|
-
) : d, [d, w]), b =
|
|
13832
|
+
) : d, [d, w]), b = be(() => {
|
|
13822
13833
|
const k = /* @__PURE__ */ new Map();
|
|
13823
13834
|
for (const x of c) {
|
|
13824
13835
|
if (w && !x.definition.label.toLowerCase().includes(w))
|
|
@@ -13830,44 +13841,44 @@ function jl({
|
|
|
13830
13841
|
}, [c, w, e]), D = q(
|
|
13831
13842
|
(k) => w ? !0 : o.has(k),
|
|
13832
13843
|
[w, o]
|
|
13833
|
-
), I = [
|
|
13834
|
-
return c.length === 0 && !y ? null : /* @__PURE__ */
|
|
13835
|
-
/* @__PURE__ */
|
|
13844
|
+
), I = [Ge.root, n].filter(Boolean).join(" "), _ = y && v.length > 0, E = b.size > 0 || _;
|
|
13845
|
+
return c.length === 0 && !y ? null : /* @__PURE__ */ P.jsxs("div", { className: I, children: [
|
|
13846
|
+
/* @__PURE__ */ P.jsxs(
|
|
13836
13847
|
"button",
|
|
13837
13848
|
{
|
|
13838
13849
|
type: "button",
|
|
13839
|
-
className:
|
|
13850
|
+
className: Ge.toggleButton,
|
|
13840
13851
|
onClick: () => a((k) => !k),
|
|
13841
13852
|
"aria-expanded": t,
|
|
13842
13853
|
"aria-label": e(t ? "layers.hide" : "layers.show"),
|
|
13843
13854
|
title: e(t ? "layers.hide" : "layers.show"),
|
|
13844
13855
|
children: [
|
|
13845
|
-
/* @__PURE__ */
|
|
13856
|
+
/* @__PURE__ */ P.jsx(vv, { className: Ge.toggleButtonIcon }),
|
|
13846
13857
|
e("layers.toggleButtonLabel")
|
|
13847
13858
|
]
|
|
13848
13859
|
}
|
|
13849
13860
|
),
|
|
13850
|
-
t && /* @__PURE__ */
|
|
13851
|
-
/* @__PURE__ */
|
|
13861
|
+
t && /* @__PURE__ */ P.jsxs("div", { className: Ge.panel, ref: h, role: "group", children: [
|
|
13862
|
+
/* @__PURE__ */ P.jsx("div", { className: Ge.filterWrapper, children: /* @__PURE__ */ P.jsx(
|
|
13852
13863
|
"input",
|
|
13853
13864
|
{
|
|
13854
13865
|
type: "text",
|
|
13855
|
-
className:
|
|
13866
|
+
className: Ge.filterInput,
|
|
13856
13867
|
placeholder: e("layers.searchPlaceholder"),
|
|
13857
13868
|
value: i,
|
|
13858
13869
|
onChange: (k) => s(k.target.value),
|
|
13859
13870
|
"aria-label": e("layers.filterAriaLabel")
|
|
13860
13871
|
}
|
|
13861
13872
|
) }),
|
|
13862
|
-
|
|
13863
|
-
_ && /* @__PURE__ */
|
|
13864
|
-
/* @__PURE__ */
|
|
13865
|
-
v.map((k) => /* @__PURE__ */
|
|
13866
|
-
/* @__PURE__ */
|
|
13873
|
+
E ? /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
|
|
13874
|
+
_ && /* @__PURE__ */ P.jsxs("div", { children: [
|
|
13875
|
+
/* @__PURE__ */ P.jsx("span", { className: Ge.categoryHeading, children: e("layers.backgroundMaps") }),
|
|
13876
|
+
v.map((k) => /* @__PURE__ */ P.jsxs("label", { className: Ge.layerItem, children: [
|
|
13877
|
+
/* @__PURE__ */ P.jsx(
|
|
13867
13878
|
"input",
|
|
13868
13879
|
{
|
|
13869
13880
|
type: "radio",
|
|
13870
|
-
className:
|
|
13881
|
+
className: Ge.radio,
|
|
13871
13882
|
name: "base-layer",
|
|
13872
13883
|
checked: k.id === p,
|
|
13873
13884
|
onChange: () => f(k.id)
|
|
@@ -13878,48 +13889,48 @@ function jl({
|
|
|
13878
13889
|
] }),
|
|
13879
13890
|
Array.from(b.entries()).map(([k, x]) => {
|
|
13880
13891
|
const L = b.size > 1 || _, C = D(k);
|
|
13881
|
-
return /* @__PURE__ */
|
|
13882
|
-
L ? /* @__PURE__ */
|
|
13892
|
+
return /* @__PURE__ */ P.jsxs("div", { children: [
|
|
13893
|
+
L ? /* @__PURE__ */ P.jsxs(
|
|
13883
13894
|
"button",
|
|
13884
13895
|
{
|
|
13885
13896
|
type: "button",
|
|
13886
|
-
className:
|
|
13897
|
+
className: Ge.categoryHeading,
|
|
13887
13898
|
onClick: () => g(k),
|
|
13888
13899
|
"aria-expanded": C,
|
|
13889
13900
|
children: [
|
|
13890
|
-
/* @__PURE__ */
|
|
13901
|
+
/* @__PURE__ */ P.jsx(
|
|
13891
13902
|
bv,
|
|
13892
13903
|
{
|
|
13893
13904
|
expanded: C,
|
|
13894
|
-
className:
|
|
13905
|
+
className: Ge.chevron
|
|
13895
13906
|
}
|
|
13896
13907
|
),
|
|
13897
13908
|
k
|
|
13898
13909
|
]
|
|
13899
13910
|
}
|
|
13900
13911
|
) : null,
|
|
13901
|
-
(!L || C) && x.map((
|
|
13912
|
+
(!L || C) && x.map((T) => /* @__PURE__ */ P.jsxs(
|
|
13902
13913
|
"label",
|
|
13903
13914
|
{
|
|
13904
|
-
className:
|
|
13915
|
+
className: Ge.layerItem,
|
|
13905
13916
|
children: [
|
|
13906
|
-
/* @__PURE__ */
|
|
13917
|
+
/* @__PURE__ */ P.jsx(
|
|
13907
13918
|
"input",
|
|
13908
13919
|
{
|
|
13909
13920
|
type: "checkbox",
|
|
13910
|
-
className:
|
|
13911
|
-
checked:
|
|
13912
|
-
onChange: () => u(
|
|
13921
|
+
className: Ge.checkbox,
|
|
13922
|
+
checked: T.visible,
|
|
13923
|
+
onChange: () => u(T.definition.id)
|
|
13913
13924
|
}
|
|
13914
13925
|
),
|
|
13915
|
-
|
|
13926
|
+
T.definition.label
|
|
13916
13927
|
]
|
|
13917
13928
|
},
|
|
13918
|
-
|
|
13929
|
+
T.definition.id
|
|
13919
13930
|
))
|
|
13920
13931
|
] }, k);
|
|
13921
13932
|
})
|
|
13922
|
-
] }) : /* @__PURE__ */
|
|
13933
|
+
] }) : /* @__PURE__ */ P.jsx("div", { className: Ge.emptyMessage, children: e(w ? "layers.noResults" : "layers.noLayersAvailable") })
|
|
13923
13934
|
] })
|
|
13924
13935
|
] });
|
|
13925
13936
|
}
|
|
@@ -13961,8 +13972,8 @@ function Al({
|
|
|
13961
13972
|
hoverContent: e
|
|
13962
13973
|
}) {
|
|
13963
13974
|
var l;
|
|
13964
|
-
const t = ((l = n.properties) == null ? void 0 : l.type) ?? "_", a = t ? e == null ? void 0 : e[t] : void 0, i = a ? a(n) : /* @__PURE__ */
|
|
13965
|
-
return /* @__PURE__ */
|
|
13975
|
+
const t = ((l = n.properties) == null ? void 0 : l.type) ?? "_", a = t ? e == null ? void 0 : e[t] : void 0, i = a ? a(n) : /* @__PURE__ */ P.jsx(xv, { feature: n });
|
|
13976
|
+
return /* @__PURE__ */ P.jsx(
|
|
13966
13977
|
"div",
|
|
13967
13978
|
{
|
|
13968
13979
|
className: $r.popup,
|
|
@@ -13979,10 +13990,10 @@ function Al({
|
|
|
13979
13990
|
function xv({ feature: n }) {
|
|
13980
13991
|
var t, a, i;
|
|
13981
13992
|
const r = (t = n.properties) == null ? void 0 : t.type, e = (a = n.properties) == null ? void 0 : a.name;
|
|
13982
|
-
return /* @__PURE__ */
|
|
13983
|
-
r && /* @__PURE__ */
|
|
13984
|
-
e && /* @__PURE__ */
|
|
13985
|
-
!r && !e && /* @__PURE__ */
|
|
13993
|
+
return /* @__PURE__ */ P.jsxs("div", { className: $r.defaultContent, children: [
|
|
13994
|
+
r && /* @__PURE__ */ P.jsx("span", { className: $r.featureType, children: String(r) }),
|
|
13995
|
+
e && /* @__PURE__ */ P.jsx("span", { className: $r.featureName, children: String(e) }),
|
|
13996
|
+
!r && !e && /* @__PURE__ */ P.jsx("span", { className: $r.featureType, children: ((i = n.geometry) == null ? void 0 : i.type) ?? "Feature" })
|
|
13986
13997
|
] });
|
|
13987
13998
|
}
|
|
13988
13999
|
const Cv = "_crosshair_1azhm_1", Mv = "_crosshairSvg_1azhm_11", Pv = "_actionButton_1azhm_18", di = {
|
|
@@ -13991,7 +14002,7 @@ const Cv = "_crosshair_1azhm_1", Mv = "_crosshairSvg_1azhm_11", Pv = "_actionBut
|
|
|
13991
14002
|
actionButton: Pv
|
|
13992
14003
|
};
|
|
13993
14004
|
function Tv() {
|
|
13994
|
-
return /* @__PURE__ */
|
|
14005
|
+
return /* @__PURE__ */ P.jsxs(
|
|
13995
14006
|
"svg",
|
|
13996
14007
|
{
|
|
13997
14008
|
width: "40",
|
|
@@ -14001,7 +14012,7 @@ function Tv() {
|
|
|
14001
14012
|
"aria-hidden": "true",
|
|
14002
14013
|
className: di.crosshairSvg,
|
|
14003
14014
|
children: [
|
|
14004
|
-
/* @__PURE__ */
|
|
14015
|
+
/* @__PURE__ */ P.jsx(
|
|
14005
14016
|
"line",
|
|
14006
14017
|
{
|
|
14007
14018
|
x1: "0",
|
|
@@ -14012,7 +14023,7 @@ function Tv() {
|
|
|
14012
14023
|
strokeWidth: "1.5"
|
|
14013
14024
|
}
|
|
14014
14025
|
),
|
|
14015
|
-
/* @__PURE__ */
|
|
14026
|
+
/* @__PURE__ */ P.jsx(
|
|
14016
14027
|
"line",
|
|
14017
14028
|
{
|
|
14018
14029
|
x1: "24",
|
|
@@ -14023,7 +14034,7 @@ function Tv() {
|
|
|
14023
14034
|
strokeWidth: "1.5"
|
|
14024
14035
|
}
|
|
14025
14036
|
),
|
|
14026
|
-
/* @__PURE__ */
|
|
14037
|
+
/* @__PURE__ */ P.jsx(
|
|
14027
14038
|
"line",
|
|
14028
14039
|
{
|
|
14029
14040
|
x1: "20",
|
|
@@ -14034,7 +14045,7 @@ function Tv() {
|
|
|
14034
14045
|
strokeWidth: "1.5"
|
|
14035
14046
|
}
|
|
14036
14047
|
),
|
|
14037
|
-
/* @__PURE__ */
|
|
14048
|
+
/* @__PURE__ */ P.jsx(
|
|
14038
14049
|
"line",
|
|
14039
14050
|
{
|
|
14040
14051
|
x1: "20",
|
|
@@ -14045,7 +14056,7 @@ function Tv() {
|
|
|
14045
14056
|
strokeWidth: "1.5"
|
|
14046
14057
|
}
|
|
14047
14058
|
),
|
|
14048
|
-
/* @__PURE__ */
|
|
14059
|
+
/* @__PURE__ */ P.jsx(
|
|
14049
14060
|
"circle",
|
|
14050
14061
|
{
|
|
14051
14062
|
cx: "20",
|
|
@@ -14061,7 +14072,7 @@ function Tv() {
|
|
|
14061
14072
|
);
|
|
14062
14073
|
}
|
|
14063
14074
|
function Ev() {
|
|
14064
|
-
return /* @__PURE__ */
|
|
14075
|
+
return /* @__PURE__ */ P.jsxs(
|
|
14065
14076
|
"svg",
|
|
14066
14077
|
{
|
|
14067
14078
|
width: "18",
|
|
@@ -14074,9 +14085,9 @@ function Ev() {
|
|
|
14074
14085
|
strokeLinejoin: "round",
|
|
14075
14086
|
"aria-hidden": "true",
|
|
14076
14087
|
children: [
|
|
14077
|
-
/* @__PURE__ */
|
|
14078
|
-
/* @__PURE__ */
|
|
14079
|
-
/* @__PURE__ */
|
|
14088
|
+
/* @__PURE__ */ P.jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
14089
|
+
/* @__PURE__ */ P.jsx("circle", { cx: "12", cy: "12", r: "6" }),
|
|
14090
|
+
/* @__PURE__ */ P.jsx("circle", { cx: "12", cy: "12", r: "2" })
|
|
14080
14091
|
]
|
|
14081
14092
|
}
|
|
14082
14093
|
);
|
|
@@ -14110,9 +14121,9 @@ function Bl({ mapRef: n, visible: r }) {
|
|
|
14110
14121
|
})
|
|
14111
14122
|
);
|
|
14112
14123
|
};
|
|
14113
|
-
return /* @__PURE__ */
|
|
14114
|
-
/* @__PURE__ */
|
|
14115
|
-
/* @__PURE__ */
|
|
14124
|
+
return /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
|
|
14125
|
+
/* @__PURE__ */ P.jsx("div", { className: di.crosshair, children: /* @__PURE__ */ P.jsx(Tv, {}) }),
|
|
14126
|
+
/* @__PURE__ */ P.jsxs(
|
|
14116
14127
|
"button",
|
|
14117
14128
|
{
|
|
14118
14129
|
type: "button",
|
|
@@ -14120,8 +14131,8 @@ function Bl({ mapRef: n, visible: r }) {
|
|
|
14120
14131
|
onClick: s,
|
|
14121
14132
|
"aria-label": a("mapCenterAction.ariaLabel"),
|
|
14122
14133
|
children: [
|
|
14123
|
-
/* @__PURE__ */
|
|
14124
|
-
/* @__PURE__ */
|
|
14134
|
+
/* @__PURE__ */ P.jsx(Ev, {}),
|
|
14135
|
+
/* @__PURE__ */ P.jsx("span", { children: a("mapCenterAction.buttonText") })
|
|
14125
14136
|
]
|
|
14126
14137
|
}
|
|
14127
14138
|
)
|
|
@@ -14156,26 +14167,26 @@ function Hi({
|
|
|
14156
14167
|
const { mapContainerRef: D, mapRef: I, mapReady: _ } = Ol({
|
|
14157
14168
|
disabled: u,
|
|
14158
14169
|
height: l
|
|
14159
|
-
}), [
|
|
14170
|
+
}), [E, k] = ne(
|
|
14160
14171
|
null
|
|
14161
|
-
), x =
|
|
14172
|
+
), x = G("static"), [L, C] = ne(
|
|
14162
14173
|
v ? e[0] : "static"
|
|
14163
|
-
),
|
|
14164
|
-
|
|
14174
|
+
), T = G(y);
|
|
14175
|
+
T.current = y;
|
|
14165
14176
|
const { result: O } = Nl({
|
|
14166
14177
|
mapRef: I,
|
|
14167
|
-
coordinate:
|
|
14178
|
+
coordinate: E,
|
|
14168
14179
|
enabled: !!y
|
|
14169
14180
|
});
|
|
14170
14181
|
Z(() => {
|
|
14171
14182
|
var W;
|
|
14172
|
-
O && ((W =
|
|
14183
|
+
O && ((W = T.current) == null || W.call(T, O));
|
|
14173
14184
|
}, [O]), Z(() => {
|
|
14174
14185
|
const W = I.current;
|
|
14175
|
-
if (!W || !_ || u || !
|
|
14186
|
+
if (!W || !_ || u || !T.current) return;
|
|
14176
14187
|
const re = (_e) => {
|
|
14177
|
-
const
|
|
14178
|
-
if (
|
|
14188
|
+
const ve = x.current;
|
|
14189
|
+
if (ve === "point" || ve === "linestring" || ve === "polygon" || ve === "directional-point")
|
|
14179
14190
|
return;
|
|
14180
14191
|
const { lng: xe, lat: De } = _e.lngLat;
|
|
14181
14192
|
k({ latitude: De, longitude: xe });
|
|
@@ -14184,21 +14195,21 @@ function Hi({
|
|
|
14184
14195
|
W.off("click", re);
|
|
14185
14196
|
};
|
|
14186
14197
|
}, [I, _, u]);
|
|
14187
|
-
const [F, j] = ne(null), [B, Y] = ne(null),
|
|
14188
|
-
|
|
14189
|
-
const
|
|
14198
|
+
const [F, j] = ne(null), [B, Y] = ne(null), M = G(p);
|
|
14199
|
+
M.current = p;
|
|
14200
|
+
const z = q(
|
|
14190
14201
|
(W) => {
|
|
14191
14202
|
var re;
|
|
14192
14203
|
(re = J.current) == null || re.deselect(), f == null || f(W);
|
|
14193
14204
|
},
|
|
14194
14205
|
[f]
|
|
14195
|
-
), J =
|
|
14206
|
+
), J = G(null), m = G(
|
|
14196
14207
|
() => {
|
|
14197
14208
|
}
|
|
14198
|
-
), R =
|
|
14199
|
-
() =>
|
|
14200
|
-
[
|
|
14201
|
-
),
|
|
14209
|
+
), R = G(!1), $ = e.filter((W) => W !== "directional-point").join(","), Q = be(
|
|
14210
|
+
() => $.split(",").filter(Boolean),
|
|
14211
|
+
[$]
|
|
14212
|
+
), pe = Dy({
|
|
14202
14213
|
mapRef: I,
|
|
14203
14214
|
mapReady: _,
|
|
14204
14215
|
modes: Q,
|
|
@@ -14209,14 +14220,14 @@ function Hi({
|
|
|
14209
14220
|
onChange: (W) => {
|
|
14210
14221
|
m.current(W);
|
|
14211
14222
|
},
|
|
14212
|
-
onSelect:
|
|
14223
|
+
onSelect: z
|
|
14213
14224
|
}), {
|
|
14214
14225
|
activeMode: Ae,
|
|
14215
14226
|
setActiveMode: X,
|
|
14216
|
-
deleteSelected:
|
|
14217
|
-
hasSelection:
|
|
14227
|
+
deleteSelected: ye,
|
|
14228
|
+
hasSelection: Ue,
|
|
14218
14229
|
isReady: Rt
|
|
14219
|
-
} =
|
|
14230
|
+
} = pe;
|
|
14220
14231
|
x.current = L;
|
|
14221
14232
|
const Me = Ty({
|
|
14222
14233
|
mapRef: I,
|
|
@@ -14236,13 +14247,13 @@ function Hi({
|
|
|
14236
14247
|
(W) => {
|
|
14237
14248
|
if (!r) return;
|
|
14238
14249
|
R.current = !0;
|
|
14239
|
-
const re = (W == null ? void 0 : W.features) ??
|
|
14250
|
+
const re = (W == null ? void 0 : W.features) ?? pe.getSnapshot(), _e = Me.getFeatures(), ve = {
|
|
14240
14251
|
type: "FeatureCollection",
|
|
14241
14252
|
features: [...re, ..._e]
|
|
14242
14253
|
};
|
|
14243
|
-
r(ho(
|
|
14254
|
+
r(ho(ve));
|
|
14244
14255
|
},
|
|
14245
|
-
[r,
|
|
14256
|
+
[r, pe, Me]
|
|
14246
14257
|
);
|
|
14247
14258
|
m.current = xa;
|
|
14248
14259
|
const Ca = q(
|
|
@@ -14256,18 +14267,18 @@ function Hi({
|
|
|
14256
14267
|
(W) => W === "directional-point" ? W : Ae
|
|
14257
14268
|
);
|
|
14258
14269
|
}, [Ae]);
|
|
14259
|
-
const se =
|
|
14260
|
-
Me.hasSelection ? Me.deleteSelected() :
|
|
14261
|
-
}, [Me,
|
|
14270
|
+
const se = Ue || Me.hasSelection, Ve = q(() => {
|
|
14271
|
+
Me.hasSelection ? Me.deleteSelected() : ye();
|
|
14272
|
+
}, [Me, ye]), { replaceFeatures: ut } = pe, Se = be(
|
|
14262
14273
|
() => n ? oa(n) : void 0,
|
|
14263
14274
|
[n]
|
|
14264
|
-
), { replaceFeatures:
|
|
14275
|
+
), { replaceFeatures: ze } = Me, zt = G(b);
|
|
14265
14276
|
zt.current = b;
|
|
14266
14277
|
const Ft = q(
|
|
14267
14278
|
(W) => {
|
|
14268
14279
|
const re = I.current, _e = zt.current;
|
|
14269
14280
|
if (!re || !_ || !_e) return;
|
|
14270
|
-
const
|
|
14281
|
+
const ve = W && W.features.length > 0 ? {
|
|
14271
14282
|
type: "FeatureCollection",
|
|
14272
14283
|
features: W.features.map((De) => ({
|
|
14273
14284
|
...De,
|
|
@@ -14278,7 +14289,7 @@ function Hi({
|
|
|
14278
14289
|
}))
|
|
14279
14290
|
} : { type: "FeatureCollection", features: [] }, xe = () => {
|
|
14280
14291
|
const De = re.getSource(fr);
|
|
14281
|
-
De && De.setData(
|
|
14292
|
+
De && De.setData(ve);
|
|
14282
14293
|
};
|
|
14283
14294
|
re.isStyleLoaded() ? xe() : re.once("load", xe);
|
|
14284
14295
|
},
|
|
@@ -14286,21 +14297,21 @@ function Hi({
|
|
|
14286
14297
|
), Tr = q(
|
|
14287
14298
|
(W) => {
|
|
14288
14299
|
var Ir;
|
|
14289
|
-
const re =
|
|
14300
|
+
const re = pe.getSnapshot(), _e = Me.getFeatures(), ve = [], xe = [];
|
|
14290
14301
|
for (const jt of W.features) {
|
|
14291
14302
|
const dt = { ...jt.properties };
|
|
14292
14303
|
delete dt.id, delete dt.nummer;
|
|
14293
14304
|
const wt = { ...jt, properties: dt };
|
|
14294
|
-
((Ir = wt.properties) == null ? void 0 : Ir.mode) === "directional-point" ?
|
|
14305
|
+
((Ir = wt.properties) == null ? void 0 : Ir.mode) === "directional-point" ? ve.push(wt) : xe.push(wt);
|
|
14295
14306
|
}
|
|
14296
14307
|
const De = [
|
|
14297
14308
|
...re,
|
|
14298
14309
|
...xe
|
|
14299
|
-
], sr = [..._e, ...
|
|
14310
|
+
], sr = [..._e, ...ve];
|
|
14300
14311
|
ut({
|
|
14301
14312
|
type: "FeatureCollection",
|
|
14302
14313
|
features: De
|
|
14303
|
-
}),
|
|
14314
|
+
}), ze(sr);
|
|
14304
14315
|
const at = {
|
|
14305
14316
|
type: "FeatureCollection",
|
|
14306
14317
|
features: [...De, ...sr]
|
|
@@ -14318,10 +14329,10 @@ function Hi({
|
|
|
14318
14329
|
},
|
|
14319
14330
|
[
|
|
14320
14331
|
r,
|
|
14321
|
-
|
|
14332
|
+
pe,
|
|
14322
14333
|
Me,
|
|
14323
14334
|
ut,
|
|
14324
|
-
|
|
14335
|
+
ze,
|
|
14325
14336
|
Ft,
|
|
14326
14337
|
I,
|
|
14327
14338
|
s
|
|
@@ -14339,14 +14350,14 @@ function Hi({
|
|
|
14339
14350
|
}
|
|
14340
14351
|
const W = [], re = [];
|
|
14341
14352
|
if (Se)
|
|
14342
|
-
for (const
|
|
14343
|
-
((_e =
|
|
14344
|
-
ut({ type: "FeatureCollection", features: re }),
|
|
14345
|
-
}, [Se, ut,
|
|
14353
|
+
for (const ve of Se.features)
|
|
14354
|
+
((_e = ve.properties) == null ? void 0 : _e.mode) === "directional-point" ? W.push(ve) : re.push(ve);
|
|
14355
|
+
ut({ type: "FeatureCollection", features: re }), ze(W);
|
|
14356
|
+
}, [Se, ut, ze, Rt]), Z(() => {
|
|
14346
14357
|
const W = I.current;
|
|
14347
14358
|
if (!W || !_ || !u || !Se || Se.features.length === 0)
|
|
14348
14359
|
return;
|
|
14349
|
-
const re = "geojson-editor-disabled", _e = "geojson-editor-disabled-fill",
|
|
14360
|
+
const re = "geojson-editor-disabled", _e = "geojson-editor-disabled-fill", ve = "geojson-editor-disabled-line", xe = "geojson-editor-disabled-point-stroke", De = "geojson-editor-disabled-point", sr = () => {
|
|
14350
14361
|
if (W.getSource(re)) {
|
|
14351
14362
|
W.getSource(re).setData(Se);
|
|
14352
14363
|
return;
|
|
@@ -14358,7 +14369,7 @@ function Hi({
|
|
|
14358
14369
|
filter: ["==", "$type", "Polygon"],
|
|
14359
14370
|
paint: { "fill-color": "#ff451f", "fill-opacity": 0.2 }
|
|
14360
14371
|
}), W.addLayer({
|
|
14361
|
-
id:
|
|
14372
|
+
id: ve,
|
|
14362
14373
|
type: "line",
|
|
14363
14374
|
source: re,
|
|
14364
14375
|
filter: ["in", "$type", "LineString", "Polygon"],
|
|
@@ -14379,14 +14390,14 @@ function Hi({
|
|
|
14379
14390
|
};
|
|
14380
14391
|
return W.isStyleLoaded() ? sr() : W.once("load", sr), () => {
|
|
14381
14392
|
try {
|
|
14382
|
-
for (const at of [De, xe,
|
|
14393
|
+
for (const at of [De, xe, ve, _e])
|
|
14383
14394
|
W.getLayer(at) && W.removeLayer(at);
|
|
14384
14395
|
W.getSource(re) && W.removeSource(re);
|
|
14385
14396
|
} catch {
|
|
14386
14397
|
}
|
|
14387
14398
|
};
|
|
14388
14399
|
}, [I, _, u, Se]);
|
|
14389
|
-
const ir =
|
|
14400
|
+
const ir = G(!1);
|
|
14390
14401
|
return Z(() => {
|
|
14391
14402
|
const W = I.current;
|
|
14392
14403
|
if (!W || !_ || !Se || !i || ir.current)
|
|
@@ -14444,7 +14455,7 @@ function Hi({
|
|
|
14444
14455
|
var Er, Lr, Ir, jt;
|
|
14445
14456
|
const De = x.current;
|
|
14446
14457
|
if (De === "point" || De === "linestring" || De === "polygon" || De === "directional-point") {
|
|
14447
|
-
re !== null && (re = null, j(null), Y(null), (Er =
|
|
14458
|
+
re !== null && (re = null, j(null), Y(null), (Er = M.current) == null || Er.call(M, null, null), W.getCanvas().style.cursor = "");
|
|
14448
14459
|
return;
|
|
14449
14460
|
}
|
|
14450
14461
|
const at = W.queryRenderedFeatures(xe.point).find(
|
|
@@ -14463,24 +14474,24 @@ function Hi({
|
|
|
14463
14474
|
geometry: at.geometry,
|
|
14464
14475
|
properties: at.properties
|
|
14465
14476
|
};
|
|
14466
|
-
j(wt), (Ir =
|
|
14477
|
+
j(wt), (Ir = M.current) == null || Ir.call(M, wt, xe);
|
|
14467
14478
|
}
|
|
14468
14479
|
Y({ x: xe.point.x, y: xe.point.y }), W.getCanvas().style.cursor = "pointer";
|
|
14469
14480
|
} else
|
|
14470
|
-
re !== null && (re = null, j(null), Y(null), (jt =
|
|
14471
|
-
},
|
|
14481
|
+
re !== null && (re = null, j(null), Y(null), (jt = M.current) == null || jt.call(M, null, null)), W.getCanvas().style.cursor = "";
|
|
14482
|
+
}, ve = () => {
|
|
14472
14483
|
var xe;
|
|
14473
|
-
re = null, j(null), Y(null), (xe =
|
|
14484
|
+
re = null, j(null), Y(null), (xe = M.current) == null || xe.call(M, null, null), W.getCanvas().style.cursor = "";
|
|
14474
14485
|
};
|
|
14475
|
-
return W.on("mousemove", _e), W.on("mouseleave",
|
|
14476
|
-
W.off("mousemove", _e), W.off("mouseleave",
|
|
14486
|
+
return W.on("mousemove", _e), W.on("mouseleave", ve), () => {
|
|
14487
|
+
W.off("mousemove", _e), W.off("mouseleave", ve), W.getCanvas().style.cursor = "";
|
|
14477
14488
|
};
|
|
14478
|
-
}, [I, _, u, d]), /* @__PURE__ */
|
|
14489
|
+
}, [I, _, u, d]), /* @__PURE__ */ P.jsx(
|
|
14479
14490
|
"div",
|
|
14480
14491
|
{
|
|
14481
|
-
className: [
|
|
14482
|
-
children: /* @__PURE__ */
|
|
14483
|
-
!u && !v && /* @__PURE__ */
|
|
14492
|
+
className: [et.editorWrapper, c].filter(Boolean).join(" "),
|
|
14493
|
+
children: /* @__PURE__ */ P.jsxs("div", { ref: D, className: Pl.mapContainer, children: [
|
|
14494
|
+
!u && !v && /* @__PURE__ */ P.jsx(
|
|
14484
14495
|
av,
|
|
14485
14496
|
{
|
|
14486
14497
|
modes: e,
|
|
@@ -14489,20 +14500,20 @@ function Hi({
|
|
|
14489
14500
|
deletable: a,
|
|
14490
14501
|
editable: t,
|
|
14491
14502
|
onSetMode: Ca,
|
|
14492
|
-
onDelete:
|
|
14503
|
+
onDelete: Ve,
|
|
14493
14504
|
onImport: Tr,
|
|
14494
14505
|
onImportError: g
|
|
14495
14506
|
}
|
|
14496
14507
|
),
|
|
14497
|
-
o && /* @__PURE__ */
|
|
14498
|
-
!u && /* @__PURE__ */
|
|
14508
|
+
o && /* @__PURE__ */ P.jsx(jl, {}),
|
|
14509
|
+
!u && /* @__PURE__ */ P.jsx(
|
|
14499
14510
|
Bl,
|
|
14500
14511
|
{
|
|
14501
14512
|
mapRef: I,
|
|
14502
14513
|
visible: w && (L === "point" || L === "linestring" || L === "polygon" || L === "directional-point")
|
|
14503
14514
|
}
|
|
14504
14515
|
),
|
|
14505
|
-
d && F && B && /* @__PURE__ */
|
|
14516
|
+
d && F && B && /* @__PURE__ */ P.jsx(
|
|
14506
14517
|
Al,
|
|
14507
14518
|
{
|
|
14508
14519
|
feature: F,
|
|
@@ -14523,7 +14534,7 @@ function Zv({
|
|
|
14523
14534
|
height: i,
|
|
14524
14535
|
showCenterAction: s
|
|
14525
14536
|
}) {
|
|
14526
|
-
const o = vo(), { t: l } = on(), c =
|
|
14537
|
+
const o = vo(), { t: l } = on(), c = G(Ai()), u = G((n == null ? void 0 : n.properties.direction) ?? 0), d = be(() => {
|
|
14527
14538
|
if (n)
|
|
14528
14539
|
return {
|
|
14529
14540
|
type: "FeatureCollection",
|
|
@@ -14542,19 +14553,19 @@ function Zv({
|
|
|
14542
14553
|
}, [n]), p = q(
|
|
14543
14554
|
(_) => {
|
|
14544
14555
|
var k, x;
|
|
14545
|
-
const
|
|
14556
|
+
const E = _.features.find(
|
|
14546
14557
|
(L) => {
|
|
14547
14558
|
var C;
|
|
14548
14559
|
return ((C = L.properties) == null ? void 0 : C.mode) === "directional-point";
|
|
14549
14560
|
}
|
|
14550
14561
|
);
|
|
14551
|
-
if (
|
|
14552
|
-
(k =
|
|
14553
|
-
const L = ((x =
|
|
14562
|
+
if (E) {
|
|
14563
|
+
(k = E.properties) != null && k.id && (c.current = E.properties.id);
|
|
14564
|
+
const L = ((x = E.properties) == null ? void 0 : x.direction) ?? u.current;
|
|
14554
14565
|
u.current = L;
|
|
14555
14566
|
const C = {
|
|
14556
14567
|
type: "Feature",
|
|
14557
|
-
geometry:
|
|
14568
|
+
geometry: E.geometry,
|
|
14558
14569
|
properties: {
|
|
14559
14570
|
direction: L
|
|
14560
14571
|
}
|
|
@@ -14580,13 +14591,13 @@ function Zv({
|
|
|
14580
14591
|
},
|
|
14581
14592
|
[r]
|
|
14582
14593
|
), D = q(
|
|
14583
|
-
(_,
|
|
14584
|
-
if (!(_ == null &&
|
|
14594
|
+
(_, E) => {
|
|
14595
|
+
if (!(_ == null && E == null) && _ != null && E != null) {
|
|
14585
14596
|
const k = {
|
|
14586
14597
|
type: "Feature",
|
|
14587
14598
|
geometry: {
|
|
14588
14599
|
type: "Point",
|
|
14589
|
-
coordinates: [ji(
|
|
14600
|
+
coordinates: [ji(E), Fi(_)]
|
|
14590
14601
|
},
|
|
14591
14602
|
properties: {
|
|
14592
14603
|
direction: (n == null ? void 0 : n.properties.direction) ?? 0
|
|
@@ -14599,19 +14610,19 @@ function Zv({
|
|
|
14599
14610
|
), I = q(
|
|
14600
14611
|
(_) => {
|
|
14601
14612
|
if (!n) return;
|
|
14602
|
-
const
|
|
14613
|
+
const E = {
|
|
14603
14614
|
type: "Feature",
|
|
14604
14615
|
geometry: n.geometry,
|
|
14605
14616
|
properties: {
|
|
14606
14617
|
direction: _ != null ? Math.round(Ri(_)) : 0
|
|
14607
14618
|
}
|
|
14608
14619
|
};
|
|
14609
|
-
b(
|
|
14620
|
+
b(E);
|
|
14610
14621
|
},
|
|
14611
14622
|
[n, b]
|
|
14612
14623
|
);
|
|
14613
|
-
return /* @__PURE__ */
|
|
14614
|
-
/* @__PURE__ */
|
|
14624
|
+
return /* @__PURE__ */ P.jsxs(le, { gap: 16, className: [a].filter(Boolean).join(" "), children: [
|
|
14625
|
+
/* @__PURE__ */ P.jsx(
|
|
14615
14626
|
Hi,
|
|
14616
14627
|
{
|
|
14617
14628
|
singleFeature: !0,
|
|
@@ -14623,8 +14634,8 @@ function Zv({
|
|
|
14623
14634
|
showCenterAction: s
|
|
14624
14635
|
}
|
|
14625
14636
|
),
|
|
14626
|
-
/* @__PURE__ */
|
|
14627
|
-
/* @__PURE__ */
|
|
14637
|
+
/* @__PURE__ */ P.jsxs(le, { horizontal: !0, gap: 16, children: [
|
|
14638
|
+
/* @__PURE__ */ P.jsx(
|
|
14628
14639
|
qr,
|
|
14629
14640
|
{
|
|
14630
14641
|
id: `${o}-lat`,
|
|
@@ -14637,7 +14648,7 @@ function Zv({
|
|
|
14637
14648
|
onBlur: () => D(f, y)
|
|
14638
14649
|
}
|
|
14639
14650
|
),
|
|
14640
|
-
/* @__PURE__ */
|
|
14651
|
+
/* @__PURE__ */ P.jsx(
|
|
14641
14652
|
qr,
|
|
14642
14653
|
{
|
|
14643
14654
|
id: `${o}-lon`,
|
|
@@ -14650,7 +14661,7 @@ function Zv({
|
|
|
14650
14661
|
onBlur: () => D(f, y)
|
|
14651
14662
|
}
|
|
14652
14663
|
),
|
|
14653
|
-
/* @__PURE__ */
|
|
14664
|
+
/* @__PURE__ */ P.jsx(
|
|
14654
14665
|
qr,
|
|
14655
14666
|
{
|
|
14656
14667
|
id: `${o}-dir`,
|
|
@@ -14666,7 +14677,7 @@ function Zv({
|
|
|
14666
14677
|
}
|
|
14667
14678
|
)
|
|
14668
14679
|
] }),
|
|
14669
|
-
e && /* @__PURE__ */
|
|
14680
|
+
e && /* @__PURE__ */ P.jsx(ca, { children: e })
|
|
14670
14681
|
] });
|
|
14671
14682
|
}
|
|
14672
14683
|
function e0({
|
|
@@ -14678,7 +14689,7 @@ function e0({
|
|
|
14678
14689
|
height: i,
|
|
14679
14690
|
showCenterAction: s
|
|
14680
14691
|
}) {
|
|
14681
|
-
const o = vo(), { t: l } = on(), c =
|
|
14692
|
+
const o = vo(), { t: l } = on(), c = be(() => {
|
|
14682
14693
|
if (n)
|
|
14683
14694
|
return {
|
|
14684
14695
|
type: "FeatureCollection",
|
|
@@ -14725,8 +14736,8 @@ function e0({
|
|
|
14725
14736
|
},
|
|
14726
14737
|
[r]
|
|
14727
14738
|
);
|
|
14728
|
-
return /* @__PURE__ */
|
|
14729
|
-
/* @__PURE__ */
|
|
14739
|
+
return /* @__PURE__ */ P.jsxs(le, { gap: 16, className: [a].filter(Boolean).join(" "), children: [
|
|
14740
|
+
/* @__PURE__ */ P.jsx(
|
|
14730
14741
|
Hi,
|
|
14731
14742
|
{
|
|
14732
14743
|
singleFeature: !0,
|
|
@@ -14738,8 +14749,8 @@ function e0({
|
|
|
14738
14749
|
showCenterAction: s
|
|
14739
14750
|
}
|
|
14740
14751
|
),
|
|
14741
|
-
/* @__PURE__ */
|
|
14742
|
-
/* @__PURE__ */
|
|
14752
|
+
/* @__PURE__ */ P.jsxs(le, { horizontal: !0, gap: 16, children: [
|
|
14753
|
+
/* @__PURE__ */ P.jsx(
|
|
14743
14754
|
qr,
|
|
14744
14755
|
{
|
|
14745
14756
|
id: `${o}-lat`,
|
|
@@ -14752,7 +14763,7 @@ function e0({
|
|
|
14752
14763
|
onBlur: () => y(d, f)
|
|
14753
14764
|
}
|
|
14754
14765
|
),
|
|
14755
|
-
/* @__PURE__ */
|
|
14766
|
+
/* @__PURE__ */ P.jsx(
|
|
14756
14767
|
qr,
|
|
14757
14768
|
{
|
|
14758
14769
|
id: `${o}-lon`,
|
|
@@ -14766,7 +14777,7 @@ function e0({
|
|
|
14766
14777
|
}
|
|
14767
14778
|
)
|
|
14768
14779
|
] }),
|
|
14769
|
-
e && /* @__PURE__ */
|
|
14780
|
+
e && /* @__PURE__ */ P.jsx(ca, { children: e })
|
|
14770
14781
|
] });
|
|
14771
14782
|
}
|
|
14772
14783
|
function Ov({
|
|
@@ -14779,16 +14790,16 @@ function Ov({
|
|
|
14779
14790
|
onHover: s,
|
|
14780
14791
|
onSelect: o
|
|
14781
14792
|
}) {
|
|
14782
|
-
const [l, c] = ne(null), [u, d] = ne([]), p =
|
|
14793
|
+
const [l, c] = ne(null), [u, d] = ne([]), p = G(s);
|
|
14783
14794
|
p.current = s;
|
|
14784
|
-
const f =
|
|
14795
|
+
const f = G(o);
|
|
14785
14796
|
f.current = o;
|
|
14786
|
-
const h =
|
|
14797
|
+
const h = G(null), y = q(
|
|
14787
14798
|
(b) => b.id !== void 0 ? b.id : JSON.stringify(b.properties),
|
|
14788
14799
|
[]
|
|
14789
14800
|
), g = q(
|
|
14790
14801
|
(b, D) => {
|
|
14791
|
-
const I = r.filter((
|
|
14802
|
+
const I = r.filter((E) => b.getLayer(E));
|
|
14792
14803
|
return I.length === 0 ? [] : b.queryRenderedFeatures(D, {
|
|
14793
14804
|
layers: I
|
|
14794
14805
|
});
|
|
@@ -14799,37 +14810,37 @@ function Ov({
|
|
|
14799
14810
|
d([]), (b = f.current) == null || b.call(f, null);
|
|
14800
14811
|
}, []), v = q(
|
|
14801
14812
|
(b) => {
|
|
14802
|
-
var
|
|
14813
|
+
var E;
|
|
14803
14814
|
const D = n.current;
|
|
14804
14815
|
if (!D) return;
|
|
14805
14816
|
const _ = D.querySourceFeatures(e).filter((k) => {
|
|
14806
14817
|
const x = k.id ?? JSON.stringify(k.properties);
|
|
14807
14818
|
return b.includes(x);
|
|
14808
14819
|
});
|
|
14809
|
-
d(_), (
|
|
14820
|
+
d(_), (E = f.current) == null || E.call(f, _.length > 0 ? _ : null);
|
|
14810
14821
|
},
|
|
14811
14822
|
[n, e]
|
|
14812
14823
|
);
|
|
14813
14824
|
return Z(() => {
|
|
14814
14825
|
const b = n.current;
|
|
14815
14826
|
if (!b || !t) return;
|
|
14816
|
-
const D = (
|
|
14827
|
+
const D = (E) => {
|
|
14817
14828
|
var C;
|
|
14818
14829
|
if (!a) return;
|
|
14819
|
-
const k = g(b,
|
|
14820
|
-
L !== h.current && (h.current = L, c(x), (C = p.current) == null || C.call(p, x, x ?
|
|
14830
|
+
const k = g(b, E.point), x = k.length > 0 ? k[0] : null, L = x ? y(x) : null;
|
|
14831
|
+
L !== h.current && (h.current = L, c(x), (C = p.current) == null || C.call(p, x, x ? E : null), b.getCanvas().style.cursor = x ? "pointer" : "");
|
|
14821
14832
|
}, I = () => {
|
|
14833
|
+
var E;
|
|
14834
|
+
a && h.current !== null && (h.current = null, c(null), (E = p.current) == null || E.call(p, null, null), b.getCanvas().style.cursor = "");
|
|
14835
|
+
}, _ = (E) => {
|
|
14822
14836
|
var T;
|
|
14823
|
-
a && h.current !== null && (h.current = null, c(null), (T = p.current) == null || T.call(p, null, null), b.getCanvas().style.cursor = "");
|
|
14824
|
-
}, _ = (T) => {
|
|
14825
|
-
var P;
|
|
14826
14837
|
if (!i) return;
|
|
14827
|
-
const k = g(b,
|
|
14838
|
+
const k = g(b, E.point);
|
|
14828
14839
|
if (k.length === 0) {
|
|
14829
|
-
u.length > 0 && (d([]), (
|
|
14840
|
+
u.length > 0 && (d([]), (T = f.current) == null || T.call(f, null));
|
|
14830
14841
|
return;
|
|
14831
14842
|
}
|
|
14832
|
-
const x = k[0], L = y(x), C =
|
|
14843
|
+
const x = k[0], L = y(x), C = E.originalEvent.ctrlKey || E.originalEvent.metaKey;
|
|
14833
14844
|
d((O) => {
|
|
14834
14845
|
let F;
|
|
14835
14846
|
return C ? O.some(
|
|
@@ -14885,46 +14896,46 @@ function t0({
|
|
|
14885
14896
|
const g = {
|
|
14886
14897
|
...my,
|
|
14887
14898
|
...t
|
|
14888
|
-
}, w =
|
|
14899
|
+
}, w = be(() => oa(n), [n]), [v, b] = ne(!1), [D, I] = ne(null), [_, E] = ne(
|
|
14889
14900
|
null
|
|
14890
14901
|
), k = q(
|
|
14891
|
-
(
|
|
14892
|
-
f &&
|
|
14902
|
+
(M) => {
|
|
14903
|
+
f && E(M);
|
|
14893
14904
|
},
|
|
14894
14905
|
[f]
|
|
14895
14906
|
), { mapContainerRef: x, mapRef: L, mapReady: C } = Ol({
|
|
14896
14907
|
disabled: o,
|
|
14897
14908
|
height: i,
|
|
14898
14909
|
onMapClick: f ? k : void 0
|
|
14899
|
-
}),
|
|
14900
|
-
|
|
14910
|
+
}), T = G(f);
|
|
14911
|
+
T.current = f;
|
|
14901
14912
|
const { result: O } = Nl({
|
|
14902
14913
|
mapRef: L,
|
|
14903
14914
|
coordinate: _,
|
|
14904
14915
|
enabled: !!f
|
|
14905
14916
|
});
|
|
14906
14917
|
Z(() => {
|
|
14907
|
-
var
|
|
14908
|
-
O && ((
|
|
14918
|
+
var M;
|
|
14919
|
+
O && ((M = T.current) == null || M.call(T, O));
|
|
14909
14920
|
}, [O]);
|
|
14910
14921
|
const F = q(
|
|
14911
|
-
(
|
|
14912
|
-
u == null || u(
|
|
14922
|
+
(M, z) => {
|
|
14923
|
+
u == null || u(M, z);
|
|
14913
14924
|
const J = L.current;
|
|
14914
14925
|
if (J && v) {
|
|
14915
|
-
const m = (
|
|
14926
|
+
const m = (M == null ? void 0 : M.id) ?? null;
|
|
14916
14927
|
_y(J, m);
|
|
14917
14928
|
}
|
|
14918
|
-
I(
|
|
14929
|
+
I(z && M ? { x: z.point.x, y: z.point.y } : null);
|
|
14919
14930
|
},
|
|
14920
14931
|
[u, L, v]
|
|
14921
14932
|
), j = q(
|
|
14922
|
-
(
|
|
14923
|
-
d == null || d(
|
|
14924
|
-
const
|
|
14925
|
-
if (
|
|
14926
|
-
const J = (
|
|
14927
|
-
Sy(
|
|
14933
|
+
(M) => {
|
|
14934
|
+
d == null || d(M);
|
|
14935
|
+
const z = L.current;
|
|
14936
|
+
if (z && v) {
|
|
14937
|
+
const J = (M == null ? void 0 : M.map((m) => m.id).filter((m) => m !== void 0)) ?? [];
|
|
14938
|
+
Sy(z, J);
|
|
14928
14939
|
}
|
|
14929
14940
|
},
|
|
14930
14941
|
[d, L, v]
|
|
@@ -14939,15 +14950,15 @@ function t0({
|
|
|
14939
14950
|
onSelect: j
|
|
14940
14951
|
});
|
|
14941
14952
|
Z(() => {
|
|
14942
|
-
const
|
|
14943
|
-
if (!
|
|
14953
|
+
const M = L.current;
|
|
14954
|
+
if (!M) {
|
|
14944
14955
|
console.warn("[GeoJsonViewer] mapRef.current is null — effect skipped");
|
|
14945
14956
|
return;
|
|
14946
14957
|
}
|
|
14947
|
-
const
|
|
14958
|
+
const z = () => {
|
|
14948
14959
|
try {
|
|
14949
|
-
const m =
|
|
14950
|
-
if (m ? m.setData(w) :
|
|
14960
|
+
const m = M.getSource(Re);
|
|
14961
|
+
if (m ? m.setData(w) : M.addSource(Re, { type: "geojson", data: w }), M.getLayer(Jn) || M.addLayer({
|
|
14951
14962
|
id: Jn,
|
|
14952
14963
|
type: "fill",
|
|
14953
14964
|
source: Re,
|
|
@@ -14956,7 +14967,7 @@ function t0({
|
|
|
14956
14967
|
"fill-color": Dt("fillColor", g.fillColor),
|
|
14957
14968
|
"fill-opacity": Dt("fillOpacity", 1)
|
|
14958
14969
|
}
|
|
14959
|
-
}),
|
|
14970
|
+
}), M.getLayer(Zn) || M.addLayer({
|
|
14960
14971
|
id: Zn,
|
|
14961
14972
|
type: "line",
|
|
14962
14973
|
source: Re,
|
|
@@ -14965,7 +14976,7 @@ function t0({
|
|
|
14965
14976
|
"line-color": Dt("lineColor", g.lineColor),
|
|
14966
14977
|
"line-width": Dt("lineWidth", g.lineWidth)
|
|
14967
14978
|
}
|
|
14968
|
-
}),
|
|
14979
|
+
}), M.getLayer(ui) || M.addLayer({
|
|
14969
14980
|
id: ui,
|
|
14970
14981
|
type: "circle",
|
|
14971
14982
|
source: Re,
|
|
@@ -14981,7 +14992,7 @@ function t0({
|
|
|
14981
14992
|
g.pointStrokeColor
|
|
14982
14993
|
)
|
|
14983
14994
|
}
|
|
14984
|
-
}),
|
|
14995
|
+
}), M.getLayer(ea) || M.addLayer({
|
|
14985
14996
|
id: ea,
|
|
14986
14997
|
type: "circle",
|
|
14987
14998
|
source: Re,
|
|
@@ -14993,37 +15004,37 @@ function t0({
|
|
|
14993
15004
|
),
|
|
14994
15005
|
"circle-color": Dt("pointColor", g.pointColor)
|
|
14995
15006
|
}
|
|
14996
|
-
}), wy(
|
|
15007
|
+
}), wy(M, g), b(!0), r) {
|
|
14997
15008
|
const R = ci(w);
|
|
14998
|
-
R &&
|
|
15009
|
+
R && M.fitBounds(R, {
|
|
14999
15010
|
padding: e,
|
|
15000
15011
|
maxZoom: 16,
|
|
15001
15012
|
duration: 300
|
|
15002
15013
|
});
|
|
15003
15014
|
}
|
|
15004
|
-
|
|
15015
|
+
M.resize(), M.triggerRepaint(), console.info(
|
|
15005
15016
|
"[GeoJsonViewer] layers:",
|
|
15006
|
-
|
|
15017
|
+
M.getStyle().layers.map((R) => R.id),
|
|
15007
15018
|
"| source features:",
|
|
15008
|
-
|
|
15019
|
+
M.querySourceFeatures(Re).length
|
|
15009
15020
|
);
|
|
15010
15021
|
} catch (m) {
|
|
15011
15022
|
console.error("[GeoJsonViewer] Error adding source/layers:", m);
|
|
15012
15023
|
}
|
|
15013
15024
|
}, J = (m) => console.error("[GeoJsonViewer] Map error:", m);
|
|
15014
|
-
return
|
|
15015
|
-
|
|
15025
|
+
return M.on("error", J), M.on("load", z), M.isStyleLoaded() && z(), () => {
|
|
15026
|
+
M.off("error", J), M.off("load", z), b(!1), ky(M);
|
|
15016
15027
|
};
|
|
15017
15028
|
}, [w, L, C]);
|
|
15018
|
-
const Y =
|
|
15029
|
+
const Y = G(y);
|
|
15019
15030
|
return Y.current = y, Z(() => {
|
|
15020
|
-
const
|
|
15021
|
-
if (!
|
|
15022
|
-
const
|
|
15023
|
-
|
|
15031
|
+
const M = L.current;
|
|
15032
|
+
if (!M || !C) return;
|
|
15033
|
+
const z = () => {
|
|
15034
|
+
M.getSource(pr) || M.addSource(pr, {
|
|
15024
15035
|
type: "geojson",
|
|
15025
15036
|
data: { type: "FeatureCollection", features: [] }
|
|
15026
|
-
}),
|
|
15037
|
+
}), M.getLayer(Gr) || M.addLayer({
|
|
15027
15038
|
id: Gr,
|
|
15028
15039
|
type: "symbol",
|
|
15029
15040
|
source: pr,
|
|
@@ -15042,38 +15053,38 @@ function t0({
|
|
|
15042
15053
|
}
|
|
15043
15054
|
});
|
|
15044
15055
|
};
|
|
15045
|
-
return
|
|
15056
|
+
return M.isStyleLoaded() ? z() : M.once("load", z), () => {
|
|
15046
15057
|
try {
|
|
15047
|
-
|
|
15058
|
+
M.getLayer(Gr) && M.removeLayer(Gr), M.getSource(pr) && M.removeSource(pr);
|
|
15048
15059
|
} catch {
|
|
15049
15060
|
}
|
|
15050
15061
|
};
|
|
15051
15062
|
}, [L, C]), Z(() => {
|
|
15052
|
-
const
|
|
15053
|
-
if (!
|
|
15063
|
+
const M = L.current, z = Y.current;
|
|
15064
|
+
if (!M || !C || !z) return;
|
|
15054
15065
|
const J = w && w.features.length > 0 ? {
|
|
15055
15066
|
type: "FeatureCollection",
|
|
15056
15067
|
features: w.features.map((R) => ({
|
|
15057
15068
|
...R,
|
|
15058
15069
|
properties: {
|
|
15059
15070
|
...R.properties,
|
|
15060
|
-
_label:
|
|
15071
|
+
_label: z(R) ?? ""
|
|
15061
15072
|
}
|
|
15062
15073
|
}))
|
|
15063
15074
|
} : { type: "FeatureCollection", features: [] }, m = () => {
|
|
15064
|
-
const R =
|
|
15075
|
+
const R = M.getSource(pr);
|
|
15065
15076
|
R && R.setData(J);
|
|
15066
15077
|
};
|
|
15067
|
-
|
|
15068
|
-
}, [L, C, w]), /* @__PURE__ */
|
|
15078
|
+
M.isStyleLoaded() ? m() : M.once("load", m);
|
|
15079
|
+
}, [L, C, w]), /* @__PURE__ */ P.jsxs(
|
|
15069
15080
|
"div",
|
|
15070
15081
|
{
|
|
15071
15082
|
ref: x,
|
|
15072
15083
|
className: [Pl.mapContainer, s].filter(Boolean).join(" "),
|
|
15073
15084
|
children: [
|
|
15074
|
-
a && /* @__PURE__ */
|
|
15075
|
-
!o && /* @__PURE__ */
|
|
15076
|
-
l && B && D && /* @__PURE__ */
|
|
15085
|
+
a && /* @__PURE__ */ P.jsx(jl, {}),
|
|
15086
|
+
!o && /* @__PURE__ */ P.jsx(Bl, { mapRef: L, visible: h }),
|
|
15087
|
+
l && B && D && /* @__PURE__ */ P.jsx(
|
|
15077
15088
|
Al,
|
|
15078
15089
|
{
|
|
15079
15090
|
feature: B,
|
|
@@ -15102,15 +15113,15 @@ const Rv = ({
|
|
|
15102
15113
|
];
|
|
15103
15114
|
r({ ...n, features: u });
|
|
15104
15115
|
}, s = (o, l) => t == null ? void 0 : t(`features[${o}].properties.${l}`);
|
|
15105
|
-
return n.features.map((o, l) => /* @__PURE__ */
|
|
15116
|
+
return n.features.map((o, l) => /* @__PURE__ */ P.jsx(le, { children: e.map((c) => {
|
|
15106
15117
|
var u, d;
|
|
15107
|
-
return /* @__PURE__ */
|
|
15108
|
-
/* @__PURE__ */
|
|
15109
|
-
/* @__PURE__ */
|
|
15118
|
+
return /* @__PURE__ */ P.jsxs(le, { children: [
|
|
15119
|
+
/* @__PURE__ */ P.jsxs(le, { horizontal: !0, width: "full", align: "center", gap: 8, children: [
|
|
15120
|
+
/* @__PURE__ */ P.jsxs("span", { children: [
|
|
15110
15121
|
"#",
|
|
15111
15122
|
(u = o.properties) == null ? void 0 : u.nummer
|
|
15112
15123
|
] }),
|
|
15113
|
-
/* @__PURE__ */
|
|
15124
|
+
/* @__PURE__ */ P.jsx(le, { grow: !0, children: /* @__PURE__ */ P.jsx(
|
|
15114
15125
|
xg,
|
|
15115
15126
|
{
|
|
15116
15127
|
id: a("features", l, "properties", c.name),
|
|
@@ -15122,7 +15133,7 @@ const Rv = ({
|
|
|
15122
15133
|
}
|
|
15123
15134
|
) })
|
|
15124
15135
|
] }),
|
|
15125
|
-
s(l, c.name) && /* @__PURE__ */
|
|
15136
|
+
s(l, c.name) && /* @__PURE__ */ P.jsx(ca, { children: s(l, c.name) }, c.name)
|
|
15126
15137
|
] }, c.name);
|
|
15127
15138
|
}) }, l));
|
|
15128
15139
|
}, Fv = (n, r, e = void 0, t = void 0, a = void 0) => {
|
|
@@ -15145,11 +15156,11 @@ function r0({
|
|
|
15145
15156
|
validationErrors: l.validationErrors,
|
|
15146
15157
|
showUntouchedValidationErrors: l.showUntouchedValidationErrors
|
|
15147
15158
|
});
|
|
15148
|
-
return /* @__PURE__ */
|
|
15149
|
-
n && /* @__PURE__ */
|
|
15150
|
-
r && /* @__PURE__ */
|
|
15151
|
-
/* @__PURE__ */
|
|
15152
|
-
a && i && s && /* @__PURE__ */
|
|
15159
|
+
return /* @__PURE__ */ P.jsxs("div", { children: [
|
|
15160
|
+
n && /* @__PURE__ */ P.jsx(Kl, { children: /* @__PURE__ */ P.jsx(Oi, { text: n, required: e, optional: t }) }),
|
|
15161
|
+
r && /* @__PURE__ */ P.jsx(ql.Description, { children: r }),
|
|
15162
|
+
/* @__PURE__ */ P.jsx(Hi, { value: i, onChange: s, ...l }),
|
|
15163
|
+
a && i && s && /* @__PURE__ */ P.jsx(
|
|
15153
15164
|
Rv,
|
|
15154
15165
|
{
|
|
15155
15166
|
data: i,
|
|
@@ -15158,7 +15169,7 @@ function r0({
|
|
|
15158
15169
|
getError: c
|
|
15159
15170
|
}
|
|
15160
15171
|
),
|
|
15161
|
-
o && /* @__PURE__ */
|
|
15172
|
+
o && /* @__PURE__ */ P.jsx(ca, { children: o })
|
|
15162
15173
|
] });
|
|
15163
15174
|
}
|
|
15164
15175
|
function n0({
|
|
@@ -15167,9 +15178,9 @@ function n0({
|
|
|
15167
15178
|
disabled: e = !1,
|
|
15168
15179
|
onDirectionChange: t
|
|
15169
15180
|
}) {
|
|
15170
|
-
const a =
|
|
15181
|
+
const a = G(null), i = G(null), s = G(null), o = G(null), l = G(!1), c = G(0), u = G(e), d = G(r);
|
|
15171
15182
|
d.current = r;
|
|
15172
|
-
const p =
|
|
15183
|
+
const p = G(t);
|
|
15173
15184
|
p.current = t, Z(() => {
|
|
15174
15185
|
u.current = e;
|
|
15175
15186
|
}, [e]);
|
|
@@ -15180,7 +15191,7 @@ function n0({
|
|
|
15180
15191
|
const v = (k) => {
|
|
15181
15192
|
const x = n.current, L = d.current.coordinate;
|
|
15182
15193
|
if (!x || !L) return 0;
|
|
15183
|
-
const C = x.project([L.longitude, L.latitude]),
|
|
15194
|
+
const C = x.project([L.longitude, L.latitude]), T = x.getContainer().getBoundingClientRect(), O = k.clientX - T.left, F = k.clientY - T.top, j = O - C.x, B = C.y - F;
|
|
15184
15195
|
return Ri(Math.atan2(j, B) * 180 / Math.PI);
|
|
15185
15196
|
}, b = (k) => {
|
|
15186
15197
|
var C;
|
|
@@ -15206,8 +15217,8 @@ function n0({
|
|
|
15206
15217
|
};
|
|
15207
15218
|
for (const k of [g, w])
|
|
15208
15219
|
k.addEventListener("pointerdown", b), k.addEventListener("pointermove", D), k.addEventListener("pointerup", I), k.addEventListener("mousedown", _), k.addEventListener("click", _);
|
|
15209
|
-
const
|
|
15210
|
-
return la(g, w,
|
|
15220
|
+
const E = d.current.direction ?? 0;
|
|
15221
|
+
return la(g, w, E), i.current = y, y;
|
|
15211
15222
|
}, [n]);
|
|
15212
15223
|
Z(() => {
|
|
15213
15224
|
const y = s.current, g = o.current;
|
|
@@ -15241,7 +15252,7 @@ function a0({
|
|
|
15241
15252
|
coordinate: r,
|
|
15242
15253
|
disabled: e = !1
|
|
15243
15254
|
}) {
|
|
15244
|
-
const t =
|
|
15255
|
+
const t = G(null);
|
|
15245
15256
|
return Z(() => {
|
|
15246
15257
|
var s;
|
|
15247
15258
|
const a = n.current;
|