@arkyn/components 1.3.97 → 1.3.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +264 -254
- package/dist/bundle.umd.cjs +1 -1
- package/dist/components/GoogleSearchPlaces/index.d.ts +1 -1
- package/dist/components/GoogleSearchPlaces/index.d.ts.map +1 -1
- package/dist/components/GoogleSearchPlaces/index.js +26 -3
- package/package.json +1 -1
- package/src/components/GoogleSearchPlaces/index.tsx +40 -5
package/dist/bundle.js
CHANGED
@@ -67,10 +67,10 @@ function ls() {
|
|
67
67
|
we.unshift("Warning: " + $), Function.prototype.apply.call(console[g], console, we);
|
68
68
|
}
|
69
69
|
}
|
70
|
-
var
|
70
|
+
var _ = !1, y = !1, b = !1, P = !1, T = !1, F;
|
71
71
|
F = Symbol.for("react.module.reference");
|
72
72
|
function O(g) {
|
73
|
-
return !!(typeof g == "string" || typeof g == "function" || g === o || g === i || T || g === r || g === u || g === d || P || g === p ||
|
73
|
+
return !!(typeof g == "string" || typeof g == "function" || g === o || g === i || T || g === r || g === u || g === d || P || g === p || _ || y || b || typeof g == "object" && g !== null && (g.$$typeof === c || g.$$typeof === f || g.$$typeof === s || g.$$typeof === a || g.$$typeof === l || // This needs to include all possible module reference object
|
74
74
|
// types supported by any Flight configuration anywhere since
|
75
75
|
// we don't know which Flight build this will end up being used
|
76
76
|
// with.
|
@@ -132,9 +132,9 @@ function ls() {
|
|
132
132
|
return null;
|
133
133
|
}
|
134
134
|
var W = Object.assign, Y = 0, V, A, Z, ee, S, E, j;
|
135
|
-
function
|
135
|
+
function R() {
|
136
136
|
}
|
137
|
-
|
137
|
+
R.__reactDisabledLog = !0;
|
138
138
|
function B() {
|
139
139
|
{
|
140
140
|
if (Y === 0) {
|
@@ -142,7 +142,7 @@ function ls() {
|
|
142
142
|
var g = {
|
143
143
|
configurable: !0,
|
144
144
|
enumerable: !0,
|
145
|
-
value:
|
145
|
+
value: R,
|
146
146
|
writable: !0
|
147
147
|
};
|
148
148
|
Object.defineProperties(console, {
|
@@ -262,18 +262,18 @@ function ls() {
|
|
262
262
|
if (He && oe && typeof He.stack == "string") {
|
263
263
|
for (var fe = He.stack.split(`
|
264
264
|
`), We = oe.stack.split(`
|
265
|
-
`),
|
265
|
+
`), _e = fe.length - 1, De = We.length - 1; _e >= 1 && De >= 0 && fe[_e] !== We[De]; )
|
266
266
|
De--;
|
267
|
-
for (;
|
268
|
-
if (fe[
|
269
|
-
if (
|
267
|
+
for (; _e >= 1 && De >= 0; _e--, De--)
|
268
|
+
if (fe[_e] !== We[De]) {
|
269
|
+
if (_e !== 1 || De !== 1)
|
270
270
|
do
|
271
|
-
if (
|
271
|
+
if (_e--, De--, De < 0 || fe[_e] !== We[De]) {
|
272
272
|
var Ge = `
|
273
|
-
` + fe[
|
273
|
+
` + fe[_e].replace(" at new ", " at ");
|
274
274
|
return g.displayName && Ge.includes("<anonymous>") && (Ge = Ge.replace("<anonymous>", g.displayName)), typeof g == "function" && K.set(g, Ge), Ge;
|
275
275
|
}
|
276
|
-
while (
|
276
|
+
while (_e >= 1 && De >= 0);
|
277
277
|
break;
|
278
278
|
}
|
279
279
|
}
|
@@ -339,8 +339,8 @@ function ls() {
|
|
339
339
|
throw We.name = "Invariant Violation", We;
|
340
340
|
}
|
341
341
|
fe = g[ge]($, ge, oe, G, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
342
|
-
} catch (
|
343
|
-
fe =
|
342
|
+
} catch (_e) {
|
343
|
+
fe = _e;
|
344
344
|
}
|
345
345
|
fe && !(fe instanceof Error) && (ue(Le), I("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", oe || "React class", G, ge, typeof fe), ue(null)), fe instanceof Error && !(fe.message in Te) && (Te[fe.message] = !0, ue(Le), I("Failed %s type: %s", G, fe.message), ue(null));
|
346
346
|
}
|
@@ -457,9 +457,9 @@ function ls() {
|
|
457
457
|
for (we in $)
|
458
458
|
he.call($, we) && !ot.hasOwnProperty(we) && (ge[we] = $[we]);
|
459
459
|
if (g && g.defaultProps) {
|
460
|
-
var
|
461
|
-
for (we in
|
462
|
-
ge[we] === void 0 && (ge[we] =
|
460
|
+
var _e = g.defaultProps;
|
461
|
+
for (we in _e)
|
462
|
+
ge[we] === void 0 && (ge[we] = _e[we]);
|
463
463
|
}
|
464
464
|
if (fe || We) {
|
465
465
|
var De = typeof g == "function" ? g.displayName || g.name || "Unknown" : g;
|
@@ -504,7 +504,7 @@ Check your code at ` + $ + ":" + G + ".";
|
|
504
504
|
return "";
|
505
505
|
}
|
506
506
|
}
|
507
|
-
var
|
507
|
+
var Rt = {};
|
508
508
|
function Xt(g) {
|
509
509
|
{
|
510
510
|
var $ = Lt();
|
@@ -523,9 +523,9 @@ Check the top-level render call using <` + G + ">.");
|
|
523
523
|
return;
|
524
524
|
g._store.validated = !0;
|
525
525
|
var G = Xt($);
|
526
|
-
if (
|
526
|
+
if (Rt[G])
|
527
527
|
return;
|
528
|
-
|
528
|
+
Rt[G] = !0;
|
529
529
|
var oe = "";
|
530
530
|
g && g._owner && g._owner !== be.current && (oe = " It was passed a child from " + z(g._owner.type) + "."), Fe(g), I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', G, oe), Fe(null);
|
531
531
|
}
|
@@ -595,8 +595,8 @@ Check the top-level render call using <` + G + ">.");
|
|
595
595
|
(g === void 0 || typeof g == "object" && g !== null && Object.keys(g).length === 0) && (fe += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
596
596
|
var We = Pt(Le);
|
597
597
|
We ? fe += We : fe += Lt();
|
598
|
-
var
|
599
|
-
g === null ?
|
598
|
+
var _e;
|
599
|
+
g === null ? _e = "null" : le(g) ? _e = "array" : g !== void 0 && g.$$typeof === e ? (_e = "<" + (z(g.type) || "Unknown") + " />", fe = " Did you accidentally export a JSX literal instead of a component?") : _e = typeof g, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _e, fe);
|
600
600
|
}
|
601
601
|
var De = se(g, $, G, Le, we);
|
602
602
|
if (De == null)
|
@@ -651,7 +651,7 @@ const oi = st({});
|
|
651
651
|
function cs() {
|
652
652
|
return Pe(oi);
|
653
653
|
}
|
654
|
-
function
|
654
|
+
function Rc(t) {
|
655
655
|
const { schema: e, children: n, className: o, ...r } = t, a = !((u) => {
|
656
656
|
let d = !1;
|
657
657
|
const f = (c) => {
|
@@ -978,7 +978,7 @@ var bo = {
|
|
978
978
|
}
|
979
979
|
};
|
980
980
|
function ks(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, I = t.onCenterChanged, k = t.onLoad,
|
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, I = t.onCenterChanged, k = t.onLoad, _ = t.onUnmount, y = M(null), b = y[0], P = y[1], T = Je(null), F = M(null), O = F[0], U = F[1], Q = M(null), z = Q[0], W = Q[1], Y = M(null), V = Y[0], A = Y[1], Z = M(null), ee = Z[0], S = Z[1], E = M(null), j = E[0], R = E[1], B = M(null), q = B[0], L = B[1], X = M(null), J = X[0], D = X[1], K = M(null), re = K[0], N = K[1], de = M(null), Ce = de[0], ve = de[1], he = M(null), Te = he[0], Se = he[1], ue = M(null), ie = ue[0], $e = ue[1], le = M(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() {
|
@@ -990,7 +990,7 @@ function ks(t) {
|
|
990
990
|
}, [d]), h(function() {
|
991
991
|
b && f && (ee !== null && google.maps.event.removeListener(ee), S(google.maps.event.addListener(b, "dragstart", f)));
|
992
992
|
}, [f]), h(function() {
|
993
|
-
b && m && (j !== null && google.maps.event.removeListener(j),
|
993
|
+
b && m && (j !== null && google.maps.event.removeListener(j), R(google.maps.event.addListener(b, "mousedown", m)));
|
994
994
|
}, [m]), h(function() {
|
995
995
|
b && c && (q !== null && google.maps.event.removeListener(q), L(google.maps.event.addListener(b, "mousemove", c)));
|
996
996
|
}, [c]), h(function() {
|
@@ -1010,7 +1010,7 @@ function ks(t) {
|
|
1010
1010
|
}, [a]), h(function() {
|
1011
1011
|
var Ye = T.current === null ? null : new google.maps.Map(T.current, n);
|
1012
1012
|
return P(Ye), Ye !== null && k && k(Ye), function() {
|
1013
|
-
Ye !== null &&
|
1013
|
+
Ye !== null && _ && _(Ye);
|
1014
1014
|
};
|
1015
1015
|
}, []), v.jsx("div", { id: o, ref: T, style: r, className: i, children: v.jsx(ce.Provider, { value: b, children: b !== null ? e : null }) });
|
1016
1016
|
}
|
@@ -1239,7 +1239,7 @@ var Vn = {
|
|
1239
1239
|
}(Ie)
|
1240
1240
|
), xo;
|
1241
1241
|
function Ss(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 = M(!1), x = C[0], I = C[1], k = M(void 0),
|
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 = M(!1), x = C[0], I = C[1], k = M(void 0), _ = k[0], y = k[1];
|
1243
1243
|
h(function() {
|
1244
1244
|
return m.current = !0, function() {
|
1245
1245
|
m.current = !1;
|
@@ -1280,7 +1280,7 @@ function Ss(t) {
|
|
1280
1280
|
var P = Je();
|
1281
1281
|
return h(function() {
|
1282
1282
|
P.current && d !== P.current && console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"), P.current = d;
|
1283
|
-
}, [d]), { isLoaded: x, loadError:
|
1283
|
+
}, [d]), { isLoaded: x, loadError: _, url: b };
|
1284
1284
|
}
|
1285
1285
|
var Ps = v.jsx(ui, {});
|
1286
1286
|
function Ts(t) {
|
@@ -1391,7 +1391,7 @@ Ze(Is);
|
|
1391
1391
|
return null;
|
1392
1392
|
}, e.contextType = ce, e;
|
1393
1393
|
})(Ie);
|
1394
|
-
function
|
1394
|
+
function _s(t) {
|
1395
1395
|
var e = t.onLoad, n = t.onUnmount, o = Pe(ce), r = M(null), i = r[0], s = r[1];
|
1396
1396
|
return h(function() {
|
1397
1397
|
i !== null && i.setMap(o);
|
@@ -1402,7 +1402,7 @@ function Rs(t) {
|
|
1402
1402
|
};
|
1403
1403
|
}, []), null;
|
1404
1404
|
}
|
1405
|
-
Ze(
|
1405
|
+
Ze(_s);
|
1406
1406
|
(function(t) {
|
1407
1407
|
Oe(e, t);
|
1408
1408
|
function e() {
|
@@ -1441,8 +1441,8 @@ var Eo = {
|
|
1441
1441
|
t.setOptions(e);
|
1442
1442
|
}
|
1443
1443
|
};
|
1444
|
-
function
|
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 = M(null), p = c[0], w = c[1], m = M(null), C = m[0], x = m[1], I = M(null), k = I[0],
|
1444
|
+
function Rs(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 = M(null), p = c[0], w = c[1], m = M(null), C = m[0], x = m[1], I = M(null), k = I[0], _ = I[1], y = M(null), b = y[0], P = y[1], T = M(null), F = T[0], O = T[1], U = M(null), Q = U[0], z = U[1], W = M(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 _s(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 && (k !== null && google.maps.event.removeListener(k),
|
1455
|
+
p && r && (k !== null && google.maps.event.removeListener(k), _(google.maps.event.addListener(p, "markercomplete", r)));
|
1456
1456
|
}, [p, r]), h(function() {
|
1457
1457
|
p && i && (b !== null && google.maps.event.removeListener(b), P(google.maps.event.addListener(p, "overlaycomplete", i)));
|
1458
1458
|
}, [p, i]), h(function() {
|
@@ -1464,12 +1464,12 @@ function _s(t) {
|
|
1464
1464
|
}, [p, l]), h(function() {
|
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
|
-
return n && A.setDrawingMode(n), o && x(google.maps.event.addListener(A, "circlecomplete", o)), r &&
|
1467
|
+
return n && A.setDrawingMode(n), o && x(google.maps.event.addListener(A, "circlecomplete", o)), r && _(google.maps.event.addListener(A, "markercomplete", r)), i && P(google.maps.event.addListener(A, "overlaycomplete", i)), s && O(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
1468
|
p !== null && (C && google.maps.event.removeListener(C), k && google.maps.event.removeListener(k), 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
|
}
|
1472
|
-
Ze(
|
1472
|
+
Ze(Rs);
|
1473
1473
|
(function(t) {
|
1474
1474
|
Oe(e, t);
|
1475
1475
|
function e(n) {
|
@@ -1574,7 +1574,7 @@ var Po = {
|
|
1574
1574
|
}
|
1575
1575
|
}, mn = {};
|
1576
1576
|
function Ds(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, I = t.onDblClick, k = t.onDrag,
|
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, I = t.onDblClick, k = t.onDrag, _ = t.onDragEnd, y = t.onDragStart, b = t.onMouseOut, P = t.onMouseOver, T = t.onMouseUp, F = t.onMouseDown, O = 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, S = t.onVisibleChanged, E = t.onZindexChanged, j = t.onLoad, R = t.onUnmount, B = Pe(ce), q = M(null), L = q[0], X = q[1], J = M(null), D = J[0], K = J[1], re = M(null), N = re[0], de = re[1], Ce = M(null), ve = Ce[0], he = Ce[1], Te = M(null), Se = Te[0], ue = Te[1], ie = M(null), $e = ie[0], le = ie[1], ze = M(null), ne = ze[0], Ye = ze[1], Qe = M(null), Be = Qe[0], ot = Qe[1], ye = M(null), rt = ye[0], ft = ye[1], bt = M(null), ut = bt[0], Et = bt[1], pt = M(null), qe = pt[0], St = pt[1], se = M(null), be = se[0], xe = se[1], Fe = M(null), Ve = Fe[0], nt = Fe[1], Lt = M(null), Pt = Lt[0], Rt = Lt[1], Xt = M(null), Ct = Xt[0], Dt = Xt[1], Jt = M(null), Tt = Jt[0], jt = Jt[1], Nt = M(null), Ot = Nt[0], Qt = Nt[1], en = M(null), It = en[0], g = en[1], $ = M(null), G = $[0], oe = $[1], Le = M(null), we = Le[0], ge = Le[1], fe = M(null), We = fe[0], _e = fe[1], De = M(null), Ge = De[0], ct = De[1];
|
1578
1578
|
h(function() {
|
1579
1579
|
L !== null && L.setMap(B);
|
1580
1580
|
}, [B]), h(function() {
|
@@ -1606,8 +1606,8 @@ function Ds(t) {
|
|
1606
1606
|
}, [L, C]), h(function() {
|
1607
1607
|
L && I && (D !== null && google.maps.event.removeListener(D), K(google.maps.event.addListener(L, "dblclick", I)));
|
1608
1608
|
}, [I]), h(function() {
|
1609
|
-
L &&
|
1610
|
-
}, [
|
1609
|
+
L && _ && (N !== null && google.maps.event.removeListener(N), de(google.maps.event.addListener(L, "dragend", _)));
|
1610
|
+
}, [_]), h(function() {
|
1611
1611
|
L && y && (ve !== null && google.maps.event.removeListener(ve), he(google.maps.event.addListener(L, "dragstart", y)));
|
1612
1612
|
}, [y]), h(function() {
|
1613
1613
|
L && F && (Se !== null && google.maps.event.removeListener(Se), ue(google.maps.event.addListener(L, "mousedown", F)));
|
@@ -1628,7 +1628,7 @@ function Ds(t) {
|
|
1628
1628
|
}, [U]), h(function() {
|
1629
1629
|
L && Q && (Ve !== null && google.maps.event.removeListener(Ve), nt(google.maps.event.addListener(L, "cursor_changed", Q)));
|
1630
1630
|
}, [Q]), h(function() {
|
1631
|
-
L && z && (Pt !== null && google.maps.event.removeListener(Pt),
|
1631
|
+
L && z && (Pt !== null && google.maps.event.removeListener(Pt), Rt(google.maps.event.addListener(L, "animation_changed", z)));
|
1632
1632
|
}, [z]), h(function() {
|
1633
1633
|
L && W && (Ct !== null && google.maps.event.removeListener(Ct), Dt(google.maps.event.addListener(L, "draggable_changed", W)));
|
1634
1634
|
}, [W]), h(function() {
|
@@ -1642,13 +1642,13 @@ function Ds(t) {
|
|
1642
1642
|
}, [Z]), h(function() {
|
1643
1643
|
L && ee && (we !== null && google.maps.event.removeListener(we), ge(google.maps.event.addListener(L, "title_changed", ee)));
|
1644
1644
|
}, [ee]), h(function() {
|
1645
|
-
L && S && (We !== null && google.maps.event.removeListener(We),
|
1645
|
+
L && S && (We !== null && google.maps.event.removeListener(We), _e(google.maps.event.addListener(L, "visible_changed", S)));
|
1646
1646
|
}, [S]), h(function() {
|
1647
1647
|
L && E && (Ge !== null && google.maps.event.removeListener(Ge), ct(google.maps.event.addListener(L, "zindex_changed", E)));
|
1648
1648
|
}, [E]), h(function() {
|
1649
1649
|
var He = te(te(te({}, n || mn), o ? mn : { map: B }), { position: e }), ae = new google.maps.Marker(He);
|
1650
|
-
return o ? o.addMarker(ae, !!r) : ae.setMap(B), e && ae.setPosition(e), typeof a < "u" && ae.setVisible(a), typeof s < "u" && ae.setDraggable(s), typeof u < "u" && ae.setClickable(u), typeof d == "string" && ae.setCursor(d), f && ae.setIcon(f), typeof c < "u" && ae.setLabel(c), typeof p < "u" && ae.setOpacity(p), w && ae.setShape(w), typeof m == "string" && ae.setTitle(m), typeof C == "number" && ae.setZIndex(C), I && K(google.maps.event.addListener(ae, "dblclick", I)),
|
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),
|
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), I && K(google.maps.event.addListener(ae, "dblclick", I)), _ && de(google.maps.event.addListener(ae, "dragend", _)), y && he(google.maps.event.addListener(ae, "dragstart", y)), F && ue(google.maps.event.addListener(ae, "mousedown", F)), b && le(google.maps.event.addListener(ae, "mouseout", b)), P && Ye(google.maps.event.addListener(ae, "mouseover", P)), T && ot(google.maps.event.addListener(ae, "mouseup", T)), O && ft(google.maps.event.addListener(ae, "rightclick", O)), x && Et(google.maps.event.addListener(ae, "click", x)), k && St(google.maps.event.addListener(ae, "drag", k)), 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)), S && _e(google.maps.event.addListener(ae, "visible_changed", S)), E && ct(google.maps.event.addListener(ae, "zindex_changed", E)), X(ae), j && j(ae), function() {
|
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
|
}, []);
|
1654
1654
|
var dt = hn(function() {
|
@@ -2187,9 +2187,9 @@ var As = 2e3, zs = 500, Us = "https://developers.google.com/maps/documentation/j
|
|
2187
2187
|
}
|
2188
2188
|
}, Vs = {};
|
2189
2189
|
function Zs(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, I = t.onClick, k = t.onClusteringBegin,
|
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, I = t.onClick, k = t.onClusteringBegin, _ = t.onClusteringEnd, y = t.onMouseOver, b = t.onMouseOut, P = t.onLoad, T = t.onUnmount, F = M(null), O = F[0], U = F[1], Q = Pe(ce), z = M(null), W = z[0], Y = z[1], V = M(null), A = V[0], Z = V[1], ee = M(null), S = ee[0], E = ee[1], j = M(null), R = j[0], B = j[1], q = M(null), L = q[0], X = q[1];
|
2191
2191
|
return h(function() {
|
2192
|
-
O && b && (
|
2192
|
+
O && b && (R !== null && google.maps.event.removeListener(R), B(google.maps.event.addListener(O, et.onMouseOut, b)));
|
2193
2193
|
}, [b]), h(function() {
|
2194
2194
|
O && y && (L !== null && google.maps.event.removeListener(L), X(google.maps.event.addListener(O, et.onMouseOver, y)));
|
2195
2195
|
}, [y]), h(function() {
|
@@ -2197,8 +2197,8 @@ function Zs(t) {
|
|
2197
2197
|
}, [I]), h(function() {
|
2198
2198
|
O && k && (A !== null && google.maps.event.removeListener(A), Z(google.maps.event.addListener(O, et.onClusteringBegin, k)));
|
2199
2199
|
}, [k]), h(function() {
|
2200
|
-
O &&
|
2201
|
-
}, [
|
2200
|
+
O && _ && (S !== null && google.maps.event.removeListener(S), Z(google.maps.event.addListener(O, et.onClusteringEnd, _)));
|
2201
|
+
}, [_]), h(function() {
|
2202
2202
|
typeof o < "u" && O !== null && Me.averageCenter(O, o);
|
2203
2203
|
}, [O, o]), h(function() {
|
2204
2204
|
typeof r < "u" && O !== null && Me.batchSizeIE(O, r);
|
@@ -2231,8 +2231,8 @@ function Zs(t) {
|
|
2231
2231
|
}, [O, x]), h(function() {
|
2232
2232
|
if (Q) {
|
2233
2233
|
var J = te({}, n || Vs), D = new di(Q, [], J);
|
2234
|
-
return o && Me.averageCenter(D, o), r && Me.batchSizeIE(D, r), i && Me.calculator(D, i), s && Me.clusterClass(D, s), a && Me.enableRetinaIcons(D, a), l && Me.gridSize(D, l), u && Me.ignoreHidden(D, u), d && Me.imageExtension(D, d), f && Me.imagePath(D, f), c && Me.imageSizes(D, c), p && Me.maxZoom(D, p), w && Me.minimumClusterSize(D, w), m && Me.styles(D, m), C && Me.title(D, C), x && Me.zoomOnClick(D, x), b && B(google.maps.event.addListener(D, et.onMouseOut, b)), y && X(google.maps.event.addListener(D, et.onMouseOver, y)), I && Y(google.maps.event.addListener(D, et.onClick, I)), k && Z(google.maps.event.addListener(D, et.onClusteringBegin, k)),
|
2235
|
-
|
2234
|
+
return o && Me.averageCenter(D, o), r && Me.batchSizeIE(D, r), i && Me.calculator(D, i), s && Me.clusterClass(D, s), a && Me.enableRetinaIcons(D, a), l && Me.gridSize(D, l), u && Me.ignoreHidden(D, u), d && Me.imageExtension(D, d), f && Me.imagePath(D, f), c && Me.imageSizes(D, c), p && Me.maxZoom(D, p), w && Me.minimumClusterSize(D, w), m && Me.styles(D, m), C && Me.title(D, C), x && Me.zoomOnClick(D, x), b && B(google.maps.event.addListener(D, et.onMouseOut, b)), y && X(google.maps.event.addListener(D, et.onMouseOver, y)), I && Y(google.maps.event.addListener(D, et.onClick, I)), k && Z(google.maps.event.addListener(D, et.onClusteringBegin, k)), _ && E(google.maps.event.addListener(D, et.onClusteringEnd, _)), U(D), P && P(D), function() {
|
2235
|
+
R !== null && google.maps.event.removeListener(R), L !== null && google.maps.event.removeListener(L), W !== null && google.maps.event.removeListener(W), A !== null && google.maps.event.removeListener(A), S !== null && google.maps.event.removeListener(S), T && T(D);
|
2236
2236
|
};
|
2237
2237
|
}
|
2238
2238
|
}, []), O !== null && e(O) || null;
|
@@ -2431,7 +2431,7 @@ var fi = (
|
|
2431
2431
|
onDomReady: "domready",
|
2432
2432
|
onPositionChanged: "position_changed",
|
2433
2433
|
onZindexChanged: "zindex_changed"
|
2434
|
-
},
|
2434
|
+
}, _o = {
|
2435
2435
|
options: function(t, e) {
|
2436
2436
|
t.setOptions(e);
|
2437
2437
|
},
|
@@ -2446,7 +2446,7 @@ var fi = (
|
|
2446
2446
|
}
|
2447
2447
|
}, Ys = {};
|
2448
2448
|
function Gs(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 = M(null), m = w[0], C = w[1], x = M(null), I = x[0], k = x[1],
|
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 = M(null), m = w[0], C = w[1], x = M(null), I = x[0], k = x[1], _ = M(null), y = _[0], b = _[1], P = M(null), T = P[0], F = P[1], O = M(null), U = O[0], Q = O[1], z = M(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() {
|
@@ -2498,7 +2498,7 @@ Ze(Gs);
|
|
2498
2498
|
o && !(o instanceof google.maps.LatLng) && (i = new google.maps.LatLng(o.lat, o.lng));
|
2499
2499
|
var s = new fi(te(te({}, r), i ? { position: i } : {}));
|
2500
2500
|
this.containerElement = document.createElement("div"), this.registeredEvents = pe({
|
2501
|
-
updaterMap:
|
2501
|
+
updaterMap: _o,
|
2502
2502
|
eventMap: Io,
|
2503
2503
|
prevProps: {},
|
2504
2504
|
nextProps: this.props,
|
@@ -2507,7 +2507,7 @@ Ze(Gs);
|
|
2507
2507
|
}, e.prototype.componentDidUpdate = function(n) {
|
2508
2508
|
var o = this.state.infoBox;
|
2509
2509
|
o !== null && (me(this.registeredEvents), this.registeredEvents = pe({
|
2510
|
-
updaterMap:
|
2510
|
+
updaterMap: _o,
|
2511
2511
|
eventMap: Io,
|
2512
2512
|
prevProps: n,
|
2513
2513
|
nextProps: this.props,
|
@@ -2544,7 +2544,7 @@ var qs = function t(e, n) {
|
|
2544
2544
|
return !0;
|
2545
2545
|
}
|
2546
2546
|
return e !== e && n !== n;
|
2547
|
-
},
|
2547
|
+
}, Ro = /* @__PURE__ */ ii(qs);
|
2548
2548
|
const Do = [
|
2549
2549
|
Int8Array,
|
2550
2550
|
Uint8Array,
|
@@ -2873,16 +2873,16 @@ class Xs {
|
|
2873
2873
|
l[I + xt] > n && (C += l[I + mt]);
|
2874
2874
|
}
|
2875
2875
|
if (C > m && C >= s) {
|
2876
|
-
let x = c * m, I = p * m, k,
|
2876
|
+
let x = c * m, I = p * m, k, _ = -1;
|
2877
2877
|
const y = ((f / d | 0) << 5) + (n + 1) + this.points.length;
|
2878
2878
|
for (const b of w) {
|
2879
2879
|
const P = b * d;
|
2880
2880
|
if (l[P + xt] <= n) continue;
|
2881
2881
|
l[P + xt] = n;
|
2882
2882
|
const T = l[P + mt];
|
2883
|
-
x += l[P] * T, I += l[P + 1] * T, l[P + Tn] = y, i && (k || (k = this._map(l, f, !0),
|
2883
|
+
x += l[P] * T, I += l[P + 1] * T, l[P + Tn] = y, i && (k || (k = this._map(l, f, !0), _ = this.clusterProps.length, this.clusterProps.push(k)), i(k, this._map(l, P)));
|
2884
2884
|
}
|
2885
|
-
l[f + Tn] = y, u.push(x / C, I / C, 1 / 0, y, -1, C), i && u.push(
|
2885
|
+
l[f + Tn] = y, u.push(x / C, I / C, 1 / 0, y, -1, C), i && u.push(_);
|
2886
2886
|
} else {
|
2887
2887
|
for (let x = 0; x < d; x++) u.push(l[f + x]);
|
2888
2888
|
if (C > 1)
|
@@ -3062,7 +3062,7 @@ class oa extends ta {
|
|
3062
3062
|
calculate(e) {
|
3063
3063
|
let n = !1;
|
3064
3064
|
const o = { zoom: e.map.getZoom() };
|
3065
|
-
if (!
|
3065
|
+
if (!Ro(e.markers, this.markers)) {
|
3066
3066
|
n = !0, this.markers = [...e.markers];
|
3067
3067
|
const r = this.markers.map((i) => {
|
3068
3068
|
const s = Xe.getPosition(i);
|
@@ -3077,7 +3077,7 @@ class oa extends ta {
|
|
3077
3077
|
});
|
3078
3078
|
this.superCluster.load(r);
|
3079
3079
|
}
|
3080
|
-
return n || (this.state.zoom <= this.maxZoom || o.zoom <= this.maxZoom) && (n = !
|
3080
|
+
return n || (this.state.zoom <= this.maxZoom || o.zoom <= this.maxZoom) && (n = !Ro(this.state, o)), this.state = o, n && (this.clusters = this.cluster(e)), { clusters: this.clusters, changed: n };
|
3081
3081
|
}
|
3082
3082
|
cluster({ map: e }) {
|
3083
3083
|
return this.superCluster.getClusters([-180, -90, 180, 90], Math.round(e.getZoom())).map((n) => this.transformCluster(n));
|
@@ -3299,7 +3299,7 @@ var Bo = {
|
|
3299
3299
|
}
|
3300
3300
|
};
|
3301
3301
|
function da(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 = M(null), m = w[0], C = w[1], x = M(null), I = x[0], k = x[1],
|
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 = M(null), m = w[0], C = w[1], x = M(null), I = x[0], k = x[1], _ = M(null), y = _[0], b = _[1], P = M(null), T = P[0], F = P[1], O = M(null), U = O[0], Q = O[1], z = M(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() {
|
@@ -3398,7 +3398,7 @@ var zo = {
|
|
3398
3398
|
}
|
3399
3399
|
}, fa = {};
|
3400
3400
|
function pa(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, I = t.onUnmount, k = Pe(ce),
|
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, I = t.onUnmount, k = Pe(ce), _ = M(null), y = _[0], b = _[1], P = M(null), T = P[0], F = P[1], O = M(null), U = O[0], Q = O[1], z = M(null), W = z[0], Y = z[1], V = M(null), A = V[0], Z = V[1], ee = M(null), S = ee[0], E = ee[1], j = M(null), R = j[0], B = j[1], q = M(null), L = q[0], X = q[1], J = M(null), D = J[0], K = J[1], re = M(null), N = re[0], de = re[1], Ce = M(null), ve = Ce[0], he = Ce[1], Te = M(null), Se = Te[0], ue = Te[1];
|
3402
3402
|
return h(function() {
|
3403
3403
|
y !== null && y.setMap(k);
|
3404
3404
|
}, [k]), h(function() {
|
@@ -3422,7 +3422,7 @@ function pa(t) {
|
|
3422
3422
|
}, [u]), h(function() {
|
3423
3423
|
y && d && (S !== null && google.maps.event.removeListener(S), E(google.maps.event.addListener(y, "mousemove", d)));
|
3424
3424
|
}, [d]), h(function() {
|
3425
|
-
y && f && (
|
3425
|
+
y && f && (R !== null && google.maps.event.removeListener(R), B(google.maps.event.addListener(y, "mouseout", f)));
|
3426
3426
|
}, [f]), h(function() {
|
3427
3427
|
y && c && (L !== null && google.maps.event.removeListener(L), X(google.maps.event.addListener(y, "mouseover", c)));
|
3428
3428
|
}, [c]), h(function() {
|
@@ -3436,7 +3436,7 @@ function pa(t) {
|
|
3436
3436
|
}, [C]), h(function() {
|
3437
3437
|
var ie = new google.maps.Polyline(te(te({}, e || fa), { map: k }));
|
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
|
-
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), S !== null && google.maps.event.removeListener(S),
|
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), S !== null && google.maps.event.removeListener(S), 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), I && I(ie), ie.setMap(null);
|
3440
3440
|
};
|
3441
3441
|
}, []), null;
|
3442
3442
|
}
|
@@ -3514,7 +3514,7 @@ var Fo = {
|
|
3514
3514
|
}
|
3515
3515
|
};
|
3516
3516
|
function ha(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, I = t.onLoad, k = t.onUnmount,
|
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, I = t.onLoad, k = t.onUnmount, _ = t.onEdit, y = Pe(ce), b = M(null), P = b[0], T = b[1], F = M(null), O = F[0], U = F[1], Q = M(null), z = Q[0], W = Q[1], Y = M(null), V = Y[0], A = Y[1], Z = M(null), ee = Z[0], S = Z[1], E = M(null), j = E[0], R = E[1], B = M(null), q = B[0], L = B[1], X = M(null), J = X[0], D = X[1], K = M(null), re = K[0], N = K[1], de = M(null), Ce = de[0], ve = de[1], he = M(null), Te = he[0], Se = he[1], ue = M(null), ie = ue[0], $e = ue[1];
|
3518
3518
|
return h(function() {
|
3519
3519
|
P !== null && P.setMap(y);
|
3520
3520
|
}, [y]), h(function() {
|
@@ -3533,18 +3533,18 @@ function ha(t) {
|
|
3533
3533
|
P && a && (O !== null && google.maps.event.removeListener(O), U(google.maps.event.addListener(P, "dblclick", a)));
|
3534
3534
|
}, [a]), h(function() {
|
3535
3535
|
P && (google.maps.event.addListener(P.getPath(), "insert_at", function() {
|
3536
|
-
|
3536
|
+
_ == null || _(P);
|
3537
3537
|
}), google.maps.event.addListener(P.getPath(), "set_at", function() {
|
3538
|
-
|
3538
|
+
_ == null || _(P);
|
3539
3539
|
}));
|
3540
|
-
}, [P,
|
3540
|
+
}, [P, _]), h(function() {
|
3541
3541
|
P && l && (z !== null && google.maps.event.removeListener(z), W(google.maps.event.addListener(P, "dragend", l)));
|
3542
3542
|
}, [l]), h(function() {
|
3543
3543
|
P && u && (V !== null && google.maps.event.removeListener(V), A(google.maps.event.addListener(P, "dragstart", u)));
|
3544
3544
|
}, [u]), h(function() {
|
3545
3545
|
P && d && (ee !== null && google.maps.event.removeListener(ee), S(google.maps.event.addListener(P, "mousedown", d)));
|
3546
3546
|
}, [d]), h(function() {
|
3547
|
-
P && f && (j !== null && google.maps.event.removeListener(j),
|
3547
|
+
P && f && (j !== null && google.maps.event.removeListener(j), R(google.maps.event.addListener(P, "mousemove", f)));
|
3548
3548
|
}, [f]), h(function() {
|
3549
3549
|
P && c && (q !== null && google.maps.event.removeListener(q), L(google.maps.event.addListener(P, "mouseout", c)));
|
3550
3550
|
}, [c]), h(function() {
|
@@ -3559,7 +3559,7 @@ function ha(t) {
|
|
3559
3559
|
P && x && (ie !== null && google.maps.event.removeListener(ie), $e(google.maps.event.addListener(P, "drag", x)));
|
3560
3560
|
}, [x]), h(function() {
|
3561
3561
|
var le = new google.maps.Polygon(te(te({}, e || {}), { map: y }));
|
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 && S(google.maps.event.addListener(le, "mousedown", d)), f &&
|
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 && S(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), I && I(le), function() {
|
3563
3563
|
O !== null && google.maps.event.removeListener(O), 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), k && k(le), le.setMap(null);
|
3564
3564
|
};
|
3565
3565
|
}, []), null;
|
@@ -3636,10 +3636,10 @@ var Ho = {
|
|
3636
3636
|
}
|
3637
3637
|
};
|
3638
3638
|
function ga(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, I = t.onLoad, k = t.onUnmount,
|
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, I = t.onLoad, k = t.onUnmount, _ = Pe(ce), y = M(null), b = y[0], P = y[1], T = M(null), F = T[0], O = T[1], U = M(null), Q = U[0], z = U[1], W = M(null), Y = W[0], V = W[1], A = M(null), Z = A[0], ee = A[1], S = M(null), E = S[0], j = S[1], R = M(null), B = R[0], q = R[1], L = M(null), X = L[0], J = L[1], D = M(null), K = D[0], re = D[1], N = M(null), de = N[0], Ce = N[1], ve = M(null), he = ve[0], Te = ve[1], Se = M(null), ue = Se[0], ie = Se[1], $e = M(null), le = $e[0], ze = $e[1];
|
3640
3640
|
return h(function() {
|
3641
|
-
b !== null && b.setMap(
|
3642
|
-
}, [
|
3641
|
+
b !== null && b.setMap(_);
|
3642
|
+
}, [_]), h(function() {
|
3643
3643
|
typeof e < "u" && b !== null && b.setOptions(e);
|
3644
3644
|
}, [b, e]), h(function() {
|
3645
3645
|
typeof o < "u" && b !== null && b.setDraggable(o);
|
@@ -3674,7 +3674,7 @@ function ga(t) {
|
|
3674
3674
|
}, [C]), h(function() {
|
3675
3675
|
b && x && (le !== null && google.maps.event.removeListener(le), ze(google.maps.event.addListener(b, "bounds_changed", x)));
|
3676
3676
|
}, [x]), h(function() {
|
3677
|
-
var ne = new google.maps.Rectangle(te(te({}, e || {}), { map:
|
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 && O(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)), P(ne), I && I(ne), function() {
|
3679
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), k && k(ne), ne.setMap(null);
|
3680
3680
|
};
|
@@ -3756,7 +3756,7 @@ var Zo = {
|
|
3756
3756
|
}
|
3757
3757
|
}, ma = {};
|
3758
3758
|
function va(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, I = t.onCenterChanged, k = t.onRadiusChanged,
|
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, I = t.onCenterChanged, k = t.onRadiusChanged, _ = t.onLoad, y = t.onUnmount, b = Pe(ce), P = M(null), T = P[0], F = P[1], O = M(null), U = O[0], Q = O[1], z = M(null), W = z[0], Y = z[1], V = M(null), A = V[0], Z = V[1], ee = M(null), S = ee[0], E = ee[1], j = M(null), R = j[0], B = j[1], q = M(null), L = q[0], X = q[1], J = M(null), D = J[0], K = J[1], re = M(null), N = re[0], de = re[1], Ce = M(null), ve = Ce[0], he = Ce[1], Te = M(null), Se = Te[0], ue = Te[1], ie = M(null), $e = ie[0], le = ie[1], ze = M(null), ne = ze[0], Ye = ze[1], Qe = M(null), Be = Qe[0], ot = Qe[1];
|
3760
3760
|
return h(function() {
|
3761
3761
|
T !== null && T.setMap(b);
|
3762
3762
|
}, [b]), h(function() {
|
@@ -3780,7 +3780,7 @@ function va(t) {
|
|
3780
3780
|
}, [u]), h(function() {
|
3781
3781
|
T && d && (S !== null && google.maps.event.removeListener(S), E(google.maps.event.addListener(T, "mousedown", d)));
|
3782
3782
|
}, [d]), h(function() {
|
3783
|
-
T && f && (
|
3783
|
+
T && f && (R !== null && google.maps.event.removeListener(R), B(google.maps.event.addListener(T, "mousemove", f)));
|
3784
3784
|
}, [f]), h(function() {
|
3785
3785
|
T && c && (L !== null && google.maps.event.removeListener(L), X(google.maps.event.addListener(T, "mouseout", c)));
|
3786
3786
|
}, [c]), h(function() {
|
@@ -3799,8 +3799,8 @@ function va(t) {
|
|
3799
3799
|
T && k && (Be !== null && google.maps.event.removeListener(Be), ot(google.maps.event.addListener(T, "radius_changed", k)));
|
3800
3800
|
}, [k]), h(function() {
|
3801
3801
|
var ye = new google.maps.Circle(te(te({}, e || ma), { 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)), I && Ye(google.maps.event.addListener(ye, "center_changed", I)), k && ot(google.maps.event.addListener(ye, "radius_changed", k)), F(ye),
|
3803
|
-
U !== null && google.maps.event.removeListener(U), W !== null && google.maps.event.removeListener(W), A !== null && google.maps.event.removeListener(A), S !== null && google.maps.event.removeListener(S),
|
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)), I && Ye(google.maps.event.addListener(ye, "center_changed", I)), k && ot(google.maps.event.addListener(ye, "radius_changed", k)), F(ye), _ && _(ye), function() {
|
3803
|
+
U !== null && google.maps.event.removeListener(U), W !== null && google.maps.event.removeListener(W), A !== null && google.maps.event.removeListener(A), S !== null && google.maps.event.removeListener(S), 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), y && y(ye), ye.setMap(null);
|
3804
3804
|
};
|
3805
3805
|
}, []), null;
|
3806
3806
|
}
|
@@ -3901,7 +3901,7 @@ var Go = {
|
|
3901
3901
|
}
|
3902
3902
|
};
|
3903
3903
|
function ya(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), I = M(null), k = I[0],
|
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), I = M(null), k = I[0], _ = I[1], y = M(null), b = y[0], P = y[1], T = M(null), F = T[0], O = T[1], U = M(null), Q = U[0], z = U[1], W = M(null), Y = W[0], V = W[1], A = M(null), Z = A[0], ee = A[1], S = M(null), E = S[0], j = S[1], R = M(null), B = R[0], q = R[1], L = M(null), X = L[0], J = L[1], D = M(null), K = D[0], re = D[1], N = M(null), de = N[0], Ce = N[1], ve = M(null), he = ve[0], Te = ve[1], Se = M(null), ue = Se[0], ie = Se[1], $e = M(null), le = $e[0], ze = $e[1];
|
3905
3905
|
return h(function() {
|
3906
3906
|
k !== null && k.setMap(x);
|
3907
3907
|
}, [x]), h(function() {
|
@@ -3933,7 +3933,7 @@ function ya(t) {
|
|
3933
3933
|
}, [w]), h(function() {
|
3934
3934
|
if (x !== null) {
|
3935
3935
|
var ne = new google.maps.Data(te(te({}, e || {}), { map: x }));
|
3936
|
-
o && P(google.maps.event.addListener(ne, "dblclick", o)), r && O(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)),
|
3936
|
+
o && P(google.maps.event.addListener(ne, "dblclick", o)), r && O(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
|
k && (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(k), k.setMap(null));
|
@@ -4771,7 +4771,7 @@ function qc(t) {
|
|
4771
4771
|
value: l,
|
4772
4772
|
...u
|
4773
4773
|
} = t, { id: d, inputRef: f, error: c } = tt(), p = r || !!c, [w, m] = M(i || !1), C = typeof s == "boolean" ? s : w, k = `arkynCheckbox ${o} ${p ? "errorTrue" : "errorFalse"} ${C ? "checkedTrue" : "checkedFalse"} ${n}`;
|
4774
|
-
function
|
4774
|
+
function _() {
|
4775
4775
|
const y = w;
|
4776
4776
|
m(!y), a && a(y ? "" : l || "checked");
|
4777
4777
|
}
|
@@ -4781,7 +4781,7 @@ function qc(t) {
|
|
4781
4781
|
id: d,
|
4782
4782
|
type: "button",
|
4783
4783
|
className: k,
|
4784
|
-
onClick:
|
4784
|
+
onClick: _,
|
4785
4785
|
...u,
|
4786
4786
|
children: [
|
4787
4787
|
/* @__PURE__ */ v.jsx(
|
@@ -4856,7 +4856,7 @@ const ro = {
|
|
4856
4856
|
CPF: "999.999.999-999",
|
4857
4857
|
CNPJ: "99.999.999/9999-99"
|
4858
4858
|
}, Ci = oo(ro.CNPJ).length;
|
4859
|
-
function
|
4859
|
+
function _a(t, e) {
|
4860
4860
|
const {
|
4861
4861
|
isLoading: n,
|
4862
4862
|
isError: o,
|
@@ -4877,7 +4877,7 @@ function Ra(t, e) {
|
|
4877
4877
|
onChange: I,
|
4878
4878
|
...k
|
4879
4879
|
} = t;
|
4880
|
-
function
|
4880
|
+
function _(W) {
|
4881
4881
|
let Y = oo(W);
|
4882
4882
|
const V = Li(Y);
|
4883
4883
|
if (!(Y.length > Ci))
|
@@ -4891,7 +4891,7 @@ function Ra(t, e) {
|
|
4891
4891
|
sufix: yt(l, z, "sufix"),
|
4892
4892
|
LeftIcon: u,
|
4893
4893
|
RightIcon: d,
|
4894
|
-
defaultValue:
|
4894
|
+
defaultValue: _(c || ""),
|
4895
4895
|
disabled: f,
|
4896
4896
|
readOnly: p,
|
4897
4897
|
onFocus: w,
|
@@ -4905,7 +4905,7 @@ function Ra(t, e) {
|
|
4905
4905
|
...k
|
4906
4906
|
};
|
4907
4907
|
}
|
4908
|
-
function
|
4908
|
+
function Ra(t) {
|
4909
4909
|
const [e, n] = M(!1), o = Je(null), { inputRef: r, id: i, error: s } = tt(), a = r || o, l = t.isError || !!s, {
|
4910
4910
|
disabled: u,
|
4911
4911
|
title: d,
|
@@ -4918,7 +4918,7 @@ function _a(t) {
|
|
4918
4918
|
isLoading: x,
|
4919
4919
|
LeftIcon: I,
|
4920
4920
|
readOnly: k,
|
4921
|
-
onFocus:
|
4921
|
+
onFocus: _,
|
4922
4922
|
onBlur: y,
|
4923
4923
|
RightIcon: b,
|
4924
4924
|
Spinner: P,
|
@@ -4926,17 +4926,17 @@ function _a(t) {
|
|
4926
4926
|
value: F,
|
4927
4927
|
defaultValue: O,
|
4928
4928
|
...U
|
4929
|
-
} =
|
4929
|
+
} = _a({ ...t, id: i, isError: l }, e), [Q, z] = M(O), W = I && !x, Y = b && !x, V = C === "left" && x, A = C === "right" && x;
|
4930
4930
|
function Z() {
|
4931
4931
|
u || !(a != null && a.current) || (n(!0), a.current.focus());
|
4932
4932
|
}
|
4933
4933
|
function ee(j) {
|
4934
|
-
let
|
4935
|
-
const B = Li(
|
4936
|
-
|
4934
|
+
let R = oo(j.target.value);
|
4935
|
+
const B = Li(R);
|
4936
|
+
R.length > Ci || (R = bi(R, ro[B]), j.target.value = R, z(R), T && T(j));
|
4937
4937
|
}
|
4938
4938
|
function S(j) {
|
4939
|
-
n(!0),
|
4939
|
+
n(!0), _ && _(j);
|
4940
4940
|
}
|
4941
4941
|
function E(j) {
|
4942
4942
|
n(!1), y && y(j);
|
@@ -5007,7 +5007,7 @@ function Na(t, e) {
|
|
5007
5007
|
max: x = 1e9,
|
5008
5008
|
locale: I = "pt-BR",
|
5009
5009
|
currency: k = "BRL",
|
5010
|
-
...
|
5010
|
+
..._
|
5011
5011
|
} = t, y = 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];
|
5012
5012
|
return {
|
5013
5013
|
isLoading: n,
|
@@ -5029,7 +5029,7 @@ function Na(t, e) {
|
|
5029
5029
|
loadingPosition: y,
|
5030
5030
|
iconSize: z,
|
5031
5031
|
Spinner: /* @__PURE__ */ v.jsx(kt, { className: "spinner", size: z, strokeWidth: 2.5 }),
|
5032
|
-
...
|
5032
|
+
..._
|
5033
5033
|
};
|
5034
5034
|
}
|
5035
5035
|
function $a(t) {
|
@@ -5043,7 +5043,7 @@ function $a(t) {
|
|
5043
5043
|
iconSize: x,
|
5044
5044
|
loadingPosition: I,
|
5045
5045
|
isLoading: k,
|
5046
|
-
LeftIcon:
|
5046
|
+
LeftIcon: _,
|
5047
5047
|
readOnly: y,
|
5048
5048
|
onFocus: b,
|
5049
5049
|
onBlur: P,
|
@@ -5058,8 +5058,8 @@ function $a(t) {
|
|
5058
5058
|
name: V,
|
5059
5059
|
defaultValue: A,
|
5060
5060
|
...Z
|
5061
|
-
} = Na({ ...t, id: a, isError: d }, e), ee =
|
5062
|
-
function
|
5061
|
+
} = Na({ ...t, id: a, isError: d }, e), ee = _ && !k, S = T && !k, E = I === "left" && k, j = I === "right" && k;
|
5062
|
+
function R() {
|
5063
5063
|
f || !(u != null && u.current) || (n(!0), u.current.focus());
|
5064
5064
|
}
|
5065
5065
|
function B(D) {
|
@@ -5088,12 +5088,12 @@ function $a(t) {
|
|
5088
5088
|
{
|
5089
5089
|
title: c,
|
5090
5090
|
style: p,
|
5091
|
-
onClick:
|
5091
|
+
onClick: R,
|
5092
5092
|
className: w,
|
5093
5093
|
children: [
|
5094
5094
|
m,
|
5095
5095
|
E && F,
|
5096
|
-
ee && /* @__PURE__ */ v.jsx(
|
5096
|
+
ee && /* @__PURE__ */ v.jsx(_, { size: x, strokeWidth: 2.5 }),
|
5097
5097
|
/* @__PURE__ */ v.jsx(
|
5098
5098
|
"input",
|
5099
5099
|
{
|
@@ -5143,7 +5143,7 @@ function Ba(t, e) {
|
|
5143
5143
|
onChange: x,
|
5144
5144
|
showMask: I = !1,
|
5145
5145
|
type: k,
|
5146
|
-
...
|
5146
|
+
..._
|
5147
5147
|
} = t, y = 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];
|
5148
5148
|
return {
|
5149
5149
|
isLoading: n,
|
@@ -5163,7 +5163,7 @@ function Ba(t, e) {
|
|
5163
5163
|
iconSize: z,
|
5164
5164
|
showMask: I,
|
5165
5165
|
Spinner: /* @__PURE__ */ v.jsx(kt, { className: "spinner", size: z, strokeWidth: 2.5 }),
|
5166
|
-
...
|
5166
|
+
..._
|
5167
5167
|
};
|
5168
5168
|
}
|
5169
5169
|
const Aa = Xi((t, e) => /* @__PURE__ */ v.jsx("input", { ref: e, ...t }));
|
@@ -5180,7 +5180,7 @@ function za(t) {
|
|
5180
5180
|
isLoading: x,
|
5181
5181
|
LeftIcon: I,
|
5182
5182
|
readOnly: k,
|
5183
|
-
onFocus:
|
5183
|
+
onFocus: _,
|
5184
5184
|
onBlur: y,
|
5185
5185
|
RightIcon: b,
|
5186
5186
|
Spinner: P,
|
@@ -5190,7 +5190,7 @@ function za(t) {
|
|
5190
5190
|
u || !(a != null && a.current) || (n(!0), a.current.focus());
|
5191
5191
|
}
|
5192
5192
|
function W(V) {
|
5193
|
-
n(!0),
|
5193
|
+
n(!0), _ && _(V);
|
5194
5194
|
}
|
5195
5195
|
function Y(V) {
|
5196
5196
|
n(!1), y && y(V);
|
@@ -5277,7 +5277,7 @@ function Fa(t) {
|
|
5277
5277
|
isLoading: x,
|
5278
5278
|
LeftIcon: I,
|
5279
5279
|
readOnly: k,
|
5280
|
-
onFocus:
|
5280
|
+
onFocus: _,
|
5281
5281
|
onBlur: y,
|
5282
5282
|
RightIcon: b,
|
5283
5283
|
type: P,
|
@@ -5288,7 +5288,7 @@ function Fa(t) {
|
|
5288
5288
|
u || !(a != null && a.current) || (n(!0), a.current.focus());
|
5289
5289
|
}
|
5290
5290
|
function Y(A) {
|
5291
|
-
n(!0),
|
5291
|
+
n(!0), _ && _(A);
|
5292
5292
|
}
|
5293
5293
|
function V(A) {
|
5294
5294
|
n(!1), y && y(A);
|
@@ -5333,7 +5333,7 @@ function Fa(t) {
|
|
5333
5333
|
);
|
5334
5334
|
}
|
5335
5335
|
function hr(t) {
|
5336
|
-
return t.type === "currency" ? /* @__PURE__ */ v.jsx($a, { ...t }) : t.type === "masked" ? /* @__PURE__ */ v.jsx(za, { ...t }) : t.type === "cpf-cnpj" ? /* @__PURE__ */ v.jsx(
|
5336
|
+
return t.type === "currency" ? /* @__PURE__ */ v.jsx($a, { ...t }) : t.type === "masked" ? /* @__PURE__ */ v.jsx(za, { ...t }) : t.type === "cpf-cnpj" ? /* @__PURE__ */ v.jsx(Ra, { ...t }) : /* @__PURE__ */ v.jsx(Fa, { ...t });
|
5337
5337
|
}
|
5338
5338
|
const xi = st({});
|
5339
5339
|
function Wa() {
|
@@ -5446,7 +5446,7 @@ function td(t) {
|
|
5446
5446
|
value: x = null,
|
5447
5447
|
defaultValue: I = "",
|
5448
5448
|
onFocus: k,
|
5449
|
-
onBlur:
|
5449
|
+
onBlur: _,
|
5450
5450
|
Spinner: y,
|
5451
5451
|
name: b,
|
5452
5452
|
placeholder: P,
|
@@ -5459,17 +5459,17 @@ function td(t) {
|
|
5459
5459
|
function Y() {
|
5460
5460
|
u || !(a != null && a.current) || e || (n(!0), a.current.focus());
|
5461
5461
|
}
|
5462
|
-
function V(
|
5463
|
-
e || (n(!0), k && k(
|
5462
|
+
function V(R) {
|
5463
|
+
e || (n(!0), k && k(R));
|
5464
5464
|
}
|
5465
5465
|
function A() {
|
5466
|
-
n(!1),
|
5466
|
+
n(!1), _ && a.current && a.current.blur();
|
5467
5467
|
}
|
5468
|
-
function Z(
|
5469
|
-
const { label: B, value: q } =
|
5468
|
+
function Z(R) {
|
5469
|
+
const { label: B, value: q } = R;
|
5470
5470
|
W(z !== q ? q : ""), T && T({ label: B, value: q }), U && A();
|
5471
5471
|
}
|
5472
|
-
const ee = typeof x == "string" ? x : z, S = ((j = F.find((
|
5472
|
+
const ee = typeof x == "string" ? x : z, S = ((j = F.find((R) => R.value === ee)) == null ? void 0 : j.label) || "", E = () => {
|
5473
5473
|
if (!e && S) return !0;
|
5474
5474
|
if (!e && !S) return !1;
|
5475
5475
|
if (e && S) return !0;
|
@@ -5512,13 +5512,13 @@ function td(t) {
|
|
5512
5512
|
className: "arkyn_select_content",
|
5513
5513
|
style: { overflow: "auto", maxHeight: O },
|
5514
5514
|
children: [
|
5515
|
-
F.map(({ label:
|
5515
|
+
F.map(({ label: R, value: B }) => /* @__PURE__ */ v.jsxs(
|
5516
5516
|
"div",
|
5517
5517
|
{
|
5518
|
-
onClick: () => Z({ label:
|
5518
|
+
onClick: () => Z({ label: R, value: B }),
|
5519
5519
|
className: ee === B ? "arkyn_select_option active" : "arkyn_select_option",
|
5520
5520
|
children: [
|
5521
|
-
|
5521
|
+
R,
|
5522
5522
|
" ",
|
5523
5523
|
/* @__PURE__ */ v.jsx(Kr, {})
|
5524
5524
|
]
|
@@ -5625,24 +5625,34 @@ function od(t) {
|
|
5625
5625
|
}
|
5626
5626
|
function rd({
|
5627
5627
|
googleMapsApiKey: t,
|
5628
|
-
|
5629
|
-
|
5630
|
-
|
5631
|
-
...r
|
5628
|
+
onChange: e,
|
5629
|
+
options: n,
|
5630
|
+
...o
|
5632
5631
|
}) {
|
5632
|
+
const [r, i] = M(null), s = (l) => i(l), a = () => {
|
5633
|
+
const u = r.getPlaces()[0], d = u == null ? void 0 : u.address_components;
|
5634
|
+
function f(c) {
|
5635
|
+
const p = d.find((w) => w.types[0] === c);
|
5636
|
+
return p ? p.long_name : "";
|
5637
|
+
}
|
5638
|
+
if (u) {
|
5639
|
+
const c = f("route"), p = f("sublocality_level_1"), w = f("administrative_area_level_2"), m = f("administrative_area_level_1"), C = f("postal_code");
|
5640
|
+
e && e({ street: c, city: w, state: m, district: p, cep: C });
|
5641
|
+
}
|
5642
|
+
};
|
5633
5643
|
return /* @__PURE__ */ v.jsx(
|
5634
5644
|
ci,
|
5635
5645
|
{
|
5636
5646
|
libraries: ["places"],
|
5637
5647
|
googleMapsApiKey: t,
|
5638
|
-
loadingElement: /* @__PURE__ */ v.jsx(hr, { type: "text", ...
|
5648
|
+
loadingElement: /* @__PURE__ */ v.jsx(hr, { type: "text", ...o }),
|
5639
5649
|
children: /* @__PURE__ */ v.jsx(
|
5640
5650
|
Ia,
|
5641
5651
|
{
|
5642
|
-
onLoad:
|
5643
|
-
onPlacesChanged:
|
5644
|
-
options:
|
5645
|
-
children: /* @__PURE__ */ v.jsx(hr, { type: "text", ...
|
5652
|
+
onLoad: s,
|
5653
|
+
onPlacesChanged: a,
|
5654
|
+
options: n,
|
5655
|
+
children: /* @__PURE__ */ v.jsx(hr, { type: "text", ...o })
|
5646
5656
|
}
|
5647
5657
|
)
|
5648
5658
|
}
|
@@ -5775,9 +5785,9 @@ function ld(t) {
|
|
5775
5785
|
left: "0px",
|
5776
5786
|
transition: "none"
|
5777
5787
|
}), w = (C, x) => {
|
5778
|
-
const I = C.getBoundingClientRect(), k = d.current.getBoundingClientRect(),
|
5788
|
+
const I = C.getBoundingClientRect(), k = d.current.getBoundingClientRect(), _ = x ? void 0 : "none";
|
5779
5789
|
u(!1), p({
|
5780
|
-
transition:
|
5790
|
+
transition: _,
|
5781
5791
|
width: `${I.width}px`,
|
5782
5792
|
left: `${I.left - k.left}px`
|
5783
5793
|
});
|
@@ -6018,7 +6028,7 @@ function al(t, e, n) {
|
|
6018
6028
|
function k() {
|
6019
6029
|
a !== void 0 && clearTimeout(a), u = 0, o = l = r = a = void 0;
|
6020
6030
|
}
|
6021
|
-
function
|
6031
|
+
function _() {
|
6022
6032
|
return a === void 0 ? s : I(On());
|
6023
6033
|
}
|
6024
6034
|
function y() {
|
@@ -6031,7 +6041,7 @@ function al(t, e, n) {
|
|
6031
6041
|
}
|
6032
6042
|
return a === void 0 && (a = setTimeout(x, e)), s;
|
6033
6043
|
}
|
6034
|
-
return y.cancel = k, y.flush =
|
6044
|
+
return y.cancel = k, y.flush = _, y;
|
6035
6045
|
}
|
6036
6046
|
function ll(t, e, n) {
|
6037
6047
|
var o = !0, r = !0;
|
@@ -6166,7 +6176,7 @@ var ml = function(e) {
|
|
6166
6176
|
}
|
6167
6177
|
};
|
6168
6178
|
Vt.default = je;
|
6169
|
-
var
|
6179
|
+
var _t = {}, Yt = {};
|
6170
6180
|
Object.defineProperty(Yt, "__esModule", {
|
6171
6181
|
value: !0
|
6172
6182
|
});
|
@@ -6366,13 +6376,13 @@ var Ei = function(e) {
|
|
6366
6376
|
return n.scrollTop;
|
6367
6377
|
var o = window.pageXOffset !== void 0, r = (document.compatMode || "") === "CSS1Compat";
|
6368
6378
|
return o ? window.pageYOffset : r ? document.documentElement.scrollTop : document.body.scrollTop;
|
6369
|
-
},
|
6379
|
+
}, _l = function(e) {
|
6370
6380
|
var n = e.data.containerElement;
|
6371
6381
|
if (n && n !== document && n !== document.body)
|
6372
6382
|
return n.scrollWidth - n.offsetWidth;
|
6373
6383
|
var o = document.body, r = document.documentElement;
|
6374
6384
|
return Math.max(o.scrollWidth, o.offsetWidth, r.clientWidth, r.scrollWidth, r.offsetWidth);
|
6375
|
-
},
|
6385
|
+
}, Rl = function(e) {
|
6376
6386
|
var n = e.data.containerElement;
|
6377
6387
|
if (n && n !== document && n !== document.body)
|
6378
6388
|
return n.scrollHeight - n.offsetHeight;
|
@@ -6417,7 +6427,7 @@ var Ei = function(e) {
|
|
6417
6427
|
}, Nl = function(e, n) {
|
6418
6428
|
qt(e, xn(n));
|
6419
6429
|
}, $l = function(e) {
|
6420
|
-
e = xn(e), lo(e), qt(e.horizontal ?
|
6430
|
+
e = xn(e), lo(e), qt(e.horizontal ? _l(e) : Rl(e), e);
|
6421
6431
|
}, Bl = function(e, n) {
|
6422
6432
|
n = xn(n), lo(n);
|
6423
6433
|
var o = n.horizontal ? Pi(n) : Ti(n);
|
@@ -6431,7 +6441,7 @@ Ln.default = {
|
|
6431
6441
|
scrollTo: Nl,
|
6432
6442
|
scrollMore: Bl
|
6433
6443
|
};
|
6434
|
-
Object.defineProperty(
|
6444
|
+
Object.defineProperty(_t, "__esModule", {
|
6435
6445
|
value: !0
|
6436
6446
|
});
|
6437
6447
|
var Al = Object.assign || function(t) {
|
@@ -6446,7 +6456,7 @@ function uo(t) {
|
|
6446
6456
|
return t && t.__esModule ? t : { default: t };
|
6447
6457
|
}
|
6448
6458
|
var an = {}, yr = void 0;
|
6449
|
-
|
6459
|
+
_t.default = {
|
6450
6460
|
unmount: function() {
|
6451
6461
|
an = {};
|
6452
6462
|
},
|
@@ -6526,12 +6536,12 @@ function Vl() {
|
|
6526
6536
|
}
|
6527
6537
|
}
|
6528
6538
|
}
|
6529
|
-
function
|
6539
|
+
function _(y) {
|
6530
6540
|
return k(y) === u;
|
6531
6541
|
}
|
6532
6542
|
return ke.AsyncMode = l, ke.ConcurrentMode = u, ke.ContextConsumer = a, ke.ContextProvider = s, ke.Element = e, ke.ForwardRef = d, ke.Fragment = o, ke.Lazy = w, ke.Memo = p, ke.Portal = n, ke.Profiler = i, ke.StrictMode = r, ke.Suspense = f, ke.isAsyncMode = function(y) {
|
6533
|
-
return
|
6534
|
-
}, ke.isConcurrentMode =
|
6543
|
+
return _(y) || k(y) === l;
|
6544
|
+
}, ke.isConcurrentMode = _, ke.isContextConsumer = function(y) {
|
6535
6545
|
return k(y) === a;
|
6536
6546
|
}, ke.isContextProvider = function(y) {
|
6537
6547
|
return k(y) === s;
|
@@ -6574,7 +6584,7 @@ function Zl() {
|
|
6574
6584
|
return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
6575
6585
|
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 === I || N.$$typeof === m);
|
6576
6586
|
}
|
6577
|
-
function
|
6587
|
+
function _(N) {
|
6578
6588
|
if (typeof N == "object" && N !== null) {
|
6579
6589
|
var de = N.$$typeof;
|
6580
6590
|
switch (de) {
|
@@ -6608,45 +6618,45 @@ function Zl() {
|
|
6608
6618
|
}
|
6609
6619
|
var y = l, b = u, P = a, T = s, F = e, O = d, U = o, Q = w, z = p, W = n, Y = i, V = r, A = f, Z = !1;
|
6610
6620
|
function ee(N) {
|
6611
|
-
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), S(N) ||
|
6621
|
+
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), S(N) || _(N) === l;
|
6612
6622
|
}
|
6613
6623
|
function S(N) {
|
6614
|
-
return
|
6624
|
+
return _(N) === u;
|
6615
6625
|
}
|
6616
6626
|
function E(N) {
|
6617
|
-
return
|
6627
|
+
return _(N) === a;
|
6618
6628
|
}
|
6619
6629
|
function j(N) {
|
6620
|
-
return
|
6630
|
+
return _(N) === s;
|
6621
6631
|
}
|
6622
|
-
function
|
6632
|
+
function R(N) {
|
6623
6633
|
return typeof N == "object" && N !== null && N.$$typeof === e;
|
6624
6634
|
}
|
6625
6635
|
function B(N) {
|
6626
|
-
return
|
6636
|
+
return _(N) === d;
|
6627
6637
|
}
|
6628
6638
|
function q(N) {
|
6629
|
-
return
|
6639
|
+
return _(N) === o;
|
6630
6640
|
}
|
6631
6641
|
function L(N) {
|
6632
|
-
return
|
6642
|
+
return _(N) === w;
|
6633
6643
|
}
|
6634
6644
|
function X(N) {
|
6635
|
-
return
|
6645
|
+
return _(N) === p;
|
6636
6646
|
}
|
6637
6647
|
function J(N) {
|
6638
|
-
return
|
6648
|
+
return _(N) === n;
|
6639
6649
|
}
|
6640
6650
|
function D(N) {
|
6641
|
-
return
|
6651
|
+
return _(N) === i;
|
6642
6652
|
}
|
6643
6653
|
function K(N) {
|
6644
|
-
return
|
6654
|
+
return _(N) === r;
|
6645
6655
|
}
|
6646
6656
|
function re(N) {
|
6647
|
-
return
|
6657
|
+
return _(N) === f;
|
6648
6658
|
}
|
6649
|
-
Ee.AsyncMode = y, Ee.ConcurrentMode = b, Ee.ContextConsumer = P, Ee.ContextProvider = T, Ee.Element = F, Ee.ForwardRef = O, 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 = S, Ee.isContextConsumer = E, Ee.isContextProvider = j, Ee.isElement =
|
6659
|
+
Ee.AsyncMode = y, Ee.ConcurrentMode = b, Ee.ContextConsumer = P, Ee.ContextProvider = T, Ee.Element = F, Ee.ForwardRef = O, 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 = S, 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 = k, Ee.typeOf = _;
|
6650
6660
|
}()), Ee;
|
6651
6661
|
}
|
6652
6662
|
var Cr;
|
@@ -6658,9 +6668,9 @@ object-assign
|
|
6658
6668
|
(c) Sindre Sorhus
|
6659
6669
|
@license MIT
|
6660
6670
|
*/
|
6661
|
-
var
|
6671
|
+
var _n, xr;
|
6662
6672
|
function Yl() {
|
6663
|
-
if (xr) return
|
6673
|
+
if (xr) return _n;
|
6664
6674
|
xr = 1;
|
6665
6675
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
6666
6676
|
function o(i) {
|
@@ -6690,7 +6700,7 @@ function Yl() {
|
|
6690
6700
|
return !1;
|
6691
6701
|
}
|
6692
6702
|
}
|
6693
|
-
return
|
6703
|
+
return _n = r() ? Object.assign : function(i, s) {
|
6694
6704
|
for (var a, l = o(i), u, d = 1; d < arguments.length; d++) {
|
6695
6705
|
a = Object(arguments[d]);
|
6696
6706
|
for (var f in a)
|
@@ -6702,14 +6712,14 @@ function Yl() {
|
|
6702
6712
|
}
|
6703
6713
|
}
|
6704
6714
|
return l;
|
6705
|
-
},
|
6715
|
+
}, _n;
|
6706
6716
|
}
|
6707
|
-
var
|
6717
|
+
var Rn, wr;
|
6708
6718
|
function co() {
|
6709
|
-
if (wr) return
|
6719
|
+
if (wr) return Rn;
|
6710
6720
|
wr = 1;
|
6711
6721
|
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
6712
|
-
return
|
6722
|
+
return Rn = t, Rn;
|
6713
6723
|
}
|
6714
6724
|
var Dn, Mr;
|
6715
6725
|
function Ii() {
|
@@ -6799,7 +6809,7 @@ function ql() {
|
|
6799
6809
|
symbol: x("symbol"),
|
6800
6810
|
any: I(),
|
6801
6811
|
arrayOf: k,
|
6802
|
-
element:
|
6812
|
+
element: _(),
|
6803
6813
|
elementType: y(),
|
6804
6814
|
instanceOf: b,
|
6805
6815
|
node: O(),
|
@@ -6819,7 +6829,7 @@ function ql() {
|
|
6819
6829
|
function C(S) {
|
6820
6830
|
if (process.env.NODE_ENV !== "production")
|
6821
6831
|
var E = {}, j = 0;
|
6822
|
-
function
|
6832
|
+
function R(q, L, X, J, D, K, re) {
|
6823
6833
|
if (J = J || c, K = K || X, re !== n) {
|
6824
6834
|
if (l) {
|
6825
6835
|
var N = new Error(
|
@@ -6836,12 +6846,12 @@ function ql() {
|
|
6836
6846
|
}
|
6837
6847
|
return L[X] == null ? q ? L[X] === null ? new m("The " + D + " `" + K + "` is marked as required " + ("in `" + J + "`, but its value is `null`.")) : new m("The " + D + " `" + K + "` is marked as required in " + ("`" + J + "`, but its value is `undefined`.")) : null : S(L, X, J, D, K);
|
6838
6848
|
}
|
6839
|
-
var B =
|
6840
|
-
return B.isRequired =
|
6849
|
+
var B = R.bind(null, !1);
|
6850
|
+
return B.isRequired = R.bind(null, !0), B;
|
6841
6851
|
}
|
6842
6852
|
function x(S) {
|
6843
|
-
function E(j,
|
6844
|
-
var J = j[
|
6853
|
+
function E(j, R, B, q, L, X) {
|
6854
|
+
var J = j[R], D = V(J);
|
6845
6855
|
if (D !== S) {
|
6846
6856
|
var K = A(J);
|
6847
6857
|
return new m(
|
@@ -6857,10 +6867,10 @@ function ql() {
|
|
6857
6867
|
return C(s);
|
6858
6868
|
}
|
6859
6869
|
function k(S) {
|
6860
|
-
function E(j,
|
6870
|
+
function E(j, R, B, q, L) {
|
6861
6871
|
if (typeof S != "function")
|
6862
6872
|
return new m("Property `" + L + "` of component `" + B + "` has invalid PropType notation inside arrayOf.");
|
6863
|
-
var X = j[
|
6873
|
+
var X = j[R];
|
6864
6874
|
if (!Array.isArray(X)) {
|
6865
6875
|
var J = V(X);
|
6866
6876
|
return new m("Invalid " + q + " `" + L + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected an array."));
|
@@ -6874,32 +6884,32 @@ function ql() {
|
|
6874
6884
|
}
|
6875
6885
|
return C(E);
|
6876
6886
|
}
|
6877
|
-
function
|
6878
|
-
function S(E, j,
|
6887
|
+
function _() {
|
6888
|
+
function S(E, j, R, B, q) {
|
6879
6889
|
var L = E[j];
|
6880
6890
|
if (!a(L)) {
|
6881
6891
|
var X = V(L);
|
6882
|
-
return new m("Invalid " + B + " `" + q + "` of type " + ("`" + X + "` supplied to `" +
|
6892
|
+
return new m("Invalid " + B + " `" + q + "` of type " + ("`" + X + "` supplied to `" + R + "`, expected a single ReactElement."));
|
6883
6893
|
}
|
6884
6894
|
return null;
|
6885
6895
|
}
|
6886
6896
|
return C(S);
|
6887
6897
|
}
|
6888
6898
|
function y() {
|
6889
|
-
function S(E, j,
|
6899
|
+
function S(E, j, R, B, q) {
|
6890
6900
|
var L = E[j];
|
6891
6901
|
if (!t.isValidElementType(L)) {
|
6892
6902
|
var X = V(L);
|
6893
|
-
return new m("Invalid " + B + " `" + q + "` of type " + ("`" + X + "` supplied to `" +
|
6903
|
+
return new m("Invalid " + B + " `" + q + "` of type " + ("`" + X + "` supplied to `" + R + "`, expected a single ReactElement type."));
|
6894
6904
|
}
|
6895
6905
|
return null;
|
6896
6906
|
}
|
6897
6907
|
return C(S);
|
6898
6908
|
}
|
6899
6909
|
function b(S) {
|
6900
|
-
function E(j,
|
6901
|
-
if (!(j[
|
6902
|
-
var X = S.name || c, J = ee(j[
|
6910
|
+
function E(j, R, B, q, L) {
|
6911
|
+
if (!(j[R] instanceof S)) {
|
6912
|
+
var X = S.name || c, J = ee(j[R]);
|
6903
6913
|
return new m("Invalid " + q + " `" + L + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected ") + ("instance of `" + X + "`."));
|
6904
6914
|
}
|
6905
6915
|
return null;
|
@@ -6911,8 +6921,8 @@ function ql() {
|
|
6911
6921
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
6912
6922
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
6913
6923
|
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
|
6914
|
-
function E(j,
|
6915
|
-
for (var X = j[
|
6924
|
+
function E(j, R, B, q, L) {
|
6925
|
+
for (var X = j[R], J = 0; J < S.length; J++)
|
6916
6926
|
if (w(X, S[J]))
|
6917
6927
|
return null;
|
6918
6928
|
var D = JSON.stringify(S, function(re, N) {
|
@@ -6924,10 +6934,10 @@ function ql() {
|
|
6924
6934
|
return C(E);
|
6925
6935
|
}
|
6926
6936
|
function T(S) {
|
6927
|
-
function E(j,
|
6937
|
+
function E(j, R, B, q, L) {
|
6928
6938
|
if (typeof S != "function")
|
6929
6939
|
return new m("Property `" + L + "` of component `" + B + "` has invalid PropType notation inside objectOf.");
|
6930
|
-
var X = j[
|
6940
|
+
var X = j[R], J = V(X);
|
6931
6941
|
if (J !== "object")
|
6932
6942
|
return new m("Invalid " + q + " `" + L + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected an object."));
|
6933
6943
|
for (var D in X)
|
@@ -6950,7 +6960,7 @@ function ql() {
|
|
6950
6960
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z(j) + " at index " + E + "."
|
6951
6961
|
), s;
|
6952
6962
|
}
|
6953
|
-
function
|
6963
|
+
function R(B, q, L, X, J) {
|
6954
6964
|
for (var D = [], K = 0; K < S.length; K++) {
|
6955
6965
|
var re = S[K], N = re(B, q, L, X, J, n);
|
6956
6966
|
if (N == null)
|
@@ -6960,22 +6970,22 @@ function ql() {
|
|
6960
6970
|
var de = D.length > 0 ? ", expected one of type [" + D.join(", ") + "]" : "";
|
6961
6971
|
return new m("Invalid " + X + " `" + J + "` supplied to " + ("`" + L + "`" + de + "."));
|
6962
6972
|
}
|
6963
|
-
return C(
|
6973
|
+
return C(R);
|
6964
6974
|
}
|
6965
6975
|
function O() {
|
6966
|
-
function S(E, j,
|
6967
|
-
return W(E[j]) ? null : new m("Invalid " + B + " `" + q + "` supplied to " + ("`" +
|
6976
|
+
function S(E, j, R, B, q) {
|
6977
|
+
return W(E[j]) ? null : new m("Invalid " + B + " `" + q + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
|
6968
6978
|
}
|
6969
6979
|
return C(S);
|
6970
6980
|
}
|
6971
|
-
function U(S, E, j,
|
6981
|
+
function U(S, E, j, R, B) {
|
6972
6982
|
return new m(
|
6973
|
-
(S || "React class") + ": " + E + " type `" + j + "." +
|
6983
|
+
(S || "React class") + ": " + E + " type `" + j + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + B + "`."
|
6974
6984
|
);
|
6975
6985
|
}
|
6976
6986
|
function Q(S) {
|
6977
|
-
function E(j,
|
6978
|
-
var X = j[
|
6987
|
+
function E(j, R, B, q, L) {
|
6988
|
+
var X = j[R], J = V(X);
|
6979
6989
|
if (J !== "object")
|
6980
6990
|
return new m("Invalid " + q + " `" + L + "` of type `" + J + "` " + ("supplied to `" + B + "`, expected `object`."));
|
6981
6991
|
for (var D in S) {
|
@@ -6991,18 +7001,18 @@ function ql() {
|
|
6991
7001
|
return C(E);
|
6992
7002
|
}
|
6993
7003
|
function z(S) {
|
6994
|
-
function E(j,
|
6995
|
-
var X = j[
|
7004
|
+
function E(j, R, B, q, L) {
|
7005
|
+
var X = j[R], J = V(X);
|
6996
7006
|
if (J !== "object")
|
6997
7007
|
return new m("Invalid " + q + " `" + L + "` of type `" + J + "` " + ("supplied to `" + B + "`, expected `object`."));
|
6998
|
-
var D = e({}, j[
|
7008
|
+
var D = e({}, j[R], S);
|
6999
7009
|
for (var K in D) {
|
7000
7010
|
var re = S[K];
|
7001
7011
|
if (o(S, K) && typeof re != "function")
|
7002
7012
|
return U(B, q, L, K, A(re));
|
7003
7013
|
if (!re)
|
7004
7014
|
return new m(
|
7005
|
-
"Invalid " + q + " `" + L + "` key `" + K + "` supplied to `" + B + "`.\nBad object: " + JSON.stringify(j[
|
7015
|
+
"Invalid " + q + " `" + L + "` key `" + K + "` supplied to `" + B + "`.\nBad object: " + JSON.stringify(j[R], null, " ") + `
|
7006
7016
|
Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
7007
7017
|
);
|
7008
7018
|
var N = re(X, K, B, q, L + "." + K, n);
|
@@ -7028,14 +7038,14 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
7028
7038
|
return !0;
|
7029
7039
|
var E = f(S);
|
7030
7040
|
if (E) {
|
7031
|
-
var j = E.call(S),
|
7041
|
+
var j = E.call(S), R;
|
7032
7042
|
if (E !== S.entries) {
|
7033
|
-
for (; !(
|
7034
|
-
if (!W(
|
7043
|
+
for (; !(R = j.next()).done; )
|
7044
|
+
if (!W(R.value))
|
7035
7045
|
return !1;
|
7036
7046
|
} else
|
7037
|
-
for (; !(
|
7038
|
-
var B =
|
7047
|
+
for (; !(R = j.next()).done; ) {
|
7048
|
+
var B = R.value;
|
7039
7049
|
if (B && !W(B[1]))
|
7040
7050
|
return !1;
|
7041
7051
|
}
|
@@ -7210,7 +7220,7 @@ var un = Object.assign || function(t) {
|
|
7210
7220
|
return function(e, n, o) {
|
7211
7221
|
return n && t(e.prototype, n), o && t(e, o), e;
|
7212
7222
|
};
|
7213
|
-
}(), ou = H, Pr = Kt(ou), ru = Vt, cn = Kt(ru), iu =
|
7223
|
+
}(), ou = H, Pr = Kt(ou), ru = Vt, cn = Kt(ru), iu = _t, su = Kt(iu), au = wn, Re = Kt(au), lu = Mn, ht = Kt(lu);
|
7214
7224
|
function Kt(t) {
|
7215
7225
|
return t && t.__esModule ? t : { default: t };
|
7216
7226
|
}
|
@@ -7229,26 +7239,26 @@ function du(t, e) {
|
|
7229
7239
|
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);
|
7230
7240
|
}
|
7231
7241
|
var Tr = {
|
7232
|
-
to:
|
7233
|
-
containerId:
|
7234
|
-
container:
|
7235
|
-
activeClass:
|
7236
|
-
activeStyle:
|
7237
|
-
spy:
|
7238
|
-
horizontal:
|
7239
|
-
smooth:
|
7240
|
-
offset:
|
7241
|
-
delay:
|
7242
|
-
isDynamic:
|
7243
|
-
onClick:
|
7244
|
-
duration:
|
7245
|
-
absolute:
|
7246
|
-
onSetActive:
|
7247
|
-
onSetInactive:
|
7248
|
-
ignoreCancelEvents:
|
7249
|
-
hashSpy:
|
7250
|
-
saveHashHistory:
|
7251
|
-
spyThrottle:
|
7242
|
+
to: Re.default.string.isRequired,
|
7243
|
+
containerId: Re.default.string,
|
7244
|
+
container: Re.default.object,
|
7245
|
+
activeClass: Re.default.string,
|
7246
|
+
activeStyle: Re.default.object,
|
7247
|
+
spy: Re.default.bool,
|
7248
|
+
horizontal: Re.default.bool,
|
7249
|
+
smooth: Re.default.oneOfType([Re.default.bool, Re.default.string]),
|
7250
|
+
offset: Re.default.number,
|
7251
|
+
delay: Re.default.number,
|
7252
|
+
isDynamic: Re.default.bool,
|
7253
|
+
onClick: Re.default.func,
|
7254
|
+
duration: Re.default.oneOfType([Re.default.number, Re.default.func]),
|
7255
|
+
absolute: Re.default.bool,
|
7256
|
+
onSetActive: Re.default.func,
|
7257
|
+
onSetInactive: Re.default.func,
|
7258
|
+
ignoreCancelEvents: Re.default.bool,
|
7259
|
+
hashSpy: Re.default.bool,
|
7260
|
+
saveHashHistory: Re.default.bool,
|
7261
|
+
spyThrottle: Re.default.number
|
7252
7262
|
};
|
7253
7263
|
Ht.default = function(t, e) {
|
7254
7264
|
var n = e || su.default, o = function(i) {
|
@@ -7316,8 +7326,8 @@ Ht.default = function(t, e) {
|
|
7316
7326
|
var k = c.getBoundingClientRect();
|
7317
7327
|
m = k.left - x + a, C = m + k.width;
|
7318
7328
|
}
|
7319
|
-
var
|
7320
|
-
p =
|
7329
|
+
var _ = a - s.props.offset;
|
7330
|
+
p = _ >= Math.floor(m) && _ < Math.floor(C), w = _ < Math.floor(m) || _ >= Math.floor(C);
|
7321
7331
|
} else {
|
7322
7332
|
var y = 0, b = 0, P = 0;
|
7323
7333
|
if (u.getBoundingClientRect) {
|
@@ -7354,8 +7364,8 @@ Ht.default = function(t, e) {
|
|
7354
7364
|
Object.defineProperty(io, "__esModule", {
|
7355
7365
|
value: !0
|
7356
7366
|
});
|
7357
|
-
var fu = H, Or =
|
7358
|
-
function
|
7367
|
+
var fu = H, Or = _i(fu), pu = Ht, hu = _i(pu);
|
7368
|
+
function _i(t) {
|
7359
7369
|
return t && t.__esModule ? t : { default: t };
|
7360
7370
|
}
|
7361
7371
|
function gu(t, e) {
|
@@ -7404,8 +7414,8 @@ var yu = /* @__PURE__ */ function() {
|
|
7404
7414
|
return function(e, n, o) {
|
7405
7415
|
return n && t(e.prototype, n), o && t(e, o), e;
|
7406
7416
|
};
|
7407
|
-
}(), bu = H,
|
7408
|
-
function
|
7417
|
+
}(), bu = H, _r = Ri(bu), Lu = Ht, Cu = Ri(Lu);
|
7418
|
+
function Ri(t) {
|
7409
7419
|
return t && t.__esModule ? t : { default: t };
|
7410
7420
|
}
|
7411
7421
|
function xu(t, e) {
|
@@ -7430,14 +7440,14 @@ var ku = function(t) {
|
|
7430
7440
|
return yu(e, [{
|
7431
7441
|
key: "render",
|
7432
7442
|
value: function() {
|
7433
|
-
return
|
7443
|
+
return _r.default.createElement(
|
7434
7444
|
"button",
|
7435
7445
|
this.props,
|
7436
7446
|
this.props.children
|
7437
7447
|
);
|
7438
7448
|
}
|
7439
7449
|
}]), e;
|
7440
|
-
}(
|
7450
|
+
}(_r.default.Component);
|
7441
7451
|
fo.default = (0, Cu.default)(ku);
|
7442
7452
|
var po = {}, kn = {};
|
7443
7453
|
Object.defineProperty(kn, "__esModule", {
|
@@ -7460,17 +7470,17 @@ var Eu = Object.assign || function(t) {
|
|
7460
7470
|
return function(e, n, o) {
|
7461
7471
|
return n && t(e.prototype, n), o && t(e, o), e;
|
7462
7472
|
};
|
7463
|
-
}(), Pu = H,
|
7473
|
+
}(), Pu = H, Rr = En(Pu), Tu = Qr;
|
7464
7474
|
En(Tu);
|
7465
|
-
var Ou =
|
7475
|
+
var Ou = _t, Dr = En(Ou), Iu = wn, jr = En(Iu);
|
7466
7476
|
function En(t) {
|
7467
7477
|
return t && t.__esModule ? t : { default: t };
|
7468
7478
|
}
|
7469
|
-
function
|
7479
|
+
function _u(t, e) {
|
7470
7480
|
if (!(t instanceof e))
|
7471
7481
|
throw new TypeError("Cannot call a class as a function");
|
7472
7482
|
}
|
7473
|
-
function
|
7483
|
+
function Ru(t, e) {
|
7474
7484
|
if (!t)
|
7475
7485
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
7476
7486
|
return e && (typeof e == "object" || typeof e == "function") ? e : t;
|
@@ -7484,8 +7494,8 @@ kn.default = function(t) {
|
|
7484
7494
|
var e = function(n) {
|
7485
7495
|
Du(o, n);
|
7486
7496
|
function o(r) {
|
7487
|
-
|
7488
|
-
var i =
|
7497
|
+
_u(this, o);
|
7498
|
+
var i = Ru(this, (o.__proto__ || Object.getPrototypeOf(o)).call(this, r));
|
7489
7499
|
return i.childBindings = {
|
7490
7500
|
domNode: null
|
7491
7501
|
}, i;
|
@@ -7517,10 +7527,10 @@ kn.default = function(t) {
|
|
7517
7527
|
}, {
|
7518
7528
|
key: "render",
|
7519
7529
|
value: function() {
|
7520
|
-
return
|
7530
|
+
return Rr.default.createElement(t, Eu({}, this.props, { parentBindings: this.childBindings }));
|
7521
7531
|
}
|
7522
7532
|
}]), o;
|
7523
|
-
}(
|
7533
|
+
}(Rr.default.Component);
|
7524
7534
|
return e.propTypes = {
|
7525
7535
|
name: jr.default.string,
|
7526
7536
|
id: jr.default.string
|
@@ -7620,7 +7630,7 @@ function Fr(t, e) {
|
|
7620
7630
|
throw new TypeError("Super expression must either be null or a function, not " + typeof e);
|
7621
7631
|
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);
|
7622
7632
|
}
|
7623
|
-
var dn = H, wt = Vt, zn =
|
7633
|
+
var dn = H, wt = Vt, zn = _t, Ne = wn, gt = Mn, Wr = {
|
7624
7634
|
to: Ne.string.isRequired,
|
7625
7635
|
containerId: Ne.string,
|
7626
7636
|
container: Ne.object,
|
@@ -7704,10 +7714,10 @@ var dn = H, wt = Vt, zn = Rt, Ne = wn, gt = Mn, Wr = {
|
|
7704
7714
|
var C = f.getBoundingClientRect();
|
7705
7715
|
c = C.top - w + l, p = c + C.height;
|
7706
7716
|
}
|
7707
|
-
var x = l - a.props.offset, I = x >= Math.floor(c) && x < Math.floor(p), k = x < Math.floor(c) || x >= Math.floor(p),
|
7717
|
+
var x = l - a.props.offset, I = x >= Math.floor(c) && x < Math.floor(p), k = x < Math.floor(c) || x >= Math.floor(p), _ = o.getActiveLink();
|
7708
7718
|
if (k)
|
7709
|
-
return d ===
|
7710
|
-
if (I &&
|
7719
|
+
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();
|
7720
|
+
if (I && _ !== d)
|
7711
7721
|
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();
|
7712
7722
|
}
|
7713
7723
|
};
|
@@ -7766,7 +7776,7 @@ Object.defineProperty(Ae, "__esModule", {
|
|
7766
7776
|
value: !0
|
7767
7777
|
});
|
7768
7778
|
Ae.Helpers = Ae.ScrollElement = Ae.ScrollLink = Vi = Ae.animateScroll = Ae.scrollSpy = Ae.Events = Ae.scroller = Ae.Element = Ae.Button = Ae.Link = void 0;
|
7769
|
-
var Vu = io, ji = lt(Vu), Zu = fo, Ni = lt(Zu), Yu = po, $i = lt(Yu), Gu =
|
7779
|
+
var Vu = io, ji = lt(Vu), Zu = fo, Ni = lt(Zu), Yu = po, $i = lt(Yu), Gu = _t, Bi = lt(Gu), qu = Gt, Ai = lt(qu), Ku = Vt, zi = lt(Ku), Xu = Ln, Ui = lt(Xu), Ju = Ht, Fi = lt(Ju), Qu = kn, Wi = lt(Qu), ec = Hu, Hi = lt(ec);
|
7770
7780
|
function lt(t) {
|
7771
7781
|
return t && t.__esModule ? t : { default: t };
|
7772
7782
|
}
|
@@ -7976,19 +7986,19 @@ function Mc(...t) {
|
|
7976
7986
|
}
|
7977
7987
|
var kc = (t) => {
|
7978
7988
|
var e, n, o, r, i, s, a, l, u, d;
|
7979
|
-
let { invert: f, toast: c, unstyled: p, interacting: w, setHeights: m, visibleToasts: C, heights: x, index: I, toasts: k, expanded:
|
7989
|
+
let { invert: f, toast: c, unstyled: p, interacting: w, setHeights: m, visibleToasts: C, heights: x, index: I, toasts: k, expanded: _, removeToast: y, defaultRichColors: b, closeButton: P, style: T, cancelButtonStyle: F, actionButtonStyle: O, className: U = "", descriptionClassName: Q = "", duration: z, position: W, gap: Y, loadingIcon: V, expandByDefault: A, classNames: Z, icons: ee, closeButtonAriaLabel: S = "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 = I === 0, Se = I + 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(() => {
|
7980
7990
|
var se;
|
7981
7991
|
return (se = c.closeButton) != null ? se : P;
|
7982
7992
|
}, [c.closeButton, P]), Ye = H.useMemo(() => c.duration || z || bc, [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 = uc(), Et = c.invert || f, pt = ue === "loading";
|
7983
7993
|
Be.current = H.useMemo(() => ze * Y + bt, [ze, bt]), H.useEffect(() => {
|
7984
7994
|
B(!0);
|
7985
7995
|
}, []), H.useLayoutEffect(() => {
|
7986
|
-
if (!
|
7996
|
+
if (!R) return;
|
7987
7997
|
let se = he.current, be = se.style.height;
|
7988
7998
|
se.style.height = "auto";
|
7989
7999
|
let xe = se.getBoundingClientRect().height;
|
7990
8000
|
se.style.height = be, Ce(xe), m((Fe) => Fe.find((Ve) => Ve.toastId === c.id) ? Fe.map((Ve) => Ve.toastId === c.id ? { ...Ve, height: xe } : Ve) : [{ toastId: c.id, height: xe, position: c.position }, ...Fe]);
|
7991
|
-
}, [
|
8001
|
+
}, [R, c.title, c.description, m, c.id]);
|
7992
8002
|
let qe = H.useCallback(() => {
|
7993
8003
|
L(!0), N(Be.current), m((se) => se.filter((be) => be.toastId !== c.id)), setTimeout(() => {
|
7994
8004
|
y(c);
|
@@ -7997,7 +8007,7 @@ var kc = (t) => {
|
|
7997
8007
|
H.useEffect(() => {
|
7998
8008
|
if (c.promise && ue === "loading" || c.duration === 1 / 0 || c.type === "loading") return;
|
7999
8009
|
let se, be = Ye;
|
8000
|
-
return
|
8010
|
+
return _ || w || E && ut ? (() => {
|
8001
8011
|
if (ot.current < Qe.current) {
|
8002
8012
|
let xe = (/* @__PURE__ */ new Date()).getTime() - Qe.current;
|
8003
8013
|
be = be - xe;
|
@@ -8007,7 +8017,7 @@ var kc = (t) => {
|
|
8007
8017
|
var xe;
|
8008
8018
|
(xe = c.onAutoClose) == null || xe.call(c, c), qe();
|
8009
8019
|
}, be)), () => clearTimeout(se);
|
8010
|
-
}, [
|
8020
|
+
}, [_, w, A, c, Ye, qe, c.promise, ue, E, ut]), H.useEffect(() => {
|
8011
8021
|
let se = he.current;
|
8012
8022
|
if (se) {
|
8013
8023
|
let be = se.getBoundingClientRect().height;
|
@@ -8019,7 +8029,7 @@ var kc = (t) => {
|
|
8019
8029
|
function St() {
|
8020
8030
|
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(rc, { visible: ue === "loading" });
|
8021
8031
|
}
|
8022
|
-
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":
|
8032
|
+
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": I, "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": I, "--toasts-before": I, "--z-index": k.length - I, "--offset": `${q ? re : Be.current}px`, "--initial-height": A ? "auto" : `${de}px`, ...T, ...c.style }, onPointerDown: (se) => {
|
8023
8033
|
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 }));
|
8024
8034
|
}, onPointerUp: () => {
|
8025
8035
|
var se, be, xe, Fe;
|
@@ -8054,20 +8064,20 @@ function Vr() {
|
|
8054
8064
|
return t === "auto" || !t ? window.getComputedStyle(document.documentElement).direction : t;
|
8055
8065
|
}
|
8056
8066
|
var Ec = (t) => {
|
8057
|
-
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 = vc, toastOptions: p, dir: w = Vr(), gap: m = Cc, loadingIcon: C, icons: x, containerAriaLabel: I = "Notifications", pauseWhenPageIsHidden: k, cn:
|
8067
|
+
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 = vc, toastOptions: p, dir: w = Vr(), gap: m = Cc, loadingIcon: C, icons: x, containerAriaLabel: I = "Notifications", pauseWhenPageIsHidden: k, cn: _ = Mc } = t, [y, b] = H.useState([]), P = H.useMemo(() => Array.from(new Set([n].concat(y.filter((E) => E.position).map((E) => E.position)))), [y, n]), [T, F] = H.useState([]), [O, 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), S = H.useCallback((E) => {
|
8058
8068
|
var j;
|
8059
|
-
(j = y.find((
|
8069
|
+
(j = y.find((R) => R.id === E.id)) != null && j.delete || Ke.dismiss(E.id), b((R) => R.filter(({ id: B }) => B !== E.id));
|
8060
8070
|
}, [y]);
|
8061
8071
|
return H.useEffect(() => Ke.subscribe((E) => {
|
8062
8072
|
if (E.dismiss) {
|
8063
|
-
b((j) => j.map((
|
8073
|
+
b((j) => j.map((R) => R.id === E.id ? { ...R, delete: !0 } : R));
|
8064
8074
|
return;
|
8065
8075
|
}
|
8066
8076
|
setTimeout(() => {
|
8067
8077
|
Qr.flushSync(() => {
|
8068
8078
|
b((j) => {
|
8069
|
-
let
|
8070
|
-
return
|
8079
|
+
let R = j.findIndex((B) => B.id === E.id);
|
8080
|
+
return R !== -1 ? [...j.slice(0, R), { ...j[R], ...E }, ...j.slice(R + 1)] : [E, ...j];
|
8071
8081
|
});
|
8072
8082
|
});
|
8073
8083
|
});
|
@@ -8083,8 +8093,8 @@ var Ec = (t) => {
|
|
8083
8093
|
y.length <= 1 && U(!1);
|
8084
8094
|
}, [y]), H.useEffect(() => {
|
8085
8095
|
let E = (j) => {
|
8086
|
-
var
|
8087
|
-
o.every((q) => j[q] || j.code === q) && (U(!0), (
|
8096
|
+
var R, B;
|
8097
|
+
o.every((q) => j[q] || j.code === q) && (U(!0), (R = V.current) == null || R.focus()), j.code === "Escape" && (document.activeElement === V.current || (B = V.current) != null && B.contains(document.activeElement)) && U(!1);
|
8088
8098
|
};
|
8089
8099
|
return document.addEventListener("keydown", E), () => document.removeEventListener("keydown", E);
|
8090
8100
|
}, [o]), H.useEffect(() => {
|
@@ -8092,9 +8102,9 @@ var Ec = (t) => {
|
|
8092
8102
|
Z.current && (Z.current.focus({ preventScroll: !0 }), Z.current = null, ee.current = !1);
|
8093
8103
|
};
|
8094
8104
|
}, [V.current]), y.length ? H.createElement("section", { "aria-label": `${I} ${A}`, tabIndex: -1 }, P.map((E, j) => {
|
8095
|
-
var
|
8105
|
+
var R;
|
8096
8106
|
let [B, q] = E.split("-");
|
8097
|
-
return H.createElement("ol", { key: E, dir: w === "auto" ? Vr() : w, tabIndex: -1, ref: V, className: s, "data-sonner-toaster": !0, "data-theme": W, "data-y-position": B, "data-x-position": q, style: { "--front-toast-height": `${((
|
8107
|
+
return H.createElement("ol", { key: E, dir: w === "auto" ? Vr() : w, tabIndex: -1, ref: V, className: s, "data-sonner-toaster": !0, "data-theme": W, "data-y-position": B, "data-x-position": q, style: { "--front-toast-height": `${((R = T[0]) == null ? void 0 : R.height) || 0}px`, "--offset": typeof a == "number" ? `${a}px` : a || yc, "--width": `${Lc}px`, "--gap": `${m}px`, ...f }, onBlur: (L) => {
|
8098
8108
|
ee.current && !L.currentTarget.contains(L.relatedTarget) && (ee.current = !1, Z.current && (Z.current.focus({ preventScroll: !0 }), Z.current = null));
|
8099
8109
|
}, onFocus: (L) => {
|
8100
8110
|
L.target instanceof HTMLElement && L.target.dataset.dismissible === "false" || ee.current || (ee.current = !0, Z.current = L.relatedTarget);
|
@@ -8104,7 +8114,7 @@ var Ec = (t) => {
|
|
8104
8114
|
L.target instanceof HTMLElement && L.target.dataset.dismissible === "false" || z(!0);
|
8105
8115
|
}, onPointerUp: () => z(!1) }, y.filter((L) => !L.position && j === 0 || L.position === E).map((L, X) => {
|
8106
8116
|
var J, D;
|
8107
|
-
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: S, toasts: y.filter((K) => K.position == L.position), heights: T.filter((K) => K.position == L.position), setHeights: F, expandByDefault: r, gap: m, loadingIcon: C, expanded: O, pauseWhenPageIsHidden: k, cn:
|
8117
|
+
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: S, toasts: y.filter((K) => K.position == L.position), heights: T.filter((K) => K.position == L.position), setHeights: F, expandByDefault: r, gap: m, loadingIcon: C, expanded: O, pauseWhenPageIsHidden: k, cn: _ });
|
8108
8118
|
}));
|
8109
8119
|
})) : null;
|
8110
8120
|
};
|
@@ -8118,7 +8128,7 @@ function xd({ children: t }) {
|
|
8118
8128
|
] });
|
8119
8129
|
}
|
8120
8130
|
export {
|
8121
|
-
|
8131
|
+
Rc as AlertContainer,
|
8122
8132
|
Dc as AlertContent,
|
8123
8133
|
jc as AlertDescription,
|
8124
8134
|
Nc as AlertIcon,
|