@arkyn/components 3.0.1-beta.101 → 3.0.1-beta.103
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/bundle.js
CHANGED
|
@@ -3,7 +3,7 @@ var pf = (t, e, r) => e in t ? gf(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var dt = (t, e, r) => pf(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
4
|
import { jsx as C, jsxs as ne, Fragment as Ne } from "react/jsx-runtime";
|
|
5
5
|
import * as We from "react";
|
|
6
|
-
import fe, { createContext as ze, useContext as Ae, useState as F, useRef as me, useEffect as
|
|
6
|
+
import fe, { createContext as ze, useContext as Ae, useState as F, useRef as me, useEffect as E, cloneElement as na, useId as mt, useSyncExternalStore as vf, PureComponent as ke, Children as At, isValidElement as il, createRef as ia, memo as Re, useMemo as Pt, forwardRef as Jr, useCallback as Ee, useLayoutEffect as mf, useReducer as Cf, Component as Df } from "react";
|
|
7
7
|
import { Info as yf, AlertTriangle as bf, XCircle as Ef, CheckCircle2 as wf, Pause as Bf, Play as Af, Loader2 as Bt, RefreshCw as aa, Check as Xn, X as sa, FileImage as Of, FileAudio as Lf, FileArchive as xf, File as Ff, MapPinned as Pf, ChevronDown as oa, Search as al, ChevronRight as Sf, ChevronLeft as Mf, Ellipsis as kf, Image as Tf, Heading1 as Nf, Heading2 as If, Quote as Rf, Bold as jf, Italic as $f, Underline as zf, Code as _f, AlignLeft as Uf, AlignRight as Wf, AlignCenter as Hf, AlignJustify as Vf } from "lucide-react";
|
|
8
8
|
import { formatToCurrency as Xa, removeNonNumeric as Ya } from "@arkyn/shared";
|
|
9
9
|
import { AnimatePresence as sl, motion as _r } from "framer-motion";
|
|
@@ -70,14 +70,14 @@ function Xf(t) {
|
|
|
70
70
|
...s
|
|
71
71
|
} = t, [o, u] = F(!1), l = me(null), c = () => u(!0), d = () => u(!1), h = (y) => {
|
|
72
72
|
if (n || !o || !l.current) return;
|
|
73
|
-
const D = l.current.getBoundingClientRect(), w = y.clientX - D.left,
|
|
74
|
-
e(
|
|
73
|
+
const D = l.current.getBoundingClientRect(), w = y.clientX - D.left, b = Math.min(Math.max(w / D.width * 100, 0), 100);
|
|
74
|
+
e(b);
|
|
75
75
|
}, m = (y) => {
|
|
76
76
|
if (n || !l.current) return;
|
|
77
|
-
const D = l.current.getBoundingClientRect(), w = y.clientX - D.left,
|
|
78
|
-
e(
|
|
77
|
+
const D = l.current.getBoundingClientRect(), w = y.clientX - D.left, b = Math.min(Math.max(w / D.width * 100, 0), 100);
|
|
78
|
+
e(b);
|
|
79
79
|
};
|
|
80
|
-
|
|
80
|
+
E(() => (o ? (i && i(!0), document.addEventListener("mousemove", h), document.addEventListener("mouseup", d)) : (i && i(!1), document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", d)), () => {
|
|
81
81
|
document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", d);
|
|
82
82
|
}), [o]);
|
|
83
83
|
const f = `arkynSliderTrack ${o ? "isDragging" : "isNotDragging"} ${n ? "isDisabled" : "isEnabled"} ${a}`;
|
|
@@ -117,7 +117,7 @@ function Yf(t) {
|
|
|
117
117
|
const S = d.current;
|
|
118
118
|
S && (t.onPauseAudio && t.onPauseAudio(f), S.pause(), u(!1));
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function b() {
|
|
121
121
|
o ? w() : D();
|
|
122
122
|
}
|
|
123
123
|
function B(S) {
|
|
@@ -126,7 +126,7 @@ function Yf(t) {
|
|
|
126
126
|
const k = M.duration, R = S / 100 * k;
|
|
127
127
|
M.currentTime = R;
|
|
128
128
|
}
|
|
129
|
-
return l || !o ? (j = d.current) == null || j.pause() : o && ((P = d.current) == null || P.play()),
|
|
129
|
+
return l || !o ? (j = d.current) == null || j.pause() : o && ((P = d.current) == null || P.play()), E(() => {
|
|
130
130
|
const S = d.current;
|
|
131
131
|
if (!S) return;
|
|
132
132
|
const M = () => {
|
|
@@ -146,7 +146,7 @@ function Yf(t) {
|
|
|
146
146
|
onEnded: w
|
|
147
147
|
}
|
|
148
148
|
),
|
|
149
|
-
/* @__PURE__ */ ne("button", { type: "button", disabled: n, onClick:
|
|
149
|
+
/* @__PURE__ */ ne("button", { type: "button", disabled: n, onClick: b, children: [
|
|
150
150
|
o && /* @__PURE__ */ C(Bf, {}),
|
|
151
151
|
!o && /* @__PURE__ */ C(Af, {})
|
|
152
152
|
] }),
|
|
@@ -266,7 +266,7 @@ function ca(t) {
|
|
|
266
266
|
className: a = "",
|
|
267
267
|
...s
|
|
268
268
|
} = t, o = mt(), u = me(null), [l, c] = F(i);
|
|
269
|
-
|
|
269
|
+
E(() => {
|
|
270
270
|
const h = () => {
|
|
271
271
|
if (!u.current) return;
|
|
272
272
|
const v = document.getElementById(o);
|
|
@@ -405,21 +405,21 @@ function Gb(t) {
|
|
|
405
405
|
defaultValue: h = "",
|
|
406
406
|
showAsterisk: m = !1,
|
|
407
407
|
disabled: g = !1
|
|
408
|
-
} = t, { fieldErrors: v } = lt(), f = v == null ? void 0 : v[e], [y, D] = F(h), [w,
|
|
408
|
+
} = t, { fieldErrors: v } = lt(), f = v == null ? void 0 : v[e], [y, D] = F(h), [w, b] = F(""), [B, A] = F(null), [O, j] = F(h), [P, S] = F(!1);
|
|
409
409
|
async function M(z) {
|
|
410
410
|
if (g) return;
|
|
411
|
-
S(!0), A(z),
|
|
411
|
+
S(!0), A(z), b("");
|
|
412
412
|
const Q = new FormData();
|
|
413
413
|
Q.append(n, z), await fetch(d, { method: i, body: Q }).then(async (V) => await V.json()).then((V) => {
|
|
414
|
-
V != null && V.error ?
|
|
414
|
+
V != null && V.error ? b(V.error) : D(V == null ? void 0 : V[s]), a && a(V == null ? void 0 : V[s]);
|
|
415
415
|
}).catch((V) => {
|
|
416
|
-
console.error(V),
|
|
416
|
+
console.error(V), b("Erro ao enviar audio");
|
|
417
417
|
}).finally(() => S(!1));
|
|
418
418
|
}
|
|
419
419
|
function k(z) {
|
|
420
420
|
if (!g) {
|
|
421
421
|
if (z.type.indexOf("audio") === -1) {
|
|
422
|
-
|
|
422
|
+
b("O arquivo selecionado não é um arquivo de áudio");
|
|
423
423
|
return;
|
|
424
424
|
}
|
|
425
425
|
j(URL.createObjectURL(z)), M(z);
|
|
@@ -541,7 +541,7 @@ function Xb(t) {
|
|
|
541
541
|
orientation: c = "horizontalReverse",
|
|
542
542
|
value: d,
|
|
543
543
|
...h
|
|
544
|
-
} = t, { fieldErrors: m } = lt(), g = me(null), v = e || mt(), f = a || (m == null ? void 0 : m[r]), y = !!f, [D, w] = F(s || !1),
|
|
544
|
+
} = t, { fieldErrors: m } = lt(), g = me(null), v = e || mt(), f = a || (m == null ? void 0 : m[r]), y = !!f, [D, w] = F(s || !1), b = typeof u == "boolean" ? u : D, O = `arkynCheckbox ${i} ${y ? "errorTrue" : "errorFalse"} ${b ? "checkedTrue" : "checkedFalse"}`;
|
|
545
545
|
function j() {
|
|
546
546
|
const P = D;
|
|
547
547
|
w(!P), l && l(P ? "" : d || "checked");
|
|
@@ -563,7 +563,7 @@ function Xb(t) {
|
|
|
563
563
|
type: "hidden",
|
|
564
564
|
name: r,
|
|
565
565
|
ref: g,
|
|
566
|
-
value:
|
|
566
|
+
value: b ? d || "checked" : ""
|
|
567
567
|
}
|
|
568
568
|
),
|
|
569
569
|
/* @__PURE__ */ C(Xn, {})
|
|
@@ -618,13 +618,13 @@ function Jb(t) {
|
|
|
618
618
|
readOnly: y,
|
|
619
619
|
onFocus: D,
|
|
620
620
|
onBlur: w,
|
|
621
|
-
errorMessage:
|
|
621
|
+
errorMessage: b,
|
|
622
622
|
showAsterisk: B,
|
|
623
623
|
rightIcon: A,
|
|
624
624
|
size: O = "md",
|
|
625
625
|
id: j,
|
|
626
626
|
...P
|
|
627
|
-
} = t, { fieldErrors: S } = lt(), [M, k] = F(!1), [R, I] = F("0"), N = me(null), K = j || mt(), z =
|
|
627
|
+
} = t, { fieldErrors: S } = lt(), [M, k] = F(!1), [R, I] = F("0"), N = me(null), K = j || mt(), z = b || (S == null ? void 0 : S[e]), Q = !!z, V = r || v, ee = { md: 20, lg: 20 }[O], re = A ? "right" : "left", X = re === "left" && v, oe = re === "right" && v;
|
|
628
628
|
function T() {
|
|
629
629
|
V || !(N != null && N.current) || (k(!0), N.current.focus());
|
|
630
630
|
}
|
|
@@ -645,7 +645,7 @@ function Jb(t) {
|
|
|
645
645
|
const [we, be] = $(ge.target.value);
|
|
646
646
|
h && h(ge, String(we), String(be));
|
|
647
647
|
};
|
|
648
|
-
|
|
648
|
+
E(() => {
|
|
649
649
|
const ge = u || +l || void 0, [, we] = pi(ge, d);
|
|
650
650
|
I(we);
|
|
651
651
|
}, [d, l, u]);
|
|
@@ -716,7 +716,7 @@ function id() {
|
|
|
716
716
|
return typeof window > "u" ? 0 : window.innerWidth - document.documentElement.clientWidth;
|
|
717
717
|
}
|
|
718
718
|
function wr(t) {
|
|
719
|
-
|
|
719
|
+
E(() => {
|
|
720
720
|
if (t) {
|
|
721
721
|
const e = document.body.style.overflow, r = document.body.style.paddingRight, n = id();
|
|
722
722
|
if (n > 0) {
|
|
@@ -906,7 +906,7 @@ function tE(t) {
|
|
|
906
906
|
dropFileText: d = "Ou arraste e solte o arquivo aqui",
|
|
907
907
|
onChange: h,
|
|
908
908
|
disabled: m = !1
|
|
909
|
-
} = t, { fieldErrors: g } = lt(), v = g == null ? void 0 : g[e], [f, y] = F(""), [D, w] = F(""), [
|
|
909
|
+
} = t, { fieldErrors: g } = lt(), v = g == null ? void 0 : g[e], [f, y] = F(""), [D, w] = F(""), [b, B] = F(null), [A, O] = F(!1);
|
|
910
910
|
async function j(I) {
|
|
911
911
|
if (m) return;
|
|
912
912
|
O(!0), B(I), w("");
|
|
@@ -923,9 +923,9 @@ function tE(t) {
|
|
|
923
923
|
const S = v || D;
|
|
924
924
|
return /* @__PURE__ */ ne(st, { children: [
|
|
925
925
|
r && /* @__PURE__ */ C(at, { showAsterisk: n, children: r }),
|
|
926
|
-
/* @__PURE__ */ ne("div", { className: `arkynFileUpload ${S ? "hasError" : "noHasError"} ${
|
|
926
|
+
/* @__PURE__ */ ne("div", { className: `arkynFileUpload ${S ? "hasError" : "noHasError"} ${b ? "hasFile" : "noHasFile"}`, children: [
|
|
927
927
|
/* @__PURE__ */ C("input", { type: "hidden", name: e, value: f || "" }),
|
|
928
|
-
!
|
|
928
|
+
!b && /* @__PURE__ */ C(
|
|
929
929
|
ud,
|
|
930
930
|
{
|
|
931
931
|
disabled: m,
|
|
@@ -936,16 +936,16 @@ function tE(t) {
|
|
|
936
936
|
selectFileButtonText: c
|
|
937
937
|
}
|
|
938
938
|
),
|
|
939
|
-
|
|
939
|
+
b && /* @__PURE__ */ C(
|
|
940
940
|
od,
|
|
941
941
|
{
|
|
942
942
|
disabled: m,
|
|
943
943
|
isLoading: A,
|
|
944
944
|
acceptFile: o,
|
|
945
|
-
file:
|
|
945
|
+
file: b,
|
|
946
946
|
handleSelectFile: P,
|
|
947
947
|
changeFileButtonText: l,
|
|
948
|
-
reSendFile: S &&
|
|
948
|
+
reSendFile: S && b ? () => j(b) : void 0
|
|
949
949
|
}
|
|
950
950
|
)
|
|
951
951
|
] }),
|
|
@@ -1064,7 +1064,7 @@ function fd(t) {
|
|
|
1064
1064
|
dropImageText: m = "Ou arraste e solte a imagem aqui",
|
|
1065
1065
|
onChange: g,
|
|
1066
1066
|
disabled: v = !1
|
|
1067
|
-
} = t, { fieldErrors: f } = lt(), y = f == null ? void 0 : f[e], [D, w] = F(r), [
|
|
1067
|
+
} = t, { fieldErrors: f } = lt(), y = f == null ? void 0 : f[e], [D, w] = F(r), [b, B] = F(""), [A, O] = F(null), [j, P] = F(r), [S, M] = F(!1);
|
|
1068
1068
|
async function k(Q) {
|
|
1069
1069
|
if (v) return;
|
|
1070
1070
|
M(!0), O(Q), B("");
|
|
@@ -1078,7 +1078,7 @@ function fd(t) {
|
|
|
1078
1078
|
function R(Q) {
|
|
1079
1079
|
v || (P(URL.createObjectURL(Q)), k(Q));
|
|
1080
1080
|
}
|
|
1081
|
-
const I = y ||
|
|
1081
|
+
const I = y || b;
|
|
1082
1082
|
return /* @__PURE__ */ ne(st, { className: o, children: [
|
|
1083
1083
|
n && /* @__PURE__ */ C(at, { showAsterisk: i, children: n }),
|
|
1084
1084
|
/* @__PURE__ */ ne("div", { className: `arkynImageUpload ${I ? "hasError" : "noHasError"} ${j ? "hasImage" : "noHasImage"}`, children: [
|
|
@@ -1131,11 +1131,11 @@ function Jn(t) {
|
|
|
1131
1131
|
rightIcon: y,
|
|
1132
1132
|
type: D = "text",
|
|
1133
1133
|
size: w = "md",
|
|
1134
|
-
id:
|
|
1134
|
+
id: b,
|
|
1135
1135
|
value: B,
|
|
1136
1136
|
placeholder: A,
|
|
1137
1137
|
...O
|
|
1138
|
-
} = t, { fieldErrors: j } = lt(), [P, S] = F(!1), M = me(null), k =
|
|
1138
|
+
} = t, { fieldErrors: j } = lt(), [P, S] = F(!1), M = me(null), k = b || mt(), R = v || (j == null ? void 0 : j[e]), I = !!R, N = r || c, z = { md: 20, lg: 20 }[w], Q = y ? "right" : "left", V = Q === "left" && c, G = Q === "right" && c;
|
|
1139
1139
|
function ee() {
|
|
1140
1140
|
N || !(M != null && M.current) || (S(!0), M.current.focus());
|
|
1141
1141
|
}
|
|
@@ -1397,40 +1397,40 @@ function Ed(t) {
|
|
|
1397
1397
|
// onTiltChanged,
|
|
1398
1398
|
// onZoomChanged,
|
|
1399
1399
|
onLoad: w,
|
|
1400
|
-
onUnmount:
|
|
1400
|
+
onUnmount: b
|
|
1401
1401
|
} = t, [B, A] = F(null), O = me(null), [j, P] = F(null), [S, M] = F(null), [k, R] = F(null), [I, N] = F(null), [K, z] = F(null), [Q, V] = F(null), [G, ee] = F(null), [re, X] = F(null), [oe, T] = F(null), [x, U] = F(null), [$, q] = F(null), [J, Y] = F(null);
|
|
1402
|
-
return
|
|
1402
|
+
return E(() => {
|
|
1403
1403
|
r && B !== null && B.setOptions(r);
|
|
1404
|
-
}, [B, r]),
|
|
1404
|
+
}, [B, r]), E(() => {
|
|
1405
1405
|
B !== null && typeof s < "u" && B.setCenter(s);
|
|
1406
|
-
}, [B, s]),
|
|
1406
|
+
}, [B, s]), E(() => {
|
|
1407
1407
|
B && u && (S !== null && google.maps.event.removeListener(S), M(google.maps.event.addListener(B, "dblclick", u)));
|
|
1408
|
-
}, [u]),
|
|
1408
|
+
}, [u]), E(() => {
|
|
1409
1409
|
B && c && (k !== null && google.maps.event.removeListener(k), R(google.maps.event.addListener(B, "dragend", c)));
|
|
1410
|
-
}, [c]),
|
|
1410
|
+
}, [c]), E(() => {
|
|
1411
1411
|
B && d && (I !== null && google.maps.event.removeListener(I), N(google.maps.event.addListener(B, "dragstart", d)));
|
|
1412
|
-
}, [d]),
|
|
1412
|
+
}, [d]), E(() => {
|
|
1413
1413
|
B && v && (K !== null && google.maps.event.removeListener(K), z(google.maps.event.addListener(B, "mousedown", v)));
|
|
1414
|
-
}, [v]),
|
|
1414
|
+
}, [v]), E(() => {
|
|
1415
1415
|
B && h && (Q !== null && google.maps.event.removeListener(Q), V(google.maps.event.addListener(B, "mousemove", h)));
|
|
1416
|
-
}, [h]),
|
|
1416
|
+
}, [h]), E(() => {
|
|
1417
1417
|
B && m && (G !== null && google.maps.event.removeListener(G), ee(google.maps.event.addListener(B, "mouseout", m)));
|
|
1418
|
-
}, [m]),
|
|
1418
|
+
}, [m]), E(() => {
|
|
1419
1419
|
B && g && (re !== null && google.maps.event.removeListener(re), X(google.maps.event.addListener(B, "mouseover", g)));
|
|
1420
|
-
}, [g]),
|
|
1420
|
+
}, [g]), E(() => {
|
|
1421
1421
|
B && f && (oe !== null && google.maps.event.removeListener(oe), T(google.maps.event.addListener(B, "mouseup", f)));
|
|
1422
|
-
}, [f]),
|
|
1422
|
+
}, [f]), E(() => {
|
|
1423
1423
|
B && y && (x !== null && google.maps.event.removeListener(x), U(google.maps.event.addListener(B, "rightclick", y)));
|
|
1424
|
-
}, [y]),
|
|
1424
|
+
}, [y]), E(() => {
|
|
1425
1425
|
B && o && ($ !== null && google.maps.event.removeListener($), q(google.maps.event.addListener(B, "click", o)));
|
|
1426
|
-
}, [o]),
|
|
1426
|
+
}, [o]), E(() => {
|
|
1427
1427
|
B && l && (J !== null && google.maps.event.removeListener(J), Y(google.maps.event.addListener(B, "drag", l)));
|
|
1428
|
-
}, [l]),
|
|
1428
|
+
}, [l]), E(() => {
|
|
1429
1429
|
B && D && (j !== null && google.maps.event.removeListener(j), P(google.maps.event.addListener(B, "center_changed", D)));
|
|
1430
|
-
}, [o]),
|
|
1430
|
+
}, [o]), E(() => {
|
|
1431
1431
|
var ie = O.current === null ? null : new google.maps.Map(O.current, r);
|
|
1432
1432
|
return A(ie), ie !== null && w && w(ie), () => {
|
|
1433
|
-
ie !== null &&
|
|
1433
|
+
ie !== null && b && b(ie);
|
|
1434
1434
|
};
|
|
1435
1435
|
}, []), C("div", {
|
|
1436
1436
|
id: n,
|
|
@@ -1750,13 +1750,13 @@ function yl(t) {
|
|
|
1750
1750
|
authReferrerPolicy: h,
|
|
1751
1751
|
apiUrl: m = "https://maps.googleapis.com"
|
|
1752
1752
|
} = t, g = me(!1), [v, f] = F(!1), [y, D] = F(void 0);
|
|
1753
|
-
|
|
1753
|
+
E(function() {
|
|
1754
1754
|
return g.current = !0, () => {
|
|
1755
1755
|
g.current = !1;
|
|
1756
1756
|
};
|
|
1757
|
-
}, []),
|
|
1757
|
+
}, []), E(function() {
|
|
1758
1758
|
Qt && l && Cl();
|
|
1759
|
-
}, [l]),
|
|
1759
|
+
}, [l]), E(function() {
|
|
1760
1760
|
v && $e(!!window.google, "useLoadScript was marked as loaded, but window.google is not present. Something went wrong.");
|
|
1761
1761
|
}, [v]);
|
|
1762
1762
|
var w = vl({
|
|
@@ -1771,7 +1771,7 @@ function yl(t) {
|
|
|
1771
1771
|
authReferrerPolicy: h,
|
|
1772
1772
|
apiUrl: m
|
|
1773
1773
|
});
|
|
1774
|
-
|
|
1774
|
+
E(function() {
|
|
1775
1775
|
if (!Qt)
|
|
1776
1776
|
return;
|
|
1777
1777
|
function A() {
|
|
@@ -1792,9 +1792,9 @@ function yl(t) {
|
|
|
1792
1792
|
`)), console.error(j);
|
|
1793
1793
|
});
|
|
1794
1794
|
}, [e, w, n]);
|
|
1795
|
-
var
|
|
1796
|
-
return
|
|
1797
|
-
|
|
1795
|
+
var b = me(void 0);
|
|
1796
|
+
return E(function() {
|
|
1797
|
+
b.current && u !== b.current && console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"), b.current = u;
|
|
1798
1798
|
}, [u]), {
|
|
1799
1799
|
isLoaded: v,
|
|
1800
1800
|
loadError: y,
|
|
@@ -1813,11 +1813,11 @@ function xd(t) {
|
|
|
1813
1813
|
isLoaded: o,
|
|
1814
1814
|
loadError: u
|
|
1815
1815
|
} = yl(s);
|
|
1816
|
-
return
|
|
1816
|
+
return E(function() {
|
|
1817
1817
|
o && typeof r == "function" && r();
|
|
1818
|
-
}, [o, r]),
|
|
1818
|
+
}, [o, r]), E(function() {
|
|
1819
1819
|
u && typeof n == "function" && n(u);
|
|
1820
|
-
}, [u, n]),
|
|
1820
|
+
}, [u, n]), E(function() {
|
|
1821
1821
|
return () => {
|
|
1822
1822
|
i && i();
|
|
1823
1823
|
};
|
|
@@ -1860,11 +1860,11 @@ function Fd(t) {
|
|
|
1860
1860
|
onLoad: r,
|
|
1861
1861
|
onUnmount: n
|
|
1862
1862
|
} = t, i = Ae(pe), [a, s] = F(null);
|
|
1863
|
-
return
|
|
1863
|
+
return E(() => {
|
|
1864
1864
|
a !== null && a.setMap(i);
|
|
1865
|
-
}, [i]),
|
|
1865
|
+
}, [i]), E(() => {
|
|
1866
1866
|
e && a !== null && a.setOptions(e);
|
|
1867
|
-
}, [a, e]),
|
|
1867
|
+
}, [a, e]), E(() => {
|
|
1868
1868
|
var o = new google.maps.TrafficLayer(kn(kn({}, e), {}, {
|
|
1869
1869
|
map: i
|
|
1870
1870
|
}));
|
|
@@ -1920,9 +1920,9 @@ function Sd(t) {
|
|
|
1920
1920
|
onLoad: e,
|
|
1921
1921
|
onUnmount: r
|
|
1922
1922
|
} = t, n = Ae(pe), [i, a] = F(null);
|
|
1923
|
-
return
|
|
1923
|
+
return E(() => {
|
|
1924
1924
|
i !== null && i.setMap(n);
|
|
1925
|
-
}, [n]),
|
|
1925
|
+
}, [n]), E(() => {
|
|
1926
1926
|
var s = new google.maps.BicyclingLayer();
|
|
1927
1927
|
return a(s), s.setMap(n), e && e(s), () => {
|
|
1928
1928
|
s !== null && (r && r(s), s.setMap(null));
|
|
@@ -1957,9 +1957,9 @@ function kd(t) {
|
|
|
1957
1957
|
onLoad: e,
|
|
1958
1958
|
onUnmount: r
|
|
1959
1959
|
} = t, n = Ae(pe), [i, a] = F(null);
|
|
1960
|
-
return
|
|
1960
|
+
return E(() => {
|
|
1961
1961
|
i !== null && i.setMap(n);
|
|
1962
|
-
}, [n]),
|
|
1962
|
+
}, [n]), E(() => {
|
|
1963
1963
|
var s = new google.maps.TransitLayer();
|
|
1964
1964
|
return a(s), s.setMap(n), e && e(s), () => {
|
|
1965
1965
|
i !== null && (r && r(i), i.setMap(null));
|
|
@@ -2039,32 +2039,32 @@ function Nd(t) {
|
|
|
2039
2039
|
onRectangleComplete: u,
|
|
2040
2040
|
onLoad: l,
|
|
2041
2041
|
onUnmount: c
|
|
2042
|
-
} = t, d = Ae(pe), [h, m] = F(null), [g, v] = F(null), [f, y] = F(null), [D, w] = F(null), [
|
|
2043
|
-
return
|
|
2042
|
+
} = t, d = Ae(pe), [h, m] = F(null), [g, v] = F(null), [f, y] = F(null), [D, w] = F(null), [b, B] = F(null), [A, O] = F(null), [j, P] = F(null);
|
|
2043
|
+
return E(() => {
|
|
2044
2044
|
h !== null && h.setMap(d);
|
|
2045
|
-
}, [d]),
|
|
2045
|
+
}, [d]), E(() => {
|
|
2046
2046
|
e && h !== null && h.setOptions(e);
|
|
2047
|
-
}, [h, e]),
|
|
2047
|
+
}, [h, e]), E(() => {
|
|
2048
2048
|
h !== null && h.setDrawingMode(r ?? null);
|
|
2049
|
-
}, [h, r]),
|
|
2049
|
+
}, [h, r]), E(() => {
|
|
2050
2050
|
h && n && (g !== null && google.maps.event.removeListener(g), v(google.maps.event.addListener(h, "circlecomplete", n)));
|
|
2051
|
-
}, [h, n]),
|
|
2051
|
+
}, [h, n]), E(() => {
|
|
2052
2052
|
h && i && (f !== null && google.maps.event.removeListener(f), y(google.maps.event.addListener(h, "markercomplete", i)));
|
|
2053
|
-
}, [h, i]),
|
|
2053
|
+
}, [h, i]), E(() => {
|
|
2054
2054
|
h && a && (D !== null && google.maps.event.removeListener(D), w(google.maps.event.addListener(h, "overlaycomplete", a)));
|
|
2055
|
-
}, [h, a]),
|
|
2056
|
-
h && s && (
|
|
2057
|
-
}, [h, s]),
|
|
2055
|
+
}, [h, a]), E(() => {
|
|
2056
|
+
h && s && (b !== null && google.maps.event.removeListener(b), B(google.maps.event.addListener(h, "polygoncomplete", s)));
|
|
2057
|
+
}, [h, s]), E(() => {
|
|
2058
2058
|
h && o && (A !== null && google.maps.event.removeListener(A), O(google.maps.event.addListener(h, "polylinecomplete", o)));
|
|
2059
|
-
}, [h, o]),
|
|
2059
|
+
}, [h, o]), E(() => {
|
|
2060
2060
|
h && u && (j !== null && google.maps.event.removeListener(j), P(google.maps.event.addListener(h, "rectanglecomplete", u)));
|
|
2061
|
-
}, [h, u]),
|
|
2061
|
+
}, [h, u]), E(() => {
|
|
2062
2062
|
$e(!!google.maps.drawing, "Did you include prop libraries={['drawing']} in the URL? %s", google.maps.drawing);
|
|
2063
2063
|
var S = new google.maps.drawing.DrawingManager(Tn(Tn({}, e), {}, {
|
|
2064
2064
|
map: d
|
|
2065
2065
|
}));
|
|
2066
2066
|
return r && S.setDrawingMode(r), n && v(google.maps.event.addListener(S, "circlecomplete", n)), i && y(google.maps.event.addListener(S, "markercomplete", i)), a && w(google.maps.event.addListener(S, "overlaycomplete", a)), s && B(google.maps.event.addListener(S, "polygoncomplete", s)), o && O(google.maps.event.addListener(S, "polylinecomplete", o)), u && P(google.maps.event.addListener(S, "rectanglecomplete", u)), m(S), l && l(S), () => {
|
|
2067
|
-
h !== null && (g && google.maps.event.removeListener(g), f && google.maps.event.removeListener(f), D && google.maps.event.removeListener(D),
|
|
2067
|
+
h !== null && (g && google.maps.event.removeListener(g), f && google.maps.event.removeListener(f), D && google.maps.event.removeListener(D), b && google.maps.event.removeListener(b), A && google.maps.event.removeListener(A), j && google.maps.event.removeListener(j), c && c(h), h.setMap(null));
|
|
2068
2068
|
};
|
|
2069
2069
|
}, []), null;
|
|
2070
2070
|
}
|
|
@@ -2218,7 +2218,7 @@ function Rd(t) {
|
|
|
2218
2218
|
onClick: y,
|
|
2219
2219
|
onDblClick: D,
|
|
2220
2220
|
onDrag: w,
|
|
2221
|
-
onDragEnd:
|
|
2221
|
+
onDragEnd: b,
|
|
2222
2222
|
onDragStart: B,
|
|
2223
2223
|
onMouseOut: A,
|
|
2224
2224
|
onMouseOver: O,
|
|
@@ -2239,83 +2239,83 @@ function Rd(t) {
|
|
|
2239
2239
|
onLoad: re,
|
|
2240
2240
|
onUnmount: X
|
|
2241
2241
|
} = t, oe = Ae(pe), [T, x] = F(null), [U, $] = F(null), [q, J] = F(null), [Y, ie] = F(null), [ue, le] = F(null), [ce, ge] = F(null), [we, be] = F(null), [Ie, _e] = F(null), [Ze, Le] = F(null), [qe, tt] = F(null), [Oe, xe] = F(null), [ft, He] = F(null), [Ke, Dt] = F(null), [Xe, lr] = F(null), [yt, Ot] = F(null), [cr, tn] = F(null), [fr, rn] = F(null), [dr, nn] = F(null), [Va, Ga] = F(null), [an, qa] = F(null), [sn, Za] = F(null), [on, Ka] = F(null);
|
|
2242
|
-
|
|
2242
|
+
E(() => {
|
|
2243
2243
|
T !== null && T.setMap(oe);
|
|
2244
|
-
}, [oe]),
|
|
2244
|
+
}, [oe]), E(() => {
|
|
2245
2245
|
typeof r < "u" && T !== null && T.setOptions(r);
|
|
2246
|
-
}, [T, r]),
|
|
2246
|
+
}, [T, r]), E(() => {
|
|
2247
2247
|
typeof s < "u" && T !== null && T.setDraggable(s);
|
|
2248
|
-
}, [T, s]),
|
|
2248
|
+
}, [T, s]), E(() => {
|
|
2249
2249
|
e && T !== null && T.setPosition(e);
|
|
2250
|
-
}, [T, e]),
|
|
2250
|
+
}, [T, e]), E(() => {
|
|
2251
2251
|
typeof o < "u" && T !== null && T.setVisible(o);
|
|
2252
|
-
}, [T, o]),
|
|
2252
|
+
}, [T, o]), E(() => {
|
|
2253
2253
|
T == null || T.setAnimation(u);
|
|
2254
|
-
}, [T, u]),
|
|
2254
|
+
}, [T, u]), E(() => {
|
|
2255
2255
|
T && l !== void 0 && T.setClickable(l);
|
|
2256
|
-
}, [T, l]),
|
|
2256
|
+
}, [T, l]), E(() => {
|
|
2257
2257
|
T && c !== void 0 && T.setCursor(c);
|
|
2258
|
-
}, [T, c]),
|
|
2258
|
+
}, [T, c]), E(() => {
|
|
2259
2259
|
T && d !== void 0 && T.setIcon(d);
|
|
2260
|
-
}, [T, d]),
|
|
2260
|
+
}, [T, d]), E(() => {
|
|
2261
2261
|
T && h !== void 0 && T.setLabel(h);
|
|
2262
|
-
}, [T, h]),
|
|
2262
|
+
}, [T, h]), E(() => {
|
|
2263
2263
|
T && m !== void 0 && T.setOpacity(m);
|
|
2264
|
-
}, [T, m]),
|
|
2264
|
+
}, [T, m]), E(() => {
|
|
2265
2265
|
T && g !== void 0 && T.setShape(g);
|
|
2266
|
-
}, [T, g]),
|
|
2266
|
+
}, [T, g]), E(() => {
|
|
2267
2267
|
T && v !== void 0 && T.setTitle(v);
|
|
2268
|
-
}, [T, v]),
|
|
2268
|
+
}, [T, v]), E(() => {
|
|
2269
2269
|
T && f !== void 0 && T.setZIndex(f);
|
|
2270
|
-
}, [T, f]),
|
|
2270
|
+
}, [T, f]), E(() => {
|
|
2271
2271
|
T && D && (U !== null && google.maps.event.removeListener(U), $(google.maps.event.addListener(T, "dblclick", D)));
|
|
2272
|
-
}, [D]),
|
|
2273
|
-
T &&
|
|
2274
|
-
}, [
|
|
2272
|
+
}, [D]), E(() => {
|
|
2273
|
+
T && b && (q !== null && google.maps.event.removeListener(q), J(google.maps.event.addListener(T, "dragend", b)));
|
|
2274
|
+
}, [b]), E(() => {
|
|
2275
2275
|
T && B && (Y !== null && google.maps.event.removeListener(Y), ie(google.maps.event.addListener(T, "dragstart", B)));
|
|
2276
|
-
}, [B]),
|
|
2276
|
+
}, [B]), E(() => {
|
|
2277
2277
|
T && P && (ue !== null && google.maps.event.removeListener(ue), le(google.maps.event.addListener(T, "mousedown", P)));
|
|
2278
|
-
}, [P]),
|
|
2278
|
+
}, [P]), E(() => {
|
|
2279
2279
|
T && A && (ce !== null && google.maps.event.removeListener(ce), ge(google.maps.event.addListener(T, "mouseout", A)));
|
|
2280
|
-
}, [A]),
|
|
2280
|
+
}, [A]), E(() => {
|
|
2281
2281
|
T && O && (we !== null && google.maps.event.removeListener(we), be(google.maps.event.addListener(T, "mouseover", O)));
|
|
2282
|
-
}, [O]),
|
|
2282
|
+
}, [O]), E(() => {
|
|
2283
2283
|
T && j && (Ie !== null && google.maps.event.removeListener(Ie), _e(google.maps.event.addListener(T, "mouseup", j)));
|
|
2284
|
-
}, [j]),
|
|
2284
|
+
}, [j]), E(() => {
|
|
2285
2285
|
T && S && (Ze !== null && google.maps.event.removeListener(Ze), Le(google.maps.event.addListener(T, "rightclick", S)));
|
|
2286
|
-
}, [S]),
|
|
2286
|
+
}, [S]), E(() => {
|
|
2287
2287
|
T && y && (qe !== null && google.maps.event.removeListener(qe), tt(google.maps.event.addListener(T, "click", y)));
|
|
2288
|
-
}, [y]),
|
|
2288
|
+
}, [y]), E(() => {
|
|
2289
2289
|
T && w && (Oe !== null && google.maps.event.removeListener(Oe), xe(google.maps.event.addListener(T, "drag", w)));
|
|
2290
|
-
}, [w]),
|
|
2290
|
+
}, [w]), E(() => {
|
|
2291
2291
|
T && M && (ft !== null && google.maps.event.removeListener(ft), He(google.maps.event.addListener(T, "clickable_changed", M)));
|
|
2292
|
-
}, [M]),
|
|
2292
|
+
}, [M]), E(() => {
|
|
2293
2293
|
T && k && (Ke !== null && google.maps.event.removeListener(Ke), Dt(google.maps.event.addListener(T, "cursor_changed", k)));
|
|
2294
|
-
}, [k]),
|
|
2294
|
+
}, [k]), E(() => {
|
|
2295
2295
|
T && R && (Xe !== null && google.maps.event.removeListener(Xe), lr(google.maps.event.addListener(T, "animation_changed", R)));
|
|
2296
|
-
}, [R]),
|
|
2296
|
+
}, [R]), E(() => {
|
|
2297
2297
|
T && I && (yt !== null && google.maps.event.removeListener(yt), Ot(google.maps.event.addListener(T, "draggable_changed", I)));
|
|
2298
|
-
}, [I]),
|
|
2298
|
+
}, [I]), E(() => {
|
|
2299
2299
|
T && N && (cr !== null && google.maps.event.removeListener(cr), tn(google.maps.event.addListener(T, "flat_changed", N)));
|
|
2300
|
-
}, [N]),
|
|
2300
|
+
}, [N]), E(() => {
|
|
2301
2301
|
T && K && (fr !== null && google.maps.event.removeListener(fr), rn(google.maps.event.addListener(T, "icon_changed", K)));
|
|
2302
|
-
}, [K]),
|
|
2302
|
+
}, [K]), E(() => {
|
|
2303
2303
|
T && z && (dr !== null && google.maps.event.removeListener(dr), nn(google.maps.event.addListener(T, "position_changed", z)));
|
|
2304
|
-
}, [z]),
|
|
2304
|
+
}, [z]), E(() => {
|
|
2305
2305
|
T && Q && (Va !== null && google.maps.event.removeListener(Va), Ga(google.maps.event.addListener(T, "shape_changed", Q)));
|
|
2306
|
-
}, [Q]),
|
|
2306
|
+
}, [Q]), E(() => {
|
|
2307
2307
|
T && V && (an !== null && google.maps.event.removeListener(an), qa(google.maps.event.addListener(T, "title_changed", V)));
|
|
2308
|
-
}, [V]),
|
|
2308
|
+
}, [V]), E(() => {
|
|
2309
2309
|
T && G && (sn !== null && google.maps.event.removeListener(sn), Za(google.maps.event.addListener(T, "visible_changed", G)));
|
|
2310
|
-
}, [G]),
|
|
2310
|
+
}, [G]), E(() => {
|
|
2311
2311
|
T && ee && (on !== null && google.maps.event.removeListener(on), Ka(google.maps.event.addListener(T, "zindex_changed", ee)));
|
|
2312
|
-
}, [ee]),
|
|
2312
|
+
}, [ee]), E(() => {
|
|
2313
2313
|
var Or = mr(mr(mr({}, r || Nn), n ? Nn : {
|
|
2314
2314
|
map: oe
|
|
2315
2315
|
}), {}, {
|
|
2316
2316
|
position: e
|
|
2317
2317
|
}), he = new google.maps.Marker(Or);
|
|
2318
|
-
return n ? n.addMarker(he, !!i) : he.setMap(oe), e && he.setPosition(e), typeof o < "u" && he.setVisible(o), typeof s < "u" && he.setDraggable(s), typeof l < "u" && he.setClickable(l), typeof c == "string" && he.setCursor(c), d && he.setIcon(d), typeof h < "u" && he.setLabel(h), typeof m < "u" && he.setOpacity(m), g && he.setShape(g), typeof v == "string" && he.setTitle(v), typeof f == "number" && he.setZIndex(f), D && $(google.maps.event.addListener(he, "dblclick", D)),
|
|
2318
|
+
return n ? n.addMarker(he, !!i) : he.setMap(oe), e && he.setPosition(e), typeof o < "u" && he.setVisible(o), typeof s < "u" && he.setDraggable(s), typeof l < "u" && he.setClickable(l), typeof c == "string" && he.setCursor(c), d && he.setIcon(d), typeof h < "u" && he.setLabel(h), typeof m < "u" && he.setOpacity(m), g && he.setShape(g), typeof v == "string" && he.setTitle(v), typeof f == "number" && he.setZIndex(f), D && $(google.maps.event.addListener(he, "dblclick", D)), b && J(google.maps.event.addListener(he, "dragend", b)), B && ie(google.maps.event.addListener(he, "dragstart", B)), P && le(google.maps.event.addListener(he, "mousedown", P)), A && ge(google.maps.event.addListener(he, "mouseout", A)), O && be(google.maps.event.addListener(he, "mouseover", O)), j && _e(google.maps.event.addListener(he, "mouseup", j)), S && Le(google.maps.event.addListener(he, "rightclick", S)), y && tt(google.maps.event.addListener(he, "click", y)), w && xe(google.maps.event.addListener(he, "drag", w)), M && He(google.maps.event.addListener(he, "clickable_changed", M)), k && Dt(google.maps.event.addListener(he, "cursor_changed", k)), R && lr(google.maps.event.addListener(he, "animation_changed", R)), I && Ot(google.maps.event.addListener(he, "draggable_changed", I)), N && tn(google.maps.event.addListener(he, "flat_changed", N)), K && rn(google.maps.event.addListener(he, "icon_changed", K)), z && nn(google.maps.event.addListener(he, "position_changed", z)), Q && Ga(google.maps.event.addListener(he, "shape_changed", Q)), V && qa(google.maps.event.addListener(he, "title_changed", V)), G && Za(google.maps.event.addListener(he, "visible_changed", G)), ee && Ka(google.maps.event.addListener(he, "zindex_changed", ee)), x(he), re && re(he), () => {
|
|
2319
2319
|
U !== null && google.maps.event.removeListener(U), q !== null && google.maps.event.removeListener(q), Y !== null && google.maps.event.removeListener(Y), ue !== null && google.maps.event.removeListener(ue), ce !== null && google.maps.event.removeListener(ce), we !== null && google.maps.event.removeListener(we), Ie !== null && google.maps.event.removeListener(Ie), Ze !== null && google.maps.event.removeListener(Ze), qe !== null && google.maps.event.removeListener(qe), ft !== null && google.maps.event.removeListener(ft), Ke !== null && google.maps.event.removeListener(Ke), Xe !== null && google.maps.event.removeListener(Xe), yt !== null && google.maps.event.removeListener(yt), cr !== null && google.maps.event.removeListener(cr), fr !== null && google.maps.event.removeListener(fr), dr !== null && google.maps.event.removeListener(dr), an !== null && google.maps.event.removeListener(an), sn !== null && google.maps.event.removeListener(sn), on !== null && google.maps.event.removeListener(on), X && X(he), n ? n.removeMarker(he, !!i) : he && he.setMap(null);
|
|
2320
2320
|
};
|
|
2321
2321
|
}, []);
|
|
@@ -2905,56 +2905,56 @@ function Kd(t) {
|
|
|
2905
2905
|
zoomOnClick: y,
|
|
2906
2906
|
onClick: D,
|
|
2907
2907
|
onClusteringBegin: w,
|
|
2908
|
-
onClusteringEnd:
|
|
2908
|
+
onClusteringEnd: b,
|
|
2909
2909
|
onMouseOver: B,
|
|
2910
2910
|
onMouseOut: A,
|
|
2911
2911
|
onLoad: O,
|
|
2912
2912
|
onUnmount: j
|
|
2913
2913
|
} = t, [P, S] = F(null), M = Ae(pe), [k, R] = F(null), [I, N] = F(null), [K, z] = F(null), [Q, V] = F(null), [G, ee] = F(null);
|
|
2914
|
-
return
|
|
2914
|
+
return E(() => {
|
|
2915
2915
|
P && A && (Q !== null && google.maps.event.removeListener(Q), V(google.maps.event.addListener(P, ht.onMouseOut, A)));
|
|
2916
|
-
}, [A]),
|
|
2916
|
+
}, [A]), E(() => {
|
|
2917
2917
|
P && B && (G !== null && google.maps.event.removeListener(G), ee(google.maps.event.addListener(P, ht.onMouseOver, B)));
|
|
2918
|
-
}, [B]),
|
|
2918
|
+
}, [B]), E(() => {
|
|
2919
2919
|
P && D && (k !== null && google.maps.event.removeListener(k), R(google.maps.event.addListener(P, ht.onClick, D)));
|
|
2920
|
-
}, [D]),
|
|
2920
|
+
}, [D]), E(() => {
|
|
2921
2921
|
P && w && (I !== null && google.maps.event.removeListener(I), N(google.maps.event.addListener(P, ht.onClusteringBegin, w)));
|
|
2922
|
-
}, [w]),
|
|
2923
|
-
P &&
|
|
2924
|
-
}, [
|
|
2922
|
+
}, [w]), E(() => {
|
|
2923
|
+
P && b && (K !== null && google.maps.event.removeListener(K), N(google.maps.event.addListener(P, ht.onClusteringEnd, b)));
|
|
2924
|
+
}, [b]), E(() => {
|
|
2925
2925
|
typeof n < "u" && P !== null && Be.averageCenter(P, n);
|
|
2926
|
-
}, [P, n]),
|
|
2926
|
+
}, [P, n]), E(() => {
|
|
2927
2927
|
typeof i < "u" && P !== null && Be.batchSizeIE(P, i);
|
|
2928
|
-
}, [P, i]),
|
|
2928
|
+
}, [P, i]), E(() => {
|
|
2929
2929
|
typeof a < "u" && P !== null && Be.calculator(P, a);
|
|
2930
|
-
}, [P, a]),
|
|
2930
|
+
}, [P, a]), E(() => {
|
|
2931
2931
|
typeof s < "u" && P !== null && Be.clusterClass(P, s);
|
|
2932
|
-
}, [P, s]),
|
|
2932
|
+
}, [P, s]), E(() => {
|
|
2933
2933
|
typeof o < "u" && P !== null && Be.enableRetinaIcons(P, o);
|
|
2934
|
-
}, [P, o]),
|
|
2934
|
+
}, [P, o]), E(() => {
|
|
2935
2935
|
typeof u < "u" && P !== null && Be.gridSize(P, u);
|
|
2936
|
-
}, [P, u]),
|
|
2936
|
+
}, [P, u]), E(() => {
|
|
2937
2937
|
typeof l < "u" && P !== null && Be.ignoreHidden(P, l);
|
|
2938
|
-
}, [P, l]),
|
|
2938
|
+
}, [P, l]), E(() => {
|
|
2939
2939
|
typeof c < "u" && P !== null && Be.imageExtension(P, c);
|
|
2940
|
-
}, [P, c]),
|
|
2940
|
+
}, [P, c]), E(() => {
|
|
2941
2941
|
typeof d < "u" && P !== null && Be.imagePath(P, d);
|
|
2942
|
-
}, [P, d]),
|
|
2942
|
+
}, [P, d]), E(() => {
|
|
2943
2943
|
typeof h < "u" && P !== null && Be.imageSizes(P, h);
|
|
2944
|
-
}, [P, h]),
|
|
2944
|
+
}, [P, h]), E(() => {
|
|
2945
2945
|
typeof m < "u" && P !== null && Be.maxZoom(P, m);
|
|
2946
|
-
}, [P, m]),
|
|
2946
|
+
}, [P, m]), E(() => {
|
|
2947
2947
|
typeof g < "u" && P !== null && Be.minimumClusterSize(P, g);
|
|
2948
|
-
}, [P, g]),
|
|
2948
|
+
}, [P, g]), E(() => {
|
|
2949
2949
|
typeof v < "u" && P !== null && Be.styles(P, v);
|
|
2950
|
-
}, [P, v]),
|
|
2950
|
+
}, [P, v]), E(() => {
|
|
2951
2951
|
typeof f < "u" && P !== null && Be.title(P, f);
|
|
2952
|
-
}, [P, f]),
|
|
2952
|
+
}, [P, f]), E(() => {
|
|
2953
2953
|
typeof y < "u" && P !== null && Be.zoomOnClick(P, y);
|
|
2954
|
-
}, [P, y]),
|
|
2954
|
+
}, [P, y]), E(() => {
|
|
2955
2955
|
if (M) {
|
|
2956
2956
|
var re = qd({}, r || Zd), X = new El(M, [], re);
|
|
2957
|
-
return n && Be.averageCenter(X, n), i && Be.batchSizeIE(X, i), a && Be.calculator(X, a), s && Be.clusterClass(X, s), o && Be.enableRetinaIcons(X, o), u && Be.gridSize(X, u), l && Be.ignoreHidden(X, l), c && Be.imageExtension(X, c), d && Be.imagePath(X, d), h && Be.imageSizes(X, h), m && Be.maxZoom(X, m), g && Be.minimumClusterSize(X, g), v && Be.styles(X, v), f && Be.title(X, f), y && Be.zoomOnClick(X, y), A && V(google.maps.event.addListener(X, ht.onMouseOut, A)), B && ee(google.maps.event.addListener(X, ht.onMouseOver, B)), D && R(google.maps.event.addListener(X, ht.onClick, D)), w && N(google.maps.event.addListener(X, ht.onClusteringBegin, w)),
|
|
2957
|
+
return n && Be.averageCenter(X, n), i && Be.batchSizeIE(X, i), a && Be.calculator(X, a), s && Be.clusterClass(X, s), o && Be.enableRetinaIcons(X, o), u && Be.gridSize(X, u), l && Be.ignoreHidden(X, l), c && Be.imageExtension(X, c), d && Be.imagePath(X, d), h && Be.imageSizes(X, h), m && Be.maxZoom(X, m), g && Be.minimumClusterSize(X, g), v && Be.styles(X, v), f && Be.title(X, f), y && Be.zoomOnClick(X, y), A && V(google.maps.event.addListener(X, ht.onMouseOut, A)), B && ee(google.maps.event.addListener(X, ht.onMouseOver, B)), D && R(google.maps.event.addListener(X, ht.onClick, D)), w && N(google.maps.event.addListener(X, ht.onClusteringBegin, w)), b && z(google.maps.event.addListener(X, ht.onClusteringEnd, b)), S(X), O && O(X), () => {
|
|
2958
2958
|
Q !== null && google.maps.event.removeListener(Q), G !== null && google.maps.event.removeListener(G), k !== null && google.maps.event.removeListener(k), I !== null && google.maps.event.removeListener(I), K !== null && google.maps.event.removeListener(K), j && j(X);
|
|
2959
2959
|
};
|
|
2960
2960
|
}
|
|
@@ -3199,12 +3199,12 @@ function eh(t) {
|
|
|
3199
3199
|
onZindexChanged: c,
|
|
3200
3200
|
onLoad: d,
|
|
3201
3201
|
onUnmount: h
|
|
3202
|
-
} = t, m = Ae(pe), [g, v] = F(null), [f, y] = F(null), [D, w] = F(null), [
|
|
3203
|
-
return
|
|
3202
|
+
} = t, m = Ae(pe), [g, v] = F(null), [f, y] = F(null), [D, w] = F(null), [b, B] = F(null), [A, O] = F(null), [j, P] = F(null), S = me(null);
|
|
3203
|
+
return E(() => {
|
|
3204
3204
|
m && g !== null && (g.close(), r ? g.open(m, r) : g.getPosition() && g.open(m));
|
|
3205
|
-
}, [m, g, r]),
|
|
3205
|
+
}, [m, g, r]), E(() => {
|
|
3206
3206
|
n && g !== null && g.setOptions(n);
|
|
3207
|
-
}, [g, n]),
|
|
3207
|
+
}, [g, n]), E(() => {
|
|
3208
3208
|
if (i && g !== null) {
|
|
3209
3209
|
var M = i instanceof google.maps.LatLng ? i : (
|
|
3210
3210
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -3213,19 +3213,19 @@ function eh(t) {
|
|
|
3213
3213
|
);
|
|
3214
3214
|
g.setPosition(M);
|
|
3215
3215
|
}
|
|
3216
|
-
}, [i]),
|
|
3216
|
+
}, [i]), E(() => {
|
|
3217
3217
|
typeof a == "number" && g !== null && g.setZIndex(a);
|
|
3218
|
-
}, [a]),
|
|
3218
|
+
}, [a]), E(() => {
|
|
3219
3219
|
g && s && (f !== null && google.maps.event.removeListener(f), y(google.maps.event.addListener(g, "closeclick", s)));
|
|
3220
|
-
}, [s]),
|
|
3220
|
+
}, [s]), E(() => {
|
|
3221
3221
|
g && o && (D !== null && google.maps.event.removeListener(D), w(google.maps.event.addListener(g, "domready", o)));
|
|
3222
|
-
}, [o]),
|
|
3223
|
-
g && u && (
|
|
3224
|
-
}, [u]),
|
|
3222
|
+
}, [o]), E(() => {
|
|
3223
|
+
g && u && (b !== null && google.maps.event.removeListener(b), B(google.maps.event.addListener(g, "content_changed", u)));
|
|
3224
|
+
}, [u]), E(() => {
|
|
3225
3225
|
g && l && (A !== null && google.maps.event.removeListener(A), O(google.maps.event.addListener(g, "position_changed", l)));
|
|
3226
|
-
}, [l]),
|
|
3226
|
+
}, [l]), E(() => {
|
|
3227
3227
|
g && c && (j !== null && google.maps.event.removeListener(j), P(google.maps.event.addListener(g, "zindex_changed", c)));
|
|
3228
|
-
}, [c]),
|
|
3228
|
+
}, [c]), E(() => {
|
|
3229
3229
|
if (m) {
|
|
3230
3230
|
var M = n || Qd, {
|
|
3231
3231
|
position: k
|
|
@@ -3237,7 +3237,7 @@ function eh(t) {
|
|
|
3237
3237
|
S.current = document.createElement("div"), v(N), s && y(google.maps.event.addListener(N, "closeclick", s)), o && w(google.maps.event.addListener(N, "domready", o)), u && B(google.maps.event.addListener(N, "content_changed", u)), l && O(google.maps.event.addListener(N, "position_changed", l)), c && P(google.maps.event.addListener(N, "zindex_changed", c)), N.setContent(S.current), r ? N.open(m, r) : N.getPosition() ? N.open(m) : $e(!1, "You must provide either an anchor or a position prop for <InfoBox>."), d && d(N);
|
|
3238
3238
|
}
|
|
3239
3239
|
return () => {
|
|
3240
|
-
g !== null && (f && google.maps.event.removeListener(f),
|
|
3240
|
+
g !== null && (f && google.maps.event.removeListener(f), b && google.maps.event.removeListener(b), D && google.maps.event.removeListener(D), A && google.maps.event.removeListener(A), j && google.maps.event.removeListener(j), h && h(g), g.close());
|
|
3241
3241
|
};
|
|
3242
3242
|
}, []), S.current ? Yn(At.only(e), S.current) : null;
|
|
3243
3243
|
}
|
|
@@ -3625,16 +3625,16 @@ class ah {
|
|
|
3625
3625
|
u[D + Zt] > r && (f += u[D + Nt]);
|
|
3626
3626
|
}
|
|
3627
3627
|
if (f > v && f >= s) {
|
|
3628
|
-
var w = h * v,
|
|
3628
|
+
var w = h * v, b = m * v, B = void 0, A = -1, O = ((d / c | 0) << 5) + (r + 1) + this.points.length;
|
|
3629
3629
|
for (var j of g) {
|
|
3630
3630
|
var P = j * c;
|
|
3631
3631
|
if (!(u[P + Zt] <= r)) {
|
|
3632
3632
|
u[P + Zt] = r;
|
|
3633
3633
|
var S = u[P + Nt];
|
|
3634
|
-
w += u[P] * S,
|
|
3634
|
+
w += u[P] * S, b += u[P + 1] * S, u[P + yi] = O, a && (B || (B = this._map(u, d, !0), A = this.clusterProps.length, this.clusterProps.push(B)), a(B, this._map(u, P)));
|
|
3635
3635
|
}
|
|
3636
3636
|
}
|
|
3637
|
-
u[d + yi] = O, l.push(w / f,
|
|
3637
|
+
u[d + yi] = O, l.push(w / f, b / f, 1 / 0, O, -1, f), a && l.push(A);
|
|
3638
3638
|
} else {
|
|
3639
3639
|
for (var M = 0; M < c; M++) l.push(u[d + M]);
|
|
3640
3640
|
if (f > 1)
|
|
@@ -4098,7 +4098,7 @@ function Os(t) {
|
|
|
4098
4098
|
}
|
|
4099
4099
|
function mh(t) {
|
|
4100
4100
|
var e = vd(), [r, n] = F(null);
|
|
4101
|
-
return
|
|
4101
|
+
return E(() => {
|
|
4102
4102
|
if (e && r === null) {
|
|
4103
4103
|
var i = new vh(Os(Os({}, t), {}, {
|
|
4104
4104
|
map: e
|
|
@@ -4146,29 +4146,29 @@ function Dh(t) {
|
|
|
4146
4146
|
onZindexChanged: c,
|
|
4147
4147
|
onLoad: d,
|
|
4148
4148
|
onUnmount: h
|
|
4149
|
-
} = t, m = Ae(pe), [g, v] = F(null), [f, y] = F(null), [D, w] = F(null), [
|
|
4150
|
-
return
|
|
4149
|
+
} = t, m = Ae(pe), [g, v] = F(null), [f, y] = F(null), [D, w] = F(null), [b, B] = F(null), [A, O] = F(null), [j, P] = F(null), S = me(null);
|
|
4150
|
+
return E(() => {
|
|
4151
4151
|
g !== null && (g.close(), r ? g.open(m, r) : g.getPosition() && g.open(m));
|
|
4152
|
-
}, [m, g, r]),
|
|
4152
|
+
}, [m, g, r]), E(() => {
|
|
4153
4153
|
n && g !== null && g.setOptions(n);
|
|
4154
|
-
}, [g, n]),
|
|
4154
|
+
}, [g, n]), E(() => {
|
|
4155
4155
|
i && g !== null && g.setPosition(i);
|
|
4156
|
-
}, [i]),
|
|
4156
|
+
}, [i]), E(() => {
|
|
4157
4157
|
typeof a == "number" && g !== null && g.setZIndex(a);
|
|
4158
|
-
}, [a]),
|
|
4158
|
+
}, [a]), E(() => {
|
|
4159
4159
|
g && s && (f !== null && google.maps.event.removeListener(f), y(google.maps.event.addListener(g, "closeclick", s)));
|
|
4160
|
-
}, [s]),
|
|
4160
|
+
}, [s]), E(() => {
|
|
4161
4161
|
g && o && (D !== null && google.maps.event.removeListener(D), w(google.maps.event.addListener(g, "domready", o)));
|
|
4162
|
-
}, [o]),
|
|
4163
|
-
g && u && (
|
|
4164
|
-
}, [u]),
|
|
4162
|
+
}, [o]), E(() => {
|
|
4163
|
+
g && u && (b !== null && google.maps.event.removeListener(b), B(google.maps.event.addListener(g, "content_changed", u)));
|
|
4164
|
+
}, [u]), E(() => {
|
|
4165
4165
|
g && l && (A !== null && google.maps.event.removeListener(A), O(google.maps.event.addListener(g, "position_changed", l)));
|
|
4166
|
-
}, [l]),
|
|
4166
|
+
}, [l]), E(() => {
|
|
4167
4167
|
g && c && (j !== null && google.maps.event.removeListener(j), P(google.maps.event.addListener(g, "zindex_changed", c)));
|
|
4168
|
-
}, [c]),
|
|
4168
|
+
}, [c]), E(() => {
|
|
4169
4169
|
var M = new google.maps.InfoWindow(n);
|
|
4170
4170
|
return v(M), S.current = document.createElement("div"), s && y(google.maps.event.addListener(M, "closeclick", s)), o && w(google.maps.event.addListener(M, "domready", o)), u && B(google.maps.event.addListener(M, "content_changed", u)), l && O(google.maps.event.addListener(M, "position_changed", l)), c && P(google.maps.event.addListener(M, "zindex_changed", c)), M.setContent(S.current), i && M.setPosition(i), a && M.setZIndex(a), r ? M.open(m, r) : M.getPosition() ? M.open(m) : $e(!1, "You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."), d && d(M), () => {
|
|
4171
|
-
f && google.maps.event.removeListener(f),
|
|
4171
|
+
f && google.maps.event.removeListener(f), b && google.maps.event.removeListener(b), D && google.maps.event.removeListener(D), A && google.maps.event.removeListener(A), j && google.maps.event.removeListener(j), h && h(M), M.close();
|
|
4172
4172
|
};
|
|
4173
4173
|
}, []), S.current ? Yn(At.only(e), S.current) : null;
|
|
4174
4174
|
}
|
|
@@ -4285,42 +4285,42 @@ function Eh(t) {
|
|
|
4285
4285
|
onDrag: f,
|
|
4286
4286
|
onLoad: y,
|
|
4287
4287
|
onUnmount: D
|
|
4288
|
-
} = t, w = Ae(pe), [
|
|
4289
|
-
return
|
|
4290
|
-
|
|
4291
|
-
}, [w]),
|
|
4292
|
-
typeof e < "u" &&
|
|
4293
|
-
}, [
|
|
4294
|
-
typeof r < "u" &&
|
|
4295
|
-
}, [
|
|
4296
|
-
typeof n < "u" &&
|
|
4297
|
-
}, [
|
|
4298
|
-
typeof i < "u" &&
|
|
4299
|
-
}, [
|
|
4300
|
-
typeof a < "u" &&
|
|
4301
|
-
}, [
|
|
4302
|
-
|
|
4303
|
-
}, [s]),
|
|
4304
|
-
|
|
4305
|
-
}, [o]),
|
|
4306
|
-
|
|
4307
|
-
}, [u]),
|
|
4308
|
-
|
|
4309
|
-
}, [l]),
|
|
4310
|
-
|
|
4311
|
-
}, [c]),
|
|
4312
|
-
|
|
4313
|
-
}, [d]),
|
|
4314
|
-
|
|
4315
|
-
}, [h]),
|
|
4316
|
-
|
|
4317
|
-
}, [m]),
|
|
4318
|
-
|
|
4319
|
-
}, [g]),
|
|
4320
|
-
|
|
4321
|
-
}, [v]),
|
|
4322
|
-
|
|
4323
|
-
}, [f]),
|
|
4288
|
+
} = t, w = Ae(pe), [b, B] = F(null), [A, O] = F(null), [j, P] = F(null), [S, M] = F(null), [k, R] = F(null), [I, N] = F(null), [K, z] = F(null), [Q, V] = F(null), [G, ee] = F(null), [re, X] = F(null), [oe, T] = F(null), [x, U] = F(null);
|
|
4289
|
+
return E(() => {
|
|
4290
|
+
b !== null && b.setMap(w);
|
|
4291
|
+
}, [w]), E(() => {
|
|
4292
|
+
typeof e < "u" && b !== null && b.setOptions(e);
|
|
4293
|
+
}, [b, e]), E(() => {
|
|
4294
|
+
typeof r < "u" && b !== null && b.setDraggable(r);
|
|
4295
|
+
}, [b, r]), E(() => {
|
|
4296
|
+
typeof n < "u" && b !== null && b.setEditable(n);
|
|
4297
|
+
}, [b, n]), E(() => {
|
|
4298
|
+
typeof i < "u" && b !== null && b.setVisible(i);
|
|
4299
|
+
}, [b, i]), E(() => {
|
|
4300
|
+
typeof a < "u" && b !== null && b.setPath(a);
|
|
4301
|
+
}, [b, a]), E(() => {
|
|
4302
|
+
b && s && (A !== null && google.maps.event.removeListener(A), O(google.maps.event.addListener(b, "dblclick", s)));
|
|
4303
|
+
}, [s]), E(() => {
|
|
4304
|
+
b && o && (j !== null && google.maps.event.removeListener(j), P(google.maps.event.addListener(b, "dragend", o)));
|
|
4305
|
+
}, [o]), E(() => {
|
|
4306
|
+
b && u && (S !== null && google.maps.event.removeListener(S), M(google.maps.event.addListener(b, "dragstart", u)));
|
|
4307
|
+
}, [u]), E(() => {
|
|
4308
|
+
b && l && (k !== null && google.maps.event.removeListener(k), R(google.maps.event.addListener(b, "mousedown", l)));
|
|
4309
|
+
}, [l]), E(() => {
|
|
4310
|
+
b && c && (I !== null && google.maps.event.removeListener(I), N(google.maps.event.addListener(b, "mousemove", c)));
|
|
4311
|
+
}, [c]), E(() => {
|
|
4312
|
+
b && d && (K !== null && google.maps.event.removeListener(K), z(google.maps.event.addListener(b, "mouseout", d)));
|
|
4313
|
+
}, [d]), E(() => {
|
|
4314
|
+
b && h && (Q !== null && google.maps.event.removeListener(Q), V(google.maps.event.addListener(b, "mouseover", h)));
|
|
4315
|
+
}, [h]), E(() => {
|
|
4316
|
+
b && m && (G !== null && google.maps.event.removeListener(G), ee(google.maps.event.addListener(b, "mouseup", m)));
|
|
4317
|
+
}, [m]), E(() => {
|
|
4318
|
+
b && g && (re !== null && google.maps.event.removeListener(re), X(google.maps.event.addListener(b, "rightclick", g)));
|
|
4319
|
+
}, [g]), E(() => {
|
|
4320
|
+
b && v && (oe !== null && google.maps.event.removeListener(oe), T(google.maps.event.addListener(b, "click", v)));
|
|
4321
|
+
}, [v]), E(() => {
|
|
4322
|
+
b && f && (x !== null && google.maps.event.removeListener(x), U(google.maps.event.addListener(b, "drag", f)));
|
|
4323
|
+
}, [f]), E(() => {
|
|
4324
4324
|
var $ = new google.maps.Polyline(Rn(Rn({}, e || bh), {}, {
|
|
4325
4325
|
map: w
|
|
4326
4326
|
}));
|
|
@@ -4448,53 +4448,53 @@ function Bh(t) {
|
|
|
4448
4448
|
onDrag: y,
|
|
4449
4449
|
onLoad: D,
|
|
4450
4450
|
onUnmount: w,
|
|
4451
|
-
onEdit:
|
|
4451
|
+
onEdit: b
|
|
4452
4452
|
} = t, B = Ae(pe), [A, O] = F(null), [j, P] = F(null), [S, M] = F(null), [k, R] = F(null), [I, N] = F(null), [K, z] = F(null), [Q, V] = F(null), [G, ee] = F(null), [re, X] = F(null), [oe, T] = F(null), [x, U] = F(null), [$, q] = F(null);
|
|
4453
|
-
return
|
|
4453
|
+
return E(() => {
|
|
4454
4454
|
A !== null && A.setMap(B);
|
|
4455
|
-
}, [B]),
|
|
4455
|
+
}, [B]), E(() => {
|
|
4456
4456
|
typeof e < "u" && A !== null && A.setOptions(e);
|
|
4457
|
-
}, [A, e]),
|
|
4457
|
+
}, [A, e]), E(() => {
|
|
4458
4458
|
typeof r < "u" && A !== null && A.setDraggable(r);
|
|
4459
|
-
}, [A, r]),
|
|
4459
|
+
}, [A, r]), E(() => {
|
|
4460
4460
|
typeof n < "u" && A !== null && A.setEditable(n);
|
|
4461
|
-
}, [A, n]),
|
|
4461
|
+
}, [A, n]), E(() => {
|
|
4462
4462
|
typeof i < "u" && A !== null && A.setVisible(i);
|
|
4463
|
-
}, [A, i]),
|
|
4463
|
+
}, [A, i]), E(() => {
|
|
4464
4464
|
typeof a < "u" && A !== null && A.setPath(a);
|
|
4465
|
-
}, [A, a]),
|
|
4465
|
+
}, [A, a]), E(() => {
|
|
4466
4466
|
typeof s < "u" && A !== null && A.setPaths(s);
|
|
4467
|
-
}, [A, s]),
|
|
4467
|
+
}, [A, s]), E(() => {
|
|
4468
4468
|
A && typeof o == "function" && (j !== null && google.maps.event.removeListener(j), P(google.maps.event.addListener(A, "dblclick", o)));
|
|
4469
|
-
}, [o]),
|
|
4469
|
+
}, [o]), E(() => {
|
|
4470
4470
|
A && (google.maps.event.addListener(A.getPath(), "insert_at", () => {
|
|
4471
|
-
|
|
4471
|
+
b == null || b(A);
|
|
4472
4472
|
}), google.maps.event.addListener(A.getPath(), "set_at", () => {
|
|
4473
|
-
|
|
4473
|
+
b == null || b(A);
|
|
4474
4474
|
}), google.maps.event.addListener(A.getPath(), "remove_at", () => {
|
|
4475
|
-
|
|
4475
|
+
b == null || b(A);
|
|
4476
4476
|
}));
|
|
4477
|
-
}, [A,
|
|
4477
|
+
}, [A, b]), E(() => {
|
|
4478
4478
|
A && typeof u == "function" && (S !== null && google.maps.event.removeListener(S), M(google.maps.event.addListener(A, "dragend", u)));
|
|
4479
|
-
}, [u]),
|
|
4479
|
+
}, [u]), E(() => {
|
|
4480
4480
|
A && typeof l == "function" && (k !== null && google.maps.event.removeListener(k), R(google.maps.event.addListener(A, "dragstart", l)));
|
|
4481
|
-
}, [l]),
|
|
4481
|
+
}, [l]), E(() => {
|
|
4482
4482
|
A && typeof c == "function" && (I !== null && google.maps.event.removeListener(I), N(google.maps.event.addListener(A, "mousedown", c)));
|
|
4483
|
-
}, [c]),
|
|
4483
|
+
}, [c]), E(() => {
|
|
4484
4484
|
A && typeof d == "function" && (K !== null && google.maps.event.removeListener(K), z(google.maps.event.addListener(A, "mousemove", d)));
|
|
4485
|
-
}, [d]),
|
|
4485
|
+
}, [d]), E(() => {
|
|
4486
4486
|
A && typeof h == "function" && (Q !== null && google.maps.event.removeListener(Q), V(google.maps.event.addListener(A, "mouseout", h)));
|
|
4487
|
-
}, [h]),
|
|
4487
|
+
}, [h]), E(() => {
|
|
4488
4488
|
A && typeof m == "function" && (G !== null && google.maps.event.removeListener(G), ee(google.maps.event.addListener(A, "mouseover", m)));
|
|
4489
|
-
}, [m]),
|
|
4489
|
+
}, [m]), E(() => {
|
|
4490
4490
|
A && typeof g == "function" && (re !== null && google.maps.event.removeListener(re), X(google.maps.event.addListener(A, "mouseup", g)));
|
|
4491
|
-
}, [g]),
|
|
4491
|
+
}, [g]), E(() => {
|
|
4492
4492
|
A && typeof v == "function" && (oe !== null && google.maps.event.removeListener(oe), T(google.maps.event.addListener(A, "rightclick", v)));
|
|
4493
|
-
}, [v]),
|
|
4493
|
+
}, [v]), E(() => {
|
|
4494
4494
|
A && typeof f == "function" && (x !== null && google.maps.event.removeListener(x), U(google.maps.event.addListener(A, "click", f)));
|
|
4495
|
-
}, [f]),
|
|
4495
|
+
}, [f]), E(() => {
|
|
4496
4496
|
A && typeof y == "function" && ($ !== null && google.maps.event.removeListener($), q(google.maps.event.addListener(A, "drag", y)));
|
|
4497
|
-
}, [y]),
|
|
4497
|
+
}, [y]), E(() => {
|
|
4498
4498
|
var J = new google.maps.Polygon(ks(ks({}, e), {}, {
|
|
4499
4499
|
map: B
|
|
4500
4500
|
}));
|
|
@@ -4610,46 +4610,46 @@ function Oh(t) {
|
|
|
4610
4610
|
onBoundsChanged: y,
|
|
4611
4611
|
onLoad: D,
|
|
4612
4612
|
onUnmount: w
|
|
4613
|
-
} = t,
|
|
4614
|
-
return
|
|
4615
|
-
B !== null && B.setMap(
|
|
4616
|
-
}, [
|
|
4613
|
+
} = t, b = Ae(pe), [B, A] = F(null), [O, j] = F(null), [P, S] = F(null), [M, k] = F(null), [R, I] = F(null), [N, K] = F(null), [z, Q] = F(null), [V, G] = F(null), [ee, re] = F(null), [X, oe] = F(null), [T, x] = F(null), [U, $] = F(null), [q, J] = F(null);
|
|
4614
|
+
return E(() => {
|
|
4615
|
+
B !== null && B.setMap(b);
|
|
4616
|
+
}, [b]), E(() => {
|
|
4617
4617
|
typeof e < "u" && B !== null && B.setOptions(e);
|
|
4618
|
-
}, [B, e]),
|
|
4618
|
+
}, [B, e]), E(() => {
|
|
4619
4619
|
typeof n < "u" && B !== null && B.setDraggable(n);
|
|
4620
|
-
}, [B, n]),
|
|
4620
|
+
}, [B, n]), E(() => {
|
|
4621
4621
|
typeof i < "u" && B !== null && B.setEditable(i);
|
|
4622
|
-
}, [B, i]),
|
|
4622
|
+
}, [B, i]), E(() => {
|
|
4623
4623
|
typeof a < "u" && B !== null && B.setVisible(a);
|
|
4624
|
-
}, [B, a]),
|
|
4624
|
+
}, [B, a]), E(() => {
|
|
4625
4625
|
typeof r < "u" && B !== null && B.setBounds(r);
|
|
4626
|
-
}, [B, r]),
|
|
4626
|
+
}, [B, r]), E(() => {
|
|
4627
4627
|
B && s && (O !== null && google.maps.event.removeListener(O), j(google.maps.event.addListener(B, "dblclick", s)));
|
|
4628
|
-
}, [s]),
|
|
4628
|
+
}, [s]), E(() => {
|
|
4629
4629
|
B && o && (P !== null && google.maps.event.removeListener(P), S(google.maps.event.addListener(B, "dragend", o)));
|
|
4630
|
-
}, [o]),
|
|
4630
|
+
}, [o]), E(() => {
|
|
4631
4631
|
B && u && (M !== null && google.maps.event.removeListener(M), k(google.maps.event.addListener(B, "dragstart", u)));
|
|
4632
|
-
}, [u]),
|
|
4632
|
+
}, [u]), E(() => {
|
|
4633
4633
|
B && l && (R !== null && google.maps.event.removeListener(R), I(google.maps.event.addListener(B, "mousedown", l)));
|
|
4634
|
-
}, [l]),
|
|
4634
|
+
}, [l]), E(() => {
|
|
4635
4635
|
B && c && (N !== null && google.maps.event.removeListener(N), K(google.maps.event.addListener(B, "mousemove", c)));
|
|
4636
|
-
}, [c]),
|
|
4636
|
+
}, [c]), E(() => {
|
|
4637
4637
|
B && d && (z !== null && google.maps.event.removeListener(z), Q(google.maps.event.addListener(B, "mouseout", d)));
|
|
4638
|
-
}, [d]),
|
|
4638
|
+
}, [d]), E(() => {
|
|
4639
4639
|
B && h && (V !== null && google.maps.event.removeListener(V), G(google.maps.event.addListener(B, "mouseover", h)));
|
|
4640
|
-
}, [h]),
|
|
4640
|
+
}, [h]), E(() => {
|
|
4641
4641
|
B && m && (ee !== null && google.maps.event.removeListener(ee), re(google.maps.event.addListener(B, "mouseup", m)));
|
|
4642
|
-
}, [m]),
|
|
4642
|
+
}, [m]), E(() => {
|
|
4643
4643
|
B && g && (X !== null && google.maps.event.removeListener(X), oe(google.maps.event.addListener(B, "rightclick", g)));
|
|
4644
|
-
}, [g]),
|
|
4644
|
+
}, [g]), E(() => {
|
|
4645
4645
|
B && v && (T !== null && google.maps.event.removeListener(T), x(google.maps.event.addListener(B, "click", v)));
|
|
4646
|
-
}, [v]),
|
|
4646
|
+
}, [v]), E(() => {
|
|
4647
4647
|
B && f && (U !== null && google.maps.event.removeListener(U), $(google.maps.event.addListener(B, "drag", f)));
|
|
4648
|
-
}, [f]),
|
|
4648
|
+
}, [f]), E(() => {
|
|
4649
4649
|
B && y && (q !== null && google.maps.event.removeListener(q), J(google.maps.event.addListener(B, "bounds_changed", y)));
|
|
4650
|
-
}, [y]),
|
|
4650
|
+
}, [y]), E(() => {
|
|
4651
4651
|
var Y = new google.maps.Rectangle(jn(jn({}, e), {}, {
|
|
4652
|
-
map:
|
|
4652
|
+
map: b
|
|
4653
4653
|
}));
|
|
4654
4654
|
return typeof a < "u" && Y.setVisible(a), typeof i < "u" && Y.setEditable(i), typeof n < "u" && Y.setDraggable(n), typeof r < "u" && Y.setBounds(r), s && j(google.maps.event.addListener(Y, "dblclick", s)), o && S(google.maps.event.addListener(Y, "dragend", o)), u && k(google.maps.event.addListener(Y, "dragstart", u)), l && I(google.maps.event.addListener(Y, "mousedown", l)), c && K(google.maps.event.addListener(Y, "mousemove", c)), d && Q(google.maps.event.addListener(Y, "mouseout", d)), h && G(google.maps.event.addListener(Y, "mouseover", h)), m && re(google.maps.event.addListener(Y, "mouseup", m)), g && oe(google.maps.event.addListener(Y, "rightclick", g)), v && x(google.maps.event.addListener(Y, "click", v)), f && $(google.maps.event.addListener(Y, "drag", f)), y && J(google.maps.event.addListener(Y, "bounds_changed", y)), A(Y), D && D(Y), () => {
|
|
4655
4655
|
O !== null && google.maps.event.removeListener(O), P !== null && google.maps.event.removeListener(P), M !== null && google.maps.event.removeListener(M), R !== null && google.maps.event.removeListener(R), N !== null && google.maps.event.removeListener(N), z !== null && google.maps.event.removeListener(z), V !== null && google.maps.event.removeListener(V), ee !== null && google.maps.event.removeListener(ee), X !== null && google.maps.event.removeListener(X), T !== null && google.maps.event.removeListener(T), U !== null && google.maps.event.removeListener(U), q !== null && google.maps.event.removeListener(q), w && w(Y), Y.setMap(null);
|
|
@@ -4777,54 +4777,54 @@ function Fh(t) {
|
|
|
4777
4777
|
onDrag: y,
|
|
4778
4778
|
onCenterChanged: D,
|
|
4779
4779
|
onRadiusChanged: w,
|
|
4780
|
-
onLoad:
|
|
4780
|
+
onLoad: b,
|
|
4781
4781
|
onUnmount: B
|
|
4782
4782
|
} = t, A = Ae(pe), [O, j] = F(null), [P, S] = F(null), [M, k] = F(null), [R, I] = F(null), [N, K] = F(null), [z, Q] = F(null), [V, G] = F(null), [ee, re] = F(null), [X, oe] = F(null), [T, x] = F(null), [U, $] = F(null), [q, J] = F(null), [Y, ie] = F(null), [ue, le] = F(null);
|
|
4783
|
-
return
|
|
4783
|
+
return E(() => {
|
|
4784
4784
|
O !== null && O.setMap(A);
|
|
4785
|
-
}, [A]),
|
|
4785
|
+
}, [A]), E(() => {
|
|
4786
4786
|
typeof e < "u" && O !== null && O.setOptions(e);
|
|
4787
|
-
}, [O, e]),
|
|
4787
|
+
}, [O, e]), E(() => {
|
|
4788
4788
|
typeof i < "u" && O !== null && O.setDraggable(i);
|
|
4789
|
-
}, [O, i]),
|
|
4789
|
+
}, [O, i]), E(() => {
|
|
4790
4790
|
typeof a < "u" && O !== null && O.setEditable(a);
|
|
4791
|
-
}, [O, a]),
|
|
4791
|
+
}, [O, a]), E(() => {
|
|
4792
4792
|
typeof s < "u" && O !== null && O.setVisible(s);
|
|
4793
|
-
}, [O, s]),
|
|
4793
|
+
}, [O, s]), E(() => {
|
|
4794
4794
|
typeof n == "number" && O !== null && O.setRadius(n);
|
|
4795
|
-
}, [O, n]),
|
|
4795
|
+
}, [O, n]), E(() => {
|
|
4796
4796
|
typeof r < "u" && O !== null && O.setCenter(r);
|
|
4797
|
-
}, [O, r]),
|
|
4797
|
+
}, [O, r]), E(() => {
|
|
4798
4798
|
O && o && (P !== null && google.maps.event.removeListener(P), S(google.maps.event.addListener(O, "dblclick", o)));
|
|
4799
|
-
}, [o]),
|
|
4799
|
+
}, [o]), E(() => {
|
|
4800
4800
|
O && u && (M !== null && google.maps.event.removeListener(M), k(google.maps.event.addListener(O, "dragend", u)));
|
|
4801
|
-
}, [u]),
|
|
4801
|
+
}, [u]), E(() => {
|
|
4802
4802
|
O && l && (R !== null && google.maps.event.removeListener(R), I(google.maps.event.addListener(O, "dragstart", l)));
|
|
4803
|
-
}, [l]),
|
|
4803
|
+
}, [l]), E(() => {
|
|
4804
4804
|
O && c && (N !== null && google.maps.event.removeListener(N), K(google.maps.event.addListener(O, "mousedown", c)));
|
|
4805
|
-
}, [c]),
|
|
4805
|
+
}, [c]), E(() => {
|
|
4806
4806
|
O && d && (z !== null && google.maps.event.removeListener(z), Q(google.maps.event.addListener(O, "mousemove", d)));
|
|
4807
|
-
}, [d]),
|
|
4807
|
+
}, [d]), E(() => {
|
|
4808
4808
|
O && h && (V !== null && google.maps.event.removeListener(V), G(google.maps.event.addListener(O, "mouseout", h)));
|
|
4809
|
-
}, [h]),
|
|
4809
|
+
}, [h]), E(() => {
|
|
4810
4810
|
O && m && (ee !== null && google.maps.event.removeListener(ee), re(google.maps.event.addListener(O, "mouseover", m)));
|
|
4811
|
-
}, [m]),
|
|
4811
|
+
}, [m]), E(() => {
|
|
4812
4812
|
O && g && (X !== null && google.maps.event.removeListener(X), oe(google.maps.event.addListener(O, "mouseup", g)));
|
|
4813
|
-
}, [g]),
|
|
4813
|
+
}, [g]), E(() => {
|
|
4814
4814
|
O && v && (T !== null && google.maps.event.removeListener(T), x(google.maps.event.addListener(O, "rightclick", v)));
|
|
4815
|
-
}, [v]),
|
|
4815
|
+
}, [v]), E(() => {
|
|
4816
4816
|
O && f && (U !== null && google.maps.event.removeListener(U), $(google.maps.event.addListener(O, "click", f)));
|
|
4817
|
-
}, [f]),
|
|
4817
|
+
}, [f]), E(() => {
|
|
4818
4818
|
O && y && (q !== null && google.maps.event.removeListener(q), J(google.maps.event.addListener(O, "drag", y)));
|
|
4819
|
-
}, [y]),
|
|
4819
|
+
}, [y]), E(() => {
|
|
4820
4820
|
O && D && (Y !== null && google.maps.event.removeListener(Y), ie(google.maps.event.addListener(O, "center_changed", D)));
|
|
4821
|
-
}, [f]),
|
|
4821
|
+
}, [f]), E(() => {
|
|
4822
4822
|
O && w && (ue !== null && google.maps.event.removeListener(ue), le(google.maps.event.addListener(O, "radius_changed", w)));
|
|
4823
|
-
}, [w]),
|
|
4823
|
+
}, [w]), E(() => {
|
|
4824
4824
|
var ce = new google.maps.Circle($n($n({}, e || xh), {}, {
|
|
4825
4825
|
map: A
|
|
4826
4826
|
}));
|
|
4827
|
-
return typeof n == "number" && ce.setRadius(n), typeof r < "u" && ce.setCenter(r), typeof n == "number" && ce.setRadius(n), typeof s < "u" && ce.setVisible(s), typeof a < "u" && ce.setEditable(a), typeof i < "u" && ce.setDraggable(i), o && S(google.maps.event.addListener(ce, "dblclick", o)), u && k(google.maps.event.addListener(ce, "dragend", u)), l && I(google.maps.event.addListener(ce, "dragstart", l)), c && K(google.maps.event.addListener(ce, "mousedown", c)), d && Q(google.maps.event.addListener(ce, "mousemove", d)), h && G(google.maps.event.addListener(ce, "mouseout", h)), m && re(google.maps.event.addListener(ce, "mouseover", m)), g && oe(google.maps.event.addListener(ce, "mouseup", g)), v && x(google.maps.event.addListener(ce, "rightclick", v)), f && $(google.maps.event.addListener(ce, "click", f)), y && J(google.maps.event.addListener(ce, "drag", y)), D && ie(google.maps.event.addListener(ce, "center_changed", D)), w && le(google.maps.event.addListener(ce, "radius_changed", w)), j(ce),
|
|
4827
|
+
return typeof n == "number" && ce.setRadius(n), typeof r < "u" && ce.setCenter(r), typeof n == "number" && ce.setRadius(n), typeof s < "u" && ce.setVisible(s), typeof a < "u" && ce.setEditable(a), typeof i < "u" && ce.setDraggable(i), o && S(google.maps.event.addListener(ce, "dblclick", o)), u && k(google.maps.event.addListener(ce, "dragend", u)), l && I(google.maps.event.addListener(ce, "dragstart", l)), c && K(google.maps.event.addListener(ce, "mousedown", c)), d && Q(google.maps.event.addListener(ce, "mousemove", d)), h && G(google.maps.event.addListener(ce, "mouseout", h)), m && re(google.maps.event.addListener(ce, "mouseover", m)), g && oe(google.maps.event.addListener(ce, "mouseup", g)), v && x(google.maps.event.addListener(ce, "rightclick", v)), f && $(google.maps.event.addListener(ce, "click", f)), y && J(google.maps.event.addListener(ce, "drag", y)), D && ie(google.maps.event.addListener(ce, "center_changed", D)), w && le(google.maps.event.addListener(ce, "radius_changed", w)), j(ce), b && b(ce), () => {
|
|
4828
4828
|
P !== null && google.maps.event.removeListener(P), M !== null && google.maps.event.removeListener(M), R !== null && google.maps.event.removeListener(R), N !== null && google.maps.event.removeListener(N), z !== null && google.maps.event.removeListener(z), V !== null && google.maps.event.removeListener(V), ee !== null && google.maps.event.removeListener(ee), X !== null && google.maps.event.removeListener(X), T !== null && google.maps.event.removeListener(T), U !== null && google.maps.event.removeListener(U), Y !== null && google.maps.event.removeListener(Y), ue !== null && google.maps.event.removeListener(ue), B && B(ce), ce.setMap(null);
|
|
4829
4829
|
};
|
|
4830
4830
|
}, []), null;
|
|
@@ -4970,36 +4970,36 @@ function Sh(t) {
|
|
|
4970
4970
|
onSetProperty: g,
|
|
4971
4971
|
onLoad: v,
|
|
4972
4972
|
onUnmount: f
|
|
4973
|
-
} = t, y = Ae(pe), [D, w] = F(null), [
|
|
4974
|
-
return
|
|
4973
|
+
} = t, y = Ae(pe), [D, w] = F(null), [b, B] = F(null), [A, O] = F(null), [j, P] = F(null), [S, M] = F(null), [k, R] = F(null), [I, N] = F(null), [K, z] = F(null), [Q, V] = F(null), [G, ee] = F(null), [re, X] = F(null), [oe, T] = F(null), [x, U] = F(null), [$, q] = F(null);
|
|
4974
|
+
return E(() => {
|
|
4975
4975
|
D !== null && D.setMap(y);
|
|
4976
|
-
}, [y]),
|
|
4977
|
-
D && n && (
|
|
4978
|
-
}, [n]),
|
|
4976
|
+
}, [y]), E(() => {
|
|
4977
|
+
D && n && (b !== null && google.maps.event.removeListener(b), B(google.maps.event.addListener(D, "dblclick", n)));
|
|
4978
|
+
}, [n]), E(() => {
|
|
4979
4979
|
D && i && (A !== null && google.maps.event.removeListener(A), O(google.maps.event.addListener(D, "mousedown", i)));
|
|
4980
|
-
}, [i]),
|
|
4980
|
+
}, [i]), E(() => {
|
|
4981
4981
|
D && a && (j !== null && google.maps.event.removeListener(j), P(google.maps.event.addListener(D, "mousemove", a)));
|
|
4982
|
-
}, [a]),
|
|
4982
|
+
}, [a]), E(() => {
|
|
4983
4983
|
D && s && (S !== null && google.maps.event.removeListener(S), M(google.maps.event.addListener(D, "mouseout", s)));
|
|
4984
|
-
}, [s]),
|
|
4984
|
+
}, [s]), E(() => {
|
|
4985
4985
|
D && o && (k !== null && google.maps.event.removeListener(k), R(google.maps.event.addListener(D, "mouseover", o)));
|
|
4986
|
-
}, [o]),
|
|
4986
|
+
}, [o]), E(() => {
|
|
4987
4987
|
D && u && (I !== null && google.maps.event.removeListener(I), N(google.maps.event.addListener(D, "mouseup", u)));
|
|
4988
|
-
}, [u]),
|
|
4988
|
+
}, [u]), E(() => {
|
|
4989
4989
|
D && l && (K !== null && google.maps.event.removeListener(K), z(google.maps.event.addListener(D, "rightclick", l)));
|
|
4990
|
-
}, [l]),
|
|
4990
|
+
}, [l]), E(() => {
|
|
4991
4991
|
D && r && (Q !== null && google.maps.event.removeListener(Q), V(google.maps.event.addListener(D, "click", r)));
|
|
4992
|
-
}, [r]),
|
|
4992
|
+
}, [r]), E(() => {
|
|
4993
4993
|
D && c && (G !== null && google.maps.event.removeListener(G), ee(google.maps.event.addListener(D, "addfeature", c)));
|
|
4994
|
-
}, [c]),
|
|
4994
|
+
}, [c]), E(() => {
|
|
4995
4995
|
D && d && (re !== null && google.maps.event.removeListener(re), X(google.maps.event.addListener(D, "removefeature", d)));
|
|
4996
|
-
}, [d]),
|
|
4996
|
+
}, [d]), E(() => {
|
|
4997
4997
|
D && h && (oe !== null && google.maps.event.removeListener(oe), T(google.maps.event.addListener(D, "removeproperty", h)));
|
|
4998
|
-
}, [h]),
|
|
4998
|
+
}, [h]), E(() => {
|
|
4999
4999
|
D && m && (x !== null && google.maps.event.removeListener(x), U(google.maps.event.addListener(D, "setgeometry", m)));
|
|
5000
|
-
}, [m]),
|
|
5000
|
+
}, [m]), E(() => {
|
|
5001
5001
|
D && g && ($ !== null && google.maps.event.removeListener($), q(google.maps.event.addListener(D, "setproperty", g)));
|
|
5002
|
-
}, [g]),
|
|
5002
|
+
}, [g]), E(() => {
|
|
5003
5003
|
if (y !== null) {
|
|
5004
5004
|
var J = new google.maps.Data(zn(zn({}, e), {}, {
|
|
5005
5005
|
map: y
|
|
@@ -5007,7 +5007,7 @@ function Sh(t) {
|
|
|
5007
5007
|
n && B(google.maps.event.addListener(J, "dblclick", n)), i && O(google.maps.event.addListener(J, "mousedown", i)), a && P(google.maps.event.addListener(J, "mousemove", a)), s && M(google.maps.event.addListener(J, "mouseout", s)), o && R(google.maps.event.addListener(J, "mouseover", o)), u && N(google.maps.event.addListener(J, "mouseup", u)), l && z(google.maps.event.addListener(J, "rightclick", l)), r && V(google.maps.event.addListener(J, "click", r)), c && ee(google.maps.event.addListener(J, "addfeature", c)), d && X(google.maps.event.addListener(J, "removefeature", d)), h && T(google.maps.event.addListener(J, "removeproperty", h)), m && U(google.maps.event.addListener(J, "setgeometry", m)), g && q(google.maps.event.addListener(J, "setproperty", g)), w(J), v && v(J);
|
|
5008
5008
|
}
|
|
5009
5009
|
return () => {
|
|
5010
|
-
D && (
|
|
5010
|
+
D && (b !== null && google.maps.event.removeListener(b), A !== null && google.maps.event.removeListener(A), j !== null && google.maps.event.removeListener(j), S !== null && google.maps.event.removeListener(S), k !== null && google.maps.event.removeListener(k), I !== null && google.maps.event.removeListener(I), K !== null && google.maps.event.removeListener(K), Q !== null && google.maps.event.removeListener(Q), G !== null && google.maps.event.removeListener(G), re !== null && google.maps.event.removeListener(re), oe !== null && google.maps.event.removeListener(oe), x !== null && google.maps.event.removeListener(x), $ !== null && google.maps.event.removeListener($), f && f(D), D.setMap(null));
|
|
5011
5011
|
};
|
|
5012
5012
|
}, []), null;
|
|
5013
5013
|
}
|
|
@@ -5274,9 +5274,9 @@ function Hh(t) {
|
|
|
5274
5274
|
var h = document.createElement("div");
|
|
5275
5275
|
return h.style.position = "absolute", h;
|
|
5276
5276
|
}, []), d = Pt(() => Uh(c, n, e, r, o), [c, n, e, r]);
|
|
5277
|
-
return
|
|
5277
|
+
return E(() => (a == null || a(d), d == null || d.setMap(l), () => {
|
|
5278
5278
|
s == null || s(d), d == null || d.setMap(null);
|
|
5279
|
-
}), [l, d]),
|
|
5279
|
+
}), [l, d]), E(() => {
|
|
5280
5280
|
c.style.zIndex = "".concat(i);
|
|
5281
5281
|
}, [i, c]), ol.createPortal(u, c);
|
|
5282
5282
|
}
|
|
@@ -5403,13 +5403,13 @@ function Gh(t) {
|
|
|
5403
5403
|
options: n,
|
|
5404
5404
|
visible: i
|
|
5405
5405
|
} = t, a = Ae(pe), s = new google.maps.LatLngBounds(new google.maps.LatLng(r.south, r.west), new google.maps.LatLng(r.north, r.east)), o = Pt(() => new google.maps.GroundOverlay(e, s, n), []);
|
|
5406
|
-
return
|
|
5406
|
+
return E(() => {
|
|
5407
5407
|
o !== null && o.setMap(a);
|
|
5408
|
-
}, [a]),
|
|
5408
|
+
}, [a]), E(() => {
|
|
5409
5409
|
typeof e < "u" && o !== null && (o.set("url", e), o.setMap(a));
|
|
5410
|
-
}, [o, e]),
|
|
5410
|
+
}, [o, e]), E(() => {
|
|
5411
5411
|
typeof i < "u" && o !== null && o.setOpacity(i ? 1 : 0);
|
|
5412
|
-
}, [o, i]),
|
|
5412
|
+
}, [o, i]), E(() => {
|
|
5413
5413
|
var u = new google.maps.LatLngBounds(new google.maps.LatLng(r.south, r.west), new google.maps.LatLng(r.north, r.east));
|
|
5414
5414
|
typeof r < "u" && o !== null && (o.set("bounds", u), o.setMap(a));
|
|
5415
5415
|
}, [o, r]), null;
|
|
@@ -5499,15 +5499,15 @@ function qh(t) {
|
|
|
5499
5499
|
onUnmount: n,
|
|
5500
5500
|
options: i
|
|
5501
5501
|
} = t, a = Ae(pe), [s, o] = F(null);
|
|
5502
|
-
return
|
|
5502
|
+
return E(() => {
|
|
5503
5503
|
google.maps.visualization || $e(!!google.maps.visualization, 'Did you include prop libraries={["visualization"]} in useJsApiScript? %s', google.maps.visualization);
|
|
5504
|
-
}, []),
|
|
5504
|
+
}, []), E(() => {
|
|
5505
5505
|
$e(!!e, "data property is required in HeatmapLayer %s", e);
|
|
5506
|
-
}, [e]),
|
|
5506
|
+
}, [e]), E(() => {
|
|
5507
5507
|
s !== null && s.setMap(a);
|
|
5508
|
-
}, [a]),
|
|
5508
|
+
}, [a]), E(() => {
|
|
5509
5509
|
i && s !== null && s.setOptions(i);
|
|
5510
|
-
}, [s, i]),
|
|
5510
|
+
}, [s, i]), E(() => {
|
|
5511
5511
|
var u = new google.maps.visualization.HeatmapLayer(_n(_n({}, i), {}, {
|
|
5512
5512
|
data: e,
|
|
5513
5513
|
map: a
|
|
@@ -5884,7 +5884,7 @@ function nE(t) {
|
|
|
5884
5884
|
onFocus: y,
|
|
5885
5885
|
onBlur: D,
|
|
5886
5886
|
errorMessage: w,
|
|
5887
|
-
defaultValue:
|
|
5887
|
+
defaultValue: b,
|
|
5888
5888
|
showAsterisk: B,
|
|
5889
5889
|
rightIcon: A,
|
|
5890
5890
|
size: O = "md",
|
|
@@ -5939,7 +5939,7 @@ function nE(t) {
|
|
|
5939
5939
|
readOnly: f,
|
|
5940
5940
|
id: K,
|
|
5941
5941
|
name: e,
|
|
5942
|
-
defaultValue:
|
|
5942
|
+
defaultValue: b || void 0,
|
|
5943
5943
|
placeholder: V && P || S,
|
|
5944
5944
|
value: V ? void 0 : P,
|
|
5945
5945
|
...M
|
|
@@ -6101,7 +6101,7 @@ function ug(t) {
|
|
|
6101
6101
|
}
|
|
6102
6102
|
function lg(t) {
|
|
6103
6103
|
const { children: e, isFocused: r, isSearchable: n, search: i, onSearch: a } = t, s = me(null), [o, u] = F("bottom");
|
|
6104
|
-
wr(r),
|
|
6104
|
+
wr(r), E(() => {
|
|
6105
6105
|
if (!r) return;
|
|
6106
6106
|
(() => {
|
|
6107
6107
|
if (!s.current) return;
|
|
@@ -6172,7 +6172,7 @@ function iE(t) {
|
|
|
6172
6172
|
onChange: y,
|
|
6173
6173
|
onBlur: D,
|
|
6174
6174
|
notFoundText: w = "Sem opções disponíveis",
|
|
6175
|
-
onFocus:
|
|
6175
|
+
onFocus: b,
|
|
6176
6176
|
disabled: B = !1,
|
|
6177
6177
|
prefix: A,
|
|
6178
6178
|
size: O = "md",
|
|
@@ -6187,7 +6187,7 @@ function iE(t) {
|
|
|
6187
6187
|
return (ue == null ? void 0 : ue.label) || "";
|
|
6188
6188
|
}
|
|
6189
6189
|
function U() {
|
|
6190
|
-
N || !(M != null && M.current) || G || (ee(!0), M.current.focus(),
|
|
6190
|
+
N || !(M != null && M.current) || G || (ee(!0), M.current.focus(), b && b());
|
|
6191
6191
|
}
|
|
6192
6192
|
function $() {
|
|
6193
6193
|
ee(!1), D && M.current && M.current.blur();
|
|
@@ -6518,7 +6518,7 @@ function yg(t) {
|
|
|
6518
6518
|
function l(c) {
|
|
6519
6519
|
n(c.target.value);
|
|
6520
6520
|
}
|
|
6521
|
-
return wr(r),
|
|
6521
|
+
return wr(r), E(() => {
|
|
6522
6522
|
if (!r) return;
|
|
6523
6523
|
(() => {
|
|
6524
6524
|
if (!s.current) return;
|
|
@@ -6578,7 +6578,7 @@ const Eg = Jr((t, e) => /* @__PURE__ */ C("input", { ref: e, ...t })), wg = Jr(
|
|
|
6578
6578
|
disabled: l,
|
|
6579
6579
|
id: c
|
|
6580
6580
|
} = t, [d, h] = F(!1);
|
|
6581
|
-
|
|
6581
|
+
E(() => {
|
|
6582
6582
|
d ? s(u.mask) : h(!0);
|
|
6583
6583
|
}, [u]);
|
|
6584
6584
|
const m = `phoneInputMask ${a}`;
|
|
@@ -6637,7 +6637,7 @@ function sE(t) {
|
|
|
6637
6637
|
searchCountryPlaceholder: g = "Pesquisar país",
|
|
6638
6638
|
notFoundCountryText: v = "Nenhum país encontrado",
|
|
6639
6639
|
id: f
|
|
6640
|
-
} = t, y = vg(l), [D, w] = F(!1), [
|
|
6640
|
+
} = t, y = vg(l), [D, w] = F(!1), [b, B] = F(""), [A, O] = F(!1), [j, P] = F(y.formattedNumber || ""), [S, M] = F(() => {
|
|
6641
6641
|
if (y.country) return y.country;
|
|
6642
6642
|
const U = gr.find(($) => $.iso === e);
|
|
6643
6643
|
return U || gr[30];
|
|
@@ -6658,7 +6658,7 @@ function sE(t) {
|
|
|
6658
6658
|
w(!1);
|
|
6659
6659
|
}
|
|
6660
6660
|
function oe(U) {
|
|
6661
|
-
return U.name.toLowerCase().includes(
|
|
6661
|
+
return U.name.toLowerCase().includes(b.toLowerCase());
|
|
6662
6662
|
}
|
|
6663
6663
|
function T(U) {
|
|
6664
6664
|
return S.prefix ? U.replace(S.prefix, "").replaceAll(" ", "").replaceAll("-", "").replaceAll("(", "").replaceAll(")", "").trim() : U.replaceAll(" ", "").replaceAll("-", "").replaceAll("(", "").replaceAll(")", "").trim();
|
|
@@ -6693,7 +6693,7 @@ function sE(t) {
|
|
|
6693
6693
|
yg,
|
|
6694
6694
|
{
|
|
6695
6695
|
isOpen: z || o ? !1 : A,
|
|
6696
|
-
search:
|
|
6696
|
+
search: b,
|
|
6697
6697
|
placeholder: g,
|
|
6698
6698
|
onSearch: B,
|
|
6699
6699
|
children: [
|
|
@@ -6811,14 +6811,14 @@ function uE(t) {
|
|
|
6811
6811
|
value: d,
|
|
6812
6812
|
isError: h,
|
|
6813
6813
|
disabled: m
|
|
6814
|
-
} = Ag(), g = d === e, v = r || c, f = n || m,
|
|
6814
|
+
} = Ag(), g = d === e, v = r || c, f = n || m, b = `arkynRadioBox ${v} ${g ? "checkedTrue" : "checkedFalse"} ${h ? "errorTrue" : "errorFalse"} ${f ? "disabledTrue" : "disabledFalse"} ${a}`;
|
|
6815
6815
|
function B(O) {
|
|
6816
6816
|
s && s(O), l(e);
|
|
6817
6817
|
}
|
|
6818
6818
|
function A(O) {
|
|
6819
6819
|
o && o(O), l(e);
|
|
6820
6820
|
}
|
|
6821
|
-
return /* @__PURE__ */ ne("label", { className:
|
|
6821
|
+
return /* @__PURE__ */ ne("label", { className: b.trim(), children: [
|
|
6822
6822
|
/* @__PURE__ */ C(
|
|
6823
6823
|
"button",
|
|
6824
6824
|
{
|
|
@@ -7786,13 +7786,13 @@ var Vg = (t, e, r) => {
|
|
|
7786
7786
|
case "merge_node": {
|
|
7787
7787
|
var {
|
|
7788
7788
|
path: y
|
|
7789
|
-
} = r, D = te.get(t, y), w = L.previous(y),
|
|
7790
|
-
if (se.isText(D) && se.isText(
|
|
7791
|
-
|
|
7792
|
-
else if (!se.isText(D) && !se.isText(
|
|
7793
|
-
|
|
7789
|
+
} = r, D = te.get(t, y), w = L.previous(y), b = te.get(t, w), B = te.parent(t, y), A = y[y.length - 1];
|
|
7790
|
+
if (se.isText(D) && se.isText(b))
|
|
7791
|
+
b.text += D.text;
|
|
7792
|
+
else if (!se.isText(D) && !se.isText(b))
|
|
7793
|
+
b.children.push(...D.children);
|
|
7794
7794
|
else
|
|
7795
|
-
throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y, "] to nodes of different interfaces: ").concat(Ue.stringify(D), " ").concat(Ue.stringify(
|
|
7795
|
+
throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y, "] to nodes of different interfaces: ").concat(Ue.stringify(D), " ").concat(Ue.stringify(b)));
|
|
7796
7796
|
if (B.children.splice(A, 1), e)
|
|
7797
7797
|
for (var [O, j] of _.points(e))
|
|
7798
7798
|
e[j] = ve.transform(O, r);
|
|
@@ -9124,8 +9124,8 @@ var Pp = (t, e) => {
|
|
|
9124
9124
|
var y = L.transform(f, e);
|
|
9125
9125
|
m.push(y);
|
|
9126
9126
|
}
|
|
9127
|
-
var D = m[m.length - 1], w = d[d.length - 1],
|
|
9128
|
-
return [...h, ...m,
|
|
9127
|
+
var D = m[m.length - 1], w = d[d.length - 1], b = D.concat(w);
|
|
9128
|
+
return [...h, ...m, b];
|
|
9129
9129
|
}
|
|
9130
9130
|
case "remove_node": {
|
|
9131
9131
|
var {
|
|
@@ -9597,11 +9597,11 @@ var dv = ["text"], hv = ["text"], gv = function(e) {
|
|
|
9597
9597
|
at: d,
|
|
9598
9598
|
match: se.isText
|
|
9599
9599
|
}), g = p.above(e, {
|
|
9600
|
-
match: (
|
|
9600
|
+
match: (b) => ae.isElement(b) && p.isVoid(e, b) && e.markableVoid(b)
|
|
9601
9601
|
});
|
|
9602
9602
|
if (!g) {
|
|
9603
9603
|
var v = p.above(e, {
|
|
9604
|
-
match: (
|
|
9604
|
+
match: (b) => ae.isElement(b) && p.isBlock(e, b)
|
|
9605
9605
|
});
|
|
9606
9606
|
if (m && v) {
|
|
9607
9607
|
var [f, y] = m, [, D] = v;
|
|
@@ -9675,8 +9675,8 @@ function mv(t) {
|
|
|
9675
9675
|
reverse: a,
|
|
9676
9676
|
from: l,
|
|
9677
9677
|
to: c,
|
|
9678
|
-
pass: (
|
|
9679
|
-
var [B] =
|
|
9678
|
+
pass: (b) => {
|
|
9679
|
+
var [B] = b;
|
|
9680
9680
|
return ae.isElement(B) ? !!(!s && (p.isVoid(t, B) || p.isElementReadOnly(t, B)) || o && !p.isSelectable(t, B)) : !1;
|
|
9681
9681
|
}
|
|
9682
9682
|
}), g = [], v;
|
|
@@ -9859,8 +9859,8 @@ function Ov(t) {
|
|
|
9859
9859
|
}
|
|
9860
9860
|
}
|
|
9861
9861
|
if (se.isText(f)) {
|
|
9862
|
-
var
|
|
9863
|
-
for (
|
|
9862
|
+
var b = L.equals(y, c.path);
|
|
9863
|
+
for (b ? (g = i ? c.offset : f.text.length - c.offset, v = c.offset) : (g = f.text.length, v = i ? g : 0), (b || d || n === "offset") && (yield {
|
|
9864
9864
|
path: y,
|
|
9865
9865
|
offset: v
|
|
9866
9866
|
}, d = !1); ; ) {
|
|
@@ -10104,7 +10104,7 @@ var Mv = (t, e) => {
|
|
|
10104
10104
|
voids: u
|
|
10105
10105
|
}));
|
|
10106
10106
|
}
|
|
10107
|
-
var [D, w] = _.edges(l),
|
|
10107
|
+
var [D, w] = _.edges(l), b = p.above(e, {
|
|
10108
10108
|
match: (le) => ae.isElement(le) && p.isBlock(e, le),
|
|
10109
10109
|
at: D,
|
|
10110
10110
|
voids: u
|
|
@@ -10112,7 +10112,7 @@ var Mv = (t, e) => {
|
|
|
10112
10112
|
match: (le) => ae.isElement(le) && p.isBlock(e, le),
|
|
10113
10113
|
at: w,
|
|
10114
10114
|
voids: u
|
|
10115
|
-
}), A =
|
|
10115
|
+
}), A = b && B && !L.equals(b[1], B[1]), O = L.equals(D.path, w.path), j = u ? null : (n = p.void(e, {
|
|
10116
10116
|
at: D,
|
|
10117
10117
|
mode: "highest"
|
|
10118
10118
|
})) !== null && n !== void 0 ? n : p.elementReadOnly(e, {
|
|
@@ -10127,7 +10127,7 @@ var Mv = (t, e) => {
|
|
|
10127
10127
|
});
|
|
10128
10128
|
if (j) {
|
|
10129
10129
|
var S = p.before(e, D);
|
|
10130
|
-
S &&
|
|
10130
|
+
S && b && L.isAncestor(b[1], S.path) && (D = S);
|
|
10131
10131
|
}
|
|
10132
10132
|
if (P) {
|
|
10133
10133
|
var M = p.after(e, w);
|
|
@@ -10233,13 +10233,13 @@ var Mv = (t, e) => {
|
|
|
10233
10233
|
match: (T) => ae.isElement(T) && p.isBlock(e, T),
|
|
10234
10234
|
at: s,
|
|
10235
10235
|
voids: a
|
|
10236
|
-
}), [, v] = g, f = p.isStart(e, s, v), y = p.isEnd(e, s, v), D = f && y, w = !f || f && y,
|
|
10236
|
+
}), [, v] = g, f = p.isStart(e, s, v), y = p.isEnd(e, s, v), D = f && y, w = !f || f && y, b = !y, [, B] = te.first({
|
|
10237
10237
|
children: r
|
|
10238
10238
|
}, []), [, A] = te.last({
|
|
10239
10239
|
children: r
|
|
10240
10240
|
}, []), O = [], j = (T) => {
|
|
10241
10241
|
var [x, U] = T, $ = U.length === 0;
|
|
10242
|
-
return $ ? !1 : D ? !0 : !(w && L.isAncestor(U, B) && ae.isElement(x) && !e.isVoid(x) && !e.isInline(x) ||
|
|
10242
|
+
return $ ? !1 : D ? !0 : !(w && L.isAncestor(U, B) && ae.isElement(x) && !e.isVoid(x) && !e.isInline(x) || b && L.isAncestor(U, A) && ae.isElement(x) && !e.isVoid(x) && !e.isInline(x));
|
|
10243
10243
|
};
|
|
10244
10244
|
for (var P of te.nodes({
|
|
10245
10245
|
children: r
|
|
@@ -10467,7 +10467,7 @@ var Vv = function(e, r) {
|
|
|
10467
10467
|
} else
|
|
10468
10468
|
return;
|
|
10469
10469
|
}
|
|
10470
|
-
var w = L.parent(u),
|
|
10470
|
+
var w = L.parent(u), b = u[u.length - 1];
|
|
10471
10471
|
if (!(!a && p.void(e, {
|
|
10472
10472
|
at: w
|
|
10473
10473
|
}))) {
|
|
@@ -10475,8 +10475,8 @@ var Vv = function(e, r) {
|
|
|
10475
10475
|
var B = [], A = L.levels(w);
|
|
10476
10476
|
Fp(e, () => {
|
|
10477
10477
|
var S = function() {
|
|
10478
|
-
var R = w.concat(
|
|
10479
|
-
|
|
10478
|
+
var R = w.concat(b);
|
|
10479
|
+
b++;
|
|
10480
10480
|
var I = {
|
|
10481
10481
|
type: "insert_node",
|
|
10482
10482
|
path: R,
|
|
@@ -10500,8 +10500,8 @@ var Vv = function(e, r) {
|
|
|
10500
10500
|
});
|
|
10501
10501
|
} else
|
|
10502
10502
|
for (var O of r) {
|
|
10503
|
-
var j = w.concat(
|
|
10504
|
-
|
|
10503
|
+
var j = w.concat(b);
|
|
10504
|
+
b++, e.apply({
|
|
10505
10505
|
type: "insert_node",
|
|
10506
10506
|
path: j,
|
|
10507
10507
|
node: O
|
|
@@ -10524,14 +10524,14 @@ var Vv = function(e, r) {
|
|
|
10524
10524
|
} = r, {
|
|
10525
10525
|
match: s
|
|
10526
10526
|
} = r;
|
|
10527
|
-
if (s == null && (s = L.isPath(n) ? Ar(e, n) : (
|
|
10527
|
+
if (s == null && (s = L.isPath(n) ? Ar(e, n) : (b) => ae.isElement(b) && p.isBlock(e, b)), !!n) {
|
|
10528
10528
|
var o = p.nodes(e, {
|
|
10529
10529
|
at: n,
|
|
10530
10530
|
match: s,
|
|
10531
10531
|
mode: i,
|
|
10532
10532
|
voids: a
|
|
10533
|
-
}), u = Array.from(o, (
|
|
10534
|
-
var [, B] =
|
|
10533
|
+
}), u = Array.from(o, (b) => {
|
|
10534
|
+
var [, B] = b;
|
|
10535
10535
|
return p.pathRef(e, B);
|
|
10536
10536
|
});
|
|
10537
10537
|
for (var l of u) {
|
|
@@ -10626,7 +10626,7 @@ var Vv = function(e, r) {
|
|
|
10626
10626
|
if (!(!d || !h)) {
|
|
10627
10627
|
var [m, g] = d, [v, f] = h;
|
|
10628
10628
|
if (!(g.length === 0 || f.length === 0)) {
|
|
10629
|
-
var y = L.next(f), D = L.common(g, f), w = L.isSibling(g, f),
|
|
10629
|
+
var y = L.next(f), D = L.common(g, f), w = L.isSibling(g, f), b = Array.from(p.levels(e, {
|
|
10630
10630
|
at: g
|
|
10631
10631
|
}), (S) => {
|
|
10632
10632
|
var [M] = S;
|
|
@@ -10634,7 +10634,7 @@ var Vv = function(e, r) {
|
|
|
10634
10634
|
}).slice(D.length).slice(0, -1), B = p.above(e, {
|
|
10635
10635
|
at: g,
|
|
10636
10636
|
mode: "highest",
|
|
10637
|
-
match: (S) =>
|
|
10637
|
+
match: (S) => b.includes(S) && Xl(e, S)
|
|
10638
10638
|
}), A = B && p.pathRef(e, B[1]), O, j;
|
|
10639
10639
|
if (se.isText(m) && se.isText(v)) {
|
|
10640
10640
|
var P = St(m, Kv);
|
|
@@ -10779,15 +10779,15 @@ var Vv = function(e, r) {
|
|
|
10779
10779
|
mode: l,
|
|
10780
10780
|
voids: d
|
|
10781
10781
|
})) {
|
|
10782
|
-
var
|
|
10782
|
+
var b = {}, B = {};
|
|
10783
10783
|
if (w.length !== 0) {
|
|
10784
10784
|
var A = !1;
|
|
10785
10785
|
for (var O in r)
|
|
10786
|
-
O === "children" || O === "text" || s(r[O], D[O]) && (A = !0, D.hasOwnProperty(O) && (
|
|
10786
|
+
O === "children" || O === "text" || s(r[O], D[O]) && (A = !0, D.hasOwnProperty(O) && (b[O] = D[O]), o ? r[O] != null && (B[O] = o(D[O], r[O])) : r[O] != null && (B[O] = r[O]));
|
|
10787
10787
|
A && e.apply({
|
|
10788
10788
|
type: "set_node",
|
|
10789
10789
|
path: w,
|
|
10790
|
-
properties:
|
|
10790
|
+
properties: b,
|
|
10791
10791
|
newProperties: B
|
|
10792
10792
|
});
|
|
10793
10793
|
}
|
|
@@ -10839,10 +10839,10 @@ var Vv = function(e, r) {
|
|
|
10839
10839
|
if (ae.isElement(y) && e.isInline(y)) {
|
|
10840
10840
|
var w = p.after(e, D);
|
|
10841
10841
|
if (!w) {
|
|
10842
|
-
var
|
|
10842
|
+
var b = {
|
|
10843
10843
|
text: ""
|
|
10844
10844
|
}, B = L.next(D);
|
|
10845
|
-
Z.insertNodes(e,
|
|
10845
|
+
Z.insertNodes(e, b, {
|
|
10846
10846
|
at: B,
|
|
10847
10847
|
voids: i
|
|
10848
10848
|
}), w = p.point(e, B);
|
|
@@ -10996,7 +10996,7 @@ var am = function(e, r) {
|
|
|
10996
10996
|
voids: s
|
|
10997
10997
|
}));
|
|
10998
10998
|
if (D.length > 0) {
|
|
10999
|
-
var [w] = D,
|
|
10999
|
+
var [w] = D, b = D[D.length - 1], [, B] = w, [, A] = b;
|
|
11000
11000
|
if (B.length === 0 && A.length === 0)
|
|
11001
11001
|
return 0;
|
|
11002
11002
|
var O = L.equals(B, A) ? L.parent(B) : L.common(B, A), j = p.range(e, B, A), P = p.node(e, O), [S] = P, M = O.length + 1, k = L.next(A.slice(0, M)), R = ru(ru({}, r), {}, {
|
|
@@ -11643,7 +11643,7 @@ function dC(t, e, r) {
|
|
|
11643
11643
|
function w() {
|
|
11644
11644
|
o !== void 0 && clearTimeout(o), l = 0, n = u = i = o = void 0;
|
|
11645
11645
|
}
|
|
11646
|
-
function
|
|
11646
|
+
function b() {
|
|
11647
11647
|
return o === void 0 ? s : D(Oi());
|
|
11648
11648
|
}
|
|
11649
11649
|
function B() {
|
|
@@ -11656,7 +11656,7 @@ function dC(t, e, r) {
|
|
|
11656
11656
|
}
|
|
11657
11657
|
return o === void 0 && (o = setTimeout(y, e)), s;
|
|
11658
11658
|
}
|
|
11659
|
-
return B.cancel = w, B.flush =
|
|
11659
|
+
return B.cancel = w, B.flush = b, B;
|
|
11660
11660
|
}
|
|
11661
11661
|
var nc = dC;
|
|
11662
11662
|
const hC = /* @__PURE__ */ Qn(nc);
|
|
@@ -11705,11 +11705,11 @@ const DC = /* @__PURE__ */ Qn(CC), lu = (t) => typeof t == "object" && t != null
|
|
|
11705
11705
|
}
|
|
11706
11706
|
g != null && g === document.body && gn(g) && !gn(document.documentElement) || g != null && gn(g, c) && m.push(g);
|
|
11707
11707
|
}
|
|
11708
|
-
const v = (n = (r = window.visualViewport) == null ? void 0 : r.width) != null ? n : innerWidth, f = (a = (i = window.visualViewport) == null ? void 0 : i.height) != null ? a : innerHeight, { scrollX: y, scrollY: D } = window, { height: w, width:
|
|
11708
|
+
const v = (n = (r = window.visualViewport) == null ? void 0 : r.width) != null ? n : innerWidth, f = (a = (i = window.visualViewport) == null ? void 0 : i.height) != null ? a : innerHeight, { scrollX: y, scrollY: D } = window, { height: w, width: b, top: B, right: A, bottom: O, left: j } = t.getBoundingClientRect(), { top: P, right: S, bottom: M, left: k } = ((K) => {
|
|
11709
11709
|
const z = window.getComputedStyle(K);
|
|
11710
11710
|
return { top: parseFloat(z.scrollMarginTop) || 0, right: parseFloat(z.scrollMarginRight) || 0, bottom: parseFloat(z.scrollMarginBottom) || 0, left: parseFloat(z.scrollMarginLeft) || 0 };
|
|
11711
11711
|
})(t);
|
|
11712
|
-
let R = o === "start" || o === "nearest" ? B - P : o === "end" ? O + M : B + w / 2 - P + M, I = u === "center" ? j +
|
|
11712
|
+
let R = o === "start" || o === "nearest" ? B - P : o === "end" ? O + M : B + w / 2 - P + M, I = u === "center" ? j + b / 2 - k + S : u === "end" ? A + S : j - k;
|
|
11713
11713
|
const N = [];
|
|
11714
11714
|
for (let K = 0; K < m.length; K++) {
|
|
11715
11715
|
const z = m[K], { height: Q, width: V, top: G, right: ee, bottom: re, left: X } = z.getBoundingClientRect();
|
|
@@ -11717,9 +11717,9 @@ const DC = /* @__PURE__ */ Qn(CC), lu = (t) => typeof t == "object" && t != null
|
|
|
11717
11717
|
const oe = getComputedStyle(z), T = parseInt(oe.borderLeftWidth, 10), x = parseInt(oe.borderTopWidth, 10), U = parseInt(oe.borderRightWidth, 10), $ = parseInt(oe.borderBottomWidth, 10);
|
|
11718
11718
|
let q = 0, J = 0;
|
|
11719
11719
|
const Y = "offsetWidth" in z ? z.offsetWidth - z.clientWidth - T - U : 0, ie = "offsetHeight" in z ? z.offsetHeight - z.clientHeight - x - $ : 0, ue = "offsetWidth" in z ? z.offsetWidth === 0 ? 0 : V / z.offsetWidth : 0, le = "offsetHeight" in z ? z.offsetHeight === 0 ? 0 : Q / z.offsetHeight : 0;
|
|
11720
|
-
if (h === z) q = o === "start" ? R : o === "end" ? R - f : o === "nearest" ? pn(D, D + f, f, x, $, D + R, D + R + w, w) : R - f / 2, J = u === "start" ? I : u === "center" ? I - v / 2 : u === "end" ? I - v : pn(y, y + v, v, T, U, y + I, y + I +
|
|
11720
|
+
if (h === z) q = o === "start" ? R : o === "end" ? R - f : o === "nearest" ? pn(D, D + f, f, x, $, D + R, D + R + w, w) : R - f / 2, J = u === "start" ? I : u === "center" ? I - v / 2 : u === "end" ? I - v : pn(y, y + v, v, T, U, y + I, y + I + b, b), q = Math.max(0, q + D), J = Math.max(0, J + y);
|
|
11721
11721
|
else {
|
|
11722
|
-
q = o === "start" ? R - G - x : o === "end" ? R - re + $ + ie : o === "nearest" ? pn(G, re, Q, x, $ + ie, R, R + w, w) : R - (G + Q / 2) + ie / 2, J = u === "start" ? I - X - T : u === "center" ? I - (X + V / 2) + Y / 2 : u === "end" ? I - ee + U + Y : pn(X, ee, V, T, U + Y, I, I +
|
|
11722
|
+
q = o === "start" ? R - G - x : o === "end" ? R - re + $ + ie : o === "nearest" ? pn(G, re, Q, x, $ + ie, R, R + w, w) : R - (G + Q / 2) + ie / 2, J = u === "start" ? I - X - T : u === "center" ? I - (X + V / 2) + Y / 2 : u === "end" ? I - ee + U + Y : pn(X, ee, V, T, U + Y, I, I + b, b);
|
|
11723
11723
|
const { scrollLeft: ce, scrollTop: ge } = z;
|
|
11724
11724
|
q = le === 0 ? 0 : Math.max(0, Math.min(ge + q / le, z.scrollHeight - Q / le + ie)), J = ue === 0 ? 0 : Math.max(0, Math.min(ce + J / ue, z.scrollWidth - V / ue + Y)), R += ge - q, I += ce - J;
|
|
11725
11725
|
}
|
|
@@ -11825,7 +11825,7 @@ var nr = function(t) {
|
|
|
11825
11825
|
return vn.get(t);
|
|
11826
11826
|
if (ac(t))
|
|
11827
11827
|
return vn.set(t, pu), pu;
|
|
11828
|
-
var r = getComputedStyle(t), n = Aa(t) && t.ownerSVGElement && t.getBBox(), i = !FC && r.boxSizing === "border-box", a = xC.test(r.writingMode || ""), s = !n && gu.test(r.overflowY || ""), o = !n && gu.test(r.overflowX || ""), u = n ? 0 : bt(r.paddingTop), l = n ? 0 : bt(r.paddingRight), c = n ? 0 : bt(r.paddingBottom), d = n ? 0 : bt(r.paddingLeft), h = n ? 0 : bt(r.borderTopWidth), m = n ? 0 : bt(r.borderRightWidth), g = n ? 0 : bt(r.borderBottomWidth), v = n ? 0 : bt(r.borderLeftWidth), f = d + l, y = u + c, D = v + m, w = h + g,
|
|
11828
|
+
var r = getComputedStyle(t), n = Aa(t) && t.ownerSVGElement && t.getBBox(), i = !FC && r.boxSizing === "border-box", a = xC.test(r.writingMode || ""), s = !n && gu.test(r.overflowY || ""), o = !n && gu.test(r.overflowX || ""), u = n ? 0 : bt(r.paddingTop), l = n ? 0 : bt(r.paddingRight), c = n ? 0 : bt(r.paddingBottom), d = n ? 0 : bt(r.paddingLeft), h = n ? 0 : bt(r.borderTopWidth), m = n ? 0 : bt(r.borderRightWidth), g = n ? 0 : bt(r.borderBottomWidth), v = n ? 0 : bt(r.borderLeftWidth), f = d + l, y = u + c, D = v + m, w = h + g, b = o ? t.offsetHeight - w - t.clientHeight : 0, B = s ? t.offsetWidth - D - t.clientWidth : 0, A = i ? f + D : 0, O = i ? y + w : 0, j = n ? n.width : bt(r.width) - A - B, P = n ? n.height : bt(r.height) - O - b, S = j + f + B + D, M = P + y + b + w, k = nr({
|
|
11829
11829
|
devicePixelContentBoxSize: Cr(Math.round(j * devicePixelRatio), Math.round(P * devicePixelRatio), a),
|
|
11830
11830
|
borderBoxSize: Cr(S, M, a),
|
|
11831
11831
|
contentBoxSize: Cr(j, P, a),
|
|
@@ -12399,7 +12399,7 @@ var H = {
|
|
|
12399
12399
|
var d, h, m = H.toDOMNode(t, t), g = u.closest('[data-slate-void="true"]'), v = g && m.contains(g) ? g : null, f = u.closest('[contenteditable="false"]'), y = f && m.contains(f) ? f : null, D = u.closest("[data-slate-leaf]"), w = null;
|
|
12400
12400
|
if (D) {
|
|
12401
12401
|
if (l = D.closest('[data-slate-node="text"]'), l) {
|
|
12402
|
-
var
|
|
12402
|
+
var b = H.getWindow(t), B = b.document.createRange();
|
|
12403
12403
|
B.setStart(l, 0), B.setEnd(s, o);
|
|
12404
12404
|
var A = B.cloneContents(), O = [...Array.prototype.slice.call(A.querySelectorAll("[data-slate-zero-width]")), ...Array.prototype.slice.call(A.querySelectorAll("[contenteditable=false]"))];
|
|
12405
12405
|
O.forEach((X) => {
|
|
@@ -12511,16 +12511,16 @@ var H = {
|
|
|
12511
12511
|
});
|
|
12512
12512
|
if (!D)
|
|
12513
12513
|
return null;
|
|
12514
|
-
var w = Eu(o, l) || o === l && c < u,
|
|
12514
|
+
var w = Eu(o, l) || o === l && c < u, b = d ? D : H.toSlatePoint(t, [l, c], {
|
|
12515
12515
|
exactMatch: i,
|
|
12516
12516
|
suppressThrow: a,
|
|
12517
12517
|
searchDirection: w ? "forward" : "backward"
|
|
12518
12518
|
});
|
|
12519
|
-
if (!
|
|
12519
|
+
if (!b)
|
|
12520
12520
|
return null;
|
|
12521
12521
|
var B = {
|
|
12522
12522
|
anchor: D,
|
|
12523
|
-
focus:
|
|
12523
|
+
focus: b
|
|
12524
12524
|
};
|
|
12525
12525
|
return _.isExpanded(B) && _.isForward(B) && gt(l) && p.void(t, {
|
|
12526
12526
|
at: B.focus,
|
|
@@ -12838,7 +12838,7 @@ function b0(t) {
|
|
|
12838
12838
|
k.run();
|
|
12839
12839
|
}
|
|
12840
12840
|
}, h = () => {
|
|
12841
|
-
if (s && (clearTimeout(s), s = null), o && (clearTimeout(o), o = null), !
|
|
12841
|
+
if (s && (clearTimeout(s), s = null), o && (clearTimeout(o), o = null), !b() && !w()) {
|
|
12842
12842
|
c();
|
|
12843
12843
|
return;
|
|
12844
12844
|
}
|
|
@@ -12847,7 +12847,7 @@ function b0(t) {
|
|
|
12847
12847
|
affinity: "forward"
|
|
12848
12848
|
});
|
|
12849
12849
|
Ft.set(e, e.marks), D0("flush", Rt.get(e), rt.get(e));
|
|
12850
|
-
for (var R =
|
|
12850
|
+
for (var R = b(), I; I = (N = rt.get(e)) === null || N === void 0 ? void 0 : N[0]; ) {
|
|
12851
12851
|
var N, K, z = vt.get(e);
|
|
12852
12852
|
z !== void 0 && (vt.delete(e), e.marks = z), z && l === !1 && (l = null);
|
|
12853
12853
|
var Q = p0(I);
|
|
@@ -12875,7 +12875,7 @@ function b0(t) {
|
|
|
12875
12875
|
}, v = function() {
|
|
12876
12876
|
var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, I = Hi.get(e);
|
|
12877
12877
|
if (I) {
|
|
12878
|
-
if (
|
|
12878
|
+
if (b() || R) {
|
|
12879
12879
|
I.style.display = "none";
|
|
12880
12880
|
return;
|
|
12881
12881
|
}
|
|
@@ -13105,26 +13105,26 @@ function b0(t) {
|
|
|
13105
13105
|
}
|
|
13106
13106
|
}
|
|
13107
13107
|
}
|
|
13108
|
-
}, w = () => !!Rt.get(e),
|
|
13108
|
+
}, w = () => !!Rt.get(e), b = () => {
|
|
13109
13109
|
var k;
|
|
13110
13110
|
return !!((k = rt.get(e)) !== null && k !== void 0 && k.length);
|
|
13111
|
-
}, B = () => w() ||
|
|
13111
|
+
}, B = () => w() || b(), A = () => i, O = (k) => {
|
|
13112
13112
|
jt.set(e, k), s && (clearTimeout(s), s = null);
|
|
13113
13113
|
var {
|
|
13114
13114
|
selection: R
|
|
13115
13115
|
} = e;
|
|
13116
13116
|
if (k) {
|
|
13117
13117
|
var I = !R || !L.equals(R.anchor.path, k.anchor.path), N = !R || !L.equals(R.anchor.path.slice(0, -1), k.anchor.path.slice(0, -1));
|
|
13118
|
-
(I && l || N) && (l = !1), (I ||
|
|
13118
|
+
(I && l || N) && (l = !1), (I || b()) && (s = setTimeout(h, C0));
|
|
13119
13119
|
}
|
|
13120
13120
|
}, j = () => {
|
|
13121
|
-
(w() || !
|
|
13121
|
+
(w() || !b()) && h();
|
|
13122
13122
|
}, P = (k) => {
|
|
13123
|
-
|
|
13123
|
+
b() || (v(!0), setTimeout(v));
|
|
13124
13124
|
}, S = () => {
|
|
13125
13125
|
w() || (o = setTimeout(h));
|
|
13126
13126
|
}, M = (k) => {
|
|
13127
|
-
if (!(
|
|
13127
|
+
if (!(b() || w()) && k.some((I) => Sa(e, I, k))) {
|
|
13128
13128
|
var R;
|
|
13129
13129
|
(R = gc.get(e)) === null || R === void 0 || R();
|
|
13130
13130
|
}
|
|
@@ -13132,7 +13132,7 @@ function b0(t) {
|
|
|
13132
13132
|
return {
|
|
13133
13133
|
flush: h,
|
|
13134
13134
|
scheduleFlush: S,
|
|
13135
|
-
hasPendingDiffs:
|
|
13135
|
+
hasPendingDiffs: b,
|
|
13136
13136
|
hasPendingAction: w,
|
|
13137
13137
|
hasPendingChanges: B,
|
|
13138
13138
|
isFlushing: A,
|
|
@@ -13147,16 +13147,16 @@ function b0(t) {
|
|
|
13147
13147
|
}
|
|
13148
13148
|
function E0() {
|
|
13149
13149
|
var t = me(!1);
|
|
13150
|
-
return
|
|
13150
|
+
return E(() => (t.current = !0, () => {
|
|
13151
13151
|
t.current = !1;
|
|
13152
13152
|
}), []), t.current;
|
|
13153
13153
|
}
|
|
13154
|
-
var Xr = Fn ? mf :
|
|
13154
|
+
var Xr = Fn ? mf : E;
|
|
13155
13155
|
function w0(t, e, r) {
|
|
13156
13156
|
var [n] = F(() => new MutationObserver(e));
|
|
13157
13157
|
Xr(() => {
|
|
13158
13158
|
n.takeRecords();
|
|
13159
|
-
}),
|
|
13159
|
+
}), E(() => {
|
|
13160
13160
|
if (!t.current)
|
|
13161
13161
|
throw new Error("Failed to attach MutationObserver, `node` is undefined");
|
|
13162
13162
|
return n.observe(t.current, r), () => n.disconnect();
|
|
@@ -13330,8 +13330,8 @@ var j0 = (t) => {
|
|
|
13330
13330
|
Hi.delete(o), (w = e.onPlaceholderResize) === null || w === void 0 || w.call(e, null);
|
|
13331
13331
|
} else {
|
|
13332
13332
|
if (Hi.set(o, D), !u.current) {
|
|
13333
|
-
var
|
|
13334
|
-
u.current = new
|
|
13333
|
+
var b = window.ResizeObserver || WC;
|
|
13334
|
+
u.current = new b(() => {
|
|
13335
13335
|
var B;
|
|
13336
13336
|
(B = e.onPlaceholderResize) === null || B === void 0 || B.call(e, D);
|
|
13337
13337
|
});
|
|
@@ -13344,7 +13344,7 @@ var j0 = (t) => {
|
|
|
13344
13344
|
parent: i,
|
|
13345
13345
|
text: n
|
|
13346
13346
|
}), v = !!e[Er];
|
|
13347
|
-
if (
|
|
13347
|
+
if (E(() => (v ? h.current || (h.current = setTimeout(() => {
|
|
13348
13348
|
d(!0), h.current = null;
|
|
13349
13349
|
}, I0)) : (Pu(h), d(!1)), () => Pu(h)), [v, d]), v && c) {
|
|
13350
13350
|
var f = {
|
|
@@ -13509,8 +13509,8 @@ var U0 = (t) => {
|
|
|
13509
13509
|
for (var l = H.findPath(u, r), c = [], d = ae.isElement(r) && !u.isInline(r) && p.hasInlines(u, r), h = 0; h < r.children.length; h++) {
|
|
13510
13510
|
var m = l.concat(h), g = r.children[h], v = H.findKey(u, g), f = p.range(u, m), y = s && _.intersection(f, s), D = o([g, m]);
|
|
13511
13511
|
for (var w of e) {
|
|
13512
|
-
var
|
|
13513
|
-
|
|
13512
|
+
var b = _.intersection(w, f);
|
|
13513
|
+
b && D.push(b);
|
|
13514
13514
|
}
|
|
13515
13515
|
ae.isElement(g) ? c.push(/* @__PURE__ */ fe.createElement(G0.Provider, {
|
|
13516
13516
|
key: "provider-".concat(v.id),
|
|
@@ -13553,7 +13553,7 @@ function Z0() {
|
|
|
13553
13553
|
});
|
|
13554
13554
|
}
|
|
13555
13555
|
}, [t]);
|
|
13556
|
-
return
|
|
13556
|
+
return E(() => () => cancelAnimationFrame(r.current), []), {
|
|
13557
13557
|
receivedUserInput: e,
|
|
13558
13558
|
onUserInput: n
|
|
13559
13559
|
};
|
|
@@ -13729,7 +13729,7 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
13729
13729
|
style: h = {},
|
|
13730
13730
|
as: m = "div",
|
|
13731
13731
|
disableDefaultStyles: g = !1
|
|
13732
|
-
} = t, v = br(t, nD), f = ai(), [y, D] = F(!1), w = me(null),
|
|
13732
|
+
} = t, v = br(t, nD), f = ai(), [y, D] = F(!1), w = me(null), b = me([]), [B, A] = F(), O = me(!1), {
|
|
13733
13733
|
onUserInput: j,
|
|
13734
13734
|
receivedUserInput: P
|
|
13735
13735
|
} = Z0(), [, S] = Cf((x) => x + 1, 0);
|
|
@@ -13740,7 +13740,7 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
13740
13740
|
latestElement: null,
|
|
13741
13741
|
hasMarkPlaceholder: !1
|
|
13742
13742
|
}), []);
|
|
13743
|
-
|
|
13743
|
+
E(() => {
|
|
13744
13744
|
w.current && n && w.current.focus();
|
|
13745
13745
|
}, [n]);
|
|
13746
13746
|
var k = me(), R = Pt(() => DC(() => {
|
|
@@ -13992,7 +13992,7 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
13992
13992
|
case "insertFromYank":
|
|
13993
13993
|
case "insertReplacementText":
|
|
13994
13994
|
case "insertText": {
|
|
13995
|
-
ce === "insertFromComposition" && H.isComposing(f) && (D(!1), tr.set(f, !1)), (ge == null ? void 0 : ge.constructor.name) === "DataTransfer" ? H.insertData(f, ge) : typeof ge == "string" && (be ?
|
|
13995
|
+
ce === "insertFromComposition" && H.isComposing(f) && (D(!1), tr.set(f, !1)), (ge == null ? void 0 : ge.constructor.name) === "DataTransfer" ? H.insertData(f, ge) : typeof ge == "string" && (be ? b.current.push(() => p.insertText(f, ge)) : p.insertText(f, ge));
|
|
13996
13996
|
break;
|
|
13997
13997
|
}
|
|
13998
13998
|
}
|
|
@@ -14049,7 +14049,7 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14049
14049
|
}));
|
|
14050
14050
|
}
|
|
14051
14051
|
}
|
|
14052
|
-
return
|
|
14052
|
+
return E(() => {
|
|
14053
14053
|
setTimeout(() => {
|
|
14054
14054
|
var {
|
|
14055
14055
|
selection: x
|
|
@@ -14120,9 +14120,9 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14120
14120
|
k.current.handleInput();
|
|
14121
14121
|
return;
|
|
14122
14122
|
}
|
|
14123
|
-
for (var U of
|
|
14123
|
+
for (var U of b.current)
|
|
14124
14124
|
U();
|
|
14125
|
-
if (
|
|
14125
|
+
if (b.current = [], !H.isFocused(f)) {
|
|
14126
14126
|
var $ = x.nativeEvent, q = f;
|
|
14127
14127
|
if ($.inputType === "historyUndo" && typeof q.undo == "function") {
|
|
14128
14128
|
q.undo();
|
|
@@ -14528,12 +14528,12 @@ var gD = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
|
|
|
14528
14528
|
editor: e
|
|
14529
14529
|
})), d(e);
|
|
14530
14530
|
}, [e, d, n, i, a]);
|
|
14531
|
-
|
|
14531
|
+
E(() => (Gi.set(e, h), () => {
|
|
14532
14532
|
Gi.set(e, () => {
|
|
14533
14533
|
});
|
|
14534
14534
|
}), [e, h]);
|
|
14535
14535
|
var [m, g] = F(H.isFocused(e));
|
|
14536
|
-
return
|
|
14536
|
+
return E(() => {
|
|
14537
14537
|
g(H.isFocused(e));
|
|
14538
14538
|
}, [e]), Xr(() => {
|
|
14539
14539
|
var v = () => g(H.isFocused(e));
|
|
@@ -14660,9 +14660,9 @@ var mD = function(e) {
|
|
|
14660
14660
|
case "move_node": {
|
|
14661
14661
|
var w = L.common(L.parent(l.path), L.parent(l.newPath));
|
|
14662
14662
|
c.push(...hr(n, w));
|
|
14663
|
-
var
|
|
14664
|
-
L.isBefore(l.path, l.newPath) ? (c.push(...hr(n, L.parent(l.path))),
|
|
14665
|
-
var B = te.get(e, L.parent(
|
|
14663
|
+
var b;
|
|
14664
|
+
L.isBefore(l.path, l.newPath) ? (c.push(...hr(n, L.parent(l.path))), b = l.newPath) : (c.push(...hr(n, L.parent(l.newPath))), b = l.path);
|
|
14665
|
+
var B = te.get(e, L.parent(b)), A = H.findKey(n, B), O = p.pathRef(n, L.parent(b));
|
|
14666
14666
|
d.push([O, A]);
|
|
14667
14667
|
break;
|
|
14668
14668
|
}
|
|
@@ -14701,8 +14701,8 @@ var mD = function(e) {
|
|
|
14701
14701
|
if (f.childNodes.forEach((S) => {
|
|
14702
14702
|
S.textContent && S.textContent.trim() !== "" && (y = S);
|
|
14703
14703
|
}), g) {
|
|
14704
|
-
var [D] = g, w = v.cloneRange(),
|
|
14705
|
-
w.setEndAfter(
|
|
14704
|
+
var [D] = g, w = v.cloneRange(), b = H.toDOMNode(n, D);
|
|
14705
|
+
w.setEndAfter(b), f = w.cloneContents();
|
|
14706
14706
|
}
|
|
14707
14707
|
if (m && (y = f.querySelector("[data-slate-spacer]")), Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach((S) => {
|
|
14708
14708
|
var M = S.getAttribute("data-slate-zero-width") === "n";
|
|
@@ -15042,7 +15042,7 @@ function cE(t) {
|
|
|
15042
15042
|
return yn;
|
|
15043
15043
|
}
|
|
15044
15044
|
}
|
|
15045
|
-
const y = _u(f()), [D, w] = F(y.length), [
|
|
15045
|
+
const y = _u(f()), [D, w] = F(y.length), [b, B] = F(
|
|
15046
15046
|
JSON.stringify(f()) || "[]"
|
|
15047
15047
|
), [A, O] = F(!1), j = me(null), P = m || mt(), S = o || (v == null ? void 0 : v[e]), M = c || !!S, k = Ee(BD, []), R = Ee(DD, []);
|
|
15048
15048
|
function I(G) {
|
|
@@ -15106,7 +15106,7 @@ function cE(t) {
|
|
|
15106
15106
|
{
|
|
15107
15107
|
type: "hidden",
|
|
15108
15108
|
name: e,
|
|
15109
|
-
value:
|
|
15109
|
+
value: b.slice(0, u)
|
|
15110
15110
|
}
|
|
15111
15111
|
),
|
|
15112
15112
|
/* @__PURE__ */ C("input", { type: "hidden", name: `${e}Count`, value: D })
|
|
@@ -15123,27 +15123,44 @@ function fE(t) {
|
|
|
15123
15123
|
{
|
|
15124
15124
|
onLoad: (l) => s(l),
|
|
15125
15125
|
onPlacesChanged: () => {
|
|
15126
|
-
var
|
|
15127
|
-
const
|
|
15128
|
-
|
|
15129
|
-
|
|
15130
|
-
|
|
15126
|
+
var v, f, y, D;
|
|
15127
|
+
const l = a == null ? void 0 : a.getPlaces(), c = l ? l[0] : null, d = c == null ? void 0 : c.address_components;
|
|
15128
|
+
console.log(d);
|
|
15129
|
+
function h(w) {
|
|
15130
|
+
const b = d.find((B) => B.types[0] === w);
|
|
15131
|
+
return b ? b.long_name : "";
|
|
15131
15132
|
}
|
|
15132
|
-
function m(
|
|
15133
|
-
const
|
|
15134
|
-
return
|
|
15133
|
+
function m(w) {
|
|
15134
|
+
const b = d.find((B) => B.types[0] === w);
|
|
15135
|
+
return b ? b.short_name : "";
|
|
15136
|
+
}
|
|
15137
|
+
function g(w) {
|
|
15138
|
+
for (const b of w) {
|
|
15139
|
+
const B = d.find(
|
|
15140
|
+
(A) => A.types.includes(b)
|
|
15141
|
+
);
|
|
15142
|
+
if (B) return B.long_name;
|
|
15143
|
+
}
|
|
15144
|
+
return "";
|
|
15135
15145
|
}
|
|
15136
15146
|
if (c) {
|
|
15137
|
-
const
|
|
15147
|
+
const w = h("route"), b = h("street_number"), B = g([
|
|
15148
|
+
"sublocality_level_1",
|
|
15149
|
+
"sublocality",
|
|
15150
|
+
"neighborhood"
|
|
15151
|
+
]), A = h("administrative_area_level_2"), O = h("administrative_area_level_1"), j = m("administrative_area_level_1"), P = g([
|
|
15152
|
+
"postal_code",
|
|
15153
|
+
"postal_code_prefix"
|
|
15154
|
+
]), S = (f = (v = c.geometry) == null ? void 0 : v.location) == null ? void 0 : f.lat(), M = (D = (y = c.geometry) == null ? void 0 : y.location) == null ? void 0 : D.lng();
|
|
15138
15155
|
r && r({
|
|
15139
|
-
street:
|
|
15140
|
-
city:
|
|
15141
|
-
state:
|
|
15142
|
-
|
|
15143
|
-
|
|
15144
|
-
streetNumber:
|
|
15145
|
-
stateShortName:
|
|
15146
|
-
coordinates: { lat:
|
|
15156
|
+
street: w,
|
|
15157
|
+
city: A,
|
|
15158
|
+
state: O,
|
|
15159
|
+
neighborhood: B,
|
|
15160
|
+
postalCode: P,
|
|
15161
|
+
streetNumber: b,
|
|
15162
|
+
stateShortName: j,
|
|
15163
|
+
coordinates: { lat: S, lng: M }
|
|
15147
15164
|
});
|
|
15148
15165
|
}
|
|
15149
15166
|
},
|
|
@@ -15215,7 +15232,7 @@ function FD(t) {
|
|
|
15215
15232
|
}
|
|
15216
15233
|
function PD(t) {
|
|
15217
15234
|
const { children: e, isFocused: r, isSearchable: n, search: i, onSearch: a } = t, s = me(null), [o, u] = F("bottom");
|
|
15218
|
-
wr(r),
|
|
15235
|
+
wr(r), E(() => {
|
|
15219
15236
|
if (!r) return;
|
|
15220
15237
|
(() => {
|
|
15221
15238
|
if (!s.current) return;
|
|
@@ -15279,7 +15296,7 @@ function dE(t) {
|
|
|
15279
15296
|
onChange: y,
|
|
15280
15297
|
onBlur: D,
|
|
15281
15298
|
notFoundText: w = "Sem opções disponíveis",
|
|
15282
|
-
onFocus:
|
|
15299
|
+
onFocus: b,
|
|
15283
15300
|
disabled: B = !1,
|
|
15284
15301
|
prefix: A,
|
|
15285
15302
|
size: O = "md",
|
|
@@ -15294,7 +15311,7 @@ function dE(t) {
|
|
|
15294
15311
|
return (ue == null ? void 0 : ue.label) || "";
|
|
15295
15312
|
}
|
|
15296
15313
|
function U() {
|
|
15297
|
-
N || !(M != null && M.current) || G || (ee(!0), M.current.focus(),
|
|
15314
|
+
N || !(M != null && M.current) || G || (ee(!0), M.current.focus(), b && b());
|
|
15298
15315
|
}
|
|
15299
15316
|
function $() {
|
|
15300
15317
|
ee(!1), D && M.current && M.current.blur();
|
|
@@ -15396,7 +15413,7 @@ function hE(t) {
|
|
|
15396
15413
|
function D() {
|
|
15397
15414
|
f(!v), l && l(y ? s : a || "checked");
|
|
15398
15415
|
}
|
|
15399
|
-
const
|
|
15416
|
+
const b = `arkynSwitch ${y ? "checkedTrue" : "checkedFalse"} ${r} ${u}`;
|
|
15400
15417
|
return /* @__PURE__ */ ne(st, { orientation: d, children: [
|
|
15401
15418
|
e && /* @__PURE__ */ C(at, { onClick: D, children: e }),
|
|
15402
15419
|
/* @__PURE__ */ C(
|
|
@@ -15404,7 +15421,7 @@ function hE(t) {
|
|
|
15404
15421
|
{
|
|
15405
15422
|
type: "button",
|
|
15406
15423
|
onClick: D,
|
|
15407
|
-
className:
|
|
15424
|
+
className: b,
|
|
15408
15425
|
...h,
|
|
15409
15426
|
children: /* @__PURE__ */ C(
|
|
15410
15427
|
"input",
|
|
@@ -15472,7 +15489,7 @@ function DE(t) {
|
|
|
15472
15489
|
placeholder: f,
|
|
15473
15490
|
id: y,
|
|
15474
15491
|
...D
|
|
15475
|
-
} = t, { fieldErrors: w } = lt(), [
|
|
15492
|
+
} = t, { fieldErrors: w } = lt(), [b, B] = F(!1), A = me(null), O = y || mt(), j = i || (w == null ? void 0 : w[l]), R = `arkynTextarea ${e} ${r} ${a || s ? "opacityTrue" : "opacityFalse"} ${!!j ? "errorTrue" : "errorFalse"} ${b ? "focusedTrue" : "focusedFalse"}`;
|
|
15476
15493
|
function I() {
|
|
15477
15494
|
a || !(A != null && A.current) || (B(!0), A.current.focus());
|
|
15478
15495
|
}
|
|
@@ -15659,7 +15676,7 @@ var _D = (t) => typeof t == "function", Zn = (t, e) => _D(t) ? t(e) : t, UD = /*
|
|
|
15659
15676
|
zc(e, t);
|
|
15660
15677
|
}, VD = { blank: 4e3, error: 4e3, success: 2e3, loading: 1 / 0, custom: 4e3 }, GD = (t = {}, e = Ma) => {
|
|
15661
15678
|
let [r, n] = F(wt[e] || $c), i = me(wt[e]);
|
|
15662
|
-
|
|
15679
|
+
E(() => (i.current !== wt[e] && n(wt[e]), Mn.push([e, n]), () => {
|
|
15663
15680
|
let s = Mn.findIndex(([o]) => o === e);
|
|
15664
15681
|
s > -1 && Mn.splice(s, 1);
|
|
15665
15682
|
}), [e]);
|
|
@@ -15704,7 +15721,7 @@ var ZD = 1e3, KD = (t, e = "default") => {
|
|
|
15704
15721
|
}, h);
|
|
15705
15722
|
i.set(d, m);
|
|
15706
15723
|
}, []);
|
|
15707
|
-
|
|
15724
|
+
E(() => {
|
|
15708
15725
|
if (n) return;
|
|
15709
15726
|
let d = Date.now(), h = r.map((m) => {
|
|
15710
15727
|
if (m.duration === 1 / 0) return;
|
|
@@ -15726,10 +15743,10 @@ var ZD = 1e3, KD = (t, e = "default") => {
|
|
|
15726
15743
|
}, [s]), l = Ee(() => {
|
|
15727
15744
|
n && s({ type: 6, time: Date.now() });
|
|
15728
15745
|
}, [n, s]), c = Ee((d, h) => {
|
|
15729
|
-
let { reverseOrder: m = !1, gutter: g = 8, defaultPosition: v } = h || {}, f = r.filter((w) => (w.position || v) === (d.position || v) && w.height), y = f.findIndex((w) => w.id === d.id), D = f.filter((w,
|
|
15730
|
-
return f.filter((w) => w.visible).slice(...m ? [D + 1] : [0, D]).reduce((w,
|
|
15746
|
+
let { reverseOrder: m = !1, gutter: g = 8, defaultPosition: v } = h || {}, f = r.filter((w) => (w.position || v) === (d.position || v) && w.height), y = f.findIndex((w) => w.id === d.id), D = f.filter((w, b) => b < y && w.visible).length;
|
|
15747
|
+
return f.filter((w) => w.visible).slice(...m ? [D + 1] : [0, D]).reduce((w, b) => w + (b.height || 0) + g, 0);
|
|
15731
15748
|
}, [r]);
|
|
15732
|
-
return
|
|
15749
|
+
return E(() => {
|
|
15733
15750
|
r.forEach((d) => {
|
|
15734
15751
|
if (d.dismissed) a(d.id, d.removeDelay);
|
|
15735
15752
|
else {
|
|
@@ -16010,7 +16027,7 @@ const wy = [
|
|
|
16010
16027
|
], By = ["Created", "Found", "Success", "Updated"];
|
|
16011
16028
|
function EE(t) {
|
|
16012
16029
|
const { closeAll: e } = kD(), { showToast: r } = Ey(), n = t == null ? void 0 : t.closeModal, i = t == null ? void 0 : t.message, a = t == null ? void 0 : t.name, s = t == null ? void 0 : t.type;
|
|
16013
|
-
|
|
16030
|
+
E(() => {
|
|
16014
16031
|
n && e(), i && (s === "success" && r({ message: i, type: "success" }), s === "danger" && r({ message: i, type: "danger" }), wy.includes(a) && r({ message: i, type: "danger" }), By.includes(a) && r({ message: i, type: "success" }));
|
|
16015
16032
|
}, [t]);
|
|
16016
16033
|
}
|