@arkyn/components 1.3.117 → 1.3.119
Sign up to get free protection for your applications and to get access to all the features.
package/dist/bundle.js
CHANGED
@@ -25,11 +25,11 @@ function yf() {
|
|
25
25
|
Xa = 1;
|
26
26
|
var t = Y, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
27
27
|
function o(s, u, l) {
|
28
|
-
var c, p = {}, d = null,
|
29
|
-
l !== void 0 && (d = "" + l), u.key !== void 0 && (d = "" + u.key), u.ref !== void 0 && (
|
28
|
+
var c, p = {}, d = null, v = null;
|
29
|
+
l !== void 0 && (d = "" + l), u.key !== void 0 && (d = "" + u.key), u.ref !== void 0 && (v = u.ref);
|
30
30
|
for (c in u) r.call(u, c) && !a.hasOwnProperty(c) && (p[c] = u[c]);
|
31
31
|
if (s && s.defaultProps) for (c in u = s.defaultProps, u) p[c] === void 0 && (p[c] = u[c]);
|
32
|
-
return { $$typeof: e, type: s, key: d, ref:
|
32
|
+
return { $$typeof: e, type: s, key: d, ref: v, props: p, _owner: i.current };
|
33
33
|
}
|
34
34
|
return Hn.Fragment = n, Hn.jsx = o, Hn.jsxs = o, Hn;
|
35
35
|
}
|
@@ -46,11 +46,11 @@ var Vn = {};
|
|
46
46
|
var Ja;
|
47
47
|
function Cf() {
|
48
48
|
return Ja || (Ja = 1, process.env.NODE_ENV !== "production" && function() {
|
49
|
-
var t = Y, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), d = Symbol.for("react.lazy"),
|
49
|
+
var t = Y, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), y = Symbol.iterator, h = "@@iterator";
|
50
50
|
function f(L) {
|
51
51
|
if (L === null || typeof L != "object")
|
52
52
|
return null;
|
53
|
-
var re = y && L[y] || L[
|
53
|
+
var re = y && L[y] || L[h];
|
54
54
|
return typeof re == "function" ? re : null;
|
55
55
|
}
|
56
56
|
var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
@@ -71,10 +71,10 @@ function Cf() {
|
|
71
71
|
$e.unshift("Warning: " + re), Function.prototype.apply.call(console[L], console, $e);
|
72
72
|
}
|
73
73
|
}
|
74
|
-
var S = !1, D = !1, E = !1, A = !1,
|
74
|
+
var S = !1, D = !1, E = !1, A = !1, M = !1, V;
|
75
75
|
V = Symbol.for("react.module.reference");
|
76
|
-
function
|
77
|
-
return !!(typeof L == "string" || typeof L == "function" || L === r || L === a ||
|
76
|
+
function F(L) {
|
77
|
+
return !!(typeof L == "string" || typeof L == "function" || L === r || L === a || M || L === i || L === l || L === c || A || L === v || S || D || E || typeof L == "object" && L !== null && (L.$$typeof === d || L.$$typeof === p || L.$$typeof === o || L.$$typeof === s || L.$$typeof === u || // This needs to include all possible module reference object
|
78
78
|
// types supported by any Flight configuration anywhere since
|
79
79
|
// we don't know which Flight build this will end up being used
|
80
80
|
// with.
|
@@ -87,10 +87,10 @@ function Cf() {
|
|
87
87
|
var je = re.displayName || re.name || "";
|
88
88
|
return je !== "" ? ue + "(" + je + ")" : ue;
|
89
89
|
}
|
90
|
-
function
|
90
|
+
function R(L) {
|
91
91
|
return L.displayName || "Context";
|
92
92
|
}
|
93
|
-
function
|
93
|
+
function N(L) {
|
94
94
|
if (L == null)
|
95
95
|
return null;
|
96
96
|
if (typeof L.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof L == "function")
|
@@ -115,19 +115,19 @@ function Cf() {
|
|
115
115
|
switch (L.$$typeof) {
|
116
116
|
case s:
|
117
117
|
var re = L;
|
118
|
-
return
|
118
|
+
return R(re) + ".Consumer";
|
119
119
|
case o:
|
120
120
|
var ue = L;
|
121
|
-
return
|
121
|
+
return R(ue._context) + ".Provider";
|
122
122
|
case u:
|
123
123
|
return z(L, L.render, "ForwardRef");
|
124
124
|
case p:
|
125
125
|
var be = L.displayName || null;
|
126
|
-
return be !== null ? be :
|
126
|
+
return be !== null ? be : N(L.type) || "Memo";
|
127
127
|
case d: {
|
128
128
|
var je = L, $e = je._payload, Pe = je._init;
|
129
129
|
try {
|
130
|
-
return
|
130
|
+
return N(Pe($e));
|
131
131
|
} catch {
|
132
132
|
return null;
|
133
133
|
}
|
@@ -135,13 +135,13 @@ function Cf() {
|
|
135
135
|
}
|
136
136
|
return null;
|
137
137
|
}
|
138
|
-
var
|
138
|
+
var T = Object.assign, j = 0, J, _, te, ae, k, I, Z;
|
139
139
|
function H() {
|
140
140
|
}
|
141
141
|
H.__reactDisabledLog = !0;
|
142
142
|
function ee() {
|
143
143
|
{
|
144
|
-
if (
|
144
|
+
if (j === 0) {
|
145
145
|
J = console.log, _ = console.info, te = console.warn, ae = console.error, k = console.group, I = console.groupCollapsed, Z = console.groupEnd;
|
146
146
|
var L = {
|
147
147
|
configurable: !0,
|
@@ -159,42 +159,42 @@ function Cf() {
|
|
159
159
|
groupEnd: L
|
160
160
|
});
|
161
161
|
}
|
162
|
-
|
162
|
+
j++;
|
163
163
|
}
|
164
164
|
}
|
165
165
|
function X() {
|
166
166
|
{
|
167
|
-
if (
|
167
|
+
if (j--, j === 0) {
|
168
168
|
var L = {
|
169
169
|
configurable: !0,
|
170
170
|
enumerable: !0,
|
171
171
|
writable: !0
|
172
172
|
};
|
173
173
|
Object.defineProperties(console, {
|
174
|
-
log:
|
174
|
+
log: T({}, L, {
|
175
175
|
value: J
|
176
176
|
}),
|
177
|
-
info:
|
177
|
+
info: T({}, L, {
|
178
178
|
value: _
|
179
179
|
}),
|
180
|
-
warn:
|
180
|
+
warn: T({}, L, {
|
181
181
|
value: te
|
182
182
|
}),
|
183
|
-
error:
|
183
|
+
error: T({}, L, {
|
184
184
|
value: ae
|
185
185
|
}),
|
186
|
-
group:
|
186
|
+
group: T({}, L, {
|
187
187
|
value: k
|
188
188
|
}),
|
189
|
-
groupCollapsed:
|
189
|
+
groupCollapsed: T({}, L, {
|
190
190
|
value: I
|
191
191
|
}),
|
192
|
-
groupEnd:
|
192
|
+
groupEnd: T({}, L, {
|
193
193
|
value: Z
|
194
194
|
})
|
195
195
|
});
|
196
196
|
}
|
197
|
-
|
197
|
+
j < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
198
198
|
}
|
199
199
|
}
|
200
200
|
var m = C.ReactCurrentDispatcher, U;
|
@@ -399,8 +399,8 @@ function Cf() {
|
|
399
399
|
}
|
400
400
|
function Bt(L, re) {
|
401
401
|
if (typeof L.ref == "string" && We.current && re && We.current.stateNode !== re) {
|
402
|
-
var ue =
|
403
|
-
ct[ue] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
402
|
+
var ue = N(We.current.type);
|
403
|
+
ct[ue] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', N(We.current.type), L.ref), ct[ue] = !0);
|
404
404
|
}
|
405
405
|
}
|
406
406
|
function jt(L, re) {
|
@@ -488,7 +488,7 @@ function Cf() {
|
|
488
488
|
function cn() {
|
489
489
|
{
|
490
490
|
if (Te.current) {
|
491
|
-
var L =
|
491
|
+
var L = N(Te.current.type);
|
492
492
|
if (L)
|
493
493
|
return `
|
494
494
|
|
@@ -531,7 +531,7 @@ Check the top-level render call using <` + ue + ">.");
|
|
531
531
|
return;
|
532
532
|
zn[ue] = !0;
|
533
533
|
var be = "";
|
534
|
-
L && L._owner && L._owner !== Te.current && (be = " It was passed a child from " +
|
534
|
+
L && L._owner && L._owner !== Te.current && (be = " It was passed a child from " + N(L._owner.type) + "."), ot(L), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ue, be), ot(null);
|
535
535
|
}
|
536
536
|
}
|
537
537
|
function _n(L, re) {
|
@@ -568,11 +568,11 @@ Check the top-level render call using <` + ue + ">.");
|
|
568
568
|
else
|
569
569
|
return;
|
570
570
|
if (ue) {
|
571
|
-
var be =
|
571
|
+
var be = N(re);
|
572
572
|
ge(ue, L.props, "prop", be, L);
|
573
573
|
} else if (re.PropTypes !== void 0 && !ft) {
|
574
574
|
ft = !0;
|
575
|
-
var je =
|
575
|
+
var je = N(re);
|
576
576
|
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", je || "Unknown");
|
577
577
|
}
|
578
578
|
typeof re.getDefaultProps == "function" && !re.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
@@ -593,14 +593,14 @@ Check the top-level render call using <` + ue + ">.");
|
|
593
593
|
var Wn = {};
|
594
594
|
function Un(L, re, ue, be, je, $e) {
|
595
595
|
{
|
596
|
-
var Pe =
|
596
|
+
var Pe = F(L);
|
597
597
|
if (!Pe) {
|
598
598
|
var Oe = "";
|
599
599
|
(L === void 0 || typeof L == "object" && L !== null && Object.keys(L).length === 0) && (Oe += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
600
600
|
var st = An(je);
|
601
601
|
st ? Oe += st : Oe += cn();
|
602
602
|
var Ke;
|
603
|
-
L === null ? Ke = "null" : le(L) ? Ke = "array" : L !== void 0 && L.$$typeof === e ? (Ke = "<" + (
|
603
|
+
L === null ? Ke = "null" : le(L) ? Ke = "array" : L !== void 0 && L.$$typeof === e ? (Ke = "<" + (N(L.type) || "Unknown") + " />", Oe = " Did you accidentally export a JSX literal instead of a component?") : Ke = typeof L, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ke, Oe);
|
604
604
|
}
|
605
605
|
var et = Ee(L, re, ue, je, $e);
|
606
606
|
if (et == null)
|
@@ -619,7 +619,7 @@ Check the top-level render call using <` + ue + ">.");
|
|
619
619
|
_n(vt, L);
|
620
620
|
}
|
621
621
|
if (ve.call(re, "key")) {
|
622
|
-
var Ut =
|
622
|
+
var Ut = N(L), ut = Object.keys(re).filter(function(Zc) {
|
623
623
|
return Zc !== "key";
|
624
624
|
}), xe = ut.length > 0 ? "{key: someKey, " + ut.join(": ..., ") + ": ...}" : "{key: someKey}";
|
625
625
|
if (!Wn[Ut + xe]) {
|
@@ -982,24 +982,24 @@ var Qa = {
|
|
982
982
|
}
|
983
983
|
};
|
984
984
|
function jf(t) {
|
985
|
-
var e = t.children, n = t.options, r = t.id, i = t.mapContainerStyle, a = t.mapContainerClassName, o = t.center, s = t.onClick, u = t.onDblClick, l = t.onDrag, c = t.onDragEnd, p = t.onDragStart, d = t.onMouseMove,
|
985
|
+
var e = t.children, n = t.options, r = t.id, i = t.mapContainerStyle, a = t.mapContainerClassName, o = t.center, s = t.onClick, u = t.onDblClick, l = t.onDrag, c = t.onDragEnd, p = t.onDragStart, d = t.onMouseMove, v = t.onMouseOut, y = t.onMouseOver, h = t.onMouseDown, f = t.onMouseUp, C = t.onRightClick, w = t.onCenterChanged, b = t.onLoad, S = t.onUnmount, D = $(null), E = D[0], A = D[1], M = qe(null), V = $(null), F = V[0], z = V[1], R = $(null), N = R[0], T = R[1], j = $(null), J = j[0], _ = j[1], te = $(null), ae = te[0], k = te[1], I = $(null), Z = I[0], H = I[1], ee = $(null), X = ee[0], m = ee[1], U = $(null), W = U[0], P = U[1], Q = $(null), ie = Q[0], G = Q[1], ce = $(null), se = ce[0], he = ce[1], ve = $(null), De = ve[0], Ce = ve[1], me = $(null), ge = me[0], Ie = me[1], le = $(null), Ne = le[0], pe = le[1];
|
986
986
|
return B(function() {
|
987
987
|
n && E !== null && E.setOptions(n);
|
988
988
|
}, [E, n]), B(function() {
|
989
989
|
E !== null && typeof o < "u" && E.setCenter(o);
|
990
990
|
}, [E, o]), B(function() {
|
991
|
-
E && u && (
|
991
|
+
E && u && (N !== null && google.maps.event.removeListener(N), T(google.maps.event.addListener(E, "dblclick", u)));
|
992
992
|
}, [u]), B(function() {
|
993
993
|
E && c && (J !== null && google.maps.event.removeListener(J), _(google.maps.event.addListener(E, "dragend", c)));
|
994
994
|
}, [c]), B(function() {
|
995
995
|
E && p && (ae !== null && google.maps.event.removeListener(ae), k(google.maps.event.addListener(E, "dragstart", p)));
|
996
996
|
}, [p]), B(function() {
|
997
|
-
E &&
|
998
|
-
}, [
|
997
|
+
E && h && (Z !== null && google.maps.event.removeListener(Z), H(google.maps.event.addListener(E, "mousedown", h)));
|
998
|
+
}, [h]), B(function() {
|
999
999
|
E && d && (X !== null && google.maps.event.removeListener(X), m(google.maps.event.addListener(E, "mousemove", d)));
|
1000
1000
|
}, [d]), B(function() {
|
1001
|
-
E &&
|
1002
|
-
}, [
|
1001
|
+
E && v && (W !== null && google.maps.event.removeListener(W), P(google.maps.event.addListener(E, "mouseout", v)));
|
1002
|
+
}, [v]), B(function() {
|
1003
1003
|
E && y && (ie !== null && google.maps.event.removeListener(ie), G(google.maps.event.addListener(E, "mouseover", y)));
|
1004
1004
|
}, [y]), B(function() {
|
1005
1005
|
E && f && (se !== null && google.maps.event.removeListener(se), he(google.maps.event.addListener(E, "mouseup", f)));
|
@@ -1010,13 +1010,13 @@ function jf(t) {
|
|
1010
1010
|
}, [s]), B(function() {
|
1011
1011
|
E && l && (Ne !== null && google.maps.event.removeListener(Ne), pe(google.maps.event.addListener(E, "drag", l)));
|
1012
1012
|
}, [l]), B(function() {
|
1013
|
-
E && w && (
|
1013
|
+
E && w && (F !== null && google.maps.event.removeListener(F), z(google.maps.event.addListener(E, "center_changed", w)));
|
1014
1014
|
}, [s]), B(function() {
|
1015
|
-
var Be =
|
1015
|
+
var Be = M.current === null ? null : new google.maps.Map(M.current, n);
|
1016
1016
|
return A(Be), Be !== null && b && b(Be), function() {
|
1017
1017
|
Be !== null && S && S(Be);
|
1018
1018
|
};
|
1019
|
-
}, []), x.jsx("div", { id: r, ref:
|
1019
|
+
}, []), x.jsx("div", { id: r, ref: M, style: i, className: a, children: x.jsx(Ae.Provider, { value: E, children: E !== null ? e : null }) });
|
1020
1020
|
}
|
1021
1021
|
lt(jf);
|
1022
1022
|
var If = (
|
@@ -1078,8 +1078,8 @@ function ll(t) {
|
|
1078
1078
|
var c = u.initMap, p = s.onerror;
|
1079
1079
|
u.initMap = function() {
|
1080
1080
|
c && c(), a(n);
|
1081
|
-
}, s.onerror = function(
|
1082
|
-
p && p(
|
1081
|
+
}, s.onerror = function(v) {
|
1082
|
+
p && p(v), o(v);
|
1083
1083
|
};
|
1084
1084
|
return;
|
1085
1085
|
} else
|
@@ -1243,10 +1243,10 @@ var qi = {
|
|
1243
1243
|
}(Ge)
|
1244
1244
|
), no;
|
1245
1245
|
function $f(t) {
|
1246
|
-
var e = t.id, n = e === void 0 ? qi.id : e, r = t.version, i = r === void 0 ? qi.version : r, a = t.nonce, o = t.googleMapsApiKey, s = t.googleMapsClientId, u = t.language, l = t.region, c = t.libraries, p = t.preventGoogleFontsLoading, d = t.channel,
|
1246
|
+
var e = t.id, n = e === void 0 ? qi.id : e, r = t.version, i = r === void 0 ? qi.version : r, a = t.nonce, o = t.googleMapsApiKey, s = t.googleMapsClientId, u = t.language, l = t.region, c = t.libraries, p = t.preventGoogleFontsLoading, d = t.channel, v = t.mapIds, y = t.authReferrerPolicy, h = qe(!1), f = $(!1), C = f[0], w = f[1], b = $(void 0), S = b[0], D = b[1];
|
1247
1247
|
B(function() {
|
1248
|
-
return
|
1249
|
-
|
1248
|
+
return h.current = !0, function() {
|
1249
|
+
h.current = !1;
|
1250
1250
|
};
|
1251
1251
|
}, []), B(function() {
|
1252
1252
|
mn && p && cl();
|
@@ -1261,21 +1261,21 @@ function $f(t) {
|
|
1261
1261
|
region: l,
|
1262
1262
|
libraries: c,
|
1263
1263
|
channel: d,
|
1264
|
-
mapIds:
|
1264
|
+
mapIds: v,
|
1265
1265
|
authReferrerPolicy: y
|
1266
1266
|
});
|
1267
1267
|
B(function() {
|
1268
1268
|
if (!mn)
|
1269
1269
|
return;
|
1270
1270
|
function V() {
|
1271
|
-
|
1271
|
+
h.current && (w(!0), no = E);
|
1272
1272
|
}
|
1273
1273
|
if (window.google && window.google.maps && no === E) {
|
1274
1274
|
V();
|
1275
1275
|
return;
|
1276
1276
|
}
|
1277
1277
|
ll({ id: n, url: E, nonce: a }).then(V).catch(function(z) {
|
1278
|
-
|
1278
|
+
h.current && D(z), console.warn(`
|
1279
1279
|
There has been an Error with loading Google Maps API script, please check that you provided correct google API key (`.concat(o || "-", ") or Client ID (").concat(s || "-", `)
|
1280
1280
|
Otherwise it is a Network issue.
|
1281
1281
|
`)), console.error(z);
|
@@ -1446,30 +1446,30 @@ var oo = {
|
|
1446
1446
|
}
|
1447
1447
|
};
|
1448
1448
|
function Vf(t) {
|
1449
|
-
var e = t.options, n = t.drawingMode, r = t.onCircleComplete, i = t.onMarkerComplete, a = t.onOverlayComplete, o = t.onPolygonComplete, s = t.onPolylineComplete, u = t.onRectangleComplete, l = t.onLoad, c = t.onUnmount, p = _e(Ae), d = $(null),
|
1449
|
+
var e = t.options, n = t.drawingMode, r = t.onCircleComplete, i = t.onMarkerComplete, a = t.onOverlayComplete, o = t.onPolygonComplete, s = t.onPolylineComplete, u = t.onRectangleComplete, l = t.onLoad, c = t.onUnmount, p = _e(Ae), d = $(null), v = d[0], y = d[1], h = $(null), f = h[0], C = h[1], w = $(null), b = w[0], S = w[1], D = $(null), E = D[0], A = D[1], M = $(null), V = M[0], F = M[1], z = $(null), R = z[0], N = z[1], T = $(null), j = T[0], J = T[1];
|
1450
1450
|
return B(function() {
|
1451
|
-
|
1451
|
+
v !== null && v.setMap(p);
|
1452
1452
|
}, [p]), B(function() {
|
1453
|
-
e &&
|
1454
|
-
}, [
|
1455
|
-
|
1456
|
-
}, [
|
1457
|
-
|
1458
|
-
}, [
|
1459
|
-
|
1460
|
-
}, [
|
1461
|
-
|
1462
|
-
}, [
|
1463
|
-
|
1464
|
-
}, [
|
1465
|
-
|
1466
|
-
}, [
|
1467
|
-
|
1468
|
-
}, [
|
1453
|
+
e && v !== null && v.setOptions(e);
|
1454
|
+
}, [v, e]), B(function() {
|
1455
|
+
v !== null && v.setDrawingMode(n ?? null);
|
1456
|
+
}, [v, n]), B(function() {
|
1457
|
+
v && r && (f !== null && google.maps.event.removeListener(f), C(google.maps.event.addListener(v, "circlecomplete", r)));
|
1458
|
+
}, [v, r]), B(function() {
|
1459
|
+
v && i && (b !== null && google.maps.event.removeListener(b), S(google.maps.event.addListener(v, "markercomplete", i)));
|
1460
|
+
}, [v, i]), B(function() {
|
1461
|
+
v && a && (E !== null && google.maps.event.removeListener(E), A(google.maps.event.addListener(v, "overlaycomplete", a)));
|
1462
|
+
}, [v, a]), B(function() {
|
1463
|
+
v && o && (V !== null && google.maps.event.removeListener(V), F(google.maps.event.addListener(v, "polygoncomplete", o)));
|
1464
|
+
}, [v, o]), B(function() {
|
1465
|
+
v && s && (R !== null && google.maps.event.removeListener(R), N(google.maps.event.addListener(v, "polylinecomplete", s)));
|
1466
|
+
}, [v, s]), B(function() {
|
1467
|
+
v && u && (j !== null && google.maps.event.removeListener(j), J(google.maps.event.addListener(v, "rectanglecomplete", u)));
|
1468
|
+
}, [v, u]), B(function() {
|
1469
1469
|
at(!!google.maps.drawing, "Did you include prop libraries={['drawing']} in the URL? %s", google.maps.drawing);
|
1470
1470
|
var _ = new google.maps.drawing.DrawingManager(ye(ye({}, e || {}), { map: p }));
|
1471
|
-
return n && _.setDrawingMode(n), r && C(google.maps.event.addListener(_, "circlecomplete", r)), i && S(google.maps.event.addListener(_, "markercomplete", i)), a && A(google.maps.event.addListener(_, "overlaycomplete", a)), o &&
|
1472
|
-
|
1471
|
+
return n && _.setDrawingMode(n), r && C(google.maps.event.addListener(_, "circlecomplete", r)), i && S(google.maps.event.addListener(_, "markercomplete", i)), a && A(google.maps.event.addListener(_, "overlaycomplete", a)), o && F(google.maps.event.addListener(_, "polygoncomplete", o)), s && N(google.maps.event.addListener(_, "polylinecomplete", s)), u && J(google.maps.event.addListener(_, "rectanglecomplete", u)), y(_), l && l(_), function() {
|
1472
|
+
v !== null && (f && google.maps.event.removeListener(f), b && google.maps.event.removeListener(b), E && google.maps.event.removeListener(E), V && google.maps.event.removeListener(V), R && google.maps.event.removeListener(R), j && google.maps.event.removeListener(j), c && c(v), v.setMap(null));
|
1473
1473
|
};
|
1474
1474
|
}, []), null;
|
1475
1475
|
}
|
@@ -1578,7 +1578,7 @@ var uo = {
|
|
1578
1578
|
}
|
1579
1579
|
}, Zr = {};
|
1580
1580
|
function qf(t) {
|
1581
|
-
var e = t.position, n = t.options, r = t.clusterer, i = t.noClustererRedraw, a = t.children, o = t.draggable, s = t.visible, u = t.animation, l = t.clickable, c = t.cursor, p = t.icon, d = t.label,
|
1581
|
+
var e = t.position, n = t.options, r = t.clusterer, i = t.noClustererRedraw, a = t.children, o = t.draggable, s = t.visible, u = t.animation, l = t.clickable, c = t.cursor, p = t.icon, d = t.label, v = t.opacity, y = t.shape, h = t.title, f = t.zIndex, C = t.onClick, w = t.onDblClick, b = t.onDrag, S = t.onDragEnd, D = t.onDragStart, E = t.onMouseOut, A = t.onMouseOver, M = t.onMouseUp, V = t.onMouseDown, F = t.onRightClick, z = t.onClickableChanged, R = t.onCursorChanged, N = t.onAnimationChanged, T = t.onDraggableChanged, j = t.onFlatChanged, J = t.onIconChanged, _ = t.onPositionChanged, te = t.onShapeChanged, ae = t.onTitleChanged, k = t.onVisibleChanged, I = t.onZindexChanged, Z = t.onLoad, H = t.onUnmount, ee = _e(Ae), X = $(null), m = X[0], U = X[1], W = $(null), P = W[0], Q = W[1], ie = $(null), G = ie[0], ce = ie[1], se = $(null), he = se[0], ve = se[1], De = $(null), Ce = De[0], me = De[1], ge = $(null), Ie = ge[0], le = ge[1], Ne = $(null), pe = Ne[0], Be = Ne[1], Me = $(null), We = Me[0], Ye = Me[1], we = $(null), dt = we[0], ct = we[1], kt = $(null), mt = kt[0], Bt = kt[1], jt = $(null), yt = jt[0], Yt = jt[1], Ee = $(null), Te = Ee[0], Re = Ee[1], ot = $(null), ft = ot[0], Tt = ot[1], cn = $(null), An = cn[0], zn = cn[1], yr = $(null), fn = yr[0], _n = yr[1], Cr = $(null), On = Cr[0], Wn = Cr[1], Un = $(null), Sn = Un[0], Dr = Un[1], br = $(null), Fn = br[0], L = br[1], re = $(null), ue = re[0], be = re[1], je = $(null), $e = je[0], Pe = je[1], Oe = $(null), st = Oe[0], Ke = Oe[1], et = $(null), vt = et[0], Wt = et[1];
|
1582
1582
|
B(function() {
|
1583
1583
|
m !== null && m.setMap(ee);
|
1584
1584
|
}, [ee]), B(function() {
|
@@ -1600,12 +1600,12 @@ function qf(t) {
|
|
1600
1600
|
}, [m, p]), B(function() {
|
1601
1601
|
m && d !== void 0 && m.setLabel(d);
|
1602
1602
|
}, [m, d]), B(function() {
|
1603
|
-
m &&
|
1604
|
-
}, [m,
|
1603
|
+
m && v !== void 0 && m.setOpacity(v);
|
1604
|
+
}, [m, v]), B(function() {
|
1605
1605
|
m && y !== void 0 && m.setShape(y);
|
1606
1606
|
}, [m, y]), B(function() {
|
1607
|
-
m &&
|
1608
|
-
}, [m,
|
1607
|
+
m && h !== void 0 && m.setTitle(h);
|
1608
|
+
}, [m, h]), B(function() {
|
1609
1609
|
m && f !== void 0 && m.setZIndex(f);
|
1610
1610
|
}, [m, f]), B(function() {
|
1611
1611
|
m && w && (P !== null && google.maps.event.removeListener(P), Q(google.maps.event.addListener(m, "dblclick", w)));
|
@@ -1620,24 +1620,24 @@ function qf(t) {
|
|
1620
1620
|
}, [E]), B(function() {
|
1621
1621
|
m && A && (pe !== null && google.maps.event.removeListener(pe), Be(google.maps.event.addListener(m, "mouseover", A)));
|
1622
1622
|
}, [A]), B(function() {
|
1623
|
-
m &&
|
1624
|
-
}, [F]), B(function() {
|
1625
|
-
m && M && (dt !== null && google.maps.event.removeListener(dt), ct(google.maps.event.addListener(m, "rightclick", M)));
|
1623
|
+
m && M && (We !== null && google.maps.event.removeListener(We), Ye(google.maps.event.addListener(m, "mouseup", M)));
|
1626
1624
|
}, [M]), B(function() {
|
1625
|
+
m && F && (dt !== null && google.maps.event.removeListener(dt), ct(google.maps.event.addListener(m, "rightclick", F)));
|
1626
|
+
}, [F]), B(function() {
|
1627
1627
|
m && C && (mt !== null && google.maps.event.removeListener(mt), Bt(google.maps.event.addListener(m, "click", C)));
|
1628
1628
|
}, [C]), B(function() {
|
1629
1629
|
m && b && (yt !== null && google.maps.event.removeListener(yt), Yt(google.maps.event.addListener(m, "drag", b)));
|
1630
1630
|
}, [b]), B(function() {
|
1631
1631
|
m && z && (Te !== null && google.maps.event.removeListener(Te), Re(google.maps.event.addListener(m, "clickable_changed", z)));
|
1632
1632
|
}, [z]), B(function() {
|
1633
|
-
m &&
|
1634
|
-
}, [j]), B(function() {
|
1635
|
-
m && T && (An !== null && google.maps.event.removeListener(An), zn(google.maps.event.addListener(m, "animation_changed", T)));
|
1636
|
-
}, [T]), B(function() {
|
1637
|
-
m && R && (fn !== null && google.maps.event.removeListener(fn), _n(google.maps.event.addListener(m, "draggable_changed", R)));
|
1633
|
+
m && R && (ft !== null && google.maps.event.removeListener(ft), Tt(google.maps.event.addListener(m, "cursor_changed", R)));
|
1638
1634
|
}, [R]), B(function() {
|
1639
|
-
m && N && (
|
1635
|
+
m && N && (An !== null && google.maps.event.removeListener(An), zn(google.maps.event.addListener(m, "animation_changed", N)));
|
1640
1636
|
}, [N]), B(function() {
|
1637
|
+
m && T && (fn !== null && google.maps.event.removeListener(fn), _n(google.maps.event.addListener(m, "draggable_changed", T)));
|
1638
|
+
}, [T]), B(function() {
|
1639
|
+
m && j && (On !== null && google.maps.event.removeListener(On), Wn(google.maps.event.addListener(m, "flat_changed", j)));
|
1640
|
+
}, [j]), B(function() {
|
1641
1641
|
m && J && (Sn !== null && google.maps.event.removeListener(Sn), Dr(google.maps.event.addListener(m, "icon_changed", J)));
|
1642
1642
|
}, [J]), B(function() {
|
1643
1643
|
m && _ && (Fn !== null && google.maps.event.removeListener(Fn), L(google.maps.event.addListener(m, "position_changed", _)));
|
@@ -1651,7 +1651,7 @@ function qf(t) {
|
|
1651
1651
|
m && I && (vt !== null && google.maps.event.removeListener(vt), Wt(google.maps.event.addListener(m, "zindex_changed", I)));
|
1652
1652
|
}, [I]), B(function() {
|
1653
1653
|
var ut = ye(ye(ye({}, n || Zr), r ? Zr : { map: ee }), { position: e }), xe = new google.maps.Marker(ut);
|
1654
|
-
return r ? r.addMarker(xe, !!i) : xe.setMap(ee), e && xe.setPosition(e), typeof s < "u" && xe.setVisible(s), typeof o < "u" && xe.setDraggable(o), typeof l < "u" && xe.setClickable(l), typeof c == "string" && xe.setCursor(c), p && xe.setIcon(p), typeof d < "u" && xe.setLabel(d), typeof
|
1654
|
+
return r ? r.addMarker(xe, !!i) : xe.setMap(ee), e && xe.setPosition(e), typeof s < "u" && xe.setVisible(s), typeof o < "u" && xe.setDraggable(o), typeof l < "u" && xe.setClickable(l), typeof c == "string" && xe.setCursor(c), p && xe.setIcon(p), typeof d < "u" && xe.setLabel(d), typeof v < "u" && xe.setOpacity(v), y && xe.setShape(y), typeof h == "string" && xe.setTitle(h), typeof f == "number" && xe.setZIndex(f), w && Q(google.maps.event.addListener(xe, "dblclick", w)), S && ce(google.maps.event.addListener(xe, "dragend", S)), D && ve(google.maps.event.addListener(xe, "dragstart", D)), V && me(google.maps.event.addListener(xe, "mousedown", V)), E && le(google.maps.event.addListener(xe, "mouseout", E)), A && Be(google.maps.event.addListener(xe, "mouseover", A)), M && Ye(google.maps.event.addListener(xe, "mouseup", M)), F && ct(google.maps.event.addListener(xe, "rightclick", F)), C && Bt(google.maps.event.addListener(xe, "click", C)), b && Yt(google.maps.event.addListener(xe, "drag", b)), z && Re(google.maps.event.addListener(xe, "clickable_changed", z)), R && Tt(google.maps.event.addListener(xe, "cursor_changed", R)), N && zn(google.maps.event.addListener(xe, "animation_changed", N)), T && _n(google.maps.event.addListener(xe, "draggable_changed", T)), j && Wn(google.maps.event.addListener(xe, "flat_changed", j)), J && Dr(google.maps.event.addListener(xe, "icon_changed", J)), _ && L(google.maps.event.addListener(xe, "position_changed", _)), te && be(google.maps.event.addListener(xe, "shape_changed", te)), ae && Pe(google.maps.event.addListener(xe, "title_changed", ae)), k && Ke(google.maps.event.addListener(xe, "visible_changed", k)), I && Wt(google.maps.event.addListener(xe, "zindex_changed", I)), U(xe), Z && Z(xe), function() {
|
1655
1655
|
P !== null && google.maps.event.removeListener(P), G !== null && google.maps.event.removeListener(G), he !== null && google.maps.event.removeListener(he), Ce !== null && google.maps.event.removeListener(Ce), Ie !== null && google.maps.event.removeListener(Ie), pe !== null && google.maps.event.removeListener(pe), We !== null && google.maps.event.removeListener(We), dt !== null && google.maps.event.removeListener(dt), mt !== null && google.maps.event.removeListener(mt), Te !== null && google.maps.event.removeListener(Te), ft !== null && google.maps.event.removeListener(ft), An !== null && google.maps.event.removeListener(An), fn !== null && google.maps.event.removeListener(fn), On !== null && google.maps.event.removeListener(On), Sn !== null && google.maps.event.removeListener(Sn), Fn !== null && google.maps.event.removeListener(Fn), $e !== null && google.maps.event.removeListener($e), st !== null && google.maps.event.removeListener(st), vt !== null && google.maps.event.removeListener(vt), H && H(xe), r ? r.removeMarker(xe, !!i) : xe && xe.setMap(null);
|
1656
1656
|
};
|
1657
1657
|
}, []);
|
@@ -1754,8 +1754,8 @@ var Zf = (
|
|
1754
1754
|
this.div.className = this.className, this.div.setAttribute("style", "cursor: pointer; position: absolute; top: ".concat(p !== null ? "".concat(p.y, "px") : "0", "; left: ").concat(p !== null ? "".concat(p.x, "px") : "0", "; width: ").concat(this.width, "px; height: ").concat(this.height, "px; "));
|
1755
1755
|
var d = document.createElement("img");
|
1756
1756
|
d.alt = s, d.src = this.url, d.width = this.width, d.height = this.height, d.setAttribute("style", "position: absolute; top: ".concat(c, "px; left: ").concat(l, "px")), this.cluster.getClusterer().enableRetinaIcons || (d.style.clip = "rect(-".concat(c, "px, -").concat(l + this.width, "px, -").concat(c + this.height, ", -").concat(l, ")"));
|
1757
|
-
var
|
1758
|
-
|
1757
|
+
var v = document.createElement("div");
|
1758
|
+
v.setAttribute("style", "position: absolute; top: ".concat(this.anchorText[0], "px; left: ").concat(this.anchorText[1], "px; color: ").concat(this.textColor, "; font-size: ").concat(this.textSize, "px; font-family: ").concat(this.fontFamily, "; font-weight: ").concat(this.fontWeight, "; fontStyle: ").concat(this.fontStyle, "; text-decoration: ").concat(this.textDecoration, "; text-align: center; width: ").concat(this.width, "px; line-height: ").concat(this.height, "px")), !((r = this.sums) === null || r === void 0) && r.text && (v.innerText = "".concat((i = this.sums) === null || i === void 0 ? void 0 : i.text)), !((a = this.sums) === null || a === void 0) && a.html && (v.innerHTML = "".concat((o = this.sums) === null || o === void 0 ? void 0 : o.html)), this.div.innerHTML = "", this.div.appendChild(d), this.div.appendChild(v), this.div.title = s, this.div.style.display = "";
|
1759
1759
|
}
|
1760
1760
|
this.visible = !0;
|
1761
1761
|
}, t.prototype.useStyle = function(e) {
|
@@ -2122,8 +2122,8 @@ var Xf = 2e3, Jf = 500, Qf = "https://developers.google.com/maps/documentation/j
|
|
2122
2122
|
else {
|
2123
2123
|
this.timerRefStatic = null, google.maps.event.trigger(this, "clusteringend", this);
|
2124
2124
|
for (var p = 0, d = this.clusters; p < d.length; p++) {
|
2125
|
-
var
|
2126
|
-
|
2125
|
+
var v = d[p];
|
2126
|
+
v.updateIcon();
|
2127
2127
|
}
|
2128
2128
|
}
|
2129
2129
|
}
|
@@ -2191,55 +2191,55 @@ var Xf = 2e3, Jf = 500, Qf = "https://developers.google.com/maps/documentation/j
|
|
2191
2191
|
}
|
2192
2192
|
}, rd = {};
|
2193
2193
|
function id(t) {
|
2194
|
-
var e = t.children, n = t.options, r = t.averageCenter, i = t.batchSizeIE, a = t.calculator, o = t.clusterClass, s = t.enableRetinaIcons, u = t.gridSize, l = t.ignoreHidden, c = t.imageExtension, p = t.imagePath, d = t.imageSizes,
|
2194
|
+
var e = t.children, n = t.options, r = t.averageCenter, i = t.batchSizeIE, a = t.calculator, o = t.clusterClass, s = t.enableRetinaIcons, u = t.gridSize, l = t.ignoreHidden, c = t.imageExtension, p = t.imagePath, d = t.imageSizes, v = t.maxZoom, y = t.minimumClusterSize, h = t.styles, f = t.title, C = t.zoomOnClick, w = t.onClick, b = t.onClusteringBegin, S = t.onClusteringEnd, D = t.onMouseOver, E = t.onMouseOut, A = t.onLoad, M = t.onUnmount, V = $(null), F = V[0], z = V[1], R = _e(Ae), N = $(null), T = N[0], j = N[1], J = $(null), _ = J[0], te = J[1], ae = $(null), k = ae[0], I = ae[1], Z = $(null), H = Z[0], ee = Z[1], X = $(null), m = X[0], U = X[1];
|
2195
2195
|
return B(function() {
|
2196
|
-
|
2196
|
+
F && E && (H !== null && google.maps.event.removeListener(H), ee(google.maps.event.addListener(F, Ft.onMouseOut, E)));
|
2197
2197
|
}, [E]), B(function() {
|
2198
|
-
|
2198
|
+
F && D && (m !== null && google.maps.event.removeListener(m), U(google.maps.event.addListener(F, Ft.onMouseOver, D)));
|
2199
2199
|
}, [D]), B(function() {
|
2200
|
-
|
2200
|
+
F && w && (T !== null && google.maps.event.removeListener(T), j(google.maps.event.addListener(F, Ft.onClick, w)));
|
2201
2201
|
}, [w]), B(function() {
|
2202
|
-
|
2202
|
+
F && b && (_ !== null && google.maps.event.removeListener(_), te(google.maps.event.addListener(F, Ft.onClusteringBegin, b)));
|
2203
2203
|
}, [b]), B(function() {
|
2204
|
-
|
2204
|
+
F && S && (k !== null && google.maps.event.removeListener(k), te(google.maps.event.addListener(F, Ft.onClusteringEnd, S)));
|
2205
2205
|
}, [S]), B(function() {
|
2206
|
-
typeof r < "u" &&
|
2207
|
-
}, [
|
2208
|
-
typeof i < "u" &&
|
2209
|
-
}, [
|
2210
|
-
typeof a < "u" &&
|
2211
|
-
}, [
|
2212
|
-
typeof o < "u" &&
|
2213
|
-
}, [
|
2214
|
-
typeof s < "u" &&
|
2215
|
-
}, [
|
2216
|
-
typeof u < "u" &&
|
2217
|
-
}, [
|
2218
|
-
typeof l < "u" &&
|
2219
|
-
}, [
|
2220
|
-
typeof c < "u" &&
|
2221
|
-
}, [
|
2222
|
-
typeof p < "u" &&
|
2223
|
-
}, [
|
2224
|
-
typeof d < "u" &&
|
2225
|
-
}, [
|
2226
|
-
typeof
|
2227
|
-
}, [
|
2228
|
-
typeof y < "u" &&
|
2229
|
-
}, [
|
2230
|
-
typeof
|
2231
|
-
}, [
|
2232
|
-
typeof f < "u" &&
|
2233
|
-
}, [
|
2234
|
-
typeof C < "u" &&
|
2235
|
-
}, [
|
2236
|
-
if (
|
2237
|
-
var W = ye({}, n || rd), P = new pl(
|
2238
|
-
return r && ze.averageCenter(P, r), i && ze.batchSizeIE(P, i), a && ze.calculator(P, a), o && ze.clusterClass(P, o), s && ze.enableRetinaIcons(P, s), u && ze.gridSize(P, u), l && ze.ignoreHidden(P, l), c && ze.imageExtension(P, c), p && ze.imagePath(P, p), d && ze.imageSizes(P, d),
|
2239
|
-
H !== null && google.maps.event.removeListener(H), m !== null && google.maps.event.removeListener(m),
|
2206
|
+
typeof r < "u" && F !== null && ze.averageCenter(F, r);
|
2207
|
+
}, [F, r]), B(function() {
|
2208
|
+
typeof i < "u" && F !== null && ze.batchSizeIE(F, i);
|
2209
|
+
}, [F, i]), B(function() {
|
2210
|
+
typeof a < "u" && F !== null && ze.calculator(F, a);
|
2211
|
+
}, [F, a]), B(function() {
|
2212
|
+
typeof o < "u" && F !== null && ze.clusterClass(F, o);
|
2213
|
+
}, [F, o]), B(function() {
|
2214
|
+
typeof s < "u" && F !== null && ze.enableRetinaIcons(F, s);
|
2215
|
+
}, [F, s]), B(function() {
|
2216
|
+
typeof u < "u" && F !== null && ze.gridSize(F, u);
|
2217
|
+
}, [F, u]), B(function() {
|
2218
|
+
typeof l < "u" && F !== null && ze.ignoreHidden(F, l);
|
2219
|
+
}, [F, l]), B(function() {
|
2220
|
+
typeof c < "u" && F !== null && ze.imageExtension(F, c);
|
2221
|
+
}, [F, c]), B(function() {
|
2222
|
+
typeof p < "u" && F !== null && ze.imagePath(F, p);
|
2223
|
+
}, [F, p]), B(function() {
|
2224
|
+
typeof d < "u" && F !== null && ze.imageSizes(F, d);
|
2225
|
+
}, [F, d]), B(function() {
|
2226
|
+
typeof v < "u" && F !== null && ze.maxZoom(F, v);
|
2227
|
+
}, [F, v]), B(function() {
|
2228
|
+
typeof y < "u" && F !== null && ze.minimumClusterSize(F, y);
|
2229
|
+
}, [F, y]), B(function() {
|
2230
|
+
typeof h < "u" && F !== null && ze.styles(F, h);
|
2231
|
+
}, [F, h]), B(function() {
|
2232
|
+
typeof f < "u" && F !== null && ze.title(F, f);
|
2233
|
+
}, [F, f]), B(function() {
|
2234
|
+
typeof C < "u" && F !== null && ze.zoomOnClick(F, C);
|
2235
|
+
}, [F, C]), B(function() {
|
2236
|
+
if (R) {
|
2237
|
+
var W = ye({}, n || rd), P = new pl(R, [], W);
|
2238
|
+
return r && ze.averageCenter(P, r), i && ze.batchSizeIE(P, i), a && ze.calculator(P, a), o && ze.clusterClass(P, o), s && ze.enableRetinaIcons(P, s), u && ze.gridSize(P, u), l && ze.ignoreHidden(P, l), c && ze.imageExtension(P, c), p && ze.imagePath(P, p), d && ze.imageSizes(P, d), v && ze.maxZoom(P, v), y && ze.minimumClusterSize(P, y), h && ze.styles(P, h), f && ze.title(P, f), C && ze.zoomOnClick(P, C), E && ee(google.maps.event.addListener(P, Ft.onMouseOut, E)), D && U(google.maps.event.addListener(P, Ft.onMouseOver, D)), w && j(google.maps.event.addListener(P, Ft.onClick, w)), b && te(google.maps.event.addListener(P, Ft.onClusteringBegin, b)), S && I(google.maps.event.addListener(P, Ft.onClusteringEnd, S)), z(P), A && A(P), function() {
|
2239
|
+
H !== null && google.maps.event.removeListener(H), m !== null && google.maps.event.removeListener(m), T !== null && google.maps.event.removeListener(T), _ !== null && google.maps.event.removeListener(_), k !== null && google.maps.event.removeListener(k), M && M(P);
|
2240
2240
|
};
|
2241
2241
|
}
|
2242
|
-
}, []),
|
2242
|
+
}, []), F !== null && e(F) || null;
|
2243
2243
|
}
|
2244
2244
|
lt(id);
|
2245
2245
|
(function(t) {
|
@@ -2342,8 +2342,8 @@ var hl = (
|
|
2342
2342
|
if (n instanceof google.maps.Map) {
|
2343
2343
|
var r = 0, i = 0, a = n.getBounds();
|
2344
2344
|
a && !a.contains(this.position) && n.setCenter(this.position);
|
2345
|
-
var o = n.getDiv(), s = o.offsetWidth, u = o.offsetHeight, l = this.pixelOffset.width, c = this.pixelOffset.height, p = this.div.offsetWidth, d = this.div.offsetHeight,
|
2346
|
-
f !== null && (f.x < -l +
|
2345
|
+
var o = n.getDiv(), s = o.offsetWidth, u = o.offsetHeight, l = this.pixelOffset.width, c = this.pixelOffset.height, p = this.div.offsetWidth, d = this.div.offsetHeight, v = this.infoBoxClearance.width, y = this.infoBoxClearance.height, h = this.getProjection(), f = h.fromLatLngToContainerPixel(this.position);
|
2346
|
+
f !== null && (f.x < -l + v ? r = f.x + l - v : f.x + p + l + v > s && (r = f.x + p + l + v - s), this.alignBottom ? f.y < -c + y + d ? i = f.y + c - y - d : f.y + c + y > u && (i = f.y + c + y - u) : f.y < -c + y ? i = f.y + c - y : f.y + d + c + y > u && (i = f.y + d + c + y - u)), r === 0 && i === 0 || n.panBy(r, i);
|
2347
2347
|
}
|
2348
2348
|
}
|
2349
2349
|
}, t.prototype.setBoxStyle = function() {
|
@@ -2450,37 +2450,37 @@ var hl = (
|
|
2450
2450
|
}
|
2451
2451
|
}, ad = {};
|
2452
2452
|
function od(t) {
|
2453
|
-
var e = t.children, n = t.anchor, r = t.options, i = t.position, a = t.zIndex, o = t.onCloseClick, s = t.onDomReady, u = t.onContentChanged, l = t.onPositionChanged, c = t.onZindexChanged, p = t.onLoad, d = t.onUnmount,
|
2453
|
+
var e = t.children, n = t.anchor, r = t.options, i = t.position, a = t.zIndex, o = t.onCloseClick, s = t.onDomReady, u = t.onContentChanged, l = t.onPositionChanged, c = t.onZindexChanged, p = t.onLoad, d = t.onUnmount, v = _e(Ae), y = $(null), h = y[0], f = y[1], C = $(null), w = C[0], b = C[1], S = $(null), D = S[0], E = S[1], A = $(null), M = A[0], V = A[1], F = $(null), z = F[0], R = F[1], N = $(null), T = N[0], j = N[1], J = qe(null);
|
2454
2454
|
return B(function() {
|
2455
|
-
|
2456
|
-
}, [
|
2457
|
-
r &&
|
2458
|
-
}, [
|
2459
|
-
if (i &&
|
2455
|
+
v && h !== null && (h.close(), n ? h.open(v, n) : h.getPosition() && h.open(v));
|
2456
|
+
}, [v, h, n]), B(function() {
|
2457
|
+
r && h !== null && h.setOptions(r);
|
2458
|
+
}, [h, r]), B(function() {
|
2459
|
+
if (i && h !== null) {
|
2460
2460
|
var _ = i instanceof google.maps.LatLng ? i : new google.maps.LatLng(i.lat, i.lng);
|
2461
|
-
|
2461
|
+
h.setPosition(_);
|
2462
2462
|
}
|
2463
2463
|
}, [i]), B(function() {
|
2464
|
-
typeof a == "number" &&
|
2464
|
+
typeof a == "number" && h !== null && h.setZIndex(a);
|
2465
2465
|
}, [a]), B(function() {
|
2466
|
-
|
2466
|
+
h && o && (w !== null && google.maps.event.removeListener(w), b(google.maps.event.addListener(h, "closeclick", o)));
|
2467
2467
|
}, [o]), B(function() {
|
2468
|
-
|
2468
|
+
h && s && (D !== null && google.maps.event.removeListener(D), E(google.maps.event.addListener(h, "domready", s)));
|
2469
2469
|
}, [s]), B(function() {
|
2470
|
-
|
2470
|
+
h && u && (M !== null && google.maps.event.removeListener(M), V(google.maps.event.addListener(h, "content_changed", u)));
|
2471
2471
|
}, [u]), B(function() {
|
2472
|
-
|
2472
|
+
h && l && (z !== null && google.maps.event.removeListener(z), R(google.maps.event.addListener(h, "position_changed", l)));
|
2473
2473
|
}, [l]), B(function() {
|
2474
|
-
|
2474
|
+
h && c && (T !== null && google.maps.event.removeListener(T), j(google.maps.event.addListener(h, "zindex_changed", c)));
|
2475
2475
|
}, [c]), B(function() {
|
2476
|
-
if (
|
2476
|
+
if (v) {
|
2477
2477
|
var _ = r || ad, te = _.position, ae = ya(_, ["position"]), k = void 0;
|
2478
2478
|
te && !(te instanceof google.maps.LatLng) && (k = new google.maps.LatLng(te.lat, te.lng));
|
2479
2479
|
var I = new hl(ye(ye({}, ae), k ? { position: k } : {}));
|
2480
|
-
J.current = document.createElement("div"), f(I), o && b(google.maps.event.addListener(I, "closeclick", o)), s && E(google.maps.event.addListener(I, "domready", s)), u && V(google.maps.event.addListener(I, "content_changed", u)), l &&
|
2480
|
+
J.current = document.createElement("div"), f(I), o && b(google.maps.event.addListener(I, "closeclick", o)), s && E(google.maps.event.addListener(I, "domready", s)), u && V(google.maps.event.addListener(I, "content_changed", u)), l && R(google.maps.event.addListener(I, "position_changed", l)), c && j(google.maps.event.addListener(I, "zindex_changed", c)), I.setContent(J.current), n ? I.open(v, n) : I.getPosition() ? I.open(v) : at(!1, "You must provide either an anchor or a position prop for <InfoBox>."), p && p(I);
|
2481
2481
|
}
|
2482
2482
|
return function() {
|
2483
|
-
|
2483
|
+
h !== null && (w && google.maps.event.removeListener(w), M && google.maps.event.removeListener(M), D && google.maps.event.removeListener(D), z && google.maps.event.removeListener(z), T && google.maps.event.removeListener(T), d && d(h), h.close());
|
2484
2484
|
};
|
2485
2485
|
}, []), J.current ? ni(zt.only(e), J.current) : null;
|
2486
2486
|
}
|
@@ -2634,8 +2634,8 @@ class Ca {
|
|
2634
2634
|
}
|
2635
2635
|
continue;
|
2636
2636
|
}
|
2637
|
-
const
|
2638
|
-
y >= e && y <= r &&
|
2637
|
+
const v = d + p >> 1, y = o[2 * v], h = o[2 * v + 1];
|
2638
|
+
y >= e && y <= r && h >= n && h <= i && l.push(a[v]), (c === 0 ? e <= y : n <= h) && (u.push(d), u.push(v - 1), u.push(1 - c)), (c === 0 ? r >= y : i >= h) && (u.push(v + 1), u.push(p), u.push(1 - c));
|
2639
2639
|
}
|
2640
2640
|
return l;
|
2641
2641
|
}
|
@@ -2656,8 +2656,8 @@ class Ca {
|
|
2656
2656
|
go(a[2 * f], a[2 * f + 1], e, n) <= l && u.push(i[f]);
|
2657
2657
|
continue;
|
2658
2658
|
}
|
2659
|
-
const
|
2660
|
-
go(y,
|
2659
|
+
const v = d + p >> 1, y = a[2 * v], h = a[2 * v + 1];
|
2660
|
+
go(y, h, e, n) <= l && u.push(i[v]), (c === 0 ? e - r <= y : n - r <= h) && (s.push(d), s.push(v - 1), s.push(1 - c)), (c === 0 ? e + r >= y : n + r >= h) && (s.push(v + 1), s.push(p), s.push(1 - c));
|
2661
2661
|
}
|
2662
2662
|
return u;
|
2663
2663
|
}
|
@@ -2670,8 +2670,8 @@ function Zi(t, e, n, r, i, a) {
|
|
2670
2670
|
function vl(t, e, n, r, i, a) {
|
2671
2671
|
for (; i > r; ) {
|
2672
2672
|
if (i - r > 600) {
|
2673
|
-
const l = i - r + 1, c = n - r + 1, p = Math.log(l), d = 0.5 * Math.exp(2 * p / 3),
|
2674
|
-
vl(t, e, n, y,
|
2673
|
+
const l = i - r + 1, c = n - r + 1, p = Math.log(l), d = 0.5 * Math.exp(2 * p / 3), v = 0.5 * Math.sqrt(p * d * (l - d) / l) * (c - l / 2 < 0 ? -1 : 1), y = Math.max(r, Math.floor(n - c * d / l + v)), h = Math.min(i, Math.floor(n + (l - c) * d / l + v));
|
2674
|
+
vl(t, e, n, y, h, a);
|
2675
2675
|
}
|
2676
2676
|
const o = e[2 * n + a];
|
2677
2677
|
let s = r, u = i;
|
@@ -2730,10 +2730,10 @@ class ld {
|
|
2730
2730
|
for (let u = 0; u < e.length; u++) {
|
2731
2731
|
const l = e[u];
|
2732
2732
|
if (!l.geometry) continue;
|
2733
|
-
const [c, p] = l.geometry.coordinates, d = mo(Er(c)),
|
2733
|
+
const [c, p] = l.geometry.coordinates, d = mo(Er(c)), v = mo(wr(p));
|
2734
2734
|
o.push(
|
2735
2735
|
d,
|
2736
|
-
|
2736
|
+
v,
|
2737
2737
|
// projected point coordinates
|
2738
2738
|
1 / 0,
|
2739
2739
|
// the last zoom the point was processed at
|
@@ -2778,8 +2778,8 @@ class ld {
|
|
2778
2778
|
if (n * this.stride >= o.length) throw new Error(i);
|
2779
2779
|
const s = this.options.radius / (this.options.extent * Math.pow(2, r - 1)), u = o[n * this.stride], l = o[n * this.stride + 1], c = a.within(u, l, s), p = [];
|
2780
2780
|
for (const d of c) {
|
2781
|
-
const
|
2782
|
-
o[
|
2781
|
+
const v = d * this.stride;
|
2782
|
+
o[v + yi] === e && p.push(o[v + Qt] > 1 ? yo(o, v, this.clusterProps) : this.points[o[v + en]]);
|
2783
2783
|
}
|
2784
2784
|
if (p.length === 0) throw new Error(i);
|
2785
2785
|
return p;
|
@@ -2845,12 +2845,12 @@ class ld {
|
|
2845
2845
|
if (l)
|
2846
2846
|
c = ml(n, u, this.clusterProps), p = n[u], d = n[u + 1];
|
2847
2847
|
else {
|
2848
|
-
const
|
2849
|
-
c =
|
2850
|
-
const [f, C] =
|
2848
|
+
const h = this.points[n[u + en]];
|
2849
|
+
c = h.properties;
|
2850
|
+
const [f, C] = h.geometry.coordinates;
|
2851
2851
|
p = Er(f), d = wr(C);
|
2852
2852
|
}
|
2853
|
-
const
|
2853
|
+
const v = {
|
2854
2854
|
type: 1,
|
2855
2855
|
geometry: [[
|
2856
2856
|
Math.round(this.options.extent * (p * a - r)),
|
@@ -2859,7 +2859,7 @@ class ld {
|
|
2859
2859
|
tags: c
|
2860
2860
|
};
|
2861
2861
|
let y;
|
2862
|
-
l || this.options.generateId ? y = n[u + en] : y = this.points[n[u + en]].id, y !== void 0 && (
|
2862
|
+
l || this.options.generateId ? y = n[u + en] : y = this.points[n[u + en]].id, y !== void 0 && (v.id = y), o.features.push(v);
|
2863
2863
|
}
|
2864
2864
|
}
|
2865
2865
|
_limitZoom(e) {
|
@@ -2870,21 +2870,21 @@ class ld {
|
|
2870
2870
|
for (let p = 0; p < u.length; p += c) {
|
2871
2871
|
if (u[p + dn] <= n) continue;
|
2872
2872
|
u[p + dn] = n;
|
2873
|
-
const d = u[p],
|
2874
|
-
let f =
|
2873
|
+
const d = u[p], v = u[p + 1], y = e.within(u[p], u[p + 1], s), h = u[p + Qt];
|
2874
|
+
let f = h;
|
2875
2875
|
for (const C of y) {
|
2876
2876
|
const w = C * c;
|
2877
2877
|
u[w + dn] > n && (f += u[w + Qt]);
|
2878
2878
|
}
|
2879
|
-
if (f >
|
2880
|
-
let C = d *
|
2879
|
+
if (f > h && f >= o) {
|
2880
|
+
let C = d * h, w = v * h, b, S = -1;
|
2881
2881
|
const D = ((p / c | 0) << 5) + (n + 1) + this.points.length;
|
2882
2882
|
for (const E of y) {
|
2883
2883
|
const A = E * c;
|
2884
2884
|
if (u[A + dn] <= n) continue;
|
2885
2885
|
u[A + dn] = n;
|
2886
|
-
const
|
2887
|
-
C += u[A] *
|
2886
|
+
const M = u[A + Qt];
|
2887
|
+
C += u[A] * M, w += u[A + 1] * M, u[A + yi] = D, a && (b || (b = this._map(u, p, !0), S = this.clusterProps.length, this.clusterProps.push(b)), a(b, this._map(u, A)));
|
2888
2888
|
}
|
2889
2889
|
u[p + yi] = D, l.push(C / f, w / f, 1 / 0, D, -1, f), a && l.push(S);
|
2890
2890
|
} else {
|
@@ -3303,29 +3303,29 @@ var Co = {
|
|
3303
3303
|
}
|
3304
3304
|
};
|
3305
3305
|
function wd(t) {
|
3306
|
-
var e = t.children, n = t.anchor, r = t.options, i = t.position, a = t.zIndex, o = t.onCloseClick, s = t.onDomReady, u = t.onContentChanged, l = t.onPositionChanged, c = t.onZindexChanged, p = t.onLoad, d = t.onUnmount,
|
3306
|
+
var e = t.children, n = t.anchor, r = t.options, i = t.position, a = t.zIndex, o = t.onCloseClick, s = t.onDomReady, u = t.onContentChanged, l = t.onPositionChanged, c = t.onZindexChanged, p = t.onLoad, d = t.onUnmount, v = _e(Ae), y = $(null), h = y[0], f = y[1], C = $(null), w = C[0], b = C[1], S = $(null), D = S[0], E = S[1], A = $(null), M = A[0], V = A[1], F = $(null), z = F[0], R = F[1], N = $(null), T = N[0], j = N[1], J = qe(null);
|
3307
3307
|
return B(function() {
|
3308
|
-
|
3309
|
-
}, [
|
3310
|
-
r &&
|
3311
|
-
}, [
|
3312
|
-
i &&
|
3308
|
+
h !== null && (h.close(), n ? h.open(v, n) : h.getPosition() && h.open(v));
|
3309
|
+
}, [v, h, n]), B(function() {
|
3310
|
+
r && h !== null && h.setOptions(r);
|
3311
|
+
}, [h, r]), B(function() {
|
3312
|
+
i && h !== null && h.setPosition(i);
|
3313
3313
|
}, [i]), B(function() {
|
3314
|
-
typeof a == "number" &&
|
3314
|
+
typeof a == "number" && h !== null && h.setZIndex(a);
|
3315
3315
|
}, [a]), B(function() {
|
3316
|
-
|
3316
|
+
h && o && (w !== null && google.maps.event.removeListener(w), b(google.maps.event.addListener(h, "closeclick", o)));
|
3317
3317
|
}, [o]), B(function() {
|
3318
|
-
|
3318
|
+
h && s && (D !== null && google.maps.event.removeListener(D), E(google.maps.event.addListener(h, "domready", s)));
|
3319
3319
|
}, [s]), B(function() {
|
3320
|
-
|
3320
|
+
h && u && (M !== null && google.maps.event.removeListener(M), V(google.maps.event.addListener(h, "content_changed", u)));
|
3321
3321
|
}, [u]), B(function() {
|
3322
|
-
|
3322
|
+
h && l && (z !== null && google.maps.event.removeListener(z), R(google.maps.event.addListener(h, "position_changed", l)));
|
3323
3323
|
}, [l]), B(function() {
|
3324
|
-
|
3324
|
+
h && c && (T !== null && google.maps.event.removeListener(T), j(google.maps.event.addListener(h, "zindex_changed", c)));
|
3325
3325
|
}, [c]), B(function() {
|
3326
3326
|
var _ = new google.maps.InfoWindow(ye({}, r || {}));
|
3327
|
-
return f(_), J.current = document.createElement("div"), o && b(google.maps.event.addListener(_, "closeclick", o)), s && E(google.maps.event.addListener(_, "domready", s)), u && V(google.maps.event.addListener(_, "content_changed", u)), l &&
|
3328
|
-
w && google.maps.event.removeListener(w),
|
3327
|
+
return f(_), J.current = document.createElement("div"), o && b(google.maps.event.addListener(_, "closeclick", o)), s && E(google.maps.event.addListener(_, "domready", s)), u && V(google.maps.event.addListener(_, "content_changed", u)), l && R(google.maps.event.addListener(_, "position_changed", l)), c && j(google.maps.event.addListener(_, "zindex_changed", c)), _.setContent(J.current), i && _.setPosition(i), a && _.setZIndex(a), n ? _.open(v, n) : _.getPosition() ? _.open(v) : at(!1, "You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."), p && p(_), function() {
|
3328
|
+
w && google.maps.event.removeListener(w), M && google.maps.event.removeListener(M), D && google.maps.event.removeListener(D), z && google.maps.event.removeListener(z), T && google.maps.event.removeListener(T), d && d(_), _.close();
|
3329
3329
|
};
|
3330
3330
|
}, []), J.current ? ni(zt.only(e), J.current) : null;
|
3331
3331
|
}
|
@@ -3402,7 +3402,7 @@ var bo = {
|
|
3402
3402
|
}
|
3403
3403
|
}, Bd = {};
|
3404
3404
|
function xd(t) {
|
3405
|
-
var e = t.options, n = t.draggable, r = t.editable, i = t.visible, a = t.path, o = t.onDblClick, s = t.onDragEnd, u = t.onDragStart, l = t.onMouseDown, c = t.onMouseMove, p = t.onMouseOut, d = t.onMouseOver,
|
3405
|
+
var e = t.options, n = t.draggable, r = t.editable, i = t.visible, a = t.path, o = t.onDblClick, s = t.onDragEnd, u = t.onDragStart, l = t.onMouseDown, c = t.onMouseMove, p = t.onMouseOut, d = t.onMouseOver, v = t.onMouseUp, y = t.onRightClick, h = t.onClick, f = t.onDrag, C = t.onLoad, w = t.onUnmount, b = _e(Ae), S = $(null), D = S[0], E = S[1], A = $(null), M = A[0], V = A[1], F = $(null), z = F[0], R = F[1], N = $(null), T = N[0], j = N[1], J = $(null), _ = J[0], te = J[1], ae = $(null), k = ae[0], I = ae[1], Z = $(null), H = Z[0], ee = Z[1], X = $(null), m = X[0], U = X[1], W = $(null), P = W[0], Q = W[1], ie = $(null), G = ie[0], ce = ie[1], se = $(null), he = se[0], ve = se[1], De = $(null), Ce = De[0], me = De[1];
|
3406
3406
|
return B(function() {
|
3407
3407
|
D !== null && D.setMap(b);
|
3408
3408
|
}, [b]), B(function() {
|
@@ -3416,11 +3416,11 @@ function xd(t) {
|
|
3416
3416
|
}, [D, i]), B(function() {
|
3417
3417
|
typeof a < "u" && D !== null && D.setPath(a);
|
3418
3418
|
}, [D, a]), B(function() {
|
3419
|
-
D && o && (
|
3419
|
+
D && o && (M !== null && google.maps.event.removeListener(M), V(google.maps.event.addListener(D, "dblclick", o)));
|
3420
3420
|
}, [o]), B(function() {
|
3421
|
-
D && s && (z !== null && google.maps.event.removeListener(z),
|
3421
|
+
D && s && (z !== null && google.maps.event.removeListener(z), R(google.maps.event.addListener(D, "dragend", s)));
|
3422
3422
|
}, [s]), B(function() {
|
3423
|
-
D && u && (
|
3423
|
+
D && u && (T !== null && google.maps.event.removeListener(T), j(google.maps.event.addListener(D, "dragstart", u)));
|
3424
3424
|
}, [u]), B(function() {
|
3425
3425
|
D && l && (_ !== null && google.maps.event.removeListener(_), te(google.maps.event.addListener(D, "mousedown", l)));
|
3426
3426
|
}, [l]), B(function() {
|
@@ -3430,17 +3430,17 @@ function xd(t) {
|
|
3430
3430
|
}, [p]), B(function() {
|
3431
3431
|
D && d && (m !== null && google.maps.event.removeListener(m), U(google.maps.event.addListener(D, "mouseover", d)));
|
3432
3432
|
}, [d]), B(function() {
|
3433
|
-
D &&
|
3434
|
-
}, [
|
3433
|
+
D && v && (P !== null && google.maps.event.removeListener(P), Q(google.maps.event.addListener(D, "mouseup", v)));
|
3434
|
+
}, [v]), B(function() {
|
3435
3435
|
D && y && (G !== null && google.maps.event.removeListener(G), ce(google.maps.event.addListener(D, "rightclick", y)));
|
3436
3436
|
}, [y]), B(function() {
|
3437
|
-
D &&
|
3438
|
-
}, [
|
3437
|
+
D && h && (he !== null && google.maps.event.removeListener(he), ve(google.maps.event.addListener(D, "click", h)));
|
3438
|
+
}, [h]), B(function() {
|
3439
3439
|
D && f && (Ce !== null && google.maps.event.removeListener(Ce), me(google.maps.event.addListener(D, "drag", f)));
|
3440
3440
|
}, [f]), B(function() {
|
3441
3441
|
var ge = new google.maps.Polyline(ye(ye({}, e || Bd), { map: b }));
|
3442
|
-
return a && ge.setPath(a), typeof i < "u" && ge.setVisible(i), typeof r < "u" && ge.setEditable(r), typeof n < "u" && ge.setDraggable(n), o && V(google.maps.event.addListener(ge, "dblclick", o)), s &&
|
3443
|
-
|
3442
|
+
return a && ge.setPath(a), typeof i < "u" && ge.setVisible(i), typeof r < "u" && ge.setEditable(r), typeof n < "u" && ge.setDraggable(n), o && V(google.maps.event.addListener(ge, "dblclick", o)), s && R(google.maps.event.addListener(ge, "dragend", s)), u && j(google.maps.event.addListener(ge, "dragstart", u)), l && te(google.maps.event.addListener(ge, "mousedown", l)), c && I(google.maps.event.addListener(ge, "mousemove", c)), p && ee(google.maps.event.addListener(ge, "mouseout", p)), d && U(google.maps.event.addListener(ge, "mouseover", d)), v && Q(google.maps.event.addListener(ge, "mouseup", v)), y && ce(google.maps.event.addListener(ge, "rightclick", y)), h && ve(google.maps.event.addListener(ge, "click", h)), f && me(google.maps.event.addListener(ge, "drag", f)), E(ge), C && C(ge), function() {
|
3443
|
+
M !== null && google.maps.event.removeListener(M), z !== null && google.maps.event.removeListener(z), T !== null && google.maps.event.removeListener(T), _ !== null && google.maps.event.removeListener(_), k !== null && google.maps.event.removeListener(k), H !== null && google.maps.event.removeListener(H), m !== null && google.maps.event.removeListener(m), P !== null && google.maps.event.removeListener(P), G !== null && google.maps.event.removeListener(G), he !== null && google.maps.event.removeListener(he), w && w(ge), ge.setMap(null);
|
3444
3444
|
};
|
3445
3445
|
}, []), null;
|
3446
3446
|
}
|
@@ -3518,7 +3518,7 @@ var wo = {
|
|
3518
3518
|
}
|
3519
3519
|
};
|
3520
3520
|
function Ld(t) {
|
3521
|
-
var e = t.options, n = t.draggable, r = t.editable, i = t.visible, a = t.path, o = t.paths, s = t.onDblClick, u = t.onDragEnd, l = t.onDragStart, c = t.onMouseDown, p = t.onMouseMove, d = t.onMouseOut,
|
3521
|
+
var e = t.options, n = t.draggable, r = t.editable, i = t.visible, a = t.path, o = t.paths, s = t.onDblClick, u = t.onDragEnd, l = t.onDragStart, c = t.onMouseDown, p = t.onMouseMove, d = t.onMouseOut, v = t.onMouseOver, y = t.onMouseUp, h = t.onRightClick, f = t.onClick, C = t.onDrag, w = t.onLoad, b = t.onUnmount, S = t.onEdit, D = _e(Ae), E = $(null), A = E[0], M = E[1], V = $(null), F = V[0], z = V[1], R = $(null), N = R[0], T = R[1], j = $(null), J = j[0], _ = j[1], te = $(null), ae = te[0], k = te[1], I = $(null), Z = I[0], H = I[1], ee = $(null), X = ee[0], m = ee[1], U = $(null), W = U[0], P = U[1], Q = $(null), ie = Q[0], G = Q[1], ce = $(null), se = ce[0], he = ce[1], ve = $(null), De = ve[0], Ce = ve[1], me = $(null), ge = me[0], Ie = me[1];
|
3522
3522
|
return B(function() {
|
3523
3523
|
A !== null && A.setMap(D);
|
3524
3524
|
}, [D]), B(function() {
|
@@ -3534,7 +3534,7 @@ function Ld(t) {
|
|
3534
3534
|
}, [A, a]), B(function() {
|
3535
3535
|
typeof o < "u" && A !== null && A.setPaths(o);
|
3536
3536
|
}, [A, o]), B(function() {
|
3537
|
-
A && s && (
|
3537
|
+
A && s && (F !== null && google.maps.event.removeListener(F), z(google.maps.event.addListener(A, "dblclick", s)));
|
3538
3538
|
}, [s]), B(function() {
|
3539
3539
|
A && (google.maps.event.addListener(A.getPath(), "insert_at", function() {
|
3540
3540
|
S == null || S(A);
|
@@ -3542,7 +3542,7 @@ function Ld(t) {
|
|
3542
3542
|
S == null || S(A);
|
3543
3543
|
}));
|
3544
3544
|
}, [A, S]), B(function() {
|
3545
|
-
A && u && (
|
3545
|
+
A && u && (N !== null && google.maps.event.removeListener(N), T(google.maps.event.addListener(A, "dragend", u)));
|
3546
3546
|
}, [u]), B(function() {
|
3547
3547
|
A && l && (J !== null && google.maps.event.removeListener(J), _(google.maps.event.addListener(A, "dragstart", l)));
|
3548
3548
|
}, [l]), B(function() {
|
@@ -3552,19 +3552,19 @@ function Ld(t) {
|
|
3552
3552
|
}, [p]), B(function() {
|
3553
3553
|
A && d && (X !== null && google.maps.event.removeListener(X), m(google.maps.event.addListener(A, "mouseout", d)));
|
3554
3554
|
}, [d]), B(function() {
|
3555
|
-
A &&
|
3556
|
-
}, [
|
3555
|
+
A && v && (W !== null && google.maps.event.removeListener(W), P(google.maps.event.addListener(A, "mouseover", v)));
|
3556
|
+
}, [v]), B(function() {
|
3557
3557
|
A && y && (ie !== null && google.maps.event.removeListener(ie), G(google.maps.event.addListener(A, "mouseup", y)));
|
3558
3558
|
}, [y]), B(function() {
|
3559
|
-
A &&
|
3560
|
-
}, [
|
3559
|
+
A && h && (se !== null && google.maps.event.removeListener(se), he(google.maps.event.addListener(A, "rightclick", h)));
|
3560
|
+
}, [h]), B(function() {
|
3561
3561
|
A && f && (De !== null && google.maps.event.removeListener(De), Ce(google.maps.event.addListener(A, "click", f)));
|
3562
3562
|
}, [f]), B(function() {
|
3563
3563
|
A && C && (ge !== null && google.maps.event.removeListener(ge), Ie(google.maps.event.addListener(A, "drag", C)));
|
3564
3564
|
}, [C]), B(function() {
|
3565
3565
|
var le = new google.maps.Polygon(ye(ye({}, e || {}), { map: D }));
|
3566
|
-
return a && le.setPath(a), o && le.setPaths(o), typeof i < "u" && le.setVisible(i), typeof r < "u" && le.setEditable(r), typeof n < "u" && le.setDraggable(n), s && z(google.maps.event.addListener(le, "dblclick", s)), u &&
|
3567
|
-
|
3566
|
+
return a && le.setPath(a), o && le.setPaths(o), typeof i < "u" && le.setVisible(i), typeof r < "u" && le.setEditable(r), typeof n < "u" && le.setDraggable(n), s && z(google.maps.event.addListener(le, "dblclick", s)), u && T(google.maps.event.addListener(le, "dragend", u)), l && _(google.maps.event.addListener(le, "dragstart", l)), c && k(google.maps.event.addListener(le, "mousedown", c)), p && H(google.maps.event.addListener(le, "mousemove", p)), d && m(google.maps.event.addListener(le, "mouseout", d)), v && P(google.maps.event.addListener(le, "mouseover", v)), y && G(google.maps.event.addListener(le, "mouseup", y)), h && he(google.maps.event.addListener(le, "rightclick", h)), f && Ce(google.maps.event.addListener(le, "click", f)), C && Ie(google.maps.event.addListener(le, "drag", C)), M(le), w && w(le), function() {
|
3567
|
+
F !== null && google.maps.event.removeListener(F), N !== null && google.maps.event.removeListener(N), J !== null && google.maps.event.removeListener(J), ae !== null && google.maps.event.removeListener(ae), Z !== null && google.maps.event.removeListener(Z), X !== null && google.maps.event.removeListener(X), W !== null && google.maps.event.removeListener(W), ie !== null && google.maps.event.removeListener(ie), se !== null && google.maps.event.removeListener(se), De !== null && google.maps.event.removeListener(De), b && b(le), le.setMap(null);
|
3568
3568
|
};
|
3569
3569
|
}, []), null;
|
3570
3570
|
}
|
@@ -3640,7 +3640,7 @@ var xo = {
|
|
3640
3640
|
}
|
3641
3641
|
};
|
3642
3642
|
function Ad(t) {
|
3643
|
-
var e = t.options, n = t.bounds, r = t.draggable, i = t.editable, a = t.visible, o = t.onDblClick, s = t.onDragEnd, u = t.onDragStart, l = t.onMouseDown, c = t.onMouseMove, p = t.onMouseOut, d = t.onMouseOver,
|
3643
|
+
var e = t.options, n = t.bounds, r = t.draggable, i = t.editable, a = t.visible, o = t.onDblClick, s = t.onDragEnd, u = t.onDragStart, l = t.onMouseDown, c = t.onMouseMove, p = t.onMouseOut, d = t.onMouseOver, v = t.onMouseUp, y = t.onRightClick, h = t.onClick, f = t.onDrag, C = t.onBoundsChanged, w = t.onLoad, b = t.onUnmount, S = _e(Ae), D = $(null), E = D[0], A = D[1], M = $(null), V = M[0], F = M[1], z = $(null), R = z[0], N = z[1], T = $(null), j = T[0], J = T[1], _ = $(null), te = _[0], ae = _[1], k = $(null), I = k[0], Z = k[1], H = $(null), ee = H[0], X = H[1], m = $(null), U = m[0], W = m[1], P = $(null), Q = P[0], ie = P[1], G = $(null), ce = G[0], se = G[1], he = $(null), ve = he[0], De = he[1], Ce = $(null), me = Ce[0], ge = Ce[1], Ie = $(null), le = Ie[0], Ne = Ie[1];
|
3644
3644
|
return B(function() {
|
3645
3645
|
E !== null && E.setMap(S);
|
3646
3646
|
}, [S]), B(function() {
|
@@ -3654,11 +3654,11 @@ function Ad(t) {
|
|
3654
3654
|
}, [E, a]), B(function() {
|
3655
3655
|
typeof n < "u" && E !== null && E.setBounds(n);
|
3656
3656
|
}, [E, n]), B(function() {
|
3657
|
-
E && o && (V !== null && google.maps.event.removeListener(V),
|
3657
|
+
E && o && (V !== null && google.maps.event.removeListener(V), F(google.maps.event.addListener(E, "dblclick", o)));
|
3658
3658
|
}, [o]), B(function() {
|
3659
|
-
E && s && (
|
3659
|
+
E && s && (R !== null && google.maps.event.removeListener(R), N(google.maps.event.addListener(E, "dragend", s)));
|
3660
3660
|
}, [s]), B(function() {
|
3661
|
-
E && u && (
|
3661
|
+
E && u && (j !== null && google.maps.event.removeListener(j), J(google.maps.event.addListener(E, "dragstart", u)));
|
3662
3662
|
}, [u]), B(function() {
|
3663
3663
|
E && l && (te !== null && google.maps.event.removeListener(te), ae(google.maps.event.addListener(E, "mousedown", l)));
|
3664
3664
|
}, [l]), B(function() {
|
@@ -3668,19 +3668,19 @@ function Ad(t) {
|
|
3668
3668
|
}, [p]), B(function() {
|
3669
3669
|
E && d && (U !== null && google.maps.event.removeListener(U), W(google.maps.event.addListener(E, "mouseover", d)));
|
3670
3670
|
}, [d]), B(function() {
|
3671
|
-
E &&
|
3672
|
-
}, [
|
3671
|
+
E && v && (Q !== null && google.maps.event.removeListener(Q), ie(google.maps.event.addListener(E, "mouseup", v)));
|
3672
|
+
}, [v]), B(function() {
|
3673
3673
|
E && y && (ce !== null && google.maps.event.removeListener(ce), se(google.maps.event.addListener(E, "rightclick", y)));
|
3674
3674
|
}, [y]), B(function() {
|
3675
|
-
E &&
|
3676
|
-
}, [
|
3675
|
+
E && h && (ve !== null && google.maps.event.removeListener(ve), De(google.maps.event.addListener(E, "click", h)));
|
3676
|
+
}, [h]), B(function() {
|
3677
3677
|
E && f && (me !== null && google.maps.event.removeListener(me), ge(google.maps.event.addListener(E, "drag", f)));
|
3678
3678
|
}, [f]), B(function() {
|
3679
3679
|
E && C && (le !== null && google.maps.event.removeListener(le), Ne(google.maps.event.addListener(E, "bounds_changed", C)));
|
3680
3680
|
}, [C]), B(function() {
|
3681
3681
|
var pe = new google.maps.Rectangle(ye(ye({}, e || {}), { map: S }));
|
3682
|
-
return typeof a < "u" && pe.setVisible(a), typeof i < "u" && pe.setEditable(i), typeof r < "u" && pe.setDraggable(r), typeof n < "u" && pe.setBounds(n), o &&
|
3683
|
-
V !== null && google.maps.event.removeListener(V),
|
3682
|
+
return typeof a < "u" && pe.setVisible(a), typeof i < "u" && pe.setEditable(i), typeof r < "u" && pe.setDraggable(r), typeof n < "u" && pe.setBounds(n), o && F(google.maps.event.addListener(pe, "dblclick", o)), s && N(google.maps.event.addListener(pe, "dragend", s)), u && J(google.maps.event.addListener(pe, "dragstart", u)), l && ae(google.maps.event.addListener(pe, "mousedown", l)), c && Z(google.maps.event.addListener(pe, "mousemove", c)), p && X(google.maps.event.addListener(pe, "mouseout", p)), d && W(google.maps.event.addListener(pe, "mouseover", d)), v && ie(google.maps.event.addListener(pe, "mouseup", v)), y && se(google.maps.event.addListener(pe, "rightclick", y)), h && De(google.maps.event.addListener(pe, "click", h)), f && ge(google.maps.event.addListener(pe, "drag", f)), C && Ne(google.maps.event.addListener(pe, "bounds_changed", C)), A(pe), w && w(pe), function() {
|
3683
|
+
V !== null && google.maps.event.removeListener(V), R !== null && google.maps.event.removeListener(R), j !== null && google.maps.event.removeListener(j), te !== null && google.maps.event.removeListener(te), I !== null && google.maps.event.removeListener(I), ee !== null && google.maps.event.removeListener(ee), U !== null && google.maps.event.removeListener(U), Q !== null && google.maps.event.removeListener(Q), ce !== null && google.maps.event.removeListener(ce), ve !== null && google.maps.event.removeListener(ve), me !== null && google.maps.event.removeListener(me), le !== null && google.maps.event.removeListener(le), b && b(pe), pe.setMap(null);
|
3684
3684
|
};
|
3685
3685
|
}, []), null;
|
3686
3686
|
}
|
@@ -3760,51 +3760,51 @@ var Ao = {
|
|
3760
3760
|
}
|
3761
3761
|
}, Od = {};
|
3762
3762
|
function Sd(t) {
|
3763
|
-
var e = t.options, n = t.center, r = t.radius, i = t.draggable, a = t.editable, o = t.visible, s = t.onDblClick, u = t.onDragEnd, l = t.onDragStart, c = t.onMouseDown, p = t.onMouseMove, d = t.onMouseOut,
|
3763
|
+
var e = t.options, n = t.center, r = t.radius, i = t.draggable, a = t.editable, o = t.visible, s = t.onDblClick, u = t.onDragEnd, l = t.onDragStart, c = t.onMouseDown, p = t.onMouseMove, d = t.onMouseOut, v = t.onMouseOver, y = t.onMouseUp, h = t.onRightClick, f = t.onClick, C = t.onDrag, w = t.onCenterChanged, b = t.onRadiusChanged, S = t.onLoad, D = t.onUnmount, E = _e(Ae), A = $(null), M = A[0], V = A[1], F = $(null), z = F[0], R = F[1], N = $(null), T = N[0], j = N[1], J = $(null), _ = J[0], te = J[1], ae = $(null), k = ae[0], I = ae[1], Z = $(null), H = Z[0], ee = Z[1], X = $(null), m = X[0], U = X[1], W = $(null), P = W[0], Q = W[1], ie = $(null), G = ie[0], ce = ie[1], se = $(null), he = se[0], ve = se[1], De = $(null), Ce = De[0], me = De[1], ge = $(null), Ie = ge[0], le = ge[1], Ne = $(null), pe = Ne[0], Be = Ne[1], Me = $(null), We = Me[0], Ye = Me[1];
|
3764
3764
|
return B(function() {
|
3765
|
-
|
3765
|
+
M !== null && M.setMap(E);
|
3766
3766
|
}, [E]), B(function() {
|
3767
|
-
typeof e < "u" &&
|
3768
|
-
}, [
|
3769
|
-
typeof i < "u" &&
|
3770
|
-
}, [
|
3771
|
-
typeof a < "u" &&
|
3772
|
-
}, [
|
3773
|
-
typeof o < "u" &&
|
3774
|
-
}, [
|
3775
|
-
typeof r == "number" &&
|
3776
|
-
}, [
|
3777
|
-
typeof n < "u" &&
|
3778
|
-
}, [
|
3779
|
-
|
3767
|
+
typeof e < "u" && M !== null && M.setOptions(e);
|
3768
|
+
}, [M, e]), B(function() {
|
3769
|
+
typeof i < "u" && M !== null && M.setDraggable(i);
|
3770
|
+
}, [M, i]), B(function() {
|
3771
|
+
typeof a < "u" && M !== null && M.setEditable(a);
|
3772
|
+
}, [M, a]), B(function() {
|
3773
|
+
typeof o < "u" && M !== null && M.setVisible(o);
|
3774
|
+
}, [M, o]), B(function() {
|
3775
|
+
typeof r == "number" && M !== null && M.setRadius(r);
|
3776
|
+
}, [M, r]), B(function() {
|
3777
|
+
typeof n < "u" && M !== null && M.setCenter(n);
|
3778
|
+
}, [M, n]), B(function() {
|
3779
|
+
M && s && (z !== null && google.maps.event.removeListener(z), R(google.maps.event.addListener(M, "dblclick", s)));
|
3780
3780
|
}, [s]), B(function() {
|
3781
|
-
|
3781
|
+
M && u && (T !== null && google.maps.event.removeListener(T), j(google.maps.event.addListener(M, "dragend", u)));
|
3782
3782
|
}, [u]), B(function() {
|
3783
|
-
|
3783
|
+
M && l && (_ !== null && google.maps.event.removeListener(_), te(google.maps.event.addListener(M, "dragstart", l)));
|
3784
3784
|
}, [l]), B(function() {
|
3785
|
-
|
3785
|
+
M && c && (k !== null && google.maps.event.removeListener(k), I(google.maps.event.addListener(M, "mousedown", c)));
|
3786
3786
|
}, [c]), B(function() {
|
3787
|
-
|
3787
|
+
M && p && (H !== null && google.maps.event.removeListener(H), ee(google.maps.event.addListener(M, "mousemove", p)));
|
3788
3788
|
}, [p]), B(function() {
|
3789
|
-
|
3789
|
+
M && d && (m !== null && google.maps.event.removeListener(m), U(google.maps.event.addListener(M, "mouseout", d)));
|
3790
3790
|
}, [d]), B(function() {
|
3791
|
-
|
3792
|
-
}, [h]), B(function() {
|
3793
|
-
F && y && (G !== null && google.maps.event.removeListener(G), ce(google.maps.event.addListener(F, "mouseup", y)));
|
3794
|
-
}, [y]), B(function() {
|
3795
|
-
F && v && (he !== null && google.maps.event.removeListener(he), ve(google.maps.event.addListener(F, "rightclick", v)));
|
3791
|
+
M && v && (P !== null && google.maps.event.removeListener(P), Q(google.maps.event.addListener(M, "mouseover", v)));
|
3796
3792
|
}, [v]), B(function() {
|
3797
|
-
|
3793
|
+
M && y && (G !== null && google.maps.event.removeListener(G), ce(google.maps.event.addListener(M, "mouseup", y)));
|
3794
|
+
}, [y]), B(function() {
|
3795
|
+
M && h && (he !== null && google.maps.event.removeListener(he), ve(google.maps.event.addListener(M, "rightclick", h)));
|
3796
|
+
}, [h]), B(function() {
|
3797
|
+
M && f && (Ce !== null && google.maps.event.removeListener(Ce), me(google.maps.event.addListener(M, "click", f)));
|
3798
3798
|
}, [f]), B(function() {
|
3799
|
-
|
3799
|
+
M && C && (Ie !== null && google.maps.event.removeListener(Ie), le(google.maps.event.addListener(M, "drag", C)));
|
3800
3800
|
}, [C]), B(function() {
|
3801
|
-
|
3801
|
+
M && w && (pe !== null && google.maps.event.removeListener(pe), Be(google.maps.event.addListener(M, "center_changed", w)));
|
3802
3802
|
}, [f]), B(function() {
|
3803
|
-
|
3803
|
+
M && b && (We !== null && google.maps.event.removeListener(We), Ye(google.maps.event.addListener(M, "radius_changed", b)));
|
3804
3804
|
}, [b]), B(function() {
|
3805
3805
|
var we = new google.maps.Circle(ye(ye({}, e || Od), { map: E }));
|
3806
|
-
return typeof r == "number" && we.setRadius(r), typeof n < "u" && we.setCenter(n), typeof r == "number" && we.setRadius(r), typeof o < "u" && we.setVisible(o), typeof a < "u" && we.setEditable(a), typeof i < "u" && we.setDraggable(i), s &&
|
3807
|
-
z !== null && google.maps.event.removeListener(z),
|
3806
|
+
return typeof r == "number" && we.setRadius(r), typeof n < "u" && we.setCenter(n), typeof r == "number" && we.setRadius(r), typeof o < "u" && we.setVisible(o), typeof a < "u" && we.setEditable(a), typeof i < "u" && we.setDraggable(i), s && R(google.maps.event.addListener(we, "dblclick", s)), u && j(google.maps.event.addListener(we, "dragend", u)), l && te(google.maps.event.addListener(we, "dragstart", l)), c && I(google.maps.event.addListener(we, "mousedown", c)), p && ee(google.maps.event.addListener(we, "mousemove", p)), d && U(google.maps.event.addListener(we, "mouseout", d)), v && Q(google.maps.event.addListener(we, "mouseover", v)), y && ce(google.maps.event.addListener(we, "mouseup", y)), h && ve(google.maps.event.addListener(we, "rightclick", h)), f && me(google.maps.event.addListener(we, "click", f)), C && le(google.maps.event.addListener(we, "drag", C)), w && Be(google.maps.event.addListener(we, "center_changed", w)), b && Ye(google.maps.event.addListener(we, "radius_changed", b)), V(we), S && S(we), function() {
|
3807
|
+
z !== null && google.maps.event.removeListener(z), T !== null && google.maps.event.removeListener(T), _ !== null && google.maps.event.removeListener(_), k !== null && google.maps.event.removeListener(k), H !== null && google.maps.event.removeListener(H), m !== null && google.maps.event.removeListener(m), P !== null && google.maps.event.removeListener(P), G !== null && google.maps.event.removeListener(G), he !== null && google.maps.event.removeListener(he), Ce !== null && google.maps.event.removeListener(Ce), pe !== null && google.maps.event.removeListener(pe), We !== null && google.maps.event.removeListener(We), D && D(we), we.setMap(null);
|
3808
3808
|
};
|
3809
3809
|
}, []), null;
|
3810
3810
|
}
|
@@ -3905,17 +3905,17 @@ var So = {
|
|
3905
3905
|
}
|
3906
3906
|
};
|
3907
3907
|
function Fd(t) {
|
3908
|
-
var e = t.options, n = t.onClick, r = t.onDblClick, i = t.onMouseDown, a = t.onMouseMove, o = t.onMouseOut, s = t.onMouseOver, u = t.onMouseUp, l = t.onRightClick, c = t.onAddFeature, p = t.onRemoveFeature, d = t.onRemoveProperty,
|
3908
|
+
var e = t.options, n = t.onClick, r = t.onDblClick, i = t.onMouseDown, a = t.onMouseMove, o = t.onMouseOut, s = t.onMouseOver, u = t.onMouseUp, l = t.onRightClick, c = t.onAddFeature, p = t.onRemoveFeature, d = t.onRemoveProperty, v = t.onSetGeometry, y = t.onSetProperty, h = t.onLoad, f = t.onUnmount, C = _e(Ae), w = $(null), b = w[0], S = w[1], D = $(null), E = D[0], A = D[1], M = $(null), V = M[0], F = M[1], z = $(null), R = z[0], N = z[1], T = $(null), j = T[0], J = T[1], _ = $(null), te = _[0], ae = _[1], k = $(null), I = k[0], Z = k[1], H = $(null), ee = H[0], X = H[1], m = $(null), U = m[0], W = m[1], P = $(null), Q = P[0], ie = P[1], G = $(null), ce = G[0], se = G[1], he = $(null), ve = he[0], De = he[1], Ce = $(null), me = Ce[0], ge = Ce[1], Ie = $(null), le = Ie[0], Ne = Ie[1];
|
3909
3909
|
return B(function() {
|
3910
3910
|
b !== null && b.setMap(C);
|
3911
3911
|
}, [C]), B(function() {
|
3912
3912
|
b && r && (E !== null && google.maps.event.removeListener(E), A(google.maps.event.addListener(b, "dblclick", r)));
|
3913
3913
|
}, [r]), B(function() {
|
3914
|
-
b && i && (V !== null && google.maps.event.removeListener(V),
|
3914
|
+
b && i && (V !== null && google.maps.event.removeListener(V), F(google.maps.event.addListener(b, "mousedown", i)));
|
3915
3915
|
}, [i]), B(function() {
|
3916
|
-
b && a && (
|
3916
|
+
b && a && (R !== null && google.maps.event.removeListener(R), N(google.maps.event.addListener(b, "mousemove", a)));
|
3917
3917
|
}, [a]), B(function() {
|
3918
|
-
b && o && (
|
3918
|
+
b && o && (j !== null && google.maps.event.removeListener(j), J(google.maps.event.addListener(b, "mouseout", o)));
|
3919
3919
|
}, [o]), B(function() {
|
3920
3920
|
b && s && (te !== null && google.maps.event.removeListener(te), ae(google.maps.event.addListener(b, "mouseover", s)));
|
3921
3921
|
}, [s]), B(function() {
|
@@ -3931,16 +3931,16 @@ function Fd(t) {
|
|
3931
3931
|
}, [p]), B(function() {
|
3932
3932
|
b && d && (ve !== null && google.maps.event.removeListener(ve), De(google.maps.event.addListener(b, "removeproperty", d)));
|
3933
3933
|
}, [d]), B(function() {
|
3934
|
-
b &&
|
3935
|
-
}, [
|
3934
|
+
b && v && (me !== null && google.maps.event.removeListener(me), ge(google.maps.event.addListener(b, "setgeometry", v)));
|
3935
|
+
}, [v]), B(function() {
|
3936
3936
|
b && y && (le !== null && google.maps.event.removeListener(le), Ne(google.maps.event.addListener(b, "setproperty", y)));
|
3937
3937
|
}, [y]), B(function() {
|
3938
3938
|
if (C !== null) {
|
3939
3939
|
var pe = new google.maps.Data(ye(ye({}, e || {}), { map: C }));
|
3940
|
-
r && A(google.maps.event.addListener(pe, "dblclick", r)), i &&
|
3940
|
+
r && A(google.maps.event.addListener(pe, "dblclick", r)), i && F(google.maps.event.addListener(pe, "mousedown", i)), a && N(google.maps.event.addListener(pe, "mousemove", a)), o && J(google.maps.event.addListener(pe, "mouseout", o)), s && ae(google.maps.event.addListener(pe, "mouseover", s)), u && Z(google.maps.event.addListener(pe, "mouseup", u)), l && X(google.maps.event.addListener(pe, "rightclick", l)), n && W(google.maps.event.addListener(pe, "click", n)), c && ie(google.maps.event.addListener(pe, "addfeature", c)), p && se(google.maps.event.addListener(pe, "removefeature", p)), d && De(google.maps.event.addListener(pe, "removeproperty", d)), v && ge(google.maps.event.addListener(pe, "setgeometry", v)), y && Ne(google.maps.event.addListener(pe, "setproperty", y)), S(pe), h && h(pe);
|
3941
3941
|
}
|
3942
3942
|
return function() {
|
3943
|
-
b && (E !== null && google.maps.event.removeListener(E), V !== null && google.maps.event.removeListener(V),
|
3943
|
+
b && (E !== null && google.maps.event.removeListener(E), V !== null && google.maps.event.removeListener(V), R !== null && google.maps.event.removeListener(R), j !== null && google.maps.event.removeListener(j), te !== null && google.maps.event.removeListener(te), I !== null && google.maps.event.removeListener(I), ee !== null && google.maps.event.removeListener(ee), U !== null && google.maps.event.removeListener(U), Q !== null && google.maps.event.removeListener(Q), ce !== null && google.maps.event.removeListener(ce), ve !== null && google.maps.event.removeListener(ve), me !== null && google.maps.event.removeListener(me), le !== null && google.maps.event.removeListener(le), f && f(b), b.setMap(null));
|
3944
3944
|
};
|
3945
3945
|
}, []), null;
|
3946
3946
|
}
|
@@ -4103,8 +4103,8 @@ function Nd(t, e, n, r, i) {
|
|
4103
4103
|
x: 0,
|
4104
4104
|
y: 0
|
4105
4105
|
}), c = Cl(u, l, this.bounds, this.position), p = 0, d = Object.entries(c); p < d.length; p++) {
|
4106
|
-
var
|
4107
|
-
this.container.style[y] =
|
4106
|
+
var v = d[p], y = v[0], h = v[1];
|
4107
|
+
this.container.style[y] = h;
|
4108
4108
|
}
|
4109
4109
|
}, s.prototype.onRemove = function() {
|
4110
4110
|
this.container.parentNode !== null && this.container.parentNode.removeChild(this.container);
|
@@ -4719,16 +4719,16 @@ function ib(t) {
|
|
4719
4719
|
className: l = "",
|
4720
4720
|
children: c,
|
4721
4721
|
...p
|
4722
|
-
} = t,
|
4722
|
+
} = t, v = { xs: 12, sm: 16, md: 20, lg: 24 }[a], f = `arkynButton ${e ? "loadingTrue" : "loadingFalse"} ${r} ${n} ${a} ${i ? "loadingTextTrue" : "loadingTextFalse"} ${l}`;
|
4723
4723
|
return /* @__PURE__ */ x.jsxs("button", { className: f, disabled: u || e, ...p, children: [
|
4724
4724
|
/* @__PURE__ */ x.jsxs("div", { className: "arkynButtonSpinner", children: [
|
4725
|
-
/* @__PURE__ */ x.jsx(Ln, { size:
|
4725
|
+
/* @__PURE__ */ x.jsx(Ln, { size: v, strokeWidth: 2.5 }),
|
4726
4726
|
i && i
|
4727
4727
|
] }),
|
4728
4728
|
/* @__PURE__ */ x.jsxs("div", { className: "arkynButtonContent", children: [
|
4729
|
-
qr(
|
4729
|
+
qr(v, o),
|
4730
4730
|
c,
|
4731
|
-
qr(
|
4731
|
+
qr(v, s)
|
4732
4732
|
] })
|
4733
4733
|
] });
|
4734
4734
|
}
|
@@ -4765,10 +4765,10 @@ function ob(t) {
|
|
4765
4765
|
onCheck: s,
|
4766
4766
|
value: u,
|
4767
4767
|
...l
|
4768
|
-
} = t, { id: c, inputRef: p, error: d } = St(),
|
4768
|
+
} = t, { id: c, inputRef: p, error: d } = St(), v = i || !!d, [y, h] = $(a || !1), f = typeof o == "boolean" ? o : y, b = `arkynCheckbox ${r} ${v ? "errorTrue" : "errorFalse"} ${f ? "checkedTrue" : "checkedFalse"} ${n}`;
|
4769
4769
|
function S() {
|
4770
4770
|
const D = y;
|
4771
|
-
|
4771
|
+
h(!D), s && s(D ? "" : u || "checked");
|
4772
4772
|
}
|
4773
4773
|
return /* @__PURE__ */ x.jsxs(
|
4774
4774
|
"button",
|
@@ -4840,39 +4840,39 @@ function Hd(t, e) {
|
|
4840
4840
|
rightIcon: c,
|
4841
4841
|
disabled: p,
|
4842
4842
|
defaultValue: d,
|
4843
|
-
readOnly:
|
4843
|
+
readOnly: v,
|
4844
4844
|
onFocus: y,
|
4845
|
-
onBlur:
|
4845
|
+
onBlur: h,
|
4846
4846
|
title: f,
|
4847
4847
|
style: C,
|
4848
4848
|
onChange: w,
|
4849
4849
|
...b
|
4850
4850
|
} = t;
|
4851
|
-
function S(
|
4852
|
-
let
|
4853
|
-
const J = El(
|
4854
|
-
if (!(
|
4855
|
-
return
|
4851
|
+
function S(T) {
|
4852
|
+
let j = ba(T);
|
4853
|
+
const J = El(j);
|
4854
|
+
if (!(j.length > wl))
|
4855
|
+
return j = bl(j, Ea[J]), j;
|
4856
4856
|
}
|
4857
|
-
const D = c ? "right" : "left", z = `arkyn_input ${s ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${o} ${i} ${p ||
|
4857
|
+
const D = c ? "right" : "left", z = `arkyn_input ${s ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${o} ${i} ${p || v || n ? "opacity" : ""} ${r ? "errored" : ""} ${e ? "focused" : ""} ${a}`, N = { md: 20, lg: 20 }[i];
|
4858
4858
|
return {
|
4859
4859
|
isLoading: n,
|
4860
4860
|
className: z,
|
4861
|
-
prefix: sn(s,
|
4862
|
-
sufix: sn(u,
|
4861
|
+
prefix: sn(s, N, "prefix"),
|
4862
|
+
sufix: sn(u, N, "sufix"),
|
4863
4863
|
LeftIcon: l,
|
4864
4864
|
RightIcon: c,
|
4865
4865
|
defaultValue: S(d || ""),
|
4866
4866
|
disabled: p,
|
4867
|
-
readOnly:
|
4867
|
+
readOnly: v,
|
4868
4868
|
onFocus: y,
|
4869
|
-
onBlur:
|
4869
|
+
onBlur: h,
|
4870
4870
|
title: f,
|
4871
4871
|
style: C,
|
4872
4872
|
onChange: w,
|
4873
4873
|
loadingPosition: D,
|
4874
|
-
iconSize:
|
4875
|
-
Spinner: /* @__PURE__ */ x.jsx(Ln, { className: "spinner", size:
|
4874
|
+
iconSize: N,
|
4875
|
+
Spinner: /* @__PURE__ */ x.jsx(Ln, { className: "spinner", size: N, strokeWidth: 2.5 }),
|
4876
4876
|
...b
|
4877
4877
|
};
|
4878
4878
|
}
|
@@ -4882,9 +4882,9 @@ function Vd(t) {
|
|
4882
4882
|
title: c,
|
4883
4883
|
style: p,
|
4884
4884
|
className: d,
|
4885
|
-
prefix:
|
4885
|
+
prefix: v,
|
4886
4886
|
sufix: y,
|
4887
|
-
iconSize:
|
4887
|
+
iconSize: h,
|
4888
4888
|
loadingPosition: f,
|
4889
4889
|
isLoading: C,
|
4890
4890
|
LeftIcon: w,
|
@@ -4893,18 +4893,18 @@ function Vd(t) {
|
|
4893
4893
|
onBlur: D,
|
4894
4894
|
RightIcon: E,
|
4895
4895
|
Spinner: A,
|
4896
|
-
onChange:
|
4896
|
+
onChange: M,
|
4897
4897
|
value: V,
|
4898
|
-
defaultValue:
|
4898
|
+
defaultValue: F,
|
4899
4899
|
...z
|
4900
|
-
} = Hd({ ...t, id: a, isError: u }, e), [
|
4900
|
+
} = Hd({ ...t, id: a, isError: u }, e), [R, N] = $(F), T = w && !C, j = E && !C, J = f === "left" && C, _ = f === "right" && C;
|
4901
4901
|
function te() {
|
4902
4902
|
l || !(s != null && s.current) || (n(!0), s.current.focus());
|
4903
4903
|
}
|
4904
4904
|
function ae(Z) {
|
4905
4905
|
let H = ba(Z.target.value);
|
4906
4906
|
const ee = El(H);
|
4907
|
-
H.length > wl || (H = bl(H, Ea[ee]), Z.target.value = H,
|
4907
|
+
H.length > wl || (H = bl(H, Ea[ee]), Z.target.value = H, N(H), M && M(Z));
|
4908
4908
|
}
|
4909
4909
|
function k(Z) {
|
4910
4910
|
n(!0), S && S(Z);
|
@@ -4920,23 +4920,23 @@ function Vd(t) {
|
|
4920
4920
|
onClick: te,
|
4921
4921
|
className: d,
|
4922
4922
|
children: [
|
4923
|
-
|
4923
|
+
v,
|
4924
4924
|
J && A,
|
4925
|
-
|
4925
|
+
T && /* @__PURE__ */ x.jsx(w, { size: h, strokeWidth: 2.5 }),
|
4926
4926
|
/* @__PURE__ */ x.jsx(
|
4927
4927
|
"input",
|
4928
4928
|
{
|
4929
4929
|
disabled: l || C,
|
4930
4930
|
readOnly: b,
|
4931
4931
|
ref: s,
|
4932
|
-
value: V ||
|
4932
|
+
value: V || R,
|
4933
4933
|
onFocus: k,
|
4934
4934
|
onChange: ae,
|
4935
4935
|
onBlur: I,
|
4936
4936
|
...z
|
4937
4937
|
}
|
4938
4938
|
),
|
4939
|
-
|
4939
|
+
j && /* @__PURE__ */ x.jsx(E, { size: h, strokeWidth: 2.5 }),
|
4940
4940
|
_ && A,
|
4941
4941
|
y
|
4942
4942
|
]
|
@@ -4970,36 +4970,36 @@ function Gd(t, e) {
|
|
4970
4970
|
rightIcon: c,
|
4971
4971
|
disabled: p,
|
4972
4972
|
readOnly: d,
|
4973
|
-
onFocus:
|
4973
|
+
onFocus: v,
|
4974
4974
|
onBlur: y,
|
4975
|
-
title:
|
4975
|
+
title: h,
|
4976
4976
|
style: f,
|
4977
4977
|
// showCents = false,
|
4978
4978
|
max: C = 1e9,
|
4979
4979
|
locale: w = "pt-BR",
|
4980
4980
|
currency: b = "BRL",
|
4981
4981
|
...S
|
4982
|
-
} = t, D = c ? "right" : "left", z = `arkyn_input ${s ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${o} ${i} ${p || d || n ? "opacity" : ""} ${r ? "errored" : ""} ${e ? "focused" : ""} ${a}`,
|
4982
|
+
} = t, D = c ? "right" : "left", z = `arkyn_input ${s ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${o} ${i} ${p || d || n ? "opacity" : ""} ${r ? "errored" : ""} ${e ? "focused" : ""} ${a}`, N = { md: 20, lg: 20 }[i];
|
4983
4983
|
return {
|
4984
4984
|
isLoading: n,
|
4985
4985
|
className: z,
|
4986
|
-
prefix: sn(s,
|
4987
|
-
sufix: sn(u,
|
4986
|
+
prefix: sn(s, N, "prefix"),
|
4987
|
+
sufix: sn(u, N, "sufix"),
|
4988
4988
|
LeftIcon: l,
|
4989
4989
|
RightIcon: c,
|
4990
4990
|
disabled: p,
|
4991
4991
|
locale: w,
|
4992
4992
|
currency: b,
|
4993
4993
|
readOnly: d,
|
4994
|
-
onFocus:
|
4994
|
+
onFocus: v,
|
4995
4995
|
onBlur: y,
|
4996
|
-
title:
|
4996
|
+
title: h,
|
4997
4997
|
style: f,
|
4998
4998
|
max: C,
|
4999
4999
|
// showCents,
|
5000
5000
|
loadingPosition: D,
|
5001
|
-
iconSize:
|
5002
|
-
Spinner: /* @__PURE__ */ x.jsx(Ln, { className: "spinner", size:
|
5001
|
+
iconSize: N,
|
5002
|
+
Spinner: /* @__PURE__ */ x.jsx(Ln, { className: "spinner", size: N, strokeWidth: 2.5 }),
|
5003
5003
|
...S
|
5004
5004
|
};
|
5005
5005
|
}
|
@@ -5007,9 +5007,9 @@ function Yd(t) {
|
|
5007
5007
|
const [e, n] = $(!1), [r, i] = $("0"), a = qe(null), { inputRef: o, id: s, error: u } = St(), l = o || a, c = t.isError || !!u, {
|
5008
5008
|
disabled: p,
|
5009
5009
|
title: d,
|
5010
|
-
style:
|
5010
|
+
style: v,
|
5011
5011
|
className: y,
|
5012
|
-
prefix:
|
5012
|
+
prefix: h,
|
5013
5013
|
sufix: f,
|
5014
5014
|
iconSize: C,
|
5015
5015
|
loadingPosition: w,
|
@@ -5018,18 +5018,18 @@ function Yd(t) {
|
|
5018
5018
|
readOnly: D,
|
5019
5019
|
onFocus: E,
|
5020
5020
|
onBlur: A,
|
5021
|
-
RightIcon:
|
5021
|
+
RightIcon: M,
|
5022
5022
|
Spinner: V,
|
5023
|
-
value:
|
5023
|
+
value: F,
|
5024
5024
|
max: z,
|
5025
|
-
onChangeValue:
|
5026
|
-
onKeyPress:
|
5027
|
-
currency:
|
5028
|
-
locale:
|
5025
|
+
onChangeValue: R,
|
5026
|
+
onKeyPress: N,
|
5027
|
+
currency: T,
|
5028
|
+
locale: j,
|
5029
5029
|
name: J,
|
5030
5030
|
defaultValue: _,
|
5031
5031
|
...te
|
5032
|
-
} = Gd({ ...t, id: s, isError: c }, e), ae = S && !b, k =
|
5032
|
+
} = Gd({ ...t, id: s, isError: c }, e), ae = S && !b, k = M && !b, I = w === "left" && b, Z = w === "right" && b;
|
5033
5033
|
function H() {
|
5034
5034
|
p || !(l != null && l.current) || (n(!0), l.current.focus());
|
5035
5035
|
}
|
@@ -5041,28 +5041,28 @@ function Yd(t) {
|
|
5041
5041
|
}
|
5042
5042
|
const m = (P) => {
|
5043
5043
|
const [Q, ie] = Go(
|
5044
|
-
|
5044
|
+
j,
|
5045
5045
|
P,
|
5046
|
-
|
5046
|
+
T
|
5047
5047
|
);
|
5048
5048
|
return !z || Q <= z ? (i(ie), [Q, ie]) : [Yi(r), r];
|
5049
5049
|
}, U = (P) => {
|
5050
5050
|
P.preventDefault();
|
5051
5051
|
const [Q, ie] = m(P.target.value);
|
5052
|
-
|
5053
|
-
}, W = (P) =>
|
5052
|
+
R(P, String(Q), String(ie));
|
5053
|
+
}, W = (P) => N && N(P, P.key, P.key);
|
5054
5054
|
return B(() => {
|
5055
|
-
const P =
|
5055
|
+
const P = F || +_ || void 0, [, Q] = Go(j, P, T);
|
5056
5056
|
i(Q);
|
5057
|
-
}, [
|
5057
|
+
}, [T, _, F]), /* @__PURE__ */ x.jsxs(
|
5058
5058
|
"section",
|
5059
5059
|
{
|
5060
5060
|
title: d,
|
5061
|
-
style:
|
5061
|
+
style: v,
|
5062
5062
|
onClick: H,
|
5063
5063
|
className: y,
|
5064
5064
|
children: [
|
5065
|
-
|
5065
|
+
h,
|
5066
5066
|
I && V,
|
5067
5067
|
ae && /* @__PURE__ */ x.jsx(S, { size: C, strokeWidth: 2.5 }),
|
5068
5068
|
/* @__PURE__ */ x.jsx(
|
@@ -5088,7 +5088,7 @@ function Yd(t) {
|
|
5088
5088
|
}
|
5089
5089
|
),
|
5090
5090
|
Z && V,
|
5091
|
-
k && /* @__PURE__ */ x.jsx(
|
5091
|
+
k && /* @__PURE__ */ x.jsx(M, { size: C, strokeWidth: 2.5 }),
|
5092
5092
|
f
|
5093
5093
|
]
|
5094
5094
|
}
|
@@ -5107,33 +5107,33 @@ function Kd(t, e) {
|
|
5107
5107
|
rightIcon: c,
|
5108
5108
|
disabled: p,
|
5109
5109
|
readOnly: d,
|
5110
|
-
onFocus:
|
5110
|
+
onFocus: v,
|
5111
5111
|
onBlur: y,
|
5112
|
-
title:
|
5112
|
+
title: h,
|
5113
5113
|
style: f,
|
5114
5114
|
onChange: C,
|
5115
5115
|
showMask: w = !1,
|
5116
5116
|
type: b,
|
5117
5117
|
...S
|
5118
|
-
} = t, D = c ? "right" : "left", z = `arkyn_input ${s ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${o} ${i} ${p || d || n ? "opacity" : ""} ${r ? "errored" : ""} ${e ? "focused" : ""} ${a}`,
|
5118
|
+
} = t, D = c ? "right" : "left", z = `arkyn_input ${s ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${o} ${i} ${p || d || n ? "opacity" : ""} ${r ? "errored" : ""} ${e ? "focused" : ""} ${a}`, N = { md: 20, lg: 20 }[i];
|
5119
5119
|
return {
|
5120
5120
|
isLoading: n,
|
5121
5121
|
className: z,
|
5122
|
-
prefix: sn(s,
|
5123
|
-
sufix: sn(u,
|
5122
|
+
prefix: sn(s, N, "prefix"),
|
5123
|
+
sufix: sn(u, N, "sufix"),
|
5124
5124
|
LeftIcon: l,
|
5125
5125
|
RightIcon: c,
|
5126
5126
|
disabled: p,
|
5127
5127
|
readOnly: d,
|
5128
|
-
onFocus:
|
5128
|
+
onFocus: v,
|
5129
5129
|
onBlur: y,
|
5130
|
-
title:
|
5130
|
+
title: h,
|
5131
5131
|
style: f,
|
5132
5132
|
onChange: C,
|
5133
5133
|
loadingPosition: D,
|
5134
|
-
iconSize:
|
5134
|
+
iconSize: N,
|
5135
5135
|
showMask: w,
|
5136
|
-
Spinner: /* @__PURE__ */ x.jsx(Ln, { className: "spinner", size:
|
5136
|
+
Spinner: /* @__PURE__ */ x.jsx(Ln, { className: "spinner", size: N, strokeWidth: 2.5 }),
|
5137
5137
|
...S
|
5138
5138
|
};
|
5139
5139
|
}
|
@@ -5144,9 +5144,9 @@ function Jd(t) {
|
|
5144
5144
|
title: c,
|
5145
5145
|
style: p,
|
5146
5146
|
className: d,
|
5147
|
-
prefix:
|
5147
|
+
prefix: v,
|
5148
5148
|
sufix: y,
|
5149
|
-
iconSize:
|
5149
|
+
iconSize: h,
|
5150
5150
|
loadingPosition: f,
|
5151
5151
|
isLoading: C,
|
5152
5152
|
LeftIcon: w,
|
@@ -5155,15 +5155,15 @@ function Jd(t) {
|
|
5155
5155
|
onBlur: D,
|
5156
5156
|
RightIcon: E,
|
5157
5157
|
Spinner: A,
|
5158
|
-
...
|
5159
|
-
} = Kd({ ...t, id: a, isError: u }, e), V = w && !C,
|
5160
|
-
function
|
5158
|
+
...M
|
5159
|
+
} = Kd({ ...t, id: a, isError: u }, e), V = w && !C, F = E && !C, z = f === "left" && C, R = f === "right" && C;
|
5160
|
+
function N() {
|
5161
5161
|
l || !(s != null && s.current) || (n(!0), s.current.focus());
|
5162
5162
|
}
|
5163
|
-
function
|
5163
|
+
function T(J) {
|
5164
5164
|
n(!0), S && S(J);
|
5165
5165
|
}
|
5166
|
-
function
|
5166
|
+
function j(J) {
|
5167
5167
|
n(!1), D && D(J);
|
5168
5168
|
}
|
5169
5169
|
return /* @__PURE__ */ x.jsxs(
|
@@ -5171,25 +5171,25 @@ function Jd(t) {
|
|
5171
5171
|
{
|
5172
5172
|
title: c,
|
5173
5173
|
style: p,
|
5174
|
-
onClick:
|
5174
|
+
onClick: N,
|
5175
5175
|
className: d,
|
5176
5176
|
children: [
|
5177
|
-
|
5177
|
+
v,
|
5178
5178
|
z && A,
|
5179
|
-
V && /* @__PURE__ */ x.jsx(w, { size:
|
5179
|
+
V && /* @__PURE__ */ x.jsx(w, { size: h, strokeWidth: 2.5 }),
|
5180
5180
|
/* @__PURE__ */ x.jsx(
|
5181
5181
|
mf,
|
5182
5182
|
{
|
5183
5183
|
component: Xd,
|
5184
5184
|
ref: s,
|
5185
|
-
onFocus:
|
5186
|
-
onBlur:
|
5185
|
+
onFocus: T,
|
5186
|
+
onBlur: j,
|
5187
5187
|
disabled: l,
|
5188
|
-
...
|
5188
|
+
...M
|
5189
5189
|
}
|
5190
5190
|
),
|
5191
|
-
|
5192
|
-
|
5191
|
+
F && /* @__PURE__ */ x.jsx(E, { size: h, strokeWidth: 2.5 }),
|
5192
|
+
R && A,
|
5193
5193
|
y
|
5194
5194
|
]
|
5195
5195
|
}
|
@@ -5208,9 +5208,9 @@ function Qd(t, e) {
|
|
5208
5208
|
rightIcon: c,
|
5209
5209
|
disabled: p,
|
5210
5210
|
readOnly: d,
|
5211
|
-
onFocus:
|
5211
|
+
onFocus: v,
|
5212
5212
|
onBlur: y,
|
5213
|
-
title:
|
5213
|
+
title: h,
|
5214
5214
|
style: f,
|
5215
5215
|
onChange: C,
|
5216
5216
|
...w
|
@@ -5224,9 +5224,9 @@ function Qd(t, e) {
|
|
5224
5224
|
RightIcon: c,
|
5225
5225
|
disabled: p,
|
5226
5226
|
readOnly: d,
|
5227
|
-
onFocus:
|
5227
|
+
onFocus: v,
|
5228
5228
|
onBlur: y,
|
5229
|
-
title:
|
5229
|
+
title: h,
|
5230
5230
|
style: f,
|
5231
5231
|
onChange: C,
|
5232
5232
|
loadingPosition: b,
|
@@ -5241,9 +5241,9 @@ function ep(t) {
|
|
5241
5241
|
title: c,
|
5242
5242
|
style: p,
|
5243
5243
|
className: d,
|
5244
|
-
prefix:
|
5244
|
+
prefix: v,
|
5245
5245
|
sufix: y,
|
5246
|
-
iconSize:
|
5246
|
+
iconSize: h,
|
5247
5247
|
loadingPosition: f,
|
5248
5248
|
isLoading: C,
|
5249
5249
|
LeftIcon: w,
|
@@ -5252,13 +5252,13 @@ function ep(t) {
|
|
5252
5252
|
onBlur: D,
|
5253
5253
|
RightIcon: E,
|
5254
5254
|
type: A,
|
5255
|
-
Spinner:
|
5255
|
+
Spinner: M,
|
5256
5256
|
...V
|
5257
|
-
} = Qd({ ...t, id: a, isError: u }, e),
|
5258
|
-
function
|
5257
|
+
} = Qd({ ...t, id: a, isError: u }, e), F = w && !C, z = E && !C, R = f === "left" && C, N = f === "right" && C;
|
5258
|
+
function T() {
|
5259
5259
|
l || !(s != null && s.current) || (n(!0), s.current.focus());
|
5260
5260
|
}
|
5261
|
-
function
|
5261
|
+
function j(_) {
|
5262
5262
|
n(!0), S && S(_);
|
5263
5263
|
}
|
5264
5264
|
function J(_) {
|
@@ -5278,26 +5278,26 @@ function ep(t) {
|
|
5278
5278
|
{
|
5279
5279
|
title: c,
|
5280
5280
|
style: p,
|
5281
|
-
onClick:
|
5281
|
+
onClick: T,
|
5282
5282
|
className: d,
|
5283
5283
|
children: [
|
5284
|
-
|
5285
|
-
|
5286
|
-
|
5284
|
+
v,
|
5285
|
+
R && M,
|
5286
|
+
F && /* @__PURE__ */ x.jsx(w, { size: h, strokeWidth: 2.5 }),
|
5287
5287
|
/* @__PURE__ */ x.jsx(
|
5288
5288
|
"input",
|
5289
5289
|
{
|
5290
5290
|
disabled: l || C,
|
5291
5291
|
readOnly: b,
|
5292
5292
|
ref: s,
|
5293
|
-
onFocus:
|
5293
|
+
onFocus: j,
|
5294
5294
|
onBlur: J,
|
5295
5295
|
type: A,
|
5296
5296
|
...V
|
5297
5297
|
}
|
5298
5298
|
),
|
5299
|
-
z && /* @__PURE__ */ x.jsx(E, { size:
|
5300
|
-
|
5299
|
+
z && /* @__PURE__ */ x.jsx(E, { size: h, strokeWidth: 2.5 }),
|
5300
|
+
N && M,
|
5301
5301
|
y
|
5302
5302
|
]
|
5303
5303
|
}
|
@@ -5313,7 +5313,7 @@ function lb({
|
|
5313
5313
|
...r
|
5314
5314
|
}) {
|
5315
5315
|
const [i, a] = $(null), o = (u) => a(u), s = () => {
|
5316
|
-
var
|
5316
|
+
var v, y, h, f;
|
5317
5317
|
const l = i.getPlaces()[0], c = l == null ? void 0 : l.address_components;
|
5318
5318
|
function p(C) {
|
5319
5319
|
const w = c.find((b) => b.types[0] === C);
|
@@ -5324,7 +5324,7 @@ function lb({
|
|
5324
5324
|
return w ? w.short_name : "";
|
5325
5325
|
}
|
5326
5326
|
if (l) {
|
5327
|
-
const C = p("route"), w = p("street_number"), b = p("sublocality_level_1"), S = p("administrative_area_level_2"), D = p("administrative_area_level_1"), E = d("administrative_area_level_1"), A = p("postal_code"),
|
5327
|
+
const C = p("route"), w = p("street_number"), b = p("sublocality_level_1"), S = p("administrative_area_level_2"), D = p("administrative_area_level_1"), E = d("administrative_area_level_1"), A = p("postal_code"), M = (y = (v = l.geometry) == null ? void 0 : v.location) == null ? void 0 : y.lat(), V = (f = (h = l.geometry) == null ? void 0 : h.location) == null ? void 0 : f.lng();
|
5328
5328
|
e && e({
|
5329
5329
|
street: C,
|
5330
5330
|
city: S,
|
@@ -5333,7 +5333,7 @@ function lb({
|
|
5333
5333
|
cep: A,
|
5334
5334
|
streetNumber: w,
|
5335
5335
|
stateShortName: E,
|
5336
|
-
coordinates: { lat:
|
5336
|
+
coordinates: { lat: M, lng: V }
|
5337
5337
|
});
|
5338
5338
|
}
|
5339
5339
|
};
|
@@ -5388,7 +5388,7 @@ function fb(t) {
|
|
5388
5388
|
function d(y) {
|
5389
5389
|
l(y), i && i(y);
|
5390
5390
|
}
|
5391
|
-
const
|
5391
|
+
const v = `arkynRadioGroup ${a} ${o}`;
|
5392
5392
|
return /* @__PURE__ */ x.jsxs(
|
5393
5393
|
Bl.Provider,
|
5394
5394
|
{
|
@@ -5406,7 +5406,7 @@ function fb(t) {
|
|
5406
5406
|
value: r || u
|
5407
5407
|
}
|
5408
5408
|
),
|
5409
|
-
/* @__PURE__ */ x.jsx("div", { className:
|
5409
|
+
/* @__PURE__ */ x.jsx("div", { className: v.trim(), ...s })
|
5410
5410
|
]
|
5411
5411
|
}
|
5412
5412
|
);
|
@@ -5419,8 +5419,8 @@ function db(t) {
|
|
5419
5419
|
children: i,
|
5420
5420
|
className: a = "",
|
5421
5421
|
...o
|
5422
|
-
} = t, { onChange: s, size: u, value: l } = np(), { error: c } = St(),
|
5423
|
-
return /* @__PURE__ */ x.jsxs("label", { className:
|
5422
|
+
} = t, { onChange: s, size: u, value: l } = np(), { error: c } = St(), h = `arkynRadioBox ${n || u} ${l === e ? "checkedTrue" : "checkedFalse"} ${c ? "errorTrue" : "errorFalse"} ${r ? "disabledTrue" : "disabledFalse"} ${a}`;
|
5423
|
+
return /* @__PURE__ */ x.jsxs("label", { className: h.trim(), children: [
|
5424
5424
|
/* @__PURE__ */ x.jsx(
|
5425
5425
|
"button",
|
5426
5426
|
{
|
@@ -5529,12 +5529,12 @@ function Ll(t, e) {
|
|
5529
5529
|
var s = !0, u = !1, l = void 0;
|
5530
5530
|
try {
|
5531
5531
|
for (var c = i[Symbol.iterator](), p; !(s = (p = c.next()).done); s = !0) {
|
5532
|
-
var d = p.value,
|
5533
|
-
|
5534
|
-
var y = Ba(d),
|
5535
|
-
if (d.length > 1 && !
|
5532
|
+
var d = p.value, v = d.endsWith("?") && d.length > 1;
|
5533
|
+
v && (d = d.slice(0, -1));
|
5534
|
+
var y = Ba(d), h = Ci[y];
|
5535
|
+
if (d.length > 1 && !h && !xl[d] && !wa[y])
|
5536
5536
|
throw new TypeError('Unknown modifier: "' + d + '"');
|
5537
|
-
(a === 1 || !
|
5537
|
+
(a === 1 || !h) && (n ? r.key = y : r.which = Ol(d)), h && (r[h] = v ? null : !0);
|
5538
5538
|
}
|
5539
5539
|
} catch (f) {
|
5540
5540
|
u = !0, l = f;
|
@@ -6250,8 +6250,8 @@ var ts = Ot.createDraft.bind(Ot), ns = Ot.finishDraft.bind(Ot), yp = {
|
|
6250
6250
|
if (O.equals(p, d))
|
6251
6251
|
return r;
|
6252
6252
|
if (O.isAncestor(p, r) || O.equals(p, r)) {
|
6253
|
-
var
|
6254
|
-
return O.endsBefore(p, d) && p.length < d.length && (
|
6253
|
+
var v = d.slice();
|
6254
|
+
return O.endsBefore(p, d) && p.length < d.length && (v[p.length - 1] -= 1), v.concat(r.slice(p.length));
|
6255
6255
|
} else O.isSibling(p, d) && (O.isAncestor(d, r) || O.equals(d, r)) ? O.endsBefore(p, r) ? r[p.length - 1] -= 1 : r[p.length - 1] += 1 : O.endsBefore(d, r) || O.equals(d, r) || O.isAncestor(d, r) ? (O.endsBefore(p, r) && (r[p.length - 1] -= 1), r[d.length - 1] += 1) : O.endsBefore(p, r) && (O.equals(d, r) && (r[d.length - 1] += 1), r[p.length - 1] -= 1);
|
6256
6256
|
break;
|
6257
6257
|
}
|
@@ -6331,10 +6331,10 @@ var wp = (t, e, n) => {
|
|
6331
6331
|
text: p
|
6332
6332
|
} = n;
|
6333
6333
|
if (p.length === 0) break;
|
6334
|
-
var d = oe.leaf(t, l),
|
6335
|
-
if (d.text =
|
6336
|
-
for (var [
|
6337
|
-
e[f] = Se.transform(
|
6334
|
+
var d = oe.leaf(t, l), v = d.text.slice(0, c), y = d.text.slice(c);
|
6335
|
+
if (d.text = v + p + y, e)
|
6336
|
+
for (var [h, f] of q.points(e))
|
6337
|
+
e[f] = Se.transform(h, n);
|
6338
6338
|
break;
|
6339
6339
|
}
|
6340
6340
|
case "merge_node": {
|
@@ -6348,21 +6348,21 @@ var wp = (t, e, n) => {
|
|
6348
6348
|
else
|
6349
6349
|
throw new Error('Cannot apply a "merge_node" operation at path ['.concat(C, "] to nodes of different interfaces: ").concat(pt.stringify(w), " ").concat(pt.stringify(S)));
|
6350
6350
|
if (D.children.splice(E, 1), e)
|
6351
|
-
for (var [A,
|
6352
|
-
e[
|
6351
|
+
for (var [A, M] of q.points(e))
|
6352
|
+
e[M] = Se.transform(A, n);
|
6353
6353
|
break;
|
6354
6354
|
}
|
6355
6355
|
case "move_node": {
|
6356
6356
|
var {
|
6357
6357
|
path: V,
|
6358
|
-
newPath:
|
6358
|
+
newPath: F
|
6359
6359
|
} = n;
|
6360
|
-
if (O.isAncestor(V,
|
6361
|
-
throw new Error("Cannot move a path [".concat(V, "] to new path [").concat(
|
6362
|
-
var z = oe.get(t, V),
|
6363
|
-
|
6364
|
-
var
|
6365
|
-
if (
|
6360
|
+
if (O.isAncestor(V, F))
|
6361
|
+
throw new Error("Cannot move a path [".concat(V, "] to new path [").concat(F, "] because the destination is inside itself."));
|
6362
|
+
var z = oe.get(t, V), R = oe.parent(t, V), N = V[V.length - 1];
|
6363
|
+
R.children.splice(N, 1);
|
6364
|
+
var T = O.transform(V, n), j = oe.get(t, O.parent(T)), J = T[T.length - 1];
|
6365
|
+
if (j.children.splice(J, 0, z), e)
|
6366
6366
|
for (var [_, te] of q.points(e))
|
6367
6367
|
e[te] = Se.transform(_, n);
|
6368
6368
|
break;
|
@@ -6781,8 +6781,8 @@ var q = {
|
|
6781
6781
|
var [i, a] = q.edges(e), o = oe.nodes(r, {
|
6782
6782
|
reverse: !0,
|
6783
6783
|
pass: (d) => {
|
6784
|
-
var [,
|
6785
|
-
return !q.includes(e,
|
6784
|
+
var [, v] = d;
|
6785
|
+
return !q.includes(e, v);
|
6786
6786
|
}
|
6787
6787
|
});
|
6788
6788
|
for (var [, s] of o) {
|
@@ -7391,33 +7391,33 @@ var de = {
|
|
7391
7391
|
for (var p of n) {
|
7392
7392
|
var {
|
7393
7393
|
length: d
|
7394
|
-
} = p.text,
|
7395
|
-
if (u += d, l <=
|
7394
|
+
} = p.text, v = u;
|
7395
|
+
if (u += d, l <= v && u <= c) {
|
7396
7396
|
Object.assign(p, i), s.push(p);
|
7397
7397
|
continue;
|
7398
7398
|
}
|
7399
|
-
if (l !== c && (l === u || c ===
|
7399
|
+
if (l !== c && (l === u || c === v) || l > u || c < v || c === v && v !== 0) {
|
7400
7400
|
s.push(p);
|
7401
7401
|
continue;
|
7402
7402
|
}
|
7403
|
-
var y = p,
|
7403
|
+
var y = p, h = void 0, f = void 0;
|
7404
7404
|
if (c < u) {
|
7405
|
-
var C = c -
|
7405
|
+
var C = c - v;
|
7406
7406
|
f = Ht(Ht({}, y), {}, {
|
7407
7407
|
text: y.text.slice(C)
|
7408
7408
|
}), y = Ht(Ht({}, y), {}, {
|
7409
7409
|
text: y.text.slice(0, C)
|
7410
7410
|
});
|
7411
7411
|
}
|
7412
|
-
if (l >
|
7413
|
-
var w = l -
|
7414
|
-
|
7412
|
+
if (l > v) {
|
7413
|
+
var w = l - v;
|
7414
|
+
h = Ht(Ht({}, y), {}, {
|
7415
7415
|
text: y.text.slice(0, w)
|
7416
7416
|
}), y = Ht(Ht({}, y), {}, {
|
7417
7417
|
text: y.text.slice(w)
|
7418
7418
|
});
|
7419
7419
|
}
|
7420
|
-
Object.assign(y, i),
|
7420
|
+
Object.assign(y, i), h && s.push(h), s.push(y), f && s.push(f);
|
7421
7421
|
}
|
7422
7422
|
n = s;
|
7423
7423
|
}
|
@@ -7650,8 +7650,8 @@ var uh = (t, e) => {
|
|
7650
7650
|
var {
|
7651
7651
|
node: r,
|
7652
7652
|
path: i
|
7653
|
-
} = e, a = O.levels(i), o = de.isText(r) ? [] : Array.from(oe.nodes(r), (
|
7654
|
-
var [, z] =
|
7653
|
+
} = e, a = O.levels(i), o = de.isText(r) ? [] : Array.from(oe.nodes(r), (F) => {
|
7654
|
+
var [, z] = F;
|
7655
7655
|
return i.concat(z);
|
7656
7656
|
});
|
7657
7657
|
return [...a, ...o];
|
@@ -7669,17 +7669,17 @@ var uh = (t, e) => {
|
|
7669
7669
|
} = e;
|
7670
7670
|
if (O.equals(c, p))
|
7671
7671
|
return [];
|
7672
|
-
var d = [],
|
7672
|
+
var d = [], v = [];
|
7673
7673
|
for (var y of O.ancestors(c)) {
|
7674
|
-
var
|
7675
|
-
d.push(
|
7674
|
+
var h = O.transform(y, e);
|
7675
|
+
d.push(h);
|
7676
7676
|
}
|
7677
7677
|
for (var f of O.ancestors(p)) {
|
7678
7678
|
var C = O.transform(f, e);
|
7679
|
-
|
7679
|
+
v.push(C);
|
7680
7680
|
}
|
7681
|
-
var w =
|
7682
|
-
return [...d, ...
|
7681
|
+
var w = v[v.length - 1], b = p[p.length - 1], S = w.concat(b);
|
7682
|
+
return [...d, ...v, S];
|
7683
7683
|
}
|
7684
7684
|
case "remove_node": {
|
7685
7685
|
var {
|
@@ -7690,8 +7690,8 @@ var uh = (t, e) => {
|
|
7690
7690
|
case "split_node": {
|
7691
7691
|
var {
|
7692
7692
|
path: A
|
7693
|
-
} = e,
|
7694
|
-
return [...
|
7693
|
+
} = e, M = O.levels(A), V = O.next(A);
|
7694
|
+
return [...M, V];
|
7695
7695
|
}
|
7696
7696
|
default:
|
7697
7697
|
return [];
|
@@ -7726,10 +7726,10 @@ var uh = (t, e) => {
|
|
7726
7726
|
else if (fe.isElement(l)) {
|
7727
7727
|
if (t.isInline(l)) {
|
7728
7728
|
if (c == null || !de.isText(c)) {
|
7729
|
-
var
|
7729
|
+
var v = {
|
7730
7730
|
text: ""
|
7731
7731
|
};
|
7732
|
-
ne.insertNodes(t,
|
7732
|
+
ne.insertNodes(t, v, {
|
7733
7733
|
at: r.concat(o),
|
7734
7734
|
voids: !0
|
7735
7735
|
}), o++;
|
@@ -7745,8 +7745,8 @@ var uh = (t, e) => {
|
|
7745
7745
|
}
|
7746
7746
|
} else {
|
7747
7747
|
if (!de.isText(l) && !("children" in l)) {
|
7748
|
-
var
|
7749
|
-
|
7748
|
+
var h = l;
|
7749
|
+
h.children = [];
|
7750
7750
|
}
|
7751
7751
|
c != null && de.isText(c) && (de.equals(l, c, {
|
7752
7752
|
loose: !0
|
@@ -7825,8 +7825,8 @@ var hh = (t, e, n) => {
|
|
7825
7825
|
var i = (p, d) => {
|
7826
7826
|
if (!de.isText(p))
|
7827
7827
|
return !1;
|
7828
|
-
var [
|
7829
|
-
return !t.isVoid(
|
7828
|
+
var [v, y] = g.parent(t, d);
|
7829
|
+
return !t.isVoid(v) || t.markableVoid(v);
|
7830
7830
|
}, a = q.isExpanded(r), o = !1;
|
7831
7831
|
if (!a) {
|
7832
7832
|
var [s, u] = g.node(t, r);
|
@@ -8147,18 +8147,18 @@ var Hh = ["text"], Vh = ["text"], qh = function(e) {
|
|
8147
8147
|
path: p
|
8148
8148
|
} = i, [d] = g.leaf(e, p);
|
8149
8149
|
if (i.offset === 0) {
|
8150
|
-
var
|
8150
|
+
var v = g.previous(e, {
|
8151
8151
|
at: p,
|
8152
8152
|
match: de.isText
|
8153
8153
|
}), y = g.above(e, {
|
8154
8154
|
match: (S) => fe.isElement(S) && g.isVoid(e, S) && e.markableVoid(S)
|
8155
8155
|
});
|
8156
8156
|
if (!y) {
|
8157
|
-
var
|
8157
|
+
var h = g.above(e, {
|
8158
8158
|
match: (S) => fe.isElement(S) && g.isBlock(e, S)
|
8159
8159
|
});
|
8160
|
-
if (
|
8161
|
-
var [f, C] =
|
8160
|
+
if (v && h) {
|
8161
|
+
var [f, C] = v, [, w] = h;
|
8162
8162
|
O.isAncestor(w, C) && (d = f);
|
8163
8163
|
}
|
8164
8164
|
}
|
@@ -8225,7 +8225,7 @@ function Yh(t) {
|
|
8225
8225
|
});
|
8226
8226
|
l = a ? d : p, c = a ? p : d;
|
8227
8227
|
}
|
8228
|
-
var
|
8228
|
+
var v = oe.nodes(t, {
|
8229
8229
|
reverse: a,
|
8230
8230
|
from: l,
|
8231
8231
|
to: c,
|
@@ -8233,10 +8233,10 @@ function Yh(t) {
|
|
8233
8233
|
var [D] = S;
|
8234
8234
|
return fe.isElement(D) ? !!(!o && (g.isVoid(t, D) || g.isElementReadOnly(t, D)) || s && !g.isSelectable(t, D)) : !1;
|
8235
8235
|
}
|
8236
|
-
}), y = [],
|
8237
|
-
for (var [f, C] of
|
8236
|
+
}), y = [], h;
|
8237
|
+
for (var [f, C] of v)
|
8238
8238
|
if (!(s && fe.isElement(f) && !g.isSelectable(t, f))) {
|
8239
|
-
var w =
|
8239
|
+
var w = h && O.compare(C, h[1]) === 0;
|
8240
8240
|
if (!(r === "highest" && w)) {
|
8241
8241
|
if (!u(f, C)) {
|
8242
8242
|
if (i && !w && de.isText(f))
|
@@ -8244,14 +8244,14 @@ function Yh(t) {
|
|
8244
8244
|
continue;
|
8245
8245
|
}
|
8246
8246
|
if (r === "lowest" && w) {
|
8247
|
-
|
8247
|
+
h = [f, C];
|
8248
8248
|
continue;
|
8249
8249
|
}
|
8250
|
-
var b = r === "lowest" ?
|
8251
|
-
b && (i ? y.push(b) : yield b),
|
8250
|
+
var b = r === "lowest" ? h : [f, C];
|
8251
|
+
b && (i ? y.push(b) : yield b), h = [f, C];
|
8252
8252
|
}
|
8253
8253
|
}
|
8254
|
-
r === "lowest" &&
|
8254
|
+
r === "lowest" && h && (i ? y.push(h) : yield h), i && (yield* y);
|
8255
8255
|
}
|
8256
8256
|
}();
|
8257
8257
|
}
|
@@ -8274,16 +8274,16 @@ var Kh = function(e) {
|
|
8274
8274
|
a(e).length !== 0 && g.withoutNormalizing(e, () => {
|
8275
8275
|
for (var c of a(e))
|
8276
8276
|
if (oe.has(e, c)) {
|
8277
|
-
var p = g.node(e, c), [d,
|
8277
|
+
var p = g.node(e, c), [d, v] = p;
|
8278
8278
|
fe.isElement(d) && d.children.length === 0 && e.normalizeNode(p, {
|
8279
8279
|
operation: i
|
8280
8280
|
});
|
8281
8281
|
}
|
8282
|
-
for (var y = a(e),
|
8282
|
+
for (var y = a(e), h = y.length, f = 0; y.length !== 0; ) {
|
8283
8283
|
if (!e.shouldNormalize({
|
8284
8284
|
dirtyPaths: y,
|
8285
8285
|
iteration: f,
|
8286
|
-
initialDirtyPathsLength:
|
8286
|
+
initialDirtyPathsLength: h,
|
8287
8287
|
operation: i
|
8288
8288
|
}))
|
8289
8289
|
return;
|
@@ -8389,7 +8389,7 @@ function iv(t) {
|
|
8389
8389
|
} = e;
|
8390
8390
|
if (!n)
|
8391
8391
|
return;
|
8392
|
-
var s = g.range(t, n), [u, l] = q.edges(s), c = i ? l : u, p = !1, d = "",
|
8392
|
+
var s = g.range(t, n), [u, l] = q.edges(s), c = i ? l : u, p = !1, d = "", v = 0, y = 0, h = 0;
|
8393
8393
|
for (var [f, C] of g.nodes(t, {
|
8394
8394
|
at: n,
|
8395
8395
|
reverse: i,
|
@@ -8414,27 +8414,27 @@ function iv(t) {
|
|
8414
8414
|
}
|
8415
8415
|
if (de.isText(f)) {
|
8416
8416
|
var S = O.equals(C, c.path);
|
8417
|
-
for (S ? (y = i ? c.offset : f.text.length - c.offset,
|
8417
|
+
for (S ? (y = i ? c.offset : f.text.length - c.offset, h = c.offset) : (y = f.text.length, h = i ? y : 0), (S || p || r === "offset") && (yield {
|
8418
8418
|
path: C,
|
8419
|
-
offset:
|
8419
|
+
offset: h
|
8420
8420
|
}, p = !1); ; ) {
|
8421
|
-
if (
|
8421
|
+
if (v === 0) {
|
8422
8422
|
if (d === "") break;
|
8423
|
-
|
8423
|
+
v = D(d, r, i), d = Fa(d, v, i)[1];
|
8424
8424
|
}
|
8425
|
-
if (
|
8426
|
-
|
8425
|
+
if (h = i ? h - v : h + v, y = y - v, y < 0) {
|
8426
|
+
v = -y;
|
8427
8427
|
break;
|
8428
8428
|
}
|
8429
|
-
|
8429
|
+
v = 0, yield {
|
8430
8430
|
path: C,
|
8431
|
-
offset:
|
8431
|
+
offset: h
|
8432
8432
|
};
|
8433
8433
|
}
|
8434
8434
|
}
|
8435
8435
|
}
|
8436
|
-
function D(E, A,
|
8437
|
-
return A === "character" ? Sa(E,
|
8436
|
+
function D(E, A, M) {
|
8437
|
+
return A === "character" ? Sa(E, M) : A === "word" ? $p(E, M) : A === "line" || A === "block" ? E.length : 1;
|
8438
8438
|
}
|
8439
8439
|
}();
|
8440
8440
|
}
|
@@ -8525,7 +8525,7 @@ var cv = (t, e) => {
|
|
8525
8525
|
var r = (c, p) => {
|
8526
8526
|
if (!de.isText(c))
|
8527
8527
|
return !1;
|
8528
|
-
var [d,
|
8528
|
+
var [d, v] = g.parent(t, p);
|
8529
8529
|
return !t.isVoid(d) || t.markableVoid(d);
|
8530
8530
|
}, i = q.isExpanded(n), a = !1;
|
8531
8531
|
if (!i) {
|
@@ -8577,7 +8577,7 @@ var cv = (t, e) => {
|
|
8577
8577
|
anchor: l,
|
8578
8578
|
focus: o
|
8579
8579
|
}, p = !0;
|
8580
|
-
for (var [d,
|
8580
|
+
for (var [d, v] of g.nodes(e, {
|
8581
8581
|
at: c,
|
8582
8582
|
match: de.isText,
|
8583
8583
|
reverse: !0,
|
@@ -8587,9 +8587,9 @@ var cv = (t, e) => {
|
|
8587
8587
|
p = !1;
|
8588
8588
|
continue;
|
8589
8589
|
}
|
8590
|
-
if (d.text !== "" || O.isBefore(
|
8590
|
+
if (d.text !== "" || O.isBefore(v, u)) {
|
8591
8591
|
o = {
|
8592
|
-
path:
|
8592
|
+
path: v,
|
8593
8593
|
offset: d.text.length
|
8594
8594
|
};
|
8595
8595
|
break;
|
@@ -8631,16 +8631,16 @@ var cv = (t, e) => {
|
|
8631
8631
|
mode: "highest"
|
8632
8632
|
});
|
8633
8633
|
if (!u && d) {
|
8634
|
-
var [,
|
8635
|
-
l =
|
8634
|
+
var [, v] = d;
|
8635
|
+
l = v;
|
8636
8636
|
} else {
|
8637
8637
|
var y = {
|
8638
8638
|
unit: o,
|
8639
8639
|
distance: s
|
8640
|
-
},
|
8640
|
+
}, h = a ? g.before(e, l, y) || g.start(e, []) : g.after(e, l, y) || g.end(e, []);
|
8641
8641
|
l = {
|
8642
8642
|
anchor: l,
|
8643
|
-
focus:
|
8643
|
+
focus: h
|
8644
8644
|
}, c = !0;
|
8645
8645
|
}
|
8646
8646
|
}
|
@@ -8666,7 +8666,7 @@ var cv = (t, e) => {
|
|
8666
8666
|
match: (se) => fe.isElement(se) && g.isBlock(e, se),
|
8667
8667
|
at: b,
|
8668
8668
|
voids: u
|
8669
|
-
}), E = S && D && !O.equals(S[1], D[1]), A = O.equals(w.path, b.path),
|
8669
|
+
}), E = S && D && !O.equals(S[1], D[1]), A = O.equals(w.path, b.path), M = u ? null : (r = g.void(e, {
|
8670
8670
|
at: w,
|
8671
8671
|
mode: "highest"
|
8672
8672
|
})) !== null && r !== void 0 ? r : g.elementReadOnly(e, {
|
@@ -8679,27 +8679,27 @@ var cv = (t, e) => {
|
|
8679
8679
|
at: b,
|
8680
8680
|
mode: "highest"
|
8681
8681
|
});
|
8682
|
-
if (
|
8683
|
-
var
|
8684
|
-
|
8682
|
+
if (M) {
|
8683
|
+
var F = g.before(e, w);
|
8684
|
+
F && S && O.isAncestor(S[1], F.path) && (w = F);
|
8685
8685
|
}
|
8686
8686
|
if (V) {
|
8687
8687
|
var z = g.after(e, b);
|
8688
8688
|
z && D && O.isAncestor(D[1], z.path) && (b = z);
|
8689
8689
|
}
|
8690
|
-
var
|
8691
|
-
for (var
|
8690
|
+
var R = [], N;
|
8691
|
+
for (var T of g.nodes(e, {
|
8692
8692
|
at: l,
|
8693
8693
|
voids: u
|
8694
8694
|
})) {
|
8695
|
-
var [
|
8696
|
-
|
8695
|
+
var [j, J] = T;
|
8696
|
+
N && O.compare(J, N) === 0 || (!u && fe.isElement(j) && (g.isVoid(e, j) || g.isElementReadOnly(e, j)) || !O.isCommon(J, w.path) && !O.isCommon(J, b.path)) && (R.push(T), N = J);
|
8697
8697
|
}
|
8698
|
-
var _ = Array.from(
|
8698
|
+
var _ = Array.from(R, (se) => {
|
8699
8699
|
var [, he] = se;
|
8700
8700
|
return g.pathRef(e, he);
|
8701
8701
|
}), te = g.pointRef(e, w), ae = g.pointRef(e, b), k = "";
|
8702
|
-
if (!A && !
|
8702
|
+
if (!A && !M) {
|
8703
8703
|
var I = te.current, [Z] = g.leaf(e, I), {
|
8704
8704
|
path: H
|
8705
8705
|
} = I, {
|
@@ -8779,53 +8779,53 @@ var cv = (t, e) => {
|
|
8779
8779
|
var d = g.after(e, p);
|
8780
8780
|
o = d;
|
8781
8781
|
} else if (g.isStart(e, o, p)) {
|
8782
|
-
var
|
8783
|
-
o =
|
8782
|
+
var v = g.before(e, p);
|
8783
|
+
o = v;
|
8784
8784
|
}
|
8785
8785
|
}
|
8786
8786
|
var y = g.above(e, {
|
8787
8787
|
match: (X) => fe.isElement(X) && g.isBlock(e, X),
|
8788
8788
|
at: o,
|
8789
8789
|
voids: a
|
8790
|
-
}), [,
|
8790
|
+
}), [, h] = y, f = g.isStart(e, o, h), C = g.isEnd(e, o, h), w = f && C, b = !f || f && C, S = !C, [, D] = oe.first({
|
8791
8791
|
children: n
|
8792
8792
|
}, []), [, E] = oe.last({
|
8793
8793
|
children: n
|
8794
|
-
}, []), A = [],
|
8794
|
+
}, []), A = [], M = (X) => {
|
8795
8795
|
var [m, U] = X, W = U.length === 0;
|
8796
8796
|
return W ? !1 : w ? !0 : !(b && O.isAncestor(U, D) && fe.isElement(m) && !e.isVoid(m) && !e.isInline(m) || S && O.isAncestor(U, E) && fe.isElement(m) && !e.isVoid(m) && !e.isInline(m));
|
8797
8797
|
};
|
8798
8798
|
for (var V of oe.nodes({
|
8799
8799
|
children: n
|
8800
8800
|
}, {
|
8801
|
-
pass:
|
8801
|
+
pass: M
|
8802
8802
|
}))
|
8803
|
-
|
8804
|
-
var
|
8805
|
-
for (var [
|
8806
|
-
fe.isElement(
|
8803
|
+
M(V) && A.push(V);
|
8804
|
+
var F = [], z = [], R = [], N = !0, T = !1;
|
8805
|
+
for (var [j] of A)
|
8806
|
+
fe.isElement(j) && !e.isInline(j) ? (N = !1, T = !0, z.push(j)) : N ? F.push(j) : R.push(j);
|
8807
8807
|
var [J] = g.nodes(e, {
|
8808
8808
|
at: o,
|
8809
8809
|
match: (X) => de.isText(X) || g.isInline(e, X),
|
8810
8810
|
mode: "highest",
|
8811
8811
|
voids: a
|
8812
|
-
}), [, _] = J, te = g.isStart(e, o, _), ae = g.isEnd(e, o, _), k = g.pathRef(e, C && !
|
8812
|
+
}), [, _] = J, te = g.isStart(e, o, _), ae = g.isEnd(e, o, _), k = g.pathRef(e, C && !R.length ? O.next(h) : h), I = g.pathRef(e, ae ? O.next(_) : _);
|
8813
8813
|
ne.splitNodes(e, {
|
8814
8814
|
at: o,
|
8815
|
-
match: (X) =>
|
8816
|
-
mode:
|
8817
|
-
always:
|
8815
|
+
match: (X) => T ? fe.isElement(X) && g.isBlock(e, X) : de.isText(X) || g.isInline(e, X),
|
8816
|
+
mode: T ? "lowest" : "highest",
|
8817
|
+
always: T && (!f || F.length > 0) && (!C || R.length > 0),
|
8818
8818
|
voids: a
|
8819
8819
|
});
|
8820
8820
|
var Z = g.pathRef(e, !te || te && ae ? O.next(_) : _);
|
8821
|
-
if (ne.insertNodes(e,
|
8821
|
+
if (ne.insertNodes(e, F, {
|
8822
8822
|
at: Z.current,
|
8823
8823
|
match: (X) => de.isText(X) || g.isInline(e, X),
|
8824
8824
|
mode: "highest",
|
8825
8825
|
voids: a,
|
8826
8826
|
batchDirty: s
|
8827
|
-
}), w && !
|
8828
|
-
at:
|
8827
|
+
}), w && !F.length && z.length && !R.length && ne.delete(e, {
|
8828
|
+
at: h,
|
8829
8829
|
voids: a
|
8830
8830
|
}), ne.insertNodes(e, z, {
|
8831
8831
|
at: k.current,
|
@@ -8833,7 +8833,7 @@ var cv = (t, e) => {
|
|
8833
8833
|
mode: "lowest",
|
8834
8834
|
voids: a,
|
8835
8835
|
batchDirty: s
|
8836
|
-
}), ne.insertNodes(e,
|
8836
|
+
}), ne.insertNodes(e, R, {
|
8837
8837
|
at: I.current,
|
8838
8838
|
match: (X) => de.isText(X) || g.isInline(e, X),
|
8839
8839
|
mode: "highest",
|
@@ -8841,7 +8841,7 @@ var cv = (t, e) => {
|
|
8841
8841
|
batchDirty: s
|
8842
8842
|
}), !r.at) {
|
8843
8843
|
var H;
|
8844
|
-
if (
|
8844
|
+
if (R.length > 0 && I.current ? H = O.previous(I.current) : z.length > 0 && k.current ? H = O.previous(k.current) : Z.current && (H = O.previous(Z.current)), H) {
|
8845
8845
|
var ee = g.end(e, H);
|
8846
8846
|
ne.select(e, ee);
|
8847
8847
|
}
|
@@ -8903,8 +8903,8 @@ var cv = (t, e) => {
|
|
8903
8903
|
d && (p.anchor = d);
|
8904
8904
|
}
|
8905
8905
|
if (s == null || s === "focus") {
|
8906
|
-
var
|
8907
|
-
|
8906
|
+
var v = o ? g.before(e, l, c) : g.after(e, l, c);
|
8907
|
+
v && (p.focus = v);
|
8908
8908
|
}
|
8909
8909
|
ne.setSelection(e, p);
|
8910
8910
|
}
|
@@ -8995,13 +8995,13 @@ var wv = function(e, n) {
|
|
8995
8995
|
})), q.isCollapsed(u))
|
8996
8996
|
u = u.anchor;
|
8997
8997
|
else {
|
8998
|
-
var [, d] = q.edges(u),
|
8998
|
+
var [, d] = q.edges(u), v = g.pointRef(e, d);
|
8999
8999
|
ne.delete(e, {
|
9000
9000
|
at: u
|
9001
|
-
}), u =
|
9001
|
+
}), u = v.unref();
|
9002
9002
|
}
|
9003
9003
|
if (Se.isPoint(u)) {
|
9004
|
-
l == null && (de.isText(p) ? l = (
|
9004
|
+
l == null && (de.isText(p) ? l = (F) => de.isText(F) : e.isInline(p) ? l = (F) => de.isText(F) || g.isInline(e, F) : l = (F) => fe.isElement(F) && g.isBlock(e, F));
|
9005
9005
|
var [y] = g.nodes(e, {
|
9006
9006
|
at: u.path,
|
9007
9007
|
match: l,
|
@@ -9009,7 +9009,7 @@ var wv = function(e, n) {
|
|
9009
9009
|
voids: a
|
9010
9010
|
});
|
9011
9011
|
if (y) {
|
9012
|
-
var [,
|
9012
|
+
var [, h] = y, f = g.pathRef(e, h), C = g.isEnd(e, u, h);
|
9013
9013
|
ne.splitNodes(e, {
|
9014
9014
|
at: u,
|
9015
9015
|
match: l,
|
@@ -9028,36 +9028,36 @@ var wv = function(e, n) {
|
|
9028
9028
|
if (s) {
|
9029
9029
|
var D = [], E = O.levels(b);
|
9030
9030
|
sh(e, () => {
|
9031
|
-
var
|
9032
|
-
var
|
9031
|
+
var F = function() {
|
9032
|
+
var N = b.concat(S);
|
9033
9033
|
S++;
|
9034
|
-
var
|
9034
|
+
var T = {
|
9035
9035
|
type: "insert_node",
|
9036
|
-
path:
|
9036
|
+
path: N,
|
9037
9037
|
node: z
|
9038
9038
|
};
|
9039
|
-
e.apply(
|
9040
|
-
var [, J] =
|
9041
|
-
return
|
9042
|
-
})) : E.push(
|
9039
|
+
e.apply(T), u = O.next(u), D.push(T), de.isText ? E.push(...Array.from(oe.nodes(z), (j) => {
|
9040
|
+
var [, J] = j;
|
9041
|
+
return N.concat(J);
|
9042
|
+
})) : E.push(N);
|
9043
9043
|
};
|
9044
9044
|
for (var z of n)
|
9045
|
-
|
9045
|
+
F();
|
9046
9046
|
}, () => {
|
9047
|
-
Il(e, E, (
|
9048
|
-
var z =
|
9049
|
-
for (var
|
9050
|
-
if (O.operationCanTransformPath(
|
9047
|
+
Il(e, E, (F) => {
|
9048
|
+
var z = F;
|
9049
|
+
for (var R of D)
|
9050
|
+
if (O.operationCanTransformPath(R) && (z = O.transform(z, R), !z))
|
9051
9051
|
return null;
|
9052
9052
|
return z;
|
9053
9053
|
});
|
9054
9054
|
});
|
9055
9055
|
} else
|
9056
9056
|
for (var A of n) {
|
9057
|
-
var
|
9057
|
+
var M = b.concat(S);
|
9058
9058
|
S++, e.apply({
|
9059
9059
|
type: "insert_node",
|
9060
|
-
path:
|
9060
|
+
path: M,
|
9061
9061
|
node: A
|
9062
9062
|
}), u = O.next(u);
|
9063
9063
|
}
|
@@ -9092,34 +9092,34 @@ var wv = function(e, n) {
|
|
9092
9092
|
var c = l.unref();
|
9093
9093
|
if (c.length < 2)
|
9094
9094
|
throw new Error("Cannot lift node at a path [".concat(c, "] because it has a depth of less than `2`."));
|
9095
|
-
var p = g.node(e, O.parent(c)), [d,
|
9096
|
-
length:
|
9095
|
+
var p = g.node(e, O.parent(c)), [d, v] = p, y = c[c.length - 1], {
|
9096
|
+
length: h
|
9097
9097
|
} = d.children;
|
9098
|
-
if (
|
9099
|
-
var f = O.next(
|
9098
|
+
if (h === 1) {
|
9099
|
+
var f = O.next(v);
|
9100
9100
|
ne.moveNodes(e, {
|
9101
9101
|
at: c,
|
9102
9102
|
to: f,
|
9103
9103
|
voids: a
|
9104
9104
|
}), ne.removeNodes(e, {
|
9105
|
-
at:
|
9105
|
+
at: v,
|
9106
9106
|
voids: a
|
9107
9107
|
});
|
9108
9108
|
} else if (y === 0)
|
9109
9109
|
ne.moveNodes(e, {
|
9110
9110
|
at: c,
|
9111
|
-
to:
|
9111
|
+
to: v,
|
9112
9112
|
voids: a
|
9113
9113
|
});
|
9114
|
-
else if (y ===
|
9115
|
-
var C = O.next(
|
9114
|
+
else if (y === h - 1) {
|
9115
|
+
var C = O.next(v);
|
9116
9116
|
ne.moveNodes(e, {
|
9117
9117
|
at: c,
|
9118
9118
|
to: C,
|
9119
9119
|
voids: a
|
9120
9120
|
});
|
9121
9121
|
} else {
|
9122
|
-
var w = O.next(c), b = O.next(
|
9122
|
+
var w = O.next(c), b = O.next(v);
|
9123
9123
|
ne.splitNodes(e, {
|
9124
9124
|
at: w,
|
9125
9125
|
voids: a
|
@@ -9152,9 +9152,9 @@ var wv = function(e, n) {
|
|
9152
9152
|
if (r == null)
|
9153
9153
|
if (O.isPath(i)) {
|
9154
9154
|
var [u] = g.parent(e, i);
|
9155
|
-
r = (
|
9155
|
+
r = (F) => u.children.includes(F);
|
9156
9156
|
} else
|
9157
|
-
r = (
|
9157
|
+
r = (F) => fe.isElement(F) && g.isBlock(e, F);
|
9158
9158
|
if (!a && q.isRange(i) && (i = g.unhangRange(e, i, {
|
9159
9159
|
voids: o
|
9160
9160
|
})), q.isRange(i))
|
@@ -9178,26 +9178,26 @@ var wv = function(e, n) {
|
|
9178
9178
|
mode: s
|
9179
9179
|
});
|
9180
9180
|
if (!(!p || !d)) {
|
9181
|
-
var [
|
9181
|
+
var [v, y] = p, [h, f] = d;
|
9182
9182
|
if (!(y.length === 0 || f.length === 0)) {
|
9183
9183
|
var C = O.next(f), w = O.common(y, f), b = O.isSibling(y, f), S = Array.from(g.levels(e, {
|
9184
9184
|
at: y
|
9185
|
-
}), (
|
9186
|
-
var [z] =
|
9185
|
+
}), (F) => {
|
9186
|
+
var [z] = F;
|
9187
9187
|
return z;
|
9188
9188
|
}).slice(w.length).slice(0, -1), D = g.above(e, {
|
9189
9189
|
at: y,
|
9190
9190
|
mode: "highest",
|
9191
|
-
match: (
|
9192
|
-
}), E = D && g.pathRef(e, D[1]), A,
|
9193
|
-
if (de.isText(
|
9194
|
-
var V = Zt(
|
9195
|
-
|
9196
|
-
} else if (fe.isElement(
|
9197
|
-
var V = Zt(
|
9198
|
-
|
9191
|
+
match: (F) => S.includes(F) && Nl(e, F)
|
9192
|
+
}), E = D && g.pathRef(e, D[1]), A, M;
|
9193
|
+
if (de.isText(v) && de.isText(h)) {
|
9194
|
+
var V = Zt(v, Av);
|
9195
|
+
M = h.text.length, A = V;
|
9196
|
+
} else if (fe.isElement(v) && fe.isElement(h)) {
|
9197
|
+
var V = Zt(v, Ov);
|
9198
|
+
M = h.children.length, A = V;
|
9199
9199
|
} else
|
9200
|
-
throw new Error("Cannot merge the node at path [".concat(y, "] with the previous sibling because it is not the same kind: ").concat(pt.stringify(
|
9200
|
+
throw new Error("Cannot merge the node at path [".concat(y, "] with the previous sibling because it is not the same kind: ").concat(pt.stringify(v), " ").concat(pt.stringify(h)));
|
9201
9201
|
b || ne.moveNodes(e, {
|
9202
9202
|
at: y,
|
9203
9203
|
to: C,
|
@@ -9211,7 +9211,7 @@ var wv = function(e, n) {
|
|
9211
9211
|
}) : e.apply({
|
9212
9212
|
type: "merge_node",
|
9213
9213
|
path: C,
|
9214
|
-
position:
|
9214
|
+
position: M,
|
9215
9215
|
properties: A
|
9216
9216
|
}), E && E.unref();
|
9217
9217
|
}
|
@@ -9229,14 +9229,14 @@ var wv = function(e, n) {
|
|
9229
9229
|
match: o
|
9230
9230
|
} = e;
|
9231
9231
|
if (r) {
|
9232
|
-
o == null && (o = O.isPath(r) ? Nn(t, r) : (
|
9232
|
+
o == null && (o = O.isPath(r) ? Nn(t, r) : (v) => fe.isElement(v) && g.isBlock(t, v));
|
9233
9233
|
var s = g.pathRef(t, n), u = g.nodes(t, {
|
9234
9234
|
at: r,
|
9235
9235
|
match: o,
|
9236
9236
|
mode: i,
|
9237
9237
|
voids: a
|
9238
|
-
}), l = Array.from(u, (
|
9239
|
-
var [, y] =
|
9238
|
+
}), l = Array.from(u, (v) => {
|
9239
|
+
var [, y] = v;
|
9240
9240
|
return g.pathRef(t, y);
|
9241
9241
|
});
|
9242
9242
|
for (var c of l) {
|
@@ -9262,7 +9262,7 @@ var wv = function(e, n) {
|
|
9262
9262
|
match: s
|
9263
9263
|
} = n;
|
9264
9264
|
if (o) {
|
9265
|
-
s == null && (s = O.isPath(o) ? Nn(e, o) : (
|
9265
|
+
s == null && (s = O.isPath(o) ? Nn(e, o) : (v) => fe.isElement(v) && g.isBlock(e, v)), !r && q.isRange(o) && (o = g.unhangRange(e, o, {
|
9266
9266
|
voids: i
|
9267
9267
|
}));
|
9268
9268
|
var u = g.nodes(e, {
|
@@ -9270,8 +9270,8 @@ var wv = function(e, n) {
|
|
9270
9270
|
match: s,
|
9271
9271
|
mode: a,
|
9272
9272
|
voids: i
|
9273
|
-
}), l = Array.from(u, (
|
9274
|
-
var [, y] =
|
9273
|
+
}), l = Array.from(u, (v) => {
|
9274
|
+
var [, y] = v;
|
9275
9275
|
return g.pathRef(e, y);
|
9276
9276
|
});
|
9277
9277
|
for (var c of l) {
|
@@ -9302,31 +9302,31 @@ var wv = function(e, n) {
|
|
9302
9302
|
voids: p = !1
|
9303
9303
|
} = r;
|
9304
9304
|
if (a) {
|
9305
|
-
if (i == null && (i = O.isPath(a) ? Nn(e, a) : (
|
9305
|
+
if (i == null && (i = O.isPath(a) ? Nn(e, a) : (M) => fe.isElement(M) && g.isBlock(e, M)), !u && q.isRange(a) && (a = g.unhangRange(e, a, {
|
9306
9306
|
voids: p
|
9307
9307
|
})), c && q.isRange(a)) {
|
9308
9308
|
if (q.isCollapsed(a) && g.leaf(e, a.anchor)[0].text.length > 0)
|
9309
9309
|
return;
|
9310
9310
|
var d = g.rangeRef(e, a, {
|
9311
9311
|
affinity: "inward"
|
9312
|
-
}), [
|
9312
|
+
}), [v, y] = q.edges(a), h = l === "lowest" ? "lowest" : "highest", f = g.isEnd(e, y, y.path);
|
9313
9313
|
ne.splitNodes(e, {
|
9314
9314
|
at: y,
|
9315
9315
|
match: i,
|
9316
|
-
mode:
|
9316
|
+
mode: h,
|
9317
9317
|
voids: p,
|
9318
9318
|
always: !f
|
9319
9319
|
});
|
9320
|
-
var C = g.isStart(e,
|
9320
|
+
var C = g.isStart(e, v, v.path);
|
9321
9321
|
ne.splitNodes(e, {
|
9322
|
-
at:
|
9322
|
+
at: v,
|
9323
9323
|
match: i,
|
9324
|
-
mode:
|
9324
|
+
mode: h,
|
9325
9325
|
voids: p,
|
9326
9326
|
always: !C
|
9327
9327
|
}), a = d.unref(), r.at == null && ne.select(e, a);
|
9328
9328
|
}
|
9329
|
-
o || (o = (
|
9329
|
+
o || (o = (M, V) => M !== V);
|
9330
9330
|
for (var [w, b] of g.nodes(e, {
|
9331
9331
|
at: a,
|
9332
9332
|
match: i,
|
@@ -9374,7 +9374,7 @@ var wv = function(e, n) {
|
|
9374
9374
|
if (o) {
|
9375
9375
|
var d = g.pointRef(e, o, {
|
9376
9376
|
affinity: "backward"
|
9377
|
-
}),
|
9377
|
+
}), v;
|
9378
9378
|
try {
|
9379
9379
|
var [y] = g.nodes(e, {
|
9380
9380
|
at: o,
|
@@ -9384,12 +9384,12 @@ var wv = function(e, n) {
|
|
9384
9384
|
});
|
9385
9385
|
if (!y)
|
9386
9386
|
return;
|
9387
|
-
var
|
9387
|
+
var h = g.void(e, {
|
9388
9388
|
at: o,
|
9389
9389
|
mode: "highest"
|
9390
9390
|
}), f = 0;
|
9391
|
-
if (!i &&
|
9392
|
-
var [C, w] =
|
9391
|
+
if (!i && h) {
|
9392
|
+
var [C, w] = h;
|
9393
9393
|
if (fe.isElement(C) && e.isInline(C)) {
|
9394
9394
|
var b = g.after(e, w);
|
9395
9395
|
if (!b) {
|
@@ -9406,36 +9406,36 @@ var wv = function(e, n) {
|
|
9406
9406
|
var E = o.path.length - w.length;
|
9407
9407
|
s = E + 1, u = !0;
|
9408
9408
|
}
|
9409
|
-
|
9410
|
-
var A = o.path.length - s, [,
|
9411
|
-
for (var [z,
|
9409
|
+
v = g.pointRef(e, o);
|
9410
|
+
var A = o.path.length - s, [, M] = y, V = o.path.slice(0, A), F = s === 0 ? o.offset : o.path[A] + f;
|
9411
|
+
for (var [z, R] of g.levels(e, {
|
9412
9412
|
at: V,
|
9413
9413
|
reverse: !0,
|
9414
9414
|
voids: i
|
9415
9415
|
})) {
|
9416
|
-
var
|
9417
|
-
if (
|
9416
|
+
var N = !1;
|
9417
|
+
if (R.length < M.length || R.length === 0 || !i && fe.isElement(z) && g.isVoid(e, z))
|
9418
9418
|
break;
|
9419
|
-
var
|
9420
|
-
if (u || !d || !g.isEdge(e,
|
9421
|
-
|
9419
|
+
var T = d.current, j = g.isEnd(e, T, R);
|
9420
|
+
if (u || !d || !g.isEdge(e, T, R)) {
|
9421
|
+
N = !0;
|
9422
9422
|
var J = oe.extractProps(z);
|
9423
9423
|
e.apply({
|
9424
9424
|
type: "split_node",
|
9425
|
-
path:
|
9426
|
-
position:
|
9425
|
+
path: R,
|
9426
|
+
position: F,
|
9427
9427
|
properties: J
|
9428
9428
|
});
|
9429
9429
|
}
|
9430
|
-
|
9430
|
+
F = R[R.length - 1] + (N || j ? 1 : 0);
|
9431
9431
|
}
|
9432
9432
|
if (n.at == null) {
|
9433
|
-
var _ =
|
9433
|
+
var _ = v.current || g.end(e, []);
|
9434
9434
|
ne.select(e, _);
|
9435
9435
|
}
|
9436
9436
|
} finally {
|
9437
9437
|
var te;
|
9438
|
-
d.unref(), (te =
|
9438
|
+
d.unref(), (te = v) === null || te === void 0 || te.unref();
|
9439
9439
|
}
|
9440
9440
|
}
|
9441
9441
|
});
|
@@ -9458,7 +9458,7 @@ var wv = function(e, n) {
|
|
9458
9458
|
match: s
|
9459
9459
|
} = n;
|
9460
9460
|
if (o) {
|
9461
|
-
s == null && (s = O.isPath(o) ? Nn(e, o) : (
|
9461
|
+
s == null && (s = O.isPath(o) ? Nn(e, o) : (v) => fe.isElement(v) && g.isBlock(e, v)), O.isPath(o) && (o = g.range(e, o));
|
9462
9462
|
var u = q.isRange(o) ? g.rangeRef(e, o) : null, l = g.nodes(e, {
|
9463
9463
|
at: o,
|
9464
9464
|
match: s,
|
@@ -9466,18 +9466,18 @@ var wv = function(e, n) {
|
|
9466
9466
|
voids: a
|
9467
9467
|
}), c = Array.from(
|
9468
9468
|
l,
|
9469
|
-
(
|
9470
|
-
var [, y] =
|
9469
|
+
(v) => {
|
9470
|
+
var [, y] = v;
|
9471
9471
|
return g.pathRef(e, y);
|
9472
9472
|
}
|
9473
9473
|
// unwrapNode will call liftNode which does not support splitting the node when nested.
|
9474
9474
|
// If we do not reverse the order and call it from top to the bottom, it will remove all blocks
|
9475
9475
|
// that wrap target node. So we reverse the order.
|
9476
9476
|
).reverse(), p = function() {
|
9477
|
-
var y = d.unref(), [
|
9477
|
+
var y = d.unref(), [h] = g.node(e, y), f = g.range(e, y);
|
9478
9478
|
i && u && (f = q.intersection(u.current, f)), ne.liftNodes(e, {
|
9479
9479
|
at: f,
|
9480
|
-
match: (C) => fe.isAncestor(
|
9480
|
+
match: (C) => fe.isAncestor(h) && h.children.includes(C),
|
9481
9481
|
voids: a
|
9482
9482
|
});
|
9483
9483
|
};
|
@@ -9539,8 +9539,8 @@ var Iv = function(e, n) {
|
|
9539
9539
|
match: e.isInline(n) ? (f) => fe.isElement(f) && g.isBlock(e, f) : (f) => g.isEditor(f),
|
9540
9540
|
mode: "lowest",
|
9541
9541
|
voids: o
|
9542
|
-
})),
|
9543
|
-
var C = q.isRange(u) ? q.intersection(u, g.range(e,
|
9542
|
+
})), v = function() {
|
9543
|
+
var C = q.isRange(u) ? q.intersection(u, g.range(e, h)) : u;
|
9544
9544
|
if (!C)
|
9545
9545
|
return 0;
|
9546
9546
|
var w = Array.from(g.nodes(e, {
|
@@ -9553,22 +9553,22 @@ var Iv = function(e, n) {
|
|
9553
9553
|
var [b] = w, S = w[w.length - 1], [, D] = b, [, E] = S;
|
9554
9554
|
if (D.length === 0 && E.length === 0)
|
9555
9555
|
return 0;
|
9556
|
-
var A = O.equals(D, E) ? O.parent(D) : O.common(D, E),
|
9556
|
+
var A = O.equals(D, E) ? O.parent(D) : O.common(D, E), M = g.range(e, D, E), V = g.node(e, A), [F] = V, z = A.length + 1, R = O.next(E.slice(0, z)), N = ks(ks({}, n), {}, {
|
9557
9557
|
children: []
|
9558
9558
|
});
|
9559
|
-
ne.insertNodes(e,
|
9560
|
-
at:
|
9559
|
+
ne.insertNodes(e, N, {
|
9560
|
+
at: R,
|
9561
9561
|
voids: o
|
9562
9562
|
}), ne.moveNodes(e, {
|
9563
|
-
at:
|
9564
|
-
match: (
|
9565
|
-
to:
|
9563
|
+
at: M,
|
9564
|
+
match: (T) => fe.isAncestor(F) && F.children.includes(T),
|
9565
|
+
to: R.concat(0),
|
9566
9566
|
voids: o
|
9567
9567
|
});
|
9568
9568
|
}
|
9569
9569
|
}, y;
|
9570
|
-
for (var [,
|
9571
|
-
y =
|
9570
|
+
for (var [, h] of d)
|
9571
|
+
y = v();
|
9572
9572
|
}
|
9573
9573
|
});
|
9574
9574
|
}, Nv = () => {
|
@@ -10184,29 +10184,29 @@ function Vg(t, e, n) {
|
|
10184
10184
|
if (typeof t != "function")
|
10185
10185
|
throw new TypeError(Wg);
|
10186
10186
|
e = zs(e) || 0, _g(n) && (c = !!n.leading, p = "maxWait" in n, a = p ? Ug(zs(n.maxWait) || 0, e) : a, d = "trailing" in n ? !!n.trailing : d);
|
10187
|
-
function
|
10188
|
-
var A = r,
|
10189
|
-
return r = i = void 0, l = E, o = t.apply(
|
10187
|
+
function v(E) {
|
10188
|
+
var A = r, M = i;
|
10189
|
+
return r = i = void 0, l = E, o = t.apply(M, A), o;
|
10190
10190
|
}
|
10191
10191
|
function y(E) {
|
10192
|
-
return l = E, s = setTimeout(C, e), c ?
|
10192
|
+
return l = E, s = setTimeout(C, e), c ? v(E) : o;
|
10193
10193
|
}
|
10194
|
-
function
|
10195
|
-
var A = E - u,
|
10196
|
-
return p ? Hg(V, a -
|
10194
|
+
function h(E) {
|
10195
|
+
var A = E - u, M = E - l, V = e - A;
|
10196
|
+
return p ? Hg(V, a - M) : V;
|
10197
10197
|
}
|
10198
10198
|
function f(E) {
|
10199
|
-
var A = E - u,
|
10200
|
-
return u === void 0 || A >= e || A < 0 || p &&
|
10199
|
+
var A = E - u, M = E - l;
|
10200
|
+
return u === void 0 || A >= e || A < 0 || p && M >= a;
|
10201
10201
|
}
|
10202
10202
|
function C() {
|
10203
10203
|
var E = Bi();
|
10204
10204
|
if (f(E))
|
10205
10205
|
return w(E);
|
10206
|
-
s = setTimeout(C,
|
10206
|
+
s = setTimeout(C, h(E));
|
10207
10207
|
}
|
10208
10208
|
function w(E) {
|
10209
|
-
return s = void 0, d && r ?
|
10209
|
+
return s = void 0, d && r ? v(E) : (r = i = void 0, o);
|
10210
10210
|
}
|
10211
10211
|
function b() {
|
10212
10212
|
s !== void 0 && clearTimeout(s), l = 0, r = u = i = s = void 0;
|
@@ -10220,7 +10220,7 @@ function Vg(t, e, n) {
|
|
10220
10220
|
if (s === void 0)
|
10221
10221
|
return y(u);
|
10222
10222
|
if (p)
|
10223
|
-
return clearTimeout(s), s = setTimeout(C, e),
|
10223
|
+
return clearTimeout(s), s = setTimeout(C, e), v(u);
|
10224
10224
|
}
|
10225
10225
|
return s === void 0 && (s = setTimeout(C, e)), o;
|
10226
10226
|
}
|
@@ -10264,36 +10264,36 @@ const Jg = /* @__PURE__ */ ma(Xg), _s = (t) => typeof t == "object" && t != null
|
|
10264
10264
|
if (typeof document > "u") return [];
|
10265
10265
|
const { scrollMode: o, block: s, inline: u, boundary: l, skipOverflowHiddenElements: c } = e, p = typeof l == "function" ? l : (J) => J !== l;
|
10266
10266
|
if (!_s(t)) throw new TypeError("Invalid target");
|
10267
|
-
const d = document.scrollingElement || document.documentElement,
|
10267
|
+
const d = document.scrollingElement || document.documentElement, v = [];
|
10268
10268
|
let y = t;
|
10269
10269
|
for (; _s(y) && p(y); ) {
|
10270
10270
|
if (y = Qg(y), y === d) {
|
10271
|
-
|
10271
|
+
v.push(y);
|
10272
10272
|
break;
|
10273
10273
|
}
|
10274
|
-
y != null && y === document.body && xi(y) && !xi(document.documentElement) || y != null && xi(y, c) &&
|
10274
|
+
y != null && y === document.body && xi(y) && !xi(document.documentElement) || y != null && xi(y, c) && v.push(y);
|
10275
10275
|
}
|
10276
|
-
const
|
10276
|
+
const h = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, f = (a = (i = window.visualViewport) == null ? void 0 : i.height) != null ? a : innerHeight, { scrollX: C, scrollY: w } = window, { height: b, width: S, top: D, right: E, bottom: A, left: M } = t.getBoundingClientRect(), { top: V, right: F, bottom: z, left: R } = ((J) => {
|
10277
10277
|
const _ = window.getComputedStyle(J);
|
10278
10278
|
return { top: parseFloat(_.scrollMarginTop) || 0, right: parseFloat(_.scrollMarginRight) || 0, bottom: parseFloat(_.scrollMarginBottom) || 0, left: parseFloat(_.scrollMarginLeft) || 0 };
|
10279
10279
|
})(t);
|
10280
|
-
let
|
10281
|
-
const
|
10282
|
-
for (let J = 0; J <
|
10283
|
-
const _ =
|
10284
|
-
if (o === "if-needed" && D >= 0 &&
|
10280
|
+
let N = s === "start" || s === "nearest" ? D - V : s === "end" ? A + z : D + b / 2 - V + z, T = u === "center" ? M + S / 2 - R + F : u === "end" ? E + F : M - R;
|
10281
|
+
const j = [];
|
10282
|
+
for (let J = 0; J < v.length; J++) {
|
10283
|
+
const _ = v[J], { height: te, width: ae, top: k, right: I, bottom: Z, left: H } = _.getBoundingClientRect();
|
10284
|
+
if (o === "if-needed" && D >= 0 && M >= 0 && A <= f && E <= h && D >= k && A <= Z && M >= H && E <= I) return j;
|
10285
10285
|
const ee = getComputedStyle(_), X = parseInt(ee.borderLeftWidth, 10), m = parseInt(ee.borderTopWidth, 10), U = parseInt(ee.borderRightWidth, 10), W = parseInt(ee.borderBottomWidth, 10);
|
10286
10286
|
let P = 0, Q = 0;
|
10287
10287
|
const ie = "offsetWidth" in _ ? _.offsetWidth - _.clientWidth - X - U : 0, G = "offsetHeight" in _ ? _.offsetHeight - _.clientHeight - m - W : 0, ce = "offsetWidth" in _ ? _.offsetWidth === 0 ? 0 : ae / _.offsetWidth : 0, se = "offsetHeight" in _ ? _.offsetHeight === 0 ? 0 : te / _.offsetHeight : 0;
|
10288
|
-
if (d === _) P = s === "start" ?
|
10288
|
+
if (d === _) P = s === "start" ? N : s === "end" ? N - f : s === "nearest" ? Ar(w, w + f, f, m, W, w + N, w + N + b, b) : N - f / 2, Q = u === "start" ? T : u === "center" ? T - h / 2 : u === "end" ? T - h : Ar(C, C + h, h, X, U, C + T, C + T + S, S), P = Math.max(0, P + w), Q = Math.max(0, Q + C);
|
10289
10289
|
else {
|
10290
|
-
P = s === "start" ?
|
10290
|
+
P = s === "start" ? N - k - m : s === "end" ? N - Z + W + G : s === "nearest" ? Ar(k, Z, te, m, W + G, N, N + b, b) : N - (k + te / 2) + G / 2, Q = u === "start" ? T - H - X : u === "center" ? T - (H + ae / 2) + ie / 2 : u === "end" ? T - I + U + ie : Ar(H, I, ae, X, U + ie, T, T + S, S);
|
10291
10291
|
const { scrollLeft: he, scrollTop: ve } = _;
|
10292
|
-
P = se === 0 ? 0 : Math.max(0, Math.min(ve + P / se, _.scrollHeight - te / se + G)), Q = ce === 0 ? 0 : Math.max(0, Math.min(he + Q / ce, _.scrollWidth - ae / ce + ie)),
|
10292
|
+
P = se === 0 ? 0 : Math.max(0, Math.min(ve + P / se, _.scrollHeight - te / se + G)), Q = ce === 0 ? 0 : Math.max(0, Math.min(he + Q / ce, _.scrollWidth - ae / ce + ie)), N += ve - P, T += he - Q;
|
10293
10293
|
}
|
10294
|
-
|
10294
|
+
j.push({ el: _, top: P, left: Q });
|
10295
10295
|
}
|
10296
|
-
return
|
10296
|
+
return j;
|
10297
10297
|
}, em = (t) => t === !1 ? { block: "end", inline: "nearest" } : ((e) => e === Object(e) && Object.keys(e).length !== 0)(t) ? t : { block: "start", inline: "nearest" };
|
10298
10298
|
function tm(t, e) {
|
10299
10299
|
if (!t.isConnected || !((i) => {
|
@@ -10393,13 +10393,13 @@ var bn = function(t) {
|
|
10393
10393
|
return Or.get(t);
|
10394
10394
|
if (Zl(t))
|
10395
10395
|
return Or.set(t, Zs), Zs;
|
10396
|
-
var n = getComputedStyle(t), r = Pa(t) && t.ownerSVGElement && t.getBBox(), i = !um && n.boxSizing === "border-box", a = sm.test(n.writingMode || ""), o = !r && qs.test(n.overflowY || ""), s = !r && qs.test(n.overflowX || ""), u = r ? 0 : It(n.paddingTop), l = r ? 0 : It(n.paddingRight), c = r ? 0 : It(n.paddingBottom), p = r ? 0 : It(n.paddingLeft), d = r ? 0 : It(n.borderTopWidth),
|
10397
|
-
devicePixelContentBoxSize: Tn(Math.round(
|
10398
|
-
borderBoxSize: Tn(
|
10399
|
-
contentBoxSize: Tn(
|
10400
|
-
contentRect: new ql(p, u,
|
10396
|
+
var n = getComputedStyle(t), r = Pa(t) && t.ownerSVGElement && t.getBBox(), i = !um && n.boxSizing === "border-box", a = sm.test(n.writingMode || ""), o = !r && qs.test(n.overflowY || ""), s = !r && qs.test(n.overflowX || ""), u = r ? 0 : It(n.paddingTop), l = r ? 0 : It(n.paddingRight), c = r ? 0 : It(n.paddingBottom), p = r ? 0 : It(n.paddingLeft), d = r ? 0 : It(n.borderTopWidth), v = r ? 0 : It(n.borderRightWidth), y = r ? 0 : It(n.borderBottomWidth), h = r ? 0 : It(n.borderLeftWidth), f = p + l, C = u + c, w = h + v, b = d + y, S = s ? t.offsetHeight - b - t.clientHeight : 0, D = o ? t.offsetWidth - w - t.clientWidth : 0, E = i ? f + w : 0, A = i ? C + b : 0, M = r ? r.width : It(n.width) - E - D, V = r ? r.height : It(n.height) - A - S, F = M + f + D + w, z = V + C + S + b, R = bn({
|
10397
|
+
devicePixelContentBoxSize: Tn(Math.round(M * devicePixelRatio), Math.round(V * devicePixelRatio), a),
|
10398
|
+
borderBoxSize: Tn(F, z, a),
|
10399
|
+
contentBoxSize: Tn(M, V, a),
|
10400
|
+
contentRect: new ql(p, u, M, V)
|
10401
10401
|
});
|
10402
|
-
return Or.set(t,
|
10402
|
+
return Or.set(t, R), R;
|
10403
10403
|
}, Yl = function(t, e, n) {
|
10404
10404
|
var r = Gl(t, n), i = r.borderBoxSize, a = r.contentBoxSize, o = r.devicePixelContentBoxSize;
|
10405
10405
|
switch (e) {
|
@@ -10789,21 +10789,21 @@ var K = {
|
|
10789
10789
|
}
|
10790
10790
|
}
|
10791
10791
|
var d, {
|
10792
|
-
document:
|
10792
|
+
document: v
|
10793
10793
|
} = K.getWindow(t);
|
10794
|
-
if (
|
10795
|
-
d =
|
10794
|
+
if (v.caretRangeFromPoint)
|
10795
|
+
d = v.caretRangeFromPoint(n, r);
|
10796
10796
|
else {
|
10797
|
-
var y =
|
10798
|
-
y && (d =
|
10797
|
+
var y = v.caretPositionFromPoint(n, r);
|
10798
|
+
y && (d = v.createRange(), d.setStart(y.offsetNode, y.offset), d.setEnd(y.offsetNode, y.offset));
|
10799
10799
|
}
|
10800
10800
|
if (!d)
|
10801
10801
|
throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(e));
|
10802
|
-
var
|
10802
|
+
var h = K.toSlateRange(t, d, {
|
10803
10803
|
exactMatch: !1,
|
10804
10804
|
suppressThrow: !1
|
10805
10805
|
});
|
10806
|
-
return
|
10806
|
+
return h;
|
10807
10807
|
},
|
10808
10808
|
findKey: (t, e) => {
|
10809
10809
|
var n = Qr.get(e);
|
@@ -10916,17 +10916,17 @@ var K = {
|
|
10916
10916
|
if (!(c == null || c.textContent == null)) {
|
10917
10917
|
var {
|
10918
10918
|
length: p
|
10919
|
-
} = c.textContent, d = l.getAttribute("data-slate-length"),
|
10920
|
-
if (e.offset === y &&
|
10921
|
-
var f, C =
|
10919
|
+
} = c.textContent, d = l.getAttribute("data-slate-length"), v = d == null ? p : parseInt(d, 10), y = s + v, h = o[u + 1];
|
10920
|
+
if (e.offset === y && h !== null && h !== void 0 && h.hasAttribute("data-slate-mark-placeholder")) {
|
10921
|
+
var f, C = h.childNodes[0];
|
10922
10922
|
i = [
|
10923
10923
|
// COMPAT: If we don't explicity set the dom point to be on the actual
|
10924
10924
|
// dom text element, chrome will put the selection behind the actual dom
|
10925
10925
|
// text element, causing domRange.getBoundingClientRect() calls on a collapsed
|
10926
10926
|
// selection to return incorrect zero values (https://bugs.chromium.org/p/chromium/issues/detail?id=435438)
|
10927
10927
|
// which will cause issues when scrolling to it.
|
10928
|
-
C instanceof Pm ? C :
|
10929
|
-
(f =
|
10928
|
+
C instanceof Pm ? C : h,
|
10929
|
+
(f = h.textContent) !== null && f !== void 0 && f.startsWith("\uFEFF") ? 1 : 0
|
10930
10930
|
];
|
10931
10931
|
break;
|
10932
10932
|
}
|
@@ -10946,7 +10946,7 @@ var K = {
|
|
10946
10946
|
var {
|
10947
10947
|
anchor: n,
|
10948
10948
|
focus: r
|
10949
|
-
} = e, i = q.isBackward(e), a = K.toDOMPoint(t, n), o = q.isCollapsed(e) ? a : K.toDOMPoint(t, r), s = K.getWindow(t), u = s.document.createRange(), [l, c] = i ? o : a, [p, d] = i ? a : o,
|
10949
|
+
} = e, i = q.isBackward(e), a = K.toDOMPoint(t, n), o = q.isCollapsed(e) ? a : K.toDOMPoint(t, r), s = K.getWindow(t), u = s.document.createRange(), [l, c] = i ? o : a, [p, d] = i ? a : o, v = Mt(l) ? l : l.parentElement, y = !!v.getAttribute("data-slate-zero-width"), h = Mt(p) ? p : p.parentElement, f = !!h.getAttribute("data-slate-zero-width");
|
10950
10950
|
return u.setStart(l, y ? 1 : c), u.setEnd(p, f ? 1 : d), u;
|
10951
10951
|
},
|
10952
10952
|
toSlateNode: (t, e) => {
|
@@ -10964,7 +10964,7 @@ var K = {
|
|
10964
10964
|
searchDirection: a = "backward"
|
10965
10965
|
} = n, [o, s] = r ? e : Rm(e), u = o.parentNode, l = null, c = 0;
|
10966
10966
|
if (u) {
|
10967
|
-
var p, d,
|
10967
|
+
var p, d, v = K.toDOMNode(t, t), y = u.closest('[data-slate-void="true"]'), h = y && v.contains(y) ? y : null, f = u.closest('[contenteditable="false"]'), C = f && v.contains(f) ? f : null, w = u.closest("[data-slate-leaf]"), b = null;
|
10968
10968
|
if (w) {
|
10969
10969
|
if (l = w.closest('[data-slate-node="text"]'), l) {
|
10970
10970
|
var S = K.getWindow(t), D = S.document.createRange();
|
@@ -10978,11 +10978,11 @@ var K = {
|
|
10978
10978
|
H.parentNode.removeChild(H);
|
10979
10979
|
}), c = E.textContent.length, b = l;
|
10980
10980
|
}
|
10981
|
-
} else if (
|
10982
|
-
for (var
|
10983
|
-
var
|
10984
|
-
if (K.hasDOMNode(t,
|
10985
|
-
w =
|
10981
|
+
} else if (h) {
|
10982
|
+
for (var M = h.querySelectorAll("[data-slate-leaf]"), V = 0; V < M.length; V++) {
|
10983
|
+
var F = M[V];
|
10984
|
+
if (K.hasDOMNode(t, F)) {
|
10985
|
+
w = F;
|
10986
10986
|
break;
|
10987
10987
|
}
|
10988
10988
|
}
|
@@ -10993,13 +10993,13 @@ var K = {
|
|
10993
10993
|
var z = (H) => H ? H.querySelectorAll(
|
10994
10994
|
// Exclude leaf nodes in nested editors
|
10995
10995
|
"[data-slate-leaf]:not(:scope [data-slate-editor] [data-slate-leaf])"
|
10996
|
-
) : [],
|
10996
|
+
) : [], R = C.closest('[data-slate-node="element"]');
|
10997
10997
|
if (a === "forward") {
|
10998
|
-
var
|
10999
|
-
w = (
|
10998
|
+
var N, T = [...z(R), ...z(R == null ? void 0 : R.nextElementSibling)];
|
10999
|
+
w = (N = T.find((H) => _m(C, H))) !== null && N !== void 0 ? N : null;
|
11000
11000
|
} else {
|
11001
|
-
var
|
11002
|
-
w = (
|
11001
|
+
var j, J = [...z(R == null ? void 0 : R.previousElementSibling), ...z(R)];
|
11002
|
+
w = (j = J.findLast((H) => eu(C, H))) !== null && j !== void 0 ? j : null;
|
11003
11003
|
}
|
11004
11004
|
w && (l = w.closest('[data-slate-node="text"]'), b = w, a === "forward" ? c = 0 : (c = b.textContent.length, b.querySelectorAll("[data-slate-zero-width]").forEach((H) => {
|
11005
11005
|
c -= H.textContent.length;
|
@@ -11054,15 +11054,15 @@ var K = {
|
|
11054
11054
|
if (oa(e)) {
|
11055
11055
|
if (kn && e.rangeCount > 1) {
|
11056
11056
|
l = e.focusNode;
|
11057
|
-
var d = e.getRangeAt(0),
|
11058
|
-
if (l instanceof HTMLTableRowElement && d.startContainer instanceof HTMLTableRowElement &&
|
11057
|
+
var d = e.getRangeAt(0), v = e.getRangeAt(e.rangeCount - 1);
|
11058
|
+
if (l instanceof HTMLTableRowElement && d.startContainer instanceof HTMLTableRowElement && v.startContainer instanceof HTMLTableRowElement) {
|
11059
11059
|
let E = function(A) {
|
11060
11060
|
return A.childElementCount > 0 ? E(A.children[0]) : A;
|
11061
11061
|
};
|
11062
|
-
var y = d.startContainer,
|
11062
|
+
var y = d.startContainer, h = v.startContainer, f = E(y.children[d.startOffset]), C = E(h.children[v.startOffset]);
|
11063
11063
|
c = 0, C.childNodes.length > 0 ? s = C.childNodes[0] : s = C, f.childNodes.length > 0 ? l = f.childNodes[0] : l = f, C instanceof HTMLElement ? u = C.innerHTML.length : u = 0;
|
11064
11064
|
} else
|
11065
|
-
d.startContainer === l ? (s =
|
11065
|
+
d.startContainer === l ? (s = v.endContainer, u = v.endOffset, c = d.startOffset) : (s = d.startContainer, u = d.endOffset, c = v.startOffset);
|
11066
11066
|
} else
|
11067
11067
|
s = e.anchorNode, u = e.anchorOffset, l = e.focusNode, c = e.focusOffset;
|
11068
11068
|
ec && jm(s) || kn ? p = e.anchorNode === e.focusNode && e.anchorOffset === e.focusOffset : p = e.isCollapsed;
|
@@ -11386,24 +11386,24 @@ function e0(t) {
|
|
11386
11386
|
scheduleOnDOMSelectionChange: n,
|
11387
11387
|
onDOMSelectionChange: r
|
11388
11388
|
} = t, i = !1, a = null, o = null, s = null, u = 0, l = !1, c = () => {
|
11389
|
-
var
|
11390
|
-
if (nn.delete(e),
|
11389
|
+
var R = nn.get(e);
|
11390
|
+
if (nn.delete(e), R) {
|
11391
11391
|
var {
|
11392
|
-
selection:
|
11393
|
-
} = e,
|
11394
|
-
|
11392
|
+
selection: N
|
11393
|
+
} = e, T = tu(e, R);
|
11394
|
+
T && (!N || !q.equals(T, N)) && ne.select(e, T);
|
11395
11395
|
}
|
11396
11396
|
}, p = () => {
|
11397
|
-
var
|
11398
|
-
if (tn.delete(e), !!
|
11399
|
-
if (
|
11400
|
-
var
|
11401
|
-
if (!
|
11397
|
+
var R = tn.get(e);
|
11398
|
+
if (tn.delete(e), !!R) {
|
11399
|
+
if (R.at) {
|
11400
|
+
var N = Se.isPoint(R.at) ? sa(e, R.at) : tu(e, R.at);
|
11401
|
+
if (!N)
|
11402
11402
|
return;
|
11403
|
-
var
|
11404
|
-
(!e.selection || !q.equals(e.selection,
|
11403
|
+
var T = g.range(e, N);
|
11404
|
+
(!e.selection || !q.equals(e.selection, T)) && ne.select(e, N);
|
11405
11405
|
}
|
11406
|
-
|
11406
|
+
R.run();
|
11407
11407
|
}
|
11408
11408
|
}, d = () => {
|
11409
11409
|
if (o && (clearTimeout(o), o = null), s && (clearTimeout(s), s = null), !S() && !b()) {
|
@@ -11411,117 +11411,117 @@ function e0(t) {
|
|
11411
11411
|
return;
|
11412
11412
|
}
|
11413
11413
|
i || (i = !0, setTimeout(() => i = !1)), b() && (i = "action");
|
11414
|
-
var
|
11414
|
+
var R = e.selection && g.rangeRef(e, e.selection, {
|
11415
11415
|
affinity: "forward"
|
11416
11416
|
});
|
11417
11417
|
Vt.set(e, e.marks), Jm("flush", tn.get(e), Et.get(e));
|
11418
|
-
for (var
|
11419
|
-
var
|
11418
|
+
for (var N = S(), T; T = (j = Et.get(e)) === null || j === void 0 ? void 0 : j[0]; ) {
|
11419
|
+
var j, J, _ = Rt.get(e);
|
11420
11420
|
_ !== void 0 && (Rt.delete(e), e.marks = _), _ && l === !1 && (l = null);
|
11421
|
-
var te = Gm(
|
11422
|
-
(!e.selection || !q.equals(e.selection, te)) && ne.select(e, te),
|
11421
|
+
var te = Gm(T);
|
11422
|
+
(!e.selection || !q.equals(e.selection, te)) && ne.select(e, te), T.diff.text ? g.insertText(e, T.diff.text) : g.deleteFragment(e), Et.set(e, (J = Et.get(e)) === null || J === void 0 ? void 0 : J.filter((I) => {
|
11423
11423
|
var {
|
11424
11424
|
id: Z
|
11425
11425
|
} = I;
|
11426
|
-
return Z !==
|
11427
|
-
})), Hm(e,
|
11426
|
+
return Z !== T.id;
|
11427
|
+
})), Hm(e, T) || (N = !1, tn.delete(e), Vt.delete(e), i = "action", nn.delete(e), n.cancel(), r.cancel(), R == null || R.unref());
|
11428
11428
|
}
|
11429
|
-
var ae =
|
11429
|
+
var ae = R == null ? void 0 : R.unref();
|
11430
11430
|
if (ae && !nn.get(e) && (!e.selection || !q.equals(ae, e.selection)) && ne.select(e, ae), b()) {
|
11431
11431
|
p();
|
11432
11432
|
return;
|
11433
11433
|
}
|
11434
|
-
|
11434
|
+
N && n(), n.flush(), r.flush(), c();
|
11435
11435
|
var k = Vt.get(e);
|
11436
11436
|
Vt.delete(e), k !== void 0 && (e.marks = k, e.onChange());
|
11437
|
-
},
|
11437
|
+
}, v = (R) => {
|
11438
11438
|
a && clearTimeout(a), a = setTimeout(() => {
|
11439
11439
|
Cn.set(e, !1), d();
|
11440
11440
|
}, Km);
|
11441
|
-
}, y = (
|
11441
|
+
}, y = (R) => {
|
11442
11442
|
Cn.set(e, !0), a && (clearTimeout(a), a = null);
|
11443
|
-
},
|
11444
|
-
var
|
11445
|
-
if (
|
11446
|
-
if (S() ||
|
11447
|
-
|
11443
|
+
}, h = function() {
|
11444
|
+
var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, T = ra.get(e);
|
11445
|
+
if (T) {
|
11446
|
+
if (S() || N) {
|
11447
|
+
T.style.display = "none";
|
11448
11448
|
return;
|
11449
11449
|
}
|
11450
|
-
|
11450
|
+
T.style.removeProperty("display");
|
11451
11451
|
}
|
11452
|
-
}, f = (
|
11453
|
-
var
|
11454
|
-
Et.set(e,
|
11455
|
-
var J = oe.leaf(e,
|
11452
|
+
}, f = (R, N) => {
|
11453
|
+
var T, j = (T = Et.get(e)) !== null && T !== void 0 ? T : [];
|
11454
|
+
Et.set(e, j);
|
11455
|
+
var J = oe.leaf(e, R), _ = j.findIndex((k) => O.equals(k.path, R));
|
11456
11456
|
if (_ < 0) {
|
11457
|
-
var te = lc(J.text,
|
11458
|
-
te &&
|
11459
|
-
path:
|
11460
|
-
diff:
|
11457
|
+
var te = lc(J.text, N);
|
11458
|
+
te && j.push({
|
11459
|
+
path: R,
|
11460
|
+
diff: N,
|
11461
11461
|
id: u++
|
11462
|
-
}),
|
11462
|
+
}), h();
|
11463
11463
|
return;
|
11464
11464
|
}
|
11465
|
-
var ae = Zm(J.text,
|
11465
|
+
var ae = Zm(J.text, j[_].diff, N);
|
11466
11466
|
if (!ae) {
|
11467
|
-
|
11467
|
+
j.splice(_, 1), h();
|
11468
11468
|
return;
|
11469
11469
|
}
|
11470
|
-
|
11470
|
+
j[_] = Mr(Mr({}, j[_]), {}, {
|
11471
11471
|
diff: ae
|
11472
11472
|
});
|
11473
|
-
}, C = function(
|
11473
|
+
}, C = function(N) {
|
11474
11474
|
var {
|
11475
|
-
at:
|
11475
|
+
at: T
|
11476
11476
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
11477
11477
|
l = !1, nn.delete(e), n.cancel(), r.cancel(), b() && d(), tn.set(e, {
|
11478
|
-
at:
|
11479
|
-
run:
|
11478
|
+
at: T,
|
11479
|
+
run: N
|
11480
11480
|
}), s = setTimeout(d);
|
11481
|
-
}, w = (
|
11482
|
-
var
|
11481
|
+
}, w = (R) => {
|
11482
|
+
var N;
|
11483
11483
|
o && (clearTimeout(o), o = null);
|
11484
11484
|
var {
|
11485
|
-
inputType:
|
11486
|
-
} =
|
11487
|
-
l !== !1 &&
|
11488
|
-
var [_] =
|
11489
|
-
_ && (
|
11485
|
+
inputType: T
|
11486
|
+
} = R, j = null, J = R.dataTransfer || R.data || void 0;
|
11487
|
+
l !== !1 && T !== "insertText" && T !== "insertCompositionText" && (l = !1);
|
11488
|
+
var [_] = R.getTargetRanges();
|
11489
|
+
_ && (j = K.toSlateRange(e, _, {
|
11490
11490
|
exactMatch: !1,
|
11491
11491
|
suppressThrow: !0
|
11492
11492
|
}));
|
11493
11493
|
var te = K.getWindow(e), ae = te.getSelection();
|
11494
|
-
if (!
|
11494
|
+
if (!j && ae && (_ = ae, j = K.toSlateRange(e, ae, {
|
11495
11495
|
exactMatch: !1,
|
11496
11496
|
suppressThrow: !0
|
11497
|
-
})),
|
11497
|
+
})), j = (N = j) !== null && N !== void 0 ? N : e.selection, !!j) {
|
11498
11498
|
var k = !0;
|
11499
|
-
if (
|
11500
|
-
if (q.isExpanded(
|
11501
|
-
var [I, Z] = q.edges(
|
11499
|
+
if (T.startsWith("delete")) {
|
11500
|
+
if (q.isExpanded(j)) {
|
11501
|
+
var [I, Z] = q.edges(j), H = oe.leaf(e, I.path);
|
11502
11502
|
if (H.text.length === I.offset && Z.offset === 0) {
|
11503
11503
|
var ee = g.next(e, {
|
11504
11504
|
at: I.path,
|
11505
11505
|
match: de.isText
|
11506
11506
|
});
|
11507
|
-
ee && O.equals(ee[1], Z.path) && (
|
11507
|
+
ee && O.equals(ee[1], Z.path) && (j = {
|
11508
11508
|
anchor: Z,
|
11509
11509
|
focus: Z
|
11510
11510
|
});
|
11511
11511
|
}
|
11512
11512
|
}
|
11513
|
-
var X =
|
11513
|
+
var X = T.endsWith("Backward") ? "backward" : "forward", [m, U] = q.edges(j), [W, P] = g.leaf(e, m.path), Q = {
|
11514
11514
|
text: "",
|
11515
11515
|
start: m.offset,
|
11516
11516
|
end: U.offset
|
11517
11517
|
}, ie = Et.get(e), G = ie == null ? void 0 : ie.find((Ye) => O.equals(Ye.path, P)), ce = G ? [G.diff, Q] : [Q], se = uc(W.text, ...ce);
|
11518
|
-
if (se.length === 0 && (k = !1), q.isExpanded(
|
11519
|
-
if (k && O.equals(
|
11518
|
+
if (se.length === 0 && (k = !1), q.isExpanded(j)) {
|
11519
|
+
if (k && O.equals(j.anchor.path, j.focus.path)) {
|
11520
11520
|
var he = {
|
11521
|
-
path:
|
11521
|
+
path: j.anchor.path,
|
11522
11522
|
offset: m.offset
|
11523
11523
|
}, ve = g.range(e, he, he);
|
11524
|
-
return A(ve), f(
|
11524
|
+
return A(ve), f(j.anchor.path, {
|
11525
11525
|
text: "",
|
11526
11526
|
end: U.offset,
|
11527
11527
|
start: m.offset
|
@@ -11530,23 +11530,23 @@ function e0(t) {
|
|
11530
11530
|
return C(() => g.deleteFragment(e, {
|
11531
11531
|
direction: X
|
11532
11532
|
}), {
|
11533
|
-
at:
|
11533
|
+
at: j
|
11534
11534
|
});
|
11535
11535
|
}
|
11536
11536
|
}
|
11537
|
-
switch (
|
11537
|
+
switch (T) {
|
11538
11538
|
case "deleteByComposition":
|
11539
11539
|
case "deleteByCut":
|
11540
11540
|
case "deleteByDrag":
|
11541
11541
|
return C(() => g.deleteFragment(e), {
|
11542
|
-
at:
|
11542
|
+
at: j
|
11543
11543
|
});
|
11544
11544
|
case "deleteContent":
|
11545
11545
|
case "deleteContentForward": {
|
11546
11546
|
var {
|
11547
11547
|
anchor: De
|
11548
|
-
} =
|
11549
|
-
if (k && q.isCollapsed(
|
11548
|
+
} = j;
|
11549
|
+
if (k && q.isCollapsed(j)) {
|
11550
11550
|
var Ce = oe.leaf(e, De.path);
|
11551
11551
|
if (De.offset < Ce.text.length)
|
11552
11552
|
return f(De.path, {
|
@@ -11556,19 +11556,19 @@ function e0(t) {
|
|
11556
11556
|
});
|
11557
11557
|
}
|
11558
11558
|
return C(() => g.deleteForward(e), {
|
11559
|
-
at:
|
11559
|
+
at: j
|
11560
11560
|
});
|
11561
11561
|
}
|
11562
11562
|
case "deleteContentBackward": {
|
11563
11563
|
var me, {
|
11564
11564
|
anchor: ge
|
11565
|
-
} =
|
11566
|
-
return k && Ie && q.isCollapsed(
|
11565
|
+
} = j, Ie = oa(_) ? _.isCollapsed : !!((me = _) !== null && me !== void 0 && me.collapsed);
|
11566
|
+
return k && Ie && q.isCollapsed(j) && ge.offset > 0 ? f(ge.path, {
|
11567
11567
|
text: "",
|
11568
11568
|
start: ge.offset - 1,
|
11569
11569
|
end: ge.offset
|
11570
11570
|
}) : C(() => g.deleteBackward(e), {
|
11571
|
-
at:
|
11571
|
+
at: j
|
11572
11572
|
});
|
11573
11573
|
}
|
11574
11574
|
case "deleteEntireSoftLine":
|
@@ -11579,51 +11579,51 @@ function e0(t) {
|
|
11579
11579
|
unit: "line"
|
11580
11580
|
});
|
11581
11581
|
}, {
|
11582
|
-
at:
|
11582
|
+
at: j
|
11583
11583
|
});
|
11584
11584
|
case "deleteHardLineBackward":
|
11585
11585
|
return C(() => g.deleteBackward(e, {
|
11586
11586
|
unit: "block"
|
11587
11587
|
}), {
|
11588
|
-
at:
|
11588
|
+
at: j
|
11589
11589
|
});
|
11590
11590
|
case "deleteSoftLineBackward":
|
11591
11591
|
return C(() => g.deleteBackward(e, {
|
11592
11592
|
unit: "line"
|
11593
11593
|
}), {
|
11594
|
-
at:
|
11594
|
+
at: j
|
11595
11595
|
});
|
11596
11596
|
case "deleteHardLineForward":
|
11597
11597
|
return C(() => g.deleteForward(e, {
|
11598
11598
|
unit: "block"
|
11599
11599
|
}), {
|
11600
|
-
at:
|
11600
|
+
at: j
|
11601
11601
|
});
|
11602
11602
|
case "deleteSoftLineForward":
|
11603
11603
|
return C(() => g.deleteForward(e, {
|
11604
11604
|
unit: "line"
|
11605
11605
|
}), {
|
11606
|
-
at:
|
11606
|
+
at: j
|
11607
11607
|
});
|
11608
11608
|
case "deleteWordBackward":
|
11609
11609
|
return C(() => g.deleteBackward(e, {
|
11610
11610
|
unit: "word"
|
11611
11611
|
}), {
|
11612
|
-
at:
|
11612
|
+
at: j
|
11613
11613
|
});
|
11614
11614
|
case "deleteWordForward":
|
11615
11615
|
return C(() => g.deleteForward(e, {
|
11616
11616
|
unit: "word"
|
11617
11617
|
}), {
|
11618
|
-
at:
|
11618
|
+
at: j
|
11619
11619
|
});
|
11620
11620
|
case "insertLineBreak":
|
11621
11621
|
return C(() => g.insertSoftBreak(e), {
|
11622
|
-
at:
|
11622
|
+
at: j
|
11623
11623
|
});
|
11624
11624
|
case "insertParagraph":
|
11625
11625
|
return C(() => g.insertBreak(e), {
|
11626
|
-
at:
|
11626
|
+
at: j
|
11627
11627
|
});
|
11628
11628
|
case "insertCompositionText":
|
11629
11629
|
case "deleteCompositionText":
|
@@ -11635,10 +11635,10 @@ function e0(t) {
|
|
11635
11635
|
case "insertText": {
|
11636
11636
|
if (Qm(J))
|
11637
11637
|
return C(() => K.insertData(e, J), {
|
11638
|
-
at:
|
11638
|
+
at: j
|
11639
11639
|
});
|
11640
11640
|
var le = J ?? "";
|
11641
|
-
if (Rt.get(e) && (le = le.replace("\uFEFF", "")),
|
11641
|
+
if (Rt.get(e) && (le = le.replace("\uFEFF", "")), T === "insertText" && /.*\n.*\n$/.test(le) && (le = le.slice(0, -1)), le.includes(`
|
11642
11642
|
`))
|
11643
11643
|
return C(() => {
|
11644
11644
|
var Ye = le.split(`
|
@@ -11647,18 +11647,18 @@ function e0(t) {
|
|
11647
11647
|
we && g.insertText(e, we), dt !== Ye.length - 1 && g.insertSoftBreak(e);
|
11648
11648
|
});
|
11649
11649
|
}, {
|
11650
|
-
at:
|
11650
|
+
at: j
|
11651
11651
|
});
|
11652
|
-
if (O.equals(
|
11653
|
-
var [Ne, pe] = q.edges(
|
11652
|
+
if (O.equals(j.anchor.path, j.focus.path)) {
|
11653
|
+
var [Ne, pe] = q.edges(j), Be = {
|
11654
11654
|
start: Ne.offset,
|
11655
11655
|
end: pe.offset,
|
11656
11656
|
text: le
|
11657
11657
|
};
|
11658
|
-
if (le && l &&
|
11658
|
+
if (le && l && T === "insertCompositionText") {
|
11659
11659
|
var Me = l.start + l.text.search(/\S|$/), We = Be.start + Be.text.search(/\S|$/);
|
11660
|
-
We === Me + 1 && Be.end === l.start + l.text.length ? (Be.start -= 1, l = null,
|
11661
|
-
} else
|
11660
|
+
We === Me + 1 && Be.end === l.start + l.text.length ? (Be.start -= 1, l = null, F()) : l = !1;
|
11661
|
+
} else T === "insertText" ? l === null ? l = Be : l && q.isCollapsed(j) && l.end + l.text.length === Ne.offset ? l = Mr(Mr({}, l), {}, {
|
11662
11662
|
text: l.text + le
|
11663
11663
|
}) : l = !1 : l = !1;
|
11664
11664
|
if (k) {
|
@@ -11667,49 +11667,49 @@ function e0(t) {
|
|
11667
11667
|
}
|
11668
11668
|
}
|
11669
11669
|
return C(() => g.insertText(e, le), {
|
11670
|
-
at:
|
11670
|
+
at: j
|
11671
11671
|
});
|
11672
11672
|
}
|
11673
11673
|
}
|
11674
11674
|
}
|
11675
11675
|
}, b = () => !!tn.get(e), S = () => {
|
11676
|
-
var
|
11677
|
-
return !!((
|
11678
|
-
}, D = () => b() || S(), E = () => i, A = (
|
11679
|
-
nn.set(e,
|
11676
|
+
var R;
|
11677
|
+
return !!((R = Et.get(e)) !== null && R !== void 0 && R.length);
|
11678
|
+
}, D = () => b() || S(), E = () => i, A = (R) => {
|
11679
|
+
nn.set(e, R), o && (clearTimeout(o), o = null);
|
11680
11680
|
var {
|
11681
|
-
selection:
|
11681
|
+
selection: N
|
11682
11682
|
} = e;
|
11683
|
-
if (
|
11684
|
-
var
|
11685
|
-
(
|
11683
|
+
if (R) {
|
11684
|
+
var T = !N || !O.equals(N.anchor.path, R.anchor.path), j = !N || !O.equals(N.anchor.path.slice(0, -1), R.anchor.path.slice(0, -1));
|
11685
|
+
(T && l || j) && (l = !1), (T || S()) && (o = setTimeout(d, Xm));
|
11686
11686
|
}
|
11687
|
-
}, F = () => {
|
11688
|
-
(b() || !S()) && d();
|
11689
|
-
}, V = (j) => {
|
11690
|
-
S() || (v(!0), setTimeout(v));
|
11691
11687
|
}, M = () => {
|
11688
|
+
(b() || !S()) && d();
|
11689
|
+
}, V = (R) => {
|
11690
|
+
S() || (h(!0), setTimeout(h));
|
11691
|
+
}, F = () => {
|
11692
11692
|
b() || (s = setTimeout(d));
|
11693
|
-
}, z = (
|
11694
|
-
if (!(S() || b()) &&
|
11695
|
-
var
|
11696
|
-
(
|
11693
|
+
}, z = (R) => {
|
11694
|
+
if (!(S() || b()) && R.some((T) => Na(e, T, R))) {
|
11695
|
+
var N;
|
11696
|
+
(N = nc.get(e)) === null || N === void 0 || N();
|
11697
11697
|
}
|
11698
11698
|
};
|
11699
11699
|
return {
|
11700
11700
|
flush: d,
|
11701
|
-
scheduleFlush:
|
11701
|
+
scheduleFlush: F,
|
11702
11702
|
hasPendingDiffs: S,
|
11703
11703
|
hasPendingAction: b,
|
11704
11704
|
hasPendingChanges: D,
|
11705
11705
|
isFlushing: E,
|
11706
11706
|
handleUserSelect: A,
|
11707
|
-
handleCompositionEnd:
|
11707
|
+
handleCompositionEnd: v,
|
11708
11708
|
handleCompositionStart: y,
|
11709
11709
|
handleDOMBeforeInput: w,
|
11710
11710
|
handleKeyDown: V,
|
11711
11711
|
handleDomMutations: z,
|
11712
|
-
handleInput:
|
11712
|
+
handleInput: M
|
11713
11713
|
};
|
11714
11714
|
}
|
11715
11715
|
function t0() {
|
@@ -11891,7 +11891,7 @@ var m0 = (t) => {
|
|
11891
11891
|
parent: i,
|
11892
11892
|
renderPlaceholder: a,
|
11893
11893
|
renderLeaf: o = (w) => /* @__PURE__ */ Y.createElement(C0, fc({}, w))
|
11894
|
-
} = t, s = ln(), u = qe(null), l = qe(null), [c, p] = $(!1), d = qe(null),
|
11894
|
+
} = t, s = ln(), u = qe(null), l = qe(null), [c, p] = $(!1), d = qe(null), v = Ve((w) => {
|
11895
11895
|
if (g0(u, w == null), w == null) {
|
11896
11896
|
var b;
|
11897
11897
|
ra.delete(s), (b = e.onPlaceholderResize) === null || b === void 0 || b.call(e, null);
|
@@ -11910,10 +11910,10 @@ var m0 = (t) => {
|
|
11910
11910
|
leaf: e,
|
11911
11911
|
parent: i,
|
11912
11912
|
text: r
|
11913
|
-
}),
|
11914
|
-
if (B(() => (
|
11913
|
+
}), h = !!e[In];
|
11914
|
+
if (B(() => (h ? d.current || (d.current = setTimeout(() => {
|
11915
11915
|
p(!0), d.current = null;
|
11916
|
-
}, v0)) : (uu(d), p(!1)), () => uu(d)), [
|
11916
|
+
}, v0)) : (uu(d), p(!1)), () => uu(d)), [h, p]), h && c) {
|
11917
11917
|
var f = {
|
11918
11918
|
children: e.placeholder,
|
11919
11919
|
attributes: {
|
@@ -11932,7 +11932,7 @@ var m0 = (t) => {
|
|
11932
11932
|
WebkitUserModify: gn ? "inherit" : void 0
|
11933
11933
|
},
|
11934
11934
|
contentEditable: !1,
|
11935
|
-
ref:
|
11935
|
+
ref: v
|
11936
11936
|
}
|
11937
11937
|
};
|
11938
11938
|
y = /* @__PURE__ */ Y.createElement(Y.Fragment, null, a(f), y);
|
@@ -11961,20 +11961,20 @@ var m0 = (t) => {
|
|
11961
11961
|
renderLeaf: a,
|
11962
11962
|
text: o
|
11963
11963
|
} = t, s = ln(), u = qe(null), l = de.decorations(o, e), c = K.findKey(s, o), p = [], d = 0; d < l.length; d++) {
|
11964
|
-
var
|
11964
|
+
var v = l[d];
|
11965
11965
|
p.push(/* @__PURE__ */ Y.createElement(y0, {
|
11966
11966
|
isLast: n && d === l.length - 1,
|
11967
11967
|
key: "".concat(c.id, "-").concat(d),
|
11968
11968
|
renderPlaceholder: i,
|
11969
|
-
leaf:
|
11969
|
+
leaf: v,
|
11970
11970
|
text: o,
|
11971
11971
|
parent: r,
|
11972
11972
|
renderLeaf: a
|
11973
11973
|
}));
|
11974
11974
|
}
|
11975
|
-
var y = Ve((
|
11975
|
+
var y = Ve((h) => {
|
11976
11976
|
var f = ui.get(s);
|
11977
|
-
|
11977
|
+
h ? (f == null || f.set(c, h), En.set(o, h), lr.set(h, o)) : (f == null || f.delete(c), En.delete(o), u.current && lr.delete(u.current)), u.current = h;
|
11978
11978
|
}, [u, s, c, o]);
|
11979
11979
|
return /* @__PURE__ */ Y.createElement("span", {
|
11980
11980
|
"data-slate-node": "text",
|
@@ -12020,16 +12020,16 @@ var b0 = (t) => {
|
|
12020
12020
|
renderPlaceholder: i,
|
12021
12021
|
renderLeaf: a,
|
12022
12022
|
selection: o
|
12023
|
-
}),
|
12023
|
+
}), v = {
|
12024
12024
|
"data-slate-node": "element",
|
12025
12025
|
ref: p
|
12026
12026
|
};
|
12027
|
-
if (l && (
|
12028
|
-
var y = oe.string(n),
|
12029
|
-
|
12027
|
+
if (l && (v["data-slate-inline"] = !0), !l && g.hasInlines(s, n)) {
|
12028
|
+
var y = oe.string(n), h = _l(y);
|
12029
|
+
h === "rtl" && (v.dir = h);
|
12030
12030
|
}
|
12031
12031
|
if (g.isVoid(s, n)) {
|
12032
|
-
|
12032
|
+
v["data-slate-void"] = !0, !u && l && (v.contentEditable = !1);
|
12033
12033
|
var f = l ? "span" : "div", [[C]] = oe.texts(n);
|
12034
12034
|
d = /* @__PURE__ */ Y.createElement(f, {
|
12035
12035
|
"data-slate-spacer": !0,
|
@@ -12048,7 +12048,7 @@ var b0 = (t) => {
|
|
12048
12048
|
})), Ta.set(C, 0), Ra.set(C, n);
|
12049
12049
|
}
|
12050
12050
|
return r({
|
12051
|
-
attributes:
|
12051
|
+
attributes: v,
|
12052
12052
|
children: d,
|
12053
12053
|
element: n
|
12054
12054
|
});
|
@@ -12072,25 +12072,25 @@ var b0 = (t) => {
|
|
12072
12072
|
renderLeaf: a,
|
12073
12073
|
selection: o
|
12074
12074
|
} = t, s = B0(), u = ln(), l = K.findPath(u, n), c = [], p = fe.isElement(n) && !u.isInline(n) && g.hasInlines(u, n), d = 0; d < n.children.length; d++) {
|
12075
|
-
var
|
12075
|
+
var v = l.concat(d), y = n.children[d], h = K.findKey(u, y), f = g.range(u, v), C = o && q.intersection(f, o), w = s([y, v]);
|
12076
12076
|
for (var b of e) {
|
12077
12077
|
var S = q.intersection(b, f);
|
12078
12078
|
S && w.push(S);
|
12079
12079
|
}
|
12080
12080
|
fe.isElement(y) ? c.push(/* @__PURE__ */ Y.createElement(x0.Provider, {
|
12081
|
-
key: "provider-".concat(
|
12081
|
+
key: "provider-".concat(h.id),
|
12082
12082
|
value: !!C
|
12083
12083
|
}, /* @__PURE__ */ Y.createElement(E0, {
|
12084
12084
|
decorations: w,
|
12085
12085
|
element: y,
|
12086
|
-
key:
|
12086
|
+
key: h.id,
|
12087
12087
|
renderElement: r,
|
12088
12088
|
renderPlaceholder: i,
|
12089
12089
|
renderLeaf: a,
|
12090
12090
|
selection: C
|
12091
12091
|
}))) : c.push(/* @__PURE__ */ Y.createElement(dc, {
|
12092
12092
|
decorations: w,
|
12093
|
-
key:
|
12093
|
+
key: h.id,
|
12094
12094
|
isLast: p && d === n.children.length - 1,
|
12095
12095
|
parent: n,
|
12096
12096
|
renderPlaceholder: i,
|
@@ -12292,13 +12292,13 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12292
12292
|
renderPlaceholder: c = n,
|
12293
12293
|
scrollSelectionIntoView: p = W0,
|
12294
12294
|
style: d = {},
|
12295
|
-
as:
|
12295
|
+
as: v = "div",
|
12296
12296
|
disableDefaultStyles: y = !1
|
12297
|
-
} = t,
|
12298
|
-
onUserInput:
|
12297
|
+
} = t, h = jn(t, j0), f = $a(), [C, w] = $(!1), b = qe(null), S = qe([]), [D, E] = $(), A = qe(!1), {
|
12298
|
+
onUserInput: M,
|
12299
12299
|
receivedUserInput: V
|
12300
|
-
} = A0(), [,
|
12301
|
-
nc.set(f,
|
12300
|
+
} = A0(), [, F] = Yc((m) => m + 1, 0);
|
12301
|
+
nc.set(f, F), ia.set(f, s);
|
12302
12302
|
var z = qt(() => ({
|
12303
12303
|
isDraggingInternally: !1,
|
12304
12304
|
isUpdatingSelection: !1,
|
@@ -12308,7 +12308,7 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12308
12308
|
B(() => {
|
12309
12309
|
b.current && r && b.current.focus();
|
12310
12310
|
}, [r]);
|
12311
|
-
var
|
12311
|
+
var R = qe(), N = qt(() => Jg(() => {
|
12312
12312
|
var m = K.toDOMNode(f, f), U = m.getRootNode();
|
12313
12313
|
if (!A.current && gn && U instanceof ShadowRoot) {
|
12314
12314
|
A.current = !0;
|
@@ -12316,7 +12316,7 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12316
12316
|
W ? document.execCommand("indent") : ne.deselect(f), A.current = !1;
|
12317
12317
|
return;
|
12318
12318
|
}
|
12319
|
-
var P =
|
12319
|
+
var P = R.current;
|
12320
12320
|
if ((Dt || !K.isComposing(f)) && (!z.isUpdatingSelection || P != null && P.isFlushing()) && !z.isDraggingInternally) {
|
12321
12321
|
var Q = K.findDocumentOrShadowRoot(f), {
|
12322
12322
|
activeElement: ie
|
@@ -12336,18 +12336,18 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12336
12336
|
}
|
12337
12337
|
s && (!ve || !De) && ne.deselect(f);
|
12338
12338
|
}
|
12339
|
-
}, 100), [f, s, z]),
|
12340
|
-
|
12339
|
+
}, 100), [f, s, z]), T = qt(() => qg(N, 0), [N]);
|
12340
|
+
R.current = o0({
|
12341
12341
|
node: b,
|
12342
|
-
onDOMSelectionChange:
|
12343
|
-
scheduleOnDOMSelectionChange:
|
12342
|
+
onDOMSelectionChange: N,
|
12343
|
+
scheduleOnDOMSelectionChange: T
|
12344
12344
|
}), cr(() => {
|
12345
12345
|
var m, U, W;
|
12346
12346
|
b.current && (W = Ia(b.current)) ? (tc.set(f, W), Ur.set(f, b.current), En.set(f, b.current), lr.set(b.current, f)) : En.delete(f);
|
12347
12347
|
var {
|
12348
12348
|
selection: P
|
12349
12349
|
} = f, Q = K.findDocumentOrShadowRoot(f), ie = nr(Q);
|
12350
|
-
if (!(!ie || !K.isFocused(f) || (m =
|
12350
|
+
if (!(!ie || !K.isFocused(f) || (m = R.current) !== null && m !== void 0 && m.hasPendingAction())) {
|
12351
12351
|
var G = (ve) => {
|
12352
12352
|
var De = ie.type !== "None";
|
12353
12353
|
if (!(!P && !De)) {
|
@@ -12384,7 +12384,7 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12384
12384
|
}
|
12385
12385
|
};
|
12386
12386
|
ie.rangeCount <= 1 && G();
|
12387
|
-
var ce = ((U =
|
12387
|
+
var ce = ((U = R.current) === null || U === void 0 ? void 0 : U.isFlushing()) === "action";
|
12388
12388
|
if (!Dt || !ce) {
|
12389
12389
|
setTimeout(() => {
|
12390
12390
|
z.isUpdatingSelection = !1;
|
@@ -12410,7 +12410,7 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12410
12410
|
};
|
12411
12411
|
}
|
12412
12412
|
});
|
12413
|
-
var
|
12413
|
+
var j = Ve((m) => {
|
12414
12414
|
var U = K.toDOMNode(f, f), W = U.getRootNode();
|
12415
12415
|
if (A != null && A.current && gn && W instanceof ShadowRoot) {
|
12416
12416
|
var P = m.getTargetRanges(), Q = P[0], ie = new window.Range();
|
@@ -12422,11 +12422,11 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12422
12422
|
ne.select(f, G), m.preventDefault(), m.stopImmediatePropagation();
|
12423
12423
|
return;
|
12424
12424
|
}
|
12425
|
-
if (
|
12425
|
+
if (M(), !s && K.hasEditableTarget(f, m.target) && !U0(m, a)) {
|
12426
12426
|
var ce;
|
12427
|
-
if (
|
12428
|
-
return
|
12429
|
-
|
12427
|
+
if (R.current)
|
12428
|
+
return R.current.handleDOMBeforeInput(m);
|
12429
|
+
T.flush(), N.flush();
|
12430
12430
|
var {
|
12431
12431
|
selection: se
|
12432
12432
|
} = f, {
|
@@ -12562,19 +12562,19 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12562
12562
|
var mt = (ce = tr.get(f)) === null || ce === void 0 ? void 0 : ce.unref();
|
12563
12563
|
tr.delete(f), mt && (!f.selection || !q.equals(f.selection, mt)) && ne.select(f, mt);
|
12564
12564
|
}
|
12565
|
-
}, [f,
|
12566
|
-
m == null ? (
|
12567
|
-
}, [
|
12565
|
+
}, [f, N, M, a, s, T]), J = Ve((m) => {
|
12566
|
+
m == null ? (N.cancel(), T.cancel(), Ur.delete(f), En.delete(f), b.current && Kt && b.current.removeEventListener("beforeinput", j)) : Kt && m.addEventListener("beforeinput", j), b.current = m, typeof e == "function" ? e(m) : e && (e.current = m);
|
12567
|
+
}, [N, T, f, j, e]);
|
12568
12568
|
cr(() => {
|
12569
12569
|
var m = K.getWindow(f);
|
12570
|
-
m.document.addEventListener("selectionchange",
|
12570
|
+
m.document.addEventListener("selectionchange", T);
|
12571
12571
|
var U = () => {
|
12572
12572
|
z.isDraggingInternally = !1;
|
12573
12573
|
};
|
12574
12574
|
return m.document.addEventListener("dragend", U), m.document.addEventListener("drop", U), () => {
|
12575
|
-
m.document.removeEventListener("selectionchange",
|
12575
|
+
m.document.removeEventListener("selectionchange", T), m.document.removeEventListener("dragend", U), m.document.removeEventListener("drop", U);
|
12576
12576
|
};
|
12577
|
-
}, [
|
12577
|
+
}, [T, z]);
|
12578
12578
|
var _ = i([f, []]), te = o && f.children.length === 1 && Array.from(oe.texts(f)).length === 1 && oe.string(f) === "" && !C, ae = Ve((m) => {
|
12579
12579
|
if (m && te) {
|
12580
12580
|
var U;
|
@@ -12639,18 +12639,18 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12639
12639
|
}, /* @__PURE__ */ Y.createElement(T0, {
|
12640
12640
|
node: b,
|
12641
12641
|
receivedUserInput: V
|
12642
|
-
}, /* @__PURE__ */ Y.createElement(
|
12642
|
+
}, /* @__PURE__ */ Y.createElement(v, Nt(Nt({
|
12643
12643
|
role: s ? void 0 : "textbox",
|
12644
12644
|
"aria-multiline": s ? void 0 : !0
|
12645
|
-
},
|
12645
|
+
}, h), {}, {
|
12646
12646
|
// COMPAT: Certain browsers don't support the `beforeinput` event, so we'd
|
12647
12647
|
// have to use hacks to make these replacement-based features work.
|
12648
12648
|
// For SSR situations HAS_BEFORE_INPUT_SUPPORT is false and results in prop
|
12649
12649
|
// mismatch warning app moves to browser. Pass-through consumer props when
|
12650
12650
|
// not CAN_USE_DOM (SSR) and default to falsy value
|
12651
|
-
spellCheck: Kt || !Wr ?
|
12652
|
-
autoCorrect: Kt || !Wr ?
|
12653
|
-
autoCapitalize: Kt || !Wr ?
|
12651
|
+
spellCheck: Kt || !Wr ? h.spellCheck : !1,
|
12652
|
+
autoCorrect: Kt || !Wr ? h.autoCorrect : "false",
|
12653
|
+
autoCapitalize: Kt || !Wr ? h.autoCapitalize : "false",
|
12654
12654
|
"data-slate-editor": !0,
|
12655
12655
|
"data-slate-node": "value",
|
12656
12656
|
// explicitly set this
|
@@ -12672,24 +12672,24 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12672
12672
|
minHeight: D
|
12673
12673
|
} : {})), d),
|
12674
12674
|
onBeforeInput: Ve((m) => {
|
12675
|
-
if (!Kt && !s && !Ct(m,
|
12675
|
+
if (!Kt && !s && !Ct(m, h.onBeforeInput) && K.hasSelectableTarget(f, m.target) && (m.preventDefault(), !K.isComposing(f))) {
|
12676
12676
|
var U = m.data;
|
12677
12677
|
g.insertText(f, U);
|
12678
12678
|
}
|
12679
|
-
}, [
|
12679
|
+
}, [h.onBeforeInput, f, s]),
|
12680
12680
|
onInput: Ve((m) => {
|
12681
|
-
if (!Ct(m,
|
12682
|
-
if (
|
12683
|
-
|
12681
|
+
if (!Ct(m, h.onInput)) {
|
12682
|
+
if (R.current) {
|
12683
|
+
R.current.handleInput();
|
12684
12684
|
return;
|
12685
12685
|
}
|
12686
12686
|
for (var U of S.current)
|
12687
12687
|
U();
|
12688
12688
|
S.current = [];
|
12689
12689
|
}
|
12690
|
-
}, [
|
12690
|
+
}, [h.onInput]),
|
12691
12691
|
onBlur: Ve((m) => {
|
12692
|
-
if (!(s || z.isUpdatingSelection || !K.hasSelectableTarget(f, m.target) || Ct(m,
|
12692
|
+
if (!(s || z.isUpdatingSelection || !K.hasSelectableTarget(f, m.target) || Ct(m, h.onBlur))) {
|
12693
12693
|
var U = K.findDocumentOrShadowRoot(f);
|
12694
12694
|
if (z.latestElement !== U.activeElement) {
|
12695
12695
|
var {
|
@@ -12709,9 +12709,9 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12709
12709
|
}
|
12710
12710
|
}
|
12711
12711
|
}
|
12712
|
-
}, [s, z.isUpdatingSelection, z.latestElement, f,
|
12712
|
+
}, [s, z.isUpdatingSelection, z.latestElement, f, h.onBlur]),
|
12713
12713
|
onClick: Ve((m) => {
|
12714
|
-
if (K.hasTarget(f, m.target) && !Ct(m,
|
12714
|
+
if (K.hasTarget(f, m.target) && !Ct(m, h.onClick) && un(m.target)) {
|
12715
12715
|
var U = K.toSlateNode(f, m.target), W = K.findPath(f, U);
|
12716
12716
|
if (!g.hasPath(f, W) || oe.get(f, W) !== U)
|
12717
12717
|
return;
|
@@ -12740,13 +12740,13 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12740
12740
|
ne.select(f, De);
|
12741
12741
|
}
|
12742
12742
|
}
|
12743
|
-
}, [f,
|
12743
|
+
}, [f, h.onClick, s]),
|
12744
12744
|
onCompositionEnd: Ve((m) => {
|
12745
12745
|
if (K.hasSelectableTarget(f, m.target)) {
|
12746
12746
|
var U;
|
12747
12747
|
if (K.isComposing(f) && Promise.resolve().then(() => {
|
12748
12748
|
w(!1), Cn.set(f, !1);
|
12749
|
-
}), (U =
|
12749
|
+
}), (U = R.current) === null || U === void 0 || U.handleCompositionEnd(m), Ct(m, h.onCompositionEnd) || Dt)
|
12750
12750
|
return;
|
12751
12751
|
if (!gn && !Sm && !Ql && !Mm && !Fm && m.data) {
|
12752
12752
|
var W = Rt.get(f);
|
@@ -12755,14 +12755,14 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12755
12755
|
Vt.delete(f), P !== void 0 && (f.marks = P);
|
12756
12756
|
}
|
12757
12757
|
}
|
12758
|
-
}, [
|
12758
|
+
}, [h.onCompositionEnd, f]),
|
12759
12759
|
onCompositionUpdate: Ve((m) => {
|
12760
|
-
K.hasSelectableTarget(f, m.target) && !Ct(m,
|
12761
|
-
}, [
|
12760
|
+
K.hasSelectableTarget(f, m.target) && !Ct(m, h.onCompositionUpdate) && (K.isComposing(f) || (w(!0), Cn.set(f, !0)));
|
12761
|
+
}, [h.onCompositionUpdate, f]),
|
12762
12762
|
onCompositionStart: Ve((m) => {
|
12763
12763
|
if (K.hasSelectableTarget(f, m.target)) {
|
12764
12764
|
var U;
|
12765
|
-
if ((U =
|
12765
|
+
if ((U = R.current) === null || U === void 0 || U.handleCompositionStart(m), Ct(m, h.onCompositionStart) || Dt)
|
12766
12766
|
return;
|
12767
12767
|
w(!0);
|
12768
12768
|
var {
|
@@ -12773,12 +12773,12 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12773
12773
|
return;
|
12774
12774
|
}
|
12775
12775
|
}
|
12776
|
-
}, [
|
12776
|
+
}, [h.onCompositionStart, f]),
|
12777
12777
|
onCopy: Ve((m) => {
|
12778
|
-
K.hasSelectableTarget(f, m.target) && !Ct(m,
|
12779
|
-
}, [
|
12778
|
+
K.hasSelectableTarget(f, m.target) && !Ct(m, h.onCopy) && !fu(m) && (m.preventDefault(), K.setFragmentData(f, m.clipboardData, "copy"));
|
12779
|
+
}, [h.onCopy, f]),
|
12780
12780
|
onCut: Ve((m) => {
|
12781
|
-
if (!s && K.hasSelectableTarget(f, m.target) && !Ct(m,
|
12781
|
+
if (!s && K.hasSelectableTarget(f, m.target) && !Ct(m, h.onCut) && !fu(m)) {
|
12782
12782
|
m.preventDefault(), K.setFragmentData(f, m.clipboardData, "cut");
|
12783
12783
|
var {
|
12784
12784
|
selection: U
|
@@ -12791,15 +12791,15 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12791
12791
|
g.isVoid(f, W) && ne.delete(f);
|
12792
12792
|
}
|
12793
12793
|
}
|
12794
|
-
}, [s, f,
|
12794
|
+
}, [s, f, h.onCut]),
|
12795
12795
|
onDragOver: Ve((m) => {
|
12796
|
-
if (K.hasTarget(f, m.target) && !Ct(m,
|
12796
|
+
if (K.hasTarget(f, m.target) && !Ct(m, h.onDragOver)) {
|
12797
12797
|
var U = K.toSlateNode(f, m.target);
|
12798
12798
|
fe.isElement(U) && g.isVoid(f, U) && m.preventDefault();
|
12799
12799
|
}
|
12800
|
-
}, [
|
12800
|
+
}, [h.onDragOver, f]),
|
12801
12801
|
onDragStart: Ve((m) => {
|
12802
|
-
if (!s && K.hasTarget(f, m.target) && !Ct(m,
|
12802
|
+
if (!s && K.hasTarget(f, m.target) && !Ct(m, h.onDragStart)) {
|
12803
12803
|
var U = K.toSlateNode(f, m.target), W = K.findPath(f, U), P = fe.isElement(U) && g.isVoid(f, U) || g.void(f, {
|
12804
12804
|
at: W,
|
12805
12805
|
voids: !0
|
@@ -12810,9 +12810,9 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12810
12810
|
}
|
12811
12811
|
z.isDraggingInternally = !0, K.setFragmentData(f, m.dataTransfer, "drag");
|
12812
12812
|
}
|
12813
|
-
}, [s, f,
|
12813
|
+
}, [s, f, h.onDragStart, z]),
|
12814
12814
|
onDrop: Ve((m) => {
|
12815
|
-
if (!s && K.hasTarget(f, m.target) && !Ct(m,
|
12815
|
+
if (!s && K.hasTarget(f, m.target) && !Ct(m, h.onDrop)) {
|
12816
12816
|
m.preventDefault();
|
12817
12817
|
var U = f.selection, W = K.findEventRange(f, m), P = m.dataTransfer;
|
12818
12818
|
ne.select(f, W), z.isDraggingInternally && U && !q.equals(U, W) && !g.void(f, {
|
@@ -12822,12 +12822,12 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12822
12822
|
at: U
|
12823
12823
|
}), K.insertData(f, P), K.isFocused(f) || K.focus(f);
|
12824
12824
|
}
|
12825
|
-
}, [s, f,
|
12825
|
+
}, [s, f, h.onDrop, z]),
|
12826
12826
|
onDragEnd: Ve((m) => {
|
12827
|
-
!s && z.isDraggingInternally &&
|
12828
|
-
}, [s, z,
|
12827
|
+
!s && z.isDraggingInternally && h.onDragEnd && K.hasTarget(f, m.target) && h.onDragEnd(m);
|
12828
|
+
}, [s, z, h, f]),
|
12829
12829
|
onFocus: Ve((m) => {
|
12830
|
-
if (!s && !z.isUpdatingSelection && K.hasEditableTarget(f, m.target) && !Ct(m,
|
12830
|
+
if (!s && !z.isUpdatingSelection && K.hasEditableTarget(f, m.target) && !Ct(m, h.onFocus)) {
|
12831
12831
|
var U = K.toDOMNode(f, f), W = K.findDocumentOrShadowRoot(f);
|
12832
12832
|
if (z.latestElement = W.activeElement, kn && m.target !== U) {
|
12833
12833
|
U.focus();
|
@@ -12835,15 +12835,15 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12835
12835
|
}
|
12836
12836
|
on.set(f, !0);
|
12837
12837
|
}
|
12838
|
-
}, [s, z, f,
|
12838
|
+
}, [s, z, f, h.onFocus]),
|
12839
12839
|
onKeyDown: Ve((m) => {
|
12840
12840
|
if (!s && K.hasEditableTarget(f, m.target)) {
|
12841
12841
|
var U;
|
12842
|
-
(U =
|
12842
|
+
(U = R.current) === null || U === void 0 || U.handleKeyDown(m);
|
12843
12843
|
var {
|
12844
12844
|
nativeEvent: W
|
12845
12845
|
} = m;
|
12846
|
-
if (K.isComposing(f) && W.isComposing === !1 && (Cn.set(f, !1), w(!1)), Ct(m,
|
12846
|
+
if (K.isComposing(f) && W.isComposing === !1 && (Cn.set(f, !1), w(!1)), Ct(m, h.onKeyDown) || K.isComposing(f))
|
12847
12847
|
return;
|
12848
12848
|
var {
|
12849
12849
|
selection: P
|
@@ -12991,10 +12991,10 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12991
12991
|
}
|
12992
12992
|
}
|
12993
12993
|
}
|
12994
|
-
}, [s, f,
|
12994
|
+
}, [s, f, h.onKeyDown]),
|
12995
12995
|
onPaste: Ve((m) => {
|
12996
|
-
!s && K.hasEditableTarget(f, m.target) && !Ct(m,
|
12997
|
-
}, [s, f,
|
12996
|
+
!s && K.hasEditableTarget(f, m.target) && !Ct(m, h.onPaste) && (!Kt || Tm(m.nativeEvent) || gn) && (m.preventDefault(), K.insertData(f, m.clipboardData));
|
12997
|
+
}, [s, f, h.onPaste])
|
12998
12998
|
}), /* @__PURE__ */ Y.createElement(N0, {
|
12999
12999
|
decorations: _,
|
13000
13000
|
node: f,
|
@@ -13067,9 +13067,9 @@ var Z0 = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
|
|
13067
13067
|
}), {
|
13068
13068
|
selectorContext: c,
|
13069
13069
|
onChange: p
|
13070
|
-
} = q0(e), d = Ve((
|
13070
|
+
} = q0(e), d = Ve((h) => {
|
13071
13071
|
var f;
|
13072
|
-
switch (r && r(e.children),
|
13072
|
+
switch (r && r(e.children), h == null || (f = h.operation) === null || f === void 0 ? void 0 : f.type) {
|
13073
13073
|
case "set_selection":
|
13074
13074
|
i == null || i(e.selection);
|
13075
13075
|
break;
|
@@ -13085,15 +13085,15 @@ var Z0 = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
|
|
13085
13085
|
aa.set(e, () => {
|
13086
13086
|
});
|
13087
13087
|
}), [e, d]);
|
13088
|
-
var [
|
13088
|
+
var [v, y] = $(K.isFocused(e));
|
13089
13089
|
return B(() => {
|
13090
13090
|
y(K.isFocused(e));
|
13091
13091
|
}, [e]), cr(() => {
|
13092
|
-
var
|
13093
|
-
return Jl >= 17 ? (document.addEventListener("focusin",
|
13094
|
-
document.removeEventListener("focusin",
|
13095
|
-
}) : (document.addEventListener("focus",
|
13096
|
-
document.removeEventListener("focus",
|
13092
|
+
var h = () => y(K.isFocused(e));
|
13093
|
+
return Jl >= 17 ? (document.addEventListener("focusin", h), document.addEventListener("focusout", h), () => {
|
13094
|
+
document.removeEventListener("focusin", h), document.removeEventListener("focusout", h);
|
13095
|
+
}) : (document.addEventListener("focus", h, !0), document.addEventListener("blur", h, !0), () => {
|
13096
|
+
document.removeEventListener("focus", h, !0), document.removeEventListener("blur", h, !0);
|
13097
13097
|
});
|
13098
13098
|
}, []), /* @__PURE__ */ Y.createElement(V0.Provider, {
|
13099
13099
|
value: c
|
@@ -13102,7 +13102,7 @@ var Z0 = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
|
|
13102
13102
|
}, /* @__PURE__ */ Y.createElement(ka.Provider, {
|
13103
13103
|
value: u.editor
|
13104
13104
|
}, /* @__PURE__ */ Y.createElement(H0.Provider, {
|
13105
|
-
value:
|
13105
|
+
value: v
|
13106
13106
|
}, n))));
|
13107
13107
|
}, du = (t, e) => {
|
13108
13108
|
var n = (e.top + e.bottom) / 2;
|
@@ -13166,24 +13166,24 @@ var K0 = function(e) {
|
|
13166
13166
|
at: r.selection
|
13167
13167
|
});
|
13168
13168
|
if (c) {
|
13169
|
-
var [, p] = c, d = g.range(r, p, r.selection.anchor),
|
13170
|
-
q.isCollapsed(
|
13171
|
-
at:
|
13169
|
+
var [, p] = c, d = g.range(r, p, r.selection.anchor), v = Y0(r, d);
|
13170
|
+
q.isCollapsed(v) || ne.delete(r, {
|
13171
|
+
at: v
|
13172
13172
|
});
|
13173
13173
|
}
|
13174
13174
|
}
|
13175
13175
|
}, r.apply = (l) => {
|
13176
13176
|
var c = [], p = [], d = Et.get(r);
|
13177
13177
|
if (d != null && d.length) {
|
13178
|
-
var
|
13179
|
-
Et.set(r,
|
13178
|
+
var v = d.map((T) => Ym(T, l)).filter(Boolean);
|
13179
|
+
Et.set(r, v);
|
13180
13180
|
}
|
13181
13181
|
var y = nn.get(r);
|
13182
13182
|
y && nn.set(r, nu(r, y, l));
|
13183
|
-
var
|
13184
|
-
if (
|
13185
|
-
var f = Se.isPoint(
|
13186
|
-
tn.set(r, f ? vu(vu({},
|
13183
|
+
var h = tn.get(r);
|
13184
|
+
if (h != null && h.at) {
|
13185
|
+
var f = Se.isPoint(h == null ? void 0 : h.at) ? ua(r, h.at, l) : nu(r, h.at, l);
|
13186
|
+
tn.set(r, f ? vu(vu({}, h), {}, {
|
13187
13187
|
at: f
|
13188
13188
|
}) : null);
|
13189
13189
|
}
|
@@ -13221,43 +13221,43 @@ var K0 = function(e) {
|
|
13221
13221
|
}
|
13222
13222
|
}
|
13223
13223
|
i(l);
|
13224
|
-
for (var [
|
13225
|
-
var [
|
13226
|
-
Qr.set(
|
13224
|
+
for (var [M, V] of c) {
|
13225
|
+
var [F] = g.node(r, M);
|
13226
|
+
Qr.set(F, V);
|
13227
13227
|
}
|
13228
|
-
for (var [z,
|
13228
|
+
for (var [z, R] of p)
|
13229
13229
|
if (z.current) {
|
13230
|
-
var [
|
13231
|
-
Qr.set(
|
13230
|
+
var [N] = g.node(r, z.current);
|
13231
|
+
Qr.set(N, R);
|
13232
13232
|
}
|
13233
13233
|
}, r.setFragmentData = (l) => {
|
13234
13234
|
var {
|
13235
13235
|
selection: c
|
13236
13236
|
} = r;
|
13237
13237
|
if (c) {
|
13238
|
-
var [p, d] = q.edges(c),
|
13238
|
+
var [p, d] = q.edges(c), v = g.void(r, {
|
13239
13239
|
at: p.path
|
13240
13240
|
}), y = g.void(r, {
|
13241
13241
|
at: d.path
|
13242
13242
|
});
|
13243
|
-
if (!(q.isCollapsed(c) && !
|
13244
|
-
var
|
13245
|
-
if (f.childNodes.forEach((
|
13246
|
-
|
13243
|
+
if (!(q.isCollapsed(c) && !v)) {
|
13244
|
+
var h = K.toDOMRange(r, c), f = h.cloneContents(), C = f.childNodes[0];
|
13245
|
+
if (f.childNodes.forEach((F) => {
|
13246
|
+
F.textContent && F.textContent.trim() !== "" && (C = F);
|
13247
13247
|
}), y) {
|
13248
|
-
var [w] = y, b =
|
13248
|
+
var [w] = y, b = h.cloneRange(), S = K.toDOMNode(r, w);
|
13249
13249
|
b.setEndAfter(S), f = b.cloneContents();
|
13250
13250
|
}
|
13251
|
-
if (
|
13252
|
-
var z =
|
13253
|
-
|
13251
|
+
if (v && (C = f.querySelector("[data-slate-spacer]")), Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach((F) => {
|
13252
|
+
var z = F.getAttribute("data-slate-zero-width") === "n";
|
13253
|
+
F.textContent = z ? `
|
13254
13254
|
` : "";
|
13255
13255
|
}), ac(C)) {
|
13256
13256
|
var D = C.ownerDocument.createElement("span");
|
13257
13257
|
D.style.whiteSpace = "pre", D.appendChild(C), f.appendChild(D), C = D;
|
13258
13258
|
}
|
13259
|
-
var E = r.getFragment(), A = JSON.stringify(E),
|
13260
|
-
C.setAttribute("data-slate-fragment",
|
13259
|
+
var E = r.getFragment(), A = JSON.stringify(E), M = window.btoa(encodeURIComponent(A));
|
13260
|
+
C.setAttribute("data-slate-fragment", M), l.setData("application/".concat(n), M);
|
13261
13261
|
var V = f.ownerDocument.createElement("div");
|
13262
13262
|
return V.appendChild(f), V.setAttribute("hidden", "true"), f.ownerDocument.body.appendChild(V), l.setData("text/html", V.innerHTML), l.setData("text/plain", sc(V)), f.ownerDocument.body.removeChild(V), l;
|
13263
13263
|
}
|
@@ -13275,10 +13275,10 @@ var K0 = function(e) {
|
|
13275
13275
|
var c = l.getData("text/plain");
|
13276
13276
|
if (c) {
|
13277
13277
|
var p = c.split(/\r\n|\r|\n/), d = !1;
|
13278
|
-
for (var
|
13278
|
+
for (var v of p)
|
13279
13279
|
d && ne.splitNodes(r, {
|
13280
13280
|
always: !0
|
13281
|
-
}), r.insertText(
|
13281
|
+
}), r.insertText(v), d = !0;
|
13282
13282
|
return !0;
|
13283
13283
|
}
|
13284
13284
|
return !1;
|
@@ -13416,26 +13416,26 @@ function pb({
|
|
13416
13416
|
onChange: o,
|
13417
13417
|
isError: s
|
13418
13418
|
}) {
|
13419
|
-
|
13420
|
-
|
13421
|
-
), [d, h] = $(!1), { id: y, inputRef: v, error: f } = St(), C = qe(null), w = v || C, b = s || !!f, S = qt(() => _v(K0(Nv())), []), D = Ve(Q0, []), E = Ve(J0, []);
|
13422
|
-
function A(T) {
|
13423
|
-
return T.map((R) => oe.string(R)).join("");
|
13419
|
+
function u(T) {
|
13420
|
+
return T.map((j) => oe.string(j)).join("");
|
13424
13421
|
}
|
13425
|
-
|
13426
|
-
|
13427
|
-
|
13422
|
+
const l = e ? JSON.parse(e) : yu, [c, p] = $(
|
13423
|
+
u(l).length
|
13424
|
+
), [d, v] = $(l), [y, h] = $(!1), { id: f, inputRef: C, error: w } = St(), b = qe(null), S = C || b, D = s || !!w, E = qt(() => _v(K0(Nv())), []), A = Ve(Q0, []), M = Ve(J0, []);
|
13425
|
+
function V(T) {
|
13426
|
+
const j = u(T);
|
13427
|
+
p(j.length), r && r(j.length), !(n && j.length >= i) && (v(T), o && o(T), a && a(j), E.children = T, ne.setNodes(E, { children: T }));
|
13428
13428
|
}
|
13429
|
-
const
|
13429
|
+
const F = y ? "focusTrue" : "focusFalse", R = `arkynRichText ${D || i < c ? "errorTrue" : "errorFalse"} ${F}`, N = i - c;
|
13430
13430
|
return /* @__PURE__ */ x.jsxs(
|
13431
13431
|
G0,
|
13432
13432
|
{
|
13433
|
-
editor:
|
13433
|
+
editor: E,
|
13434
13434
|
initialValue: e ? JSON.parse(e) : yu,
|
13435
|
-
onChange:
|
13436
|
-
onValueChange:
|
13435
|
+
onChange: V,
|
13436
|
+
onValueChange: V,
|
13437
13437
|
children: [
|
13438
|
-
/* @__PURE__ */ x.jsxs("div", { className:
|
13438
|
+
/* @__PURE__ */ x.jsxs("div", { className: R, children: [
|
13439
13439
|
/* @__PURE__ */ x.jsxs(ey, { children: [
|
13440
13440
|
/* @__PURE__ */ x.jsx(pn, { format: "headingOne", icon: ef }),
|
13441
13441
|
/* @__PURE__ */ x.jsx(pn, { format: "headingTwo", icon: tf }),
|
@@ -13453,34 +13453,34 @@ function pb({
|
|
13453
13453
|
$0,
|
13454
13454
|
{
|
13455
13455
|
className: "editorContainer",
|
13456
|
-
renderElement:
|
13457
|
-
renderLeaf:
|
13456
|
+
renderElement: M,
|
13457
|
+
renderLeaf: A,
|
13458
13458
|
spellCheck: !0,
|
13459
|
-
id:
|
13459
|
+
id: f,
|
13460
13460
|
onFocus: () => h(!0),
|
13461
13461
|
onBlur: () => h(!1),
|
13462
13462
|
onKeyDown: (T) => {
|
13463
|
-
for (const
|
13464
|
-
if (op(
|
13463
|
+
for (const j in mu)
|
13464
|
+
if (op(j, T)) {
|
13465
13465
|
T.preventDefault();
|
13466
|
-
const
|
13467
|
-
Dc(
|
13466
|
+
const J = mu[j];
|
13467
|
+
Dc(E, J);
|
13468
13468
|
}
|
13469
13469
|
}
|
13470
13470
|
}
|
13471
13471
|
),
|
13472
|
-
|
13472
|
+
N < 0 && /* @__PURE__ */ x.jsx("div", { className: "restatesCharacters", children: N })
|
13473
13473
|
] }),
|
13474
13474
|
/* @__PURE__ */ x.jsx(
|
13475
13475
|
"input",
|
13476
13476
|
{
|
13477
|
-
ref:
|
13477
|
+
ref: S,
|
13478
13478
|
type: "hidden",
|
13479
13479
|
name: t,
|
13480
|
-
value: JSON.stringify(
|
13480
|
+
value: JSON.stringify(d)
|
13481
13481
|
}
|
13482
13482
|
),
|
13483
|
-
/* @__PURE__ */ x.jsx("input", { type: "hidden", name: `${t}Count`, value:
|
13483
|
+
/* @__PURE__ */ x.jsx("input", { type: "hidden", name: `${t}Count`, value: c })
|
13484
13484
|
]
|
13485
13485
|
}
|
13486
13486
|
);
|
@@ -13498,9 +13498,9 @@ function ty(t, e) {
|
|
13498
13498
|
readOnly: c,
|
13499
13499
|
onFocus: p,
|
13500
13500
|
onBlur: d,
|
13501
|
-
title:
|
13501
|
+
title: v,
|
13502
13502
|
style: y,
|
13503
|
-
closeOnSelect:
|
13503
|
+
closeOnSelect: h = !0,
|
13504
13504
|
...f
|
13505
13505
|
} = t, D = `arkyn_select ${s ? "hasPrefix" : ""} ${o} ${i} ${l || c || n ? "opacity" : ""} ${r ? "errored" : ""} ${e ? "focused" : ""} ${a}`, A = { md: 20, lg: 20 }[i];
|
13506
13506
|
return {
|
@@ -13511,8 +13511,8 @@ function ty(t, e) {
|
|
13511
13511
|
disabled: l || n || c,
|
13512
13512
|
onFocus: p,
|
13513
13513
|
onBlur: d,
|
13514
|
-
title:
|
13515
|
-
closeOnSelect:
|
13514
|
+
title: v,
|
13515
|
+
closeOnSelect: h,
|
13516
13516
|
style: y,
|
13517
13517
|
iconSize: A,
|
13518
13518
|
Spinner: /* @__PURE__ */ x.jsx(Ln, { className: "spinner", size: A, strokeWidth: 2.5 }),
|
@@ -13526,9 +13526,9 @@ function hb(t) {
|
|
13526
13526
|
title: c,
|
13527
13527
|
style: p,
|
13528
13528
|
className: d,
|
13529
|
-
prefix:
|
13529
|
+
prefix: v,
|
13530
13530
|
iconSize: y,
|
13531
|
-
isLoading:
|
13531
|
+
isLoading: h,
|
13532
13532
|
LeftIcon: f,
|
13533
13533
|
value: C = null,
|
13534
13534
|
defaultValue: w = "",
|
@@ -13537,13 +13537,13 @@ function hb(t) {
|
|
13537
13537
|
Spinner: D,
|
13538
13538
|
name: E,
|
13539
13539
|
placeholder: A,
|
13540
|
-
onSelect:
|
13540
|
+
onSelect: M,
|
13541
13541
|
options: V,
|
13542
|
-
optionMaxHeight:
|
13542
|
+
optionMaxHeight: F,
|
13543
13543
|
closeOnSelect: z,
|
13544
|
-
...
|
13545
|
-
} = ty({ ...t, id: i, isError: u }, e), [
|
13546
|
-
function
|
13544
|
+
...R
|
13545
|
+
} = ty({ ...t, id: i, isError: u }, e), [N, T] = $(w);
|
13546
|
+
function j() {
|
13547
13547
|
l || !(s != null && s.current) || e || (n(!0), s.current.focus());
|
13548
13548
|
}
|
13549
13549
|
function J(H) {
|
@@ -13554,9 +13554,9 @@ function hb(t) {
|
|
13554
13554
|
}
|
13555
13555
|
function te(H) {
|
13556
13556
|
const { label: ee, value: X } = H;
|
13557
|
-
|
13557
|
+
T(N !== X ? X : ""), M && M({ label: ee, value: X }), z && _();
|
13558
13558
|
}
|
13559
|
-
const ae = typeof C == "string" ? C :
|
13559
|
+
const ae = typeof C == "string" ? C : N, k = ((Z = V.find((H) => H.value === ae)) == null ? void 0 : Z.label) || "", I = () => {
|
13560
13560
|
if (!e && k) return !0;
|
13561
13561
|
if (!e && !k) return !1;
|
13562
13562
|
if (e && k) return !0;
|
@@ -13568,10 +13568,10 @@ function hb(t) {
|
|
13568
13568
|
{
|
13569
13569
|
title: c,
|
13570
13570
|
style: p,
|
13571
|
-
onClick:
|
13571
|
+
onClick: j,
|
13572
13572
|
className: `${d} placeholder_dark_${I()}`,
|
13573
13573
|
children: [
|
13574
|
-
|
13574
|
+
v,
|
13575
13575
|
f && /* @__PURE__ */ x.jsx(f, { size: y, strokeWidth: 2.5 }),
|
13576
13576
|
/* @__PURE__ */ x.jsx(
|
13577
13577
|
"input",
|
@@ -13580,7 +13580,7 @@ function hb(t) {
|
|
13580
13580
|
readOnly: !0,
|
13581
13581
|
placeholder: k || A,
|
13582
13582
|
onFocus: J,
|
13583
|
-
...
|
13583
|
+
...R
|
13584
13584
|
}
|
13585
13585
|
),
|
13586
13586
|
/* @__PURE__ */ x.jsx(
|
@@ -13597,7 +13597,7 @@ function hb(t) {
|
|
13597
13597
|
"div",
|
13598
13598
|
{
|
13599
13599
|
className: "arkyn_select_content",
|
13600
|
-
style: { overflow: "auto", maxHeight:
|
13600
|
+
style: { overflow: "auto", maxHeight: F },
|
13601
13601
|
children: [
|
13602
13602
|
V.map(({ label: H, value: ee }) => /* @__PURE__ */ x.jsxs(
|
13603
13603
|
"div",
|
@@ -13616,7 +13616,7 @@ function hb(t) {
|
|
13616
13616
|
]
|
13617
13617
|
}
|
13618
13618
|
),
|
13619
|
-
!
|
13619
|
+
!h && /* @__PURE__ */ x.jsx(
|
13620
13620
|
df,
|
13621
13621
|
{
|
13622
13622
|
className: "arkyn_select_arrow",
|
@@ -13624,7 +13624,7 @@ function hb(t) {
|
|
13624
13624
|
strokeWidth: 2.5
|
13625
13625
|
}
|
13626
13626
|
),
|
13627
|
-
|
13627
|
+
h && D
|
13628
13628
|
]
|
13629
13629
|
}
|
13630
13630
|
),
|
@@ -13642,19 +13642,19 @@ function vb(t) {
|
|
13642
13642
|
className: s = "",
|
13643
13643
|
onCheck: u,
|
13644
13644
|
...l
|
13645
|
-
} = t, [c, p] = $(n), { id: d, inputRef:
|
13646
|
-
function
|
13645
|
+
} = t, [c, p] = $(n), { id: d, inputRef: v } = St(), y = typeof r == "boolean" ? r : c;
|
13646
|
+
function h() {
|
13647
13647
|
p(!c), u && u(y ? a : i || "checked");
|
13648
13648
|
}
|
13649
13649
|
const C = `arkynSwitch ${y ? "checkedTrue" : "checkedFalse"} ${e} ${s}`;
|
13650
|
-
return /* @__PURE__ */ x.jsx("button", { type: "button", onClick:
|
13650
|
+
return /* @__PURE__ */ x.jsx("button", { type: "button", onClick: h, className: C, ...l, children: /* @__PURE__ */ x.jsx(
|
13651
13651
|
"input",
|
13652
13652
|
{
|
13653
13653
|
id: d,
|
13654
13654
|
type: "hidden",
|
13655
13655
|
name: o,
|
13656
|
-
ref:
|
13657
|
-
onClick:
|
13656
|
+
ref: v,
|
13657
|
+
onClick: h,
|
13658
13658
|
value: y ? i || "checked" : a
|
13659
13659
|
}
|
13660
13660
|
) });
|
@@ -13671,15 +13671,15 @@ function gb(t) {
|
|
13671
13671
|
title: u,
|
13672
13672
|
style: l,
|
13673
13673
|
...c
|
13674
|
-
} = t, [p, d] = $(!1), { inputRef:
|
13674
|
+
} = t, [p, d] = $(!1), { inputRef: v, id: y, error: h } = St(), f = qe(null), C = v || f, b = t.isError || !!h ? "errorTrue" : "errorFalse", E = `arkynTextarea ${e} ${n} ${i || a ? "opacityTrue" : "opacityFalse"} ${b} ${p ? "focusedTrue" : "focusedFalse"} ${r}`;
|
13675
13675
|
function A() {
|
13676
13676
|
i || !(C != null && C.current) || (d(!0), C.current.focus());
|
13677
13677
|
}
|
13678
|
-
function F
|
13679
|
-
d(!0), o && o(
|
13678
|
+
function M(F) {
|
13679
|
+
d(!0), o && o(F);
|
13680
13680
|
}
|
13681
|
-
function V(
|
13682
|
-
d(!1), s && s(
|
13681
|
+
function V(F) {
|
13682
|
+
d(!1), s && s(F);
|
13683
13683
|
}
|
13684
13684
|
return /* @__PURE__ */ x.jsx(
|
13685
13685
|
"section",
|
@@ -13695,7 +13695,7 @@ function gb(t) {
|
|
13695
13695
|
disabled: i,
|
13696
13696
|
readOnly: a,
|
13697
13697
|
ref: C,
|
13698
|
-
onFocus:
|
13698
|
+
onFocus: M,
|
13699
13699
|
onBlur: V,
|
13700
13700
|
...c
|
13701
13701
|
}
|
@@ -13746,8 +13746,8 @@ function Cb(t) {
|
|
13746
13746
|
pageKey: i = "page",
|
13747
13747
|
siblingsCount: a = 2,
|
13748
13748
|
...o
|
13749
|
-
} = t, s = gf(), { getParam: u, getScopedSearch: l } = ny(e), c = Number(u(i)) || 1, p = Number(u(r)) || 20, d = Math.ceil(n / p),
|
13750
|
-
function
|
13749
|
+
} = t, s = gf(), { getParam: u, getScopedSearch: l } = ny(e), c = Number(u(i)) || 1, p = Number(u(r)) || 20, d = Math.ceil(n / p), v = wf(c, a), y = Ef(c, a, d);
|
13750
|
+
function h(f) {
|
13751
13751
|
s(l({ page: f }));
|
13752
13752
|
}
|
13753
13753
|
return /* @__PURE__ */ x.jsxs("div", { className: "arkynPagination", ...o, children: [
|
@@ -13756,7 +13756,7 @@ function Cb(t) {
|
|
13756
13756
|
{
|
13757
13757
|
className: "arkynPaginationIconButton",
|
13758
13758
|
disabled: c <= 1,
|
13759
|
-
onClick: () =>
|
13759
|
+
onClick: () => h(c - 1),
|
13760
13760
|
children: /* @__PURE__ */ x.jsx(pf, {})
|
13761
13761
|
}
|
13762
13762
|
),
|
@@ -13765,16 +13765,16 @@ function Cb(t) {
|
|
13765
13765
|
"button",
|
13766
13766
|
{
|
13767
13767
|
className: "arkynPaginationPageButton",
|
13768
|
-
onClick: () =>
|
13768
|
+
onClick: () => h(1),
|
13769
13769
|
children: "1"
|
13770
13770
|
}
|
13771
13771
|
),
|
13772
13772
|
c > 2 + a && /* @__PURE__ */ x.jsx("button", { disabled: !0, className: "arkynPaginationSpread", children: /* @__PURE__ */ x.jsx(Ka, {}) })
|
13773
13773
|
] }),
|
13774
|
-
|
13774
|
+
v.map((f, C) => /* @__PURE__ */ x.jsx(
|
13775
13775
|
"button",
|
13776
13776
|
{
|
13777
|
-
onClick: () =>
|
13777
|
+
onClick: () => h(f),
|
13778
13778
|
className: "arkynPaginationPageButton",
|
13779
13779
|
children: f
|
13780
13780
|
},
|
@@ -13784,7 +13784,7 @@ function Cb(t) {
|
|
13784
13784
|
y.map((f, C) => /* @__PURE__ */ x.jsx(
|
13785
13785
|
"button",
|
13786
13786
|
{
|
13787
|
-
onClick: () =>
|
13787
|
+
onClick: () => h(f),
|
13788
13788
|
className: "arkynPaginationPageButton",
|
13789
13789
|
children: f
|
13790
13790
|
},
|
@@ -13796,7 +13796,7 @@ function Cb(t) {
|
|
13796
13796
|
"button",
|
13797
13797
|
{
|
13798
13798
|
className: "arkynPaginationPageButton",
|
13799
|
-
onClick: () =>
|
13799
|
+
onClick: () => h(d),
|
13800
13800
|
children: d
|
13801
13801
|
}
|
13802
13802
|
)
|
@@ -13806,7 +13806,7 @@ function Cb(t) {
|
|
13806
13806
|
{
|
13807
13807
|
className: "arkynPaginationIconButton",
|
13808
13808
|
disabled: c >= d,
|
13809
|
-
onClick: () =>
|
13809
|
+
onClick: () => h(c + 1),
|
13810
13810
|
children: /* @__PURE__ */ x.jsx(Ui, {})
|
13811
13811
|
}
|
13812
13812
|
)
|
@@ -13825,13 +13825,13 @@ function Db(t) {
|
|
13825
13825
|
defaultActive: r,
|
13826
13826
|
className: i,
|
13827
13827
|
...a
|
13828
|
-
} = t, [o, s] = $(r || ""), [u, l] = $(!0), c = qe(null), p = `arkynTabContainer ${i || ""}`, [d,
|
13828
|
+
} = t, [o, s] = $(r || ""), [u, l] = $(!0), c = qe(null), p = `arkynTabContainer ${i || ""}`, [d, v] = $({
|
13829
13829
|
width: "0px",
|
13830
13830
|
left: "0px",
|
13831
13831
|
transition: "none"
|
13832
13832
|
}), y = (f, C) => {
|
13833
13833
|
const w = f.getBoundingClientRect(), b = c.current.getBoundingClientRect(), S = C ? void 0 : "none";
|
13834
|
-
l(!1),
|
13834
|
+
l(!1), v({
|
13835
13835
|
transition: S,
|
13836
13836
|
width: `${w.width}px`,
|
13837
13837
|
left: `${w.left - b.left}px`
|
@@ -13843,12 +13843,12 @@ function Db(t) {
|
|
13843
13843
|
let C = null;
|
13844
13844
|
C = f.querySelector("button.activeTrue"), C && y(C);
|
13845
13845
|
}, []);
|
13846
|
-
const
|
13846
|
+
const h = (f) => {
|
13847
13847
|
const C = f.target;
|
13848
13848
|
C && (s(C.value), C.classList.add("activeTrue"), y(C, !0), n && n(C.value));
|
13849
13849
|
};
|
13850
13850
|
return /* @__PURE__ */ x.jsxs("nav", { ref: c, className: p.trim(), ...a, children: [
|
13851
|
-
/* @__PURE__ */ x.jsx(ca.Provider, { value: { handleTabClick:
|
13851
|
+
/* @__PURE__ */ x.jsx(ca.Provider, { value: { handleTabClick: h, showInitialTab: u, value: o }, children: e }),
|
13852
13852
|
/* @__PURE__ */ x.jsx("div", { className: "activeLine", style: d })
|
13853
13853
|
] });
|
13854
13854
|
}
|
@@ -14046,29 +14046,29 @@ function yy(t, e, n) {
|
|
14046
14046
|
if (typeof t != "function")
|
14047
14047
|
throw new TypeError(wc);
|
14048
14048
|
e = Du(e) || 0, ei(n) && (c = !!n.leading, p = "maxWait" in n, a = p ? gy(Du(n.maxWait) || 0, e) : a, d = "trailing" in n ? !!n.trailing : d);
|
14049
|
-
function
|
14050
|
-
var A = r,
|
14051
|
-
return r = i = void 0, l = E, o = t.apply(
|
14049
|
+
function v(E) {
|
14050
|
+
var A = r, M = i;
|
14051
|
+
return r = i = void 0, l = E, o = t.apply(M, A), o;
|
14052
14052
|
}
|
14053
14053
|
function y(E) {
|
14054
|
-
return l = E, s = setTimeout(C, e), c ?
|
14054
|
+
return l = E, s = setTimeout(C, e), c ? v(E) : o;
|
14055
14055
|
}
|
14056
|
-
function
|
14057
|
-
var A = E - u,
|
14058
|
-
return p ? my(V, a -
|
14056
|
+
function h(E) {
|
14057
|
+
var A = E - u, M = E - l, V = e - A;
|
14058
|
+
return p ? my(V, a - M) : V;
|
14059
14059
|
}
|
14060
14060
|
function f(E) {
|
14061
|
-
var A = E - u,
|
14062
|
-
return u === void 0 || A >= e || A < 0 || p &&
|
14061
|
+
var A = E - u, M = E - l;
|
14062
|
+
return u === void 0 || A >= e || A < 0 || p && M >= a;
|
14063
14063
|
}
|
14064
14064
|
function C() {
|
14065
14065
|
var E = Mi();
|
14066
14066
|
if (f(E))
|
14067
14067
|
return w(E);
|
14068
|
-
s = setTimeout(C,
|
14068
|
+
s = setTimeout(C, h(E));
|
14069
14069
|
}
|
14070
14070
|
function w(E) {
|
14071
|
-
return s = void 0, d && r ?
|
14071
|
+
return s = void 0, d && r ? v(E) : (r = i = void 0, o);
|
14072
14072
|
}
|
14073
14073
|
function b() {
|
14074
14074
|
s !== void 0 && clearTimeout(s), l = 0, r = u = i = s = void 0;
|
@@ -14082,7 +14082,7 @@ function yy(t, e, n) {
|
|
14082
14082
|
if (s === void 0)
|
14083
14083
|
return y(u);
|
14084
14084
|
if (p)
|
14085
|
-
return s = setTimeout(C, e),
|
14085
|
+
return s = setTimeout(C, e), v(u);
|
14086
14086
|
}
|
14087
14087
|
return s === void 0 && (s = setTimeout(C, e)), o;
|
14088
14088
|
}
|
@@ -14550,7 +14550,7 @@ var wu;
|
|
14550
14550
|
function nC() {
|
14551
14551
|
if (wu) return Ue;
|
14552
14552
|
wu = 1;
|
14553
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, p = t ? Symbol.for("react.suspense") : 60113, d = t ? Symbol.for("react.suspense_list") : 60120,
|
14553
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, p = t ? Symbol.for("react.suspense") : 60113, d = t ? Symbol.for("react.suspense_list") : 60120, v = t ? Symbol.for("react.memo") : 60115, y = t ? Symbol.for("react.lazy") : 60116, h = t ? Symbol.for("react.block") : 60121, f = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
|
14554
14554
|
function b(D) {
|
14555
14555
|
if (typeof D == "object" && D !== null) {
|
14556
14556
|
var E = D.$$typeof;
|
@@ -14569,7 +14569,7 @@ function nC() {
|
|
14569
14569
|
case s:
|
14570
14570
|
case c:
|
14571
14571
|
case y:
|
14572
|
-
case
|
14572
|
+
case v:
|
14573
14573
|
case o:
|
14574
14574
|
return D;
|
14575
14575
|
default:
|
@@ -14584,7 +14584,7 @@ function nC() {
|
|
14584
14584
|
function S(D) {
|
14585
14585
|
return b(D) === l;
|
14586
14586
|
}
|
14587
|
-
return Ue.AsyncMode = u, Ue.ConcurrentMode = l, Ue.ContextConsumer = s, Ue.ContextProvider = o, Ue.Element = e, Ue.ForwardRef = c, Ue.Fragment = r, Ue.Lazy = y, Ue.Memo =
|
14587
|
+
return Ue.AsyncMode = u, Ue.ConcurrentMode = l, Ue.ContextConsumer = s, Ue.ContextProvider = o, Ue.Element = e, Ue.ForwardRef = c, Ue.Fragment = r, Ue.Lazy = y, Ue.Memo = v, Ue.Portal = n, Ue.Profiler = a, Ue.StrictMode = i, Ue.Suspense = p, Ue.isAsyncMode = function(D) {
|
14588
14588
|
return S(D) || b(D) === u;
|
14589
14589
|
}, Ue.isConcurrentMode = S, Ue.isContextConsumer = function(D) {
|
14590
14590
|
return b(D) === s;
|
@@ -14599,7 +14599,7 @@ function nC() {
|
|
14599
14599
|
}, Ue.isLazy = function(D) {
|
14600
14600
|
return b(D) === y;
|
14601
14601
|
}, Ue.isMemo = function(D) {
|
14602
|
-
return b(D) ===
|
14602
|
+
return b(D) === v;
|
14603
14603
|
}, Ue.isPortal = function(D) {
|
14604
14604
|
return b(D) === n;
|
14605
14605
|
}, Ue.isProfiler = function(D) {
|
@@ -14609,7 +14609,7 @@ function nC() {
|
|
14609
14609
|
}, Ue.isSuspense = function(D) {
|
14610
14610
|
return b(D) === p;
|
14611
14611
|
}, Ue.isValidElementType = function(D) {
|
14612
|
-
return typeof D == "string" || typeof D == "function" || D === r || D === l || D === a || D === i || D === p || D === d || typeof D == "object" && D !== null && (D.$$typeof === y || D.$$typeof ===
|
14612
|
+
return typeof D == "string" || typeof D == "function" || D === r || D === l || D === a || D === i || D === p || D === d || typeof D == "object" && D !== null && (D.$$typeof === y || D.$$typeof === v || D.$$typeof === o || D.$$typeof === s || D.$$typeof === c || D.$$typeof === f || D.$$typeof === C || D.$$typeof === w || D.$$typeof === h);
|
14613
14613
|
}, Ue.typeOf = b, Ue;
|
14614
14614
|
}
|
14615
14615
|
var He = {};
|
@@ -14624,10 +14624,10 @@ var He = {};
|
|
14624
14624
|
var Bu;
|
14625
14625
|
function rC() {
|
14626
14626
|
return Bu || (Bu = 1, process.env.NODE_ENV !== "production" && function() {
|
14627
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, p = t ? Symbol.for("react.suspense") : 60113, d = t ? Symbol.for("react.suspense_list") : 60120,
|
14627
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, p = t ? Symbol.for("react.suspense") : 60113, d = t ? Symbol.for("react.suspense_list") : 60120, v = t ? Symbol.for("react.memo") : 60115, y = t ? Symbol.for("react.lazy") : 60116, h = t ? Symbol.for("react.block") : 60121, f = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
|
14628
14628
|
function b(G) {
|
14629
14629
|
return typeof G == "string" || typeof G == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
14630
|
-
G === r || G === l || G === a || G === i || G === p || G === d || typeof G == "object" && G !== null && (G.$$typeof === y || G.$$typeof ===
|
14630
|
+
G === r || G === l || G === a || G === i || G === p || G === d || typeof G == "object" && G !== null && (G.$$typeof === y || G.$$typeof === v || G.$$typeof === o || G.$$typeof === s || G.$$typeof === c || G.$$typeof === f || G.$$typeof === C || G.$$typeof === w || G.$$typeof === h);
|
14631
14631
|
}
|
14632
14632
|
function S(G) {
|
14633
14633
|
if (typeof G == "object" && G !== null) {
|
@@ -14649,7 +14649,7 @@ function rC() {
|
|
14649
14649
|
case s:
|
14650
14650
|
case c:
|
14651
14651
|
case y:
|
14652
|
-
case
|
14652
|
+
case v:
|
14653
14653
|
case o:
|
14654
14654
|
return he;
|
14655
14655
|
default:
|
@@ -14661,7 +14661,7 @@ function rC() {
|
|
14661
14661
|
}
|
14662
14662
|
}
|
14663
14663
|
}
|
14664
|
-
var D = u, E = l, A = s,
|
14664
|
+
var D = u, E = l, A = s, M = o, V = e, F = c, z = r, R = y, N = v, T = n, j = a, J = i, _ = p, te = !1;
|
14665
14665
|
function ae(G) {
|
14666
14666
|
return te || (te = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), k(G) || S(G) === u;
|
14667
14667
|
}
|
@@ -14687,7 +14687,7 @@ function rC() {
|
|
14687
14687
|
return S(G) === y;
|
14688
14688
|
}
|
14689
14689
|
function U(G) {
|
14690
|
-
return S(G) ===
|
14690
|
+
return S(G) === v;
|
14691
14691
|
}
|
14692
14692
|
function W(G) {
|
14693
14693
|
return S(G) === n;
|
@@ -14701,7 +14701,7 @@ function rC() {
|
|
14701
14701
|
function ie(G) {
|
14702
14702
|
return S(G) === p;
|
14703
14703
|
}
|
14704
|
-
He.AsyncMode = D, He.ConcurrentMode = E, He.ContextConsumer = A, He.ContextProvider =
|
14704
|
+
He.AsyncMode = D, He.ConcurrentMode = E, He.ContextConsumer = A, He.ContextProvider = M, He.Element = V, He.ForwardRef = F, He.Fragment = z, He.Lazy = R, He.Memo = N, He.Portal = T, He.Profiler = j, He.StrictMode = J, He.Suspense = _, He.isAsyncMode = ae, He.isConcurrentMode = k, He.isContextConsumer = I, He.isContextProvider = Z, He.isElement = H, He.isForwardRef = ee, He.isFragment = X, He.isLazy = m, He.isMemo = U, He.isPortal = W, He.isProfiler = P, He.isStrictMode = Q, He.isSuspense = ie, He.isValidElementType = b, He.typeOf = S;
|
14705
14705
|
}()), He;
|
14706
14706
|
}
|
14707
14707
|
var xu;
|
@@ -14807,9 +14807,9 @@ function aC() {
|
|
14807
14807
|
(u || "React class") + ": type specification of " + s + " `" + c + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
14808
14808
|
), p instanceof Error && !(p.message in n)) {
|
14809
14809
|
n[p.message] = !0;
|
14810
|
-
var
|
14810
|
+
var v = l ? l() : "";
|
14811
14811
|
t(
|
14812
|
-
"Failed " + s + " type: " + p.message + (
|
14812
|
+
"Failed " + s + " type: " + p.message + (v ?? "")
|
14813
14813
|
);
|
14814
14814
|
}
|
14815
14815
|
}
|
@@ -14843,7 +14843,7 @@ function oC() {
|
|
14843
14843
|
if (typeof I == "function")
|
14844
14844
|
return I;
|
14845
14845
|
}
|
14846
|
-
var d = "<<anonymous>>",
|
14846
|
+
var d = "<<anonymous>>", v = {
|
14847
14847
|
array: C("array"),
|
14848
14848
|
bigint: C("bigint"),
|
14849
14849
|
bool: C("boolean"),
|
@@ -14857,20 +14857,20 @@ function oC() {
|
|
14857
14857
|
element: S(),
|
14858
14858
|
elementType: D(),
|
14859
14859
|
instanceOf: E,
|
14860
|
-
node:
|
14861
|
-
objectOf:
|
14860
|
+
node: F(),
|
14861
|
+
objectOf: M,
|
14862
14862
|
oneOf: A,
|
14863
14863
|
oneOfType: V,
|
14864
|
-
shape:
|
14865
|
-
exact:
|
14864
|
+
shape: R,
|
14865
|
+
exact: N
|
14866
14866
|
};
|
14867
14867
|
function y(k, I) {
|
14868
14868
|
return k === I ? k !== 0 || 1 / k === 1 / I : k !== k && I !== I;
|
14869
14869
|
}
|
14870
|
-
function
|
14870
|
+
function h(k, I) {
|
14871
14871
|
this.message = k, this.data = I && typeof I == "object" ? I : {}, this.stack = "";
|
14872
14872
|
}
|
14873
|
-
|
14873
|
+
h.prototype = Error.prototype;
|
14874
14874
|
function f(k) {
|
14875
14875
|
if (process.env.NODE_ENV !== "production")
|
14876
14876
|
var I = {}, Z = 0;
|
@@ -14889,7 +14889,7 @@ function oC() {
|
|
14889
14889
|
), I[ce] = !0, Z++);
|
14890
14890
|
}
|
14891
14891
|
}
|
14892
|
-
return m[U] == null ? X ? m[U] === null ? new
|
14892
|
+
return m[U] == null ? X ? m[U] === null ? new h("The " + P + " `" + Q + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new h("The " + P + " `" + Q + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : k(m, U, W, P, Q);
|
14893
14893
|
}
|
14894
14894
|
var ee = H.bind(null, !1);
|
14895
14895
|
return ee.isRequired = H.bind(null, !0), ee;
|
@@ -14899,7 +14899,7 @@ function oC() {
|
|
14899
14899
|
var W = Z[H], P = J(W);
|
14900
14900
|
if (P !== k) {
|
14901
14901
|
var Q = _(W);
|
14902
|
-
return new
|
14902
|
+
return new h(
|
14903
14903
|
"Invalid " + X + " `" + m + "` of type " + ("`" + Q + "` supplied to `" + ee + "`, expected ") + ("`" + k + "`."),
|
14904
14904
|
{ expectedType: k }
|
14905
14905
|
);
|
@@ -14914,11 +14914,11 @@ function oC() {
|
|
14914
14914
|
function b(k) {
|
14915
14915
|
function I(Z, H, ee, X, m) {
|
14916
14916
|
if (typeof k != "function")
|
14917
|
-
return new
|
14917
|
+
return new h("Property `" + m + "` of component `" + ee + "` has invalid PropType notation inside arrayOf.");
|
14918
14918
|
var U = Z[H];
|
14919
14919
|
if (!Array.isArray(U)) {
|
14920
14920
|
var W = J(U);
|
14921
|
-
return new
|
14921
|
+
return new h("Invalid " + X + " `" + m + "` of type " + ("`" + W + "` supplied to `" + ee + "`, expected an array."));
|
14922
14922
|
}
|
14923
14923
|
for (var P = 0; P < U.length; P++) {
|
14924
14924
|
var Q = k(U, P, ee, X, m + "[" + P + "]", n);
|
@@ -14934,7 +14934,7 @@ function oC() {
|
|
14934
14934
|
var m = I[Z];
|
14935
14935
|
if (!s(m)) {
|
14936
14936
|
var U = J(m);
|
14937
|
-
return new
|
14937
|
+
return new h("Invalid " + ee + " `" + X + "` of type " + ("`" + U + "` supplied to `" + H + "`, expected a single ReactElement."));
|
14938
14938
|
}
|
14939
14939
|
return null;
|
14940
14940
|
}
|
@@ -14945,7 +14945,7 @@ function oC() {
|
|
14945
14945
|
var m = I[Z];
|
14946
14946
|
if (!t.isValidElementType(m)) {
|
14947
14947
|
var U = J(m);
|
14948
|
-
return new
|
14948
|
+
return new h("Invalid " + ee + " `" + X + "` of type " + ("`" + U + "` supplied to `" + H + "`, expected a single ReactElement type."));
|
14949
14949
|
}
|
14950
14950
|
return null;
|
14951
14951
|
}
|
@@ -14955,7 +14955,7 @@ function oC() {
|
|
14955
14955
|
function I(Z, H, ee, X, m) {
|
14956
14956
|
if (!(Z[H] instanceof k)) {
|
14957
14957
|
var U = k.name || d, W = ae(Z[H]);
|
14958
|
-
return new
|
14958
|
+
return new h("Invalid " + X + " `" + m + "` of type " + ("`" + W + "` supplied to `" + ee + "`, expected ") + ("instance of `" + U + "`."));
|
14959
14959
|
}
|
14960
14960
|
return null;
|
14961
14961
|
}
|
@@ -14974,17 +14974,17 @@ function oC() {
|
|
14974
14974
|
var ce = _(G);
|
14975
14975
|
return ce === "symbol" ? String(G) : G;
|
14976
14976
|
});
|
14977
|
-
return new
|
14977
|
+
return new h("Invalid " + X + " `" + m + "` of value `" + String(U) + "` " + ("supplied to `" + ee + "`, expected one of " + P + "."));
|
14978
14978
|
}
|
14979
14979
|
return f(I);
|
14980
14980
|
}
|
14981
|
-
function
|
14981
|
+
function M(k) {
|
14982
14982
|
function I(Z, H, ee, X, m) {
|
14983
14983
|
if (typeof k != "function")
|
14984
|
-
return new
|
14984
|
+
return new h("Property `" + m + "` of component `" + ee + "` has invalid PropType notation inside objectOf.");
|
14985
14985
|
var U = Z[H], W = J(U);
|
14986
14986
|
if (W !== "object")
|
14987
|
-
return new
|
14987
|
+
return new h("Invalid " + X + " `" + m + "` of type " + ("`" + W + "` supplied to `" + ee + "`, expected an object."));
|
14988
14988
|
for (var P in U)
|
14989
14989
|
if (r(U, P)) {
|
14990
14990
|
var Q = k(U, P, ee, X, m + "." + P, n);
|
@@ -15013,26 +15013,26 @@ function oC() {
|
|
15013
15013
|
G.data && r(G.data, "expectedType") && P.push(G.data.expectedType);
|
15014
15014
|
}
|
15015
15015
|
var ce = P.length > 0 ? ", expected one of type [" + P.join(", ") + "]" : "";
|
15016
|
-
return new
|
15016
|
+
return new h("Invalid " + U + " `" + W + "` supplied to " + ("`" + m + "`" + ce + "."));
|
15017
15017
|
}
|
15018
15018
|
return f(H);
|
15019
15019
|
}
|
15020
|
-
function
|
15020
|
+
function F() {
|
15021
15021
|
function k(I, Z, H, ee, X) {
|
15022
|
-
return
|
15022
|
+
return T(I[Z]) ? null : new h("Invalid " + ee + " `" + X + "` supplied to " + ("`" + H + "`, expected a ReactNode."));
|
15023
15023
|
}
|
15024
15024
|
return f(k);
|
15025
15025
|
}
|
15026
15026
|
function z(k, I, Z, H, ee) {
|
15027
|
-
return new
|
15027
|
+
return new h(
|
15028
15028
|
(k || "React class") + ": " + I + " type `" + Z + "." + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + ee + "`."
|
15029
15029
|
);
|
15030
15030
|
}
|
15031
|
-
function
|
15031
|
+
function R(k) {
|
15032
15032
|
function I(Z, H, ee, X, m) {
|
15033
15033
|
var U = Z[H], W = J(U);
|
15034
15034
|
if (W !== "object")
|
15035
|
-
return new
|
15035
|
+
return new h("Invalid " + X + " `" + m + "` of type `" + W + "` " + ("supplied to `" + ee + "`, expected `object`."));
|
15036
15036
|
for (var P in k) {
|
15037
15037
|
var Q = k[P];
|
15038
15038
|
if (typeof Q != "function")
|
@@ -15045,18 +15045,18 @@ function oC() {
|
|
15045
15045
|
}
|
15046
15046
|
return f(I);
|
15047
15047
|
}
|
15048
|
-
function
|
15048
|
+
function N(k) {
|
15049
15049
|
function I(Z, H, ee, X, m) {
|
15050
15050
|
var U = Z[H], W = J(U);
|
15051
15051
|
if (W !== "object")
|
15052
|
-
return new
|
15052
|
+
return new h("Invalid " + X + " `" + m + "` of type `" + W + "` " + ("supplied to `" + ee + "`, expected `object`."));
|
15053
15053
|
var P = e({}, Z[H], k);
|
15054
15054
|
for (var Q in P) {
|
15055
15055
|
var ie = k[Q];
|
15056
15056
|
if (r(k, Q) && typeof ie != "function")
|
15057
15057
|
return z(ee, X, m, Q, _(ie));
|
15058
15058
|
if (!ie)
|
15059
|
-
return new
|
15059
|
+
return new h(
|
15060
15060
|
"Invalid " + X + " `" + m + "` key `" + Q + "` supplied to `" + ee + "`.\nBad object: " + JSON.stringify(Z[H], null, " ") + `
|
15061
15061
|
Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
15062
15062
|
);
|
@@ -15068,7 +15068,7 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
15068
15068
|
}
|
15069
15069
|
return f(I);
|
15070
15070
|
}
|
15071
|
-
function
|
15071
|
+
function T(k) {
|
15072
15072
|
switch (typeof k) {
|
15073
15073
|
case "number":
|
15074
15074
|
case "string":
|
@@ -15078,7 +15078,7 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
15078
15078
|
return !k;
|
15079
15079
|
case "object":
|
15080
15080
|
if (Array.isArray(k))
|
15081
|
-
return k.every(
|
15081
|
+
return k.every(T);
|
15082
15082
|
if (k === null || s(k))
|
15083
15083
|
return !0;
|
15084
15084
|
var I = p(k);
|
@@ -15086,12 +15086,12 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
15086
15086
|
var Z = I.call(k), H;
|
15087
15087
|
if (I !== k.entries) {
|
15088
15088
|
for (; !(H = Z.next()).done; )
|
15089
|
-
if (!
|
15089
|
+
if (!T(H.value))
|
15090
15090
|
return !1;
|
15091
15091
|
} else
|
15092
15092
|
for (; !(H = Z.next()).done; ) {
|
15093
15093
|
var ee = H.value;
|
15094
|
-
if (ee && !
|
15094
|
+
if (ee && !T(ee[1]))
|
15095
15095
|
return !1;
|
15096
15096
|
}
|
15097
15097
|
} else
|
@@ -15101,12 +15101,12 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
15101
15101
|
return !1;
|
15102
15102
|
}
|
15103
15103
|
}
|
15104
|
-
function
|
15104
|
+
function j(k, I) {
|
15105
15105
|
return k === "symbol" ? !0 : I ? I["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && I instanceof Symbol : !1;
|
15106
15106
|
}
|
15107
15107
|
function J(k) {
|
15108
15108
|
var I = typeof k;
|
15109
|
-
return Array.isArray(k) ? "array" : k instanceof RegExp ? "object" :
|
15109
|
+
return Array.isArray(k) ? "array" : k instanceof RegExp ? "object" : j(I, k) ? "symbol" : I;
|
15110
15110
|
}
|
15111
15111
|
function _(k) {
|
15112
15112
|
if (typeof k > "u" || k === null)
|
@@ -15137,7 +15137,7 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
15137
15137
|
function ae(k) {
|
15138
15138
|
return !k.constructor || !k.constructor.name ? d : k.constructor.name;
|
15139
15139
|
}
|
15140
|
-
return
|
15140
|
+
return v.checkPropTypes = i, v.resetWarningCache = i.resetWarningCache, v.PropTypes = v, v;
|
15141
15141
|
}, Ii;
|
15142
15142
|
}
|
15143
15143
|
var Ni, Mu;
|
@@ -15358,9 +15358,9 @@ fr.default = function(t, e) {
|
|
15358
15358
|
}, this.spyHandler = function(s, u) {
|
15359
15359
|
var l = o.getScrollSpyContainer();
|
15360
15360
|
if (!(Xt.default.isMounted() && !Xt.default.isInitialized())) {
|
15361
|
-
var c = o.props.horizontal, p = o.props.to, d = null,
|
15361
|
+
var c = o.props.horizontal, p = o.props.to, d = null, v = void 0, y = void 0;
|
15362
15362
|
if (c) {
|
15363
|
-
var
|
15363
|
+
var h = 0, f = 0, C = 0;
|
15364
15364
|
if (l.getBoundingClientRect) {
|
15365
15365
|
var w = l.getBoundingClientRect();
|
15366
15366
|
C = w.left;
|
@@ -15369,15 +15369,15 @@ fr.default = function(t, e) {
|
|
15369
15369
|
if (d = n.get(p), !d)
|
15370
15370
|
return;
|
15371
15371
|
var b = d.getBoundingClientRect();
|
15372
|
-
|
15372
|
+
h = b.left - C + s, f = h + b.width;
|
15373
15373
|
}
|
15374
15374
|
var S = s - o.props.offset;
|
15375
|
-
|
15375
|
+
v = S >= Math.floor(h) && S < Math.floor(f), y = S < Math.floor(h) || S >= Math.floor(f);
|
15376
15376
|
} else {
|
15377
15377
|
var D = 0, E = 0, A = 0;
|
15378
15378
|
if (l.getBoundingClientRect) {
|
15379
|
-
var
|
15380
|
-
A =
|
15379
|
+
var M = l.getBoundingClientRect();
|
15380
|
+
A = M.top;
|
15381
15381
|
}
|
15382
15382
|
if (!d || o.props.isDynamic) {
|
15383
15383
|
if (d = n.get(p), !d)
|
@@ -15385,21 +15385,21 @@ fr.default = function(t, e) {
|
|
15385
15385
|
var V = d.getBoundingClientRect();
|
15386
15386
|
D = V.top - A + u, E = D + V.height;
|
15387
15387
|
}
|
15388
|
-
var
|
15389
|
-
|
15388
|
+
var F = u - o.props.offset;
|
15389
|
+
v = F >= Math.floor(D) && F < Math.floor(E), y = F < Math.floor(D) || F >= Math.floor(E);
|
15390
15390
|
}
|
15391
15391
|
var z = n.getActiveLink();
|
15392
15392
|
if (y) {
|
15393
15393
|
if (p === z && n.setActiveLink(void 0), o.props.hashSpy && Xt.default.getHash() === p) {
|
15394
|
-
var
|
15395
|
-
Xt.default.changeHash("",
|
15394
|
+
var R = o.props.saveHashHistory, N = R === void 0 ? !1 : R;
|
15395
|
+
Xt.default.changeHash("", N);
|
15396
15396
|
}
|
15397
15397
|
o.props.spy && o.state.active && (o.setState({ active: !1 }), o.props.onSetInactive && o.props.onSetInactive(p, d));
|
15398
15398
|
}
|
15399
|
-
if (
|
15399
|
+
if (v && (z !== p || o.state.active === !1)) {
|
15400
15400
|
n.setActiveLink(p);
|
15401
|
-
var
|
15402
|
-
o.props.hashSpy && Xt.default.changeHash(p,
|
15401
|
+
var T = o.props.saveHashHistory, j = T === void 0 ? !1 : T;
|
15402
|
+
o.props.hashSpy && Xt.default.changeHash(p, j), o.props.spy && (o.setState({ active: !0 }), o.props.onSetActive && o.props.onSetActive(p, d));
|
15403
15403
|
}
|
15404
15404
|
}
|
15405
15405
|
};
|
@@ -15748,18 +15748,18 @@ var Nr = Y, hn = dr, _i = $n, rt = di, Jt = pi, Zu = {
|
|
15748
15748
|
}, this.spyHandler = function(u) {
|
15749
15749
|
var l = s.getScrollSpyContainer();
|
15750
15750
|
if (!(Jt.isMounted() && !Jt.isInitialized())) {
|
15751
|
-
var c = s.props.to, p = null, d = 0,
|
15751
|
+
var c = s.props.to, p = null, d = 0, v = 0, y = 0;
|
15752
15752
|
if (l.getBoundingClientRect) {
|
15753
|
-
var
|
15754
|
-
y =
|
15753
|
+
var h = l.getBoundingClientRect();
|
15754
|
+
y = h.top;
|
15755
15755
|
}
|
15756
15756
|
if (!p || s.props.isDynamic) {
|
15757
15757
|
if (p = r.get(c), !p)
|
15758
15758
|
return;
|
15759
15759
|
var f = p.getBoundingClientRect();
|
15760
|
-
d = f.top - y + u,
|
15760
|
+
d = f.top - y + u, v = d + f.height;
|
15761
15761
|
}
|
15762
|
-
var C = u - s.props.offset, w = C >= Math.floor(d) && C < Math.floor(
|
15762
|
+
var C = u - s.props.offset, w = C >= Math.floor(d) && C < Math.floor(v), b = C < Math.floor(d) || C >= Math.floor(v), S = r.getActiveLink();
|
15763
15763
|
if (b)
|
15764
15764
|
return c === S && r.setActiveLink(void 0), s.props.hashSpy && Jt.getHash() === c && Jt.changeHash(), s.props.spy && s.state.active && (s.setState({ active: !1 }), s.props.onSetInactive && s.props.onSetInactive()), hn.updateStates();
|
15765
15765
|
if (w && S !== c)
|
@@ -15908,7 +15908,7 @@ function Pb(t) {
|
|
15908
15908
|
}
|
15909
15909
|
function o(u, l) {
|
15910
15910
|
const c = i(u);
|
15911
|
-
r(c ? (p) => [...p.filter((
|
15911
|
+
r(c ? (p) => [...p.filter((v) => v.key !== u), { key: u, data: l }] : [...n, { key: u, data: l }]);
|
15912
15912
|
}
|
15913
15913
|
function s(u) {
|
15914
15914
|
r(n.filter((l) => l.key !== u));
|
@@ -15947,7 +15947,7 @@ function Tb(t) {
|
|
15947
15947
|
}
|
15948
15948
|
function o(u, l) {
|
15949
15949
|
const c = i(u);
|
15950
|
-
r(c ? (p) => [...p.filter((
|
15950
|
+
r(c ? (p) => [...p.filter((v) => v.key !== u), { key: u, data: l }] : [...n, { key: u, data: l }]);
|
15951
15951
|
}
|
15952
15952
|
function s(u) {
|
15953
15953
|
r(n.filter((l) => l.key !== u));
|
@@ -16046,24 +16046,24 @@ function RD(...t) {
|
|
16046
16046
|
}
|
16047
16047
|
var jD = (t) => {
|
16048
16048
|
var e, n, r, i, a, o, s, u, l, c;
|
16049
|
-
let { invert: p, toast: d, unstyled:
|
16049
|
+
let { invert: p, toast: d, unstyled: v, interacting: y, setHeights: h, visibleToasts: f, heights: C, index: w, toasts: b, expanded: S, removeToast: D, defaultRichColors: E, closeButton: A, style: M, cancelButtonStyle: V, actionButtonStyle: F, className: z = "", descriptionClassName: R = "", duration: N, position: T, gap: j, loadingIcon: J, expandByDefault: _, classNames: te, icons: ae, closeButtonAriaLabel: k = "Close toast", pauseWhenPageIsHidden: I, cn: Z } = t, [H, ee] = Y.useState(!1), [X, m] = Y.useState(!1), [U, W] = Y.useState(!1), [P, Q] = Y.useState(!1), [ie, G] = Y.useState(0), [ce, se] = Y.useState(0), he = Y.useRef(null), ve = Y.useRef(null), De = w === 0, Ce = w + 1 <= f, me = d.type, ge = d.dismissible !== !1, Ie = d.className || "", le = d.descriptionClassName || "", Ne = Y.useMemo(() => C.findIndex((Ee) => Ee.toastId === d.id) || 0, [C, d.id]), pe = Y.useMemo(() => {
|
16050
16050
|
var Ee;
|
16051
16051
|
return (Ee = d.closeButton) != null ? Ee : A;
|
16052
|
-
}, [d.closeButton, A]), Be = Y.useMemo(() => d.duration ||
|
16053
|
-
We.current = Y.useMemo(() => Ne *
|
16052
|
+
}, [d.closeButton, A]), Be = Y.useMemo(() => d.duration || N || FD, [d.duration, N]), Me = Y.useRef(0), We = Y.useRef(0), Ye = Y.useRef(0), we = Y.useRef(null), [dt, ct] = T.split("-"), kt = Y.useMemo(() => C.reduce((Ee, Te, Re) => Re >= Ne ? Ee : Ee + Te.height, 0), [C, Ne]), mt = DD(), Bt = d.invert || p, jt = me === "loading";
|
16053
|
+
We.current = Y.useMemo(() => Ne * j + kt, [Ne, kt]), Y.useEffect(() => {
|
16054
16054
|
ee(!0);
|
16055
16055
|
}, []), Y.useLayoutEffect(() => {
|
16056
16056
|
if (!H) return;
|
16057
16057
|
let Ee = ve.current, Te = Ee.style.height;
|
16058
16058
|
Ee.style.height = "auto";
|
16059
16059
|
let Re = Ee.getBoundingClientRect().height;
|
16060
|
-
Ee.style.height = Te, se(Re),
|
16061
|
-
}, [H, d.title, d.description,
|
16060
|
+
Ee.style.height = Te, se(Re), h((ot) => ot.find((ft) => ft.toastId === d.id) ? ot.map((ft) => ft.toastId === d.id ? { ...ft, height: Re } : ft) : [{ toastId: d.id, height: Re, position: d.position }, ...ot]);
|
16061
|
+
}, [H, d.title, d.description, h, d.id]);
|
16062
16062
|
let yt = Y.useCallback(() => {
|
16063
|
-
m(!0), G(We.current),
|
16063
|
+
m(!0), G(We.current), h((Ee) => Ee.filter((Te) => Te.toastId !== d.id)), setTimeout(() => {
|
16064
16064
|
D(d);
|
16065
16065
|
}, TD);
|
16066
|
-
}, [d, D,
|
16066
|
+
}, [d, D, h, We]);
|
16067
16067
|
Y.useEffect(() => {
|
16068
16068
|
if (d.promise && me === "loading" || d.duration === 1 / 0 || d.type === "loading") return;
|
16069
16069
|
let Ee, Te = Be;
|
@@ -16081,15 +16081,15 @@ var jD = (t) => {
|
|
16081
16081
|
let Ee = ve.current;
|
16082
16082
|
if (Ee) {
|
16083
16083
|
let Te = Ee.getBoundingClientRect().height;
|
16084
|
-
return se(Te),
|
16084
|
+
return se(Te), h((Re) => [{ toastId: d.id, height: Te, position: d.position }, ...Re]), () => h((Re) => Re.filter((ot) => ot.toastId !== d.id));
|
16085
16085
|
}
|
16086
|
-
}, [
|
16086
|
+
}, [h, d.id]), Y.useEffect(() => {
|
16087
16087
|
d.delete && yt();
|
16088
16088
|
}, [yt, d.delete]);
|
16089
16089
|
function Yt() {
|
16090
16090
|
return ae != null && ae.loading ? Y.createElement("div", { className: "sonner-loader", "data-visible": me === "loading" }, ae.loading) : J ? Y.createElement("div", { className: "sonner-loader", "data-visible": me === "loading" }, J) : Y.createElement(vD, { visible: me === "loading" });
|
16091
16091
|
}
|
16092
|
-
return Y.createElement("li", { "aria-live": d.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: ve, className: Z(z, Ie, te == null ? void 0 : te.toast, (e = d == null ? void 0 : d.classNames) == null ? void 0 : e.toast, te == null ? void 0 : te.default, te == null ? void 0 : te[me], (n = d == null ? void 0 : d.classNames) == null ? void 0 : n[me]), "data-sonner-toast": "", "data-rich-colors": (r = d.richColors) != null ? r : E, "data-styled": !(d.jsx || d.unstyled ||
|
16092
|
+
return Y.createElement("li", { "aria-live": d.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: ve, className: Z(z, Ie, te == null ? void 0 : te.toast, (e = d == null ? void 0 : d.classNames) == null ? void 0 : e.toast, te == null ? void 0 : te.default, te == null ? void 0 : te[me], (n = d == null ? void 0 : d.classNames) == null ? void 0 : n[me]), "data-sonner-toast": "", "data-rich-colors": (r = d.richColors) != null ? r : E, "data-styled": !(d.jsx || d.unstyled || v), "data-mounted": H, "data-promise": !!d.promise, "data-removed": X, "data-visible": Ce, "data-y-position": dt, "data-x-position": ct, "data-index": w, "data-front": De, "data-swiping": U, "data-dismissible": ge, "data-type": me, "data-invert": Bt, "data-swipe-out": P, "data-expanded": !!(S || _ && H), style: { "--index": w, "--toasts-before": w, "--z-index": b.length - w, "--offset": `${X ? ie : We.current}px`, "--initial-height": _ ? "auto" : `${ce}px`, ...M, ...d.style }, onPointerDown: (Ee) => {
|
16093
16093
|
jt || !ge || (he.current = /* @__PURE__ */ new Date(), G(We.current), Ee.target.setPointerCapture(Ee.pointerId), Ee.target.tagName !== "BUTTON" && (W(!0), we.current = { x: Ee.clientX, y: Ee.clientY }));
|
16094
16094
|
}, onPointerUp: () => {
|
16095
16095
|
var Ee, Te, Re, ot;
|
@@ -16110,10 +16110,10 @@ var jD = (t) => {
|
|
16110
16110
|
} : () => {
|
16111
16111
|
var Ee;
|
16112
16112
|
yt(), (Ee = d.onDismiss) == null || Ee.call(d, d);
|
16113
|
-
}, className: Z(te == null ? void 0 : te.closeButton, (i = d == null ? void 0 : d.classNames) == null ? void 0 : i.closeButton) }, Y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, Y.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), Y.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, d.jsx || Y.isValidElement(d.title) ? d.jsx || d.title : Y.createElement(Y.Fragment, null, me || d.icon || d.promise ? Y.createElement("div", { "data-icon": "", className: Z(te == null ? void 0 : te.icon, (a = d == null ? void 0 : d.classNames) == null ? void 0 : a.icon) }, d.promise || d.type === "loading" && !d.icon ? d.icon || Yt() : null, d.type !== "loading" ? d.icon || (ae == null ? void 0 : ae[me]) || pD(me) : null) : null, Y.createElement("div", { "data-content": "", className: Z(te == null ? void 0 : te.content, (o = d == null ? void 0 : d.classNames) == null ? void 0 : o.content) }, Y.createElement("div", { "data-title": "", className: Z(te == null ? void 0 : te.title, (s = d == null ? void 0 : d.classNames) == null ? void 0 : s.title) }, d.title), d.description ? Y.createElement("div", { "data-description": "", className: Z(
|
16113
|
+
}, className: Z(te == null ? void 0 : te.closeButton, (i = d == null ? void 0 : d.classNames) == null ? void 0 : i.closeButton) }, Y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, Y.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), Y.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, d.jsx || Y.isValidElement(d.title) ? d.jsx || d.title : Y.createElement(Y.Fragment, null, me || d.icon || d.promise ? Y.createElement("div", { "data-icon": "", className: Z(te == null ? void 0 : te.icon, (a = d == null ? void 0 : d.classNames) == null ? void 0 : a.icon) }, d.promise || d.type === "loading" && !d.icon ? d.icon || Yt() : null, d.type !== "loading" ? d.icon || (ae == null ? void 0 : ae[me]) || pD(me) : null) : null, Y.createElement("div", { "data-content": "", className: Z(te == null ? void 0 : te.content, (o = d == null ? void 0 : d.classNames) == null ? void 0 : o.content) }, Y.createElement("div", { "data-title": "", className: Z(te == null ? void 0 : te.title, (s = d == null ? void 0 : d.classNames) == null ? void 0 : s.title) }, d.title), d.description ? Y.createElement("div", { "data-description": "", className: Z(R, le, te == null ? void 0 : te.description, (u = d == null ? void 0 : d.classNames) == null ? void 0 : u.description) }, d.description) : null), Y.isValidElement(d.cancel) ? d.cancel : d.cancel && $r(d.cancel) ? Y.createElement("button", { "data-button": !0, "data-cancel": !0, style: d.cancelButtonStyle || V, onClick: (Ee) => {
|
16114
16114
|
var Te, Re;
|
16115
16115
|
$r(d.cancel) && ge && ((Re = (Te = d.cancel).onClick) == null || Re.call(Te, Ee), yt());
|
16116
|
-
}, className: Z(te == null ? void 0 : te.cancelButton, (l = d == null ? void 0 : d.classNames) == null ? void 0 : l.cancelButton) }, d.cancel.label) : null, Y.isValidElement(d.action) ? d.action : d.action && $r(d.action) ? Y.createElement("button", { "data-button": !0, "data-action": !0, style: d.actionButtonStyle ||
|
16116
|
+
}, className: Z(te == null ? void 0 : te.cancelButton, (l = d == null ? void 0 : d.classNames) == null ? void 0 : l.cancelButton) }, d.cancel.label) : null, Y.isValidElement(d.action) ? d.action : d.action && $r(d.action) ? Y.createElement("button", { "data-button": !0, "data-action": !0, style: d.actionButtonStyle || F, onClick: (Ee) => {
|
16117
16117
|
var Te, Re;
|
16118
16118
|
$r(d.action) && (Ee.defaultPrevented || ((Re = (Te = d.action).onClick) == null || Re.call(Te, Ee), yt()));
|
16119
16119
|
}, className: Z(te == null ? void 0 : te.actionButton, (c = d == null ? void 0 : d.classNames) == null ? void 0 : c.actionButton) }, d.action.label) : null));
|
@@ -16124,7 +16124,7 @@ function Yu() {
|
|
16124
16124
|
return t === "auto" || !t ? window.getComputedStyle(document.documentElement).direction : t;
|
16125
16125
|
}
|
16126
16126
|
var ID = (t) => {
|
16127
|
-
let { invert: e, position: n = "bottom-right", hotkey: r = ["altKey", "KeyT"], expand: i, closeButton: a, className: o, offset: s, theme: u = "light", richColors: l, duration: c, style: p, visibleToasts: d = OD, toastOptions:
|
16127
|
+
let { invert: e, position: n = "bottom-right", hotkey: r = ["altKey", "KeyT"], expand: i, closeButton: a, className: o, offset: s, theme: u = "light", richColors: l, duration: c, style: p, visibleToasts: d = OD, toastOptions: v, dir: y = Yu(), gap: h = PD, loadingIcon: f, icons: C, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: b, cn: S = RD } = t, [D, E] = Y.useState([]), A = Y.useMemo(() => Array.from(new Set([n].concat(D.filter((I) => I.position).map((I) => I.position)))), [D, n]), [M, V] = Y.useState([]), [F, z] = Y.useState(!1), [R, N] = Y.useState(!1), [T, j] = Y.useState(u !== "system" ? u : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), J = Y.useRef(null), _ = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), te = Y.useRef(null), ae = Y.useRef(!1), k = Y.useCallback((I) => {
|
16128
16128
|
var Z;
|
16129
16129
|
(Z = D.find((H) => H.id === I.id)) != null && Z.delete || xt.dismiss(I.id), E((H) => H.filter(({ id: ee }) => ee !== I.id));
|
16130
16130
|
}, [D]);
|
@@ -16143,11 +16143,11 @@ var ID = (t) => {
|
|
16143
16143
|
});
|
16144
16144
|
}), []), Y.useEffect(() => {
|
16145
16145
|
if (u !== "system") {
|
16146
|
-
|
16146
|
+
j(u);
|
16147
16147
|
return;
|
16148
16148
|
}
|
16149
|
-
u === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ?
|
16150
|
-
|
16149
|
+
u === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? j("dark") : j("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches: I }) => {
|
16150
|
+
j(I ? "dark" : "light");
|
16151
16151
|
});
|
16152
16152
|
}, [u]), Y.useEffect(() => {
|
16153
16153
|
D.length <= 1 && z(!1);
|
@@ -16164,17 +16164,17 @@ var ID = (t) => {
|
|
16164
16164
|
}, [J.current]), D.length ? Y.createElement("section", { "aria-label": `${w} ${_}`, tabIndex: -1 }, A.map((I, Z) => {
|
16165
16165
|
var H;
|
16166
16166
|
let [ee, X] = I.split("-");
|
16167
|
-
return Y.createElement("ol", { key: I, dir: y === "auto" ? Yu() : y, tabIndex: -1, ref: J, className: o, "data-sonner-toaster": !0, "data-theme":
|
16167
|
+
return Y.createElement("ol", { key: I, dir: y === "auto" ? Yu() : y, tabIndex: -1, ref: J, className: o, "data-sonner-toaster": !0, "data-theme": T, "data-y-position": ee, "data-x-position": X, style: { "--front-toast-height": `${((H = M[0]) == null ? void 0 : H.height) || 0}px`, "--offset": typeof s == "number" ? `${s}px` : s || SD, "--width": `${MD}px`, "--gap": `${h}px`, ...p }, onBlur: (m) => {
|
16168
16168
|
ae.current && !m.currentTarget.contains(m.relatedTarget) && (ae.current = !1, te.current && (te.current.focus({ preventScroll: !0 }), te.current = null));
|
16169
16169
|
}, onFocus: (m) => {
|
16170
16170
|
m.target instanceof HTMLElement && m.target.dataset.dismissible === "false" || ae.current || (ae.current = !0, te.current = m.relatedTarget);
|
16171
16171
|
}, onMouseEnter: () => z(!0), onMouseMove: () => z(!0), onMouseLeave: () => {
|
16172
|
-
|
16172
|
+
R || z(!1);
|
16173
16173
|
}, onPointerDown: (m) => {
|
16174
|
-
m.target instanceof HTMLElement && m.target.dataset.dismissible === "false" ||
|
16175
|
-
}, onPointerUp: () =>
|
16174
|
+
m.target instanceof HTMLElement && m.target.dataset.dismissible === "false" || N(!0);
|
16175
|
+
}, onPointerUp: () => N(!1) }, D.filter((m) => !m.position && Z === 0 || m.position === I).map((m, U) => {
|
16176
16176
|
var W, P;
|
16177
|
-
return Y.createElement(jD, { key: m.id, icons: C, index: U, toast: m, defaultRichColors: l, duration: (W =
|
16177
|
+
return Y.createElement(jD, { key: m.id, icons: C, index: U, toast: m, defaultRichColors: l, duration: (W = v == null ? void 0 : v.duration) != null ? W : c, className: v == null ? void 0 : v.className, descriptionClassName: v == null ? void 0 : v.descriptionClassName, invert: e, visibleToasts: d, closeButton: (P = v == null ? void 0 : v.closeButton) != null ? P : a, interacting: R, position: I, style: v == null ? void 0 : v.style, unstyled: v == null ? void 0 : v.unstyled, classNames: v == null ? void 0 : v.classNames, cancelButtonStyle: v == null ? void 0 : v.cancelButtonStyle, actionButtonStyle: v == null ? void 0 : v.actionButtonStyle, removeToast: k, toasts: D.filter((Q) => Q.position == m.position), heights: M.filter((Q) => Q.position == m.position), setHeights: V, expandByDefault: i, gap: h, loadingIcon: f, expanded: F, pauseWhenPageIsHidden: b, cn: S });
|
16178
16178
|
}));
|
16179
16179
|
})) : null;
|
16180
16180
|
};
|