@arkyn/components 1.3.105 → 1.3.107
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bundle.js +226 -228
- package/dist/bundle.umd.cjs +1 -1
- package/dist/components/Switch/index.js +1 -1
- package/package.json +1 -1
- package/src/components/Switch/index.tsx +10 -10
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";
|
@@ -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]));
|
@@ -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, C = t.onMouseUp, x = t.onRightClick, O = t.onCenterChanged,
|
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() {
|
@@ -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), C =
|
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() {
|
@@ -1452,7 +1452,7 @@ function Is(t) {
|
|
1452
1452
|
}, [p, n]), h(function() {
|
1453
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 && (C && google.maps.event.removeListener(C),
|
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,7 +1574,7 @@ 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, C = t.zIndex, x = t.onClick, O = t.onDblClick,
|
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() {
|
@@ -1622,8 +1622,8 @@ function _s(t) {
|
|
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
|
-
L &&
|
1626
|
-
}, [
|
1625
|
+
L && M && (qe !== null && google.maps.event.removeListener(qe), St(google.maps.event.addListener(L, "drag", M)));
|
1626
|
+
}, [M]), h(function() {
|
1627
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)));
|
@@ -1647,7 +1647,7 @@ function _s(t) {
|
|
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 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)),
|
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
|
}, []);
|
@@ -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,7 +2187,7 @@ 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, C = t.title, x = t.zoomOnClick, O = t.onClick,
|
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() {
|
@@ -2195,43 +2195,43 @@ function Hs(t) {
|
|
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 C < "u" && I !== null &&
|
2228
|
+
typeof C < "u" && I !== null && ke.title(I, C);
|
2229
2229
|
}, [I, C]), h(function() {
|
2230
|
-
typeof x < "u" && I !== null &&
|
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 &&
|
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
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
|
}
|
@@ -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,
|
@@ -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"), C(E), s &&
|
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());
|
@@ -2873,14 +2873,14 @@ class qs {
|
|
2873
2873
|
l[O + xt] > n && (C += l[O + mt]);
|
2874
2874
|
}
|
2875
2875
|
if (C > m && C >= s) {
|
2876
|
-
let x = c * m, O = p * m,
|
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
2885
|
l[f + Tn] = v, u.push(x / C, O / C, 1 / 0, v, -1, C), i && u.push(_);
|
2886
2886
|
} else {
|
@@ -2890,7 +2890,7 @@ class qs {
|
|
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 C(A), V.current = document.createElement("div"), s &&
|
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, C = t.onDrag, x = t.onLoad, O = t.onUnmount,
|
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);
|
@@ -3434,7 +3434,7 @@ function da(t) {
|
|
3434
3434
|
}, [m]), h(function() {
|
3435
3435
|
v && C && (Se !== null && google.maps.event.removeListener(Se), ue(google.maps.event.addListener(v, "drag", C)));
|
3436
3436
|
}, [C]), h(function() {
|
3437
|
-
var ie = new google.maps.Polyline(te(te({}, e || ca), { map:
|
3437
|
+
var ie = new google.maps.Polyline(te(te({}, e || ca), { map: M }));
|
3438
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
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
|
};
|
@@ -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, C = t.onClick, x = t.onDrag, O = t.onLoad,
|
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() {
|
@@ -3560,7 +3560,7 @@ function fa(t) {
|
|
3560
3560
|
}, [x]), h(function() {
|
3561
3561
|
var le = new google.maps.Polygon(te(te({}, e || {}), { map: v }));
|
3562
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),
|
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, C = t.onDrag, x = t.onBoundsChanged, O = t.onLoad,
|
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() {
|
@@ -3676,7 +3676,7 @@ function pa(t) {
|
|
3676
3676
|
}, [x]), h(function() {
|
3677
3677
|
var ne = new google.maps.Rectangle(te(te({}, e || {}), { map: _ }));
|
3678
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),
|
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, C = t.onClick, x = t.onDrag, O = t.onCenterChanged,
|
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() {
|
@@ -3796,10 +3796,10 @@ function ga(t) {
|
|
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
3798
|
}, [C]), h(function() {
|
3799
|
-
T &&
|
3800
|
-
}, [
|
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)), 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)),
|
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
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;
|
@@ -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, C = t.onUnmount, x = Pe(ce), O =
|
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() {
|
@@ -4718,7 +4718,7 @@ function Zc(t) {
|
|
4718
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
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: [
|
@@ -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
|
}
|
@@ -4866,7 +4866,7 @@ function Oa(t, e) {
|
|
4866
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);
|
@@ -4892,12 +4892,12 @@ function Oa(t, e) {
|
|
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,
|
@@ -4908,7 +4908,7 @@ function Ia(t) {
|
|
4908
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,
|
@@ -4997,7 +4997,7 @@ function Da(t, e) {
|
|
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,7 +5009,7 @@ 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,
|
@@ -5019,12 +5019,12 @@ function Da(t, e) {
|
|
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,
|
@@ -5033,7 +5033,7 @@ function ja(t) {
|
|
5033
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
|
}
|
@@ -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
|
}
|
@@ -5133,7 +5133,7 @@ function Na(t, e) {
|
|
5133
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 {
|
@@ -5153,13 +5153,13 @@ function Na(t, e) {
|
|
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,
|
@@ -5170,7 +5170,7 @@ function Ba(t) {
|
|
5170
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,
|
@@ -5234,7 +5234,7 @@ function Aa(t, e) {
|
|
5234
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,
|
@@ -5249,14 +5249,14 @@ function Aa(t, e) {
|
|
5249
5249
|
title: m,
|
5250
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,
|
@@ -5267,7 +5267,7 @@ function za(t) {
|
|
5267
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,
|
@@ -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
|
}
|
@@ -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(
|
5422
|
+
Spinner: /* @__PURE__ */ y.jsx(Mt, { className: "spinner", size: S, strokeWidth: 2.5 }),
|
5423
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,
|
@@ -5436,7 +5436,7 @@ function ed(t) {
|
|
5436
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();
|
@@ -5546,24 +5546,22 @@ function td(t) {
|
|
5546
5546
|
className: a = "",
|
5547
5547
|
onCheck: l,
|
5548
5548
|
...u
|
5549
|
-
} = t, [d, f] =
|
5549
|
+
} = t, [d, f] = k(n), { id: c, inputRef: p } = tt(), w = typeof o == "boolean" ? o : d;
|
5550
5550
|
function m() {
|
5551
5551
|
f(!d), l && l(w ? i : r || "checked");
|
5552
5552
|
}
|
5553
5553
|
const x = `arkynSwitch ${w ? "checkedTrue" : "checkedFalse"} ${e} ${a}`;
|
5554
|
-
return /* @__PURE__ */ y.jsx(
|
5555
|
-
"
|
5554
|
+
return /* @__PURE__ */ y.jsx("button", { type: "button", onClick: m, className: x, ...u, children: /* @__PURE__ */ y.jsx(
|
5555
|
+
"input",
|
5556
5556
|
{
|
5557
5557
|
id: c,
|
5558
|
-
type: "
|
5559
|
-
onClick: m,
|
5560
|
-
className: x,
|
5561
|
-
...u,
|
5558
|
+
type: "hidden",
|
5562
5559
|
name: s,
|
5563
5560
|
ref: p,
|
5564
|
-
|
5561
|
+
onClick: m,
|
5562
|
+
value: w ? r || "checked" : i
|
5565
5563
|
}
|
5566
|
-
);
|
5564
|
+
) });
|
5567
5565
|
}
|
5568
5566
|
function nd(t) {
|
5569
5567
|
const {
|
@@ -5577,7 +5575,7 @@ function nd(t) {
|
|
5577
5575
|
title: l,
|
5578
5576
|
style: u,
|
5579
5577
|
...d
|
5580
|
-
} = 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}`;
|
5581
5579
|
function S() {
|
5582
5580
|
r || !(x != null && x.current) || (c(!0), x.current.focus());
|
5583
5581
|
}
|
@@ -5615,7 +5613,7 @@ function od({
|
|
5615
5613
|
options: n,
|
5616
5614
|
...o
|
5617
5615
|
}) {
|
5618
|
-
const [r, i] =
|
5616
|
+
const [r, i] = k(null), s = (l) => i(l), a = () => {
|
5619
5617
|
var c, p, w, m;
|
5620
5618
|
const u = r.getPlaces()[0], d = u == null ? void 0 : u.address_components;
|
5621
5619
|
function f(C) {
|
@@ -5623,11 +5621,11 @@ function od({
|
|
5623
5621
|
return x ? x.long_name : "";
|
5624
5622
|
}
|
5625
5623
|
if (u) {
|
5626
|
-
const C = f("route"), x = f("sublocality_level_1"), O = f("administrative_area_level_2"),
|
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();
|
5627
5625
|
e && e({
|
5628
5626
|
street: C,
|
5629
5627
|
city: O,
|
5630
|
-
state:
|
5628
|
+
state: M,
|
5631
5629
|
district: x,
|
5632
5630
|
cep: _,
|
5633
5631
|
coordinates: { lat: v, lng: b }
|
@@ -5766,16 +5764,16 @@ function ad(t) {
|
|
5766
5764
|
defaultActive: o,
|
5767
5765
|
className: r,
|
5768
5766
|
...i
|
5769
|
-
} = t, [s, a] =
|
5767
|
+
} = t, [s, a] = k(o || ""), [l, u] = k(!0), d = Je(null), f = `arkynTabContainer ${r || ""}`, [c, p] = k({
|
5770
5768
|
width: "0px",
|
5771
5769
|
left: "0px",
|
5772
5770
|
transition: "none"
|
5773
5771
|
}), w = (C, x) => {
|
5774
|
-
const O = C.getBoundingClientRect(),
|
5772
|
+
const O = C.getBoundingClientRect(), M = d.current.getBoundingClientRect(), _ = x ? void 0 : "none";
|
5775
5773
|
u(!1), p({
|
5776
5774
|
transition: _,
|
5777
5775
|
width: `${O.width}px`,
|
5778
|
-
left: `${O.left -
|
5776
|
+
left: `${O.left - M.left}px`
|
5779
5777
|
});
|
5780
5778
|
};
|
5781
5779
|
h(() => {
|
@@ -5916,7 +5914,7 @@ function pd(t) {
|
|
5916
5914
|
] });
|
5917
5915
|
}
|
5918
5916
|
function hd(t) {
|
5919
|
-
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"}`;
|
5920
5918
|
function u() {
|
5921
5919
|
i || s(!0);
|
5922
5920
|
}
|
@@ -6011,7 +6009,7 @@ function sl(t, e, n) {
|
|
6011
6009
|
function O(b) {
|
6012
6010
|
return a = void 0, c && o ? p(b) : (o = r = void 0, s);
|
6013
6011
|
}
|
6014
|
-
function
|
6012
|
+
function M() {
|
6015
6013
|
a !== void 0 && clearTimeout(a), u = 0, o = l = r = a = void 0;
|
6016
6014
|
}
|
6017
6015
|
function _() {
|
@@ -6027,7 +6025,7 @@ function sl(t, e, n) {
|
|
6027
6025
|
}
|
6028
6026
|
return a === void 0 && (a = setTimeout(x, e)), s;
|
6029
6027
|
}
|
6030
|
-
return v.cancel =
|
6028
|
+
return v.cancel = M, v.flush = _, v;
|
6031
6029
|
}
|
6032
6030
|
function al(t, e, n) {
|
6033
6031
|
var o = !0, r = !0;
|
@@ -6315,13 +6313,13 @@ var wl = Object.assign || function(t) {
|
|
6315
6313
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
6316
6314
|
}
|
6317
6315
|
return t;
|
6318
|
-
},
|
6319
|
-
Cn(
|
6320
|
-
var
|
6316
|
+
}, kl = Yt;
|
6317
|
+
Cn(kl);
|
6318
|
+
var Ml = so, mr = Cn(Ml), El = ao, Sl = Cn(El), Pl = Gt, it = Cn(Pl);
|
6321
6319
|
function Cn(t) {
|
6322
6320
|
return t && t.__esModule ? t : { default: t };
|
6323
6321
|
}
|
6324
|
-
var
|
6322
|
+
var ki = function(e) {
|
6325
6323
|
return mr.default[e.smooth] || mr.default.defaultEasing;
|
6326
6324
|
}, Tl = function(e) {
|
6327
6325
|
return typeof e == "function" ? e : function() {
|
@@ -6334,7 +6332,7 @@ var Mi = function(e) {
|
|
6334
6332
|
return Ol() || function(t, e, n) {
|
6335
6333
|
window.setTimeout(t, n || 1e3 / 60, (/* @__PURE__ */ new Date()).getTime());
|
6336
6334
|
};
|
6337
|
-
}(),
|
6335
|
+
}(), Mi = function() {
|
6338
6336
|
return {
|
6339
6337
|
currentPosition: 0,
|
6340
6338
|
startPosition: 0,
|
@@ -6389,7 +6387,7 @@ var Mi = function(e) {
|
|
6389
6387
|
}, lo = function(e) {
|
6390
6388
|
e.data.containerElement = e ? e.containerId ? document.getElementById(e.containerId) : e.container && e.container.nodeType ? e.container : document : null;
|
6391
6389
|
}, qt = function(e, n, o, r) {
|
6392
|
-
n.data = n.data ||
|
6390
|
+
n.data = n.data || Mi(), window.clearTimeout(n.data.delayTimeout);
|
6393
6391
|
var i = function() {
|
6394
6392
|
n.data.cancel = !0;
|
6395
6393
|
};
|
@@ -6398,7 +6396,7 @@ var Mi = function(e) {
|
|
6398
6396
|
return;
|
6399
6397
|
}
|
6400
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;
|
6401
|
-
var s =
|
6399
|
+
var s = ki(n), a = Rl.bind(null, s, n);
|
6402
6400
|
if (n && n.delay > 0) {
|
6403
6401
|
n.data.delayTimeout = window.setTimeout(function() {
|
6404
6402
|
it.default.registered.begin && it.default.registered.begin(n.data.to, n.data.target), Xn.call(window, a);
|
@@ -6407,7 +6405,7 @@ var Mi = function(e) {
|
|
6407
6405
|
}
|
6408
6406
|
it.default.registered.begin && it.default.registered.begin(n.data.to, n.data.target), Xn.call(window, a);
|
6409
6407
|
}, xn = function(e) {
|
6410
|
-
return e = wl({}, e), e.data = e.data ||
|
6408
|
+
return e = wl({}, e), e.data = e.data || Mi(), e.absolute = !0, e;
|
6411
6409
|
}, Dl = function(e) {
|
6412
6410
|
qt(0, xn(e));
|
6413
6411
|
}, jl = function(e, n) {
|
@@ -6421,7 +6419,7 @@ var Mi = function(e) {
|
|
6421
6419
|
};
|
6422
6420
|
Ln.default = {
|
6423
6421
|
animateTopScroll: qt,
|
6424
|
-
getAnimationType:
|
6422
|
+
getAnimationType: ki,
|
6425
6423
|
scrollToTop: Dl,
|
6426
6424
|
scrollToBottom: Nl,
|
6427
6425
|
scrollTo: jl,
|
@@ -6478,7 +6476,7 @@ _t.default = {
|
|
6478
6476
|
Fl.default.animateTopScroll(l, n, e, o);
|
6479
6477
|
}
|
6480
6478
|
};
|
6481
|
-
var Jn = { exports: {} }, ln = { exports: {} },
|
6479
|
+
var Jn = { exports: {} }, ln = { exports: {} }, Me = {};
|
6482
6480
|
/** @license React v16.13.1
|
6483
6481
|
* react-is.production.min.js
|
6484
6482
|
*
|
@@ -6489,10 +6487,10 @@ var Jn = { exports: {} }, ln = { exports: {} }, ke = {};
|
|
6489
6487
|
*/
|
6490
6488
|
var yr;
|
6491
6489
|
function Hl() {
|
6492
|
-
if (yr) return
|
6490
|
+
if (yr) return Me;
|
6493
6491
|
yr = 1;
|
6494
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;
|
6495
|
-
function
|
6493
|
+
function M(v) {
|
6496
6494
|
if (typeof v == "object" && v !== null) {
|
6497
6495
|
var b = v.$$typeof;
|
6498
6496
|
switch (b) {
|
@@ -6523,35 +6521,35 @@ function Hl() {
|
|
6523
6521
|
}
|
6524
6522
|
}
|
6525
6523
|
function _(v) {
|
6526
|
-
return
|
6527
|
-
}
|
6528
|
-
return
|
6529
|
-
return _(v) ||
|
6530
|
-
},
|
6531
|
-
return
|
6532
|
-
},
|
6533
|
-
return
|
6534
|
-
},
|
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) {
|
6535
6533
|
return typeof v == "object" && v !== null && v.$$typeof === e;
|
6536
|
-
},
|
6537
|
-
return
|
6538
|
-
},
|
6539
|
-
return
|
6540
|
-
},
|
6541
|
-
return
|
6542
|
-
},
|
6543
|
-
return
|
6544
|
-
},
|
6545
|
-
return
|
6546
|
-
},
|
6547
|
-
return
|
6548
|
-
},
|
6549
|
-
return
|
6550
|
-
},
|
6551
|
-
return
|
6552
|
-
},
|
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) {
|
6553
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);
|
6554
|
-
},
|
6552
|
+
}, Me.typeOf = M, Me;
|
6555
6553
|
}
|
6556
6554
|
var Ee = {};
|
6557
6555
|
/** @license React v16.13.1
|
@@ -6566,7 +6564,7 @@ var br;
|
|
6566
6564
|
function Vl() {
|
6567
6565
|
return br || (br = 1, process.env.NODE_ENV !== "production" && function() {
|
6568
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;
|
6569
|
-
function
|
6567
|
+
function M(N) {
|
6570
6568
|
return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
6571
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);
|
6572
6570
|
}
|
@@ -6642,7 +6640,7 @@ function Vl() {
|
|
6642
6640
|
function re(N) {
|
6643
6641
|
return _(N) === f;
|
6644
6642
|
}
|
6645
|
-
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 =
|
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 = _;
|
6646
6644
|
}()), Ee;
|
6647
6645
|
}
|
6648
6646
|
var Lr;
|
@@ -6711,10 +6709,10 @@ var Dn, wr;
|
|
6711
6709
|
function Ti() {
|
6712
6710
|
return wr || (wr = 1, Dn = Function.call.bind(Object.prototype.hasOwnProperty)), Dn;
|
6713
6711
|
}
|
6714
|
-
var jn,
|
6712
|
+
var jn, kr;
|
6715
6713
|
function Yl() {
|
6716
|
-
if (
|
6717
|
-
|
6714
|
+
if (kr) return jn;
|
6715
|
+
kr = 1;
|
6718
6716
|
var t = function() {
|
6719
6717
|
};
|
6720
6718
|
if (process.env.NODE_ENV !== "production") {
|
@@ -6760,10 +6758,10 @@ function Yl() {
|
|
6760
6758
|
process.env.NODE_ENV !== "production" && (n = {});
|
6761
6759
|
}, jn = r, jn;
|
6762
6760
|
}
|
6763
|
-
var Nn,
|
6761
|
+
var Nn, Mr;
|
6764
6762
|
function Gl() {
|
6765
|
-
if (
|
6766
|
-
|
6763
|
+
if (Mr) return Nn;
|
6764
|
+
Mr = 1;
|
6767
6765
|
var t = Pi(), e = Zl(), n = co(), o = Ti(), r = Yl(), i = function() {
|
6768
6766
|
};
|
6769
6767
|
process.env.NODE_ENV !== "production" && (i = function(a) {
|
@@ -6794,7 +6792,7 @@ function Gl() {
|
|
6794
6792
|
string: x("string"),
|
6795
6793
|
symbol: x("symbol"),
|
6796
6794
|
any: O(),
|
6797
|
-
arrayOf:
|
6795
|
+
arrayOf: M,
|
6798
6796
|
element: _(),
|
6799
6797
|
elementType: v(),
|
6800
6798
|
instanceOf: b,
|
@@ -6852,7 +6850,7 @@ function Gl() {
|
|
6852
6850
|
function O() {
|
6853
6851
|
return C(s);
|
6854
6852
|
}
|
6855
|
-
function
|
6853
|
+
function M(P) {
|
6856
6854
|
function E(j, R, B, q, L) {
|
6857
6855
|
if (typeof P != "function")
|
6858
6856
|
return new m("Property `" + L + "` of component `" + B + "` has invalid PropType notation inside arrayOf.");
|
@@ -7134,8 +7132,8 @@ if (process.env.NODE_ENV !== "production") {
|
|
7134
7132
|
Jn.exports = Gl()(Kl.isElement, Xl);
|
7135
7133
|
} else
|
7136
7134
|
Jn.exports = ql()();
|
7137
|
-
var wn = Jn.exports,
|
7138
|
-
Object.defineProperty(
|
7135
|
+
var wn = Jn.exports, kn = {};
|
7136
|
+
Object.defineProperty(kn, "__esModule", {
|
7139
7137
|
value: !0
|
7140
7138
|
});
|
7141
7139
|
var Jl = Yt, Bn = Ql(Jl);
|
@@ -7185,7 +7183,7 @@ var eu = {
|
|
7185
7183
|
this.scroller = null, this.containers = null, window.removeEventListener("hashchange", this.handleHashChange);
|
7186
7184
|
}
|
7187
7185
|
};
|
7188
|
-
|
7186
|
+
kn.default = eu;
|
7189
7187
|
Object.defineProperty(Ht, "__esModule", {
|
7190
7188
|
value: !0
|
7191
7189
|
});
|
@@ -7206,7 +7204,7 @@ var un = Object.assign || function(t) {
|
|
7206
7204
|
return function(e, n, o) {
|
7207
7205
|
return n && t(e.prototype, n), o && t(e, o), e;
|
7208
7206
|
};
|
7209
|
-
}(), 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);
|
7210
7208
|
function Kt(t) {
|
7211
7209
|
return t && t.__esModule ? t : { default: t };
|
7212
7210
|
}
|
@@ -7309,8 +7307,8 @@ Ht.default = function(t, e) {
|
|
7309
7307
|
if (!c || s.props.isDynamic) {
|
7310
7308
|
if (c = n.get(f), !c)
|
7311
7309
|
return;
|
7312
|
-
var
|
7313
|
-
m =
|
7310
|
+
var M = c.getBoundingClientRect();
|
7311
|
+
m = M.left - x + a, C = m + M.width;
|
7314
7312
|
}
|
7315
7313
|
var _ = a - s.props.offset;
|
7316
7314
|
p = _ >= Math.floor(m) && _ < Math.floor(C), w = _ < Math.floor(m) || _ >= Math.floor(C);
|
@@ -7418,7 +7416,7 @@ function wu(t, e) {
|
|
7418
7416
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
7419
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);
|
7420
7418
|
}
|
7421
|
-
var
|
7419
|
+
var ku = function(t) {
|
7422
7420
|
wu(e, t);
|
7423
7421
|
function e() {
|
7424
7422
|
return Cu(this, e), xu(this, (e.__proto__ || Object.getPrototypeOf(e)).apply(this, arguments));
|
@@ -7434,12 +7432,12 @@ var Mu = function(t) {
|
|
7434
7432
|
}
|
7435
7433
|
}]), e;
|
7436
7434
|
}(Ir.default.Component);
|
7437
|
-
fo.default = (0, Lu.default)(
|
7438
|
-
var po = {},
|
7439
|
-
Object.defineProperty(
|
7435
|
+
fo.default = (0, Lu.default)(ku);
|
7436
|
+
var po = {}, Mn = {};
|
7437
|
+
Object.defineProperty(Mn, "__esModule", {
|
7440
7438
|
value: !0
|
7441
7439
|
});
|
7442
|
-
var
|
7440
|
+
var Mu = Object.assign || function(t) {
|
7443
7441
|
for (var e = 1; e < arguments.length; e++) {
|
7444
7442
|
var n = arguments[e];
|
7445
7443
|
for (var o in n)
|
@@ -7476,7 +7474,7 @@ function Ru(t, e) {
|
|
7476
7474
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
7477
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);
|
7478
7476
|
}
|
7479
|
-
|
7477
|
+
Mn.default = function(t) {
|
7480
7478
|
var e = function(n) {
|
7481
7479
|
Ru(o, n);
|
7482
7480
|
function o(r) {
|
@@ -7513,7 +7511,7 @@ kn.default = function(t) {
|
|
7513
7511
|
}, {
|
7514
7512
|
key: "render",
|
7515
7513
|
value: function() {
|
7516
|
-
return _r.default.createElement(t,
|
7514
|
+
return _r.default.createElement(t, Mu({}, this.props, { parentBindings: this.childBindings }));
|
7517
7515
|
}
|
7518
7516
|
}]), o;
|
7519
7517
|
}(_r.default.Component);
|
@@ -7542,7 +7540,7 @@ var jr = Object.assign || function(t) {
|
|
7542
7540
|
return function(e, n, o) {
|
7543
7541
|
return n && t(e.prototype, n), o && t(e, o), e;
|
7544
7542
|
};
|
7545
|
-
}(), ju = H, Nr = ho(ju), Nu =
|
7543
|
+
}(), ju = H, Nr = ho(ju), Nu = Mn, $u = ho(Nu), Bu = wn, $r = ho(Bu);
|
7546
7544
|
function ho(t) {
|
7547
7545
|
return t && t.__esModule ? t : { default: t };
|
7548
7546
|
}
|
@@ -7616,7 +7614,7 @@ function Ur(t, e) {
|
|
7616
7614
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
7617
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);
|
7618
7616
|
}
|
7619
|
-
var dn = H, wt = Vt, zn = _t, Ne = wn, gt =
|
7617
|
+
var dn = H, wt = Vt, zn = _t, Ne = wn, gt = kn, Fr = {
|
7620
7618
|
to: Ne.string.isRequired,
|
7621
7619
|
containerId: Ne.string,
|
7622
7620
|
container: Ne.object,
|
@@ -7700,8 +7698,8 @@ var dn = H, wt = Vt, zn = _t, Ne = wn, gt = Mn, Fr = {
|
|
7700
7698
|
var C = f.getBoundingClientRect();
|
7701
7699
|
c = C.top - w + l, p = c + C.height;
|
7702
7700
|
}
|
7703
|
-
var x = l - a.props.offset, O = x >= Math.floor(c) && x < Math.floor(p),
|
7704
|
-
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)
|
7705
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();
|
7706
7704
|
if (O && _ !== d)
|
7707
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();
|
@@ -7762,7 +7760,7 @@ Object.defineProperty(Ae, "__esModule", {
|
|
7762
7760
|
value: !0
|
7763
7761
|
});
|
7764
7762
|
Ae.Helpers = Ae.ScrollElement = Ae.ScrollLink = Wi = Ae.animateScroll = Ae.scrollSpy = Ae.Events = Ae.scroller = Ae.Element = Ae.Button = Ae.Link = void 0;
|
7765
|
-
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);
|
7766
7764
|
function lt(t) {
|
7767
7765
|
return t && t.__esModule ? t : { default: t };
|
7768
7766
|
}
|
@@ -7844,7 +7842,7 @@ function bd({
|
|
7844
7842
|
...n
|
7845
7843
|
}) {
|
7846
7844
|
return /* @__PURE__ */ y.jsx(
|
7847
|
-
|
7845
|
+
ks,
|
7848
7846
|
{
|
7849
7847
|
libraries: ["places", "marker", "maps"],
|
7850
7848
|
googleMapsApiKey: t,
|
@@ -7854,7 +7852,7 @@ function bd({
|
|
7854
7852
|
);
|
7855
7853
|
}
|
7856
7854
|
function Ld(t) {
|
7857
|
-
const { children: e = !1 } = t, [n, o] =
|
7855
|
+
const { children: e = !1 } = t, [n, o] = k([]);
|
7858
7856
|
function r(l) {
|
7859
7857
|
return !!n.some((u) => u.key === l);
|
7860
7858
|
}
|
@@ -7878,7 +7876,7 @@ function Ld(t) {
|
|
7878
7876
|
);
|
7879
7877
|
}
|
7880
7878
|
function Cd(t) {
|
7881
|
-
const { children: e = !1 } = t, [n, o] =
|
7879
|
+
const { children: e = !1 } = t, [n, o] = k([]);
|
7882
7880
|
function r(l) {
|
7883
7881
|
return !!n.some((u) => u.key === l);
|
7884
7882
|
}
|
@@ -7985,9 +7983,9 @@ var mc = 3, vc = "32px", yc = 4e3, bc = 356, Lc = 14, Cc = 20, xc = 200;
|
|
7985
7983
|
function wc(...t) {
|
7986
7984
|
return t.filter(Boolean).join(" ");
|
7987
7985
|
}
|
7988
|
-
var
|
7986
|
+
var kc = (t) => {
|
7989
7987
|
var e, n, o, r, i, s, a, l, u, d;
|
7990
|
-
let { invert: f, toast: c, unstyled: p, interacting: w, setHeights: m, visibleToasts: C, heights: x, index: O, toasts:
|
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(() => {
|
7991
7989
|
var se;
|
7992
7990
|
return (se = c.closeButton) != null ? se : S;
|
7993
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";
|
@@ -8030,7 +8028,7 @@ var Mc = (t) => {
|
|
8030
8028
|
function St() {
|
8031
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" });
|
8032
8030
|
}
|
8033
|
-
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) => {
|
8034
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 }));
|
8035
8033
|
}, onPointerUp: () => {
|
8036
8034
|
var se, be, xe, Fe;
|
@@ -8064,8 +8062,8 @@ function Hr() {
|
|
8064
8062
|
let t = document.documentElement.getAttribute("dir");
|
8065
8063
|
return t === "auto" || !t ? window.getComputedStyle(document.documentElement).direction : t;
|
8066
8064
|
}
|
8067
|
-
var
|
8068
|
-
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:
|
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) => {
|
8069
8067
|
var j;
|
8070
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));
|
8071
8069
|
}, [v]);
|
@@ -8115,7 +8113,7 @@ var kc = (t) => {
|
|
8115
8113
|
L.target instanceof HTMLElement && L.target.dataset.dismissible === "false" || z(!0);
|
8116
8114
|
}, onPointerUp: () => z(!1) }, v.filter((L) => !L.position && j === 0 || L.position === E).map((L, X) => {
|
8117
8115
|
var J, D;
|
8118
|
-
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: _ });
|
8119
8117
|
}));
|
8120
8118
|
})) : null;
|
8121
8119
|
};
|
@@ -8124,7 +8122,7 @@ function xd({ children: t }) {
|
|
8124
8122
|
hc.custom((o) => /* @__PURE__ */ y.jsx(Za, { ...n }));
|
8125
8123
|
}
|
8126
8124
|
return /* @__PURE__ */ y.jsxs(Hi.Provider, { value: { showToast: e }, children: [
|
8127
|
-
/* @__PURE__ */ y.jsx(
|
8125
|
+
/* @__PURE__ */ y.jsx(Mc, {}),
|
8128
8126
|
t
|
8129
8127
|
] });
|
8130
8128
|
}
|