@arkyn/components 1.3.113 → 1.3.114
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bundle.js +427 -423
- package/dist/bundle.umd.cjs +28 -28
- package/dist/components/RichText/index.d.ts +2 -1
- package/dist/components/RichText/index.d.ts.map +1 -1
- package/dist/components/RichText/index.js +16 -11
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/RichText/index.tsx +21 -9
- package/src/components/RichText/styles.css +2 -1
package/dist/bundle.js
CHANGED
@@ -80,7 +80,7 @@ function Cf() {
|
|
80
80
|
// with.
|
81
81
|
L.$$typeof === V || L.getModuleId !== void 0));
|
82
82
|
}
|
83
|
-
function
|
83
|
+
function N(L, re, ue) {
|
84
84
|
var be = L.displayName;
|
85
85
|
if (be)
|
86
86
|
return be;
|
@@ -90,7 +90,7 @@ function Cf() {
|
|
90
90
|
function k(L) {
|
91
91
|
return L.displayName || "Context";
|
92
92
|
}
|
93
|
-
function
|
93
|
+
function R(L) {
|
94
94
|
if (L == null)
|
95
95
|
return null;
|
96
96
|
if (typeof L.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof L == "function")
|
@@ -120,14 +120,14 @@ function Cf() {
|
|
120
120
|
var ue = L;
|
121
121
|
return k(ue._context) + ".Provider";
|
122
122
|
case u:
|
123
|
-
return
|
123
|
+
return N(L, L.render, "ForwardRef");
|
124
124
|
case p:
|
125
125
|
var be = L.displayName || null;
|
126
|
-
return be !== null ? be :
|
126
|
+
return be !== null ? be : R(L.type) || "Memo";
|
127
127
|
case d: {
|
128
128
|
var je = L, $e = je._payload, Pe = je._init;
|
129
129
|
try {
|
130
|
-
return
|
130
|
+
return R(Pe($e));
|
131
131
|
} catch {
|
132
132
|
return null;
|
133
133
|
}
|
@@ -135,14 +135,14 @@ function Cf() {
|
|
135
135
|
}
|
136
136
|
return null;
|
137
137
|
}
|
138
|
-
var
|
138
|
+
var I = Object.assign, z = 0, J, _, te, ae, T, j, Z;
|
139
139
|
function H() {
|
140
140
|
}
|
141
141
|
H.__reactDisabledLog = !0;
|
142
142
|
function ee() {
|
143
143
|
{
|
144
144
|
if (z === 0) {
|
145
|
-
J = console.log, _ = console.info, te = console.warn, ae = console.error, T = console.group,
|
145
|
+
J = console.log, _ = console.info, te = console.warn, ae = console.error, T = console.group, j = console.groupCollapsed, Z = console.groupEnd;
|
146
146
|
var L = {
|
147
147
|
configurable: !0,
|
148
148
|
enumerable: !0,
|
@@ -171,25 +171,25 @@ function Cf() {
|
|
171
171
|
writable: !0
|
172
172
|
};
|
173
173
|
Object.defineProperties(console, {
|
174
|
-
log:
|
174
|
+
log: I({}, L, {
|
175
175
|
value: J
|
176
176
|
}),
|
177
|
-
info:
|
177
|
+
info: I({}, L, {
|
178
178
|
value: _
|
179
179
|
}),
|
180
|
-
warn:
|
180
|
+
warn: I({}, L, {
|
181
181
|
value: te
|
182
182
|
}),
|
183
|
-
error:
|
183
|
+
error: I({}, L, {
|
184
184
|
value: ae
|
185
185
|
}),
|
186
|
-
group:
|
186
|
+
group: I({}, L, {
|
187
187
|
value: T
|
188
188
|
}),
|
189
|
-
groupCollapsed:
|
190
|
-
value:
|
189
|
+
groupCollapsed: I({}, L, {
|
190
|
+
value: j
|
191
191
|
}),
|
192
|
-
groupEnd:
|
192
|
+
groupEnd: I({}, L, {
|
193
193
|
value: Z
|
194
194
|
})
|
195
195
|
});
|
@@ -399,8 +399,8 @@ function Cf() {
|
|
399
399
|
}
|
400
400
|
function Bt(L, re) {
|
401
401
|
if (typeof L.ref == "string" && We.current && re && We.current.stateNode !== re) {
|
402
|
-
var ue =
|
403
|
-
ct[ue] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
402
|
+
var ue = R(We.current.type);
|
403
|
+
ct[ue] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(We.current.type), L.ref), ct[ue] = !0);
|
404
404
|
}
|
405
405
|
}
|
406
406
|
function jt(L, re) {
|
@@ -488,7 +488,7 @@ function Cf() {
|
|
488
488
|
function cn() {
|
489
489
|
{
|
490
490
|
if (Te.current) {
|
491
|
-
var L =
|
491
|
+
var L = R(Te.current.type);
|
492
492
|
if (L)
|
493
493
|
return `
|
494
494
|
|
@@ -531,7 +531,7 @@ Check the top-level render call using <` + ue + ">.");
|
|
531
531
|
return;
|
532
532
|
zn[ue] = !0;
|
533
533
|
var be = "";
|
534
|
-
L && L._owner && L._owner !== Te.current && (be = " It was passed a child from " +
|
534
|
+
L && L._owner && L._owner !== Te.current && (be = " It was passed a child from " + R(L._owner.type) + "."), ot(L), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ue, be), ot(null);
|
535
535
|
}
|
536
536
|
}
|
537
537
|
function _n(L, re) {
|
@@ -568,11 +568,11 @@ Check the top-level render call using <` + ue + ">.");
|
|
568
568
|
else
|
569
569
|
return;
|
570
570
|
if (ue) {
|
571
|
-
var be =
|
571
|
+
var be = R(re);
|
572
572
|
ge(ue, L.props, "prop", be, L);
|
573
573
|
} else if (re.PropTypes !== void 0 && !ft) {
|
574
574
|
ft = !0;
|
575
|
-
var je =
|
575
|
+
var je = R(re);
|
576
576
|
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", je || "Unknown");
|
577
577
|
}
|
578
578
|
typeof re.getDefaultProps == "function" && !re.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
@@ -600,7 +600,7 @@ Check the top-level render call using <` + ue + ">.");
|
|
600
600
|
var st = An(je);
|
601
601
|
st ? Oe += st : Oe += cn();
|
602
602
|
var Ke;
|
603
|
-
L === null ? Ke = "null" : le(L) ? Ke = "array" : L !== void 0 && L.$$typeof === e ? (Ke = "<" + (
|
603
|
+
L === null ? Ke = "null" : le(L) ? Ke = "array" : L !== void 0 && L.$$typeof === e ? (Ke = "<" + (R(L.type) || "Unknown") + " />", Oe = " Did you accidentally export a JSX literal instead of a component?") : Ke = typeof L, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ke, Oe);
|
604
604
|
}
|
605
605
|
var et = Ee(L, re, ue, je, $e);
|
606
606
|
if (et == null)
|
@@ -619,7 +619,7 @@ Check the top-level render call using <` + ue + ">.");
|
|
619
619
|
_n(vt, L);
|
620
620
|
}
|
621
621
|
if (ve.call(re, "key")) {
|
622
|
-
var Ut =
|
622
|
+
var Ut = R(L), ut = Object.keys(re).filter(function(Zc) {
|
623
623
|
return Zc !== "key";
|
624
624
|
}), xe = ut.length > 0 ? "{key: someKey, " + ut.join(": ..., ") + ": ...}" : "{key: someKey}";
|
625
625
|
if (!Wn[Ut + xe]) {
|
@@ -982,13 +982,13 @@ var Qa = {
|
|
982
982
|
}
|
983
983
|
};
|
984
984
|
function jf(t) {
|
985
|
-
var e = t.children, n = t.options, r = t.id, i = t.mapContainerStyle, a = t.mapContainerClassName, o = t.center, s = t.onClick, u = t.onDblClick, l = t.onDrag, c = t.onDragEnd, p = t.onDragStart, d = t.onMouseMove, h = t.onMouseOut, y = t.onMouseOver, v = t.onMouseDown, f = t.onMouseUp, C = t.onRightClick, w = t.onCenterChanged, b = t.onLoad, S = t.onUnmount, D = $(null), E = D[0], A = D[1], M = qe(null), V = $(null), F = V[0],
|
985
|
+
var e = t.children, n = t.options, r = t.id, i = t.mapContainerStyle, a = t.mapContainerClassName, o = t.center, s = t.onClick, u = t.onDblClick, l = t.onDrag, c = t.onDragEnd, p = t.onDragStart, d = t.onMouseMove, h = t.onMouseOut, y = t.onMouseOver, v = t.onMouseDown, f = t.onMouseUp, C = t.onRightClick, w = t.onCenterChanged, b = t.onLoad, S = t.onUnmount, D = $(null), E = D[0], A = D[1], M = qe(null), V = $(null), F = V[0], N = V[1], k = $(null), R = k[0], I = k[1], z = $(null), J = z[0], _ = z[1], te = $(null), ae = te[0], T = te[1], j = $(null), Z = j[0], H = j[1], ee = $(null), X = ee[0], m = ee[1], U = $(null), W = U[0], P = U[1], Q = $(null), ie = Q[0], G = Q[1], ce = $(null), se = ce[0], he = ce[1], ve = $(null), De = ve[0], Ce = ve[1], me = $(null), ge = me[0], Ie = me[1], le = $(null), Ne = le[0], pe = le[1];
|
986
986
|
return B(function() {
|
987
987
|
n && E !== null && E.setOptions(n);
|
988
988
|
}, [E, n]), B(function() {
|
989
989
|
E !== null && typeof o < "u" && E.setCenter(o);
|
990
990
|
}, [E, o]), B(function() {
|
991
|
-
E && u && (
|
991
|
+
E && u && (R !== null && google.maps.event.removeListener(R), I(google.maps.event.addListener(E, "dblclick", u)));
|
992
992
|
}, [u]), B(function() {
|
993
993
|
E && c && (J !== null && google.maps.event.removeListener(J), _(google.maps.event.addListener(E, "dragend", c)));
|
994
994
|
}, [c]), B(function() {
|
@@ -1010,7 +1010,7 @@ function jf(t) {
|
|
1010
1010
|
}, [s]), B(function() {
|
1011
1011
|
E && l && (Ne !== null && google.maps.event.removeListener(Ne), pe(google.maps.event.addListener(E, "drag", l)));
|
1012
1012
|
}, [l]), B(function() {
|
1013
|
-
E && w && (F !== null && google.maps.event.removeListener(F),
|
1013
|
+
E && w && (F !== null && google.maps.event.removeListener(F), N(google.maps.event.addListener(E, "center_changed", w)));
|
1014
1014
|
}, [s]), B(function() {
|
1015
1015
|
var Be = M.current === null ? null : new google.maps.Map(M.current, n);
|
1016
1016
|
return A(Be), Be !== null && b && b(Be), function() {
|
@@ -1274,11 +1274,11 @@ function $f(t) {
|
|
1274
1274
|
V();
|
1275
1275
|
return;
|
1276
1276
|
}
|
1277
|
-
ll({ id: n, url: E, nonce: a }).then(V).catch(function(
|
1278
|
-
v.current && D(
|
1277
|
+
ll({ id: n, url: E, nonce: a }).then(V).catch(function(N) {
|
1278
|
+
v.current && D(N), console.warn(`
|
1279
1279
|
There has been an Error with loading Google Maps API script, please check that you provided correct google API key (`.concat(o || "-", ") or Client ID (").concat(s || "-", `)
|
1280
1280
|
Otherwise it is a Network issue.
|
1281
|
-
`)), console.error(
|
1281
|
+
`)), console.error(N);
|
1282
1282
|
});
|
1283
1283
|
}, [n, E, a]);
|
1284
1284
|
var A = qe();
|
@@ -1446,7 +1446,7 @@ var oo = {
|
|
1446
1446
|
}
|
1447
1447
|
};
|
1448
1448
|
function Vf(t) {
|
1449
|
-
var e = t.options, n = t.drawingMode, r = t.onCircleComplete, i = t.onMarkerComplete, a = t.onOverlayComplete, o = t.onPolygonComplete, s = t.onPolylineComplete, u = t.onRectangleComplete, l = t.onLoad, c = t.onUnmount, p = _e(Ae), d = $(null), h = d[0], y = d[1], v = $(null), f = v[0], C = v[1], w = $(null), b = w[0], S = w[1], D = $(null), E = D[0], A = D[1], M = $(null), V = M[0], F = M[1],
|
1449
|
+
var e = t.options, n = t.drawingMode, r = t.onCircleComplete, i = t.onMarkerComplete, a = t.onOverlayComplete, o = t.onPolygonComplete, s = t.onPolylineComplete, u = t.onRectangleComplete, l = t.onLoad, c = t.onUnmount, p = _e(Ae), d = $(null), h = d[0], y = d[1], v = $(null), f = v[0], C = v[1], w = $(null), b = w[0], S = w[1], D = $(null), E = D[0], A = D[1], M = $(null), V = M[0], F = M[1], N = $(null), k = N[0], R = N[1], I = $(null), z = I[0], J = I[1];
|
1450
1450
|
return B(function() {
|
1451
1451
|
h !== null && h.setMap(p);
|
1452
1452
|
}, [p]), B(function() {
|
@@ -1462,13 +1462,13 @@ function Vf(t) {
|
|
1462
1462
|
}, [h, a]), B(function() {
|
1463
1463
|
h && o && (V !== null && google.maps.event.removeListener(V), F(google.maps.event.addListener(h, "polygoncomplete", o)));
|
1464
1464
|
}, [h, o]), B(function() {
|
1465
|
-
h && s && (k !== null && google.maps.event.removeListener(k),
|
1465
|
+
h && s && (k !== null && google.maps.event.removeListener(k), R(google.maps.event.addListener(h, "polylinecomplete", s)));
|
1466
1466
|
}, [h, s]), B(function() {
|
1467
1467
|
h && u && (z !== null && google.maps.event.removeListener(z), J(google.maps.event.addListener(h, "rectanglecomplete", u)));
|
1468
1468
|
}, [h, u]), B(function() {
|
1469
1469
|
at(!!google.maps.drawing, "Did you include prop libraries={['drawing']} in the URL? %s", google.maps.drawing);
|
1470
1470
|
var _ = new google.maps.drawing.DrawingManager(ye(ye({}, e || {}), { map: p }));
|
1471
|
-
return n && _.setDrawingMode(n), r && C(google.maps.event.addListener(_, "circlecomplete", r)), i && S(google.maps.event.addListener(_, "markercomplete", i)), a && A(google.maps.event.addListener(_, "overlaycomplete", a)), o && F(google.maps.event.addListener(_, "polygoncomplete", o)), s &&
|
1471
|
+
return n && _.setDrawingMode(n), r && C(google.maps.event.addListener(_, "circlecomplete", r)), i && S(google.maps.event.addListener(_, "markercomplete", i)), a && A(google.maps.event.addListener(_, "overlaycomplete", a)), o && F(google.maps.event.addListener(_, "polygoncomplete", o)), s && R(google.maps.event.addListener(_, "polylinecomplete", s)), u && J(google.maps.event.addListener(_, "rectanglecomplete", u)), y(_), l && l(_), function() {
|
1472
1472
|
h !== null && (f && google.maps.event.removeListener(f), b && google.maps.event.removeListener(b), E && google.maps.event.removeListener(E), V && google.maps.event.removeListener(V), k && google.maps.event.removeListener(k), z && google.maps.event.removeListener(z), c && c(h), h.setMap(null));
|
1473
1473
|
};
|
1474
1474
|
}, []), null;
|
@@ -1578,7 +1578,7 @@ var uo = {
|
|
1578
1578
|
}
|
1579
1579
|
}, Zr = {};
|
1580
1580
|
function qf(t) {
|
1581
|
-
var e = t.position, n = t.options, r = t.clusterer, i = t.noClustererRedraw, a = t.children, o = t.draggable, s = t.visible, u = t.animation, l = t.clickable, c = t.cursor, p = t.icon, d = t.label, h = t.opacity, y = t.shape, v = t.title, f = t.zIndex, C = t.onClick, w = t.onDblClick, b = t.onDrag, S = t.onDragEnd, D = t.onDragStart, E = t.onMouseOut, A = t.onMouseOver, M = t.onMouseUp, V = t.onMouseDown, F = t.onRightClick,
|
1581
|
+
var e = t.position, n = t.options, r = t.clusterer, i = t.noClustererRedraw, a = t.children, o = t.draggable, s = t.visible, u = t.animation, l = t.clickable, c = t.cursor, p = t.icon, d = t.label, h = t.opacity, y = t.shape, v = t.title, f = t.zIndex, C = t.onClick, w = t.onDblClick, b = t.onDrag, S = t.onDragEnd, D = t.onDragStart, E = t.onMouseOut, A = t.onMouseOver, M = t.onMouseUp, V = t.onMouseDown, F = t.onRightClick, N = t.onClickableChanged, k = t.onCursorChanged, R = t.onAnimationChanged, I = t.onDraggableChanged, z = t.onFlatChanged, J = t.onIconChanged, _ = t.onPositionChanged, te = t.onShapeChanged, ae = t.onTitleChanged, T = t.onVisibleChanged, j = t.onZindexChanged, Z = t.onLoad, H = t.onUnmount, ee = _e(Ae), X = $(null), m = X[0], U = X[1], W = $(null), P = W[0], Q = W[1], ie = $(null), G = ie[0], ce = ie[1], se = $(null), he = se[0], ve = se[1], De = $(null), Ce = De[0], me = De[1], ge = $(null), Ie = ge[0], le = ge[1], Ne = $(null), pe = Ne[0], Be = Ne[1], Me = $(null), We = Me[0], Ye = Me[1], we = $(null), dt = we[0], ct = we[1], kt = $(null), mt = kt[0], Bt = kt[1], jt = $(null), yt = jt[0], Yt = jt[1], Ee = $(null), Te = Ee[0], Re = Ee[1], ot = $(null), ft = ot[0], Tt = ot[1], cn = $(null), An = cn[0], zn = cn[1], yr = $(null), fn = yr[0], _n = yr[1], Cr = $(null), On = Cr[0], Wn = Cr[1], Un = $(null), Sn = Un[0], Dr = Un[1], br = $(null), Fn = br[0], L = br[1], re = $(null), ue = re[0], be = re[1], je = $(null), $e = je[0], Pe = je[1], Oe = $(null), st = Oe[0], Ke = Oe[1], et = $(null), vt = et[0], Wt = et[1];
|
1582
1582
|
B(function() {
|
1583
1583
|
m !== null && m.setMap(ee);
|
1584
1584
|
}, [ee]), B(function() {
|
@@ -1628,14 +1628,14 @@ function qf(t) {
|
|
1628
1628
|
}, [C]), B(function() {
|
1629
1629
|
m && b && (yt !== null && google.maps.event.removeListener(yt), Yt(google.maps.event.addListener(m, "drag", b)));
|
1630
1630
|
}, [b]), B(function() {
|
1631
|
-
m &&
|
1632
|
-
}, [
|
1631
|
+
m && N && (Te !== null && google.maps.event.removeListener(Te), Re(google.maps.event.addListener(m, "clickable_changed", N)));
|
1632
|
+
}, [N]), B(function() {
|
1633
1633
|
m && k && (ft !== null && google.maps.event.removeListener(ft), Tt(google.maps.event.addListener(m, "cursor_changed", k)));
|
1634
1634
|
}, [k]), B(function() {
|
1635
|
-
m &&
|
1635
|
+
m && R && (An !== null && google.maps.event.removeListener(An), zn(google.maps.event.addListener(m, "animation_changed", R)));
|
1636
|
+
}, [R]), B(function() {
|
1637
|
+
m && I && (fn !== null && google.maps.event.removeListener(fn), _n(google.maps.event.addListener(m, "draggable_changed", I)));
|
1636
1638
|
}, [I]), B(function() {
|
1637
|
-
m && N && (fn !== null && google.maps.event.removeListener(fn), _n(google.maps.event.addListener(m, "draggable_changed", N)));
|
1638
|
-
}, [N]), B(function() {
|
1639
1639
|
m && z && (On !== null && google.maps.event.removeListener(On), Wn(google.maps.event.addListener(m, "flat_changed", z)));
|
1640
1640
|
}, [z]), B(function() {
|
1641
1641
|
m && J && (Sn !== null && google.maps.event.removeListener(Sn), Dr(google.maps.event.addListener(m, "icon_changed", J)));
|
@@ -1648,10 +1648,10 @@ function qf(t) {
|
|
1648
1648
|
}, [ae]), B(function() {
|
1649
1649
|
m && T && (st !== null && google.maps.event.removeListener(st), Ke(google.maps.event.addListener(m, "visible_changed", T)));
|
1650
1650
|
}, [T]), B(function() {
|
1651
|
-
m &&
|
1652
|
-
}, [
|
1651
|
+
m && j && (vt !== null && google.maps.event.removeListener(vt), Wt(google.maps.event.addListener(m, "zindex_changed", j)));
|
1652
|
+
}, [j]), B(function() {
|
1653
1653
|
var ut = ye(ye(ye({}, n || Zr), r ? Zr : { map: ee }), { position: e }), xe = new google.maps.Marker(ut);
|
1654
|
-
return r ? r.addMarker(xe, !!i) : xe.setMap(ee), e && xe.setPosition(e), typeof s < "u" && xe.setVisible(s), typeof o < "u" && xe.setDraggable(o), typeof l < "u" && xe.setClickable(l), typeof c == "string" && xe.setCursor(c), p && xe.setIcon(p), typeof d < "u" && xe.setLabel(d), typeof h < "u" && xe.setOpacity(h), y && xe.setShape(y), typeof v == "string" && xe.setTitle(v), typeof f == "number" && xe.setZIndex(f), w && Q(google.maps.event.addListener(xe, "dblclick", w)), S && ce(google.maps.event.addListener(xe, "dragend", S)), D && ve(google.maps.event.addListener(xe, "dragstart", D)), V && me(google.maps.event.addListener(xe, "mousedown", V)), E && le(google.maps.event.addListener(xe, "mouseout", E)), A && Be(google.maps.event.addListener(xe, "mouseover", A)), M && Ye(google.maps.event.addListener(xe, "mouseup", M)), F && ct(google.maps.event.addListener(xe, "rightclick", F)), C && Bt(google.maps.event.addListener(xe, "click", C)), b && Yt(google.maps.event.addListener(xe, "drag", b)),
|
1654
|
+
return r ? r.addMarker(xe, !!i) : xe.setMap(ee), e && xe.setPosition(e), typeof s < "u" && xe.setVisible(s), typeof o < "u" && xe.setDraggable(o), typeof l < "u" && xe.setClickable(l), typeof c == "string" && xe.setCursor(c), p && xe.setIcon(p), typeof d < "u" && xe.setLabel(d), typeof h < "u" && xe.setOpacity(h), y && xe.setShape(y), typeof v == "string" && xe.setTitle(v), typeof f == "number" && xe.setZIndex(f), w && Q(google.maps.event.addListener(xe, "dblclick", w)), S && ce(google.maps.event.addListener(xe, "dragend", S)), D && ve(google.maps.event.addListener(xe, "dragstart", D)), V && me(google.maps.event.addListener(xe, "mousedown", V)), E && le(google.maps.event.addListener(xe, "mouseout", E)), A && Be(google.maps.event.addListener(xe, "mouseover", A)), M && Ye(google.maps.event.addListener(xe, "mouseup", M)), F && ct(google.maps.event.addListener(xe, "rightclick", F)), C && Bt(google.maps.event.addListener(xe, "click", C)), b && Yt(google.maps.event.addListener(xe, "drag", b)), N && Re(google.maps.event.addListener(xe, "clickable_changed", N)), k && Tt(google.maps.event.addListener(xe, "cursor_changed", k)), R && zn(google.maps.event.addListener(xe, "animation_changed", R)), I && _n(google.maps.event.addListener(xe, "draggable_changed", I)), z && Wn(google.maps.event.addListener(xe, "flat_changed", z)), J && Dr(google.maps.event.addListener(xe, "icon_changed", J)), _ && L(google.maps.event.addListener(xe, "position_changed", _)), te && be(google.maps.event.addListener(xe, "shape_changed", te)), ae && Pe(google.maps.event.addListener(xe, "title_changed", ae)), T && Ke(google.maps.event.addListener(xe, "visible_changed", T)), j && Wt(google.maps.event.addListener(xe, "zindex_changed", j)), U(xe), Z && Z(xe), function() {
|
1655
1655
|
P !== null && google.maps.event.removeListener(P), G !== null && google.maps.event.removeListener(G), he !== null && google.maps.event.removeListener(he), Ce !== null && google.maps.event.removeListener(Ce), Ie !== null && google.maps.event.removeListener(Ie), pe !== null && google.maps.event.removeListener(pe), We !== null && google.maps.event.removeListener(We), dt !== null && google.maps.event.removeListener(dt), mt !== null && google.maps.event.removeListener(mt), Te !== null && google.maps.event.removeListener(Te), ft !== null && google.maps.event.removeListener(ft), An !== null && google.maps.event.removeListener(An), fn !== null && google.maps.event.removeListener(fn), On !== null && google.maps.event.removeListener(On), Sn !== null && google.maps.event.removeListener(Sn), Fn !== null && google.maps.event.removeListener(Fn), $e !== null && google.maps.event.removeListener($e), st !== null && google.maps.event.removeListener(st), vt !== null && google.maps.event.removeListener(vt), H && H(xe), r ? r.removeMarker(xe, !!i) : xe && xe.setMap(null);
|
1656
1656
|
};
|
1657
1657
|
}, []);
|
@@ -2191,13 +2191,13 @@ var Xf = 2e3, Jf = 500, Qf = "https://developers.google.com/maps/documentation/j
|
|
2191
2191
|
}
|
2192
2192
|
}, rd = {};
|
2193
2193
|
function id(t) {
|
2194
|
-
var e = t.children, n = t.options, r = t.averageCenter, i = t.batchSizeIE, a = t.calculator, o = t.clusterClass, s = t.enableRetinaIcons, u = t.gridSize, l = t.ignoreHidden, c = t.imageExtension, p = t.imagePath, d = t.imageSizes, h = t.maxZoom, y = t.minimumClusterSize, v = t.styles, f = t.title, C = t.zoomOnClick, w = t.onClick, b = t.onClusteringBegin, S = t.onClusteringEnd, D = t.onMouseOver, E = t.onMouseOut, A = t.onLoad, M = t.onUnmount, V = $(null), F = V[0],
|
2194
|
+
var e = t.children, n = t.options, r = t.averageCenter, i = t.batchSizeIE, a = t.calculator, o = t.clusterClass, s = t.enableRetinaIcons, u = t.gridSize, l = t.ignoreHidden, c = t.imageExtension, p = t.imagePath, d = t.imageSizes, h = t.maxZoom, y = t.minimumClusterSize, v = t.styles, f = t.title, C = t.zoomOnClick, w = t.onClick, b = t.onClusteringBegin, S = t.onClusteringEnd, D = t.onMouseOver, E = t.onMouseOut, A = t.onLoad, M = t.onUnmount, V = $(null), F = V[0], N = V[1], k = _e(Ae), R = $(null), I = R[0], z = R[1], J = $(null), _ = J[0], te = J[1], ae = $(null), T = ae[0], j = ae[1], Z = $(null), H = Z[0], ee = Z[1], X = $(null), m = X[0], U = X[1];
|
2195
2195
|
return B(function() {
|
2196
2196
|
F && E && (H !== null && google.maps.event.removeListener(H), ee(google.maps.event.addListener(F, Ft.onMouseOut, E)));
|
2197
2197
|
}, [E]), B(function() {
|
2198
2198
|
F && D && (m !== null && google.maps.event.removeListener(m), U(google.maps.event.addListener(F, Ft.onMouseOver, D)));
|
2199
2199
|
}, [D]), B(function() {
|
2200
|
-
F && w && (
|
2200
|
+
F && w && (I !== null && google.maps.event.removeListener(I), z(google.maps.event.addListener(F, Ft.onClick, w)));
|
2201
2201
|
}, [w]), B(function() {
|
2202
2202
|
F && b && (_ !== null && google.maps.event.removeListener(_), te(google.maps.event.addListener(F, Ft.onClusteringBegin, b)));
|
2203
2203
|
}, [b]), B(function() {
|
@@ -2235,8 +2235,8 @@ function id(t) {
|
|
2235
2235
|
}, [F, C]), B(function() {
|
2236
2236
|
if (k) {
|
2237
2237
|
var W = ye({}, n || rd), P = new pl(k, [], W);
|
2238
|
-
return r && ze.averageCenter(P, r), i && ze.batchSizeIE(P, i), a && ze.calculator(P, a), o && ze.clusterClass(P, o), s && ze.enableRetinaIcons(P, s), u && ze.gridSize(P, u), l && ze.ignoreHidden(P, l), c && ze.imageExtension(P, c), p && ze.imagePath(P, p), d && ze.imageSizes(P, d), h && ze.maxZoom(P, h), y && ze.minimumClusterSize(P, y), v && ze.styles(P, v), f && ze.title(P, f), C && ze.zoomOnClick(P, C), E && ee(google.maps.event.addListener(P, Ft.onMouseOut, E)), D && U(google.maps.event.addListener(P, Ft.onMouseOver, D)), w && z(google.maps.event.addListener(P, Ft.onClick, w)), b && te(google.maps.event.addListener(P, Ft.onClusteringBegin, b)), S &&
|
2239
|
-
H !== null && google.maps.event.removeListener(H), m !== null && google.maps.event.removeListener(m),
|
2238
|
+
return r && ze.averageCenter(P, r), i && ze.batchSizeIE(P, i), a && ze.calculator(P, a), o && ze.clusterClass(P, o), s && ze.enableRetinaIcons(P, s), u && ze.gridSize(P, u), l && ze.ignoreHidden(P, l), c && ze.imageExtension(P, c), p && ze.imagePath(P, p), d && ze.imageSizes(P, d), h && ze.maxZoom(P, h), y && ze.minimumClusterSize(P, y), v && ze.styles(P, v), f && ze.title(P, f), C && ze.zoomOnClick(P, C), E && ee(google.maps.event.addListener(P, Ft.onMouseOut, E)), D && U(google.maps.event.addListener(P, Ft.onMouseOver, D)), w && z(google.maps.event.addListener(P, Ft.onClick, w)), b && te(google.maps.event.addListener(P, Ft.onClusteringBegin, b)), S && j(google.maps.event.addListener(P, Ft.onClusteringEnd, S)), N(P), A && A(P), function() {
|
2239
|
+
H !== null && google.maps.event.removeListener(H), m !== null && google.maps.event.removeListener(m), I !== null && google.maps.event.removeListener(I), _ !== null && google.maps.event.removeListener(_), T !== null && google.maps.event.removeListener(T), M && M(P);
|
2240
2240
|
};
|
2241
2241
|
}
|
2242
2242
|
}, []), F !== null && e(F) || null;
|
@@ -2450,7 +2450,7 @@ var hl = (
|
|
2450
2450
|
}
|
2451
2451
|
}, ad = {};
|
2452
2452
|
function od(t) {
|
2453
|
-
var e = t.children, n = t.anchor, r = t.options, i = t.position, a = t.zIndex, o = t.onCloseClick, s = t.onDomReady, u = t.onContentChanged, l = t.onPositionChanged, c = t.onZindexChanged, p = t.onLoad, d = t.onUnmount, h = _e(Ae), y = $(null), v = y[0], f = y[1], C = $(null), w = C[0], b = C[1], S = $(null), D = S[0], E = S[1], A = $(null), M = A[0], V = A[1], F = $(null),
|
2453
|
+
var e = t.children, n = t.anchor, r = t.options, i = t.position, a = t.zIndex, o = t.onCloseClick, s = t.onDomReady, u = t.onContentChanged, l = t.onPositionChanged, c = t.onZindexChanged, p = t.onLoad, d = t.onUnmount, h = _e(Ae), y = $(null), v = y[0], f = y[1], C = $(null), w = C[0], b = C[1], S = $(null), D = S[0], E = S[1], A = $(null), M = A[0], V = A[1], F = $(null), N = F[0], k = F[1], R = $(null), I = R[0], z = R[1], J = qe(null);
|
2454
2454
|
return B(function() {
|
2455
2455
|
h && v !== null && (v.close(), n ? v.open(h, n) : v.getPosition() && v.open(h));
|
2456
2456
|
}, [h, v, n]), B(function() {
|
@@ -2469,18 +2469,18 @@ function od(t) {
|
|
2469
2469
|
}, [s]), B(function() {
|
2470
2470
|
v && u && (M !== null && google.maps.event.removeListener(M), V(google.maps.event.addListener(v, "content_changed", u)));
|
2471
2471
|
}, [u]), B(function() {
|
2472
|
-
v && l && (
|
2472
|
+
v && l && (N !== null && google.maps.event.removeListener(N), k(google.maps.event.addListener(v, "position_changed", l)));
|
2473
2473
|
}, [l]), B(function() {
|
2474
|
-
v && c && (
|
2474
|
+
v && c && (I !== null && google.maps.event.removeListener(I), z(google.maps.event.addListener(v, "zindex_changed", c)));
|
2475
2475
|
}, [c]), B(function() {
|
2476
2476
|
if (h) {
|
2477
2477
|
var _ = r || ad, te = _.position, ae = ya(_, ["position"]), T = void 0;
|
2478
2478
|
te && !(te instanceof google.maps.LatLng) && (T = new google.maps.LatLng(te.lat, te.lng));
|
2479
|
-
var
|
2480
|
-
J.current = document.createElement("div"), f(
|
2479
|
+
var j = new hl(ye(ye({}, ae), T ? { position: T } : {}));
|
2480
|
+
J.current = document.createElement("div"), f(j), o && b(google.maps.event.addListener(j, "closeclick", o)), s && E(google.maps.event.addListener(j, "domready", s)), u && V(google.maps.event.addListener(j, "content_changed", u)), l && k(google.maps.event.addListener(j, "position_changed", l)), c && z(google.maps.event.addListener(j, "zindex_changed", c)), j.setContent(J.current), n ? j.open(h, n) : j.getPosition() ? j.open(h) : at(!1, "You must provide either an anchor or a position prop for <InfoBox>."), p && p(j);
|
2481
2481
|
}
|
2482
2482
|
return function() {
|
2483
|
-
v !== null && (w && google.maps.event.removeListener(w), M && google.maps.event.removeListener(M), D && google.maps.event.removeListener(D),
|
2483
|
+
v !== null && (w && google.maps.event.removeListener(w), M && google.maps.event.removeListener(M), D && google.maps.event.removeListener(D), N && google.maps.event.removeListener(N), I && google.maps.event.removeListener(I), d && d(v), v.close());
|
2484
2484
|
};
|
2485
2485
|
}, []), J.current ? ni(zt.only(e), J.current) : null;
|
2486
2486
|
}
|
@@ -3303,7 +3303,7 @@ var Co = {
|
|
3303
3303
|
}
|
3304
3304
|
};
|
3305
3305
|
function wd(t) {
|
3306
|
-
var e = t.children, n = t.anchor, r = t.options, i = t.position, a = t.zIndex, o = t.onCloseClick, s = t.onDomReady, u = t.onContentChanged, l = t.onPositionChanged, c = t.onZindexChanged, p = t.onLoad, d = t.onUnmount, h = _e(Ae), y = $(null), v = y[0], f = y[1], C = $(null), w = C[0], b = C[1], S = $(null), D = S[0], E = S[1], A = $(null), M = A[0], V = A[1], F = $(null),
|
3306
|
+
var e = t.children, n = t.anchor, r = t.options, i = t.position, a = t.zIndex, o = t.onCloseClick, s = t.onDomReady, u = t.onContentChanged, l = t.onPositionChanged, c = t.onZindexChanged, p = t.onLoad, d = t.onUnmount, h = _e(Ae), y = $(null), v = y[0], f = y[1], C = $(null), w = C[0], b = C[1], S = $(null), D = S[0], E = S[1], A = $(null), M = A[0], V = A[1], F = $(null), N = F[0], k = F[1], R = $(null), I = R[0], z = R[1], J = qe(null);
|
3307
3307
|
return B(function() {
|
3308
3308
|
v !== null && (v.close(), n ? v.open(h, n) : v.getPosition() && v.open(h));
|
3309
3309
|
}, [h, v, n]), B(function() {
|
@@ -3319,13 +3319,13 @@ function wd(t) {
|
|
3319
3319
|
}, [s]), B(function() {
|
3320
3320
|
v && u && (M !== null && google.maps.event.removeListener(M), V(google.maps.event.addListener(v, "content_changed", u)));
|
3321
3321
|
}, [u]), B(function() {
|
3322
|
-
v && l && (
|
3322
|
+
v && l && (N !== null && google.maps.event.removeListener(N), k(google.maps.event.addListener(v, "position_changed", l)));
|
3323
3323
|
}, [l]), B(function() {
|
3324
|
-
v && c && (
|
3324
|
+
v && c && (I !== null && google.maps.event.removeListener(I), z(google.maps.event.addListener(v, "zindex_changed", c)));
|
3325
3325
|
}, [c]), B(function() {
|
3326
3326
|
var _ = new google.maps.InfoWindow(ye({}, r || {}));
|
3327
3327
|
return f(_), J.current = document.createElement("div"), o && b(google.maps.event.addListener(_, "closeclick", o)), s && E(google.maps.event.addListener(_, "domready", s)), u && V(google.maps.event.addListener(_, "content_changed", u)), l && k(google.maps.event.addListener(_, "position_changed", l)), c && z(google.maps.event.addListener(_, "zindex_changed", c)), _.setContent(J.current), i && _.setPosition(i), a && _.setZIndex(a), n ? _.open(h, n) : _.getPosition() ? _.open(h) : at(!1, "You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."), p && p(_), function() {
|
3328
|
-
w && google.maps.event.removeListener(w), M && google.maps.event.removeListener(M), D && google.maps.event.removeListener(D),
|
3328
|
+
w && google.maps.event.removeListener(w), M && google.maps.event.removeListener(M), D && google.maps.event.removeListener(D), N && google.maps.event.removeListener(N), I && google.maps.event.removeListener(I), d && d(_), _.close();
|
3329
3329
|
};
|
3330
3330
|
}, []), J.current ? ni(zt.only(e), J.current) : null;
|
3331
3331
|
}
|
@@ -3402,7 +3402,7 @@ var bo = {
|
|
3402
3402
|
}
|
3403
3403
|
}, Bd = {};
|
3404
3404
|
function xd(t) {
|
3405
|
-
var e = t.options, n = t.draggable, r = t.editable, i = t.visible, a = t.path, o = t.onDblClick, s = t.onDragEnd, u = t.onDragStart, l = t.onMouseDown, c = t.onMouseMove, p = t.onMouseOut, d = t.onMouseOver, h = t.onMouseUp, y = t.onRightClick, v = t.onClick, f = t.onDrag, C = t.onLoad, w = t.onUnmount, b = _e(Ae), S = $(null), D = S[0], E = S[1], A = $(null), M = A[0], V = A[1], F = $(null),
|
3405
|
+
var e = t.options, n = t.draggable, r = t.editable, i = t.visible, a = t.path, o = t.onDblClick, s = t.onDragEnd, u = t.onDragStart, l = t.onMouseDown, c = t.onMouseMove, p = t.onMouseOut, d = t.onMouseOver, h = t.onMouseUp, y = t.onRightClick, v = t.onClick, f = t.onDrag, C = t.onLoad, w = t.onUnmount, b = _e(Ae), S = $(null), D = S[0], E = S[1], A = $(null), M = A[0], V = A[1], F = $(null), N = F[0], k = F[1], R = $(null), I = R[0], z = R[1], J = $(null), _ = J[0], te = J[1], ae = $(null), T = ae[0], j = ae[1], Z = $(null), H = Z[0], ee = Z[1], X = $(null), m = X[0], U = X[1], W = $(null), P = W[0], Q = W[1], ie = $(null), G = ie[0], ce = ie[1], se = $(null), he = se[0], ve = se[1], De = $(null), Ce = De[0], me = De[1];
|
3406
3406
|
return B(function() {
|
3407
3407
|
D !== null && D.setMap(b);
|
3408
3408
|
}, [b]), B(function() {
|
@@ -3418,13 +3418,13 @@ function xd(t) {
|
|
3418
3418
|
}, [D, a]), B(function() {
|
3419
3419
|
D && o && (M !== null && google.maps.event.removeListener(M), V(google.maps.event.addListener(D, "dblclick", o)));
|
3420
3420
|
}, [o]), B(function() {
|
3421
|
-
D && s && (
|
3421
|
+
D && s && (N !== null && google.maps.event.removeListener(N), k(google.maps.event.addListener(D, "dragend", s)));
|
3422
3422
|
}, [s]), B(function() {
|
3423
|
-
D && u && (
|
3423
|
+
D && u && (I !== null && google.maps.event.removeListener(I), z(google.maps.event.addListener(D, "dragstart", u)));
|
3424
3424
|
}, [u]), B(function() {
|
3425
3425
|
D && l && (_ !== null && google.maps.event.removeListener(_), te(google.maps.event.addListener(D, "mousedown", l)));
|
3426
3426
|
}, [l]), B(function() {
|
3427
|
-
D && c && (T !== null && google.maps.event.removeListener(T),
|
3427
|
+
D && c && (T !== null && google.maps.event.removeListener(T), j(google.maps.event.addListener(D, "mousemove", c)));
|
3428
3428
|
}, [c]), B(function() {
|
3429
3429
|
D && p && (H !== null && google.maps.event.removeListener(H), ee(google.maps.event.addListener(D, "mouseout", p)));
|
3430
3430
|
}, [p]), B(function() {
|
@@ -3439,8 +3439,8 @@ function xd(t) {
|
|
3439
3439
|
D && f && (Ce !== null && google.maps.event.removeListener(Ce), me(google.maps.event.addListener(D, "drag", f)));
|
3440
3440
|
}, [f]), B(function() {
|
3441
3441
|
var ge = new google.maps.Polyline(ye(ye({}, e || Bd), { map: b }));
|
3442
|
-
return a && ge.setPath(a), typeof i < "u" && ge.setVisible(i), typeof r < "u" && ge.setEditable(r), typeof n < "u" && ge.setDraggable(n), o && V(google.maps.event.addListener(ge, "dblclick", o)), s && k(google.maps.event.addListener(ge, "dragend", s)), u && z(google.maps.event.addListener(ge, "dragstart", u)), l && te(google.maps.event.addListener(ge, "mousedown", l)), c &&
|
3443
|
-
M !== null && google.maps.event.removeListener(M),
|
3442
|
+
return a && ge.setPath(a), typeof i < "u" && ge.setVisible(i), typeof r < "u" && ge.setEditable(r), typeof n < "u" && ge.setDraggable(n), o && V(google.maps.event.addListener(ge, "dblclick", o)), s && k(google.maps.event.addListener(ge, "dragend", s)), u && z(google.maps.event.addListener(ge, "dragstart", u)), l && te(google.maps.event.addListener(ge, "mousedown", l)), c && j(google.maps.event.addListener(ge, "mousemove", c)), p && ee(google.maps.event.addListener(ge, "mouseout", p)), d && U(google.maps.event.addListener(ge, "mouseover", d)), h && Q(google.maps.event.addListener(ge, "mouseup", h)), y && ce(google.maps.event.addListener(ge, "rightclick", y)), v && ve(google.maps.event.addListener(ge, "click", v)), f && me(google.maps.event.addListener(ge, "drag", f)), E(ge), C && C(ge), function() {
|
3443
|
+
M !== null && google.maps.event.removeListener(M), N !== null && google.maps.event.removeListener(N), I !== null && google.maps.event.removeListener(I), _ !== null && google.maps.event.removeListener(_), T !== null && google.maps.event.removeListener(T), H !== null && google.maps.event.removeListener(H), m !== null && google.maps.event.removeListener(m), P !== null && google.maps.event.removeListener(P), G !== null && google.maps.event.removeListener(G), he !== null && google.maps.event.removeListener(he), w && w(ge), ge.setMap(null);
|
3444
3444
|
};
|
3445
3445
|
}, []), null;
|
3446
3446
|
}
|
@@ -3518,7 +3518,7 @@ var wo = {
|
|
3518
3518
|
}
|
3519
3519
|
};
|
3520
3520
|
function Ld(t) {
|
3521
|
-
var e = t.options, n = t.draggable, r = t.editable, i = t.visible, a = t.path, o = t.paths, s = t.onDblClick, u = t.onDragEnd, l = t.onDragStart, c = t.onMouseDown, p = t.onMouseMove, d = t.onMouseOut, h = t.onMouseOver, y = t.onMouseUp, v = t.onRightClick, f = t.onClick, C = t.onDrag, w = t.onLoad, b = t.onUnmount, S = t.onEdit, D = _e(Ae), E = $(null), A = E[0], M = E[1], V = $(null), F = V[0],
|
3521
|
+
var e = t.options, n = t.draggable, r = t.editable, i = t.visible, a = t.path, o = t.paths, s = t.onDblClick, u = t.onDragEnd, l = t.onDragStart, c = t.onMouseDown, p = t.onMouseMove, d = t.onMouseOut, h = t.onMouseOver, y = t.onMouseUp, v = t.onRightClick, f = t.onClick, C = t.onDrag, w = t.onLoad, b = t.onUnmount, S = t.onEdit, D = _e(Ae), E = $(null), A = E[0], M = E[1], V = $(null), F = V[0], N = V[1], k = $(null), R = k[0], I = k[1], z = $(null), J = z[0], _ = z[1], te = $(null), ae = te[0], T = te[1], j = $(null), Z = j[0], H = j[1], ee = $(null), X = ee[0], m = ee[1], U = $(null), W = U[0], P = U[1], Q = $(null), ie = Q[0], G = Q[1], ce = $(null), se = ce[0], he = ce[1], ve = $(null), De = ve[0], Ce = ve[1], me = $(null), ge = me[0], Ie = me[1];
|
3522
3522
|
return B(function() {
|
3523
3523
|
A !== null && A.setMap(D);
|
3524
3524
|
}, [D]), B(function() {
|
@@ -3534,7 +3534,7 @@ function Ld(t) {
|
|
3534
3534
|
}, [A, a]), B(function() {
|
3535
3535
|
typeof o < "u" && A !== null && A.setPaths(o);
|
3536
3536
|
}, [A, o]), B(function() {
|
3537
|
-
A && s && (F !== null && google.maps.event.removeListener(F),
|
3537
|
+
A && s && (F !== null && google.maps.event.removeListener(F), N(google.maps.event.addListener(A, "dblclick", s)));
|
3538
3538
|
}, [s]), B(function() {
|
3539
3539
|
A && (google.maps.event.addListener(A.getPath(), "insert_at", function() {
|
3540
3540
|
S == null || S(A);
|
@@ -3542,7 +3542,7 @@ function Ld(t) {
|
|
3542
3542
|
S == null || S(A);
|
3543
3543
|
}));
|
3544
3544
|
}, [A, S]), B(function() {
|
3545
|
-
A && u && (
|
3545
|
+
A && u && (R !== null && google.maps.event.removeListener(R), I(google.maps.event.addListener(A, "dragend", u)));
|
3546
3546
|
}, [u]), B(function() {
|
3547
3547
|
A && l && (J !== null && google.maps.event.removeListener(J), _(google.maps.event.addListener(A, "dragstart", l)));
|
3548
3548
|
}, [l]), B(function() {
|
@@ -3563,8 +3563,8 @@ function Ld(t) {
|
|
3563
3563
|
A && C && (ge !== null && google.maps.event.removeListener(ge), Ie(google.maps.event.addListener(A, "drag", C)));
|
3564
3564
|
}, [C]), B(function() {
|
3565
3565
|
var le = new google.maps.Polygon(ye(ye({}, e || {}), { map: D }));
|
3566
|
-
return a && le.setPath(a), o && le.setPaths(o), typeof i < "u" && le.setVisible(i), typeof r < "u" && le.setEditable(r), typeof n < "u" && le.setDraggable(n), s &&
|
3567
|
-
F !== null && google.maps.event.removeListener(F),
|
3566
|
+
return a && le.setPath(a), o && le.setPaths(o), typeof i < "u" && le.setVisible(i), typeof r < "u" && le.setEditable(r), typeof n < "u" && le.setDraggable(n), s && N(google.maps.event.addListener(le, "dblclick", s)), u && I(google.maps.event.addListener(le, "dragend", u)), l && _(google.maps.event.addListener(le, "dragstart", l)), c && T(google.maps.event.addListener(le, "mousedown", c)), p && H(google.maps.event.addListener(le, "mousemove", p)), d && m(google.maps.event.addListener(le, "mouseout", d)), h && P(google.maps.event.addListener(le, "mouseover", h)), y && G(google.maps.event.addListener(le, "mouseup", y)), v && he(google.maps.event.addListener(le, "rightclick", v)), f && Ce(google.maps.event.addListener(le, "click", f)), C && Ie(google.maps.event.addListener(le, "drag", C)), M(le), w && w(le), function() {
|
3567
|
+
F !== null && google.maps.event.removeListener(F), R !== null && google.maps.event.removeListener(R), J !== null && google.maps.event.removeListener(J), ae !== null && google.maps.event.removeListener(ae), Z !== null && google.maps.event.removeListener(Z), X !== null && google.maps.event.removeListener(X), W !== null && google.maps.event.removeListener(W), ie !== null && google.maps.event.removeListener(ie), se !== null && google.maps.event.removeListener(se), De !== null && google.maps.event.removeListener(De), b && b(le), le.setMap(null);
|
3568
3568
|
};
|
3569
3569
|
}, []), null;
|
3570
3570
|
}
|
@@ -3640,7 +3640,7 @@ var xo = {
|
|
3640
3640
|
}
|
3641
3641
|
};
|
3642
3642
|
function Ad(t) {
|
3643
|
-
var e = t.options, n = t.bounds, r = t.draggable, i = t.editable, a = t.visible, o = t.onDblClick, s = t.onDragEnd, u = t.onDragStart, l = t.onMouseDown, c = t.onMouseMove, p = t.onMouseOut, d = t.onMouseOver, h = t.onMouseUp, y = t.onRightClick, v = t.onClick, f = t.onDrag, C = t.onBoundsChanged, w = t.onLoad, b = t.onUnmount, S = _e(Ae), D = $(null), E = D[0], A = D[1], M = $(null), V = M[0], F = M[1],
|
3643
|
+
var e = t.options, n = t.bounds, r = t.draggable, i = t.editable, a = t.visible, o = t.onDblClick, s = t.onDragEnd, u = t.onDragStart, l = t.onMouseDown, c = t.onMouseMove, p = t.onMouseOut, d = t.onMouseOver, h = t.onMouseUp, y = t.onRightClick, v = t.onClick, f = t.onDrag, C = t.onBoundsChanged, w = t.onLoad, b = t.onUnmount, S = _e(Ae), D = $(null), E = D[0], A = D[1], M = $(null), V = M[0], F = M[1], N = $(null), k = N[0], R = N[1], I = $(null), z = I[0], J = I[1], _ = $(null), te = _[0], ae = _[1], T = $(null), j = T[0], Z = T[1], H = $(null), ee = H[0], X = H[1], m = $(null), U = m[0], W = m[1], P = $(null), Q = P[0], ie = P[1], G = $(null), ce = G[0], se = G[1], he = $(null), ve = he[0], De = he[1], Ce = $(null), me = Ce[0], ge = Ce[1], Ie = $(null), le = Ie[0], Ne = Ie[1];
|
3644
3644
|
return B(function() {
|
3645
3645
|
E !== null && E.setMap(S);
|
3646
3646
|
}, [S]), B(function() {
|
@@ -3656,13 +3656,13 @@ function Ad(t) {
|
|
3656
3656
|
}, [E, n]), B(function() {
|
3657
3657
|
E && o && (V !== null && google.maps.event.removeListener(V), F(google.maps.event.addListener(E, "dblclick", o)));
|
3658
3658
|
}, [o]), B(function() {
|
3659
|
-
E && s && (k !== null && google.maps.event.removeListener(k),
|
3659
|
+
E && s && (k !== null && google.maps.event.removeListener(k), R(google.maps.event.addListener(E, "dragend", s)));
|
3660
3660
|
}, [s]), B(function() {
|
3661
3661
|
E && u && (z !== null && google.maps.event.removeListener(z), J(google.maps.event.addListener(E, "dragstart", u)));
|
3662
3662
|
}, [u]), B(function() {
|
3663
3663
|
E && l && (te !== null && google.maps.event.removeListener(te), ae(google.maps.event.addListener(E, "mousedown", l)));
|
3664
3664
|
}, [l]), B(function() {
|
3665
|
-
E && c && (
|
3665
|
+
E && c && (j !== null && google.maps.event.removeListener(j), Z(google.maps.event.addListener(E, "mousemove", c)));
|
3666
3666
|
}, [c]), B(function() {
|
3667
3667
|
E && p && (ee !== null && google.maps.event.removeListener(ee), X(google.maps.event.addListener(E, "mouseout", p)));
|
3668
3668
|
}, [p]), B(function() {
|
@@ -3679,8 +3679,8 @@ function Ad(t) {
|
|
3679
3679
|
E && C && (le !== null && google.maps.event.removeListener(le), Ne(google.maps.event.addListener(E, "bounds_changed", C)));
|
3680
3680
|
}, [C]), B(function() {
|
3681
3681
|
var pe = new google.maps.Rectangle(ye(ye({}, e || {}), { map: S }));
|
3682
|
-
return typeof a < "u" && pe.setVisible(a), typeof i < "u" && pe.setEditable(i), typeof r < "u" && pe.setDraggable(r), typeof n < "u" && pe.setBounds(n), o && F(google.maps.event.addListener(pe, "dblclick", o)), s &&
|
3683
|
-
V !== null && google.maps.event.removeListener(V), k !== null && google.maps.event.removeListener(k), z !== null && google.maps.event.removeListener(z), te !== null && google.maps.event.removeListener(te),
|
3682
|
+
return typeof a < "u" && pe.setVisible(a), typeof i < "u" && pe.setEditable(i), typeof r < "u" && pe.setDraggable(r), typeof n < "u" && pe.setBounds(n), o && F(google.maps.event.addListener(pe, "dblclick", o)), s && R(google.maps.event.addListener(pe, "dragend", s)), u && J(google.maps.event.addListener(pe, "dragstart", u)), l && ae(google.maps.event.addListener(pe, "mousedown", l)), c && Z(google.maps.event.addListener(pe, "mousemove", c)), p && X(google.maps.event.addListener(pe, "mouseout", p)), d && W(google.maps.event.addListener(pe, "mouseover", d)), h && ie(google.maps.event.addListener(pe, "mouseup", h)), y && se(google.maps.event.addListener(pe, "rightclick", y)), v && De(google.maps.event.addListener(pe, "click", v)), f && ge(google.maps.event.addListener(pe, "drag", f)), C && Ne(google.maps.event.addListener(pe, "bounds_changed", C)), A(pe), w && w(pe), function() {
|
3683
|
+
V !== null && google.maps.event.removeListener(V), k !== null && google.maps.event.removeListener(k), z !== null && google.maps.event.removeListener(z), te !== null && google.maps.event.removeListener(te), j !== null && google.maps.event.removeListener(j), ee !== null && google.maps.event.removeListener(ee), U !== null && google.maps.event.removeListener(U), Q !== null && google.maps.event.removeListener(Q), ce !== null && google.maps.event.removeListener(ce), ve !== null && google.maps.event.removeListener(ve), me !== null && google.maps.event.removeListener(me), le !== null && google.maps.event.removeListener(le), b && b(pe), pe.setMap(null);
|
3684
3684
|
};
|
3685
3685
|
}, []), null;
|
3686
3686
|
}
|
@@ -3760,7 +3760,7 @@ var Ao = {
|
|
3760
3760
|
}
|
3761
3761
|
}, Od = {};
|
3762
3762
|
function Sd(t) {
|
3763
|
-
var e = t.options, n = t.center, r = t.radius, i = t.draggable, a = t.editable, o = t.visible, s = t.onDblClick, u = t.onDragEnd, l = t.onDragStart, c = t.onMouseDown, p = t.onMouseMove, d = t.onMouseOut, h = t.onMouseOver, y = t.onMouseUp, v = t.onRightClick, f = t.onClick, C = t.onDrag, w = t.onCenterChanged, b = t.onRadiusChanged, S = t.onLoad, D = t.onUnmount, E = _e(Ae), A = $(null), M = A[0], V = A[1], F = $(null),
|
3763
|
+
var e = t.options, n = t.center, r = t.radius, i = t.draggable, a = t.editable, o = t.visible, s = t.onDblClick, u = t.onDragEnd, l = t.onDragStart, c = t.onMouseDown, p = t.onMouseMove, d = t.onMouseOut, h = t.onMouseOver, y = t.onMouseUp, v = t.onRightClick, f = t.onClick, C = t.onDrag, w = t.onCenterChanged, b = t.onRadiusChanged, S = t.onLoad, D = t.onUnmount, E = _e(Ae), A = $(null), M = A[0], V = A[1], F = $(null), N = F[0], k = F[1], R = $(null), I = R[0], z = R[1], J = $(null), _ = J[0], te = J[1], ae = $(null), T = ae[0], j = ae[1], Z = $(null), H = Z[0], ee = Z[1], X = $(null), m = X[0], U = X[1], W = $(null), P = W[0], Q = W[1], ie = $(null), G = ie[0], ce = ie[1], se = $(null), he = se[0], ve = se[1], De = $(null), Ce = De[0], me = De[1], ge = $(null), Ie = ge[0], le = ge[1], Ne = $(null), pe = Ne[0], Be = Ne[1], Me = $(null), We = Me[0], Ye = Me[1];
|
3764
3764
|
return B(function() {
|
3765
3765
|
M !== null && M.setMap(E);
|
3766
3766
|
}, [E]), B(function() {
|
@@ -3776,13 +3776,13 @@ function Sd(t) {
|
|
3776
3776
|
}, [M, r]), B(function() {
|
3777
3777
|
typeof n < "u" && M !== null && M.setCenter(n);
|
3778
3778
|
}, [M, n]), B(function() {
|
3779
|
-
M && s && (
|
3779
|
+
M && s && (N !== null && google.maps.event.removeListener(N), k(google.maps.event.addListener(M, "dblclick", s)));
|
3780
3780
|
}, [s]), B(function() {
|
3781
|
-
M && u && (
|
3781
|
+
M && u && (I !== null && google.maps.event.removeListener(I), z(google.maps.event.addListener(M, "dragend", u)));
|
3782
3782
|
}, [u]), B(function() {
|
3783
3783
|
M && l && (_ !== null && google.maps.event.removeListener(_), te(google.maps.event.addListener(M, "dragstart", l)));
|
3784
3784
|
}, [l]), B(function() {
|
3785
|
-
M && c && (T !== null && google.maps.event.removeListener(T),
|
3785
|
+
M && c && (T !== null && google.maps.event.removeListener(T), j(google.maps.event.addListener(M, "mousedown", c)));
|
3786
3786
|
}, [c]), B(function() {
|
3787
3787
|
M && p && (H !== null && google.maps.event.removeListener(H), ee(google.maps.event.addListener(M, "mousemove", p)));
|
3788
3788
|
}, [p]), B(function() {
|
@@ -3803,8 +3803,8 @@ function Sd(t) {
|
|
3803
3803
|
M && b && (We !== null && google.maps.event.removeListener(We), Ye(google.maps.event.addListener(M, "radius_changed", b)));
|
3804
3804
|
}, [b]), B(function() {
|
3805
3805
|
var we = new google.maps.Circle(ye(ye({}, e || Od), { map: E }));
|
3806
|
-
return typeof r == "number" && we.setRadius(r), typeof n < "u" && we.setCenter(n), typeof r == "number" && we.setRadius(r), typeof o < "u" && we.setVisible(o), typeof a < "u" && we.setEditable(a), typeof i < "u" && we.setDraggable(i), s && k(google.maps.event.addListener(we, "dblclick", s)), u && z(google.maps.event.addListener(we, "dragend", u)), l && te(google.maps.event.addListener(we, "dragstart", l)), c &&
|
3807
|
-
|
3806
|
+
return typeof r == "number" && we.setRadius(r), typeof n < "u" && we.setCenter(n), typeof r == "number" && we.setRadius(r), typeof o < "u" && we.setVisible(o), typeof a < "u" && we.setEditable(a), typeof i < "u" && we.setDraggable(i), s && k(google.maps.event.addListener(we, "dblclick", s)), u && z(google.maps.event.addListener(we, "dragend", u)), l && te(google.maps.event.addListener(we, "dragstart", l)), c && j(google.maps.event.addListener(we, "mousedown", c)), p && ee(google.maps.event.addListener(we, "mousemove", p)), d && U(google.maps.event.addListener(we, "mouseout", d)), h && Q(google.maps.event.addListener(we, "mouseover", h)), y && ce(google.maps.event.addListener(we, "mouseup", y)), v && ve(google.maps.event.addListener(we, "rightclick", v)), f && me(google.maps.event.addListener(we, "click", f)), C && le(google.maps.event.addListener(we, "drag", C)), w && Be(google.maps.event.addListener(we, "center_changed", w)), b && Ye(google.maps.event.addListener(we, "radius_changed", b)), V(we), S && S(we), function() {
|
3807
|
+
N !== null && google.maps.event.removeListener(N), I !== null && google.maps.event.removeListener(I), _ !== null && google.maps.event.removeListener(_), T !== null && google.maps.event.removeListener(T), H !== null && google.maps.event.removeListener(H), m !== null && google.maps.event.removeListener(m), P !== null && google.maps.event.removeListener(P), G !== null && google.maps.event.removeListener(G), he !== null && google.maps.event.removeListener(he), Ce !== null && google.maps.event.removeListener(Ce), pe !== null && google.maps.event.removeListener(pe), We !== null && google.maps.event.removeListener(We), D && D(we), we.setMap(null);
|
3808
3808
|
};
|
3809
3809
|
}, []), null;
|
3810
3810
|
}
|
@@ -3905,7 +3905,7 @@ var So = {
|
|
3905
3905
|
}
|
3906
3906
|
};
|
3907
3907
|
function Fd(t) {
|
3908
|
-
var e = t.options, n = t.onClick, r = t.onDblClick, i = t.onMouseDown, a = t.onMouseMove, o = t.onMouseOut, s = t.onMouseOver, u = t.onMouseUp, l = t.onRightClick, c = t.onAddFeature, p = t.onRemoveFeature, d = t.onRemoveProperty, h = t.onSetGeometry, y = t.onSetProperty, v = t.onLoad, f = t.onUnmount, C = _e(Ae), w = $(null), b = w[0], S = w[1], D = $(null), E = D[0], A = D[1], M = $(null), V = M[0], F = M[1],
|
3908
|
+
var e = t.options, n = t.onClick, r = t.onDblClick, i = t.onMouseDown, a = t.onMouseMove, o = t.onMouseOut, s = t.onMouseOver, u = t.onMouseUp, l = t.onRightClick, c = t.onAddFeature, p = t.onRemoveFeature, d = t.onRemoveProperty, h = t.onSetGeometry, y = t.onSetProperty, v = t.onLoad, f = t.onUnmount, C = _e(Ae), w = $(null), b = w[0], S = w[1], D = $(null), E = D[0], A = D[1], M = $(null), V = M[0], F = M[1], N = $(null), k = N[0], R = N[1], I = $(null), z = I[0], J = I[1], _ = $(null), te = _[0], ae = _[1], T = $(null), j = T[0], Z = T[1], H = $(null), ee = H[0], X = H[1], m = $(null), U = m[0], W = m[1], P = $(null), Q = P[0], ie = P[1], G = $(null), ce = G[0], se = G[1], he = $(null), ve = he[0], De = he[1], Ce = $(null), me = Ce[0], ge = Ce[1], Ie = $(null), le = Ie[0], Ne = Ie[1];
|
3909
3909
|
return B(function() {
|
3910
3910
|
b !== null && b.setMap(C);
|
3911
3911
|
}, [C]), B(function() {
|
@@ -3913,13 +3913,13 @@ function Fd(t) {
|
|
3913
3913
|
}, [r]), B(function() {
|
3914
3914
|
b && i && (V !== null && google.maps.event.removeListener(V), F(google.maps.event.addListener(b, "mousedown", i)));
|
3915
3915
|
}, [i]), B(function() {
|
3916
|
-
b && a && (k !== null && google.maps.event.removeListener(k),
|
3916
|
+
b && a && (k !== null && google.maps.event.removeListener(k), R(google.maps.event.addListener(b, "mousemove", a)));
|
3917
3917
|
}, [a]), B(function() {
|
3918
3918
|
b && o && (z !== null && google.maps.event.removeListener(z), J(google.maps.event.addListener(b, "mouseout", o)));
|
3919
3919
|
}, [o]), B(function() {
|
3920
3920
|
b && s && (te !== null && google.maps.event.removeListener(te), ae(google.maps.event.addListener(b, "mouseover", s)));
|
3921
3921
|
}, [s]), B(function() {
|
3922
|
-
b && u && (
|
3922
|
+
b && u && (j !== null && google.maps.event.removeListener(j), Z(google.maps.event.addListener(b, "mouseup", u)));
|
3923
3923
|
}, [u]), B(function() {
|
3924
3924
|
b && l && (ee !== null && google.maps.event.removeListener(ee), X(google.maps.event.addListener(b, "rightclick", l)));
|
3925
3925
|
}, [l]), B(function() {
|
@@ -3937,10 +3937,10 @@ function Fd(t) {
|
|
3937
3937
|
}, [y]), B(function() {
|
3938
3938
|
if (C !== null) {
|
3939
3939
|
var pe = new google.maps.Data(ye(ye({}, e || {}), { map: C }));
|
3940
|
-
r && A(google.maps.event.addListener(pe, "dblclick", r)), i && F(google.maps.event.addListener(pe, "mousedown", i)), a &&
|
3940
|
+
r && A(google.maps.event.addListener(pe, "dblclick", r)), i && F(google.maps.event.addListener(pe, "mousedown", i)), a && R(google.maps.event.addListener(pe, "mousemove", a)), o && J(google.maps.event.addListener(pe, "mouseout", o)), s && ae(google.maps.event.addListener(pe, "mouseover", s)), u && Z(google.maps.event.addListener(pe, "mouseup", u)), l && X(google.maps.event.addListener(pe, "rightclick", l)), n && W(google.maps.event.addListener(pe, "click", n)), c && ie(google.maps.event.addListener(pe, "addfeature", c)), p && se(google.maps.event.addListener(pe, "removefeature", p)), d && De(google.maps.event.addListener(pe, "removeproperty", d)), h && ge(google.maps.event.addListener(pe, "setgeometry", h)), y && Ne(google.maps.event.addListener(pe, "setproperty", y)), S(pe), v && v(pe);
|
3941
3941
|
}
|
3942
3942
|
return function() {
|
3943
|
-
b && (E !== null && google.maps.event.removeListener(E), V !== null && google.maps.event.removeListener(V), k !== null && google.maps.event.removeListener(k), z !== null && google.maps.event.removeListener(z), te !== null && google.maps.event.removeListener(te),
|
3943
|
+
b && (E !== null && google.maps.event.removeListener(E), V !== null && google.maps.event.removeListener(V), k !== null && google.maps.event.removeListener(k), z !== null && google.maps.event.removeListener(z), te !== null && google.maps.event.removeListener(te), j !== null && google.maps.event.removeListener(j), ee !== null && google.maps.event.removeListener(ee), U !== null && google.maps.event.removeListener(U), Q !== null && google.maps.event.removeListener(Q), ce !== null && google.maps.event.removeListener(ce), ve !== null && google.maps.event.removeListener(ve), me !== null && google.maps.event.removeListener(me), le !== null && google.maps.event.removeListener(le), f && f(b), b.setMap(null));
|
3944
3944
|
};
|
3945
3945
|
}, []), null;
|
3946
3946
|
}
|
@@ -4848,18 +4848,18 @@ function Hd(t, e) {
|
|
4848
4848
|
onChange: w,
|
4849
4849
|
...b
|
4850
4850
|
} = t;
|
4851
|
-
function S(
|
4852
|
-
let z = ba(
|
4851
|
+
function S(I) {
|
4852
|
+
let z = ba(I);
|
4853
4853
|
const J = El(z);
|
4854
4854
|
if (!(z.length > wl))
|
4855
4855
|
return z = bl(z, Ea[J]), z;
|
4856
4856
|
}
|
4857
|
-
const D = c ? "right" : "left",
|
4857
|
+
const D = c ? "right" : "left", N = `arkyn_input ${s ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${o} ${i} ${p || h || n ? "opacity" : ""} ${r ? "errored" : ""} ${e ? "focused" : ""} ${a}`, R = { md: 20, lg: 20 }[i];
|
4858
4858
|
return {
|
4859
4859
|
isLoading: n,
|
4860
|
-
className:
|
4861
|
-
prefix: sn(s,
|
4862
|
-
sufix: sn(u,
|
4860
|
+
className: N,
|
4861
|
+
prefix: sn(s, R, "prefix"),
|
4862
|
+
sufix: sn(u, R, "sufix"),
|
4863
4863
|
LeftIcon: l,
|
4864
4864
|
RightIcon: c,
|
4865
4865
|
defaultValue: S(d || ""),
|
@@ -4871,8 +4871,8 @@ function Hd(t, e) {
|
|
4871
4871
|
style: C,
|
4872
4872
|
onChange: w,
|
4873
4873
|
loadingPosition: D,
|
4874
|
-
iconSize:
|
4875
|
-
Spinner: /* @__PURE__ */ x.jsx(Ln, { className: "spinner", size:
|
4874
|
+
iconSize: R,
|
4875
|
+
Spinner: /* @__PURE__ */ x.jsx(Ln, { className: "spinner", size: R, strokeWidth: 2.5 }),
|
4876
4876
|
...b
|
4877
4877
|
};
|
4878
4878
|
}
|
@@ -4896,20 +4896,20 @@ function Vd(t) {
|
|
4896
4896
|
onChange: M,
|
4897
4897
|
value: V,
|
4898
4898
|
defaultValue: F,
|
4899
|
-
...
|
4900
|
-
} = Hd({ ...t, id: a, isError: u }, e), [k,
|
4899
|
+
...N
|
4900
|
+
} = Hd({ ...t, id: a, isError: u }, e), [k, R] = $(F), I = w && !C, z = E && !C, J = f === "left" && C, _ = f === "right" && C;
|
4901
4901
|
function te() {
|
4902
4902
|
l || !(s != null && s.current) || (n(!0), s.current.focus());
|
4903
4903
|
}
|
4904
4904
|
function ae(Z) {
|
4905
4905
|
let H = ba(Z.target.value);
|
4906
4906
|
const ee = El(H);
|
4907
|
-
H.length > wl || (H = bl(H, Ea[ee]), Z.target.value = H,
|
4907
|
+
H.length > wl || (H = bl(H, Ea[ee]), Z.target.value = H, R(H), M && M(Z));
|
4908
4908
|
}
|
4909
4909
|
function T(Z) {
|
4910
4910
|
n(!0), S && S(Z);
|
4911
4911
|
}
|
4912
|
-
function
|
4912
|
+
function j(Z) {
|
4913
4913
|
n(!1), D && D(Z);
|
4914
4914
|
}
|
4915
4915
|
return /* @__PURE__ */ x.jsxs(
|
@@ -4922,7 +4922,7 @@ function Vd(t) {
|
|
4922
4922
|
children: [
|
4923
4923
|
h,
|
4924
4924
|
J && A,
|
4925
|
-
|
4925
|
+
I && /* @__PURE__ */ x.jsx(w, { size: v, strokeWidth: 2.5 }),
|
4926
4926
|
/* @__PURE__ */ x.jsx(
|
4927
4927
|
"input",
|
4928
4928
|
{
|
@@ -4932,8 +4932,8 @@ function Vd(t) {
|
|
4932
4932
|
value: V || k,
|
4933
4933
|
onFocus: T,
|
4934
4934
|
onChange: ae,
|
4935
|
-
onBlur:
|
4936
|
-
...
|
4935
|
+
onBlur: j,
|
4936
|
+
...N
|
4937
4937
|
}
|
4938
4938
|
),
|
4939
4939
|
z && /* @__PURE__ */ x.jsx(E, { size: v, strokeWidth: 2.5 }),
|
@@ -4979,12 +4979,12 @@ function Gd(t, e) {
|
|
4979
4979
|
locale: w = "pt-BR",
|
4980
4980
|
currency: b = "BRL",
|
4981
4981
|
...S
|
4982
|
-
} = t, D = c ? "right" : "left",
|
4982
|
+
} = t, D = c ? "right" : "left", N = `arkyn_input ${s ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${o} ${i} ${p || d || n ? "opacity" : ""} ${r ? "errored" : ""} ${e ? "focused" : ""} ${a}`, R = { md: 20, lg: 20 }[i];
|
4983
4983
|
return {
|
4984
4984
|
isLoading: n,
|
4985
|
-
className:
|
4986
|
-
prefix: sn(s,
|
4987
|
-
sufix: sn(u,
|
4985
|
+
className: N,
|
4986
|
+
prefix: sn(s, R, "prefix"),
|
4987
|
+
sufix: sn(u, R, "sufix"),
|
4988
4988
|
LeftIcon: l,
|
4989
4989
|
RightIcon: c,
|
4990
4990
|
disabled: p,
|
@@ -4998,8 +4998,8 @@ function Gd(t, e) {
|
|
4998
4998
|
max: C,
|
4999
4999
|
// showCents,
|
5000
5000
|
loadingPosition: D,
|
5001
|
-
iconSize:
|
5002
|
-
Spinner: /* @__PURE__ */ x.jsx(Ln, { className: "spinner", size:
|
5001
|
+
iconSize: R,
|
5002
|
+
Spinner: /* @__PURE__ */ x.jsx(Ln, { className: "spinner", size: R, strokeWidth: 2.5 }),
|
5003
5003
|
...S
|
5004
5004
|
};
|
5005
5005
|
}
|
@@ -5021,15 +5021,15 @@ function Yd(t) {
|
|
5021
5021
|
RightIcon: M,
|
5022
5022
|
Spinner: V,
|
5023
5023
|
value: F,
|
5024
|
-
max:
|
5024
|
+
max: N,
|
5025
5025
|
onChangeValue: k,
|
5026
|
-
onKeyPress:
|
5027
|
-
currency:
|
5026
|
+
onKeyPress: R,
|
5027
|
+
currency: I,
|
5028
5028
|
locale: z,
|
5029
5029
|
name: J,
|
5030
5030
|
defaultValue: _,
|
5031
5031
|
...te
|
5032
|
-
} = Gd({ ...t, id: s, isError: c }, e), ae = S && !b, T = M && !b,
|
5032
|
+
} = Gd({ ...t, id: s, isError: c }, e), ae = S && !b, T = M && !b, j = w === "left" && b, Z = w === "right" && b;
|
5033
5033
|
function H() {
|
5034
5034
|
p || !(l != null && l.current) || (n(!0), l.current.focus());
|
5035
5035
|
}
|
@@ -5043,18 +5043,18 @@ function Yd(t) {
|
|
5043
5043
|
const [Q, ie] = Go(
|
5044
5044
|
z,
|
5045
5045
|
P,
|
5046
|
-
|
5046
|
+
I
|
5047
5047
|
);
|
5048
|
-
return !
|
5048
|
+
return !N || Q <= N ? (i(ie), [Q, ie]) : [Yi(r), r];
|
5049
5049
|
}, U = (P) => {
|
5050
5050
|
P.preventDefault();
|
5051
5051
|
const [Q, ie] = m(P.target.value);
|
5052
5052
|
k(P, String(Q), String(ie));
|
5053
|
-
}, W = (P) =>
|
5053
|
+
}, W = (P) => R && R(P, P.key, P.key);
|
5054
5054
|
return B(() => {
|
5055
|
-
const P = F || +_ || void 0, [, Q] = Go(z, P,
|
5055
|
+
const P = F || +_ || void 0, [, Q] = Go(z, P, I);
|
5056
5056
|
i(Q);
|
5057
|
-
}, [
|
5057
|
+
}, [I, _, F]), /* @__PURE__ */ x.jsxs(
|
5058
5058
|
"section",
|
5059
5059
|
{
|
5060
5060
|
title: d,
|
@@ -5063,7 +5063,7 @@ function Yd(t) {
|
|
5063
5063
|
className: y,
|
5064
5064
|
children: [
|
5065
5065
|
v,
|
5066
|
-
|
5066
|
+
j && V,
|
5067
5067
|
ae && /* @__PURE__ */ x.jsx(S, { size: C, strokeWidth: 2.5 }),
|
5068
5068
|
/* @__PURE__ */ x.jsx(
|
5069
5069
|
"input",
|
@@ -5115,12 +5115,12 @@ function Kd(t, e) {
|
|
5115
5115
|
showMask: w = !1,
|
5116
5116
|
type: b,
|
5117
5117
|
...S
|
5118
|
-
} = t, D = c ? "right" : "left",
|
5118
|
+
} = t, D = c ? "right" : "left", N = `arkyn_input ${s ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${o} ${i} ${p || d || n ? "opacity" : ""} ${r ? "errored" : ""} ${e ? "focused" : ""} ${a}`, R = { md: 20, lg: 20 }[i];
|
5119
5119
|
return {
|
5120
5120
|
isLoading: n,
|
5121
|
-
className:
|
5122
|
-
prefix: sn(s,
|
5123
|
-
sufix: sn(u,
|
5121
|
+
className: N,
|
5122
|
+
prefix: sn(s, R, "prefix"),
|
5123
|
+
sufix: sn(u, R, "sufix"),
|
5124
5124
|
LeftIcon: l,
|
5125
5125
|
RightIcon: c,
|
5126
5126
|
disabled: p,
|
@@ -5131,9 +5131,9 @@ function Kd(t, e) {
|
|
5131
5131
|
style: f,
|
5132
5132
|
onChange: C,
|
5133
5133
|
loadingPosition: D,
|
5134
|
-
iconSize:
|
5134
|
+
iconSize: R,
|
5135
5135
|
showMask: w,
|
5136
|
-
Spinner: /* @__PURE__ */ x.jsx(Ln, { className: "spinner", size:
|
5136
|
+
Spinner: /* @__PURE__ */ x.jsx(Ln, { className: "spinner", size: R, strokeWidth: 2.5 }),
|
5137
5137
|
...S
|
5138
5138
|
};
|
5139
5139
|
}
|
@@ -5156,11 +5156,11 @@ function Jd(t) {
|
|
5156
5156
|
RightIcon: E,
|
5157
5157
|
Spinner: A,
|
5158
5158
|
...M
|
5159
|
-
} = Kd({ ...t, id: a, isError: u }, e), V = w && !C, F = E && !C,
|
5160
|
-
function
|
5159
|
+
} = Kd({ ...t, id: a, isError: u }, e), V = w && !C, F = E && !C, N = f === "left" && C, k = f === "right" && C;
|
5160
|
+
function R() {
|
5161
5161
|
l || !(s != null && s.current) || (n(!0), s.current.focus());
|
5162
5162
|
}
|
5163
|
-
function
|
5163
|
+
function I(J) {
|
5164
5164
|
n(!0), S && S(J);
|
5165
5165
|
}
|
5166
5166
|
function z(J) {
|
@@ -5171,18 +5171,18 @@ function Jd(t) {
|
|
5171
5171
|
{
|
5172
5172
|
title: c,
|
5173
5173
|
style: p,
|
5174
|
-
onClick:
|
5174
|
+
onClick: R,
|
5175
5175
|
className: d,
|
5176
5176
|
children: [
|
5177
5177
|
h,
|
5178
|
-
|
5178
|
+
N && A,
|
5179
5179
|
V && /* @__PURE__ */ x.jsx(w, { size: v, strokeWidth: 2.5 }),
|
5180
5180
|
/* @__PURE__ */ x.jsx(
|
5181
5181
|
mf,
|
5182
5182
|
{
|
5183
5183
|
component: Xd,
|
5184
5184
|
ref: s,
|
5185
|
-
onFocus:
|
5185
|
+
onFocus: I,
|
5186
5186
|
onBlur: z,
|
5187
5187
|
disabled: l,
|
5188
5188
|
...M
|
@@ -5214,12 +5214,12 @@ function Qd(t, e) {
|
|
5214
5214
|
style: f,
|
5215
5215
|
onChange: C,
|
5216
5216
|
...w
|
5217
|
-
} = t, b = c ? "right" : "left", V = `arkyn_input ${s ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${o} ${i} ${p || d || n ? "opacity" : ""} ${r ? "errored" : ""} ${e ? "focused" : ""} ${a}`,
|
5217
|
+
} = t, b = c ? "right" : "left", V = `arkyn_input ${s ? "hasPrefix" : ""} ${u ? "hasSufix" : ""} ${o} ${i} ${p || d || n ? "opacity" : ""} ${r ? "errored" : ""} ${e ? "focused" : ""} ${a}`, N = { md: 20, lg: 20 }[i];
|
5218
5218
|
return {
|
5219
5219
|
isLoading: n,
|
5220
5220
|
className: V,
|
5221
|
-
prefix: sn(s,
|
5222
|
-
sufix: sn(u,
|
5221
|
+
prefix: sn(s, N, "prefix"),
|
5222
|
+
sufix: sn(u, N, "sufix"),
|
5223
5223
|
LeftIcon: l,
|
5224
5224
|
RightIcon: c,
|
5225
5225
|
disabled: p,
|
@@ -5230,8 +5230,8 @@ function Qd(t, e) {
|
|
5230
5230
|
style: f,
|
5231
5231
|
onChange: C,
|
5232
5232
|
loadingPosition: b,
|
5233
|
-
iconSize:
|
5234
|
-
Spinner: /* @__PURE__ */ x.jsx(Ln, { className: "spinner", size:
|
5233
|
+
iconSize: N,
|
5234
|
+
Spinner: /* @__PURE__ */ x.jsx(Ln, { className: "spinner", size: N, strokeWidth: 2.5 }),
|
5235
5235
|
...w
|
5236
5236
|
};
|
5237
5237
|
}
|
@@ -5254,8 +5254,8 @@ function ep(t) {
|
|
5254
5254
|
type: A,
|
5255
5255
|
Spinner: M,
|
5256
5256
|
...V
|
5257
|
-
} = Qd({ ...t, id: a, isError: u }, e), F = w && !C,
|
5258
|
-
function
|
5257
|
+
} = Qd({ ...t, id: a, isError: u }, e), F = w && !C, N = E && !C, k = f === "left" && C, R = f === "right" && C;
|
5258
|
+
function I() {
|
5259
5259
|
l || !(s != null && s.current) || (n(!0), s.current.focus());
|
5260
5260
|
}
|
5261
5261
|
function z(_) {
|
@@ -5278,7 +5278,7 @@ function ep(t) {
|
|
5278
5278
|
{
|
5279
5279
|
title: c,
|
5280
5280
|
style: p,
|
5281
|
-
onClick:
|
5281
|
+
onClick: I,
|
5282
5282
|
className: d,
|
5283
5283
|
children: [
|
5284
5284
|
h,
|
@@ -5296,8 +5296,8 @@ function ep(t) {
|
|
5296
5296
|
...V
|
5297
5297
|
}
|
5298
5298
|
),
|
5299
|
-
|
5300
|
-
|
5299
|
+
N && /* @__PURE__ */ x.jsx(E, { size: v, strokeWidth: 2.5 }),
|
5300
|
+
R && M,
|
5301
5301
|
y
|
5302
5302
|
]
|
5303
5303
|
}
|
@@ -6359,10 +6359,10 @@ var wp = (t, e, n) => {
|
|
6359
6359
|
} = n;
|
6360
6360
|
if (O.isAncestor(V, F))
|
6361
6361
|
throw new Error("Cannot move a path [".concat(V, "] to new path [").concat(F, "] because the destination is inside itself."));
|
6362
|
-
var
|
6363
|
-
k.children.splice(
|
6364
|
-
var
|
6365
|
-
if (z.children.splice(J, 0,
|
6362
|
+
var N = oe.get(t, V), k = oe.parent(t, V), R = V[V.length - 1];
|
6363
|
+
k.children.splice(R, 1);
|
6364
|
+
var I = O.transform(V, n), z = oe.get(t, O.parent(I)), J = I[I.length - 1];
|
6365
|
+
if (z.children.splice(J, 0, N), e)
|
6366
6366
|
for (var [_, te] of q.points(e))
|
6367
6367
|
e[te] = Se.transform(_, n);
|
6368
6368
|
break;
|
@@ -6370,8 +6370,8 @@ var wp = (t, e, n) => {
|
|
6370
6370
|
case "remove_node": {
|
6371
6371
|
var {
|
6372
6372
|
path: ae
|
6373
|
-
} = n, T = ae[ae.length - 1],
|
6374
|
-
if (
|
6373
|
+
} = n, T = ae[ae.length - 1], j = oe.parent(t, ae);
|
6374
|
+
if (j.children.splice(T, 1), e)
|
6375
6375
|
for (var [Z, H] of q.points(e)) {
|
6376
6376
|
var ee = Se.transform(Z, n);
|
6377
6377
|
if (e != null && ee != null)
|
@@ -7651,8 +7651,8 @@ var uh = (t, e) => {
|
|
7651
7651
|
node: r,
|
7652
7652
|
path: i
|
7653
7653
|
} = e, a = O.levels(i), o = de.isText(r) ? [] : Array.from(oe.nodes(r), (F) => {
|
7654
|
-
var [,
|
7655
|
-
return i.concat(
|
7654
|
+
var [, N] = F;
|
7655
|
+
return i.concat(N);
|
7656
7656
|
});
|
7657
7657
|
return [...a, ...o];
|
7658
7658
|
}
|
@@ -8684,25 +8684,25 @@ var cv = (t, e) => {
|
|
8684
8684
|
F && S && O.isAncestor(S[1], F.path) && (w = F);
|
8685
8685
|
}
|
8686
8686
|
if (V) {
|
8687
|
-
var
|
8688
|
-
|
8687
|
+
var N = g.after(e, b);
|
8688
|
+
N && D && O.isAncestor(D[1], N.path) && (b = N);
|
8689
8689
|
}
|
8690
|
-
var k = [],
|
8691
|
-
for (var
|
8690
|
+
var k = [], R;
|
8691
|
+
for (var I of g.nodes(e, {
|
8692
8692
|
at: l,
|
8693
8693
|
voids: u
|
8694
8694
|
})) {
|
8695
|
-
var [z, J] =
|
8696
|
-
|
8695
|
+
var [z, J] = I;
|
8696
|
+
R && O.compare(J, R) === 0 || (!u && fe.isElement(z) && (g.isVoid(e, z) || g.isElementReadOnly(e, z)) || !O.isCommon(J, w.path) && !O.isCommon(J, b.path)) && (k.push(I), R = J);
|
8697
8697
|
}
|
8698
8698
|
var _ = Array.from(k, (se) => {
|
8699
8699
|
var [, he] = se;
|
8700
8700
|
return g.pathRef(e, he);
|
8701
8701
|
}), te = g.pointRef(e, w), ae = g.pointRef(e, b), T = "";
|
8702
8702
|
if (!A && !M) {
|
8703
|
-
var
|
8703
|
+
var j = te.current, [Z] = g.leaf(e, j), {
|
8704
8704
|
path: H
|
8705
|
-
} =
|
8705
|
+
} = j, {
|
8706
8706
|
offset: ee
|
8707
8707
|
} = w, X = Z.text.slice(ee);
|
8708
8708
|
X.length > 0 && (e.apply({
|
@@ -8801,20 +8801,20 @@ var cv = (t, e) => {
|
|
8801
8801
|
pass: M
|
8802
8802
|
}))
|
8803
8803
|
M(V) && A.push(V);
|
8804
|
-
var F = [],
|
8804
|
+
var F = [], N = [], k = [], R = !0, I = !1;
|
8805
8805
|
for (var [z] of A)
|
8806
|
-
fe.isElement(z) && !e.isInline(z) ? (
|
8806
|
+
fe.isElement(z) && !e.isInline(z) ? (R = !1, I = !0, N.push(z)) : R ? F.push(z) : k.push(z);
|
8807
8807
|
var [J] = g.nodes(e, {
|
8808
8808
|
at: o,
|
8809
8809
|
match: (X) => de.isText(X) || g.isInline(e, X),
|
8810
8810
|
mode: "highest",
|
8811
8811
|
voids: a
|
8812
|
-
}), [, _] = J, te = g.isStart(e, o, _), ae = g.isEnd(e, o, _), T = g.pathRef(e, C && !k.length ? O.next(v) : v),
|
8812
|
+
}), [, _] = J, te = g.isStart(e, o, _), ae = g.isEnd(e, o, _), T = g.pathRef(e, C && !k.length ? O.next(v) : v), j = g.pathRef(e, ae ? O.next(_) : _);
|
8813
8813
|
ne.splitNodes(e, {
|
8814
8814
|
at: o,
|
8815
|
-
match: (X) =>
|
8816
|
-
mode:
|
8817
|
-
always:
|
8815
|
+
match: (X) => I ? fe.isElement(X) && g.isBlock(e, X) : de.isText(X) || g.isInline(e, X),
|
8816
|
+
mode: I ? "lowest" : "highest",
|
8817
|
+
always: I && (!f || F.length > 0) && (!C || k.length > 0),
|
8818
8818
|
voids: a
|
8819
8819
|
});
|
8820
8820
|
var Z = g.pathRef(e, !te || te && ae ? O.next(_) : _);
|
@@ -8824,29 +8824,29 @@ var cv = (t, e) => {
|
|
8824
8824
|
mode: "highest",
|
8825
8825
|
voids: a,
|
8826
8826
|
batchDirty: s
|
8827
|
-
}), w && !F.length &&
|
8827
|
+
}), w && !F.length && N.length && !k.length && ne.delete(e, {
|
8828
8828
|
at: v,
|
8829
8829
|
voids: a
|
8830
|
-
}), ne.insertNodes(e,
|
8830
|
+
}), ne.insertNodes(e, N, {
|
8831
8831
|
at: T.current,
|
8832
8832
|
match: (X) => fe.isElement(X) && g.isBlock(e, X),
|
8833
8833
|
mode: "lowest",
|
8834
8834
|
voids: a,
|
8835
8835
|
batchDirty: s
|
8836
8836
|
}), ne.insertNodes(e, k, {
|
8837
|
-
at:
|
8837
|
+
at: j.current,
|
8838
8838
|
match: (X) => de.isText(X) || g.isInline(e, X),
|
8839
8839
|
mode: "highest",
|
8840
8840
|
voids: a,
|
8841
8841
|
batchDirty: s
|
8842
8842
|
}), !r.at) {
|
8843
8843
|
var H;
|
8844
|
-
if (k.length > 0 &&
|
8844
|
+
if (k.length > 0 && j.current ? H = O.previous(j.current) : N.length > 0 && T.current ? H = O.previous(T.current) : Z.current && (H = O.previous(Z.current)), H) {
|
8845
8845
|
var ee = g.end(e, H);
|
8846
8846
|
ne.select(e, ee);
|
8847
8847
|
}
|
8848
8848
|
}
|
8849
|
-
Z.unref(), T.unref(),
|
8849
|
+
Z.unref(), T.unref(), j.unref();
|
8850
8850
|
}
|
8851
8851
|
}
|
8852
8852
|
});
|
@@ -9029,27 +9029,27 @@ var wv = function(e, n) {
|
|
9029
9029
|
var D = [], E = O.levels(b);
|
9030
9030
|
sh(e, () => {
|
9031
9031
|
var F = function() {
|
9032
|
-
var
|
9032
|
+
var R = b.concat(S);
|
9033
9033
|
S++;
|
9034
|
-
var
|
9034
|
+
var I = {
|
9035
9035
|
type: "insert_node",
|
9036
|
-
path:
|
9037
|
-
node:
|
9036
|
+
path: R,
|
9037
|
+
node: N
|
9038
9038
|
};
|
9039
|
-
e.apply(
|
9039
|
+
e.apply(I), u = O.next(u), D.push(I), de.isText ? E.push(...Array.from(oe.nodes(N), (z) => {
|
9040
9040
|
var [, J] = z;
|
9041
|
-
return
|
9042
|
-
})) : E.push(
|
9041
|
+
return R.concat(J);
|
9042
|
+
})) : E.push(R);
|
9043
9043
|
};
|
9044
|
-
for (var
|
9044
|
+
for (var N of n)
|
9045
9045
|
F();
|
9046
9046
|
}, () => {
|
9047
9047
|
Il(e, E, (F) => {
|
9048
|
-
var
|
9048
|
+
var N = F;
|
9049
9049
|
for (var k of D)
|
9050
|
-
if (O.operationCanTransformPath(k) && (
|
9050
|
+
if (O.operationCanTransformPath(k) && (N = O.transform(N, k), !N))
|
9051
9051
|
return null;
|
9052
|
-
return
|
9052
|
+
return N;
|
9053
9053
|
});
|
9054
9054
|
});
|
9055
9055
|
} else
|
@@ -9183,8 +9183,8 @@ var wv = function(e, n) {
|
|
9183
9183
|
var C = O.next(f), w = O.common(y, f), b = O.isSibling(y, f), S = Array.from(g.levels(e, {
|
9184
9184
|
at: y
|
9185
9185
|
}), (F) => {
|
9186
|
-
var [
|
9187
|
-
return
|
9186
|
+
var [N] = F;
|
9187
|
+
return N;
|
9188
9188
|
}).slice(w.length).slice(0, -1), D = g.above(e, {
|
9189
9189
|
at: y,
|
9190
9190
|
mode: "highest",
|
@@ -9408,18 +9408,18 @@ var wv = function(e, n) {
|
|
9408
9408
|
}
|
9409
9409
|
h = g.pointRef(e, o);
|
9410
9410
|
var A = o.path.length - s, [, M] = y, V = o.path.slice(0, A), F = s === 0 ? o.offset : o.path[A] + f;
|
9411
|
-
for (var [
|
9411
|
+
for (var [N, k] of g.levels(e, {
|
9412
9412
|
at: V,
|
9413
9413
|
reverse: !0,
|
9414
9414
|
voids: i
|
9415
9415
|
})) {
|
9416
|
-
var
|
9417
|
-
if (k.length < M.length || k.length === 0 || !i && fe.isElement(
|
9416
|
+
var R = !1;
|
9417
|
+
if (k.length < M.length || k.length === 0 || !i && fe.isElement(N) && g.isVoid(e, N))
|
9418
9418
|
break;
|
9419
|
-
var
|
9420
|
-
if (u || !d || !g.isEdge(e,
|
9421
|
-
|
9422
|
-
var J = oe.extractProps(
|
9419
|
+
var I = d.current, z = g.isEnd(e, I, k);
|
9420
|
+
if (u || !d || !g.isEdge(e, I, k)) {
|
9421
|
+
R = !0;
|
9422
|
+
var J = oe.extractProps(N);
|
9423
9423
|
e.apply({
|
9424
9424
|
type: "split_node",
|
9425
9425
|
path: k,
|
@@ -9427,7 +9427,7 @@ var wv = function(e, n) {
|
|
9427
9427
|
properties: J
|
9428
9428
|
});
|
9429
9429
|
}
|
9430
|
-
F = k[k.length - 1] + (
|
9430
|
+
F = k[k.length - 1] + (R || z ? 1 : 0);
|
9431
9431
|
}
|
9432
9432
|
if (n.at == null) {
|
9433
9433
|
var _ = h.current || g.end(e, []);
|
@@ -9553,15 +9553,15 @@ var Iv = function(e, n) {
|
|
9553
9553
|
var [b] = w, S = w[w.length - 1], [, D] = b, [, E] = S;
|
9554
9554
|
if (D.length === 0 && E.length === 0)
|
9555
9555
|
return 0;
|
9556
|
-
var A = O.equals(D, E) ? O.parent(D) : O.common(D, E), M = g.range(e, D, E), V = g.node(e, A), [F] = V,
|
9556
|
+
var A = O.equals(D, E) ? O.parent(D) : O.common(D, E), M = g.range(e, D, E), V = g.node(e, A), [F] = V, N = A.length + 1, k = O.next(E.slice(0, N)), R = ks(ks({}, n), {}, {
|
9557
9557
|
children: []
|
9558
9558
|
});
|
9559
|
-
ne.insertNodes(e,
|
9559
|
+
ne.insertNodes(e, R, {
|
9560
9560
|
at: k,
|
9561
9561
|
voids: o
|
9562
9562
|
}), ne.moveNodes(e, {
|
9563
9563
|
at: M,
|
9564
|
-
match: (
|
9564
|
+
match: (I) => fe.isAncestor(F) && F.children.includes(I),
|
9565
9565
|
to: k.concat(0),
|
9566
9566
|
voids: o
|
9567
9567
|
});
|
@@ -10273,23 +10273,23 @@ const Jg = /* @__PURE__ */ ma(Xg), _s = (t) => typeof t == "object" && t != null
|
|
10273
10273
|
}
|
10274
10274
|
y != null && y === document.body && xi(y) && !xi(document.documentElement) || y != null && xi(y, c) && h.push(y);
|
10275
10275
|
}
|
10276
|
-
const v = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, f = (a = (i = window.visualViewport) == null ? void 0 : i.height) != null ? a : innerHeight, { scrollX: C, scrollY: w } = window, { height: b, width: S, top: D, right: E, bottom: A, left: M } = t.getBoundingClientRect(), { top: V, right: F, bottom:
|
10276
|
+
const v = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, f = (a = (i = window.visualViewport) == null ? void 0 : i.height) != null ? a : innerHeight, { scrollX: C, scrollY: w } = window, { height: b, width: S, top: D, right: E, bottom: A, left: M } = t.getBoundingClientRect(), { top: V, right: F, bottom: N, left: k } = ((J) => {
|
10277
10277
|
const _ = window.getComputedStyle(J);
|
10278
10278
|
return { top: parseFloat(_.scrollMarginTop) || 0, right: parseFloat(_.scrollMarginRight) || 0, bottom: parseFloat(_.scrollMarginBottom) || 0, left: parseFloat(_.scrollMarginLeft) || 0 };
|
10279
10279
|
})(t);
|
10280
|
-
let
|
10280
|
+
let R = s === "start" || s === "nearest" ? D - V : s === "end" ? A + N : D + b / 2 - V + N, I = u === "center" ? M + S / 2 - k + F : u === "end" ? E + F : M - k;
|
10281
10281
|
const z = [];
|
10282
10282
|
for (let J = 0; J < h.length; J++) {
|
10283
|
-
const _ = h[J], { height: te, width: ae, top: T, right:
|
10284
|
-
if (o === "if-needed" && D >= 0 && M >= 0 && A <= f && E <= v && D >= T && A <= Z && M >= H && E <=
|
10283
|
+
const _ = h[J], { height: te, width: ae, top: T, right: j, bottom: Z, left: H } = _.getBoundingClientRect();
|
10284
|
+
if (o === "if-needed" && D >= 0 && M >= 0 && A <= f && E <= v && D >= T && A <= Z && M >= H && E <= j) return z;
|
10285
10285
|
const ee = getComputedStyle(_), X = parseInt(ee.borderLeftWidth, 10), m = parseInt(ee.borderTopWidth, 10), U = parseInt(ee.borderRightWidth, 10), W = parseInt(ee.borderBottomWidth, 10);
|
10286
10286
|
let P = 0, Q = 0;
|
10287
10287
|
const ie = "offsetWidth" in _ ? _.offsetWidth - _.clientWidth - X - U : 0, G = "offsetHeight" in _ ? _.offsetHeight - _.clientHeight - m - W : 0, ce = "offsetWidth" in _ ? _.offsetWidth === 0 ? 0 : ae / _.offsetWidth : 0, se = "offsetHeight" in _ ? _.offsetHeight === 0 ? 0 : te / _.offsetHeight : 0;
|
10288
|
-
if (d === _) P = s === "start" ?
|
10288
|
+
if (d === _) P = s === "start" ? R : s === "end" ? R - f : s === "nearest" ? Ar(w, w + f, f, m, W, w + R, w + R + b, b) : R - f / 2, Q = u === "start" ? I : u === "center" ? I - v / 2 : u === "end" ? I - v : Ar(C, C + v, v, X, U, C + I, C + I + S, S), P = Math.max(0, P + w), Q = Math.max(0, Q + C);
|
10289
10289
|
else {
|
10290
|
-
P = s === "start" ?
|
10290
|
+
P = s === "start" ? R - T - m : s === "end" ? R - Z + W + G : s === "nearest" ? Ar(T, Z, te, m, W + G, R, R + b, b) : R - (T + te / 2) + G / 2, Q = u === "start" ? I - H - X : u === "center" ? I - (H + ae / 2) + ie / 2 : u === "end" ? I - j + U + ie : Ar(H, j, ae, X, U + ie, I, I + S, S);
|
10291
10291
|
const { scrollLeft: he, scrollTop: ve } = _;
|
10292
|
-
P = se === 0 ? 0 : Math.max(0, Math.min(ve + P / se, _.scrollHeight - te / se + G)), Q = ce === 0 ? 0 : Math.max(0, Math.min(he + Q / ce, _.scrollWidth - ae / ce + ie)),
|
10292
|
+
P = se === 0 ? 0 : Math.max(0, Math.min(ve + P / se, _.scrollHeight - te / se + G)), Q = ce === 0 ? 0 : Math.max(0, Math.min(he + Q / ce, _.scrollWidth - ae / ce + ie)), R += ve - P, I += he - Q;
|
10293
10293
|
}
|
10294
10294
|
z.push({ el: _, top: P, left: Q });
|
10295
10295
|
}
|
@@ -10393,9 +10393,9 @@ var bn = function(t) {
|
|
10393
10393
|
return Or.get(t);
|
10394
10394
|
if (Zl(t))
|
10395
10395
|
return Or.set(t, Zs), Zs;
|
10396
|
-
var n = getComputedStyle(t), r = Pa(t) && t.ownerSVGElement && t.getBBox(), i = !um && n.boxSizing === "border-box", a = sm.test(n.writingMode || ""), o = !r && qs.test(n.overflowY || ""), s = !r && qs.test(n.overflowX || ""), u = r ? 0 : It(n.paddingTop), l = r ? 0 : It(n.paddingRight), c = r ? 0 : It(n.paddingBottom), p = r ? 0 : It(n.paddingLeft), d = r ? 0 : It(n.borderTopWidth), h = r ? 0 : It(n.borderRightWidth), y = r ? 0 : It(n.borderBottomWidth), v = r ? 0 : It(n.borderLeftWidth), f = p + l, C = u + c, w = v + h, b = d + y, S = s ? t.offsetHeight - b - t.clientHeight : 0, D = o ? t.offsetWidth - w - t.clientWidth : 0, E = i ? f + w : 0, A = i ? C + b : 0, M = r ? r.width : It(n.width) - E - D, V = r ? r.height : It(n.height) - A - S, F = M + f + D + w,
|
10396
|
+
var n = getComputedStyle(t), r = Pa(t) && t.ownerSVGElement && t.getBBox(), i = !um && n.boxSizing === "border-box", a = sm.test(n.writingMode || ""), o = !r && qs.test(n.overflowY || ""), s = !r && qs.test(n.overflowX || ""), u = r ? 0 : It(n.paddingTop), l = r ? 0 : It(n.paddingRight), c = r ? 0 : It(n.paddingBottom), p = r ? 0 : It(n.paddingLeft), d = r ? 0 : It(n.borderTopWidth), h = r ? 0 : It(n.borderRightWidth), y = r ? 0 : It(n.borderBottomWidth), v = r ? 0 : It(n.borderLeftWidth), f = p + l, C = u + c, w = v + h, b = d + y, S = s ? t.offsetHeight - b - t.clientHeight : 0, D = o ? t.offsetWidth - w - t.clientWidth : 0, E = i ? f + w : 0, A = i ? C + b : 0, M = r ? r.width : It(n.width) - E - D, V = r ? r.height : It(n.height) - A - S, F = M + f + D + w, N = V + C + S + b, k = bn({
|
10397
10397
|
devicePixelContentBoxSize: Tn(Math.round(M * devicePixelRatio), Math.round(V * devicePixelRatio), a),
|
10398
|
-
borderBoxSize: Tn(F,
|
10398
|
+
borderBoxSize: Tn(F, N, a),
|
10399
10399
|
contentBoxSize: Tn(M, V, a),
|
10400
10400
|
contentRect: new ql(p, u, M, V)
|
10401
10401
|
});
|
@@ -10990,15 +10990,15 @@ var K = {
|
|
10990
10990
|
c -= H.textContent.length;
|
10991
10991
|
})) : c = 1;
|
10992
10992
|
} else if (C) {
|
10993
|
-
var
|
10993
|
+
var N = (H) => H ? H.querySelectorAll(
|
10994
10994
|
// Exclude leaf nodes in nested editors
|
10995
10995
|
"[data-slate-leaf]:not(:scope [data-slate-editor] [data-slate-leaf])"
|
10996
10996
|
) : [], k = C.closest('[data-slate-node="element"]');
|
10997
10997
|
if (a === "forward") {
|
10998
|
-
var
|
10999
|
-
w = (
|
10998
|
+
var R, I = [...N(k), ...N(k == null ? void 0 : k.nextElementSibling)];
|
10999
|
+
w = (R = I.find((H) => _m(C, H))) !== null && R !== void 0 ? R : null;
|
11000
11000
|
} else {
|
11001
|
-
var z, J = [...
|
11001
|
+
var z, J = [...N(k == null ? void 0 : k.previousElementSibling), ...N(k)];
|
11002
11002
|
w = (z = J.findLast((H) => eu(C, H))) !== null && z !== void 0 ? z : null;
|
11003
11003
|
}
|
11004
11004
|
w && (l = w.closest('[data-slate-node="text"]'), b = w, a === "forward" ? c = 0 : (c = b.textContent.length, b.querySelectorAll("[data-slate-zero-width]").forEach((H) => {
|
@@ -11039,7 +11039,7 @@ var K = {
|
|
11039
11039
|
return null;
|
11040
11040
|
throw new Error("Cannot resolve a Slate point from DOM point: ".concat(e));
|
11041
11041
|
}
|
11042
|
-
var
|
11042
|
+
var j = K.toSlateNode(t, l), Z = K.findPath(t, j);
|
11043
11043
|
return {
|
11044
11044
|
path: Z,
|
11045
11045
|
offset: c
|
@@ -11389,19 +11389,19 @@ function e0(t) {
|
|
11389
11389
|
var k = nn.get(e);
|
11390
11390
|
if (nn.delete(e), k) {
|
11391
11391
|
var {
|
11392
|
-
selection:
|
11393
|
-
} = e,
|
11394
|
-
|
11392
|
+
selection: R
|
11393
|
+
} = e, I = tu(e, k);
|
11394
|
+
I && (!R || !q.equals(I, R)) && ne.select(e, I);
|
11395
11395
|
}
|
11396
11396
|
}, p = () => {
|
11397
11397
|
var k = tn.get(e);
|
11398
11398
|
if (tn.delete(e), !!k) {
|
11399
11399
|
if (k.at) {
|
11400
|
-
var
|
11401
|
-
if (!
|
11400
|
+
var R = Se.isPoint(k.at) ? sa(e, k.at) : tu(e, k.at);
|
11401
|
+
if (!R)
|
11402
11402
|
return;
|
11403
|
-
var
|
11404
|
-
(!e.selection || !q.equals(e.selection,
|
11403
|
+
var I = g.range(e, R);
|
11404
|
+
(!e.selection || !q.equals(e.selection, I)) && ne.select(e, R);
|
11405
11405
|
}
|
11406
11406
|
k.run();
|
11407
11407
|
}
|
@@ -11415,23 +11415,23 @@ function e0(t) {
|
|
11415
11415
|
affinity: "forward"
|
11416
11416
|
});
|
11417
11417
|
Vt.set(e, e.marks), Jm("flush", tn.get(e), Et.get(e));
|
11418
|
-
for (var
|
11418
|
+
for (var R = S(), I; I = (z = Et.get(e)) === null || z === void 0 ? void 0 : z[0]; ) {
|
11419
11419
|
var z, J, _ = Rt.get(e);
|
11420
11420
|
_ !== void 0 && (Rt.delete(e), e.marks = _), _ && l === !1 && (l = null);
|
11421
|
-
var te = Gm(
|
11422
|
-
(!e.selection || !q.equals(e.selection, te)) && ne.select(e, te),
|
11421
|
+
var te = Gm(I);
|
11422
|
+
(!e.selection || !q.equals(e.selection, te)) && ne.select(e, te), I.diff.text ? g.insertText(e, I.diff.text) : g.deleteFragment(e), Et.set(e, (J = Et.get(e)) === null || J === void 0 ? void 0 : J.filter((j) => {
|
11423
11423
|
var {
|
11424
11424
|
id: Z
|
11425
|
-
} =
|
11426
|
-
return Z !==
|
11427
|
-
})), Hm(e,
|
11425
|
+
} = j;
|
11426
|
+
return Z !== I.id;
|
11427
|
+
})), Hm(e, I) || (R = !1, tn.delete(e), Vt.delete(e), i = "action", nn.delete(e), n.cancel(), r.cancel(), k == null || k.unref());
|
11428
11428
|
}
|
11429
11429
|
var ae = k == null ? void 0 : k.unref();
|
11430
11430
|
if (ae && !nn.get(e) && (!e.selection || !q.equals(ae, e.selection)) && ne.select(e, ae), b()) {
|
11431
11431
|
p();
|
11432
11432
|
return;
|
11433
11433
|
}
|
11434
|
-
|
11434
|
+
R && n(), n.flush(), r.flush(), c();
|
11435
11435
|
var T = Vt.get(e);
|
11436
11436
|
Vt.delete(e), T !== void 0 && (e.marks = T, e.onChange());
|
11437
11437
|
}, h = (k) => {
|
@@ -11441,28 +11441,28 @@ function e0(t) {
|
|
11441
11441
|
}, y = (k) => {
|
11442
11442
|
Cn.set(e, !0), a && (clearTimeout(a), a = null);
|
11443
11443
|
}, v = function() {
|
11444
|
-
var
|
11445
|
-
if (
|
11446
|
-
if (S() ||
|
11447
|
-
|
11444
|
+
var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, I = ra.get(e);
|
11445
|
+
if (I) {
|
11446
|
+
if (S() || R) {
|
11447
|
+
I.style.display = "none";
|
11448
11448
|
return;
|
11449
11449
|
}
|
11450
|
-
|
11450
|
+
I.style.removeProperty("display");
|
11451
11451
|
}
|
11452
|
-
}, f = (k,
|
11453
|
-
var
|
11452
|
+
}, f = (k, R) => {
|
11453
|
+
var I, z = (I = Et.get(e)) !== null && I !== void 0 ? I : [];
|
11454
11454
|
Et.set(e, z);
|
11455
11455
|
var J = oe.leaf(e, k), _ = z.findIndex((T) => O.equals(T.path, k));
|
11456
11456
|
if (_ < 0) {
|
11457
|
-
var te = lc(J.text,
|
11457
|
+
var te = lc(J.text, R);
|
11458
11458
|
te && z.push({
|
11459
11459
|
path: k,
|
11460
|
-
diff:
|
11460
|
+
diff: R,
|
11461
11461
|
id: u++
|
11462
11462
|
}), v();
|
11463
11463
|
return;
|
11464
11464
|
}
|
11465
|
-
var ae = Zm(J.text, z[_].diff,
|
11465
|
+
var ae = Zm(J.text, z[_].diff, R);
|
11466
11466
|
if (!ae) {
|
11467
11467
|
z.splice(_, 1), v();
|
11468
11468
|
return;
|
@@ -11470,21 +11470,21 @@ function e0(t) {
|
|
11470
11470
|
z[_] = Mr(Mr({}, z[_]), {}, {
|
11471
11471
|
diff: ae
|
11472
11472
|
});
|
11473
|
-
}, C = function(
|
11473
|
+
}, C = function(R) {
|
11474
11474
|
var {
|
11475
|
-
at:
|
11475
|
+
at: I
|
11476
11476
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
11477
11477
|
l = !1, nn.delete(e), n.cancel(), r.cancel(), b() && d(), tn.set(e, {
|
11478
|
-
at:
|
11479
|
-
run:
|
11478
|
+
at: I,
|
11479
|
+
run: R
|
11480
11480
|
}), s = setTimeout(d);
|
11481
11481
|
}, w = (k) => {
|
11482
|
-
var
|
11482
|
+
var R;
|
11483
11483
|
o && (clearTimeout(o), o = null);
|
11484
11484
|
var {
|
11485
|
-
inputType:
|
11485
|
+
inputType: I
|
11486
11486
|
} = k, z = null, J = k.dataTransfer || k.data || void 0;
|
11487
|
-
l !== !1 &&
|
11487
|
+
l !== !1 && I !== "insertText" && I !== "insertCompositionText" && (l = !1);
|
11488
11488
|
var [_] = k.getTargetRanges();
|
11489
11489
|
_ && (z = K.toSlateRange(e, _, {
|
11490
11490
|
exactMatch: !1,
|
@@ -11494,14 +11494,14 @@ function e0(t) {
|
|
11494
11494
|
if (!z && ae && (_ = ae, z = K.toSlateRange(e, ae, {
|
11495
11495
|
exactMatch: !1,
|
11496
11496
|
suppressThrow: !0
|
11497
|
-
})), z = (
|
11497
|
+
})), z = (R = z) !== null && R !== void 0 ? R : e.selection, !!z) {
|
11498
11498
|
var T = !0;
|
11499
|
-
if (
|
11499
|
+
if (I.startsWith("delete")) {
|
11500
11500
|
if (q.isExpanded(z)) {
|
11501
|
-
var [
|
11502
|
-
if (H.text.length ===
|
11501
|
+
var [j, Z] = q.edges(z), H = oe.leaf(e, j.path);
|
11502
|
+
if (H.text.length === j.offset && Z.offset === 0) {
|
11503
11503
|
var ee = g.next(e, {
|
11504
|
-
at:
|
11504
|
+
at: j.path,
|
11505
11505
|
match: de.isText
|
11506
11506
|
});
|
11507
11507
|
ee && O.equals(ee[1], Z.path) && (z = {
|
@@ -11510,7 +11510,7 @@ function e0(t) {
|
|
11510
11510
|
});
|
11511
11511
|
}
|
11512
11512
|
}
|
11513
|
-
var X =
|
11513
|
+
var X = I.endsWith("Backward") ? "backward" : "forward", [m, U] = q.edges(z), [W, P] = g.leaf(e, m.path), Q = {
|
11514
11514
|
text: "",
|
11515
11515
|
start: m.offset,
|
11516
11516
|
end: U.offset
|
@@ -11534,7 +11534,7 @@ function e0(t) {
|
|
11534
11534
|
});
|
11535
11535
|
}
|
11536
11536
|
}
|
11537
|
-
switch (
|
11537
|
+
switch (I) {
|
11538
11538
|
case "deleteByComposition":
|
11539
11539
|
case "deleteByCut":
|
11540
11540
|
case "deleteByDrag":
|
@@ -11638,7 +11638,7 @@ function e0(t) {
|
|
11638
11638
|
at: z
|
11639
11639
|
});
|
11640
11640
|
var le = J ?? "";
|
11641
|
-
if (Rt.get(e) && (le = le.replace("\uFEFF", "")),
|
11641
|
+
if (Rt.get(e) && (le = le.replace("\uFEFF", "")), I === "insertText" && /.*\n.*\n$/.test(le) && (le = le.slice(0, -1)), le.includes(`
|
11642
11642
|
`))
|
11643
11643
|
return C(() => {
|
11644
11644
|
var Ye = le.split(`
|
@@ -11655,10 +11655,10 @@ function e0(t) {
|
|
11655
11655
|
end: pe.offset,
|
11656
11656
|
text: le
|
11657
11657
|
};
|
11658
|
-
if (le && l &&
|
11658
|
+
if (le && l && I === "insertCompositionText") {
|
11659
11659
|
var Me = l.start + l.text.search(/\S|$/), We = Be.start + Be.text.search(/\S|$/);
|
11660
11660
|
We === Me + 1 && Be.end === l.start + l.text.length ? (Be.start -= 1, l = null, F()) : l = !1;
|
11661
|
-
} else
|
11661
|
+
} else I === "insertText" ? l === null ? l = Be : l && q.isCollapsed(z) && l.end + l.text.length === Ne.offset ? l = Mr(Mr({}, l), {}, {
|
11662
11662
|
text: l.text + le
|
11663
11663
|
}) : l = !1 : l = !1;
|
11664
11664
|
if (T) {
|
@@ -11678,11 +11678,11 @@ function e0(t) {
|
|
11678
11678
|
}, D = () => b() || S(), E = () => i, A = (k) => {
|
11679
11679
|
nn.set(e, k), o && (clearTimeout(o), o = null);
|
11680
11680
|
var {
|
11681
|
-
selection:
|
11681
|
+
selection: R
|
11682
11682
|
} = e;
|
11683
11683
|
if (k) {
|
11684
|
-
var
|
11685
|
-
(
|
11684
|
+
var I = !R || !O.equals(R.anchor.path, k.anchor.path), z = !R || !O.equals(R.anchor.path.slice(0, -1), k.anchor.path.slice(0, -1));
|
11685
|
+
(I && l || z) && (l = !1), (I || S()) && (o = setTimeout(d, Xm));
|
11686
11686
|
}
|
11687
11687
|
}, M = () => {
|
11688
11688
|
(b() || !S()) && d();
|
@@ -11690,10 +11690,10 @@ function e0(t) {
|
|
11690
11690
|
S() || (v(!0), setTimeout(v));
|
11691
11691
|
}, F = () => {
|
11692
11692
|
b() || (s = setTimeout(d));
|
11693
|
-
},
|
11694
|
-
if (!(S() || b()) && k.some((
|
11695
|
-
var
|
11696
|
-
(
|
11693
|
+
}, N = (k) => {
|
11694
|
+
if (!(S() || b()) && k.some((I) => Na(e, I, k))) {
|
11695
|
+
var R;
|
11696
|
+
(R = nc.get(e)) === null || R === void 0 || R();
|
11697
11697
|
}
|
11698
11698
|
};
|
11699
11699
|
return {
|
@@ -11708,7 +11708,7 @@ function e0(t) {
|
|
11708
11708
|
handleCompositionStart: y,
|
11709
11709
|
handleDOMBeforeInput: w,
|
11710
11710
|
handleKeyDown: V,
|
11711
|
-
handleDomMutations:
|
11711
|
+
handleDomMutations: N,
|
11712
11712
|
handleInput: M
|
11713
11713
|
};
|
11714
11714
|
}
|
@@ -12299,7 +12299,7 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12299
12299
|
receivedUserInput: V
|
12300
12300
|
} = A0(), [, F] = Yc((m) => m + 1, 0);
|
12301
12301
|
nc.set(f, F), ia.set(f, s);
|
12302
|
-
var
|
12302
|
+
var N = qt(() => ({
|
12303
12303
|
isDraggingInternally: !1,
|
12304
12304
|
isUpdatingSelection: !1,
|
12305
12305
|
latestElement: null,
|
@@ -12308,7 +12308,7 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12308
12308
|
B(() => {
|
12309
12309
|
b.current && r && b.current.focus();
|
12310
12310
|
}, [r]);
|
12311
|
-
var k = qe(),
|
12311
|
+
var k = qe(), R = qt(() => Jg(() => {
|
12312
12312
|
var m = K.toDOMNode(f, f), U = m.getRootNode();
|
12313
12313
|
if (!A.current && gn && U instanceof ShadowRoot) {
|
12314
12314
|
A.current = !0;
|
@@ -12317,11 +12317,11 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12317
12317
|
return;
|
12318
12318
|
}
|
12319
12319
|
var P = k.current;
|
12320
|
-
if ((Dt || !K.isComposing(f)) && (!
|
12320
|
+
if ((Dt || !K.isComposing(f)) && (!N.isUpdatingSelection || P != null && P.isFlushing()) && !N.isDraggingInternally) {
|
12321
12321
|
var Q = K.findDocumentOrShadowRoot(f), {
|
12322
12322
|
activeElement: ie
|
12323
12323
|
} = Q, G = K.toDOMNode(f, f), ce = nr(Q);
|
12324
|
-
if (ie === G ? (
|
12324
|
+
if (ie === G ? (N.latestElement = ie, on.set(f, !0)) : on.delete(f), !ce)
|
12325
12325
|
return ne.deselect(f);
|
12326
12326
|
var {
|
12327
12327
|
anchorNode: se,
|
@@ -12336,11 +12336,11 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12336
12336
|
}
|
12337
12337
|
s && (!ve || !De) && ne.deselect(f);
|
12338
12338
|
}
|
12339
|
-
}, 100), [f, s,
|
12339
|
+
}, 100), [f, s, N]), I = qt(() => qg(R, 0), [R]);
|
12340
12340
|
k.current = o0({
|
12341
12341
|
node: b,
|
12342
|
-
onDOMSelectionChange:
|
12343
|
-
scheduleOnDOMSelectionChange:
|
12342
|
+
onDOMSelectionChange: R,
|
12343
|
+
scheduleOnDOMSelectionChange: I
|
12344
12344
|
}), cr(() => {
|
12345
12345
|
var m, U, W;
|
12346
12346
|
b.current && (W = Ia(b.current)) ? (tc.set(f, W), Ur.set(f, b.current), En.set(f, b.current), lr.set(b.current, f)) : En.delete(f);
|
@@ -12367,7 +12367,7 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12367
12367
|
});
|
12368
12368
|
if (pe && q.equals(pe, P)) {
|
12369
12369
|
var Be;
|
12370
|
-
if (!
|
12370
|
+
if (!N.hasMarkPlaceholder || (Be = me) !== null && Be !== void 0 && (Be = Be.parentElement) !== null && Be !== void 0 && Be.hasAttribute("data-slate-mark-placeholder"))
|
12371
12371
|
return;
|
12372
12372
|
}
|
12373
12373
|
}
|
@@ -12378,7 +12378,7 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12378
12378
|
});
|
12379
12379
|
return;
|
12380
12380
|
}
|
12381
|
-
|
12381
|
+
N.isUpdatingSelection = !0;
|
12382
12382
|
var Me = P && K.toDOMRange(f, P);
|
12383
12383
|
return Me ? (K.isComposing(f) && !Dt ? ie.collapseToEnd() : q.isBackward(P) ? ie.setBaseAndExtent(Me.endContainer, Me.endOffset, Me.startContainer, Me.startOffset) : ie.setBaseAndExtent(Me.startContainer, Me.startOffset, Me.endContainer, Me.endOffset), p(f, Me)) : ie.removeAllRanges(), Me;
|
12384
12384
|
}
|
@@ -12387,7 +12387,7 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12387
12387
|
var ce = ((U = k.current) === null || U === void 0 ? void 0 : U.isFlushing()) === "action";
|
12388
12388
|
if (!Dt || !ce) {
|
12389
12389
|
setTimeout(() => {
|
12390
|
-
|
12390
|
+
N.isUpdatingSelection = !1;
|
12391
12391
|
});
|
12392
12392
|
return;
|
12393
12393
|
}
|
@@ -12401,7 +12401,7 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12401
12401
|
}
|
12402
12402
|
};
|
12403
12403
|
ve(), se = setTimeout(() => {
|
12404
|
-
ve(!0),
|
12404
|
+
ve(!0), N.isUpdatingSelection = !1;
|
12405
12405
|
});
|
12406
12406
|
}
|
12407
12407
|
});
|
@@ -12426,7 +12426,7 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12426
12426
|
var ce;
|
12427
12427
|
if (k.current)
|
12428
12428
|
return k.current.handleDOMBeforeInput(m);
|
12429
|
-
|
12429
|
+
I.flush(), R.flush();
|
12430
12430
|
var {
|
12431
12431
|
selection: se
|
12432
12432
|
} = f, {
|
@@ -12562,19 +12562,19 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12562
12562
|
var mt = (ce = tr.get(f)) === null || ce === void 0 ? void 0 : ce.unref();
|
12563
12563
|
tr.delete(f), mt && (!f.selection || !q.equals(f.selection, mt)) && ne.select(f, mt);
|
12564
12564
|
}
|
12565
|
-
}, [f,
|
12566
|
-
m == null ? (
|
12567
|
-
}, [
|
12565
|
+
}, [f, R, M, a, s, I]), J = Ve((m) => {
|
12566
|
+
m == null ? (R.cancel(), I.cancel(), Ur.delete(f), En.delete(f), b.current && Kt && b.current.removeEventListener("beforeinput", z)) : Kt && m.addEventListener("beforeinput", z), b.current = m, typeof e == "function" ? e(m) : e && (e.current = m);
|
12567
|
+
}, [R, I, f, z, e]);
|
12568
12568
|
cr(() => {
|
12569
12569
|
var m = K.getWindow(f);
|
12570
|
-
m.document.addEventListener("selectionchange",
|
12570
|
+
m.document.addEventListener("selectionchange", I);
|
12571
12571
|
var U = () => {
|
12572
|
-
|
12572
|
+
N.isDraggingInternally = !1;
|
12573
12573
|
};
|
12574
12574
|
return m.document.addEventListener("dragend", U), m.document.addEventListener("drop", U), () => {
|
12575
|
-
m.document.removeEventListener("selectionchange",
|
12575
|
+
m.document.removeEventListener("selectionchange", I), m.document.removeEventListener("dragend", U), m.document.removeEventListener("drop", U);
|
12576
12576
|
};
|
12577
|
-
}, [
|
12577
|
+
}, [I, N]);
|
12578
12578
|
var _ = i([f, []]), te = o && f.children.length === 1 && Array.from(oe.texts(f)).length === 1 && oe.string(f) === "" && !C, ae = Ve((m) => {
|
12579
12579
|
if (m && te) {
|
12580
12580
|
var U;
|
@@ -12593,20 +12593,20 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12593
12593
|
});
|
12594
12594
|
}
|
12595
12595
|
var {
|
12596
|
-
marks:
|
12596
|
+
marks: j
|
12597
12597
|
} = f;
|
12598
|
-
if (
|
12598
|
+
if (N.hasMarkPlaceholder = !1, f.selection && q.isCollapsed(f.selection) && j) {
|
12599
12599
|
var {
|
12600
12600
|
anchor: Z
|
12601
12601
|
} = f.selection, H = oe.leaf(f, Z.path), ee = jn(H, I0);
|
12602
|
-
if (!de.equals(H,
|
12602
|
+
if (!de.equals(H, j, {
|
12603
12603
|
loose: !0
|
12604
12604
|
})) {
|
12605
|
-
|
12605
|
+
N.hasMarkPlaceholder = !0;
|
12606
12606
|
var X = Object.fromEntries(Object.keys(ee).map((m) => [m, null]));
|
12607
12607
|
_.push(Nt(Nt(Nt({
|
12608
12608
|
[rc]: !0
|
12609
|
-
}, X),
|
12609
|
+
}, X), j), {}, {
|
12610
12610
|
anchor: Z,
|
12611
12611
|
focus: Z
|
12612
12612
|
}));
|
@@ -12621,10 +12621,10 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12621
12621
|
var {
|
12622
12622
|
anchor: U
|
12623
12623
|
} = m, W = oe.leaf(f, U.path);
|
12624
|
-
if (
|
12624
|
+
if (j && !de.equals(W, j, {
|
12625
12625
|
loose: !0
|
12626
12626
|
})) {
|
12627
|
-
Rt.set(f,
|
12627
|
+
Rt.set(f, j);
|
12628
12628
|
return;
|
12629
12629
|
}
|
12630
12630
|
}
|
@@ -12689,9 +12689,9 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12689
12689
|
}
|
12690
12690
|
}, [v.onInput]),
|
12691
12691
|
onBlur: Ve((m) => {
|
12692
|
-
if (!(s ||
|
12692
|
+
if (!(s || N.isUpdatingSelection || !K.hasSelectableTarget(f, m.target) || Ct(m, v.onBlur))) {
|
12693
12693
|
var U = K.findDocumentOrShadowRoot(f);
|
12694
|
-
if (
|
12694
|
+
if (N.latestElement !== U.activeElement) {
|
12695
12695
|
var {
|
12696
12696
|
relatedTarget: W
|
12697
12697
|
} = m, P = K.toDOMNode(f, f);
|
@@ -12709,7 +12709,7 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12709
12709
|
}
|
12710
12710
|
}
|
12711
12711
|
}
|
12712
|
-
}, [s,
|
12712
|
+
}, [s, N.isUpdatingSelection, N.latestElement, f, v.onBlur]),
|
12713
12713
|
onClick: Ve((m) => {
|
12714
12714
|
if (K.hasTarget(f, m.target) && !Ct(m, v.onClick) && un(m.target)) {
|
12715
12715
|
var U = K.toSlateNode(f, m.target), W = K.findPath(f, U);
|
@@ -12808,34 +12808,34 @@ var N0 = (t) => /* @__PURE__ */ Y.createElement(Y.Fragment, null, hc(t)), $0 = /
|
|
12808
12808
|
var Q = g.range(f, W);
|
12809
12809
|
ne.select(f, Q);
|
12810
12810
|
}
|
12811
|
-
|
12811
|
+
N.isDraggingInternally = !0, K.setFragmentData(f, m.dataTransfer, "drag");
|
12812
12812
|
}
|
12813
|
-
}, [s, f, v.onDragStart,
|
12813
|
+
}, [s, f, v.onDragStart, N]),
|
12814
12814
|
onDrop: Ve((m) => {
|
12815
12815
|
if (!s && K.hasTarget(f, m.target) && !Ct(m, v.onDrop)) {
|
12816
12816
|
m.preventDefault();
|
12817
12817
|
var U = f.selection, W = K.findEventRange(f, m), P = m.dataTransfer;
|
12818
|
-
ne.select(f, W),
|
12818
|
+
ne.select(f, W), N.isDraggingInternally && U && !q.equals(U, W) && !g.void(f, {
|
12819
12819
|
at: W,
|
12820
12820
|
voids: !0
|
12821
12821
|
}) && ne.delete(f, {
|
12822
12822
|
at: U
|
12823
12823
|
}), K.insertData(f, P), K.isFocused(f) || K.focus(f);
|
12824
12824
|
}
|
12825
|
-
}, [s, f, v.onDrop,
|
12825
|
+
}, [s, f, v.onDrop, N]),
|
12826
12826
|
onDragEnd: Ve((m) => {
|
12827
|
-
!s &&
|
12828
|
-
}, [s,
|
12827
|
+
!s && N.isDraggingInternally && v.onDragEnd && K.hasTarget(f, m.target) && v.onDragEnd(m);
|
12828
|
+
}, [s, N, v, f]),
|
12829
12829
|
onFocus: Ve((m) => {
|
12830
|
-
if (!s && !
|
12830
|
+
if (!s && !N.isUpdatingSelection && K.hasEditableTarget(f, m.target) && !Ct(m, v.onFocus)) {
|
12831
12831
|
var U = K.toDOMNode(f, f), W = K.findDocumentOrShadowRoot(f);
|
12832
|
-
if (
|
12832
|
+
if (N.latestElement = W.activeElement, kn && m.target !== U) {
|
12833
12833
|
U.focus();
|
12834
12834
|
return;
|
12835
12835
|
}
|
12836
12836
|
on.set(f, !0);
|
12837
12837
|
}
|
12838
|
-
}, [s,
|
12838
|
+
}, [s, N, f, v.onFocus]),
|
12839
12839
|
onKeyDown: Ve((m) => {
|
12840
12840
|
if (!s && K.hasEditableTarget(f, m.target)) {
|
12841
12841
|
var U;
|
@@ -13175,7 +13175,7 @@ var K0 = function(e) {
|
|
13175
13175
|
}, r.apply = (l) => {
|
13176
13176
|
var c = [], p = [], d = Et.get(r);
|
13177
13177
|
if (d != null && d.length) {
|
13178
|
-
var h = d.map((
|
13178
|
+
var h = d.map((I) => Ym(I, l)).filter(Boolean);
|
13179
13179
|
Et.set(r, h);
|
13180
13180
|
}
|
13181
13181
|
var y = nn.get(r);
|
@@ -13225,10 +13225,10 @@ var K0 = function(e) {
|
|
13225
13225
|
var [F] = g.node(r, M);
|
13226
13226
|
Qr.set(F, V);
|
13227
13227
|
}
|
13228
|
-
for (var [
|
13229
|
-
if (
|
13230
|
-
var [
|
13231
|
-
Qr.set(
|
13228
|
+
for (var [N, k] of p)
|
13229
|
+
if (N.current) {
|
13230
|
+
var [R] = g.node(r, N.current);
|
13231
|
+
Qr.set(R, k);
|
13232
13232
|
}
|
13233
13233
|
}, r.setFragmentData = (l) => {
|
13234
13234
|
var {
|
@@ -13249,8 +13249,8 @@ var K0 = function(e) {
|
|
13249
13249
|
b.setEndAfter(S), f = b.cloneContents();
|
13250
13250
|
}
|
13251
13251
|
if (h && (C = f.querySelector("[data-slate-spacer]")), Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach((F) => {
|
13252
|
-
var
|
13253
|
-
F.textContent =
|
13252
|
+
var N = F.getAttribute("data-slate-zero-width") === "n";
|
13253
|
+
F.textContent = N ? `
|
13254
13254
|
` : "";
|
13255
13255
|
}), ac(C)) {
|
13256
13256
|
var D = C.ownerDocument.createElement("span");
|
@@ -13409,31 +13409,32 @@ const mu = {
|
|
13409
13409
|
function pb({
|
13410
13410
|
name: t,
|
13411
13411
|
defaultValue: e,
|
13412
|
-
|
13413
|
-
|
13414
|
-
|
13415
|
-
|
13412
|
+
enforceCharacterLimit: n = !1,
|
13413
|
+
maxLimit: r = 2e3,
|
13414
|
+
onValueChange: i,
|
13415
|
+
onChange: a,
|
13416
|
+
isError: o
|
13416
13417
|
}) {
|
13417
|
-
const [
|
13418
|
+
const [s, u] = $(0), [l, c] = $(
|
13418
13419
|
e ? JSON.parse(e) : yu
|
13419
|
-
), [
|
13420
|
-
function
|
13421
|
-
return
|
13420
|
+
), [p, d] = $(!1), { id: h, inputRef: y, error: v } = St(), f = qe(null), C = y || f, w = o || !!v, b = qt(() => _v(K0(Nv())), []), S = Ve(Q0, []), D = Ve(J0, []);
|
13421
|
+
function E(k) {
|
13422
|
+
return k.map((R) => oe.string(R)).join("");
|
13422
13423
|
}
|
13423
|
-
function
|
13424
|
-
const
|
13425
|
-
|
13424
|
+
function A(k) {
|
13425
|
+
const R = E(k);
|
13426
|
+
u(R.length), !(n && R.length >= r) && (c(k), a && a(k), i && i(R), b.children = k, ne.setNodes(b, { children: k }));
|
13426
13427
|
}
|
13427
|
-
const
|
13428
|
+
const F = `arkynRichText ${w || r === s ? "errorTrue" : "errorFalse"} ${p ? "focusTrue" : "focusFalse"}`, N = r - s;
|
13428
13429
|
return /* @__PURE__ */ x.jsxs(
|
13429
13430
|
G0,
|
13430
13431
|
{
|
13431
|
-
editor:
|
13432
|
+
editor: b,
|
13432
13433
|
initialValue: e ? JSON.parse(e) : yu,
|
13433
|
-
onChange:
|
13434
|
-
onValueChange:
|
13434
|
+
onChange: A,
|
13435
|
+
onValueChange: A,
|
13435
13436
|
children: [
|
13436
|
-
/* @__PURE__ */ x.jsxs("div", { className:
|
13437
|
+
/* @__PURE__ */ x.jsxs("div", { className: F, children: [
|
13437
13438
|
/* @__PURE__ */ x.jsxs(ey, { children: [
|
13438
13439
|
/* @__PURE__ */ x.jsx(pn, { format: "headingOne", icon: ef }),
|
13439
13440
|
/* @__PURE__ */ x.jsx(pn, { format: "headingTwo", icon: tf }),
|
@@ -13451,31 +13452,34 @@ function pb({
|
|
13451
13452
|
$0,
|
13452
13453
|
{
|
13453
13454
|
className: "editorContainer",
|
13454
|
-
renderElement:
|
13455
|
-
renderLeaf:
|
13455
|
+
renderElement: D,
|
13456
|
+
renderLeaf: S,
|
13456
13457
|
spellCheck: !0,
|
13457
|
-
id:
|
13458
|
-
onFocus: () =>
|
13459
|
-
onBlur: () =>
|
13460
|
-
onKeyDown: (
|
13461
|
-
for (const
|
13462
|
-
if (op(
|
13463
|
-
|
13464
|
-
const I = mu[
|
13465
|
-
Dc(
|
13458
|
+
id: h,
|
13459
|
+
onFocus: () => d(!0),
|
13460
|
+
onBlur: () => d(!1),
|
13461
|
+
onKeyDown: (k) => {
|
13462
|
+
for (const R in mu)
|
13463
|
+
if (op(R, k)) {
|
13464
|
+
k.preventDefault();
|
13465
|
+
const I = mu[R];
|
13466
|
+
Dc(b, I);
|
13466
13467
|
}
|
13467
13468
|
}
|
13468
13469
|
}
|
13469
13470
|
),
|
13470
|
-
|
13471
|
+
JSON.stringify(r),
|
13472
|
+
JSON.stringify(s),
|
13473
|
+
JSON.stringify(N),
|
13474
|
+
N < 0 && /* @__PURE__ */ x.jsx("div", { className: "restatesCharacters", children: N })
|
13471
13475
|
] }),
|
13472
13476
|
/* @__PURE__ */ x.jsx(
|
13473
13477
|
"input",
|
13474
13478
|
{
|
13475
|
-
ref:
|
13479
|
+
ref: C,
|
13476
13480
|
type: "hidden",
|
13477
13481
|
name: t,
|
13478
|
-
value: JSON.stringify(
|
13482
|
+
value: JSON.stringify(l)
|
13479
13483
|
}
|
13480
13484
|
)
|
13481
13485
|
]
|
@@ -13537,9 +13541,9 @@ function hb(t) {
|
|
13537
13541
|
onSelect: M,
|
13538
13542
|
options: V,
|
13539
13543
|
optionMaxHeight: F,
|
13540
|
-
closeOnSelect:
|
13544
|
+
closeOnSelect: N,
|
13541
13545
|
...k
|
13542
|
-
} = ty({ ...t, id: i, isError: u }, e), [
|
13546
|
+
} = ty({ ...t, id: i, isError: u }, e), [R, I] = $(w);
|
13543
13547
|
function z() {
|
13544
13548
|
l || !(s != null && s.current) || e || (n(!0), s.current.focus());
|
13545
13549
|
}
|
@@ -13551,9 +13555,9 @@ function hb(t) {
|
|
13551
13555
|
}
|
13552
13556
|
function te(H) {
|
13553
13557
|
const { label: ee, value: X } = H;
|
13554
|
-
|
13558
|
+
I(R !== X ? X : ""), M && M({ label: ee, value: X }), N && _();
|
13555
13559
|
}
|
13556
|
-
const ae = typeof C == "string" ? C :
|
13560
|
+
const ae = typeof C == "string" ? C : R, T = ((Z = V.find((H) => H.value === ae)) == null ? void 0 : Z.label) || "", j = () => {
|
13557
13561
|
if (!e && T) return !0;
|
13558
13562
|
if (!e && !T) return !1;
|
13559
13563
|
if (e && T) return !0;
|
@@ -13566,7 +13570,7 @@ function hb(t) {
|
|
13566
13570
|
title: c,
|
13567
13571
|
style: p,
|
13568
13572
|
onClick: z,
|
13569
|
-
className: `${d} placeholder_dark_${
|
13573
|
+
className: `${d} placeholder_dark_${j()}`,
|
13570
13574
|
children: [
|
13571
13575
|
h,
|
13572
13576
|
f && /* @__PURE__ */ x.jsx(f, { size: y, strokeWidth: 2.5 }),
|
@@ -14658,14 +14662,14 @@ function rC() {
|
|
14658
14662
|
}
|
14659
14663
|
}
|
14660
14664
|
}
|
14661
|
-
var D = u, E = l, A = s, M = o, V = e, F = c,
|
14665
|
+
var D = u, E = l, A = s, M = o, V = e, F = c, N = r, k = y, R = h, I = n, z = a, J = i, _ = p, te = !1;
|
14662
14666
|
function ae(G) {
|
14663
14667
|
return te || (te = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), T(G) || S(G) === u;
|
14664
14668
|
}
|
14665
14669
|
function T(G) {
|
14666
14670
|
return S(G) === l;
|
14667
14671
|
}
|
14668
|
-
function
|
14672
|
+
function j(G) {
|
14669
14673
|
return S(G) === s;
|
14670
14674
|
}
|
14671
14675
|
function Z(G) {
|
@@ -14698,7 +14702,7 @@ function rC() {
|
|
14698
14702
|
function ie(G) {
|
14699
14703
|
return S(G) === p;
|
14700
14704
|
}
|
14701
|
-
He.AsyncMode = D, He.ConcurrentMode = E, He.ContextConsumer = A, He.ContextProvider = M, He.Element = V, He.ForwardRef = F, He.Fragment =
|
14705
|
+
He.AsyncMode = D, He.ConcurrentMode = E, He.ContextConsumer = A, He.ContextProvider = M, He.Element = V, He.ForwardRef = F, He.Fragment = N, He.Lazy = k, He.Memo = R, He.Portal = I, He.Profiler = z, He.StrictMode = J, He.Suspense = _, He.isAsyncMode = ae, He.isConcurrentMode = T, He.isContextConsumer = j, He.isContextProvider = Z, He.isElement = H, He.isForwardRef = ee, He.isFragment = X, He.isLazy = m, He.isMemo = U, He.isPortal = W, He.isProfiler = P, He.isStrictMode = Q, He.isSuspense = ie, He.isValidElementType = b, He.typeOf = S;
|
14702
14706
|
}()), He;
|
14703
14707
|
}
|
14704
14708
|
var xu;
|
@@ -14836,9 +14840,9 @@ function oC() {
|
|
14836
14840
|
return Ii = function(s, u) {
|
14837
14841
|
var l = typeof Symbol == "function" && Symbol.iterator, c = "@@iterator";
|
14838
14842
|
function p(T) {
|
14839
|
-
var
|
14840
|
-
if (typeof
|
14841
|
-
return
|
14843
|
+
var j = T && (l && T[l] || T[c]);
|
14844
|
+
if (typeof j == "function")
|
14845
|
+
return j;
|
14842
14846
|
}
|
14843
14847
|
var d = "<<anonymous>>", h = {
|
14844
14848
|
array: C("array"),
|
@@ -14859,18 +14863,18 @@ function oC() {
|
|
14859
14863
|
oneOf: A,
|
14860
14864
|
oneOfType: V,
|
14861
14865
|
shape: k,
|
14862
|
-
exact:
|
14866
|
+
exact: R
|
14863
14867
|
};
|
14864
|
-
function y(T,
|
14865
|
-
return T ===
|
14868
|
+
function y(T, j) {
|
14869
|
+
return T === j ? T !== 0 || 1 / T === 1 / j : T !== T && j !== j;
|
14866
14870
|
}
|
14867
|
-
function v(T,
|
14868
|
-
this.message = T, this.data =
|
14871
|
+
function v(T, j) {
|
14872
|
+
this.message = T, this.data = j && typeof j == "object" ? j : {}, this.stack = "";
|
14869
14873
|
}
|
14870
14874
|
v.prototype = Error.prototype;
|
14871
14875
|
function f(T) {
|
14872
14876
|
if (process.env.NODE_ENV !== "production")
|
14873
|
-
var
|
14877
|
+
var j = {}, Z = 0;
|
14874
14878
|
function H(X, m, U, W, P, Q, ie) {
|
14875
14879
|
if (W = W || d, Q = Q || U, ie !== n) {
|
14876
14880
|
if (u) {
|
@@ -14880,10 +14884,10 @@ function oC() {
|
|
14880
14884
|
throw G.name = "Invariant Violation", G;
|
14881
14885
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
14882
14886
|
var ce = W + ":" + U;
|
14883
|
-
!
|
14887
|
+
!j[ce] && // Avoid spamming the console because they are often not actionable except for lib authors
|
14884
14888
|
Z < 3 && (a(
|
14885
14889
|
"You are manually calling a React.PropTypes validation function for the `" + Q + "` prop on `" + W + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
14886
|
-
),
|
14890
|
+
), j[ce] = !0, Z++);
|
14887
14891
|
}
|
14888
14892
|
}
|
14889
14893
|
return m[U] == null ? X ? m[U] === null ? new v("The " + P + " `" + Q + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new v("The " + P + " `" + Q + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : T(m, U, W, P, Q);
|
@@ -14892,7 +14896,7 @@ function oC() {
|
|
14892
14896
|
return ee.isRequired = H.bind(null, !0), ee;
|
14893
14897
|
}
|
14894
14898
|
function C(T) {
|
14895
|
-
function
|
14899
|
+
function j(Z, H, ee, X, m, U) {
|
14896
14900
|
var W = Z[H], P = J(W);
|
14897
14901
|
if (P !== T) {
|
14898
14902
|
var Q = _(W);
|
@@ -14903,13 +14907,13 @@ function oC() {
|
|
14903
14907
|
}
|
14904
14908
|
return null;
|
14905
14909
|
}
|
14906
|
-
return f(
|
14910
|
+
return f(j);
|
14907
14911
|
}
|
14908
14912
|
function w() {
|
14909
14913
|
return f(o);
|
14910
14914
|
}
|
14911
14915
|
function b(T) {
|
14912
|
-
function
|
14916
|
+
function j(Z, H, ee, X, m) {
|
14913
14917
|
if (typeof T != "function")
|
14914
14918
|
return new v("Property `" + m + "` of component `" + ee + "` has invalid PropType notation inside arrayOf.");
|
14915
14919
|
var U = Z[H];
|
@@ -14924,11 +14928,11 @@ function oC() {
|
|
14924
14928
|
}
|
14925
14929
|
return null;
|
14926
14930
|
}
|
14927
|
-
return f(
|
14931
|
+
return f(j);
|
14928
14932
|
}
|
14929
14933
|
function S() {
|
14930
|
-
function T(
|
14931
|
-
var m =
|
14934
|
+
function T(j, Z, H, ee, X) {
|
14935
|
+
var m = j[Z];
|
14932
14936
|
if (!s(m)) {
|
14933
14937
|
var U = J(m);
|
14934
14938
|
return new v("Invalid " + ee + " `" + X + "` of type " + ("`" + U + "` supplied to `" + H + "`, expected a single ReactElement."));
|
@@ -14938,8 +14942,8 @@ function oC() {
|
|
14938
14942
|
return f(T);
|
14939
14943
|
}
|
14940
14944
|
function D() {
|
14941
|
-
function T(
|
14942
|
-
var m =
|
14945
|
+
function T(j, Z, H, ee, X) {
|
14946
|
+
var m = j[Z];
|
14943
14947
|
if (!t.isValidElementType(m)) {
|
14944
14948
|
var U = J(m);
|
14945
14949
|
return new v("Invalid " + ee + " `" + X + "` of type " + ("`" + U + "` supplied to `" + H + "`, expected a single ReactElement type."));
|
@@ -14949,21 +14953,21 @@ function oC() {
|
|
14949
14953
|
return f(T);
|
14950
14954
|
}
|
14951
14955
|
function E(T) {
|
14952
|
-
function
|
14956
|
+
function j(Z, H, ee, X, m) {
|
14953
14957
|
if (!(Z[H] instanceof T)) {
|
14954
14958
|
var U = T.name || d, W = ae(Z[H]);
|
14955
14959
|
return new v("Invalid " + X + " `" + m + "` of type " + ("`" + W + "` supplied to `" + ee + "`, expected ") + ("instance of `" + U + "`."));
|
14956
14960
|
}
|
14957
14961
|
return null;
|
14958
14962
|
}
|
14959
|
-
return f(
|
14963
|
+
return f(j);
|
14960
14964
|
}
|
14961
14965
|
function A(T) {
|
14962
14966
|
if (!Array.isArray(T))
|
14963
14967
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
14964
14968
|
"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])."
|
14965
14969
|
) : a("Invalid argument supplied to oneOf, expected an array.")), o;
|
14966
|
-
function
|
14970
|
+
function j(Z, H, ee, X, m) {
|
14967
14971
|
for (var U = Z[H], W = 0; W < T.length; W++)
|
14968
14972
|
if (y(U, T[W]))
|
14969
14973
|
return null;
|
@@ -14973,10 +14977,10 @@ function oC() {
|
|
14973
14977
|
});
|
14974
14978
|
return new v("Invalid " + X + " `" + m + "` of value `" + String(U) + "` " + ("supplied to `" + ee + "`, expected one of " + P + "."));
|
14975
14979
|
}
|
14976
|
-
return f(
|
14980
|
+
return f(j);
|
14977
14981
|
}
|
14978
14982
|
function M(T) {
|
14979
|
-
function
|
14983
|
+
function j(Z, H, ee, X, m) {
|
14980
14984
|
if (typeof T != "function")
|
14981
14985
|
return new v("Property `" + m + "` of component `" + ee + "` has invalid PropType notation inside objectOf.");
|
14982
14986
|
var U = Z[H], W = J(U);
|
@@ -14990,16 +14994,16 @@ function oC() {
|
|
14990
14994
|
}
|
14991
14995
|
return null;
|
14992
14996
|
}
|
14993
|
-
return f(
|
14997
|
+
return f(j);
|
14994
14998
|
}
|
14995
14999
|
function V(T) {
|
14996
15000
|
if (!Array.isArray(T))
|
14997
15001
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), o;
|
14998
|
-
for (var
|
14999
|
-
var Z = T[
|
15002
|
+
for (var j = 0; j < T.length; j++) {
|
15003
|
+
var Z = T[j];
|
15000
15004
|
if (typeof Z != "function")
|
15001
15005
|
return a(
|
15002
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + te(Z) + " at index " +
|
15006
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + te(Z) + " at index " + j + "."
|
15003
15007
|
), o;
|
15004
15008
|
}
|
15005
15009
|
function H(ee, X, m, U, W) {
|
@@ -15015,35 +15019,35 @@ function oC() {
|
|
15015
15019
|
return f(H);
|
15016
15020
|
}
|
15017
15021
|
function F() {
|
15018
|
-
function T(
|
15019
|
-
return
|
15022
|
+
function T(j, Z, H, ee, X) {
|
15023
|
+
return I(j[Z]) ? null : new v("Invalid " + ee + " `" + X + "` supplied to " + ("`" + H + "`, expected a ReactNode."));
|
15020
15024
|
}
|
15021
15025
|
return f(T);
|
15022
15026
|
}
|
15023
|
-
function
|
15027
|
+
function N(T, j, Z, H, ee) {
|
15024
15028
|
return new v(
|
15025
|
-
(T || "React class") + ": " +
|
15029
|
+
(T || "React class") + ": " + j + " type `" + Z + "." + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + ee + "`."
|
15026
15030
|
);
|
15027
15031
|
}
|
15028
15032
|
function k(T) {
|
15029
|
-
function
|
15033
|
+
function j(Z, H, ee, X, m) {
|
15030
15034
|
var U = Z[H], W = J(U);
|
15031
15035
|
if (W !== "object")
|
15032
15036
|
return new v("Invalid " + X + " `" + m + "` of type `" + W + "` " + ("supplied to `" + ee + "`, expected `object`."));
|
15033
15037
|
for (var P in T) {
|
15034
15038
|
var Q = T[P];
|
15035
15039
|
if (typeof Q != "function")
|
15036
|
-
return
|
15040
|
+
return N(ee, X, m, P, _(Q));
|
15037
15041
|
var ie = Q(U, P, ee, X, m + "." + P, n);
|
15038
15042
|
if (ie)
|
15039
15043
|
return ie;
|
15040
15044
|
}
|
15041
15045
|
return null;
|
15042
15046
|
}
|
15043
|
-
return f(
|
15047
|
+
return f(j);
|
15044
15048
|
}
|
15045
|
-
function
|
15046
|
-
function
|
15049
|
+
function R(T) {
|
15050
|
+
function j(Z, H, ee, X, m) {
|
15047
15051
|
var U = Z[H], W = J(U);
|
15048
15052
|
if (W !== "object")
|
15049
15053
|
return new v("Invalid " + X + " `" + m + "` of type `" + W + "` " + ("supplied to `" + ee + "`, expected `object`."));
|
@@ -15051,7 +15055,7 @@ function oC() {
|
|
15051
15055
|
for (var Q in P) {
|
15052
15056
|
var ie = T[Q];
|
15053
15057
|
if (r(T, Q) && typeof ie != "function")
|
15054
|
-
return
|
15058
|
+
return N(ee, X, m, Q, _(ie));
|
15055
15059
|
if (!ie)
|
15056
15060
|
return new v(
|
15057
15061
|
"Invalid " + X + " `" + m + "` key `" + Q + "` supplied to `" + ee + "`.\nBad object: " + JSON.stringify(Z[H], null, " ") + `
|
@@ -15063,9 +15067,9 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
15063
15067
|
}
|
15064
15068
|
return null;
|
15065
15069
|
}
|
15066
|
-
return f(
|
15070
|
+
return f(j);
|
15067
15071
|
}
|
15068
|
-
function
|
15072
|
+
function I(T) {
|
15069
15073
|
switch (typeof T) {
|
15070
15074
|
case "number":
|
15071
15075
|
case "string":
|
@@ -15075,20 +15079,20 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
15075
15079
|
return !T;
|
15076
15080
|
case "object":
|
15077
15081
|
if (Array.isArray(T))
|
15078
|
-
return T.every(
|
15082
|
+
return T.every(I);
|
15079
15083
|
if (T === null || s(T))
|
15080
15084
|
return !0;
|
15081
|
-
var
|
15082
|
-
if (
|
15083
|
-
var Z =
|
15084
|
-
if (
|
15085
|
+
var j = p(T);
|
15086
|
+
if (j) {
|
15087
|
+
var Z = j.call(T), H;
|
15088
|
+
if (j !== T.entries) {
|
15085
15089
|
for (; !(H = Z.next()).done; )
|
15086
|
-
if (!
|
15090
|
+
if (!I(H.value))
|
15087
15091
|
return !1;
|
15088
15092
|
} else
|
15089
15093
|
for (; !(H = Z.next()).done; ) {
|
15090
15094
|
var ee = H.value;
|
15091
|
-
if (ee && !
|
15095
|
+
if (ee && !I(ee[1]))
|
15092
15096
|
return !1;
|
15093
15097
|
}
|
15094
15098
|
} else
|
@@ -15098,37 +15102,37 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
15098
15102
|
return !1;
|
15099
15103
|
}
|
15100
15104
|
}
|
15101
|
-
function z(T,
|
15102
|
-
return T === "symbol" ? !0 :
|
15105
|
+
function z(T, j) {
|
15106
|
+
return T === "symbol" ? !0 : j ? j["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && j instanceof Symbol : !1;
|
15103
15107
|
}
|
15104
15108
|
function J(T) {
|
15105
|
-
var
|
15106
|
-
return Array.isArray(T) ? "array" : T instanceof RegExp ? "object" : z(
|
15109
|
+
var j = typeof T;
|
15110
|
+
return Array.isArray(T) ? "array" : T instanceof RegExp ? "object" : z(j, T) ? "symbol" : j;
|
15107
15111
|
}
|
15108
15112
|
function _(T) {
|
15109
15113
|
if (typeof T > "u" || T === null)
|
15110
15114
|
return "" + T;
|
15111
|
-
var
|
15112
|
-
if (
|
15115
|
+
var j = J(T);
|
15116
|
+
if (j === "object") {
|
15113
15117
|
if (T instanceof Date)
|
15114
15118
|
return "date";
|
15115
15119
|
if (T instanceof RegExp)
|
15116
15120
|
return "regexp";
|
15117
15121
|
}
|
15118
|
-
return
|
15122
|
+
return j;
|
15119
15123
|
}
|
15120
15124
|
function te(T) {
|
15121
|
-
var
|
15122
|
-
switch (
|
15125
|
+
var j = _(T);
|
15126
|
+
switch (j) {
|
15123
15127
|
case "array":
|
15124
15128
|
case "object":
|
15125
|
-
return "an " +
|
15129
|
+
return "an " + j;
|
15126
15130
|
case "boolean":
|
15127
15131
|
case "date":
|
15128
15132
|
case "regexp":
|
15129
|
-
return "a " +
|
15133
|
+
return "a " + j;
|
15130
15134
|
default:
|
15131
|
-
return
|
15135
|
+
return j;
|
15132
15136
|
}
|
15133
15137
|
}
|
15134
15138
|
function ae(T) {
|
@@ -15385,17 +15389,17 @@ fr.default = function(t, e) {
|
|
15385
15389
|
var F = u - o.props.offset;
|
15386
15390
|
h = F >= Math.floor(D) && F < Math.floor(E), y = F < Math.floor(D) || F >= Math.floor(E);
|
15387
15391
|
}
|
15388
|
-
var
|
15392
|
+
var N = n.getActiveLink();
|
15389
15393
|
if (y) {
|
15390
|
-
if (p ===
|
15391
|
-
var k = o.props.saveHashHistory,
|
15392
|
-
Xt.default.changeHash("",
|
15394
|
+
if (p === N && n.setActiveLink(void 0), o.props.hashSpy && Xt.default.getHash() === p) {
|
15395
|
+
var k = o.props.saveHashHistory, R = k === void 0 ? !1 : k;
|
15396
|
+
Xt.default.changeHash("", R);
|
15393
15397
|
}
|
15394
15398
|
o.props.spy && o.state.active && (o.setState({ active: !1 }), o.props.onSetInactive && o.props.onSetInactive(p, d));
|
15395
15399
|
}
|
15396
|
-
if (h && (
|
15400
|
+
if (h && (N !== p || o.state.active === !1)) {
|
15397
15401
|
n.setActiveLink(p);
|
15398
|
-
var
|
15402
|
+
var I = o.props.saveHashHistory, z = I === void 0 ? !1 : I;
|
15399
15403
|
o.props.hashSpy && Xt.default.changeHash(p, z), o.props.spy && (o.setState({ active: !0 }), o.props.onSetActive && o.props.onSetActive(p, d));
|
15400
15404
|
}
|
15401
15405
|
}
|
@@ -16043,10 +16047,10 @@ function RD(...t) {
|
|
16043
16047
|
}
|
16044
16048
|
var jD = (t) => {
|
16045
16049
|
var e, n, r, i, a, o, s, u, l, c;
|
16046
|
-
let { invert: p, toast: d, unstyled: h, interacting: y, setHeights: v, visibleToasts: f, heights: C, index: w, toasts: b, expanded: S, removeToast: D, defaultRichColors: E, closeButton: A, style: M, cancelButtonStyle: V, actionButtonStyle: F, className:
|
16050
|
+
let { invert: p, toast: d, unstyled: h, interacting: y, setHeights: v, visibleToasts: f, heights: C, index: w, toasts: b, expanded: S, removeToast: D, defaultRichColors: E, closeButton: A, style: M, cancelButtonStyle: V, actionButtonStyle: F, className: N = "", descriptionClassName: k = "", duration: R, position: I, gap: z, loadingIcon: J, expandByDefault: _, classNames: te, icons: ae, closeButtonAriaLabel: T = "Close toast", pauseWhenPageIsHidden: j, cn: Z } = t, [H, ee] = Y.useState(!1), [X, m] = Y.useState(!1), [U, W] = Y.useState(!1), [P, Q] = Y.useState(!1), [ie, G] = Y.useState(0), [ce, se] = Y.useState(0), he = Y.useRef(null), ve = Y.useRef(null), De = w === 0, Ce = w + 1 <= f, me = d.type, ge = d.dismissible !== !1, Ie = d.className || "", le = d.descriptionClassName || "", Ne = Y.useMemo(() => C.findIndex((Ee) => Ee.toastId === d.id) || 0, [C, d.id]), pe = Y.useMemo(() => {
|
16047
16051
|
var Ee;
|
16048
16052
|
return (Ee = d.closeButton) != null ? Ee : A;
|
16049
|
-
}, [d.closeButton, A]), Be = Y.useMemo(() => d.duration ||
|
16053
|
+
}, [d.closeButton, A]), Be = Y.useMemo(() => d.duration || R || FD, [d.duration, R]), Me = Y.useRef(0), We = Y.useRef(0), Ye = Y.useRef(0), we = Y.useRef(null), [dt, ct] = I.split("-"), kt = Y.useMemo(() => C.reduce((Ee, Te, Re) => Re >= Ne ? Ee : Ee + Te.height, 0), [C, Ne]), mt = DD(), Bt = d.invert || p, jt = me === "loading";
|
16050
16054
|
We.current = Y.useMemo(() => Ne * z + kt, [Ne, kt]), Y.useEffect(() => {
|
16051
16055
|
ee(!0);
|
16052
16056
|
}, []), Y.useLayoutEffect(() => {
|
@@ -16064,7 +16068,7 @@ var jD = (t) => {
|
|
16064
16068
|
Y.useEffect(() => {
|
16065
16069
|
if (d.promise && me === "loading" || d.duration === 1 / 0 || d.type === "loading") return;
|
16066
16070
|
let Ee, Te = Be;
|
16067
|
-
return S || y ||
|
16071
|
+
return S || y || j && mt ? (() => {
|
16068
16072
|
if (Ye.current < Me.current) {
|
16069
16073
|
let Re = (/* @__PURE__ */ new Date()).getTime() - Me.current;
|
16070
16074
|
Te = Te - Re;
|
@@ -16074,7 +16078,7 @@ var jD = (t) => {
|
|
16074
16078
|
var Re;
|
16075
16079
|
(Re = d.onAutoClose) == null || Re.call(d, d), yt();
|
16076
16080
|
}, Te)), () => clearTimeout(Ee);
|
16077
|
-
}, [S, y, _, d, Be, yt, d.promise, me,
|
16081
|
+
}, [S, y, _, d, Be, yt, d.promise, me, j, mt]), Y.useEffect(() => {
|
16078
16082
|
let Ee = ve.current;
|
16079
16083
|
if (Ee) {
|
16080
16084
|
let Te = Ee.getBoundingClientRect().height;
|
@@ -16086,7 +16090,7 @@ var jD = (t) => {
|
|
16086
16090
|
function Yt() {
|
16087
16091
|
return ae != null && ae.loading ? Y.createElement("div", { className: "sonner-loader", "data-visible": me === "loading" }, ae.loading) : J ? Y.createElement("div", { className: "sonner-loader", "data-visible": me === "loading" }, J) : Y.createElement(vD, { visible: me === "loading" });
|
16088
16092
|
}
|
16089
|
-
return Y.createElement("li", { "aria-live": d.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: ve, className: Z(
|
16093
|
+
return Y.createElement("li", { "aria-live": d.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: ve, className: Z(N, Ie, te == null ? void 0 : te.toast, (e = d == null ? void 0 : d.classNames) == null ? void 0 : e.toast, te == null ? void 0 : te.default, te == null ? void 0 : te[me], (n = d == null ? void 0 : d.classNames) == null ? void 0 : n[me]), "data-sonner-toast": "", "data-rich-colors": (r = d.richColors) != null ? r : E, "data-styled": !(d.jsx || d.unstyled || h), "data-mounted": H, "data-promise": !!d.promise, "data-removed": X, "data-visible": Ce, "data-y-position": dt, "data-x-position": ct, "data-index": w, "data-front": De, "data-swiping": U, "data-dismissible": ge, "data-type": me, "data-invert": Bt, "data-swipe-out": P, "data-expanded": !!(S || _ && H), style: { "--index": w, "--toasts-before": w, "--z-index": b.length - w, "--offset": `${X ? ie : We.current}px`, "--initial-height": _ ? "auto" : `${ce}px`, ...M, ...d.style }, onPointerDown: (Ee) => {
|
16090
16094
|
jt || !ge || (he.current = /* @__PURE__ */ new Date(), G(We.current), Ee.target.setPointerCapture(Ee.pointerId), Ee.target.tagName !== "BUTTON" && (W(!0), we.current = { x: Ee.clientX, y: Ee.clientY }));
|
16091
16095
|
}, onPointerUp: () => {
|
16092
16096
|
var Ee, Te, Re, ot;
|
@@ -16121,20 +16125,20 @@ function Yu() {
|
|
16121
16125
|
return t === "auto" || !t ? window.getComputedStyle(document.documentElement).direction : t;
|
16122
16126
|
}
|
16123
16127
|
var ID = (t) => {
|
16124
|
-
let { invert: e, position: n = "bottom-right", hotkey: r = ["altKey", "KeyT"], expand: i, closeButton: a, className: o, offset: s, theme: u = "light", richColors: l, duration: c, style: p, visibleToasts: d = OD, toastOptions: h, dir: y = Yu(), gap: v = PD, loadingIcon: f, icons: C, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: b, cn: S = RD } = t, [D, E] = Y.useState([]), A = Y.useMemo(() => Array.from(new Set([n].concat(D.filter((
|
16128
|
+
let { invert: e, position: n = "bottom-right", hotkey: r = ["altKey", "KeyT"], expand: i, closeButton: a, className: o, offset: s, theme: u = "light", richColors: l, duration: c, style: p, visibleToasts: d = OD, toastOptions: h, dir: y = Yu(), gap: v = PD, loadingIcon: f, icons: C, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: b, cn: S = RD } = t, [D, E] = Y.useState([]), A = Y.useMemo(() => Array.from(new Set([n].concat(D.filter((j) => j.position).map((j) => j.position)))), [D, n]), [M, V] = Y.useState([]), [F, N] = Y.useState(!1), [k, R] = Y.useState(!1), [I, z] = Y.useState(u !== "system" ? u : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), J = Y.useRef(null), _ = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), te = Y.useRef(null), ae = Y.useRef(!1), T = Y.useCallback((j) => {
|
16125
16129
|
var Z;
|
16126
|
-
(Z = D.find((H) => H.id ===
|
16130
|
+
(Z = D.find((H) => H.id === j.id)) != null && Z.delete || xt.dismiss(j.id), E((H) => H.filter(({ id: ee }) => ee !== j.id));
|
16127
16131
|
}, [D]);
|
16128
|
-
return Y.useEffect(() => xt.subscribe((
|
16129
|
-
if (
|
16130
|
-
E((Z) => Z.map((H) => H.id ===
|
16132
|
+
return Y.useEffect(() => xt.subscribe((j) => {
|
16133
|
+
if (j.dismiss) {
|
16134
|
+
E((Z) => Z.map((H) => H.id === j.id ? { ...H, delete: !0 } : H));
|
16131
16135
|
return;
|
16132
16136
|
}
|
16133
16137
|
setTimeout(() => {
|
16134
16138
|
ga.flushSync(() => {
|
16135
16139
|
E((Z) => {
|
16136
|
-
let H = Z.findIndex((ee) => ee.id ===
|
16137
|
-
return H !== -1 ? [...Z.slice(0, H), { ...Z[H], ...
|
16140
|
+
let H = Z.findIndex((ee) => ee.id === j.id);
|
16141
|
+
return H !== -1 ? [...Z.slice(0, H), { ...Z[H], ...j }, ...Z.slice(H + 1)] : [j, ...Z];
|
16138
16142
|
});
|
16139
16143
|
});
|
16140
16144
|
});
|
@@ -16143,35 +16147,35 @@ var ID = (t) => {
|
|
16143
16147
|
z(u);
|
16144
16148
|
return;
|
16145
16149
|
}
|
16146
|
-
u === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? z("dark") : z("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches:
|
16147
|
-
z(
|
16150
|
+
u === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? z("dark") : z("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches: j }) => {
|
16151
|
+
z(j ? "dark" : "light");
|
16148
16152
|
});
|
16149
16153
|
}, [u]), Y.useEffect(() => {
|
16150
|
-
D.length <= 1 &&
|
16154
|
+
D.length <= 1 && N(!1);
|
16151
16155
|
}, [D]), Y.useEffect(() => {
|
16152
|
-
let
|
16156
|
+
let j = (Z) => {
|
16153
16157
|
var H, ee;
|
16154
|
-
r.every((X) => Z[X] || Z.code === X) && (
|
16158
|
+
r.every((X) => Z[X] || Z.code === X) && (N(!0), (H = J.current) == null || H.focus()), Z.code === "Escape" && (document.activeElement === J.current || (ee = J.current) != null && ee.contains(document.activeElement)) && N(!1);
|
16155
16159
|
};
|
16156
|
-
return document.addEventListener("keydown",
|
16160
|
+
return document.addEventListener("keydown", j), () => document.removeEventListener("keydown", j);
|
16157
16161
|
}, [r]), Y.useEffect(() => {
|
16158
16162
|
if (J.current) return () => {
|
16159
16163
|
te.current && (te.current.focus({ preventScroll: !0 }), te.current = null, ae.current = !1);
|
16160
16164
|
};
|
16161
|
-
}, [J.current]), D.length ? Y.createElement("section", { "aria-label": `${w} ${_}`, tabIndex: -1 }, A.map((
|
16165
|
+
}, [J.current]), D.length ? Y.createElement("section", { "aria-label": `${w} ${_}`, tabIndex: -1 }, A.map((j, Z) => {
|
16162
16166
|
var H;
|
16163
|
-
let [ee, X] =
|
16164
|
-
return Y.createElement("ol", { key:
|
16167
|
+
let [ee, X] = j.split("-");
|
16168
|
+
return Y.createElement("ol", { key: j, dir: y === "auto" ? Yu() : y, tabIndex: -1, ref: J, className: o, "data-sonner-toaster": !0, "data-theme": I, "data-y-position": ee, "data-x-position": X, style: { "--front-toast-height": `${((H = M[0]) == null ? void 0 : H.height) || 0}px`, "--offset": typeof s == "number" ? `${s}px` : s || SD, "--width": `${MD}px`, "--gap": `${v}px`, ...p }, onBlur: (m) => {
|
16165
16169
|
ae.current && !m.currentTarget.contains(m.relatedTarget) && (ae.current = !1, te.current && (te.current.focus({ preventScroll: !0 }), te.current = null));
|
16166
16170
|
}, onFocus: (m) => {
|
16167
16171
|
m.target instanceof HTMLElement && m.target.dataset.dismissible === "false" || ae.current || (ae.current = !0, te.current = m.relatedTarget);
|
16168
|
-
}, onMouseEnter: () =>
|
16169
|
-
k ||
|
16172
|
+
}, onMouseEnter: () => N(!0), onMouseMove: () => N(!0), onMouseLeave: () => {
|
16173
|
+
k || N(!1);
|
16170
16174
|
}, onPointerDown: (m) => {
|
16171
|
-
m.target instanceof HTMLElement && m.target.dataset.dismissible === "false" ||
|
16172
|
-
}, onPointerUp: () =>
|
16175
|
+
m.target instanceof HTMLElement && m.target.dataset.dismissible === "false" || R(!0);
|
16176
|
+
}, onPointerUp: () => R(!1) }, D.filter((m) => !m.position && Z === 0 || m.position === j).map((m, U) => {
|
16173
16177
|
var W, P;
|
16174
|
-
return Y.createElement(jD, { key: m.id, icons: C, index: U, toast: m, defaultRichColors: l, duration: (W = h == null ? void 0 : h.duration) != null ? W : c, className: h == null ? void 0 : h.className, descriptionClassName: h == null ? void 0 : h.descriptionClassName, invert: e, visibleToasts: d, closeButton: (P = h == null ? void 0 : h.closeButton) != null ? P : a, interacting: k, position:
|
16178
|
+
return Y.createElement(jD, { key: m.id, icons: C, index: U, toast: m, defaultRichColors: l, duration: (W = h == null ? void 0 : h.duration) != null ? W : c, className: h == null ? void 0 : h.className, descriptionClassName: h == null ? void 0 : h.descriptionClassName, invert: e, visibleToasts: d, closeButton: (P = h == null ? void 0 : h.closeButton) != null ? P : a, interacting: k, position: j, style: h == null ? void 0 : h.style, unstyled: h == null ? void 0 : h.unstyled, classNames: h == null ? void 0 : h.classNames, cancelButtonStyle: h == null ? void 0 : h.cancelButtonStyle, actionButtonStyle: h == null ? void 0 : h.actionButtonStyle, removeToast: T, toasts: D.filter((Q) => Q.position == m.position), heights: M.filter((Q) => Q.position == m.position), setHeights: V, expandByDefault: i, gap: v, loadingIcon: f, expanded: F, pauseWhenPageIsHidden: b, cn: S });
|
16175
16179
|
}));
|
16176
16180
|
})) : null;
|
16177
16181
|
};
|