@ukpc-lib/react 0.2.26 → 0.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.cjs +21 -21
- package/dist/components/index.js +490 -474
- package/package.json +1 -1
- package/web-components-bundle/global-topbar/index.cjs +1 -1
- package/web-components-bundle/global-topbar/index.js +1 -1
- package/web-components-bundle/has-permission/index.cjs +1 -1
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/{index-aff1e7a4.js → index-5b201dc6.js} +29 -13
- package/web-components-bundle/{index-04dc6603.cjs → index-c66f53fe.cjs} +3 -3
package/dist/components/index.js
CHANGED
|
@@ -129,8 +129,24 @@ const Tu = (e) => {
|
|
|
129
129
|
] });
|
|
130
130
|
}, _u = ({ notification: e, handleUpdateRead: t }) => {
|
|
131
131
|
const n = (r) => {
|
|
132
|
-
const i = ae(), s = ae(r), o = i.diff(s, "days");
|
|
133
|
-
|
|
132
|
+
const i = ae(), s = ae(r), o = i.diff(s, "days"), a = i.diff(s, "minutes"), l = i.diff(s, "months"), c = i.diff(s, "years");
|
|
133
|
+
if (a < 1)
|
|
134
|
+
return "Just now";
|
|
135
|
+
if (o === 0) {
|
|
136
|
+
if (a <= 60)
|
|
137
|
+
return `${a} minutes ago`;
|
|
138
|
+
const u = Math.floor(a / 60);
|
|
139
|
+
return `${u} hour${u > 1 ? "s" : ""} ago`;
|
|
140
|
+
}
|
|
141
|
+
if (o === 1)
|
|
142
|
+
return "Yesterday";
|
|
143
|
+
if (o >= 2 && o <= 7)
|
|
144
|
+
return `${o} days ago`;
|
|
145
|
+
if (l === 0 || l === 1) {
|
|
146
|
+
const u = Math.ceil(o / 7);
|
|
147
|
+
return `${u} week${u > 1 ? "s" : ""} ago`;
|
|
148
|
+
}
|
|
149
|
+
return l < 12 ? `${Math.floor(l / 4)} months ago` : c === 1 ? "1 year ago" : "Over 1 year ago";
|
|
134
150
|
};
|
|
135
151
|
return /* @__PURE__ */ k(
|
|
136
152
|
"div",
|
|
@@ -208,17 +224,17 @@ const Tu = (e) => {
|
|
|
208
224
|
withCredentials: !0
|
|
209
225
|
});
|
|
210
226
|
Promise.all([o, a]).then((l) => {
|
|
211
|
-
var c,
|
|
227
|
+
var c, u, d, h;
|
|
212
228
|
console.log("result: " + l), n({
|
|
213
|
-
all: { rows: (c = l[0].data) == null ? void 0 : c.rows, total: (
|
|
229
|
+
all: { rows: (c = l[0].data) == null ? void 0 : c.rows, total: (u = l[0].data) == null ? void 0 : u.total },
|
|
214
230
|
unread: {
|
|
215
|
-
rows: (
|
|
231
|
+
rows: (d = l[1].data) == null ? void 0 : d.rows,
|
|
216
232
|
total: (h = l[1].data) == null ? void 0 : h.total
|
|
217
233
|
}
|
|
218
234
|
});
|
|
219
235
|
});
|
|
220
236
|
}, Pu = ({ baseUrl: e, notiPath: t }) => {
|
|
221
|
-
var
|
|
237
|
+
var d, h, p, y;
|
|
222
238
|
const { setShowModalFalse: n } = ie(an), { notidata: r, setNotiData: i } = ie(an);
|
|
223
239
|
console.log(r);
|
|
224
240
|
const [s, o] = K("all"), a = wa({ baseUrl: e, notiPath: t, setNotiData: i }), l = async () => {
|
|
@@ -251,10 +267,10 @@ const Tu = (e) => {
|
|
|
251
267
|
);
|
|
252
268
|
}
|
|
253
269
|
await a();
|
|
254
|
-
},
|
|
270
|
+
}, u = [
|
|
255
271
|
{
|
|
256
272
|
id: "all",
|
|
257
|
-
tabTitle: `All (${((
|
|
273
|
+
tabTitle: `All (${((d = r == null ? void 0 : r.all) == null ? void 0 : d.total) || 0})`,
|
|
258
274
|
children: /* @__PURE__ */ g(
|
|
259
275
|
ho,
|
|
260
276
|
{
|
|
@@ -333,7 +349,7 @@ const Tu = (e) => {
|
|
|
333
349
|
/* @__PURE__ */ g(
|
|
334
350
|
Tu,
|
|
335
351
|
{
|
|
336
|
-
tabs:
|
|
352
|
+
tabs: u,
|
|
337
353
|
setCurrentTab: o,
|
|
338
354
|
currentTab: s
|
|
339
355
|
}
|
|
@@ -347,20 +363,20 @@ function Au({
|
|
|
347
363
|
baseUrl: t,
|
|
348
364
|
notiPath: n
|
|
349
365
|
}) {
|
|
350
|
-
var c;
|
|
366
|
+
var c, u;
|
|
351
367
|
const { isOpen: r, toggleOpen: i } = ie(an), { notidata: s, setNotiData: o } = ie(an), a = wa({ baseUrl: t, notiPath: n, setNotiData: o }), l = async () => {
|
|
352
|
-
var d,
|
|
368
|
+
var d, h;
|
|
353
369
|
try {
|
|
354
370
|
await a();
|
|
355
|
-
} catch (
|
|
371
|
+
} catch (p) {
|
|
356
372
|
Zn(
|
|
357
|
-
((
|
|
373
|
+
((h = (d = p.response) == null ? void 0 : d.data) == null ? void 0 : h.errorMessage) || "Have error when get notification list"
|
|
358
374
|
);
|
|
359
375
|
}
|
|
360
376
|
};
|
|
361
377
|
return be(() => {
|
|
362
378
|
l();
|
|
363
|
-
}, []), /* @__PURE__ */ k("div", { children: [
|
|
379
|
+
}, [s]), /* @__PURE__ */ k("div", { children: [
|
|
364
380
|
/* @__PURE__ */ k(
|
|
365
381
|
"svg",
|
|
366
382
|
{
|
|
@@ -402,17 +418,17 @@ function Au({
|
|
|
402
418
|
{
|
|
403
419
|
style: {
|
|
404
420
|
position: "absolute",
|
|
405
|
-
top: "
|
|
421
|
+
top: "14px",
|
|
406
422
|
background: `${va.dangerDark}`,
|
|
407
|
-
width: "
|
|
408
|
-
height: "
|
|
423
|
+
width: "18px",
|
|
424
|
+
height: "18px",
|
|
409
425
|
border: "1px solid #fff",
|
|
410
426
|
borderRadius: "50%",
|
|
411
427
|
color: "#fff",
|
|
412
|
-
fontSize: "
|
|
428
|
+
fontSize: "12px"
|
|
413
429
|
},
|
|
414
430
|
className: "notification-badge",
|
|
415
|
-
children: (c = s == null ? void 0 : s.unread) == null ? void 0 : c.total
|
|
431
|
+
children: ((c = s == null ? void 0 : s.unread) == null ? void 0 : c.total) > 9 ? "9+" : `${(u = s == null ? void 0 : s.unread) == null ? void 0 : u.total}`
|
|
416
432
|
}
|
|
417
433
|
),
|
|
418
434
|
!r && /* @__PURE__ */ g(Pu, { baseUrl: t, notiPath: n })
|
|
@@ -428,7 +444,7 @@ function Sa({ children: e, styles: t = [], ...n }) {
|
|
|
428
444
|
}
|
|
429
445
|
const Ou = `.avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.2rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar{position:fixed;display:flex;z-index:30;background:#292929;top:0;width:100%;padding-left:2.5rem;height:64px}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between}.logo-container{padding:16px 0;height:100%}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.languageDropdown{height:100%;padding:0 8px;display:flex;flex-direction:row;gap:8px;border-radius:3px;align-items:center;justify-content:center;height:41px;background-color:#ffffff1a;cursor:pointer;transition:background-color .2s ease-in-out}.languageDropdown:hover{background-color:#fff3}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem}.userAvatar{width:2.5rem;height:2.5rem;cursor:pointer;-o-object-fit:cover;object-fit:cover;border-radius:9999px;border:2px solid #FFFFFF}.userAvatarNull{width:2.5rem;height:2.5rem;background:#DDDDDD;border-radius:100%;color:#fff;font-size:20px;font-weight:400;display:flex;align-items:center;justify-content:center}.relative{position:relative}.cursor-pointer{cursor:pointer}
|
|
430
446
|
`, Mu = `.tab-title{min-width:90px;padding:5px 16px;font-size:14px;font-weight:500;color:#c5c5c5;transition:all .3s ease-in-out;position:relative}.tab-title.is-active{color:#2e7d32}.tab-title.is-active:before{transition:all .3s ease-in-out;position:absolute;content:"";width:100%;height:100%;top:0;left:0;border-bottom:2px solid #2E7D32}.tab-content{padding:16px 0}
|
|
431
|
-
`, Nu = `:root{--textPrimary: #292929;--textWhite: #fff;--primary500: #2E7D32;--grey100: #FAFAFA;--gray200: #EEEEEE;--gray600: #85858A;--link: #007BFF }.list-content{overflow-y:auto;overflow-x:hidden}.mark-all-read{text-align:right;color:#007bff;margin-bottom:12px;font-size:12px}.notification-items__wrapper{overflow:hidden}.notification-items__content{height:calc(100vh - 275px);overflow-x:hidden;overflow-y:auto}.notitification-item__container{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:#FAFAFA 1px solid;text-align:left;font-size:12px;position:relative;z-index:10;cursor:pointer;border-radius:4px;margin-bottom:8px}.notitification-item__container:hover{background-color:#fafafa}.notitification-item__container:not(:last-child):before{position:absolute;content:"";width:100%;bottom:-5px;left:0;border:1px solid #FAFAFA}.notitification-item__container:hover:before{opacity:1}.notification-item__image-container{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border-radius:50%;overflow:hidden;margin-right:16px}.notification-item__image-container img{width:100%;height:100%;text-align:center;-o-object-fit:cover;object-fit:cover;color:transparent;text-indent:10000px}.notification-item__context-link{color:#007bff}.notification-item__content{width:
|
|
447
|
+
`, Nu = `:root{--textPrimary: #292929;--textWhite: #fff;--primary500: #2E7D32;--grey100: #FAFAFA;--gray200: #EEEEEE;--gray600: #85858A;--link: #007BFF }.list-content{overflow-y:auto;overflow-x:hidden}.mark-all-read{text-align:right;color:#007bff;margin-bottom:12px;font-size:12px}.notification-items__wrapper{overflow:hidden}.notification-items__content{height:calc(100vh - 275px);overflow-x:hidden;overflow-y:auto}.notitification-item__container{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:#FAFAFA 1px solid;text-align:left;font-size:12px;position:relative;z-index:10;cursor:pointer;border-radius:4px;margin-bottom:8px}.notitification-item__container:hover{background-color:#fafafa}.notitification-item__container:not(:last-child):before{position:absolute;content:"";width:100%;bottom:-5px;left:0;border:1px solid #FAFAFA}.notitification-item__container:hover:before{opacity:1}.notification-item__image-container{width:40px;height:40px;display:flex;justify-content:center;align-items:center;border-radius:50%;overflow:hidden;margin-right:16px}.notification-item__image-container img{width:100%;height:100%;text-align:center;-o-object-fit:cover;object-fit:cover;color:transparent;text-indent:10000px}.notification-item__context-link{color:#007bff}.notification-item__content{width:62%;padding-right:16px}.notification-item__user-name{margin-bottom:2px;font-size:14px}.notification-item__time{margin-right:15px;text-align:right}.notification-item__read-at{border-width:2px;border-style:solid;border-radius:50%;width:10px;height:10px;display:block;position:relative}.notification-item__read-at:before{position:absolute;top:-30px;right:0;width:91px;background-color:#85858a;color:#fff;border-radius:4px;font-size:10px;text-align:center;padding:4px;opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.39,.575,.565,1)}.notification-item__read-at:hover:before{opacity:1;visibility:visible}.notification-item__read-at.read:before{content:"Mark as unread"}.notification-item__read-at.unread:before{content:"Mark as read"}.notification-item__read-at.read{border-color:#eee}.notification-item__read-at.unread{border-color:#2e7d32;background-color:#2e7d32}
|
|
432
448
|
`, Du = `._notification-massage_container_ql4az_1{background:#fff;padding:0 64px 0 84px;border-radius:8px;font-family:TT Firs Neue Trl,sans-serif}._notification-massage_container_ql4az_1:before{position:absolute;content:"";width:48px;height:48px;background:url(https://ukpcsaprod.blob.core.windows.net/saas/notification-icon.svg) no-repeat center/100%;top:12px;left:24px}._notification-name_ql4az_18{font-weight:500;font-size:14px}._notification-message_service_ql4az_23{font-size:12px}._notification-message_button-close_ql4az_27{position:absolute;top:12px;right:24px;width:24px;height:24px}
|
|
433
449
|
`, Ru = `._subscription-diaglog_12x9u_2{position:fixed;width:100vw;height:100vh;top:0;left:0;background-color:#0006;z-index:10000;display:flex;align-items:center;justify-content:center}._subscription-container_12x9u_15{width:610px;height:222px;border-radius:8px;padding:32px 24px 40px;background:#fff}._subscription-title_12x9u_24{font-size:20px;font-weight:500;text-align:center;color:#292929}._subscription-title_12x9u_24,._subscription-text_12x9u_33{margin-bottom:24px}._subscription-btn__container_12x9u_37{display:flex;justify-content:space-between;align-items:center}._btn-success_12x9u_43,._btn-cancel_12x9u_44{width:150px;height:40px;display:flex;align-items:center;justify-content:center;padding:8px;color:#292929;border-radius:1px}._btn-cancel_12x9u_44{background-color:#ddd}._btn-success_12x9u_43{background-color:#93d500}
|
|
434
450
|
`;
|
|
@@ -552,7 +568,7 @@ function z3({
|
|
|
552
568
|
...i,
|
|
553
569
|
color: (o == null ? void 0 : o.color) || "black",
|
|
554
570
|
backgroundColor: (o == null ? void 0 : o.bgColor) || "black"
|
|
555
|
-
}, [
|
|
571
|
+
}, [u, d] = K(!1), h = () => {
|
|
556
572
|
window.location.href = `${n}/authentication/logout?callbackUrl=${window.location.href}`;
|
|
557
573
|
};
|
|
558
574
|
return /* @__PURE__ */ k(
|
|
@@ -614,7 +630,7 @@ function z3({
|
|
|
614
630
|
primaryColor: o == null ? void 0 : o.primaryColor,
|
|
615
631
|
avatarUrl: t == null ? void 0 : t.avatarUrl,
|
|
616
632
|
userName: t == null ? void 0 : t.firstName,
|
|
617
|
-
setShowConfirmModal:
|
|
633
|
+
setShowConfirmModal: d
|
|
618
634
|
}
|
|
619
635
|
),
|
|
620
636
|
/* @__PURE__ */ g("p", { className: "userFullName", children: `${(t == null ? void 0 : t.firstName) || "Unknown"} ${(t == null ? void 0 : t.lastName) || "User"}` })
|
|
@@ -626,8 +642,8 @@ function z3({
|
|
|
626
642
|
/* @__PURE__ */ g(
|
|
627
643
|
xa,
|
|
628
644
|
{
|
|
629
|
-
isOpen:
|
|
630
|
-
onClose: () =>
|
|
645
|
+
isOpen: u,
|
|
646
|
+
onClose: () => d(!1),
|
|
631
647
|
onConfirm: h
|
|
632
648
|
}
|
|
633
649
|
)
|
|
@@ -741,10 +757,10 @@ function $u({
|
|
|
741
757
|
setShowConfirmModal: n,
|
|
742
758
|
primaryColor: r = "#009d4f"
|
|
743
759
|
}) {
|
|
744
|
-
const [i, s] = K(!1), o = ze(null), a = ze(null), [l, c] = K(!1), [
|
|
760
|
+
const [i, s] = K(!1), o = ze(null), a = ze(null), [l, c] = K(!1), [u, d] = K(!1), h = {
|
|
745
761
|
backgroundColor: l ? r : "transparent"
|
|
746
762
|
}, p = {
|
|
747
|
-
backgroundColor:
|
|
763
|
+
backgroundColor: u ? r : "transparent"
|
|
748
764
|
};
|
|
749
765
|
return be(() => {
|
|
750
766
|
const y = (f) => {
|
|
@@ -782,8 +798,8 @@ function $u({
|
|
|
782
798
|
/* @__PURE__ */ g(
|
|
783
799
|
"li",
|
|
784
800
|
{
|
|
785
|
-
onMouseEnter: () =>
|
|
786
|
-
onMouseLeave: () =>
|
|
801
|
+
onMouseEnter: () => d(!0),
|
|
802
|
+
onMouseLeave: () => d(!1),
|
|
787
803
|
style: p,
|
|
788
804
|
className: "avatar-dropdown-item",
|
|
789
805
|
children: "Profile"
|
|
@@ -873,24 +889,24 @@ var ud = function() {
|
|
|
873
889
|
const Ir = ud;
|
|
874
890
|
var dd = "Expected a function", fd = Math.max, hd = Math.min;
|
|
875
891
|
function Fn(e, t, n) {
|
|
876
|
-
var r, i, s, o, a, l, c = 0,
|
|
892
|
+
var r, i, s, o, a, l, c = 0, u = !1, d = !1, h = !0;
|
|
877
893
|
if (typeof e != "function")
|
|
878
894
|
throw new TypeError(dd);
|
|
879
|
-
t = go(t) || 0, Qn(n) && (
|
|
895
|
+
t = go(t) || 0, Qn(n) && (u = !!n.leading, d = "maxWait" in n, s = d ? fd(go(n.maxWait) || 0, t) : s, h = "trailing" in n ? !!n.trailing : h);
|
|
880
896
|
function p(E) {
|
|
881
897
|
var C = r, T = i;
|
|
882
898
|
return r = i = void 0, c = E, o = e.apply(T, C), o;
|
|
883
899
|
}
|
|
884
900
|
function y(E) {
|
|
885
|
-
return c = E, a = setTimeout(b, t),
|
|
901
|
+
return c = E, a = setTimeout(b, t), u ? p(E) : o;
|
|
886
902
|
}
|
|
887
903
|
function f(E) {
|
|
888
904
|
var C = E - l, T = E - c, P = t - C;
|
|
889
|
-
return
|
|
905
|
+
return d ? hd(P, s - T) : P;
|
|
890
906
|
}
|
|
891
907
|
function m(E) {
|
|
892
908
|
var C = E - l, T = E - c;
|
|
893
|
-
return l === void 0 || C >= t || C < 0 ||
|
|
909
|
+
return l === void 0 || C >= t || C < 0 || d && T >= s;
|
|
894
910
|
}
|
|
895
911
|
function b() {
|
|
896
912
|
var E = Ir();
|
|
@@ -912,7 +928,7 @@ function Fn(e, t, n) {
|
|
|
912
928
|
if (r = arguments, i = this, l = E, C) {
|
|
913
929
|
if (a === void 0)
|
|
914
930
|
return y(l);
|
|
915
|
-
if (
|
|
931
|
+
if (d)
|
|
916
932
|
return clearTimeout(a), a = setTimeout(b, t), p(l);
|
|
917
933
|
}
|
|
918
934
|
return a === void 0 && (a = setTimeout(b, t)), o;
|
|
@@ -1042,11 +1058,11 @@ var vd = /* @__PURE__ */ Object.freeze({
|
|
|
1042
1058
|
r.axis.x.track.rect = r.axis.x.track.el.getBoundingClientRect(), r.axis.y.track.rect = r.axis.y.track.el.getBoundingClientRect(), (r.axis.x.isOverflowing || r.axis.x.forceVisible) && (s = r.isWithinBounds(r.axis.x.track.rect)), (r.axis.y.isOverflowing || r.axis.y.forceVisible) && (o = r.isWithinBounds(r.axis.y.track.rect)), (s || o) && (i.stopPropagation(), i.type === "pointerdown" && i.pointerType !== "touch" && (s && (r.axis.x.scrollbar.rect = r.axis.x.scrollbar.el.getBoundingClientRect(), r.isWithinBounds(r.axis.x.scrollbar.rect) ? r.onDragStart(i, "x") : r.onTrackClick(i, "x")), o && (r.axis.y.scrollbar.rect = r.axis.y.scrollbar.el.getBoundingClientRect(), r.isWithinBounds(r.axis.y.scrollbar.rect) ? r.onDragStart(i, "y") : r.onTrackClick(i, "y"))));
|
|
1043
1059
|
}
|
|
1044
1060
|
}, this.drag = function(i) {
|
|
1045
|
-
var s, o, a, l, c,
|
|
1061
|
+
var s, o, a, l, c, u, d, h, p, y, f;
|
|
1046
1062
|
if (!(!r.draggedAxis || !r.contentWrapperEl)) {
|
|
1047
|
-
var m, b = r.axis[r.draggedAxis].track, w = (o = (s = b.rect) === null || s === void 0 ? void 0 : s[r.axis[r.draggedAxis].sizeAttr]) !== null && o !== void 0 ? o : 0, x = r.axis[r.draggedAxis].scrollbar, S = (l = (a = r.contentWrapperEl) === null || a === void 0 ? void 0 : a[r.axis[r.draggedAxis].scrollSizeAttr]) !== null && l !== void 0 ? l : 0, v = parseInt((
|
|
1063
|
+
var m, b = r.axis[r.draggedAxis].track, w = (o = (s = b.rect) === null || s === void 0 ? void 0 : s[r.axis[r.draggedAxis].sizeAttr]) !== null && o !== void 0 ? o : 0, x = r.axis[r.draggedAxis].scrollbar, S = (l = (a = r.contentWrapperEl) === null || a === void 0 ? void 0 : a[r.axis[r.draggedAxis].scrollSizeAttr]) !== null && l !== void 0 ? l : 0, v = parseInt((u = (c = r.elStyles) === null || c === void 0 ? void 0 : c[r.axis[r.draggedAxis].sizeAttr]) !== null && u !== void 0 ? u : "0px", 10);
|
|
1048
1064
|
i.preventDefault(), i.stopPropagation(), r.draggedAxis === "y" ? m = i.pageY : m = i.pageX;
|
|
1049
|
-
var E = m - ((h = (
|
|
1065
|
+
var E = m - ((h = (d = b.rect) === null || d === void 0 ? void 0 : d[r.axis[r.draggedAxis].offsetAttr]) !== null && h !== void 0 ? h : 0) - r.axis[r.draggedAxis].dragOffset;
|
|
1050
1066
|
E = r.draggedAxis === "x" && r.isRtl ? ((y = (p = b.rect) === null || p === void 0 ? void 0 : p[r.axis[r.draggedAxis].sizeAttr]) !== null && y !== void 0 ? y : 0) - x.size - E : E;
|
|
1051
1067
|
var C = E / (w - x.size), T = C * (S - v);
|
|
1052
1068
|
r.draggedAxis === "x" && r.isRtl && (T = !((f = e.getRtlHelpers()) === null || f === void 0) && f.isScrollingToNegative ? -T : T), r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr] = T;
|
|
@@ -1155,10 +1171,10 @@ var vd = /* @__PURE__ */ Object.freeze({
|
|
|
1155
1171
|
this.contentEl.style.padding = "".concat(this.elStyles.paddingTop, " ").concat(this.elStyles.paddingRight, " ").concat(this.elStyles.paddingBottom, " ").concat(this.elStyles.paddingLeft), this.wrapperEl.style.margin = "-".concat(this.elStyles.paddingTop, " -").concat(this.elStyles.paddingRight, " -").concat(this.elStyles.paddingBottom, " -").concat(this.elStyles.paddingLeft);
|
|
1156
1172
|
var l = this.contentEl.scrollHeight, c = this.contentEl.scrollWidth;
|
|
1157
1173
|
this.contentWrapperEl.style.height = r ? "auto" : "100%", this.placeholderEl.style.width = i ? "".concat(n || c, "px") : "auto", this.placeholderEl.style.height = "".concat(l, "px");
|
|
1158
|
-
var
|
|
1159
|
-
this.axis.x.isOverflowing = n !== 0 && c > n, this.axis.y.isOverflowing = l >
|
|
1160
|
-
var
|
|
1161
|
-
this.axis.x.isOverflowing = this.axis.x.isOverflowing && c > s - h, this.axis.y.isOverflowing = this.axis.y.isOverflowing && l >
|
|
1174
|
+
var u = this.contentWrapperEl.offsetHeight;
|
|
1175
|
+
this.axis.x.isOverflowing = n !== 0 && c > n, this.axis.y.isOverflowing = l > u, this.axis.x.isOverflowing = o === "hidden" ? !1 : this.axis.x.isOverflowing, this.axis.y.isOverflowing = a === "hidden" ? !1 : this.axis.y.isOverflowing, this.axis.x.forceVisible = this.options.forceVisible === "x" || this.options.forceVisible === !0, this.axis.y.forceVisible = this.options.forceVisible === "y" || this.options.forceVisible === !0, this.hideNativeScrollbar();
|
|
1176
|
+
var d = this.axis.x.isOverflowing ? this.scrollbarWidth : 0, h = this.axis.y.isOverflowing ? this.scrollbarWidth : 0;
|
|
1177
|
+
this.axis.x.isOverflowing = this.axis.x.isOverflowing && c > s - h, this.axis.y.isOverflowing = this.axis.y.isOverflowing && l > u - d, this.axis.x.scrollbar.size = this.getScrollbarSize("x"), this.axis.y.scrollbar.size = this.getScrollbarSize("y"), this.axis.x.scrollbar.el && (this.axis.x.scrollbar.el.style.width = "".concat(this.axis.x.scrollbar.size, "px")), this.axis.y.scrollbar.el && (this.axis.y.scrollbar.el.style.height = "".concat(this.axis.y.scrollbar.size, "px")), this.positionScrollbar("x"), this.positionScrollbar("y"), this.toggleTrackVisibility("x"), this.toggleTrackVisibility("y");
|
|
1162
1178
|
}
|
|
1163
1179
|
}, e.prototype.getScrollbarSize = function(t) {
|
|
1164
1180
|
var n, r;
|
|
@@ -1173,8 +1189,8 @@ var vd = /* @__PURE__ */ Object.freeze({
|
|
|
1173
1189
|
if (!(!this.axis[t].isOverflowing || !this.contentWrapperEl || !s.el || !this.elStyles)) {
|
|
1174
1190
|
var o = this.contentWrapperEl[this.axis[t].scrollSizeAttr], a = ((n = this.axis[t].track.el) === null || n === void 0 ? void 0 : n[this.axis[t].offsetSizeAttr]) || 0, l = parseInt(this.elStyles[this.axis[t].sizeAttr], 10), c = this.contentWrapperEl[this.axis[t].scrollOffsetAttr];
|
|
1175
1191
|
c = t === "x" && this.isRtl && (!((r = e.getRtlHelpers()) === null || r === void 0) && r.isScrollOriginAtZero) ? -c : c, t === "x" && this.isRtl && (c = !((i = e.getRtlHelpers()) === null || i === void 0) && i.isScrollingToNegative ? c : -c);
|
|
1176
|
-
var
|
|
1177
|
-
|
|
1192
|
+
var u = c / (o - l), d = ~~((a - s.size) * u);
|
|
1193
|
+
d = t === "x" && this.isRtl ? -d + (a - s.size) : d, s.el.style.transform = t === "x" ? "translate3d(".concat(d, "px, 0, 0)") : "translate3d(0, ".concat(d, "px, 0)");
|
|
1178
1194
|
}
|
|
1179
1195
|
}, e.prototype.toggleTrackVisibility = function(t) {
|
|
1180
1196
|
t === void 0 && (t = "y");
|
|
@@ -1205,7 +1221,7 @@ var vd = /* @__PURE__ */ Object.freeze({
|
|
|
1205
1221
|
t.preventDefault();
|
|
1206
1222
|
var c = Xe(this.el);
|
|
1207
1223
|
this.axis[n].scrollbar.rect = l.scrollbar.el.getBoundingClientRect();
|
|
1208
|
-
var
|
|
1224
|
+
var u = this.axis[n].scrollbar, d = (s = (i = u.rect) === null || i === void 0 ? void 0 : i[this.axis[n].offsetAttr]) !== null && s !== void 0 ? s : 0, h = parseInt((a = (o = this.elStyles) === null || o === void 0 ? void 0 : o[this.axis[n].sizeAttr]) !== null && a !== void 0 ? a : "0px", 10), p = this.contentWrapperEl[this.axis[n].scrollOffsetAttr], y = n === "y" ? this.mouseY - d : this.mouseX - d, f = y < 0 ? -1 : 1, m = f === -1 ? p - h : p + h, b = 40, w = function() {
|
|
1209
1225
|
r.contentWrapperEl && (f === -1 ? p > m && (p -= b, r.contentWrapperEl[r.axis[n].scrollOffsetAttr] = p, c.requestAnimationFrame(w)) : p < m && (p += b, r.contentWrapperEl[r.axis[n].scrollOffsetAttr] = p, c.requestAnimationFrame(w)));
|
|
1210
1226
|
};
|
|
1211
1227
|
w();
|
|
@@ -1277,11 +1293,11 @@ function xd(e, t) {
|
|
|
1277
1293
|
return n;
|
|
1278
1294
|
}
|
|
1279
1295
|
var Na = N.forwardRef(function(e, t) {
|
|
1280
|
-
var n = e.children, r = e.scrollableNodeProps, i = r === void 0 ? {} : r, s = xd(e, ["children", "scrollableNodeProps"]), o = N.useRef(), a = N.useRef(), l = N.useRef(), c = {},
|
|
1296
|
+
var n = e.children, r = e.scrollableNodeProps, i = r === void 0 ? {} : r, s = xd(e, ["children", "scrollableNodeProps"]), o = N.useRef(), a = N.useRef(), l = N.useRef(), c = {}, u = {};
|
|
1281
1297
|
Object.keys(s).forEach(function(p) {
|
|
1282
|
-
Object.prototype.hasOwnProperty.call(Nn.defaultOptions, p) ? c[p] = s[p] :
|
|
1298
|
+
Object.prototype.hasOwnProperty.call(Nn.defaultOptions, p) ? c[p] = s[p] : u[p] = s[p];
|
|
1283
1299
|
});
|
|
1284
|
-
var
|
|
1300
|
+
var d = ye(ye({}, Nn.defaultOptions.classNames), c.classNames), h = ye(ye({}, i), { className: "".concat(d.contentWrapper).concat(i.className ? " ".concat(i.className) : ""), tabIndex: 0, role: "region", "aria-label": c.ariaLabel || Nn.defaultOptions.ariaLabel });
|
|
1285
1301
|
return N.useEffect(function() {
|
|
1286
1302
|
var p;
|
|
1287
1303
|
return a.current = h.ref ? h.ref.current : a.current, o.current && (p = new Nn(o.current, ye(ye(ye({}, c), a.current && {
|
|
@@ -1293,43 +1309,43 @@ var Na = N.forwardRef(function(e, t) {
|
|
|
1293
1309
|
};
|
|
1294
1310
|
}, []), N.createElement(
|
|
1295
1311
|
"div",
|
|
1296
|
-
ye({ "data-simplebar": "init", ref: o },
|
|
1312
|
+
ye({ "data-simplebar": "init", ref: o }, u),
|
|
1297
1313
|
N.createElement(
|
|
1298
1314
|
"div",
|
|
1299
|
-
{ className:
|
|
1315
|
+
{ className: d.wrapper },
|
|
1300
1316
|
N.createElement(
|
|
1301
1317
|
"div",
|
|
1302
|
-
{ className:
|
|
1303
|
-
N.createElement("div", { className:
|
|
1318
|
+
{ className: d.heightAutoObserverWrapperEl },
|
|
1319
|
+
N.createElement("div", { className: d.heightAutoObserverEl })
|
|
1304
1320
|
),
|
|
1305
1321
|
N.createElement(
|
|
1306
1322
|
"div",
|
|
1307
|
-
{ className:
|
|
1308
|
-
N.createElement("div", { className:
|
|
1323
|
+
{ className: d.mask },
|
|
1324
|
+
N.createElement("div", { className: d.offset }, typeof n == "function" ? n({
|
|
1309
1325
|
scrollableNodeRef: a,
|
|
1310
1326
|
scrollableNodeProps: ye(ye({}, h), { ref: a }),
|
|
1311
1327
|
contentNodeRef: l,
|
|
1312
1328
|
contentNodeProps: {
|
|
1313
|
-
className:
|
|
1329
|
+
className: d.contentEl,
|
|
1314
1330
|
ref: l
|
|
1315
1331
|
}
|
|
1316
1332
|
}) : N.createElement(
|
|
1317
1333
|
"div",
|
|
1318
1334
|
ye({}, h),
|
|
1319
|
-
N.createElement("div", { className:
|
|
1335
|
+
N.createElement("div", { className: d.contentEl }, n)
|
|
1320
1336
|
))
|
|
1321
1337
|
),
|
|
1322
|
-
N.createElement("div", { className:
|
|
1338
|
+
N.createElement("div", { className: d.placeholder })
|
|
1323
1339
|
),
|
|
1324
1340
|
N.createElement(
|
|
1325
1341
|
"div",
|
|
1326
|
-
{ className: "".concat(
|
|
1327
|
-
N.createElement("div", { className:
|
|
1342
|
+
{ className: "".concat(d.track, " simplebar-horizontal") },
|
|
1343
|
+
N.createElement("div", { className: d.scrollbar })
|
|
1328
1344
|
),
|
|
1329
1345
|
N.createElement(
|
|
1330
1346
|
"div",
|
|
1331
|
-
{ className: "".concat(
|
|
1332
|
-
N.createElement("div", { className:
|
|
1347
|
+
{ className: "".concat(d.track, " simplebar-vertical") },
|
|
1348
|
+
N.createElement("div", { className: d.scrollbar })
|
|
1333
1349
|
)
|
|
1334
1350
|
);
|
|
1335
1351
|
});
|
|
@@ -1379,11 +1395,11 @@ function Cd(e, t, n, r) {
|
|
|
1379
1395
|
lu(() => {
|
|
1380
1396
|
c && c.update(n, o);
|
|
1381
1397
|
});
|
|
1382
|
-
const
|
|
1398
|
+
const u = ze(!!(n[Va] && !window.HandoffComplete));
|
|
1383
1399
|
return Sd(() => {
|
|
1384
|
-
c && (c.render(),
|
|
1400
|
+
c && (c.render(), u.current && c.animationState && c.animationState.animateChanges());
|
|
1385
1401
|
}), be(() => {
|
|
1386
|
-
c && (c.updateFeatures(), !
|
|
1402
|
+
c && (c.updateFeatures(), !u.current && c.animationState && c.animationState.animateChanges(), u.current && (u.current = !1, window.HandoffComplete = !0));
|
|
1387
1403
|
}), c;
|
|
1388
1404
|
}
|
|
1389
1405
|
function Ot(e) {
|
|
@@ -1476,17 +1492,17 @@ function Od({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
|
|
|
1476
1492
|
e && Ad(e);
|
|
1477
1493
|
function s(a, l) {
|
|
1478
1494
|
let c;
|
|
1479
|
-
const
|
|
1495
|
+
const u = {
|
|
1480
1496
|
...ie(Da),
|
|
1481
1497
|
...a,
|
|
1482
1498
|
layoutId: Md(a)
|
|
1483
|
-
}, { isStatic:
|
|
1484
|
-
if (!
|
|
1485
|
-
h.visualElement = Cd(i, p,
|
|
1499
|
+
}, { isStatic: d } = u, h = Pd(a), p = r(a, d);
|
|
1500
|
+
if (!d && mr) {
|
|
1501
|
+
h.visualElement = Cd(i, p, u, t);
|
|
1486
1502
|
const y = ie($a), f = ie(Ra).strict;
|
|
1487
1503
|
h.visualElement && (c = h.visualElement.loadFeatures(
|
|
1488
1504
|
// Note: Pass the full new combined props to correctly re-render dynamic feature components.
|
|
1489
|
-
|
|
1505
|
+
u,
|
|
1490
1506
|
f,
|
|
1491
1507
|
e,
|
|
1492
1508
|
y
|
|
@@ -1495,8 +1511,8 @@ function Od({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
|
|
|
1495
1511
|
return N.createElement(
|
|
1496
1512
|
pr.Provider,
|
|
1497
1513
|
{ value: h },
|
|
1498
|
-
c && h.visualElement ? N.createElement(c, { visualElement: h.visualElement, ...
|
|
1499
|
-
n(i, a, Td(p, h.visualElement, l), p,
|
|
1514
|
+
c && h.visualElement ? N.createElement(c, { visualElement: h.visualElement, ...u }) : null,
|
|
1515
|
+
n(i, a, Td(p, h.visualElement, l), p, d, h.visualElement)
|
|
1500
1516
|
);
|
|
1501
1517
|
}
|
|
1502
1518
|
const o = ya(s);
|
|
@@ -1705,24 +1721,24 @@ const xn = (e) => ({
|
|
|
1705
1721
|
};
|
|
1706
1722
|
function Pi(e, t, n, r) {
|
|
1707
1723
|
const { style: i, vars: s, transform: o, transformOrigin: a } = e;
|
|
1708
|
-
let l = !1, c = !1,
|
|
1709
|
-
for (const
|
|
1710
|
-
const h = t[
|
|
1711
|
-
if (ja(
|
|
1712
|
-
s[
|
|
1724
|
+
let l = !1, c = !1, u = !0;
|
|
1725
|
+
for (const d in t) {
|
|
1726
|
+
const h = t[d];
|
|
1727
|
+
if (ja(d)) {
|
|
1728
|
+
s[d] = h;
|
|
1713
1729
|
continue;
|
|
1714
1730
|
}
|
|
1715
|
-
const p = Wa[
|
|
1716
|
-
if (yt.has(
|
|
1717
|
-
if (l = !0, o[
|
|
1731
|
+
const p = Wa[d], y = zd(h, p);
|
|
1732
|
+
if (yt.has(d)) {
|
|
1733
|
+
if (l = !0, o[d] = y, !u)
|
|
1718
1734
|
continue;
|
|
1719
|
-
h !== (p.default || 0) && (
|
|
1735
|
+
h !== (p.default || 0) && (u = !1);
|
|
1720
1736
|
} else
|
|
1721
|
-
|
|
1737
|
+
d.startsWith("origin") ? (c = !0, a[d] = y) : i[d] = y;
|
|
1722
1738
|
}
|
|
1723
|
-
if (t.transform || (l || r ? i.transform = Ld(e.transform, n,
|
|
1724
|
-
const { originX:
|
|
1725
|
-
i.transformOrigin = `${
|
|
1739
|
+
if (t.transform || (l || r ? i.transform = Ld(e.transform, n, u, r) : i.transform && (i.transform = "none")), c) {
|
|
1740
|
+
const { originX: d = "50%", originY: h = "50%", originZ: p = 0 } = a;
|
|
1741
|
+
i.transformOrigin = `${d} ${h} ${p}`;
|
|
1726
1742
|
}
|
|
1727
1743
|
}
|
|
1728
1744
|
const Ai = () => ({
|
|
@@ -1832,8 +1848,8 @@ function ki(e, {
|
|
|
1832
1848
|
pathOffset: l = 0,
|
|
1833
1849
|
// This is object creation, which we try to avoid per-frame.
|
|
1834
1850
|
...c
|
|
1835
|
-
},
|
|
1836
|
-
if (Pi(e, c,
|
|
1851
|
+
}, u, d, h) {
|
|
1852
|
+
if (Pi(e, c, u, h), d) {
|
|
1837
1853
|
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
|
|
1838
1854
|
return;
|
|
1839
1855
|
}
|
|
@@ -1861,13 +1877,13 @@ function Qd(e, t, n, r) {
|
|
|
1861
1877
|
}
|
|
1862
1878
|
function e0(e = !1) {
|
|
1863
1879
|
return (n, r, i, { latestValues: s }, o) => {
|
|
1864
|
-
const l = (_i(n) ? Qd : Ud)(r, s, o, n),
|
|
1880
|
+
const l = (_i(n) ? Qd : Ud)(r, s, o, n), u = {
|
|
1865
1881
|
...qd(r, typeof n == "string", e),
|
|
1866
1882
|
...l,
|
|
1867
1883
|
ref: i
|
|
1868
|
-
}, { children:
|
|
1884
|
+
}, { children: d } = r, h = hr(() => pe(d) ? d.get() : d, [d]);
|
|
1869
1885
|
return en(n, {
|
|
1870
|
-
...
|
|
1886
|
+
...u,
|
|
1871
1887
|
children: h
|
|
1872
1888
|
});
|
|
1873
1889
|
};
|
|
@@ -1952,10 +1968,10 @@ function o0(e, t, n, r) {
|
|
|
1952
1968
|
let { initial: o, animate: a } = e;
|
|
1953
1969
|
const l = yr(e), c = Ia(e);
|
|
1954
1970
|
t && c && !l && e.inherit !== !1 && (o === void 0 && (o = t.initial), a === void 0 && (a = t.animate));
|
|
1955
|
-
let
|
|
1956
|
-
|
|
1957
|
-
const
|
|
1958
|
-
return
|
|
1971
|
+
let u = n ? n.initial === !1 : !1;
|
|
1972
|
+
u = u || o === !1;
|
|
1973
|
+
const d = u ? a : o;
|
|
1974
|
+
return d && typeof d != "boolean" && !gr(d) && (Array.isArray(d) ? d : [d]).forEach((p) => {
|
|
1959
1975
|
const y = Ni(e, p);
|
|
1960
1976
|
if (!y)
|
|
1961
1977
|
return;
|
|
@@ -1963,7 +1979,7 @@ function o0(e, t, n, r) {
|
|
|
1963
1979
|
for (const w in b) {
|
|
1964
1980
|
let x = b[w];
|
|
1965
1981
|
if (Array.isArray(x)) {
|
|
1966
|
-
const S =
|
|
1982
|
+
const S = u ? x.length - 1 : 0;
|
|
1967
1983
|
x = x[S];
|
|
1968
1984
|
}
|
|
1969
1985
|
x !== null && (i[w] = x);
|
|
@@ -1995,9 +2011,9 @@ function s0(e) {
|
|
|
1995
2011
|
/**
|
|
1996
2012
|
* Schedule a process to run on the next frame.
|
|
1997
2013
|
*/
|
|
1998
|
-
schedule: (l, c = !1,
|
|
1999
|
-
const
|
|
2000
|
-
return c && o.add(l), h.add(l) &&
|
|
2014
|
+
schedule: (l, c = !1, u = !1) => {
|
|
2015
|
+
const d = u && i, h = d ? t : n;
|
|
2016
|
+
return c && o.add(l), h.add(l) && d && i && (r = t.order.length), l;
|
|
2001
2017
|
},
|
|
2002
2018
|
/**
|
|
2003
2019
|
* Cancel the provided callback from running on the next frame.
|
|
@@ -2015,8 +2031,8 @@ function s0(e) {
|
|
|
2015
2031
|
}
|
|
2016
2032
|
if (i = !0, [t, n] = [n, t], n.clear(), r = t.order.length, r)
|
|
2017
2033
|
for (let c = 0; c < r; c++) {
|
|
2018
|
-
const
|
|
2019
|
-
|
|
2034
|
+
const u = t.order[c];
|
|
2035
|
+
u(l), o.has(u) && (a.schedule(u), e());
|
|
2020
2036
|
}
|
|
2021
2037
|
i = !1, s && (s = !1, a.process(l));
|
|
2022
2038
|
}
|
|
@@ -2037,16 +2053,16 @@ function l0(e, t) {
|
|
|
2037
2053
|
delta: 0,
|
|
2038
2054
|
timestamp: 0,
|
|
2039
2055
|
isProcessing: !1
|
|
2040
|
-
}, s = Rn.reduce((
|
|
2041
|
-
const
|
|
2042
|
-
n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(
|
|
2056
|
+
}, s = Rn.reduce((d, h) => (d[h] = s0(() => n = !0), d), {}), o = (d) => s[d].process(i), a = () => {
|
|
2057
|
+
const d = performance.now();
|
|
2058
|
+
n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(d - i.timestamp, a0), 1), i.timestamp = d, i.isProcessing = !0, Rn.forEach(o), i.isProcessing = !1, n && t && (r = !1, e(a));
|
|
2043
2059
|
}, l = () => {
|
|
2044
2060
|
n = !0, r = !0, i.isProcessing || e(a);
|
|
2045
2061
|
};
|
|
2046
|
-
return { schedule: Rn.reduce((
|
|
2062
|
+
return { schedule: Rn.reduce((d, h) => {
|
|
2047
2063
|
const p = s[h];
|
|
2048
|
-
return
|
|
2049
|
-
}, {}), cancel: (
|
|
2064
|
+
return d[h] = (y, f = !1, m = !1) => (n || l(), p.schedule(y, f, m)), d;
|
|
2065
|
+
}, {}), cancel: (d) => Rn.forEach((h) => s[h].cancel(d)), state: i, steps: s };
|
|
2050
2066
|
}
|
|
2051
2067
|
const { schedule: Y, cancel: Ge, state: le, steps: $r } = l0(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Q, !0), c0 = {
|
|
2052
2068
|
useVisualState: Za({
|
|
@@ -2192,9 +2208,9 @@ class g0 extends at {
|
|
|
2192
2208
|
const r = this.node.getProps(), s = Ue(window, "pointerup", (a, l) => {
|
|
2193
2209
|
if (!this.checkPressEnd())
|
|
2194
2210
|
return;
|
|
2195
|
-
const { onTap: c, onTapCancel:
|
|
2211
|
+
const { onTap: c, onTapCancel: u, globalTapTarget: d } = this.node.getProps();
|
|
2196
2212
|
Y.update(() => {
|
|
2197
|
-
!
|
|
2213
|
+
!d && !nl(this.node.current, a.target) ? u && u(a, l) : c && c(a, l);
|
|
2198
2214
|
});
|
|
2199
2215
|
}, { passive: !(r.onTap || r.onPointerUp) }), o = Ue(window, "pointercancel", (a, l) => this.cancelPress(a, l), { passive: !(r.onTapCancel || r.onPointerCancel) });
|
|
2200
2216
|
this.removeEndListeners = nt(s, o), this.startPress(t, n);
|
|
@@ -2204,8 +2220,8 @@ class g0 extends at {
|
|
|
2204
2220
|
return;
|
|
2205
2221
|
const o = (a) => {
|
|
2206
2222
|
a.key !== "Enter" || !this.checkPressEnd() || zr("up", (l, c) => {
|
|
2207
|
-
const { onTap:
|
|
2208
|
-
|
|
2223
|
+
const { onTap: u } = this.node.getProps();
|
|
2224
|
+
u && Y.update(() => u(l, c));
|
|
2209
2225
|
});
|
|
2210
2226
|
};
|
|
2211
2227
|
this.removeEndListeners(), this.removeEndListeners = He(this.node.current, "keyup", o), zr("down", (a, l) => {
|
|
@@ -2276,7 +2292,7 @@ class S0 extends at {
|
|
|
2276
2292
|
if (this.isInView === c || (this.isInView = c, s && !c && this.hasEnteredView))
|
|
2277
2293
|
return;
|
|
2278
2294
|
c && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", c);
|
|
2279
|
-
const { onViewportEnter:
|
|
2295
|
+
const { onViewportEnter: u, onViewportLeave: d } = this.node.getProps(), h = c ? u : d;
|
|
2280
2296
|
h && h(l);
|
|
2281
2297
|
};
|
|
2282
2298
|
return x0(this.node.current, o, a);
|
|
@@ -2364,11 +2380,11 @@ function al(e) {
|
|
|
2364
2380
|
function A0(e, t, n, { delay: r = 0, duration: i, repeat: s = 0, repeatType: o = "loop", ease: a, times: l } = {}) {
|
|
2365
2381
|
const c = { [t]: n };
|
|
2366
2382
|
l && (c.offset = l);
|
|
2367
|
-
const
|
|
2368
|
-
return Array.isArray(
|
|
2383
|
+
const u = al(a);
|
|
2384
|
+
return Array.isArray(u) && (c.easing = u), e.animate(c, {
|
|
2369
2385
|
delay: r,
|
|
2370
2386
|
duration: i,
|
|
2371
|
-
easing: Array.isArray(
|
|
2387
|
+
easing: Array.isArray(u) ? "linear" : u,
|
|
2372
2388
|
fill: "both",
|
|
2373
2389
|
iterations: s + 1,
|
|
2374
2390
|
direction: o === "reverse" ? "alternate" : "normal"
|
|
@@ -2590,12 +2606,12 @@ function Tl(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
|
2590
2606
|
return () => t[0];
|
|
2591
2607
|
e[0] > e[s - 1] && (e = [...e].reverse(), t = [...t].reverse());
|
|
2592
2608
|
const o = K0(t, r, i), a = o.length, l = (c) => {
|
|
2593
|
-
let
|
|
2609
|
+
let u = 0;
|
|
2594
2610
|
if (a > 1)
|
|
2595
|
-
for (;
|
|
2611
|
+
for (; u < e.length - 2 && !(c < e[u + 1]); u++)
|
|
2596
2612
|
;
|
|
2597
|
-
const
|
|
2598
|
-
return o[
|
|
2613
|
+
const d = dn(e[u], e[u + 1], c);
|
|
2614
|
+
return o[u](d);
|
|
2599
2615
|
};
|
|
2600
2616
|
return n ? (c) => l(it(e[0], e[s - 1], c)) : l;
|
|
2601
2617
|
}
|
|
@@ -2647,17 +2663,17 @@ function of({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: r = 1
|
|
|
2647
2663
|
wn(e <= rt(No), "Spring duration must be 10 seconds or less");
|
|
2648
2664
|
let o = 1 - t;
|
|
2649
2665
|
o = it(nf, rf, o), e = it(tf, No, Ye(e)), o < 1 ? (i = (c) => {
|
|
2650
|
-
const
|
|
2666
|
+
const u = c * o, d = u * e, h = u - n, p = ri(c, o), y = Math.exp(-d);
|
|
2651
2667
|
return Ur - h / p * y;
|
|
2652
2668
|
}, s = (c) => {
|
|
2653
|
-
const
|
|
2669
|
+
const d = c * o * e, h = d * n + n, p = Math.pow(o, 2) * Math.pow(c, 2) * e, y = Math.exp(-d), f = ri(Math.pow(c, 2), o);
|
|
2654
2670
|
return (-i(c) + Ur > 0 ? -1 : 1) * ((h - p) * y) / f;
|
|
2655
2671
|
}) : (i = (c) => {
|
|
2656
|
-
const
|
|
2657
|
-
return -Ur +
|
|
2672
|
+
const u = Math.exp(-c * e), d = (c - n) * e + 1;
|
|
2673
|
+
return -Ur + u * d;
|
|
2658
2674
|
}, s = (c) => {
|
|
2659
|
-
const
|
|
2660
|
-
return
|
|
2675
|
+
const u = Math.exp(-c * e), d = (n - c) * (e * e);
|
|
2676
|
+
return u * d;
|
|
2661
2677
|
});
|
|
2662
2678
|
const a = 5 / e, l = af(i, s, a);
|
|
2663
2679
|
if (e = rt(e), isNaN(l))
|
|
@@ -2709,10 +2725,10 @@ function uf(e) {
|
|
|
2709
2725
|
return t;
|
|
2710
2726
|
}
|
|
2711
2727
|
function Al({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
2712
|
-
const i = e[0], s = e[e.length - 1], o = { done: !1, value: i }, { stiffness: a, damping: l, mass: c, duration:
|
|
2728
|
+
const i = e[0], s = e[e.length - 1], o = { done: !1, value: i }, { stiffness: a, damping: l, mass: c, duration: u, velocity: d, isResolvedFromDuration: h } = uf({
|
|
2713
2729
|
...r,
|
|
2714
2730
|
velocity: -Ye(r.velocity || 0)
|
|
2715
|
-
}), p =
|
|
2731
|
+
}), p = d || 0, y = l / (2 * Math.sqrt(a * c)), f = s - i, m = Ye(Math.sqrt(a / c)), b = Math.abs(f) < 5;
|
|
2716
2732
|
n || (n = b ? 0.01 : 2), t || (t = b ? 5e-3 : 0.5);
|
|
2717
2733
|
let w;
|
|
2718
2734
|
if (y < 1) {
|
|
@@ -2731,11 +2747,11 @@ function Al({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
|
2731
2747
|
};
|
|
2732
2748
|
}
|
|
2733
2749
|
return {
|
|
2734
|
-
calculatedDuration: h &&
|
|
2750
|
+
calculatedDuration: h && u || null,
|
|
2735
2751
|
next: (x) => {
|
|
2736
2752
|
const S = w(x);
|
|
2737
2753
|
if (h)
|
|
2738
|
-
o.done = x >=
|
|
2754
|
+
o.done = x >= u;
|
|
2739
2755
|
else {
|
|
2740
2756
|
let v = p;
|
|
2741
2757
|
x !== 0 && (y < 1 ? v = Pl(w, x, S) : v = 0);
|
|
@@ -2746,14 +2762,14 @@ function Al({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
|
2746
2762
|
}
|
|
2747
2763
|
};
|
|
2748
2764
|
}
|
|
2749
|
-
function Ro({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: s = 500, modifyTarget: o, min: a, max: l, restDelta: c = 0.5, restSpeed:
|
|
2750
|
-
const
|
|
2765
|
+
function Ro({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: s = 500, modifyTarget: o, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
|
|
2766
|
+
const d = e[0], h = {
|
|
2751
2767
|
done: !1,
|
|
2752
|
-
value:
|
|
2768
|
+
value: d
|
|
2753
2769
|
}, p = (T) => a !== void 0 && T < a || l !== void 0 && T > l, y = (T) => a === void 0 ? l : l === void 0 || Math.abs(a - T) < Math.abs(l - T) ? a : l;
|
|
2754
2770
|
let f = n * t;
|
|
2755
|
-
const m =
|
|
2756
|
-
b !== m && (f = b -
|
|
2771
|
+
const m = d + f, b = o === void 0 ? m : o(m);
|
|
2772
|
+
b !== m && (f = b - d);
|
|
2757
2773
|
const w = (T) => -f * Math.exp(-T / r), x = (T) => b + w(T), S = (T) => {
|
|
2758
2774
|
const P = w(T), D = x(T);
|
|
2759
2775
|
h.done = Math.abs(P) <= c, h.value = h.done ? b : D;
|
|
@@ -2766,7 +2782,7 @@ function Ro({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
2766
2782
|
damping: i,
|
|
2767
2783
|
stiffness: s,
|
|
2768
2784
|
restDelta: c,
|
|
2769
|
-
restSpeed:
|
|
2785
|
+
restSpeed: u
|
|
2770
2786
|
}));
|
|
2771
2787
|
};
|
|
2772
2788
|
return C(0), {
|
|
@@ -2804,7 +2820,7 @@ const ff = {
|
|
|
2804
2820
|
keyframes: ir,
|
|
2805
2821
|
spring: Al
|
|
2806
2822
|
};
|
|
2807
|
-
function or({ autoplay: e = !0, delay: t = 0, driver: n = df, keyframes: r, type: i = "keyframes", repeat: s = 0, repeatDelay: o = 0, repeatType: a = "loop", onPlay: l, onStop: c, onComplete:
|
|
2823
|
+
function or({ autoplay: e = !0, delay: t = 0, driver: n = df, keyframes: r, type: i = "keyframes", repeat: s = 0, repeatDelay: o = 0, repeatType: a = "loop", onPlay: l, onStop: c, onComplete: u, onUpdate: d, ...h }) {
|
|
2808
2824
|
let p = 1, y = !1, f, m;
|
|
2809
2825
|
const b = () => {
|
|
2810
2826
|
m = new Promise((B) => {
|
|
@@ -2848,13 +2864,13 @@ function or({ autoplay: e = !0, delay: t = 0, driver: n = df, keyframes: r, type
|
|
|
2848
2864
|
let { done: xt } = We;
|
|
2849
2865
|
!je && O !== null && (xt = p >= 0 ? H >= q : H <= 0);
|
|
2850
2866
|
const Ut = T === null && (C === "finished" || C === "running" && xt);
|
|
2851
|
-
return
|
|
2867
|
+
return d && d(We.value), Ut && ue(), We;
|
|
2852
2868
|
}, U = () => {
|
|
2853
2869
|
w && w.stop(), w = void 0;
|
|
2854
2870
|
}, ce = () => {
|
|
2855
2871
|
C = "idle", U(), f(), b(), P = D = null;
|
|
2856
2872
|
}, ue = () => {
|
|
2857
|
-
C = "finished",
|
|
2873
|
+
C = "finished", u && u(), U(), f();
|
|
2858
2874
|
}, ge = () => {
|
|
2859
2875
|
if (y)
|
|
2860
2876
|
return;
|
|
@@ -2918,27 +2934,27 @@ function vf(e, t, { onUpdate: n, onComplete: r, ...i }) {
|
|
|
2918
2934
|
if (!(pf() && mf.has(t) && !i.repeatDelay && i.repeatType !== "mirror" && i.damping !== 0 && i.type !== "inertia"))
|
|
2919
2935
|
return !1;
|
|
2920
2936
|
let o = !1, a, l, c = !1;
|
|
2921
|
-
const
|
|
2937
|
+
const u = () => {
|
|
2922
2938
|
l = new Promise((x) => {
|
|
2923
2939
|
a = x;
|
|
2924
2940
|
});
|
|
2925
2941
|
};
|
|
2926
|
-
|
|
2927
|
-
let { keyframes:
|
|
2942
|
+
u();
|
|
2943
|
+
let { keyframes: d, duration: h = 300, ease: p, times: y } = i;
|
|
2928
2944
|
if (yf(t, i)) {
|
|
2929
2945
|
const x = or({
|
|
2930
2946
|
...i,
|
|
2931
2947
|
repeat: 0,
|
|
2932
2948
|
delay: 0
|
|
2933
2949
|
});
|
|
2934
|
-
let S = { done: !1, value:
|
|
2950
|
+
let S = { done: !1, value: d[0] };
|
|
2935
2951
|
const v = [];
|
|
2936
2952
|
let E = 0;
|
|
2937
2953
|
for (; !S.done && E < gf; )
|
|
2938
2954
|
S = x.sample(E), v.push(S.value), E += Vn;
|
|
2939
|
-
y = void 0,
|
|
2955
|
+
y = void 0, d = v, h = E - Vn, p = "linear";
|
|
2940
2956
|
}
|
|
2941
|
-
const f = A0(e.owner.current, t,
|
|
2957
|
+
const f = A0(e.owner.current, t, d, {
|
|
2942
2958
|
...i,
|
|
2943
2959
|
duration: h,
|
|
2944
2960
|
/**
|
|
@@ -2954,10 +2970,10 @@ function vf(e, t, { onUpdate: n, onComplete: r, ...i }) {
|
|
|
2954
2970
|
}), m = () => {
|
|
2955
2971
|
c = !1, f.cancel();
|
|
2956
2972
|
}, b = () => {
|
|
2957
|
-
c = !0, Y.update(m), a(),
|
|
2973
|
+
c = !0, Y.update(m), a(), u();
|
|
2958
2974
|
};
|
|
2959
2975
|
return f.onfinish = () => {
|
|
2960
|
-
c || (e.set(k0(
|
|
2976
|
+
c || (e.set(k0(d, i)), r && r(), b());
|
|
2961
2977
|
}, {
|
|
2962
2978
|
then(x, S) {
|
|
2963
2979
|
return l.then(x, S);
|
|
@@ -3098,13 +3114,13 @@ function Of(e, t, n, r) {
|
|
|
3098
3114
|
s[c] === null && (s[c] = c === 0 ? o : s[c - 1]), kf(s[c]) && l.push(c), typeof s[c] == "string" && s[c] !== "none" && s[c] !== "0" && (a = s[c]);
|
|
3099
3115
|
if (i && l.length && a)
|
|
3100
3116
|
for (let c = 0; c < l.length; c++) {
|
|
3101
|
-
const
|
|
3102
|
-
s[
|
|
3117
|
+
const u = l[c];
|
|
3118
|
+
s[u] = kl(t, a);
|
|
3103
3119
|
}
|
|
3104
3120
|
return s;
|
|
3105
3121
|
}
|
|
3106
|
-
function Mf({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: s, repeatType: o, repeatDelay: a, from: l, elapsed: c, ...
|
|
3107
|
-
return !!Object.keys(
|
|
3122
|
+
function Mf({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: s, repeatType: o, repeatDelay: a, from: l, elapsed: c, ...u }) {
|
|
3123
|
+
return !!Object.keys(u).length;
|
|
3108
3124
|
}
|
|
3109
3125
|
function Li(e, t) {
|
|
3110
3126
|
return e[t] || e.default || e;
|
|
@@ -3115,8 +3131,8 @@ const Nf = {
|
|
|
3115
3131
|
const s = Li(r, e) || {}, o = s.delay || r.delay || 0;
|
|
3116
3132
|
let { elapsed: a = 0 } = r;
|
|
3117
3133
|
a = a - rt(o);
|
|
3118
|
-
const l = Of(t, e, n, s), c = l[0],
|
|
3119
|
-
wn(
|
|
3134
|
+
const l = Of(t, e, n, s), c = l[0], u = l[l.length - 1], d = ii(e, c), h = ii(e, u);
|
|
3135
|
+
wn(d === h, `You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);
|
|
3120
3136
|
let p = {
|
|
3121
3137
|
keyframes: l,
|
|
3122
3138
|
velocity: t.getVelocity(),
|
|
@@ -3133,7 +3149,7 @@ const Nf = {
|
|
|
3133
3149
|
if (Mf(s) || (p = {
|
|
3134
3150
|
...p,
|
|
3135
3151
|
...Cf(e, p)
|
|
3136
|
-
}), p.duration && (p.duration = rt(p.duration)), p.repeatDelay && (p.repeatDelay = rt(p.repeatDelay)), !
|
|
3152
|
+
}), p.duration && (p.duration = rt(p.duration)), p.repeatDelay && (p.repeatDelay = rt(p.repeatDelay)), !d || !h || P0.current || s.type === !1 || Nf.skipAnimations)
|
|
3137
3153
|
return bf(p);
|
|
3138
3154
|
if (
|
|
3139
3155
|
/**
|
|
@@ -3409,8 +3425,8 @@ function Ff(e, t, n) {
|
|
|
3409
3425
|
if (o)
|
|
3410
3426
|
for (let a = 0; a < o; a++) {
|
|
3411
3427
|
const l = s[a], c = t[l];
|
|
3412
|
-
let
|
|
3413
|
-
Array.isArray(c) && (
|
|
3428
|
+
let u = null;
|
|
3429
|
+
Array.isArray(c) && (u = c[0]), u === null && (u = (i = (r = n[l]) !== null && r !== void 0 ? r : e.readValue(l)) !== null && i !== void 0 ? i : t[l]), u != null && (typeof u == "string" && (Ml(u) || Ol(u)) ? u = parseFloat(u) : !Lf(u) && ot.test(c) && (u = kl(l, c)), e.addValue(l, Lt(u, { owner: e })), n[l] === void 0 && (n[l] = u), u !== null && e.setBaseTarget(l, u));
|
|
3414
3430
|
}
|
|
3415
3431
|
}
|
|
3416
3432
|
function jf(e, t) {
|
|
@@ -3446,29 +3462,29 @@ function Rl(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
3446
3462
|
let { transition: s = e.getDefaultTransition(), transitionEnd: o, ...a } = e.makeTargetAnimatable(t);
|
|
3447
3463
|
const l = e.getValue("willChange");
|
|
3448
3464
|
r && (s = r);
|
|
3449
|
-
const c = [],
|
|
3450
|
-
for (const
|
|
3451
|
-
const h = e.getValue(
|
|
3452
|
-
if (!h || p === void 0 ||
|
|
3465
|
+
const c = [], u = i && e.animationState && e.animationState.getState()[i];
|
|
3466
|
+
for (const d in a) {
|
|
3467
|
+
const h = e.getValue(d), p = a[d];
|
|
3468
|
+
if (!h || p === void 0 || u && Wf(u, d))
|
|
3453
3469
|
continue;
|
|
3454
3470
|
const y = {
|
|
3455
3471
|
delay: n,
|
|
3456
3472
|
elapsed: 0,
|
|
3457
|
-
...Li(s || {},
|
|
3473
|
+
...Li(s || {}, d)
|
|
3458
3474
|
};
|
|
3459
3475
|
if (window.HandoffAppearAnimations) {
|
|
3460
3476
|
const b = e.getProps()[Va];
|
|
3461
3477
|
if (b) {
|
|
3462
|
-
const w = window.HandoffAppearAnimations(b,
|
|
3478
|
+
const w = window.HandoffAppearAnimations(b, d, h, Y);
|
|
3463
3479
|
w !== null && (y.elapsed = w, y.isHandoff = !0);
|
|
3464
3480
|
}
|
|
3465
3481
|
}
|
|
3466
3482
|
let f = !y.isHandoff && !Hf(h, p);
|
|
3467
3483
|
if (y.type === "spring" && (h.getVelocity() || y.velocity) && (f = !1), h.animation && (f = !1), f)
|
|
3468
3484
|
continue;
|
|
3469
|
-
h.start($i(
|
|
3485
|
+
h.start($i(d, h, p, e.shouldReduceMotion && yt.has(d) ? { type: !1 } : y));
|
|
3470
3486
|
const m = h.animation;
|
|
3471
|
-
sr(l) && (l.add(
|
|
3487
|
+
sr(l) && (l.add(d), m.then(() => l.remove(d))), c.push(m);
|
|
3472
3488
|
}
|
|
3473
3489
|
return o && Promise.all(c).then(() => {
|
|
3474
3490
|
o && zf(e, o);
|
|
@@ -3479,8 +3495,8 @@ function si(e, t, n = {}) {
|
|
|
3479
3495
|
let { transition: i = e.getDefaultTransition() || {} } = r || {};
|
|
3480
3496
|
n.transitionOverride && (i = n.transitionOverride);
|
|
3481
3497
|
const s = r ? () => Promise.all(Rl(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (l = 0) => {
|
|
3482
|
-
const { delayChildren: c = 0, staggerChildren:
|
|
3483
|
-
return Uf(e, t, c + l,
|
|
3498
|
+
const { delayChildren: c = 0, staggerChildren: u, staggerDirection: d } = i;
|
|
3499
|
+
return Uf(e, t, c + l, u, d, n);
|
|
3484
3500
|
} : () => Promise.resolve(), { when: a } = i;
|
|
3485
3501
|
if (a) {
|
|
3486
3502
|
const [l, c] = a === "beforeChildren" ? [s, o] : [o, s];
|
|
@@ -3490,10 +3506,10 @@ function si(e, t, n = {}) {
|
|
|
3490
3506
|
}
|
|
3491
3507
|
function Uf(e, t, n = 0, r = 0, i = 1, s) {
|
|
3492
3508
|
const o = [], a = (e.variantChildren.size - 1) * r, l = i === 1 ? (c = 0) => c * r : (c = 0) => a - c * r;
|
|
3493
|
-
return Array.from(e.variantChildren).sort(Yf).forEach((c,
|
|
3509
|
+
return Array.from(e.variantChildren).sort(Yf).forEach((c, u) => {
|
|
3494
3510
|
c.notify("AnimationStart", t), o.push(si(c, t, {
|
|
3495
3511
|
...s,
|
|
3496
|
-
delay: n + l(
|
|
3512
|
+
delay: n + l(u)
|
|
3497
3513
|
}).then(() => c.notify("AnimationComplete", t)));
|
|
3498
3514
|
}), Promise.all(o);
|
|
3499
3515
|
}
|
|
@@ -3523,9 +3539,9 @@ function Zf(e) {
|
|
|
3523
3539
|
const n = Qf();
|
|
3524
3540
|
let r = !0;
|
|
3525
3541
|
const i = (l, c) => {
|
|
3526
|
-
const
|
|
3527
|
-
if (
|
|
3528
|
-
const { transition:
|
|
3542
|
+
const u = xr(e, c);
|
|
3543
|
+
if (u) {
|
|
3544
|
+
const { transition: d, transitionEnd: h, ...p } = u;
|
|
3529
3545
|
l = { ...l, ...p, ...h };
|
|
3530
3546
|
}
|
|
3531
3547
|
return l;
|
|
@@ -3534,12 +3550,12 @@ function Zf(e) {
|
|
|
3534
3550
|
t = l(e);
|
|
3535
3551
|
}
|
|
3536
3552
|
function o(l, c) {
|
|
3537
|
-
const
|
|
3553
|
+
const u = e.getProps(), d = e.getVariantContext(!0) || {}, h = [], p = /* @__PURE__ */ new Set();
|
|
3538
3554
|
let y = {}, f = 1 / 0;
|
|
3539
3555
|
for (let b = 0; b < Kf; b++) {
|
|
3540
|
-
const w = qf[b], x = n[w], S =
|
|
3556
|
+
const w = qf[b], x = n[w], S = u[w] !== void 0 ? u[w] : d[w], v = cn(S), E = w === c ? x.isActive : null;
|
|
3541
3557
|
E === !1 && (f = b);
|
|
3542
|
-
let C = S ===
|
|
3558
|
+
let C = S === d[w] && S !== u[w] && v;
|
|
3543
3559
|
if (C && r && e.manuallyAnimateOnMount && (C = !1), x.protectedKeys = { ...y }, // If it isn't active and hasn't *just* been set as inactive
|
|
3544
3560
|
!x.isActive && E === null || // If we didn't and don't have any defined prop for this animation type
|
|
3545
3561
|
!S && !x.prevProp || // Or if the prop doesn't define an animation
|
|
@@ -3577,17 +3593,17 @@ function Zf(e) {
|
|
|
3577
3593
|
}), h.push({ animation: b });
|
|
3578
3594
|
}
|
|
3579
3595
|
let m = !!h.length;
|
|
3580
|
-
return r && (
|
|
3596
|
+
return r && (u.initial === !1 || u.initial === u.animate) && !e.manuallyAnimateOnMount && (m = !1), r = !1, m ? t(h) : Promise.resolve();
|
|
3581
3597
|
}
|
|
3582
|
-
function a(l, c,
|
|
3583
|
-
var
|
|
3598
|
+
function a(l, c, u) {
|
|
3599
|
+
var d;
|
|
3584
3600
|
if (n[l].isActive === c)
|
|
3585
3601
|
return Promise.resolve();
|
|
3586
|
-
(
|
|
3602
|
+
(d = e.variantChildren) === null || d === void 0 || d.forEach((p) => {
|
|
3587
3603
|
var y;
|
|
3588
3604
|
return (y = p.animationState) === null || y === void 0 ? void 0 : y.setActive(l, c);
|
|
3589
3605
|
}), n[l].isActive = c;
|
|
3590
|
-
const h = o(
|
|
3606
|
+
const h = o(u, l);
|
|
3591
3607
|
for (const p in n)
|
|
3592
3608
|
n[p].protectedKeys = {};
|
|
3593
3609
|
return h;
|
|
@@ -3685,29 +3701,29 @@ class Vl {
|
|
|
3685
3701
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
|
|
3686
3702
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
3687
3703
|
return;
|
|
3688
|
-
const
|
|
3704
|
+
const d = Gr(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, p = ih(d.offset, { x: 0, y: 0 }) >= 3;
|
|
3689
3705
|
if (!h && !p)
|
|
3690
3706
|
return;
|
|
3691
|
-
const { point: y } =
|
|
3707
|
+
const { point: y } = d, { timestamp: f } = le;
|
|
3692
3708
|
this.history.push({ ...y, timestamp: f });
|
|
3693
3709
|
const { onStart: m, onMove: b } = this.handlers;
|
|
3694
|
-
h || (m && m(this.lastMoveEvent,
|
|
3695
|
-
}, this.handlePointerMove = (
|
|
3696
|
-
this.lastMoveEvent =
|
|
3697
|
-
}, this.handlePointerUp = (
|
|
3710
|
+
h || (m && m(this.lastMoveEvent, d), this.startEvent = this.lastMoveEvent), b && b(this.lastMoveEvent, d);
|
|
3711
|
+
}, this.handlePointerMove = (d, h) => {
|
|
3712
|
+
this.lastMoveEvent = d, this.lastMoveEventInfo = Yr(h, this.transformPagePoint), Y.update(this.updatePoint, !0);
|
|
3713
|
+
}, this.handlePointerUp = (d, h) => {
|
|
3698
3714
|
this.end();
|
|
3699
3715
|
const { onEnd: p, onSessionEnd: y, resumeAnimation: f } = this.handlers;
|
|
3700
3716
|
if (this.dragSnapToOrigin && f && f(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
3701
3717
|
return;
|
|
3702
|
-
const m = Gr(
|
|
3703
|
-
this.startEvent && p && p(
|
|
3718
|
+
const m = Gr(d.type === "pointercancel" ? this.lastMoveEventInfo : Yr(h, this.transformPagePoint), this.history);
|
|
3719
|
+
this.startEvent && p && p(d, m), y && y(d, m);
|
|
3704
3720
|
}, !Ja(t))
|
|
3705
3721
|
return;
|
|
3706
3722
|
this.dragSnapToOrigin = s, this.handlers = n, this.transformPagePoint = r, this.contextWindow = i || window;
|
|
3707
3723
|
const o = br(t), a = Yr(o, this.transformPagePoint), { point: l } = a, { timestamp: c } = le;
|
|
3708
3724
|
this.history = [{ ...l, timestamp: c }];
|
|
3709
|
-
const { onSessionStart:
|
|
3710
|
-
|
|
3725
|
+
const { onSessionStart: u } = n;
|
|
3726
|
+
u && u(t, Gr(a, this.history)), this.removeListeners = nt(Ue(this.contextWindow, "pointermove", this.handlePointerMove), Ue(this.contextWindow, "pointerup", this.handlePointerUp), Ue(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
3711
3727
|
}
|
|
3712
3728
|
updateHandlers(t) {
|
|
3713
3729
|
this.handlers = t;
|
|
@@ -3937,10 +3953,10 @@ class wh {
|
|
|
3937
3953
|
const { presenceContext: r } = this.visualElement;
|
|
3938
3954
|
if (r && r.isPresent === !1)
|
|
3939
3955
|
return;
|
|
3940
|
-
const i = (
|
|
3941
|
-
const { dragSnapToOrigin:
|
|
3942
|
-
|
|
3943
|
-
}, s = (
|
|
3956
|
+
const i = (u) => {
|
|
3957
|
+
const { dragSnapToOrigin: d } = this.getProps();
|
|
3958
|
+
d ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(br(u, "page").point);
|
|
3959
|
+
}, s = (u, d) => {
|
|
3944
3960
|
const { drag: h, dragPropagation: p, onDragStart: y } = this.getProps();
|
|
3945
3961
|
if (h && !p && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = el(h), !this.openGlobalLock))
|
|
3946
3962
|
return;
|
|
@@ -3954,22 +3970,22 @@ class wh {
|
|
|
3954
3970
|
}
|
|
3955
3971
|
}
|
|
3956
3972
|
this.originPoint[m] = b;
|
|
3957
|
-
}), y && Y.update(() => y(
|
|
3973
|
+
}), y && Y.update(() => y(u, d), !1, !0);
|
|
3958
3974
|
const { animationState: f } = this.visualElement;
|
|
3959
3975
|
f && f.setActive("whileDrag", !0);
|
|
3960
|
-
}, o = (
|
|
3976
|
+
}, o = (u, d) => {
|
|
3961
3977
|
const { dragPropagation: h, dragDirectionLock: p, onDirectionLock: y, onDrag: f } = this.getProps();
|
|
3962
3978
|
if (!h && !this.openGlobalLock)
|
|
3963
3979
|
return;
|
|
3964
|
-
const { offset: m } =
|
|
3980
|
+
const { offset: m } = d;
|
|
3965
3981
|
if (p && this.currentDirection === null) {
|
|
3966
3982
|
this.currentDirection = Sh(m), this.currentDirection !== null && y && y(this.currentDirection);
|
|
3967
3983
|
return;
|
|
3968
3984
|
}
|
|
3969
|
-
this.updateAxis("x",
|
|
3970
|
-
}, a = (
|
|
3971
|
-
var
|
|
3972
|
-
return this.getAnimationState(
|
|
3985
|
+
this.updateAxis("x", d.point, m), this.updateAxis("y", d.point, m), this.visualElement.render(), f && f(u, d);
|
|
3986
|
+
}, a = (u, d) => this.stop(u, d), l = () => Ce((u) => {
|
|
3987
|
+
var d;
|
|
3988
|
+
return this.getAnimationState(u) === "paused" && ((d = this.getAxisMotionValue(u).animation) === null || d === void 0 ? void 0 : d.play());
|
|
3973
3989
|
}), { dragSnapToOrigin: c } = this.getProps();
|
|
3974
3990
|
this.panSession = new Vl(t, {
|
|
3975
3991
|
onSessionStart: i,
|
|
@@ -4032,23 +4048,23 @@ class wh {
|
|
|
4032
4048
|
return o;
|
|
4033
4049
|
}
|
|
4034
4050
|
startAnimation(t) {
|
|
4035
|
-
const { drag: n, dragMomentum: r, dragElastic: i, dragTransition: s, dragSnapToOrigin: o, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = Ce((
|
|
4036
|
-
if (!In(
|
|
4051
|
+
const { drag: n, dragMomentum: r, dragElastic: i, dragTransition: s, dragSnapToOrigin: o, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = Ce((u) => {
|
|
4052
|
+
if (!In(u, n, this.currentDirection))
|
|
4037
4053
|
return;
|
|
4038
|
-
let
|
|
4039
|
-
o && (
|
|
4054
|
+
let d = l && l[u] || {};
|
|
4055
|
+
o && (d = { min: 0, max: 0 });
|
|
4040
4056
|
const h = i ? 200 : 1e6, p = i ? 40 : 1e7, y = {
|
|
4041
4057
|
type: "inertia",
|
|
4042
|
-
velocity: r ? t[
|
|
4058
|
+
velocity: r ? t[u] : 0,
|
|
4043
4059
|
bounceStiffness: h,
|
|
4044
4060
|
bounceDamping: p,
|
|
4045
4061
|
timeConstant: 750,
|
|
4046
4062
|
restDelta: 1,
|
|
4047
4063
|
restSpeed: 10,
|
|
4048
4064
|
...s,
|
|
4049
|
-
...
|
|
4065
|
+
...d
|
|
4050
4066
|
};
|
|
4051
|
-
return this.startAxisValueAnimation(
|
|
4067
|
+
return this.startAxisValueAnimation(u, y);
|
|
4052
4068
|
});
|
|
4053
4069
|
return Promise.all(c).then(a);
|
|
4054
4070
|
}
|
|
@@ -4124,17 +4140,17 @@ class wh {
|
|
|
4124
4140
|
return;
|
|
4125
4141
|
xh.set(this.visualElement, this);
|
|
4126
4142
|
const t = this.visualElement.current, n = Ue(t, "pointerdown", (l) => {
|
|
4127
|
-
const { drag: c, dragListener:
|
|
4128
|
-
c &&
|
|
4143
|
+
const { drag: c, dragListener: u = !0 } = this.getProps();
|
|
4144
|
+
c && u && this.start(l);
|
|
4129
4145
|
}), r = () => {
|
|
4130
4146
|
const { dragConstraints: l } = this.getProps();
|
|
4131
4147
|
Ot(l) && (this.constraints = this.resolveRefConstraints());
|
|
4132
4148
|
}, { projection: i } = this.visualElement, s = i.addEventListener("measure", r);
|
|
4133
4149
|
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), r();
|
|
4134
4150
|
const o = He(window, "resize", () => this.scalePositionWithinConstraints()), a = i.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => {
|
|
4135
|
-
this.isDragging && c && (Ce((
|
|
4136
|
-
const
|
|
4137
|
-
|
|
4151
|
+
this.isDragging && c && (Ce((u) => {
|
|
4152
|
+
const d = this.getAxisMotionValue(u);
|
|
4153
|
+
d && (this.originPoint[u] += l[u].translate, d.set(d.get() + l[u].translate));
|
|
4138
4154
|
}), this.visualElement.render());
|
|
4139
4155
|
});
|
|
4140
4156
|
return () => {
|
|
@@ -4430,8 +4446,8 @@ function us(e, t, n) {
|
|
|
4430
4446
|
let r = "";
|
|
4431
4447
|
const i = e.x.translate / t.x, s = e.y.translate / t.y;
|
|
4432
4448
|
if ((i || s) && (r = `translate3d(${i}px, ${s}px, 0) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
|
|
4433
|
-
const { rotate: l, rotateX: c, rotateY:
|
|
4434
|
-
l && (r += `rotate(${l}deg) `), c && (r += `rotateX(${c}deg) `),
|
|
4449
|
+
const { rotate: l, rotateX: c, rotateY: u } = n;
|
|
4450
|
+
l && (r += `rotate(${l}deg) `), c && (r += `rotateX(${c}deg) `), u && (r += `rotateY(${u}deg) `);
|
|
4435
4451
|
}
|
|
4436
4452
|
const o = e.x.scale * t.x, a = e.y.scale * t.y;
|
|
4437
4453
|
return (o !== 1 || a !== 1) && (r += `scale(${o}, ${a})`), r || "none";
|
|
@@ -4505,28 +4521,28 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4505
4521
|
if (this.instance)
|
|
4506
4522
|
return;
|
|
4507
4523
|
this.isSVG = Bh(o), this.instance = o;
|
|
4508
|
-
const { layoutId: l, layout: c, visualElement:
|
|
4509
|
-
if (
|
|
4510
|
-
let
|
|
4524
|
+
const { layoutId: l, layout: c, visualElement: u } = this.options;
|
|
4525
|
+
if (u && !u.current && u.mount(o), this.root.nodes.add(this), this.parent && this.parent.children.add(this), a && (c || l) && (this.isLayoutDirty = !0), e) {
|
|
4526
|
+
let d;
|
|
4511
4527
|
const h = () => this.root.updateBlockedByResize = !1;
|
|
4512
4528
|
e(o, () => {
|
|
4513
|
-
this.root.updateBlockedByResize = !0,
|
|
4529
|
+
this.root.updateBlockedByResize = !0, d && d(), d = Fh(h, 250), Bn.hasAnimatedSinceResize && (Bn.hasAnimatedSinceResize = !1, this.nodes.forEach(ps));
|
|
4514
4530
|
});
|
|
4515
4531
|
}
|
|
4516
|
-
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 &&
|
|
4532
|
+
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: d, hasLayoutChanged: h, hasRelativeTargetChanged: p, layout: y }) => {
|
|
4517
4533
|
if (this.isTreeAnimationBlocked()) {
|
|
4518
4534
|
this.target = void 0, this.relativeTarget = void 0;
|
|
4519
4535
|
return;
|
|
4520
4536
|
}
|
|
4521
|
-
const f = this.options.transition ||
|
|
4537
|
+
const f = this.options.transition || u.getDefaultTransition() || o1, { onLayoutAnimationStart: m, onLayoutAnimationComplete: b } = u.getProps(), w = !this.targetLayout || !Yl(this.targetLayout, y) || p, x = !h && p;
|
|
4522
4538
|
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || x || h && (w || !this.currentAnimation)) {
|
|
4523
|
-
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(
|
|
4539
|
+
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(d, x);
|
|
4524
4540
|
const S = {
|
|
4525
4541
|
...Li(f, "layout"),
|
|
4526
4542
|
onPlay: m,
|
|
4527
4543
|
onComplete: b
|
|
4528
4544
|
};
|
|
4529
|
-
(
|
|
4545
|
+
(u.shouldReduceMotion || this.options.layoutRoot) && (S.delay = 0, S.type = !1), this.startAnimation(S);
|
|
4530
4546
|
} else
|
|
4531
4547
|
h || ps(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
4532
4548
|
this.targetLayout = y;
|
|
@@ -4566,9 +4582,9 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4566
4582
|
if (!this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
|
|
4567
4583
|
return;
|
|
4568
4584
|
this.isLayoutDirty = !0;
|
|
4569
|
-
for (let
|
|
4570
|
-
const
|
|
4571
|
-
|
|
4585
|
+
for (let u = 0; u < this.path.length; u++) {
|
|
4586
|
+
const d = this.path[u];
|
|
4587
|
+
d.shouldResetTransform = !0, d.updateScroll("snapshot"), d.options.layoutRoot && d.willUpdate(!1);
|
|
4572
4588
|
}
|
|
4573
4589
|
const { layoutId: a, layout: l } = this.options;
|
|
4574
4590
|
if (a === void 0 && !l)
|
|
@@ -4628,8 +4644,8 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4628
4644
|
resetTransform() {
|
|
4629
4645
|
if (!i)
|
|
4630
4646
|
return;
|
|
4631
|
-
const o = this.isLayoutDirty || this.shouldResetTransform, a = this.projectionDelta && !Ul(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0,
|
|
4632
|
-
o && (a || ft(this.latestValues) ||
|
|
4647
|
+
const o = this.isLayoutDirty || this.shouldResetTransform, a = this.projectionDelta && !Ul(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
|
|
4648
|
+
o && (a || ft(this.latestValues) || u) && (i(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
|
|
4633
4649
|
}
|
|
4634
4650
|
measure(o = !0) {
|
|
4635
4651
|
const a = this.measurePageBox();
|
|
@@ -4653,14 +4669,14 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4653
4669
|
const a = ne();
|
|
4654
4670
|
Ee(a, o);
|
|
4655
4671
|
for (let l = 0; l < this.path.length; l++) {
|
|
4656
|
-
const c = this.path[l], { scroll:
|
|
4657
|
-
if (c !== this.root &&
|
|
4658
|
-
if (
|
|
4672
|
+
const c = this.path[l], { scroll: u, options: d } = c;
|
|
4673
|
+
if (c !== this.root && u && d.layoutScroll) {
|
|
4674
|
+
if (u.isRoot) {
|
|
4659
4675
|
Ee(a, o);
|
|
4660
4676
|
const { scroll: h } = this.root;
|
|
4661
4677
|
h && (et(a.x, -h.offset.x), et(a.y, -h.offset.y));
|
|
4662
4678
|
}
|
|
4663
|
-
et(a.x,
|
|
4679
|
+
et(a.x, u.offset.x), et(a.y, u.offset.y);
|
|
4664
4680
|
}
|
|
4665
4681
|
}
|
|
4666
4682
|
return a;
|
|
@@ -4669,11 +4685,11 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4669
4685
|
const l = ne();
|
|
4670
4686
|
Ee(l, o);
|
|
4671
4687
|
for (let c = 0; c < this.path.length; c++) {
|
|
4672
|
-
const
|
|
4673
|
-
!a &&
|
|
4674
|
-
x: -
|
|
4675
|
-
y: -
|
|
4676
|
-
}), ft(
|
|
4688
|
+
const u = this.path[c];
|
|
4689
|
+
!a && u.options.layoutScroll && u.scroll && u !== u.root && Dt(l, {
|
|
4690
|
+
x: -u.scroll.offset.x,
|
|
4691
|
+
y: -u.scroll.offset.y
|
|
4692
|
+
}), ft(u.latestValues) && Dt(l, u.latestValues);
|
|
4677
4693
|
}
|
|
4678
4694
|
return ft(this.latestValues) && Dt(l, this.latestValues), l;
|
|
4679
4695
|
}
|
|
@@ -4685,8 +4701,8 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4685
4701
|
if (!c.instance || !ft(c.latestValues))
|
|
4686
4702
|
continue;
|
|
4687
4703
|
ci(c.latestValues) && c.updateSnapshot();
|
|
4688
|
-
const
|
|
4689
|
-
Ee(
|
|
4704
|
+
const u = ne(), d = c.measurePageBox();
|
|
4705
|
+
Ee(u, d), as(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
|
|
4690
4706
|
}
|
|
4691
4707
|
return ft(this.latestValues) && as(a, this.latestValues), a;
|
|
4692
4708
|
}
|
|
@@ -4713,8 +4729,8 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4713
4729
|
const c = !!this.resumingFrom || this !== l;
|
|
4714
4730
|
if (!(o || c && this.isSharedProjectionDirty || this.isProjectionDirty || !((a = this.parent) === null || a === void 0) && a.isProjectionDirty || this.attemptToResolveRelativeTarget))
|
|
4715
4731
|
return;
|
|
4716
|
-
const { layout:
|
|
4717
|
-
if (!(!this.layout || !(
|
|
4732
|
+
const { layout: d, layoutId: h } = this.options;
|
|
4733
|
+
if (!(!this.layout || !(d || h))) {
|
|
4718
4734
|
if (this.resolvedRelativeTargetAt = le.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
4719
4735
|
const p = this.getClosestProjectingParent();
|
|
4720
4736
|
p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ne(), this.relativeTargetOrigin = ne(), on(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), Ee(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -4742,8 +4758,8 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4742
4758
|
let c = !0;
|
|
4743
4759
|
if ((this.isProjectionDirty || !((o = this.parent) === null || o === void 0) && o.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === le.timestamp && (c = !1), c)
|
|
4744
4760
|
return;
|
|
4745
|
-
const { layout:
|
|
4746
|
-
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(
|
|
4761
|
+
const { layout: u, layoutId: d } = this.options;
|
|
4762
|
+
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || d))
|
|
4747
4763
|
return;
|
|
4748
4764
|
Ee(this.layoutCorrected, this.layout.layoutBox);
|
|
4749
4765
|
const h = this.treeScale.x, p = this.treeScale.y;
|
|
@@ -4771,14 +4787,14 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4771
4787
|
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
4772
4788
|
}
|
|
4773
4789
|
setAnimationOrigin(o, a = !1) {
|
|
4774
|
-
const l = this.snapshot, c = l ? l.latestValues : {},
|
|
4790
|
+
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, d = Nt();
|
|
4775
4791
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
4776
4792
|
const h = ne(), p = l ? l.source : void 0, y = this.layout ? this.layout.source : void 0, f = p !== y, m = this.getStack(), b = !m || m.members.length <= 1, w = !!(f && !b && this.options.crossfade === !0 && !this.path.some(i1));
|
|
4777
4793
|
this.animationProgress = 0;
|
|
4778
4794
|
let x;
|
|
4779
4795
|
this.mixTargetDelta = (S) => {
|
|
4780
4796
|
const v = S / 1e3;
|
|
4781
|
-
ms(
|
|
4797
|
+
ms(d.x, o.x, v), ms(d.y, o.y, v), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (on(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), r1(this.relativeTarget, this.relativeTargetOrigin, h, v), x && Ih(this.relativeTarget, x) && (this.isProjectionDirty = !1), x || (x = ne()), Ee(x, this.relativeTarget)), f && (this.animationValues = u, Oh(u, c, this.latestValues, v, w, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = v;
|
|
4782
4798
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
4783
4799
|
}
|
|
4784
4800
|
startAnimation(o) {
|
|
@@ -4804,16 +4820,16 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4804
4820
|
}
|
|
4805
4821
|
applyTransformsToTarget() {
|
|
4806
4822
|
const o = this.getLead();
|
|
4807
|
-
let { targetWithTransforms: a, target: l, layout: c, latestValues:
|
|
4823
|
+
let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = o;
|
|
4808
4824
|
if (!(!a || !l || !c)) {
|
|
4809
4825
|
if (this !== o && this.layout && c && ql(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
|
|
4810
4826
|
l = this.target || ne();
|
|
4811
|
-
const
|
|
4812
|
-
l.x.min = o.target.x.min, l.x.max = l.x.min +
|
|
4827
|
+
const d = we(this.layout.layoutBox.x);
|
|
4828
|
+
l.x.min = o.target.x.min, l.x.max = l.x.min + d;
|
|
4813
4829
|
const h = we(this.layout.layoutBox.y);
|
|
4814
4830
|
l.y.min = o.target.y.min, l.y.max = l.y.min + h;
|
|
4815
4831
|
}
|
|
4816
|
-
Ee(a, l), Dt(a,
|
|
4832
|
+
Ee(a, l), Dt(a, u), rn(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
|
|
4817
4833
|
}
|
|
4818
4834
|
}
|
|
4819
4835
|
registerSharedNode(o, a) {
|
|
@@ -4860,13 +4876,13 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4860
4876
|
if ((l.rotate || l.rotateX || l.rotateY || l.rotateZ) && (a = !0), !a)
|
|
4861
4877
|
return;
|
|
4862
4878
|
const c = {};
|
|
4863
|
-
for (let
|
|
4864
|
-
const
|
|
4865
|
-
l[
|
|
4879
|
+
for (let u = 0; u < ds.length; u++) {
|
|
4880
|
+
const d = "rotate" + ds[u];
|
|
4881
|
+
l[d] && (c[d] = l[d], o.setStaticValue(d, 0));
|
|
4866
4882
|
}
|
|
4867
4883
|
o.render();
|
|
4868
|
-
for (const
|
|
4869
|
-
o.setStaticValue(
|
|
4884
|
+
for (const u in c)
|
|
4885
|
+
o.setStaticValue(u, c[u]);
|
|
4870
4886
|
o.scheduleRender();
|
|
4871
4887
|
}
|
|
4872
4888
|
getProjectionStyles(o) {
|
|
@@ -4877,22 +4893,22 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4877
4893
|
return Hh;
|
|
4878
4894
|
const c = {
|
|
4879
4895
|
visibility: ""
|
|
4880
|
-
},
|
|
4896
|
+
}, u = this.getTransformTemplate();
|
|
4881
4897
|
if (this.needsReset)
|
|
4882
|
-
return this.needsReset = !1, c.opacity = "", c.pointerEvents = jn(o == null ? void 0 : o.pointerEvents) || "", c.transform =
|
|
4883
|
-
const
|
|
4884
|
-
if (!this.projectionDelta || !this.layout || !
|
|
4898
|
+
return this.needsReset = !1, c.opacity = "", c.pointerEvents = jn(o == null ? void 0 : o.pointerEvents) || "", c.transform = u ? u(this.latestValues, "") : "none", c;
|
|
4899
|
+
const d = this.getLead();
|
|
4900
|
+
if (!this.projectionDelta || !this.layout || !d.target) {
|
|
4885
4901
|
const f = {};
|
|
4886
|
-
return this.options.layoutId && (f.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, f.pointerEvents = jn(o == null ? void 0 : o.pointerEvents) || ""), this.hasProjected && !ft(this.latestValues) && (f.transform =
|
|
4902
|
+
return this.options.layoutId && (f.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, f.pointerEvents = jn(o == null ? void 0 : o.pointerEvents) || ""), this.hasProjected && !ft(this.latestValues) && (f.transform = u ? u({}, "") : "none", this.hasProjected = !1), f;
|
|
4887
4903
|
}
|
|
4888
|
-
const h =
|
|
4889
|
-
this.applyTransformsToTarget(), c.transform = us(this.projectionDeltaWithTransform, this.treeScale, h),
|
|
4904
|
+
const h = d.animationValues || d.latestValues;
|
|
4905
|
+
this.applyTransformsToTarget(), c.transform = us(this.projectionDeltaWithTransform, this.treeScale, h), u && (c.transform = u(h, c.transform));
|
|
4890
4906
|
const { x: p, y } = this.projectionDelta;
|
|
4891
|
-
c.transformOrigin = `${p.origin * 100}% ${y.origin * 100}% 0`,
|
|
4907
|
+
c.transformOrigin = `${p.origin * 100}% ${y.origin * 100}% 0`, d.animationValues ? c.opacity = d === this ? (l = (a = h.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : h.opacityExit : c.opacity = d === this ? h.opacity !== void 0 ? h.opacity : "" : h.opacityExit !== void 0 ? h.opacityExit : 0;
|
|
4892
4908
|
for (const f in er) {
|
|
4893
4909
|
if (h[f] === void 0)
|
|
4894
4910
|
continue;
|
|
4895
|
-
const { correct: m, applyTo: b } = er[f], w = c.transform === "none" ? h[f] : m(h[f],
|
|
4911
|
+
const { correct: m, applyTo: b } = er[f], w = c.transform === "none" ? h[f] : m(h[f], d);
|
|
4896
4912
|
if (b) {
|
|
4897
4913
|
const x = b.length;
|
|
4898
4914
|
for (let S = 0; S < x; S++)
|
|
@@ -4900,7 +4916,7 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4900
4916
|
} else
|
|
4901
4917
|
c[f] = w;
|
|
4902
4918
|
}
|
|
4903
|
-
return this.options.layoutId && (c.pointerEvents =
|
|
4919
|
+
return this.options.layoutId && (c.pointerEvents = d === this ? jn(o == null ? void 0 : o.pointerEvents) || "" : "none"), c;
|
|
4904
4920
|
}
|
|
4905
4921
|
clearSnapshot() {
|
|
4906
4922
|
this.resumeFrom = this.snapshot = void 0;
|
|
@@ -4922,28 +4938,28 @@ function Gh(e) {
|
|
|
4922
4938
|
const n = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot;
|
|
4923
4939
|
if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) {
|
|
4924
4940
|
const { layoutBox: r, measuredBox: i } = e.layout, { animationType: s } = e.options, o = n.source !== e.layout.source;
|
|
4925
|
-
s === "size" ? Ce((
|
|
4926
|
-
const h = o ? n.measuredBox[
|
|
4927
|
-
h.min = r[
|
|
4928
|
-
}) : ql(s, n.layoutBox, r) && Ce((
|
|
4929
|
-
const h = o ? n.measuredBox[
|
|
4930
|
-
h.max = h.min + p, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[
|
|
4941
|
+
s === "size" ? Ce((d) => {
|
|
4942
|
+
const h = o ? n.measuredBox[d] : n.layoutBox[d], p = we(h);
|
|
4943
|
+
h.min = r[d].min, h.max = h.min + p;
|
|
4944
|
+
}) : ql(s, n.layoutBox, r) && Ce((d) => {
|
|
4945
|
+
const h = o ? n.measuredBox[d] : n.layoutBox[d], p = we(r[d]);
|
|
4946
|
+
h.max = h.min + p, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[d].max = e.relativeTarget[d].min + p);
|
|
4931
4947
|
});
|
|
4932
4948
|
const a = Nt();
|
|
4933
4949
|
rn(a, r, n.layoutBox);
|
|
4934
4950
|
const l = Nt();
|
|
4935
4951
|
o ? rn(l, e.applyTransform(i, !0), n.measuredBox) : rn(l, r, n.layoutBox);
|
|
4936
4952
|
const c = !Ul(a);
|
|
4937
|
-
let
|
|
4953
|
+
let u = !1;
|
|
4938
4954
|
if (!e.resumeFrom) {
|
|
4939
|
-
const
|
|
4940
|
-
if (
|
|
4941
|
-
const { snapshot: h, layout: p } =
|
|
4955
|
+
const d = e.getClosestProjectingParent();
|
|
4956
|
+
if (d && !d.resumeFrom) {
|
|
4957
|
+
const { snapshot: h, layout: p } = d;
|
|
4942
4958
|
if (h && p) {
|
|
4943
4959
|
const y = ne();
|
|
4944
4960
|
on(y, n.layoutBox, h.layoutBox);
|
|
4945
4961
|
const f = ne();
|
|
4946
|
-
on(f, r, p.layoutBox), Yl(y, f) || (
|
|
4962
|
+
on(f, r, p.layoutBox), Yl(y, f) || (u = !0), d.options.layoutRoot && (e.relativeTarget = f, e.relativeTargetOrigin = y, e.relativeParent = d);
|
|
4947
4963
|
}
|
|
4948
4964
|
}
|
|
4949
4965
|
}
|
|
@@ -4953,7 +4969,7 @@ function Gh(e) {
|
|
|
4953
4969
|
delta: l,
|
|
4954
4970
|
layoutDelta: a,
|
|
4955
4971
|
hasLayoutChanged: c,
|
|
4956
|
-
hasRelativeTargetChanged:
|
|
4972
|
+
hasRelativeTargetChanged: u
|
|
4957
4973
|
});
|
|
4958
4974
|
} else if (e.isLead()) {
|
|
4959
4975
|
const { onExitComplete: r } = e.options;
|
|
@@ -5145,8 +5161,8 @@ const v1 = (e, t, n) => {
|
|
|
5145
5161
|
}), t.render();
|
|
5146
5162
|
const l = t.measureViewportBox();
|
|
5147
5163
|
return n.forEach((c) => {
|
|
5148
|
-
const
|
|
5149
|
-
|
|
5164
|
+
const u = t.getValue(c);
|
|
5165
|
+
u && u.jump(a[c]), e[c] = $t[c](l, s);
|
|
5150
5166
|
}), e;
|
|
5151
5167
|
}, b1 = (e, t, n = {}, r = {}) => {
|
|
5152
5168
|
t = { ...t }, r = { ...r };
|
|
@@ -5157,26 +5173,26 @@ const v1 = (e, t, n) => {
|
|
|
5157
5173
|
const c = e.getValue(l);
|
|
5158
5174
|
if (!e.hasValue(l))
|
|
5159
5175
|
return;
|
|
5160
|
-
let
|
|
5176
|
+
let u = n[l], d = qt(u);
|
|
5161
5177
|
const h = t[l];
|
|
5162
5178
|
let p;
|
|
5163
5179
|
if (nr(h)) {
|
|
5164
5180
|
const y = h.length, f = h[0] === null ? 1 : 0;
|
|
5165
|
-
|
|
5181
|
+
u = h[f], d = qt(u);
|
|
5166
5182
|
for (let m = f; m < y && h[m] !== null; m++)
|
|
5167
|
-
p ? De(qt(h[m]) === p, "All keyframes must be of the same type") : (p = qt(h[m]), De(p ===
|
|
5183
|
+
p ? De(qt(h[m]) === p, "All keyframes must be of the same type") : (p = qt(h[m]), De(p === d || Ln(d) && Ln(p), "Keyframes must be of the same dimension as the current value"));
|
|
5168
5184
|
} else
|
|
5169
5185
|
p = qt(h);
|
|
5170
|
-
if (
|
|
5171
|
-
if (Ln(
|
|
5186
|
+
if (d !== p)
|
|
5187
|
+
if (Ln(d) && Ln(p)) {
|
|
5172
5188
|
const y = c.get();
|
|
5173
5189
|
typeof y == "string" && c.set(parseFloat(y)), typeof h == "string" ? t[l] = parseFloat(h) : Array.isArray(h) && p === M && (t[l] = h.map(parseFloat));
|
|
5174
5190
|
} else
|
|
5175
|
-
|
|
5191
|
+
d != null && d.transform && (p != null && p.transform) && (u === 0 || h === 0) ? u === 0 ? c.set(p.transform(u)) : t[l] = d.transform(h) : (o || (s = y1(e), o = !0), a.push(l), r[l] = r[l] !== void 0 ? r[l] : t[l], c.jump(h));
|
|
5176
5192
|
}), a.length) {
|
|
5177
5193
|
const l = a.indexOf("height") >= 0 ? window.pageYOffset : null, c = v1(t, e, a);
|
|
5178
|
-
return s.length && s.forEach(([
|
|
5179
|
-
e.getValue(
|
|
5194
|
+
return s.length && s.forEach(([u, d]) => {
|
|
5195
|
+
e.getValue(u).set(d);
|
|
5180
5196
|
}), e.render(), mr && l !== null && window.scrollTo({ top: l }), { target: c, transitionEnd: r };
|
|
5181
5197
|
} else
|
|
5182
5198
|
return { target: t, transitionEnd: r };
|
|
@@ -5233,10 +5249,10 @@ class _1 {
|
|
|
5233
5249
|
}, this.scheduleRender = () => Y.render(this.render, !1, !0);
|
|
5234
5250
|
const { latestValues: a, renderState: l } = s;
|
|
5235
5251
|
this.latestValues = a, this.baseTarget = { ...a }, this.initialValues = n.initial ? { ...a } : {}, this.renderState = l, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = o, this.isControllingVariants = yr(n), this.isVariantNode = Ia(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
|
|
5236
|
-
const { willChange: c, ...
|
|
5237
|
-
for (const
|
|
5238
|
-
const h = d
|
|
5239
|
-
a[
|
|
5252
|
+
const { willChange: c, ...u } = this.scrapeMotionValuesFromProps(n, {});
|
|
5253
|
+
for (const d in u) {
|
|
5254
|
+
const h = u[d];
|
|
5255
|
+
a[d] !== void 0 && pe(h) && (h.set(a[d], !1), sr(c) && c.add(d));
|
|
5240
5256
|
}
|
|
5241
5257
|
}
|
|
5242
5258
|
/**
|
|
@@ -5278,16 +5294,16 @@ class _1 {
|
|
|
5278
5294
|
n.ignoreStrict ? wn(!1, l) : De(!1, l);
|
|
5279
5295
|
}
|
|
5280
5296
|
for (let l = 0; l < C1; l++) {
|
|
5281
|
-
const c = Jl[l], { isEnabled:
|
|
5282
|
-
h && (o = h),
|
|
5297
|
+
const c = Jl[l], { isEnabled: u, Feature: d, ProjectionNode: h, MeasureLayout: p } = un[c];
|
|
5298
|
+
h && (o = h), u(n) && (!this.features[c] && d && (this.features[c] = new d(this)), p && (a = p));
|
|
5283
5299
|
}
|
|
5284
5300
|
if ((this.type === "html" || this.type === "svg") && !this.projection && o) {
|
|
5285
5301
|
this.projection = new o(this.latestValues, this.parent && this.parent.projection);
|
|
5286
|
-
const { layoutId: l, layout: c, drag:
|
|
5302
|
+
const { layoutId: l, layout: c, drag: u, dragConstraints: d, layoutScroll: h, layoutRoot: p } = n;
|
|
5287
5303
|
this.projection.setOptions({
|
|
5288
5304
|
layoutId: l,
|
|
5289
5305
|
layout: c,
|
|
5290
|
-
alwaysMeasureLayout: !!
|
|
5306
|
+
alwaysMeasureLayout: !!u || d && Ot(d),
|
|
5291
5307
|
visualElement: this,
|
|
5292
5308
|
scheduleRender: () => this.scheduleRender(),
|
|
5293
5309
|
/**
|
|
@@ -5605,12 +5621,12 @@ function V1(e) {
|
|
|
5605
5621
|
}
|
|
5606
5622
|
function ec({ item: e, level: t = 0, ...n }) {
|
|
5607
5623
|
var P, D;
|
|
5608
|
-
const { isActive: r, isCollapsed: i, expanded: s, toggleExpand: o } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", c = r(e.id) ? "active" : "",
|
|
5624
|
+
const { isActive: r, isCollapsed: i, expanded: s, toggleExpand: o } = n, a = `level-${t}`, l = i ? "collapsed" : "expanded", c = r(e.id) ? "active" : "", u = (O, V = a) => `${O} ${V} ${l} ${c}`, d = !!((P = e.children) != null && P.length), [h, p] = K(!1), y = ze(), f = window.location.origin, m = e.path && e.path.includes("http") ? new URL(e.path) : { origin: "", pathname: "" }, b = window.location.pathname.split("/")[1], w = m.pathname.split("/")[1], x = n.ssr || !f.includes("local") && f !== m.origin || w !== b, S = d || t === 0 ? "div" : x ? "a" : du, v = e.path || "#", E = t + 1, C = d && !(i && E >= 2 && !h), T = i || t === 0 ? void 0 : `${t}rem`;
|
|
5609
5625
|
return /* @__PURE__ */ k(
|
|
5610
5626
|
"div",
|
|
5611
5627
|
{
|
|
5612
5628
|
ref: y,
|
|
5613
|
-
className:
|
|
5629
|
+
className: u("menu-item__wrapper"),
|
|
5614
5630
|
onMouseEnter: () => i && p(!0),
|
|
5615
5631
|
onMouseLeave: () => i && p(!1),
|
|
5616
5632
|
children: [
|
|
@@ -5624,17 +5640,17 @@ function ec({ item: e, level: t = 0, ...n }) {
|
|
|
5624
5640
|
transition: "all 0.3s"
|
|
5625
5641
|
// transitionDelay: '0.1s',
|
|
5626
5642
|
},
|
|
5627
|
-
className:
|
|
5643
|
+
className: u("menu-item__link"),
|
|
5628
5644
|
onClick: (O) => {
|
|
5629
|
-
|
|
5645
|
+
d && (O.preventDefault(), i || o(e.id));
|
|
5630
5646
|
},
|
|
5631
5647
|
children: [
|
|
5632
|
-
t !== 0 && /* @__PURE__ */ g(I1, { cls:
|
|
5633
|
-
/* @__PURE__ */ g("span", { className:
|
|
5634
|
-
|
|
5648
|
+
t !== 0 && /* @__PURE__ */ g(I1, { cls: u, item: e }),
|
|
5649
|
+
/* @__PURE__ */ g("span", { className: u("menu-item__label"), children: e.name }),
|
|
5650
|
+
d && /* @__PURE__ */ g("div", { className: u("menu-item__icon-arrow__wrapper"), children: /* @__PURE__ */ g(
|
|
5635
5651
|
R1,
|
|
5636
5652
|
{
|
|
5637
|
-
className:
|
|
5653
|
+
className: u(
|
|
5638
5654
|
`menu-item__icon-arrow__icon ${s(e.id) ? "open" : "close"}`
|
|
5639
5655
|
)
|
|
5640
5656
|
}
|
|
@@ -5650,7 +5666,7 @@ function ec({ item: e, level: t = 0, ...n }) {
|
|
|
5650
5666
|
children: /* @__PURE__ */ g(
|
|
5651
5667
|
D1.div,
|
|
5652
5668
|
{
|
|
5653
|
-
className:
|
|
5669
|
+
className: u("menu-item__dropdown", `level-${E}`),
|
|
5654
5670
|
initial: {
|
|
5655
5671
|
height: i || s(e.id) ? "auto" : 0
|
|
5656
5672
|
},
|
|
@@ -5699,8 +5715,8 @@ function I1({ item: e, cls: t }) {
|
|
|
5699
5715
|
{
|
|
5700
5716
|
src: e.icon,
|
|
5701
5717
|
beforeInjection: (l) => {
|
|
5702
|
-
l.setAttribute("style", "margin: 0 auto;"), l.querySelectorAll("path").forEach((
|
|
5703
|
-
|
|
5718
|
+
l.setAttribute("style", "margin: 0 auto;"), l.querySelectorAll("path").forEach((u) => {
|
|
5719
|
+
u.hasAttribute("fill") && u.setAttribute("fill", "currentColor"), u.hasAttribute("stroke") && u.setAttribute("stroke", "currentColor");
|
|
5704
5720
|
});
|
|
5705
5721
|
}
|
|
5706
5722
|
}
|
|
@@ -5771,14 +5787,14 @@ const F1 = `.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collaps
|
|
|
5771
5787
|
function j1(e) {
|
|
5772
5788
|
const { baseUrl: t, menuPath: n } = e, r = fu(), [i, s] = K([]), [o, a] = K(
|
|
5773
5789
|
localStorage.getItem("isCollapsed") === "true"
|
|
5774
|
-
), [l, c] = K({}),
|
|
5790
|
+
), [l, c] = K({}), u = Wi(i), [d, h] = K(window.location.href);
|
|
5775
5791
|
be(() => {
|
|
5776
5792
|
h(window.location.href);
|
|
5777
5793
|
}, [r]);
|
|
5778
|
-
const p = tc(
|
|
5794
|
+
const p = tc(u, d).filter(
|
|
5779
5795
|
(v) => v.parentKey !== 0
|
|
5780
5796
|
);
|
|
5781
|
-
console.log("matchPaths:",
|
|
5797
|
+
console.log("matchPaths:", d, r, p);
|
|
5782
5798
|
const y = (v) => {
|
|
5783
5799
|
c({
|
|
5784
5800
|
...l,
|
|
@@ -6470,7 +6486,7 @@ function Z1() {
|
|
|
6470
6486
|
if (Cs)
|
|
6471
6487
|
return $;
|
|
6472
6488
|
Cs = 1;
|
|
6473
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), o = Symbol.for("react.context"), a = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"),
|
|
6489
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), o = Symbol.for("react.context"), a = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), y;
|
|
6474
6490
|
y = Symbol.for("react.module.reference");
|
|
6475
6491
|
function f(m) {
|
|
6476
6492
|
if (typeof m == "object" && m !== null) {
|
|
@@ -6482,7 +6498,7 @@ function Z1() {
|
|
|
6482
6498
|
case i:
|
|
6483
6499
|
case r:
|
|
6484
6500
|
case c:
|
|
6485
|
-
case
|
|
6501
|
+
case u:
|
|
6486
6502
|
return m;
|
|
6487
6503
|
default:
|
|
6488
6504
|
switch (m = m && m.$$typeof, m) {
|
|
@@ -6490,7 +6506,7 @@ function Z1() {
|
|
|
6490
6506
|
case o:
|
|
6491
6507
|
case l:
|
|
6492
6508
|
case h:
|
|
6493
|
-
case
|
|
6509
|
+
case d:
|
|
6494
6510
|
case s:
|
|
6495
6511
|
return m;
|
|
6496
6512
|
default:
|
|
@@ -6502,7 +6518,7 @@ function Z1() {
|
|
|
6502
6518
|
}
|
|
6503
6519
|
}
|
|
6504
6520
|
}
|
|
6505
|
-
return $.ContextConsumer = o, $.ContextProvider = s, $.Element = e, $.ForwardRef = l, $.Fragment = n, $.Lazy = h, $.Memo =
|
|
6521
|
+
return $.ContextConsumer = o, $.ContextProvider = s, $.Element = e, $.ForwardRef = l, $.Fragment = n, $.Lazy = h, $.Memo = d, $.Portal = t, $.Profiler = i, $.StrictMode = r, $.Suspense = c, $.SuspenseList = u, $.isAsyncMode = function() {
|
|
6506
6522
|
return !1;
|
|
6507
6523
|
}, $.isConcurrentMode = function() {
|
|
6508
6524
|
return !1;
|
|
@@ -6519,7 +6535,7 @@ function Z1() {
|
|
|
6519
6535
|
}, $.isLazy = function(m) {
|
|
6520
6536
|
return f(m) === h;
|
|
6521
6537
|
}, $.isMemo = function(m) {
|
|
6522
|
-
return f(m) ===
|
|
6538
|
+
return f(m) === d;
|
|
6523
6539
|
}, $.isPortal = function(m) {
|
|
6524
6540
|
return f(m) === t;
|
|
6525
6541
|
}, $.isProfiler = function(m) {
|
|
@@ -6529,9 +6545,9 @@ function Z1() {
|
|
|
6529
6545
|
}, $.isSuspense = function(m) {
|
|
6530
6546
|
return f(m) === c;
|
|
6531
6547
|
}, $.isSuspenseList = function(m) {
|
|
6532
|
-
return f(m) ===
|
|
6548
|
+
return f(m) === u;
|
|
6533
6549
|
}, $.isValidElementType = function(m) {
|
|
6534
|
-
return typeof m == "string" || typeof m == "function" || m === n || m === i || m === r || m === c || m ===
|
|
6550
|
+
return typeof m == "string" || typeof m == "function" || m === n || m === i || m === r || m === c || m === u || m === p || typeof m == "object" && m !== null && (m.$$typeof === h || m.$$typeof === d || m.$$typeof === s || m.$$typeof === o || m.$$typeof === l || m.$$typeof === y || m.getModuleId !== void 0);
|
|
6535
6551
|
}, $.typeOf = f, $;
|
|
6536
6552
|
}
|
|
6537
6553
|
var z = {};
|
|
@@ -6547,10 +6563,10 @@ var z = {};
|
|
|
6547
6563
|
var Ts;
|
|
6548
6564
|
function J1() {
|
|
6549
6565
|
return Ts || (Ts = 1, process.env.NODE_ENV !== "production" && function() {
|
|
6550
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), o = Symbol.for("react.context"), a = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"),
|
|
6566
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), o = Symbol.for("react.context"), a = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), y = !1, f = !1, m = !1, b = !1, w = !1, x;
|
|
6551
6567
|
x = Symbol.for("react.module.reference");
|
|
6552
6568
|
function S(A) {
|
|
6553
|
-
return !!(typeof A == "string" || typeof A == "function" || A === n || A === i || w || A === r || A === c || A ===
|
|
6569
|
+
return !!(typeof A == "string" || typeof A == "function" || A === n || A === i || w || A === r || A === c || A === u || b || A === p || y || f || m || typeof A == "object" && A !== null && (A.$$typeof === h || A.$$typeof === d || A.$$typeof === s || A.$$typeof === o || A.$$typeof === l || // This needs to include all possible module reference object
|
|
6554
6570
|
// types supported by any Flight configuration anywhere since
|
|
6555
6571
|
// we don't know which Flight build this will end up being used
|
|
6556
6572
|
// with.
|
|
@@ -6567,7 +6583,7 @@ function J1() {
|
|
|
6567
6583
|
case i:
|
|
6568
6584
|
case r:
|
|
6569
6585
|
case c:
|
|
6570
|
-
case
|
|
6586
|
+
case u:
|
|
6571
6587
|
return An;
|
|
6572
6588
|
default:
|
|
6573
6589
|
var ao = An && An.$$typeof;
|
|
@@ -6576,7 +6592,7 @@ function J1() {
|
|
|
6576
6592
|
case o:
|
|
6577
6593
|
case l:
|
|
6578
6594
|
case h:
|
|
6579
|
-
case
|
|
6595
|
+
case d:
|
|
6580
6596
|
case s:
|
|
6581
6597
|
return ao;
|
|
6582
6598
|
default:
|
|
@@ -6588,7 +6604,7 @@ function J1() {
|
|
|
6588
6604
|
}
|
|
6589
6605
|
}
|
|
6590
6606
|
}
|
|
6591
|
-
var E = o, C = s, T = e, P = l, D = n, O = h, V =
|
|
6607
|
+
var E = o, C = s, T = e, P = l, D = n, O = h, V = d, q = t, H = i, fe = r, U = c, ce = u, ue = !1, ge = !1;
|
|
6592
6608
|
function Re(A) {
|
|
6593
6609
|
return ue || (ue = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
6594
6610
|
}
|
|
@@ -6614,7 +6630,7 @@ function J1() {
|
|
|
6614
6630
|
return v(A) === h;
|
|
6615
6631
|
}
|
|
6616
6632
|
function Ut(A) {
|
|
6617
|
-
return v(A) ===
|
|
6633
|
+
return v(A) === d;
|
|
6618
6634
|
}
|
|
6619
6635
|
function ct(A) {
|
|
6620
6636
|
return v(A) === t;
|
|
@@ -6629,7 +6645,7 @@ function J1() {
|
|
|
6629
6645
|
return v(A) === c;
|
|
6630
6646
|
}
|
|
6631
6647
|
function Yt(A) {
|
|
6632
|
-
return v(A) ===
|
|
6648
|
+
return v(A) === u;
|
|
6633
6649
|
}
|
|
6634
6650
|
z.ContextConsumer = E, z.ContextProvider = C, z.Element = T, z.ForwardRef = P, z.Fragment = D, z.Lazy = O, z.Memo = V, z.Portal = q, z.Profiler = H, z.StrictMode = fe, z.Suspense = U, z.SuspenseList = ce, z.isAsyncMode = Re, z.isConcurrentMode = B, z.isContextConsumer = ke, z.isContextProvider = je, z.isElement = Se, z.isForwardRef = Be, z.isFragment = We, z.isLazy = xt, z.isMemo = Ut, z.isPortal = ct, z.isProfiler = Ke, z.isStrictMode = Oe, z.isSuspense = _, z.isSuspenseList = Yt, z.isValidElementType = S, z.typeOf = v;
|
|
6635
6651
|
}()), z;
|
|
@@ -6799,10 +6815,10 @@ function lc(e) {
|
|
|
6799
6815
|
const y = o.indexOf(p);
|
|
6800
6816
|
return `@media (min-width:${typeof t[h] == "number" ? t[h] : h}${n}) and (max-width:${(y !== -1 && typeof t[o[y]] == "number" ? t[o[y]] : p) - r / 100}${n})`;
|
|
6801
6817
|
}
|
|
6802
|
-
function
|
|
6818
|
+
function u(h) {
|
|
6803
6819
|
return o.indexOf(h) + 1 < o.length ? c(h, o[o.indexOf(h) + 1]) : a(h);
|
|
6804
6820
|
}
|
|
6805
|
-
function
|
|
6821
|
+
function d(h) {
|
|
6806
6822
|
const p = o.indexOf(h);
|
|
6807
6823
|
return p === 0 ? a(o[1]) : p === o.length - 1 ? l(o[p]) : c(h, o[o.indexOf(h) + 1]).replace("@media", "@media not all and");
|
|
6808
6824
|
}
|
|
@@ -6812,8 +6828,8 @@ function lc(e) {
|
|
|
6812
6828
|
up: a,
|
|
6813
6829
|
down: l,
|
|
6814
6830
|
between: c,
|
|
6815
|
-
only:
|
|
6816
|
-
not:
|
|
6831
|
+
only: u,
|
|
6832
|
+
not: d,
|
|
6817
6833
|
unit: n
|
|
6818
6834
|
}, i);
|
|
6819
6835
|
}
|
|
@@ -6901,9 +6917,9 @@ function ee(e) {
|
|
|
6901
6917
|
if (o[t] == null)
|
|
6902
6918
|
return null;
|
|
6903
6919
|
const a = o[t], l = o.theme, c = wr(l, r) || {};
|
|
6904
|
-
return qe(o, a, (
|
|
6905
|
-
let h = lr(c, i,
|
|
6906
|
-
return
|
|
6920
|
+
return qe(o, a, (d) => {
|
|
6921
|
+
let h = lr(c, i, d);
|
|
6922
|
+
return d === h && typeof d == "string" && (h = lr(c, i, `${t}${d === "default" ? "" : gt(d)}`, d)), n === !1 ? h : {
|
|
6907
6923
|
[n]: h
|
|
6908
6924
|
};
|
|
6909
6925
|
});
|
|
@@ -7456,8 +7472,8 @@ function dc() {
|
|
|
7456
7472
|
const {
|
|
7457
7473
|
cssProperty: l = n,
|
|
7458
7474
|
themeKey: c,
|
|
7459
|
-
transform:
|
|
7460
|
-
style:
|
|
7475
|
+
transform: u,
|
|
7476
|
+
style: d
|
|
7461
7477
|
} = a;
|
|
7462
7478
|
if (r == null)
|
|
7463
7479
|
return null;
|
|
@@ -7466,9 +7482,9 @@ function dc() {
|
|
|
7466
7482
|
[n]: r
|
|
7467
7483
|
};
|
|
7468
7484
|
const h = wr(i, c) || {};
|
|
7469
|
-
return
|
|
7470
|
-
let f = lr(h,
|
|
7471
|
-
return y === f && typeof y == "string" && (f = lr(h,
|
|
7485
|
+
return d ? d(o) : qe(o, r, (y) => {
|
|
7486
|
+
let f = lr(h, u, y);
|
|
7487
|
+
return y === f && typeof y == "string" && (f = lr(h, u, `${n}${y === "default" ? "" : gt(y)}`, y)), l === !1 ? f : {
|
|
7472
7488
|
[l]: f
|
|
7473
7489
|
};
|
|
7474
7490
|
});
|
|
@@ -7490,8 +7506,8 @@ function dc() {
|
|
|
7490
7506
|
return l;
|
|
7491
7507
|
if (!c)
|
|
7492
7508
|
return null;
|
|
7493
|
-
const
|
|
7494
|
-
let h =
|
|
7509
|
+
const u = yp(s.breakpoints), d = Object.keys(u);
|
|
7510
|
+
let h = u;
|
|
7495
7511
|
return Object.keys(c).forEach((p) => {
|
|
7496
7512
|
const y = om(c[p], s);
|
|
7497
7513
|
if (y != null)
|
|
@@ -7511,7 +7527,7 @@ function dc() {
|
|
|
7511
7527
|
}
|
|
7512
7528
|
else
|
|
7513
7529
|
h = sn(h, e(p, y, s, o));
|
|
7514
|
-
}), vp(
|
|
7530
|
+
}), vp(d, h);
|
|
7515
7531
|
}
|
|
7516
7532
|
return Array.isArray(i) ? i.map(a) : a(i);
|
|
7517
7533
|
}
|
|
@@ -7545,9 +7561,9 @@ function qi(e = {}, ...t) {
|
|
|
7545
7561
|
spacing: l,
|
|
7546
7562
|
shape: W({}, mp, s)
|
|
7547
7563
|
}, o);
|
|
7548
|
-
return c.applyStyles = hc, c = t.reduce((
|
|
7564
|
+
return c.applyStyles = hc, c = t.reduce((u, d) => Le(u, d), c), c.unstable_sxConfig = W({}, Tn, o == null ? void 0 : o.unstable_sxConfig), c.unstable_sx = function(d) {
|
|
7549
7565
|
return Gi({
|
|
7550
|
-
sx:
|
|
7566
|
+
sx: d,
|
|
7551
7567
|
theme: this
|
|
7552
7568
|
});
|
|
7553
7569
|
}, c;
|
|
@@ -7758,10 +7774,10 @@ function _m(e) {
|
|
|
7758
7774
|
return bc(Un("", null, null, null, [""], e = vc(e), 0, [0], e));
|
|
7759
7775
|
}
|
|
7760
7776
|
function Un(e, t, n, r, i, s, o, a, l) {
|
|
7761
|
-
for (var c = 0,
|
|
7777
|
+
for (var c = 0, u = 0, d = o, h = 0, p = 0, y = 0, f = 1, m = 1, b = 1, w = 0, x = "", S = i, v = s, E = r, C = x; m; )
|
|
7762
7778
|
switch (y = w, w = xe()) {
|
|
7763
7779
|
case 40:
|
|
7764
|
-
if (y != 108 && oe(C,
|
|
7780
|
+
if (y != 108 && oe(C, d - 1) == 58) {
|
|
7765
7781
|
pi(C += L(Hn(w), "&", "&\f"), "&\f") != -1 && (b = -1);
|
|
7766
7782
|
break;
|
|
7767
7783
|
}
|
|
@@ -7798,31 +7814,31 @@ function Un(e, t, n, r, i, s, o, a, l) {
|
|
|
7798
7814
|
case 0:
|
|
7799
7815
|
case 125:
|
|
7800
7816
|
m = 0;
|
|
7801
|
-
case 59 +
|
|
7802
|
-
b == -1 && (C = L(C, /\f/g, "")), p > 0 && Ve(C) -
|
|
7817
|
+
case 59 + u:
|
|
7818
|
+
b == -1 && (C = L(C, /\f/g, "")), p > 0 && Ve(C) - d && $n(p > 32 ? Ns(C + ";", r, n, d - 1) : Ns(L(C, " ", "") + ";", r, n, d - 2), l);
|
|
7803
7819
|
break;
|
|
7804
7820
|
case 59:
|
|
7805
7821
|
C += ";";
|
|
7806
7822
|
default:
|
|
7807
|
-
if ($n(E = Ms(C, t, n, c,
|
|
7808
|
-
if (
|
|
7809
|
-
Un(C, t, E, E, S, s,
|
|
7823
|
+
if ($n(E = Ms(C, t, n, c, u, i, a, x, S = [], v = [], d), s), w === 123)
|
|
7824
|
+
if (u === 0)
|
|
7825
|
+
Un(C, t, E, E, S, s, d, a, v);
|
|
7810
7826
|
else
|
|
7811
7827
|
switch (h === 99 && oe(C, 3) === 110 ? 100 : h) {
|
|
7812
7828
|
case 100:
|
|
7813
7829
|
case 108:
|
|
7814
7830
|
case 109:
|
|
7815
7831
|
case 115:
|
|
7816
|
-
Un(e, E, E, r && $n(Ms(e, E, E, 0, 0, i, a, x, i, S = [],
|
|
7832
|
+
Un(e, E, E, r && $n(Ms(e, E, E, 0, 0, i, a, x, i, S = [], d), v), i, v, d, a, r ? S : v);
|
|
7817
7833
|
break;
|
|
7818
7834
|
default:
|
|
7819
7835
|
Un(C, E, E, E, [""], v, 0, a, v);
|
|
7820
7836
|
}
|
|
7821
7837
|
}
|
|
7822
|
-
c =
|
|
7838
|
+
c = u = p = 0, f = b = 1, x = C = "", d = o;
|
|
7823
7839
|
break;
|
|
7824
7840
|
case 58:
|
|
7825
|
-
|
|
7841
|
+
d = 1 + Ve(C), p = y;
|
|
7826
7842
|
default:
|
|
7827
7843
|
if (f < 1) {
|
|
7828
7844
|
if (w == 123)
|
|
@@ -7832,13 +7848,13 @@ function Un(e, t, n, r, i, s, o, a, l) {
|
|
|
7832
7848
|
}
|
|
7833
7849
|
switch (C += kr(w), w * f) {
|
|
7834
7850
|
case 38:
|
|
7835
|
-
b =
|
|
7851
|
+
b = u > 0 ? 1 : (C += "\f", -1);
|
|
7836
7852
|
break;
|
|
7837
7853
|
case 44:
|
|
7838
7854
|
a[c++] = (Ve(C) - 1) * b, b = 1;
|
|
7839
7855
|
break;
|
|
7840
7856
|
case 64:
|
|
7841
|
-
$e() === 45 && (C += Hn(xe())), h = $e(),
|
|
7857
|
+
$e() === 45 && (C += Hn(xe())), h = $e(), u = d = Ve(x = C += Tm(Wn())), w++;
|
|
7842
7858
|
break;
|
|
7843
7859
|
case 45:
|
|
7844
7860
|
y === 45 && Ve(C) == 2 && (f = 0);
|
|
@@ -7846,11 +7862,11 @@ function Un(e, t, n, r, i, s, o, a, l) {
|
|
|
7846
7862
|
}
|
|
7847
7863
|
return s;
|
|
7848
7864
|
}
|
|
7849
|
-
function Ms(e, t, n, r, i, s, o, a, l, c,
|
|
7850
|
-
for (var
|
|
7851
|
-
for (var b = 0, w = hn(e,
|
|
7865
|
+
function Ms(e, t, n, r, i, s, o, a, l, c, u) {
|
|
7866
|
+
for (var d = i - 1, h = i === 0 ? s : [""], p = Ji(h), y = 0, f = 0, m = 0; y < r; ++y)
|
|
7867
|
+
for (var b = 0, w = hn(e, d + 1, d = mm(f = o[y])), x = e; b < p; ++b)
|
|
7852
7868
|
(x = gc(f > 0 ? h[b] + " " + w : L(w, /&\f/g, h[b]))) && (l[m++] = x);
|
|
7853
|
-
return Mr(e, t, n, i === 0 ? Xi : a, l, c,
|
|
7869
|
+
return Mr(e, t, n, i === 0 ? Xi : a, l, c, u);
|
|
7854
7870
|
}
|
|
7855
7871
|
function Pm(e, t, n) {
|
|
7856
7872
|
return Mr(e, t, n, Ki, kr(xm()), hn(e, 2, -2), 0);
|
|
@@ -7929,8 +7945,8 @@ var Mm = function(t, n, r) {
|
|
|
7929
7945
|
if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !Ds.get(r)) && !i) {
|
|
7930
7946
|
Ds.set(t, !0);
|
|
7931
7947
|
for (var s = [], o = Dm(n, s), a = r.props, l = 0, c = 0; l < o.length; l++)
|
|
7932
|
-
for (var
|
|
7933
|
-
t.props[c] = s[l] ? o[l].replace(/&\f/g, a[
|
|
7948
|
+
for (var u = 0; u < a.length; u++, c++)
|
|
7949
|
+
t.props[c] = s[l] ? o[l].replace(/&\f/g, a[u]) : a[u] + " " + o[l];
|
|
7934
7950
|
}
|
|
7935
7951
|
}
|
|
7936
7952
|
}, Vm = function(t) {
|
|
@@ -7960,8 +7976,8 @@ var Mm = function(t, n, r) {
|
|
|
7960
7976
|
break;
|
|
7961
7977
|
}
|
|
7962
7978
|
}
|
|
7963
|
-
s.forEach(function(
|
|
7964
|
-
console.error('The pseudo class "' +
|
|
7979
|
+
s.forEach(function(u) {
|
|
7980
|
+
console.error('The pseudo class "' + u + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + u.split("-child")[0] + '-of-type".');
|
|
7965
7981
|
});
|
|
7966
7982
|
}
|
|
7967
7983
|
}
|
|
@@ -8156,15 +8172,15 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
8156
8172
|
}
|
|
8157
8173
|
}), Fm);
|
|
8158
8174
|
{
|
|
8159
|
-
var
|
|
8160
|
-
f.root || (f.return ?
|
|
8175
|
+
var u, d = [Am, process.env.NODE_ENV !== "production" ? function(f) {
|
|
8176
|
+
f.root || (f.return ? u.insert(f.return) : f.value && f.type !== Ki && u.insert(f.value + "{}"));
|
|
8161
8177
|
} : Om(function(f) {
|
|
8162
|
-
|
|
8163
|
-
})], h = km(c.concat(i,
|
|
8178
|
+
u.insert(f);
|
|
8179
|
+
})], h = km(c.concat(i, d)), p = function(m) {
|
|
8164
8180
|
return It(_m(m), h);
|
|
8165
8181
|
};
|
|
8166
8182
|
l = function(m, b, w, x) {
|
|
8167
|
-
|
|
8183
|
+
u = w, process.env.NODE_ENV !== "production" && b.map !== void 0 && (u = {
|
|
8168
8184
|
insert: function(v) {
|
|
8169
8185
|
w.insert(v + b.map);
|
|
8170
8186
|
}
|
|
@@ -8201,7 +8217,7 @@ function Wm() {
|
|
|
8201
8217
|
if (Vs)
|
|
8202
8218
|
return F;
|
|
8203
8219
|
Vs = 1;
|
|
8204
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
8220
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, m = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
|
|
8205
8221
|
function x(v) {
|
|
8206
8222
|
if (typeof v == "object" && v !== null) {
|
|
8207
8223
|
var E = v.$$typeof;
|
|
@@ -8213,12 +8229,12 @@ function Wm() {
|
|
|
8213
8229
|
case r:
|
|
8214
8230
|
case s:
|
|
8215
8231
|
case i:
|
|
8216
|
-
case
|
|
8232
|
+
case d:
|
|
8217
8233
|
return v;
|
|
8218
8234
|
default:
|
|
8219
8235
|
switch (v = v && v.$$typeof, v) {
|
|
8220
8236
|
case a:
|
|
8221
|
-
case
|
|
8237
|
+
case u:
|
|
8222
8238
|
case y:
|
|
8223
8239
|
case p:
|
|
8224
8240
|
case o:
|
|
@@ -8235,7 +8251,7 @@ function Wm() {
|
|
|
8235
8251
|
function S(v) {
|
|
8236
8252
|
return x(v) === c;
|
|
8237
8253
|
}
|
|
8238
|
-
return F.AsyncMode = l, F.ConcurrentMode = c, F.ContextConsumer = a, F.ContextProvider = o, F.Element = t, F.ForwardRef =
|
|
8254
|
+
return F.AsyncMode = l, F.ConcurrentMode = c, F.ContextConsumer = a, F.ContextProvider = o, F.Element = t, F.ForwardRef = u, F.Fragment = r, F.Lazy = y, F.Memo = p, F.Portal = n, F.Profiler = s, F.StrictMode = i, F.Suspense = d, F.isAsyncMode = function(v) {
|
|
8239
8255
|
return S(v) || x(v) === l;
|
|
8240
8256
|
}, F.isConcurrentMode = S, F.isContextConsumer = function(v) {
|
|
8241
8257
|
return x(v) === a;
|
|
@@ -8244,7 +8260,7 @@ function Wm() {
|
|
|
8244
8260
|
}, F.isElement = function(v) {
|
|
8245
8261
|
return typeof v == "object" && v !== null && v.$$typeof === t;
|
|
8246
8262
|
}, F.isForwardRef = function(v) {
|
|
8247
|
-
return x(v) ===
|
|
8263
|
+
return x(v) === u;
|
|
8248
8264
|
}, F.isFragment = function(v) {
|
|
8249
8265
|
return x(v) === r;
|
|
8250
8266
|
}, F.isLazy = function(v) {
|
|
@@ -8258,9 +8274,9 @@ function Wm() {
|
|
|
8258
8274
|
}, F.isStrictMode = function(v) {
|
|
8259
8275
|
return x(v) === i;
|
|
8260
8276
|
}, F.isSuspense = function(v) {
|
|
8261
|
-
return x(v) ===
|
|
8277
|
+
return x(v) === d;
|
|
8262
8278
|
}, F.isValidElementType = function(v) {
|
|
8263
|
-
return typeof v == "string" || typeof v == "function" || v === r || v === c || v === s || v === i || v ===
|
|
8279
|
+
return typeof v == "string" || typeof v == "function" || v === r || v === c || v === s || v === i || v === d || v === h || typeof v == "object" && v !== null && (v.$$typeof === y || v.$$typeof === p || v.$$typeof === o || v.$$typeof === a || v.$$typeof === u || v.$$typeof === m || v.$$typeof === b || v.$$typeof === w || v.$$typeof === f);
|
|
8264
8280
|
}, F.typeOf = x, F;
|
|
8265
8281
|
}
|
|
8266
8282
|
var j = {};
|
|
@@ -8275,10 +8291,10 @@ var j = {};
|
|
|
8275
8291
|
var Is;
|
|
8276
8292
|
function Hm() {
|
|
8277
8293
|
return Is || (Is = 1, process.env.NODE_ENV !== "production" && function() {
|
|
8278
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
8294
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, m = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119;
|
|
8279
8295
|
function x(_) {
|
|
8280
8296
|
return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
8281
|
-
_ === r || _ === c || _ === s || _ === i || _ ===
|
|
8297
|
+
_ === r || _ === c || _ === s || _ === i || _ === d || _ === h || typeof _ == "object" && _ !== null && (_.$$typeof === y || _.$$typeof === p || _.$$typeof === o || _.$$typeof === a || _.$$typeof === u || _.$$typeof === m || _.$$typeof === b || _.$$typeof === w || _.$$typeof === f);
|
|
8282
8298
|
}
|
|
8283
8299
|
function S(_) {
|
|
8284
8300
|
if (typeof _ == "object" && _ !== null) {
|
|
@@ -8292,13 +8308,13 @@ function Hm() {
|
|
|
8292
8308
|
case r:
|
|
8293
8309
|
case s:
|
|
8294
8310
|
case i:
|
|
8295
|
-
case
|
|
8311
|
+
case d:
|
|
8296
8312
|
return A;
|
|
8297
8313
|
default:
|
|
8298
8314
|
var wt = A && A.$$typeof;
|
|
8299
8315
|
switch (wt) {
|
|
8300
8316
|
case a:
|
|
8301
|
-
case
|
|
8317
|
+
case u:
|
|
8302
8318
|
case y:
|
|
8303
8319
|
case p:
|
|
8304
8320
|
case o:
|
|
@@ -8312,7 +8328,7 @@ function Hm() {
|
|
|
8312
8328
|
}
|
|
8313
8329
|
}
|
|
8314
8330
|
}
|
|
8315
|
-
var v = l, E = c, C = a, T = o, P = t, D =
|
|
8331
|
+
var v = l, E = c, C = a, T = o, P = t, D = u, O = r, V = y, q = p, H = n, fe = s, U = i, ce = d, ue = !1;
|
|
8316
8332
|
function ge(_) {
|
|
8317
8333
|
return ue || (ue = !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.")), Re(_) || S(_) === l;
|
|
8318
8334
|
}
|
|
@@ -8329,7 +8345,7 @@ function Hm() {
|
|
|
8329
8345
|
return typeof _ == "object" && _ !== null && _.$$typeof === t;
|
|
8330
8346
|
}
|
|
8331
8347
|
function Se(_) {
|
|
8332
|
-
return S(_) ===
|
|
8348
|
+
return S(_) === u;
|
|
8333
8349
|
}
|
|
8334
8350
|
function Be(_) {
|
|
8335
8351
|
return S(_) === r;
|
|
@@ -8350,7 +8366,7 @@ function Hm() {
|
|
|
8350
8366
|
return S(_) === i;
|
|
8351
8367
|
}
|
|
8352
8368
|
function Oe(_) {
|
|
8353
|
-
return S(_) ===
|
|
8369
|
+
return S(_) === d;
|
|
8354
8370
|
}
|
|
8355
8371
|
j.AsyncMode = v, j.ConcurrentMode = E, j.ContextConsumer = C, j.ContextProvider = T, j.Element = P, j.ForwardRef = D, j.Fragment = O, j.Lazy = V, j.Memo = q, j.Portal = H, j.Profiler = fe, j.StrictMode = U, j.Suspense = ce, j.isAsyncMode = ge, j.isConcurrentMode = Re, j.isContextConsumer = B, j.isContextProvider = ke, j.isElement = je, j.isForwardRef = Se, j.isFragment = Be, j.isLazy = We, j.isMemo = xt, j.isPortal = Ut, j.isProfiler = ct, j.isStrictMode = Ke, j.isSuspense = Oe, j.isValidElementType = x, j.typeOf = S;
|
|
8356
8372
|
}()), j;
|
|
@@ -8546,7 +8562,7 @@ function mn(e, t, n) {
|
|
|
8546
8562
|
}
|
|
8547
8563
|
case "string":
|
|
8548
8564
|
if (process.env.NODE_ENV !== "production") {
|
|
8549
|
-
var a = [], l = n.replace(Tc, function(
|
|
8565
|
+
var a = [], l = n.replace(Tc, function(u, d, h) {
|
|
8550
8566
|
var p = "animation" + a.length;
|
|
8551
8567
|
return a.push("const " + p + " = keyframes`" + h.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + p + "}";
|
|
8552
8568
|
});
|
|
@@ -8611,12 +8627,12 @@ var Ne, Ft = function(t, n, r) {
|
|
|
8611
8627
|
process.env.NODE_ENV !== "production" && (s = s.replace(Pc, function(h) {
|
|
8612
8628
|
return l = h, "";
|
|
8613
8629
|
})), Fs.lastIndex = 0;
|
|
8614
|
-
for (var c = "",
|
|
8630
|
+
for (var c = "", u; (u = Fs.exec(s)) !== null; )
|
|
8615
8631
|
c += "-" + // $FlowFixMe we know it's not null
|
|
8616
|
-
|
|
8617
|
-
var
|
|
8632
|
+
u[1];
|
|
8633
|
+
var d = Km(s) + c;
|
|
8618
8634
|
return process.env.NODE_ENV !== "production" ? {
|
|
8619
|
-
name:
|
|
8635
|
+
name: d,
|
|
8620
8636
|
styles: s,
|
|
8621
8637
|
map: l,
|
|
8622
8638
|
next: Ne,
|
|
@@ -8624,7 +8640,7 @@ var Ne, Ft = function(t, n, r) {
|
|
|
8624
8640
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
8625
8641
|
}
|
|
8626
8642
|
} : {
|
|
8627
|
-
name:
|
|
8643
|
+
name: d,
|
|
8628
8644
|
styles: s,
|
|
8629
8645
|
next: Ne
|
|
8630
8646
|
};
|
|
@@ -8666,8 +8682,8 @@ var Bs = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Ws = "__EMOTION_LABEL_PLEASE_DO_N
|
|
|
8666
8682
|
}
|
|
8667
8683
|
o += t.key + "-" + a.name;
|
|
8668
8684
|
var c = {};
|
|
8669
|
-
for (var
|
|
8670
|
-
s2.call(e,
|
|
8685
|
+
for (var u in e)
|
|
8686
|
+
s2.call(e, u) && u !== "css" && u !== Bs && (process.env.NODE_ENV === "production" || u !== Ws) && (c[u] = e[u]);
|
|
8671
8687
|
return c.ref = n, c.className = o, /* @__PURE__ */ N.createElement(N.Fragment, null, /* @__PURE__ */ N.createElement(l2, {
|
|
8672
8688
|
cache: t,
|
|
8673
8689
|
serialized: a,
|
|
@@ -8891,16 +8907,16 @@ var p2 = function(t) {
|
|
|
8891
8907
|
var n = !1, r = [], i = function() {
|
|
8892
8908
|
if (n && process.env.NODE_ENV !== "production")
|
|
8893
8909
|
throw new Error("css can only be used during render");
|
|
8894
|
-
for (var c = arguments.length,
|
|
8895
|
-
d
|
|
8896
|
-
var h = Ft(
|
|
8910
|
+
for (var c = arguments.length, u = new Array(c), d = 0; d < c; d++)
|
|
8911
|
+
u[d] = arguments[d];
|
|
8912
|
+
var h = Ft(u, t.registered);
|
|
8897
8913
|
return r.push(h), Nr(t, h, !1), t.key + "-" + h.name;
|
|
8898
8914
|
}, s = function() {
|
|
8899
8915
|
if (n && process.env.NODE_ENV !== "production")
|
|
8900
8916
|
throw new Error("cx can only be used during render");
|
|
8901
|
-
for (var c = arguments.length,
|
|
8902
|
-
d
|
|
8903
|
-
return h2(t.registered, i, f2(
|
|
8917
|
+
for (var c = arguments.length, u = new Array(c), d = 0; d < c; d++)
|
|
8918
|
+
u[d] = arguments[d];
|
|
8919
|
+
return h2(t.registered, i, f2(u));
|
|
8904
8920
|
}, o = {
|
|
8905
8921
|
css: i,
|
|
8906
8922
|
cx: s,
|
|
@@ -8954,13 +8970,13 @@ You may have forgotten to import it.`);
|
|
|
8954
8970
|
n !== void 0 && (s = n.label, o = n.target);
|
|
8955
8971
|
var a = Ks(t, n, r), l = a || qs(i), c = !l("as");
|
|
8956
8972
|
return function() {
|
|
8957
|
-
var
|
|
8958
|
-
if (s !== void 0 &&
|
|
8959
|
-
|
|
8973
|
+
var u = arguments, d = r && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
|
|
8974
|
+
if (s !== void 0 && d.push("label:" + s + ";"), u[0] == null || u[0].raw === void 0)
|
|
8975
|
+
d.push.apply(d, u);
|
|
8960
8976
|
else {
|
|
8961
|
-
process.env.NODE_ENV !== "production" &&
|
|
8962
|
-
for (var h =
|
|
8963
|
-
process.env.NODE_ENV !== "production" &&
|
|
8977
|
+
process.env.NODE_ENV !== "production" && u[0][0] === void 0 && console.error(Xs), d.push(u[0][0]);
|
|
8978
|
+
for (var h = u.length, p = 1; p < h; p++)
|
|
8979
|
+
process.env.NODE_ENV !== "production" && u[0][p] === void 0 && console.error(Xs), d.push(u[p], u[0][p]);
|
|
8964
8980
|
}
|
|
8965
8981
|
var y = Rr(function(f, m, b) {
|
|
8966
8982
|
var w = c && f.as || i, x = "", S = [], v = f;
|
|
@@ -8971,7 +8987,7 @@ You may have forgotten to import it.`);
|
|
|
8971
8987
|
v.theme = N.useContext(bt);
|
|
8972
8988
|
}
|
|
8973
8989
|
typeof f.className == "string" ? x = Qi(m.registered, S, f.className) : f.className != null && (x = f.className + " ");
|
|
8974
|
-
var C = Ft(
|
|
8990
|
+
var C = Ft(d.concat(S), m.registered, v);
|
|
8975
8991
|
x += m.key + "-" + C.name, o !== void 0 && (x += " " + o);
|
|
8976
8992
|
var T = c && a === void 0 ? qs(w) : l, P = {};
|
|
8977
8993
|
for (var D in f)
|
|
@@ -8983,14 +8999,14 @@ You may have forgotten to import it.`);
|
|
|
8983
8999
|
isStringTag: typeof w == "string"
|
|
8984
9000
|
}), /* @__PURE__ */ N.createElement(w, P));
|
|
8985
9001
|
});
|
|
8986
|
-
return y.displayName = s !== void 0 ? s : "Styled(" + (typeof i == "string" ? i : i.displayName || i.name || "Component") + ")", y.defaultProps = t.defaultProps, y.__emotion_real = y, y.__emotion_base = i, y.__emotion_styles =
|
|
9002
|
+
return y.displayName = s !== void 0 ? s : "Styled(" + (typeof i == "string" ? i : i.displayName || i.name || "Component") + ")", y.defaultProps = t.defaultProps, y.__emotion_real = y, y.__emotion_base = i, y.__emotion_styles = d, y.__emotion_forwardProp = a, Object.defineProperty(y, "toString", {
|
|
8987
9003
|
value: function() {
|
|
8988
9004
|
return o === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + o;
|
|
8989
9005
|
}
|
|
8990
9006
|
}), y.withComponent = function(f, m) {
|
|
8991
9007
|
return e(f, W({}, n, m, {
|
|
8992
9008
|
shouldForwardProp: Ks(y, m, !0)
|
|
8993
|
-
})).apply(void 0,
|
|
9009
|
+
})).apply(void 0, d);
|
|
8994
9010
|
}, y;
|
|
8995
9011
|
};
|
|
8996
9012
|
}, w2 = [
|
|
@@ -9378,7 +9394,7 @@ function $c(e) {
|
|
|
9378
9394
|
e = Pe(e);
|
|
9379
9395
|
const {
|
|
9380
9396
|
values: t
|
|
9381
|
-
} = e, n = t[0], r = t[1] / 100, i = t[2] / 100, s = r * Math.min(i, 1 - i), o = (c,
|
|
9397
|
+
} = e, n = t[0], r = t[1] / 100, i = t[2] / 100, s = r * Math.min(i, 1 - i), o = (c, u = (c + n / 30) % 12) => i - s * Math.max(Math.min(u - 3, 9 - u, 1), -1);
|
|
9382
9398
|
let a = "rgb";
|
|
9383
9399
|
const l = [Math.round(o(0) * 255), Math.round(o(8) * 255), Math.round(o(4) * 255)];
|
|
9384
9400
|
return e.type === "hsla" && (a += "a", l.push(t[3])), Wt({
|
|
@@ -9702,8 +9718,8 @@ function fg(e) {
|
|
|
9702
9718
|
mode: t = "light",
|
|
9703
9719
|
contrastThreshold: n = 3,
|
|
9704
9720
|
tonalOffset: r = 0.2
|
|
9705
|
-
} = e, i = st(e, og), s = e.primary || sg(t), o = e.secondary || ag(t), a = e.error || lg(t), l = e.info || cg(t), c = e.success || ug(t),
|
|
9706
|
-
function
|
|
9721
|
+
} = e, i = st(e, og), s = e.primary || sg(t), o = e.secondary || ag(t), a = e.error || lg(t), l = e.info || cg(t), c = e.success || ug(t), u = e.warning || dg(t);
|
|
9722
|
+
function d(f) {
|
|
9707
9723
|
const m = Zs(f, Zr.text.primary) >= n ? Zr.text.primary : Qs.text.primary;
|
|
9708
9724
|
if (process.env.NODE_ENV !== "production") {
|
|
9709
9725
|
const b = Zs(f, m);
|
|
@@ -9737,7 +9753,7 @@ const theme1 = createTheme({ palette: {
|
|
|
9737
9753
|
const theme2 = createTheme({ palette: {
|
|
9738
9754
|
primary: { main: green[500] },
|
|
9739
9755
|
} });` : fn(12, m ? ` (${m})` : "", JSON.stringify(f.main)));
|
|
9740
|
-
return ea(f, "light", w, r), ea(f, "dark", x, r), f.contrastText || (f.contrastText =
|
|
9756
|
+
return ea(f, "light", w, r), ea(f, "dark", x, r), f.contrastText || (f.contrastText = d(f.main)), f;
|
|
9741
9757
|
}, p = {
|
|
9742
9758
|
dark: Zr,
|
|
9743
9759
|
light: Qs
|
|
@@ -9768,7 +9784,7 @@ const theme2 = createTheme({ palette: {
|
|
|
9768
9784
|
}),
|
|
9769
9785
|
// The colors used to represent potentially dangerous actions or important messages.
|
|
9770
9786
|
warning: h({
|
|
9771
|
-
color:
|
|
9787
|
+
color: u,
|
|
9772
9788
|
name: "warning"
|
|
9773
9789
|
}),
|
|
9774
9790
|
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
@@ -9787,7 +9803,7 @@ const theme2 = createTheme({ palette: {
|
|
|
9787
9803
|
// the background and the text.
|
|
9788
9804
|
contrastThreshold: n,
|
|
9789
9805
|
// Takes a background color and returns the text color that maximizes the contrast.
|
|
9790
|
-
getContrastText:
|
|
9806
|
+
getContrastText: d,
|
|
9791
9807
|
// Generate a rich color object.
|
|
9792
9808
|
augmentColor: h,
|
|
9793
9809
|
// Used by the functions below to shift a color's luminance by approximately
|
|
@@ -9817,11 +9833,11 @@ function mg(e, t) {
|
|
|
9817
9833
|
// 16px is the default font-size used by browsers.
|
|
9818
9834
|
htmlFontSize: c = 16,
|
|
9819
9835
|
// Apply the CSS properties to all the variants.
|
|
9820
|
-
allVariants:
|
|
9821
|
-
pxToRem:
|
|
9836
|
+
allVariants: u,
|
|
9837
|
+
pxToRem: d
|
|
9822
9838
|
} = n, h = st(n, hg);
|
|
9823
9839
|
process.env.NODE_ENV !== "production" && (typeof i != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof c != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
9824
|
-
const p = i / 14, y =
|
|
9840
|
+
const p = i / 14, y = d || ((b) => `${b / c * p}rem`), f = (b, w, x, S, v) => W({
|
|
9825
9841
|
fontFamily: r,
|
|
9826
9842
|
fontWeight: b,
|
|
9827
9843
|
fontSize: y(w),
|
|
@@ -9829,7 +9845,7 @@ function mg(e, t) {
|
|
|
9829
9845
|
lineHeight: x
|
|
9830
9846
|
}, r === na ? {
|
|
9831
9847
|
letterSpacing: `${pg(S / w)}em`
|
|
9832
|
-
} : {}, v,
|
|
9848
|
+
} : {}, v, u), m = {
|
|
9833
9849
|
h1: f(s, 96, 1.167, -1.5),
|
|
9834
9850
|
h2: f(s, 60, 1.2, -0.5),
|
|
9835
9851
|
h3: f(o, 48, 1.167, 0),
|
|
@@ -9913,11 +9929,11 @@ function Tg(e) {
|
|
|
9913
9929
|
delay: l = 0
|
|
9914
9930
|
} = s, c = st(s, wg);
|
|
9915
9931
|
if (process.env.NODE_ENV !== "production") {
|
|
9916
|
-
const
|
|
9917
|
-
!
|
|
9932
|
+
const u = (h) => typeof h == "string", d = (h) => !isNaN(parseFloat(h));
|
|
9933
|
+
!u(i) && !Array.isArray(i) && console.error('MUI: Argument "props" must be a string or Array.'), !d(o) && !u(o) && console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`), u(a) || console.error('MUI: Argument "easing" must be a string.'), !d(l) && !u(l) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof s != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
9918
9934
|
`)), Object.keys(c).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`);
|
|
9919
9935
|
}
|
|
9920
|
-
return (Array.isArray(i) ? i : [i]).map((
|
|
9936
|
+
return (Array.isArray(i) ? i : [i]).map((u) => `${u} ${typeof o == "string" ? o : ra(o)} ${a} ${typeof l == "string" ? l : ra(l)}`).join(",");
|
|
9921
9937
|
}
|
|
9922
9938
|
}, e, {
|
|
9923
9939
|
easing: t,
|
|
@@ -9953,12 +9969,12 @@ function kg(e = {}, ...t) {
|
|
|
9953
9969
|
transitions: Tg(i),
|
|
9954
9970
|
zIndex: W({}, Pg)
|
|
9955
9971
|
});
|
|
9956
|
-
if (c = Le(c, o), c = t.reduce((
|
|
9957
|
-
const
|
|
9972
|
+
if (c = Le(c, o), c = t.reduce((u, d) => Le(u, d), c), process.env.NODE_ENV !== "production") {
|
|
9973
|
+
const u = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], d = (h, p) => {
|
|
9958
9974
|
let y;
|
|
9959
9975
|
for (y in h) {
|
|
9960
9976
|
const f = h[y];
|
|
9961
|
-
if (
|
|
9977
|
+
if (u.indexOf(y) !== -1 && Object.keys(f).length > 0) {
|
|
9962
9978
|
if (process.env.NODE_ENV !== "production") {
|
|
9963
9979
|
const m = Hi("", y);
|
|
9964
9980
|
console.error([`MUI: The \`${p}\` component increases the CSS specificity of the \`${y}\` internal state.`, "You can not override it like this: ", JSON.stringify(h, null, 2), "", `Instead, you need to use the '&.${m}' syntax:`, JSON.stringify({
|
|
@@ -9974,12 +9990,12 @@ function kg(e = {}, ...t) {
|
|
|
9974
9990
|
};
|
|
9975
9991
|
Object.keys(c.components).forEach((h) => {
|
|
9976
9992
|
const p = c.components[h].styleOverrides;
|
|
9977
|
-
p && h.indexOf("Mui") === 0 &&
|
|
9993
|
+
p && h.indexOf("Mui") === 0 && d(p, h);
|
|
9978
9994
|
});
|
|
9979
9995
|
}
|
|
9980
|
-
return c.unstable_sxConfig = W({}, Tn, o == null ? void 0 : o.unstable_sxConfig), c.unstable_sx = function(
|
|
9996
|
+
return c.unstable_sxConfig = W({}, Tn, o == null ? void 0 : o.unstable_sxConfig), c.unstable_sx = function(d) {
|
|
9981
9997
|
return Gi({
|
|
9982
|
-
sx:
|
|
9998
|
+
sx: d,
|
|
9983
9999
|
theme: this
|
|
9984
10000
|
});
|
|
9985
10001
|
}, c;
|
|
@@ -10073,8 +10089,8 @@ function Gn(e, t) {
|
|
|
10073
10089
|
let c = !0;
|
|
10074
10090
|
typeof l.props == "function" ? c = l.props((0, Te.default)({
|
|
10075
10091
|
ownerState: n
|
|
10076
|
-
}, r, n)) : Object.keys(l.props).forEach((
|
|
10077
|
-
(n == null ? void 0 : n[
|
|
10092
|
+
}, r, n)) : Object.keys(l.props).forEach((u) => {
|
|
10093
|
+
(n == null ? void 0 : n[u]) !== l.props[u] && r[u] !== l.props[u] && (c = !1);
|
|
10078
10094
|
}), c && (Array.isArray(a) || (a = [a]), a.push(typeof l.style == "function" ? l.style((0, Te.default)({
|
|
10079
10095
|
ownerState: n
|
|
10080
10096
|
}, r, n)) : l.style));
|
|
@@ -10099,16 +10115,16 @@ function t3(e = {}) {
|
|
|
10099
10115
|
const {
|
|
10100
10116
|
name: l,
|
|
10101
10117
|
slot: c,
|
|
10102
|
-
skipVariantsResolver:
|
|
10103
|
-
skipSx:
|
|
10118
|
+
skipVariantsResolver: u,
|
|
10119
|
+
skipSx: d,
|
|
10104
10120
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
10105
10121
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
10106
10122
|
overridesResolver: h = e3(oa(c))
|
|
10107
|
-
} = a, p = (0, xi.default)(a, Kg), y =
|
|
10123
|
+
} = a, p = (0, xi.default)(a, Kg), y = u !== void 0 ? u : (
|
|
10108
10124
|
// TODO v6: remove `Root` in the next major release
|
|
10109
10125
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
10110
10126
|
c && c !== "Root" && c !== "root" || !1
|
|
10111
|
-
), f =
|
|
10127
|
+
), f = d || !1;
|
|
10112
10128
|
let m;
|
|
10113
10129
|
process.env.NODE_ENV !== "production" && l && (m = `${l}-${oa(c || "Root")}`);
|
|
10114
10130
|
let b = Yn;
|
|
@@ -10196,7 +10212,7 @@ const s3 = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
10196
10212
|
theme: e,
|
|
10197
10213
|
ownerState: t
|
|
10198
10214
|
}) => {
|
|
10199
|
-
var n, r, i, s, o, a, l, c,
|
|
10215
|
+
var n, r, i, s, o, a, l, c, u, d, h, p, y;
|
|
10200
10216
|
return {
|
|
10201
10217
|
userSelect: "none",
|
|
10202
10218
|
width: "1em",
|
|
@@ -10213,10 +10229,10 @@ const s3 = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
10213
10229
|
inherit: "inherit",
|
|
10214
10230
|
small: ((s = e.typography) == null || (o = s.pxToRem) == null ? void 0 : o.call(s, 20)) || "1.25rem",
|
|
10215
10231
|
medium: ((a = e.typography) == null || (l = a.pxToRem) == null ? void 0 : l.call(a, 24)) || "1.5rem",
|
|
10216
|
-
large: ((c = e.typography) == null || (
|
|
10232
|
+
large: ((c = e.typography) == null || (u = c.pxToRem) == null ? void 0 : u.call(c, 35)) || "2.1875rem"
|
|
10217
10233
|
}[t.fontSize],
|
|
10218
10234
|
// TODO v5 deprecate, v6 remove for sx
|
|
10219
|
-
color: (
|
|
10235
|
+
color: (d = (h = (e.vars || e).palette) == null || (h = h[t.color]) == null ? void 0 : h.main) != null ? d : {
|
|
10220
10236
|
action: (p = (e.vars || e).palette) == null || (p = p.action) == null ? void 0 : p.active,
|
|
10221
10237
|
disabled: (y = (e.vars || e).palette) == null || (y = y.action) == null ? void 0 : y.disabled,
|
|
10222
10238
|
inherit: void 0
|
|
@@ -10233,32 +10249,32 @@ const s3 = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
10233
10249
|
component: a = "svg",
|
|
10234
10250
|
fontSize: l = "medium",
|
|
10235
10251
|
htmlColor: c,
|
|
10236
|
-
inheritViewBox:
|
|
10237
|
-
titleAccess:
|
|
10252
|
+
inheritViewBox: u = !1,
|
|
10253
|
+
titleAccess: d,
|
|
10238
10254
|
viewBox: h = "0 0 24 24"
|
|
10239
10255
|
} = r, p = st(r, s3), y = /* @__PURE__ */ N.isValidElement(i) && i.type === "svg", f = W({}, r, {
|
|
10240
10256
|
color: o,
|
|
10241
10257
|
component: a,
|
|
10242
10258
|
fontSize: l,
|
|
10243
10259
|
instanceFontSize: t.fontSize,
|
|
10244
|
-
inheritViewBox:
|
|
10260
|
+
inheritViewBox: u,
|
|
10245
10261
|
viewBox: h,
|
|
10246
10262
|
hasSvgAsChild: y
|
|
10247
10263
|
}), m = {};
|
|
10248
|
-
|
|
10264
|
+
u || (m.viewBox = h);
|
|
10249
10265
|
const b = a3(f);
|
|
10250
10266
|
return /* @__PURE__ */ k(l3, W({
|
|
10251
10267
|
as: a,
|
|
10252
10268
|
className: eu(b.root, s),
|
|
10253
10269
|
focusable: "false",
|
|
10254
10270
|
color: c,
|
|
10255
|
-
"aria-hidden":
|
|
10256
|
-
role:
|
|
10271
|
+
"aria-hidden": d ? void 0 : !0,
|
|
10272
|
+
role: d ? "img" : void 0,
|
|
10257
10273
|
ref: n
|
|
10258
10274
|
}, m, p, y && i.props, {
|
|
10259
10275
|
ownerState: f,
|
|
10260
|
-
children: [y ? i.props.children : i,
|
|
10261
|
-
children:
|
|
10276
|
+
children: [y ? i.props.children : i, d ? /* @__PURE__ */ g("title", {
|
|
10277
|
+
children: d
|
|
10262
10278
|
}) : null]
|
|
10263
10279
|
}));
|
|
10264
10280
|
});
|
|
@@ -10421,12 +10437,12 @@ var m3 = 150, g3 = function(t, n) {
|
|
|
10421
10437
|
}, qn = null, Kn = null;
|
|
10422
10438
|
process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (qn = /* @__PURE__ */ new WeakSet(), Kn = /* @__PURE__ */ new WeakSet());
|
|
10423
10439
|
function y3(e) {
|
|
10424
|
-
var t, n = e.getItemOffset, r = e.getEstimatedTotalSize, i = e.getItemSize, s = e.getOffsetForIndexAndAlignment, o = e.getStartIndexForOffset, a = e.getStopIndexForStartIndex, l = e.initInstanceProps, c = e.shouldResetStyleCacheOnItemSizeChange,
|
|
10425
|
-
return t = /* @__PURE__ */ function(
|
|
10426
|
-
tu(h,
|
|
10440
|
+
var t, n = e.getItemOffset, r = e.getEstimatedTotalSize, i = e.getItemSize, s = e.getOffsetForIndexAndAlignment, o = e.getStartIndexForOffset, a = e.getStopIndexForStartIndex, l = e.initInstanceProps, c = e.shouldResetStyleCacheOnItemSizeChange, u = e.validateProps;
|
|
10441
|
+
return t = /* @__PURE__ */ function(d) {
|
|
10442
|
+
tu(h, d);
|
|
10427
10443
|
function h(y) {
|
|
10428
10444
|
var f;
|
|
10429
|
-
return f =
|
|
10445
|
+
return f = d.call(this, y) || this, f._instanceProps = l(f.props, aa(f)), f._outerRef = void 0, f._resetIsScrollingTimeoutId = null, f.state = {
|
|
10430
10446
|
instance: aa(f),
|
|
10431
10447
|
isScrolling: !1,
|
|
10432
10448
|
scrollDirection: "forward",
|
|
@@ -10512,7 +10528,7 @@ function y3(e) {
|
|
|
10512
10528
|
}, f;
|
|
10513
10529
|
}
|
|
10514
10530
|
h.getDerivedStateFromProps = function(f, m) {
|
|
10515
|
-
return v3(f, m),
|
|
10531
|
+
return v3(f, m), u(f), null;
|
|
10516
10532
|
};
|
|
10517
10533
|
var p = h.prototype;
|
|
10518
10534
|
return p.scrollTo = function(f) {
|
|
@@ -10628,14 +10644,14 @@ function y3(e) {
|
|
|
10628
10644
|
}, t;
|
|
10629
10645
|
}
|
|
10630
10646
|
var v3 = function(t, n) {
|
|
10631
|
-
var r = t.children, i = t.direction, s = t.height, o = t.layout, a = t.innerTagName, l = t.outerTagName, c = t.width,
|
|
10647
|
+
var r = t.children, i = t.direction, s = t.height, o = t.layout, a = t.innerTagName, l = t.outerTagName, c = t.width, u = n.instance;
|
|
10632
10648
|
if (process.env.NODE_ENV !== "production") {
|
|
10633
|
-
(a != null || l != null) && Kn && !Kn.has(
|
|
10634
|
-
var
|
|
10649
|
+
(a != null || l != null) && Kn && !Kn.has(u) && (Kn.add(u), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));
|
|
10650
|
+
var d = i === "horizontal" || o === "horizontal";
|
|
10635
10651
|
switch (i) {
|
|
10636
10652
|
case "horizontal":
|
|
10637
10653
|
case "vertical":
|
|
10638
|
-
qn && !qn.has(
|
|
10654
|
+
qn && !qn.has(u) && (qn.add(u), console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));
|
|
10639
10655
|
break;
|
|
10640
10656
|
case "ltr":
|
|
10641
10657
|
case "rtl":
|
|
@@ -10652,9 +10668,9 @@ var v3 = function(t, n) {
|
|
|
10652
10668
|
}
|
|
10653
10669
|
if (r == null)
|
|
10654
10670
|
throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
|
|
10655
|
-
if (
|
|
10671
|
+
if (d && typeof c != "number")
|
|
10656
10672
|
throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (c === null ? "null" : typeof c) + '" was specified.'));
|
|
10657
|
-
if (!
|
|
10673
|
+
if (!d && typeof s != "number")
|
|
10658
10674
|
throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (s === null ? "null" : typeof s) + '" was specified.'));
|
|
10659
10675
|
}
|
|
10660
10676
|
}, b3 = 50, Rt = function(t, n, r) {
|
|
@@ -10665,12 +10681,12 @@ var v3 = function(t, n) {
|
|
|
10665
10681
|
var c = o[a];
|
|
10666
10682
|
l = c.offset + c.size;
|
|
10667
10683
|
}
|
|
10668
|
-
for (var
|
|
10669
|
-
var
|
|
10670
|
-
o[
|
|
10684
|
+
for (var u = a + 1; u <= n; u++) {
|
|
10685
|
+
var d = s(u);
|
|
10686
|
+
o[u] = {
|
|
10671
10687
|
offset: l,
|
|
10672
|
-
size:
|
|
10673
|
-
}, l +=
|
|
10688
|
+
size: d
|
|
10689
|
+
}, l += d;
|
|
10674
10690
|
}
|
|
10675
10691
|
r.lastMeasuredIndex = n;
|
|
10676
10692
|
}
|
|
@@ -10696,8 +10712,8 @@ var v3 = function(t, n) {
|
|
|
10696
10712
|
var l = i[o];
|
|
10697
10713
|
a = l.offset + l.size;
|
|
10698
10714
|
}
|
|
10699
|
-
var c = r - o - 1,
|
|
10700
|
-
return a +
|
|
10715
|
+
var c = r - o - 1, u = c * s;
|
|
10716
|
+
return a + u;
|
|
10701
10717
|
}, S3 = /* @__PURE__ */ y3({
|
|
10702
10718
|
getItemOffset: function(t, n, r) {
|
|
10703
10719
|
return Rt(t, n, r).offset;
|
|
@@ -10707,7 +10723,7 @@ var v3 = function(t, n) {
|
|
|
10707
10723
|
},
|
|
10708
10724
|
getEstimatedTotalSize: ha,
|
|
10709
10725
|
getOffsetForIndexAndAlignment: function(t, n, r, i, s, o) {
|
|
10710
|
-
var a = t.direction, l = t.height, c = t.layout,
|
|
10726
|
+
var a = t.direction, l = t.height, c = t.layout, u = t.width, d = a === "horizontal" || c === "horizontal", h = d ? u : l, p = Rt(t, n, s), y = ha(t, s), f = Math.max(0, Math.min(y - h, p.offset)), m = Math.max(0, p.offset - h + p.size + o);
|
|
10711
10727
|
switch (r === "smart" && (i >= m - h && i <= f + h ? r = "auto" : r = "center"), r) {
|
|
10712
10728
|
case "start":
|
|
10713
10729
|
return f;
|
|
@@ -10724,7 +10740,7 @@ var v3 = function(t, n) {
|
|
|
10724
10740
|
return x3(t, r, n);
|
|
10725
10741
|
},
|
|
10726
10742
|
getStopIndexForStartIndex: function(t, n, r, i) {
|
|
10727
|
-
for (var s = t.direction, o = t.height, a = t.itemCount, l = t.layout, c = t.width,
|
|
10743
|
+
for (var s = t.direction, o = t.height, a = t.itemCount, l = t.layout, c = t.width, u = s === "horizontal" || l === "horizontal", d = u ? c : o, h = Rt(t, n, i), p = r + d, y = h.offset + h.size, f = n; f < a - 1 && y < p; )
|
|
10728
10744
|
f++, y += Rt(t, f, i).size;
|
|
10729
10745
|
return f;
|
|
10730
10746
|
},
|
|
@@ -10786,16 +10802,16 @@ const fr = 37, E3 = (e, t) => {
|
|
|
10786
10802
|
return document.body.removeChild(o), a > 21 ? fr + 21 : fr;
|
|
10787
10803
|
};
|
|
10788
10804
|
function q3(e) {
|
|
10789
|
-
const [t, n] = K(!1), [r, i] = K(""), [s, o] = K(""), [a, l] = K(!1), { isRequired: c = !1 } = e,
|
|
10805
|
+
const [t, n] = K(!1), [r, i] = K(""), [s, o] = K(""), [a, l] = K(!1), { isRequired: c = !1 } = e, u = Qt(
|
|
10790
10806
|
co.debounce((S) => {
|
|
10791
10807
|
var v;
|
|
10792
10808
|
(v = e.handleChangeSearch) == null || v.call(e, S);
|
|
10793
10809
|
}, 300),
|
|
10794
10810
|
[e.handleChangeSearch]
|
|
10795
|
-
),
|
|
10811
|
+
), d = () => {
|
|
10796
10812
|
n(!t);
|
|
10797
10813
|
}, h = () => {
|
|
10798
|
-
n(!1), o(""),
|
|
10814
|
+
n(!1), o(""), u("");
|
|
10799
10815
|
};
|
|
10800
10816
|
be(() => {
|
|
10801
10817
|
i(e.value ? e.getOptionLabel(e.value) : "");
|
|
@@ -10805,7 +10821,7 @@ function q3(e) {
|
|
|
10805
10821
|
l(e.searchLoading);
|
|
10806
10822
|
}, [e.paging.rows, e.searchLoading]);
|
|
10807
10823
|
const p = e.paging.rows, { hasNextPage: y } = e, f = y ? p.length + 1 : p.length, m = () => e.isNextPageLoading ? void 0 : e.loadNextPage(s), b = (S) => !y || S < p.length, w = (S) => {
|
|
10808
|
-
i(S.target.value), t && (o(S.target.value),
|
|
10824
|
+
i(S.target.value), t && (o(S.target.value), u(S.target.value), l(!0));
|
|
10809
10825
|
}, x = ze(null);
|
|
10810
10826
|
return /* @__PURE__ */ g(
|
|
10811
10827
|
vu,
|
|
@@ -10855,7 +10871,7 @@ function q3(e) {
|
|
|
10855
10871
|
padding: "1px"
|
|
10856
10872
|
},
|
|
10857
10873
|
onClick: (S) => {
|
|
10858
|
-
S.preventDefault(), S.stopPropagation(),
|
|
10874
|
+
S.preventDefault(), S.stopPropagation(), d();
|
|
10859
10875
|
},
|
|
10860
10876
|
disabled: e.loading || e.disabled || e.readOnly,
|
|
10861
10877
|
children: e.loading ? /* @__PURE__ */ g(xu, { size: "16px" }) : /* @__PURE__ */ g(
|
|
@@ -11011,7 +11027,7 @@ function q3(e) {
|
|
|
11011
11027
|
);
|
|
11012
11028
|
}
|
|
11013
11029
|
function K3(e) {
|
|
11014
|
-
var
|
|
11030
|
+
var u;
|
|
11015
11031
|
const { listProps: t } = e, [n, r] = K({
|
|
11016
11032
|
initLoading: !e.disabled,
|
|
11017
11033
|
searchLoading: !1,
|
|
@@ -11019,17 +11035,17 @@ function K3(e) {
|
|
|
11019
11035
|
isNextPageLoading: !1,
|
|
11020
11036
|
paging: {
|
|
11021
11037
|
page: 1,
|
|
11022
|
-
pageSize: ((
|
|
11038
|
+
pageSize: ((u = e.listProps) == null ? void 0 : u.pageSize) || 20,
|
|
11023
11039
|
rows: [],
|
|
11024
11040
|
total: 0,
|
|
11025
11041
|
totalPages: 1
|
|
11026
11042
|
}
|
|
11027
|
-
}), i = async (
|
|
11043
|
+
}), i = async (d, h) => {
|
|
11028
11044
|
var p, y;
|
|
11029
11045
|
if (e.list)
|
|
11030
11046
|
r(() => {
|
|
11031
11047
|
var b;
|
|
11032
|
-
const f = ((b =
|
|
11048
|
+
const f = ((b = d == null ? void 0 : d.search) == null ? void 0 : b.content) || "";
|
|
11033
11049
|
return {
|
|
11034
11050
|
hasNextPage: !1,
|
|
11035
11051
|
isNextPageLoading: !1,
|
|
@@ -11054,13 +11070,13 @@ function K3(e) {
|
|
|
11054
11070
|
pageSize: 20,
|
|
11055
11071
|
filter: {
|
|
11056
11072
|
...t == null ? void 0 : t.filter,
|
|
11057
|
-
...
|
|
11073
|
+
...d == null ? void 0 : d.filter
|
|
11058
11074
|
},
|
|
11059
11075
|
...uo.omit(t, "filter"),
|
|
11060
|
-
...uo.omit(
|
|
11076
|
+
...uo.omit(d, "filter"),
|
|
11061
11077
|
search: {
|
|
11062
11078
|
fields: ((p = t == null ? void 0 : t.search) == null ? void 0 : p.fields) ?? [],
|
|
11063
|
-
content: ((y =
|
|
11079
|
+
content: ((y = d == null ? void 0 : d.search) == null ? void 0 : y.content) ?? ""
|
|
11064
11080
|
}
|
|
11065
11081
|
};
|
|
11066
11082
|
h && (f.filter = {}, f.search && (f.search.content = ""), f.page = 1);
|
|
@@ -11071,26 +11087,26 @@ function K3(e) {
|
|
|
11071
11087
|
isNextPageLoading: !1,
|
|
11072
11088
|
paging: {
|
|
11073
11089
|
...m,
|
|
11074
|
-
rows: (
|
|
11090
|
+
rows: (d == null ? void 0 : d.page) === 1 ? m.rows : b.paging.rows.concat(m.rows)
|
|
11075
11091
|
},
|
|
11076
11092
|
hasNextPage: m.page < m.totalPages
|
|
11077
11093
|
}));
|
|
11078
11094
|
} catch {
|
|
11079
11095
|
}
|
|
11080
11096
|
}
|
|
11081
|
-
}, s = () => (r((
|
|
11097
|
+
}, s = () => (r((d) => ({ ...d, initLoading: !0 })), i(void 0, !0)), o = (d) => (r((h) => ({ ...h, initLoading: !0 })), i(d)), a = (d) => {
|
|
11082
11098
|
i({
|
|
11083
11099
|
page: n.paging.page + 1,
|
|
11084
|
-
search: { content:
|
|
11100
|
+
search: { content: d }
|
|
11085
11101
|
});
|
|
11086
|
-
}, l = (
|
|
11087
|
-
r((h) => ({ ...h, searchLoading: !0 })), i({ page: 1, search: { content:
|
|
11102
|
+
}, l = (d) => {
|
|
11103
|
+
r((h) => ({ ...h, searchLoading: !0 })), i({ page: 1, search: { content: d } });
|
|
11088
11104
|
};
|
|
11089
11105
|
be(() => {
|
|
11090
|
-
e.disabled || (r((
|
|
11106
|
+
e.disabled || (r((d) => ({ ...d, initLoading: !0 })), i({ page: 1 }));
|
|
11091
11107
|
}, [...e.dependencyList || []]);
|
|
11092
11108
|
const c = () => {
|
|
11093
|
-
r((
|
|
11109
|
+
r((d) => ({ ...d, initLoading: !d.initLoading }));
|
|
11094
11110
|
};
|
|
11095
11111
|
return {
|
|
11096
11112
|
...e,
|
|
@@ -11220,7 +11236,7 @@ function X3(e) {
|
|
|
11220
11236
|
},
|
|
11221
11237
|
onApply: (l, c) => {
|
|
11222
11238
|
var f, m, b;
|
|
11223
|
-
const
|
|
11239
|
+
const u = c.chosenLabel === T3, { startDate: d, endDate: h } = c, p = u ? ((f = e.dateReset) == null ? void 0 : f.startDate) ?? void 0 : d.toDate(), y = u ? ((m = e.dateReset) == null ? void 0 : m.endDate) ?? void 0 : h.toDate();
|
|
11224
11240
|
console.log("onApply"), n({ startDate: p, endDate: y }), (b = e.onChange) == null || b.call(e, { startDate: p, endDate: y });
|
|
11225
11241
|
},
|
|
11226
11242
|
children: /* @__PURE__ */ g(
|
|
@@ -11351,12 +11367,12 @@ const _3 = ["granted", "denied"], P3 = (e) => {
|
|
|
11351
11367
|
message: (a = s == null ? void 0 : s.data) == null ? void 0 : a.message,
|
|
11352
11368
|
context: (l = s == null ? void 0 : s.data) == null ? void 0 : l.context
|
|
11353
11369
|
}), r((c) => {
|
|
11354
|
-
var
|
|
11370
|
+
var u;
|
|
11355
11371
|
return {
|
|
11356
11372
|
...c,
|
|
11357
11373
|
unread: {
|
|
11358
11374
|
...c.unread,
|
|
11359
|
-
total: ((
|
|
11375
|
+
total: ((u = c.unread) == null ? void 0 : u.total) + 1
|
|
11360
11376
|
}
|
|
11361
11377
|
};
|
|
11362
11378
|
});
|