@arkyn/components 3.0.1-beta.93 → 3.0.1-beta.94
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 +1041 -1043
- package/dist/bundle.umd.cjs +12 -12
- package/dist/components/checkbox/index.js +3 -3
- package/dist/components/currencyInput/index.js +3 -3
- package/dist/components/imageUpload/index.d.ts +2 -0
- package/dist/components/imageUpload/index.d.ts.map +1 -1
- package/dist/components/imageUpload/index.js +3 -2
- package/dist/components/input/index.js +3 -3
- package/dist/components/mapView/index.js +1 -1
- package/dist/components/maskedInput/index.js +3 -3
- package/dist/components/multiSelect/index.d.ts.map +1 -1
- package/dist/components/multiSelect/index.js +2 -2
- package/dist/components/phoneInput/index.d.ts.map +1 -1
- package/dist/components/phoneInput/index.js +2 -2
- package/dist/components/radio/radioGroup/index.js +3 -3
- package/dist/components/select/index.d.ts.map +1 -1
- package/dist/components/select/index.js +2 -2
- package/dist/components/textarea/index.js +3 -3
- package/package.json +1 -1
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 b, 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, E = Math.min(Math.max(w / D.width * 100, 0), 100);
|
|
74
|
+
e(E);
|
|
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, E = Math.min(Math.max(w / D.width * 100, 0), 100);
|
|
78
|
+
e(E);
|
|
79
79
|
};
|
|
80
|
-
|
|
80
|
+
b(() => (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}`;
|
|
@@ -97,7 +97,7 @@ function Xf(t) {
|
|
|
97
97
|
);
|
|
98
98
|
}
|
|
99
99
|
function Yf(t) {
|
|
100
|
-
var A, O,
|
|
100
|
+
var A, O, j, P;
|
|
101
101
|
const { onPlayAudio: e, onPauseAudio: r, disabled: n, ...i } = t, [a, s] = Kf(0), [o, u] = F(!1), [l, c] = F(!1), d = me(null), h = (A = d.current) == null ? void 0 : A.currentTime, m = (O = d.current) == null ? void 0 : O.duration, g = y(h), v = y(m), f = {
|
|
102
102
|
totalTime: m,
|
|
103
103
|
currentTime: h,
|
|
@@ -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 E() {
|
|
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 ? (
|
|
129
|
+
return l || !o ? (j = d.current) == null || j.pause() : o && ((P = d.current) == null || P.play()), b(() => {
|
|
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: E, 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
|
+
b(() => {
|
|
270
270
|
const h = () => {
|
|
271
271
|
if (!u.current) return;
|
|
272
272
|
const v = document.getElementById(o);
|
|
@@ -405,24 +405,24 @@ function Vb(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,
|
|
409
|
-
async function M(
|
|
408
|
+
} = t, { fieldErrors: v } = lt(), f = v == null ? void 0 : v[e], [y, D] = F(h), [w, E] = F(""), [B, A] = F(null), [O, j] = F(h), [P, S] = F(!1);
|
|
409
|
+
async function M(z) {
|
|
410
410
|
if (g) return;
|
|
411
|
-
S(!0), A(
|
|
411
|
+
S(!0), A(z), E("");
|
|
412
412
|
const Q = new FormData();
|
|
413
|
-
Q.append(n,
|
|
414
|
-
|
|
415
|
-
}).catch((
|
|
416
|
-
console.error(
|
|
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 ? E(V.error) : D(V == null ? void 0 : V[s]), a && a(V == null ? void 0 : V[s]);
|
|
415
|
+
}).catch((V) => {
|
|
416
|
+
console.error(V), E("Erro ao enviar audio");
|
|
417
417
|
}).finally(() => S(!1));
|
|
418
418
|
}
|
|
419
|
-
function k(
|
|
419
|
+
function k(z) {
|
|
420
420
|
if (!g) {
|
|
421
|
-
if (
|
|
422
|
-
|
|
421
|
+
if (z.type.indexOf("audio") === -1) {
|
|
422
|
+
E("O arquivo selecionado não é um arquivo de áudio");
|
|
423
423
|
return;
|
|
424
424
|
}
|
|
425
|
-
|
|
425
|
+
j(URL.createObjectURL(z)), M(z);
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
const R = f || w;
|
|
@@ -541,12 +541,12 @@ function Kb(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),
|
|
545
|
-
function
|
|
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), E = typeof u == "boolean" ? u : D, O = `arkynCheckbox ${i} ${y ? "errorTrue" : "errorFalse"} ${E ? "checkedTrue" : "checkedFalse"}`;
|
|
545
|
+
function j() {
|
|
546
546
|
const P = D;
|
|
547
547
|
w(!P), l && l(P ? "" : d || "checked");
|
|
548
548
|
}
|
|
549
|
-
return /* @__PURE__ */ ne(st, { orientation: c, children: [
|
|
549
|
+
return /* @__PURE__ */ ne(st, { orientation: c, className: n, children: [
|
|
550
550
|
o && /* @__PURE__ */ C(at, { htmlFor: v, children: o }),
|
|
551
551
|
/* @__PURE__ */ ne(
|
|
552
552
|
"button",
|
|
@@ -554,7 +554,7 @@ function Kb(t) {
|
|
|
554
554
|
id: v,
|
|
555
555
|
type: "button",
|
|
556
556
|
className: O,
|
|
557
|
-
onClick:
|
|
557
|
+
onClick: j,
|
|
558
558
|
...h,
|
|
559
559
|
children: [
|
|
560
560
|
/* @__PURE__ */ C(
|
|
@@ -563,7 +563,7 @@ function Kb(t) {
|
|
|
563
563
|
type: "hidden",
|
|
564
564
|
name: r,
|
|
565
565
|
ref: g,
|
|
566
|
-
value:
|
|
566
|
+
value: E ? d || "checked" : ""
|
|
567
567
|
}
|
|
568
568
|
),
|
|
569
569
|
/* @__PURE__ */ C(Xn, {})
|
|
@@ -618,15 +618,15 @@ function Yb(t) {
|
|
|
618
618
|
readOnly: y,
|
|
619
619
|
onFocus: D,
|
|
620
620
|
onBlur: w,
|
|
621
|
-
errorMessage:
|
|
621
|
+
errorMessage: E,
|
|
622
622
|
showAsterisk: B,
|
|
623
623
|
rightIcon: A,
|
|
624
624
|
size: O = "md",
|
|
625
|
-
id:
|
|
625
|
+
id: j,
|
|
626
626
|
...P
|
|
627
|
-
} = t, { fieldErrors: S } = lt(), [M, k] = F(!1), [R, I] = F("0"), N = me(null), K =
|
|
627
|
+
} = t, { fieldErrors: S } = lt(), [M, k] = F(!1), [R, I] = F("0"), N = me(null), K = j || mt(), z = E || (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
|
}
|
|
631
631
|
function x(ge) {
|
|
632
632
|
k(!0), D && D(ge);
|
|
@@ -634,31 +634,31 @@ function Yb(t) {
|
|
|
634
634
|
function U(ge) {
|
|
635
635
|
k(!1), w && w(ge);
|
|
636
636
|
}
|
|
637
|
-
const
|
|
637
|
+
const $ = (ge) => {
|
|
638
638
|
const [we, be] = pi(
|
|
639
639
|
ge,
|
|
640
640
|
d
|
|
641
641
|
);
|
|
642
642
|
return !c || we <= c ? (I(be), [we, be]) : pi(ge, d);
|
|
643
|
-
},
|
|
643
|
+
}, q = (ge) => {
|
|
644
644
|
ge.preventDefault();
|
|
645
|
-
const [we, be] =
|
|
645
|
+
const [we, be] = $(ge.target.value);
|
|
646
646
|
h && h(ge, String(we), String(be));
|
|
647
647
|
};
|
|
648
|
-
|
|
648
|
+
b(() => {
|
|
649
649
|
const ge = u || +l || void 0, [, we] = pi(ge, d);
|
|
650
650
|
I(we);
|
|
651
651
|
}, [d, l, u]);
|
|
652
|
-
const ce = `arkynCurrencyInput ${m ? "hasPrefix" : ""} ${g ? "hasSuffix" : ""} ${a} ${O} ${
|
|
653
|
-
return /* @__PURE__ */ ne(st, { children: [
|
|
652
|
+
const ce = `arkynCurrencyInput ${m ? "hasPrefix" : ""} ${g ? "hasSuffix" : ""} ${a} ${O} ${V || y || v ? "opacity" : ""} ${Q ? "errored" : ""} ${M ? "focused" : ""}`;
|
|
653
|
+
return /* @__PURE__ */ ne(st, { className: o, children: [
|
|
654
654
|
s && /* @__PURE__ */ C(at, { showAsterisk: B, htmlFor: K, children: s }),
|
|
655
655
|
/* @__PURE__ */ ne(
|
|
656
656
|
"section",
|
|
657
657
|
{
|
|
658
658
|
title: n,
|
|
659
659
|
style: i,
|
|
660
|
-
onClick: T,
|
|
661
660
|
className: ce,
|
|
661
|
+
onClick: T,
|
|
662
662
|
children: [
|
|
663
663
|
/* @__PURE__ */ C(Se, { iconSize: ee, icon: m, className: "prefix" }),
|
|
664
664
|
/* @__PURE__ */ C(
|
|
@@ -674,15 +674,15 @@ function Yb(t) {
|
|
|
674
674
|
/* @__PURE__ */ C(
|
|
675
675
|
"input",
|
|
676
676
|
{
|
|
677
|
-
disabled:
|
|
677
|
+
disabled: V,
|
|
678
678
|
readOnly: y,
|
|
679
679
|
ref: N,
|
|
680
680
|
onFocus: x,
|
|
681
681
|
onBlur: U,
|
|
682
|
-
onChange:
|
|
682
|
+
onChange: q,
|
|
683
683
|
id: K,
|
|
684
|
-
placeholder:
|
|
685
|
-
value:
|
|
684
|
+
placeholder: V ? R : void 0,
|
|
685
|
+
value: V ? void 0 : R,
|
|
686
686
|
...P
|
|
687
687
|
}
|
|
688
688
|
),
|
|
@@ -709,14 +709,14 @@ function Yb(t) {
|
|
|
709
709
|
]
|
|
710
710
|
}
|
|
711
711
|
),
|
|
712
|
-
|
|
712
|
+
z && /* @__PURE__ */ C(ct, { children: z })
|
|
713
713
|
] });
|
|
714
714
|
}
|
|
715
715
|
function id() {
|
|
716
716
|
return typeof window > "u" ? 0 : window.innerWidth - document.documentElement.clientWidth;
|
|
717
717
|
}
|
|
718
718
|
function wr(t) {
|
|
719
|
-
|
|
719
|
+
b(() => {
|
|
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,8 +906,8 @@ function eE(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(""), [
|
|
910
|
-
async function
|
|
909
|
+
} = t, { fieldErrors: g } = lt(), v = g == null ? void 0 : g[e], [f, y] = F(""), [D, w] = F(""), [E, B] = F(null), [A, O] = F(!1);
|
|
910
|
+
async function j(I) {
|
|
911
911
|
if (m) return;
|
|
912
912
|
O(!0), B(I), w("");
|
|
913
913
|
const N = new FormData();
|
|
@@ -918,14 +918,14 @@ function eE(t) {
|
|
|
918
918
|
}).finally(() => O(!1));
|
|
919
919
|
}
|
|
920
920
|
function P(I) {
|
|
921
|
-
m ||
|
|
921
|
+
m || j(I);
|
|
922
922
|
}
|
|
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"} ${E ? "hasFile" : "noHasFile"}`, children: [
|
|
927
927
|
/* @__PURE__ */ C("input", { type: "hidden", name: e, value: f || "" }),
|
|
928
|
-
!
|
|
928
|
+
!E && /* @__PURE__ */ C(
|
|
929
929
|
ud,
|
|
930
930
|
{
|
|
931
931
|
disabled: m,
|
|
@@ -936,16 +936,16 @@ function eE(t) {
|
|
|
936
936
|
selectFileButtonText: c
|
|
937
937
|
}
|
|
938
938
|
),
|
|
939
|
-
|
|
939
|
+
E && /* @__PURE__ */ C(
|
|
940
940
|
od,
|
|
941
941
|
{
|
|
942
942
|
disabled: m,
|
|
943
943
|
isLoading: A,
|
|
944
944
|
acceptFile: o,
|
|
945
|
-
file:
|
|
945
|
+
file: E,
|
|
946
946
|
handleSelectFile: P,
|
|
947
947
|
changeFileButtonText: l,
|
|
948
|
-
reSendFile: S &&
|
|
948
|
+
reSendFile: S && E ? () => j(E) : void 0
|
|
949
949
|
}
|
|
950
950
|
)
|
|
951
951
|
] }),
|
|
@@ -1055,58 +1055,59 @@ function fd(t) {
|
|
|
1055
1055
|
showAsterisk: i = !1,
|
|
1056
1056
|
action: a,
|
|
1057
1057
|
fileName: s = "file",
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1058
|
+
className: o = "",
|
|
1059
|
+
method: u = "POST",
|
|
1060
|
+
acceptImage: l = "image/*",
|
|
1061
|
+
fileResponseName: c = "url",
|
|
1062
|
+
changeImageButtonText: d = "Alterar imagem",
|
|
1063
|
+
selectImageButtonText: h = "Selecionar imagem",
|
|
1064
|
+
dropImageText: m = "Ou arraste e solte a imagem aqui",
|
|
1065
|
+
onChange: g,
|
|
1066
|
+
disabled: v = !1
|
|
1067
|
+
} = t, { fieldErrors: f } = lt(), y = f == null ? void 0 : f[e], [D, w] = F(r), [E, B] = F(""), [A, O] = F(null), [j, P] = F(r), [S, M] = F(!1);
|
|
1068
|
+
async function k(Q) {
|
|
1069
|
+
if (v) return;
|
|
1070
|
+
M(!0), O(Q), B("");
|
|
1071
|
+
const V = new FormData();
|
|
1072
|
+
V.append(s, Q), await fetch(a, { method: u, body: V }).then(async (G) => await G.json()).then((G) => {
|
|
1073
|
+
G != null && G.error ? B(G.error) : w(G == null ? void 0 : G[c]), g && g(G == null ? void 0 : G[c]);
|
|
1074
|
+
}).catch((G) => {
|
|
1075
|
+
console.error(G), B("Erro ao enviar imagem");
|
|
1076
|
+
}).finally(() => M(!1));
|
|
1077
|
+
}
|
|
1078
|
+
function R(Q) {
|
|
1079
|
+
v || (P(URL.createObjectURL(Q)), k(Q));
|
|
1080
|
+
}
|
|
1081
|
+
const I = y || E;
|
|
1082
|
+
return /* @__PURE__ */ ne(st, { className: o, children: [
|
|
1082
1083
|
n && /* @__PURE__ */ C(at, { showAsterisk: i, children: n }),
|
|
1083
|
-
/* @__PURE__ */ ne("div", { className: `arkynImageUpload ${
|
|
1084
|
-
/* @__PURE__ */ C("input", { type: "hidden", name: e, value:
|
|
1085
|
-
!
|
|
1084
|
+
/* @__PURE__ */ ne("div", { className: `arkynImageUpload ${I ? "hasError" : "noHasError"} ${j ? "hasImage" : "noHasImage"}`, children: [
|
|
1085
|
+
/* @__PURE__ */ C("input", { type: "hidden", name: e, value: D || "" }),
|
|
1086
|
+
!j && /* @__PURE__ */ C(
|
|
1086
1087
|
cd,
|
|
1087
1088
|
{
|
|
1088
|
-
disabled:
|
|
1089
|
-
isLoading:
|
|
1090
|
-
acceptImage:
|
|
1091
|
-
dropImageText:
|
|
1092
|
-
handleSelectFile:
|
|
1093
|
-
selectImageButtonText:
|
|
1089
|
+
disabled: v,
|
|
1090
|
+
isLoading: S,
|
|
1091
|
+
acceptImage: l,
|
|
1092
|
+
dropImageText: m,
|
|
1093
|
+
handleSelectFile: R,
|
|
1094
|
+
selectImageButtonText: h
|
|
1094
1095
|
}
|
|
1095
1096
|
),
|
|
1096
|
-
|
|
1097
|
+
j && /* @__PURE__ */ C(
|
|
1097
1098
|
ld,
|
|
1098
1099
|
{
|
|
1099
|
-
disabled:
|
|
1100
|
-
isLoading:
|
|
1101
|
-
acceptImage:
|
|
1102
|
-
filePath:
|
|
1103
|
-
handleSelectFile:
|
|
1104
|
-
changeImageButtonText:
|
|
1105
|
-
reSendImage:
|
|
1100
|
+
disabled: v,
|
|
1101
|
+
isLoading: S,
|
|
1102
|
+
acceptImage: l,
|
|
1103
|
+
filePath: j,
|
|
1104
|
+
handleSelectFile: R,
|
|
1105
|
+
changeImageButtonText: d,
|
|
1106
|
+
reSendImage: I && A ? () => k(A) : void 0
|
|
1106
1107
|
}
|
|
1107
1108
|
)
|
|
1108
1109
|
] }),
|
|
1109
|
-
|
|
1110
|
+
I && /* @__PURE__ */ C(ct, { children: I })
|
|
1110
1111
|
] });
|
|
1111
1112
|
}
|
|
1112
1113
|
function Jn(t) {
|
|
@@ -1130,11 +1131,11 @@ function Jn(t) {
|
|
|
1130
1131
|
rightIcon: y,
|
|
1131
1132
|
type: D = "text",
|
|
1132
1133
|
size: w = "md",
|
|
1133
|
-
id:
|
|
1134
|
+
id: E,
|
|
1134
1135
|
value: B,
|
|
1135
1136
|
placeholder: A,
|
|
1136
1137
|
...O
|
|
1137
|
-
} = t, { fieldErrors:
|
|
1138
|
+
} = t, { fieldErrors: j } = lt(), [P, S] = F(!1), M = me(null), k = E || 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;
|
|
1138
1139
|
function ee() {
|
|
1139
1140
|
N || !(M != null && M.current) || (S(!0), M.current.focus());
|
|
1140
1141
|
}
|
|
@@ -1155,8 +1156,8 @@ function Jn(t) {
|
|
|
1155
1156
|
...O
|
|
1156
1157
|
}
|
|
1157
1158
|
);
|
|
1158
|
-
const J = `arkynInput ${u ? "hasPrefix" : ""} ${r ? "disabled" : ""} ${l ? "hasSuffix" : ""} ${a} ${w} ${N || h || c ? "opacity" : ""} ${I ? "errored" : ""} ${P ? "focused" : ""}
|
|
1159
|
-
return /* @__PURE__ */ ne(st, { children: [
|
|
1159
|
+
const J = `arkynInput ${u ? "hasPrefix" : ""} ${r ? "disabled" : ""} ${l ? "hasSuffix" : ""} ${a} ${w} ${N || h || c ? "opacity" : ""} ${I ? "errored" : ""} ${P ? "focused" : ""}`;
|
|
1160
|
+
return /* @__PURE__ */ ne(st, { className: o, children: [
|
|
1160
1161
|
s && /* @__PURE__ */ C(at, { showAsterisk: f, htmlFor: k, children: s }),
|
|
1161
1162
|
/* @__PURE__ */ ne(
|
|
1162
1163
|
"section",
|
|
@@ -1166,17 +1167,17 @@ function Jn(t) {
|
|
|
1166
1167
|
onClick: ee,
|
|
1167
1168
|
className: J,
|
|
1168
1169
|
children: [
|
|
1169
|
-
/* @__PURE__ */ C(Se, { iconSize:
|
|
1170
|
+
/* @__PURE__ */ C(Se, { iconSize: z, icon: u, className: "prefix" }),
|
|
1170
1171
|
/* @__PURE__ */ C(
|
|
1171
1172
|
Se,
|
|
1172
1173
|
{
|
|
1173
|
-
show:
|
|
1174
|
-
iconSize:
|
|
1174
|
+
show: V,
|
|
1175
|
+
iconSize: z,
|
|
1175
1176
|
className: "spinner",
|
|
1176
1177
|
icon: Bt
|
|
1177
1178
|
}
|
|
1178
1179
|
),
|
|
1179
|
-
/* @__PURE__ */ C(Se, { show: !c, icon: d, iconSize:
|
|
1180
|
+
/* @__PURE__ */ C(Se, { show: !c, icon: d, iconSize: z }),
|
|
1180
1181
|
/* @__PURE__ */ C(
|
|
1181
1182
|
"input",
|
|
1182
1183
|
{
|
|
@@ -1193,17 +1194,17 @@ function Jn(t) {
|
|
|
1193
1194
|
...O
|
|
1194
1195
|
}
|
|
1195
1196
|
),
|
|
1196
|
-
/* @__PURE__ */ C(Se, { show: !c, icon: y, iconSize:
|
|
1197
|
+
/* @__PURE__ */ C(Se, { show: !c, icon: y, iconSize: z }),
|
|
1197
1198
|
/* @__PURE__ */ C(
|
|
1198
1199
|
Se,
|
|
1199
1200
|
{
|
|
1200
|
-
show:
|
|
1201
|
-
iconSize:
|
|
1201
|
+
show: G,
|
|
1202
|
+
iconSize: z,
|
|
1202
1203
|
className: "spinner",
|
|
1203
1204
|
icon: Bt
|
|
1204
1205
|
}
|
|
1205
1206
|
),
|
|
1206
|
-
/* @__PURE__ */ C(Se, { iconSize:
|
|
1207
|
+
/* @__PURE__ */ C(Se, { iconSize: z, icon: l, className: "suffix" })
|
|
1207
1208
|
]
|
|
1208
1209
|
}
|
|
1209
1210
|
),
|
|
@@ -1232,7 +1233,7 @@ function hd(t) {
|
|
|
1232
1233
|
var e = dd(t, "string");
|
|
1233
1234
|
return Ur(e) == "symbol" ? e : e + "";
|
|
1234
1235
|
}
|
|
1235
|
-
function
|
|
1236
|
+
function W(t, e, r) {
|
|
1236
1237
|
return (e = hd(e)) in t ? Object.defineProperty(t, e, {
|
|
1237
1238
|
value: r,
|
|
1238
1239
|
enumerable: !0,
|
|
@@ -1396,40 +1397,40 @@ function Ed(t) {
|
|
|
1396
1397
|
// onTiltChanged,
|
|
1397
1398
|
// onZoomChanged,
|
|
1398
1399
|
onLoad: w,
|
|
1399
|
-
onUnmount:
|
|
1400
|
-
} = t, [B, A] = F(null), O = me(null), [
|
|
1401
|
-
return
|
|
1400
|
+
onUnmount: E
|
|
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 b(() => {
|
|
1402
1403
|
r && B !== null && B.setOptions(r);
|
|
1403
|
-
}, [B, r]),
|
|
1404
|
+
}, [B, r]), b(() => {
|
|
1404
1405
|
B !== null && typeof s < "u" && B.setCenter(s);
|
|
1405
|
-
}, [B, s]),
|
|
1406
|
+
}, [B, s]), b(() => {
|
|
1406
1407
|
B && u && (S !== null && google.maps.event.removeListener(S), M(google.maps.event.addListener(B, "dblclick", u)));
|
|
1407
|
-
}, [u]),
|
|
1408
|
+
}, [u]), b(() => {
|
|
1408
1409
|
B && c && (k !== null && google.maps.event.removeListener(k), R(google.maps.event.addListener(B, "dragend", c)));
|
|
1409
|
-
}, [c]),
|
|
1410
|
+
}, [c]), b(() => {
|
|
1410
1411
|
B && d && (I !== null && google.maps.event.removeListener(I), N(google.maps.event.addListener(B, "dragstart", d)));
|
|
1411
|
-
}, [d]),
|
|
1412
|
-
B && v && (K !== null && google.maps.event.removeListener(K),
|
|
1413
|
-
}, [v]),
|
|
1414
|
-
B && h && (Q !== null && google.maps.event.removeListener(Q),
|
|
1415
|
-
}, [h]),
|
|
1416
|
-
B && m && (
|
|
1417
|
-
}, [m]),
|
|
1412
|
+
}, [d]), b(() => {
|
|
1413
|
+
B && v && (K !== null && google.maps.event.removeListener(K), z(google.maps.event.addListener(B, "mousedown", v)));
|
|
1414
|
+
}, [v]), b(() => {
|
|
1415
|
+
B && h && (Q !== null && google.maps.event.removeListener(Q), V(google.maps.event.addListener(B, "mousemove", h)));
|
|
1416
|
+
}, [h]), b(() => {
|
|
1417
|
+
B && m && (G !== null && google.maps.event.removeListener(G), ee(google.maps.event.addListener(B, "mouseout", m)));
|
|
1418
|
+
}, [m]), b(() => {
|
|
1418
1419
|
B && g && (re !== null && google.maps.event.removeListener(re), X(google.maps.event.addListener(B, "mouseover", g)));
|
|
1419
|
-
}, [g]),
|
|
1420
|
+
}, [g]), b(() => {
|
|
1420
1421
|
B && f && (oe !== null && google.maps.event.removeListener(oe), T(google.maps.event.addListener(B, "mouseup", f)));
|
|
1421
|
-
}, [f]),
|
|
1422
|
+
}, [f]), b(() => {
|
|
1422
1423
|
B && y && (x !== null && google.maps.event.removeListener(x), U(google.maps.event.addListener(B, "rightclick", y)));
|
|
1423
|
-
}, [y]),
|
|
1424
|
-
B && o && (
|
|
1425
|
-
}, [o]),
|
|
1424
|
+
}, [y]), b(() => {
|
|
1425
|
+
B && o && ($ !== null && google.maps.event.removeListener($), q(google.maps.event.addListener(B, "click", o)));
|
|
1426
|
+
}, [o]), b(() => {
|
|
1426
1427
|
B && l && (J !== null && google.maps.event.removeListener(J), Y(google.maps.event.addListener(B, "drag", l)));
|
|
1427
|
-
}, [l]),
|
|
1428
|
-
B && D && (
|
|
1429
|
-
}, [o]),
|
|
1428
|
+
}, [l]), b(() => {
|
|
1429
|
+
B && D && (j !== null && google.maps.event.removeListener(j), P(google.maps.event.addListener(B, "center_changed", D)));
|
|
1430
|
+
}, [o]), b(() => {
|
|
1430
1431
|
var ie = O.current === null ? null : new google.maps.Map(O.current, r);
|
|
1431
1432
|
return A(ie), ie !== null && w && w(ie), () => {
|
|
1432
|
-
ie !== null &&
|
|
1433
|
+
ie !== null && E && E(ie);
|
|
1433
1434
|
};
|
|
1434
1435
|
}, []), C("div", {
|
|
1435
1436
|
id: n,
|
|
@@ -1445,14 +1446,14 @@ function Ed(t) {
|
|
|
1445
1446
|
Re(Ed);
|
|
1446
1447
|
class wd extends ke {
|
|
1447
1448
|
constructor() {
|
|
1448
|
-
super(...arguments),
|
|
1449
|
+
super(...arguments), W(this, "state", {
|
|
1449
1450
|
map: null
|
|
1450
|
-
}),
|
|
1451
|
+
}), W(this, "registeredEvents", []), W(this, "mapRef", null), W(this, "getInstance", () => this.mapRef === null ? null : new google.maps.Map(this.mapRef, this.props.options)), W(this, "panTo", (e) => {
|
|
1451
1452
|
var r = this.getInstance();
|
|
1452
1453
|
r && r.panTo(e);
|
|
1453
|
-
}),
|
|
1454
|
+
}), W(this, "setMapCallback", () => {
|
|
1454
1455
|
this.state.map !== null && this.props.onLoad && this.props.onLoad(this.state.map);
|
|
1455
|
-
}),
|
|
1456
|
+
}), W(this, "getRef", (e) => {
|
|
1456
1457
|
this.mapRef = e;
|
|
1457
1458
|
});
|
|
1458
1459
|
}
|
|
@@ -1625,11 +1626,11 @@ var Ti = {
|
|
|
1625
1626
|
};
|
|
1626
1627
|
class Bd extends ke {
|
|
1627
1628
|
constructor() {
|
|
1628
|
-
super(...arguments),
|
|
1629
|
+
super(...arguments), W(this, "check", null), W(this, "state", {
|
|
1629
1630
|
loaded: !1
|
|
1630
|
-
}),
|
|
1631
|
+
}), W(this, "cleanupCallback", () => {
|
|
1631
1632
|
delete window.google.maps, this.injectScript();
|
|
1632
|
-
}),
|
|
1633
|
+
}), W(this, "isCleaningUp", /* @__PURE__ */ pl(function* () {
|
|
1633
1634
|
function e(r) {
|
|
1634
1635
|
if (!Lr)
|
|
1635
1636
|
r();
|
|
@@ -1639,7 +1640,7 @@ class Bd extends ke {
|
|
|
1639
1640
|
}, 1);
|
|
1640
1641
|
}
|
|
1641
1642
|
return new Promise(e);
|
|
1642
|
-
})),
|
|
1643
|
+
})), W(this, "cleanup", () => {
|
|
1643
1644
|
Lr = !0;
|
|
1644
1645
|
var e = document.getElementById(this.props.id);
|
|
1645
1646
|
e && e.parentNode && e.parentNode.removeChild(e), Array.prototype.slice.call(document.getElementsByTagName("script")).filter(function(n) {
|
|
@@ -1655,7 +1656,7 @@ class Bd extends ke {
|
|
|
1655
1656
|
}).forEach(function(n) {
|
|
1656
1657
|
n.parentNode && n.parentNode.removeChild(n);
|
|
1657
1658
|
});
|
|
1658
|
-
}),
|
|
1659
|
+
}), W(this, "injectScript", () => {
|
|
1659
1660
|
this.props.preventGoogleFontsLoading && Cl(), $e(!!this.props.id, 'LoadScript requires "id" prop to be a string: %s', this.props.id);
|
|
1660
1661
|
var e = {
|
|
1661
1662
|
id: this.props.id,
|
|
@@ -1674,7 +1675,7 @@ class Bd extends ke {
|
|
|
1674
1675
|
Otherwise it is a Network issue.
|
|
1675
1676
|
`));
|
|
1676
1677
|
});
|
|
1677
|
-
}),
|
|
1678
|
+
}), W(this, "getRef", (e) => {
|
|
1678
1679
|
this.check = e;
|
|
1679
1680
|
});
|
|
1680
1681
|
}
|
|
@@ -1713,7 +1714,7 @@ class Bd extends ke {
|
|
|
1713
1714
|
});
|
|
1714
1715
|
}
|
|
1715
1716
|
}
|
|
1716
|
-
|
|
1717
|
+
W(Bd, "defaultProps", Ti);
|
|
1717
1718
|
function Ad(t, e) {
|
|
1718
1719
|
if (t == null) return {};
|
|
1719
1720
|
var r = {};
|
|
@@ -1749,13 +1750,13 @@ function yl(t) {
|
|
|
1749
1750
|
authReferrerPolicy: h,
|
|
1750
1751
|
apiUrl: m = "https://maps.googleapis.com"
|
|
1751
1752
|
} = t, g = me(!1), [v, f] = F(!1), [y, D] = F(void 0);
|
|
1752
|
-
|
|
1753
|
+
b(function() {
|
|
1753
1754
|
return g.current = !0, () => {
|
|
1754
1755
|
g.current = !1;
|
|
1755
1756
|
};
|
|
1756
|
-
}, []),
|
|
1757
|
+
}, []), b(function() {
|
|
1757
1758
|
Qt && l && Cl();
|
|
1758
|
-
}, [l]),
|
|
1759
|
+
}, [l]), b(function() {
|
|
1759
1760
|
v && $e(!!window.google, "useLoadScript was marked as loaded, but window.google is not present. Something went wrong.");
|
|
1760
1761
|
}, [v]);
|
|
1761
1762
|
var w = vl({
|
|
@@ -1770,7 +1771,7 @@ function yl(t) {
|
|
|
1770
1771
|
authReferrerPolicy: h,
|
|
1771
1772
|
apiUrl: m
|
|
1772
1773
|
});
|
|
1773
|
-
|
|
1774
|
+
b(function() {
|
|
1774
1775
|
if (!Qt)
|
|
1775
1776
|
return;
|
|
1776
1777
|
function A() {
|
|
@@ -1784,16 +1785,16 @@ function yl(t) {
|
|
|
1784
1785
|
id: e,
|
|
1785
1786
|
url: w,
|
|
1786
1787
|
nonce: n
|
|
1787
|
-
}).then(A).catch(function(
|
|
1788
|
-
g.current && D(
|
|
1788
|
+
}).then(A).catch(function(j) {
|
|
1789
|
+
g.current && D(j), console.warn(`
|
|
1789
1790
|
There has been an Error with loading Google Maps API script, please check that you provided correct google API key (`.concat(i || "-", ") or Client ID (").concat(a || "-", `)
|
|
1790
1791
|
Otherwise it is a Network issue.
|
|
1791
|
-
`)), console.error(
|
|
1792
|
+
`)), console.error(j);
|
|
1792
1793
|
});
|
|
1793
1794
|
}, [e, w, n]);
|
|
1794
|
-
var
|
|
1795
|
-
return
|
|
1796
|
-
|
|
1795
|
+
var E = me(void 0);
|
|
1796
|
+
return b(function() {
|
|
1797
|
+
E.current && u !== E.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"), E.current = u;
|
|
1797
1798
|
}, [u]), {
|
|
1798
1799
|
isLoaded: v,
|
|
1799
1800
|
loadError: y,
|
|
@@ -1812,11 +1813,11 @@ function xd(t) {
|
|
|
1812
1813
|
isLoaded: o,
|
|
1813
1814
|
loadError: u
|
|
1814
1815
|
} = yl(s);
|
|
1815
|
-
return
|
|
1816
|
+
return b(function() {
|
|
1816
1817
|
o && typeof r == "function" && r();
|
|
1817
|
-
}, [o, r]),
|
|
1818
|
+
}, [o, r]), b(function() {
|
|
1818
1819
|
u && typeof n == "function" && n(u);
|
|
1819
|
-
}, [u, n]),
|
|
1820
|
+
}, [u, n]), b(function() {
|
|
1820
1821
|
return () => {
|
|
1821
1822
|
i && i();
|
|
1822
1823
|
};
|
|
@@ -1841,7 +1842,7 @@ function kn(t) {
|
|
|
1841
1842
|
for (var e = 1; e < arguments.length; e++) {
|
|
1842
1843
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
1843
1844
|
e % 2 ? as(Object(r), !0).forEach(function(n) {
|
|
1844
|
-
|
|
1845
|
+
W(t, n, r[n]);
|
|
1845
1846
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : as(Object(r)).forEach(function(n) {
|
|
1846
1847
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
1847
1848
|
});
|
|
@@ -1859,11 +1860,11 @@ function Fd(t) {
|
|
|
1859
1860
|
onLoad: r,
|
|
1860
1861
|
onUnmount: n
|
|
1861
1862
|
} = t, i = Ae(pe), [a, s] = F(null);
|
|
1862
|
-
return
|
|
1863
|
+
return b(() => {
|
|
1863
1864
|
a !== null && a.setMap(i);
|
|
1864
|
-
}, [i]),
|
|
1865
|
+
}, [i]), b(() => {
|
|
1865
1866
|
e && a !== null && a.setOptions(e);
|
|
1866
|
-
}, [a, e]),
|
|
1867
|
+
}, [a, e]), b(() => {
|
|
1867
1868
|
var o = new google.maps.TrafficLayer(kn(kn({}, e), {}, {
|
|
1868
1869
|
map: i
|
|
1869
1870
|
}));
|
|
@@ -1875,11 +1876,11 @@ function Fd(t) {
|
|
|
1875
1876
|
Re(Fd);
|
|
1876
1877
|
class Pd extends ke {
|
|
1877
1878
|
constructor() {
|
|
1878
|
-
super(...arguments),
|
|
1879
|
+
super(...arguments), W(this, "state", {
|
|
1879
1880
|
trafficLayer: null
|
|
1880
|
-
}),
|
|
1881
|
+
}), W(this, "setTrafficLayerCallback", () => {
|
|
1881
1882
|
this.state.trafficLayer !== null && this.props.onLoad && this.props.onLoad(this.state.trafficLayer);
|
|
1882
|
-
}),
|
|
1883
|
+
}), W(this, "registeredEvents", []);
|
|
1883
1884
|
}
|
|
1884
1885
|
componentDidMount() {
|
|
1885
1886
|
var e = new google.maps.TrafficLayer(kn(kn({}, this.props.options), {}, {
|
|
@@ -1913,15 +1914,15 @@ class Pd extends ke {
|
|
|
1913
1914
|
return null;
|
|
1914
1915
|
}
|
|
1915
1916
|
}
|
|
1916
|
-
|
|
1917
|
+
W(Pd, "contextType", pe);
|
|
1917
1918
|
function Sd(t) {
|
|
1918
1919
|
var {
|
|
1919
1920
|
onLoad: e,
|
|
1920
1921
|
onUnmount: r
|
|
1921
1922
|
} = t, n = Ae(pe), [i, a] = F(null);
|
|
1922
|
-
return
|
|
1923
|
+
return b(() => {
|
|
1923
1924
|
i !== null && i.setMap(n);
|
|
1924
|
-
}, [n]),
|
|
1925
|
+
}, [n]), b(() => {
|
|
1925
1926
|
var s = new google.maps.BicyclingLayer();
|
|
1926
1927
|
return a(s), s.setMap(n), e && e(s), () => {
|
|
1927
1928
|
s !== null && (r && r(s), s.setMap(null));
|
|
@@ -1931,9 +1932,9 @@ function Sd(t) {
|
|
|
1931
1932
|
Re(Sd);
|
|
1932
1933
|
class Md extends ke {
|
|
1933
1934
|
constructor() {
|
|
1934
|
-
super(...arguments),
|
|
1935
|
+
super(...arguments), W(this, "state", {
|
|
1935
1936
|
bicyclingLayer: null
|
|
1936
|
-
}),
|
|
1937
|
+
}), W(this, "setBicyclingLayerCallback", () => {
|
|
1937
1938
|
this.state.bicyclingLayer !== null && (this.state.bicyclingLayer.setMap(this.context), this.props.onLoad && this.props.onLoad(this.state.bicyclingLayer));
|
|
1938
1939
|
});
|
|
1939
1940
|
}
|
|
@@ -1950,15 +1951,15 @@ class Md extends ke {
|
|
|
1950
1951
|
return null;
|
|
1951
1952
|
}
|
|
1952
1953
|
}
|
|
1953
|
-
|
|
1954
|
+
W(Md, "contextType", pe);
|
|
1954
1955
|
function kd(t) {
|
|
1955
1956
|
var {
|
|
1956
1957
|
onLoad: e,
|
|
1957
1958
|
onUnmount: r
|
|
1958
1959
|
} = t, n = Ae(pe), [i, a] = F(null);
|
|
1959
|
-
return
|
|
1960
|
+
return b(() => {
|
|
1960
1961
|
i !== null && i.setMap(n);
|
|
1961
|
-
}, [n]),
|
|
1962
|
+
}, [n]), b(() => {
|
|
1962
1963
|
var s = new google.maps.TransitLayer();
|
|
1963
1964
|
return a(s), s.setMap(n), e && e(s), () => {
|
|
1964
1965
|
i !== null && (r && r(i), i.setMap(null));
|
|
@@ -1968,9 +1969,9 @@ function kd(t) {
|
|
|
1968
1969
|
Re(kd);
|
|
1969
1970
|
class Td extends ke {
|
|
1970
1971
|
constructor() {
|
|
1971
|
-
super(...arguments),
|
|
1972
|
+
super(...arguments), W(this, "state", {
|
|
1972
1973
|
transitLayer: null
|
|
1973
|
-
}),
|
|
1974
|
+
}), W(this, "setTransitLayerCallback", () => {
|
|
1974
1975
|
this.state.transitLayer !== null && (this.state.transitLayer.setMap(this.context), this.props.onLoad && this.props.onLoad(this.state.transitLayer));
|
|
1975
1976
|
});
|
|
1976
1977
|
}
|
|
@@ -1989,7 +1990,7 @@ class Td extends ke {
|
|
|
1989
1990
|
return null;
|
|
1990
1991
|
}
|
|
1991
1992
|
}
|
|
1992
|
-
|
|
1993
|
+
W(Td, "contextType", pe);
|
|
1993
1994
|
function us(t, e) {
|
|
1994
1995
|
var r = Object.keys(t);
|
|
1995
1996
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -2004,7 +2005,7 @@ function Tn(t) {
|
|
|
2004
2005
|
for (var e = 1; e < arguments.length; e++) {
|
|
2005
2006
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
2006
2007
|
e % 2 ? us(Object(r), !0).forEach(function(n) {
|
|
2007
|
-
|
|
2008
|
+
W(t, n, r[n]);
|
|
2008
2009
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : us(Object(r)).forEach(function(n) {
|
|
2009
2010
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
2010
2011
|
});
|
|
@@ -2038,41 +2039,41 @@ function Nd(t) {
|
|
|
2038
2039
|
onRectangleComplete: u,
|
|
2039
2040
|
onLoad: l,
|
|
2040
2041
|
onUnmount: c
|
|
2041
|
-
} = t, d = Ae(pe), [h, m] = F(null), [g, v] = F(null), [f, y] = F(null), [D, w] = F(null), [
|
|
2042
|
-
return
|
|
2042
|
+
} = t, d = Ae(pe), [h, m] = F(null), [g, v] = F(null), [f, y] = F(null), [D, w] = F(null), [E, B] = F(null), [A, O] = F(null), [j, P] = F(null);
|
|
2043
|
+
return b(() => {
|
|
2043
2044
|
h !== null && h.setMap(d);
|
|
2044
|
-
}, [d]),
|
|
2045
|
+
}, [d]), b(() => {
|
|
2045
2046
|
e && h !== null && h.setOptions(e);
|
|
2046
|
-
}, [h, e]),
|
|
2047
|
+
}, [h, e]), b(() => {
|
|
2047
2048
|
h !== null && h.setDrawingMode(r ?? null);
|
|
2048
|
-
}, [h, r]),
|
|
2049
|
+
}, [h, r]), b(() => {
|
|
2049
2050
|
h && n && (g !== null && google.maps.event.removeListener(g), v(google.maps.event.addListener(h, "circlecomplete", n)));
|
|
2050
|
-
}, [h, n]),
|
|
2051
|
+
}, [h, n]), b(() => {
|
|
2051
2052
|
h && i && (f !== null && google.maps.event.removeListener(f), y(google.maps.event.addListener(h, "markercomplete", i)));
|
|
2052
|
-
}, [h, i]),
|
|
2053
|
+
}, [h, i]), b(() => {
|
|
2053
2054
|
h && a && (D !== null && google.maps.event.removeListener(D), w(google.maps.event.addListener(h, "overlaycomplete", a)));
|
|
2054
|
-
}, [h, a]),
|
|
2055
|
-
h && s && (
|
|
2056
|
-
}, [h, s]),
|
|
2055
|
+
}, [h, a]), b(() => {
|
|
2056
|
+
h && s && (E !== null && google.maps.event.removeListener(E), B(google.maps.event.addListener(h, "polygoncomplete", s)));
|
|
2057
|
+
}, [h, s]), b(() => {
|
|
2057
2058
|
h && o && (A !== null && google.maps.event.removeListener(A), O(google.maps.event.addListener(h, "polylinecomplete", o)));
|
|
2058
|
-
}, [h, o]),
|
|
2059
|
-
h && u && (
|
|
2060
|
-
}, [h, u]),
|
|
2059
|
+
}, [h, o]), b(() => {
|
|
2060
|
+
h && u && (j !== null && google.maps.event.removeListener(j), P(google.maps.event.addListener(h, "rectanglecomplete", u)));
|
|
2061
|
+
}, [h, u]), b(() => {
|
|
2061
2062
|
$e(!!google.maps.drawing, "Did you include prop libraries={['drawing']} in the URL? %s", google.maps.drawing);
|
|
2062
2063
|
var S = new google.maps.drawing.DrawingManager(Tn(Tn({}, e), {}, {
|
|
2063
2064
|
map: d
|
|
2064
2065
|
}));
|
|
2065
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), () => {
|
|
2066
|
-
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), E && google.maps.event.removeListener(E), A && google.maps.event.removeListener(A), j && google.maps.event.removeListener(j), c && c(h), h.setMap(null));
|
|
2067
2068
|
};
|
|
2068
2069
|
}, []), null;
|
|
2069
2070
|
}
|
|
2070
2071
|
Re(Nd);
|
|
2071
2072
|
class Id extends ke {
|
|
2072
2073
|
constructor(e) {
|
|
2073
|
-
super(e),
|
|
2074
|
+
super(e), W(this, "registeredEvents", []), W(this, "state", {
|
|
2074
2075
|
drawingManager: null
|
|
2075
|
-
}),
|
|
2076
|
+
}), W(this, "setDrawingManagerCallback", () => {
|
|
2076
2077
|
this.state.drawingManager !== null && this.props.onLoad && this.props.onLoad(this.state.drawingManager);
|
|
2077
2078
|
}), $e(!!google.maps.drawing, "Did you include prop libraries={['drawing']} in the URL? %s", google.maps.drawing);
|
|
2078
2079
|
}
|
|
@@ -2108,7 +2109,7 @@ class Id extends ke {
|
|
|
2108
2109
|
return null;
|
|
2109
2110
|
}
|
|
2110
2111
|
}
|
|
2111
|
-
|
|
2112
|
+
W(Id, "contextType", pe);
|
|
2112
2113
|
function fs(t, e) {
|
|
2113
2114
|
var r = Object.keys(t);
|
|
2114
2115
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -2123,7 +2124,7 @@ function mr(t) {
|
|
|
2123
2124
|
for (var e = 1; e < arguments.length; e++) {
|
|
2124
2125
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
2125
2126
|
e % 2 ? fs(Object(r), !0).forEach(function(n) {
|
|
2126
|
-
|
|
2127
|
+
W(t, n, r[n]);
|
|
2127
2128
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : fs(Object(r)).forEach(function(n) {
|
|
2128
2129
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
2129
2130
|
});
|
|
@@ -2217,11 +2218,11 @@ function Rd(t) {
|
|
|
2217
2218
|
onClick: y,
|
|
2218
2219
|
onDblClick: D,
|
|
2219
2220
|
onDrag: w,
|
|
2220
|
-
onDragEnd:
|
|
2221
|
+
onDragEnd: E,
|
|
2221
2222
|
onDragStart: B,
|
|
2222
2223
|
onMouseOut: A,
|
|
2223
2224
|
onMouseOver: O,
|
|
2224
|
-
onMouseUp:
|
|
2225
|
+
onMouseUp: j,
|
|
2225
2226
|
onMouseDown: P,
|
|
2226
2227
|
onRightClick: S,
|
|
2227
2228
|
onClickableChanged: M,
|
|
@@ -2230,92 +2231,92 @@ function Rd(t) {
|
|
|
2230
2231
|
onDraggableChanged: I,
|
|
2231
2232
|
onFlatChanged: N,
|
|
2232
2233
|
onIconChanged: K,
|
|
2233
|
-
onPositionChanged:
|
|
2234
|
+
onPositionChanged: z,
|
|
2234
2235
|
onShapeChanged: Q,
|
|
2235
|
-
onTitleChanged:
|
|
2236
|
-
onVisibleChanged:
|
|
2236
|
+
onTitleChanged: V,
|
|
2237
|
+
onVisibleChanged: G,
|
|
2237
2238
|
onZindexChanged: ee,
|
|
2238
2239
|
onLoad: re,
|
|
2239
2240
|
onUnmount: X
|
|
2240
|
-
} = t, oe = Ae(pe), [T, x] = F(null), [U,
|
|
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
|
+
b(() => {
|
|
2242
2243
|
T !== null && T.setMap(oe);
|
|
2243
|
-
}, [oe]),
|
|
2244
|
+
}, [oe]), b(() => {
|
|
2244
2245
|
typeof r < "u" && T !== null && T.setOptions(r);
|
|
2245
|
-
}, [T, r]),
|
|
2246
|
+
}, [T, r]), b(() => {
|
|
2246
2247
|
typeof s < "u" && T !== null && T.setDraggable(s);
|
|
2247
|
-
}, [T, s]),
|
|
2248
|
+
}, [T, s]), b(() => {
|
|
2248
2249
|
e && T !== null && T.setPosition(e);
|
|
2249
|
-
}, [T, e]),
|
|
2250
|
+
}, [T, e]), b(() => {
|
|
2250
2251
|
typeof o < "u" && T !== null && T.setVisible(o);
|
|
2251
|
-
}, [T, o]),
|
|
2252
|
+
}, [T, o]), b(() => {
|
|
2252
2253
|
T == null || T.setAnimation(u);
|
|
2253
|
-
}, [T, u]),
|
|
2254
|
+
}, [T, u]), b(() => {
|
|
2254
2255
|
T && l !== void 0 && T.setClickable(l);
|
|
2255
|
-
}, [T, l]),
|
|
2256
|
+
}, [T, l]), b(() => {
|
|
2256
2257
|
T && c !== void 0 && T.setCursor(c);
|
|
2257
|
-
}, [T, c]),
|
|
2258
|
+
}, [T, c]), b(() => {
|
|
2258
2259
|
T && d !== void 0 && T.setIcon(d);
|
|
2259
|
-
}, [T, d]),
|
|
2260
|
+
}, [T, d]), b(() => {
|
|
2260
2261
|
T && h !== void 0 && T.setLabel(h);
|
|
2261
|
-
}, [T, h]),
|
|
2262
|
+
}, [T, h]), b(() => {
|
|
2262
2263
|
T && m !== void 0 && T.setOpacity(m);
|
|
2263
|
-
}, [T, m]),
|
|
2264
|
+
}, [T, m]), b(() => {
|
|
2264
2265
|
T && g !== void 0 && T.setShape(g);
|
|
2265
|
-
}, [T, g]),
|
|
2266
|
+
}, [T, g]), b(() => {
|
|
2266
2267
|
T && v !== void 0 && T.setTitle(v);
|
|
2267
|
-
}, [T, v]),
|
|
2268
|
+
}, [T, v]), b(() => {
|
|
2268
2269
|
T && f !== void 0 && T.setZIndex(f);
|
|
2269
|
-
}, [T, f]),
|
|
2270
|
-
T && D && (U !== null && google.maps.event.removeListener(U),
|
|
2271
|
-
}, [D]),
|
|
2272
|
-
T &&
|
|
2273
|
-
}, [
|
|
2270
|
+
}, [T, f]), b(() => {
|
|
2271
|
+
T && D && (U !== null && google.maps.event.removeListener(U), $(google.maps.event.addListener(T, "dblclick", D)));
|
|
2272
|
+
}, [D]), b(() => {
|
|
2273
|
+
T && E && (q !== null && google.maps.event.removeListener(q), J(google.maps.event.addListener(T, "dragend", E)));
|
|
2274
|
+
}, [E]), b(() => {
|
|
2274
2275
|
T && B && (Y !== null && google.maps.event.removeListener(Y), ie(google.maps.event.addListener(T, "dragstart", B)));
|
|
2275
|
-
}, [B]),
|
|
2276
|
+
}, [B]), b(() => {
|
|
2276
2277
|
T && P && (ue !== null && google.maps.event.removeListener(ue), le(google.maps.event.addListener(T, "mousedown", P)));
|
|
2277
|
-
}, [P]),
|
|
2278
|
+
}, [P]), b(() => {
|
|
2278
2279
|
T && A && (ce !== null && google.maps.event.removeListener(ce), ge(google.maps.event.addListener(T, "mouseout", A)));
|
|
2279
|
-
}, [A]),
|
|
2280
|
+
}, [A]), b(() => {
|
|
2280
2281
|
T && O && (we !== null && google.maps.event.removeListener(we), be(google.maps.event.addListener(T, "mouseover", O)));
|
|
2281
|
-
}, [O]),
|
|
2282
|
-
T &&
|
|
2283
|
-
}, [
|
|
2282
|
+
}, [O]), b(() => {
|
|
2283
|
+
T && j && (Ie !== null && google.maps.event.removeListener(Ie), _e(google.maps.event.addListener(T, "mouseup", j)));
|
|
2284
|
+
}, [j]), b(() => {
|
|
2284
2285
|
T && S && (Ze !== null && google.maps.event.removeListener(Ze), Le(google.maps.event.addListener(T, "rightclick", S)));
|
|
2285
|
-
}, [S]),
|
|
2286
|
+
}, [S]), b(() => {
|
|
2286
2287
|
T && y && (qe !== null && google.maps.event.removeListener(qe), tt(google.maps.event.addListener(T, "click", y)));
|
|
2287
|
-
}, [y]),
|
|
2288
|
+
}, [y]), b(() => {
|
|
2288
2289
|
T && w && (Oe !== null && google.maps.event.removeListener(Oe), xe(google.maps.event.addListener(T, "drag", w)));
|
|
2289
|
-
}, [w]),
|
|
2290
|
+
}, [w]), b(() => {
|
|
2290
2291
|
T && M && (ft !== null && google.maps.event.removeListener(ft), He(google.maps.event.addListener(T, "clickable_changed", M)));
|
|
2291
|
-
}, [M]),
|
|
2292
|
+
}, [M]), b(() => {
|
|
2292
2293
|
T && k && (Ke !== null && google.maps.event.removeListener(Ke), Dt(google.maps.event.addListener(T, "cursor_changed", k)));
|
|
2293
|
-
}, [k]),
|
|
2294
|
+
}, [k]), b(() => {
|
|
2294
2295
|
T && R && (Xe !== null && google.maps.event.removeListener(Xe), lr(google.maps.event.addListener(T, "animation_changed", R)));
|
|
2295
|
-
}, [R]),
|
|
2296
|
+
}, [R]), b(() => {
|
|
2296
2297
|
T && I && (yt !== null && google.maps.event.removeListener(yt), Ot(google.maps.event.addListener(T, "draggable_changed", I)));
|
|
2297
|
-
}, [I]),
|
|
2298
|
+
}, [I]), b(() => {
|
|
2298
2299
|
T && N && (cr !== null && google.maps.event.removeListener(cr), tn(google.maps.event.addListener(T, "flat_changed", N)));
|
|
2299
|
-
}, [N]),
|
|
2300
|
+
}, [N]), b(() => {
|
|
2300
2301
|
T && K && (fr !== null && google.maps.event.removeListener(fr), rn(google.maps.event.addListener(T, "icon_changed", K)));
|
|
2301
|
-
}, [K]),
|
|
2302
|
-
T &&
|
|
2303
|
-
}, [
|
|
2302
|
+
}, [K]), b(() => {
|
|
2303
|
+
T && z && (dr !== null && google.maps.event.removeListener(dr), nn(google.maps.event.addListener(T, "position_changed", z)));
|
|
2304
|
+
}, [z]), b(() => {
|
|
2304
2305
|
T && Q && (Va !== null && google.maps.event.removeListener(Va), Ga(google.maps.event.addListener(T, "shape_changed", Q)));
|
|
2305
|
-
}, [Q]),
|
|
2306
|
-
T &&
|
|
2307
|
-
}, [
|
|
2308
|
-
T &&
|
|
2309
|
-
}, [
|
|
2306
|
+
}, [Q]), b(() => {
|
|
2307
|
+
T && V && (an !== null && google.maps.event.removeListener(an), qa(google.maps.event.addListener(T, "title_changed", V)));
|
|
2308
|
+
}, [V]), b(() => {
|
|
2309
|
+
T && G && (sn !== null && google.maps.event.removeListener(sn), Za(google.maps.event.addListener(T, "visible_changed", G)));
|
|
2310
|
+
}, [G]), b(() => {
|
|
2310
2311
|
T && ee && (on !== null && google.maps.event.removeListener(on), Ka(google.maps.event.addListener(T, "zindex_changed", ee)));
|
|
2311
|
-
}, [ee]),
|
|
2312
|
+
}, [ee]), b(() => {
|
|
2312
2313
|
var Or = mr(mr(mr({}, r || Nn), n ? Nn : {
|
|
2313
2314
|
map: oe
|
|
2314
2315
|
}), {}, {
|
|
2315
2316
|
position: e
|
|
2316
2317
|
}), he = new google.maps.Marker(Or);
|
|
2317
|
-
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 &&
|
|
2318
|
-
U !== null && google.maps.event.removeListener(U),
|
|
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)), E && J(google.maps.event.addListener(he, "dragend", E)), 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
|
+
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);
|
|
2319
2320
|
};
|
|
2320
2321
|
}, []);
|
|
2321
2322
|
var hf = Pt(() => a ? At.map(a, (Or) => {
|
|
@@ -2333,7 +2334,7 @@ function Rd(t) {
|
|
|
2333
2334
|
Re(Rd);
|
|
2334
2335
|
class bl extends ke {
|
|
2335
2336
|
constructor() {
|
|
2336
|
-
super(...arguments),
|
|
2337
|
+
super(...arguments), W(this, "registeredEvents", []);
|
|
2337
2338
|
}
|
|
2338
2339
|
componentDidMount() {
|
|
2339
2340
|
var e = this;
|
|
@@ -2376,7 +2377,7 @@ class bl extends ke {
|
|
|
2376
2377
|
return e || null;
|
|
2377
2378
|
}
|
|
2378
2379
|
}
|
|
2379
|
-
|
|
2380
|
+
W(bl, "contextType", pe);
|
|
2380
2381
|
var jd = (
|
|
2381
2382
|
/** @class */
|
|
2382
2383
|
function() {
|
|
@@ -2823,7 +2824,7 @@ function qd(t) {
|
|
|
2823
2824
|
for (var e = 1; e < arguments.length; e++) {
|
|
2824
2825
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
2825
2826
|
e % 2 ? gs(Object(r), !0).forEach(function(n) {
|
|
2826
|
-
|
|
2827
|
+
W(t, n, r[n]);
|
|
2827
2828
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : gs(Object(r)).forEach(function(n) {
|
|
2828
2829
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
2829
2830
|
});
|
|
@@ -2904,57 +2905,57 @@ function Kd(t) {
|
|
|
2904
2905
|
zoomOnClick: y,
|
|
2905
2906
|
onClick: D,
|
|
2906
2907
|
onClusteringBegin: w,
|
|
2907
|
-
onClusteringEnd:
|
|
2908
|
+
onClusteringEnd: E,
|
|
2908
2909
|
onMouseOver: B,
|
|
2909
2910
|
onMouseOut: A,
|
|
2910
2911
|
onLoad: O,
|
|
2911
|
-
onUnmount:
|
|
2912
|
-
} = t, [P, S] = F(null), M = Ae(pe), [k, R] = F(null), [I, N] = F(null), [K,
|
|
2913
|
-
return
|
|
2914
|
-
P && A && (Q !== null && google.maps.event.removeListener(Q),
|
|
2915
|
-
}, [A]),
|
|
2916
|
-
P && B && (
|
|
2917
|
-
}, [B]),
|
|
2912
|
+
onUnmount: j
|
|
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 b(() => {
|
|
2915
|
+
P && A && (Q !== null && google.maps.event.removeListener(Q), V(google.maps.event.addListener(P, ht.onMouseOut, A)));
|
|
2916
|
+
}, [A]), b(() => {
|
|
2917
|
+
P && B && (G !== null && google.maps.event.removeListener(G), ee(google.maps.event.addListener(P, ht.onMouseOver, B)));
|
|
2918
|
+
}, [B]), b(() => {
|
|
2918
2919
|
P && D && (k !== null && google.maps.event.removeListener(k), R(google.maps.event.addListener(P, ht.onClick, D)));
|
|
2919
|
-
}, [D]),
|
|
2920
|
+
}, [D]), b(() => {
|
|
2920
2921
|
P && w && (I !== null && google.maps.event.removeListener(I), N(google.maps.event.addListener(P, ht.onClusteringBegin, w)));
|
|
2921
|
-
}, [w]),
|
|
2922
|
-
P &&
|
|
2923
|
-
}, [
|
|
2922
|
+
}, [w]), b(() => {
|
|
2923
|
+
P && E && (K !== null && google.maps.event.removeListener(K), N(google.maps.event.addListener(P, ht.onClusteringEnd, E)));
|
|
2924
|
+
}, [E]), b(() => {
|
|
2924
2925
|
typeof n < "u" && P !== null && Be.averageCenter(P, n);
|
|
2925
|
-
}, [P, n]),
|
|
2926
|
+
}, [P, n]), b(() => {
|
|
2926
2927
|
typeof i < "u" && P !== null && Be.batchSizeIE(P, i);
|
|
2927
|
-
}, [P, i]),
|
|
2928
|
+
}, [P, i]), b(() => {
|
|
2928
2929
|
typeof a < "u" && P !== null && Be.calculator(P, a);
|
|
2929
|
-
}, [P, a]),
|
|
2930
|
+
}, [P, a]), b(() => {
|
|
2930
2931
|
typeof s < "u" && P !== null && Be.clusterClass(P, s);
|
|
2931
|
-
}, [P, s]),
|
|
2932
|
+
}, [P, s]), b(() => {
|
|
2932
2933
|
typeof o < "u" && P !== null && Be.enableRetinaIcons(P, o);
|
|
2933
|
-
}, [P, o]),
|
|
2934
|
+
}, [P, o]), b(() => {
|
|
2934
2935
|
typeof u < "u" && P !== null && Be.gridSize(P, u);
|
|
2935
|
-
}, [P, u]),
|
|
2936
|
+
}, [P, u]), b(() => {
|
|
2936
2937
|
typeof l < "u" && P !== null && Be.ignoreHidden(P, l);
|
|
2937
|
-
}, [P, l]),
|
|
2938
|
+
}, [P, l]), b(() => {
|
|
2938
2939
|
typeof c < "u" && P !== null && Be.imageExtension(P, c);
|
|
2939
|
-
}, [P, c]),
|
|
2940
|
+
}, [P, c]), b(() => {
|
|
2940
2941
|
typeof d < "u" && P !== null && Be.imagePath(P, d);
|
|
2941
|
-
}, [P, d]),
|
|
2942
|
+
}, [P, d]), b(() => {
|
|
2942
2943
|
typeof h < "u" && P !== null && Be.imageSizes(P, h);
|
|
2943
|
-
}, [P, h]),
|
|
2944
|
+
}, [P, h]), b(() => {
|
|
2944
2945
|
typeof m < "u" && P !== null && Be.maxZoom(P, m);
|
|
2945
|
-
}, [P, m]),
|
|
2946
|
+
}, [P, m]), b(() => {
|
|
2946
2947
|
typeof g < "u" && P !== null && Be.minimumClusterSize(P, g);
|
|
2947
|
-
}, [P, g]),
|
|
2948
|
+
}, [P, g]), b(() => {
|
|
2948
2949
|
typeof v < "u" && P !== null && Be.styles(P, v);
|
|
2949
|
-
}, [P, v]),
|
|
2950
|
+
}, [P, v]), b(() => {
|
|
2950
2951
|
typeof f < "u" && P !== null && Be.title(P, f);
|
|
2951
|
-
}, [P, f]),
|
|
2952
|
+
}, [P, f]), b(() => {
|
|
2952
2953
|
typeof y < "u" && P !== null && Be.zoomOnClick(P, y);
|
|
2953
|
-
}, [P, y]),
|
|
2954
|
+
}, [P, y]), b(() => {
|
|
2954
2955
|
if (M) {
|
|
2955
2956
|
var re = qd({}, r || Zd), X = new El(M, [], re);
|
|
2956
|
-
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 &&
|
|
2957
|
-
Q !== null && google.maps.event.removeListener(Q),
|
|
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)), E && z(google.maps.event.addListener(X, ht.onClusteringEnd, E)), S(X), O && O(X), () => {
|
|
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);
|
|
2958
2959
|
};
|
|
2959
2960
|
}
|
|
2960
2961
|
}, []), P !== null && e(P) || null;
|
|
@@ -2962,9 +2963,9 @@ function Kd(t) {
|
|
|
2962
2963
|
Re(Kd);
|
|
2963
2964
|
class Xd extends ke {
|
|
2964
2965
|
constructor() {
|
|
2965
|
-
super(...arguments),
|
|
2966
|
+
super(...arguments), W(this, "registeredEvents", []), W(this, "state", {
|
|
2966
2967
|
markerClusterer: null
|
|
2967
|
-
}),
|
|
2968
|
+
}), W(this, "setClustererCallback", () => {
|
|
2968
2969
|
this.state.markerClusterer !== null && this.props.onLoad && this.props.onLoad(this.state.markerClusterer);
|
|
2969
2970
|
});
|
|
2970
2971
|
}
|
|
@@ -2998,7 +2999,7 @@ class Xd extends ke {
|
|
|
2998
2999
|
return this.state.markerClusterer !== null ? this.props.children(this.state.markerClusterer) : null;
|
|
2999
3000
|
}
|
|
3000
3001
|
}
|
|
3001
|
-
|
|
3002
|
+
W(Xd, "contextType", pe);
|
|
3002
3003
|
function ps(t) {
|
|
3003
3004
|
t.cancelBubble = !0, t.stopPropagation && t.stopPropagation();
|
|
3004
3005
|
}
|
|
@@ -3157,7 +3158,7 @@ function In(t) {
|
|
|
3157
3158
|
for (var e = 1; e < arguments.length; e++) {
|
|
3158
3159
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
3159
3160
|
e % 2 ? vs(Object(r), !0).forEach(function(n) {
|
|
3160
|
-
|
|
3161
|
+
W(t, n, r[n]);
|
|
3161
3162
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : vs(Object(r)).forEach(function(n) {
|
|
3162
3163
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
3163
3164
|
});
|
|
@@ -3198,12 +3199,12 @@ function eh(t) {
|
|
|
3198
3199
|
onZindexChanged: c,
|
|
3199
3200
|
onLoad: d,
|
|
3200
3201
|
onUnmount: h
|
|
3201
|
-
} = t, m = Ae(pe), [g, v] = F(null), [f, y] = F(null), [D, w] = F(null), [
|
|
3202
|
-
return
|
|
3202
|
+
} = t, m = Ae(pe), [g, v] = F(null), [f, y] = F(null), [D, w] = F(null), [E, B] = F(null), [A, O] = F(null), [j, P] = F(null), S = me(null);
|
|
3203
|
+
return b(() => {
|
|
3203
3204
|
m && g !== null && (g.close(), r ? g.open(m, r) : g.getPosition() && g.open(m));
|
|
3204
|
-
}, [m, g, r]),
|
|
3205
|
+
}, [m, g, r]), b(() => {
|
|
3205
3206
|
n && g !== null && g.setOptions(n);
|
|
3206
|
-
}, [g, n]),
|
|
3207
|
+
}, [g, n]), b(() => {
|
|
3207
3208
|
if (i && g !== null) {
|
|
3208
3209
|
var M = i instanceof google.maps.LatLng ? i : (
|
|
3209
3210
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -3212,19 +3213,19 @@ function eh(t) {
|
|
|
3212
3213
|
);
|
|
3213
3214
|
g.setPosition(M);
|
|
3214
3215
|
}
|
|
3215
|
-
}, [i]),
|
|
3216
|
+
}, [i]), b(() => {
|
|
3216
3217
|
typeof a == "number" && g !== null && g.setZIndex(a);
|
|
3217
|
-
}, [a]),
|
|
3218
|
+
}, [a]), b(() => {
|
|
3218
3219
|
g && s && (f !== null && google.maps.event.removeListener(f), y(google.maps.event.addListener(g, "closeclick", s)));
|
|
3219
|
-
}, [s]),
|
|
3220
|
+
}, [s]), b(() => {
|
|
3220
3221
|
g && o && (D !== null && google.maps.event.removeListener(D), w(google.maps.event.addListener(g, "domready", o)));
|
|
3221
|
-
}, [o]),
|
|
3222
|
-
g && u && (
|
|
3223
|
-
}, [u]),
|
|
3222
|
+
}, [o]), b(() => {
|
|
3223
|
+
g && u && (E !== null && google.maps.event.removeListener(E), B(google.maps.event.addListener(g, "content_changed", u)));
|
|
3224
|
+
}, [u]), b(() => {
|
|
3224
3225
|
g && l && (A !== null && google.maps.event.removeListener(A), O(google.maps.event.addListener(g, "position_changed", l)));
|
|
3225
|
-
}, [l]),
|
|
3226
|
-
g && c && (
|
|
3227
|
-
}, [c]),
|
|
3226
|
+
}, [l]), b(() => {
|
|
3227
|
+
g && c && (j !== null && google.maps.event.removeListener(j), P(google.maps.event.addListener(g, "zindex_changed", c)));
|
|
3228
|
+
}, [c]), b(() => {
|
|
3228
3229
|
if (m) {
|
|
3229
3230
|
var M = n || Qd, {
|
|
3230
3231
|
position: k
|
|
@@ -3236,18 +3237,18 @@ function eh(t) {
|
|
|
3236
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);
|
|
3237
3238
|
}
|
|
3238
3239
|
return () => {
|
|
3239
|
-
g !== null && (f && google.maps.event.removeListener(f),
|
|
3240
|
+
g !== null && (f && google.maps.event.removeListener(f), E && google.maps.event.removeListener(E), D && google.maps.event.removeListener(D), A && google.maps.event.removeListener(A), j && google.maps.event.removeListener(j), h && h(g), g.close());
|
|
3240
3241
|
};
|
|
3241
3242
|
}, []), S.current ? Yn(At.only(e), S.current) : null;
|
|
3242
3243
|
}
|
|
3243
3244
|
Re(eh);
|
|
3244
3245
|
class th extends ke {
|
|
3245
3246
|
constructor() {
|
|
3246
|
-
super(...arguments),
|
|
3247
|
+
super(...arguments), W(this, "registeredEvents", []), W(this, "containerElement", null), W(this, "state", {
|
|
3247
3248
|
infoBox: null
|
|
3248
|
-
}),
|
|
3249
|
+
}), W(this, "open", (e, r) => {
|
|
3249
3250
|
r ? this.context !== null && e.open(this.context, r) : e.getPosition() ? this.context !== null && e.open(this.context) : $e(!1, "You must provide either an anchor or a position prop for <InfoBox>.");
|
|
3250
|
-
}),
|
|
3251
|
+
}), W(this, "setInfoBoxCallback", () => {
|
|
3251
3252
|
this.state.infoBox !== null && this.containerElement !== null && (this.state.infoBox.setContent(this.containerElement), this.open(this.state.infoBox, this.props.anchor), this.props.onLoad && this.props.onLoad(this.state.infoBox));
|
|
3252
3253
|
});
|
|
3253
3254
|
}
|
|
@@ -3293,7 +3294,7 @@ class th extends ke {
|
|
|
3293
3294
|
return this.containerElement ? Yn(At.only(this.props.children), this.containerElement) : null;
|
|
3294
3295
|
}
|
|
3295
3296
|
}
|
|
3296
|
-
|
|
3297
|
+
W(th, "contextType", pe);
|
|
3297
3298
|
var mi, Ds;
|
|
3298
3299
|
function rh() {
|
|
3299
3300
|
return Ds || (Ds = 1, mi = function t(e, r) {
|
|
@@ -3624,16 +3625,16 @@ class ah {
|
|
|
3624
3625
|
u[D + Zt] > r && (f += u[D + Nt]);
|
|
3625
3626
|
}
|
|
3626
3627
|
if (f > v && f >= s) {
|
|
3627
|
-
var w = h * v,
|
|
3628
|
-
for (var
|
|
3629
|
-
var P =
|
|
3628
|
+
var w = h * v, E = m * v, B = void 0, A = -1, O = ((d / c | 0) << 5) + (r + 1) + this.points.length;
|
|
3629
|
+
for (var j of g) {
|
|
3630
|
+
var P = j * c;
|
|
3630
3631
|
if (!(u[P + Zt] <= r)) {
|
|
3631
3632
|
u[P + Zt] = r;
|
|
3632
3633
|
var S = u[P + Nt];
|
|
3633
|
-
w += u[P] * S,
|
|
3634
|
+
w += u[P] * S, E += 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)));
|
|
3634
3635
|
}
|
|
3635
3636
|
}
|
|
3636
|
-
u[d + yi] = O, l.push(w / f,
|
|
3637
|
+
u[d + yi] = O, l.push(w / f, E / f, 1 / 0, O, -1, f), a && l.push(A);
|
|
3637
3638
|
} else {
|
|
3638
3639
|
for (var M = 0; M < c; M++) l.push(u[d + M]);
|
|
3639
3640
|
if (f > 1)
|
|
@@ -4088,7 +4089,7 @@ function Os(t) {
|
|
|
4088
4089
|
for (var e = 1; e < arguments.length; e++) {
|
|
4089
4090
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
4090
4091
|
e % 2 ? As(Object(r), !0).forEach(function(n) {
|
|
4091
|
-
|
|
4092
|
+
W(t, n, r[n]);
|
|
4092
4093
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : As(Object(r)).forEach(function(n) {
|
|
4093
4094
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
4094
4095
|
});
|
|
@@ -4097,7 +4098,7 @@ function Os(t) {
|
|
|
4097
4098
|
}
|
|
4098
4099
|
function mh(t) {
|
|
4099
4100
|
var e = vd(), [r, n] = F(null);
|
|
4100
|
-
return
|
|
4101
|
+
return b(() => {
|
|
4101
4102
|
if (e && r === null) {
|
|
4102
4103
|
var i = new vh(Os(Os({}, t), {}, {
|
|
4103
4104
|
map: e
|
|
@@ -4145,40 +4146,40 @@ function Dh(t) {
|
|
|
4145
4146
|
onZindexChanged: c,
|
|
4146
4147
|
onLoad: d,
|
|
4147
4148
|
onUnmount: h
|
|
4148
|
-
} = t, m = Ae(pe), [g, v] = F(null), [f, y] = F(null), [D, w] = F(null), [
|
|
4149
|
-
return
|
|
4149
|
+
} = t, m = Ae(pe), [g, v] = F(null), [f, y] = F(null), [D, w] = F(null), [E, B] = F(null), [A, O] = F(null), [j, P] = F(null), S = me(null);
|
|
4150
|
+
return b(() => {
|
|
4150
4151
|
g !== null && (g.close(), r ? g.open(m, r) : g.getPosition() && g.open(m));
|
|
4151
|
-
}, [m, g, r]),
|
|
4152
|
+
}, [m, g, r]), b(() => {
|
|
4152
4153
|
n && g !== null && g.setOptions(n);
|
|
4153
|
-
}, [g, n]),
|
|
4154
|
+
}, [g, n]), b(() => {
|
|
4154
4155
|
i && g !== null && g.setPosition(i);
|
|
4155
|
-
}, [i]),
|
|
4156
|
+
}, [i]), b(() => {
|
|
4156
4157
|
typeof a == "number" && g !== null && g.setZIndex(a);
|
|
4157
|
-
}, [a]),
|
|
4158
|
+
}, [a]), b(() => {
|
|
4158
4159
|
g && s && (f !== null && google.maps.event.removeListener(f), y(google.maps.event.addListener(g, "closeclick", s)));
|
|
4159
|
-
}, [s]),
|
|
4160
|
+
}, [s]), b(() => {
|
|
4160
4161
|
g && o && (D !== null && google.maps.event.removeListener(D), w(google.maps.event.addListener(g, "domready", o)));
|
|
4161
|
-
}, [o]),
|
|
4162
|
-
g && u && (
|
|
4163
|
-
}, [u]),
|
|
4162
|
+
}, [o]), b(() => {
|
|
4163
|
+
g && u && (E !== null && google.maps.event.removeListener(E), B(google.maps.event.addListener(g, "content_changed", u)));
|
|
4164
|
+
}, [u]), b(() => {
|
|
4164
4165
|
g && l && (A !== null && google.maps.event.removeListener(A), O(google.maps.event.addListener(g, "position_changed", l)));
|
|
4165
|
-
}, [l]),
|
|
4166
|
-
g && c && (
|
|
4167
|
-
}, [c]),
|
|
4166
|
+
}, [l]), b(() => {
|
|
4167
|
+
g && c && (j !== null && google.maps.event.removeListener(j), P(google.maps.event.addListener(g, "zindex_changed", c)));
|
|
4168
|
+
}, [c]), b(() => {
|
|
4168
4169
|
var M = new google.maps.InfoWindow(n);
|
|
4169
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), () => {
|
|
4170
|
-
f && google.maps.event.removeListener(f),
|
|
4171
|
+
f && google.maps.event.removeListener(f), E && google.maps.event.removeListener(E), D && google.maps.event.removeListener(D), A && google.maps.event.removeListener(A), j && google.maps.event.removeListener(j), h && h(M), M.close();
|
|
4171
4172
|
};
|
|
4172
4173
|
}, []), S.current ? Yn(At.only(e), S.current) : null;
|
|
4173
4174
|
}
|
|
4174
4175
|
Re(Dh);
|
|
4175
4176
|
class yh extends ke {
|
|
4176
4177
|
constructor() {
|
|
4177
|
-
super(...arguments),
|
|
4178
|
+
super(...arguments), W(this, "registeredEvents", []), W(this, "containerElement", null), W(this, "state", {
|
|
4178
4179
|
infoWindow: null
|
|
4179
|
-
}),
|
|
4180
|
+
}), W(this, "open", (e, r) => {
|
|
4180
4181
|
r ? e.open(this.context, r) : e.getPosition() ? e.open(this.context) : $e(!1, "You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.");
|
|
4181
|
-
}),
|
|
4182
|
+
}), W(this, "setInfoWindowCallback", () => {
|
|
4182
4183
|
this.state.infoWindow !== null && this.containerElement !== null && (this.state.infoWindow.setContent(this.containerElement), this.open(this.state.infoWindow, this.props.anchor), this.props.onLoad && this.props.onLoad(this.state.infoWindow));
|
|
4183
4184
|
});
|
|
4184
4185
|
}
|
|
@@ -4210,7 +4211,7 @@ class yh extends ke {
|
|
|
4210
4211
|
return this.containerElement ? Yn(At.only(this.props.children), this.containerElement) : null;
|
|
4211
4212
|
}
|
|
4212
4213
|
}
|
|
4213
|
-
|
|
4214
|
+
W(yh, "contextType", pe);
|
|
4214
4215
|
function Fs(t, e) {
|
|
4215
4216
|
var r = Object.keys(t);
|
|
4216
4217
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -4225,7 +4226,7 @@ function Rn(t) {
|
|
|
4225
4226
|
for (var e = 1; e < arguments.length; e++) {
|
|
4226
4227
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
4227
4228
|
e % 2 ? Fs(Object(r), !0).forEach(function(n) {
|
|
4228
|
-
|
|
4229
|
+
W(t, n, r[n]);
|
|
4229
4230
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Fs(Object(r)).forEach(function(n) {
|
|
4230
4231
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
4231
4232
|
});
|
|
@@ -4284,56 +4285,56 @@ function Eh(t) {
|
|
|
4284
4285
|
onDrag: f,
|
|
4285
4286
|
onLoad: y,
|
|
4286
4287
|
onUnmount: D
|
|
4287
|
-
} = t, w = Ae(pe), [
|
|
4288
|
-
return
|
|
4289
|
-
|
|
4290
|
-
}, [w]),
|
|
4291
|
-
typeof e < "u" &&
|
|
4292
|
-
}, [
|
|
4293
|
-
typeof r < "u" &&
|
|
4294
|
-
}, [
|
|
4295
|
-
typeof n < "u" &&
|
|
4296
|
-
}, [
|
|
4297
|
-
typeof i < "u" &&
|
|
4298
|
-
}, [
|
|
4299
|
-
typeof a < "u" &&
|
|
4300
|
-
}, [
|
|
4301
|
-
|
|
4302
|
-
}, [s]),
|
|
4303
|
-
|
|
4304
|
-
}, [o]),
|
|
4305
|
-
|
|
4306
|
-
}, [u]),
|
|
4307
|
-
|
|
4308
|
-
}, [l]),
|
|
4309
|
-
|
|
4310
|
-
}, [c]),
|
|
4311
|
-
|
|
4312
|
-
}, [d]),
|
|
4313
|
-
|
|
4314
|
-
}, [h]),
|
|
4315
|
-
|
|
4316
|
-
}, [m]),
|
|
4317
|
-
|
|
4318
|
-
}, [g]),
|
|
4319
|
-
|
|
4320
|
-
}, [v]),
|
|
4321
|
-
|
|
4322
|
-
}, [f]),
|
|
4323
|
-
var
|
|
4288
|
+
} = t, w = Ae(pe), [E, 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 b(() => {
|
|
4290
|
+
E !== null && E.setMap(w);
|
|
4291
|
+
}, [w]), b(() => {
|
|
4292
|
+
typeof e < "u" && E !== null && E.setOptions(e);
|
|
4293
|
+
}, [E, e]), b(() => {
|
|
4294
|
+
typeof r < "u" && E !== null && E.setDraggable(r);
|
|
4295
|
+
}, [E, r]), b(() => {
|
|
4296
|
+
typeof n < "u" && E !== null && E.setEditable(n);
|
|
4297
|
+
}, [E, n]), b(() => {
|
|
4298
|
+
typeof i < "u" && E !== null && E.setVisible(i);
|
|
4299
|
+
}, [E, i]), b(() => {
|
|
4300
|
+
typeof a < "u" && E !== null && E.setPath(a);
|
|
4301
|
+
}, [E, a]), b(() => {
|
|
4302
|
+
E && s && (A !== null && google.maps.event.removeListener(A), O(google.maps.event.addListener(E, "dblclick", s)));
|
|
4303
|
+
}, [s]), b(() => {
|
|
4304
|
+
E && o && (j !== null && google.maps.event.removeListener(j), P(google.maps.event.addListener(E, "dragend", o)));
|
|
4305
|
+
}, [o]), b(() => {
|
|
4306
|
+
E && u && (S !== null && google.maps.event.removeListener(S), M(google.maps.event.addListener(E, "dragstart", u)));
|
|
4307
|
+
}, [u]), b(() => {
|
|
4308
|
+
E && l && (k !== null && google.maps.event.removeListener(k), R(google.maps.event.addListener(E, "mousedown", l)));
|
|
4309
|
+
}, [l]), b(() => {
|
|
4310
|
+
E && c && (I !== null && google.maps.event.removeListener(I), N(google.maps.event.addListener(E, "mousemove", c)));
|
|
4311
|
+
}, [c]), b(() => {
|
|
4312
|
+
E && d && (K !== null && google.maps.event.removeListener(K), z(google.maps.event.addListener(E, "mouseout", d)));
|
|
4313
|
+
}, [d]), b(() => {
|
|
4314
|
+
E && h && (Q !== null && google.maps.event.removeListener(Q), V(google.maps.event.addListener(E, "mouseover", h)));
|
|
4315
|
+
}, [h]), b(() => {
|
|
4316
|
+
E && m && (G !== null && google.maps.event.removeListener(G), ee(google.maps.event.addListener(E, "mouseup", m)));
|
|
4317
|
+
}, [m]), b(() => {
|
|
4318
|
+
E && g && (re !== null && google.maps.event.removeListener(re), X(google.maps.event.addListener(E, "rightclick", g)));
|
|
4319
|
+
}, [g]), b(() => {
|
|
4320
|
+
E && v && (oe !== null && google.maps.event.removeListener(oe), T(google.maps.event.addListener(E, "click", v)));
|
|
4321
|
+
}, [v]), b(() => {
|
|
4322
|
+
E && f && (x !== null && google.maps.event.removeListener(x), U(google.maps.event.addListener(E, "drag", f)));
|
|
4323
|
+
}, [f]), b(() => {
|
|
4324
|
+
var $ = new google.maps.Polyline(Rn(Rn({}, e || bh), {}, {
|
|
4324
4325
|
map: w
|
|
4325
4326
|
}));
|
|
4326
|
-
return a &&
|
|
4327
|
-
A !== null && google.maps.event.removeListener(A),
|
|
4327
|
+
return a && $.setPath(a), typeof i < "u" && $.setVisible(i), typeof n < "u" && $.setEditable(n), typeof r < "u" && $.setDraggable(r), s && O(google.maps.event.addListener($, "dblclick", s)), o && P(google.maps.event.addListener($, "dragend", o)), u && M(google.maps.event.addListener($, "dragstart", u)), l && R(google.maps.event.addListener($, "mousedown", l)), c && N(google.maps.event.addListener($, "mousemove", c)), d && z(google.maps.event.addListener($, "mouseout", d)), h && V(google.maps.event.addListener($, "mouseover", h)), m && ee(google.maps.event.addListener($, "mouseup", m)), g && X(google.maps.event.addListener($, "rightclick", g)), v && T(google.maps.event.addListener($, "click", v)), f && U(google.maps.event.addListener($, "drag", f)), B($), y && y($), () => {
|
|
4328
|
+
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), D && D($), $.setMap(null);
|
|
4328
4329
|
};
|
|
4329
4330
|
}, []), null;
|
|
4330
4331
|
}
|
|
4331
4332
|
Re(Eh);
|
|
4332
4333
|
class wh extends ke {
|
|
4333
4334
|
constructor() {
|
|
4334
|
-
super(...arguments),
|
|
4335
|
+
super(...arguments), W(this, "registeredEvents", []), W(this, "state", {
|
|
4335
4336
|
polyline: null
|
|
4336
|
-
}),
|
|
4337
|
+
}), W(this, "setPolylineCallback", () => {
|
|
4337
4338
|
this.state.polyline !== null && this.props.onLoad && this.props.onLoad(this.state.polyline);
|
|
4338
4339
|
});
|
|
4339
4340
|
}
|
|
@@ -4369,7 +4370,7 @@ class wh extends ke {
|
|
|
4369
4370
|
return null;
|
|
4370
4371
|
}
|
|
4371
4372
|
}
|
|
4372
|
-
|
|
4373
|
+
W(wh, "contextType", pe);
|
|
4373
4374
|
function Ms(t, e) {
|
|
4374
4375
|
var r = Object.keys(t);
|
|
4375
4376
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -4384,7 +4385,7 @@ function ks(t) {
|
|
|
4384
4385
|
for (var e = 1; e < arguments.length; e++) {
|
|
4385
4386
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
4386
4387
|
e % 2 ? Ms(Object(r), !0).forEach(function(n) {
|
|
4387
|
-
|
|
4388
|
+
W(t, n, r[n]);
|
|
4388
4389
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Ms(Object(r)).forEach(function(n) {
|
|
4389
4390
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
4390
4391
|
});
|
|
@@ -4447,65 +4448,65 @@ function Bh(t) {
|
|
|
4447
4448
|
onDrag: y,
|
|
4448
4449
|
onLoad: D,
|
|
4449
4450
|
onUnmount: w,
|
|
4450
|
-
onEdit:
|
|
4451
|
-
} = t, B = Ae(pe), [A, O] = F(null), [
|
|
4452
|
-
return
|
|
4451
|
+
onEdit: E
|
|
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 b(() => {
|
|
4453
4454
|
A !== null && A.setMap(B);
|
|
4454
|
-
}, [B]),
|
|
4455
|
+
}, [B]), b(() => {
|
|
4455
4456
|
typeof e < "u" && A !== null && A.setOptions(e);
|
|
4456
|
-
}, [A, e]),
|
|
4457
|
+
}, [A, e]), b(() => {
|
|
4457
4458
|
typeof r < "u" && A !== null && A.setDraggable(r);
|
|
4458
|
-
}, [A, r]),
|
|
4459
|
+
}, [A, r]), b(() => {
|
|
4459
4460
|
typeof n < "u" && A !== null && A.setEditable(n);
|
|
4460
|
-
}, [A, n]),
|
|
4461
|
+
}, [A, n]), b(() => {
|
|
4461
4462
|
typeof i < "u" && A !== null && A.setVisible(i);
|
|
4462
|
-
}, [A, i]),
|
|
4463
|
+
}, [A, i]), b(() => {
|
|
4463
4464
|
typeof a < "u" && A !== null && A.setPath(a);
|
|
4464
|
-
}, [A, a]),
|
|
4465
|
+
}, [A, a]), b(() => {
|
|
4465
4466
|
typeof s < "u" && A !== null && A.setPaths(s);
|
|
4466
|
-
}, [A, s]),
|
|
4467
|
-
A && typeof o == "function" && (
|
|
4468
|
-
}, [o]),
|
|
4467
|
+
}, [A, s]), b(() => {
|
|
4468
|
+
A && typeof o == "function" && (j !== null && google.maps.event.removeListener(j), P(google.maps.event.addListener(A, "dblclick", o)));
|
|
4469
|
+
}, [o]), b(() => {
|
|
4469
4470
|
A && (google.maps.event.addListener(A.getPath(), "insert_at", () => {
|
|
4470
|
-
|
|
4471
|
+
E == null || E(A);
|
|
4471
4472
|
}), google.maps.event.addListener(A.getPath(), "set_at", () => {
|
|
4472
|
-
|
|
4473
|
+
E == null || E(A);
|
|
4473
4474
|
}), google.maps.event.addListener(A.getPath(), "remove_at", () => {
|
|
4474
|
-
|
|
4475
|
+
E == null || E(A);
|
|
4475
4476
|
}));
|
|
4476
|
-
}, [A,
|
|
4477
|
+
}, [A, E]), b(() => {
|
|
4477
4478
|
A && typeof u == "function" && (S !== null && google.maps.event.removeListener(S), M(google.maps.event.addListener(A, "dragend", u)));
|
|
4478
|
-
}, [u]),
|
|
4479
|
+
}, [u]), b(() => {
|
|
4479
4480
|
A && typeof l == "function" && (k !== null && google.maps.event.removeListener(k), R(google.maps.event.addListener(A, "dragstart", l)));
|
|
4480
|
-
}, [l]),
|
|
4481
|
+
}, [l]), b(() => {
|
|
4481
4482
|
A && typeof c == "function" && (I !== null && google.maps.event.removeListener(I), N(google.maps.event.addListener(A, "mousedown", c)));
|
|
4482
|
-
}, [c]),
|
|
4483
|
-
A && typeof d == "function" && (K !== null && google.maps.event.removeListener(K),
|
|
4484
|
-
}, [d]),
|
|
4485
|
-
A && typeof h == "function" && (Q !== null && google.maps.event.removeListener(Q),
|
|
4486
|
-
}, [h]),
|
|
4487
|
-
A && typeof m == "function" && (
|
|
4488
|
-
}, [m]),
|
|
4483
|
+
}, [c]), b(() => {
|
|
4484
|
+
A && typeof d == "function" && (K !== null && google.maps.event.removeListener(K), z(google.maps.event.addListener(A, "mousemove", d)));
|
|
4485
|
+
}, [d]), b(() => {
|
|
4486
|
+
A && typeof h == "function" && (Q !== null && google.maps.event.removeListener(Q), V(google.maps.event.addListener(A, "mouseout", h)));
|
|
4487
|
+
}, [h]), b(() => {
|
|
4488
|
+
A && typeof m == "function" && (G !== null && google.maps.event.removeListener(G), ee(google.maps.event.addListener(A, "mouseover", m)));
|
|
4489
|
+
}, [m]), b(() => {
|
|
4489
4490
|
A && typeof g == "function" && (re !== null && google.maps.event.removeListener(re), X(google.maps.event.addListener(A, "mouseup", g)));
|
|
4490
|
-
}, [g]),
|
|
4491
|
+
}, [g]), b(() => {
|
|
4491
4492
|
A && typeof v == "function" && (oe !== null && google.maps.event.removeListener(oe), T(google.maps.event.addListener(A, "rightclick", v)));
|
|
4492
|
-
}, [v]),
|
|
4493
|
+
}, [v]), b(() => {
|
|
4493
4494
|
A && typeof f == "function" && (x !== null && google.maps.event.removeListener(x), U(google.maps.event.addListener(A, "click", f)));
|
|
4494
|
-
}, [f]),
|
|
4495
|
-
A && typeof y == "function" && (
|
|
4496
|
-
}, [y]),
|
|
4495
|
+
}, [f]), b(() => {
|
|
4496
|
+
A && typeof y == "function" && ($ !== null && google.maps.event.removeListener($), q(google.maps.event.addListener(A, "drag", y)));
|
|
4497
|
+
}, [y]), b(() => {
|
|
4497
4498
|
var J = new google.maps.Polygon(ks(ks({}, e), {}, {
|
|
4498
4499
|
map: B
|
|
4499
4500
|
}));
|
|
4500
|
-
return a && J.setPath(a), s && J.setPaths(s), typeof i < "u" && J.setVisible(i), typeof n < "u" && J.setEditable(n), typeof r < "u" && J.setDraggable(r), o && P(google.maps.event.addListener(J, "dblclick", o)), u && M(google.maps.event.addListener(J, "dragend", u)), l && R(google.maps.event.addListener(J, "dragstart", l)), c && N(google.maps.event.addListener(J, "mousedown", c)), d &&
|
|
4501
|
-
|
|
4501
|
+
return a && J.setPath(a), s && J.setPaths(s), typeof i < "u" && J.setVisible(i), typeof n < "u" && J.setEditable(n), typeof r < "u" && J.setDraggable(r), o && P(google.maps.event.addListener(J, "dblclick", o)), u && M(google.maps.event.addListener(J, "dragend", u)), l && R(google.maps.event.addListener(J, "dragstart", l)), c && N(google.maps.event.addListener(J, "mousedown", c)), d && z(google.maps.event.addListener(J, "mousemove", d)), h && V(google.maps.event.addListener(J, "mouseout", h)), m && ee(google.maps.event.addListener(J, "mouseover", m)), g && X(google.maps.event.addListener(J, "mouseup", g)), v && T(google.maps.event.addListener(J, "rightclick", v)), f && U(google.maps.event.addListener(J, "click", f)), y && q(google.maps.event.addListener(J, "drag", y)), O(J), D && D(J), () => {
|
|
4502
|
+
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), w && w(J), J.setMap(null);
|
|
4502
4503
|
};
|
|
4503
4504
|
}, []), null;
|
|
4504
4505
|
}
|
|
4505
4506
|
Re(Bh);
|
|
4506
4507
|
class Ah extends ke {
|
|
4507
4508
|
constructor() {
|
|
4508
|
-
super(...arguments),
|
|
4509
|
+
super(...arguments), W(this, "registeredEvents", []);
|
|
4509
4510
|
}
|
|
4510
4511
|
componentDidMount() {
|
|
4511
4512
|
var e = this.props.options || {};
|
|
@@ -4533,7 +4534,7 @@ class Ah extends ke {
|
|
|
4533
4534
|
return null;
|
|
4534
4535
|
}
|
|
4535
4536
|
}
|
|
4536
|
-
|
|
4537
|
+
W(Ah, "contextType", pe);
|
|
4537
4538
|
function Is(t, e) {
|
|
4538
4539
|
var r = Object.keys(t);
|
|
4539
4540
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -4548,7 +4549,7 @@ function jn(t) {
|
|
|
4548
4549
|
for (var e = 1; e < arguments.length; e++) {
|
|
4549
4550
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
4550
4551
|
e % 2 ? Is(Object(r), !0).forEach(function(n) {
|
|
4551
|
-
|
|
4552
|
+
W(t, n, r[n]);
|
|
4552
4553
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Is(Object(r)).forEach(function(n) {
|
|
4553
4554
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
4554
4555
|
});
|
|
@@ -4609,58 +4610,58 @@ function Oh(t) {
|
|
|
4609
4610
|
onBoundsChanged: y,
|
|
4610
4611
|
onLoad: D,
|
|
4611
4612
|
onUnmount: w
|
|
4612
|
-
} = t,
|
|
4613
|
-
return
|
|
4614
|
-
B !== null && B.setMap(
|
|
4615
|
-
}, [
|
|
4613
|
+
} = t, E = 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 b(() => {
|
|
4615
|
+
B !== null && B.setMap(E);
|
|
4616
|
+
}, [E]), b(() => {
|
|
4616
4617
|
typeof e < "u" && B !== null && B.setOptions(e);
|
|
4617
|
-
}, [B, e]),
|
|
4618
|
+
}, [B, e]), b(() => {
|
|
4618
4619
|
typeof n < "u" && B !== null && B.setDraggable(n);
|
|
4619
|
-
}, [B, n]),
|
|
4620
|
+
}, [B, n]), b(() => {
|
|
4620
4621
|
typeof i < "u" && B !== null && B.setEditable(i);
|
|
4621
|
-
}, [B, i]),
|
|
4622
|
+
}, [B, i]), b(() => {
|
|
4622
4623
|
typeof a < "u" && B !== null && B.setVisible(a);
|
|
4623
|
-
}, [B, a]),
|
|
4624
|
+
}, [B, a]), b(() => {
|
|
4624
4625
|
typeof r < "u" && B !== null && B.setBounds(r);
|
|
4625
|
-
}, [B, r]),
|
|
4626
|
-
B && s && (O !== null && google.maps.event.removeListener(O),
|
|
4627
|
-
}, [s]),
|
|
4626
|
+
}, [B, r]), b(() => {
|
|
4627
|
+
B && s && (O !== null && google.maps.event.removeListener(O), j(google.maps.event.addListener(B, "dblclick", s)));
|
|
4628
|
+
}, [s]), b(() => {
|
|
4628
4629
|
B && o && (P !== null && google.maps.event.removeListener(P), S(google.maps.event.addListener(B, "dragend", o)));
|
|
4629
|
-
}, [o]),
|
|
4630
|
+
}, [o]), b(() => {
|
|
4630
4631
|
B && u && (M !== null && google.maps.event.removeListener(M), k(google.maps.event.addListener(B, "dragstart", u)));
|
|
4631
|
-
}, [u]),
|
|
4632
|
+
}, [u]), b(() => {
|
|
4632
4633
|
B && l && (R !== null && google.maps.event.removeListener(R), I(google.maps.event.addListener(B, "mousedown", l)));
|
|
4633
|
-
}, [l]),
|
|
4634
|
+
}, [l]), b(() => {
|
|
4634
4635
|
B && c && (N !== null && google.maps.event.removeListener(N), K(google.maps.event.addListener(B, "mousemove", c)));
|
|
4635
|
-
}, [c]),
|
|
4636
|
-
B && d && (
|
|
4637
|
-
}, [d]),
|
|
4638
|
-
B && h && (
|
|
4639
|
-
}, [h]),
|
|
4636
|
+
}, [c]), b(() => {
|
|
4637
|
+
B && d && (z !== null && google.maps.event.removeListener(z), Q(google.maps.event.addListener(B, "mouseout", d)));
|
|
4638
|
+
}, [d]), b(() => {
|
|
4639
|
+
B && h && (V !== null && google.maps.event.removeListener(V), G(google.maps.event.addListener(B, "mouseover", h)));
|
|
4640
|
+
}, [h]), b(() => {
|
|
4640
4641
|
B && m && (ee !== null && google.maps.event.removeListener(ee), re(google.maps.event.addListener(B, "mouseup", m)));
|
|
4641
|
-
}, [m]),
|
|
4642
|
+
}, [m]), b(() => {
|
|
4642
4643
|
B && g && (X !== null && google.maps.event.removeListener(X), oe(google.maps.event.addListener(B, "rightclick", g)));
|
|
4643
|
-
}, [g]),
|
|
4644
|
+
}, [g]), b(() => {
|
|
4644
4645
|
B && v && (T !== null && google.maps.event.removeListener(T), x(google.maps.event.addListener(B, "click", v)));
|
|
4645
|
-
}, [v]),
|
|
4646
|
-
B && f && (U !== null && google.maps.event.removeListener(U),
|
|
4647
|
-
}, [f]),
|
|
4648
|
-
B && y && (
|
|
4649
|
-
}, [y]),
|
|
4646
|
+
}, [v]), b(() => {
|
|
4647
|
+
B && f && (U !== null && google.maps.event.removeListener(U), $(google.maps.event.addListener(B, "drag", f)));
|
|
4648
|
+
}, [f]), b(() => {
|
|
4649
|
+
B && y && (q !== null && google.maps.event.removeListener(q), J(google.maps.event.addListener(B, "bounds_changed", y)));
|
|
4650
|
+
}, [y]), b(() => {
|
|
4650
4651
|
var Y = new google.maps.Rectangle(jn(jn({}, e), {}, {
|
|
4651
|
-
map:
|
|
4652
|
+
map: E
|
|
4652
4653
|
}));
|
|
4653
|
-
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 &&
|
|
4654
|
-
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),
|
|
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
|
+
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);
|
|
4655
4656
|
};
|
|
4656
4657
|
}, []), null;
|
|
4657
4658
|
}
|
|
4658
4659
|
Re(Oh);
|
|
4659
4660
|
class Lh extends ke {
|
|
4660
4661
|
constructor() {
|
|
4661
|
-
super(...arguments),
|
|
4662
|
+
super(...arguments), W(this, "registeredEvents", []), W(this, "state", {
|
|
4662
4663
|
rectangle: null
|
|
4663
|
-
}),
|
|
4664
|
+
}), W(this, "setRectangleCallback", () => {
|
|
4664
4665
|
this.state.rectangle !== null && this.props.onLoad && this.props.onLoad(this.state.rectangle);
|
|
4665
4666
|
});
|
|
4666
4667
|
}
|
|
@@ -4696,7 +4697,7 @@ class Lh extends ke {
|
|
|
4696
4697
|
return null;
|
|
4697
4698
|
}
|
|
4698
4699
|
}
|
|
4699
|
-
|
|
4700
|
+
W(Lh, "contextType", pe);
|
|
4700
4701
|
function $s(t, e) {
|
|
4701
4702
|
var r = Object.keys(t);
|
|
4702
4703
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -4711,7 +4712,7 @@ function $n(t) {
|
|
|
4711
4712
|
for (var e = 1; e < arguments.length; e++) {
|
|
4712
4713
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
4713
4714
|
e % 2 ? $s(Object(r), !0).forEach(function(n) {
|
|
4714
|
-
|
|
4715
|
+
W(t, n, r[n]);
|
|
4715
4716
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : $s(Object(r)).forEach(function(n) {
|
|
4716
4717
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
4717
4718
|
});
|
|
@@ -4776,64 +4777,64 @@ function Fh(t) {
|
|
|
4776
4777
|
onDrag: y,
|
|
4777
4778
|
onCenterChanged: D,
|
|
4778
4779
|
onRadiusChanged: w,
|
|
4779
|
-
onLoad:
|
|
4780
|
+
onLoad: E,
|
|
4780
4781
|
onUnmount: B
|
|
4781
|
-
} = t, A = Ae(pe), [O,
|
|
4782
|
-
return
|
|
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 b(() => {
|
|
4783
4784
|
O !== null && O.setMap(A);
|
|
4784
|
-
}, [A]),
|
|
4785
|
+
}, [A]), b(() => {
|
|
4785
4786
|
typeof e < "u" && O !== null && O.setOptions(e);
|
|
4786
|
-
}, [O, e]),
|
|
4787
|
+
}, [O, e]), b(() => {
|
|
4787
4788
|
typeof i < "u" && O !== null && O.setDraggable(i);
|
|
4788
|
-
}, [O, i]),
|
|
4789
|
+
}, [O, i]), b(() => {
|
|
4789
4790
|
typeof a < "u" && O !== null && O.setEditable(a);
|
|
4790
|
-
}, [O, a]),
|
|
4791
|
+
}, [O, a]), b(() => {
|
|
4791
4792
|
typeof s < "u" && O !== null && O.setVisible(s);
|
|
4792
|
-
}, [O, s]),
|
|
4793
|
+
}, [O, s]), b(() => {
|
|
4793
4794
|
typeof n == "number" && O !== null && O.setRadius(n);
|
|
4794
|
-
}, [O, n]),
|
|
4795
|
+
}, [O, n]), b(() => {
|
|
4795
4796
|
typeof r < "u" && O !== null && O.setCenter(r);
|
|
4796
|
-
}, [O, r]),
|
|
4797
|
+
}, [O, r]), b(() => {
|
|
4797
4798
|
O && o && (P !== null && google.maps.event.removeListener(P), S(google.maps.event.addListener(O, "dblclick", o)));
|
|
4798
|
-
}, [o]),
|
|
4799
|
+
}, [o]), b(() => {
|
|
4799
4800
|
O && u && (M !== null && google.maps.event.removeListener(M), k(google.maps.event.addListener(O, "dragend", u)));
|
|
4800
|
-
}, [u]),
|
|
4801
|
+
}, [u]), b(() => {
|
|
4801
4802
|
O && l && (R !== null && google.maps.event.removeListener(R), I(google.maps.event.addListener(O, "dragstart", l)));
|
|
4802
|
-
}, [l]),
|
|
4803
|
+
}, [l]), b(() => {
|
|
4803
4804
|
O && c && (N !== null && google.maps.event.removeListener(N), K(google.maps.event.addListener(O, "mousedown", c)));
|
|
4804
|
-
}, [c]),
|
|
4805
|
-
O && d && (
|
|
4806
|
-
}, [d]),
|
|
4807
|
-
O && h && (
|
|
4808
|
-
}, [h]),
|
|
4805
|
+
}, [c]), b(() => {
|
|
4806
|
+
O && d && (z !== null && google.maps.event.removeListener(z), Q(google.maps.event.addListener(O, "mousemove", d)));
|
|
4807
|
+
}, [d]), b(() => {
|
|
4808
|
+
O && h && (V !== null && google.maps.event.removeListener(V), G(google.maps.event.addListener(O, "mouseout", h)));
|
|
4809
|
+
}, [h]), b(() => {
|
|
4809
4810
|
O && m && (ee !== null && google.maps.event.removeListener(ee), re(google.maps.event.addListener(O, "mouseover", m)));
|
|
4810
|
-
}, [m]),
|
|
4811
|
+
}, [m]), b(() => {
|
|
4811
4812
|
O && g && (X !== null && google.maps.event.removeListener(X), oe(google.maps.event.addListener(O, "mouseup", g)));
|
|
4812
|
-
}, [g]),
|
|
4813
|
+
}, [g]), b(() => {
|
|
4813
4814
|
O && v && (T !== null && google.maps.event.removeListener(T), x(google.maps.event.addListener(O, "rightclick", v)));
|
|
4814
|
-
}, [v]),
|
|
4815
|
-
O && f && (U !== null && google.maps.event.removeListener(U),
|
|
4816
|
-
}, [f]),
|
|
4817
|
-
O && y && (
|
|
4818
|
-
}, [y]),
|
|
4815
|
+
}, [v]), b(() => {
|
|
4816
|
+
O && f && (U !== null && google.maps.event.removeListener(U), $(google.maps.event.addListener(O, "click", f)));
|
|
4817
|
+
}, [f]), b(() => {
|
|
4818
|
+
O && y && (q !== null && google.maps.event.removeListener(q), J(google.maps.event.addListener(O, "drag", y)));
|
|
4819
|
+
}, [y]), b(() => {
|
|
4819
4820
|
O && D && (Y !== null && google.maps.event.removeListener(Y), ie(google.maps.event.addListener(O, "center_changed", D)));
|
|
4820
|
-
}, [f]),
|
|
4821
|
+
}, [f]), b(() => {
|
|
4821
4822
|
O && w && (ue !== null && google.maps.event.removeListener(ue), le(google.maps.event.addListener(O, "radius_changed", w)));
|
|
4822
|
-
}, [w]),
|
|
4823
|
+
}, [w]), b(() => {
|
|
4823
4824
|
var ce = new google.maps.Circle($n($n({}, e || xh), {}, {
|
|
4824
4825
|
map: A
|
|
4825
4826
|
}));
|
|
4826
|
-
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 &&
|
|
4827
|
-
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),
|
|
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), E && E(ce), () => {
|
|
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);
|
|
4828
4829
|
};
|
|
4829
4830
|
}, []), null;
|
|
4830
4831
|
}
|
|
4831
4832
|
Re(Fh);
|
|
4832
4833
|
class Ph extends ke {
|
|
4833
4834
|
constructor() {
|
|
4834
|
-
super(...arguments),
|
|
4835
|
+
super(...arguments), W(this, "registeredEvents", []), W(this, "state", {
|
|
4835
4836
|
circle: null
|
|
4836
|
-
}),
|
|
4837
|
+
}), W(this, "setCircleCallback", () => {
|
|
4837
4838
|
this.state.circle !== null && this.props.onLoad && this.props.onLoad(this.state.circle);
|
|
4838
4839
|
});
|
|
4839
4840
|
}
|
|
@@ -4872,7 +4873,7 @@ class Ph extends ke {
|
|
|
4872
4873
|
return null;
|
|
4873
4874
|
}
|
|
4874
4875
|
}
|
|
4875
|
-
|
|
4876
|
+
W(Ph, "contextType", pe);
|
|
4876
4877
|
function Us(t, e) {
|
|
4877
4878
|
var r = Object.keys(t);
|
|
4878
4879
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -4887,7 +4888,7 @@ function zn(t) {
|
|
|
4887
4888
|
for (var e = 1; e < arguments.length; e++) {
|
|
4888
4889
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
4889
4890
|
e % 2 ? Us(Object(r), !0).forEach(function(n) {
|
|
4890
|
-
|
|
4891
|
+
W(t, n, r[n]);
|
|
4891
4892
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Us(Object(r)).forEach(function(n) {
|
|
4892
4893
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
4893
4894
|
});
|
|
@@ -4969,53 +4970,53 @@ function Sh(t) {
|
|
|
4969
4970
|
onSetProperty: g,
|
|
4970
4971
|
onLoad: v,
|
|
4971
4972
|
onUnmount: f
|
|
4972
|
-
} = t, y = Ae(pe), [D, w] = F(null), [
|
|
4973
|
-
return
|
|
4973
|
+
} = t, y = Ae(pe), [D, w] = F(null), [E, 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 b(() => {
|
|
4974
4975
|
D !== null && D.setMap(y);
|
|
4975
|
-
}, [y]),
|
|
4976
|
-
D && n && (
|
|
4977
|
-
}, [n]),
|
|
4976
|
+
}, [y]), b(() => {
|
|
4977
|
+
D && n && (E !== null && google.maps.event.removeListener(E), B(google.maps.event.addListener(D, "dblclick", n)));
|
|
4978
|
+
}, [n]), b(() => {
|
|
4978
4979
|
D && i && (A !== null && google.maps.event.removeListener(A), O(google.maps.event.addListener(D, "mousedown", i)));
|
|
4979
|
-
}, [i]),
|
|
4980
|
-
D && a && (
|
|
4981
|
-
}, [a]),
|
|
4980
|
+
}, [i]), b(() => {
|
|
4981
|
+
D && a && (j !== null && google.maps.event.removeListener(j), P(google.maps.event.addListener(D, "mousemove", a)));
|
|
4982
|
+
}, [a]), b(() => {
|
|
4982
4983
|
D && s && (S !== null && google.maps.event.removeListener(S), M(google.maps.event.addListener(D, "mouseout", s)));
|
|
4983
|
-
}, [s]),
|
|
4984
|
+
}, [s]), b(() => {
|
|
4984
4985
|
D && o && (k !== null && google.maps.event.removeListener(k), R(google.maps.event.addListener(D, "mouseover", o)));
|
|
4985
|
-
}, [o]),
|
|
4986
|
+
}, [o]), b(() => {
|
|
4986
4987
|
D && u && (I !== null && google.maps.event.removeListener(I), N(google.maps.event.addListener(D, "mouseup", u)));
|
|
4987
|
-
}, [u]),
|
|
4988
|
-
D && l && (K !== null && google.maps.event.removeListener(K),
|
|
4989
|
-
}, [l]),
|
|
4990
|
-
D && r && (Q !== null && google.maps.event.removeListener(Q),
|
|
4991
|
-
}, [r]),
|
|
4992
|
-
D && c && (
|
|
4993
|
-
}, [c]),
|
|
4988
|
+
}, [u]), b(() => {
|
|
4989
|
+
D && l && (K !== null && google.maps.event.removeListener(K), z(google.maps.event.addListener(D, "rightclick", l)));
|
|
4990
|
+
}, [l]), b(() => {
|
|
4991
|
+
D && r && (Q !== null && google.maps.event.removeListener(Q), V(google.maps.event.addListener(D, "click", r)));
|
|
4992
|
+
}, [r]), b(() => {
|
|
4993
|
+
D && c && (G !== null && google.maps.event.removeListener(G), ee(google.maps.event.addListener(D, "addfeature", c)));
|
|
4994
|
+
}, [c]), b(() => {
|
|
4994
4995
|
D && d && (re !== null && google.maps.event.removeListener(re), X(google.maps.event.addListener(D, "removefeature", d)));
|
|
4995
|
-
}, [d]),
|
|
4996
|
+
}, [d]), b(() => {
|
|
4996
4997
|
D && h && (oe !== null && google.maps.event.removeListener(oe), T(google.maps.event.addListener(D, "removeproperty", h)));
|
|
4997
|
-
}, [h]),
|
|
4998
|
+
}, [h]), b(() => {
|
|
4998
4999
|
D && m && (x !== null && google.maps.event.removeListener(x), U(google.maps.event.addListener(D, "setgeometry", m)));
|
|
4999
|
-
}, [m]),
|
|
5000
|
-
D && g && (
|
|
5001
|
-
}, [g]),
|
|
5000
|
+
}, [m]), b(() => {
|
|
5001
|
+
D && g && ($ !== null && google.maps.event.removeListener($), q(google.maps.event.addListener(D, "setproperty", g)));
|
|
5002
|
+
}, [g]), b(() => {
|
|
5002
5003
|
if (y !== null) {
|
|
5003
5004
|
var J = new google.maps.Data(zn(zn({}, e), {}, {
|
|
5004
5005
|
map: y
|
|
5005
5006
|
}));
|
|
5006
|
-
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 &&
|
|
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);
|
|
5007
5008
|
}
|
|
5008
5009
|
return () => {
|
|
5009
|
-
D && (
|
|
5010
|
+
D && (E !== null && google.maps.event.removeListener(E), 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));
|
|
5010
5011
|
};
|
|
5011
5012
|
}, []), null;
|
|
5012
5013
|
}
|
|
5013
5014
|
Re(Sh);
|
|
5014
5015
|
class Mh extends ke {
|
|
5015
5016
|
constructor() {
|
|
5016
|
-
super(...arguments),
|
|
5017
|
+
super(...arguments), W(this, "registeredEvents", []), W(this, "state", {
|
|
5017
5018
|
data: null
|
|
5018
|
-
}),
|
|
5019
|
+
}), W(this, "setDataCallback", () => {
|
|
5019
5020
|
this.state.data !== null && this.props.onLoad && this.props.onLoad(this.state.data);
|
|
5020
5021
|
});
|
|
5021
5022
|
}
|
|
@@ -5051,7 +5052,7 @@ class Mh extends ke {
|
|
|
5051
5052
|
return null;
|
|
5052
5053
|
}
|
|
5053
5054
|
}
|
|
5054
|
-
|
|
5055
|
+
W(Mh, "contextType", pe);
|
|
5055
5056
|
function Vs(t, e) {
|
|
5056
5057
|
var r = Object.keys(t);
|
|
5057
5058
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -5066,7 +5067,7 @@ function Gs(t) {
|
|
|
5066
5067
|
for (var e = 1; e < arguments.length; e++) {
|
|
5067
5068
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
5068
5069
|
e % 2 ? Vs(Object(r), !0).forEach(function(n) {
|
|
5069
|
-
|
|
5070
|
+
W(t, n, r[n]);
|
|
5070
5071
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Vs(Object(r)).forEach(function(n) {
|
|
5071
5072
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
5072
5073
|
});
|
|
@@ -5090,9 +5091,9 @@ var qs = {
|
|
|
5090
5091
|
};
|
|
5091
5092
|
class kh extends ke {
|
|
5092
5093
|
constructor() {
|
|
5093
|
-
super(...arguments),
|
|
5094
|
+
super(...arguments), W(this, "registeredEvents", []), W(this, "state", {
|
|
5094
5095
|
kmlLayer: null
|
|
5095
|
-
}),
|
|
5096
|
+
}), W(this, "setKmlLayerCallback", () => {
|
|
5096
5097
|
this.state.kmlLayer !== null && this.props.onLoad && this.props.onLoad(this.state.kmlLayer);
|
|
5097
5098
|
});
|
|
5098
5099
|
}
|
|
@@ -5128,7 +5129,7 @@ class kh extends ke {
|
|
|
5128
5129
|
return null;
|
|
5129
5130
|
}
|
|
5130
5131
|
}
|
|
5131
|
-
|
|
5132
|
+
W(kh, "contextType", pe);
|
|
5132
5133
|
function Ll(t, e) {
|
|
5133
5134
|
return typeof e == "function" ? e(t.offsetWidth, t.offsetHeight) : {
|
|
5134
5135
|
x: 0,
|
|
@@ -5196,7 +5197,7 @@ function _h(t) {
|
|
|
5196
5197
|
for (var e = 1; e < arguments.length; e++) {
|
|
5197
5198
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
5198
5199
|
e % 2 ? Ks(Object(r), !0).forEach(function(n) {
|
|
5199
|
-
|
|
5200
|
+
W(t, n, r[n]);
|
|
5200
5201
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Ks(Object(r)).forEach(function(n) {
|
|
5201
5202
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
5202
5203
|
});
|
|
@@ -5240,7 +5241,7 @@ function Wh(t) {
|
|
|
5240
5241
|
for (var e = 1; e < arguments.length; e++) {
|
|
5241
5242
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
5242
5243
|
e % 2 ? Xs(Object(r), !0).forEach(function(n) {
|
|
5243
|
-
|
|
5244
|
+
W(t, n, r[n]);
|
|
5244
5245
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Xs(Object(r)).forEach(function(n) {
|
|
5245
5246
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
5246
5247
|
});
|
|
@@ -5273,32 +5274,32 @@ function Hh(t) {
|
|
|
5273
5274
|
var h = document.createElement("div");
|
|
5274
5275
|
return h.style.position = "absolute", h;
|
|
5275
5276
|
}, []), d = Pt(() => Uh(c, n, e, r, o), [c, n, e, r]);
|
|
5276
|
-
return
|
|
5277
|
+
return b(() => (a == null || a(d), d == null || d.setMap(l), () => {
|
|
5277
5278
|
s == null || s(d), d == null || d.setMap(null);
|
|
5278
|
-
}), [l, d]),
|
|
5279
|
+
}), [l, d]), b(() => {
|
|
5279
5280
|
c.style.zIndex = "".concat(i);
|
|
5280
5281
|
}, [i, c]), ol.createPortal(u, c);
|
|
5281
5282
|
}
|
|
5282
5283
|
Re(Hh);
|
|
5283
5284
|
class Br extends ke {
|
|
5284
5285
|
constructor(e) {
|
|
5285
|
-
super(e),
|
|
5286
|
+
super(e), W(this, "state", {
|
|
5286
5287
|
paneEl: null,
|
|
5287
5288
|
containerStyle: {
|
|
5288
5289
|
// set initial position
|
|
5289
5290
|
position: "absolute"
|
|
5290
5291
|
}
|
|
5291
|
-
}),
|
|
5292
|
+
}), W(this, "updatePane", () => {
|
|
5292
5293
|
var n = this.props.mapPaneName, i = this.overlayView.getPanes();
|
|
5293
5294
|
$e(!!n, "OverlayView requires props.mapPaneName but got %s", n), i ? this.setState({
|
|
5294
5295
|
paneEl: i[n]
|
|
5295
5296
|
}) : this.setState({
|
|
5296
5297
|
paneEl: null
|
|
5297
5298
|
});
|
|
5298
|
-
}),
|
|
5299
|
+
}), W(this, "onAdd", () => {
|
|
5299
5300
|
var n, i;
|
|
5300
5301
|
this.updatePane(), (n = (i = this.props).onLoad) === null || n === void 0 || n.call(i, this.overlayView);
|
|
5301
|
-
}),
|
|
5302
|
+
}), W(this, "onPositionElement", () => {
|
|
5302
5303
|
var n = this.overlayView.getProjection(), i = Wh({
|
|
5303
5304
|
x: 0,
|
|
5304
5305
|
y: 0
|
|
@@ -5328,9 +5329,9 @@ class Br extends ke {
|
|
|
5328
5329
|
}
|
|
5329
5330
|
});
|
|
5330
5331
|
}
|
|
5331
|
-
}),
|
|
5332
|
+
}), W(this, "draw", () => {
|
|
5332
5333
|
this.onPositionElement();
|
|
5333
|
-
}),
|
|
5334
|
+
}), W(this, "onRemove", () => {
|
|
5334
5335
|
var n, i;
|
|
5335
5336
|
this.setState(() => ({
|
|
5336
5337
|
paneEl: null
|
|
@@ -5358,12 +5359,12 @@ class Br extends ke {
|
|
|
5358
5359
|
}), e) : null;
|
|
5359
5360
|
}
|
|
5360
5361
|
}
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5362
|
+
W(Br, "FLOAT_PANE", "floatPane");
|
|
5363
|
+
W(Br, "MAP_PANE", "mapPane");
|
|
5364
|
+
W(Br, "MARKER_LAYER", "markerLayer");
|
|
5365
|
+
W(Br, "OVERLAY_LAYER", "overlayLayer");
|
|
5366
|
+
W(Br, "OVERLAY_MOUSE_TARGET", "overlayMouseTarget");
|
|
5367
|
+
W(Br, "contextType", pe);
|
|
5367
5368
|
function Vh() {
|
|
5368
5369
|
}
|
|
5369
5370
|
function Qs(t, e) {
|
|
@@ -5380,7 +5381,7 @@ function eo(t) {
|
|
|
5380
5381
|
for (var e = 1; e < arguments.length; e++) {
|
|
5381
5382
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
5382
5383
|
e % 2 ? Qs(Object(r), !0).forEach(function(n) {
|
|
5383
|
-
|
|
5384
|
+
W(t, n, r[n]);
|
|
5384
5385
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Qs(Object(r)).forEach(function(n) {
|
|
5385
5386
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
5386
5387
|
});
|
|
@@ -5402,13 +5403,13 @@ function Gh(t) {
|
|
|
5402
5403
|
options: n,
|
|
5403
5404
|
visible: i
|
|
5404
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), []);
|
|
5405
|
-
return
|
|
5406
|
+
return b(() => {
|
|
5406
5407
|
o !== null && o.setMap(a);
|
|
5407
|
-
}, [a]),
|
|
5408
|
+
}, [a]), b(() => {
|
|
5408
5409
|
typeof e < "u" && o !== null && (o.set("url", e), o.setMap(a));
|
|
5409
|
-
}, [o, e]),
|
|
5410
|
+
}, [o, e]), b(() => {
|
|
5410
5411
|
typeof i < "u" && o !== null && o.setOpacity(i ? 1 : 0);
|
|
5411
|
-
}, [o, i]),
|
|
5412
|
+
}, [o, i]), b(() => {
|
|
5412
5413
|
var u = new google.maps.LatLngBounds(new google.maps.LatLng(r.south, r.west), new google.maps.LatLng(r.north, r.east));
|
|
5413
5414
|
typeof r < "u" && o !== null && (o.set("bounds", u), o.setMap(a));
|
|
5414
5415
|
}, [o, r]), null;
|
|
@@ -5416,9 +5417,9 @@ function Gh(t) {
|
|
|
5416
5417
|
Re(Gh);
|
|
5417
5418
|
class Fl extends ke {
|
|
5418
5419
|
constructor() {
|
|
5419
|
-
super(...arguments),
|
|
5420
|
+
super(...arguments), W(this, "registeredEvents", []), W(this, "state", {
|
|
5420
5421
|
groundOverlay: null
|
|
5421
|
-
}),
|
|
5422
|
+
}), W(this, "setGroundOverlayCallback", () => {
|
|
5422
5423
|
this.state.groundOverlay !== null && this.props.onLoad && this.props.onLoad(this.state.groundOverlay);
|
|
5423
5424
|
});
|
|
5424
5425
|
}
|
|
@@ -5455,10 +5456,10 @@ class Fl extends ke {
|
|
|
5455
5456
|
return null;
|
|
5456
5457
|
}
|
|
5457
5458
|
}
|
|
5458
|
-
|
|
5459
|
+
W(Fl, "defaultProps", {
|
|
5459
5460
|
onLoad: Vh
|
|
5460
5461
|
});
|
|
5461
|
-
|
|
5462
|
+
W(Fl, "contextType", pe);
|
|
5462
5463
|
function no(t, e) {
|
|
5463
5464
|
var r = Object.keys(t);
|
|
5464
5465
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -5473,7 +5474,7 @@ function _n(t) {
|
|
|
5473
5474
|
for (var e = 1; e < arguments.length; e++) {
|
|
5474
5475
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
5475
5476
|
e % 2 ? no(Object(r), !0).forEach(function(n) {
|
|
5476
|
-
|
|
5477
|
+
W(t, n, r[n]);
|
|
5477
5478
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : no(Object(r)).forEach(function(n) {
|
|
5478
5479
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
5479
5480
|
});
|
|
@@ -5498,15 +5499,15 @@ function qh(t) {
|
|
|
5498
5499
|
onUnmount: n,
|
|
5499
5500
|
options: i
|
|
5500
5501
|
} = t, a = Ae(pe), [s, o] = F(null);
|
|
5501
|
-
return
|
|
5502
|
+
return b(() => {
|
|
5502
5503
|
google.maps.visualization || $e(!!google.maps.visualization, 'Did you include prop libraries={["visualization"]} in useJsApiScript? %s', google.maps.visualization);
|
|
5503
|
-
}, []),
|
|
5504
|
+
}, []), b(() => {
|
|
5504
5505
|
$e(!!e, "data property is required in HeatmapLayer %s", e);
|
|
5505
|
-
}, [e]),
|
|
5506
|
+
}, [e]), b(() => {
|
|
5506
5507
|
s !== null && s.setMap(a);
|
|
5507
|
-
}, [a]),
|
|
5508
|
+
}, [a]), b(() => {
|
|
5508
5509
|
i && s !== null && s.setOptions(i);
|
|
5509
|
-
}, [s, i]),
|
|
5510
|
+
}, [s, i]), b(() => {
|
|
5510
5511
|
var u = new google.maps.visualization.HeatmapLayer(_n(_n({}, i), {}, {
|
|
5511
5512
|
data: e,
|
|
5512
5513
|
map: a
|
|
@@ -5519,9 +5520,9 @@ function qh(t) {
|
|
|
5519
5520
|
Re(qh);
|
|
5520
5521
|
class Zh extends ke {
|
|
5521
5522
|
constructor() {
|
|
5522
|
-
super(...arguments),
|
|
5523
|
+
super(...arguments), W(this, "registeredEvents", []), W(this, "state", {
|
|
5523
5524
|
heatmapLayer: null
|
|
5524
|
-
}),
|
|
5525
|
+
}), W(this, "setHeatmapLayerCallback", () => {
|
|
5525
5526
|
this.state.heatmapLayer !== null && this.props.onLoad && this.props.onLoad(this.state.heatmapLayer);
|
|
5526
5527
|
});
|
|
5527
5528
|
}
|
|
@@ -5559,7 +5560,7 @@ class Zh extends ke {
|
|
|
5559
5560
|
return null;
|
|
5560
5561
|
}
|
|
5561
5562
|
}
|
|
5562
|
-
|
|
5563
|
+
W(Zh, "contextType", pe);
|
|
5563
5564
|
var so = {
|
|
5564
5565
|
onCloseClick: "closeclick",
|
|
5565
5566
|
onPanoChanged: "pano_changed",
|
|
@@ -5600,9 +5601,9 @@ var so = {
|
|
|
5600
5601
|
};
|
|
5601
5602
|
class Kh extends ke {
|
|
5602
5603
|
constructor() {
|
|
5603
|
-
super(...arguments),
|
|
5604
|
+
super(...arguments), W(this, "registeredEvents", []), W(this, "state", {
|
|
5604
5605
|
streetViewPanorama: null
|
|
5605
|
-
}),
|
|
5606
|
+
}), W(this, "setStreetViewPanoramaCallback", () => {
|
|
5606
5607
|
this.state.streetViewPanorama !== null && this.props.onLoad && this.props.onLoad(this.state.streetViewPanorama);
|
|
5607
5608
|
});
|
|
5608
5609
|
}
|
|
@@ -5634,12 +5635,12 @@ class Kh extends ke {
|
|
|
5634
5635
|
return null;
|
|
5635
5636
|
}
|
|
5636
5637
|
}
|
|
5637
|
-
|
|
5638
|
+
W(Kh, "contextType", pe);
|
|
5638
5639
|
class Xh extends ke {
|
|
5639
5640
|
constructor() {
|
|
5640
|
-
super(...arguments),
|
|
5641
|
+
super(...arguments), W(this, "state", {
|
|
5641
5642
|
streetViewService: null
|
|
5642
|
-
}),
|
|
5643
|
+
}), W(this, "setStreetViewServiceCallback", () => {
|
|
5643
5644
|
this.state.streetViewService !== null && this.props.onLoad && this.props.onLoad(this.state.streetViewService);
|
|
5644
5645
|
});
|
|
5645
5646
|
}
|
|
@@ -5658,7 +5659,7 @@ class Xh extends ke {
|
|
|
5658
5659
|
return null;
|
|
5659
5660
|
}
|
|
5660
5661
|
}
|
|
5661
|
-
|
|
5662
|
+
W(Xh, "contextType", pe);
|
|
5662
5663
|
var uo = {
|
|
5663
5664
|
onDirectionsChanged: "directions_changed"
|
|
5664
5665
|
}, lo = {
|
|
@@ -5680,9 +5681,9 @@ var uo = {
|
|
|
5680
5681
|
};
|
|
5681
5682
|
class Yh extends ke {
|
|
5682
5683
|
constructor() {
|
|
5683
|
-
super(...arguments),
|
|
5684
|
+
super(...arguments), W(this, "registeredEvents", []), W(this, "state", {
|
|
5684
5685
|
directionsRenderer: null
|
|
5685
|
-
}),
|
|
5686
|
+
}), W(this, "setDirectionsRendererCallback", () => {
|
|
5686
5687
|
this.state.directionsRenderer !== null && (this.state.directionsRenderer.setMap(this.context), this.props.onLoad && this.props.onLoad(this.state.directionsRenderer));
|
|
5687
5688
|
});
|
|
5688
5689
|
}
|
|
@@ -5716,7 +5717,7 @@ class Yh extends ke {
|
|
|
5716
5717
|
return null;
|
|
5717
5718
|
}
|
|
5718
5719
|
}
|
|
5719
|
-
|
|
5720
|
+
W(Yh, "contextType", pe);
|
|
5720
5721
|
var co = {
|
|
5721
5722
|
onPlacesChanged: "places_changed"
|
|
5722
5723
|
}, fo = {
|
|
@@ -5726,9 +5727,9 @@ var co = {
|
|
|
5726
5727
|
};
|
|
5727
5728
|
class Pl extends ke {
|
|
5728
5729
|
constructor() {
|
|
5729
|
-
super(...arguments),
|
|
5730
|
+
super(...arguments), W(this, "registeredEvents", []), W(this, "containerElement", ia()), W(this, "state", {
|
|
5730
5731
|
searchBox: null
|
|
5731
|
-
}),
|
|
5732
|
+
}), W(this, "setSearchBoxCallback", () => {
|
|
5732
5733
|
this.state.searchBox !== null && this.props.onLoad && this.props.onLoad(this.state.searchBox);
|
|
5733
5734
|
});
|
|
5734
5735
|
}
|
|
@@ -5770,7 +5771,7 @@ class Pl extends ke {
|
|
|
5770
5771
|
});
|
|
5771
5772
|
}
|
|
5772
5773
|
}
|
|
5773
|
-
|
|
5774
|
+
W(Pl, "contextType", pe);
|
|
5774
5775
|
var ho = {
|
|
5775
5776
|
onPlaceChanged: "place_changed"
|
|
5776
5777
|
}, go = {
|
|
@@ -5792,9 +5793,9 @@ var ho = {
|
|
|
5792
5793
|
};
|
|
5793
5794
|
class Sl extends ke {
|
|
5794
5795
|
constructor() {
|
|
5795
|
-
super(...arguments),
|
|
5796
|
+
super(...arguments), W(this, "registeredEvents", []), W(this, "containerElement", ia()), W(this, "state", {
|
|
5796
5797
|
autocomplete: null
|
|
5797
|
-
}),
|
|
5798
|
+
}), W(this, "setAutocompleteCallback", () => {
|
|
5798
5799
|
this.state.autocomplete !== null && this.props.onLoad && this.props.onLoad(this.state.autocomplete);
|
|
5799
5800
|
});
|
|
5800
5801
|
}
|
|
@@ -5835,10 +5836,10 @@ class Sl extends ke {
|
|
|
5835
5836
|
});
|
|
5836
5837
|
}
|
|
5837
5838
|
}
|
|
5838
|
-
|
|
5839
|
+
W(Sl, "defaultProps", {
|
|
5839
5840
|
className: ""
|
|
5840
5841
|
});
|
|
5841
|
-
|
|
5842
|
+
W(Sl, "contextType", pe);
|
|
5842
5843
|
function tE(t) {
|
|
5843
5844
|
const {
|
|
5844
5845
|
coordinates: e,
|
|
@@ -5853,7 +5854,7 @@ function tE(t) {
|
|
|
5853
5854
|
zoom: r,
|
|
5854
5855
|
center: e,
|
|
5855
5856
|
mapContainerStyle: {
|
|
5856
|
-
borderRadius: "
|
|
5857
|
+
borderRadius: "8px",
|
|
5857
5858
|
width: "100%",
|
|
5858
5859
|
height: "100%"
|
|
5859
5860
|
},
|
|
@@ -5883,17 +5884,17 @@ function rE(t) {
|
|
|
5883
5884
|
onFocus: y,
|
|
5884
5885
|
onBlur: D,
|
|
5885
5886
|
errorMessage: w,
|
|
5886
|
-
defaultValue:
|
|
5887
|
+
defaultValue: E,
|
|
5887
5888
|
showAsterisk: B,
|
|
5888
5889
|
rightIcon: A,
|
|
5889
5890
|
size: O = "md",
|
|
5890
|
-
id:
|
|
5891
|
+
id: j,
|
|
5891
5892
|
value: P,
|
|
5892
5893
|
placeholder: S,
|
|
5893
5894
|
...M
|
|
5894
|
-
} = t, { fieldErrors: k } = lt(), [R, I] = F(!1), N = me(null), K =
|
|
5895
|
+
} = t, { fieldErrors: k } = lt(), [R, I] = F(!1), N = me(null), K = j || mt(), z = w || (k == null ? void 0 : k[e]), Q = !!z, V = r || g, ee = { md: 20, lg: 20 }[O], re = A ? "right" : "left", X = re === "left" && g, oe = re === "right" && g;
|
|
5895
5896
|
function T() {
|
|
5896
|
-
|
|
5897
|
+
V || !(N != null && N.current) || (I(!0), N.current.focus());
|
|
5897
5898
|
}
|
|
5898
5899
|
function x(le) {
|
|
5899
5900
|
I(!0), y && y(le);
|
|
@@ -5901,8 +5902,8 @@ function rE(t) {
|
|
|
5901
5902
|
function U(le) {
|
|
5902
5903
|
I(!1), D && D(le);
|
|
5903
5904
|
}
|
|
5904
|
-
const ue = `arkynMaskedInput ${h ? "hasPrefix" : ""} ${m ? "hasSuffix" : ""} ${a} ${O} ${
|
|
5905
|
-
return /* @__PURE__ */ ne(st, { children: [
|
|
5905
|
+
const ue = `arkynMaskedInput ${h ? "hasPrefix" : ""} ${m ? "hasSuffix" : ""} ${a} ${O} ${V || f || g ? "opacity" : ""} ${Q ? "errored" : ""} ${R ? "focused" : ""}`;
|
|
5906
|
+
return /* @__PURE__ */ ne(st, { className: d, children: [
|
|
5906
5907
|
c && /* @__PURE__ */ C(at, { showAsterisk: B, htmlFor: K, children: c }),
|
|
5907
5908
|
/* @__PURE__ */ ne(
|
|
5908
5909
|
"section",
|
|
@@ -5934,13 +5935,13 @@ function rE(t) {
|
|
|
5934
5935
|
ref: N,
|
|
5935
5936
|
onFocus: x,
|
|
5936
5937
|
onBlur: U,
|
|
5937
|
-
disabled:
|
|
5938
|
+
disabled: V,
|
|
5938
5939
|
readOnly: f,
|
|
5939
5940
|
id: K,
|
|
5940
5941
|
name: e,
|
|
5941
|
-
defaultValue:
|
|
5942
|
-
placeholder:
|
|
5943
|
-
value:
|
|
5942
|
+
defaultValue: E || void 0,
|
|
5943
|
+
placeholder: V && P || S,
|
|
5944
|
+
value: V ? void 0 : P,
|
|
5944
5945
|
...M
|
|
5945
5946
|
}
|
|
5946
5947
|
),
|
|
@@ -5958,7 +5959,7 @@ function rE(t) {
|
|
|
5958
5959
|
]
|
|
5959
5960
|
}
|
|
5960
5961
|
),
|
|
5961
|
-
|
|
5962
|
+
z && /* @__PURE__ */ C(ct, { children: z })
|
|
5962
5963
|
] });
|
|
5963
5964
|
}
|
|
5964
5965
|
const Ml = ze({});
|
|
@@ -6100,7 +6101,7 @@ function ug(t) {
|
|
|
6100
6101
|
}
|
|
6101
6102
|
function lg(t) {
|
|
6102
6103
|
const { children: e, isFocused: r, isSearchable: n, search: i, onSearch: a } = t, s = me(null), [o, u] = F("bottom");
|
|
6103
|
-
wr(r),
|
|
6104
|
+
wr(r), b(() => {
|
|
6104
6105
|
if (!r) return;
|
|
6105
6106
|
(() => {
|
|
6106
6107
|
if (!s.current) return;
|
|
@@ -6171,13 +6172,13 @@ function nE(t) {
|
|
|
6171
6172
|
onChange: y,
|
|
6172
6173
|
onBlur: D,
|
|
6173
6174
|
notFoundText: w = "Sem opções disponíveis",
|
|
6174
|
-
onFocus:
|
|
6175
|
+
onFocus: E,
|
|
6175
6176
|
disabled: B = !1,
|
|
6176
6177
|
prefix: A,
|
|
6177
6178
|
size: O = "md",
|
|
6178
|
-
value:
|
|
6179
|
+
value: j,
|
|
6179
6180
|
variant: P = "solid"
|
|
6180
|
-
} = t, { fieldErrors: S } = lt(), M = me(null), k = d || mt(), R = o || (S == null ? void 0 : S[e]), I = !!R, N = B || u || l,
|
|
6181
|
+
} = t, { fieldErrors: S } = lt(), M = me(null), k = d || mt(), R = o || (S == null ? void 0 : S[e]), I = !!R, N = B || u || l, z = { md: 20, lg: 20 }[O], [Q, V] = F(""), [G, ee] = F(!1), [re, X] = F(s), oe = j || re;
|
|
6181
6182
|
function T(ie) {
|
|
6182
6183
|
return oe.includes(ie);
|
|
6183
6184
|
}
|
|
@@ -6186,19 +6187,19 @@ function nE(t) {
|
|
|
6186
6187
|
return (ue == null ? void 0 : ue.label) || "";
|
|
6187
6188
|
}
|
|
6188
6189
|
function U() {
|
|
6189
|
-
N || !(M != null && M.current) ||
|
|
6190
|
+
N || !(M != null && M.current) || G || (ee(!0), M.current.focus(), E && E());
|
|
6190
6191
|
}
|
|
6191
|
-
function
|
|
6192
|
+
function $() {
|
|
6192
6193
|
ee(!1), D && M.current && M.current.blur();
|
|
6193
6194
|
}
|
|
6194
|
-
function
|
|
6195
|
-
|
|
6195
|
+
function q(ie) {
|
|
6196
|
+
V(ie), f && f(ie);
|
|
6196
6197
|
}
|
|
6197
6198
|
function J(ie) {
|
|
6198
|
-
T(ie) ? (X(re.filter((ue) => ue !== ie)), y && y(re.filter((ue) => ue !== ie))) : (X([...re, ie]), y && y([...re, ie])), a &&
|
|
6199
|
+
T(ie) ? (X(re.filter((ue) => ue !== ie)), y && y(re.filter((ue) => ue !== ie))) : (X([...re, ie]), y && y([...re, ie])), a && $();
|
|
6199
6200
|
}
|
|
6200
6201
|
const Y = r.filter((ie) => !!(t.onSearch || !t.isSearchable || ie.label.toLowerCase().includes(Q.toLowerCase())));
|
|
6201
|
-
return /* @__PURE__ */ ne(st, { children: [
|
|
6202
|
+
return /* @__PURE__ */ ne(st, { className: n, children: [
|
|
6202
6203
|
h && /* @__PURE__ */ C(at, { showAsterisk: g, children: h }),
|
|
6203
6204
|
/* @__PURE__ */ ne(
|
|
6204
6205
|
ag,
|
|
@@ -6206,12 +6207,11 @@ function nE(t) {
|
|
|
6206
6207
|
handleContainerFocus: U,
|
|
6207
6208
|
disabled: N,
|
|
6208
6209
|
isError: I,
|
|
6209
|
-
isFocused:
|
|
6210
|
+
isFocused: G,
|
|
6210
6211
|
isLoading: u,
|
|
6211
6212
|
readOnly: l,
|
|
6212
6213
|
size: O,
|
|
6213
6214
|
variant: P,
|
|
6214
|
-
className: n,
|
|
6215
6215
|
prefixExists: !!A,
|
|
6216
6216
|
id: k,
|
|
6217
6217
|
children: [
|
|
@@ -6224,8 +6224,8 @@ function nE(t) {
|
|
|
6224
6224
|
type: "hidden"
|
|
6225
6225
|
}
|
|
6226
6226
|
),
|
|
6227
|
-
/* @__PURE__ */ C(Se, { iconSize:
|
|
6228
|
-
v && /* @__PURE__ */ C(v, { size:
|
|
6227
|
+
/* @__PURE__ */ C(Se, { iconSize: z, icon: A, className: "prefix" }),
|
|
6228
|
+
v && /* @__PURE__ */ C(v, { size: z, strokeWidth: 2.5 }),
|
|
6229
6229
|
/* @__PURE__ */ ne(sg, { size: O, children: [
|
|
6230
6230
|
oe.map((ie) => /* @__PURE__ */ C(
|
|
6231
6231
|
og,
|
|
@@ -6242,10 +6242,10 @@ function nE(t) {
|
|
|
6242
6242
|
/* @__PURE__ */ ne(
|
|
6243
6243
|
lg,
|
|
6244
6244
|
{
|
|
6245
|
-
isFocused:
|
|
6245
|
+
isFocused: G,
|
|
6246
6246
|
isSearchable: c,
|
|
6247
6247
|
search: Q,
|
|
6248
|
-
onSearch:
|
|
6248
|
+
onSearch: q,
|
|
6249
6249
|
children: [
|
|
6250
6250
|
Y.map(({ label: ie, value: ue }) => /* @__PURE__ */ C(
|
|
6251
6251
|
ug,
|
|
@@ -6266,14 +6266,14 @@ function nE(t) {
|
|
|
6266
6266
|
ig,
|
|
6267
6267
|
{
|
|
6268
6268
|
disabled: N,
|
|
6269
|
-
isFocused:
|
|
6269
|
+
isFocused: G,
|
|
6270
6270
|
readOnly: l,
|
|
6271
|
-
iconSize:
|
|
6271
|
+
iconSize: z,
|
|
6272
6272
|
isLoading: u
|
|
6273
6273
|
}
|
|
6274
6274
|
),
|
|
6275
|
-
/* @__PURE__ */ C(fg, { iconSize:
|
|
6276
|
-
/* @__PURE__ */ C(cg, { handleBlur:
|
|
6275
|
+
/* @__PURE__ */ C(fg, { iconSize: z, isLoading: u }),
|
|
6276
|
+
/* @__PURE__ */ C(cg, { handleBlur: $, isFocused: G })
|
|
6277
6277
|
]
|
|
6278
6278
|
}
|
|
6279
6279
|
),
|
|
@@ -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), b(() => {
|
|
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
|
+
b(() => {
|
|
6582
6582
|
d ? s(u.mask) : h(!0);
|
|
6583
6583
|
}, [u]);
|
|
6584
6584
|
const m = `phoneInputMask ${a}`;
|
|
@@ -6637,15 +6637,15 @@ function aE(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), [E, B] = F(""), [A, O] = F(!1), [j, P] = F(y.formattedNumber || ""), [S, M] = F(() => {
|
|
6641
6641
|
if (y.country) return y.country;
|
|
6642
|
-
const U = gr.find((
|
|
6642
|
+
const U = gr.find(($) => $.iso === e);
|
|
6643
6643
|
return U || gr[30];
|
|
6644
|
-
}), { fieldErrors: k } = lt(), R = me(null), I = f || mt(), N = a || (k == null ? void 0 : k[h]), K = !!N,
|
|
6645
|
-
function
|
|
6646
|
-
|
|
6644
|
+
}), { fieldErrors: k } = lt(), R = me(null), I = f || mt(), N = a || (k == null ? void 0 : k[h]), K = !!N, z = i || s, Q = me(null);
|
|
6645
|
+
function V() {
|
|
6646
|
+
z || D || A || (w(!0), Q.current && Q.current.focus());
|
|
6647
6647
|
}
|
|
6648
|
-
function
|
|
6648
|
+
function G() {
|
|
6649
6649
|
O(!0), w(!0);
|
|
6650
6650
|
}
|
|
6651
6651
|
function ee() {
|
|
@@ -6658,43 +6658,42 @@ function aE(t) {
|
|
|
6658
6658
|
w(!1);
|
|
6659
6659
|
}
|
|
6660
6660
|
function oe(U) {
|
|
6661
|
-
return U.name.toLowerCase().includes(
|
|
6661
|
+
return U.name.toLowerCase().includes(E.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();
|
|
6665
6665
|
}
|
|
6666
6666
|
function x(U) {
|
|
6667
|
-
let
|
|
6668
|
-
return S.prefix && (
|
|
6667
|
+
let $ = S.code;
|
|
6668
|
+
return S.prefix && ($ += `-${S.prefix}`), $ += " ", $ += T(U || j), $;
|
|
6669
6669
|
}
|
|
6670
|
-
return /* @__PURE__ */ ne(st, { children: [
|
|
6670
|
+
return /* @__PURE__ */ ne(st, { className: n, children: [
|
|
6671
6671
|
r && /* @__PURE__ */ C(at, { htmlFor: I, showAsterisk: d, children: r }),
|
|
6672
6672
|
/* @__PURE__ */ ne(
|
|
6673
6673
|
mg,
|
|
6674
6674
|
{
|
|
6675
|
-
disabled:
|
|
6675
|
+
disabled: z,
|
|
6676
6676
|
isError: K,
|
|
6677
6677
|
isLoading: s,
|
|
6678
6678
|
isFocused: D,
|
|
6679
6679
|
readOnly: o,
|
|
6680
6680
|
size: u,
|
|
6681
6681
|
variant: c,
|
|
6682
|
-
|
|
6683
|
-
onFocus: W,
|
|
6682
|
+
onFocus: V,
|
|
6684
6683
|
children: [
|
|
6685
6684
|
/* @__PURE__ */ C(
|
|
6686
6685
|
bg,
|
|
6687
6686
|
{
|
|
6688
6687
|
currentCountry: S,
|
|
6689
|
-
onClick:
|
|
6688
|
+
onClick: G,
|
|
6690
6689
|
size: u
|
|
6691
6690
|
}
|
|
6692
6691
|
),
|
|
6693
6692
|
/* @__PURE__ */ ne(
|
|
6694
6693
|
yg,
|
|
6695
6694
|
{
|
|
6696
|
-
isOpen:
|
|
6697
|
-
search:
|
|
6695
|
+
isOpen: z || o ? !1 : A,
|
|
6696
|
+
search: E,
|
|
6698
6697
|
placeholder: g,
|
|
6699
6698
|
onSearch: B,
|
|
6700
6699
|
children: [
|
|
@@ -6717,7 +6716,7 @@ function aE(t) {
|
|
|
6717
6716
|
/* @__PURE__ */ C(
|
|
6718
6717
|
Cg,
|
|
6719
6718
|
{
|
|
6720
|
-
isOpen:
|
|
6719
|
+
isOpen: z || o ? !1 : A,
|
|
6721
6720
|
onClick: ee
|
|
6722
6721
|
}
|
|
6723
6722
|
),
|
|
@@ -6728,8 +6727,8 @@ function aE(t) {
|
|
|
6728
6727
|
ref: Q,
|
|
6729
6728
|
readonly: o,
|
|
6730
6729
|
currentCountry: S,
|
|
6731
|
-
value:
|
|
6732
|
-
disabled:
|
|
6730
|
+
value: j,
|
|
6731
|
+
disabled: z,
|
|
6733
6732
|
onBlur: X,
|
|
6734
6733
|
onFocus: re,
|
|
6735
6734
|
size: u,
|
|
@@ -6812,14 +6811,14 @@ function oE(t) {
|
|
|
6812
6811
|
value: d,
|
|
6813
6812
|
isError: h,
|
|
6814
6813
|
disabled: m
|
|
6815
|
-
} = Ag(), g = d === e, v = r || c, f = n || m,
|
|
6814
|
+
} = Ag(), g = d === e, v = r || c, f = n || m, E = `arkynRadioBox ${v} ${g ? "checkedTrue" : "checkedFalse"} ${h ? "errorTrue" : "errorFalse"} ${f ? "disabledTrue" : "disabledFalse"} ${a}`;
|
|
6816
6815
|
function B(O) {
|
|
6817
6816
|
s && s(O), l(e);
|
|
6818
6817
|
}
|
|
6819
6818
|
function A(O) {
|
|
6820
6819
|
o && o(O), l(e);
|
|
6821
6820
|
}
|
|
6822
|
-
return /* @__PURE__ */ ne("label", { className:
|
|
6821
|
+
return /* @__PURE__ */ ne("label", { className: E.trim(), children: [
|
|
6823
6822
|
/* @__PURE__ */ C(
|
|
6824
6823
|
"button",
|
|
6825
6824
|
{
|
|
@@ -6850,8 +6849,8 @@ function uE(t) {
|
|
|
6850
6849
|
function v(w) {
|
|
6851
6850
|
m(w), o && o(w);
|
|
6852
6851
|
}
|
|
6853
|
-
const f = a || (g == null ? void 0 : g[r]), y = !!f, D = `arkynRadioGroup ${u}
|
|
6854
|
-
return /* @__PURE__ */ ne(st, { children: [
|
|
6852
|
+
const f = a || (g == null ? void 0 : g[r]), y = !!f, D = `arkynRadioGroup ${u}`;
|
|
6853
|
+
return /* @__PURE__ */ ne(st, { className: l, children: [
|
|
6855
6854
|
n && /* @__PURE__ */ C(at, { showAsterisk: i, children: n }),
|
|
6856
6855
|
/* @__PURE__ */ ne(
|
|
6857
6856
|
Bg,
|
|
@@ -7787,16 +7786,16 @@ var Vg = (t, e, r) => {
|
|
|
7787
7786
|
case "merge_node": {
|
|
7788
7787
|
var {
|
|
7789
7788
|
path: y
|
|
7790
|
-
} = r, D = te.get(t, y), w = L.previous(y),
|
|
7791
|
-
if (se.isText(D) && se.isText(
|
|
7792
|
-
|
|
7793
|
-
else if (!se.isText(D) && !se.isText(
|
|
7794
|
-
|
|
7789
|
+
} = r, D = te.get(t, y), w = L.previous(y), E = te.get(t, w), B = te.parent(t, y), A = y[y.length - 1];
|
|
7790
|
+
if (se.isText(D) && se.isText(E))
|
|
7791
|
+
E.text += D.text;
|
|
7792
|
+
else if (!se.isText(D) && !se.isText(E))
|
|
7793
|
+
E.children.push(...D.children);
|
|
7795
7794
|
else
|
|
7796
|
-
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(E)));
|
|
7797
7796
|
if (B.children.splice(A, 1), e)
|
|
7798
|
-
for (var [O,
|
|
7799
|
-
e[
|
|
7797
|
+
for (var [O, j] of _.points(e))
|
|
7798
|
+
e[j] = ve.transform(O, r);
|
|
7800
7799
|
break;
|
|
7801
7800
|
}
|
|
7802
7801
|
case "move_node": {
|
|
@@ -7810,30 +7809,30 @@ var Vg = (t, e, r) => {
|
|
|
7810
7809
|
k.children.splice(R, 1);
|
|
7811
7810
|
var I = L.transform(P, r), N = te.get(t, L.parent(I)), K = I[I.length - 1];
|
|
7812
7811
|
if (N.children.splice(K, 0, M), e)
|
|
7813
|
-
for (var [
|
|
7814
|
-
e[Q] = ve.transform(
|
|
7812
|
+
for (var [z, Q] of _.points(e))
|
|
7813
|
+
e[Q] = ve.transform(z, r);
|
|
7815
7814
|
break;
|
|
7816
7815
|
}
|
|
7817
7816
|
case "remove_node": {
|
|
7818
7817
|
var {
|
|
7819
|
-
path:
|
|
7820
|
-
} = r,
|
|
7821
|
-
if (ee.children.splice(
|
|
7818
|
+
path: V
|
|
7819
|
+
} = r, G = V[V.length - 1], ee = te.parent(t, V);
|
|
7820
|
+
if (ee.children.splice(G, 1), e)
|
|
7822
7821
|
for (var [re, X] of _.points(e)) {
|
|
7823
7822
|
var oe = ve.transform(re, r);
|
|
7824
7823
|
if (e != null && oe != null)
|
|
7825
7824
|
e[X] = oe;
|
|
7826
7825
|
else {
|
|
7827
7826
|
var T = void 0, x = void 0;
|
|
7828
|
-
for (var [U,
|
|
7829
|
-
if (L.compare(
|
|
7830
|
-
T = [U,
|
|
7827
|
+
for (var [U, $] of te.texts(t))
|
|
7828
|
+
if (L.compare($, V) === -1)
|
|
7829
|
+
T = [U, $];
|
|
7831
7830
|
else {
|
|
7832
|
-
x = [U,
|
|
7831
|
+
x = [U, $];
|
|
7833
7832
|
break;
|
|
7834
7833
|
}
|
|
7835
|
-
var
|
|
7836
|
-
T && x && (L.equals(x[1],
|
|
7834
|
+
var q = !1;
|
|
7835
|
+
T && x && (L.equals(x[1], V) ? q = !L.hasPrevious(x[1]) : q = L.common(T[1], V).length < L.common(x[1], V).length), T && !q ? (re.path = T[1], re.offset = T[0].text.length) : x ? (re.path = x[1], re.offset = 0) : e = null;
|
|
7837
7836
|
}
|
|
7838
7837
|
}
|
|
7839
7838
|
break;
|
|
@@ -9125,8 +9124,8 @@ var Pp = (t, e) => {
|
|
|
9125
9124
|
var y = L.transform(f, e);
|
|
9126
9125
|
m.push(y);
|
|
9127
9126
|
}
|
|
9128
|
-
var D = m[m.length - 1], w = d[d.length - 1],
|
|
9129
|
-
return [...h, ...m,
|
|
9127
|
+
var D = m[m.length - 1], w = d[d.length - 1], E = D.concat(w);
|
|
9128
|
+
return [...h, ...m, E];
|
|
9130
9129
|
}
|
|
9131
9130
|
case "remove_node": {
|
|
9132
9131
|
var {
|
|
@@ -9137,8 +9136,8 @@ var Pp = (t, e) => {
|
|
|
9137
9136
|
case "split_node": {
|
|
9138
9137
|
var {
|
|
9139
9138
|
path: O
|
|
9140
|
-
} = e,
|
|
9141
|
-
return [
|
|
9139
|
+
} = e, j = L.levels(O), P = L.next(O);
|
|
9140
|
+
return [...j, P];
|
|
9142
9141
|
}
|
|
9143
9142
|
default:
|
|
9144
9143
|
return [];
|
|
@@ -9598,11 +9597,11 @@ var dv = ["text"], hv = ["text"], gv = function(e) {
|
|
|
9598
9597
|
at: d,
|
|
9599
9598
|
match: se.isText
|
|
9600
9599
|
}), g = p.above(e, {
|
|
9601
|
-
match: (
|
|
9600
|
+
match: (E) => ae.isElement(E) && p.isVoid(e, E) && e.markableVoid(E)
|
|
9602
9601
|
});
|
|
9603
9602
|
if (!g) {
|
|
9604
9603
|
var v = p.above(e, {
|
|
9605
|
-
match: (
|
|
9604
|
+
match: (E) => ae.isElement(E) && p.isBlock(e, E)
|
|
9606
9605
|
});
|
|
9607
9606
|
if (m && v) {
|
|
9608
9607
|
var [f, y] = m, [, D] = v;
|
|
@@ -9676,8 +9675,8 @@ function mv(t) {
|
|
|
9676
9675
|
reverse: a,
|
|
9677
9676
|
from: l,
|
|
9678
9677
|
to: c,
|
|
9679
|
-
pass: (
|
|
9680
|
-
var [B] =
|
|
9678
|
+
pass: (E) => {
|
|
9679
|
+
var [B] = E;
|
|
9681
9680
|
return ae.isElement(B) ? !!(!s && (p.isVoid(t, B) || p.isElementReadOnly(t, B)) || o && !p.isSelectable(t, B)) : !1;
|
|
9682
9681
|
}
|
|
9683
9682
|
}), g = [], v;
|
|
@@ -9860,8 +9859,8 @@ function Ov(t) {
|
|
|
9860
9859
|
}
|
|
9861
9860
|
}
|
|
9862
9861
|
if (se.isText(f)) {
|
|
9863
|
-
var
|
|
9864
|
-
for (
|
|
9862
|
+
var E = L.equals(y, c.path);
|
|
9863
|
+
for (E ? (g = i ? c.offset : f.text.length - c.offset, v = c.offset) : (g = f.text.length, v = i ? g : 0), (E || d || n === "offset") && (yield {
|
|
9865
9864
|
path: y,
|
|
9866
9865
|
offset: v
|
|
9867
9866
|
}, d = !1); ; ) {
|
|
@@ -9880,8 +9879,8 @@ function Ov(t) {
|
|
|
9880
9879
|
}
|
|
9881
9880
|
}
|
|
9882
9881
|
}
|
|
9883
|
-
function B(A, O,
|
|
9884
|
-
return O === "character" ? Ea(A,
|
|
9882
|
+
function B(A, O, j) {
|
|
9883
|
+
return O === "character" ? Ea(A, j) : O === "word" ? op(A, j) : O === "line" || O === "block" ? A.length : 1;
|
|
9885
9884
|
}
|
|
9886
9885
|
}();
|
|
9887
9886
|
}
|
|
@@ -10105,7 +10104,7 @@ var Mv = (t, e) => {
|
|
|
10105
10104
|
voids: u
|
|
10106
10105
|
}));
|
|
10107
10106
|
}
|
|
10108
|
-
var [D, w] = _.edges(l),
|
|
10107
|
+
var [D, w] = _.edges(l), E = p.above(e, {
|
|
10109
10108
|
match: (le) => ae.isElement(le) && p.isBlock(e, le),
|
|
10110
10109
|
at: D,
|
|
10111
10110
|
voids: u
|
|
@@ -10113,7 +10112,7 @@ var Mv = (t, e) => {
|
|
|
10113
10112
|
match: (le) => ae.isElement(le) && p.isBlock(e, le),
|
|
10114
10113
|
at: w,
|
|
10115
10114
|
voids: u
|
|
10116
|
-
}), A =
|
|
10115
|
+
}), A = E && B && !L.equals(E[1], B[1]), O = L.equals(D.path, w.path), j = u ? null : (n = p.void(e, {
|
|
10117
10116
|
at: D,
|
|
10118
10117
|
mode: "highest"
|
|
10119
10118
|
})) !== null && n !== void 0 ? n : p.elementReadOnly(e, {
|
|
@@ -10126,9 +10125,9 @@ var Mv = (t, e) => {
|
|
|
10126
10125
|
at: w,
|
|
10127
10126
|
mode: "highest"
|
|
10128
10127
|
});
|
|
10129
|
-
if (
|
|
10128
|
+
if (j) {
|
|
10130
10129
|
var S = p.before(e, D);
|
|
10131
|
-
S &&
|
|
10130
|
+
S && E && L.isAncestor(E[1], S.path) && (D = S);
|
|
10132
10131
|
}
|
|
10133
10132
|
if (P) {
|
|
10134
10133
|
var M = p.after(e, w);
|
|
@@ -10142,11 +10141,11 @@ var Mv = (t, e) => {
|
|
|
10142
10141
|
var [N, K] = I;
|
|
10143
10142
|
R && L.compare(K, R) === 0 || (!u && ae.isElement(N) && (p.isVoid(e, N) || p.isElementReadOnly(e, N)) || !L.isCommon(K, D.path) && !L.isCommon(K, w.path)) && (k.push(I), R = K);
|
|
10144
10143
|
}
|
|
10145
|
-
var
|
|
10144
|
+
var z = Array.from(k, (le) => {
|
|
10146
10145
|
var [, ce] = le;
|
|
10147
10146
|
return p.pathRef(e, ce);
|
|
10148
|
-
}), Q = p.pointRef(e, D),
|
|
10149
|
-
if (!O &&
|
|
10147
|
+
}), Q = p.pointRef(e, D), V = p.pointRef(e, w), G = "";
|
|
10148
|
+
if (!O && !j) {
|
|
10150
10149
|
var ee = Q.current, [re] = p.leaf(e, ee), {
|
|
10151
10150
|
path: X
|
|
10152
10151
|
} = ee, {
|
|
@@ -10157,28 +10156,28 @@ var Mv = (t, e) => {
|
|
|
10157
10156
|
path: X,
|
|
10158
10157
|
offset: oe,
|
|
10159
10158
|
text: T
|
|
10160
|
-
}),
|
|
10159
|
+
}), G = T);
|
|
10161
10160
|
}
|
|
10162
|
-
if (
|
|
10161
|
+
if (z.reverse().map((le) => le.unref()).filter((le) => le !== null).forEach((le) => Z.removeNodes(e, {
|
|
10163
10162
|
at: le,
|
|
10164
10163
|
voids: u
|
|
10165
10164
|
})), !P) {
|
|
10166
|
-
var x =
|
|
10167
|
-
path:
|
|
10168
|
-
} = x,
|
|
10165
|
+
var x = V.current, [U] = p.leaf(e, x), {
|
|
10166
|
+
path: $
|
|
10167
|
+
} = x, q = O ? D.offset : 0, J = U.text.slice(q, w.offset);
|
|
10169
10168
|
J.length > 0 && (e.apply({
|
|
10170
10169
|
type: "remove_text",
|
|
10171
|
-
path:
|
|
10172
|
-
offset:
|
|
10170
|
+
path: $,
|
|
10171
|
+
offset: q,
|
|
10173
10172
|
text: J
|
|
10174
|
-
}),
|
|
10173
|
+
}), G = J);
|
|
10175
10174
|
}
|
|
10176
|
-
!O && A &&
|
|
10177
|
-
at:
|
|
10175
|
+
!O && A && V.current && Q.current && Z.mergeNodes(e, {
|
|
10176
|
+
at: V.current,
|
|
10178
10177
|
hanging: !0,
|
|
10179
10178
|
voids: u
|
|
10180
|
-
}), d && a && s === "character" &&
|
|
10181
|
-
var Y = Q.unref(), ie =
|
|
10179
|
+
}), d && a && s === "character" && G.length > 1 && G.match(/[\u0E00-\u0E7F]+/) && Z.insertText(e, G.slice(0, G.length - o));
|
|
10180
|
+
var Y = Q.unref(), ie = V.unref(), ue = a ? Y || ie : ie || Y;
|
|
10182
10181
|
r.at == null && ue && Z.select(e, ue);
|
|
10183
10182
|
}
|
|
10184
10183
|
}
|
|
@@ -10234,20 +10233,20 @@ var Mv = (t, e) => {
|
|
|
10234
10233
|
match: (T) => ae.isElement(T) && p.isBlock(e, T),
|
|
10235
10234
|
at: s,
|
|
10236
10235
|
voids: a
|
|
10237
|
-
}), [, 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, E = !y, [, B] = te.first({
|
|
10238
10237
|
children: r
|
|
10239
10238
|
}, []), [, A] = te.last({
|
|
10240
10239
|
children: r
|
|
10241
|
-
}, []), O = [],
|
|
10242
|
-
var [x, U] = T,
|
|
10243
|
-
return
|
|
10240
|
+
}, []), O = [], j = (T) => {
|
|
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) || E && L.isAncestor(U, A) && ae.isElement(x) && !e.isVoid(x) && !e.isInline(x));
|
|
10244
10243
|
};
|
|
10245
10244
|
for (var P of te.nodes({
|
|
10246
10245
|
children: r
|
|
10247
10246
|
}, {
|
|
10248
|
-
pass:
|
|
10247
|
+
pass: j
|
|
10249
10248
|
}))
|
|
10250
|
-
|
|
10249
|
+
j(P) && O.push(P);
|
|
10251
10250
|
var S = [], M = [], k = [], R = !0, I = !1;
|
|
10252
10251
|
for (var [N] of O)
|
|
10253
10252
|
ae.isElement(N) && !e.isInline(N) ? (R = !1, I = !0, M.push(N)) : R ? S.push(N) : k.push(N);
|
|
@@ -10256,7 +10255,7 @@ var Mv = (t, e) => {
|
|
|
10256
10255
|
match: (T) => se.isText(T) || p.isInline(e, T),
|
|
10257
10256
|
mode: "highest",
|
|
10258
10257
|
voids: a
|
|
10259
|
-
}), [,
|
|
10258
|
+
}), [, z] = K, Q = p.isStart(e, s, z), V = p.isEnd(e, s, z), G = p.pathRef(e, y && !k.length ? L.next(v) : v), ee = p.pathRef(e, V ? L.next(z) : z);
|
|
10260
10259
|
Z.splitNodes(e, {
|
|
10261
10260
|
at: s,
|
|
10262
10261
|
match: (T) => I ? ae.isElement(T) && p.isBlock(e, T) : se.isText(T) || p.isInline(e, T),
|
|
@@ -10264,7 +10263,7 @@ var Mv = (t, e) => {
|
|
|
10264
10263
|
always: I && (!f || S.length > 0) && (!y || k.length > 0),
|
|
10265
10264
|
voids: a
|
|
10266
10265
|
});
|
|
10267
|
-
var re = p.pathRef(e, !Q || Q &&
|
|
10266
|
+
var re = p.pathRef(e, !Q || Q && V ? L.next(z) : z);
|
|
10268
10267
|
if (Z.insertNodes(e, S, {
|
|
10269
10268
|
at: re.current,
|
|
10270
10269
|
match: (T) => se.isText(T) || p.isInline(e, T),
|
|
@@ -10275,7 +10274,7 @@ var Mv = (t, e) => {
|
|
|
10275
10274
|
at: v,
|
|
10276
10275
|
voids: a
|
|
10277
10276
|
}), Z.insertNodes(e, M, {
|
|
10278
|
-
at:
|
|
10277
|
+
at: G.current,
|
|
10279
10278
|
match: (T) => ae.isElement(T) && p.isBlock(e, T),
|
|
10280
10279
|
mode: "lowest",
|
|
10281
10280
|
voids: a,
|
|
@@ -10288,12 +10287,12 @@ var Mv = (t, e) => {
|
|
|
10288
10287
|
batchDirty: o
|
|
10289
10288
|
}), !n.at) {
|
|
10290
10289
|
var X;
|
|
10291
|
-
if (k.length > 0 && ee.current ? X = L.previous(ee.current) : M.length > 0 &&
|
|
10290
|
+
if (k.length > 0 && ee.current ? X = L.previous(ee.current) : M.length > 0 && G.current ? X = L.previous(G.current) : re.current && (X = L.previous(re.current)), X) {
|
|
10292
10291
|
var oe = p.end(e, X);
|
|
10293
10292
|
Z.select(e, oe);
|
|
10294
10293
|
}
|
|
10295
10294
|
}
|
|
10296
|
-
re.unref(),
|
|
10295
|
+
re.unref(), G.unref(), ee.unref();
|
|
10297
10296
|
}
|
|
10298
10297
|
}
|
|
10299
10298
|
});
|
|
@@ -10468,7 +10467,7 @@ var Vv = function(e, r) {
|
|
|
10468
10467
|
} else
|
|
10469
10468
|
return;
|
|
10470
10469
|
}
|
|
10471
|
-
var w = L.parent(u),
|
|
10470
|
+
var w = L.parent(u), E = u[u.length - 1];
|
|
10472
10471
|
if (!(!a && p.void(e, {
|
|
10473
10472
|
at: w
|
|
10474
10473
|
}))) {
|
|
@@ -10476,8 +10475,8 @@ var Vv = function(e, r) {
|
|
|
10476
10475
|
var B = [], A = L.levels(w);
|
|
10477
10476
|
Fp(e, () => {
|
|
10478
10477
|
var S = function() {
|
|
10479
|
-
var R = w.concat(
|
|
10480
|
-
|
|
10478
|
+
var R = w.concat(E);
|
|
10479
|
+
E++;
|
|
10481
10480
|
var I = {
|
|
10482
10481
|
type: "insert_node",
|
|
10483
10482
|
path: R,
|
|
@@ -10501,10 +10500,10 @@ var Vv = function(e, r) {
|
|
|
10501
10500
|
});
|
|
10502
10501
|
} else
|
|
10503
10502
|
for (var O of r) {
|
|
10504
|
-
var
|
|
10505
|
-
|
|
10503
|
+
var j = w.concat(E);
|
|
10504
|
+
E++, e.apply({
|
|
10506
10505
|
type: "insert_node",
|
|
10507
|
-
path:
|
|
10506
|
+
path: j,
|
|
10508
10507
|
node: O
|
|
10509
10508
|
}), u = L.next(u);
|
|
10510
10509
|
}
|
|
@@ -10525,14 +10524,14 @@ var Vv = function(e, r) {
|
|
|
10525
10524
|
} = r, {
|
|
10526
10525
|
match: s
|
|
10527
10526
|
} = r;
|
|
10528
|
-
if (s == null && (s = L.isPath(n) ? Ar(e, n) : (
|
|
10527
|
+
if (s == null && (s = L.isPath(n) ? Ar(e, n) : (E) => ae.isElement(E) && p.isBlock(e, E)), !!n) {
|
|
10529
10528
|
var o = p.nodes(e, {
|
|
10530
10529
|
at: n,
|
|
10531
10530
|
match: s,
|
|
10532
10531
|
mode: i,
|
|
10533
10532
|
voids: a
|
|
10534
|
-
}), u = Array.from(o, (
|
|
10535
|
-
var [, B] =
|
|
10533
|
+
}), u = Array.from(o, (E) => {
|
|
10534
|
+
var [, B] = E;
|
|
10536
10535
|
return p.pathRef(e, B);
|
|
10537
10536
|
});
|
|
10538
10537
|
for (var l of u) {
|
|
@@ -10627,7 +10626,7 @@ var Vv = function(e, r) {
|
|
|
10627
10626
|
if (!(!d || !h)) {
|
|
10628
10627
|
var [m, g] = d, [v, f] = h;
|
|
10629
10628
|
if (!(g.length === 0 || f.length === 0)) {
|
|
10630
|
-
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), E = Array.from(p.levels(e, {
|
|
10631
10630
|
at: g
|
|
10632
10631
|
}), (S) => {
|
|
10633
10632
|
var [M] = S;
|
|
@@ -10635,14 +10634,14 @@ var Vv = function(e, r) {
|
|
|
10635
10634
|
}).slice(D.length).slice(0, -1), B = p.above(e, {
|
|
10636
10635
|
at: g,
|
|
10637
10636
|
mode: "highest",
|
|
10638
|
-
match: (S) =>
|
|
10639
|
-
}), A = B && p.pathRef(e, B[1]), O,
|
|
10637
|
+
match: (S) => E.includes(S) && Xl(e, S)
|
|
10638
|
+
}), A = B && p.pathRef(e, B[1]), O, j;
|
|
10640
10639
|
if (se.isText(m) && se.isText(v)) {
|
|
10641
10640
|
var P = St(m, Kv);
|
|
10642
|
-
|
|
10641
|
+
j = v.text.length, O = P;
|
|
10643
10642
|
} else if (ae.isElement(m) && ae.isElement(v)) {
|
|
10644
10643
|
var P = St(m, Xv);
|
|
10645
|
-
|
|
10644
|
+
j = v.children.length, O = P;
|
|
10646
10645
|
} else
|
|
10647
10646
|
throw new Error("Cannot merge the node at path [".concat(g, "] with the previous sibling because it is not the same kind: ").concat(Ue.stringify(m), " ").concat(Ue.stringify(v)));
|
|
10648
10647
|
w || Z.moveNodes(e, {
|
|
@@ -10658,7 +10657,7 @@ var Vv = function(e, r) {
|
|
|
10658
10657
|
}) : e.apply({
|
|
10659
10658
|
type: "merge_node",
|
|
10660
10659
|
path: y,
|
|
10661
|
-
position:
|
|
10660
|
+
position: j,
|
|
10662
10661
|
properties: O
|
|
10663
10662
|
}), A && A.unref();
|
|
10664
10663
|
}
|
|
@@ -10749,7 +10748,7 @@ var Vv = function(e, r) {
|
|
|
10749
10748
|
voids: d = !1
|
|
10750
10749
|
} = n;
|
|
10751
10750
|
if (a) {
|
|
10752
|
-
if (i == null && (i = L.isPath(a) ? Ar(e, a) : (
|
|
10751
|
+
if (i == null && (i = L.isPath(a) ? Ar(e, a) : (j) => ae.isElement(j) && p.isBlock(e, j)), !u && _.isRange(a) && (a = p.unhangRange(e, a, {
|
|
10753
10752
|
voids: d
|
|
10754
10753
|
})), c && _.isRange(a)) {
|
|
10755
10754
|
if (_.isCollapsed(a) && p.leaf(e, a.anchor)[0].text.length > 0)
|
|
@@ -10773,22 +10772,22 @@ var Vv = function(e, r) {
|
|
|
10773
10772
|
always: !y
|
|
10774
10773
|
}), a = h.unref(), n.at == null && Z.select(e, a);
|
|
10775
10774
|
}
|
|
10776
|
-
s || (s = (
|
|
10775
|
+
s || (s = (j, P) => j !== P);
|
|
10777
10776
|
for (var [D, w] of p.nodes(e, {
|
|
10778
10777
|
at: a,
|
|
10779
10778
|
match: i,
|
|
10780
10779
|
mode: l,
|
|
10781
10780
|
voids: d
|
|
10782
10781
|
})) {
|
|
10783
|
-
var
|
|
10782
|
+
var E = {}, B = {};
|
|
10784
10783
|
if (w.length !== 0) {
|
|
10785
10784
|
var A = !1;
|
|
10786
10785
|
for (var O in r)
|
|
10787
|
-
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) && (E[O] = D[O]), o ? r[O] != null && (B[O] = o(D[O], r[O])) : r[O] != null && (B[O] = r[O]));
|
|
10788
10787
|
A && e.apply({
|
|
10789
10788
|
type: "set_node",
|
|
10790
10789
|
path: w,
|
|
10791
|
-
properties:
|
|
10790
|
+
properties: E,
|
|
10792
10791
|
newProperties: B
|
|
10793
10792
|
});
|
|
10794
10793
|
}
|
|
@@ -10814,9 +10813,9 @@ var Vv = function(e, r) {
|
|
|
10814
10813
|
height: o = 0,
|
|
10815
10814
|
always: u = !1
|
|
10816
10815
|
} = r;
|
|
10817
|
-
if (a == null && (a = (
|
|
10816
|
+
if (a == null && (a = (V) => ae.isElement(V) && p.isBlock(e, V)), _.isRange(s) && (s = tm(e, s)), L.isPath(s)) {
|
|
10818
10817
|
var l = s, c = p.point(e, l), [d] = p.parent(e, l);
|
|
10819
|
-
a = (
|
|
10818
|
+
a = (V) => V === d, o = c.path.length - l.length + 1, s = c, u = !0;
|
|
10820
10819
|
}
|
|
10821
10820
|
if (s) {
|
|
10822
10821
|
var h = p.pointRef(e, s, {
|
|
@@ -10840,10 +10839,10 @@ var Vv = function(e, r) {
|
|
|
10840
10839
|
if (ae.isElement(y) && e.isInline(y)) {
|
|
10841
10840
|
var w = p.after(e, D);
|
|
10842
10841
|
if (!w) {
|
|
10843
|
-
var
|
|
10842
|
+
var E = {
|
|
10844
10843
|
text: ""
|
|
10845
10844
|
}, B = L.next(D);
|
|
10846
|
-
Z.insertNodes(e,
|
|
10845
|
+
Z.insertNodes(e, E, {
|
|
10847
10846
|
at: B,
|
|
10848
10847
|
voids: i
|
|
10849
10848
|
}), w = p.point(e, B);
|
|
@@ -10854,14 +10853,14 @@ var Vv = function(e, r) {
|
|
|
10854
10853
|
o = A + 1, u = !0;
|
|
10855
10854
|
}
|
|
10856
10855
|
m = p.pointRef(e, s);
|
|
10857
|
-
var O = s.path.length - o, [,
|
|
10856
|
+
var O = s.path.length - o, [, j] = g, P = s.path.slice(0, O), S = o === 0 ? s.offset : s.path[O] + f;
|
|
10858
10857
|
for (var [M, k] of p.levels(e, {
|
|
10859
10858
|
at: P,
|
|
10860
10859
|
reverse: !0,
|
|
10861
10860
|
voids: i
|
|
10862
10861
|
})) {
|
|
10863
10862
|
var R = !1;
|
|
10864
|
-
if (k.length <
|
|
10863
|
+
if (k.length < j.length || k.length === 0 || !i && ae.isElement(M) && p.isVoid(e, M))
|
|
10865
10864
|
break;
|
|
10866
10865
|
var I = h.current, N = p.isEnd(e, I, k);
|
|
10867
10866
|
if (u || !h || !p.isEdge(e, I, k)) {
|
|
@@ -10877,8 +10876,8 @@ var Vv = function(e, r) {
|
|
|
10877
10876
|
S = k[k.length - 1] + (R || N ? 1 : 0);
|
|
10878
10877
|
}
|
|
10879
10878
|
if (r.at == null) {
|
|
10880
|
-
var
|
|
10881
|
-
Z.select(e,
|
|
10879
|
+
var z = m.current || p.end(e, []);
|
|
10880
|
+
Z.select(e, z);
|
|
10882
10881
|
}
|
|
10883
10882
|
} finally {
|
|
10884
10883
|
var Q;
|
|
@@ -10997,17 +10996,17 @@ var am = function(e, r) {
|
|
|
10997
10996
|
voids: s
|
|
10998
10997
|
}));
|
|
10999
10998
|
if (D.length > 0) {
|
|
11000
|
-
var [w] = D,
|
|
10999
|
+
var [w] = D, E = D[D.length - 1], [, B] = w, [, A] = E;
|
|
11001
11000
|
if (B.length === 0 && A.length === 0)
|
|
11002
11001
|
return 0;
|
|
11003
|
-
var O = L.equals(B, A) ? L.parent(B) : L.common(B, A),
|
|
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), {}, {
|
|
11004
11003
|
children: []
|
|
11005
11004
|
});
|
|
11006
11005
|
Z.insertNodes(e, R, {
|
|
11007
11006
|
at: k,
|
|
11008
11007
|
voids: s
|
|
11009
11008
|
}), Z.moveNodes(e, {
|
|
11010
|
-
at:
|
|
11009
|
+
at: j,
|
|
11011
11010
|
match: (I) => ae.isAncestor(S) && S.children.includes(I),
|
|
11012
11011
|
to: k.concat(0),
|
|
11013
11012
|
voids: s
|
|
@@ -11618,19 +11617,19 @@ function dC(t, e, r) {
|
|
|
11618
11617
|
throw new TypeError(lC);
|
|
11619
11618
|
e = uu(e) || 0, uC(r) && (c = !!r.leading, d = "maxWait" in r, a = d ? cC(uu(r.maxWait) || 0, e) : a, h = "trailing" in r ? !!r.trailing : h);
|
|
11620
11619
|
function m(A) {
|
|
11621
|
-
var O = n,
|
|
11622
|
-
return n = i = void 0, l = A, s = t.apply(
|
|
11620
|
+
var O = n, j = i;
|
|
11621
|
+
return n = i = void 0, l = A, s = t.apply(j, O), s;
|
|
11623
11622
|
}
|
|
11624
11623
|
function g(A) {
|
|
11625
11624
|
return l = A, o = setTimeout(y, e), c ? m(A) : s;
|
|
11626
11625
|
}
|
|
11627
11626
|
function v(A) {
|
|
11628
|
-
var O = A - u,
|
|
11629
|
-
return d ? fC(P, a -
|
|
11627
|
+
var O = A - u, j = A - l, P = e - O;
|
|
11628
|
+
return d ? fC(P, a - j) : P;
|
|
11630
11629
|
}
|
|
11631
11630
|
function f(A) {
|
|
11632
|
-
var O = A - u,
|
|
11633
|
-
return u === void 0 || O >= e || O < 0 || d &&
|
|
11631
|
+
var O = A - u, j = A - l;
|
|
11632
|
+
return u === void 0 || O >= e || O < 0 || d && j >= a;
|
|
11634
11633
|
}
|
|
11635
11634
|
function y() {
|
|
11636
11635
|
var A = Oi();
|
|
@@ -11644,7 +11643,7 @@ function dC(t, e, r) {
|
|
|
11644
11643
|
function w() {
|
|
11645
11644
|
o !== void 0 && clearTimeout(o), l = 0, n = u = i = o = void 0;
|
|
11646
11645
|
}
|
|
11647
|
-
function
|
|
11646
|
+
function E() {
|
|
11648
11647
|
return o === void 0 ? s : D(Oi());
|
|
11649
11648
|
}
|
|
11650
11649
|
function B() {
|
|
@@ -11657,7 +11656,7 @@ function dC(t, e, r) {
|
|
|
11657
11656
|
}
|
|
11658
11657
|
return o === void 0 && (o = setTimeout(y, e)), s;
|
|
11659
11658
|
}
|
|
11660
|
-
return B.cancel = w, B.flush =
|
|
11659
|
+
return B.cancel = w, B.flush = E, B;
|
|
11661
11660
|
}
|
|
11662
11661
|
var nc = dC;
|
|
11663
11662
|
const hC = /* @__PURE__ */ Qn(nc);
|
|
@@ -11706,25 +11705,25 @@ const DC = /* @__PURE__ */ Qn(CC), lu = (t) => typeof t == "object" && t != null
|
|
|
11706
11705
|
}
|
|
11707
11706
|
g != null && g === document.body && gn(g) && !gn(document.documentElement) || g != null && gn(g, c) && m.push(g);
|
|
11708
11707
|
}
|
|
11709
|
-
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:
|
|
11710
|
-
const
|
|
11711
|
-
return { top: parseFloat(
|
|
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: E, top: B, right: A, bottom: O, left: j } = t.getBoundingClientRect(), { top: P, right: S, bottom: M, left: k } = ((K) => {
|
|
11709
|
+
const z = window.getComputedStyle(K);
|
|
11710
|
+
return { top: parseFloat(z.scrollMarginTop) || 0, right: parseFloat(z.scrollMarginRight) || 0, bottom: parseFloat(z.scrollMarginBottom) || 0, left: parseFloat(z.scrollMarginLeft) || 0 };
|
|
11712
11711
|
})(t);
|
|
11713
|
-
let R = o === "start" || o === "nearest" ? B - P : o === "end" ? O + M : B + w / 2 - P + M, I = u === "center" ?
|
|
11712
|
+
let R = o === "start" || o === "nearest" ? B - P : o === "end" ? O + M : B + w / 2 - P + M, I = u === "center" ? j + E / 2 - k + S : u === "end" ? A + S : j - k;
|
|
11714
11713
|
const N = [];
|
|
11715
11714
|
for (let K = 0; K < m.length; K++) {
|
|
11716
|
-
const
|
|
11717
|
-
if (s === "if-needed" && B >= 0 &&
|
|
11718
|
-
const oe = getComputedStyle(
|
|
11719
|
-
let
|
|
11720
|
-
const Y = "offsetWidth" in
|
|
11721
|
-
if (h ===
|
|
11715
|
+
const z = m[K], { height: Q, width: V, top: G, right: ee, bottom: re, left: X } = z.getBoundingClientRect();
|
|
11716
|
+
if (s === "if-needed" && B >= 0 && j >= 0 && O <= f && A <= v && (z === h && !gn(z) || B >= G && O <= re && j >= X && A <= ee)) return N;
|
|
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
|
+
let q = 0, J = 0;
|
|
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 + E, E), q = Math.max(0, q + D), J = Math.max(0, J + y);
|
|
11722
11721
|
else {
|
|
11723
|
-
|
|
11724
|
-
const { scrollLeft: ce, scrollTop: ge } =
|
|
11725
|
-
|
|
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 + E, E);
|
|
11723
|
+
const { scrollLeft: ce, scrollTop: ge } = z;
|
|
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;
|
|
11726
11725
|
}
|
|
11727
|
-
N.push({ el:
|
|
11726
|
+
N.push({ el: z, top: q, left: J });
|
|
11728
11727
|
}
|
|
11729
11728
|
return N;
|
|
11730
11729
|
}, bC = (t) => t === !1 ? { block: "end", inline: "nearest" } : ((e) => e === Object(e) && Object.keys(e).length !== 0)(t) ? t : { block: "start", inline: "nearest" };
|
|
@@ -11826,11 +11825,11 @@ var nr = function(t) {
|
|
|
11826
11825
|
return vn.get(t);
|
|
11827
11826
|
if (ac(t))
|
|
11828
11827
|
return vn.set(t, pu), pu;
|
|
11829
|
-
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,
|
|
11830
|
-
devicePixelContentBoxSize: Cr(Math.round(
|
|
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, E = 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 - E, S = j + f + B + D, M = P + y + E + w, k = nr({
|
|
11829
|
+
devicePixelContentBoxSize: Cr(Math.round(j * devicePixelRatio), Math.round(P * devicePixelRatio), a),
|
|
11831
11830
|
borderBoxSize: Cr(S, M, a),
|
|
11832
|
-
contentBoxSize: Cr(
|
|
11833
|
-
contentRect: new ic(d, u,
|
|
11831
|
+
contentBoxSize: Cr(j, P, a),
|
|
11832
|
+
contentRect: new ic(d, u, j, P)
|
|
11834
11833
|
});
|
|
11835
11834
|
return vn.set(t, k), k;
|
|
11836
11835
|
}, oc = function(t, e, r) {
|
|
@@ -12152,9 +12151,9 @@ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Dr = /* @_
|
|
|
12152
12151
|
return !1;
|
|
12153
12152
|
var {
|
|
12154
12153
|
document: i
|
|
12155
|
-
} =
|
|
12154
|
+
} = H.getWindow(t);
|
|
12156
12155
|
if (i.contains(n))
|
|
12157
|
-
return
|
|
12156
|
+
return H.hasDOMNode(t, n, {
|
|
12158
12157
|
editable: !0
|
|
12159
12158
|
});
|
|
12160
12159
|
var a = r.find((s) => {
|
|
@@ -12182,24 +12181,24 @@ class c0 {
|
|
|
12182
12181
|
pt(this, "id", void 0), this.id = "".concat(l0++);
|
|
12183
12182
|
}
|
|
12184
12183
|
}
|
|
12185
|
-
var
|
|
12184
|
+
var H = {
|
|
12186
12185
|
androidPendingDiffs: (t) => rt.get(t),
|
|
12187
12186
|
androidScheduleFlush: (t) => {
|
|
12188
12187
|
var e;
|
|
12189
12188
|
(e = Fa.get(t)) === null || e === void 0 || e();
|
|
12190
12189
|
},
|
|
12191
12190
|
blur: (t) => {
|
|
12192
|
-
var e =
|
|
12191
|
+
var e = H.toDOMNode(t, t), r = H.findDocumentOrShadowRoot(t);
|
|
12193
12192
|
_t.set(t, !1), r.activeElement === e && e.blur();
|
|
12194
12193
|
},
|
|
12195
12194
|
deselect: (t) => {
|
|
12196
12195
|
var {
|
|
12197
12196
|
selection: e
|
|
12198
|
-
} = t, r =
|
|
12197
|
+
} = t, r = H.findDocumentOrShadowRoot(t), n = jr(r);
|
|
12199
12198
|
n && n.rangeCount > 0 && n.removeAllRanges(), e && Z.deselect(t);
|
|
12200
12199
|
},
|
|
12201
12200
|
findDocumentOrShadowRoot: (t) => {
|
|
12202
|
-
var e =
|
|
12201
|
+
var e = H.toDOMNode(t, t), r = e.getRootNode();
|
|
12203
12202
|
return r instanceof Document || r instanceof ShadowRoot ? r : e.ownerDocument;
|
|
12204
12203
|
},
|
|
12205
12204
|
findEventRange: (t, e) => {
|
|
@@ -12211,7 +12210,7 @@ var V = {
|
|
|
12211
12210
|
} = e;
|
|
12212
12211
|
if (r == null || n == null)
|
|
12213
12212
|
throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(e));
|
|
12214
|
-
var a =
|
|
12213
|
+
var a = H.toSlateNode(t, e.target), s = H.findPath(t, a);
|
|
12215
12214
|
if (ae.isElement(a) && p.isVoid(t, a)) {
|
|
12216
12215
|
var o = i.getBoundingClientRect(), u = t.isInline(a) ? r - o.left < o.left + o.width - r : n - o.top < o.top + o.height - n, l = p.point(t, s, {
|
|
12217
12216
|
edge: u ? "start" : "end"
|
|
@@ -12223,7 +12222,7 @@ var V = {
|
|
|
12223
12222
|
}
|
|
12224
12223
|
var h, {
|
|
12225
12224
|
document: m
|
|
12226
|
-
} =
|
|
12225
|
+
} = H.getWindow(t);
|
|
12227
12226
|
if (m.caretRangeFromPoint)
|
|
12228
12227
|
h = m.caretRangeFromPoint(r, n);
|
|
12229
12228
|
else {
|
|
@@ -12232,7 +12231,7 @@ var V = {
|
|
|
12232
12231
|
}
|
|
12233
12232
|
if (!h)
|
|
12234
12233
|
throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(e));
|
|
12235
|
-
var v =
|
|
12234
|
+
var v = H.toSlateRange(t, h, {
|
|
12236
12235
|
exactMatch: !1,
|
|
12237
12236
|
suppressThrow: !1
|
|
12238
12237
|
});
|
|
@@ -12266,16 +12265,16 @@ var V = {
|
|
|
12266
12265
|
throw new Error("Could not set focus, editor seems stuck with pending operations");
|
|
12267
12266
|
if (e.operations.length > 0) {
|
|
12268
12267
|
setTimeout(() => {
|
|
12269
|
-
|
|
12268
|
+
H.focus(e, {
|
|
12270
12269
|
retries: r.retries - 1
|
|
12271
12270
|
});
|
|
12272
12271
|
}, 10);
|
|
12273
12272
|
return;
|
|
12274
12273
|
}
|
|
12275
|
-
var n =
|
|
12274
|
+
var n = H.toDOMNode(e, e), i = H.findDocumentOrShadowRoot(e);
|
|
12276
12275
|
if (i.activeElement !== n) {
|
|
12277
12276
|
if (e.selection && i instanceof Document) {
|
|
12278
|
-
var a = jr(i), s =
|
|
12277
|
+
var a = jr(i), s = H.toDOMRange(e, e.selection);
|
|
12279
12278
|
a == null || a.removeAllRanges(), a == null || a.addRange(s);
|
|
12280
12279
|
}
|
|
12281
12280
|
e.selection || Z.select(e, p.start(e, [])), _t.set(e, !0), n.focus({
|
|
@@ -12293,7 +12292,7 @@ var V = {
|
|
|
12293
12292
|
hasDOMNode: function(e, r) {
|
|
12294
12293
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, {
|
|
12295
12294
|
editable: i = !1
|
|
12296
|
-
} = n, a =
|
|
12295
|
+
} = n, a = H.toDOMNode(e, e), s;
|
|
12297
12296
|
try {
|
|
12298
12297
|
s = gt(r) ? r : r.parentElement;
|
|
12299
12298
|
} catch (o) {
|
|
@@ -12304,7 +12303,7 @@ var V = {
|
|
|
12304
12303
|
// this is the core logic that lets you know you got the right editor.selection instead of null when editor is contenteditable="false"(readOnly)
|
|
12305
12304
|
s.closest('[contenteditable="false"]') === a || !!s.getAttribute("data-slate-zero-width")) : !1;
|
|
12306
12305
|
},
|
|
12307
|
-
hasEditableTarget: (t, e) => Wt(e) &&
|
|
12306
|
+
hasEditableTarget: (t, e) => Wt(e) && H.hasDOMNode(t, e, {
|
|
12308
12307
|
editable: !0
|
|
12309
12308
|
}),
|
|
12310
12309
|
hasRange: (t, e) => {
|
|
@@ -12314,8 +12313,8 @@ var V = {
|
|
|
12314
12313
|
} = e;
|
|
12315
12314
|
return p.hasPath(t, r.path) && p.hasPath(t, n.path);
|
|
12316
12315
|
},
|
|
12317
|
-
hasSelectableTarget: (t, e) =>
|
|
12318
|
-
hasTarget: (t, e) => Wt(e) &&
|
|
12316
|
+
hasSelectableTarget: (t, e) => H.hasEditableTarget(t, e) || H.isTargetInsideNonReadonlyVoid(t, e),
|
|
12317
|
+
hasTarget: (t, e) => Wt(e) && H.hasDOMNode(t, e),
|
|
12319
12318
|
insertData: (t, e) => {
|
|
12320
12319
|
t.insertData(e);
|
|
12321
12320
|
},
|
|
@@ -12326,18 +12325,18 @@ var V = {
|
|
|
12326
12325
|
isReadOnly: (t) => !!Vi.get(t),
|
|
12327
12326
|
isTargetInsideNonReadonlyVoid: (t, e) => {
|
|
12328
12327
|
if (Vi.get(t)) return !1;
|
|
12329
|
-
var r =
|
|
12328
|
+
var r = H.hasTarget(t, e) && H.toSlateNode(t, e);
|
|
12330
12329
|
return ae.isElement(r) && p.isVoid(t, r);
|
|
12331
12330
|
},
|
|
12332
12331
|
setFragmentData: (t, e, r) => t.setFragmentData(e, r),
|
|
12333
12332
|
toDOMNode: (t, e) => {
|
|
12334
|
-
var r = ii.get(t), n = p.isEditor(e) ? Pn.get(t) : r == null ? void 0 : r.get(
|
|
12333
|
+
var r = ii.get(t), n = p.isEditor(e) ? Pn.get(t) : r == null ? void 0 : r.get(H.findKey(t, e));
|
|
12335
12334
|
if (!n)
|
|
12336
12335
|
throw new Error("Cannot resolve a DOM node from Slate node: ".concat(Ue.stringify(e)));
|
|
12337
12336
|
return n;
|
|
12338
12337
|
},
|
|
12339
12338
|
toDOMPoint: (t, e) => {
|
|
12340
|
-
var [r] = p.node(t, e.path), n =
|
|
12339
|
+
var [r] = p.node(t, e.path), n = H.toDOMNode(t, r), i;
|
|
12341
12340
|
p.void(t, {
|
|
12342
12341
|
at: e
|
|
12343
12342
|
}) && (e = {
|
|
@@ -12379,7 +12378,7 @@ var V = {
|
|
|
12379
12378
|
var {
|
|
12380
12379
|
anchor: r,
|
|
12381
12380
|
focus: n
|
|
12382
|
-
} = e, i = _.isBackward(e), a =
|
|
12381
|
+
} = e, i = _.isBackward(e), a = H.toDOMPoint(t, r), s = _.isCollapsed(e) ? a : H.toDOMPoint(t, n), o = H.getWindow(t), u = o.document.createRange(), [l, c] = i ? s : a, [d, h] = i ? a : s, m = gt(l) ? l : l.parentElement, g = !!m.getAttribute("data-slate-zero-width"), v = gt(d) ? d : d.parentElement, f = !!v.getAttribute("data-slate-zero-width");
|
|
12383
12382
|
return u.setStart(l, g ? 1 : c), u.setEnd(d, f ? 1 : h), u;
|
|
12384
12383
|
},
|
|
12385
12384
|
toSlateNode: (t, e) => {
|
|
@@ -12397,10 +12396,10 @@ var V = {
|
|
|
12397
12396
|
searchDirection: a = "backward"
|
|
12398
12397
|
} = r, [s, o] = n ? e : r0(e), u = s.parentNode, l = null, c = 0;
|
|
12399
12398
|
if (u) {
|
|
12400
|
-
var d, h, m =
|
|
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;
|
|
12401
12400
|
if (D) {
|
|
12402
12401
|
if (l = D.closest('[data-slate-node="text"]'), l) {
|
|
12403
|
-
var
|
|
12402
|
+
var E = H.getWindow(t), B = E.document.createRange();
|
|
12404
12403
|
B.setStart(l, 0), B.setEnd(s, o);
|
|
12405
12404
|
var A = B.cloneContents(), O = [...Array.prototype.slice.call(A.querySelectorAll("[data-slate-zero-width]")), ...Array.prototype.slice.call(A.querySelectorAll("[contenteditable=false]"))];
|
|
12406
12405
|
O.forEach((X) => {
|
|
@@ -12412,9 +12411,9 @@ var V = {
|
|
|
12412
12411
|
}), c = A.textContent.length, w = l;
|
|
12413
12412
|
}
|
|
12414
12413
|
} else if (v) {
|
|
12415
|
-
for (var
|
|
12416
|
-
var S =
|
|
12417
|
-
if (
|
|
12414
|
+
for (var j = v.querySelectorAll("[data-slate-leaf]"), P = 0; P < j.length; P++) {
|
|
12415
|
+
var S = j[P];
|
|
12416
|
+
if (H.hasDOMNode(t, S)) {
|
|
12418
12417
|
D = S;
|
|
12419
12418
|
break;
|
|
12420
12419
|
}
|
|
@@ -12453,17 +12452,17 @@ var V = {
|
|
|
12453
12452
|
`)) && c--;
|
|
12454
12453
|
}
|
|
12455
12454
|
if (Je && !l && !n) {
|
|
12456
|
-
var
|
|
12457
|
-
if (
|
|
12455
|
+
var z = u.hasAttribute("data-slate-node") ? u : u.closest("[data-slate-node]");
|
|
12456
|
+
if (z && H.hasDOMNode(t, z, {
|
|
12458
12457
|
editable: !0
|
|
12459
12458
|
})) {
|
|
12460
|
-
var Q =
|
|
12461
|
-
path:
|
|
12462
|
-
offset:
|
|
12463
|
-
} = p.start(t,
|
|
12464
|
-
return
|
|
12465
|
-
path:
|
|
12466
|
-
offset:
|
|
12459
|
+
var Q = H.toSlateNode(t, z), {
|
|
12460
|
+
path: V,
|
|
12461
|
+
offset: G
|
|
12462
|
+
} = p.start(t, H.findPath(t, Q));
|
|
12463
|
+
return z.querySelector("[data-slate-leaf]") || (G = o), {
|
|
12464
|
+
path: V,
|
|
12465
|
+
offset: G
|
|
12467
12466
|
};
|
|
12468
12467
|
}
|
|
12469
12468
|
}
|
|
@@ -12472,7 +12471,7 @@ var V = {
|
|
|
12472
12471
|
return null;
|
|
12473
12472
|
throw new Error("Cannot resolve a Slate point from DOM point: ".concat(e));
|
|
12474
12473
|
}
|
|
12475
|
-
var ee =
|
|
12474
|
+
var ee = H.toSlateNode(t, l), re = H.findPath(t, ee);
|
|
12476
12475
|
return {
|
|
12477
12476
|
path: re,
|
|
12478
12477
|
offset: c
|
|
@@ -12506,22 +12505,22 @@ var V = {
|
|
|
12506
12505
|
vr && (n = l.textContent) !== null && n !== void 0 && n.endsWith(`
|
|
12507
12506
|
|
|
12508
12507
|
`) && c === l.textContent.length && c--;
|
|
12509
|
-
var D =
|
|
12508
|
+
var D = H.toSlatePoint(t, [o, u], {
|
|
12510
12509
|
exactMatch: i,
|
|
12511
12510
|
suppressThrow: a
|
|
12512
12511
|
});
|
|
12513
12512
|
if (!D)
|
|
12514
12513
|
return null;
|
|
12515
|
-
var w = Eu(o, l) || o === l && c < u,
|
|
12514
|
+
var w = Eu(o, l) || o === l && c < u, E = d ? D : H.toSlatePoint(t, [l, c], {
|
|
12516
12515
|
exactMatch: i,
|
|
12517
12516
|
suppressThrow: a,
|
|
12518
12517
|
searchDirection: w ? "forward" : "backward"
|
|
12519
12518
|
});
|
|
12520
|
-
if (!
|
|
12519
|
+
if (!E)
|
|
12521
12520
|
return null;
|
|
12522
12521
|
var B = {
|
|
12523
12522
|
anchor: D,
|
|
12524
|
-
focus:
|
|
12523
|
+
focus: E
|
|
12525
12524
|
};
|
|
12526
12525
|
return _.isExpanded(B) && _.isForward(B) && gt(l) && p.void(t, {
|
|
12527
12526
|
at: B.focus,
|
|
@@ -12839,7 +12838,7 @@ function b0(t) {
|
|
|
12839
12838
|
k.run();
|
|
12840
12839
|
}
|
|
12841
12840
|
}, h = () => {
|
|
12842
|
-
if (s && (clearTimeout(s), s = null), o && (clearTimeout(o), o = null), !
|
|
12841
|
+
if (s && (clearTimeout(s), s = null), o && (clearTimeout(o), o = null), !E() && !w()) {
|
|
12843
12842
|
c();
|
|
12844
12843
|
return;
|
|
12845
12844
|
}
|
|
@@ -12848,9 +12847,9 @@ function b0(t) {
|
|
|
12848
12847
|
affinity: "forward"
|
|
12849
12848
|
});
|
|
12850
12849
|
Ft.set(e, e.marks), D0("flush", Rt.get(e), rt.get(e));
|
|
12851
|
-
for (var R =
|
|
12852
|
-
var N, K,
|
|
12853
|
-
|
|
12850
|
+
for (var R = E(), I; I = (N = rt.get(e)) === null || N === void 0 ? void 0 : N[0]; ) {
|
|
12851
|
+
var N, K, z = vt.get(e);
|
|
12852
|
+
z !== void 0 && (vt.delete(e), e.marks = z), z && l === !1 && (l = null);
|
|
12854
12853
|
var Q = p0(I);
|
|
12855
12854
|
(!e.selection || !_.equals(e.selection, Q)) && Z.select(e, Q), I.diff.text ? p.insertText(e, I.diff.text) : p.deleteFragment(e), rt.set(e, (K = rt.get(e)) === null || K === void 0 ? void 0 : K.filter((ee) => {
|
|
12856
12855
|
var {
|
|
@@ -12859,14 +12858,14 @@ function b0(t) {
|
|
|
12859
12858
|
return re !== I.id;
|
|
12860
12859
|
})), f0(e, I) || (R = !1, Rt.delete(e), Ft.delete(e), i = "action", jt.delete(e), r.cancel(), n.cancel(), k == null || k.unref());
|
|
12861
12860
|
}
|
|
12862
|
-
var
|
|
12863
|
-
if (
|
|
12861
|
+
var V = k == null ? void 0 : k.unref();
|
|
12862
|
+
if (V && !jt.get(e) && (!e.selection || !_.equals(V, e.selection)) && Z.select(e, V), w()) {
|
|
12864
12863
|
d();
|
|
12865
12864
|
return;
|
|
12866
12865
|
}
|
|
12867
12866
|
R && r(), r.flush(), n.flush(), c();
|
|
12868
|
-
var
|
|
12869
|
-
Ft.delete(e),
|
|
12867
|
+
var G = Ft.get(e);
|
|
12868
|
+
Ft.delete(e), G !== void 0 && (e.marks = G, e.onChange());
|
|
12870
12869
|
}, m = (k) => {
|
|
12871
12870
|
a && clearTimeout(a), a = setTimeout(() => {
|
|
12872
12871
|
tr.set(e, !1), h();
|
|
@@ -12876,7 +12875,7 @@ function b0(t) {
|
|
|
12876
12875
|
}, v = function() {
|
|
12877
12876
|
var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, I = Hi.get(e);
|
|
12878
12877
|
if (I) {
|
|
12879
|
-
if (
|
|
12878
|
+
if (E() || R) {
|
|
12880
12879
|
I.style.display = "none";
|
|
12881
12880
|
return;
|
|
12882
12881
|
}
|
|
@@ -12885,8 +12884,8 @@ function b0(t) {
|
|
|
12885
12884
|
}, f = (k, R) => {
|
|
12886
12885
|
var I, N = (I = rt.get(e)) !== null && I !== void 0 ? I : [];
|
|
12887
12886
|
rt.set(e, N);
|
|
12888
|
-
var K = te.leaf(e, k),
|
|
12889
|
-
if (
|
|
12887
|
+
var K = te.leaf(e, k), z = N.findIndex((G) => L.equals(G.path, k));
|
|
12888
|
+
if (z < 0) {
|
|
12890
12889
|
var Q = bc(K.text, R);
|
|
12891
12890
|
Q && N.push({
|
|
12892
12891
|
path: k,
|
|
@@ -12895,13 +12894,13 @@ function b0(t) {
|
|
|
12895
12894
|
}), v();
|
|
12896
12895
|
return;
|
|
12897
12896
|
}
|
|
12898
|
-
var
|
|
12899
|
-
if (!
|
|
12900
|
-
N.splice(
|
|
12897
|
+
var V = g0(K.text, N[z].diff, R);
|
|
12898
|
+
if (!V) {
|
|
12899
|
+
N.splice(z, 1), v();
|
|
12901
12900
|
return;
|
|
12902
12901
|
}
|
|
12903
|
-
N[
|
|
12904
|
-
diff:
|
|
12902
|
+
N[z] = Dn(Dn({}, N[z]), {}, {
|
|
12903
|
+
diff: V
|
|
12905
12904
|
});
|
|
12906
12905
|
}, y = function(R) {
|
|
12907
12906
|
var {
|
|
@@ -12918,17 +12917,17 @@ function b0(t) {
|
|
|
12918
12917
|
inputType: I
|
|
12919
12918
|
} = k, N = null, K = k.dataTransfer || k.data || void 0;
|
|
12920
12919
|
l !== !1 && I !== "insertText" && I !== "insertCompositionText" && (l = !1);
|
|
12921
|
-
var [
|
|
12922
|
-
|
|
12920
|
+
var [z] = k.getTargetRanges();
|
|
12921
|
+
z && (N = H.toSlateRange(e, z, {
|
|
12923
12922
|
exactMatch: !1,
|
|
12924
12923
|
suppressThrow: !0
|
|
12925
12924
|
}));
|
|
12926
|
-
var Q =
|
|
12927
|
-
if (!N &&
|
|
12925
|
+
var Q = H.getWindow(e), V = Q.getSelection();
|
|
12926
|
+
if (!N && V && (z = V, N = H.toSlateRange(e, V, {
|
|
12928
12927
|
exactMatch: !1,
|
|
12929
12928
|
suppressThrow: !0
|
|
12930
12929
|
})), N = (R = N) !== null && R !== void 0 ? R : e.selection, !!N) {
|
|
12931
|
-
var
|
|
12930
|
+
var G = !0;
|
|
12932
12931
|
if (I.startsWith("delete")) {
|
|
12933
12932
|
if (_.isExpanded(N)) {
|
|
12934
12933
|
var [ee, re] = _.edges(N), X = te.leaf(e, ee.path);
|
|
@@ -12943,13 +12942,13 @@ function b0(t) {
|
|
|
12943
12942
|
});
|
|
12944
12943
|
}
|
|
12945
12944
|
}
|
|
12946
|
-
var T = I.endsWith("Backward") ? "backward" : "forward", [x, U] = _.edges(N), [
|
|
12945
|
+
var T = I.endsWith("Backward") ? "backward" : "forward", [x, U] = _.edges(N), [$, q] = p.leaf(e, x.path), J = {
|
|
12947
12946
|
text: "",
|
|
12948
12947
|
start: x.offset,
|
|
12949
12948
|
end: U.offset
|
|
12950
|
-
}, Y = rt.get(e), ie = Y == null ? void 0 : Y.find((He) => L.equals(He.path,
|
|
12951
|
-
if (le.length === 0 && (
|
|
12952
|
-
if (
|
|
12949
|
+
}, Y = rt.get(e), ie = Y == null ? void 0 : Y.find((He) => L.equals(He.path, q)), ue = ie ? [ie.diff, J] : [J], le = yc($.text, ...ue);
|
|
12950
|
+
if (le.length === 0 && (G = !1), _.isExpanded(N)) {
|
|
12951
|
+
if (G && L.equals(N.anchor.path, N.focus.path)) {
|
|
12953
12952
|
var ce = {
|
|
12954
12953
|
path: N.anchor.path,
|
|
12955
12954
|
offset: x.offset
|
|
@@ -12979,7 +12978,7 @@ function b0(t) {
|
|
|
12979
12978
|
var {
|
|
12980
12979
|
anchor: we
|
|
12981
12980
|
} = N;
|
|
12982
|
-
if (
|
|
12981
|
+
if (G && _.isCollapsed(N)) {
|
|
12983
12982
|
var be = te.leaf(e, we.path);
|
|
12984
12983
|
if (we.offset < be.text.length)
|
|
12985
12984
|
return f(we.path, {
|
|
@@ -12995,8 +12994,8 @@ function b0(t) {
|
|
|
12995
12994
|
case "deleteContentBackward": {
|
|
12996
12995
|
var Ie, {
|
|
12997
12996
|
anchor: _e
|
|
12998
|
-
} = N, Ze = qi(
|
|
12999
|
-
return
|
|
12997
|
+
} = N, Ze = qi(z) ? z.isCollapsed : !!((Ie = z) !== null && Ie !== void 0 && Ie.collapsed);
|
|
12998
|
+
return G && Ze && _.isCollapsed(N) && _e.offset > 0 ? f(_e.path, {
|
|
13000
12999
|
text: "",
|
|
13001
13000
|
start: _e.offset - 1,
|
|
13002
13001
|
end: _e.offset
|
|
@@ -13067,7 +13066,7 @@ function b0(t) {
|
|
|
13067
13066
|
case "insertReplacementText":
|
|
13068
13067
|
case "insertText": {
|
|
13069
13068
|
if (y0(K))
|
|
13070
|
-
return y(() =>
|
|
13069
|
+
return y(() => H.insertData(e, K), {
|
|
13071
13070
|
at: N
|
|
13072
13071
|
});
|
|
13073
13072
|
var Le = K ?? "";
|
|
@@ -13094,7 +13093,7 @@ function b0(t) {
|
|
|
13094
13093
|
} else I === "insertText" ? l === null ? l = Oe : l && _.isCollapsed(N) && l.end + l.text.length === qe.offset ? l = Dn(Dn({}, l), {}, {
|
|
13095
13094
|
text: l.text + Le
|
|
13096
13095
|
}) : l = !1 : l = !1;
|
|
13097
|
-
if (
|
|
13096
|
+
if (G) {
|
|
13098
13097
|
f(qe.path, Oe);
|
|
13099
13098
|
return;
|
|
13100
13099
|
}
|
|
@@ -13106,26 +13105,26 @@ function b0(t) {
|
|
|
13106
13105
|
}
|
|
13107
13106
|
}
|
|
13108
13107
|
}
|
|
13109
|
-
}, w = () => !!Rt.get(e),
|
|
13108
|
+
}, w = () => !!Rt.get(e), E = () => {
|
|
13110
13109
|
var k;
|
|
13111
13110
|
return !!((k = rt.get(e)) !== null && k !== void 0 && k.length);
|
|
13112
|
-
}, B = () => w() ||
|
|
13111
|
+
}, B = () => w() || E(), A = () => i, O = (k) => {
|
|
13113
13112
|
jt.set(e, k), s && (clearTimeout(s), s = null);
|
|
13114
13113
|
var {
|
|
13115
13114
|
selection: R
|
|
13116
13115
|
} = e;
|
|
13117
13116
|
if (k) {
|
|
13118
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));
|
|
13119
|
-
(I && l || N) && (l = !1), (I ||
|
|
13118
|
+
(I && l || N) && (l = !1), (I || E()) && (s = setTimeout(h, C0));
|
|
13120
13119
|
}
|
|
13121
|
-
},
|
|
13122
|
-
(w() || !
|
|
13120
|
+
}, j = () => {
|
|
13121
|
+
(w() || !E()) && h();
|
|
13123
13122
|
}, P = (k) => {
|
|
13124
|
-
|
|
13123
|
+
E() || (v(!0), setTimeout(v));
|
|
13125
13124
|
}, S = () => {
|
|
13126
13125
|
w() || (o = setTimeout(h));
|
|
13127
13126
|
}, M = (k) => {
|
|
13128
|
-
if (!(
|
|
13127
|
+
if (!(E() || w()) && k.some((I) => Sa(e, I, k))) {
|
|
13129
13128
|
var R;
|
|
13130
13129
|
(R = gc.get(e)) === null || R === void 0 || R();
|
|
13131
13130
|
}
|
|
@@ -13133,7 +13132,7 @@ function b0(t) {
|
|
|
13133
13132
|
return {
|
|
13134
13133
|
flush: h,
|
|
13135
13134
|
scheduleFlush: S,
|
|
13136
|
-
hasPendingDiffs:
|
|
13135
|
+
hasPendingDiffs: E,
|
|
13137
13136
|
hasPendingAction: w,
|
|
13138
13137
|
hasPendingChanges: B,
|
|
13139
13138
|
isFlushing: A,
|
|
@@ -13143,21 +13142,21 @@ function b0(t) {
|
|
|
13143
13142
|
handleDOMBeforeInput: D,
|
|
13144
13143
|
handleKeyDown: P,
|
|
13145
13144
|
handleDomMutations: M,
|
|
13146
|
-
handleInput:
|
|
13145
|
+
handleInput: j
|
|
13147
13146
|
};
|
|
13148
13147
|
}
|
|
13149
13148
|
function E0() {
|
|
13150
13149
|
var t = me(!1);
|
|
13151
|
-
return
|
|
13150
|
+
return b(() => (t.current = !0, () => {
|
|
13152
13151
|
t.current = !1;
|
|
13153
13152
|
}), []), t.current;
|
|
13154
13153
|
}
|
|
13155
|
-
var Xr = Fn ? mf :
|
|
13154
|
+
var Xr = Fn ? mf : b;
|
|
13156
13155
|
function w0(t, e, r) {
|
|
13157
13156
|
var [n] = F(() => new MutationObserver(e));
|
|
13158
13157
|
Xr(() => {
|
|
13159
13158
|
n.takeRecords();
|
|
13160
|
-
}),
|
|
13159
|
+
}), b(() => {
|
|
13161
13160
|
if (!t.current)
|
|
13162
13161
|
throw new Error("Failed to attach MutationObserver, `node` is undefined");
|
|
13163
13162
|
return n.observe(t.current, r), () => n.disconnect();
|
|
@@ -13248,7 +13247,7 @@ var T0 = (t) => {
|
|
|
13248
13247
|
leaf: r,
|
|
13249
13248
|
parent: n,
|
|
13250
13249
|
text: i
|
|
13251
|
-
} = t, a = Ht(), s =
|
|
13250
|
+
} = t, a = Ht(), s = H.findPath(a, i), o = L.parent(s), u = !!r[pc];
|
|
13252
13251
|
return a.isVoid(n) ? /* @__PURE__ */ fe.createElement(Si, {
|
|
13253
13252
|
length: te.string(n).length
|
|
13254
13253
|
}) : r.text === "" && n.children[n.children.length - 1] === i && !a.isInline(n) && p.string(a, o) === "" ? /* @__PURE__ */ fe.createElement(Si, {
|
|
@@ -13331,8 +13330,8 @@ var j0 = (t) => {
|
|
|
13331
13330
|
Hi.delete(o), (w = e.onPlaceholderResize) === null || w === void 0 || w.call(e, null);
|
|
13332
13331
|
} else {
|
|
13333
13332
|
if (Hi.set(o, D), !u.current) {
|
|
13334
|
-
var
|
|
13335
|
-
u.current = new
|
|
13333
|
+
var E = window.ResizeObserver || WC;
|
|
13334
|
+
u.current = new E(() => {
|
|
13336
13335
|
var B;
|
|
13337
13336
|
(B = e.onPlaceholderResize) === null || B === void 0 || B.call(e, D);
|
|
13338
13337
|
});
|
|
@@ -13345,7 +13344,7 @@ var j0 = (t) => {
|
|
|
13345
13344
|
parent: i,
|
|
13346
13345
|
text: n
|
|
13347
13346
|
}), v = !!e[Er];
|
|
13348
|
-
if (
|
|
13347
|
+
if (b(() => (v ? h.current || (h.current = setTimeout(() => {
|
|
13349
13348
|
d(!0), h.current = null;
|
|
13350
13349
|
}, I0)) : (Pu(h), d(!1)), () => Pu(h)), [v, d]), v && c) {
|
|
13351
13350
|
var f = {
|
|
@@ -13394,7 +13393,7 @@ var j0 = (t) => {
|
|
|
13394
13393
|
renderPlaceholder: i,
|
|
13395
13394
|
renderLeaf: a,
|
|
13396
13395
|
text: s
|
|
13397
|
-
} = t, o = Ht(), u = me(null), l = se.decorations(s, e), c =
|
|
13396
|
+
} = t, o = Ht(), u = me(null), l = se.decorations(s, e), c = H.findKey(o, s), d = [], h = 0; h < l.length; h++) {
|
|
13398
13397
|
var m = l[h];
|
|
13399
13398
|
d.push(/* @__PURE__ */ fe.createElement($0, {
|
|
13400
13399
|
isLast: r && h === l.length - 1,
|
|
@@ -13444,7 +13443,7 @@ var U0 = (t) => {
|
|
|
13444
13443
|
renderPlaceholder: i,
|
|
13445
13444
|
renderLeaf: a,
|
|
13446
13445
|
selection: s
|
|
13447
|
-
} = t, o = Ht(), u = q0(), l = o.isInline(r), c =
|
|
13446
|
+
} = t, o = Ht(), u = q0(), l = o.isInline(r), c = H.findKey(o, r), d = Ee((D) => {
|
|
13448
13447
|
var w = ii.get(o);
|
|
13449
13448
|
D ? (w == null || w.set(c, D), ir.set(r, D), Kr.set(D, r)) : (w == null || w.delete(c), ir.delete(r));
|
|
13450
13449
|
}, [o, c, r]), h = Oc({
|
|
@@ -13507,11 +13506,11 @@ var U0 = (t) => {
|
|
|
13507
13506
|
selection: s
|
|
13508
13507
|
} = t, o = V0(), u = Ht();
|
|
13509
13508
|
Dr.set(u, !1);
|
|
13510
|
-
for (var l =
|
|
13511
|
-
var m = l.concat(h), g = r.children[h], v =
|
|
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
|
+
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]);
|
|
13512
13511
|
for (var w of e) {
|
|
13513
|
-
var
|
|
13514
|
-
|
|
13512
|
+
var E = _.intersection(w, f);
|
|
13513
|
+
E && D.push(E);
|
|
13515
13514
|
}
|
|
13516
13515
|
ae.isElement(g) ? c.push(/* @__PURE__ */ fe.createElement(G0.Provider, {
|
|
13517
13516
|
key: "provider-".concat(v.id),
|
|
@@ -13548,13 +13547,13 @@ function Z0() {
|
|
|
13548
13547
|
var t = Ht(), e = me(!1), r = me(0), n = Ee(() => {
|
|
13549
13548
|
if (!e.current) {
|
|
13550
13549
|
e.current = !0;
|
|
13551
|
-
var i =
|
|
13550
|
+
var i = H.getWindow(t);
|
|
13552
13551
|
i.cancelAnimationFrame(r.current), r.current = i.requestAnimationFrame(() => {
|
|
13553
13552
|
e.current = !1;
|
|
13554
13553
|
});
|
|
13555
13554
|
}
|
|
13556
13555
|
}, [t]);
|
|
13557
|
-
return
|
|
13556
|
+
return b(() => () => cancelAnimationFrame(r.current), []), {
|
|
13558
13557
|
receivedUserInput: e,
|
|
13559
13558
|
onUserInput: n
|
|
13560
13559
|
};
|
|
@@ -13730,8 +13729,8 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
13730
13729
|
style: h = {},
|
|
13731
13730
|
as: m = "div",
|
|
13732
13731
|
disableDefaultStyles: g = !1
|
|
13733
|
-
} = t, v = br(t, nD), f = ai(), [y, D] = F(!1), w = me(null),
|
|
13734
|
-
onUserInput:
|
|
13732
|
+
} = t, v = br(t, nD), f = ai(), [y, D] = F(!1), w = me(null), E = me([]), [B, A] = F(), O = me(!1), {
|
|
13733
|
+
onUserInput: j,
|
|
13735
13734
|
receivedUserInput: P
|
|
13736
13735
|
} = Z0(), [, S] = Cf((x) => x + 1, 0);
|
|
13737
13736
|
gc.set(f, S), Vi.set(f, o);
|
|
@@ -13741,7 +13740,7 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
13741
13740
|
latestElement: null,
|
|
13742
13741
|
hasMarkPlaceholder: !1
|
|
13743
13742
|
}), []);
|
|
13744
|
-
|
|
13743
|
+
b(() => {
|
|
13745
13744
|
w.current && n && w.current.focus();
|
|
13746
13745
|
}, [n]);
|
|
13747
13746
|
var k = me(), R = Pt(() => DC(() => {
|
|
@@ -13749,30 +13748,30 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
13749
13748
|
R();
|
|
13750
13749
|
return;
|
|
13751
13750
|
}
|
|
13752
|
-
var x =
|
|
13751
|
+
var x = H.toDOMNode(f, f), U = x.getRootNode();
|
|
13753
13752
|
if (!O.current && Yt && U instanceof ShadowRoot) {
|
|
13754
13753
|
O.current = !0;
|
|
13755
|
-
var
|
|
13756
|
-
|
|
13754
|
+
var $ = o0();
|
|
13755
|
+
$ ? document.execCommand("indent") : Z.deselect(f), O.current = !1;
|
|
13757
13756
|
return;
|
|
13758
13757
|
}
|
|
13759
|
-
var
|
|
13760
|
-
if ((Je || !
|
|
13761
|
-
var J =
|
|
13758
|
+
var q = k.current;
|
|
13759
|
+
if ((Je || !H.isComposing(f)) && (!M.isUpdatingSelection || q != null && q.isFlushing()) && !M.isDraggingInternally) {
|
|
13760
|
+
var J = H.findDocumentOrShadowRoot(f), {
|
|
13762
13761
|
activeElement: Y
|
|
13763
|
-
} = J, ie =
|
|
13762
|
+
} = J, ie = H.toDOMNode(f, f), ue = jr(J);
|
|
13764
13763
|
if (Y === ie ? (M.latestElement = Y, _t.set(f, !0)) : _t.delete(f), !ue)
|
|
13765
13764
|
return Z.deselect(f);
|
|
13766
13765
|
var {
|
|
13767
13766
|
anchorNode: le,
|
|
13768
13767
|
focusNode: ce
|
|
13769
|
-
} = ue, ge =
|
|
13768
|
+
} = ue, ge = H.hasEditableTarget(f, le) || H.isTargetInsideNonReadonlyVoid(f, le), we = H.hasTarget(f, ce);
|
|
13770
13769
|
if (ge && we) {
|
|
13771
|
-
var be =
|
|
13770
|
+
var be = H.toSlateRange(f, ue, {
|
|
13772
13771
|
exactMatch: !1,
|
|
13773
13772
|
suppressThrow: !0
|
|
13774
13773
|
});
|
|
13775
|
-
be && (!
|
|
13774
|
+
be && (!H.isComposing(f) && !(q != null && q.hasPendingChanges()) && !(q != null && q.isFlushing()) ? Z.select(f, be) : q == null || q.handleUserSelect(be));
|
|
13776
13775
|
}
|
|
13777
13776
|
o && (!ge || !we) && Z.deselect(f);
|
|
13778
13777
|
}
|
|
@@ -13782,15 +13781,15 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
13782
13781
|
onDOMSelectionChange: R,
|
|
13783
13782
|
scheduleOnDOMSelectionChange: I
|
|
13784
13783
|
}), Xr(() => {
|
|
13785
|
-
var x, U,
|
|
13786
|
-
w.current && (
|
|
13784
|
+
var x, U, $;
|
|
13785
|
+
w.current && ($ = Pa(w.current)) ? (hc.set(f, $), Pn.set(f, w.current), ir.set(f, w.current), Kr.set(w.current, f)) : ir.delete(f);
|
|
13787
13786
|
var {
|
|
13788
|
-
selection:
|
|
13789
|
-
} = f, J =
|
|
13790
|
-
if (!(!Y || !
|
|
13787
|
+
selection: q
|
|
13788
|
+
} = f, J = H.findDocumentOrShadowRoot(f), Y = jr(J);
|
|
13789
|
+
if (!(!Y || !H.isFocused(f) || (x = k.current) !== null && x !== void 0 && x.hasPendingAction())) {
|
|
13791
13790
|
var ie = (ge) => {
|
|
13792
13791
|
var we = Y.type !== "None";
|
|
13793
|
-
if (!(!
|
|
13792
|
+
if (!(!q && !we)) {
|
|
13794
13793
|
var be = Y.focusNode, Ie;
|
|
13795
13794
|
if (vr && Y.rangeCount > 1) {
|
|
13796
13795
|
var _e = Y.getRangeAt(0), Ze = Y.getRangeAt(Y.rangeCount - 1);
|
|
@@ -13798,29 +13797,29 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
13798
13797
|
} else
|
|
13799
13798
|
Ie = Y.anchorNode;
|
|
13800
13799
|
var Le = Pn.get(f), qe = !1;
|
|
13801
|
-
if (Le.contains(Ie) && Le.contains(be) && (qe = !0), we && qe &&
|
|
13802
|
-
var tt =
|
|
13800
|
+
if (Le.contains(Ie) && Le.contains(be) && (qe = !0), we && qe && q && !ge) {
|
|
13801
|
+
var tt = H.toSlateRange(f, Y, {
|
|
13803
13802
|
exactMatch: !0,
|
|
13804
13803
|
// domSelection is not necessarily a valid Slate range
|
|
13805
13804
|
// (e.g. when clicking on contentEditable:false element)
|
|
13806
13805
|
suppressThrow: !0
|
|
13807
13806
|
});
|
|
13808
|
-
if (tt && _.equals(tt,
|
|
13807
|
+
if (tt && _.equals(tt, q)) {
|
|
13809
13808
|
var Oe;
|
|
13810
13809
|
if (!M.hasMarkPlaceholder || (Oe = Ie) !== null && Oe !== void 0 && (Oe = Oe.parentElement) !== null && Oe !== void 0 && Oe.hasAttribute("data-slate-mark-placeholder"))
|
|
13811
13810
|
return;
|
|
13812
13811
|
}
|
|
13813
13812
|
}
|
|
13814
|
-
if (
|
|
13815
|
-
f.selection =
|
|
13813
|
+
if (q && !H.hasRange(f, q)) {
|
|
13814
|
+
f.selection = H.toSlateRange(f, Y, {
|
|
13816
13815
|
exactMatch: !1,
|
|
13817
13816
|
suppressThrow: !0
|
|
13818
13817
|
});
|
|
13819
13818
|
return;
|
|
13820
13819
|
}
|
|
13821
13820
|
M.isUpdatingSelection = !0;
|
|
13822
|
-
var xe =
|
|
13823
|
-
return xe ? (
|
|
13821
|
+
var xe = q && H.toDOMRange(f, q);
|
|
13822
|
+
return xe ? (H.isComposing(f) && !Je ? Y.collapseToEnd() : _.isBackward(q) ? Y.setBaseAndExtent(xe.endContainer, xe.endOffset, xe.startContainer, xe.startOffset) : Y.setBaseAndExtent(xe.startContainer, xe.startOffset, xe.endContainer, xe.endOffset), d(f, xe)) : Y.removeAllRanges(), xe;
|
|
13824
13823
|
}
|
|
13825
13824
|
};
|
|
13826
13825
|
Y.rangeCount <= 1 && ie();
|
|
@@ -13835,7 +13834,7 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
13835
13834
|
if (ue) {
|
|
13836
13835
|
var ge = (we) => {
|
|
13837
13836
|
try {
|
|
13838
|
-
var be =
|
|
13837
|
+
var be = H.toDOMNode(f, f);
|
|
13839
13838
|
be.focus(), ie(we);
|
|
13840
13839
|
} catch {
|
|
13841
13840
|
}
|
|
@@ -13851,18 +13850,18 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
13851
13850
|
}
|
|
13852
13851
|
});
|
|
13853
13852
|
var N = Ee((x) => {
|
|
13854
|
-
var U =
|
|
13855
|
-
if (O != null && O.current && Yt &&
|
|
13856
|
-
var
|
|
13853
|
+
var U = H.toDOMNode(f, f), $ = U.getRootNode();
|
|
13854
|
+
if (O != null && O.current && Yt && $ instanceof ShadowRoot) {
|
|
13855
|
+
var q = x.getTargetRanges(), J = q[0], Y = new window.Range();
|
|
13857
13856
|
Y.setStart(J.startContainer, J.startOffset), Y.setEnd(J.endContainer, J.endOffset);
|
|
13858
|
-
var ie =
|
|
13857
|
+
var ie = H.toSlateRange(f, Y, {
|
|
13859
13858
|
exactMatch: !1,
|
|
13860
13859
|
suppressThrow: !1
|
|
13861
13860
|
});
|
|
13862
13861
|
Z.select(f, ie), x.preventDefault(), x.stopImmediatePropagation();
|
|
13863
13862
|
return;
|
|
13864
13863
|
}
|
|
13865
|
-
if (
|
|
13864
|
+
if (j(), !o && H.hasEditableTarget(f, x.target) && !cD(x, a)) {
|
|
13866
13865
|
var ue;
|
|
13867
13866
|
if (k.current)
|
|
13868
13867
|
return k.current.handleDOMBeforeInput(x);
|
|
@@ -13872,7 +13871,7 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
13872
13871
|
} = f, {
|
|
13873
13872
|
inputType: ce
|
|
13874
13873
|
} = x, ge = x.dataTransfer || x.data || void 0, we = ce === "insertCompositionText" || ce === "deleteCompositionText";
|
|
13875
|
-
if (we &&
|
|
13874
|
+
if (we && H.isComposing(f))
|
|
13876
13875
|
return;
|
|
13877
13876
|
var be = !1;
|
|
13878
13877
|
if (ce === "insertText" && le && _.isCollapsed(le) && // Only use native character insertion for single characters a-z or space for now.
|
|
@@ -13884,8 +13883,8 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
13884
13883
|
le.anchor.offset !== 0 && (be = !0, f.marks && (be = !1), !Dr.get(f))) {
|
|
13885
13884
|
var Ie, _e, {
|
|
13886
13885
|
anchor: Ze
|
|
13887
|
-
} = le, [Le, qe] =
|
|
13888
|
-
if (be && tt &&
|
|
13886
|
+
} = le, [Le, qe] = H.toDOMPoint(f, Ze), tt = (Ie = Le.parentElement) === null || Ie === void 0 ? void 0 : Ie.closest("a"), Oe = H.getWindow(f);
|
|
13887
|
+
if (be && tt && H.hasDOMNode(f, tt)) {
|
|
13889
13888
|
var xe, ft = Oe == null ? void 0 : Oe.document.createTreeWalker(tt, NodeFilter.SHOW_TEXT).lastChild();
|
|
13890
13889
|
ft === Le && ((xe = ft.textContent) === null || xe === void 0 ? void 0 : xe.length) === qe && (be = !1);
|
|
13891
13890
|
}
|
|
@@ -13900,7 +13899,7 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
13900
13899
|
if ((!ce.startsWith("delete") || ce.startsWith("deleteBy")) && !Dr.get(f)) {
|
|
13901
13900
|
var [Ke] = x.getTargetRanges();
|
|
13902
13901
|
if (Ke) {
|
|
13903
|
-
var Dt =
|
|
13902
|
+
var Dt = H.toSlateRange(f, Ke, {
|
|
13904
13903
|
exactMatch: !1,
|
|
13905
13904
|
suppressThrow: !1
|
|
13906
13905
|
});
|
|
@@ -13993,18 +13992,18 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
13993
13992
|
case "insertFromYank":
|
|
13994
13993
|
case "insertReplacementText":
|
|
13995
13994
|
case "insertText": {
|
|
13996
|
-
ce === "insertFromComposition" &&
|
|
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 ? E.current.push(() => p.insertText(f, ge)) : p.insertText(f, ge));
|
|
13997
13996
|
break;
|
|
13998
13997
|
}
|
|
13999
13998
|
}
|
|
14000
13999
|
var yt = (ue = Rr.get(f)) === null || ue === void 0 ? void 0 : ue.unref();
|
|
14001
14000
|
Rr.delete(f), yt && (!f.selection || !_.equals(f.selection, yt)) && Z.select(f, yt);
|
|
14002
14001
|
}
|
|
14003
|
-
}, [f, R,
|
|
14002
|
+
}, [f, R, j, a, o, I]), K = Ee((x) => {
|
|
14004
14003
|
x == null ? (R.cancel(), I.cancel(), Pn.delete(f), ir.delete(f), w.current && Tt && w.current.removeEventListener("beforeinput", N)) : Tt && x.addEventListener("beforeinput", N), w.current = x, typeof e == "function" ? e(x) : e && (e.current = x);
|
|
14005
14004
|
}, [R, I, f, N, e]);
|
|
14006
14005
|
Xr(() => {
|
|
14007
|
-
var x =
|
|
14006
|
+
var x = H.getWindow(f);
|
|
14008
14007
|
x.document.addEventListener("selectionchange", I);
|
|
14009
14008
|
var U = () => {
|
|
14010
14009
|
M.isDraggingInternally = !1;
|
|
@@ -14013,7 +14012,7 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14013
14012
|
x.document.removeEventListener("selectionchange", I), x.document.removeEventListener("dragend", U), x.document.removeEventListener("drop", U);
|
|
14014
14013
|
};
|
|
14015
14014
|
}, [I, M]);
|
|
14016
|
-
var
|
|
14015
|
+
var z = i([f, []]), Q = s && f.children.length === 1 && Array.from(te.texts(f)).length === 1 && te.string(f) === "" && !y, V = Ee((x) => {
|
|
14017
14016
|
if (x && Q) {
|
|
14018
14017
|
var U;
|
|
14019
14018
|
A((U = x.getBoundingClientRect()) === null || U === void 0 ? void 0 : U.height);
|
|
@@ -14021,13 +14020,13 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14021
14020
|
A(void 0);
|
|
14022
14021
|
}, [Q]);
|
|
14023
14022
|
if (Q) {
|
|
14024
|
-
var
|
|
14025
|
-
|
|
14023
|
+
var G = p.start(f, []);
|
|
14024
|
+
z.push({
|
|
14026
14025
|
[Er]: !0,
|
|
14027
14026
|
placeholder: s,
|
|
14028
|
-
onPlaceholderResize:
|
|
14029
|
-
anchor:
|
|
14030
|
-
focus:
|
|
14027
|
+
onPlaceholderResize: V,
|
|
14028
|
+
anchor: G,
|
|
14029
|
+
focus: G
|
|
14031
14030
|
});
|
|
14032
14031
|
}
|
|
14033
14032
|
var {
|
|
@@ -14042,7 +14041,7 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14042
14041
|
})) {
|
|
14043
14042
|
M.hasMarkPlaceholder = !0;
|
|
14044
14043
|
var T = Object.fromEntries(Object.keys(oe).map((x) => [x, null]));
|
|
14045
|
-
|
|
14044
|
+
z.push(Et(Et(Et({
|
|
14046
14045
|
[pc]: !0
|
|
14047
14046
|
}, T), ee), {}, {
|
|
14048
14047
|
anchor: re,
|
|
@@ -14050,7 +14049,7 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14050
14049
|
}));
|
|
14051
14050
|
}
|
|
14052
14051
|
}
|
|
14053
|
-
return
|
|
14052
|
+
return b(() => {
|
|
14054
14053
|
setTimeout(() => {
|
|
14055
14054
|
var {
|
|
14056
14055
|
selection: x
|
|
@@ -14058,8 +14057,8 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14058
14057
|
if (x) {
|
|
14059
14058
|
var {
|
|
14060
14059
|
anchor: U
|
|
14061
|
-
} = x,
|
|
14062
|
-
if (ee && !se.equals(
|
|
14060
|
+
} = x, $ = te.leaf(f, U.path);
|
|
14061
|
+
if (ee && !se.equals($, ee, {
|
|
14063
14062
|
loose: !0
|
|
14064
14063
|
})) {
|
|
14065
14064
|
vt.set(f, ee);
|
|
@@ -14110,7 +14109,7 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14110
14109
|
minHeight: B
|
|
14111
14110
|
} : {})), h),
|
|
14112
14111
|
onBeforeInput: Ee((x) => {
|
|
14113
|
-
if (!Tt && !o && !Ye(x, v.onBeforeInput) &&
|
|
14112
|
+
if (!Tt && !o && !Ye(x, v.onBeforeInput) && H.hasSelectableTarget(f, x.target) && (x.preventDefault(), !H.isComposing(f))) {
|
|
14114
14113
|
var U = x.data;
|
|
14115
14114
|
p.insertText(f, U);
|
|
14116
14115
|
}
|
|
@@ -14121,31 +14120,31 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14121
14120
|
k.current.handleInput();
|
|
14122
14121
|
return;
|
|
14123
14122
|
}
|
|
14124
|
-
for (var U of
|
|
14123
|
+
for (var U of E.current)
|
|
14125
14124
|
U();
|
|
14126
|
-
if (
|
|
14127
|
-
var
|
|
14128
|
-
if (
|
|
14129
|
-
|
|
14125
|
+
if (E.current = [], !H.isFocused(f)) {
|
|
14126
|
+
var $ = x.nativeEvent, q = f;
|
|
14127
|
+
if ($.inputType === "historyUndo" && typeof q.undo == "function") {
|
|
14128
|
+
q.undo();
|
|
14130
14129
|
return;
|
|
14131
14130
|
}
|
|
14132
|
-
if (
|
|
14133
|
-
|
|
14131
|
+
if ($.inputType === "historyRedo" && typeof q.redo == "function") {
|
|
14132
|
+
q.redo();
|
|
14134
14133
|
return;
|
|
14135
14134
|
}
|
|
14136
14135
|
}
|
|
14137
14136
|
}
|
|
14138
14137
|
}, [v.onInput, f]),
|
|
14139
14138
|
onBlur: Ee((x) => {
|
|
14140
|
-
if (!(o || M.isUpdatingSelection || !
|
|
14141
|
-
var U =
|
|
14139
|
+
if (!(o || M.isUpdatingSelection || !H.hasSelectableTarget(f, x.target) || Ye(x, v.onBlur))) {
|
|
14140
|
+
var U = H.findDocumentOrShadowRoot(f);
|
|
14142
14141
|
if (M.latestElement !== U.activeElement) {
|
|
14143
14142
|
var {
|
|
14144
|
-
relatedTarget:
|
|
14145
|
-
} = x,
|
|
14146
|
-
if (
|
|
14147
|
-
if (
|
|
14148
|
-
var J =
|
|
14143
|
+
relatedTarget: $
|
|
14144
|
+
} = x, q = H.toDOMNode(f, f);
|
|
14145
|
+
if ($ !== q && !(gt($) && $.hasAttribute("data-slate-spacer"))) {
|
|
14146
|
+
if ($ != null && Wt($) && H.hasDOMNode(f, $)) {
|
|
14147
|
+
var J = H.toSlateNode(f, $);
|
|
14149
14148
|
if (ae.isElement(J) && !f.isVoid(J))
|
|
14150
14149
|
return;
|
|
14151
14150
|
}
|
|
@@ -14159,26 +14158,26 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14159
14158
|
}
|
|
14160
14159
|
}, [o, M.isUpdatingSelection, M.latestElement, f, v.onBlur]),
|
|
14161
14160
|
onClick: Ee((x) => {
|
|
14162
|
-
if (
|
|
14163
|
-
var U =
|
|
14164
|
-
if (!p.hasPath(f,
|
|
14161
|
+
if (H.hasTarget(f, x.target) && !Ye(x, v.onClick) && Wt(x.target)) {
|
|
14162
|
+
var U = H.toSlateNode(f, x.target), $ = H.findPath(f, U);
|
|
14163
|
+
if (!p.hasPath(f, $) || te.get(f, $) !== U)
|
|
14165
14164
|
return;
|
|
14166
|
-
if (x.detail === K0 &&
|
|
14167
|
-
var
|
|
14165
|
+
if (x.detail === K0 && $.length >= 1) {
|
|
14166
|
+
var q = $;
|
|
14168
14167
|
if (!(ae.isElement(U) && p.isBlock(f, U))) {
|
|
14169
14168
|
var J, Y = p.above(f, {
|
|
14170
14169
|
match: (be) => ae.isElement(be) && p.isBlock(f, be),
|
|
14171
|
-
at:
|
|
14170
|
+
at: $
|
|
14172
14171
|
});
|
|
14173
|
-
|
|
14172
|
+
q = (J = Y == null ? void 0 : Y[1]) !== null && J !== void 0 ? J : $.slice(0, 1);
|
|
14174
14173
|
}
|
|
14175
|
-
var ie = p.range(f,
|
|
14174
|
+
var ie = p.range(f, q);
|
|
14176
14175
|
Z.select(f, ie);
|
|
14177
14176
|
return;
|
|
14178
14177
|
}
|
|
14179
14178
|
if (o)
|
|
14180
14179
|
return;
|
|
14181
|
-
var ue = p.start(f,
|
|
14180
|
+
var ue = p.start(f, $), le = p.end(f, $), ce = p.void(f, {
|
|
14182
14181
|
at: ue
|
|
14183
14182
|
}), ge = p.void(f, {
|
|
14184
14183
|
at: le
|
|
@@ -14190,44 +14189,44 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14190
14189
|
}
|
|
14191
14190
|
}, [f, v.onClick, o]),
|
|
14192
14191
|
onCompositionEnd: Ee((x) => {
|
|
14193
|
-
if (
|
|
14192
|
+
if (H.hasSelectableTarget(f, x.target)) {
|
|
14194
14193
|
var U;
|
|
14195
|
-
if (
|
|
14194
|
+
if (H.isComposing(f) && Promise.resolve().then(() => {
|
|
14196
14195
|
D(!1), tr.set(f, !1);
|
|
14197
14196
|
}), (U = k.current) === null || U === void 0 || U.handleCompositionEnd(x), Ye(x, v.onCompositionEnd) || Je)
|
|
14198
14197
|
return;
|
|
14199
14198
|
if (!Yt && !XC && !fc && !JC && !YC && x.data) {
|
|
14200
|
-
var
|
|
14201
|
-
vt.delete(f),
|
|
14202
|
-
var
|
|
14203
|
-
Ft.delete(f),
|
|
14199
|
+
var $ = vt.get(f);
|
|
14200
|
+
vt.delete(f), $ !== void 0 && (Ft.set(f, f.marks), f.marks = $), p.insertText(f, x.data);
|
|
14201
|
+
var q = Ft.get(f);
|
|
14202
|
+
Ft.delete(f), q !== void 0 && (f.marks = q);
|
|
14204
14203
|
}
|
|
14205
14204
|
}
|
|
14206
14205
|
}, [v.onCompositionEnd, f]),
|
|
14207
14206
|
onCompositionUpdate: Ee((x) => {
|
|
14208
|
-
|
|
14207
|
+
H.hasSelectableTarget(f, x.target) && !Ye(x, v.onCompositionUpdate) && (H.isComposing(f) || (D(!0), tr.set(f, !0)));
|
|
14209
14208
|
}, [v.onCompositionUpdate, f]),
|
|
14210
14209
|
onCompositionStart: Ee((x) => {
|
|
14211
|
-
if (
|
|
14210
|
+
if (H.hasSelectableTarget(f, x.target)) {
|
|
14212
14211
|
var U;
|
|
14213
14212
|
if ((U = k.current) === null || U === void 0 || U.handleCompositionStart(x), Ye(x, v.onCompositionStart) || Je)
|
|
14214
14213
|
return;
|
|
14215
14214
|
D(!0);
|
|
14216
14215
|
var {
|
|
14217
|
-
selection:
|
|
14216
|
+
selection: $
|
|
14218
14217
|
} = f;
|
|
14219
|
-
if (
|
|
14218
|
+
if ($ && _.isExpanded($)) {
|
|
14220
14219
|
p.deleteFragment(f);
|
|
14221
14220
|
return;
|
|
14222
14221
|
}
|
|
14223
14222
|
}
|
|
14224
14223
|
}, [v.onCompositionStart, f]),
|
|
14225
14224
|
onCopy: Ee((x) => {
|
|
14226
|
-
|
|
14225
|
+
H.hasSelectableTarget(f, x.target) && !Ye(x, v.onCopy) && !ku(x) && (x.preventDefault(), H.setFragmentData(f, x.clipboardData, "copy"));
|
|
14227
14226
|
}, [v.onCopy, f]),
|
|
14228
14227
|
onCut: Ee((x) => {
|
|
14229
|
-
if (!o &&
|
|
14230
|
-
x.preventDefault(),
|
|
14228
|
+
if (!o && H.hasSelectableTarget(f, x.target) && !Ye(x, v.onCut) && !ku(x)) {
|
|
14229
|
+
x.preventDefault(), H.setFragmentData(f, x.clipboardData, "cut");
|
|
14231
14230
|
var {
|
|
14232
14231
|
selection: U
|
|
14233
14232
|
} = f;
|
|
@@ -14235,49 +14234,49 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14235
14234
|
if (_.isExpanded(U))
|
|
14236
14235
|
p.deleteFragment(f);
|
|
14237
14236
|
else {
|
|
14238
|
-
var
|
|
14239
|
-
p.isVoid(f,
|
|
14237
|
+
var $ = te.parent(f, U.anchor.path);
|
|
14238
|
+
p.isVoid(f, $) && Z.delete(f);
|
|
14240
14239
|
}
|
|
14241
14240
|
}
|
|
14242
14241
|
}, [o, f, v.onCut]),
|
|
14243
14242
|
onDragOver: Ee((x) => {
|
|
14244
|
-
if (
|
|
14245
|
-
var U =
|
|
14243
|
+
if (H.hasTarget(f, x.target) && !Ye(x, v.onDragOver)) {
|
|
14244
|
+
var U = H.toSlateNode(f, x.target);
|
|
14246
14245
|
ae.isElement(U) && p.isVoid(f, U) && x.preventDefault();
|
|
14247
14246
|
}
|
|
14248
14247
|
}, [v.onDragOver, f]),
|
|
14249
14248
|
onDragStart: Ee((x) => {
|
|
14250
|
-
if (!o &&
|
|
14251
|
-
var U =
|
|
14252
|
-
at:
|
|
14249
|
+
if (!o && H.hasTarget(f, x.target) && !Ye(x, v.onDragStart)) {
|
|
14250
|
+
var U = H.toSlateNode(f, x.target), $ = H.findPath(f, U), q = ae.isElement(U) && p.isVoid(f, U) || p.void(f, {
|
|
14251
|
+
at: $,
|
|
14253
14252
|
voids: !0
|
|
14254
14253
|
});
|
|
14255
|
-
if (
|
|
14256
|
-
var J = p.range(f,
|
|
14254
|
+
if (q) {
|
|
14255
|
+
var J = p.range(f, $);
|
|
14257
14256
|
Z.select(f, J);
|
|
14258
14257
|
}
|
|
14259
|
-
M.isDraggingInternally = !0,
|
|
14258
|
+
M.isDraggingInternally = !0, H.setFragmentData(f, x.dataTransfer, "drag");
|
|
14260
14259
|
}
|
|
14261
14260
|
}, [o, f, v.onDragStart, M]),
|
|
14262
14261
|
onDrop: Ee((x) => {
|
|
14263
|
-
if (!o &&
|
|
14262
|
+
if (!o && H.hasTarget(f, x.target) && !Ye(x, v.onDrop)) {
|
|
14264
14263
|
x.preventDefault();
|
|
14265
|
-
var U = f.selection,
|
|
14266
|
-
Z.select(f,
|
|
14267
|
-
at:
|
|
14264
|
+
var U = f.selection, $ = H.findEventRange(f, x), q = x.dataTransfer;
|
|
14265
|
+
Z.select(f, $), M.isDraggingInternally && U && !_.equals(U, $) && !p.void(f, {
|
|
14266
|
+
at: $,
|
|
14268
14267
|
voids: !0
|
|
14269
14268
|
}) && Z.delete(f, {
|
|
14270
14269
|
at: U
|
|
14271
|
-
}),
|
|
14270
|
+
}), H.insertData(f, q), H.isFocused(f) || H.focus(f);
|
|
14272
14271
|
}
|
|
14273
14272
|
}, [o, f, v.onDrop, M]),
|
|
14274
14273
|
onDragEnd: Ee((x) => {
|
|
14275
|
-
!o && M.isDraggingInternally && v.onDragEnd &&
|
|
14274
|
+
!o && M.isDraggingInternally && v.onDragEnd && H.hasTarget(f, x.target) && v.onDragEnd(x);
|
|
14276
14275
|
}, [o, M, v, f]),
|
|
14277
14276
|
onFocus: Ee((x) => {
|
|
14278
|
-
if (!o && !M.isUpdatingSelection &&
|
|
14279
|
-
var U =
|
|
14280
|
-
if (M.latestElement =
|
|
14277
|
+
if (!o && !M.isUpdatingSelection && H.hasEditableTarget(f, x.target) && !Ye(x, v.onFocus)) {
|
|
14278
|
+
var U = H.toDOMNode(f, f), $ = H.findDocumentOrShadowRoot(f);
|
|
14279
|
+
if (M.latestElement = $.activeElement, vr && x.target !== U) {
|
|
14281
14280
|
U.focus();
|
|
14282
14281
|
return;
|
|
14283
14282
|
}
|
|
@@ -14285,43 +14284,43 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14285
14284
|
}
|
|
14286
14285
|
}, [o, M, f, v.onFocus]),
|
|
14287
14286
|
onKeyDown: Ee((x) => {
|
|
14288
|
-
if (!o &&
|
|
14287
|
+
if (!o && H.hasEditableTarget(f, x.target)) {
|
|
14289
14288
|
var U;
|
|
14290
14289
|
(U = k.current) === null || U === void 0 || U.handleKeyDown(x);
|
|
14291
14290
|
var {
|
|
14292
|
-
nativeEvent:
|
|
14291
|
+
nativeEvent: $
|
|
14293
14292
|
} = x;
|
|
14294
|
-
if (
|
|
14293
|
+
if (H.isComposing(f) && $.isComposing === !1 && (tr.set(f, !1), D(!1)), Ye(x, v.onKeyDown) || H.isComposing(f))
|
|
14295
14294
|
return;
|
|
14296
14295
|
var {
|
|
14297
|
-
selection:
|
|
14298
|
-
} = f, J = f.children[
|
|
14299
|
-
if (Te.isRedo(
|
|
14296
|
+
selection: q
|
|
14297
|
+
} = f, J = f.children[q !== null ? q.focus.path[0] : 0], Y = Ql(te.string(J)) === "rtl";
|
|
14298
|
+
if (Te.isRedo($)) {
|
|
14300
14299
|
x.preventDefault();
|
|
14301
14300
|
var ie = f;
|
|
14302
14301
|
typeof ie.redo == "function" && ie.redo();
|
|
14303
14302
|
return;
|
|
14304
14303
|
}
|
|
14305
|
-
if (Te.isUndo(
|
|
14304
|
+
if (Te.isUndo($)) {
|
|
14306
14305
|
x.preventDefault();
|
|
14307
14306
|
var ue = f;
|
|
14308
14307
|
typeof ue.undo == "function" && ue.undo();
|
|
14309
14308
|
return;
|
|
14310
14309
|
}
|
|
14311
|
-
if (Te.isMoveLineBackward(
|
|
14310
|
+
if (Te.isMoveLineBackward($)) {
|
|
14312
14311
|
x.preventDefault(), Z.move(f, {
|
|
14313
14312
|
unit: "line",
|
|
14314
14313
|
reverse: !0
|
|
14315
14314
|
});
|
|
14316
14315
|
return;
|
|
14317
14316
|
}
|
|
14318
|
-
if (Te.isMoveLineForward(
|
|
14317
|
+
if (Te.isMoveLineForward($)) {
|
|
14319
14318
|
x.preventDefault(), Z.move(f, {
|
|
14320
14319
|
unit: "line"
|
|
14321
14320
|
});
|
|
14322
14321
|
return;
|
|
14323
14322
|
}
|
|
14324
|
-
if (Te.isExtendLineBackward(
|
|
14323
|
+
if (Te.isExtendLineBackward($)) {
|
|
14325
14324
|
x.preventDefault(), Z.move(f, {
|
|
14326
14325
|
unit: "line",
|
|
14327
14326
|
edge: "focus",
|
|
@@ -14329,31 +14328,31 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14329
14328
|
});
|
|
14330
14329
|
return;
|
|
14331
14330
|
}
|
|
14332
|
-
if (Te.isExtendLineForward(
|
|
14331
|
+
if (Te.isExtendLineForward($)) {
|
|
14333
14332
|
x.preventDefault(), Z.move(f, {
|
|
14334
14333
|
unit: "line",
|
|
14335
14334
|
edge: "focus"
|
|
14336
14335
|
});
|
|
14337
14336
|
return;
|
|
14338
14337
|
}
|
|
14339
|
-
if (Te.isMoveBackward(
|
|
14340
|
-
x.preventDefault(),
|
|
14338
|
+
if (Te.isMoveBackward($)) {
|
|
14339
|
+
x.preventDefault(), q && _.isCollapsed(q) ? Z.move(f, {
|
|
14341
14340
|
reverse: !Y
|
|
14342
14341
|
}) : Z.collapse(f, {
|
|
14343
14342
|
edge: Y ? "end" : "start"
|
|
14344
14343
|
});
|
|
14345
14344
|
return;
|
|
14346
14345
|
}
|
|
14347
|
-
if (Te.isMoveForward(
|
|
14348
|
-
x.preventDefault(),
|
|
14346
|
+
if (Te.isMoveForward($)) {
|
|
14347
|
+
x.preventDefault(), q && _.isCollapsed(q) ? Z.move(f, {
|
|
14349
14348
|
reverse: Y
|
|
14350
14349
|
}) : Z.collapse(f, {
|
|
14351
14350
|
edge: Y ? "start" : "end"
|
|
14352
14351
|
});
|
|
14353
14352
|
return;
|
|
14354
14353
|
}
|
|
14355
|
-
if (Te.isMoveWordBackward(
|
|
14356
|
-
x.preventDefault(),
|
|
14354
|
+
if (Te.isMoveWordBackward($)) {
|
|
14355
|
+
x.preventDefault(), q && _.isExpanded(q) && Z.collapse(f, {
|
|
14357
14356
|
edge: "focus"
|
|
14358
14357
|
}), Z.move(f, {
|
|
14359
14358
|
unit: "word",
|
|
@@ -14361,8 +14360,8 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14361
14360
|
});
|
|
14362
14361
|
return;
|
|
14363
14362
|
}
|
|
14364
|
-
if (Te.isMoveWordForward(
|
|
14365
|
-
x.preventDefault(),
|
|
14363
|
+
if (Te.isMoveWordForward($)) {
|
|
14364
|
+
x.preventDefault(), q && _.isExpanded(q) && Z.collapse(f, {
|
|
14366
14365
|
edge: "focus"
|
|
14367
14366
|
}), Z.move(f, {
|
|
14368
14367
|
unit: "word",
|
|
@@ -14371,8 +14370,8 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14371
14370
|
return;
|
|
14372
14371
|
}
|
|
14373
14372
|
if (Tt) {
|
|
14374
|
-
if ((dc || Yt) &&
|
|
14375
|
-
var le = te.parent(f,
|
|
14373
|
+
if ((dc || Yt) && q && (Te.isDeleteBackward($) || Te.isDeleteForward($)) && _.isCollapsed(q)) {
|
|
14374
|
+
var le = te.parent(f, q.anchor.path);
|
|
14376
14375
|
if (ae.isElement(le) && p.isVoid(f, le) && (p.isInline(f, le) || p.isBlock(f, le))) {
|
|
14377
14376
|
x.preventDefault(), p.deleteBackward(f, {
|
|
14378
14377
|
unit: "block"
|
|
@@ -14381,56 +14380,56 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14381
14380
|
}
|
|
14382
14381
|
}
|
|
14383
14382
|
} else {
|
|
14384
|
-
if (Te.isBold(
|
|
14383
|
+
if (Te.isBold($) || Te.isItalic($) || Te.isTransposeCharacter($)) {
|
|
14385
14384
|
x.preventDefault();
|
|
14386
14385
|
return;
|
|
14387
14386
|
}
|
|
14388
|
-
if (Te.isSoftBreak(
|
|
14387
|
+
if (Te.isSoftBreak($)) {
|
|
14389
14388
|
x.preventDefault(), p.insertSoftBreak(f);
|
|
14390
14389
|
return;
|
|
14391
14390
|
}
|
|
14392
|
-
if (Te.isSplitBlock(
|
|
14391
|
+
if (Te.isSplitBlock($)) {
|
|
14393
14392
|
x.preventDefault(), p.insertBreak(f);
|
|
14394
14393
|
return;
|
|
14395
14394
|
}
|
|
14396
|
-
if (Te.isDeleteBackward(
|
|
14397
|
-
x.preventDefault(),
|
|
14395
|
+
if (Te.isDeleteBackward($)) {
|
|
14396
|
+
x.preventDefault(), q && _.isExpanded(q) ? p.deleteFragment(f, {
|
|
14398
14397
|
direction: "backward"
|
|
14399
14398
|
}) : p.deleteBackward(f);
|
|
14400
14399
|
return;
|
|
14401
14400
|
}
|
|
14402
|
-
if (Te.isDeleteForward(
|
|
14403
|
-
x.preventDefault(),
|
|
14401
|
+
if (Te.isDeleteForward($)) {
|
|
14402
|
+
x.preventDefault(), q && _.isExpanded(q) ? p.deleteFragment(f, {
|
|
14404
14403
|
direction: "forward"
|
|
14405
14404
|
}) : p.deleteForward(f);
|
|
14406
14405
|
return;
|
|
14407
14406
|
}
|
|
14408
|
-
if (Te.isDeleteLineBackward(
|
|
14409
|
-
x.preventDefault(),
|
|
14407
|
+
if (Te.isDeleteLineBackward($)) {
|
|
14408
|
+
x.preventDefault(), q && _.isExpanded(q) ? p.deleteFragment(f, {
|
|
14410
14409
|
direction: "backward"
|
|
14411
14410
|
}) : p.deleteBackward(f, {
|
|
14412
14411
|
unit: "line"
|
|
14413
14412
|
});
|
|
14414
14413
|
return;
|
|
14415
14414
|
}
|
|
14416
|
-
if (Te.isDeleteLineForward(
|
|
14417
|
-
x.preventDefault(),
|
|
14415
|
+
if (Te.isDeleteLineForward($)) {
|
|
14416
|
+
x.preventDefault(), q && _.isExpanded(q) ? p.deleteFragment(f, {
|
|
14418
14417
|
direction: "forward"
|
|
14419
14418
|
}) : p.deleteForward(f, {
|
|
14420
14419
|
unit: "line"
|
|
14421
14420
|
});
|
|
14422
14421
|
return;
|
|
14423
14422
|
}
|
|
14424
|
-
if (Te.isDeleteWordBackward(
|
|
14425
|
-
x.preventDefault(),
|
|
14423
|
+
if (Te.isDeleteWordBackward($)) {
|
|
14424
|
+
x.preventDefault(), q && _.isExpanded(q) ? p.deleteFragment(f, {
|
|
14426
14425
|
direction: "backward"
|
|
14427
14426
|
}) : p.deleteBackward(f, {
|
|
14428
14427
|
unit: "word"
|
|
14429
14428
|
});
|
|
14430
14429
|
return;
|
|
14431
14430
|
}
|
|
14432
|
-
if (Te.isDeleteWordForward(
|
|
14433
|
-
x.preventDefault(),
|
|
14431
|
+
if (Te.isDeleteWordForward($)) {
|
|
14432
|
+
x.preventDefault(), q && _.isExpanded(q) ? p.deleteFragment(f, {
|
|
14434
14433
|
direction: "forward"
|
|
14435
14434
|
}) : p.deleteForward(f, {
|
|
14436
14435
|
unit: "word"
|
|
@@ -14441,10 +14440,10 @@ var aD = (t) => /* @__PURE__ */ fe.createElement(fe.Fragment, null, Oc(t)), sD =
|
|
|
14441
14440
|
}
|
|
14442
14441
|
}, [o, f, v.onKeyDown]),
|
|
14443
14442
|
onPaste: Ee((x) => {
|
|
14444
|
-
!o &&
|
|
14443
|
+
!o && H.hasEditableTarget(f, x.target) && !Ye(x, v.onPaste) && (!Tt || t0(x.nativeEvent) || Yt) && (x.preventDefault(), H.insertData(f, x.clipboardData));
|
|
14445
14444
|
}, [o, f, v.onPaste])
|
|
14446
14445
|
}), /* @__PURE__ */ fe.createElement(aD, {
|
|
14447
|
-
decorations:
|
|
14446
|
+
decorations: z,
|
|
14448
14447
|
node: f,
|
|
14449
14448
|
renderElement: u,
|
|
14450
14449
|
renderPlaceholder: c,
|
|
@@ -14529,15 +14528,15 @@ var gD = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
|
|
|
14529
14528
|
editor: e
|
|
14530
14529
|
})), d(e);
|
|
14531
14530
|
}, [e, d, n, i, a]);
|
|
14532
|
-
|
|
14531
|
+
b(() => (Gi.set(e, h), () => {
|
|
14533
14532
|
Gi.set(e, () => {
|
|
14534
14533
|
});
|
|
14535
14534
|
}), [e, h]);
|
|
14536
|
-
var [m, g] = F(
|
|
14537
|
-
return
|
|
14538
|
-
g(
|
|
14535
|
+
var [m, g] = F(H.isFocused(e));
|
|
14536
|
+
return b(() => {
|
|
14537
|
+
g(H.isFocused(e));
|
|
14539
14538
|
}, [e]), Xr(() => {
|
|
14540
|
-
var v = () => g(
|
|
14539
|
+
var v = () => g(H.isFocused(e));
|
|
14541
14540
|
return cc >= 17 ? (document.addEventListener("focusin", v), document.addEventListener("focusout", v), () => {
|
|
14542
14541
|
document.removeEventListener("focusin", v), document.removeEventListener("focusout", v);
|
|
14543
14542
|
}) : (document.addEventListener("focus", v, !0), document.addEventListener("blur", v, !0), () => {
|
|
@@ -14556,7 +14555,7 @@ var gD = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
|
|
|
14556
14555
|
var r = (e.top + e.bottom) / 2;
|
|
14557
14556
|
return t.top <= r && t.bottom >= r;
|
|
14558
14557
|
}, Nu = (t, e, r) => {
|
|
14559
|
-
var n =
|
|
14558
|
+
var n = H.toDOMRange(t, e).getBoundingClientRect(), i = H.toDOMRange(t, r).getBoundingClientRect();
|
|
14560
14559
|
return Tu(n, i) && Tu(i, n);
|
|
14561
14560
|
}, vD = (t, e) => {
|
|
14562
14561
|
var r = p.range(t, _.end(e)), n = Array.from(p.positions(t, {
|
|
@@ -14661,9 +14660,9 @@ var mD = function(e) {
|
|
|
14661
14660
|
case "move_node": {
|
|
14662
14661
|
var w = L.common(L.parent(l.path), L.parent(l.newPath));
|
|
14663
14662
|
c.push(...hr(n, w));
|
|
14664
|
-
var
|
|
14665
|
-
L.isBefore(l.path, l.newPath) ? (c.push(...hr(n, L.parent(l.path))),
|
|
14666
|
-
var B = te.get(e, L.parent(
|
|
14663
|
+
var E;
|
|
14664
|
+
L.isBefore(l.path, l.newPath) ? (c.push(...hr(n, L.parent(l.path))), E = l.newPath) : (c.push(...hr(n, L.parent(l.newPath))), E = l.path);
|
|
14665
|
+
var B = te.get(e, L.parent(E)), A = H.findKey(n, B), O = p.pathRef(n, L.parent(E));
|
|
14667
14666
|
d.push([O, A]);
|
|
14668
14667
|
break;
|
|
14669
14668
|
}
|
|
@@ -14676,8 +14675,8 @@ var mD = function(e) {
|
|
|
14676
14675
|
case "split_node":
|
|
14677
14676
|
Dr.set(n, !0);
|
|
14678
14677
|
}
|
|
14679
|
-
for (var [
|
|
14680
|
-
var [S] = p.node(n,
|
|
14678
|
+
for (var [j, P] of c) {
|
|
14679
|
+
var [S] = p.node(n, j);
|
|
14681
14680
|
qn.set(S, P);
|
|
14682
14681
|
}
|
|
14683
14682
|
for (var [M, k] of d) {
|
|
@@ -14698,12 +14697,12 @@ var mD = function(e) {
|
|
|
14698
14697
|
at: h.path
|
|
14699
14698
|
});
|
|
14700
14699
|
if (!(_.isCollapsed(c) && !m)) {
|
|
14701
|
-
var v =
|
|
14700
|
+
var v = H.toDOMRange(n, c), f = v.cloneContents(), y = f.childNodes[0];
|
|
14702
14701
|
if (f.childNodes.forEach((S) => {
|
|
14703
14702
|
S.textContent && S.textContent.trim() !== "" && (y = S);
|
|
14704
14703
|
}), g) {
|
|
14705
|
-
var [D] = g, w = v.cloneRange(),
|
|
14706
|
-
w.setEndAfter(
|
|
14704
|
+
var [D] = g, w = v.cloneRange(), E = H.toDOMNode(n, D);
|
|
14705
|
+
w.setEndAfter(E), f = w.cloneContents();
|
|
14707
14706
|
}
|
|
14708
14707
|
if (m && (y = f.querySelector("[data-slate-spacer]")), Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach((S) => {
|
|
14709
14708
|
var M = S.getAttribute("data-slate-zero-width") === "n";
|
|
@@ -14713,8 +14712,8 @@ var mD = function(e) {
|
|
|
14713
14712
|
var B = y.ownerDocument.createElement("span");
|
|
14714
14713
|
B.style.whiteSpace = "pre", B.appendChild(y), f.appendChild(B), y = B;
|
|
14715
14714
|
}
|
|
14716
|
-
var A = n.getFragment(), O = JSON.stringify(A),
|
|
14717
|
-
y.setAttribute("data-slate-fragment",
|
|
14715
|
+
var A = n.getFragment(), O = JSON.stringify(A), j = window.btoa(encodeURIComponent(O));
|
|
14716
|
+
y.setAttribute("data-slate-fragment", j), l.setData("application/".concat(r), j);
|
|
14718
14717
|
var P = f.ownerDocument.createElement("div");
|
|
14719
14718
|
return P.appendChild(f), P.setAttribute("hidden", "true"), f.ownerDocument.body.appendChild(P), l.setData("text/html", P.innerHTML), l.setData("text/plain", Dc(P)), f.ownerDocument.body.removeChild(P), l;
|
|
14720
14719
|
}
|
|
@@ -14751,7 +14750,7 @@ var mD = function(e) {
|
|
|
14751
14750
|
for (var [n, i] of p.levels(t, {
|
|
14752
14751
|
at: e
|
|
14753
14752
|
})) {
|
|
14754
|
-
var a =
|
|
14753
|
+
var a = H.findKey(t, n);
|
|
14755
14754
|
r.push([i, a]);
|
|
14756
14755
|
}
|
|
14757
14756
|
return r;
|
|
@@ -15035,24 +15034,24 @@ function lE(t) {
|
|
|
15035
15034
|
} = t, g = Pt(() => um(mD(sm())), []), { fieldErrors: v } = lt();
|
|
15036
15035
|
function f() {
|
|
15037
15036
|
try {
|
|
15038
|
-
const
|
|
15039
|
-
return !Array.isArray(
|
|
15037
|
+
const G = JSON.parse(i);
|
|
15038
|
+
return !Array.isArray(G) || G.length <= 0 ? yn : G.every(
|
|
15040
15039
|
(re) => typeof re == "object" && re !== null && "type" in re && "children" in re
|
|
15041
|
-
) ?
|
|
15040
|
+
) ? G : yn;
|
|
15042
15041
|
} catch {
|
|
15043
15042
|
return yn;
|
|
15044
15043
|
}
|
|
15045
15044
|
}
|
|
15046
|
-
const y = _u(f()), [D, w] = F(y.length), [
|
|
15045
|
+
const y = _u(f()), [D, w] = F(y.length), [E, B] = F(
|
|
15047
15046
|
JSON.stringify(f()) || "[]"
|
|
15048
|
-
), [A, O] = F(!1),
|
|
15049
|
-
function I(
|
|
15050
|
-
const ee = _u(
|
|
15051
|
-
w(ee.length), s && s(ee.length), !(a && ee.length >= u) && (B(JSON.stringify(
|
|
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
|
+
function I(G) {
|
|
15049
|
+
const ee = _u(G);
|
|
15050
|
+
w(ee.length), s && s(ee.length), !(a && ee.length >= u) && (B(JSON.stringify(G)), l && l(G), g.children = G, Z.setNodes(g, { children: G }));
|
|
15052
15051
|
}
|
|
15053
|
-
const N = A ? "focusTrue" : "focusFalse",
|
|
15054
|
-
function
|
|
15055
|
-
return !(r != null && r.includes(
|
|
15052
|
+
const N = A ? "focusTrue" : "focusFalse", z = `arkynRichText ${M || u < D ? "errorTrue" : "errorFalse"} ${N}`, Q = u - D;
|
|
15053
|
+
function V(G) {
|
|
15054
|
+
return !(r != null && r.includes(G));
|
|
15056
15055
|
}
|
|
15057
15056
|
return /* @__PURE__ */ ne(st, { children: [
|
|
15058
15057
|
d && /* @__PURE__ */ C(
|
|
@@ -15070,20 +15069,20 @@ function lE(t) {
|
|
|
15070
15069
|
onChange: I,
|
|
15071
15070
|
onValueChange: I,
|
|
15072
15071
|
children: [
|
|
15073
|
-
/* @__PURE__ */ ne("div", { className:
|
|
15072
|
+
/* @__PURE__ */ ne("div", { className: z, children: [
|
|
15074
15073
|
/* @__PURE__ */ ne(AD, { children: [
|
|
15075
|
-
|
|
15076
|
-
|
|
15077
|
-
|
|
15078
|
-
|
|
15079
|
-
|
|
15080
|
-
|
|
15081
|
-
|
|
15082
|
-
|
|
15083
|
-
|
|
15084
|
-
|
|
15085
|
-
|
|
15086
|
-
n &&
|
|
15074
|
+
V("headingOne") && /* @__PURE__ */ C(Kt, { format: "headingOne", icon: Nf }),
|
|
15075
|
+
V("headingTwo") && /* @__PURE__ */ C(Kt, { format: "headingTwo", icon: If }),
|
|
15076
|
+
V("blockQuote") && /* @__PURE__ */ C(Kt, { format: "blockQuote", icon: Rf }),
|
|
15077
|
+
V("bold") && /* @__PURE__ */ C(bn, { format: "bold", icon: jf }),
|
|
15078
|
+
V("italic") && /* @__PURE__ */ C(bn, { format: "italic", icon: $f }),
|
|
15079
|
+
V("underline") && /* @__PURE__ */ C(bn, { format: "underline", icon: zf }),
|
|
15080
|
+
V("code") && /* @__PURE__ */ C(bn, { format: "code", icon: _f }),
|
|
15081
|
+
V("left") && /* @__PURE__ */ C(Kt, { format: "left", icon: Uf }),
|
|
15082
|
+
V("right") && /* @__PURE__ */ C(Kt, { format: "right", icon: Wf }),
|
|
15083
|
+
V("center") && /* @__PURE__ */ C(Kt, { format: "center", icon: Hf }),
|
|
15084
|
+
V("justify") && /* @__PURE__ */ C(Kt, { format: "justify", icon: Vf }),
|
|
15085
|
+
n && V("image") && /* @__PURE__ */ C(wD, { ...n })
|
|
15087
15086
|
] }),
|
|
15088
15087
|
/* @__PURE__ */ C(
|
|
15089
15088
|
sD,
|
|
@@ -15092,14 +15091,14 @@ function lE(t) {
|
|
|
15092
15091
|
renderElement: R,
|
|
15093
15092
|
renderLeaf: k,
|
|
15094
15093
|
spellCheck: !0,
|
|
15095
|
-
ref:
|
|
15094
|
+
ref: j,
|
|
15096
15095
|
id: P,
|
|
15097
15096
|
onFocus: () => O(!0),
|
|
15098
15097
|
onBlur: () => O(!1),
|
|
15099
|
-
onKeyDown: (
|
|
15098
|
+
onKeyDown: (G) => {
|
|
15100
15099
|
for (const ee in ju)
|
|
15101
|
-
if (Fg(ee,
|
|
15102
|
-
|
|
15100
|
+
if (Fg(ee, G)) {
|
|
15101
|
+
G.preventDefault();
|
|
15103
15102
|
const re = ju[ee];
|
|
15104
15103
|
kc(g, re);
|
|
15105
15104
|
}
|
|
@@ -15113,7 +15112,7 @@ function lE(t) {
|
|
|
15113
15112
|
{
|
|
15114
15113
|
type: "hidden",
|
|
15115
15114
|
name: e,
|
|
15116
|
-
value:
|
|
15115
|
+
value: E.slice(0, u)
|
|
15117
15116
|
}
|
|
15118
15117
|
),
|
|
15119
15118
|
/* @__PURE__ */ C("input", { type: "hidden", name: `${e}Count`, value: D })
|
|
@@ -15133,21 +15132,21 @@ function cE(t) {
|
|
|
15133
15132
|
var g, v, f, y;
|
|
15134
15133
|
const c = a.getPlaces()[0], d = c == null ? void 0 : c.address_components;
|
|
15135
15134
|
function h(D) {
|
|
15136
|
-
const w = d.find((
|
|
15135
|
+
const w = d.find((E) => E.types[0] === D);
|
|
15137
15136
|
return w ? w.long_name : "";
|
|
15138
15137
|
}
|
|
15139
15138
|
function m(D) {
|
|
15140
|
-
const w = d.find((
|
|
15139
|
+
const w = d.find((E) => E.types[0] === D);
|
|
15141
15140
|
return w ? w.short_name : "";
|
|
15142
15141
|
}
|
|
15143
15142
|
if (c) {
|
|
15144
|
-
const D = h("route"), w = h("street_number"),
|
|
15143
|
+
const D = h("route"), w = h("street_number"), E = h("sublocality_level_1"), B = h("administrative_area_level_2"), A = h("administrative_area_level_1"), O = m("administrative_area_level_1"), j = h("postal_code"), P = (v = (g = c.geometry) == null ? void 0 : g.location) == null ? void 0 : v.lat(), S = (y = (f = c.geometry) == null ? void 0 : f.location) == null ? void 0 : y.lng();
|
|
15145
15144
|
r && r({
|
|
15146
15145
|
street: D,
|
|
15147
15146
|
city: B,
|
|
15148
15147
|
state: A,
|
|
15149
|
-
district:
|
|
15150
|
-
cep:
|
|
15148
|
+
district: E,
|
|
15149
|
+
cep: j,
|
|
15151
15150
|
streetNumber: w,
|
|
15152
15151
|
stateShortName: O,
|
|
15153
15152
|
coordinates: { lat: P, lng: S }
|
|
@@ -15214,7 +15213,7 @@ function FD(t) {
|
|
|
15214
15213
|
}
|
|
15215
15214
|
function PD(t) {
|
|
15216
15215
|
const { children: e, isFocused: r, isSearchable: n, search: i, onSearch: a } = t, s = me(null), [o, u] = F("bottom");
|
|
15217
|
-
wr(r),
|
|
15216
|
+
wr(r), b(() => {
|
|
15218
15217
|
if (!r) return;
|
|
15219
15218
|
(() => {
|
|
15220
15219
|
if (!s.current) return;
|
|
@@ -15278,13 +15277,13 @@ function fE(t) {
|
|
|
15278
15277
|
onChange: y,
|
|
15279
15278
|
onBlur: D,
|
|
15280
15279
|
notFoundText: w = "Sem opções disponíveis",
|
|
15281
|
-
onFocus:
|
|
15280
|
+
onFocus: E,
|
|
15282
15281
|
disabled: B = !1,
|
|
15283
15282
|
prefix: A,
|
|
15284
15283
|
size: O = "md",
|
|
15285
|
-
value:
|
|
15284
|
+
value: j,
|
|
15286
15285
|
variant: P = "solid"
|
|
15287
|
-
} = t, { fieldErrors: S } = lt(), M = me(null), k = d || mt(), R = o || (S == null ? void 0 : S[e]), I = !!R, N = B || u || l,
|
|
15286
|
+
} = t, { fieldErrors: S } = lt(), M = me(null), k = d || mt(), R = o || (S == null ? void 0 : S[e]), I = !!R, N = B || u || l, z = { md: 20, lg: 20 }[O], [Q, V] = F(""), [G, ee] = F(!1), [re, X] = F(s), oe = j || re;
|
|
15288
15287
|
function T(ie) {
|
|
15289
15288
|
return oe === ie;
|
|
15290
15289
|
}
|
|
@@ -15293,19 +15292,19 @@ function fE(t) {
|
|
|
15293
15292
|
return (ue == null ? void 0 : ue.label) || "";
|
|
15294
15293
|
}
|
|
15295
15294
|
function U() {
|
|
15296
|
-
N || !(M != null && M.current) ||
|
|
15295
|
+
N || !(M != null && M.current) || G || (ee(!0), M.current.focus(), E && E());
|
|
15297
15296
|
}
|
|
15298
|
-
function
|
|
15297
|
+
function $() {
|
|
15299
15298
|
ee(!1), D && M.current && M.current.blur();
|
|
15300
15299
|
}
|
|
15301
|
-
function
|
|
15302
|
-
|
|
15300
|
+
function q(ie) {
|
|
15301
|
+
V(ie), f && f(ie);
|
|
15303
15302
|
}
|
|
15304
15303
|
function J(ie) {
|
|
15305
|
-
T(ie) ? (X(""), y && y("")) : (X(ie), y && y(ie)), a &&
|
|
15304
|
+
T(ie) ? (X(""), y && y("")) : (X(ie), y && y(ie)), a && $();
|
|
15306
15305
|
}
|
|
15307
15306
|
const Y = r.filter((ie) => !!(t.onSearch || !t.isSearchable || ie.label.toLowerCase().includes(Q.toLowerCase())));
|
|
15308
|
-
return /* @__PURE__ */ ne(st, { children: [
|
|
15307
|
+
return /* @__PURE__ */ ne(st, { className: n, children: [
|
|
15309
15308
|
h && /* @__PURE__ */ C(at, { showAsterisk: g, children: h }),
|
|
15310
15309
|
/* @__PURE__ */ ne(
|
|
15311
15310
|
LD,
|
|
@@ -15313,12 +15312,11 @@ function fE(t) {
|
|
|
15313
15312
|
handleContainerFocus: U,
|
|
15314
15313
|
disabled: N,
|
|
15315
15314
|
isError: I,
|
|
15316
|
-
isFocused:
|
|
15315
|
+
isFocused: G,
|
|
15317
15316
|
isLoading: u,
|
|
15318
15317
|
readOnly: l,
|
|
15319
15318
|
size: O,
|
|
15320
15319
|
variant: P,
|
|
15321
|
-
className: n,
|
|
15322
15320
|
prefixExists: !!A,
|
|
15323
15321
|
id: k,
|
|
15324
15322
|
children: [
|
|
@@ -15331,8 +15329,8 @@ function fE(t) {
|
|
|
15331
15329
|
type: "hidden"
|
|
15332
15330
|
}
|
|
15333
15331
|
),
|
|
15334
|
-
/* @__PURE__ */ C(Se, { iconSize:
|
|
15335
|
-
v && /* @__PURE__ */ C(v, { size:
|
|
15332
|
+
/* @__PURE__ */ C(Se, { iconSize: z, icon: A, className: "prefix" }),
|
|
15333
|
+
v && /* @__PURE__ */ C(v, { size: z, strokeWidth: 2.5 }),
|
|
15336
15334
|
/* @__PURE__ */ ne(xD, { size: O, children: [
|
|
15337
15335
|
oe !== "" && /* @__PURE__ */ C("p", { className: "hasValue", children: x(oe) }),
|
|
15338
15336
|
oe === "" && /* @__PURE__ */ C("p", { children: i })
|
|
@@ -15340,10 +15338,10 @@ function fE(t) {
|
|
|
15340
15338
|
/* @__PURE__ */ ne(
|
|
15341
15339
|
PD,
|
|
15342
15340
|
{
|
|
15343
|
-
isFocused:
|
|
15341
|
+
isFocused: G,
|
|
15344
15342
|
isSearchable: c,
|
|
15345
15343
|
search: Q,
|
|
15346
|
-
onSearch:
|
|
15344
|
+
onSearch: q,
|
|
15347
15345
|
children: [
|
|
15348
15346
|
Y.map(({ label: ie, value: ue }) => /* @__PURE__ */ C(
|
|
15349
15347
|
FD,
|
|
@@ -15364,14 +15362,14 @@ function fE(t) {
|
|
|
15364
15362
|
OD,
|
|
15365
15363
|
{
|
|
15366
15364
|
disabled: N,
|
|
15367
|
-
isFocused:
|
|
15365
|
+
isFocused: G,
|
|
15368
15366
|
readOnly: l,
|
|
15369
|
-
iconSize:
|
|
15367
|
+
iconSize: z,
|
|
15370
15368
|
isLoading: u
|
|
15371
15369
|
}
|
|
15372
15370
|
),
|
|
15373
|
-
/* @__PURE__ */ C(MD, { iconSize:
|
|
15374
|
-
/* @__PURE__ */ C(SD, { handleBlur:
|
|
15371
|
+
/* @__PURE__ */ C(MD, { iconSize: z, isLoading: u }),
|
|
15372
|
+
/* @__PURE__ */ C(SD, { handleBlur: $, isFocused: G })
|
|
15375
15373
|
]
|
|
15376
15374
|
}
|
|
15377
15375
|
),
|
|
@@ -15396,7 +15394,7 @@ function dE(t) {
|
|
|
15396
15394
|
function D() {
|
|
15397
15395
|
f(!v), l && l(y ? s : a || "checked");
|
|
15398
15396
|
}
|
|
15399
|
-
const
|
|
15397
|
+
const E = `arkynSwitch ${y ? "checkedTrue" : "checkedFalse"} ${r} ${u}`;
|
|
15400
15398
|
return /* @__PURE__ */ ne(st, { orientation: d, children: [
|
|
15401
15399
|
e && /* @__PURE__ */ C(at, { onClick: D, children: e }),
|
|
15402
15400
|
/* @__PURE__ */ C(
|
|
@@ -15404,7 +15402,7 @@ function dE(t) {
|
|
|
15404
15402
|
{
|
|
15405
15403
|
type: "button",
|
|
15406
15404
|
onClick: D,
|
|
15407
|
-
className:
|
|
15405
|
+
className: E,
|
|
15408
15406
|
...h,
|
|
15409
15407
|
children: /* @__PURE__ */ C(
|
|
15410
15408
|
"input",
|
|
@@ -15472,17 +15470,17 @@ function CE(t) {
|
|
|
15472
15470
|
placeholder: f,
|
|
15473
15471
|
id: y,
|
|
15474
15472
|
...D
|
|
15475
|
-
} = t, { fieldErrors: w } = lt(), [
|
|
15473
|
+
} = t, { fieldErrors: w } = lt(), [E, 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"} ${E ? "focusedTrue" : "focusedFalse"}`;
|
|
15476
15474
|
function I() {
|
|
15477
15475
|
a || !(A != null && A.current) || (B(!0), A.current.focus());
|
|
15478
15476
|
}
|
|
15479
|
-
function N(
|
|
15480
|
-
B(!0), c && c(
|
|
15477
|
+
function N(z) {
|
|
15478
|
+
B(!0), c && c(z);
|
|
15481
15479
|
}
|
|
15482
|
-
function K(
|
|
15483
|
-
B(!1), d && d(
|
|
15480
|
+
function K(z) {
|
|
15481
|
+
B(!1), d && d(z);
|
|
15484
15482
|
}
|
|
15485
|
-
return /* @__PURE__ */ ne(st, { children: [
|
|
15483
|
+
return /* @__PURE__ */ ne(st, { className: n, children: [
|
|
15486
15484
|
o && /* @__PURE__ */ C(at, { htmlFor: O, showAsterisk: u, children: o }),
|
|
15487
15485
|
/* @__PURE__ */ C(
|
|
15488
15486
|
"section",
|
|
@@ -15509,7 +15507,7 @@ function CE(t) {
|
|
|
15509
15507
|
)
|
|
15510
15508
|
}
|
|
15511
15509
|
),
|
|
15512
|
-
|
|
15510
|
+
j && /* @__PURE__ */ C(ct, { children: j })
|
|
15513
15511
|
] });
|
|
15514
15512
|
}
|
|
15515
15513
|
const Tc = ze({});
|
|
@@ -15659,7 +15657,7 @@ var _D = (t) => typeof t == "function", Zn = (t, e) => _D(t) ? t(e) : t, UD = /*
|
|
|
15659
15657
|
zc(e, t);
|
|
15660
15658
|
}, VD = { blank: 4e3, error: 4e3, success: 2e3, loading: 1 / 0, custom: 4e3 }, GD = (t = {}, e = Ma) => {
|
|
15661
15659
|
let [r, n] = F(wt[e] || $c), i = me(wt[e]);
|
|
15662
|
-
|
|
15660
|
+
b(() => (i.current !== wt[e] && n(wt[e]), Mn.push([e, n]), () => {
|
|
15663
15661
|
let s = Mn.findIndex(([o]) => o === e);
|
|
15664
15662
|
s > -1 && Mn.splice(s, 1);
|
|
15665
15663
|
}), [e]);
|
|
@@ -15704,7 +15702,7 @@ var ZD = 1e3, KD = (t, e = "default") => {
|
|
|
15704
15702
|
}, h);
|
|
15705
15703
|
i.set(d, m);
|
|
15706
15704
|
}, []);
|
|
15707
|
-
|
|
15705
|
+
b(() => {
|
|
15708
15706
|
if (n) return;
|
|
15709
15707
|
let d = Date.now(), h = r.map((m) => {
|
|
15710
15708
|
if (m.duration === 1 / 0) return;
|
|
@@ -15726,10 +15724,10 @@ var ZD = 1e3, KD = (t, e = "default") => {
|
|
|
15726
15724
|
}, [s]), l = Ee(() => {
|
|
15727
15725
|
n && s({ type: 6, time: Date.now() });
|
|
15728
15726
|
}, [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,
|
|
15727
|
+
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, E) => E < y && w.visible).length;
|
|
15728
|
+
return f.filter((w) => w.visible).slice(...m ? [D + 1] : [0, D]).reduce((w, E) => w + (E.height || 0) + g, 0);
|
|
15731
15729
|
}, [r]);
|
|
15732
|
-
return
|
|
15730
|
+
return b(() => {
|
|
15733
15731
|
r.forEach((d) => {
|
|
15734
15732
|
if (d.dismissed) a(d.id, d.removeDelay);
|
|
15735
15733
|
else {
|
|
@@ -16010,7 +16008,7 @@ const wy = [
|
|
|
16010
16008
|
], By = ["Created", "Found", "Success", "Updated"];
|
|
16011
16009
|
function bE(t) {
|
|
16012
16010
|
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
|
-
|
|
16011
|
+
b(() => {
|
|
16014
16012
|
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
16013
|
}, [t]);
|
|
16016
16014
|
}
|