@arkyn/components 1.3.98 → 1.3.99
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bundle.js +518 -510
- package/dist/bundle.umd.cjs +13 -13
- package/dist/components/GoogleSearchPlaces/index.d.ts.map +1 -1
- package/dist/components/GoogleSearchPlaces/index.js +10 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/GoogleSearchPlaces/index.tsx +12 -1
- package/src/components/Select/styles.css +1 -0
package/dist/bundle.js
CHANGED
@@ -43,14 +43,14 @@ var yo;
|
|
43
43
|
function ls() {
|
44
44
|
return yo || (yo = 1, process.env.NODE_ENV !== "production" && function() {
|
45
45
|
var t = H, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), c = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), w = Symbol.iterator, m = "@@iterator";
|
46
|
-
function
|
46
|
+
function L(g) {
|
47
47
|
if (g === null || typeof g != "object")
|
48
48
|
return null;
|
49
49
|
var $ = w && g[w] || g[m];
|
50
50
|
return typeof $ == "function" ? $ : null;
|
51
51
|
}
|
52
52
|
var x = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
53
|
-
function
|
53
|
+
function O(g) {
|
54
54
|
{
|
55
55
|
for (var $ = arguments.length, G = new Array($ > 1 ? $ - 1 : 0), oe = 1; oe < $; oe++)
|
56
56
|
G[oe - 1] = arguments[oe];
|
@@ -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 _ = !1, y = !1, b = !1,
|
70
|
+
var _ = !1, y = !1, b = !1, S = !1, T = !1, F;
|
71
71
|
F = Symbol.for("react.module.reference");
|
72
|
-
function
|
73
|
-
return !!(typeof g == "string" || typeof g == "function" || g === o || g === i || T || g === r || g === u || g === d ||
|
72
|
+
function I(g) {
|
73
|
+
return !!(typeof g == "string" || typeof g == "function" || g === o || g === i || T || g === r || g === u || g === d || S || 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.
|
@@ -89,7 +89,7 @@ function ls() {
|
|
89
89
|
function z(g) {
|
90
90
|
if (g == null)
|
91
91
|
return null;
|
92
|
-
if (typeof g.tag == "number" &&
|
92
|
+
if (typeof g.tag == "number" && O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof g == "function")
|
93
93
|
return g.displayName || g.name || null;
|
94
94
|
if (typeof g == "string")
|
95
95
|
return g;
|
@@ -131,14 +131,14 @@ function ls() {
|
|
131
131
|
}
|
132
132
|
return null;
|
133
133
|
}
|
134
|
-
var W = Object.assign, Y = 0, V, A, Z, ee,
|
134
|
+
var W = Object.assign, Y = 0, V, A, Z, ee, P, E, j;
|
135
135
|
function R() {
|
136
136
|
}
|
137
137
|
R.__reactDisabledLog = !0;
|
138
138
|
function B() {
|
139
139
|
{
|
140
140
|
if (Y === 0) {
|
141
|
-
V = console.log, A = console.info, Z = console.warn, ee = console.error,
|
141
|
+
V = console.log, A = console.info, Z = console.warn, ee = console.error, P = console.group, E = console.groupCollapsed, j = console.groupEnd;
|
142
142
|
var g = {
|
143
143
|
configurable: !0,
|
144
144
|
enumerable: !0,
|
@@ -180,7 +180,7 @@ function ls() {
|
|
180
180
|
value: ee
|
181
181
|
}),
|
182
182
|
group: W({}, g, {
|
183
|
-
value:
|
183
|
+
value: P
|
184
184
|
}),
|
185
185
|
groupCollapsed: W({}, g, {
|
186
186
|
value: E
|
@@ -190,10 +190,10 @@ function ls() {
|
|
190
190
|
})
|
191
191
|
});
|
192
192
|
}
|
193
|
-
Y < 0 &&
|
193
|
+
Y < 0 && O("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
194
194
|
}
|
195
195
|
}
|
196
|
-
var
|
196
|
+
var C = x.ReactCurrentDispatcher, X;
|
197
197
|
function J(g, $, G) {
|
198
198
|
{
|
199
199
|
if (X === void 0)
|
@@ -225,7 +225,7 @@ function ls() {
|
|
225
225
|
var Le = Error.prepareStackTrace;
|
226
226
|
Error.prepareStackTrace = void 0;
|
227
227
|
var we;
|
228
|
-
we =
|
228
|
+
we = C.current, C.current = null, B();
|
229
229
|
try {
|
230
230
|
if ($) {
|
231
231
|
var ge = function() {
|
@@ -278,7 +278,7 @@ function ls() {
|
|
278
278
|
}
|
279
279
|
}
|
280
280
|
} finally {
|
281
|
-
D = !1,
|
281
|
+
D = !1, C.current = we, q(), Error.prepareStackTrace = Le;
|
282
282
|
}
|
283
283
|
var ct = g ? g.displayName || g.name : "", dt = ct ? J(ct) : "";
|
284
284
|
return typeof g == "function" && K.set(g, dt), dt;
|
@@ -342,7 +342,7 @@ function ls() {
|
|
342
342
|
} catch (_e) {
|
343
343
|
fe = _e;
|
344
344
|
}
|
345
|
-
fe && !(fe instanceof Error) && (ue(Le),
|
345
|
+
fe && !(fe instanceof Error) && (ue(Le), O("%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), O("Failed %s type: %s", G, fe.message), ue(null));
|
346
346
|
}
|
347
347
|
}
|
348
348
|
}
|
@@ -368,7 +368,7 @@ function ls() {
|
|
368
368
|
}
|
369
369
|
function Qe(g) {
|
370
370
|
if (ne(g))
|
371
|
-
return
|
371
|
+
return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(g)), Ye(g);
|
372
372
|
}
|
373
373
|
var Be = x.ReactCurrentOwner, ot = {
|
374
374
|
key: !0,
|
@@ -396,13 +396,13 @@ function ls() {
|
|
396
396
|
function Et(g, $) {
|
397
397
|
if (typeof g.ref == "string" && Be.current && $ && Be.current.stateNode !== $) {
|
398
398
|
var G = z(Be.current.type);
|
399
|
-
ft[G] || (
|
399
|
+
ft[G] || (O('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', z(Be.current.type), g.ref), ft[G] = !0);
|
400
400
|
}
|
401
401
|
}
|
402
402
|
function pt(g, $) {
|
403
403
|
{
|
404
404
|
var G = function() {
|
405
|
-
ye || (ye = !0,
|
405
|
+
ye || (ye = !0, O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", $));
|
406
406
|
};
|
407
407
|
G.isReactWarning = !0, Object.defineProperty(g, "key", {
|
408
408
|
get: G,
|
@@ -413,7 +413,7 @@ function ls() {
|
|
413
413
|
function qe(g, $) {
|
414
414
|
{
|
415
415
|
var G = function() {
|
416
|
-
rt || (rt = !0,
|
416
|
+
rt || (rt = !0, O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", $));
|
417
417
|
};
|
418
418
|
G.isReactWarning = !0, Object.defineProperty(g, "ref", {
|
419
419
|
get: G,
|
@@ -527,7 +527,7 @@ Check the top-level render call using <` + G + ">.");
|
|
527
527
|
return;
|
528
528
|
Rt[G] = !0;
|
529
529
|
var oe = "";
|
530
|
-
g && g._owner && g._owner !== be.current && (oe = " It was passed a child from " + z(g._owner.type) + "."), Fe(g),
|
530
|
+
g && g._owner && g._owner !== be.current && (oe = " It was passed a child from " + z(g._owner.type) + "."), Fe(g), O('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
|
}
|
532
532
|
}
|
533
533
|
function Dt(g, $) {
|
@@ -542,7 +542,7 @@ Check the top-level render call using <` + G + ">.");
|
|
542
542
|
else if (nt(g))
|
543
543
|
g._store && (g._store.validated = !0);
|
544
544
|
else if (g) {
|
545
|
-
var Le =
|
545
|
+
var Le = L(g);
|
546
546
|
if (typeof Le == "function" && Le !== g.entries)
|
547
547
|
for (var we = Le.call(g), ge; !(ge = we.next()).done; )
|
548
548
|
nt(ge.value) && Ct(ge.value, $);
|
@@ -569,9 +569,9 @@ Check the top-level render call using <` + G + ">.");
|
|
569
569
|
} else if ($.PropTypes !== void 0 && !Ve) {
|
570
570
|
Ve = !0;
|
571
571
|
var Le = z($);
|
572
|
-
|
572
|
+
O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Le || "Unknown");
|
573
573
|
}
|
574
|
-
typeof $.getDefaultProps == "function" && !$.getDefaultProps.isReactClassApproved &&
|
574
|
+
typeof $.getDefaultProps == "function" && !$.getDefaultProps.isReactClassApproved && O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
575
575
|
}
|
576
576
|
}
|
577
577
|
function Tt(g) {
|
@@ -579,24 +579,24 @@ Check the top-level render call using <` + G + ">.");
|
|
579
579
|
for (var $ = Object.keys(g.props), G = 0; G < $.length; G++) {
|
580
580
|
var oe = $[G];
|
581
581
|
if (oe !== "children" && oe !== "key") {
|
582
|
-
Fe(g),
|
582
|
+
Fe(g), O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", oe), Fe(null);
|
583
583
|
break;
|
584
584
|
}
|
585
585
|
}
|
586
|
-
g.ref !== null && (Fe(g),
|
586
|
+
g.ref !== null && (Fe(g), O("Invalid attribute `ref` supplied to `React.Fragment`."), Fe(null));
|
587
587
|
}
|
588
588
|
}
|
589
589
|
var jt = {};
|
590
590
|
function Nt(g, $, G, oe, Le, we) {
|
591
591
|
{
|
592
|
-
var ge =
|
592
|
+
var ge = I(g);
|
593
593
|
if (!ge) {
|
594
594
|
var fe = "";
|
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
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,
|
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, O("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)
|
@@ -610,7 +610,7 @@ Check the top-level render call using <` + G + ">.");
|
|
610
610
|
Dt(Ge[ct], g);
|
611
611
|
Object.freeze && Object.freeze(Ge);
|
612
612
|
} else
|
613
|
-
|
613
|
+
O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
614
614
|
else
|
615
615
|
Dt(Ge, g);
|
616
616
|
}
|
@@ -620,7 +620,7 @@ Check the top-level render call using <` + G + ">.");
|
|
620
620
|
}), ae = He.length > 0 ? "{key: someKey, " + He.join(": ..., ") + ": ...}" : "{key: someKey}";
|
621
621
|
if (!jt[dt + ae]) {
|
622
622
|
var Gi = He.length > 0 ? "{" + He.join(": ..., ") + ": ...}" : "{}";
|
623
|
-
|
623
|
+
O(`A props object containing a "key" prop is being spread into JSX:
|
624
624
|
let props = %s;
|
625
625
|
<%s {...props} />
|
626
626
|
React keys must be passed directly to JSX without using spread:
|
@@ -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,
|
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, L = t.onMouseUp, x = t.onRightClick, O = t.onCenterChanged, k = t.onLoad, _ = t.onUnmount, y = M(null), b = y[0], S = y[1], T = Je(null), F = M(null), I = 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], P = Z[1], E = M(null), j = E[0], R = E[1], B = M(null), q = B[0], C = 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() {
|
@@ -988,28 +988,28 @@ function ks(t) {
|
|
988
988
|
}, [l]), h(function() {
|
989
989
|
b && d && (V !== null && google.maps.event.removeListener(V), A(google.maps.event.addListener(b, "dragend", d)));
|
990
990
|
}, [d]), h(function() {
|
991
|
-
b && f && (ee !== null && google.maps.event.removeListener(ee),
|
991
|
+
b && f && (ee !== null && google.maps.event.removeListener(ee), P(google.maps.event.addListener(b, "dragstart", f)));
|
992
992
|
}, [f]), h(function() {
|
993
993
|
b && m && (j !== null && google.maps.event.removeListener(j), R(google.maps.event.addListener(b, "mousedown", m)));
|
994
994
|
}, [m]), h(function() {
|
995
|
-
b && c && (q !== null && google.maps.event.removeListener(q),
|
995
|
+
b && c && (q !== null && google.maps.event.removeListener(q), C(google.maps.event.addListener(b, "mousemove", c)));
|
996
996
|
}, [c]), h(function() {
|
997
997
|
b && p && (J !== null && google.maps.event.removeListener(J), D(google.maps.event.addListener(b, "mouseout", p)));
|
998
998
|
}, [p]), h(function() {
|
999
999
|
b && w && (re !== null && google.maps.event.removeListener(re), N(google.maps.event.addListener(b, "mouseover", w)));
|
1000
1000
|
}, [w]), h(function() {
|
1001
|
-
b &&
|
1002
|
-
}, [
|
1001
|
+
b && L && (Ce !== null && google.maps.event.removeListener(Ce), ve(google.maps.event.addListener(b, "mouseup", L)));
|
1002
|
+
}, [L]), h(function() {
|
1003
1003
|
b && x && (Te !== null && google.maps.event.removeListener(Te), Se(google.maps.event.addListener(b, "rightclick", x)));
|
1004
1004
|
}, [x]), h(function() {
|
1005
1005
|
b && a && (ie !== null && google.maps.event.removeListener(ie), $e(google.maps.event.addListener(b, "click", a)));
|
1006
1006
|
}, [a]), h(function() {
|
1007
1007
|
b && u && (ze !== null && google.maps.event.removeListener(ze), ne(google.maps.event.addListener(b, "drag", u)));
|
1008
1008
|
}, [u]), h(function() {
|
1009
|
-
b &&
|
1009
|
+
b && O && (I !== null && google.maps.event.removeListener(I), U(google.maps.event.addListener(b, "center_changed", O)));
|
1010
1010
|
}, [a]), h(function() {
|
1011
1011
|
var Ye = T.current === null ? null : new google.maps.Map(T.current, n);
|
1012
|
-
return
|
1012
|
+
return S(Ye), Ye !== null && k && k(Ye), function() {
|
1013
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 }) });
|
@@ -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),
|
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), L = M(!1), x = L[0], O = L[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;
|
@@ -1264,7 +1264,7 @@ function Ss(t) {
|
|
1264
1264
|
if (!Mt)
|
1265
1265
|
return;
|
1266
1266
|
function F() {
|
1267
|
-
m.current && (
|
1267
|
+
m.current && (O(!0), xo = b);
|
1268
1268
|
}
|
1269
1269
|
if (window.google && window.google.maps && xo === b) {
|
1270
1270
|
F();
|
@@ -1277,9 +1277,9 @@ function Ss(t) {
|
|
1277
1277
|
`)), console.error(U);
|
1278
1278
|
});
|
1279
1279
|
}, [n, b, i]);
|
1280
|
-
var
|
1280
|
+
var S = Je();
|
1281
1281
|
return h(function() {
|
1282
|
-
|
1282
|
+
S.current && d !== S.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"), S.current = d;
|
1283
1283
|
}, [d]), { isLoaded: x, loadError: _, url: b };
|
1284
1284
|
}
|
1285
1285
|
var Ps = v.jsx(ui, {});
|
@@ -1442,7 +1442,7 @@ var Eo = {
|
|
1442
1442
|
}
|
1443
1443
|
};
|
1444
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),
|
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), L = m[0], x = m[1], O = M(null), k = O[0], _ = O[1], y = M(null), b = y[0], S = y[1], T = M(null), F = T[0], I = 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() {
|
@@ -1450,13 +1450,13 @@ function Rs(t) {
|
|
1450
1450
|
}, [p, e]), h(function() {
|
1451
1451
|
p !== null && p.setDrawingMode(n ?? null);
|
1452
1452
|
}, [p, n]), h(function() {
|
1453
|
-
p && o && (
|
1453
|
+
p && o && (L !== null && google.maps.event.removeListener(L), x(google.maps.event.addListener(p, "circlecomplete", o)));
|
1454
1454
|
}, [p, o]), h(function() {
|
1455
1455
|
p && r && (k !== null && google.maps.event.removeListener(k), _(google.maps.event.addListener(p, "markercomplete", r)));
|
1456
1456
|
}, [p, r]), h(function() {
|
1457
|
-
p && i && (b !== null && google.maps.event.removeListener(b),
|
1457
|
+
p && i && (b !== null && google.maps.event.removeListener(b), S(google.maps.event.addListener(p, "overlaycomplete", i)));
|
1458
1458
|
}, [p, i]), h(function() {
|
1459
|
-
p && s && (F !== null && google.maps.event.removeListener(F),
|
1459
|
+
p && s && (F !== null && google.maps.event.removeListener(F), I(google.maps.event.addListener(p, "polygoncomplete", s)));
|
1460
1460
|
}, [p, s]), h(function() {
|
1461
1461
|
p && a && (Q !== null && google.maps.event.removeListener(Q), z(google.maps.event.addListener(p, "polylinecomplete", a)));
|
1462
1462
|
}, [p, a]), h(function() {
|
@@ -1464,8 +1464,8 @@ function Rs(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 && _(google.maps.event.addListener(A, "markercomplete", r)), i &&
|
1468
|
-
p !== null && (
|
1467
|
+
return n && A.setDrawingMode(n), o && x(google.maps.event.addListener(A, "circlecomplete", o)), r && _(google.maps.event.addListener(A, "markercomplete", r)), i && S(google.maps.event.addListener(A, "overlaycomplete", i)), s && I(google.maps.event.addListener(A, "polygoncomplete", s)), a && z(google.maps.event.addListener(A, "polylinecomplete", a)), l && V(google.maps.event.addListener(A, "rectanglecomplete", l)), w(A), u && u(A), function() {
|
1468
|
+
p !== null && (L && google.maps.event.removeListener(L), 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
|
}
|
@@ -1574,80 +1574,80 @@ 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,
|
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, L = t.zIndex, x = t.onClick, O = t.onDblClick, k = t.onDrag, _ = t.onDragEnd, y = t.onDragStart, b = t.onMouseOut, S = t.onMouseOver, T = t.onMouseUp, F = t.onMouseDown, I = t.onRightClick, U = t.onClickableChanged, Q = t.onCursorChanged, z = t.onAnimationChanged, W = t.onDraggableChanged, Y = t.onFlatChanged, V = t.onIconChanged, A = t.onPositionChanged, Z = t.onShapeChanged, ee = t.onTitleChanged, P = t.onVisibleChanged, E = t.onZindexChanged, j = t.onLoad, R = t.onUnmount, B = Pe(ce), q = M(null), C = 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
|
+
C !== null && C.setMap(B);
|
1580
1580
|
}, [B]), h(function() {
|
1581
|
-
typeof n < "u" &&
|
1582
|
-
}, [
|
1583
|
-
typeof s < "u" &&
|
1584
|
-
}, [
|
1585
|
-
e &&
|
1586
|
-
}, [
|
1587
|
-
typeof a < "u" &&
|
1588
|
-
}, [
|
1589
|
-
|
1590
|
-
}, [
|
1591
|
-
|
1592
|
-
}, [
|
1593
|
-
|
1594
|
-
}, [
|
1595
|
-
|
1596
|
-
}, [
|
1597
|
-
|
1598
|
-
}, [
|
1599
|
-
|
1600
|
-
}, [
|
1601
|
-
|
1602
|
-
}, [
|
1603
|
-
|
1604
|
-
}, [
|
1605
|
-
|
1606
|
-
}, [
|
1607
|
-
|
1608
|
-
}, [
|
1609
|
-
|
1581
|
+
typeof n < "u" && C !== null && C.setOptions(n);
|
1582
|
+
}, [C, n]), h(function() {
|
1583
|
+
typeof s < "u" && C !== null && C.setDraggable(s);
|
1584
|
+
}, [C, s]), h(function() {
|
1585
|
+
e && C !== null && C.setPosition(e);
|
1586
|
+
}, [C, e]), h(function() {
|
1587
|
+
typeof a < "u" && C !== null && C.setVisible(a);
|
1588
|
+
}, [C, a]), h(function() {
|
1589
|
+
C == null || C.setAnimation(l);
|
1590
|
+
}, [C, l]), h(function() {
|
1591
|
+
C && u !== void 0 && C.setClickable(u);
|
1592
|
+
}, [C, u]), h(function() {
|
1593
|
+
C && d !== void 0 && C.setCursor(d);
|
1594
|
+
}, [C, d]), h(function() {
|
1595
|
+
C && f !== void 0 && C.setIcon(f);
|
1596
|
+
}, [C, f]), h(function() {
|
1597
|
+
C && c !== void 0 && C.setLabel(c);
|
1598
|
+
}, [C, c]), h(function() {
|
1599
|
+
C && p !== void 0 && C.setOpacity(p);
|
1600
|
+
}, [C, p]), h(function() {
|
1601
|
+
C && w !== void 0 && C.setShape(w);
|
1602
|
+
}, [C, w]), h(function() {
|
1603
|
+
C && m !== void 0 && C.setTitle(m);
|
1604
|
+
}, [C, m]), h(function() {
|
1605
|
+
C && L !== void 0 && C.setZIndex(L);
|
1606
|
+
}, [C, L]), h(function() {
|
1607
|
+
C && O && (D !== null && google.maps.event.removeListener(D), K(google.maps.event.addListener(C, "dblclick", O)));
|
1608
|
+
}, [O]), h(function() {
|
1609
|
+
C && _ && (N !== null && google.maps.event.removeListener(N), de(google.maps.event.addListener(C, "dragend", _)));
|
1610
1610
|
}, [_]), h(function() {
|
1611
|
-
|
1611
|
+
C && y && (ve !== null && google.maps.event.removeListener(ve), he(google.maps.event.addListener(C, "dragstart", y)));
|
1612
1612
|
}, [y]), h(function() {
|
1613
|
-
|
1613
|
+
C && F && (Se !== null && google.maps.event.removeListener(Se), ue(google.maps.event.addListener(C, "mousedown", F)));
|
1614
1614
|
}, [F]), h(function() {
|
1615
|
-
|
1615
|
+
C && b && ($e !== null && google.maps.event.removeListener($e), le(google.maps.event.addListener(C, "mouseout", b)));
|
1616
1616
|
}, [b]), h(function() {
|
1617
|
-
|
1618
|
-
}, [
|
1619
|
-
|
1617
|
+
C && S && (ne !== null && google.maps.event.removeListener(ne), Ye(google.maps.event.addListener(C, "mouseover", S)));
|
1618
|
+
}, [S]), h(function() {
|
1619
|
+
C && T && (Be !== null && google.maps.event.removeListener(Be), ot(google.maps.event.addListener(C, "mouseup", T)));
|
1620
1620
|
}, [T]), h(function() {
|
1621
|
-
|
1622
|
-
}, [
|
1623
|
-
|
1621
|
+
C && I && (rt !== null && google.maps.event.removeListener(rt), ft(google.maps.event.addListener(C, "rightclick", I)));
|
1622
|
+
}, [I]), h(function() {
|
1623
|
+
C && x && (ut !== null && google.maps.event.removeListener(ut), Et(google.maps.event.addListener(C, "click", x)));
|
1624
1624
|
}, [x]), h(function() {
|
1625
|
-
|
1625
|
+
C && k && (qe !== null && google.maps.event.removeListener(qe), St(google.maps.event.addListener(C, "drag", k)));
|
1626
1626
|
}, [k]), h(function() {
|
1627
|
-
|
1627
|
+
C && U && (be !== null && google.maps.event.removeListener(be), xe(google.maps.event.addListener(C, "clickable_changed", U)));
|
1628
1628
|
}, [U]), h(function() {
|
1629
|
-
|
1629
|
+
C && Q && (Ve !== null && google.maps.event.removeListener(Ve), nt(google.maps.event.addListener(C, "cursor_changed", Q)));
|
1630
1630
|
}, [Q]), h(function() {
|
1631
|
-
|
1631
|
+
C && z && (Pt !== null && google.maps.event.removeListener(Pt), Rt(google.maps.event.addListener(C, "animation_changed", z)));
|
1632
1632
|
}, [z]), h(function() {
|
1633
|
-
|
1633
|
+
C && W && (Ct !== null && google.maps.event.removeListener(Ct), Dt(google.maps.event.addListener(C, "draggable_changed", W)));
|
1634
1634
|
}, [W]), h(function() {
|
1635
|
-
|
1635
|
+
C && Y && (Tt !== null && google.maps.event.removeListener(Tt), jt(google.maps.event.addListener(C, "flat_changed", Y)));
|
1636
1636
|
}, [Y]), h(function() {
|
1637
|
-
|
1637
|
+
C && V && (Ot !== null && google.maps.event.removeListener(Ot), Qt(google.maps.event.addListener(C, "icon_changed", V)));
|
1638
1638
|
}, [V]), h(function() {
|
1639
|
-
|
1639
|
+
C && A && (It !== null && google.maps.event.removeListener(It), g(google.maps.event.addListener(C, "position_changed", A)));
|
1640
1640
|
}, [A]), h(function() {
|
1641
|
-
|
1641
|
+
C && Z && (G !== null && google.maps.event.removeListener(G), oe(google.maps.event.addListener(C, "shape_changed", Z)));
|
1642
1642
|
}, [Z]), h(function() {
|
1643
|
-
|
1643
|
+
C && ee && (we !== null && google.maps.event.removeListener(we), ge(google.maps.event.addListener(C, "title_changed", ee)));
|
1644
1644
|
}, [ee]), h(function() {
|
1645
|
-
|
1646
|
-
}, [
|
1647
|
-
|
1645
|
+
C && P && (We !== null && google.maps.event.removeListener(We), _e(google.maps.event.addListener(C, "visible_changed", P)));
|
1646
|
+
}, [P]), h(function() {
|
1647
|
+
C && E && (Ge !== null && google.maps.event.removeListener(Ge), ct(google.maps.event.addListener(C, "zindex_changed", E)));
|
1648
1648
|
}, [E]), h(function() {
|
1649
1649
|
var He = te(te(te({}, n || mn), o ? mn : { map: B }), { position: e }), ae = new google.maps.Marker(He);
|
1650
|
-
return o ? o.addMarker(ae, !!r) : ae.setMap(B), e && ae.setPosition(e), typeof a < "u" && ae.setVisible(a), typeof s < "u" && ae.setDraggable(s), typeof u < "u" && ae.setClickable(u), typeof d == "string" && ae.setCursor(d), f && ae.setIcon(f), typeof c < "u" && ae.setLabel(c), typeof p < "u" && ae.setOpacity(p), w && ae.setShape(w), typeof m == "string" && ae.setTitle(m), typeof
|
1650
|
+
return o ? o.addMarker(ae, !!r) : ae.setMap(B), e && ae.setPosition(e), typeof a < "u" && ae.setVisible(a), typeof s < "u" && ae.setDraggable(s), typeof u < "u" && ae.setClickable(u), typeof d == "string" && ae.setCursor(d), f && ae.setIcon(f), typeof c < "u" && ae.setLabel(c), typeof p < "u" && ae.setOpacity(p), w && ae.setShape(w), typeof m == "string" && ae.setTitle(m), typeof L == "number" && ae.setZIndex(L), O && K(google.maps.event.addListener(ae, "dblclick", O)), _ && 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)), S && Ye(google.maps.event.addListener(ae, "mouseover", S)), T && ot(google.maps.event.addListener(ae, "mouseup", T)), I && ft(google.maps.event.addListener(ae, "rightclick", I)), x && Et(google.maps.event.addListener(ae, "click", x)), 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)), P && _e(google.maps.event.addListener(ae, "visible_changed", P)), E && ct(google.maps.event.addListener(ae, "zindex_changed", E)), X(ae), j && j(ae), function() {
|
1651
1651
|
D !== null && google.maps.event.removeListener(D), N !== null && google.maps.event.removeListener(N), ve !== null && google.maps.event.removeListener(ve), Se !== null && google.maps.event.removeListener(Se), $e !== null && google.maps.event.removeListener($e), ne !== null && google.maps.event.removeListener(ne), Be !== null && google.maps.event.removeListener(Be), rt !== null && google.maps.event.removeListener(rt), ut !== null && google.maps.event.removeListener(ut), be !== null && google.maps.event.removeListener(be), Ve !== null && google.maps.event.removeListener(Ve), Pt !== null && google.maps.event.removeListener(Pt), Ct !== null && google.maps.event.removeListener(Ct), Tt !== null && google.maps.event.removeListener(Tt), Ot !== null && google.maps.event.removeListener(Ot), It !== null && google.maps.event.removeListener(It), we !== null && google.maps.event.removeListener(we), We !== null && google.maps.event.removeListener(We), Ge !== null && google.maps.event.removeListener(Ge), R && R(ae), o ? o.removeMarker(ae, !!r) : ae && ae.setMap(null);
|
1652
1652
|
};
|
1653
1653
|
}, []);
|
@@ -1656,9 +1656,9 @@ function Ds(t) {
|
|
1656
1656
|
if (!Zr(He))
|
1657
1657
|
return He;
|
1658
1658
|
var ae = He;
|
1659
|
-
return Yr(ae, { anchor:
|
1659
|
+
return Yr(ae, { anchor: C });
|
1660
1660
|
}) : null;
|
1661
|
-
}, [i,
|
1661
|
+
}, [i, C]);
|
1662
1662
|
return v.jsx(v.Fragment, { children: dt }) || null;
|
1663
1663
|
}
|
1664
1664
|
Ze(Ds);
|
@@ -2187,55 +2187,55 @@ 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,
|
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, L = t.title, x = t.zoomOnClick, O = t.onClick, k = t.onClusteringBegin, _ = t.onClusteringEnd, y = t.onMouseOver, b = t.onMouseOut, S = t.onLoad, T = t.onUnmount, F = M(null), I = 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), P = ee[0], E = ee[1], j = M(null), R = j[0], B = j[1], q = M(null), C = q[0], X = q[1];
|
2191
2191
|
return h(function() {
|
2192
|
-
|
2192
|
+
I && b && (R !== null && google.maps.event.removeListener(R), B(google.maps.event.addListener(I, et.onMouseOut, b)));
|
2193
2193
|
}, [b]), h(function() {
|
2194
|
-
|
2194
|
+
I && y && (C !== null && google.maps.event.removeListener(C), X(google.maps.event.addListener(I, et.onMouseOver, y)));
|
2195
2195
|
}, [y]), h(function() {
|
2196
|
-
|
2197
|
-
}, [
|
2198
|
-
|
2196
|
+
I && O && (W !== null && google.maps.event.removeListener(W), Y(google.maps.event.addListener(I, et.onClick, O)));
|
2197
|
+
}, [O]), h(function() {
|
2198
|
+
I && k && (A !== null && google.maps.event.removeListener(A), Z(google.maps.event.addListener(I, et.onClusteringBegin, k)));
|
2199
2199
|
}, [k]), h(function() {
|
2200
|
-
|
2200
|
+
I && _ && (P !== null && google.maps.event.removeListener(P), Z(google.maps.event.addListener(I, et.onClusteringEnd, _)));
|
2201
2201
|
}, [_]), h(function() {
|
2202
|
-
typeof o < "u" &&
|
2203
|
-
}, [
|
2204
|
-
typeof r < "u" &&
|
2205
|
-
}, [
|
2206
|
-
typeof i < "u" &&
|
2207
|
-
}, [
|
2208
|
-
typeof s < "u" &&
|
2209
|
-
}, [
|
2210
|
-
typeof a < "u" &&
|
2211
|
-
}, [
|
2212
|
-
typeof l < "u" &&
|
2213
|
-
}, [
|
2214
|
-
typeof u < "u" &&
|
2215
|
-
}, [
|
2216
|
-
typeof d < "u" &&
|
2217
|
-
}, [
|
2218
|
-
typeof f < "u" &&
|
2219
|
-
}, [
|
2220
|
-
typeof c < "u" &&
|
2221
|
-
}, [
|
2222
|
-
typeof p < "u" &&
|
2223
|
-
}, [
|
2224
|
-
typeof w < "u" &&
|
2225
|
-
}, [
|
2226
|
-
typeof m < "u" &&
|
2227
|
-
}, [
|
2228
|
-
typeof
|
2229
|
-
}, [
|
2230
|
-
typeof x < "u" &&
|
2231
|
-
}, [
|
2202
|
+
typeof o < "u" && I !== null && Me.averageCenter(I, o);
|
2203
|
+
}, [I, o]), h(function() {
|
2204
|
+
typeof r < "u" && I !== null && Me.batchSizeIE(I, r);
|
2205
|
+
}, [I, r]), h(function() {
|
2206
|
+
typeof i < "u" && I !== null && Me.calculator(I, i);
|
2207
|
+
}, [I, i]), h(function() {
|
2208
|
+
typeof s < "u" && I !== null && Me.clusterClass(I, s);
|
2209
|
+
}, [I, s]), h(function() {
|
2210
|
+
typeof a < "u" && I !== null && Me.enableRetinaIcons(I, a);
|
2211
|
+
}, [I, a]), h(function() {
|
2212
|
+
typeof l < "u" && I !== null && Me.gridSize(I, l);
|
2213
|
+
}, [I, l]), h(function() {
|
2214
|
+
typeof u < "u" && I !== null && Me.ignoreHidden(I, u);
|
2215
|
+
}, [I, u]), h(function() {
|
2216
|
+
typeof d < "u" && I !== null && Me.imageExtension(I, d);
|
2217
|
+
}, [I, d]), h(function() {
|
2218
|
+
typeof f < "u" && I !== null && Me.imagePath(I, f);
|
2219
|
+
}, [I, f]), h(function() {
|
2220
|
+
typeof c < "u" && I !== null && Me.imageSizes(I, c);
|
2221
|
+
}, [I, c]), h(function() {
|
2222
|
+
typeof p < "u" && I !== null && Me.maxZoom(I, p);
|
2223
|
+
}, [I, p]), h(function() {
|
2224
|
+
typeof w < "u" && I !== null && Me.minimumClusterSize(I, w);
|
2225
|
+
}, [I, w]), h(function() {
|
2226
|
+
typeof m < "u" && I !== null && Me.styles(I, m);
|
2227
|
+
}, [I, m]), h(function() {
|
2228
|
+
typeof L < "u" && I !== null && Me.title(I, L);
|
2229
|
+
}, [I, L]), h(function() {
|
2230
|
+
typeof x < "u" && I !== null && Me.zoomOnClick(I, x);
|
2231
|
+
}, [I, 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),
|
2235
|
-
R !== null && google.maps.event.removeListener(R),
|
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), L && Me.title(D, L), 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)), O && Y(google.maps.event.addListener(D, et.onClick, O)), k && Z(google.maps.event.addListener(D, et.onClusteringBegin, k)), _ && E(google.maps.event.addListener(D, et.onClusteringEnd, _)), U(D), S && S(D), function() {
|
2235
|
+
R !== null && google.maps.event.removeListener(R), C !== null && google.maps.event.removeListener(C), W !== null && google.maps.event.removeListener(W), A !== null && google.maps.event.removeListener(A), P !== null && google.maps.event.removeListener(P), T && T(D);
|
2236
2236
|
};
|
2237
2237
|
}
|
2238
|
-
}, []),
|
2238
|
+
}, []), I !== null && e(I) || null;
|
2239
2239
|
}
|
2240
2240
|
Ze(Zs);
|
2241
2241
|
(function(t) {
|
@@ -2338,8 +2338,8 @@ var fi = (
|
|
2338
2338
|
if (n instanceof google.maps.Map) {
|
2339
2339
|
var o = 0, r = 0, i = n.getBounds();
|
2340
2340
|
i && !i.contains(this.position) && n.setCenter(this.position);
|
2341
|
-
var s = n.getDiv(), a = s.offsetWidth, l = s.offsetHeight, u = this.pixelOffset.width, d = this.pixelOffset.height, f = this.div.offsetWidth, c = this.div.offsetHeight, p = this.infoBoxClearance.width, w = this.infoBoxClearance.height, m = this.getProjection(),
|
2342
|
-
|
2341
|
+
var s = n.getDiv(), a = s.offsetWidth, l = s.offsetHeight, u = this.pixelOffset.width, d = this.pixelOffset.height, f = this.div.offsetWidth, c = this.div.offsetHeight, p = this.infoBoxClearance.width, w = this.infoBoxClearance.height, m = this.getProjection(), L = m.fromLatLngToContainerPixel(this.position);
|
2342
|
+
L !== null && (L.x < -u + p ? o = L.x + u - p : L.x + f + u + p > a && (o = L.x + f + u + p - a), this.alignBottom ? L.y < -d + w + c ? r = L.y + d - w - c : L.y + d + w > l && (r = L.y + d + w - l) : L.y < -d + w ? r = L.y + d - w : L.y + c + d + w > l && (r = L.y + c + d + w - l)), o === 0 && r === 0 || n.panBy(o, r);
|
2343
2343
|
}
|
2344
2344
|
}
|
2345
2345
|
}, t.prototype.setBoxStyle = function() {
|
@@ -2446,7 +2446,7 @@ var 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],
|
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], L = w[1], x = M(null), O = x[0], k = x[1], _ = M(null), y = _[0], b = _[1], S = M(null), T = S[0], F = S[1], I = M(null), U = I[0], Q = I[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() {
|
@@ -2459,7 +2459,7 @@ function Gs(t) {
|
|
2459
2459
|
}, [r]), h(function() {
|
2460
2460
|
typeof i == "number" && m !== null && m.setZIndex(i);
|
2461
2461
|
}, [i]), h(function() {
|
2462
|
-
m && s && (
|
2462
|
+
m && s && (O !== null && google.maps.event.removeListener(O), k(google.maps.event.addListener(m, "closeclick", s)));
|
2463
2463
|
}, [s]), h(function() {
|
2464
2464
|
m && a && (y !== null && google.maps.event.removeListener(y), b(google.maps.event.addListener(m, "domready", a)));
|
2465
2465
|
}, [a]), h(function() {
|
@@ -2470,13 +2470,13 @@ function Gs(t) {
|
|
2470
2470
|
m && d && (W !== null && google.maps.event.removeListener(W), Y(google.maps.event.addListener(m, "zindex_changed", d)));
|
2471
2471
|
}, [d]), h(function() {
|
2472
2472
|
if (p) {
|
2473
|
-
var A = o || Ys, Z = A.position, ee = eo(A, ["position"]),
|
2474
|
-
Z && !(Z instanceof google.maps.LatLng) && (
|
2475
|
-
var E = new fi(te(te({}, ee),
|
2476
|
-
V.current = document.createElement("div"),
|
2473
|
+
var A = o || Ys, Z = A.position, ee = eo(A, ["position"]), P = void 0;
|
2474
|
+
Z && !(Z instanceof google.maps.LatLng) && (P = new google.maps.LatLng(Z.lat, Z.lng));
|
2475
|
+
var E = new fi(te(te({}, ee), P ? { position: P } : {}));
|
2476
|
+
V.current = document.createElement("div"), L(E), s && k(google.maps.event.addListener(E, "closeclick", s)), a && b(google.maps.event.addListener(E, "domready", a)), l && F(google.maps.event.addListener(E, "content_changed", l)), u && Q(google.maps.event.addListener(E, "position_changed", u)), d && Y(google.maps.event.addListener(E, "zindex_changed", d)), E.setContent(V.current), n ? E.open(p, n) : E.getPosition() ? E.open(p) : Ue(!1, "You must provide either an anchor or a position prop for <InfoBox>."), f && f(E);
|
2477
2477
|
}
|
2478
2478
|
return function() {
|
2479
|
-
m !== null && (
|
2479
|
+
m !== null && (O && google.maps.event.removeListener(O), T && google.maps.event.removeListener(T), y && google.maps.event.removeListener(y), U && google.maps.event.removeListener(U), W && google.maps.event.removeListener(W), c && c(m), m.close());
|
2480
2480
|
};
|
2481
2481
|
}, []), V.current ? bn(at.only(e), V.current) : null;
|
2482
2482
|
}
|
@@ -2624,9 +2624,9 @@ class to {
|
|
2624
2624
|
for (; l.length; ) {
|
2625
2625
|
const d = l.pop() || 0, f = l.pop() || 0, c = l.pop() || 0;
|
2626
2626
|
if (f - c <= a) {
|
2627
|
-
for (let
|
2628
|
-
const x = s[2 *
|
2629
|
-
x >= e && x <= o &&
|
2627
|
+
for (let L = c; L <= f; L++) {
|
2628
|
+
const x = s[2 * L], O = s[2 * L + 1];
|
2629
|
+
x >= e && x <= o && O >= n && O <= r && u.push(i[L]);
|
2630
2630
|
}
|
2631
2631
|
continue;
|
2632
2632
|
}
|
@@ -2648,8 +2648,8 @@ class to {
|
|
2648
2648
|
for (; a.length; ) {
|
2649
2649
|
const d = a.pop() || 0, f = a.pop() || 0, c = a.pop() || 0;
|
2650
2650
|
if (f - c <= s) {
|
2651
|
-
for (let
|
2652
|
-
jo(i[2 *
|
2651
|
+
for (let L = c; L <= f; L++)
|
2652
|
+
jo(i[2 * L], i[2 * L + 1], e, n) <= u && l.push(r[L]);
|
2653
2653
|
continue;
|
2654
2654
|
}
|
2655
2655
|
const p = c + f >> 1, w = i[2 * p], m = i[2 * p + 1];
|
@@ -2843,8 +2843,8 @@ class Xs {
|
|
2843
2843
|
else {
|
2844
2844
|
const m = this.points[n[l + vt]];
|
2845
2845
|
d = m.properties;
|
2846
|
-
const [
|
2847
|
-
f = nn(
|
2846
|
+
const [L, x] = m.geometry.coordinates;
|
2847
|
+
f = nn(L), c = on(x);
|
2848
2848
|
}
|
2849
2849
|
const p = {
|
2850
2850
|
type: 1,
|
@@ -2867,30 +2867,30 @@ class Xs {
|
|
2867
2867
|
if (l[f + xt] <= n) continue;
|
2868
2868
|
l[f + xt] = n;
|
2869
2869
|
const c = l[f], p = l[f + 1], w = e.within(l[f], l[f + 1], a), m = l[f + mt];
|
2870
|
-
let
|
2870
|
+
let L = m;
|
2871
2871
|
for (const x of w) {
|
2872
|
-
const
|
2873
|
-
l[
|
2872
|
+
const O = x * d;
|
2873
|
+
l[O + xt] > n && (L += l[O + mt]);
|
2874
2874
|
}
|
2875
|
-
if (
|
2876
|
-
let x = c * m,
|
2875
|
+
if (L > m && L >= s) {
|
2876
|
+
let x = c * m, O = 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
|
-
const
|
2880
|
-
if (l[
|
2881
|
-
l[
|
2882
|
-
const T = l[
|
2883
|
-
x += l[
|
2879
|
+
const S = b * d;
|
2880
|
+
if (l[S + xt] <= n) continue;
|
2881
|
+
l[S + xt] = n;
|
2882
|
+
const T = l[S + mt];
|
2883
|
+
x += l[S] * T, O += l[S + 1] * T, l[S + Tn] = y, i && (k || (k = this._map(l, f, !0), _ = this.clusterProps.length, this.clusterProps.push(k)), i(k, this._map(l, S)));
|
2884
2884
|
}
|
2885
|
-
l[f + Tn] = y, u.push(x /
|
2885
|
+
l[f + Tn] = y, u.push(x / L, O / L, 1 / 0, y, -1, L), i && u.push(_);
|
2886
2886
|
} else {
|
2887
2887
|
for (let x = 0; x < d; x++) u.push(l[f + x]);
|
2888
|
-
if (
|
2888
|
+
if (L > 1)
|
2889
2889
|
for (const x of w) {
|
2890
|
-
const
|
2891
|
-
if (!(l[
|
2892
|
-
l[
|
2893
|
-
for (let k = 0; k < d; k++) u.push(l[
|
2890
|
+
const O = x * d;
|
2891
|
+
if (!(l[O + xt] <= n)) {
|
2892
|
+
l[O + xt] = n;
|
2893
|
+
for (let k = 0; k < d; k++) u.push(l[O + k]);
|
2894
2894
|
}
|
2895
2895
|
}
|
2896
2896
|
}
|
@@ -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],
|
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], L = w[1], x = M(null), O = x[0], k = x[1], _ = M(null), y = _[0], b = _[1], S = M(null), T = S[0], F = S[1], I = M(null), U = I[0], Q = I[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() {
|
@@ -3309,7 +3309,7 @@ function da(t) {
|
|
3309
3309
|
}, [r]), h(function() {
|
3310
3310
|
typeof i == "number" && m !== null && m.setZIndex(i);
|
3311
3311
|
}, [i]), h(function() {
|
3312
|
-
m && s && (
|
3312
|
+
m && s && (O !== null && google.maps.event.removeListener(O), k(google.maps.event.addListener(m, "closeclick", s)));
|
3313
3313
|
}, [s]), h(function() {
|
3314
3314
|
m && a && (y !== null && google.maps.event.removeListener(y), b(google.maps.event.addListener(m, "domready", a)));
|
3315
3315
|
}, [a]), h(function() {
|
@@ -3320,8 +3320,8 @@ function da(t) {
|
|
3320
3320
|
m && d && (W !== null && google.maps.event.removeListener(W), Y(google.maps.event.addListener(m, "zindex_changed", d)));
|
3321
3321
|
}, [d]), h(function() {
|
3322
3322
|
var A = new google.maps.InfoWindow(te({}, o || {}));
|
3323
|
-
return
|
3324
|
-
|
3323
|
+
return L(A), V.current = document.createElement("div"), s && k(google.maps.event.addListener(A, "closeclick", s)), a && b(google.maps.event.addListener(A, "domready", a)), l && F(google.maps.event.addListener(A, "content_changed", l)), u && Q(google.maps.event.addListener(A, "position_changed", u)), d && Y(google.maps.event.addListener(A, "zindex_changed", d)), A.setContent(V.current), r && A.setPosition(r), i && A.setZIndex(i), n ? A.open(p, n) : A.getPosition() ? A.open(p) : Ue(!1, "You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."), f && f(A), function() {
|
3324
|
+
O && google.maps.event.removeListener(O), T && google.maps.event.removeListener(T), y && google.maps.event.removeListener(y), U && google.maps.event.removeListener(U), W && google.maps.event.removeListener(W), c && c(A), A.close();
|
3325
3325
|
};
|
3326
3326
|
}, []), V.current ? bn(at.only(e), V.current) : null;
|
3327
3327
|
}
|
@@ -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,
|
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, L = t.onDrag, x = t.onLoad, O = t.onUnmount, k = Pe(ce), _ = M(null), y = _[0], b = _[1], S = M(null), T = S[0], F = S[1], I = M(null), U = I[0], Q = I[1], z = M(null), W = z[0], Y = z[1], V = M(null), A = V[0], Z = V[1], ee = M(null), P = ee[0], E = ee[1], j = M(null), R = j[0], B = j[1], q = M(null), C = 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() {
|
@@ -3420,11 +3420,11 @@ function pa(t) {
|
|
3420
3420
|
}, [l]), h(function() {
|
3421
3421
|
y && u && (A !== null && google.maps.event.removeListener(A), Z(google.maps.event.addListener(y, "mousedown", u)));
|
3422
3422
|
}, [u]), h(function() {
|
3423
|
-
y && d && (
|
3423
|
+
y && d && (P !== null && google.maps.event.removeListener(P), E(google.maps.event.addListener(y, "mousemove", d)));
|
3424
3424
|
}, [d]), h(function() {
|
3425
3425
|
y && f && (R !== null && google.maps.event.removeListener(R), B(google.maps.event.addListener(y, "mouseout", f)));
|
3426
3426
|
}, [f]), h(function() {
|
3427
|
-
y && c && (
|
3427
|
+
y && c && (C !== null && google.maps.event.removeListener(C), X(google.maps.event.addListener(y, "mouseover", c)));
|
3428
3428
|
}, [c]), h(function() {
|
3429
3429
|
y && p && (D !== null && google.maps.event.removeListener(D), K(google.maps.event.addListener(y, "mouseup", p)));
|
3430
3430
|
}, [p]), h(function() {
|
@@ -3432,11 +3432,11 @@ function pa(t) {
|
|
3432
3432
|
}, [w]), h(function() {
|
3433
3433
|
y && m && (ve !== null && google.maps.event.removeListener(ve), he(google.maps.event.addListener(y, "click", m)));
|
3434
3434
|
}, [m]), h(function() {
|
3435
|
-
y &&
|
3436
|
-
}, [
|
3435
|
+
y && L && (Se !== null && google.maps.event.removeListener(Se), ue(google.maps.event.addListener(y, "drag", L)));
|
3436
|
+
}, [L]), h(function() {
|
3437
3437
|
var ie = new google.maps.Polyline(te(te({}, e || fa), { map: k }));
|
3438
|
-
return i && ie.setPath(i), typeof r < "u" && ie.setVisible(r), typeof o < "u" && ie.setEditable(o), typeof n < "u" && ie.setDraggable(n), s && F(google.maps.event.addListener(ie, "dblclick", s)), a && Q(google.maps.event.addListener(ie, "dragend", a)), l && Y(google.maps.event.addListener(ie, "dragstart", l)), u && Z(google.maps.event.addListener(ie, "mousedown", u)), d && E(google.maps.event.addListener(ie, "mousemove", d)), f && B(google.maps.event.addListener(ie, "mouseout", f)), c && X(google.maps.event.addListener(ie, "mouseover", c)), p && K(google.maps.event.addListener(ie, "mouseup", p)), w && de(google.maps.event.addListener(ie, "rightclick", w)), m && he(google.maps.event.addListener(ie, "click", m)),
|
3439
|
-
T !== null && google.maps.event.removeListener(T), U !== null && google.maps.event.removeListener(U), W !== null && google.maps.event.removeListener(W), A !== null && google.maps.event.removeListener(A),
|
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)), L && ue(google.maps.event.addListener(ie, "drag", L)), b(ie), x && x(ie), function() {
|
3439
|
+
T !== null && google.maps.event.removeListener(T), U !== null && google.maps.event.removeListener(U), W !== null && google.maps.event.removeListener(W), A !== null && google.maps.event.removeListener(A), P !== null && google.maps.event.removeListener(P), R !== null && google.maps.event.removeListener(R), C !== null && google.maps.event.removeListener(C), D !== null && google.maps.event.removeListener(D), N !== null && google.maps.event.removeListener(N), ve !== null && google.maps.event.removeListener(ve), O && O(ie), ie.setMap(null);
|
3440
3440
|
};
|
3441
3441
|
}, []), null;
|
3442
3442
|
}
|
@@ -3514,53 +3514,53 @@ 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,
|
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, L = t.onClick, x = t.onDrag, O = t.onLoad, k = t.onUnmount, _ = t.onEdit, y = Pe(ce), b = M(null), S = b[0], T = b[1], F = M(null), I = 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], P = Z[1], E = M(null), j = E[0], R = E[1], B = M(null), q = B[0], C = 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
|
+
S !== null && S.setMap(y);
|
3520
3520
|
}, [y]), h(function() {
|
3521
|
-
typeof e < "u" &&
|
3522
|
-
}, [
|
3523
|
-
typeof n < "u" &&
|
3524
|
-
}, [
|
3525
|
-
typeof o < "u" &&
|
3526
|
-
}, [
|
3527
|
-
typeof r < "u" &&
|
3528
|
-
}, [
|
3529
|
-
typeof i < "u" &&
|
3530
|
-
}, [
|
3531
|
-
typeof s < "u" &&
|
3532
|
-
}, [
|
3533
|
-
|
3521
|
+
typeof e < "u" && S !== null && S.setOptions(e);
|
3522
|
+
}, [S, e]), h(function() {
|
3523
|
+
typeof n < "u" && S !== null && S.setDraggable(n);
|
3524
|
+
}, [S, n]), h(function() {
|
3525
|
+
typeof o < "u" && S !== null && S.setEditable(o);
|
3526
|
+
}, [S, o]), h(function() {
|
3527
|
+
typeof r < "u" && S !== null && S.setVisible(r);
|
3528
|
+
}, [S, r]), h(function() {
|
3529
|
+
typeof i < "u" && S !== null && S.setPath(i);
|
3530
|
+
}, [S, i]), h(function() {
|
3531
|
+
typeof s < "u" && S !== null && S.setPaths(s);
|
3532
|
+
}, [S, s]), h(function() {
|
3533
|
+
S && a && (I !== null && google.maps.event.removeListener(I), U(google.maps.event.addListener(S, "dblclick", a)));
|
3534
3534
|
}, [a]), h(function() {
|
3535
|
-
|
3536
|
-
_ == null || _(
|
3537
|
-
}), google.maps.event.addListener(
|
3538
|
-
_ == null || _(
|
3535
|
+
S && (google.maps.event.addListener(S.getPath(), "insert_at", function() {
|
3536
|
+
_ == null || _(S);
|
3537
|
+
}), google.maps.event.addListener(S.getPath(), "set_at", function() {
|
3538
|
+
_ == null || _(S);
|
3539
3539
|
}));
|
3540
|
-
}, [
|
3541
|
-
|
3540
|
+
}, [S, _]), h(function() {
|
3541
|
+
S && l && (z !== null && google.maps.event.removeListener(z), W(google.maps.event.addListener(S, "dragend", l)));
|
3542
3542
|
}, [l]), h(function() {
|
3543
|
-
|
3543
|
+
S && u && (V !== null && google.maps.event.removeListener(V), A(google.maps.event.addListener(S, "dragstart", u)));
|
3544
3544
|
}, [u]), h(function() {
|
3545
|
-
|
3545
|
+
S && d && (ee !== null && google.maps.event.removeListener(ee), P(google.maps.event.addListener(S, "mousedown", d)));
|
3546
3546
|
}, [d]), h(function() {
|
3547
|
-
|
3547
|
+
S && f && (j !== null && google.maps.event.removeListener(j), R(google.maps.event.addListener(S, "mousemove", f)));
|
3548
3548
|
}, [f]), h(function() {
|
3549
|
-
|
3549
|
+
S && c && (q !== null && google.maps.event.removeListener(q), C(google.maps.event.addListener(S, "mouseout", c)));
|
3550
3550
|
}, [c]), h(function() {
|
3551
|
-
|
3551
|
+
S && p && (J !== null && google.maps.event.removeListener(J), D(google.maps.event.addListener(S, "mouseover", p)));
|
3552
3552
|
}, [p]), h(function() {
|
3553
|
-
|
3553
|
+
S && w && (re !== null && google.maps.event.removeListener(re), N(google.maps.event.addListener(S, "mouseup", w)));
|
3554
3554
|
}, [w]), h(function() {
|
3555
|
-
|
3555
|
+
S && m && (Ce !== null && google.maps.event.removeListener(Ce), ve(google.maps.event.addListener(S, "rightclick", m)));
|
3556
3556
|
}, [m]), h(function() {
|
3557
|
-
|
3558
|
-
}, [
|
3559
|
-
|
3557
|
+
S && L && (Te !== null && google.maps.event.removeListener(Te), Se(google.maps.event.addListener(S, "click", L)));
|
3558
|
+
}, [L]), h(function() {
|
3559
|
+
S && x && (ie !== null && google.maps.event.removeListener(ie), $e(google.maps.event.addListener(S, "drag", x)));
|
3560
3560
|
}, [x]), h(function() {
|
3561
3561
|
var le = new google.maps.Polygon(te(te({}, e || {}), { map: 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 &&
|
3563
|
-
|
3562
|
+
return i && le.setPath(i), s && le.setPaths(s), typeof r < "u" && le.setVisible(r), typeof o < "u" && le.setEditable(o), typeof n < "u" && le.setDraggable(n), a && U(google.maps.event.addListener(le, "dblclick", a)), l && W(google.maps.event.addListener(le, "dragend", l)), u && A(google.maps.event.addListener(le, "dragstart", u)), d && P(google.maps.event.addListener(le, "mousedown", d)), f && R(google.maps.event.addListener(le, "mousemove", f)), c && C(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)), L && Se(google.maps.event.addListener(le, "click", L)), x && $e(google.maps.event.addListener(le, "drag", x)), T(le), O && O(le), function() {
|
3563
|
+
I !== null && google.maps.event.removeListener(I), z !== null && google.maps.event.removeListener(z), V !== null && google.maps.event.removeListener(V), ee !== null && google.maps.event.removeListener(ee), j !== null && google.maps.event.removeListener(j), q !== null && google.maps.event.removeListener(q), J !== null && google.maps.event.removeListener(J), re !== null && google.maps.event.removeListener(re), Ce !== null && google.maps.event.removeListener(Ce), Te !== null && google.maps.event.removeListener(Te), k && k(le), le.setMap(null);
|
3564
3564
|
};
|
3565
3565
|
}, []), null;
|
3566
3566
|
}
|
@@ -3636,7 +3636,7 @@ 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,
|
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, L = t.onDrag, x = t.onBoundsChanged, O = t.onLoad, k = t.onUnmount, _ = Pe(ce), y = M(null), b = y[0], S = y[1], T = M(null), F = T[0], I = 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], P = M(null), E = P[0], j = P[1], R = M(null), B = R[0], q = R[1], C = M(null), X = C[0], J = C[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
3641
|
b !== null && b.setMap(_);
|
3642
3642
|
}, [_]), h(function() {
|
@@ -3650,7 +3650,7 @@ function ga(t) {
|
|
3650
3650
|
}, [b, i]), h(function() {
|
3651
3651
|
typeof n < "u" && b !== null && b.setBounds(n);
|
3652
3652
|
}, [b, n]), h(function() {
|
3653
|
-
b && s && (F !== null && google.maps.event.removeListener(F),
|
3653
|
+
b && s && (F !== null && google.maps.event.removeListener(F), I(google.maps.event.addListener(b, "dblclick", s)));
|
3654
3654
|
}, [s]), h(function() {
|
3655
3655
|
b && a && (Q !== null && google.maps.event.removeListener(Q), z(google.maps.event.addListener(b, "dragend", a)));
|
3656
3656
|
}, [a]), h(function() {
|
@@ -3670,12 +3670,12 @@ function ga(t) {
|
|
3670
3670
|
}, [w]), h(function() {
|
3671
3671
|
b && m && (he !== null && google.maps.event.removeListener(he), Te(google.maps.event.addListener(b, "click", m)));
|
3672
3672
|
}, [m]), h(function() {
|
3673
|
-
b &&
|
3674
|
-
}, [
|
3673
|
+
b && L && (ue !== null && google.maps.event.removeListener(ue), ie(google.maps.event.addListener(b, "drag", L)));
|
3674
|
+
}, [L]), h(function() {
|
3675
3675
|
b && x && (le !== null && google.maps.event.removeListener(le), ze(google.maps.event.addListener(b, "bounds_changed", x)));
|
3676
3676
|
}, [x]), h(function() {
|
3677
3677
|
var ne = new google.maps.Rectangle(te(te({}, e || {}), { map: _ }));
|
3678
|
-
return typeof i < "u" && ne.setVisible(i), typeof r < "u" && ne.setEditable(r), typeof o < "u" && ne.setDraggable(o), typeof n < "u" && ne.setBounds(n), s &&
|
3678
|
+
return typeof i < "u" && ne.setVisible(i), typeof r < "u" && ne.setEditable(r), typeof o < "u" && ne.setDraggable(o), typeof n < "u" && ne.setBounds(n), s && I(google.maps.event.addListener(ne, "dblclick", s)), a && z(google.maps.event.addListener(ne, "dragend", a)), l && V(google.maps.event.addListener(ne, "dragstart", l)), u && ee(google.maps.event.addListener(ne, "mousedown", u)), d && j(google.maps.event.addListener(ne, "mousemove", d)), f && q(google.maps.event.addListener(ne, "mouseout", f)), c && J(google.maps.event.addListener(ne, "mouseover", c)), p && re(google.maps.event.addListener(ne, "mouseup", p)), w && Ce(google.maps.event.addListener(ne, "rightclick", w)), m && Te(google.maps.event.addListener(ne, "click", m)), L && ie(google.maps.event.addListener(ne, "drag", L)), x && ze(google.maps.event.addListener(ne, "bounds_changed", x)), S(ne), O && O(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
|
};
|
3681
3681
|
}, []), null;
|
@@ -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,
|
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, L = t.onClick, x = t.onDrag, O = t.onCenterChanged, k = t.onRadiusChanged, _ = t.onLoad, y = t.onUnmount, b = Pe(ce), S = M(null), T = S[0], F = S[1], I = M(null), U = I[0], Q = I[1], z = M(null), W = z[0], Y = z[1], V = M(null), A = V[0], Z = V[1], ee = M(null), P = ee[0], E = ee[1], j = M(null), R = j[0], B = j[1], q = M(null), C = 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() {
|
@@ -3778,11 +3778,11 @@ function va(t) {
|
|
3778
3778
|
}, [l]), h(function() {
|
3779
3779
|
T && u && (A !== null && google.maps.event.removeListener(A), Z(google.maps.event.addListener(T, "dragstart", u)));
|
3780
3780
|
}, [u]), h(function() {
|
3781
|
-
T && d && (
|
3781
|
+
T && d && (P !== null && google.maps.event.removeListener(P), E(google.maps.event.addListener(T, "mousedown", d)));
|
3782
3782
|
}, [d]), h(function() {
|
3783
3783
|
T && f && (R !== null && google.maps.event.removeListener(R), B(google.maps.event.addListener(T, "mousemove", f)));
|
3784
3784
|
}, [f]), h(function() {
|
3785
|
-
T && c && (
|
3785
|
+
T && c && (C !== null && google.maps.event.removeListener(C), X(google.maps.event.addListener(T, "mouseout", c)));
|
3786
3786
|
}, [c]), h(function() {
|
3787
3787
|
T && p && (D !== null && google.maps.event.removeListener(D), K(google.maps.event.addListener(T, "mouseover", p)));
|
3788
3788
|
}, [p]), h(function() {
|
@@ -3790,17 +3790,17 @@ function va(t) {
|
|
3790
3790
|
}, [w]), h(function() {
|
3791
3791
|
T && m && (ve !== null && google.maps.event.removeListener(ve), he(google.maps.event.addListener(T, "rightclick", m)));
|
3792
3792
|
}, [m]), h(function() {
|
3793
|
-
T &&
|
3794
|
-
}, [
|
3793
|
+
T && L && (Se !== null && google.maps.event.removeListener(Se), ue(google.maps.event.addListener(T, "click", L)));
|
3794
|
+
}, [L]), h(function() {
|
3795
3795
|
T && x && ($e !== null && google.maps.event.removeListener($e), le(google.maps.event.addListener(T, "drag", x)));
|
3796
3796
|
}, [x]), h(function() {
|
3797
|
-
T &&
|
3798
|
-
}, [
|
3797
|
+
T && O && (ne !== null && google.maps.event.removeListener(ne), Ye(google.maps.event.addListener(T, "center_changed", O)));
|
3798
|
+
}, [L]), h(function() {
|
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)),
|
3803
|
-
U !== null && google.maps.event.removeListener(U), W !== null && google.maps.event.removeListener(W), A !== null && google.maps.event.removeListener(A),
|
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)), L && ue(google.maps.event.addListener(ye, "click", L)), x && le(google.maps.event.addListener(ye, "drag", x)), O && Ye(google.maps.event.addListener(ye, "center_changed", O)), 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), P !== null && google.maps.event.removeListener(P), R !== null && google.maps.event.removeListener(R), C !== null && google.maps.event.removeListener(C), 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,13 +3901,13 @@ 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,
|
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, L = t.onUnmount, x = Pe(ce), O = M(null), k = O[0], _ = O[1], y = M(null), b = y[0], S = y[1], T = M(null), F = T[0], I = 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], P = M(null), E = P[0], j = P[1], R = M(null), B = R[0], q = R[1], C = M(null), X = C[0], J = C[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() {
|
3908
|
-
k && o && (b !== null && google.maps.event.removeListener(b),
|
3908
|
+
k && o && (b !== null && google.maps.event.removeListener(b), S(google.maps.event.addListener(k, "dblclick", o)));
|
3909
3909
|
}, [o]), h(function() {
|
3910
|
-
k && r && (F !== null && google.maps.event.removeListener(F),
|
3910
|
+
k && r && (F !== null && google.maps.event.removeListener(F), I(google.maps.event.addListener(k, "mousedown", r)));
|
3911
3911
|
}, [r]), h(function() {
|
3912
3912
|
k && i && (Q !== null && google.maps.event.removeListener(Q), z(google.maps.event.addListener(k, "mousemove", i)));
|
3913
3913
|
}, [i]), h(function() {
|
@@ -3933,10 +3933,10 @@ 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 &&
|
3936
|
+
o && S(google.maps.event.addListener(ne, "dblclick", o)), r && I(google.maps.event.addListener(ne, "mousedown", r)), i && z(google.maps.event.addListener(ne, "mousemove", i)), s && V(google.maps.event.addListener(ne, "mouseout", s)), a && ee(google.maps.event.addListener(ne, "mouseover", a)), l && j(google.maps.event.addListener(ne, "mouseup", l)), u && q(google.maps.event.addListener(ne, "rightclick", u)), n && J(google.maps.event.addListener(ne, "click", n)), d && re(google.maps.event.addListener(ne, "addfeature", d)), f && Ce(google.maps.event.addListener(ne, "removefeature", f)), c && Te(google.maps.event.addListener(ne, "removeproperty", c)), p && ie(google.maps.event.addListener(ne, "setgeometry", p)), w && ze(google.maps.event.addListener(ne, "setproperty", w)), _(ne), m && m(ne);
|
3937
3937
|
}
|
3938
3938
|
return function() {
|
3939
|
-
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),
|
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), L && L(k), k.setMap(null));
|
3940
3940
|
};
|
3941
3941
|
}, []), null;
|
3942
3942
|
}
|
@@ -4724,8 +4724,8 @@ function Yc(t) {
|
|
4724
4724
|
className: u = "",
|
4725
4725
|
children: d,
|
4726
4726
|
...f
|
4727
|
-
} = t, p = { xs: 12, sm: 16, md: 20, lg: 24 }[i],
|
4728
|
-
return /* @__PURE__ */ v.jsxs("button", { className:
|
4727
|
+
} = t, p = { xs: 12, sm: 16, md: 20, lg: 24 }[i], L = `arkynButton ${e ? "loadingTrue" : "loadingFalse"} ${o} ${n} ${i} ${r ? "loadingTextTrue" : "loadingTextFalse"} ${u}`;
|
4728
|
+
return /* @__PURE__ */ v.jsxs("button", { className: L, disabled: l || e, ...f, children: [
|
4729
4729
|
/* @__PURE__ */ v.jsxs("div", { className: "arkynButtonSpinner", children: [
|
4730
4730
|
/* @__PURE__ */ v.jsx(kt, { size: p, strokeWidth: 2.5 }),
|
4731
4731
|
r && r
|
@@ -4770,7 +4770,7 @@ function qc(t) {
|
|
4770
4770
|
onCheck: a,
|
4771
4771
|
value: l,
|
4772
4772
|
...u
|
4773
|
-
} = t, { id: d, inputRef: f, error: c } = tt(), p = r || !!c, [w, m] = M(i || !1),
|
4773
|
+
} = t, { id: d, inputRef: f, error: c } = tt(), p = r || !!c, [w, m] = M(i || !1), L = typeof s == "boolean" ? s : w, k = `arkynCheckbox ${o} ${p ? "errorTrue" : "errorFalse"} ${L ? "checkedTrue" : "checkedFalse"} ${n}`;
|
4774
4774
|
function _() {
|
4775
4775
|
const y = w;
|
4776
4776
|
m(!y), a && a(y ? "" : l || "checked");
|
@@ -4790,7 +4790,7 @@ function qc(t) {
|
|
4790
4790
|
type: "hidden",
|
4791
4791
|
name: e,
|
4792
4792
|
ref: f,
|
4793
|
-
value:
|
4793
|
+
value: L ? l || "checked" : ""
|
4794
4794
|
}
|
4795
4795
|
),
|
4796
4796
|
/* @__PURE__ */ v.jsx(Kr, {})
|
@@ -4872,9 +4872,9 @@ function _a(t, e) {
|
|
4872
4872
|
readOnly: p,
|
4873
4873
|
onFocus: w,
|
4874
4874
|
onBlur: m,
|
4875
|
-
title:
|
4875
|
+
title: L,
|
4876
4876
|
style: x,
|
4877
|
-
onChange:
|
4877
|
+
onChange: O,
|
4878
4878
|
...k
|
4879
4879
|
} = t;
|
4880
4880
|
function _(W) {
|
@@ -4896,9 +4896,9 @@ function _a(t, e) {
|
|
4896
4896
|
readOnly: p,
|
4897
4897
|
onFocus: w,
|
4898
4898
|
onBlur: m,
|
4899
|
-
title:
|
4899
|
+
title: L,
|
4900
4900
|
style: x,
|
4901
|
-
onChange:
|
4901
|
+
onChange: O,
|
4902
4902
|
loadingPosition: y,
|
4903
4903
|
iconSize: z,
|
4904
4904
|
Spinner: /* @__PURE__ */ v.jsx(kt, { className: "spinner", size: z, strokeWidth: 2.5 }),
|
@@ -4914,19 +4914,19 @@ function Ra(t) {
|
|
4914
4914
|
prefix: p,
|
4915
4915
|
sufix: w,
|
4916
4916
|
iconSize: m,
|
4917
|
-
loadingPosition:
|
4917
|
+
loadingPosition: L,
|
4918
4918
|
isLoading: x,
|
4919
|
-
LeftIcon:
|
4919
|
+
LeftIcon: O,
|
4920
4920
|
readOnly: k,
|
4921
4921
|
onFocus: _,
|
4922
4922
|
onBlur: y,
|
4923
4923
|
RightIcon: b,
|
4924
|
-
Spinner:
|
4924
|
+
Spinner: S,
|
4925
4925
|
onChange: T,
|
4926
4926
|
value: F,
|
4927
|
-
defaultValue:
|
4927
|
+
defaultValue: I,
|
4928
4928
|
...U
|
4929
|
-
} = _a({ ...t, id: i, isError: l }, e), [Q, z] = M(
|
4929
|
+
} = _a({ ...t, id: i, isError: l }, e), [Q, z] = M(I), W = O && !x, Y = b && !x, V = L === "left" && x, A = L === "right" && x;
|
4930
4930
|
function Z() {
|
4931
4931
|
u || !(a != null && a.current) || (n(!0), a.current.focus());
|
4932
4932
|
}
|
@@ -4935,7 +4935,7 @@ function Ra(t) {
|
|
4935
4935
|
const B = Li(R);
|
4936
4936
|
R.length > Ci || (R = bi(R, ro[B]), j.target.value = R, z(R), T && T(j));
|
4937
4937
|
}
|
4938
|
-
function
|
4938
|
+
function P(j) {
|
4939
4939
|
n(!0), _ && _(j);
|
4940
4940
|
}
|
4941
4941
|
function E(j) {
|
@@ -4950,8 +4950,8 @@ function Ra(t) {
|
|
4950
4950
|
className: c,
|
4951
4951
|
children: [
|
4952
4952
|
p,
|
4953
|
-
V &&
|
4954
|
-
W && /* @__PURE__ */ v.jsx(
|
4953
|
+
V && S,
|
4954
|
+
W && /* @__PURE__ */ v.jsx(O, { size: m, strokeWidth: 2.5 }),
|
4955
4955
|
/* @__PURE__ */ v.jsx(
|
4956
4956
|
"input",
|
4957
4957
|
{
|
@@ -4959,14 +4959,14 @@ function Ra(t) {
|
|
4959
4959
|
readOnly: k,
|
4960
4960
|
ref: a,
|
4961
4961
|
value: F || Q,
|
4962
|
-
onFocus:
|
4962
|
+
onFocus: P,
|
4963
4963
|
onChange: ee,
|
4964
4964
|
onBlur: E,
|
4965
4965
|
...U
|
4966
4966
|
}
|
4967
4967
|
),
|
4968
4968
|
Y && /* @__PURE__ */ v.jsx(b, { size: m, strokeWidth: 2.5 }),
|
4969
|
-
A &&
|
4969
|
+
A && S,
|
4970
4970
|
w
|
4971
4971
|
]
|
4972
4972
|
}
|
@@ -5002,10 +5002,10 @@ function Na(t, e) {
|
|
5002
5002
|
onFocus: p,
|
5003
5003
|
onBlur: w,
|
5004
5004
|
title: m,
|
5005
|
-
style:
|
5005
|
+
style: L,
|
5006
5006
|
// showCents = false,
|
5007
5007
|
max: x = 1e9,
|
5008
|
-
locale:
|
5008
|
+
locale: O = "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];
|
@@ -5017,13 +5017,13 @@ function Na(t, e) {
|
|
5017
5017
|
LeftIcon: u,
|
5018
5018
|
RightIcon: d,
|
5019
5019
|
disabled: f,
|
5020
|
-
locale:
|
5020
|
+
locale: O,
|
5021
5021
|
currency: k,
|
5022
5022
|
readOnly: c,
|
5023
5023
|
onFocus: p,
|
5024
5024
|
onBlur: w,
|
5025
5025
|
title: m,
|
5026
|
-
style:
|
5026
|
+
style: L,
|
5027
5027
|
max: x,
|
5028
5028
|
// showCents,
|
5029
5029
|
loadingPosition: y,
|
@@ -5039,17 +5039,17 @@ function $a(t) {
|
|
5039
5039
|
style: p,
|
5040
5040
|
className: w,
|
5041
5041
|
prefix: m,
|
5042
|
-
sufix:
|
5042
|
+
sufix: L,
|
5043
5043
|
iconSize: x,
|
5044
|
-
loadingPosition:
|
5044
|
+
loadingPosition: O,
|
5045
5045
|
isLoading: k,
|
5046
5046
|
LeftIcon: _,
|
5047
5047
|
readOnly: y,
|
5048
5048
|
onFocus: b,
|
5049
|
-
onBlur:
|
5049
|
+
onBlur: S,
|
5050
5050
|
RightIcon: T,
|
5051
5051
|
Spinner: F,
|
5052
|
-
value:
|
5052
|
+
value: I,
|
5053
5053
|
max: U,
|
5054
5054
|
onChangeValue: Q,
|
5055
5055
|
onKeyPress: z,
|
@@ -5058,7 +5058,7 @@ function $a(t) {
|
|
5058
5058
|
name: V,
|
5059
5059
|
defaultValue: A,
|
5060
5060
|
...Z
|
5061
|
-
} = Na({ ...t, id: a, isError: d }, e), ee = _ && !k,
|
5061
|
+
} = Na({ ...t, id: a, isError: d }, e), ee = _ && !k, P = T && !k, E = O === "left" && k, j = O === "right" && k;
|
5062
5062
|
function R() {
|
5063
5063
|
f || !(u != null && u.current) || (n(!0), u.current.focus());
|
5064
5064
|
}
|
@@ -5066,9 +5066,9 @@ function $a(t) {
|
|
5066
5066
|
n(!0), b && b(D);
|
5067
5067
|
}
|
5068
5068
|
function q(D) {
|
5069
|
-
n(!1),
|
5069
|
+
n(!1), S && S(D);
|
5070
5070
|
}
|
5071
|
-
const
|
5071
|
+
const C = (D) => {
|
5072
5072
|
const [K, re] = pr(
|
5073
5073
|
Y,
|
5074
5074
|
D,
|
@@ -5077,13 +5077,13 @@ function $a(t) {
|
|
5077
5077
|
return !U || K <= U ? (r(re), [K, re]) : [Gn(o), o];
|
5078
5078
|
}, X = (D) => {
|
5079
5079
|
D.preventDefault();
|
5080
|
-
const [K, re] =
|
5080
|
+
const [K, re] = C(D.target.value);
|
5081
5081
|
Q(D, String(K), String(re));
|
5082
5082
|
}, J = (D) => z && z(D, D.key, D.key);
|
5083
5083
|
return h(() => {
|
5084
|
-
const D =
|
5084
|
+
const D = I || +A || void 0, [, K] = pr(Y, D, W);
|
5085
5085
|
r(K);
|
5086
|
-
}, [W, A,
|
5086
|
+
}, [W, A, I]), /* @__PURE__ */ v.jsxs(
|
5087
5087
|
"section",
|
5088
5088
|
{
|
5089
5089
|
title: c,
|
@@ -5117,8 +5117,8 @@ function $a(t) {
|
|
5117
5117
|
}
|
5118
5118
|
),
|
5119
5119
|
j && F,
|
5120
|
-
|
5121
|
-
|
5120
|
+
P && /* @__PURE__ */ v.jsx(T, { size: x, strokeWidth: 2.5 }),
|
5121
|
+
L
|
5122
5122
|
]
|
5123
5123
|
}
|
5124
5124
|
);
|
@@ -5139,9 +5139,9 @@ function Ba(t, e) {
|
|
5139
5139
|
onFocus: p,
|
5140
5140
|
onBlur: w,
|
5141
5141
|
title: m,
|
5142
|
-
style:
|
5142
|
+
style: L,
|
5143
5143
|
onChange: x,
|
5144
|
-
showMask:
|
5144
|
+
showMask: O = !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];
|
@@ -5157,11 +5157,11 @@ function Ba(t, e) {
|
|
5157
5157
|
onFocus: p,
|
5158
5158
|
onBlur: w,
|
5159
5159
|
title: m,
|
5160
|
-
style:
|
5160
|
+
style: L,
|
5161
5161
|
onChange: x,
|
5162
5162
|
loadingPosition: y,
|
5163
5163
|
iconSize: z,
|
5164
|
-
showMask:
|
5164
|
+
showMask: O,
|
5165
5165
|
Spinner: /* @__PURE__ */ v.jsx(kt, { className: "spinner", size: z, strokeWidth: 2.5 }),
|
5166
5166
|
..._
|
5167
5167
|
};
|
@@ -5176,16 +5176,16 @@ function za(t) {
|
|
5176
5176
|
prefix: p,
|
5177
5177
|
sufix: w,
|
5178
5178
|
iconSize: m,
|
5179
|
-
loadingPosition:
|
5179
|
+
loadingPosition: L,
|
5180
5180
|
isLoading: x,
|
5181
|
-
LeftIcon:
|
5181
|
+
LeftIcon: O,
|
5182
5182
|
readOnly: k,
|
5183
5183
|
onFocus: _,
|
5184
5184
|
onBlur: y,
|
5185
5185
|
RightIcon: b,
|
5186
|
-
Spinner:
|
5186
|
+
Spinner: S,
|
5187
5187
|
...T
|
5188
|
-
} = Ba({ ...t, id: i, isError: l }, e), F =
|
5188
|
+
} = Ba({ ...t, id: i, isError: l }, e), F = O && !x, I = b && !x, U = L === "left" && x, Q = L === "right" && x;
|
5189
5189
|
function z() {
|
5190
5190
|
u || !(a != null && a.current) || (n(!0), a.current.focus());
|
5191
5191
|
}
|
@@ -5204,8 +5204,8 @@ function za(t) {
|
|
5204
5204
|
className: c,
|
5205
5205
|
children: [
|
5206
5206
|
p,
|
5207
|
-
U &&
|
5208
|
-
F && /* @__PURE__ */ v.jsx(
|
5207
|
+
U && S,
|
5208
|
+
F && /* @__PURE__ */ v.jsx(O, { size: m, strokeWidth: 2.5 }),
|
5209
5209
|
/* @__PURE__ */ v.jsx(
|
5210
5210
|
ss,
|
5211
5211
|
{
|
@@ -5217,8 +5217,8 @@ function za(t) {
|
|
5217
5217
|
...T
|
5218
5218
|
}
|
5219
5219
|
),
|
5220
|
-
|
5221
|
-
Q &&
|
5220
|
+
I && /* @__PURE__ */ v.jsx(b, { size: m, strokeWidth: 2.5 }),
|
5221
|
+
Q && S,
|
5222
5222
|
w
|
5223
5223
|
]
|
5224
5224
|
}
|
@@ -5240,9 +5240,9 @@ function Ua(t, e) {
|
|
5240
5240
|
onFocus: p,
|
5241
5241
|
onBlur: w,
|
5242
5242
|
title: m,
|
5243
|
-
style:
|
5243
|
+
style: L,
|
5244
5244
|
onChange: x,
|
5245
|
-
...
|
5245
|
+
...O
|
5246
5246
|
} = t, k = d ? "right" : "left", F = `arkyn_input ${a ? "hasPrefix" : ""} ${l ? "hasSufix" : ""} ${s} ${r} ${f || c || n ? "opacity" : ""} ${o ? "errored" : ""} ${e ? "focused" : ""} ${i}`, U = { md: 20, lg: 20 }[r];
|
5247
5247
|
return {
|
5248
5248
|
isLoading: n,
|
@@ -5256,12 +5256,12 @@ function Ua(t, e) {
|
|
5256
5256
|
onFocus: p,
|
5257
5257
|
onBlur: w,
|
5258
5258
|
title: m,
|
5259
|
-
style:
|
5259
|
+
style: L,
|
5260
5260
|
onChange: x,
|
5261
5261
|
loadingPosition: k,
|
5262
5262
|
iconSize: U,
|
5263
5263
|
Spinner: /* @__PURE__ */ v.jsx(kt, { className: "spinner", size: U, strokeWidth: 2.5 }),
|
5264
|
-
...
|
5264
|
+
...O
|
5265
5265
|
};
|
5266
5266
|
}
|
5267
5267
|
function Fa(t) {
|
@@ -5273,17 +5273,17 @@ function Fa(t) {
|
|
5273
5273
|
prefix: p,
|
5274
5274
|
sufix: w,
|
5275
5275
|
iconSize: m,
|
5276
|
-
loadingPosition:
|
5276
|
+
loadingPosition: L,
|
5277
5277
|
isLoading: x,
|
5278
|
-
LeftIcon:
|
5278
|
+
LeftIcon: O,
|
5279
5279
|
readOnly: k,
|
5280
5280
|
onFocus: _,
|
5281
5281
|
onBlur: y,
|
5282
5282
|
RightIcon: b,
|
5283
|
-
type:
|
5283
|
+
type: S,
|
5284
5284
|
Spinner: T,
|
5285
5285
|
...F
|
5286
|
-
} = Ua({ ...t, id: i, isError: l }, e),
|
5286
|
+
} = Ua({ ...t, id: i, isError: l }, e), I = O && !x, U = b && !x, Q = L === "left" && x, z = L === "right" && x;
|
5287
5287
|
function W() {
|
5288
5288
|
u || !(a != null && a.current) || (n(!0), a.current.focus());
|
5289
5289
|
}
|
@@ -5293,7 +5293,7 @@ function Fa(t) {
|
|
5293
5293
|
function V(A) {
|
5294
5294
|
n(!1), y && y(A);
|
5295
5295
|
}
|
5296
|
-
return
|
5296
|
+
return S === "hidden" ? /* @__PURE__ */ v.jsx(
|
5297
5297
|
"input",
|
5298
5298
|
{
|
5299
5299
|
style: { display: "none" },
|
@@ -5312,7 +5312,7 @@ function Fa(t) {
|
|
5312
5312
|
children: [
|
5313
5313
|
p,
|
5314
5314
|
Q && T,
|
5315
|
-
|
5315
|
+
I && /* @__PURE__ */ v.jsx(O, { size: m, strokeWidth: 2.5 }),
|
5316
5316
|
/* @__PURE__ */ v.jsx(
|
5317
5317
|
"input",
|
5318
5318
|
{
|
@@ -5321,7 +5321,7 @@ function Fa(t) {
|
|
5321
5321
|
ref: a,
|
5322
5322
|
onFocus: Y,
|
5323
5323
|
onBlur: V,
|
5324
|
-
type:
|
5324
|
+
type: S,
|
5325
5325
|
...F
|
5326
5326
|
}
|
5327
5327
|
),
|
@@ -5414,12 +5414,12 @@ function Ha(t, e) {
|
|
5414
5414
|
title: p,
|
5415
5415
|
style: w,
|
5416
5416
|
closeOnSelect: m = !0,
|
5417
|
-
...
|
5418
|
-
} = t, y = `arkyn_select ${a ? "hasPrefix" : ""} ${s} ${r} ${u || d || n ? "opacity" : ""} ${o ? "errored" : ""} ${e ? "focused" : ""} ${i}`,
|
5417
|
+
...L
|
5418
|
+
} = t, y = `arkyn_select ${a ? "hasPrefix" : ""} ${s} ${r} ${u || d || n ? "opacity" : ""} ${o ? "errored" : ""} ${e ? "focused" : ""} ${i}`, S = { md: 20, lg: 20 }[r];
|
5419
5419
|
return {
|
5420
5420
|
isLoading: n,
|
5421
5421
|
className: y,
|
5422
|
-
prefix: ps(a,
|
5422
|
+
prefix: ps(a, S, "prefix"),
|
5423
5423
|
LeftIcon: l,
|
5424
5424
|
disabled: u || n || d,
|
5425
5425
|
onFocus: f,
|
@@ -5427,9 +5427,9 @@ function Ha(t, e) {
|
|
5427
5427
|
title: p,
|
5428
5428
|
closeOnSelect: m,
|
5429
5429
|
style: w,
|
5430
|
-
iconSize:
|
5431
|
-
Spinner: /* @__PURE__ */ v.jsx(kt, { className: "spinner", size:
|
5432
|
-
...
|
5430
|
+
iconSize: S,
|
5431
|
+
Spinner: /* @__PURE__ */ v.jsx(kt, { className: "spinner", size: S, strokeWidth: 2.5 }),
|
5432
|
+
...L
|
5433
5433
|
};
|
5434
5434
|
}
|
5435
5435
|
function td(t) {
|
@@ -5442,20 +5442,20 @@ function td(t) {
|
|
5442
5442
|
prefix: p,
|
5443
5443
|
iconSize: w,
|
5444
5444
|
isLoading: m,
|
5445
|
-
LeftIcon:
|
5445
|
+
LeftIcon: L,
|
5446
5446
|
value: x = null,
|
5447
|
-
defaultValue:
|
5447
|
+
defaultValue: O = "",
|
5448
5448
|
onFocus: k,
|
5449
5449
|
onBlur: _,
|
5450
5450
|
Spinner: y,
|
5451
5451
|
name: b,
|
5452
|
-
placeholder:
|
5452
|
+
placeholder: S,
|
5453
5453
|
onSelect: T,
|
5454
5454
|
options: F,
|
5455
|
-
optionMaxHeight:
|
5455
|
+
optionMaxHeight: I,
|
5456
5456
|
closeOnSelect: U,
|
5457
5457
|
...Q
|
5458
|
-
} = Ha({ ...t, id: r, isError: l }, e), [z, W] = M(
|
5458
|
+
} = Ha({ ...t, id: r, isError: l }, e), [z, W] = M(O);
|
5459
5459
|
function Y() {
|
5460
5460
|
u || !(a != null && a.current) || e || (n(!0), a.current.focus());
|
5461
5461
|
}
|
@@ -5469,11 +5469,11 @@ function td(t) {
|
|
5469
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,
|
5473
|
-
if (!e &&
|
5474
|
-
if (!e && !
|
5475
|
-
if (e &&
|
5476
|
-
if (e && !
|
5472
|
+
const ee = typeof x == "string" ? x : z, P = ((j = F.find((R) => R.value === ee)) == null ? void 0 : j.label) || "", E = () => {
|
5473
|
+
if (!e && P) return !0;
|
5474
|
+
if (!e && !P) return !1;
|
5475
|
+
if (e && P) return !0;
|
5476
|
+
if (e && !P) return !1;
|
5477
5477
|
};
|
5478
5478
|
return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
5479
5479
|
/* @__PURE__ */ v.jsxs(
|
@@ -5485,13 +5485,13 @@ function td(t) {
|
|
5485
5485
|
className: `${c} placeholder_dark_${E()}`,
|
5486
5486
|
children: [
|
5487
5487
|
p,
|
5488
|
-
|
5488
|
+
L && /* @__PURE__ */ v.jsx(L, { size: w, strokeWidth: 2.5 }),
|
5489
5489
|
/* @__PURE__ */ v.jsx(
|
5490
5490
|
"input",
|
5491
5491
|
{
|
5492
5492
|
disabled: u,
|
5493
5493
|
readOnly: !0,
|
5494
|
-
placeholder:
|
5494
|
+
placeholder: P || S,
|
5495
5495
|
onFocus: V,
|
5496
5496
|
...Q
|
5497
5497
|
}
|
@@ -5510,7 +5510,7 @@ function td(t) {
|
|
5510
5510
|
"div",
|
5511
5511
|
{
|
5512
5512
|
className: "arkyn_select_content",
|
5513
|
-
style: { overflow: "auto", maxHeight:
|
5513
|
+
style: { overflow: "auto", maxHeight: I },
|
5514
5514
|
children: [
|
5515
5515
|
F.map(({ label: R, value: B }) => /* @__PURE__ */ v.jsxs(
|
5516
5516
|
"div",
|
@@ -5558,14 +5558,14 @@ function nd(t) {
|
|
5558
5558
|
function w() {
|
5559
5559
|
d(!u), a && a(p ? "" : r || "checked");
|
5560
5560
|
}
|
5561
|
-
const
|
5561
|
+
const L = `arkynSwitch ${p ? "checkedTrue" : "checkedFalse"} ${e} ${s}`;
|
5562
5562
|
return /* @__PURE__ */ v.jsx(
|
5563
5563
|
"button",
|
5564
5564
|
{
|
5565
5565
|
id: f,
|
5566
5566
|
type: "button",
|
5567
5567
|
onClick: w,
|
5568
|
-
className:
|
5568
|
+
className: L,
|
5569
5569
|
...l,
|
5570
5570
|
children: /* @__PURE__ */ v.jsx(
|
5571
5571
|
"input",
|
@@ -5591,22 +5591,22 @@ function od(t) {
|
|
5591
5591
|
title: l,
|
5592
5592
|
style: u,
|
5593
5593
|
...d
|
5594
|
-
} = t, [f, c] = M(!1), { inputRef: p, id: w, error: m } = tt(),
|
5595
|
-
function
|
5594
|
+
} = t, [f, c] = M(!1), { inputRef: p, id: w, error: m } = tt(), L = Je(null), x = p || L, k = t.isError || !!m ? "errorTrue" : "errorFalse", b = `arkynTextarea ${e} ${n} ${r || i ? "opacityTrue" : "opacityFalse"} ${k} ${f ? "focusedTrue" : "focusedFalse"} ${o}`;
|
5595
|
+
function S() {
|
5596
5596
|
r || !(x != null && x.current) || (c(!0), x.current.focus());
|
5597
5597
|
}
|
5598
|
-
function T(
|
5599
|
-
c(!0), s && s(
|
5598
|
+
function T(I) {
|
5599
|
+
c(!0), s && s(I);
|
5600
5600
|
}
|
5601
|
-
function F(
|
5602
|
-
c(!1), a && a(
|
5601
|
+
function F(I) {
|
5602
|
+
c(!1), a && a(I);
|
5603
5603
|
}
|
5604
5604
|
return /* @__PURE__ */ v.jsx(
|
5605
5605
|
"section",
|
5606
5606
|
{
|
5607
5607
|
title: l,
|
5608
5608
|
style: u,
|
5609
|
-
onClick:
|
5609
|
+
onClick: S,
|
5610
5610
|
className: b,
|
5611
5611
|
children: /* @__PURE__ */ v.jsx(
|
5612
5612
|
"textarea",
|
@@ -5630,14 +5630,22 @@ function rd({
|
|
5630
5630
|
...o
|
5631
5631
|
}) {
|
5632
5632
|
const [r, i] = M(null), s = (l) => i(l), a = () => {
|
5633
|
+
var c, p, w, m;
|
5633
5634
|
const u = r.getPlaces()[0], d = u == null ? void 0 : u.address_components;
|
5634
|
-
function f(
|
5635
|
-
const
|
5636
|
-
return
|
5635
|
+
function f(L) {
|
5636
|
+
const x = d.find((O) => O.types[0] === L);
|
5637
|
+
return x ? x.long_name : "";
|
5637
5638
|
}
|
5638
5639
|
if (u) {
|
5639
|
-
const
|
5640
|
-
e && e({
|
5640
|
+
const L = f("route"), x = f("sublocality_level_1"), O = f("administrative_area_level_2"), k = f("administrative_area_level_1"), _ = f("postal_code"), y = (p = (c = u.geometry) == null ? void 0 : c.location) == null ? void 0 : p.lat(), b = (m = (w = u.geometry) == null ? void 0 : w.location) == null ? void 0 : m.lng();
|
5641
|
+
e && e({
|
5642
|
+
street: L,
|
5643
|
+
city: O,
|
5644
|
+
state: k,
|
5645
|
+
district: x,
|
5646
|
+
cep: _,
|
5647
|
+
coordinates: { lat: y, lng: b }
|
5648
|
+
});
|
5641
5649
|
}
|
5642
5650
|
};
|
5643
5651
|
return /* @__PURE__ */ v.jsx(
|
@@ -5702,8 +5710,8 @@ function ad(t) {
|
|
5702
5710
|
siblingsCount: i = 2,
|
5703
5711
|
...s
|
5704
5712
|
} = t, a = is(), { getParam: l, getScopedSearch: u } = Va(e), d = Number(l(r)) || 1, f = Number(l(o)) || 20, c = Math.ceil(n / f), p = fs(d, i), w = ds(d, i, c);
|
5705
|
-
function m(
|
5706
|
-
a(u({ page:
|
5713
|
+
function m(L) {
|
5714
|
+
a(u({ page: L }));
|
5707
5715
|
}
|
5708
5716
|
return /* @__PURE__ */ v.jsxs("div", { className: "arkynPagination", ...s, children: [
|
5709
5717
|
/* @__PURE__ */ v.jsx(
|
@@ -5726,22 +5734,22 @@ function ad(t) {
|
|
5726
5734
|
),
|
5727
5735
|
d > 2 + i && /* @__PURE__ */ v.jsx("button", { disabled: !0, className: "arkynPaginationSpread", children: /* @__PURE__ */ v.jsx(mo, {}) })
|
5728
5736
|
] }),
|
5729
|
-
p.map((
|
5737
|
+
p.map((L, x) => /* @__PURE__ */ v.jsx(
|
5730
5738
|
"button",
|
5731
5739
|
{
|
5732
|
-
onClick: () => m(
|
5740
|
+
onClick: () => m(L),
|
5733
5741
|
className: "arkynPaginationPageButton",
|
5734
|
-
children:
|
5742
|
+
children: L
|
5735
5743
|
},
|
5736
5744
|
x
|
5737
5745
|
)),
|
5738
5746
|
/* @__PURE__ */ v.jsx("button", { className: "arkynPaginationCurrent", disabled: !0, children: d }),
|
5739
|
-
w.map((
|
5747
|
+
w.map((L, x) => /* @__PURE__ */ v.jsx(
|
5740
5748
|
"button",
|
5741
5749
|
{
|
5742
|
-
onClick: () => m(
|
5750
|
+
onClick: () => m(L),
|
5743
5751
|
className: "arkynPaginationPageButton",
|
5744
|
-
children:
|
5752
|
+
children: L
|
5745
5753
|
},
|
5746
5754
|
x
|
5747
5755
|
)),
|
@@ -5784,22 +5792,22 @@ function ld(t) {
|
|
5784
5792
|
width: "0px",
|
5785
5793
|
left: "0px",
|
5786
5794
|
transition: "none"
|
5787
|
-
}), w = (
|
5788
|
-
const
|
5795
|
+
}), w = (L, x) => {
|
5796
|
+
const O = L.getBoundingClientRect(), k = d.current.getBoundingClientRect(), _ = x ? void 0 : "none";
|
5789
5797
|
u(!1), p({
|
5790
5798
|
transition: _,
|
5791
|
-
width: `${
|
5792
|
-
left: `${
|
5799
|
+
width: `${O.width}px`,
|
5800
|
+
left: `${O.left - k.left}px`
|
5793
5801
|
});
|
5794
5802
|
};
|
5795
5803
|
h(() => {
|
5796
|
-
const
|
5797
|
-
if (!
|
5804
|
+
const L = d.current;
|
5805
|
+
if (!L) return;
|
5798
5806
|
let x = null;
|
5799
|
-
x =
|
5807
|
+
x = L.querySelector("button.active"), x && w(x);
|
5800
5808
|
}, []);
|
5801
|
-
const m = (
|
5802
|
-
const x =
|
5809
|
+
const m = (L) => {
|
5810
|
+
const x = L.target;
|
5803
5811
|
x && (a(x.value), x.classList.add("active"), w(x, !0), n && n(x.value));
|
5804
5812
|
};
|
5805
5813
|
return /* @__PURE__ */ v.jsxs("nav", { ref: d, className: f.trim(), ...i, children: [
|
@@ -6002,38 +6010,38 @@ function al(t, e, n) {
|
|
6002
6010
|
throw new TypeError(ki);
|
6003
6011
|
e = mr(e) || 0, vn(n) && (d = !!n.leading, f = "maxWait" in n, i = f ? il(mr(n.maxWait) || 0, e) : i, c = "trailing" in n ? !!n.trailing : c);
|
6004
6012
|
function p(b) {
|
6005
|
-
var
|
6006
|
-
return o = r = void 0, u = b, s = t.apply(T,
|
6013
|
+
var S = o, T = r;
|
6014
|
+
return o = r = void 0, u = b, s = t.apply(T, S), s;
|
6007
6015
|
}
|
6008
6016
|
function w(b) {
|
6009
6017
|
return u = b, a = setTimeout(x, e), d ? p(b) : s;
|
6010
6018
|
}
|
6011
6019
|
function m(b) {
|
6012
|
-
var
|
6020
|
+
var S = b - l, T = b - u, F = e - S;
|
6013
6021
|
return f ? sl(F, i - T) : F;
|
6014
6022
|
}
|
6015
|
-
function
|
6016
|
-
var
|
6017
|
-
return l === void 0 ||
|
6023
|
+
function L(b) {
|
6024
|
+
var S = b - l, T = b - u;
|
6025
|
+
return l === void 0 || S >= e || S < 0 || f && T >= i;
|
6018
6026
|
}
|
6019
6027
|
function x() {
|
6020
6028
|
var b = On();
|
6021
|
-
if (
|
6022
|
-
return
|
6029
|
+
if (L(b))
|
6030
|
+
return O(b);
|
6023
6031
|
a = setTimeout(x, m(b));
|
6024
6032
|
}
|
6025
|
-
function
|
6033
|
+
function O(b) {
|
6026
6034
|
return a = void 0, c && o ? p(b) : (o = r = void 0, s);
|
6027
6035
|
}
|
6028
6036
|
function k() {
|
6029
6037
|
a !== void 0 && clearTimeout(a), u = 0, o = l = r = a = void 0;
|
6030
6038
|
}
|
6031
6039
|
function _() {
|
6032
|
-
return a === void 0 ? s :
|
6040
|
+
return a === void 0 ? s : O(On());
|
6033
6041
|
}
|
6034
6042
|
function y() {
|
6035
|
-
var b = On(),
|
6036
|
-
if (o = arguments, r = this, l = b,
|
6043
|
+
var b = On(), S = L(b);
|
6044
|
+
if (o = arguments, r = this, l = b, S) {
|
6037
6045
|
if (a === void 0)
|
6038
6046
|
return w(l);
|
6039
6047
|
if (f)
|
@@ -6505,7 +6513,7 @@ var br;
|
|
6505
6513
|
function Vl() {
|
6506
6514
|
if (br) return ke;
|
6507
6515
|
br = 1;
|
6508
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, o = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, c = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, w = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121,
|
6516
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, o = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, c = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, w = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, L = t ? Symbol.for("react.fundamental") : 60117, x = t ? Symbol.for("react.responder") : 60118, O = t ? Symbol.for("react.scope") : 60119;
|
6509
6517
|
function k(y) {
|
6510
6518
|
if (typeof y == "object" && y !== null) {
|
6511
6519
|
var b = y.$$typeof;
|
@@ -6564,7 +6572,7 @@ function Vl() {
|
|
6564
6572
|
}, ke.isSuspense = function(y) {
|
6565
6573
|
return k(y) === f;
|
6566
6574
|
}, ke.isValidElementType = function(y) {
|
6567
|
-
return typeof y == "string" || typeof y == "function" || y === o || y === u || y === i || y === r || y === f || y === c || typeof y == "object" && y !== null && (y.$$typeof === w || y.$$typeof === p || y.$$typeof === s || y.$$typeof === a || y.$$typeof === d || y.$$typeof ===
|
6575
|
+
return typeof y == "string" || typeof y == "function" || y === o || y === u || y === i || y === r || y === f || y === c || typeof y == "object" && y !== null && (y.$$typeof === w || y.$$typeof === p || y.$$typeof === s || y.$$typeof === a || y.$$typeof === d || y.$$typeof === L || y.$$typeof === x || y.$$typeof === O || y.$$typeof === m);
|
6568
6576
|
}, ke.typeOf = k, ke;
|
6569
6577
|
}
|
6570
6578
|
var Ee = {};
|
@@ -6579,10 +6587,10 @@ var Ee = {};
|
|
6579
6587
|
var Lr;
|
6580
6588
|
function Zl() {
|
6581
6589
|
return Lr || (Lr = 1, process.env.NODE_ENV !== "production" && function() {
|
6582
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, o = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, c = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, w = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121,
|
6590
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, o = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, c = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, w = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, L = t ? Symbol.for("react.fundamental") : 60117, x = t ? Symbol.for("react.responder") : 60118, O = t ? Symbol.for("react.scope") : 60119;
|
6583
6591
|
function k(N) {
|
6584
6592
|
return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
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 ===
|
6593
|
+
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 === L || N.$$typeof === x || N.$$typeof === O || N.$$typeof === m);
|
6586
6594
|
}
|
6587
6595
|
function _(N) {
|
6588
6596
|
if (typeof N == "object" && N !== null) {
|
@@ -6616,11 +6624,11 @@ function Zl() {
|
|
6616
6624
|
}
|
6617
6625
|
}
|
6618
6626
|
}
|
6619
|
-
var y = l, b = u,
|
6627
|
+
var y = l, b = u, S = a, T = s, F = e, I = d, U = o, Q = w, z = p, W = n, Y = i, V = r, A = f, Z = !1;
|
6620
6628
|
function ee(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.")),
|
6629
|
+
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.")), P(N) || _(N) === l;
|
6622
6630
|
}
|
6623
|
-
function
|
6631
|
+
function P(N) {
|
6624
6632
|
return _(N) === u;
|
6625
6633
|
}
|
6626
6634
|
function E(N) {
|
@@ -6638,7 +6646,7 @@ function Zl() {
|
|
6638
6646
|
function q(N) {
|
6639
6647
|
return _(N) === o;
|
6640
6648
|
}
|
6641
|
-
function
|
6649
|
+
function C(N) {
|
6642
6650
|
return _(N) === w;
|
6643
6651
|
}
|
6644
6652
|
function X(N) {
|
@@ -6656,7 +6664,7 @@ function Zl() {
|
|
6656
6664
|
function re(N) {
|
6657
6665
|
return _(N) === f;
|
6658
6666
|
}
|
6659
|
-
Ee.AsyncMode = y, Ee.ConcurrentMode = b, Ee.ContextConsumer =
|
6667
|
+
Ee.AsyncMode = y, Ee.ConcurrentMode = b, Ee.ContextConsumer = S, Ee.ContextProvider = T, Ee.Element = F, Ee.ForwardRef = I, Ee.Fragment = U, Ee.Lazy = Q, Ee.Memo = z, Ee.Portal = W, Ee.Profiler = Y, Ee.StrictMode = V, Ee.Suspense = A, Ee.isAsyncMode = ee, Ee.isConcurrentMode = P, Ee.isContextConsumer = E, Ee.isContextProvider = j, Ee.isElement = R, Ee.isForwardRef = B, Ee.isFragment = q, Ee.isLazy = C, Ee.isMemo = X, Ee.isPortal = J, Ee.isProfiler = D, Ee.isStrictMode = K, Ee.isSuspense = re, Ee.isValidElementType = k, Ee.typeOf = _;
|
6660
6668
|
}()), Ee;
|
6661
6669
|
}
|
6662
6670
|
var Cr;
|
@@ -6793,8 +6801,8 @@ function ql() {
|
|
6793
6801
|
}
|
6794
6802
|
return Nn = function(a, l) {
|
6795
6803
|
var u = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
6796
|
-
function f(
|
6797
|
-
var E =
|
6804
|
+
function f(P) {
|
6805
|
+
var E = P && (u && P[u] || P[d]);
|
6798
6806
|
if (typeof E == "function")
|
6799
6807
|
return E;
|
6800
6808
|
}
|
@@ -6807,29 +6815,29 @@ function ql() {
|
|
6807
6815
|
object: x("object"),
|
6808
6816
|
string: x("string"),
|
6809
6817
|
symbol: x("symbol"),
|
6810
|
-
any:
|
6818
|
+
any: O(),
|
6811
6819
|
arrayOf: k,
|
6812
6820
|
element: _(),
|
6813
6821
|
elementType: y(),
|
6814
6822
|
instanceOf: b,
|
6815
|
-
node:
|
6823
|
+
node: I(),
|
6816
6824
|
objectOf: T,
|
6817
|
-
oneOf:
|
6825
|
+
oneOf: S,
|
6818
6826
|
oneOfType: F,
|
6819
6827
|
shape: Q,
|
6820
6828
|
exact: z
|
6821
6829
|
};
|
6822
|
-
function w(
|
6823
|
-
return
|
6830
|
+
function w(P, E) {
|
6831
|
+
return P === E ? P !== 0 || 1 / P === 1 / E : P !== P && E !== E;
|
6824
6832
|
}
|
6825
|
-
function m(
|
6826
|
-
this.message =
|
6833
|
+
function m(P, E) {
|
6834
|
+
this.message = P, this.data = E && typeof E == "object" ? E : {}, this.stack = "";
|
6827
6835
|
}
|
6828
6836
|
m.prototype = Error.prototype;
|
6829
|
-
function
|
6837
|
+
function L(P) {
|
6830
6838
|
if (process.env.NODE_ENV !== "production")
|
6831
6839
|
var E = {}, j = 0;
|
6832
|
-
function R(q,
|
6840
|
+
function R(q, C, X, J, D, K, re) {
|
6833
6841
|
if (J = J || c, K = K || X, re !== n) {
|
6834
6842
|
if (l) {
|
6835
6843
|
var N = new Error(
|
@@ -6844,202 +6852,202 @@ function ql() {
|
|
6844
6852
|
), E[de] = !0, j++);
|
6845
6853
|
}
|
6846
6854
|
}
|
6847
|
-
return
|
6855
|
+
return C[X] == null ? q ? C[X] === null ? new m("The " + D + " `" + K + "` is marked as required " + ("in `" + J + "`, but its value is `null`.")) : new m("The " + D + " `" + K + "` is marked as required in " + ("`" + J + "`, but its value is `undefined`.")) : null : P(C, X, J, D, K);
|
6848
6856
|
}
|
6849
6857
|
var B = R.bind(null, !1);
|
6850
6858
|
return B.isRequired = R.bind(null, !0), B;
|
6851
6859
|
}
|
6852
|
-
function x(
|
6853
|
-
function E(j, R, B, q,
|
6860
|
+
function x(P) {
|
6861
|
+
function E(j, R, B, q, C, X) {
|
6854
6862
|
var J = j[R], D = V(J);
|
6855
|
-
if (D !==
|
6863
|
+
if (D !== P) {
|
6856
6864
|
var K = A(J);
|
6857
6865
|
return new m(
|
6858
|
-
"Invalid " + q + " `" +
|
6859
|
-
{ expectedType:
|
6866
|
+
"Invalid " + q + " `" + C + "` of type " + ("`" + K + "` supplied to `" + B + "`, expected ") + ("`" + P + "`."),
|
6867
|
+
{ expectedType: P }
|
6860
6868
|
);
|
6861
6869
|
}
|
6862
6870
|
return null;
|
6863
6871
|
}
|
6864
|
-
return
|
6872
|
+
return L(E);
|
6865
6873
|
}
|
6866
|
-
function
|
6867
|
-
return
|
6874
|
+
function O() {
|
6875
|
+
return L(s);
|
6868
6876
|
}
|
6869
|
-
function k(
|
6870
|
-
function E(j, R, B, q,
|
6871
|
-
if (typeof
|
6872
|
-
return new m("Property `" +
|
6877
|
+
function k(P) {
|
6878
|
+
function E(j, R, B, q, C) {
|
6879
|
+
if (typeof P != "function")
|
6880
|
+
return new m("Property `" + C + "` of component `" + B + "` has invalid PropType notation inside arrayOf.");
|
6873
6881
|
var X = j[R];
|
6874
6882
|
if (!Array.isArray(X)) {
|
6875
6883
|
var J = V(X);
|
6876
|
-
return new m("Invalid " + q + " `" +
|
6884
|
+
return new m("Invalid " + q + " `" + C + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected an array."));
|
6877
6885
|
}
|
6878
6886
|
for (var D = 0; D < X.length; D++) {
|
6879
|
-
var K =
|
6887
|
+
var K = P(X, D, B, q, C + "[" + D + "]", n);
|
6880
6888
|
if (K instanceof Error)
|
6881
6889
|
return K;
|
6882
6890
|
}
|
6883
6891
|
return null;
|
6884
6892
|
}
|
6885
|
-
return
|
6893
|
+
return L(E);
|
6886
6894
|
}
|
6887
6895
|
function _() {
|
6888
|
-
function
|
6889
|
-
var
|
6890
|
-
if (!a(
|
6891
|
-
var X = V(
|
6896
|
+
function P(E, j, R, B, q) {
|
6897
|
+
var C = E[j];
|
6898
|
+
if (!a(C)) {
|
6899
|
+
var X = V(C);
|
6892
6900
|
return new m("Invalid " + B + " `" + q + "` of type " + ("`" + X + "` supplied to `" + R + "`, expected a single ReactElement."));
|
6893
6901
|
}
|
6894
6902
|
return null;
|
6895
6903
|
}
|
6896
|
-
return
|
6904
|
+
return L(P);
|
6897
6905
|
}
|
6898
6906
|
function y() {
|
6899
|
-
function
|
6900
|
-
var
|
6901
|
-
if (!t.isValidElementType(
|
6902
|
-
var X = V(
|
6907
|
+
function P(E, j, R, B, q) {
|
6908
|
+
var C = E[j];
|
6909
|
+
if (!t.isValidElementType(C)) {
|
6910
|
+
var X = V(C);
|
6903
6911
|
return new m("Invalid " + B + " `" + q + "` of type " + ("`" + X + "` supplied to `" + R + "`, expected a single ReactElement type."));
|
6904
6912
|
}
|
6905
6913
|
return null;
|
6906
6914
|
}
|
6907
|
-
return
|
6915
|
+
return L(P);
|
6908
6916
|
}
|
6909
|
-
function b(
|
6910
|
-
function E(j, R, B, q,
|
6911
|
-
if (!(j[R] instanceof
|
6912
|
-
var X =
|
6913
|
-
return new m("Invalid " + q + " `" +
|
6917
|
+
function b(P) {
|
6918
|
+
function E(j, R, B, q, C) {
|
6919
|
+
if (!(j[R] instanceof P)) {
|
6920
|
+
var X = P.name || c, J = ee(j[R]);
|
6921
|
+
return new m("Invalid " + q + " `" + C + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected ") + ("instance of `" + X + "`."));
|
6914
6922
|
}
|
6915
6923
|
return null;
|
6916
6924
|
}
|
6917
|
-
return
|
6925
|
+
return L(E);
|
6918
6926
|
}
|
6919
|
-
function P
|
6920
|
-
if (!Array.isArray(
|
6927
|
+
function S(P) {
|
6928
|
+
if (!Array.isArray(P))
|
6921
6929
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
6922
6930
|
"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])."
|
6923
6931
|
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
|
6924
|
-
function E(j, R, B, q,
|
6925
|
-
for (var X = j[R], J = 0; J <
|
6926
|
-
if (w(X,
|
6932
|
+
function E(j, R, B, q, C) {
|
6933
|
+
for (var X = j[R], J = 0; J < P.length; J++)
|
6934
|
+
if (w(X, P[J]))
|
6927
6935
|
return null;
|
6928
|
-
var D = JSON.stringify(
|
6936
|
+
var D = JSON.stringify(P, function(re, N) {
|
6929
6937
|
var de = A(N);
|
6930
6938
|
return de === "symbol" ? String(N) : N;
|
6931
6939
|
});
|
6932
|
-
return new m("Invalid " + q + " `" +
|
6940
|
+
return new m("Invalid " + q + " `" + C + "` of value `" + String(X) + "` " + ("supplied to `" + B + "`, expected one of " + D + "."));
|
6933
6941
|
}
|
6934
|
-
return
|
6942
|
+
return L(E);
|
6935
6943
|
}
|
6936
|
-
function T(
|
6937
|
-
function E(j, R, B, q,
|
6938
|
-
if (typeof
|
6939
|
-
return new m("Property `" +
|
6944
|
+
function T(P) {
|
6945
|
+
function E(j, R, B, q, C) {
|
6946
|
+
if (typeof P != "function")
|
6947
|
+
return new m("Property `" + C + "` of component `" + B + "` has invalid PropType notation inside objectOf.");
|
6940
6948
|
var X = j[R], J = V(X);
|
6941
6949
|
if (J !== "object")
|
6942
|
-
return new m("Invalid " + q + " `" +
|
6950
|
+
return new m("Invalid " + q + " `" + C + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected an object."));
|
6943
6951
|
for (var D in X)
|
6944
6952
|
if (o(X, D)) {
|
6945
|
-
var K =
|
6953
|
+
var K = P(X, D, B, q, C + "." + D, n);
|
6946
6954
|
if (K instanceof Error)
|
6947
6955
|
return K;
|
6948
6956
|
}
|
6949
6957
|
return null;
|
6950
6958
|
}
|
6951
|
-
return
|
6959
|
+
return L(E);
|
6952
6960
|
}
|
6953
|
-
function F(
|
6954
|
-
if (!Array.isArray(
|
6961
|
+
function F(P) {
|
6962
|
+
if (!Array.isArray(P))
|
6955
6963
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
6956
|
-
for (var E = 0; E <
|
6957
|
-
var j =
|
6964
|
+
for (var E = 0; E < P.length; E++) {
|
6965
|
+
var j = P[E];
|
6958
6966
|
if (typeof j != "function")
|
6959
6967
|
return i(
|
6960
6968
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z(j) + " at index " + E + "."
|
6961
6969
|
), s;
|
6962
6970
|
}
|
6963
|
-
function R(B, q,
|
6964
|
-
for (var D = [], K = 0; K <
|
6965
|
-
var re =
|
6971
|
+
function R(B, q, C, X, J) {
|
6972
|
+
for (var D = [], K = 0; K < P.length; K++) {
|
6973
|
+
var re = P[K], N = re(B, q, C, X, J, n);
|
6966
6974
|
if (N == null)
|
6967
6975
|
return null;
|
6968
6976
|
N.data && o(N.data, "expectedType") && D.push(N.data.expectedType);
|
6969
6977
|
}
|
6970
6978
|
var de = D.length > 0 ? ", expected one of type [" + D.join(", ") + "]" : "";
|
6971
|
-
return new m("Invalid " + X + " `" + J + "` supplied to " + ("`" +
|
6979
|
+
return new m("Invalid " + X + " `" + J + "` supplied to " + ("`" + C + "`" + de + "."));
|
6972
6980
|
}
|
6973
|
-
return
|
6981
|
+
return L(R);
|
6974
6982
|
}
|
6975
|
-
function
|
6976
|
-
function
|
6983
|
+
function I() {
|
6984
|
+
function P(E, j, R, B, q) {
|
6977
6985
|
return W(E[j]) ? null : new m("Invalid " + B + " `" + q + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
|
6978
6986
|
}
|
6979
|
-
return
|
6987
|
+
return L(P);
|
6980
6988
|
}
|
6981
|
-
function U(
|
6989
|
+
function U(P, E, j, R, B) {
|
6982
6990
|
return new m(
|
6983
|
-
(
|
6991
|
+
(P || "React class") + ": " + E + " type `" + j + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + B + "`."
|
6984
6992
|
);
|
6985
6993
|
}
|
6986
|
-
function Q(
|
6987
|
-
function E(j, R, B, q,
|
6994
|
+
function Q(P) {
|
6995
|
+
function E(j, R, B, q, C) {
|
6988
6996
|
var X = j[R], J = V(X);
|
6989
6997
|
if (J !== "object")
|
6990
|
-
return new m("Invalid " + q + " `" +
|
6991
|
-
for (var D in
|
6992
|
-
var K =
|
6998
|
+
return new m("Invalid " + q + " `" + C + "` of type `" + J + "` " + ("supplied to `" + B + "`, expected `object`."));
|
6999
|
+
for (var D in P) {
|
7000
|
+
var K = P[D];
|
6993
7001
|
if (typeof K != "function")
|
6994
|
-
return U(B, q,
|
6995
|
-
var re = K(X, D, B, q,
|
7002
|
+
return U(B, q, C, D, A(K));
|
7003
|
+
var re = K(X, D, B, q, C + "." + D, n);
|
6996
7004
|
if (re)
|
6997
7005
|
return re;
|
6998
7006
|
}
|
6999
7007
|
return null;
|
7000
7008
|
}
|
7001
|
-
return
|
7009
|
+
return L(E);
|
7002
7010
|
}
|
7003
|
-
function z(
|
7004
|
-
function E(j, R, B, q,
|
7011
|
+
function z(P) {
|
7012
|
+
function E(j, R, B, q, C) {
|
7005
7013
|
var X = j[R], J = V(X);
|
7006
7014
|
if (J !== "object")
|
7007
|
-
return new m("Invalid " + q + " `" +
|
7008
|
-
var D = e({}, j[R],
|
7015
|
+
return new m("Invalid " + q + " `" + C + "` of type `" + J + "` " + ("supplied to `" + B + "`, expected `object`."));
|
7016
|
+
var D = e({}, j[R], P);
|
7009
7017
|
for (var K in D) {
|
7010
|
-
var re =
|
7011
|
-
if (o(
|
7012
|
-
return U(B, q,
|
7018
|
+
var re = P[K];
|
7019
|
+
if (o(P, K) && typeof re != "function")
|
7020
|
+
return U(B, q, C, K, A(re));
|
7013
7021
|
if (!re)
|
7014
7022
|
return new m(
|
7015
|
-
"Invalid " + q + " `" +
|
7016
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
7023
|
+
"Invalid " + q + " `" + C + "` key `" + K + "` supplied to `" + B + "`.\nBad object: " + JSON.stringify(j[R], null, " ") + `
|
7024
|
+
Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
|
7017
7025
|
);
|
7018
|
-
var N = re(X, K, B, q,
|
7026
|
+
var N = re(X, K, B, q, C + "." + K, n);
|
7019
7027
|
if (N)
|
7020
7028
|
return N;
|
7021
7029
|
}
|
7022
7030
|
return null;
|
7023
7031
|
}
|
7024
|
-
return
|
7032
|
+
return L(E);
|
7025
7033
|
}
|
7026
|
-
function W(
|
7027
|
-
switch (typeof
|
7034
|
+
function W(P) {
|
7035
|
+
switch (typeof P) {
|
7028
7036
|
case "number":
|
7029
7037
|
case "string":
|
7030
7038
|
case "undefined":
|
7031
7039
|
return !0;
|
7032
7040
|
case "boolean":
|
7033
|
-
return !
|
7041
|
+
return !P;
|
7034
7042
|
case "object":
|
7035
|
-
if (Array.isArray(
|
7036
|
-
return
|
7037
|
-
if (
|
7043
|
+
if (Array.isArray(P))
|
7044
|
+
return P.every(W);
|
7045
|
+
if (P === null || a(P))
|
7038
7046
|
return !0;
|
7039
|
-
var E = f(
|
7047
|
+
var E = f(P);
|
7040
7048
|
if (E) {
|
7041
|
-
var j = E.call(
|
7042
|
-
if (E !==
|
7049
|
+
var j = E.call(P), R;
|
7050
|
+
if (E !== P.entries) {
|
7043
7051
|
for (; !(R = j.next()).done; )
|
7044
7052
|
if (!W(R.value))
|
7045
7053
|
return !1;
|
@@ -7056,27 +7064,27 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
7056
7064
|
return !1;
|
7057
7065
|
}
|
7058
7066
|
}
|
7059
|
-
function Y(
|
7060
|
-
return
|
7067
|
+
function Y(P, E) {
|
7068
|
+
return P === "symbol" ? !0 : E ? E["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && E instanceof Symbol : !1;
|
7061
7069
|
}
|
7062
|
-
function V(
|
7063
|
-
var E = typeof
|
7064
|
-
return Array.isArray(
|
7070
|
+
function V(P) {
|
7071
|
+
var E = typeof P;
|
7072
|
+
return Array.isArray(P) ? "array" : P instanceof RegExp ? "object" : Y(E, P) ? "symbol" : E;
|
7065
7073
|
}
|
7066
|
-
function A(
|
7067
|
-
if (typeof
|
7068
|
-
return "" +
|
7069
|
-
var E = V(
|
7074
|
+
function A(P) {
|
7075
|
+
if (typeof P > "u" || P === null)
|
7076
|
+
return "" + P;
|
7077
|
+
var E = V(P);
|
7070
7078
|
if (E === "object") {
|
7071
|
-
if (
|
7079
|
+
if (P instanceof Date)
|
7072
7080
|
return "date";
|
7073
|
-
if (
|
7081
|
+
if (P instanceof RegExp)
|
7074
7082
|
return "regexp";
|
7075
7083
|
}
|
7076
7084
|
return E;
|
7077
7085
|
}
|
7078
|
-
function Z(
|
7079
|
-
var E = A(
|
7086
|
+
function Z(P) {
|
7087
|
+
var E = A(P);
|
7080
7088
|
switch (E) {
|
7081
7089
|
case "array":
|
7082
7090
|
case "object":
|
@@ -7089,8 +7097,8 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
7089
7097
|
return E;
|
7090
7098
|
}
|
7091
7099
|
}
|
7092
|
-
function ee(
|
7093
|
-
return !
|
7100
|
+
function ee(P) {
|
7101
|
+
return !P.constructor || !P.constructor.name ? c : P.constructor.name;
|
7094
7102
|
}
|
7095
7103
|
return p.checkPropTypes = r, p.resetWarningCache = r.resetWarningCache, p.PropTypes = p, p;
|
7096
7104
|
}, Nn;
|
@@ -7315,33 +7323,33 @@ Ht.default = function(t, e) {
|
|
7315
7323
|
if (!(ht.default.isMounted() && !ht.default.isInitialized())) {
|
7316
7324
|
var d = s.props.horizontal, f = s.props.to, c = null, p = void 0, w = void 0;
|
7317
7325
|
if (d) {
|
7318
|
-
var m = 0,
|
7326
|
+
var m = 0, L = 0, x = 0;
|
7319
7327
|
if (u.getBoundingClientRect) {
|
7320
|
-
var
|
7321
|
-
x =
|
7328
|
+
var O = u.getBoundingClientRect();
|
7329
|
+
x = O.left;
|
7322
7330
|
}
|
7323
7331
|
if (!c || s.props.isDynamic) {
|
7324
7332
|
if (c = n.get(f), !c)
|
7325
7333
|
return;
|
7326
7334
|
var k = c.getBoundingClientRect();
|
7327
|
-
m = k.left - x + a,
|
7335
|
+
m = k.left - x + a, L = m + k.width;
|
7328
7336
|
}
|
7329
7337
|
var _ = a - s.props.offset;
|
7330
|
-
p = _ >= Math.floor(m) && _ < Math.floor(
|
7338
|
+
p = _ >= Math.floor(m) && _ < Math.floor(L), w = _ < Math.floor(m) || _ >= Math.floor(L);
|
7331
7339
|
} else {
|
7332
|
-
var y = 0, b = 0,
|
7340
|
+
var y = 0, b = 0, S = 0;
|
7333
7341
|
if (u.getBoundingClientRect) {
|
7334
7342
|
var T = u.getBoundingClientRect();
|
7335
|
-
|
7343
|
+
S = T.top;
|
7336
7344
|
}
|
7337
7345
|
if (!c || s.props.isDynamic) {
|
7338
7346
|
if (c = n.get(f), !c)
|
7339
7347
|
return;
|
7340
7348
|
var F = c.getBoundingClientRect();
|
7341
|
-
y = F.top -
|
7349
|
+
y = F.top - S + l, b = y + F.height;
|
7342
7350
|
}
|
7343
|
-
var
|
7344
|
-
p =
|
7351
|
+
var I = l - s.props.offset;
|
7352
|
+
p = I >= Math.floor(y) && I < Math.floor(b), w = I < Math.floor(y) || I >= Math.floor(b);
|
7345
7353
|
}
|
7346
7354
|
var U = n.getActiveLink();
|
7347
7355
|
if (w) {
|
@@ -7711,13 +7719,13 @@ var dn = H, wt = Vt, zn = _t, Ne = wn, gt = Mn, Wr = {
|
|
7711
7719
|
if (!f || a.props.isDynamic) {
|
7712
7720
|
if (f = o.get(d), !f)
|
7713
7721
|
return;
|
7714
|
-
var
|
7715
|
-
c =
|
7722
|
+
var L = f.getBoundingClientRect();
|
7723
|
+
c = L.top - w + l, p = c + L.height;
|
7716
7724
|
}
|
7717
|
-
var x = l - a.props.offset,
|
7725
|
+
var x = l - a.props.offset, O = x >= Math.floor(c) && x < Math.floor(p), k = x < Math.floor(c) || x >= Math.floor(p), _ = o.getActiveLink();
|
7718
7726
|
if (k)
|
7719
7727
|
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 (
|
7728
|
+
if (O && _ !== d)
|
7721
7729
|
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();
|
7722
7730
|
}
|
7723
7731
|
};
|
@@ -7986,10 +7994,10 @@ function Mc(...t) {
|
|
7986
7994
|
}
|
7987
7995
|
var kc = (t) => {
|
7988
7996
|
var e, n, o, r, i, s, a, l, u, d;
|
7989
|
-
let { invert: f, toast: c, unstyled: p, interacting: w, setHeights: m, visibleToasts:
|
7997
|
+
let { invert: f, toast: c, unstyled: p, interacting: w, setHeights: m, visibleToasts: L, heights: x, index: O, toasts: k, expanded: _, removeToast: y, defaultRichColors: b, closeButton: S, style: T, cancelButtonStyle: F, actionButtonStyle: I, className: U = "", descriptionClassName: Q = "", duration: z, position: W, gap: Y, loadingIcon: V, expandByDefault: A, classNames: Z, icons: ee, closeButtonAriaLabel: P = "Close toast", pauseWhenPageIsHidden: E, cn: j } = t, [R, B] = H.useState(!1), [q, C] = H.useState(!1), [X, J] = H.useState(!1), [D, K] = H.useState(!1), [re, N] = H.useState(0), [de, Ce] = H.useState(0), ve = H.useRef(null), he = H.useRef(null), Te = O === 0, Se = O + 1 <= L, 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(() => {
|
7990
7998
|
var se;
|
7991
|
-
return (se = c.closeButton) != null ? se :
|
7992
|
-
}, [c.closeButton,
|
7999
|
+
return (se = c.closeButton) != null ? se : S;
|
8000
|
+
}, [c.closeButton, S]), 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";
|
7993
8001
|
Be.current = H.useMemo(() => ze * Y + bt, [ze, bt]), H.useEffect(() => {
|
7994
8002
|
B(!0);
|
7995
8003
|
}, []), H.useLayoutEffect(() => {
|
@@ -8000,7 +8008,7 @@ var kc = (t) => {
|
|
8000
8008
|
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]);
|
8001
8009
|
}, [R, c.title, c.description, m, c.id]);
|
8002
8010
|
let qe = H.useCallback(() => {
|
8003
|
-
|
8011
|
+
C(!0), N(Be.current), m((se) => se.filter((be) => be.toastId !== c.id)), setTimeout(() => {
|
8004
8012
|
y(c);
|
8005
8013
|
}, wc);
|
8006
8014
|
}, [c, y, m, Be]);
|
@@ -8029,7 +8037,7 @@ var kc = (t) => {
|
|
8029
8037
|
function St() {
|
8030
8038
|
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" });
|
8031
8039
|
}
|
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":
|
8040
|
+
return H.createElement("li", { "aria-live": c.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: he, className: j(U, $e, Z == null ? void 0 : Z.toast, (e = c == null ? void 0 : c.classNames) == null ? void 0 : e.toast, Z == null ? void 0 : Z.default, Z == null ? void 0 : Z[ue], (n = c == null ? void 0 : c.classNames) == null ? void 0 : n[ue]), "data-sonner-toast": "", "data-rich-colors": (o = c.richColors) != null ? o : b, "data-styled": !(c.jsx || c.unstyled || p), "data-mounted": R, "data-promise": !!c.promise, "data-removed": q, "data-visible": Se, "data-y-position": rt, "data-x-position": ft, "data-index": O, "data-front": Te, "data-swiping": X, "data-dismissible": ie, "data-type": ue, "data-invert": Et, "data-swipe-out": D, "data-expanded": !!(_ || A && R), style: { "--index": O, "--toasts-before": O, "--z-index": k.length - O, "--offset": `${q ? re : Be.current}px`, "--initial-height": A ? "auto" : `${de}px`, ...T, ...c.style }, onPointerDown: (se) => {
|
8033
8041
|
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 }));
|
8034
8042
|
}, onPointerUp: () => {
|
8035
8043
|
var se, be, xe, Fe;
|
@@ -8046,14 +8054,14 @@ var kc = (t) => {
|
|
8046
8054
|
if (!ye.current || !ie) return;
|
8047
8055
|
let xe = se.clientY - ye.current.y, Fe = se.clientX - ye.current.x, Ve = (rt === "top" ? Math.min : Math.max)(0, xe), nt = se.pointerType === "touch" ? 10 : 2;
|
8048
8056
|
Math.abs(Ve) > nt ? (be = he.current) == null || be.style.setProperty("--swipe-amount", `${xe}px`) : Math.abs(Fe) > nt && (ye.current = null);
|
8049
|
-
} }, ne && !c.jsx ? H.createElement("button", { "aria-label":
|
8057
|
+
} }, ne && !c.jsx ? H.createElement("button", { "aria-label": P, "data-disabled": pt, "data-close-button": !0, onClick: pt || !ie ? () => {
|
8050
8058
|
} : () => {
|
8051
8059
|
var se;
|
8052
8060
|
qe(), (se = c.onDismiss) == null || se.call(c, c);
|
8053
8061
|
}, className: j(Z == null ? void 0 : Z.closeButton, (r = c == null ? void 0 : c.classNames) == null ? void 0 : r.closeButton) }, H.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }, H.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), H.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, c.jsx || H.isValidElement(c.title) ? c.jsx || c.title : H.createElement(H.Fragment, null, ue || c.icon || c.promise ? H.createElement("div", { "data-icon": "", className: j(Z == null ? void 0 : Z.icon, (i = c == null ? void 0 : c.classNames) == null ? void 0 : i.icon) }, c.promise || c.type === "loading" && !c.icon ? c.icon || St() : null, c.type !== "loading" ? c.icon || (ee == null ? void 0 : ee[ue]) || nc(ue) : null) : null, H.createElement("div", { "data-content": "", className: j(Z == null ? void 0 : Z.content, (s = c == null ? void 0 : c.classNames) == null ? void 0 : s.content) }, H.createElement("div", { "data-title": "", className: j(Z == null ? void 0 : Z.title, (a = c == null ? void 0 : c.classNames) == null ? void 0 : a.title) }, c.title), c.description ? H.createElement("div", { "data-description": "", className: j(Q, le, Z == null ? void 0 : Z.description, (l = c == null ? void 0 : c.classNames) == null ? void 0 : l.description) }, c.description) : null), H.isValidElement(c.cancel) ? c.cancel : c.cancel && fn(c.cancel) ? H.createElement("button", { "data-button": !0, "data-cancel": !0, style: c.cancelButtonStyle || F, onClick: (se) => {
|
8054
8062
|
var be, xe;
|
8055
8063
|
fn(c.cancel) && ie && ((xe = (be = c.cancel).onClick) == null || xe.call(be, se), qe());
|
8056
|
-
}, className: j(Z == null ? void 0 : Z.cancelButton, (u = c == null ? void 0 : c.classNames) == null ? void 0 : u.cancelButton) }, c.cancel.label) : null, H.isValidElement(c.action) ? c.action : c.action && fn(c.action) ? H.createElement("button", { "data-button": !0, "data-action": !0, style: c.actionButtonStyle ||
|
8064
|
+
}, className: j(Z == null ? void 0 : Z.cancelButton, (u = c == null ? void 0 : c.classNames) == null ? void 0 : u.cancelButton) }, c.cancel.label) : null, H.isValidElement(c.action) ? c.action : c.action && fn(c.action) ? H.createElement("button", { "data-button": !0, "data-action": !0, style: c.actionButtonStyle || I, onClick: (se) => {
|
8057
8065
|
var be, xe;
|
8058
8066
|
fn(c.action) && (se.defaultPrevented || ((xe = (be = c.action).onClick) == null || xe.call(be, se), qe()));
|
8059
8067
|
}, className: j(Z == null ? void 0 : Z.actionButton, (d = c == null ? void 0 : c.classNames) == null ? void 0 : d.actionButton) }, c.action.label) : null));
|
@@ -8064,7 +8072,7 @@ function Vr() {
|
|
8064
8072
|
return t === "auto" || !t ? window.getComputedStyle(document.documentElement).direction : t;
|
8065
8073
|
}
|
8066
8074
|
var Ec = (t) => {
|
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:
|
8075
|
+
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: L, icons: x, containerAriaLabel: O = "Notifications", pauseWhenPageIsHidden: k, cn: _ = Mc } = t, [y, b] = H.useState([]), S = H.useMemo(() => Array.from(new Set([n].concat(y.filter((E) => E.position).map((E) => E.position)))), [y, n]), [T, F] = H.useState([]), [I, U] = H.useState(!1), [Q, z] = H.useState(!1), [W, Y] = H.useState(l !== "system" ? l : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), V = H.useRef(null), A = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), Z = H.useRef(null), ee = H.useRef(!1), P = H.useCallback((E) => {
|
8068
8076
|
var j;
|
8069
8077
|
(j = y.find((R) => R.id === E.id)) != null && j.delete || Ke.dismiss(E.id), b((R) => R.filter(({ id: B }) => B !== E.id));
|
8070
8078
|
}, [y]);
|
@@ -8101,20 +8109,20 @@ var Ec = (t) => {
|
|
8101
8109
|
if (V.current) return () => {
|
8102
8110
|
Z.current && (Z.current.focus({ preventScroll: !0 }), Z.current = null, ee.current = !1);
|
8103
8111
|
};
|
8104
|
-
}, [V.current]), y.length ? H.createElement("section", { "aria-label": `${
|
8112
|
+
}, [V.current]), y.length ? H.createElement("section", { "aria-label": `${O} ${A}`, tabIndex: -1 }, S.map((E, j) => {
|
8105
8113
|
var R;
|
8106
8114
|
let [B, q] = E.split("-");
|
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: (
|
8108
|
-
ee.current && !
|
8109
|
-
}, onFocus: (
|
8110
|
-
|
8115
|
+
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: (C) => {
|
8116
|
+
ee.current && !C.currentTarget.contains(C.relatedTarget) && (ee.current = !1, Z.current && (Z.current.focus({ preventScroll: !0 }), Z.current = null));
|
8117
|
+
}, onFocus: (C) => {
|
8118
|
+
C.target instanceof HTMLElement && C.target.dataset.dismissible === "false" || ee.current || (ee.current = !0, Z.current = C.relatedTarget);
|
8111
8119
|
}, onMouseEnter: () => U(!0), onMouseMove: () => U(!0), onMouseLeave: () => {
|
8112
8120
|
Q || U(!1);
|
8113
|
-
}, onPointerDown: (
|
8114
|
-
|
8115
|
-
}, onPointerUp: () => z(!1) }, y.filter((
|
8121
|
+
}, onPointerDown: (C) => {
|
8122
|
+
C.target instanceof HTMLElement && C.target.dataset.dismissible === "false" || z(!0);
|
8123
|
+
}, onPointerUp: () => z(!1) }, y.filter((C) => !C.position && j === 0 || C.position === E).map((C, X) => {
|
8116
8124
|
var J, D;
|
8117
|
-
return H.createElement(kc, { key:
|
8125
|
+
return H.createElement(kc, { key: C.id, icons: x, index: X, toast: C, defaultRichColors: u, duration: (J = p == null ? void 0 : p.duration) != null ? J : d, className: p == null ? void 0 : p.className, descriptionClassName: p == null ? void 0 : p.descriptionClassName, invert: e, visibleToasts: c, closeButton: (D = p == null ? void 0 : p.closeButton) != null ? D : i, interacting: Q, position: E, style: p == null ? void 0 : p.style, unstyled: p == null ? void 0 : p.unstyled, classNames: p == null ? void 0 : p.classNames, cancelButtonStyle: p == null ? void 0 : p.cancelButtonStyle, actionButtonStyle: p == null ? void 0 : p.actionButtonStyle, removeToast: P, toasts: y.filter((K) => K.position == C.position), heights: T.filter((K) => K.position == C.position), setHeights: F, expandByDefault: r, gap: m, loadingIcon: L, expanded: I, pauseWhenPageIsHidden: k, cn: _ });
|
8118
8126
|
}));
|
8119
8127
|
})) : null;
|
8120
8128
|
};
|