@arkyn/components 1.3.104 → 1.3.107
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bundle.js +437 -444
- package/dist/bundle.umd.cjs +13 -13
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/Switch/index.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Switch/index.tsx +6 -9
- package/src/components/Textarea/styles.css +1 -1
package/dist/bundle.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import H, { createContext as st, useContext as Pe, memo as Ze, Children as at, isValidElement as Vr, cloneElement as Zr, useState as
|
2
|
-
import { Info as Un, AlertTriangle as Ki, XCircle as Yr, CheckCircle2 as Gr, MapPinned as Xi, Loader2 as
|
1
|
+
import H, { createContext as st, useContext as Pe, memo as Ze, Children as at, isValidElement as Vr, cloneElement as Zr, useState as k, useRef as Je, useEffect as h, PureComponent as Ie, createRef as yn, useMemo as hn, useId as Gi, forwardRef as qi } from "react";
|
2
|
+
import { Info as Un, AlertTriangle as Ki, XCircle as Yr, CheckCircle2 as Gr, MapPinned as Xi, Loader2 as Mt, Check as qr, ChevronDown as Ji, ChevronRight as Fn, ChevronLeft as Qi, Ellipsis as mo, X as Kr, AlertCircle as es } from "lucide-react";
|
3
3
|
import * as Xr from "react-dom";
|
4
4
|
import Jr, { createPortal as bn } from "react-dom";
|
5
5
|
import { useActionData as Qr, useLocation as ei, Link as ts, useNavigate as ns } from "@remix-run/react";
|
@@ -43,7 +43,7 @@ var yo;
|
|
43
43
|
function is() {
|
44
44
|
return yo || (yo = 1, process.env.NODE_ENV !== "production" && function() {
|
45
45
|
var t = H, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), c = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), w = Symbol.iterator, m = "@@iterator";
|
46
|
-
function
|
46
|
+
function C(g) {
|
47
47
|
if (g === null || typeof g != "object")
|
48
48
|
return null;
|
49
49
|
var $ = w && g[w] || g[m];
|
@@ -54,10 +54,10 @@ function is() {
|
|
54
54
|
{
|
55
55
|
for (var $ = arguments.length, G = new Array($ > 1 ? $ - 1 : 0), oe = 1; oe < $; oe++)
|
56
56
|
G[oe - 1] = arguments[oe];
|
57
|
-
|
57
|
+
M("error", g, G);
|
58
58
|
}
|
59
59
|
}
|
60
|
-
function
|
60
|
+
function M(g, $, G) {
|
61
61
|
{
|
62
62
|
var oe = x.ReactDebugCurrentFrame, Le = oe.getStackAddendum();
|
63
63
|
Le !== "" && ($ += "%s", G = G.concat([Le]));
|
@@ -193,7 +193,7 @@ function is() {
|
|
193
193
|
Y < 0 && O("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
194
194
|
}
|
195
195
|
}
|
196
|
-
var
|
196
|
+
var L = x.ReactCurrentDispatcher, X;
|
197
197
|
function J(g, $, G) {
|
198
198
|
{
|
199
199
|
if (X === void 0)
|
@@ -225,7 +225,7 @@ function is() {
|
|
225
225
|
var Le = Error.prepareStackTrace;
|
226
226
|
Error.prepareStackTrace = void 0;
|
227
227
|
var we;
|
228
|
-
we =
|
228
|
+
we = L.current, L.current = null, B();
|
229
229
|
try {
|
230
230
|
if ($) {
|
231
231
|
var ge = function() {
|
@@ -278,7 +278,7 @@ function is() {
|
|
278
278
|
}
|
279
279
|
}
|
280
280
|
} finally {
|
281
|
-
D = !1,
|
281
|
+
D = !1, L.current = we, q(), Error.prepareStackTrace = Le;
|
282
282
|
}
|
283
283
|
var ct = g ? g.displayName || g.name : "", dt = ct ? J(ct) : "";
|
284
284
|
return typeof g == "function" && K.set(g, dt), dt;
|
@@ -542,7 +542,7 @@ Check the top-level render call using <` + G + ">.");
|
|
542
542
|
else if (nt(g))
|
543
543
|
g._store && (g._store.validated = !0);
|
544
544
|
else if (g) {
|
545
|
-
var Le =
|
545
|
+
var Le = C(g);
|
546
546
|
if (typeof Le == "function" && Le !== g.entries)
|
547
547
|
for (var we = Le.call(g), ge; !(ge = we.next()).done; )
|
548
548
|
nt(ge.value) && Ct(ge.value, $);
|
@@ -978,7 +978,7 @@ var bo = {
|
|
978
978
|
}
|
979
979
|
};
|
980
980
|
function xs(t) {
|
981
|
-
var e = t.children, n = t.options, o = t.id, r = t.mapContainerStyle, i = t.mapContainerClassName, s = t.center, a = t.onClick, l = t.onDblClick, u = t.onDrag, d = t.onDragEnd, f = t.onDragStart, c = t.onMouseMove, p = t.onMouseOut, w = t.onMouseOver, m = t.onMouseDown,
|
981
|
+
var e = t.children, n = t.options, o = t.id, r = t.mapContainerStyle, i = t.mapContainerClassName, s = t.center, a = t.onClick, l = t.onDblClick, u = t.onDrag, d = t.onDragEnd, f = t.onDragStart, c = t.onMouseMove, p = t.onMouseOut, w = t.onMouseOver, m = t.onMouseDown, C = t.onMouseUp, x = t.onRightClick, O = t.onCenterChanged, M = t.onLoad, _ = t.onUnmount, v = k(null), b = v[0], S = v[1], T = Je(null), F = k(null), I = F[0], U = F[1], Q = k(null), z = Q[0], W = Q[1], Y = k(null), V = Y[0], A = Y[1], Z = k(null), ee = Z[0], P = Z[1], E = k(null), j = E[0], R = E[1], B = k(null), q = B[0], L = B[1], X = k(null), J = X[0], D = X[1], K = k(null), re = K[0], N = K[1], de = k(null), Ce = de[0], ve = de[1], he = k(null), Te = he[0], Se = he[1], ue = k(null), ie = ue[0], $e = ue[1], le = k(null), ze = le[0], ne = le[1];
|
982
982
|
return h(function() {
|
983
983
|
n && b !== null && b.setOptions(n);
|
984
984
|
}, [b, n]), h(function() {
|
@@ -992,14 +992,14 @@ function xs(t) {
|
|
992
992
|
}, [f]), h(function() {
|
993
993
|
b && m && (j !== null && google.maps.event.removeListener(j), R(google.maps.event.addListener(b, "mousedown", m)));
|
994
994
|
}, [m]), h(function() {
|
995
|
-
b && c && (q !== null && google.maps.event.removeListener(q),
|
995
|
+
b && c && (q !== null && google.maps.event.removeListener(q), L(google.maps.event.addListener(b, "mousemove", c)));
|
996
996
|
}, [c]), h(function() {
|
997
997
|
b && p && (J !== null && google.maps.event.removeListener(J), D(google.maps.event.addListener(b, "mouseout", p)));
|
998
998
|
}, [p]), h(function() {
|
999
999
|
b && w && (re !== null && google.maps.event.removeListener(re), N(google.maps.event.addListener(b, "mouseover", w)));
|
1000
1000
|
}, [w]), h(function() {
|
1001
|
-
b &&
|
1002
|
-
}, [
|
1001
|
+
b && C && (Ce !== null && google.maps.event.removeListener(Ce), ve(google.maps.event.addListener(b, "mouseup", C)));
|
1002
|
+
}, [C]), h(function() {
|
1003
1003
|
b && x && (Te !== null && google.maps.event.removeListener(Te), Se(google.maps.event.addListener(b, "rightclick", x)));
|
1004
1004
|
}, [x]), h(function() {
|
1005
1005
|
b && a && (ie !== null && google.maps.event.removeListener(ie), $e(google.maps.event.addListener(b, "click", a)));
|
@@ -1009,7 +1009,7 @@ function xs(t) {
|
|
1009
1009
|
b && O && (I !== null && google.maps.event.removeListener(I), U(google.maps.event.addListener(b, "center_changed", O)));
|
1010
1010
|
}, [a]), h(function() {
|
1011
1011
|
var Ye = T.current === null ? null : new google.maps.Map(T.current, n);
|
1012
|
-
return S(Ye), Ye !== null &&
|
1012
|
+
return S(Ye), Ye !== null && M && M(Ye), function() {
|
1013
1013
|
Ye !== null && _ && _(Ye);
|
1014
1014
|
};
|
1015
1015
|
}, []), y.jsx("div", { id: o, ref: T, style: r, className: i, children: y.jsx(ce.Provider, { value: b, children: b !== null ? e : null }) });
|
@@ -1061,10 +1061,10 @@ var ws = (
|
|
1061
1061
|
return y.jsx("div", { id: this.props.id, ref: this.getRef, style: this.props.mapContainerStyle, className: this.props.mapContainerClassName, children: y.jsx(ce.Provider, { value: this.state.map, children: this.state.map !== null ? this.props.children : null }) });
|
1062
1062
|
}, e;
|
1063
1063
|
}(Ie)
|
1064
|
-
),
|
1064
|
+
), kt = typeof document < "u";
|
1065
1065
|
function ii(t) {
|
1066
1066
|
var e = t.url, n = t.id, o = t.nonce;
|
1067
|
-
return
|
1067
|
+
return kt ? new Promise(function(i, s) {
|
1068
1068
|
var a = document.getElementById(n), l = window;
|
1069
1069
|
if (a) {
|
1070
1070
|
var u = a.getAttribute("data-state");
|
@@ -1147,7 +1147,7 @@ function li() {
|
|
1147
1147
|
var Vn = {
|
1148
1148
|
id: "script-loader",
|
1149
1149
|
version: "weekly"
|
1150
|
-
},
|
1150
|
+
}, ks = (
|
1151
1151
|
/** @class */
|
1152
1152
|
function(t) {
|
1153
1153
|
Oe(e, t);
|
@@ -1162,7 +1162,7 @@ var Vn = {
|
|
1162
1162
|
function o(r) {
|
1163
1163
|
if (!At)
|
1164
1164
|
r();
|
1165
|
-
else if (
|
1165
|
+
else if (kt)
|
1166
1166
|
var i = window.setInterval(function() {
|
1167
1167
|
At || (window.clearInterval(i), r());
|
1168
1168
|
}, 1);
|
@@ -1209,7 +1209,7 @@ var Vn = {
|
|
1209
1209
|
}, n;
|
1210
1210
|
}
|
1211
1211
|
return e.prototype.componentDidMount = function() {
|
1212
|
-
if (
|
1212
|
+
if (kt) {
|
1213
1213
|
if (window.google && window.google.maps && !At) {
|
1214
1214
|
console.error("google api is already presented");
|
1215
1215
|
return;
|
@@ -1219,14 +1219,14 @@ var Vn = {
|
|
1219
1219
|
});
|
1220
1220
|
}
|
1221
1221
|
}, e.prototype.componentDidUpdate = function(n) {
|
1222
|
-
this.props.libraries !== n.libraries && console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),
|
1222
|
+
this.props.libraries !== n.libraries && console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"), kt && n.language !== this.props.language && (this.cleanup(), this.setState(function() {
|
1223
1223
|
return {
|
1224
1224
|
loaded: !1
|
1225
1225
|
};
|
1226
1226
|
}, this.cleanupCallback));
|
1227
1227
|
}, e.prototype.componentWillUnmount = function() {
|
1228
1228
|
var n = this;
|
1229
|
-
if (
|
1229
|
+
if (kt) {
|
1230
1230
|
this.cleanup();
|
1231
1231
|
var o = function() {
|
1232
1232
|
n.check.current || (delete window.google, At = !1);
|
@@ -1238,14 +1238,14 @@ var Vn = {
|
|
1238
1238
|
}, e.defaultProps = Vn, e;
|
1239
1239
|
}(Ie)
|
1240
1240
|
), xo;
|
1241
|
-
function
|
1242
|
-
var e = t.id, n = e === void 0 ? Vn.id : e, o = t.version, r = o === void 0 ? Vn.version : o, i = t.nonce, s = t.googleMapsApiKey, a = t.googleMapsClientId, l = t.language, u = t.region, d = t.libraries, f = t.preventGoogleFontsLoading, c = t.channel, p = t.mapIds, w = t.authReferrerPolicy, m = Je(!1),
|
1241
|
+
function Ms(t) {
|
1242
|
+
var e = t.id, n = e === void 0 ? Vn.id : e, o = t.version, r = o === void 0 ? Vn.version : o, i = t.nonce, s = t.googleMapsApiKey, a = t.googleMapsClientId, l = t.language, u = t.region, d = t.libraries, f = t.preventGoogleFontsLoading, c = t.channel, p = t.mapIds, w = t.authReferrerPolicy, m = Je(!1), C = k(!1), x = C[0], O = C[1], M = k(void 0), _ = M[0], v = M[1];
|
1243
1243
|
h(function() {
|
1244
1244
|
return m.current = !0, function() {
|
1245
1245
|
m.current = !1;
|
1246
1246
|
};
|
1247
1247
|
}, []), h(function() {
|
1248
|
-
|
1248
|
+
kt && f && si();
|
1249
1249
|
}, [f]), h(function() {
|
1250
1250
|
x && Ue(!!window.google, "useLoadScript was marked as loaded, but window.google is not present. Something went wrong.");
|
1251
1251
|
}, [x]);
|
@@ -1261,7 +1261,7 @@ function ks(t) {
|
|
1261
1261
|
authReferrerPolicy: w
|
1262
1262
|
});
|
1263
1263
|
h(function() {
|
1264
|
-
if (!
|
1264
|
+
if (!kt)
|
1265
1265
|
return;
|
1266
1266
|
function F() {
|
1267
1267
|
m.current && (O(!0), xo = b);
|
@@ -1284,7 +1284,7 @@ function ks(t) {
|
|
1284
1284
|
}
|
1285
1285
|
var Es = y.jsx(li, {});
|
1286
1286
|
function Ss(t) {
|
1287
|
-
var e = t.loadingElement, n = t.onLoad, o = t.onError, r = t.onUnmount, i = t.children, s = eo(t, ["loadingElement", "onLoad", "onError", "onUnmount", "children"]), a =
|
1287
|
+
var e = t.loadingElement, n = t.onLoad, o = t.onError, r = t.onUnmount, i = t.children, s = eo(t, ["loadingElement", "onLoad", "onError", "onUnmount", "children"]), a = Ms(s), l = a.isLoaded, u = a.loadError;
|
1288
1288
|
return h(function() {
|
1289
1289
|
l && typeof n == "function" && n();
|
1290
1290
|
}, [l, n]), h(function() {
|
@@ -1300,13 +1300,13 @@ var wo;
|
|
1300
1300
|
(function(t) {
|
1301
1301
|
t[t.INITIALIZED = 0] = "INITIALIZED", t[t.LOADING = 1] = "LOADING", t[t.SUCCESS = 2] = "SUCCESS", t[t.FAILURE = 3] = "FAILURE";
|
1302
1302
|
})(wo || (wo = {}));
|
1303
|
-
var
|
1303
|
+
var ko = {}, Mo = {
|
1304
1304
|
options: function(t, e) {
|
1305
1305
|
t.setOptions(e);
|
1306
1306
|
}
|
1307
1307
|
};
|
1308
1308
|
function Ps(t) {
|
1309
|
-
var e = t.options, n = t.onLoad, o = t.onUnmount, r = Pe(ce), i =
|
1309
|
+
var e = t.options, n = t.onLoad, o = t.onUnmount, r = Pe(ce), i = k(null), s = i[0], a = i[1];
|
1310
1310
|
return h(function() {
|
1311
1311
|
s !== null && s.setMap(r);
|
1312
1312
|
}, [r]), h(function() {
|
@@ -1332,8 +1332,8 @@ Ze(Ps);
|
|
1332
1332
|
return e.prototype.componentDidMount = function() {
|
1333
1333
|
var n = new google.maps.TrafficLayer(te(te({}, this.props.options || {}), { map: this.context }));
|
1334
1334
|
this.registeredEvents = pe({
|
1335
|
-
updaterMap:
|
1336
|
-
eventMap:
|
1335
|
+
updaterMap: Mo,
|
1336
|
+
eventMap: ko,
|
1337
1337
|
prevProps: {},
|
1338
1338
|
nextProps: this.props,
|
1339
1339
|
instance: n
|
@@ -1344,8 +1344,8 @@ Ze(Ps);
|
|
1344
1344
|
}, this.setTrafficLayerCallback);
|
1345
1345
|
}, e.prototype.componentDidUpdate = function(n) {
|
1346
1346
|
this.state.trafficLayer !== null && (me(this.registeredEvents), this.registeredEvents = pe({
|
1347
|
-
updaterMap:
|
1348
|
-
eventMap:
|
1347
|
+
updaterMap: Mo,
|
1348
|
+
eventMap: ko,
|
1349
1349
|
prevProps: n,
|
1350
1350
|
nextProps: this.props,
|
1351
1351
|
instance: this.state.trafficLayer
|
@@ -1357,7 +1357,7 @@ Ze(Ps);
|
|
1357
1357
|
}, e.contextType = ce, e;
|
1358
1358
|
})(Ie);
|
1359
1359
|
function Ts(t) {
|
1360
|
-
var e = t.onLoad, n = t.onUnmount, o = Pe(ce), r =
|
1360
|
+
var e = t.onLoad, n = t.onUnmount, o = Pe(ce), r = k(null), i = r[0], s = r[1];
|
1361
1361
|
return h(function() {
|
1362
1362
|
i !== null && i.setMap(o);
|
1363
1363
|
}, [o]), h(function() {
|
@@ -1392,7 +1392,7 @@ Ze(Ts);
|
|
1392
1392
|
}, e.contextType = ce, e;
|
1393
1393
|
})(Ie);
|
1394
1394
|
function Os(t) {
|
1395
|
-
var e = t.onLoad, n = t.onUnmount, o = Pe(ce), r =
|
1395
|
+
var e = t.onLoad, n = t.onUnmount, o = Pe(ce), r = k(null), i = r[0], s = r[1];
|
1396
1396
|
return h(function() {
|
1397
1397
|
i !== null && i.setMap(o);
|
1398
1398
|
}, [o]), h(function() {
|
@@ -1442,7 +1442,7 @@ var Eo = {
|
|
1442
1442
|
}
|
1443
1443
|
};
|
1444
1444
|
function Is(t) {
|
1445
|
-
var e = t.options, n = t.drawingMode, o = t.onCircleComplete, r = t.onMarkerComplete, i = t.onOverlayComplete, s = t.onPolygonComplete, a = t.onPolylineComplete, l = t.onRectangleComplete, u = t.onLoad, d = t.onUnmount, f = Pe(ce), c =
|
1445
|
+
var e = t.options, n = t.drawingMode, o = t.onCircleComplete, r = t.onMarkerComplete, i = t.onOverlayComplete, s = t.onPolygonComplete, a = t.onPolylineComplete, l = t.onRectangleComplete, u = t.onLoad, d = t.onUnmount, f = Pe(ce), c = k(null), p = c[0], w = c[1], m = k(null), C = m[0], x = m[1], O = k(null), M = O[0], _ = O[1], v = k(null), b = v[0], S = v[1], T = k(null), F = T[0], I = T[1], U = k(null), Q = U[0], z = U[1], W = k(null), Y = W[0], V = W[1];
|
1446
1446
|
return h(function() {
|
1447
1447
|
p !== null && p.setMap(f);
|
1448
1448
|
}, [f]), h(function() {
|
@@ -1450,9 +1450,9 @@ function Is(t) {
|
|
1450
1450
|
}, [p, e]), h(function() {
|
1451
1451
|
p !== null && p.setDrawingMode(n ?? null);
|
1452
1452
|
}, [p, n]), h(function() {
|
1453
|
-
p && o && (
|
1453
|
+
p && o && (C !== null && google.maps.event.removeListener(C), x(google.maps.event.addListener(p, "circlecomplete", o)));
|
1454
1454
|
}, [p, o]), h(function() {
|
1455
|
-
p && r && (
|
1455
|
+
p && r && (M !== null && google.maps.event.removeListener(M), _(google.maps.event.addListener(p, "markercomplete", r)));
|
1456
1456
|
}, [p, r]), h(function() {
|
1457
1457
|
p && i && (b !== null && google.maps.event.removeListener(b), S(google.maps.event.addListener(p, "overlaycomplete", i)));
|
1458
1458
|
}, [p, i]), h(function() {
|
@@ -1465,7 +1465,7 @@ function Is(t) {
|
|
1465
1465
|
Ue(!!google.maps.drawing, "Did you include prop libraries={['drawing']} in the URL? %s", google.maps.drawing);
|
1466
1466
|
var A = new google.maps.drawing.DrawingManager(te(te({}, e || {}), { map: f }));
|
1467
1467
|
return n && A.setDrawingMode(n), o && x(google.maps.event.addListener(A, "circlecomplete", o)), r && _(google.maps.event.addListener(A, "markercomplete", r)), i && S(google.maps.event.addListener(A, "overlaycomplete", i)), s && I(google.maps.event.addListener(A, "polygoncomplete", s)), a && z(google.maps.event.addListener(A, "polylinecomplete", a)), l && V(google.maps.event.addListener(A, "rectanglecomplete", l)), w(A), u && u(A), function() {
|
1468
|
-
p !== null && (
|
1468
|
+
p !== null && (C && google.maps.event.removeListener(C), M && google.maps.event.removeListener(M), b && google.maps.event.removeListener(b), F && google.maps.event.removeListener(F), Q && google.maps.event.removeListener(Q), Y && google.maps.event.removeListener(Y), d && d(p), p.setMap(null));
|
1469
1469
|
};
|
1470
1470
|
}, []), null;
|
1471
1471
|
}
|
@@ -1574,80 +1574,80 @@ var Po = {
|
|
1574
1574
|
}
|
1575
1575
|
}, mn = {};
|
1576
1576
|
function _s(t) {
|
1577
|
-
var e = t.position, n = t.options, o = t.clusterer, r = t.noClustererRedraw, i = t.children, s = t.draggable, a = t.visible, l = t.animation, u = t.clickable, d = t.cursor, f = t.icon, c = t.label, p = t.opacity, w = t.shape, m = t.title,
|
1577
|
+
var e = t.position, n = t.options, o = t.clusterer, r = t.noClustererRedraw, i = t.children, s = t.draggable, a = t.visible, l = t.animation, u = t.clickable, d = t.cursor, f = t.icon, c = t.label, p = t.opacity, w = t.shape, m = t.title, C = t.zIndex, x = t.onClick, O = t.onDblClick, M = t.onDrag, _ = t.onDragEnd, v = t.onDragStart, b = t.onMouseOut, S = t.onMouseOver, T = t.onMouseUp, F = t.onMouseDown, I = t.onRightClick, U = t.onClickableChanged, Q = t.onCursorChanged, z = t.onAnimationChanged, W = t.onDraggableChanged, Y = t.onFlatChanged, V = t.onIconChanged, A = t.onPositionChanged, Z = t.onShapeChanged, ee = t.onTitleChanged, P = t.onVisibleChanged, E = t.onZindexChanged, j = t.onLoad, R = t.onUnmount, B = Pe(ce), q = k(null), L = q[0], X = q[1], J = k(null), D = J[0], K = J[1], re = k(null), N = re[0], de = re[1], Ce = k(null), ve = Ce[0], he = Ce[1], Te = k(null), Se = Te[0], ue = Te[1], ie = k(null), $e = ie[0], le = ie[1], ze = k(null), ne = ze[0], Ye = ze[1], Qe = k(null), Be = Qe[0], ot = Qe[1], ye = k(null), rt = ye[0], ft = ye[1], bt = k(null), ut = bt[0], Et = bt[1], pt = k(null), qe = pt[0], St = pt[1], se = k(null), be = se[0], xe = se[1], Fe = k(null), Ve = Fe[0], nt = Fe[1], Lt = k(null), Pt = Lt[0], Rt = Lt[1], Xt = k(null), Ct = Xt[0], Dt = Xt[1], Jt = k(null), Tt = Jt[0], jt = Jt[1], Nt = k(null), Ot = Nt[0], Qt = Nt[1], en = k(null), It = en[0], g = en[1], $ = k(null), G = $[0], oe = $[1], Le = k(null), we = Le[0], ge = Le[1], fe = k(null), We = fe[0], _e = fe[1], De = k(null), Ge = De[0], ct = De[1];
|
1578
1578
|
h(function() {
|
1579
|
-
|
1579
|
+
L !== null && L.setMap(B);
|
1580
1580
|
}, [B]), h(function() {
|
1581
|
-
typeof n < "u" &&
|
1582
|
-
}, [
|
1583
|
-
typeof s < "u" &&
|
1584
|
-
}, [
|
1585
|
-
e &&
|
1586
|
-
}, [
|
1587
|
-
typeof a < "u" &&
|
1588
|
-
}, [
|
1589
|
-
|
1590
|
-
}, [
|
1591
|
-
|
1592
|
-
}, [
|
1593
|
-
|
1594
|
-
}, [
|
1595
|
-
|
1596
|
-
}, [
|
1597
|
-
|
1598
|
-
}, [
|
1599
|
-
|
1600
|
-
}, [
|
1601
|
-
|
1602
|
-
}, [
|
1603
|
-
|
1604
|
-
}, [
|
1605
|
-
|
1606
|
-
}, [
|
1607
|
-
|
1581
|
+
typeof n < "u" && L !== null && L.setOptions(n);
|
1582
|
+
}, [L, n]), h(function() {
|
1583
|
+
typeof s < "u" && L !== null && L.setDraggable(s);
|
1584
|
+
}, [L, s]), h(function() {
|
1585
|
+
e && L !== null && L.setPosition(e);
|
1586
|
+
}, [L, e]), h(function() {
|
1587
|
+
typeof a < "u" && L !== null && L.setVisible(a);
|
1588
|
+
}, [L, a]), h(function() {
|
1589
|
+
L == null || L.setAnimation(l);
|
1590
|
+
}, [L, l]), h(function() {
|
1591
|
+
L && u !== void 0 && L.setClickable(u);
|
1592
|
+
}, [L, u]), h(function() {
|
1593
|
+
L && d !== void 0 && L.setCursor(d);
|
1594
|
+
}, [L, d]), h(function() {
|
1595
|
+
L && f !== void 0 && L.setIcon(f);
|
1596
|
+
}, [L, f]), h(function() {
|
1597
|
+
L && c !== void 0 && L.setLabel(c);
|
1598
|
+
}, [L, c]), h(function() {
|
1599
|
+
L && p !== void 0 && L.setOpacity(p);
|
1600
|
+
}, [L, p]), h(function() {
|
1601
|
+
L && w !== void 0 && L.setShape(w);
|
1602
|
+
}, [L, w]), h(function() {
|
1603
|
+
L && m !== void 0 && L.setTitle(m);
|
1604
|
+
}, [L, m]), h(function() {
|
1605
|
+
L && C !== void 0 && L.setZIndex(C);
|
1606
|
+
}, [L, C]), h(function() {
|
1607
|
+
L && O && (D !== null && google.maps.event.removeListener(D), K(google.maps.event.addListener(L, "dblclick", O)));
|
1608
1608
|
}, [O]), h(function() {
|
1609
|
-
|
1609
|
+
L && _ && (N !== null && google.maps.event.removeListener(N), de(google.maps.event.addListener(L, "dragend", _)));
|
1610
1610
|
}, [_]), h(function() {
|
1611
|
-
|
1611
|
+
L && v && (ve !== null && google.maps.event.removeListener(ve), he(google.maps.event.addListener(L, "dragstart", v)));
|
1612
1612
|
}, [v]), h(function() {
|
1613
|
-
|
1613
|
+
L && F && (Se !== null && google.maps.event.removeListener(Se), ue(google.maps.event.addListener(L, "mousedown", F)));
|
1614
1614
|
}, [F]), h(function() {
|
1615
|
-
|
1615
|
+
L && b && ($e !== null && google.maps.event.removeListener($e), le(google.maps.event.addListener(L, "mouseout", b)));
|
1616
1616
|
}, [b]), h(function() {
|
1617
|
-
|
1617
|
+
L && S && (ne !== null && google.maps.event.removeListener(ne), Ye(google.maps.event.addListener(L, "mouseover", S)));
|
1618
1618
|
}, [S]), h(function() {
|
1619
|
-
|
1619
|
+
L && T && (Be !== null && google.maps.event.removeListener(Be), ot(google.maps.event.addListener(L, "mouseup", T)));
|
1620
1620
|
}, [T]), h(function() {
|
1621
|
-
|
1621
|
+
L && I && (rt !== null && google.maps.event.removeListener(rt), ft(google.maps.event.addListener(L, "rightclick", I)));
|
1622
1622
|
}, [I]), h(function() {
|
1623
|
-
|
1623
|
+
L && x && (ut !== null && google.maps.event.removeListener(ut), Et(google.maps.event.addListener(L, "click", x)));
|
1624
1624
|
}, [x]), h(function() {
|
1625
|
-
|
1626
|
-
}, [
|
1627
|
-
|
1625
|
+
L && M && (qe !== null && google.maps.event.removeListener(qe), St(google.maps.event.addListener(L, "drag", M)));
|
1626
|
+
}, [M]), h(function() {
|
1627
|
+
L && U && (be !== null && google.maps.event.removeListener(be), xe(google.maps.event.addListener(L, "clickable_changed", U)));
|
1628
1628
|
}, [U]), h(function() {
|
1629
|
-
|
1629
|
+
L && Q && (Ve !== null && google.maps.event.removeListener(Ve), nt(google.maps.event.addListener(L, "cursor_changed", Q)));
|
1630
1630
|
}, [Q]), h(function() {
|
1631
|
-
|
1631
|
+
L && z && (Pt !== null && google.maps.event.removeListener(Pt), Rt(google.maps.event.addListener(L, "animation_changed", z)));
|
1632
1632
|
}, [z]), h(function() {
|
1633
|
-
|
1633
|
+
L && W && (Ct !== null && google.maps.event.removeListener(Ct), Dt(google.maps.event.addListener(L, "draggable_changed", W)));
|
1634
1634
|
}, [W]), h(function() {
|
1635
|
-
|
1635
|
+
L && Y && (Tt !== null && google.maps.event.removeListener(Tt), jt(google.maps.event.addListener(L, "flat_changed", Y)));
|
1636
1636
|
}, [Y]), h(function() {
|
1637
|
-
|
1637
|
+
L && V && (Ot !== null && google.maps.event.removeListener(Ot), Qt(google.maps.event.addListener(L, "icon_changed", V)));
|
1638
1638
|
}, [V]), h(function() {
|
1639
|
-
|
1639
|
+
L && A && (It !== null && google.maps.event.removeListener(It), g(google.maps.event.addListener(L, "position_changed", A)));
|
1640
1640
|
}, [A]), h(function() {
|
1641
|
-
|
1641
|
+
L && Z && (G !== null && google.maps.event.removeListener(G), oe(google.maps.event.addListener(L, "shape_changed", Z)));
|
1642
1642
|
}, [Z]), h(function() {
|
1643
|
-
|
1643
|
+
L && ee && (we !== null && google.maps.event.removeListener(we), ge(google.maps.event.addListener(L, "title_changed", ee)));
|
1644
1644
|
}, [ee]), h(function() {
|
1645
|
-
|
1645
|
+
L && P && (We !== null && google.maps.event.removeListener(We), _e(google.maps.event.addListener(L, "visible_changed", P)));
|
1646
1646
|
}, [P]), h(function() {
|
1647
|
-
|
1647
|
+
L && E && (Ge !== null && google.maps.event.removeListener(Ge), ct(google.maps.event.addListener(L, "zindex_changed", E)));
|
1648
1648
|
}, [E]), h(function() {
|
1649
1649
|
var He = te(te(te({}, n || mn), o ? mn : { map: B }), { position: e }), ae = new google.maps.Marker(He);
|
1650
|
-
return o ? o.addMarker(ae, !!r) : ae.setMap(B), e && ae.setPosition(e), typeof a < "u" && ae.setVisible(a), typeof s < "u" && ae.setDraggable(s), typeof u < "u" && ae.setClickable(u), typeof d == "string" && ae.setCursor(d), f && ae.setIcon(f), typeof c < "u" && ae.setLabel(c), typeof p < "u" && ae.setOpacity(p), w && ae.setShape(w), typeof m == "string" && ae.setTitle(m), typeof
|
1650
|
+
return o ? o.addMarker(ae, !!r) : ae.setMap(B), e && ae.setPosition(e), typeof a < "u" && ae.setVisible(a), typeof s < "u" && ae.setDraggable(s), typeof u < "u" && ae.setClickable(u), typeof d == "string" && ae.setCursor(d), f && ae.setIcon(f), typeof c < "u" && ae.setLabel(c), typeof p < "u" && ae.setOpacity(p), w && ae.setShape(w), typeof m == "string" && ae.setTitle(m), typeof C == "number" && ae.setZIndex(C), O && K(google.maps.event.addListener(ae, "dblclick", O)), _ && de(google.maps.event.addListener(ae, "dragend", _)), v && he(google.maps.event.addListener(ae, "dragstart", v)), F && ue(google.maps.event.addListener(ae, "mousedown", F)), b && le(google.maps.event.addListener(ae, "mouseout", b)), S && Ye(google.maps.event.addListener(ae, "mouseover", S)), T && ot(google.maps.event.addListener(ae, "mouseup", T)), I && ft(google.maps.event.addListener(ae, "rightclick", I)), x && Et(google.maps.event.addListener(ae, "click", x)), M && St(google.maps.event.addListener(ae, "drag", M)), U && xe(google.maps.event.addListener(ae, "clickable_changed", U)), Q && nt(google.maps.event.addListener(ae, "cursor_changed", Q)), z && Rt(google.maps.event.addListener(ae, "animation_changed", z)), W && Dt(google.maps.event.addListener(ae, "draggable_changed", W)), Y && jt(google.maps.event.addListener(ae, "flat_changed", Y)), V && Qt(google.maps.event.addListener(ae, "icon_changed", V)), A && g(google.maps.event.addListener(ae, "position_changed", A)), Z && oe(google.maps.event.addListener(ae, "shape_changed", Z)), ee && ge(google.maps.event.addListener(ae, "title_changed", ee)), P && _e(google.maps.event.addListener(ae, "visible_changed", P)), E && ct(google.maps.event.addListener(ae, "zindex_changed", E)), X(ae), j && j(ae), function() {
|
1651
1651
|
D !== null && google.maps.event.removeListener(D), N !== null && google.maps.event.removeListener(N), ve !== null && google.maps.event.removeListener(ve), Se !== null && google.maps.event.removeListener(Se), $e !== null && google.maps.event.removeListener($e), ne !== null && google.maps.event.removeListener(ne), Be !== null && google.maps.event.removeListener(Be), rt !== null && google.maps.event.removeListener(rt), ut !== null && google.maps.event.removeListener(ut), be !== null && google.maps.event.removeListener(be), Ve !== null && google.maps.event.removeListener(Ve), Pt !== null && google.maps.event.removeListener(Pt), Ct !== null && google.maps.event.removeListener(Ct), Tt !== null && google.maps.event.removeListener(Tt), Ot !== null && google.maps.event.removeListener(Ot), It !== null && google.maps.event.removeListener(It), we !== null && google.maps.event.removeListener(we), We !== null && google.maps.event.removeListener(We), Ge !== null && google.maps.event.removeListener(Ge), R && R(ae), o ? o.removeMarker(ae, !!r) : ae && ae.setMap(null);
|
1652
1652
|
};
|
1653
1653
|
}, []);
|
@@ -1656,9 +1656,9 @@ function _s(t) {
|
|
1656
1656
|
if (!Vr(He))
|
1657
1657
|
return He;
|
1658
1658
|
var ae = He;
|
1659
|
-
return Zr(ae, { anchor:
|
1659
|
+
return Zr(ae, { anchor: L });
|
1660
1660
|
}) : null;
|
1661
|
-
}, [i,
|
1661
|
+
}, [i, L]);
|
1662
1662
|
return y.jsx(y.Fragment, { children: dt }) || null;
|
1663
1663
|
}
|
1664
1664
|
Ze(_s);
|
@@ -2139,7 +2139,7 @@ var $s = 2e3, Bs = 500, As = "https://developers.google.com/maps/documentation/j
|
|
2139
2139
|
onClusteringEnd: "clusteringend",
|
2140
2140
|
onMouseOut: "mouseout",
|
2141
2141
|
onMouseOver: "mouseover"
|
2142
|
-
},
|
2142
|
+
}, ke = {
|
2143
2143
|
averageCenter: function(t, e) {
|
2144
2144
|
t.setAverageCenter(e);
|
2145
2145
|
},
|
@@ -2187,52 +2187,52 @@ var $s = 2e3, Bs = 500, As = "https://developers.google.com/maps/documentation/j
|
|
2187
2187
|
}
|
2188
2188
|
}, Ws = {};
|
2189
2189
|
function Hs(t) {
|
2190
|
-
var e = t.children, n = t.options, o = t.averageCenter, r = t.batchSizeIE, i = t.calculator, s = t.clusterClass, a = t.enableRetinaIcons, l = t.gridSize, u = t.ignoreHidden, d = t.imageExtension, f = t.imagePath, c = t.imageSizes, p = t.maxZoom, w = t.minimumClusterSize, m = t.styles,
|
2190
|
+
var e = t.children, n = t.options, o = t.averageCenter, r = t.batchSizeIE, i = t.calculator, s = t.clusterClass, a = t.enableRetinaIcons, l = t.gridSize, u = t.ignoreHidden, d = t.imageExtension, f = t.imagePath, c = t.imageSizes, p = t.maxZoom, w = t.minimumClusterSize, m = t.styles, C = t.title, x = t.zoomOnClick, O = t.onClick, M = t.onClusteringBegin, _ = t.onClusteringEnd, v = t.onMouseOver, b = t.onMouseOut, S = t.onLoad, T = t.onUnmount, F = k(null), I = F[0], U = F[1], Q = Pe(ce), z = k(null), W = z[0], Y = z[1], V = k(null), A = V[0], Z = V[1], ee = k(null), P = ee[0], E = ee[1], j = k(null), R = j[0], B = j[1], q = k(null), L = q[0], X = q[1];
|
2191
2191
|
return h(function() {
|
2192
2192
|
I && b && (R !== null && google.maps.event.removeListener(R), B(google.maps.event.addListener(I, et.onMouseOut, b)));
|
2193
2193
|
}, [b]), h(function() {
|
2194
|
-
I && v && (
|
2194
|
+
I && v && (L !== null && google.maps.event.removeListener(L), X(google.maps.event.addListener(I, et.onMouseOver, v)));
|
2195
2195
|
}, [v]), h(function() {
|
2196
2196
|
I && O && (W !== null && google.maps.event.removeListener(W), Y(google.maps.event.addListener(I, et.onClick, O)));
|
2197
2197
|
}, [O]), h(function() {
|
2198
|
-
I &&
|
2199
|
-
}, [
|
2198
|
+
I && M && (A !== null && google.maps.event.removeListener(A), Z(google.maps.event.addListener(I, et.onClusteringBegin, M)));
|
2199
|
+
}, [M]), h(function() {
|
2200
2200
|
I && _ && (P !== null && google.maps.event.removeListener(P), Z(google.maps.event.addListener(I, et.onClusteringEnd, _)));
|
2201
2201
|
}, [_]), h(function() {
|
2202
|
-
typeof o < "u" && I !== null &&
|
2202
|
+
typeof o < "u" && I !== null && ke.averageCenter(I, o);
|
2203
2203
|
}, [I, o]), h(function() {
|
2204
|
-
typeof r < "u" && I !== null &&
|
2204
|
+
typeof r < "u" && I !== null && ke.batchSizeIE(I, r);
|
2205
2205
|
}, [I, r]), h(function() {
|
2206
|
-
typeof i < "u" && I !== null &&
|
2206
|
+
typeof i < "u" && I !== null && ke.calculator(I, i);
|
2207
2207
|
}, [I, i]), h(function() {
|
2208
|
-
typeof s < "u" && I !== null &&
|
2208
|
+
typeof s < "u" && I !== null && ke.clusterClass(I, s);
|
2209
2209
|
}, [I, s]), h(function() {
|
2210
|
-
typeof a < "u" && I !== null &&
|
2210
|
+
typeof a < "u" && I !== null && ke.enableRetinaIcons(I, a);
|
2211
2211
|
}, [I, a]), h(function() {
|
2212
|
-
typeof l < "u" && I !== null &&
|
2212
|
+
typeof l < "u" && I !== null && ke.gridSize(I, l);
|
2213
2213
|
}, [I, l]), h(function() {
|
2214
|
-
typeof u < "u" && I !== null &&
|
2214
|
+
typeof u < "u" && I !== null && ke.ignoreHidden(I, u);
|
2215
2215
|
}, [I, u]), h(function() {
|
2216
|
-
typeof d < "u" && I !== null &&
|
2216
|
+
typeof d < "u" && I !== null && ke.imageExtension(I, d);
|
2217
2217
|
}, [I, d]), h(function() {
|
2218
|
-
typeof f < "u" && I !== null &&
|
2218
|
+
typeof f < "u" && I !== null && ke.imagePath(I, f);
|
2219
2219
|
}, [I, f]), h(function() {
|
2220
|
-
typeof c < "u" && I !== null &&
|
2220
|
+
typeof c < "u" && I !== null && ke.imageSizes(I, c);
|
2221
2221
|
}, [I, c]), h(function() {
|
2222
|
-
typeof p < "u" && I !== null &&
|
2222
|
+
typeof p < "u" && I !== null && ke.maxZoom(I, p);
|
2223
2223
|
}, [I, p]), h(function() {
|
2224
|
-
typeof w < "u" && I !== null &&
|
2224
|
+
typeof w < "u" && I !== null && ke.minimumClusterSize(I, w);
|
2225
2225
|
}, [I, w]), h(function() {
|
2226
|
-
typeof m < "u" && I !== null &&
|
2226
|
+
typeof m < "u" && I !== null && ke.styles(I, m);
|
2227
2227
|
}, [I, m]), h(function() {
|
2228
|
-
typeof
|
2229
|
-
}, [I,
|
2230
|
-
typeof x < "u" && I !== null &&
|
2228
|
+
typeof C < "u" && I !== null && ke.title(I, C);
|
2229
|
+
}, [I, C]), h(function() {
|
2230
|
+
typeof x < "u" && I !== null && ke.zoomOnClick(I, x);
|
2231
2231
|
}, [I, x]), h(function() {
|
2232
2232
|
if (Q) {
|
2233
2233
|
var J = te({}, n || Ws), D = new ui(Q, [], J);
|
2234
|
-
return o &&
|
2235
|
-
R !== null && google.maps.event.removeListener(R),
|
2234
|
+
return o && ke.averageCenter(D, o), r && ke.batchSizeIE(D, r), i && ke.calculator(D, i), s && ke.clusterClass(D, s), a && ke.enableRetinaIcons(D, a), l && ke.gridSize(D, l), u && ke.ignoreHidden(D, u), d && ke.imageExtension(D, d), f && ke.imagePath(D, f), c && ke.imageSizes(D, c), p && ke.maxZoom(D, p), w && ke.minimumClusterSize(D, w), m && ke.styles(D, m), C && ke.title(D, C), x && ke.zoomOnClick(D, x), b && B(google.maps.event.addListener(D, et.onMouseOut, b)), v && X(google.maps.event.addListener(D, et.onMouseOver, v)), O && Y(google.maps.event.addListener(D, et.onClick, O)), M && Z(google.maps.event.addListener(D, et.onClusteringBegin, M)), _ && E(google.maps.event.addListener(D, et.onClusteringEnd, _)), U(D), S && S(D), function() {
|
2235
|
+
R !== null && google.maps.event.removeListener(R), L !== null && google.maps.event.removeListener(L), W !== null && google.maps.event.removeListener(W), A !== null && google.maps.event.removeListener(A), P !== null && google.maps.event.removeListener(P), T && T(D);
|
2236
2236
|
};
|
2237
2237
|
}
|
2238
2238
|
}, []), I !== null && e(I) || null;
|
@@ -2252,7 +2252,7 @@ Ze(Hs);
|
|
2252
2252
|
if (this.context) {
|
2253
2253
|
var n = new ui(this.context, [], this.props.options);
|
2254
2254
|
this.registeredEvents = pe({
|
2255
|
-
updaterMap:
|
2255
|
+
updaterMap: ke,
|
2256
2256
|
eventMap: et,
|
2257
2257
|
prevProps: {},
|
2258
2258
|
nextProps: this.props,
|
@@ -2265,7 +2265,7 @@ Ze(Hs);
|
|
2265
2265
|
}
|
2266
2266
|
}, e.prototype.componentDidUpdate = function(n) {
|
2267
2267
|
this.state.markerClusterer && (me(this.registeredEvents), this.registeredEvents = pe({
|
2268
|
-
updaterMap:
|
2268
|
+
updaterMap: ke,
|
2269
2269
|
eventMap: et,
|
2270
2270
|
prevProps: n,
|
2271
2271
|
nextProps: this.props,
|
@@ -2338,8 +2338,8 @@ var ci = (
|
|
2338
2338
|
if (n instanceof google.maps.Map) {
|
2339
2339
|
var o = 0, r = 0, i = n.getBounds();
|
2340
2340
|
i && !i.contains(this.position) && n.setCenter(this.position);
|
2341
|
-
var s = n.getDiv(), a = s.offsetWidth, l = s.offsetHeight, u = this.pixelOffset.width, d = this.pixelOffset.height, f = this.div.offsetWidth, c = this.div.offsetHeight, p = this.infoBoxClearance.width, w = this.infoBoxClearance.height, m = this.getProjection(),
|
2342
|
-
|
2341
|
+
var s = n.getDiv(), a = s.offsetWidth, l = s.offsetHeight, u = this.pixelOffset.width, d = this.pixelOffset.height, f = this.div.offsetWidth, c = this.div.offsetHeight, p = this.infoBoxClearance.width, w = this.infoBoxClearance.height, m = this.getProjection(), C = m.fromLatLngToContainerPixel(this.position);
|
2342
|
+
C !== null && (C.x < -u + p ? o = C.x + u - p : C.x + f + u + p > a && (o = C.x + f + u + p - a), this.alignBottom ? C.y < -d + w + c ? r = C.y + d - w - c : C.y + d + w > l && (r = C.y + d + w - l) : C.y < -d + w ? r = C.y + d - w : C.y + c + d + w > l && (r = C.y + c + d + w - l)), o === 0 && r === 0 || n.panBy(o, r);
|
2343
2343
|
}
|
2344
2344
|
}
|
2345
2345
|
}, t.prototype.setBoxStyle = function() {
|
@@ -2446,7 +2446,7 @@ var ci = (
|
|
2446
2446
|
}
|
2447
2447
|
}, Vs = {};
|
2448
2448
|
function Zs(t) {
|
2449
|
-
var e = t.children, n = t.anchor, o = t.options, r = t.position, i = t.zIndex, s = t.onCloseClick, a = t.onDomReady, l = t.onContentChanged, u = t.onPositionChanged, d = t.onZindexChanged, f = t.onLoad, c = t.onUnmount, p = Pe(ce), w =
|
2449
|
+
var e = t.children, n = t.anchor, o = t.options, r = t.position, i = t.zIndex, s = t.onCloseClick, a = t.onDomReady, l = t.onContentChanged, u = t.onPositionChanged, d = t.onZindexChanged, f = t.onLoad, c = t.onUnmount, p = Pe(ce), w = k(null), m = w[0], C = w[1], x = k(null), O = x[0], M = x[1], _ = k(null), v = _[0], b = _[1], S = k(null), T = S[0], F = S[1], I = k(null), U = I[0], Q = I[1], z = k(null), W = z[0], Y = z[1], V = Je(null);
|
2450
2450
|
return h(function() {
|
2451
2451
|
p && m !== null && (m.close(), n ? m.open(p, n) : m.getPosition() && m.open(p));
|
2452
2452
|
}, [p, m, n]), h(function() {
|
@@ -2459,7 +2459,7 @@ function Zs(t) {
|
|
2459
2459
|
}, [r]), h(function() {
|
2460
2460
|
typeof i == "number" && m !== null && m.setZIndex(i);
|
2461
2461
|
}, [i]), h(function() {
|
2462
|
-
m && s && (O !== null && google.maps.event.removeListener(O),
|
2462
|
+
m && s && (O !== null && google.maps.event.removeListener(O), M(google.maps.event.addListener(m, "closeclick", s)));
|
2463
2463
|
}, [s]), h(function() {
|
2464
2464
|
m && a && (v !== null && google.maps.event.removeListener(v), b(google.maps.event.addListener(m, "domready", a)));
|
2465
2465
|
}, [a]), h(function() {
|
@@ -2473,7 +2473,7 @@ function Zs(t) {
|
|
2473
2473
|
var A = o || Vs, Z = A.position, ee = eo(A, ["position"]), P = void 0;
|
2474
2474
|
Z && !(Z instanceof google.maps.LatLng) && (P = new google.maps.LatLng(Z.lat, Z.lng));
|
2475
2475
|
var E = new ci(te(te({}, ee), P ? { position: P } : {}));
|
2476
|
-
V.current = document.createElement("div"),
|
2476
|
+
V.current = document.createElement("div"), C(E), s && M(google.maps.event.addListener(E, "closeclick", s)), a && b(google.maps.event.addListener(E, "domready", a)), l && F(google.maps.event.addListener(E, "content_changed", l)), u && Q(google.maps.event.addListener(E, "position_changed", u)), d && Y(google.maps.event.addListener(E, "zindex_changed", d)), E.setContent(V.current), n ? E.open(p, n) : E.getPosition() ? E.open(p) : Ue(!1, "You must provide either an anchor or a position prop for <InfoBox>."), f && f(E);
|
2477
2477
|
}
|
2478
2478
|
return function() {
|
2479
2479
|
m !== null && (O && google.maps.event.removeListener(O), T && google.maps.event.removeListener(T), v && google.maps.event.removeListener(v), U && google.maps.event.removeListener(U), W && google.maps.event.removeListener(W), c && c(m), m.close());
|
@@ -2624,9 +2624,9 @@ class to {
|
|
2624
2624
|
for (; l.length; ) {
|
2625
2625
|
const d = l.pop() || 0, f = l.pop() || 0, c = l.pop() || 0;
|
2626
2626
|
if (f - c <= a) {
|
2627
|
-
for (let
|
2628
|
-
const x = s[2 *
|
2629
|
-
x >= e && x <= o && O >= n && O <= r && u.push(i[
|
2627
|
+
for (let C = c; C <= f; C++) {
|
2628
|
+
const x = s[2 * C], O = s[2 * C + 1];
|
2629
|
+
x >= e && x <= o && O >= n && O <= r && u.push(i[C]);
|
2630
2630
|
}
|
2631
2631
|
continue;
|
2632
2632
|
}
|
@@ -2648,8 +2648,8 @@ class to {
|
|
2648
2648
|
for (; a.length; ) {
|
2649
2649
|
const d = a.pop() || 0, f = a.pop() || 0, c = a.pop() || 0;
|
2650
2650
|
if (f - c <= s) {
|
2651
|
-
for (let
|
2652
|
-
jo(i[2 *
|
2651
|
+
for (let C = c; C <= f; C++)
|
2652
|
+
jo(i[2 * C], i[2 * C + 1], e, n) <= u && l.push(r[C]);
|
2653
2653
|
continue;
|
2654
2654
|
}
|
2655
2655
|
const p = c + f >> 1, w = i[2 * p], m = i[2 * p + 1];
|
@@ -2843,8 +2843,8 @@ class qs {
|
|
2843
2843
|
else {
|
2844
2844
|
const m = this.points[n[l + vt]];
|
2845
2845
|
d = m.properties;
|
2846
|
-
const [
|
2847
|
-
f = nn(
|
2846
|
+
const [C, x] = m.geometry.coordinates;
|
2847
|
+
f = nn(C), c = on(x);
|
2848
2848
|
}
|
2849
2849
|
const p = {
|
2850
2850
|
type: 1,
|
@@ -2867,30 +2867,30 @@ class qs {
|
|
2867
2867
|
if (l[f + xt] <= n) continue;
|
2868
2868
|
l[f + xt] = n;
|
2869
2869
|
const c = l[f], p = l[f + 1], w = e.within(l[f], l[f + 1], a), m = l[f + mt];
|
2870
|
-
let
|
2870
|
+
let C = m;
|
2871
2871
|
for (const x of w) {
|
2872
2872
|
const O = x * d;
|
2873
|
-
l[O + xt] > n && (
|
2873
|
+
l[O + xt] > n && (C += l[O + mt]);
|
2874
2874
|
}
|
2875
|
-
if (
|
2876
|
-
let x = c * m, O = p * m,
|
2875
|
+
if (C > m && C >= s) {
|
2876
|
+
let x = c * m, O = p * m, M, _ = -1;
|
2877
2877
|
const v = ((f / d | 0) << 5) + (n + 1) + this.points.length;
|
2878
2878
|
for (const b of w) {
|
2879
2879
|
const S = b * d;
|
2880
2880
|
if (l[S + xt] <= n) continue;
|
2881
2881
|
l[S + xt] = n;
|
2882
2882
|
const T = l[S + mt];
|
2883
|
-
x += l[S] * T, O += l[S + 1] * T, l[S + Tn] = v, i && (
|
2883
|
+
x += l[S] * T, O += l[S + 1] * T, l[S + Tn] = v, i && (M || (M = this._map(l, f, !0), _ = this.clusterProps.length, this.clusterProps.push(M)), i(M, this._map(l, S)));
|
2884
2884
|
}
|
2885
|
-
l[f + Tn] = v, u.push(x /
|
2885
|
+
l[f + Tn] = v, u.push(x / C, O / C, 1 / 0, v, -1, C), i && u.push(_);
|
2886
2886
|
} else {
|
2887
2887
|
for (let x = 0; x < d; x++) u.push(l[f + x]);
|
2888
|
-
if (
|
2888
|
+
if (C > 1)
|
2889
2889
|
for (const x of w) {
|
2890
2890
|
const O = x * d;
|
2891
2891
|
if (!(l[O + xt] <= n)) {
|
2892
2892
|
l[O + xt] = n;
|
2893
|
-
for (let
|
2893
|
+
for (let M = 0; M < d; M++) u.push(l[O + M]);
|
2894
2894
|
}
|
2895
2895
|
}
|
2896
2896
|
}
|
@@ -3268,7 +3268,7 @@ class sa extends no {
|
|
3268
3268
|
}
|
3269
3269
|
}
|
3270
3270
|
function aa(t) {
|
3271
|
-
var e = ms(), n =
|
3271
|
+
var e = ms(), n = k(null), o = n[0], r = n[1];
|
3272
3272
|
return h(function() {
|
3273
3273
|
if (e && o === null) {
|
3274
3274
|
var i = new sa(te(te({}, t), { map: e }));
|
@@ -3299,7 +3299,7 @@ var Bo = {
|
|
3299
3299
|
}
|
3300
3300
|
};
|
3301
3301
|
function ua(t) {
|
3302
|
-
var e = t.children, n = t.anchor, o = t.options, r = t.position, i = t.zIndex, s = t.onCloseClick, a = t.onDomReady, l = t.onContentChanged, u = t.onPositionChanged, d = t.onZindexChanged, f = t.onLoad, c = t.onUnmount, p = Pe(ce), w =
|
3302
|
+
var e = t.children, n = t.anchor, o = t.options, r = t.position, i = t.zIndex, s = t.onCloseClick, a = t.onDomReady, l = t.onContentChanged, u = t.onPositionChanged, d = t.onZindexChanged, f = t.onLoad, c = t.onUnmount, p = Pe(ce), w = k(null), m = w[0], C = w[1], x = k(null), O = x[0], M = x[1], _ = k(null), v = _[0], b = _[1], S = k(null), T = S[0], F = S[1], I = k(null), U = I[0], Q = I[1], z = k(null), W = z[0], Y = z[1], V = Je(null);
|
3303
3303
|
return h(function() {
|
3304
3304
|
m !== null && (m.close(), n ? m.open(p, n) : m.getPosition() && m.open(p));
|
3305
3305
|
}, [p, m, n]), h(function() {
|
@@ -3309,7 +3309,7 @@ function ua(t) {
|
|
3309
3309
|
}, [r]), h(function() {
|
3310
3310
|
typeof i == "number" && m !== null && m.setZIndex(i);
|
3311
3311
|
}, [i]), h(function() {
|
3312
|
-
m && s && (O !== null && google.maps.event.removeListener(O),
|
3312
|
+
m && s && (O !== null && google.maps.event.removeListener(O), M(google.maps.event.addListener(m, "closeclick", s)));
|
3313
3313
|
}, [s]), h(function() {
|
3314
3314
|
m && a && (v !== null && google.maps.event.removeListener(v), b(google.maps.event.addListener(m, "domready", a)));
|
3315
3315
|
}, [a]), h(function() {
|
@@ -3320,7 +3320,7 @@ function ua(t) {
|
|
3320
3320
|
m && d && (W !== null && google.maps.event.removeListener(W), Y(google.maps.event.addListener(m, "zindex_changed", d)));
|
3321
3321
|
}, [d]), h(function() {
|
3322
3322
|
var A = new google.maps.InfoWindow(te({}, o || {}));
|
3323
|
-
return
|
3323
|
+
return C(A), V.current = document.createElement("div"), s && M(google.maps.event.addListener(A, "closeclick", s)), a && b(google.maps.event.addListener(A, "domready", a)), l && F(google.maps.event.addListener(A, "content_changed", l)), u && Q(google.maps.event.addListener(A, "position_changed", u)), d && Y(google.maps.event.addListener(A, "zindex_changed", d)), A.setContent(V.current), r && A.setPosition(r), i && A.setZIndex(i), n ? A.open(p, n) : A.getPosition() ? A.open(p) : Ue(!1, "You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."), f && f(A), function() {
|
3324
3324
|
O && google.maps.event.removeListener(O), T && google.maps.event.removeListener(T), v && google.maps.event.removeListener(v), U && google.maps.event.removeListener(U), W && google.maps.event.removeListener(W), c && c(A), A.close();
|
3325
3325
|
};
|
3326
3326
|
}, []), V.current ? bn(at.only(e), V.current) : null;
|
@@ -3398,10 +3398,10 @@ var zo = {
|
|
3398
3398
|
}
|
3399
3399
|
}, ca = {};
|
3400
3400
|
function da(t) {
|
3401
|
-
var e = t.options, n = t.draggable, o = t.editable, r = t.visible, i = t.path, s = t.onDblClick, a = t.onDragEnd, l = t.onDragStart, u = t.onMouseDown, d = t.onMouseMove, f = t.onMouseOut, c = t.onMouseOver, p = t.onMouseUp, w = t.onRightClick, m = t.onClick,
|
3401
|
+
var e = t.options, n = t.draggable, o = t.editable, r = t.visible, i = t.path, s = t.onDblClick, a = t.onDragEnd, l = t.onDragStart, u = t.onMouseDown, d = t.onMouseMove, f = t.onMouseOut, c = t.onMouseOver, p = t.onMouseUp, w = t.onRightClick, m = t.onClick, C = t.onDrag, x = t.onLoad, O = t.onUnmount, M = Pe(ce), _ = k(null), v = _[0], b = _[1], S = k(null), T = S[0], F = S[1], I = k(null), U = I[0], Q = I[1], z = k(null), W = z[0], Y = z[1], V = k(null), A = V[0], Z = V[1], ee = k(null), P = ee[0], E = ee[1], j = k(null), R = j[0], B = j[1], q = k(null), L = q[0], X = q[1], J = k(null), D = J[0], K = J[1], re = k(null), N = re[0], de = re[1], Ce = k(null), ve = Ce[0], he = Ce[1], Te = k(null), Se = Te[0], ue = Te[1];
|
3402
3402
|
return h(function() {
|
3403
|
-
v !== null && v.setMap(
|
3404
|
-
}, [
|
3403
|
+
v !== null && v.setMap(M);
|
3404
|
+
}, [M]), h(function() {
|
3405
3405
|
typeof e < "u" && v !== null && v.setOptions(e);
|
3406
3406
|
}, [v, e]), h(function() {
|
3407
3407
|
typeof n < "u" && v !== null && v.setDraggable(n);
|
@@ -3424,7 +3424,7 @@ function da(t) {
|
|
3424
3424
|
}, [d]), h(function() {
|
3425
3425
|
v && f && (R !== null && google.maps.event.removeListener(R), B(google.maps.event.addListener(v, "mouseout", f)));
|
3426
3426
|
}, [f]), h(function() {
|
3427
|
-
v && c && (
|
3427
|
+
v && c && (L !== null && google.maps.event.removeListener(L), X(google.maps.event.addListener(v, "mouseover", c)));
|
3428
3428
|
}, [c]), h(function() {
|
3429
3429
|
v && p && (D !== null && google.maps.event.removeListener(D), K(google.maps.event.addListener(v, "mouseup", p)));
|
3430
3430
|
}, [p]), h(function() {
|
@@ -3432,11 +3432,11 @@ function da(t) {
|
|
3432
3432
|
}, [w]), h(function() {
|
3433
3433
|
v && m && (ve !== null && google.maps.event.removeListener(ve), he(google.maps.event.addListener(v, "click", m)));
|
3434
3434
|
}, [m]), h(function() {
|
3435
|
-
v &&
|
3436
|
-
}, [
|
3437
|
-
var ie = new google.maps.Polyline(te(te({}, e || ca), { map:
|
3438
|
-
return i && ie.setPath(i), typeof r < "u" && ie.setVisible(r), typeof o < "u" && ie.setEditable(o), typeof n < "u" && ie.setDraggable(n), s && F(google.maps.event.addListener(ie, "dblclick", s)), a && Q(google.maps.event.addListener(ie, "dragend", a)), l && Y(google.maps.event.addListener(ie, "dragstart", l)), u && Z(google.maps.event.addListener(ie, "mousedown", u)), d && E(google.maps.event.addListener(ie, "mousemove", d)), f && B(google.maps.event.addListener(ie, "mouseout", f)), c && X(google.maps.event.addListener(ie, "mouseover", c)), p && K(google.maps.event.addListener(ie, "mouseup", p)), w && de(google.maps.event.addListener(ie, "rightclick", w)), m && he(google.maps.event.addListener(ie, "click", m)),
|
3439
|
-
T !== null && google.maps.event.removeListener(T), U !== null && google.maps.event.removeListener(U), W !== null && google.maps.event.removeListener(W), A !== null && google.maps.event.removeListener(A), P !== null && google.maps.event.removeListener(P), R !== null && google.maps.event.removeListener(R),
|
3435
|
+
v && C && (Se !== null && google.maps.event.removeListener(Se), ue(google.maps.event.addListener(v, "drag", C)));
|
3436
|
+
}, [C]), h(function() {
|
3437
|
+
var ie = new google.maps.Polyline(te(te({}, e || ca), { map: M }));
|
3438
|
+
return i && ie.setPath(i), typeof r < "u" && ie.setVisible(r), typeof o < "u" && ie.setEditable(o), typeof n < "u" && ie.setDraggable(n), s && F(google.maps.event.addListener(ie, "dblclick", s)), a && Q(google.maps.event.addListener(ie, "dragend", a)), l && Y(google.maps.event.addListener(ie, "dragstart", l)), u && Z(google.maps.event.addListener(ie, "mousedown", u)), d && E(google.maps.event.addListener(ie, "mousemove", d)), f && B(google.maps.event.addListener(ie, "mouseout", f)), c && X(google.maps.event.addListener(ie, "mouseover", c)), p && K(google.maps.event.addListener(ie, "mouseup", p)), w && de(google.maps.event.addListener(ie, "rightclick", w)), m && he(google.maps.event.addListener(ie, "click", m)), C && ue(google.maps.event.addListener(ie, "drag", C)), b(ie), x && x(ie), function() {
|
3439
|
+
T !== null && google.maps.event.removeListener(T), U !== null && google.maps.event.removeListener(U), W !== null && google.maps.event.removeListener(W), A !== null && google.maps.event.removeListener(A), P !== null && google.maps.event.removeListener(P), R !== null && google.maps.event.removeListener(R), L !== null && google.maps.event.removeListener(L), D !== null && google.maps.event.removeListener(D), N !== null && google.maps.event.removeListener(N), ve !== null && google.maps.event.removeListener(ve), O && O(ie), ie.setMap(null);
|
3440
3440
|
};
|
3441
3441
|
}, []), null;
|
3442
3442
|
}
|
@@ -3514,7 +3514,7 @@ var Fo = {
|
|
3514
3514
|
}
|
3515
3515
|
};
|
3516
3516
|
function fa(t) {
|
3517
|
-
var e = t.options, n = t.draggable, o = t.editable, r = t.visible, i = t.path, s = t.paths, a = t.onDblClick, l = t.onDragEnd, u = t.onDragStart, d = t.onMouseDown, f = t.onMouseMove, c = t.onMouseOut, p = t.onMouseOver, w = t.onMouseUp, m = t.onRightClick,
|
3517
|
+
var e = t.options, n = t.draggable, o = t.editable, r = t.visible, i = t.path, s = t.paths, a = t.onDblClick, l = t.onDragEnd, u = t.onDragStart, d = t.onMouseDown, f = t.onMouseMove, c = t.onMouseOut, p = t.onMouseOver, w = t.onMouseUp, m = t.onRightClick, C = t.onClick, x = t.onDrag, O = t.onLoad, M = t.onUnmount, _ = t.onEdit, v = Pe(ce), b = k(null), S = b[0], T = b[1], F = k(null), I = F[0], U = F[1], Q = k(null), z = Q[0], W = Q[1], Y = k(null), V = Y[0], A = Y[1], Z = k(null), ee = Z[0], P = Z[1], E = k(null), j = E[0], R = E[1], B = k(null), q = B[0], L = B[1], X = k(null), J = X[0], D = X[1], K = k(null), re = K[0], N = K[1], de = k(null), Ce = de[0], ve = de[1], he = k(null), Te = he[0], Se = he[1], ue = k(null), ie = ue[0], $e = ue[1];
|
3518
3518
|
return h(function() {
|
3519
3519
|
S !== null && S.setMap(v);
|
3520
3520
|
}, [v]), h(function() {
|
@@ -3546,7 +3546,7 @@ function fa(t) {
|
|
3546
3546
|
}, [d]), h(function() {
|
3547
3547
|
S && f && (j !== null && google.maps.event.removeListener(j), R(google.maps.event.addListener(S, "mousemove", f)));
|
3548
3548
|
}, [f]), h(function() {
|
3549
|
-
S && c && (q !== null && google.maps.event.removeListener(q),
|
3549
|
+
S && c && (q !== null && google.maps.event.removeListener(q), L(google.maps.event.addListener(S, "mouseout", c)));
|
3550
3550
|
}, [c]), h(function() {
|
3551
3551
|
S && p && (J !== null && google.maps.event.removeListener(J), D(google.maps.event.addListener(S, "mouseover", p)));
|
3552
3552
|
}, [p]), h(function() {
|
@@ -3554,13 +3554,13 @@ function fa(t) {
|
|
3554
3554
|
}, [w]), h(function() {
|
3555
3555
|
S && m && (Ce !== null && google.maps.event.removeListener(Ce), ve(google.maps.event.addListener(S, "rightclick", m)));
|
3556
3556
|
}, [m]), h(function() {
|
3557
|
-
S &&
|
3558
|
-
}, [
|
3557
|
+
S && C && (Te !== null && google.maps.event.removeListener(Te), Se(google.maps.event.addListener(S, "click", C)));
|
3558
|
+
}, [C]), h(function() {
|
3559
3559
|
S && x && (ie !== null && google.maps.event.removeListener(ie), $e(google.maps.event.addListener(S, "drag", x)));
|
3560
3560
|
}, [x]), h(function() {
|
3561
3561
|
var le = new google.maps.Polygon(te(te({}, e || {}), { map: v }));
|
3562
|
-
return i && le.setPath(i), s && le.setPaths(s), typeof r < "u" && le.setVisible(r), typeof o < "u" && le.setEditable(o), typeof n < "u" && le.setDraggable(n), a && U(google.maps.event.addListener(le, "dblclick", a)), l && W(google.maps.event.addListener(le, "dragend", l)), u && A(google.maps.event.addListener(le, "dragstart", u)), d && P(google.maps.event.addListener(le, "mousedown", d)), f && R(google.maps.event.addListener(le, "mousemove", f)), c &&
|
3563
|
-
I !== null && google.maps.event.removeListener(I), z !== null && google.maps.event.removeListener(z), V !== null && google.maps.event.removeListener(V), ee !== null && google.maps.event.removeListener(ee), j !== null && google.maps.event.removeListener(j), q !== null && google.maps.event.removeListener(q), J !== null && google.maps.event.removeListener(J), re !== null && google.maps.event.removeListener(re), Ce !== null && google.maps.event.removeListener(Ce), Te !== null && google.maps.event.removeListener(Te),
|
3562
|
+
return i && le.setPath(i), s && le.setPaths(s), typeof r < "u" && le.setVisible(r), typeof o < "u" && le.setEditable(o), typeof n < "u" && le.setDraggable(n), a && U(google.maps.event.addListener(le, "dblclick", a)), l && W(google.maps.event.addListener(le, "dragend", l)), u && A(google.maps.event.addListener(le, "dragstart", u)), d && P(google.maps.event.addListener(le, "mousedown", d)), f && R(google.maps.event.addListener(le, "mousemove", f)), c && L(google.maps.event.addListener(le, "mouseout", c)), p && D(google.maps.event.addListener(le, "mouseover", p)), w && N(google.maps.event.addListener(le, "mouseup", w)), m && ve(google.maps.event.addListener(le, "rightclick", m)), C && Se(google.maps.event.addListener(le, "click", C)), x && $e(google.maps.event.addListener(le, "drag", x)), T(le), O && O(le), function() {
|
3563
|
+
I !== null && google.maps.event.removeListener(I), z !== null && google.maps.event.removeListener(z), V !== null && google.maps.event.removeListener(V), ee !== null && google.maps.event.removeListener(ee), j !== null && google.maps.event.removeListener(j), q !== null && google.maps.event.removeListener(q), J !== null && google.maps.event.removeListener(J), re !== null && google.maps.event.removeListener(re), Ce !== null && google.maps.event.removeListener(Ce), Te !== null && google.maps.event.removeListener(Te), M && M(le), le.setMap(null);
|
3564
3564
|
};
|
3565
3565
|
}, []), null;
|
3566
3566
|
}
|
@@ -3636,7 +3636,7 @@ var Ho = {
|
|
3636
3636
|
}
|
3637
3637
|
};
|
3638
3638
|
function pa(t) {
|
3639
|
-
var e = t.options, n = t.bounds, o = t.draggable, r = t.editable, i = t.visible, s = t.onDblClick, a = t.onDragEnd, l = t.onDragStart, u = t.onMouseDown, d = t.onMouseMove, f = t.onMouseOut, c = t.onMouseOver, p = t.onMouseUp, w = t.onRightClick, m = t.onClick,
|
3639
|
+
var e = t.options, n = t.bounds, o = t.draggable, r = t.editable, i = t.visible, s = t.onDblClick, a = t.onDragEnd, l = t.onDragStart, u = t.onMouseDown, d = t.onMouseMove, f = t.onMouseOut, c = t.onMouseOver, p = t.onMouseUp, w = t.onRightClick, m = t.onClick, C = t.onDrag, x = t.onBoundsChanged, O = t.onLoad, M = t.onUnmount, _ = Pe(ce), v = k(null), b = v[0], S = v[1], T = k(null), F = T[0], I = T[1], U = k(null), Q = U[0], z = U[1], W = k(null), Y = W[0], V = W[1], A = k(null), Z = A[0], ee = A[1], P = k(null), E = P[0], j = P[1], R = k(null), B = R[0], q = R[1], L = k(null), X = L[0], J = L[1], D = k(null), K = D[0], re = D[1], N = k(null), de = N[0], Ce = N[1], ve = k(null), he = ve[0], Te = ve[1], Se = k(null), ue = Se[0], ie = Se[1], $e = k(null), le = $e[0], ze = $e[1];
|
3640
3640
|
return h(function() {
|
3641
3641
|
b !== null && b.setMap(_);
|
3642
3642
|
}, [_]), h(function() {
|
@@ -3670,13 +3670,13 @@ function pa(t) {
|
|
3670
3670
|
}, [w]), h(function() {
|
3671
3671
|
b && m && (he !== null && google.maps.event.removeListener(he), Te(google.maps.event.addListener(b, "click", m)));
|
3672
3672
|
}, [m]), h(function() {
|
3673
|
-
b &&
|
3674
|
-
}, [
|
3673
|
+
b && C && (ue !== null && google.maps.event.removeListener(ue), ie(google.maps.event.addListener(b, "drag", C)));
|
3674
|
+
}, [C]), h(function() {
|
3675
3675
|
b && x && (le !== null && google.maps.event.removeListener(le), ze(google.maps.event.addListener(b, "bounds_changed", x)));
|
3676
3676
|
}, [x]), h(function() {
|
3677
3677
|
var ne = new google.maps.Rectangle(te(te({}, e || {}), { map: _ }));
|
3678
|
-
return typeof i < "u" && ne.setVisible(i), typeof r < "u" && ne.setEditable(r), typeof o < "u" && ne.setDraggable(o), typeof n < "u" && ne.setBounds(n), s && I(google.maps.event.addListener(ne, "dblclick", s)), a && z(google.maps.event.addListener(ne, "dragend", a)), l && V(google.maps.event.addListener(ne, "dragstart", l)), u && ee(google.maps.event.addListener(ne, "mousedown", u)), d && j(google.maps.event.addListener(ne, "mousemove", d)), f && q(google.maps.event.addListener(ne, "mouseout", f)), c && J(google.maps.event.addListener(ne, "mouseover", c)), p && re(google.maps.event.addListener(ne, "mouseup", p)), w && Ce(google.maps.event.addListener(ne, "rightclick", w)), m && Te(google.maps.event.addListener(ne, "click", m)),
|
3679
|
-
F !== null && google.maps.event.removeListener(F), Q !== null && google.maps.event.removeListener(Q), Y !== null && google.maps.event.removeListener(Y), Z !== null && google.maps.event.removeListener(Z), E !== null && google.maps.event.removeListener(E), B !== null && google.maps.event.removeListener(B), X !== null && google.maps.event.removeListener(X), K !== null && google.maps.event.removeListener(K), de !== null && google.maps.event.removeListener(de), he !== null && google.maps.event.removeListener(he), ue !== null && google.maps.event.removeListener(ue), le !== null && google.maps.event.removeListener(le),
|
3678
|
+
return typeof i < "u" && ne.setVisible(i), typeof r < "u" && ne.setEditable(r), typeof o < "u" && ne.setDraggable(o), typeof n < "u" && ne.setBounds(n), s && I(google.maps.event.addListener(ne, "dblclick", s)), a && z(google.maps.event.addListener(ne, "dragend", a)), l && V(google.maps.event.addListener(ne, "dragstart", l)), u && ee(google.maps.event.addListener(ne, "mousedown", u)), d && j(google.maps.event.addListener(ne, "mousemove", d)), f && q(google.maps.event.addListener(ne, "mouseout", f)), c && J(google.maps.event.addListener(ne, "mouseover", c)), p && re(google.maps.event.addListener(ne, "mouseup", p)), w && Ce(google.maps.event.addListener(ne, "rightclick", w)), m && Te(google.maps.event.addListener(ne, "click", m)), C && ie(google.maps.event.addListener(ne, "drag", C)), x && ze(google.maps.event.addListener(ne, "bounds_changed", x)), S(ne), O && O(ne), function() {
|
3679
|
+
F !== null && google.maps.event.removeListener(F), Q !== null && google.maps.event.removeListener(Q), Y !== null && google.maps.event.removeListener(Y), Z !== null && google.maps.event.removeListener(Z), E !== null && google.maps.event.removeListener(E), B !== null && google.maps.event.removeListener(B), X !== null && google.maps.event.removeListener(X), K !== null && google.maps.event.removeListener(K), de !== null && google.maps.event.removeListener(de), he !== null && google.maps.event.removeListener(he), ue !== null && google.maps.event.removeListener(ue), le !== null && google.maps.event.removeListener(le), M && M(ne), ne.setMap(null);
|
3680
3680
|
};
|
3681
3681
|
}, []), null;
|
3682
3682
|
}
|
@@ -3756,7 +3756,7 @@ var Zo = {
|
|
3756
3756
|
}
|
3757
3757
|
}, ha = {};
|
3758
3758
|
function ga(t) {
|
3759
|
-
var e = t.options, n = t.center, o = t.radius, r = t.draggable, i = t.editable, s = t.visible, a = t.onDblClick, l = t.onDragEnd, u = t.onDragStart, d = t.onMouseDown, f = t.onMouseMove, c = t.onMouseOut, p = t.onMouseOver, w = t.onMouseUp, m = t.onRightClick,
|
3759
|
+
var e = t.options, n = t.center, o = t.radius, r = t.draggable, i = t.editable, s = t.visible, a = t.onDblClick, l = t.onDragEnd, u = t.onDragStart, d = t.onMouseDown, f = t.onMouseMove, c = t.onMouseOut, p = t.onMouseOver, w = t.onMouseUp, m = t.onRightClick, C = t.onClick, x = t.onDrag, O = t.onCenterChanged, M = t.onRadiusChanged, _ = t.onLoad, v = t.onUnmount, b = Pe(ce), S = k(null), T = S[0], F = S[1], I = k(null), U = I[0], Q = I[1], z = k(null), W = z[0], Y = z[1], V = k(null), A = V[0], Z = V[1], ee = k(null), P = ee[0], E = ee[1], j = k(null), R = j[0], B = j[1], q = k(null), L = q[0], X = q[1], J = k(null), D = J[0], K = J[1], re = k(null), N = re[0], de = re[1], Ce = k(null), ve = Ce[0], he = Ce[1], Te = k(null), Se = Te[0], ue = Te[1], ie = k(null), $e = ie[0], le = ie[1], ze = k(null), ne = ze[0], Ye = ze[1], Qe = k(null), Be = Qe[0], ot = Qe[1];
|
3760
3760
|
return h(function() {
|
3761
3761
|
T !== null && T.setMap(b);
|
3762
3762
|
}, [b]), h(function() {
|
@@ -3782,7 +3782,7 @@ function ga(t) {
|
|
3782
3782
|
}, [d]), h(function() {
|
3783
3783
|
T && f && (R !== null && google.maps.event.removeListener(R), B(google.maps.event.addListener(T, "mousemove", f)));
|
3784
3784
|
}, [f]), h(function() {
|
3785
|
-
T && c && (
|
3785
|
+
T && c && (L !== null && google.maps.event.removeListener(L), X(google.maps.event.addListener(T, "mouseout", c)));
|
3786
3786
|
}, [c]), h(function() {
|
3787
3787
|
T && p && (D !== null && google.maps.event.removeListener(D), K(google.maps.event.addListener(T, "mouseover", p)));
|
3788
3788
|
}, [p]), h(function() {
|
@@ -3790,17 +3790,17 @@ function ga(t) {
|
|
3790
3790
|
}, [w]), h(function() {
|
3791
3791
|
T && m && (ve !== null && google.maps.event.removeListener(ve), he(google.maps.event.addListener(T, "rightclick", m)));
|
3792
3792
|
}, [m]), h(function() {
|
3793
|
-
T &&
|
3794
|
-
}, [
|
3793
|
+
T && C && (Se !== null && google.maps.event.removeListener(Se), ue(google.maps.event.addListener(T, "click", C)));
|
3794
|
+
}, [C]), h(function() {
|
3795
3795
|
T && x && ($e !== null && google.maps.event.removeListener($e), le(google.maps.event.addListener(T, "drag", x)));
|
3796
3796
|
}, [x]), h(function() {
|
3797
3797
|
T && O && (ne !== null && google.maps.event.removeListener(ne), Ye(google.maps.event.addListener(T, "center_changed", O)));
|
3798
|
-
}, [
|
3799
|
-
T &&
|
3800
|
-
}, [
|
3798
|
+
}, [C]), h(function() {
|
3799
|
+
T && M && (Be !== null && google.maps.event.removeListener(Be), ot(google.maps.event.addListener(T, "radius_changed", M)));
|
3800
|
+
}, [M]), h(function() {
|
3801
3801
|
var ye = new google.maps.Circle(te(te({}, e || ha), { map: b }));
|
3802
|
-
return typeof o == "number" && ye.setRadius(o), typeof n < "u" && ye.setCenter(n), typeof o == "number" && ye.setRadius(o), typeof s < "u" && ye.setVisible(s), typeof i < "u" && ye.setEditable(i), typeof r < "u" && ye.setDraggable(r), a && Q(google.maps.event.addListener(ye, "dblclick", a)), l && Y(google.maps.event.addListener(ye, "dragend", l)), u && Z(google.maps.event.addListener(ye, "dragstart", u)), d && E(google.maps.event.addListener(ye, "mousedown", d)), f && B(google.maps.event.addListener(ye, "mousemove", f)), c && X(google.maps.event.addListener(ye, "mouseout", c)), p && K(google.maps.event.addListener(ye, "mouseover", p)), w && de(google.maps.event.addListener(ye, "mouseup", w)), m && he(google.maps.event.addListener(ye, "rightclick", m)),
|
3803
|
-
U !== null && google.maps.event.removeListener(U), W !== null && google.maps.event.removeListener(W), A !== null && google.maps.event.removeListener(A), P !== null && google.maps.event.removeListener(P), R !== null && google.maps.event.removeListener(R),
|
3802
|
+
return typeof o == "number" && ye.setRadius(o), typeof n < "u" && ye.setCenter(n), typeof o == "number" && ye.setRadius(o), typeof s < "u" && ye.setVisible(s), typeof i < "u" && ye.setEditable(i), typeof r < "u" && ye.setDraggable(r), a && Q(google.maps.event.addListener(ye, "dblclick", a)), l && Y(google.maps.event.addListener(ye, "dragend", l)), u && Z(google.maps.event.addListener(ye, "dragstart", u)), d && E(google.maps.event.addListener(ye, "mousedown", d)), f && B(google.maps.event.addListener(ye, "mousemove", f)), c && X(google.maps.event.addListener(ye, "mouseout", c)), p && K(google.maps.event.addListener(ye, "mouseover", p)), w && de(google.maps.event.addListener(ye, "mouseup", w)), m && he(google.maps.event.addListener(ye, "rightclick", m)), C && ue(google.maps.event.addListener(ye, "click", C)), x && le(google.maps.event.addListener(ye, "drag", x)), O && Ye(google.maps.event.addListener(ye, "center_changed", O)), M && ot(google.maps.event.addListener(ye, "radius_changed", M)), F(ye), _ && _(ye), function() {
|
3803
|
+
U !== null && google.maps.event.removeListener(U), W !== null && google.maps.event.removeListener(W), A !== null && google.maps.event.removeListener(A), P !== null && google.maps.event.removeListener(P), R !== null && google.maps.event.removeListener(R), L !== null && google.maps.event.removeListener(L), D !== null && google.maps.event.removeListener(D), N !== null && google.maps.event.removeListener(N), ve !== null && google.maps.event.removeListener(ve), Se !== null && google.maps.event.removeListener(Se), ne !== null && google.maps.event.removeListener(ne), Be !== null && google.maps.event.removeListener(Be), v && v(ye), ye.setMap(null);
|
3804
3804
|
};
|
3805
3805
|
}, []), null;
|
3806
3806
|
}
|
@@ -3901,42 +3901,42 @@ var Go = {
|
|
3901
3901
|
}
|
3902
3902
|
};
|
3903
3903
|
function ma(t) {
|
3904
|
-
var e = t.options, n = t.onClick, o = t.onDblClick, r = t.onMouseDown, i = t.onMouseMove, s = t.onMouseOut, a = t.onMouseOver, l = t.onMouseUp, u = t.onRightClick, d = t.onAddFeature, f = t.onRemoveFeature, c = t.onRemoveProperty, p = t.onSetGeometry, w = t.onSetProperty, m = t.onLoad,
|
3904
|
+
var e = t.options, n = t.onClick, o = t.onDblClick, r = t.onMouseDown, i = t.onMouseMove, s = t.onMouseOut, a = t.onMouseOver, l = t.onMouseUp, u = t.onRightClick, d = t.onAddFeature, f = t.onRemoveFeature, c = t.onRemoveProperty, p = t.onSetGeometry, w = t.onSetProperty, m = t.onLoad, C = t.onUnmount, x = Pe(ce), O = k(null), M = O[0], _ = O[1], v = k(null), b = v[0], S = v[1], T = k(null), F = T[0], I = T[1], U = k(null), Q = U[0], z = U[1], W = k(null), Y = W[0], V = W[1], A = k(null), Z = A[0], ee = A[1], P = k(null), E = P[0], j = P[1], R = k(null), B = R[0], q = R[1], L = k(null), X = L[0], J = L[1], D = k(null), K = D[0], re = D[1], N = k(null), de = N[0], Ce = N[1], ve = k(null), he = ve[0], Te = ve[1], Se = k(null), ue = Se[0], ie = Se[1], $e = k(null), le = $e[0], ze = $e[1];
|
3905
3905
|
return h(function() {
|
3906
|
-
|
3906
|
+
M !== null && M.setMap(x);
|
3907
3907
|
}, [x]), h(function() {
|
3908
|
-
|
3908
|
+
M && o && (b !== null && google.maps.event.removeListener(b), S(google.maps.event.addListener(M, "dblclick", o)));
|
3909
3909
|
}, [o]), h(function() {
|
3910
|
-
|
3910
|
+
M && r && (F !== null && google.maps.event.removeListener(F), I(google.maps.event.addListener(M, "mousedown", r)));
|
3911
3911
|
}, [r]), h(function() {
|
3912
|
-
|
3912
|
+
M && i && (Q !== null && google.maps.event.removeListener(Q), z(google.maps.event.addListener(M, "mousemove", i)));
|
3913
3913
|
}, [i]), h(function() {
|
3914
|
-
|
3914
|
+
M && s && (Y !== null && google.maps.event.removeListener(Y), V(google.maps.event.addListener(M, "mouseout", s)));
|
3915
3915
|
}, [s]), h(function() {
|
3916
|
-
|
3916
|
+
M && a && (Z !== null && google.maps.event.removeListener(Z), ee(google.maps.event.addListener(M, "mouseover", a)));
|
3917
3917
|
}, [a]), h(function() {
|
3918
|
-
|
3918
|
+
M && l && (E !== null && google.maps.event.removeListener(E), j(google.maps.event.addListener(M, "mouseup", l)));
|
3919
3919
|
}, [l]), h(function() {
|
3920
|
-
|
3920
|
+
M && u && (B !== null && google.maps.event.removeListener(B), q(google.maps.event.addListener(M, "rightclick", u)));
|
3921
3921
|
}, [u]), h(function() {
|
3922
|
-
|
3922
|
+
M && n && (X !== null && google.maps.event.removeListener(X), J(google.maps.event.addListener(M, "click", n)));
|
3923
3923
|
}, [n]), h(function() {
|
3924
|
-
|
3924
|
+
M && d && (K !== null && google.maps.event.removeListener(K), re(google.maps.event.addListener(M, "addfeature", d)));
|
3925
3925
|
}, [d]), h(function() {
|
3926
|
-
|
3926
|
+
M && f && (de !== null && google.maps.event.removeListener(de), Ce(google.maps.event.addListener(M, "removefeature", f)));
|
3927
3927
|
}, [f]), h(function() {
|
3928
|
-
|
3928
|
+
M && c && (he !== null && google.maps.event.removeListener(he), Te(google.maps.event.addListener(M, "removeproperty", c)));
|
3929
3929
|
}, [c]), h(function() {
|
3930
|
-
|
3930
|
+
M && p && (ue !== null && google.maps.event.removeListener(ue), ie(google.maps.event.addListener(M, "setgeometry", p)));
|
3931
3931
|
}, [p]), h(function() {
|
3932
|
-
|
3932
|
+
M && w && (le !== null && google.maps.event.removeListener(le), ze(google.maps.event.addListener(M, "setproperty", w)));
|
3933
3933
|
}, [w]), h(function() {
|
3934
3934
|
if (x !== null) {
|
3935
3935
|
var ne = new google.maps.Data(te(te({}, e || {}), { map: x }));
|
3936
3936
|
o && S(google.maps.event.addListener(ne, "dblclick", o)), r && I(google.maps.event.addListener(ne, "mousedown", r)), i && z(google.maps.event.addListener(ne, "mousemove", i)), s && V(google.maps.event.addListener(ne, "mouseout", s)), a && ee(google.maps.event.addListener(ne, "mouseover", a)), l && j(google.maps.event.addListener(ne, "mouseup", l)), u && q(google.maps.event.addListener(ne, "rightclick", u)), n && J(google.maps.event.addListener(ne, "click", n)), d && re(google.maps.event.addListener(ne, "addfeature", d)), f && Ce(google.maps.event.addListener(ne, "removefeature", f)), c && Te(google.maps.event.addListener(ne, "removeproperty", c)), p && ie(google.maps.event.addListener(ne, "setgeometry", p)), w && ze(google.maps.event.addListener(ne, "setproperty", w)), _(ne), m && m(ne);
|
3937
3937
|
}
|
3938
3938
|
return function() {
|
3939
|
-
|
3939
|
+
M && (b !== null && google.maps.event.removeListener(b), F !== null && google.maps.event.removeListener(F), Q !== null && google.maps.event.removeListener(Q), Y !== null && google.maps.event.removeListener(Y), Z !== null && google.maps.event.removeListener(Z), E !== null && google.maps.event.removeListener(E), B !== null && google.maps.event.removeListener(B), X !== null && google.maps.event.removeListener(X), K !== null && google.maps.event.removeListener(K), de !== null && google.maps.event.removeListener(de), he !== null && google.maps.event.removeListener(he), ue !== null && google.maps.event.removeListener(ue), le !== null && google.maps.event.removeListener(le), C && C(M), M.setMap(null));
|
3940
3940
|
};
|
3941
3941
|
}, []), null;
|
3942
3942
|
}
|
@@ -4082,7 +4082,7 @@ function gi(t, e, n, o) {
|
|
4082
4082
|
function wa(t, e) {
|
4083
4083
|
return t.left === e.left && t.top === e.top && t.width === e.height && t.height === e.height;
|
4084
4084
|
}
|
4085
|
-
function
|
4085
|
+
function ka(t, e, n, o, r) {
|
4086
4086
|
var i = (
|
4087
4087
|
/** @class */
|
4088
4088
|
function(s) {
|
@@ -4121,12 +4121,12 @@ function Qo(t) {
|
|
4121
4121
|
var e = t instanceof google.maps.LatLngBounds ? t : new google.maps.LatLngBounds(new google.maps.LatLng(t.south, t.east), new google.maps.LatLng(t.north, t.west));
|
4122
4122
|
return e + "";
|
4123
4123
|
}
|
4124
|
-
function
|
4124
|
+
function Ma(t) {
|
4125
4125
|
var e = t.position, n = t.bounds, o = t.mapPaneName, r = t.zIndex, i = t.onLoad, s = t.onUnmount, a = t.getPixelPositionOffset, l = t.children, u = Pe(ce), d = hn(function() {
|
4126
4126
|
var c = document.createElement("div");
|
4127
4127
|
return c.style.position = "absolute", c;
|
4128
4128
|
}, []), f = hn(function() {
|
4129
|
-
return
|
4129
|
+
return ka(d, o, e, n, a);
|
4130
4130
|
}, [d, o, e, n]);
|
4131
4131
|
return h(function() {
|
4132
4132
|
return i == null || i(f), f == null || f.setMap(u), function() {
|
@@ -4136,7 +4136,7 @@ function ka(t) {
|
|
4136
4136
|
d.style.zIndex = "".concat(r);
|
4137
4137
|
}, [r, d]), Xr.createPortal(l, d);
|
4138
4138
|
}
|
4139
|
-
Ze(
|
4139
|
+
Ze(Ma);
|
4140
4140
|
(function(t) {
|
4141
4141
|
Oe(e, t);
|
4142
4142
|
function e(n) {
|
@@ -4272,7 +4272,7 @@ var nr = {}, or = {
|
|
4272
4272
|
}
|
4273
4273
|
};
|
4274
4274
|
function Pa(t) {
|
4275
|
-
var e = t.data, n = t.onLoad, o = t.onUnmount, r = t.options, i = Pe(ce), s =
|
4275
|
+
var e = t.data, n = t.onLoad, o = t.onUnmount, r = t.options, i = Pe(ce), s = k(null), a = s[0], l = s[1];
|
4276
4276
|
return h(function() {
|
4277
4277
|
google.maps.visualization || Ue(!!google.maps.visualization, 'Did you include prop libraries={["visualization"]} in useJsApiScript? %s', google.maps.visualization);
|
4278
4278
|
}, []), h(function() {
|
@@ -4715,10 +4715,10 @@ function Zc(t) {
|
|
4715
4715
|
className: u = "",
|
4716
4716
|
children: d,
|
4717
4717
|
...f
|
4718
|
-
} = t, p = { xs: 12, sm: 16, md: 20, lg: 24 }[i],
|
4719
|
-
return /* @__PURE__ */ y.jsxs("button", { className:
|
4718
|
+
} = t, p = { xs: 12, sm: 16, md: 20, lg: 24 }[i], C = `arkynButton ${e ? "loadingTrue" : "loadingFalse"} ${o} ${n} ${i} ${r ? "loadingTextTrue" : "loadingTextFalse"} ${u}`;
|
4719
|
+
return /* @__PURE__ */ y.jsxs("button", { className: C, disabled: l || e, ...f, children: [
|
4720
4720
|
/* @__PURE__ */ y.jsxs("div", { className: "arkynButtonSpinner", children: [
|
4721
|
-
/* @__PURE__ */ y.jsx(
|
4721
|
+
/* @__PURE__ */ y.jsx(Mt, { size: p, strokeWidth: 2.5 }),
|
4722
4722
|
r && r
|
4723
4723
|
] }),
|
4724
4724
|
/* @__PURE__ */ y.jsxs("div", { className: "arkynButtonContent", children: [
|
@@ -4761,7 +4761,7 @@ function Gc(t) {
|
|
4761
4761
|
onCheck: a,
|
4762
4762
|
value: l,
|
4763
4763
|
...u
|
4764
|
-
} = t, { id: d, inputRef: f, error: c } = tt(), p = r || !!c, [w, m] =
|
4764
|
+
} = t, { id: d, inputRef: f, error: c } = tt(), p = r || !!c, [w, m] = k(i || !1), C = typeof s == "boolean" ? s : w, M = `arkynCheckbox ${o} ${p ? "errorTrue" : "errorFalse"} ${C ? "checkedTrue" : "checkedFalse"} ${n}`;
|
4765
4765
|
function _() {
|
4766
4766
|
const v = w;
|
4767
4767
|
m(!v), a && a(v ? "" : l || "checked");
|
@@ -4771,7 +4771,7 @@ function Gc(t) {
|
|
4771
4771
|
{
|
4772
4772
|
id: d,
|
4773
4773
|
type: "button",
|
4774
|
-
className:
|
4774
|
+
className: M,
|
4775
4775
|
onClick: _,
|
4776
4776
|
...u,
|
4777
4777
|
children: [
|
@@ -4781,7 +4781,7 @@ function Gc(t) {
|
|
4781
4781
|
type: "hidden",
|
4782
4782
|
name: e,
|
4783
4783
|
ref: f,
|
4784
|
-
value:
|
4784
|
+
value: C ? l || "checked" : ""
|
4785
4785
|
}
|
4786
4786
|
),
|
4787
4787
|
/* @__PURE__ */ y.jsx(qr, {})
|
@@ -4819,7 +4819,7 @@ function Xc(t) {
|
|
4819
4819
|
className: f.trim(),
|
4820
4820
|
...l,
|
4821
4821
|
children: [
|
4822
|
-
/* @__PURE__ */ y.jsx("div", { className: "arkynIconButtonSpinner", children: /* @__PURE__ */ y.jsx(
|
4822
|
+
/* @__PURE__ */ y.jsx("div", { className: "arkynIconButtonSpinner", children: /* @__PURE__ */ y.jsx(Mt, { size: u[r], strokeWidth: 2.5 }) }),
|
4823
4823
|
/* @__PURE__ */ y.jsx("div", { className: "arkynIconButtonContent", children: /* @__PURE__ */ y.jsx(i, { size: u[r], strokeWidth: 2.5 }) })
|
4824
4824
|
]
|
4825
4825
|
}
|
@@ -4863,10 +4863,10 @@ function Oa(t, e) {
|
|
4863
4863
|
readOnly: p,
|
4864
4864
|
onFocus: w,
|
4865
4865
|
onBlur: m,
|
4866
|
-
title:
|
4866
|
+
title: C,
|
4867
4867
|
style: x,
|
4868
4868
|
onChange: O,
|
4869
|
-
...
|
4869
|
+
...M
|
4870
4870
|
} = t;
|
4871
4871
|
function _(W) {
|
4872
4872
|
let Y = oo(W);
|
@@ -4887,17 +4887,17 @@ function Oa(t, e) {
|
|
4887
4887
|
readOnly: p,
|
4888
4888
|
onFocus: w,
|
4889
4889
|
onBlur: m,
|
4890
|
-
title:
|
4890
|
+
title: C,
|
4891
4891
|
style: x,
|
4892
4892
|
onChange: O,
|
4893
4893
|
loadingPosition: v,
|
4894
4894
|
iconSize: z,
|
4895
|
-
Spinner: /* @__PURE__ */ y.jsx(
|
4896
|
-
...
|
4895
|
+
Spinner: /* @__PURE__ */ y.jsx(Mt, { className: "spinner", size: z, strokeWidth: 2.5 }),
|
4896
|
+
...M
|
4897
4897
|
};
|
4898
4898
|
}
|
4899
4899
|
function Ia(t) {
|
4900
|
-
const [e, n] =
|
4900
|
+
const [e, n] = k(!1), o = Je(null), { inputRef: r, id: i, error: s } = tt(), a = r || o, l = t.isError || !!s, {
|
4901
4901
|
disabled: u,
|
4902
4902
|
title: d,
|
4903
4903
|
style: f,
|
@@ -4905,10 +4905,10 @@ function Ia(t) {
|
|
4905
4905
|
prefix: p,
|
4906
4906
|
sufix: w,
|
4907
4907
|
iconSize: m,
|
4908
|
-
loadingPosition:
|
4908
|
+
loadingPosition: C,
|
4909
4909
|
isLoading: x,
|
4910
4910
|
LeftIcon: O,
|
4911
|
-
readOnly:
|
4911
|
+
readOnly: M,
|
4912
4912
|
onFocus: _,
|
4913
4913
|
onBlur: v,
|
4914
4914
|
RightIcon: b,
|
@@ -4917,7 +4917,7 @@ function Ia(t) {
|
|
4917
4917
|
value: F,
|
4918
4918
|
defaultValue: I,
|
4919
4919
|
...U
|
4920
|
-
} = Oa({ ...t, id: i, isError: l }, e), [Q, z] =
|
4920
|
+
} = Oa({ ...t, id: i, isError: l }, e), [Q, z] = k(I), W = O && !x, Y = b && !x, V = C === "left" && x, A = C === "right" && x;
|
4921
4921
|
function Z() {
|
4922
4922
|
u || !(a != null && a.current) || (n(!0), a.current.focus());
|
4923
4923
|
}
|
@@ -4947,7 +4947,7 @@ function Ia(t) {
|
|
4947
4947
|
"input",
|
4948
4948
|
{
|
4949
4949
|
disabled: u || x,
|
4950
|
-
readOnly:
|
4950
|
+
readOnly: M,
|
4951
4951
|
ref: a,
|
4952
4952
|
value: F || Q,
|
4953
4953
|
onFocus: P,
|
@@ -4993,11 +4993,11 @@ function Da(t, e) {
|
|
4993
4993
|
onFocus: p,
|
4994
4994
|
onBlur: w,
|
4995
4995
|
title: m,
|
4996
|
-
style:
|
4996
|
+
style: C,
|
4997
4997
|
// showCents = false,
|
4998
4998
|
max: x = 1e9,
|
4999
4999
|
locale: O = "pt-BR",
|
5000
|
-
currency:
|
5000
|
+
currency: M = "BRL",
|
5001
5001
|
..._
|
5002
5002
|
} = t, v = d ? "right" : "left", U = `arkyn_input ${a ? "hasPrefix" : ""} ${l ? "hasSufix" : ""} ${s} ${r} ${f || c || n ? "opacity" : ""} ${o ? "errored" : ""} ${e ? "focused" : ""} ${i}`, z = { md: 20, lg: 20 }[r];
|
5003
5003
|
return {
|
@@ -5009,31 +5009,31 @@ function Da(t, e) {
|
|
5009
5009
|
RightIcon: d,
|
5010
5010
|
disabled: f,
|
5011
5011
|
locale: O,
|
5012
|
-
currency:
|
5012
|
+
currency: M,
|
5013
5013
|
readOnly: c,
|
5014
5014
|
onFocus: p,
|
5015
5015
|
onBlur: w,
|
5016
5016
|
title: m,
|
5017
|
-
style:
|
5017
|
+
style: C,
|
5018
5018
|
max: x,
|
5019
5019
|
// showCents,
|
5020
5020
|
loadingPosition: v,
|
5021
5021
|
iconSize: z,
|
5022
|
-
Spinner: /* @__PURE__ */ y.jsx(
|
5022
|
+
Spinner: /* @__PURE__ */ y.jsx(Mt, { className: "spinner", size: z, strokeWidth: 2.5 }),
|
5023
5023
|
..._
|
5024
5024
|
};
|
5025
5025
|
}
|
5026
5026
|
function ja(t) {
|
5027
|
-
const [e, n] =
|
5027
|
+
const [e, n] = k(!1), [o, r] = k("0"), i = Je(null), { inputRef: s, id: a, error: l } = tt(), u = s || i, d = t.isError || !!l, {
|
5028
5028
|
disabled: f,
|
5029
5029
|
title: c,
|
5030
5030
|
style: p,
|
5031
5031
|
className: w,
|
5032
5032
|
prefix: m,
|
5033
|
-
sufix:
|
5033
|
+
sufix: C,
|
5034
5034
|
iconSize: x,
|
5035
5035
|
loadingPosition: O,
|
5036
|
-
isLoading:
|
5036
|
+
isLoading: M,
|
5037
5037
|
LeftIcon: _,
|
5038
5038
|
readOnly: v,
|
5039
5039
|
onFocus: b,
|
@@ -5049,7 +5049,7 @@ function ja(t) {
|
|
5049
5049
|
name: V,
|
5050
5050
|
defaultValue: A,
|
5051
5051
|
...Z
|
5052
|
-
} = Da({ ...t, id: a, isError: d }, e), ee = _ && !
|
5052
|
+
} = Da({ ...t, id: a, isError: d }, e), ee = _ && !M, P = T && !M, E = O === "left" && M, j = O === "right" && M;
|
5053
5053
|
function R() {
|
5054
5054
|
f || !(u != null && u.current) || (n(!0), u.current.focus());
|
5055
5055
|
}
|
@@ -5059,7 +5059,7 @@ function ja(t) {
|
|
5059
5059
|
function q(D) {
|
5060
5060
|
n(!1), S && S(D);
|
5061
5061
|
}
|
5062
|
-
const
|
5062
|
+
const L = (D) => {
|
5063
5063
|
const [K, re] = pr(
|
5064
5064
|
Y,
|
5065
5065
|
D,
|
@@ -5068,7 +5068,7 @@ function ja(t) {
|
|
5068
5068
|
return !U || K <= U ? (r(re), [K, re]) : [Gn(o), o];
|
5069
5069
|
}, X = (D) => {
|
5070
5070
|
D.preventDefault();
|
5071
|
-
const [K, re] =
|
5071
|
+
const [K, re] = L(D.target.value);
|
5072
5072
|
Q(D, String(K), String(re));
|
5073
5073
|
}, J = (D) => z && z(D, D.key, D.key);
|
5074
5074
|
return h(() => {
|
@@ -5093,7 +5093,7 @@ function ja(t) {
|
|
5093
5093
|
onBlur: q,
|
5094
5094
|
onFocus: B,
|
5095
5095
|
onKeyUp: J,
|
5096
|
-
disabled: f ||
|
5096
|
+
disabled: f || M,
|
5097
5097
|
readOnly: v,
|
5098
5098
|
...Z
|
5099
5099
|
}
|
@@ -5109,7 +5109,7 @@ function ja(t) {
|
|
5109
5109
|
),
|
5110
5110
|
j && F,
|
5111
5111
|
P && /* @__PURE__ */ y.jsx(T, { size: x, strokeWidth: 2.5 }),
|
5112
|
-
|
5112
|
+
C
|
5113
5113
|
]
|
5114
5114
|
}
|
5115
5115
|
);
|
@@ -5130,10 +5130,10 @@ function Na(t, e) {
|
|
5130
5130
|
onFocus: p,
|
5131
5131
|
onBlur: w,
|
5132
5132
|
title: m,
|
5133
|
-
style:
|
5133
|
+
style: C,
|
5134
5134
|
onChange: x,
|
5135
5135
|
showMask: O = !1,
|
5136
|
-
type:
|
5136
|
+
type: M,
|
5137
5137
|
..._
|
5138
5138
|
} = t, v = d ? "right" : "left", U = `arkyn_input ${a ? "hasPrefix" : ""} ${l ? "hasSufix" : ""} ${s} ${r} ${f || c || n ? "opacity" : ""} ${o ? "errored" : ""} ${e ? "focused" : ""} ${i}`, z = { md: 20, lg: 20 }[r];
|
5139
5139
|
return {
|
@@ -5148,18 +5148,18 @@ function Na(t, e) {
|
|
5148
5148
|
onFocus: p,
|
5149
5149
|
onBlur: w,
|
5150
5150
|
title: m,
|
5151
|
-
style:
|
5151
|
+
style: C,
|
5152
5152
|
onChange: x,
|
5153
5153
|
loadingPosition: v,
|
5154
5154
|
iconSize: z,
|
5155
5155
|
showMask: O,
|
5156
|
-
Spinner: /* @__PURE__ */ y.jsx(
|
5156
|
+
Spinner: /* @__PURE__ */ y.jsx(Mt, { className: "spinner", size: z, strokeWidth: 2.5 }),
|
5157
5157
|
..._
|
5158
5158
|
};
|
5159
5159
|
}
|
5160
5160
|
const $a = qi((t, e) => /* @__PURE__ */ y.jsx("input", { ref: e, ...t }));
|
5161
5161
|
function Ba(t) {
|
5162
|
-
const [e, n] =
|
5162
|
+
const [e, n] = k(!1), o = Je(null), { inputRef: r, id: i, error: s } = tt(), a = r || o, l = t.isError || !!s, {
|
5163
5163
|
disabled: u,
|
5164
5164
|
title: d,
|
5165
5165
|
style: f,
|
@@ -5167,16 +5167,16 @@ function Ba(t) {
|
|
5167
5167
|
prefix: p,
|
5168
5168
|
sufix: w,
|
5169
5169
|
iconSize: m,
|
5170
|
-
loadingPosition:
|
5170
|
+
loadingPosition: C,
|
5171
5171
|
isLoading: x,
|
5172
5172
|
LeftIcon: O,
|
5173
|
-
readOnly:
|
5173
|
+
readOnly: M,
|
5174
5174
|
onFocus: _,
|
5175
5175
|
onBlur: v,
|
5176
5176
|
RightIcon: b,
|
5177
5177
|
Spinner: S,
|
5178
5178
|
...T
|
5179
|
-
} = Na({ ...t, id: i, isError: l }, e), F = O && !x, I = b && !x, U =
|
5179
|
+
} = Na({ ...t, id: i, isError: l }, e), F = O && !x, I = b && !x, U = C === "left" && x, Q = C === "right" && x;
|
5180
5180
|
function z() {
|
5181
5181
|
u || !(a != null && a.current) || (n(!0), a.current.focus());
|
5182
5182
|
}
|
@@ -5231,10 +5231,10 @@ function Aa(t, e) {
|
|
5231
5231
|
onFocus: p,
|
5232
5232
|
onBlur: w,
|
5233
5233
|
title: m,
|
5234
|
-
style:
|
5234
|
+
style: C,
|
5235
5235
|
onChange: x,
|
5236
5236
|
...O
|
5237
|
-
} = t,
|
5237
|
+
} = t, M = d ? "right" : "left", F = `arkyn_input ${a ? "hasPrefix" : ""} ${l ? "hasSufix" : ""} ${s} ${r} ${f || c || n ? "opacity" : ""} ${o ? "errored" : ""} ${e ? "focused" : ""} ${i}`, U = { md: 20, lg: 20 }[r];
|
5238
5238
|
return {
|
5239
5239
|
isLoading: n,
|
5240
5240
|
className: F,
|
@@ -5247,16 +5247,16 @@ function Aa(t, e) {
|
|
5247
5247
|
onFocus: p,
|
5248
5248
|
onBlur: w,
|
5249
5249
|
title: m,
|
5250
|
-
style:
|
5250
|
+
style: C,
|
5251
5251
|
onChange: x,
|
5252
|
-
loadingPosition:
|
5252
|
+
loadingPosition: M,
|
5253
5253
|
iconSize: U,
|
5254
|
-
Spinner: /* @__PURE__ */ y.jsx(
|
5254
|
+
Spinner: /* @__PURE__ */ y.jsx(Mt, { className: "spinner", size: U, strokeWidth: 2.5 }),
|
5255
5255
|
...O
|
5256
5256
|
};
|
5257
5257
|
}
|
5258
5258
|
function za(t) {
|
5259
|
-
const [e, n] =
|
5259
|
+
const [e, n] = k(!1), o = Je(null), { inputRef: r, id: i, error: s } = tt(), a = r || o, l = t.isError || !!s, {
|
5260
5260
|
disabled: u,
|
5261
5261
|
title: d,
|
5262
5262
|
style: f,
|
@@ -5264,17 +5264,17 @@ function za(t) {
|
|
5264
5264
|
prefix: p,
|
5265
5265
|
sufix: w,
|
5266
5266
|
iconSize: m,
|
5267
|
-
loadingPosition:
|
5267
|
+
loadingPosition: C,
|
5268
5268
|
isLoading: x,
|
5269
5269
|
LeftIcon: O,
|
5270
|
-
readOnly:
|
5270
|
+
readOnly: M,
|
5271
5271
|
onFocus: _,
|
5272
5272
|
onBlur: v,
|
5273
5273
|
RightIcon: b,
|
5274
5274
|
type: S,
|
5275
5275
|
Spinner: T,
|
5276
5276
|
...F
|
5277
|
-
} = Aa({ ...t, id: i, isError: l }, e), I = O && !x, U = b && !x, Q =
|
5277
|
+
} = Aa({ ...t, id: i, isError: l }, e), I = O && !x, U = b && !x, Q = C === "left" && x, z = C === "right" && x;
|
5278
5278
|
function W() {
|
5279
5279
|
u || !(a != null && a.current) || (n(!0), a.current.focus());
|
5280
5280
|
}
|
@@ -5308,7 +5308,7 @@ function za(t) {
|
|
5308
5308
|
"input",
|
5309
5309
|
{
|
5310
5310
|
disabled: u || x,
|
5311
|
-
readOnly:
|
5311
|
+
readOnly: M,
|
5312
5312
|
ref: a,
|
5313
5313
|
onFocus: Y,
|
5314
5314
|
onBlur: V,
|
@@ -5339,7 +5339,7 @@ function Jc(t) {
|
|
5339
5339
|
size: i = "md",
|
5340
5340
|
className: s = "",
|
5341
5341
|
...a
|
5342
|
-
} = t, [l, u] =
|
5342
|
+
} = t, [l, u] = k(e || ""), { inputRef: d, id: f } = tt();
|
5343
5343
|
function c(w) {
|
5344
5344
|
u(w), r && r(w);
|
5345
5345
|
}
|
@@ -5405,7 +5405,7 @@ function Wa(t, e) {
|
|
5405
5405
|
title: p,
|
5406
5406
|
style: w,
|
5407
5407
|
closeOnSelect: m = !0,
|
5408
|
-
...
|
5408
|
+
...C
|
5409
5409
|
} = t, v = `arkyn_select ${a ? "hasPrefix" : ""} ${s} ${r} ${u || d || n ? "opacity" : ""} ${o ? "errored" : ""} ${e ? "focused" : ""} ${i}`, S = { md: 20, lg: 20 }[r];
|
5410
5410
|
return {
|
5411
5411
|
isLoading: n,
|
@@ -5419,13 +5419,13 @@ function Wa(t, e) {
|
|
5419
5419
|
closeOnSelect: m,
|
5420
5420
|
style: w,
|
5421
5421
|
iconSize: S,
|
5422
|
-
Spinner: /* @__PURE__ */ y.jsx(
|
5423
|
-
...
|
5422
|
+
Spinner: /* @__PURE__ */ y.jsx(Mt, { className: "spinner", size: S, strokeWidth: 2.5 }),
|
5423
|
+
...C
|
5424
5424
|
};
|
5425
5425
|
}
|
5426
5426
|
function ed(t) {
|
5427
5427
|
var j;
|
5428
|
-
const [e, n] =
|
5428
|
+
const [e, n] = k(!1), { inputRef: o, id: r, error: i } = tt(), s = Je(null), a = o || s, l = t.isError || !!i, {
|
5429
5429
|
disabled: u,
|
5430
5430
|
title: d,
|
5431
5431
|
style: f,
|
@@ -5433,10 +5433,10 @@ function ed(t) {
|
|
5433
5433
|
prefix: p,
|
5434
5434
|
iconSize: w,
|
5435
5435
|
isLoading: m,
|
5436
|
-
LeftIcon:
|
5436
|
+
LeftIcon: C,
|
5437
5437
|
value: x = null,
|
5438
5438
|
defaultValue: O = "",
|
5439
|
-
onFocus:
|
5439
|
+
onFocus: M,
|
5440
5440
|
onBlur: _,
|
5441
5441
|
Spinner: v,
|
5442
5442
|
name: b,
|
@@ -5446,12 +5446,12 @@ function ed(t) {
|
|
5446
5446
|
optionMaxHeight: I,
|
5447
5447
|
closeOnSelect: U,
|
5448
5448
|
...Q
|
5449
|
-
} = Wa({ ...t, id: r, isError: l }, e), [z, W] =
|
5449
|
+
} = Wa({ ...t, id: r, isError: l }, e), [z, W] = k(O);
|
5450
5450
|
function Y() {
|
5451
5451
|
u || !(a != null && a.current) || e || (n(!0), a.current.focus());
|
5452
5452
|
}
|
5453
5453
|
function V(R) {
|
5454
|
-
e || (n(!0),
|
5454
|
+
e || (n(!0), M && M(R));
|
5455
5455
|
}
|
5456
5456
|
function A() {
|
5457
5457
|
n(!1), _ && a.current && a.current.blur();
|
@@ -5476,7 +5476,7 @@ function ed(t) {
|
|
5476
5476
|
className: `${c} placeholder_dark_${E()}`,
|
5477
5477
|
children: [
|
5478
5478
|
p,
|
5479
|
-
|
5479
|
+
C && /* @__PURE__ */ y.jsx(C, { size: w, strokeWidth: 2.5 }),
|
5480
5480
|
/* @__PURE__ */ y.jsx(
|
5481
5481
|
"input",
|
5482
5482
|
{
|
@@ -5541,34 +5541,27 @@ function td(t) {
|
|
5541
5541
|
defaultChecked: n = !1,
|
5542
5542
|
checked: o = null,
|
5543
5543
|
value: r,
|
5544
|
-
|
5545
|
-
|
5546
|
-
|
5547
|
-
|
5548
|
-
|
5549
|
-
|
5550
|
-
|
5544
|
+
unCheckedValue: i = "",
|
5545
|
+
name: s,
|
5546
|
+
className: a = "",
|
5547
|
+
onCheck: l,
|
5548
|
+
...u
|
5549
|
+
} = t, [d, f] = k(n), { id: c, inputRef: p } = tt(), w = typeof o == "boolean" ? o : d;
|
5550
|
+
function m() {
|
5551
|
+
f(!d), l && l(w ? i : r || "checked");
|
5551
5552
|
}
|
5552
|
-
const
|
5553
|
-
return /* @__PURE__ */ y.jsx(
|
5554
|
-
"
|
5553
|
+
const x = `arkynSwitch ${w ? "checkedTrue" : "checkedFalse"} ${e} ${a}`;
|
5554
|
+
return /* @__PURE__ */ y.jsx("button", { type: "button", onClick: m, className: x, ...u, children: /* @__PURE__ */ y.jsx(
|
5555
|
+
"input",
|
5555
5556
|
{
|
5556
|
-
id:
|
5557
|
-
type: "
|
5558
|
-
|
5559
|
-
|
5560
|
-
|
5561
|
-
|
5562
|
-
"input",
|
5563
|
-
{
|
5564
|
-
type: "hidden",
|
5565
|
-
name: i,
|
5566
|
-
ref: c,
|
5567
|
-
value: p ? r || "checked" : ""
|
5568
|
-
}
|
5569
|
-
)
|
5557
|
+
id: c,
|
5558
|
+
type: "hidden",
|
5559
|
+
name: s,
|
5560
|
+
ref: p,
|
5561
|
+
onClick: m,
|
5562
|
+
value: w ? r || "checked" : i
|
5570
5563
|
}
|
5571
|
-
);
|
5564
|
+
) });
|
5572
5565
|
}
|
5573
5566
|
function nd(t) {
|
5574
5567
|
const {
|
@@ -5582,7 +5575,7 @@ function nd(t) {
|
|
5582
5575
|
title: l,
|
5583
5576
|
style: u,
|
5584
5577
|
...d
|
5585
|
-
} = t, [f, c] =
|
5578
|
+
} = t, [f, c] = k(!1), { inputRef: p, id: w, error: m } = tt(), C = Je(null), x = p || C, M = t.isError || !!m ? "errorTrue" : "errorFalse", b = `arkynTextarea ${e} ${n} ${r || i ? "opacityTrue" : "opacityFalse"} ${M} ${f ? "focusedTrue" : "focusedFalse"} ${o}`;
|
5586
5579
|
function S() {
|
5587
5580
|
r || !(x != null && x.current) || (c(!0), x.current.focus());
|
5588
5581
|
}
|
@@ -5620,19 +5613,19 @@ function od({
|
|
5620
5613
|
options: n,
|
5621
5614
|
...o
|
5622
5615
|
}) {
|
5623
|
-
const [r, i] =
|
5616
|
+
const [r, i] = k(null), s = (l) => i(l), a = () => {
|
5624
5617
|
var c, p, w, m;
|
5625
5618
|
const u = r.getPlaces()[0], d = u == null ? void 0 : u.address_components;
|
5626
|
-
function f(
|
5627
|
-
const x = d.find((O) => O.types[0] ===
|
5619
|
+
function f(C) {
|
5620
|
+
const x = d.find((O) => O.types[0] === C);
|
5628
5621
|
return x ? x.long_name : "";
|
5629
5622
|
}
|
5630
5623
|
if (u) {
|
5631
|
-
const
|
5624
|
+
const C = f("route"), x = f("sublocality_level_1"), O = f("administrative_area_level_2"), M = f("administrative_area_level_1"), _ = f("postal_code"), v = (p = (c = u.geometry) == null ? void 0 : c.location) == null ? void 0 : p.lat(), b = (m = (w = u.geometry) == null ? void 0 : w.location) == null ? void 0 : m.lng();
|
5632
5625
|
e && e({
|
5633
|
-
street:
|
5626
|
+
street: C,
|
5634
5627
|
city: O,
|
5635
|
-
state:
|
5628
|
+
state: M,
|
5636
5629
|
district: x,
|
5637
5630
|
cep: _,
|
5638
5631
|
coordinates: { lat: v, lng: b }
|
@@ -5693,8 +5686,8 @@ function sd(t) {
|
|
5693
5686
|
siblingsCount: i = 2,
|
5694
5687
|
...s
|
5695
5688
|
} = t, a = ns(), { getParam: l, getScopedSearch: u } = Ha(e), d = Number(l(r)) || 1, f = Number(l(o)) || 20, c = Math.ceil(n / f), p = us(d, i), w = ls(d, i, c);
|
5696
|
-
function m(
|
5697
|
-
a(u({ page:
|
5689
|
+
function m(C) {
|
5690
|
+
a(u({ page: C }));
|
5698
5691
|
}
|
5699
5692
|
return /* @__PURE__ */ y.jsxs("div", { className: "arkynPagination", ...s, children: [
|
5700
5693
|
/* @__PURE__ */ y.jsx(
|
@@ -5717,22 +5710,22 @@ function sd(t) {
|
|
5717
5710
|
),
|
5718
5711
|
d > 2 + i && /* @__PURE__ */ y.jsx("button", { disabled: !0, className: "arkynPaginationSpread", children: /* @__PURE__ */ y.jsx(mo, {}) })
|
5719
5712
|
] }),
|
5720
|
-
p.map((
|
5713
|
+
p.map((C, x) => /* @__PURE__ */ y.jsx(
|
5721
5714
|
"button",
|
5722
5715
|
{
|
5723
|
-
onClick: () => m(
|
5716
|
+
onClick: () => m(C),
|
5724
5717
|
className: "arkynPaginationPageButton",
|
5725
|
-
children:
|
5718
|
+
children: C
|
5726
5719
|
},
|
5727
5720
|
x
|
5728
5721
|
)),
|
5729
5722
|
/* @__PURE__ */ y.jsx("button", { className: "arkynPaginationCurrent", disabled: !0, children: d }),
|
5730
|
-
w.map((
|
5723
|
+
w.map((C, x) => /* @__PURE__ */ y.jsx(
|
5731
5724
|
"button",
|
5732
5725
|
{
|
5733
|
-
onClick: () => m(
|
5726
|
+
onClick: () => m(C),
|
5734
5727
|
className: "arkynPaginationPageButton",
|
5735
|
-
children:
|
5728
|
+
children: C
|
5736
5729
|
},
|
5737
5730
|
x
|
5738
5731
|
)),
|
@@ -5771,26 +5764,26 @@ function ad(t) {
|
|
5771
5764
|
defaultActive: o,
|
5772
5765
|
className: r,
|
5773
5766
|
...i
|
5774
|
-
} = t, [s, a] =
|
5767
|
+
} = t, [s, a] = k(o || ""), [l, u] = k(!0), d = Je(null), f = `arkynTabContainer ${r || ""}`, [c, p] = k({
|
5775
5768
|
width: "0px",
|
5776
5769
|
left: "0px",
|
5777
5770
|
transition: "none"
|
5778
|
-
}), w = (
|
5779
|
-
const O =
|
5771
|
+
}), w = (C, x) => {
|
5772
|
+
const O = C.getBoundingClientRect(), M = d.current.getBoundingClientRect(), _ = x ? void 0 : "none";
|
5780
5773
|
u(!1), p({
|
5781
5774
|
transition: _,
|
5782
5775
|
width: `${O.width}px`,
|
5783
|
-
left: `${O.left -
|
5776
|
+
left: `${O.left - M.left}px`
|
5784
5777
|
});
|
5785
5778
|
};
|
5786
5779
|
h(() => {
|
5787
|
-
const
|
5788
|
-
if (!
|
5780
|
+
const C = d.current;
|
5781
|
+
if (!C) return;
|
5789
5782
|
let x = null;
|
5790
|
-
x =
|
5783
|
+
x = C.querySelector("button.active"), x && w(x);
|
5791
5784
|
}, []);
|
5792
|
-
const m = (
|
5793
|
-
const x =
|
5785
|
+
const m = (C) => {
|
5786
|
+
const x = C.target;
|
5794
5787
|
x && (a(x.value), x.classList.add("active"), w(x, !0), n && n(x.value));
|
5795
5788
|
};
|
5796
5789
|
return /* @__PURE__ */ y.jsxs("nav", { ref: d, className: f.trim(), ...i, children: [
|
@@ -5921,7 +5914,7 @@ function pd(t) {
|
|
5921
5914
|
] });
|
5922
5915
|
}
|
5923
5916
|
function hd(t) {
|
5924
|
-
const { children: e, button: n, closeOnClick: o, orientation: r = "bottomLeft" } = t, [i, s] =
|
5917
|
+
const { children: e, button: n, closeOnClick: o, orientation: r = "bottomLeft" } = t, [i, s] = k(!1), l = `arkynPopover ${r} ${i ? "visibleTrue" : "visibleFalse"}`;
|
5925
5918
|
function u() {
|
5926
5919
|
i || s(!0);
|
5927
5920
|
}
|
@@ -6003,27 +5996,27 @@ function sl(t, e, n) {
|
|
6003
5996
|
var S = b - l, T = b - u, F = e - S;
|
6004
5997
|
return f ? il(F, i - T) : F;
|
6005
5998
|
}
|
6006
|
-
function
|
5999
|
+
function C(b) {
|
6007
6000
|
var S = b - l, T = b - u;
|
6008
6001
|
return l === void 0 || S >= e || S < 0 || f && T >= i;
|
6009
6002
|
}
|
6010
6003
|
function x() {
|
6011
6004
|
var b = On();
|
6012
|
-
if (
|
6005
|
+
if (C(b))
|
6013
6006
|
return O(b);
|
6014
6007
|
a = setTimeout(x, m(b));
|
6015
6008
|
}
|
6016
6009
|
function O(b) {
|
6017
6010
|
return a = void 0, c && o ? p(b) : (o = r = void 0, s);
|
6018
6011
|
}
|
6019
|
-
function
|
6012
|
+
function M() {
|
6020
6013
|
a !== void 0 && clearTimeout(a), u = 0, o = l = r = a = void 0;
|
6021
6014
|
}
|
6022
6015
|
function _() {
|
6023
6016
|
return a === void 0 ? s : O(On());
|
6024
6017
|
}
|
6025
6018
|
function v() {
|
6026
|
-
var b = On(), S =
|
6019
|
+
var b = On(), S = C(b);
|
6027
6020
|
if (o = arguments, r = this, l = b, S) {
|
6028
6021
|
if (a === void 0)
|
6029
6022
|
return w(l);
|
@@ -6032,7 +6025,7 @@ function sl(t, e, n) {
|
|
6032
6025
|
}
|
6033
6026
|
return a === void 0 && (a = setTimeout(x, e)), s;
|
6034
6027
|
}
|
6035
|
-
return v.cancel =
|
6028
|
+
return v.cancel = M, v.flush = _, v;
|
6036
6029
|
}
|
6037
6030
|
function al(t, e, n) {
|
6038
6031
|
var o = !0, r = !0;
|
@@ -6320,13 +6313,13 @@ var wl = Object.assign || function(t) {
|
|
6320
6313
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
6321
6314
|
}
|
6322
6315
|
return t;
|
6323
|
-
},
|
6324
|
-
Cn(
|
6325
|
-
var
|
6316
|
+
}, kl = Yt;
|
6317
|
+
Cn(kl);
|
6318
|
+
var Ml = so, mr = Cn(Ml), El = ao, Sl = Cn(El), Pl = Gt, it = Cn(Pl);
|
6326
6319
|
function Cn(t) {
|
6327
6320
|
return t && t.__esModule ? t : { default: t };
|
6328
6321
|
}
|
6329
|
-
var
|
6322
|
+
var ki = function(e) {
|
6330
6323
|
return mr.default[e.smooth] || mr.default.defaultEasing;
|
6331
6324
|
}, Tl = function(e) {
|
6332
6325
|
return typeof e == "function" ? e : function() {
|
@@ -6339,7 +6332,7 @@ var Mi = function(e) {
|
|
6339
6332
|
return Ol() || function(t, e, n) {
|
6340
6333
|
window.setTimeout(t, n || 1e3 / 60, (/* @__PURE__ */ new Date()).getTime());
|
6341
6334
|
};
|
6342
|
-
}(),
|
6335
|
+
}(), Mi = function() {
|
6343
6336
|
return {
|
6344
6337
|
currentPosition: 0,
|
6345
6338
|
startPosition: 0,
|
@@ -6394,7 +6387,7 @@ var Mi = function(e) {
|
|
6394
6387
|
}, lo = function(e) {
|
6395
6388
|
e.data.containerElement = e ? e.containerId ? document.getElementById(e.containerId) : e.container && e.container.nodeType ? e.container : document : null;
|
6396
6389
|
}, qt = function(e, n, o, r) {
|
6397
|
-
n.data = n.data ||
|
6390
|
+
n.data = n.data || Mi(), window.clearTimeout(n.data.delayTimeout);
|
6398
6391
|
var i = function() {
|
6399
6392
|
n.data.cancel = !0;
|
6400
6393
|
};
|
@@ -6403,7 +6396,7 @@ var Mi = function(e) {
|
|
6403
6396
|
return;
|
6404
6397
|
}
|
6405
6398
|
n.data.delta = Math.round(n.data.targetPosition - n.data.startPosition), n.data.duration = Tl(n.duration)(n.data.delta), n.data.duration = isNaN(parseFloat(n.data.duration)) ? 1e3 : parseFloat(n.data.duration), n.data.to = o, n.data.target = r;
|
6406
|
-
var s =
|
6399
|
+
var s = ki(n), a = Rl.bind(null, s, n);
|
6407
6400
|
if (n && n.delay > 0) {
|
6408
6401
|
n.data.delayTimeout = window.setTimeout(function() {
|
6409
6402
|
it.default.registered.begin && it.default.registered.begin(n.data.to, n.data.target), Xn.call(window, a);
|
@@ -6412,7 +6405,7 @@ var Mi = function(e) {
|
|
6412
6405
|
}
|
6413
6406
|
it.default.registered.begin && it.default.registered.begin(n.data.to, n.data.target), Xn.call(window, a);
|
6414
6407
|
}, xn = function(e) {
|
6415
|
-
return e = wl({}, e), e.data = e.data ||
|
6408
|
+
return e = wl({}, e), e.data = e.data || Mi(), e.absolute = !0, e;
|
6416
6409
|
}, Dl = function(e) {
|
6417
6410
|
qt(0, xn(e));
|
6418
6411
|
}, jl = function(e, n) {
|
@@ -6426,7 +6419,7 @@ var Mi = function(e) {
|
|
6426
6419
|
};
|
6427
6420
|
Ln.default = {
|
6428
6421
|
animateTopScroll: qt,
|
6429
|
-
getAnimationType:
|
6422
|
+
getAnimationType: ki,
|
6430
6423
|
scrollToTop: Dl,
|
6431
6424
|
scrollToBottom: Nl,
|
6432
6425
|
scrollTo: jl,
|
@@ -6483,7 +6476,7 @@ _t.default = {
|
|
6483
6476
|
Fl.default.animateTopScroll(l, n, e, o);
|
6484
6477
|
}
|
6485
6478
|
};
|
6486
|
-
var Jn = { exports: {} }, ln = { exports: {} },
|
6479
|
+
var Jn = { exports: {} }, ln = { exports: {} }, Me = {};
|
6487
6480
|
/** @license React v16.13.1
|
6488
6481
|
* react-is.production.min.js
|
6489
6482
|
*
|
@@ -6494,10 +6487,10 @@ var Jn = { exports: {} }, ln = { exports: {} }, ke = {};
|
|
6494
6487
|
*/
|
6495
6488
|
var yr;
|
6496
6489
|
function Hl() {
|
6497
|
-
if (yr) return
|
6490
|
+
if (yr) return Me;
|
6498
6491
|
yr = 1;
|
6499
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, o = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, c = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, w = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121,
|
6500
|
-
function
|
6492
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, o = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, c = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, w = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, C = t ? Symbol.for("react.fundamental") : 60117, x = t ? Symbol.for("react.responder") : 60118, O = t ? Symbol.for("react.scope") : 60119;
|
6493
|
+
function M(v) {
|
6501
6494
|
if (typeof v == "object" && v !== null) {
|
6502
6495
|
var b = v.$$typeof;
|
6503
6496
|
switch (b) {
|
@@ -6528,35 +6521,35 @@ function Hl() {
|
|
6528
6521
|
}
|
6529
6522
|
}
|
6530
6523
|
function _(v) {
|
6531
|
-
return
|
6532
|
-
}
|
6533
|
-
return
|
6534
|
-
return _(v) ||
|
6535
|
-
},
|
6536
|
-
return
|
6537
|
-
},
|
6538
|
-
return
|
6539
|
-
},
|
6524
|
+
return M(v) === u;
|
6525
|
+
}
|
6526
|
+
return Me.AsyncMode = l, Me.ConcurrentMode = u, Me.ContextConsumer = a, Me.ContextProvider = s, Me.Element = e, Me.ForwardRef = d, Me.Fragment = o, Me.Lazy = w, Me.Memo = p, Me.Portal = n, Me.Profiler = i, Me.StrictMode = r, Me.Suspense = f, Me.isAsyncMode = function(v) {
|
6527
|
+
return _(v) || M(v) === l;
|
6528
|
+
}, Me.isConcurrentMode = _, Me.isContextConsumer = function(v) {
|
6529
|
+
return M(v) === a;
|
6530
|
+
}, Me.isContextProvider = function(v) {
|
6531
|
+
return M(v) === s;
|
6532
|
+
}, Me.isElement = function(v) {
|
6540
6533
|
return typeof v == "object" && v !== null && v.$$typeof === e;
|
6541
|
-
},
|
6542
|
-
return
|
6543
|
-
},
|
6544
|
-
return
|
6545
|
-
},
|
6546
|
-
return
|
6547
|
-
},
|
6548
|
-
return
|
6549
|
-
},
|
6550
|
-
return
|
6551
|
-
},
|
6552
|
-
return
|
6553
|
-
},
|
6554
|
-
return
|
6555
|
-
},
|
6556
|
-
return
|
6557
|
-
},
|
6558
|
-
return typeof v == "string" || typeof v == "function" || v === o || v === u || v === i || v === r || v === f || v === c || typeof v == "object" && v !== null && (v.$$typeof === w || v.$$typeof === p || v.$$typeof === s || v.$$typeof === a || v.$$typeof === d || v.$$typeof ===
|
6559
|
-
},
|
6534
|
+
}, Me.isForwardRef = function(v) {
|
6535
|
+
return M(v) === d;
|
6536
|
+
}, Me.isFragment = function(v) {
|
6537
|
+
return M(v) === o;
|
6538
|
+
}, Me.isLazy = function(v) {
|
6539
|
+
return M(v) === w;
|
6540
|
+
}, Me.isMemo = function(v) {
|
6541
|
+
return M(v) === p;
|
6542
|
+
}, Me.isPortal = function(v) {
|
6543
|
+
return M(v) === n;
|
6544
|
+
}, Me.isProfiler = function(v) {
|
6545
|
+
return M(v) === i;
|
6546
|
+
}, Me.isStrictMode = function(v) {
|
6547
|
+
return M(v) === r;
|
6548
|
+
}, Me.isSuspense = function(v) {
|
6549
|
+
return M(v) === f;
|
6550
|
+
}, Me.isValidElementType = function(v) {
|
6551
|
+
return typeof v == "string" || typeof v == "function" || v === o || v === u || v === i || v === r || v === f || v === c || typeof v == "object" && v !== null && (v.$$typeof === w || v.$$typeof === p || v.$$typeof === s || v.$$typeof === a || v.$$typeof === d || v.$$typeof === C || v.$$typeof === x || v.$$typeof === O || v.$$typeof === m);
|
6552
|
+
}, Me.typeOf = M, Me;
|
6560
6553
|
}
|
6561
6554
|
var Ee = {};
|
6562
6555
|
/** @license React v16.13.1
|
@@ -6570,10 +6563,10 @@ var Ee = {};
|
|
6570
6563
|
var br;
|
6571
6564
|
function Vl() {
|
6572
6565
|
return br || (br = 1, process.env.NODE_ENV !== "production" && function() {
|
6573
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, o = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, c = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, w = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121,
|
6574
|
-
function
|
6566
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, o = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, c = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, w = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, C = t ? Symbol.for("react.fundamental") : 60117, x = t ? Symbol.for("react.responder") : 60118, O = t ? Symbol.for("react.scope") : 60119;
|
6567
|
+
function M(N) {
|
6575
6568
|
return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
6576
|
-
N === o || N === u || N === i || N === r || N === f || N === c || typeof N == "object" && N !== null && (N.$$typeof === w || N.$$typeof === p || N.$$typeof === s || N.$$typeof === a || N.$$typeof === d || N.$$typeof ===
|
6569
|
+
N === o || N === u || N === i || N === r || N === f || N === c || typeof N == "object" && N !== null && (N.$$typeof === w || N.$$typeof === p || N.$$typeof === s || N.$$typeof === a || N.$$typeof === d || N.$$typeof === C || N.$$typeof === x || N.$$typeof === O || N.$$typeof === m);
|
6577
6570
|
}
|
6578
6571
|
function _(N) {
|
6579
6572
|
if (typeof N == "object" && N !== null) {
|
@@ -6629,7 +6622,7 @@ function Vl() {
|
|
6629
6622
|
function q(N) {
|
6630
6623
|
return _(N) === o;
|
6631
6624
|
}
|
6632
|
-
function
|
6625
|
+
function L(N) {
|
6633
6626
|
return _(N) === w;
|
6634
6627
|
}
|
6635
6628
|
function X(N) {
|
@@ -6647,7 +6640,7 @@ function Vl() {
|
|
6647
6640
|
function re(N) {
|
6648
6641
|
return _(N) === f;
|
6649
6642
|
}
|
6650
|
-
Ee.AsyncMode = v, Ee.ConcurrentMode = b, Ee.ContextConsumer = S, Ee.ContextProvider = T, Ee.Element = F, Ee.ForwardRef = I, Ee.Fragment = U, Ee.Lazy = Q, Ee.Memo = z, Ee.Portal = W, Ee.Profiler = Y, Ee.StrictMode = V, Ee.Suspense = A, Ee.isAsyncMode = ee, Ee.isConcurrentMode = P, Ee.isContextConsumer = E, Ee.isContextProvider = j, Ee.isElement = R, Ee.isForwardRef = B, Ee.isFragment = q, Ee.isLazy =
|
6643
|
+
Ee.AsyncMode = v, Ee.ConcurrentMode = b, Ee.ContextConsumer = S, Ee.ContextProvider = T, Ee.Element = F, Ee.ForwardRef = I, Ee.Fragment = U, Ee.Lazy = Q, Ee.Memo = z, Ee.Portal = W, Ee.Profiler = Y, Ee.StrictMode = V, Ee.Suspense = A, Ee.isAsyncMode = ee, Ee.isConcurrentMode = P, Ee.isContextConsumer = E, Ee.isContextProvider = j, Ee.isElement = R, Ee.isForwardRef = B, Ee.isFragment = q, Ee.isLazy = L, Ee.isMemo = X, Ee.isPortal = J, Ee.isProfiler = D, Ee.isStrictMode = K, Ee.isSuspense = re, Ee.isValidElementType = M, Ee.typeOf = _;
|
6651
6644
|
}()), Ee;
|
6652
6645
|
}
|
6653
6646
|
var Lr;
|
@@ -6716,10 +6709,10 @@ var Dn, wr;
|
|
6716
6709
|
function Ti() {
|
6717
6710
|
return wr || (wr = 1, Dn = Function.call.bind(Object.prototype.hasOwnProperty)), Dn;
|
6718
6711
|
}
|
6719
|
-
var jn,
|
6712
|
+
var jn, kr;
|
6720
6713
|
function Yl() {
|
6721
|
-
if (
|
6722
|
-
|
6714
|
+
if (kr) return jn;
|
6715
|
+
kr = 1;
|
6723
6716
|
var t = function() {
|
6724
6717
|
};
|
6725
6718
|
if (process.env.NODE_ENV !== "production") {
|
@@ -6765,10 +6758,10 @@ function Yl() {
|
|
6765
6758
|
process.env.NODE_ENV !== "production" && (n = {});
|
6766
6759
|
}, jn = r, jn;
|
6767
6760
|
}
|
6768
|
-
var Nn,
|
6761
|
+
var Nn, Mr;
|
6769
6762
|
function Gl() {
|
6770
|
-
if (
|
6771
|
-
|
6763
|
+
if (Mr) return Nn;
|
6764
|
+
Mr = 1;
|
6772
6765
|
var t = Pi(), e = Zl(), n = co(), o = Ti(), r = Yl(), i = function() {
|
6773
6766
|
};
|
6774
6767
|
process.env.NODE_ENV !== "production" && (i = function(a) {
|
@@ -6799,7 +6792,7 @@ function Gl() {
|
|
6799
6792
|
string: x("string"),
|
6800
6793
|
symbol: x("symbol"),
|
6801
6794
|
any: O(),
|
6802
|
-
arrayOf:
|
6795
|
+
arrayOf: M,
|
6803
6796
|
element: _(),
|
6804
6797
|
elementType: v(),
|
6805
6798
|
instanceOf: b,
|
@@ -6817,10 +6810,10 @@ function Gl() {
|
|
6817
6810
|
this.message = P, this.data = E && typeof E == "object" ? E : {}, this.stack = "";
|
6818
6811
|
}
|
6819
6812
|
m.prototype = Error.prototype;
|
6820
|
-
function
|
6813
|
+
function C(P) {
|
6821
6814
|
if (process.env.NODE_ENV !== "production")
|
6822
6815
|
var E = {}, j = 0;
|
6823
|
-
function R(q,
|
6816
|
+
function R(q, L, X, J, D, K, re) {
|
6824
6817
|
if (J = J || c, K = K || X, re !== n) {
|
6825
6818
|
if (l) {
|
6826
6819
|
var N = new Error(
|
@@ -6835,84 +6828,84 @@ function Gl() {
|
|
6835
6828
|
), E[de] = !0, j++);
|
6836
6829
|
}
|
6837
6830
|
}
|
6838
|
-
return
|
6831
|
+
return L[X] == null ? q ? L[X] === null ? new m("The " + D + " `" + K + "` is marked as required " + ("in `" + J + "`, but its value is `null`.")) : new m("The " + D + " `" + K + "` is marked as required in " + ("`" + J + "`, but its value is `undefined`.")) : null : P(L, X, J, D, K);
|
6839
6832
|
}
|
6840
6833
|
var B = R.bind(null, !1);
|
6841
6834
|
return B.isRequired = R.bind(null, !0), B;
|
6842
6835
|
}
|
6843
6836
|
function x(P) {
|
6844
|
-
function E(j, R, B, q,
|
6837
|
+
function E(j, R, B, q, L, X) {
|
6845
6838
|
var J = j[R], D = V(J);
|
6846
6839
|
if (D !== P) {
|
6847
6840
|
var K = A(J);
|
6848
6841
|
return new m(
|
6849
|
-
"Invalid " + q + " `" +
|
6842
|
+
"Invalid " + q + " `" + L + "` of type " + ("`" + K + "` supplied to `" + B + "`, expected ") + ("`" + P + "`."),
|
6850
6843
|
{ expectedType: P }
|
6851
6844
|
);
|
6852
6845
|
}
|
6853
6846
|
return null;
|
6854
6847
|
}
|
6855
|
-
return
|
6848
|
+
return C(E);
|
6856
6849
|
}
|
6857
6850
|
function O() {
|
6858
|
-
return
|
6851
|
+
return C(s);
|
6859
6852
|
}
|
6860
|
-
function
|
6861
|
-
function E(j, R, B, q,
|
6853
|
+
function M(P) {
|
6854
|
+
function E(j, R, B, q, L) {
|
6862
6855
|
if (typeof P != "function")
|
6863
|
-
return new m("Property `" +
|
6856
|
+
return new m("Property `" + L + "` of component `" + B + "` has invalid PropType notation inside arrayOf.");
|
6864
6857
|
var X = j[R];
|
6865
6858
|
if (!Array.isArray(X)) {
|
6866
6859
|
var J = V(X);
|
6867
|
-
return new m("Invalid " + q + " `" +
|
6860
|
+
return new m("Invalid " + q + " `" + L + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected an array."));
|
6868
6861
|
}
|
6869
6862
|
for (var D = 0; D < X.length; D++) {
|
6870
|
-
var K = P(X, D, B, q,
|
6863
|
+
var K = P(X, D, B, q, L + "[" + D + "]", n);
|
6871
6864
|
if (K instanceof Error)
|
6872
6865
|
return K;
|
6873
6866
|
}
|
6874
6867
|
return null;
|
6875
6868
|
}
|
6876
|
-
return
|
6869
|
+
return C(E);
|
6877
6870
|
}
|
6878
6871
|
function _() {
|
6879
6872
|
function P(E, j, R, B, q) {
|
6880
|
-
var
|
6881
|
-
if (!a(
|
6882
|
-
var X = V(
|
6873
|
+
var L = E[j];
|
6874
|
+
if (!a(L)) {
|
6875
|
+
var X = V(L);
|
6883
6876
|
return new m("Invalid " + B + " `" + q + "` of type " + ("`" + X + "` supplied to `" + R + "`, expected a single ReactElement."));
|
6884
6877
|
}
|
6885
6878
|
return null;
|
6886
6879
|
}
|
6887
|
-
return
|
6880
|
+
return C(P);
|
6888
6881
|
}
|
6889
6882
|
function v() {
|
6890
6883
|
function P(E, j, R, B, q) {
|
6891
|
-
var
|
6892
|
-
if (!t.isValidElementType(
|
6893
|
-
var X = V(
|
6884
|
+
var L = E[j];
|
6885
|
+
if (!t.isValidElementType(L)) {
|
6886
|
+
var X = V(L);
|
6894
6887
|
return new m("Invalid " + B + " `" + q + "` of type " + ("`" + X + "` supplied to `" + R + "`, expected a single ReactElement type."));
|
6895
6888
|
}
|
6896
6889
|
return null;
|
6897
6890
|
}
|
6898
|
-
return
|
6891
|
+
return C(P);
|
6899
6892
|
}
|
6900
6893
|
function b(P) {
|
6901
|
-
function E(j, R, B, q,
|
6894
|
+
function E(j, R, B, q, L) {
|
6902
6895
|
if (!(j[R] instanceof P)) {
|
6903
6896
|
var X = P.name || c, J = ee(j[R]);
|
6904
|
-
return new m("Invalid " + q + " `" +
|
6897
|
+
return new m("Invalid " + q + " `" + L + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected ") + ("instance of `" + X + "`."));
|
6905
6898
|
}
|
6906
6899
|
return null;
|
6907
6900
|
}
|
6908
|
-
return
|
6901
|
+
return C(E);
|
6909
6902
|
}
|
6910
6903
|
function S(P) {
|
6911
6904
|
if (!Array.isArray(P))
|
6912
6905
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
6913
6906
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
6914
6907
|
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
|
6915
|
-
function E(j, R, B, q,
|
6908
|
+
function E(j, R, B, q, L) {
|
6916
6909
|
for (var X = j[R], J = 0; J < P.length; J++)
|
6917
6910
|
if (w(X, P[J]))
|
6918
6911
|
return null;
|
@@ -6920,26 +6913,26 @@ function Gl() {
|
|
6920
6913
|
var de = A(N);
|
6921
6914
|
return de === "symbol" ? String(N) : N;
|
6922
6915
|
});
|
6923
|
-
return new m("Invalid " + q + " `" +
|
6916
|
+
return new m("Invalid " + q + " `" + L + "` of value `" + String(X) + "` " + ("supplied to `" + B + "`, expected one of " + D + "."));
|
6924
6917
|
}
|
6925
|
-
return
|
6918
|
+
return C(E);
|
6926
6919
|
}
|
6927
6920
|
function T(P) {
|
6928
|
-
function E(j, R, B, q,
|
6921
|
+
function E(j, R, B, q, L) {
|
6929
6922
|
if (typeof P != "function")
|
6930
|
-
return new m("Property `" +
|
6923
|
+
return new m("Property `" + L + "` of component `" + B + "` has invalid PropType notation inside objectOf.");
|
6931
6924
|
var X = j[R], J = V(X);
|
6932
6925
|
if (J !== "object")
|
6933
|
-
return new m("Invalid " + q + " `" +
|
6926
|
+
return new m("Invalid " + q + " `" + L + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected an object."));
|
6934
6927
|
for (var D in X)
|
6935
6928
|
if (o(X, D)) {
|
6936
|
-
var K = P(X, D, B, q,
|
6929
|
+
var K = P(X, D, B, q, L + "." + D, n);
|
6937
6930
|
if (K instanceof Error)
|
6938
6931
|
return K;
|
6939
6932
|
}
|
6940
6933
|
return null;
|
6941
6934
|
}
|
6942
|
-
return
|
6935
|
+
return C(E);
|
6943
6936
|
}
|
6944
6937
|
function F(P) {
|
6945
6938
|
if (!Array.isArray(P))
|
@@ -6951,23 +6944,23 @@ function Gl() {
|
|
6951
6944
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z(j) + " at index " + E + "."
|
6952
6945
|
), s;
|
6953
6946
|
}
|
6954
|
-
function R(B, q,
|
6947
|
+
function R(B, q, L, X, J) {
|
6955
6948
|
for (var D = [], K = 0; K < P.length; K++) {
|
6956
|
-
var re = P[K], N = re(B, q,
|
6949
|
+
var re = P[K], N = re(B, q, L, X, J, n);
|
6957
6950
|
if (N == null)
|
6958
6951
|
return null;
|
6959
6952
|
N.data && o(N.data, "expectedType") && D.push(N.data.expectedType);
|
6960
6953
|
}
|
6961
6954
|
var de = D.length > 0 ? ", expected one of type [" + D.join(", ") + "]" : "";
|
6962
|
-
return new m("Invalid " + X + " `" + J + "` supplied to " + ("`" +
|
6955
|
+
return new m("Invalid " + X + " `" + J + "` supplied to " + ("`" + L + "`" + de + "."));
|
6963
6956
|
}
|
6964
|
-
return
|
6957
|
+
return C(R);
|
6965
6958
|
}
|
6966
6959
|
function I() {
|
6967
6960
|
function P(E, j, R, B, q) {
|
6968
6961
|
return W(E[j]) ? null : new m("Invalid " + B + " `" + q + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
|
6969
6962
|
}
|
6970
|
-
return
|
6963
|
+
return C(P);
|
6971
6964
|
}
|
6972
6965
|
function U(P, E, j, R, B) {
|
6973
6966
|
return new m(
|
@@ -6975,44 +6968,44 @@ function Gl() {
|
|
6975
6968
|
);
|
6976
6969
|
}
|
6977
6970
|
function Q(P) {
|
6978
|
-
function E(j, R, B, q,
|
6971
|
+
function E(j, R, B, q, L) {
|
6979
6972
|
var X = j[R], J = V(X);
|
6980
6973
|
if (J !== "object")
|
6981
|
-
return new m("Invalid " + q + " `" +
|
6974
|
+
return new m("Invalid " + q + " `" + L + "` of type `" + J + "` " + ("supplied to `" + B + "`, expected `object`."));
|
6982
6975
|
for (var D in P) {
|
6983
6976
|
var K = P[D];
|
6984
6977
|
if (typeof K != "function")
|
6985
|
-
return U(B, q,
|
6986
|
-
var re = K(X, D, B, q,
|
6978
|
+
return U(B, q, L, D, A(K));
|
6979
|
+
var re = K(X, D, B, q, L + "." + D, n);
|
6987
6980
|
if (re)
|
6988
6981
|
return re;
|
6989
6982
|
}
|
6990
6983
|
return null;
|
6991
6984
|
}
|
6992
|
-
return
|
6985
|
+
return C(E);
|
6993
6986
|
}
|
6994
6987
|
function z(P) {
|
6995
|
-
function E(j, R, B, q,
|
6988
|
+
function E(j, R, B, q, L) {
|
6996
6989
|
var X = j[R], J = V(X);
|
6997
6990
|
if (J !== "object")
|
6998
|
-
return new m("Invalid " + q + " `" +
|
6991
|
+
return new m("Invalid " + q + " `" + L + "` of type `" + J + "` " + ("supplied to `" + B + "`, expected `object`."));
|
6999
6992
|
var D = e({}, j[R], P);
|
7000
6993
|
for (var K in D) {
|
7001
6994
|
var re = P[K];
|
7002
6995
|
if (o(P, K) && typeof re != "function")
|
7003
|
-
return U(B, q,
|
6996
|
+
return U(B, q, L, K, A(re));
|
7004
6997
|
if (!re)
|
7005
6998
|
return new m(
|
7006
|
-
"Invalid " + q + " `" +
|
6999
|
+
"Invalid " + q + " `" + L + "` key `" + K + "` supplied to `" + B + "`.\nBad object: " + JSON.stringify(j[R], null, " ") + `
|
7007
7000
|
Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
|
7008
7001
|
);
|
7009
|
-
var N = re(X, K, B, q,
|
7002
|
+
var N = re(X, K, B, q, L + "." + K, n);
|
7010
7003
|
if (N)
|
7011
7004
|
return N;
|
7012
7005
|
}
|
7013
7006
|
return null;
|
7014
7007
|
}
|
7015
|
-
return
|
7008
|
+
return C(E);
|
7016
7009
|
}
|
7017
7010
|
function W(P) {
|
7018
7011
|
switch (typeof P) {
|
@@ -7139,8 +7132,8 @@ if (process.env.NODE_ENV !== "production") {
|
|
7139
7132
|
Jn.exports = Gl()(Kl.isElement, Xl);
|
7140
7133
|
} else
|
7141
7134
|
Jn.exports = ql()();
|
7142
|
-
var wn = Jn.exports,
|
7143
|
-
Object.defineProperty(
|
7135
|
+
var wn = Jn.exports, kn = {};
|
7136
|
+
Object.defineProperty(kn, "__esModule", {
|
7144
7137
|
value: !0
|
7145
7138
|
});
|
7146
7139
|
var Jl = Yt, Bn = Ql(Jl);
|
@@ -7190,7 +7183,7 @@ var eu = {
|
|
7190
7183
|
this.scroller = null, this.containers = null, window.removeEventListener("hashchange", this.handleHashChange);
|
7191
7184
|
}
|
7192
7185
|
};
|
7193
|
-
|
7186
|
+
kn.default = eu;
|
7194
7187
|
Object.defineProperty(Ht, "__esModule", {
|
7195
7188
|
value: !0
|
7196
7189
|
});
|
@@ -7211,7 +7204,7 @@ var un = Object.assign || function(t) {
|
|
7211
7204
|
return function(e, n, o) {
|
7212
7205
|
return n && t(e.prototype, n), o && t(e, o), e;
|
7213
7206
|
};
|
7214
|
-
}(), nu = H, Sr = Kt(nu), ou = Vt, cn = Kt(ou), ru = _t, iu = Kt(ru), su = wn, Re = Kt(su), au =
|
7207
|
+
}(), nu = H, Sr = Kt(nu), ou = Vt, cn = Kt(ou), ru = _t, iu = Kt(ru), su = wn, Re = Kt(su), au = kn, ht = Kt(au);
|
7215
7208
|
function Kt(t) {
|
7216
7209
|
return t && t.__esModule ? t : { default: t };
|
7217
7210
|
}
|
@@ -7306,7 +7299,7 @@ Ht.default = function(t, e) {
|
|
7306
7299
|
if (!(ht.default.isMounted() && !ht.default.isInitialized())) {
|
7307
7300
|
var d = s.props.horizontal, f = s.props.to, c = null, p = void 0, w = void 0;
|
7308
7301
|
if (d) {
|
7309
|
-
var m = 0,
|
7302
|
+
var m = 0, C = 0, x = 0;
|
7310
7303
|
if (u.getBoundingClientRect) {
|
7311
7304
|
var O = u.getBoundingClientRect();
|
7312
7305
|
x = O.left;
|
@@ -7314,11 +7307,11 @@ Ht.default = function(t, e) {
|
|
7314
7307
|
if (!c || s.props.isDynamic) {
|
7315
7308
|
if (c = n.get(f), !c)
|
7316
7309
|
return;
|
7317
|
-
var
|
7318
|
-
m =
|
7310
|
+
var M = c.getBoundingClientRect();
|
7311
|
+
m = M.left - x + a, C = m + M.width;
|
7319
7312
|
}
|
7320
7313
|
var _ = a - s.props.offset;
|
7321
|
-
p = _ >= Math.floor(m) && _ < Math.floor(
|
7314
|
+
p = _ >= Math.floor(m) && _ < Math.floor(C), w = _ < Math.floor(m) || _ >= Math.floor(C);
|
7322
7315
|
} else {
|
7323
7316
|
var v = 0, b = 0, S = 0;
|
7324
7317
|
if (u.getBoundingClientRect) {
|
@@ -7423,7 +7416,7 @@ function wu(t, e) {
|
|
7423
7416
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
7424
7417
|
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
|
7425
7418
|
}
|
7426
|
-
var
|
7419
|
+
var ku = function(t) {
|
7427
7420
|
wu(e, t);
|
7428
7421
|
function e() {
|
7429
7422
|
return Cu(this, e), xu(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments));
|
@@ -7439,12 +7432,12 @@ var Mu = function(t) {
|
|
7439
7432
|
}
|
7440
7433
|
}]), e;
|
7441
7434
|
}(Ir.default.Component);
|
7442
|
-
fo.default = (0, Lu.default)(
|
7443
|
-
var po = {},
|
7444
|
-
Object.defineProperty(
|
7435
|
+
fo.default = (0, Lu.default)(ku);
|
7436
|
+
var po = {}, Mn = {};
|
7437
|
+
Object.defineProperty(Mn, "__esModule", {
|
7445
7438
|
value: !0
|
7446
7439
|
});
|
7447
|
-
var
|
7440
|
+
var Mu = Object.assign || function(t) {
|
7448
7441
|
for (var e = 1; e < arguments.length; e++) {
|
7449
7442
|
var n = arguments[e];
|
7450
7443
|
for (var o in n)
|
@@ -7481,7 +7474,7 @@ function Ru(t, e) {
|
|
7481
7474
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
7482
7475
|
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
|
7483
7476
|
}
|
7484
|
-
|
7477
|
+
Mn.default = function(t) {
|
7485
7478
|
var e = function(n) {
|
7486
7479
|
Ru(o, n);
|
7487
7480
|
function o(r) {
|
@@ -7518,7 +7511,7 @@ kn.default = function(t) {
|
|
7518
7511
|
}, {
|
7519
7512
|
key: "render",
|
7520
7513
|
value: function() {
|
7521
|
-
return _r.default.createElement(t,
|
7514
|
+
return _r.default.createElement(t, Mu({}, this.props, { parentBindings: this.childBindings }));
|
7522
7515
|
}
|
7523
7516
|
}]), o;
|
7524
7517
|
}(_r.default.Component);
|
@@ -7547,7 +7540,7 @@ var jr = Object.assign || function(t) {
|
|
7547
7540
|
return function(e, n, o) {
|
7548
7541
|
return n && t(e.prototype, n), o && t(e, o), e;
|
7549
7542
|
};
|
7550
|
-
}(), ju = H, Nr = ho(ju), Nu =
|
7543
|
+
}(), ju = H, Nr = ho(ju), Nu = Mn, $u = ho(Nu), Bu = wn, $r = ho(Bu);
|
7551
7544
|
function ho(t) {
|
7552
7545
|
return t && t.__esModule ? t : { default: t };
|
7553
7546
|
}
|
@@ -7621,7 +7614,7 @@ function Ur(t, e) {
|
|
7621
7614
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
7622
7615
|
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
|
7623
7616
|
}
|
7624
|
-
var dn = H, wt = Vt, zn = _t, Ne = wn, gt =
|
7617
|
+
var dn = H, wt = Vt, zn = _t, Ne = wn, gt = kn, Fr = {
|
7625
7618
|
to: Ne.string.isRequired,
|
7626
7619
|
containerId: Ne.string,
|
7627
7620
|
container: Ne.object,
|
@@ -7702,11 +7695,11 @@ var dn = H, wt = Vt, zn = _t, Ne = wn, gt = Mn, Fr = {
|
|
7702
7695
|
if (!f || a.props.isDynamic) {
|
7703
7696
|
if (f = o.get(d), !f)
|
7704
7697
|
return;
|
7705
|
-
var
|
7706
|
-
c =
|
7698
|
+
var C = f.getBoundingClientRect();
|
7699
|
+
c = C.top - w + l, p = c + C.height;
|
7707
7700
|
}
|
7708
|
-
var x = l - a.props.offset, O = x >= Math.floor(c) && x < Math.floor(p),
|
7709
|
-
if (
|
7701
|
+
var x = l - a.props.offset, O = x >= Math.floor(c) && x < Math.floor(p), M = x < Math.floor(c) || x >= Math.floor(p), _ = o.getActiveLink();
|
7702
|
+
if (M)
|
7710
7703
|
return d === _ && o.setActiveLink(void 0), a.props.hashSpy && gt.getHash() === d && gt.changeHash(), a.props.spy && a.state.active && (a.setState({ active: !1 }), a.props.onSetInactive && a.props.onSetInactive()), wt.updateStates();
|
7711
7704
|
if (O && _ !== d)
|
7712
7705
|
return o.setActiveLink(d), a.props.hashSpy && gt.changeHash(d), a.props.spy && (a.setState({ active: !0 }), a.props.onSetActive && a.props.onSetActive(d)), wt.updateStates();
|
@@ -7767,7 +7760,7 @@ Object.defineProperty(Ae, "__esModule", {
|
|
7767
7760
|
value: !0
|
7768
7761
|
});
|
7769
7762
|
Ae.Helpers = Ae.ScrollElement = Ae.ScrollLink = Wi = Ae.animateScroll = Ae.scrollSpy = Ae.Events = Ae.scroller = Ae.Element = Ae.Button = Ae.Link = void 0;
|
7770
|
-
var Hu = io, Ri = lt(Hu), Vu = fo, Di = lt(Vu), Zu = po, ji = lt(Zu), Yu = _t, Ni = lt(Yu), Gu = Gt, $i = lt(Gu), qu = Vt, Bi = lt(qu), Ku = Ln, Ai = lt(Ku), Xu = Ht, zi = lt(Xu), Ju =
|
7763
|
+
var Hu = io, Ri = lt(Hu), Vu = fo, Di = lt(Vu), Zu = po, ji = lt(Zu), Yu = _t, Ni = lt(Yu), Gu = Gt, $i = lt(Gu), qu = Vt, Bi = lt(qu), Ku = Ln, Ai = lt(Ku), Xu = Ht, zi = lt(Xu), Ju = Mn, Ui = lt(Ju), Qu = Wu, Fi = lt(Qu);
|
7771
7764
|
function lt(t) {
|
7772
7765
|
return t && t.__esModule ? t : { default: t };
|
7773
7766
|
}
|
@@ -7849,7 +7842,7 @@ function bd({
|
|
7849
7842
|
...n
|
7850
7843
|
}) {
|
7851
7844
|
return /* @__PURE__ */ y.jsx(
|
7852
|
-
|
7845
|
+
ks,
|
7853
7846
|
{
|
7854
7847
|
libraries: ["places", "marker", "maps"],
|
7855
7848
|
googleMapsApiKey: t,
|
@@ -7859,7 +7852,7 @@ function bd({
|
|
7859
7852
|
);
|
7860
7853
|
}
|
7861
7854
|
function Ld(t) {
|
7862
|
-
const { children: e = !1 } = t, [n, o] =
|
7855
|
+
const { children: e = !1 } = t, [n, o] = k([]);
|
7863
7856
|
function r(l) {
|
7864
7857
|
return !!n.some((u) => u.key === l);
|
7865
7858
|
}
|
@@ -7883,7 +7876,7 @@ function Ld(t) {
|
|
7883
7876
|
);
|
7884
7877
|
}
|
7885
7878
|
function Cd(t) {
|
7886
|
-
const { children: e = !1 } = t, [n, o] =
|
7879
|
+
const { children: e = !1 } = t, [n, o] = k([]);
|
7887
7880
|
function r(l) {
|
7888
7881
|
return !!n.some((u) => u.key === l);
|
7889
7882
|
}
|
@@ -7990,9 +7983,9 @@ var mc = 3, vc = "32px", yc = 4e3, bc = 356, Lc = 14, Cc = 20, xc = 200;
|
|
7990
7983
|
function wc(...t) {
|
7991
7984
|
return t.filter(Boolean).join(" ");
|
7992
7985
|
}
|
7993
|
-
var
|
7986
|
+
var kc = (t) => {
|
7994
7987
|
var e, n, o, r, i, s, a, l, u, d;
|
7995
|
-
let { invert: f, toast: c, unstyled: p, interacting: w, setHeights: m, visibleToasts:
|
7988
|
+
let { invert: f, toast: c, unstyled: p, interacting: w, setHeights: m, visibleToasts: C, heights: x, index: O, toasts: M, expanded: _, removeToast: v, defaultRichColors: b, closeButton: S, style: T, cancelButtonStyle: F, actionButtonStyle: I, className: U = "", descriptionClassName: Q = "", duration: z, position: W, gap: Y, loadingIcon: V, expandByDefault: A, classNames: Z, icons: ee, closeButtonAriaLabel: P = "Close toast", pauseWhenPageIsHidden: E, cn: j } = t, [R, B] = H.useState(!1), [q, L] = H.useState(!1), [X, J] = H.useState(!1), [D, K] = H.useState(!1), [re, N] = H.useState(0), [de, Ce] = H.useState(0), ve = H.useRef(null), he = H.useRef(null), Te = O === 0, Se = O + 1 <= C, ue = c.type, ie = c.dismissible !== !1, $e = c.className || "", le = c.descriptionClassName || "", ze = H.useMemo(() => x.findIndex((se) => se.toastId === c.id) || 0, [x, c.id]), ne = H.useMemo(() => {
|
7996
7989
|
var se;
|
7997
7990
|
return (se = c.closeButton) != null ? se : S;
|
7998
7991
|
}, [c.closeButton, S]), Ye = H.useMemo(() => c.duration || z || yc, [c.duration, z]), Qe = H.useRef(0), Be = H.useRef(0), ot = H.useRef(0), ye = H.useRef(null), [rt, ft] = W.split("-"), bt = H.useMemo(() => x.reduce((se, be, xe) => xe >= ze ? se : se + be.height, 0), [x, ze]), ut = lc(), Et = c.invert || f, pt = ue === "loading";
|
@@ -8006,7 +7999,7 @@ var Mc = (t) => {
|
|
8006
7999
|
se.style.height = be, Ce(xe), m((Fe) => Fe.find((Ve) => Ve.toastId === c.id) ? Fe.map((Ve) => Ve.toastId === c.id ? { ...Ve, height: xe } : Ve) : [{ toastId: c.id, height: xe, position: c.position }, ...Fe]);
|
8007
8000
|
}, [R, c.title, c.description, m, c.id]);
|
8008
8001
|
let qe = H.useCallback(() => {
|
8009
|
-
|
8002
|
+
L(!0), N(Be.current), m((se) => se.filter((be) => be.toastId !== c.id)), setTimeout(() => {
|
8010
8003
|
v(c);
|
8011
8004
|
}, xc);
|
8012
8005
|
}, [c, v, m, Be]);
|
@@ -8035,7 +8028,7 @@ var Mc = (t) => {
|
|
8035
8028
|
function St() {
|
8036
8029
|
return ee != null && ee.loading ? H.createElement("div", { className: "sonner-loader", "data-visible": ue === "loading" }, ee.loading) : V ? H.createElement("div", { className: "sonner-loader", "data-visible": ue === "loading" }, V) : H.createElement(oc, { visible: ue === "loading" });
|
8037
8030
|
}
|
8038
|
-
return H.createElement("li", { "aria-live": c.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: he, className: j(U, $e, Z == null ? void 0 : Z.toast, (e = c == null ? void 0 : c.classNames) == null ? void 0 : e.toast, Z == null ? void 0 : Z.default, Z == null ? void 0 : Z[ue], (n = c == null ? void 0 : c.classNames) == null ? void 0 : n[ue]), "data-sonner-toast": "", "data-rich-colors": (o = c.richColors) != null ? o : b, "data-styled": !(c.jsx || c.unstyled || p), "data-mounted": R, "data-promise": !!c.promise, "data-removed": q, "data-visible": Se, "data-y-position": rt, "data-x-position": ft, "data-index": O, "data-front": Te, "data-swiping": X, "data-dismissible": ie, "data-type": ue, "data-invert": Et, "data-swipe-out": D, "data-expanded": !!(_ || A && R), style: { "--index": O, "--toasts-before": O, "--z-index":
|
8031
|
+
return H.createElement("li", { "aria-live": c.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: he, className: j(U, $e, Z == null ? void 0 : Z.toast, (e = c == null ? void 0 : c.classNames) == null ? void 0 : e.toast, Z == null ? void 0 : Z.default, Z == null ? void 0 : Z[ue], (n = c == null ? void 0 : c.classNames) == null ? void 0 : n[ue]), "data-sonner-toast": "", "data-rich-colors": (o = c.richColors) != null ? o : b, "data-styled": !(c.jsx || c.unstyled || p), "data-mounted": R, "data-promise": !!c.promise, "data-removed": q, "data-visible": Se, "data-y-position": rt, "data-x-position": ft, "data-index": O, "data-front": Te, "data-swiping": X, "data-dismissible": ie, "data-type": ue, "data-invert": Et, "data-swipe-out": D, "data-expanded": !!(_ || A && R), style: { "--index": O, "--toasts-before": O, "--z-index": M.length - O, "--offset": `${q ? re : Be.current}px`, "--initial-height": A ? "auto" : `${de}px`, ...T, ...c.style }, onPointerDown: (se) => {
|
8039
8032
|
pt || !ie || (ve.current = /* @__PURE__ */ new Date(), N(Be.current), se.target.setPointerCapture(se.pointerId), se.target.tagName !== "BUTTON" && (J(!0), ye.current = { x: se.clientX, y: se.clientY }));
|
8040
8033
|
}, onPointerUp: () => {
|
8041
8034
|
var se, be, xe, Fe;
|
@@ -8069,8 +8062,8 @@ function Hr() {
|
|
8069
8062
|
let t = document.documentElement.getAttribute("dir");
|
8070
8063
|
return t === "auto" || !t ? window.getComputedStyle(document.documentElement).direction : t;
|
8071
8064
|
}
|
8072
|
-
var
|
8073
|
-
let { invert: e, position: n = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: r, closeButton: i, className: s, offset: a, theme: l = "light", richColors: u, duration: d, style: f, visibleToasts: c = mc, toastOptions: p, dir: w = Hr(), gap: m = Lc, loadingIcon:
|
8065
|
+
var Mc = (t) => {
|
8066
|
+
let { invert: e, position: n = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: r, closeButton: i, className: s, offset: a, theme: l = "light", richColors: u, duration: d, style: f, visibleToasts: c = mc, toastOptions: p, dir: w = Hr(), gap: m = Lc, loadingIcon: C, icons: x, containerAriaLabel: O = "Notifications", pauseWhenPageIsHidden: M, cn: _ = wc } = t, [v, b] = H.useState([]), S = H.useMemo(() => Array.from(new Set([n].concat(v.filter((E) => E.position).map((E) => E.position)))), [v, n]), [T, F] = H.useState([]), [I, U] = H.useState(!1), [Q, z] = H.useState(!1), [W, Y] = H.useState(l !== "system" ? l : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), V = H.useRef(null), A = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), Z = H.useRef(null), ee = H.useRef(!1), P = H.useCallback((E) => {
|
8074
8067
|
var j;
|
8075
8068
|
(j = v.find((R) => R.id === E.id)) != null && j.delete || Ke.dismiss(E.id), b((R) => R.filter(({ id: B }) => B !== E.id));
|
8076
8069
|
}, [v]);
|
@@ -8110,17 +8103,17 @@ var kc = (t) => {
|
|
8110
8103
|
}, [V.current]), v.length ? H.createElement("section", { "aria-label": `${O} ${A}`, tabIndex: -1 }, S.map((E, j) => {
|
8111
8104
|
var R;
|
8112
8105
|
let [B, q] = E.split("-");
|
8113
|
-
return H.createElement("ol", { key: E, dir: w === "auto" ? Hr() : w, tabIndex: -1, ref: V, className: s, "data-sonner-toaster": !0, "data-theme": W, "data-y-position": B, "data-x-position": q, style: { "--front-toast-height": `${((R = T[0]) == null ? void 0 : R.height) || 0}px`, "--offset": typeof a == "number" ? `${a}px` : a || vc, "--width": `${bc}px`, "--gap": `${m}px`, ...f }, onBlur: (
|
8114
|
-
ee.current && !
|
8115
|
-
}, onFocus: (
|
8116
|
-
|
8106
|
+
return H.createElement("ol", { key: E, dir: w === "auto" ? Hr() : w, tabIndex: -1, ref: V, className: s, "data-sonner-toaster": !0, "data-theme": W, "data-y-position": B, "data-x-position": q, style: { "--front-toast-height": `${((R = T[0]) == null ? void 0 : R.height) || 0}px`, "--offset": typeof a == "number" ? `${a}px` : a || vc, "--width": `${bc}px`, "--gap": `${m}px`, ...f }, onBlur: (L) => {
|
8107
|
+
ee.current && !L.currentTarget.contains(L.relatedTarget) && (ee.current = !1, Z.current && (Z.current.focus({ preventScroll: !0 }), Z.current = null));
|
8108
|
+
}, onFocus: (L) => {
|
8109
|
+
L.target instanceof HTMLElement && L.target.dataset.dismissible === "false" || ee.current || (ee.current = !0, Z.current = L.relatedTarget);
|
8117
8110
|
}, onMouseEnter: () => U(!0), onMouseMove: () => U(!0), onMouseLeave: () => {
|
8118
8111
|
Q || U(!1);
|
8119
|
-
}, onPointerDown: (
|
8120
|
-
|
8121
|
-
}, onPointerUp: () => z(!1) }, v.filter((
|
8112
|
+
}, onPointerDown: (L) => {
|
8113
|
+
L.target instanceof HTMLElement && L.target.dataset.dismissible === "false" || z(!0);
|
8114
|
+
}, onPointerUp: () => z(!1) }, v.filter((L) => !L.position && j === 0 || L.position === E).map((L, X) => {
|
8122
8115
|
var J, D;
|
8123
|
-
return H.createElement(
|
8116
|
+
return H.createElement(kc, { key: L.id, icons: x, index: X, toast: L, defaultRichColors: u, duration: (J = p == null ? void 0 : p.duration) != null ? J : d, className: p == null ? void 0 : p.className, descriptionClassName: p == null ? void 0 : p.descriptionClassName, invert: e, visibleToasts: c, closeButton: (D = p == null ? void 0 : p.closeButton) != null ? D : i, interacting: Q, position: E, style: p == null ? void 0 : p.style, unstyled: p == null ? void 0 : p.unstyled, classNames: p == null ? void 0 : p.classNames, cancelButtonStyle: p == null ? void 0 : p.cancelButtonStyle, actionButtonStyle: p == null ? void 0 : p.actionButtonStyle, removeToast: P, toasts: v.filter((K) => K.position == L.position), heights: T.filter((K) => K.position == L.position), setHeights: F, expandByDefault: r, gap: m, loadingIcon: C, expanded: I, pauseWhenPageIsHidden: M, cn: _ });
|
8124
8117
|
}));
|
8125
8118
|
})) : null;
|
8126
8119
|
};
|
@@ -8129,7 +8122,7 @@ function xd({ children: t }) {
|
|
8129
8122
|
hc.custom((o) => /* @__PURE__ */ y.jsx(Za, { ...n }));
|
8130
8123
|
}
|
8131
8124
|
return /* @__PURE__ */ y.jsxs(Hi.Provider, { value: { showToast: e }, children: [
|
8132
|
-
/* @__PURE__ */ y.jsx(
|
8125
|
+
/* @__PURE__ */ y.jsx(Mc, {}),
|
8133
8126
|
t
|
8134
8127
|
] });
|
8135
8128
|
}
|