@ukpc-lib/react 0.2.26 → 0.2.28
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 +545 -523
- 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-ed2b29bc.js} +84 -62
- package/web-components-bundle/{index-04dc6603.cjs → index-f93fc96f.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,74 +363,80 @@ 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: [
|
|
364
|
-
/* @__PURE__ */ k(
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
379
|
+
}, [r]), /* @__PURE__ */ k("div", { children: [
|
|
380
|
+
/* @__PURE__ */ k("div", { style: { position: "relative" }, children: [
|
|
381
|
+
/* @__PURE__ */ k(
|
|
382
|
+
"svg",
|
|
383
|
+
{
|
|
384
|
+
width: "24",
|
|
385
|
+
height: "25",
|
|
386
|
+
viewBox: "0 0 24 25",
|
|
387
|
+
fill: "none",
|
|
388
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
389
|
+
onClick: i,
|
|
390
|
+
style: { cursor: "pointer" },
|
|
391
|
+
children: [
|
|
392
|
+
/* @__PURE__ */ g(
|
|
393
|
+
"path",
|
|
394
|
+
{
|
|
395
|
+
fillRule: "evenodd",
|
|
396
|
+
clipRule: "evenodd",
|
|
397
|
+
d: "M11.7968 17.4705C16.5901 17.4705 18.8076 16.8556 19.0218 14.3874C19.0218 11.921 17.4757 12.0796 17.4757 9.05334C17.4757 6.68952 15.2352 4 11.7968 4C8.35833 4 6.1178 6.68952 6.1178 9.05334C6.1178 12.0796 4.57178 11.921 4.57178 14.3874C4.78679 16.8649 7.00428 17.4705 11.7968 17.4705Z",
|
|
398
|
+
stroke: e,
|
|
399
|
+
strokeWidth: "1.5",
|
|
400
|
+
strokeLinecap: "round",
|
|
401
|
+
strokeLinejoin: "round"
|
|
402
|
+
}
|
|
403
|
+
),
|
|
404
|
+
/* @__PURE__ */ g(
|
|
405
|
+
"path",
|
|
406
|
+
{
|
|
407
|
+
d: "M13.8274 20.0286C12.6679 21.3161 10.8591 21.3313 9.68848 20.0286",
|
|
408
|
+
stroke: e,
|
|
409
|
+
strokeWidth: "1.5",
|
|
410
|
+
strokeLinecap: "round",
|
|
411
|
+
strokeLinejoin: "round"
|
|
412
|
+
}
|
|
413
|
+
)
|
|
414
|
+
]
|
|
415
|
+
}
|
|
416
|
+
),
|
|
417
|
+
(s == null ? void 0 : s.unread) && (s == null ? void 0 : s.unread.total) != 0 && /* @__PURE__ */ g(
|
|
418
|
+
"span",
|
|
419
|
+
{
|
|
420
|
+
style: {
|
|
421
|
+
position: "absolute",
|
|
422
|
+
top: "-9px",
|
|
423
|
+
right: "-6px",
|
|
424
|
+
background: `${va.dangerDark}`,
|
|
425
|
+
width: "20px",
|
|
426
|
+
height: "20px",
|
|
427
|
+
border: "1px solid #fff",
|
|
428
|
+
borderRadius: "50%",
|
|
429
|
+
color: "#fff",
|
|
430
|
+
fontSize: "12px",
|
|
431
|
+
display: "flex",
|
|
432
|
+
alignItems: "center",
|
|
433
|
+
justifyContent: "center"
|
|
434
|
+
},
|
|
435
|
+
className: "notification-badge",
|
|
436
|
+
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}`
|
|
437
|
+
}
|
|
438
|
+
)
|
|
439
|
+
] }),
|
|
418
440
|
!r && /* @__PURE__ */ g(Pu, { baseUrl: t, notiPath: n })
|
|
419
441
|
] });
|
|
420
442
|
}
|
|
@@ -428,7 +450,7 @@ function Sa({ children: e, styles: t = [], ...n }) {
|
|
|
428
450
|
}
|
|
429
451
|
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
452
|
`, 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:
|
|
453
|
+
`, 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
454
|
`, 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
455
|
`, 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
456
|
`;
|
|
@@ -552,7 +574,7 @@ function z3({
|
|
|
552
574
|
...i,
|
|
553
575
|
color: (o == null ? void 0 : o.color) || "black",
|
|
554
576
|
backgroundColor: (o == null ? void 0 : o.bgColor) || "black"
|
|
555
|
-
}, [
|
|
577
|
+
}, [u, d] = K(!1), h = () => {
|
|
556
578
|
window.location.href = `${n}/authentication/logout?callbackUrl=${window.location.href}`;
|
|
557
579
|
};
|
|
558
580
|
return /* @__PURE__ */ k(
|
|
@@ -614,7 +636,7 @@ function z3({
|
|
|
614
636
|
primaryColor: o == null ? void 0 : o.primaryColor,
|
|
615
637
|
avatarUrl: t == null ? void 0 : t.avatarUrl,
|
|
616
638
|
userName: t == null ? void 0 : t.firstName,
|
|
617
|
-
setShowConfirmModal:
|
|
639
|
+
setShowConfirmModal: d
|
|
618
640
|
}
|
|
619
641
|
),
|
|
620
642
|
/* @__PURE__ */ g("p", { className: "userFullName", children: `${(t == null ? void 0 : t.firstName) || "Unknown"} ${(t == null ? void 0 : t.lastName) || "User"}` })
|
|
@@ -626,8 +648,8 @@ function z3({
|
|
|
626
648
|
/* @__PURE__ */ g(
|
|
627
649
|
xa,
|
|
628
650
|
{
|
|
629
|
-
isOpen:
|
|
630
|
-
onClose: () =>
|
|
651
|
+
isOpen: u,
|
|
652
|
+
onClose: () => d(!1),
|
|
631
653
|
onConfirm: h
|
|
632
654
|
}
|
|
633
655
|
)
|
|
@@ -741,10 +763,10 @@ function $u({
|
|
|
741
763
|
setShowConfirmModal: n,
|
|
742
764
|
primaryColor: r = "#009d4f"
|
|
743
765
|
}) {
|
|
744
|
-
const [i, s] = K(!1), o = ze(null), a = ze(null), [l, c] = K(!1), [
|
|
766
|
+
const [i, s] = K(!1), o = ze(null), a = ze(null), [l, c] = K(!1), [u, d] = K(!1), h = {
|
|
745
767
|
backgroundColor: l ? r : "transparent"
|
|
746
768
|
}, p = {
|
|
747
|
-
backgroundColor:
|
|
769
|
+
backgroundColor: u ? r : "transparent"
|
|
748
770
|
};
|
|
749
771
|
return be(() => {
|
|
750
772
|
const y = (f) => {
|
|
@@ -782,8 +804,8 @@ function $u({
|
|
|
782
804
|
/* @__PURE__ */ g(
|
|
783
805
|
"li",
|
|
784
806
|
{
|
|
785
|
-
onMouseEnter: () =>
|
|
786
|
-
onMouseLeave: () =>
|
|
807
|
+
onMouseEnter: () => d(!0),
|
|
808
|
+
onMouseLeave: () => d(!1),
|
|
787
809
|
style: p,
|
|
788
810
|
className: "avatar-dropdown-item",
|
|
789
811
|
children: "Profile"
|
|
@@ -873,24 +895,24 @@ var ud = function() {
|
|
|
873
895
|
const Ir = ud;
|
|
874
896
|
var dd = "Expected a function", fd = Math.max, hd = Math.min;
|
|
875
897
|
function Fn(e, t, n) {
|
|
876
|
-
var r, i, s, o, a, l, c = 0,
|
|
898
|
+
var r, i, s, o, a, l, c = 0, u = !1, d = !1, h = !0;
|
|
877
899
|
if (typeof e != "function")
|
|
878
900
|
throw new TypeError(dd);
|
|
879
|
-
t = go(t) || 0, Qn(n) && (
|
|
901
|
+
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
902
|
function p(E) {
|
|
881
903
|
var C = r, T = i;
|
|
882
904
|
return r = i = void 0, c = E, o = e.apply(T, C), o;
|
|
883
905
|
}
|
|
884
906
|
function y(E) {
|
|
885
|
-
return c = E, a = setTimeout(b, t),
|
|
907
|
+
return c = E, a = setTimeout(b, t), u ? p(E) : o;
|
|
886
908
|
}
|
|
887
909
|
function f(E) {
|
|
888
910
|
var C = E - l, T = E - c, P = t - C;
|
|
889
|
-
return
|
|
911
|
+
return d ? hd(P, s - T) : P;
|
|
890
912
|
}
|
|
891
913
|
function m(E) {
|
|
892
914
|
var C = E - l, T = E - c;
|
|
893
|
-
return l === void 0 || C >= t || C < 0 ||
|
|
915
|
+
return l === void 0 || C >= t || C < 0 || d && T >= s;
|
|
894
916
|
}
|
|
895
917
|
function b() {
|
|
896
918
|
var E = Ir();
|
|
@@ -912,7 +934,7 @@ function Fn(e, t, n) {
|
|
|
912
934
|
if (r = arguments, i = this, l = E, C) {
|
|
913
935
|
if (a === void 0)
|
|
914
936
|
return y(l);
|
|
915
|
-
if (
|
|
937
|
+
if (d)
|
|
916
938
|
return clearTimeout(a), a = setTimeout(b, t), p(l);
|
|
917
939
|
}
|
|
918
940
|
return a === void 0 && (a = setTimeout(b, t)), o;
|
|
@@ -1042,11 +1064,11 @@ var vd = /* @__PURE__ */ Object.freeze({
|
|
|
1042
1064
|
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
1065
|
}
|
|
1044
1066
|
}, this.drag = function(i) {
|
|
1045
|
-
var s, o, a, l, c,
|
|
1067
|
+
var s, o, a, l, c, u, d, h, p, y, f;
|
|
1046
1068
|
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((
|
|
1069
|
+
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
1070
|
i.preventDefault(), i.stopPropagation(), r.draggedAxis === "y" ? m = i.pageY : m = i.pageX;
|
|
1049
|
-
var E = m - ((h = (
|
|
1071
|
+
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
1072
|
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
1073
|
var C = E / (w - x.size), T = C * (S - v);
|
|
1052
1074
|
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 +1177,10 @@ var vd = /* @__PURE__ */ Object.freeze({
|
|
|
1155
1177
|
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
1178
|
var l = this.contentEl.scrollHeight, c = this.contentEl.scrollWidth;
|
|
1157
1179
|
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 >
|
|
1180
|
+
var u = this.contentWrapperEl.offsetHeight;
|
|
1181
|
+
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();
|
|
1182
|
+
var d = this.axis.x.isOverflowing ? this.scrollbarWidth : 0, h = this.axis.y.isOverflowing ? this.scrollbarWidth : 0;
|
|
1183
|
+
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
1184
|
}
|
|
1163
1185
|
}, e.prototype.getScrollbarSize = function(t) {
|
|
1164
1186
|
var n, r;
|
|
@@ -1173,8 +1195,8 @@ var vd = /* @__PURE__ */ Object.freeze({
|
|
|
1173
1195
|
if (!(!this.axis[t].isOverflowing || !this.contentWrapperEl || !s.el || !this.elStyles)) {
|
|
1174
1196
|
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
1197
|
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
|
-
|
|
1198
|
+
var u = c / (o - l), d = ~~((a - s.size) * u);
|
|
1199
|
+
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
1200
|
}
|
|
1179
1201
|
}, e.prototype.toggleTrackVisibility = function(t) {
|
|
1180
1202
|
t === void 0 && (t = "y");
|
|
@@ -1205,7 +1227,7 @@ var vd = /* @__PURE__ */ Object.freeze({
|
|
|
1205
1227
|
t.preventDefault();
|
|
1206
1228
|
var c = Xe(this.el);
|
|
1207
1229
|
this.axis[n].scrollbar.rect = l.scrollbar.el.getBoundingClientRect();
|
|
1208
|
-
var
|
|
1230
|
+
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
1231
|
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
1232
|
};
|
|
1211
1233
|
w();
|
|
@@ -1277,11 +1299,11 @@ function xd(e, t) {
|
|
|
1277
1299
|
return n;
|
|
1278
1300
|
}
|
|
1279
1301
|
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 = {},
|
|
1302
|
+
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
1303
|
Object.keys(s).forEach(function(p) {
|
|
1282
|
-
Object.prototype.hasOwnProperty.call(Nn.defaultOptions, p) ? c[p] = s[p] :
|
|
1304
|
+
Object.prototype.hasOwnProperty.call(Nn.defaultOptions, p) ? c[p] = s[p] : u[p] = s[p];
|
|
1283
1305
|
});
|
|
1284
|
-
var
|
|
1306
|
+
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
1307
|
return N.useEffect(function() {
|
|
1286
1308
|
var p;
|
|
1287
1309
|
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 +1315,43 @@ var Na = N.forwardRef(function(e, t) {
|
|
|
1293
1315
|
};
|
|
1294
1316
|
}, []), N.createElement(
|
|
1295
1317
|
"div",
|
|
1296
|
-
ye({ "data-simplebar": "init", ref: o },
|
|
1318
|
+
ye({ "data-simplebar": "init", ref: o }, u),
|
|
1297
1319
|
N.createElement(
|
|
1298
1320
|
"div",
|
|
1299
|
-
{ className:
|
|
1321
|
+
{ className: d.wrapper },
|
|
1300
1322
|
N.createElement(
|
|
1301
1323
|
"div",
|
|
1302
|
-
{ className:
|
|
1303
|
-
N.createElement("div", { className:
|
|
1324
|
+
{ className: d.heightAutoObserverWrapperEl },
|
|
1325
|
+
N.createElement("div", { className: d.heightAutoObserverEl })
|
|
1304
1326
|
),
|
|
1305
1327
|
N.createElement(
|
|
1306
1328
|
"div",
|
|
1307
|
-
{ className:
|
|
1308
|
-
N.createElement("div", { className:
|
|
1329
|
+
{ className: d.mask },
|
|
1330
|
+
N.createElement("div", { className: d.offset }, typeof n == "function" ? n({
|
|
1309
1331
|
scrollableNodeRef: a,
|
|
1310
1332
|
scrollableNodeProps: ye(ye({}, h), { ref: a }),
|
|
1311
1333
|
contentNodeRef: l,
|
|
1312
1334
|
contentNodeProps: {
|
|
1313
|
-
className:
|
|
1335
|
+
className: d.contentEl,
|
|
1314
1336
|
ref: l
|
|
1315
1337
|
}
|
|
1316
1338
|
}) : N.createElement(
|
|
1317
1339
|
"div",
|
|
1318
1340
|
ye({}, h),
|
|
1319
|
-
N.createElement("div", { className:
|
|
1341
|
+
N.createElement("div", { className: d.contentEl }, n)
|
|
1320
1342
|
))
|
|
1321
1343
|
),
|
|
1322
|
-
N.createElement("div", { className:
|
|
1344
|
+
N.createElement("div", { className: d.placeholder })
|
|
1323
1345
|
),
|
|
1324
1346
|
N.createElement(
|
|
1325
1347
|
"div",
|
|
1326
|
-
{ className: "".concat(
|
|
1327
|
-
N.createElement("div", { className:
|
|
1348
|
+
{ className: "".concat(d.track, " simplebar-horizontal") },
|
|
1349
|
+
N.createElement("div", { className: d.scrollbar })
|
|
1328
1350
|
),
|
|
1329
1351
|
N.createElement(
|
|
1330
1352
|
"div",
|
|
1331
|
-
{ className: "".concat(
|
|
1332
|
-
N.createElement("div", { className:
|
|
1353
|
+
{ className: "".concat(d.track, " simplebar-vertical") },
|
|
1354
|
+
N.createElement("div", { className: d.scrollbar })
|
|
1333
1355
|
)
|
|
1334
1356
|
);
|
|
1335
1357
|
});
|
|
@@ -1379,11 +1401,11 @@ function Cd(e, t, n, r) {
|
|
|
1379
1401
|
lu(() => {
|
|
1380
1402
|
c && c.update(n, o);
|
|
1381
1403
|
});
|
|
1382
|
-
const
|
|
1404
|
+
const u = ze(!!(n[Va] && !window.HandoffComplete));
|
|
1383
1405
|
return Sd(() => {
|
|
1384
|
-
c && (c.render(),
|
|
1406
|
+
c && (c.render(), u.current && c.animationState && c.animationState.animateChanges());
|
|
1385
1407
|
}), be(() => {
|
|
1386
|
-
c && (c.updateFeatures(), !
|
|
1408
|
+
c && (c.updateFeatures(), !u.current && c.animationState && c.animationState.animateChanges(), u.current && (u.current = !1, window.HandoffComplete = !0));
|
|
1387
1409
|
}), c;
|
|
1388
1410
|
}
|
|
1389
1411
|
function Ot(e) {
|
|
@@ -1476,17 +1498,17 @@ function Od({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
|
|
|
1476
1498
|
e && Ad(e);
|
|
1477
1499
|
function s(a, l) {
|
|
1478
1500
|
let c;
|
|
1479
|
-
const
|
|
1501
|
+
const u = {
|
|
1480
1502
|
...ie(Da),
|
|
1481
1503
|
...a,
|
|
1482
1504
|
layoutId: Md(a)
|
|
1483
|
-
}, { isStatic:
|
|
1484
|
-
if (!
|
|
1485
|
-
h.visualElement = Cd(i, p,
|
|
1505
|
+
}, { isStatic: d } = u, h = Pd(a), p = r(a, d);
|
|
1506
|
+
if (!d && mr) {
|
|
1507
|
+
h.visualElement = Cd(i, p, u, t);
|
|
1486
1508
|
const y = ie($a), f = ie(Ra).strict;
|
|
1487
1509
|
h.visualElement && (c = h.visualElement.loadFeatures(
|
|
1488
1510
|
// Note: Pass the full new combined props to correctly re-render dynamic feature components.
|
|
1489
|
-
|
|
1511
|
+
u,
|
|
1490
1512
|
f,
|
|
1491
1513
|
e,
|
|
1492
1514
|
y
|
|
@@ -1495,8 +1517,8 @@ function Od({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
|
|
|
1495
1517
|
return N.createElement(
|
|
1496
1518
|
pr.Provider,
|
|
1497
1519
|
{ value: h },
|
|
1498
|
-
c && h.visualElement ? N.createElement(c, { visualElement: h.visualElement, ...
|
|
1499
|
-
n(i, a, Td(p, h.visualElement, l), p,
|
|
1520
|
+
c && h.visualElement ? N.createElement(c, { visualElement: h.visualElement, ...u }) : null,
|
|
1521
|
+
n(i, a, Td(p, h.visualElement, l), p, d, h.visualElement)
|
|
1500
1522
|
);
|
|
1501
1523
|
}
|
|
1502
1524
|
const o = ya(s);
|
|
@@ -1705,24 +1727,24 @@ const xn = (e) => ({
|
|
|
1705
1727
|
};
|
|
1706
1728
|
function Pi(e, t, n, r) {
|
|
1707
1729
|
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[
|
|
1730
|
+
let l = !1, c = !1, u = !0;
|
|
1731
|
+
for (const d in t) {
|
|
1732
|
+
const h = t[d];
|
|
1733
|
+
if (ja(d)) {
|
|
1734
|
+
s[d] = h;
|
|
1713
1735
|
continue;
|
|
1714
1736
|
}
|
|
1715
|
-
const p = Wa[
|
|
1716
|
-
if (yt.has(
|
|
1717
|
-
if (l = !0, o[
|
|
1737
|
+
const p = Wa[d], y = zd(h, p);
|
|
1738
|
+
if (yt.has(d)) {
|
|
1739
|
+
if (l = !0, o[d] = y, !u)
|
|
1718
1740
|
continue;
|
|
1719
|
-
h !== (p.default || 0) && (
|
|
1741
|
+
h !== (p.default || 0) && (u = !1);
|
|
1720
1742
|
} else
|
|
1721
|
-
|
|
1743
|
+
d.startsWith("origin") ? (c = !0, a[d] = y) : i[d] = y;
|
|
1722
1744
|
}
|
|
1723
|
-
if (t.transform || (l || r ? i.transform = Ld(e.transform, n,
|
|
1724
|
-
const { originX:
|
|
1725
|
-
i.transformOrigin = `${
|
|
1745
|
+
if (t.transform || (l || r ? i.transform = Ld(e.transform, n, u, r) : i.transform && (i.transform = "none")), c) {
|
|
1746
|
+
const { originX: d = "50%", originY: h = "50%", originZ: p = 0 } = a;
|
|
1747
|
+
i.transformOrigin = `${d} ${h} ${p}`;
|
|
1726
1748
|
}
|
|
1727
1749
|
}
|
|
1728
1750
|
const Ai = () => ({
|
|
@@ -1832,8 +1854,8 @@ function ki(e, {
|
|
|
1832
1854
|
pathOffset: l = 0,
|
|
1833
1855
|
// This is object creation, which we try to avoid per-frame.
|
|
1834
1856
|
...c
|
|
1835
|
-
},
|
|
1836
|
-
if (Pi(e, c,
|
|
1857
|
+
}, u, d, h) {
|
|
1858
|
+
if (Pi(e, c, u, h), d) {
|
|
1837
1859
|
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
|
|
1838
1860
|
return;
|
|
1839
1861
|
}
|
|
@@ -1861,13 +1883,13 @@ function Qd(e, t, n, r) {
|
|
|
1861
1883
|
}
|
|
1862
1884
|
function e0(e = !1) {
|
|
1863
1885
|
return (n, r, i, { latestValues: s }, o) => {
|
|
1864
|
-
const l = (_i(n) ? Qd : Ud)(r, s, o, n),
|
|
1886
|
+
const l = (_i(n) ? Qd : Ud)(r, s, o, n), u = {
|
|
1865
1887
|
...qd(r, typeof n == "string", e),
|
|
1866
1888
|
...l,
|
|
1867
1889
|
ref: i
|
|
1868
|
-
}, { children:
|
|
1890
|
+
}, { children: d } = r, h = hr(() => pe(d) ? d.get() : d, [d]);
|
|
1869
1891
|
return en(n, {
|
|
1870
|
-
...
|
|
1892
|
+
...u,
|
|
1871
1893
|
children: h
|
|
1872
1894
|
});
|
|
1873
1895
|
};
|
|
@@ -1952,10 +1974,10 @@ function o0(e, t, n, r) {
|
|
|
1952
1974
|
let { initial: o, animate: a } = e;
|
|
1953
1975
|
const l = yr(e), c = Ia(e);
|
|
1954
1976
|
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
|
|
1977
|
+
let u = n ? n.initial === !1 : !1;
|
|
1978
|
+
u = u || o === !1;
|
|
1979
|
+
const d = u ? a : o;
|
|
1980
|
+
return d && typeof d != "boolean" && !gr(d) && (Array.isArray(d) ? d : [d]).forEach((p) => {
|
|
1959
1981
|
const y = Ni(e, p);
|
|
1960
1982
|
if (!y)
|
|
1961
1983
|
return;
|
|
@@ -1963,7 +1985,7 @@ function o0(e, t, n, r) {
|
|
|
1963
1985
|
for (const w in b) {
|
|
1964
1986
|
let x = b[w];
|
|
1965
1987
|
if (Array.isArray(x)) {
|
|
1966
|
-
const S =
|
|
1988
|
+
const S = u ? x.length - 1 : 0;
|
|
1967
1989
|
x = x[S];
|
|
1968
1990
|
}
|
|
1969
1991
|
x !== null && (i[w] = x);
|
|
@@ -1995,9 +2017,9 @@ function s0(e) {
|
|
|
1995
2017
|
/**
|
|
1996
2018
|
* Schedule a process to run on the next frame.
|
|
1997
2019
|
*/
|
|
1998
|
-
schedule: (l, c = !1,
|
|
1999
|
-
const
|
|
2000
|
-
return c && o.add(l), h.add(l) &&
|
|
2020
|
+
schedule: (l, c = !1, u = !1) => {
|
|
2021
|
+
const d = u && i, h = d ? t : n;
|
|
2022
|
+
return c && o.add(l), h.add(l) && d && i && (r = t.order.length), l;
|
|
2001
2023
|
},
|
|
2002
2024
|
/**
|
|
2003
2025
|
* Cancel the provided callback from running on the next frame.
|
|
@@ -2015,8 +2037,8 @@ function s0(e) {
|
|
|
2015
2037
|
}
|
|
2016
2038
|
if (i = !0, [t, n] = [n, t], n.clear(), r = t.order.length, r)
|
|
2017
2039
|
for (let c = 0; c < r; c++) {
|
|
2018
|
-
const
|
|
2019
|
-
|
|
2040
|
+
const u = t.order[c];
|
|
2041
|
+
u(l), o.has(u) && (a.schedule(u), e());
|
|
2020
2042
|
}
|
|
2021
2043
|
i = !1, s && (s = !1, a.process(l));
|
|
2022
2044
|
}
|
|
@@ -2037,16 +2059,16 @@ function l0(e, t) {
|
|
|
2037
2059
|
delta: 0,
|
|
2038
2060
|
timestamp: 0,
|
|
2039
2061
|
isProcessing: !1
|
|
2040
|
-
}, s = Rn.reduce((
|
|
2041
|
-
const
|
|
2042
|
-
n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(
|
|
2062
|
+
}, s = Rn.reduce((d, h) => (d[h] = s0(() => n = !0), d), {}), o = (d) => s[d].process(i), a = () => {
|
|
2063
|
+
const d = performance.now();
|
|
2064
|
+
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
2065
|
}, l = () => {
|
|
2044
2066
|
n = !0, r = !0, i.isProcessing || e(a);
|
|
2045
2067
|
};
|
|
2046
|
-
return { schedule: Rn.reduce((
|
|
2068
|
+
return { schedule: Rn.reduce((d, h) => {
|
|
2047
2069
|
const p = s[h];
|
|
2048
|
-
return
|
|
2049
|
-
}, {}), cancel: (
|
|
2070
|
+
return d[h] = (y, f = !1, m = !1) => (n || l(), p.schedule(y, f, m)), d;
|
|
2071
|
+
}, {}), cancel: (d) => Rn.forEach((h) => s[h].cancel(d)), state: i, steps: s };
|
|
2050
2072
|
}
|
|
2051
2073
|
const { schedule: Y, cancel: Ge, state: le, steps: $r } = l0(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Q, !0), c0 = {
|
|
2052
2074
|
useVisualState: Za({
|
|
@@ -2192,9 +2214,9 @@ class g0 extends at {
|
|
|
2192
2214
|
const r = this.node.getProps(), s = Ue(window, "pointerup", (a, l) => {
|
|
2193
2215
|
if (!this.checkPressEnd())
|
|
2194
2216
|
return;
|
|
2195
|
-
const { onTap: c, onTapCancel:
|
|
2217
|
+
const { onTap: c, onTapCancel: u, globalTapTarget: d } = this.node.getProps();
|
|
2196
2218
|
Y.update(() => {
|
|
2197
|
-
!
|
|
2219
|
+
!d && !nl(this.node.current, a.target) ? u && u(a, l) : c && c(a, l);
|
|
2198
2220
|
});
|
|
2199
2221
|
}, { passive: !(r.onTap || r.onPointerUp) }), o = Ue(window, "pointercancel", (a, l) => this.cancelPress(a, l), { passive: !(r.onTapCancel || r.onPointerCancel) });
|
|
2200
2222
|
this.removeEndListeners = nt(s, o), this.startPress(t, n);
|
|
@@ -2204,8 +2226,8 @@ class g0 extends at {
|
|
|
2204
2226
|
return;
|
|
2205
2227
|
const o = (a) => {
|
|
2206
2228
|
a.key !== "Enter" || !this.checkPressEnd() || zr("up", (l, c) => {
|
|
2207
|
-
const { onTap:
|
|
2208
|
-
|
|
2229
|
+
const { onTap: u } = this.node.getProps();
|
|
2230
|
+
u && Y.update(() => u(l, c));
|
|
2209
2231
|
});
|
|
2210
2232
|
};
|
|
2211
2233
|
this.removeEndListeners(), this.removeEndListeners = He(this.node.current, "keyup", o), zr("down", (a, l) => {
|
|
@@ -2276,7 +2298,7 @@ class S0 extends at {
|
|
|
2276
2298
|
if (this.isInView === c || (this.isInView = c, s && !c && this.hasEnteredView))
|
|
2277
2299
|
return;
|
|
2278
2300
|
c && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", c);
|
|
2279
|
-
const { onViewportEnter:
|
|
2301
|
+
const { onViewportEnter: u, onViewportLeave: d } = this.node.getProps(), h = c ? u : d;
|
|
2280
2302
|
h && h(l);
|
|
2281
2303
|
};
|
|
2282
2304
|
return x0(this.node.current, o, a);
|
|
@@ -2364,11 +2386,11 @@ function al(e) {
|
|
|
2364
2386
|
function A0(e, t, n, { delay: r = 0, duration: i, repeat: s = 0, repeatType: o = "loop", ease: a, times: l } = {}) {
|
|
2365
2387
|
const c = { [t]: n };
|
|
2366
2388
|
l && (c.offset = l);
|
|
2367
|
-
const
|
|
2368
|
-
return Array.isArray(
|
|
2389
|
+
const u = al(a);
|
|
2390
|
+
return Array.isArray(u) && (c.easing = u), e.animate(c, {
|
|
2369
2391
|
delay: r,
|
|
2370
2392
|
duration: i,
|
|
2371
|
-
easing: Array.isArray(
|
|
2393
|
+
easing: Array.isArray(u) ? "linear" : u,
|
|
2372
2394
|
fill: "both",
|
|
2373
2395
|
iterations: s + 1,
|
|
2374
2396
|
direction: o === "reverse" ? "alternate" : "normal"
|
|
@@ -2590,12 +2612,12 @@ function Tl(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
|
2590
2612
|
return () => t[0];
|
|
2591
2613
|
e[0] > e[s - 1] && (e = [...e].reverse(), t = [...t].reverse());
|
|
2592
2614
|
const o = K0(t, r, i), a = o.length, l = (c) => {
|
|
2593
|
-
let
|
|
2615
|
+
let u = 0;
|
|
2594
2616
|
if (a > 1)
|
|
2595
|
-
for (;
|
|
2617
|
+
for (; u < e.length - 2 && !(c < e[u + 1]); u++)
|
|
2596
2618
|
;
|
|
2597
|
-
const
|
|
2598
|
-
return o[
|
|
2619
|
+
const d = dn(e[u], e[u + 1], c);
|
|
2620
|
+
return o[u](d);
|
|
2599
2621
|
};
|
|
2600
2622
|
return n ? (c) => l(it(e[0], e[s - 1], c)) : l;
|
|
2601
2623
|
}
|
|
@@ -2647,17 +2669,17 @@ function of({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: r = 1
|
|
|
2647
2669
|
wn(e <= rt(No), "Spring duration must be 10 seconds or less");
|
|
2648
2670
|
let o = 1 - t;
|
|
2649
2671
|
o = it(nf, rf, o), e = it(tf, No, Ye(e)), o < 1 ? (i = (c) => {
|
|
2650
|
-
const
|
|
2672
|
+
const u = c * o, d = u * e, h = u - n, p = ri(c, o), y = Math.exp(-d);
|
|
2651
2673
|
return Ur - h / p * y;
|
|
2652
2674
|
}, s = (c) => {
|
|
2653
|
-
const
|
|
2675
|
+
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
2676
|
return (-i(c) + Ur > 0 ? -1 : 1) * ((h - p) * y) / f;
|
|
2655
2677
|
}) : (i = (c) => {
|
|
2656
|
-
const
|
|
2657
|
-
return -Ur +
|
|
2678
|
+
const u = Math.exp(-c * e), d = (c - n) * e + 1;
|
|
2679
|
+
return -Ur + u * d;
|
|
2658
2680
|
}, s = (c) => {
|
|
2659
|
-
const
|
|
2660
|
-
return
|
|
2681
|
+
const u = Math.exp(-c * e), d = (n - c) * (e * e);
|
|
2682
|
+
return u * d;
|
|
2661
2683
|
});
|
|
2662
2684
|
const a = 5 / e, l = af(i, s, a);
|
|
2663
2685
|
if (e = rt(e), isNaN(l))
|
|
@@ -2709,10 +2731,10 @@ function uf(e) {
|
|
|
2709
2731
|
return t;
|
|
2710
2732
|
}
|
|
2711
2733
|
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:
|
|
2734
|
+
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
2735
|
...r,
|
|
2714
2736
|
velocity: -Ye(r.velocity || 0)
|
|
2715
|
-
}), p =
|
|
2737
|
+
}), 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
2738
|
n || (n = b ? 0.01 : 2), t || (t = b ? 5e-3 : 0.5);
|
|
2717
2739
|
let w;
|
|
2718
2740
|
if (y < 1) {
|
|
@@ -2731,11 +2753,11 @@ function Al({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
|
2731
2753
|
};
|
|
2732
2754
|
}
|
|
2733
2755
|
return {
|
|
2734
|
-
calculatedDuration: h &&
|
|
2756
|
+
calculatedDuration: h && u || null,
|
|
2735
2757
|
next: (x) => {
|
|
2736
2758
|
const S = w(x);
|
|
2737
2759
|
if (h)
|
|
2738
|
-
o.done = x >=
|
|
2760
|
+
o.done = x >= u;
|
|
2739
2761
|
else {
|
|
2740
2762
|
let v = p;
|
|
2741
2763
|
x !== 0 && (y < 1 ? v = Pl(w, x, S) : v = 0);
|
|
@@ -2746,14 +2768,14 @@ function Al({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
|
2746
2768
|
}
|
|
2747
2769
|
};
|
|
2748
2770
|
}
|
|
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
|
|
2771
|
+
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 }) {
|
|
2772
|
+
const d = e[0], h = {
|
|
2751
2773
|
done: !1,
|
|
2752
|
-
value:
|
|
2774
|
+
value: d
|
|
2753
2775
|
}, 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
2776
|
let f = n * t;
|
|
2755
|
-
const m =
|
|
2756
|
-
b !== m && (f = b -
|
|
2777
|
+
const m = d + f, b = o === void 0 ? m : o(m);
|
|
2778
|
+
b !== m && (f = b - d);
|
|
2757
2779
|
const w = (T) => -f * Math.exp(-T / r), x = (T) => b + w(T), S = (T) => {
|
|
2758
2780
|
const P = w(T), D = x(T);
|
|
2759
2781
|
h.done = Math.abs(P) <= c, h.value = h.done ? b : D;
|
|
@@ -2766,7 +2788,7 @@ function Ro({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
2766
2788
|
damping: i,
|
|
2767
2789
|
stiffness: s,
|
|
2768
2790
|
restDelta: c,
|
|
2769
|
-
restSpeed:
|
|
2791
|
+
restSpeed: u
|
|
2770
2792
|
}));
|
|
2771
2793
|
};
|
|
2772
2794
|
return C(0), {
|
|
@@ -2804,7 +2826,7 @@ const ff = {
|
|
|
2804
2826
|
keyframes: ir,
|
|
2805
2827
|
spring: Al
|
|
2806
2828
|
};
|
|
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:
|
|
2829
|
+
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
2830
|
let p = 1, y = !1, f, m;
|
|
2809
2831
|
const b = () => {
|
|
2810
2832
|
m = new Promise((B) => {
|
|
@@ -2848,13 +2870,13 @@ function or({ autoplay: e = !0, delay: t = 0, driver: n = df, keyframes: r, type
|
|
|
2848
2870
|
let { done: xt } = We;
|
|
2849
2871
|
!je && O !== null && (xt = p >= 0 ? H >= q : H <= 0);
|
|
2850
2872
|
const Ut = T === null && (C === "finished" || C === "running" && xt);
|
|
2851
|
-
return
|
|
2873
|
+
return d && d(We.value), Ut && ue(), We;
|
|
2852
2874
|
}, U = () => {
|
|
2853
2875
|
w && w.stop(), w = void 0;
|
|
2854
2876
|
}, ce = () => {
|
|
2855
2877
|
C = "idle", U(), f(), b(), P = D = null;
|
|
2856
2878
|
}, ue = () => {
|
|
2857
|
-
C = "finished",
|
|
2879
|
+
C = "finished", u && u(), U(), f();
|
|
2858
2880
|
}, ge = () => {
|
|
2859
2881
|
if (y)
|
|
2860
2882
|
return;
|
|
@@ -2918,27 +2940,27 @@ function vf(e, t, { onUpdate: n, onComplete: r, ...i }) {
|
|
|
2918
2940
|
if (!(pf() && mf.has(t) && !i.repeatDelay && i.repeatType !== "mirror" && i.damping !== 0 && i.type !== "inertia"))
|
|
2919
2941
|
return !1;
|
|
2920
2942
|
let o = !1, a, l, c = !1;
|
|
2921
|
-
const
|
|
2943
|
+
const u = () => {
|
|
2922
2944
|
l = new Promise((x) => {
|
|
2923
2945
|
a = x;
|
|
2924
2946
|
});
|
|
2925
2947
|
};
|
|
2926
|
-
|
|
2927
|
-
let { keyframes:
|
|
2948
|
+
u();
|
|
2949
|
+
let { keyframes: d, duration: h = 300, ease: p, times: y } = i;
|
|
2928
2950
|
if (yf(t, i)) {
|
|
2929
2951
|
const x = or({
|
|
2930
2952
|
...i,
|
|
2931
2953
|
repeat: 0,
|
|
2932
2954
|
delay: 0
|
|
2933
2955
|
});
|
|
2934
|
-
let S = { done: !1, value:
|
|
2956
|
+
let S = { done: !1, value: d[0] };
|
|
2935
2957
|
const v = [];
|
|
2936
2958
|
let E = 0;
|
|
2937
2959
|
for (; !S.done && E < gf; )
|
|
2938
2960
|
S = x.sample(E), v.push(S.value), E += Vn;
|
|
2939
|
-
y = void 0,
|
|
2961
|
+
y = void 0, d = v, h = E - Vn, p = "linear";
|
|
2940
2962
|
}
|
|
2941
|
-
const f = A0(e.owner.current, t,
|
|
2963
|
+
const f = A0(e.owner.current, t, d, {
|
|
2942
2964
|
...i,
|
|
2943
2965
|
duration: h,
|
|
2944
2966
|
/**
|
|
@@ -2954,10 +2976,10 @@ function vf(e, t, { onUpdate: n, onComplete: r, ...i }) {
|
|
|
2954
2976
|
}), m = () => {
|
|
2955
2977
|
c = !1, f.cancel();
|
|
2956
2978
|
}, b = () => {
|
|
2957
|
-
c = !0, Y.update(m), a(),
|
|
2979
|
+
c = !0, Y.update(m), a(), u();
|
|
2958
2980
|
};
|
|
2959
2981
|
return f.onfinish = () => {
|
|
2960
|
-
c || (e.set(k0(
|
|
2982
|
+
c || (e.set(k0(d, i)), r && r(), b());
|
|
2961
2983
|
}, {
|
|
2962
2984
|
then(x, S) {
|
|
2963
2985
|
return l.then(x, S);
|
|
@@ -3098,13 +3120,13 @@ function Of(e, t, n, r) {
|
|
|
3098
3120
|
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
3121
|
if (i && l.length && a)
|
|
3100
3122
|
for (let c = 0; c < l.length; c++) {
|
|
3101
|
-
const
|
|
3102
|
-
s[
|
|
3123
|
+
const u = l[c];
|
|
3124
|
+
s[u] = kl(t, a);
|
|
3103
3125
|
}
|
|
3104
3126
|
return s;
|
|
3105
3127
|
}
|
|
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(
|
|
3128
|
+
function Mf({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: s, repeatType: o, repeatDelay: a, from: l, elapsed: c, ...u }) {
|
|
3129
|
+
return !!Object.keys(u).length;
|
|
3108
3130
|
}
|
|
3109
3131
|
function Li(e, t) {
|
|
3110
3132
|
return e[t] || e.default || e;
|
|
@@ -3115,8 +3137,8 @@ const Nf = {
|
|
|
3115
3137
|
const s = Li(r, e) || {}, o = s.delay || r.delay || 0;
|
|
3116
3138
|
let { elapsed: a = 0 } = r;
|
|
3117
3139
|
a = a - rt(o);
|
|
3118
|
-
const l = Of(t, e, n, s), c = l[0],
|
|
3119
|
-
wn(
|
|
3140
|
+
const l = Of(t, e, n, s), c = l[0], u = l[l.length - 1], d = ii(e, c), h = ii(e, u);
|
|
3141
|
+
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
3142
|
let p = {
|
|
3121
3143
|
keyframes: l,
|
|
3122
3144
|
velocity: t.getVelocity(),
|
|
@@ -3133,7 +3155,7 @@ const Nf = {
|
|
|
3133
3155
|
if (Mf(s) || (p = {
|
|
3134
3156
|
...p,
|
|
3135
3157
|
...Cf(e, p)
|
|
3136
|
-
}), p.duration && (p.duration = rt(p.duration)), p.repeatDelay && (p.repeatDelay = rt(p.repeatDelay)), !
|
|
3158
|
+
}), p.duration && (p.duration = rt(p.duration)), p.repeatDelay && (p.repeatDelay = rt(p.repeatDelay)), !d || !h || P0.current || s.type === !1 || Nf.skipAnimations)
|
|
3137
3159
|
return bf(p);
|
|
3138
3160
|
if (
|
|
3139
3161
|
/**
|
|
@@ -3409,8 +3431,8 @@ function Ff(e, t, n) {
|
|
|
3409
3431
|
if (o)
|
|
3410
3432
|
for (let a = 0; a < o; a++) {
|
|
3411
3433
|
const l = s[a], c = t[l];
|
|
3412
|
-
let
|
|
3413
|
-
Array.isArray(c) && (
|
|
3434
|
+
let u = null;
|
|
3435
|
+
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
3436
|
}
|
|
3415
3437
|
}
|
|
3416
3438
|
function jf(e, t) {
|
|
@@ -3446,29 +3468,29 @@ function Rl(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
3446
3468
|
let { transition: s = e.getDefaultTransition(), transitionEnd: o, ...a } = e.makeTargetAnimatable(t);
|
|
3447
3469
|
const l = e.getValue("willChange");
|
|
3448
3470
|
r && (s = r);
|
|
3449
|
-
const c = [],
|
|
3450
|
-
for (const
|
|
3451
|
-
const h = e.getValue(
|
|
3452
|
-
if (!h || p === void 0 ||
|
|
3471
|
+
const c = [], u = i && e.animationState && e.animationState.getState()[i];
|
|
3472
|
+
for (const d in a) {
|
|
3473
|
+
const h = e.getValue(d), p = a[d];
|
|
3474
|
+
if (!h || p === void 0 || u && Wf(u, d))
|
|
3453
3475
|
continue;
|
|
3454
3476
|
const y = {
|
|
3455
3477
|
delay: n,
|
|
3456
3478
|
elapsed: 0,
|
|
3457
|
-
...Li(s || {},
|
|
3479
|
+
...Li(s || {}, d)
|
|
3458
3480
|
};
|
|
3459
3481
|
if (window.HandoffAppearAnimations) {
|
|
3460
3482
|
const b = e.getProps()[Va];
|
|
3461
3483
|
if (b) {
|
|
3462
|
-
const w = window.HandoffAppearAnimations(b,
|
|
3484
|
+
const w = window.HandoffAppearAnimations(b, d, h, Y);
|
|
3463
3485
|
w !== null && (y.elapsed = w, y.isHandoff = !0);
|
|
3464
3486
|
}
|
|
3465
3487
|
}
|
|
3466
3488
|
let f = !y.isHandoff && !Hf(h, p);
|
|
3467
3489
|
if (y.type === "spring" && (h.getVelocity() || y.velocity) && (f = !1), h.animation && (f = !1), f)
|
|
3468
3490
|
continue;
|
|
3469
|
-
h.start($i(
|
|
3491
|
+
h.start($i(d, h, p, e.shouldReduceMotion && yt.has(d) ? { type: !1 } : y));
|
|
3470
3492
|
const m = h.animation;
|
|
3471
|
-
sr(l) && (l.add(
|
|
3493
|
+
sr(l) && (l.add(d), m.then(() => l.remove(d))), c.push(m);
|
|
3472
3494
|
}
|
|
3473
3495
|
return o && Promise.all(c).then(() => {
|
|
3474
3496
|
o && zf(e, o);
|
|
@@ -3479,8 +3501,8 @@ function si(e, t, n = {}) {
|
|
|
3479
3501
|
let { transition: i = e.getDefaultTransition() || {} } = r || {};
|
|
3480
3502
|
n.transitionOverride && (i = n.transitionOverride);
|
|
3481
3503
|
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,
|
|
3504
|
+
const { delayChildren: c = 0, staggerChildren: u, staggerDirection: d } = i;
|
|
3505
|
+
return Uf(e, t, c + l, u, d, n);
|
|
3484
3506
|
} : () => Promise.resolve(), { when: a } = i;
|
|
3485
3507
|
if (a) {
|
|
3486
3508
|
const [l, c] = a === "beforeChildren" ? [s, o] : [o, s];
|
|
@@ -3490,10 +3512,10 @@ function si(e, t, n = {}) {
|
|
|
3490
3512
|
}
|
|
3491
3513
|
function Uf(e, t, n = 0, r = 0, i = 1, s) {
|
|
3492
3514
|
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,
|
|
3515
|
+
return Array.from(e.variantChildren).sort(Yf).forEach((c, u) => {
|
|
3494
3516
|
c.notify("AnimationStart", t), o.push(si(c, t, {
|
|
3495
3517
|
...s,
|
|
3496
|
-
delay: n + l(
|
|
3518
|
+
delay: n + l(u)
|
|
3497
3519
|
}).then(() => c.notify("AnimationComplete", t)));
|
|
3498
3520
|
}), Promise.all(o);
|
|
3499
3521
|
}
|
|
@@ -3523,9 +3545,9 @@ function Zf(e) {
|
|
|
3523
3545
|
const n = Qf();
|
|
3524
3546
|
let r = !0;
|
|
3525
3547
|
const i = (l, c) => {
|
|
3526
|
-
const
|
|
3527
|
-
if (
|
|
3528
|
-
const { transition:
|
|
3548
|
+
const u = xr(e, c);
|
|
3549
|
+
if (u) {
|
|
3550
|
+
const { transition: d, transitionEnd: h, ...p } = u;
|
|
3529
3551
|
l = { ...l, ...p, ...h };
|
|
3530
3552
|
}
|
|
3531
3553
|
return l;
|
|
@@ -3534,12 +3556,12 @@ function Zf(e) {
|
|
|
3534
3556
|
t = l(e);
|
|
3535
3557
|
}
|
|
3536
3558
|
function o(l, c) {
|
|
3537
|
-
const
|
|
3559
|
+
const u = e.getProps(), d = e.getVariantContext(!0) || {}, h = [], p = /* @__PURE__ */ new Set();
|
|
3538
3560
|
let y = {}, f = 1 / 0;
|
|
3539
3561
|
for (let b = 0; b < Kf; b++) {
|
|
3540
|
-
const w = qf[b], x = n[w], S =
|
|
3562
|
+
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
3563
|
E === !1 && (f = b);
|
|
3542
|
-
let C = S ===
|
|
3564
|
+
let C = S === d[w] && S !== u[w] && v;
|
|
3543
3565
|
if (C && r && e.manuallyAnimateOnMount && (C = !1), x.protectedKeys = { ...y }, // If it isn't active and hasn't *just* been set as inactive
|
|
3544
3566
|
!x.isActive && E === null || // If we didn't and don't have any defined prop for this animation type
|
|
3545
3567
|
!S && !x.prevProp || // Or if the prop doesn't define an animation
|
|
@@ -3577,17 +3599,17 @@ function Zf(e) {
|
|
|
3577
3599
|
}), h.push({ animation: b });
|
|
3578
3600
|
}
|
|
3579
3601
|
let m = !!h.length;
|
|
3580
|
-
return r && (
|
|
3602
|
+
return r && (u.initial === !1 || u.initial === u.animate) && !e.manuallyAnimateOnMount && (m = !1), r = !1, m ? t(h) : Promise.resolve();
|
|
3581
3603
|
}
|
|
3582
|
-
function a(l, c,
|
|
3583
|
-
var
|
|
3604
|
+
function a(l, c, u) {
|
|
3605
|
+
var d;
|
|
3584
3606
|
if (n[l].isActive === c)
|
|
3585
3607
|
return Promise.resolve();
|
|
3586
|
-
(
|
|
3608
|
+
(d = e.variantChildren) === null || d === void 0 || d.forEach((p) => {
|
|
3587
3609
|
var y;
|
|
3588
3610
|
return (y = p.animationState) === null || y === void 0 ? void 0 : y.setActive(l, c);
|
|
3589
3611
|
}), n[l].isActive = c;
|
|
3590
|
-
const h = o(
|
|
3612
|
+
const h = o(u, l);
|
|
3591
3613
|
for (const p in n)
|
|
3592
3614
|
n[p].protectedKeys = {};
|
|
3593
3615
|
return h;
|
|
@@ -3685,29 +3707,29 @@ class Vl {
|
|
|
3685
3707
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
|
|
3686
3708
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
3687
3709
|
return;
|
|
3688
|
-
const
|
|
3710
|
+
const d = Gr(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, p = ih(d.offset, { x: 0, y: 0 }) >= 3;
|
|
3689
3711
|
if (!h && !p)
|
|
3690
3712
|
return;
|
|
3691
|
-
const { point: y } =
|
|
3713
|
+
const { point: y } = d, { timestamp: f } = le;
|
|
3692
3714
|
this.history.push({ ...y, timestamp: f });
|
|
3693
3715
|
const { onStart: m, onMove: b } = this.handlers;
|
|
3694
|
-
h || (m && m(this.lastMoveEvent,
|
|
3695
|
-
}, this.handlePointerMove = (
|
|
3696
|
-
this.lastMoveEvent =
|
|
3697
|
-
}, this.handlePointerUp = (
|
|
3716
|
+
h || (m && m(this.lastMoveEvent, d), this.startEvent = this.lastMoveEvent), b && b(this.lastMoveEvent, d);
|
|
3717
|
+
}, this.handlePointerMove = (d, h) => {
|
|
3718
|
+
this.lastMoveEvent = d, this.lastMoveEventInfo = Yr(h, this.transformPagePoint), Y.update(this.updatePoint, !0);
|
|
3719
|
+
}, this.handlePointerUp = (d, h) => {
|
|
3698
3720
|
this.end();
|
|
3699
3721
|
const { onEnd: p, onSessionEnd: y, resumeAnimation: f } = this.handlers;
|
|
3700
3722
|
if (this.dragSnapToOrigin && f && f(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
3701
3723
|
return;
|
|
3702
|
-
const m = Gr(
|
|
3703
|
-
this.startEvent && p && p(
|
|
3724
|
+
const m = Gr(d.type === "pointercancel" ? this.lastMoveEventInfo : Yr(h, this.transformPagePoint), this.history);
|
|
3725
|
+
this.startEvent && p && p(d, m), y && y(d, m);
|
|
3704
3726
|
}, !Ja(t))
|
|
3705
3727
|
return;
|
|
3706
3728
|
this.dragSnapToOrigin = s, this.handlers = n, this.transformPagePoint = r, this.contextWindow = i || window;
|
|
3707
3729
|
const o = br(t), a = Yr(o, this.transformPagePoint), { point: l } = a, { timestamp: c } = le;
|
|
3708
3730
|
this.history = [{ ...l, timestamp: c }];
|
|
3709
|
-
const { onSessionStart:
|
|
3710
|
-
|
|
3731
|
+
const { onSessionStart: u } = n;
|
|
3732
|
+
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
3733
|
}
|
|
3712
3734
|
updateHandlers(t) {
|
|
3713
3735
|
this.handlers = t;
|
|
@@ -3937,10 +3959,10 @@ class wh {
|
|
|
3937
3959
|
const { presenceContext: r } = this.visualElement;
|
|
3938
3960
|
if (r && r.isPresent === !1)
|
|
3939
3961
|
return;
|
|
3940
|
-
const i = (
|
|
3941
|
-
const { dragSnapToOrigin:
|
|
3942
|
-
|
|
3943
|
-
}, s = (
|
|
3962
|
+
const i = (u) => {
|
|
3963
|
+
const { dragSnapToOrigin: d } = this.getProps();
|
|
3964
|
+
d ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(br(u, "page").point);
|
|
3965
|
+
}, s = (u, d) => {
|
|
3944
3966
|
const { drag: h, dragPropagation: p, onDragStart: y } = this.getProps();
|
|
3945
3967
|
if (h && !p && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = el(h), !this.openGlobalLock))
|
|
3946
3968
|
return;
|
|
@@ -3954,22 +3976,22 @@ class wh {
|
|
|
3954
3976
|
}
|
|
3955
3977
|
}
|
|
3956
3978
|
this.originPoint[m] = b;
|
|
3957
|
-
}), y && Y.update(() => y(
|
|
3979
|
+
}), y && Y.update(() => y(u, d), !1, !0);
|
|
3958
3980
|
const { animationState: f } = this.visualElement;
|
|
3959
3981
|
f && f.setActive("whileDrag", !0);
|
|
3960
|
-
}, o = (
|
|
3982
|
+
}, o = (u, d) => {
|
|
3961
3983
|
const { dragPropagation: h, dragDirectionLock: p, onDirectionLock: y, onDrag: f } = this.getProps();
|
|
3962
3984
|
if (!h && !this.openGlobalLock)
|
|
3963
3985
|
return;
|
|
3964
|
-
const { offset: m } =
|
|
3986
|
+
const { offset: m } = d;
|
|
3965
3987
|
if (p && this.currentDirection === null) {
|
|
3966
3988
|
this.currentDirection = Sh(m), this.currentDirection !== null && y && y(this.currentDirection);
|
|
3967
3989
|
return;
|
|
3968
3990
|
}
|
|
3969
|
-
this.updateAxis("x",
|
|
3970
|
-
}, a = (
|
|
3971
|
-
var
|
|
3972
|
-
return this.getAnimationState(
|
|
3991
|
+
this.updateAxis("x", d.point, m), this.updateAxis("y", d.point, m), this.visualElement.render(), f && f(u, d);
|
|
3992
|
+
}, a = (u, d) => this.stop(u, d), l = () => Ce((u) => {
|
|
3993
|
+
var d;
|
|
3994
|
+
return this.getAnimationState(u) === "paused" && ((d = this.getAxisMotionValue(u).animation) === null || d === void 0 ? void 0 : d.play());
|
|
3973
3995
|
}), { dragSnapToOrigin: c } = this.getProps();
|
|
3974
3996
|
this.panSession = new Vl(t, {
|
|
3975
3997
|
onSessionStart: i,
|
|
@@ -4032,23 +4054,23 @@ class wh {
|
|
|
4032
4054
|
return o;
|
|
4033
4055
|
}
|
|
4034
4056
|
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(
|
|
4057
|
+
const { drag: n, dragMomentum: r, dragElastic: i, dragTransition: s, dragSnapToOrigin: o, onDragTransitionEnd: a } = this.getProps(), l = this.constraints || {}, c = Ce((u) => {
|
|
4058
|
+
if (!In(u, n, this.currentDirection))
|
|
4037
4059
|
return;
|
|
4038
|
-
let
|
|
4039
|
-
o && (
|
|
4060
|
+
let d = l && l[u] || {};
|
|
4061
|
+
o && (d = { min: 0, max: 0 });
|
|
4040
4062
|
const h = i ? 200 : 1e6, p = i ? 40 : 1e7, y = {
|
|
4041
4063
|
type: "inertia",
|
|
4042
|
-
velocity: r ? t[
|
|
4064
|
+
velocity: r ? t[u] : 0,
|
|
4043
4065
|
bounceStiffness: h,
|
|
4044
4066
|
bounceDamping: p,
|
|
4045
4067
|
timeConstant: 750,
|
|
4046
4068
|
restDelta: 1,
|
|
4047
4069
|
restSpeed: 10,
|
|
4048
4070
|
...s,
|
|
4049
|
-
...
|
|
4071
|
+
...d
|
|
4050
4072
|
};
|
|
4051
|
-
return this.startAxisValueAnimation(
|
|
4073
|
+
return this.startAxisValueAnimation(u, y);
|
|
4052
4074
|
});
|
|
4053
4075
|
return Promise.all(c).then(a);
|
|
4054
4076
|
}
|
|
@@ -4124,17 +4146,17 @@ class wh {
|
|
|
4124
4146
|
return;
|
|
4125
4147
|
xh.set(this.visualElement, this);
|
|
4126
4148
|
const t = this.visualElement.current, n = Ue(t, "pointerdown", (l) => {
|
|
4127
|
-
const { drag: c, dragListener:
|
|
4128
|
-
c &&
|
|
4149
|
+
const { drag: c, dragListener: u = !0 } = this.getProps();
|
|
4150
|
+
c && u && this.start(l);
|
|
4129
4151
|
}), r = () => {
|
|
4130
4152
|
const { dragConstraints: l } = this.getProps();
|
|
4131
4153
|
Ot(l) && (this.constraints = this.resolveRefConstraints());
|
|
4132
4154
|
}, { projection: i } = this.visualElement, s = i.addEventListener("measure", r);
|
|
4133
4155
|
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), r();
|
|
4134
4156
|
const o = He(window, "resize", () => this.scalePositionWithinConstraints()), a = i.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => {
|
|
4135
|
-
this.isDragging && c && (Ce((
|
|
4136
|
-
const
|
|
4137
|
-
|
|
4157
|
+
this.isDragging && c && (Ce((u) => {
|
|
4158
|
+
const d = this.getAxisMotionValue(u);
|
|
4159
|
+
d && (this.originPoint[u] += l[u].translate, d.set(d.get() + l[u].translate));
|
|
4138
4160
|
}), this.visualElement.render());
|
|
4139
4161
|
});
|
|
4140
4162
|
return () => {
|
|
@@ -4430,8 +4452,8 @@ function us(e, t, n) {
|
|
|
4430
4452
|
let r = "";
|
|
4431
4453
|
const i = e.x.translate / t.x, s = e.y.translate / t.y;
|
|
4432
4454
|
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) `),
|
|
4455
|
+
const { rotate: l, rotateX: c, rotateY: u } = n;
|
|
4456
|
+
l && (r += `rotate(${l}deg) `), c && (r += `rotateX(${c}deg) `), u && (r += `rotateY(${u}deg) `);
|
|
4435
4457
|
}
|
|
4436
4458
|
const o = e.x.scale * t.x, a = e.y.scale * t.y;
|
|
4437
4459
|
return (o !== 1 || a !== 1) && (r += `scale(${o}, ${a})`), r || "none";
|
|
@@ -4505,28 +4527,28 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4505
4527
|
if (this.instance)
|
|
4506
4528
|
return;
|
|
4507
4529
|
this.isSVG = Bh(o), this.instance = o;
|
|
4508
|
-
const { layoutId: l, layout: c, visualElement:
|
|
4509
|
-
if (
|
|
4510
|
-
let
|
|
4530
|
+
const { layoutId: l, layout: c, visualElement: u } = this.options;
|
|
4531
|
+
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) {
|
|
4532
|
+
let d;
|
|
4511
4533
|
const h = () => this.root.updateBlockedByResize = !1;
|
|
4512
4534
|
e(o, () => {
|
|
4513
|
-
this.root.updateBlockedByResize = !0,
|
|
4535
|
+
this.root.updateBlockedByResize = !0, d && d(), d = Fh(h, 250), Bn.hasAnimatedSinceResize && (Bn.hasAnimatedSinceResize = !1, this.nodes.forEach(ps));
|
|
4514
4536
|
});
|
|
4515
4537
|
}
|
|
4516
|
-
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 &&
|
|
4538
|
+
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
4539
|
if (this.isTreeAnimationBlocked()) {
|
|
4518
4540
|
this.target = void 0, this.relativeTarget = void 0;
|
|
4519
4541
|
return;
|
|
4520
4542
|
}
|
|
4521
|
-
const f = this.options.transition ||
|
|
4543
|
+
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
4544
|
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(
|
|
4545
|
+
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(d, x);
|
|
4524
4546
|
const S = {
|
|
4525
4547
|
...Li(f, "layout"),
|
|
4526
4548
|
onPlay: m,
|
|
4527
4549
|
onComplete: b
|
|
4528
4550
|
};
|
|
4529
|
-
(
|
|
4551
|
+
(u.shouldReduceMotion || this.options.layoutRoot) && (S.delay = 0, S.type = !1), this.startAnimation(S);
|
|
4530
4552
|
} else
|
|
4531
4553
|
h || ps(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
4532
4554
|
this.targetLayout = y;
|
|
@@ -4566,9 +4588,9 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4566
4588
|
if (!this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
|
|
4567
4589
|
return;
|
|
4568
4590
|
this.isLayoutDirty = !0;
|
|
4569
|
-
for (let
|
|
4570
|
-
const
|
|
4571
|
-
|
|
4591
|
+
for (let u = 0; u < this.path.length; u++) {
|
|
4592
|
+
const d = this.path[u];
|
|
4593
|
+
d.shouldResetTransform = !0, d.updateScroll("snapshot"), d.options.layoutRoot && d.willUpdate(!1);
|
|
4572
4594
|
}
|
|
4573
4595
|
const { layoutId: a, layout: l } = this.options;
|
|
4574
4596
|
if (a === void 0 && !l)
|
|
@@ -4628,8 +4650,8 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4628
4650
|
resetTransform() {
|
|
4629
4651
|
if (!i)
|
|
4630
4652
|
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) ||
|
|
4653
|
+
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;
|
|
4654
|
+
o && (a || ft(this.latestValues) || u) && (i(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
|
|
4633
4655
|
}
|
|
4634
4656
|
measure(o = !0) {
|
|
4635
4657
|
const a = this.measurePageBox();
|
|
@@ -4653,14 +4675,14 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4653
4675
|
const a = ne();
|
|
4654
4676
|
Ee(a, o);
|
|
4655
4677
|
for (let l = 0; l < this.path.length; l++) {
|
|
4656
|
-
const c = this.path[l], { scroll:
|
|
4657
|
-
if (c !== this.root &&
|
|
4658
|
-
if (
|
|
4678
|
+
const c = this.path[l], { scroll: u, options: d } = c;
|
|
4679
|
+
if (c !== this.root && u && d.layoutScroll) {
|
|
4680
|
+
if (u.isRoot) {
|
|
4659
4681
|
Ee(a, o);
|
|
4660
4682
|
const { scroll: h } = this.root;
|
|
4661
4683
|
h && (et(a.x, -h.offset.x), et(a.y, -h.offset.y));
|
|
4662
4684
|
}
|
|
4663
|
-
et(a.x,
|
|
4685
|
+
et(a.x, u.offset.x), et(a.y, u.offset.y);
|
|
4664
4686
|
}
|
|
4665
4687
|
}
|
|
4666
4688
|
return a;
|
|
@@ -4669,11 +4691,11 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4669
4691
|
const l = ne();
|
|
4670
4692
|
Ee(l, o);
|
|
4671
4693
|
for (let c = 0; c < this.path.length; c++) {
|
|
4672
|
-
const
|
|
4673
|
-
!a &&
|
|
4674
|
-
x: -
|
|
4675
|
-
y: -
|
|
4676
|
-
}), ft(
|
|
4694
|
+
const u = this.path[c];
|
|
4695
|
+
!a && u.options.layoutScroll && u.scroll && u !== u.root && Dt(l, {
|
|
4696
|
+
x: -u.scroll.offset.x,
|
|
4697
|
+
y: -u.scroll.offset.y
|
|
4698
|
+
}), ft(u.latestValues) && Dt(l, u.latestValues);
|
|
4677
4699
|
}
|
|
4678
4700
|
return ft(this.latestValues) && Dt(l, this.latestValues), l;
|
|
4679
4701
|
}
|
|
@@ -4685,8 +4707,8 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4685
4707
|
if (!c.instance || !ft(c.latestValues))
|
|
4686
4708
|
continue;
|
|
4687
4709
|
ci(c.latestValues) && c.updateSnapshot();
|
|
4688
|
-
const
|
|
4689
|
-
Ee(
|
|
4710
|
+
const u = ne(), d = c.measurePageBox();
|
|
4711
|
+
Ee(u, d), as(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
|
|
4690
4712
|
}
|
|
4691
4713
|
return ft(this.latestValues) && as(a, this.latestValues), a;
|
|
4692
4714
|
}
|
|
@@ -4713,8 +4735,8 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4713
4735
|
const c = !!this.resumingFrom || this !== l;
|
|
4714
4736
|
if (!(o || c && this.isSharedProjectionDirty || this.isProjectionDirty || !((a = this.parent) === null || a === void 0) && a.isProjectionDirty || this.attemptToResolveRelativeTarget))
|
|
4715
4737
|
return;
|
|
4716
|
-
const { layout:
|
|
4717
|
-
if (!(!this.layout || !(
|
|
4738
|
+
const { layout: d, layoutId: h } = this.options;
|
|
4739
|
+
if (!(!this.layout || !(d || h))) {
|
|
4718
4740
|
if (this.resolvedRelativeTargetAt = le.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
4719
4741
|
const p = this.getClosestProjectingParent();
|
|
4720
4742
|
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 +4764,8 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4742
4764
|
let c = !0;
|
|
4743
4765
|
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
4766
|
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 || !(
|
|
4767
|
+
const { layout: u, layoutId: d } = this.options;
|
|
4768
|
+
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
4769
|
return;
|
|
4748
4770
|
Ee(this.layoutCorrected, this.layout.layoutBox);
|
|
4749
4771
|
const h = this.treeScale.x, p = this.treeScale.y;
|
|
@@ -4771,14 +4793,14 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4771
4793
|
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
4772
4794
|
}
|
|
4773
4795
|
setAnimationOrigin(o, a = !1) {
|
|
4774
|
-
const l = this.snapshot, c = l ? l.latestValues : {},
|
|
4796
|
+
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, d = Nt();
|
|
4775
4797
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
4776
4798
|
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
4799
|
this.animationProgress = 0;
|
|
4778
4800
|
let x;
|
|
4779
4801
|
this.mixTargetDelta = (S) => {
|
|
4780
4802
|
const v = S / 1e3;
|
|
4781
|
-
ms(
|
|
4803
|
+
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
4804
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
4783
4805
|
}
|
|
4784
4806
|
startAnimation(o) {
|
|
@@ -4804,16 +4826,16 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4804
4826
|
}
|
|
4805
4827
|
applyTransformsToTarget() {
|
|
4806
4828
|
const o = this.getLead();
|
|
4807
|
-
let { targetWithTransforms: a, target: l, layout: c, latestValues:
|
|
4829
|
+
let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = o;
|
|
4808
4830
|
if (!(!a || !l || !c)) {
|
|
4809
4831
|
if (this !== o && this.layout && c && ql(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
|
|
4810
4832
|
l = this.target || ne();
|
|
4811
|
-
const
|
|
4812
|
-
l.x.min = o.target.x.min, l.x.max = l.x.min +
|
|
4833
|
+
const d = we(this.layout.layoutBox.x);
|
|
4834
|
+
l.x.min = o.target.x.min, l.x.max = l.x.min + d;
|
|
4813
4835
|
const h = we(this.layout.layoutBox.y);
|
|
4814
4836
|
l.y.min = o.target.y.min, l.y.max = l.y.min + h;
|
|
4815
4837
|
}
|
|
4816
|
-
Ee(a, l), Dt(a,
|
|
4838
|
+
Ee(a, l), Dt(a, u), rn(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
|
|
4817
4839
|
}
|
|
4818
4840
|
}
|
|
4819
4841
|
registerSharedNode(o, a) {
|
|
@@ -4860,13 +4882,13 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4860
4882
|
if ((l.rotate || l.rotateX || l.rotateY || l.rotateZ) && (a = !0), !a)
|
|
4861
4883
|
return;
|
|
4862
4884
|
const c = {};
|
|
4863
|
-
for (let
|
|
4864
|
-
const
|
|
4865
|
-
l[
|
|
4885
|
+
for (let u = 0; u < ds.length; u++) {
|
|
4886
|
+
const d = "rotate" + ds[u];
|
|
4887
|
+
l[d] && (c[d] = l[d], o.setStaticValue(d, 0));
|
|
4866
4888
|
}
|
|
4867
4889
|
o.render();
|
|
4868
|
-
for (const
|
|
4869
|
-
o.setStaticValue(
|
|
4890
|
+
for (const u in c)
|
|
4891
|
+
o.setStaticValue(u, c[u]);
|
|
4870
4892
|
o.scheduleRender();
|
|
4871
4893
|
}
|
|
4872
4894
|
getProjectionStyles(o) {
|
|
@@ -4877,22 +4899,22 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4877
4899
|
return Hh;
|
|
4878
4900
|
const c = {
|
|
4879
4901
|
visibility: ""
|
|
4880
|
-
},
|
|
4902
|
+
}, u = this.getTransformTemplate();
|
|
4881
4903
|
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 || !
|
|
4904
|
+
return this.needsReset = !1, c.opacity = "", c.pointerEvents = jn(o == null ? void 0 : o.pointerEvents) || "", c.transform = u ? u(this.latestValues, "") : "none", c;
|
|
4905
|
+
const d = this.getLead();
|
|
4906
|
+
if (!this.projectionDelta || !this.layout || !d.target) {
|
|
4885
4907
|
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 =
|
|
4908
|
+
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
4909
|
}
|
|
4888
|
-
const h =
|
|
4889
|
-
this.applyTransformsToTarget(), c.transform = us(this.projectionDeltaWithTransform, this.treeScale, h),
|
|
4910
|
+
const h = d.animationValues || d.latestValues;
|
|
4911
|
+
this.applyTransformsToTarget(), c.transform = us(this.projectionDeltaWithTransform, this.treeScale, h), u && (c.transform = u(h, c.transform));
|
|
4890
4912
|
const { x: p, y } = this.projectionDelta;
|
|
4891
|
-
c.transformOrigin = `${p.origin * 100}% ${y.origin * 100}% 0`,
|
|
4913
|
+
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
4914
|
for (const f in er) {
|
|
4893
4915
|
if (h[f] === void 0)
|
|
4894
4916
|
continue;
|
|
4895
|
-
const { correct: m, applyTo: b } = er[f], w = c.transform === "none" ? h[f] : m(h[f],
|
|
4917
|
+
const { correct: m, applyTo: b } = er[f], w = c.transform === "none" ? h[f] : m(h[f], d);
|
|
4896
4918
|
if (b) {
|
|
4897
4919
|
const x = b.length;
|
|
4898
4920
|
for (let S = 0; S < x; S++)
|
|
@@ -4900,7 +4922,7 @@ function Gl({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4900
4922
|
} else
|
|
4901
4923
|
c[f] = w;
|
|
4902
4924
|
}
|
|
4903
|
-
return this.options.layoutId && (c.pointerEvents =
|
|
4925
|
+
return this.options.layoutId && (c.pointerEvents = d === this ? jn(o == null ? void 0 : o.pointerEvents) || "" : "none"), c;
|
|
4904
4926
|
}
|
|
4905
4927
|
clearSnapshot() {
|
|
4906
4928
|
this.resumeFrom = this.snapshot = void 0;
|
|
@@ -4922,28 +4944,28 @@ function Gh(e) {
|
|
|
4922
4944
|
const n = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot;
|
|
4923
4945
|
if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) {
|
|
4924
4946
|
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[
|
|
4947
|
+
s === "size" ? Ce((d) => {
|
|
4948
|
+
const h = o ? n.measuredBox[d] : n.layoutBox[d], p = we(h);
|
|
4949
|
+
h.min = r[d].min, h.max = h.min + p;
|
|
4950
|
+
}) : ql(s, n.layoutBox, r) && Ce((d) => {
|
|
4951
|
+
const h = o ? n.measuredBox[d] : n.layoutBox[d], p = we(r[d]);
|
|
4952
|
+
h.max = h.min + p, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[d].max = e.relativeTarget[d].min + p);
|
|
4931
4953
|
});
|
|
4932
4954
|
const a = Nt();
|
|
4933
4955
|
rn(a, r, n.layoutBox);
|
|
4934
4956
|
const l = Nt();
|
|
4935
4957
|
o ? rn(l, e.applyTransform(i, !0), n.measuredBox) : rn(l, r, n.layoutBox);
|
|
4936
4958
|
const c = !Ul(a);
|
|
4937
|
-
let
|
|
4959
|
+
let u = !1;
|
|
4938
4960
|
if (!e.resumeFrom) {
|
|
4939
|
-
const
|
|
4940
|
-
if (
|
|
4941
|
-
const { snapshot: h, layout: p } =
|
|
4961
|
+
const d = e.getClosestProjectingParent();
|
|
4962
|
+
if (d && !d.resumeFrom) {
|
|
4963
|
+
const { snapshot: h, layout: p } = d;
|
|
4942
4964
|
if (h && p) {
|
|
4943
4965
|
const y = ne();
|
|
4944
4966
|
on(y, n.layoutBox, h.layoutBox);
|
|
4945
4967
|
const f = ne();
|
|
4946
|
-
on(f, r, p.layoutBox), Yl(y, f) || (
|
|
4968
|
+
on(f, r, p.layoutBox), Yl(y, f) || (u = !0), d.options.layoutRoot && (e.relativeTarget = f, e.relativeTargetOrigin = y, e.relativeParent = d);
|
|
4947
4969
|
}
|
|
4948
4970
|
}
|
|
4949
4971
|
}
|
|
@@ -4953,7 +4975,7 @@ function Gh(e) {
|
|
|
4953
4975
|
delta: l,
|
|
4954
4976
|
layoutDelta: a,
|
|
4955
4977
|
hasLayoutChanged: c,
|
|
4956
|
-
hasRelativeTargetChanged:
|
|
4978
|
+
hasRelativeTargetChanged: u
|
|
4957
4979
|
});
|
|
4958
4980
|
} else if (e.isLead()) {
|
|
4959
4981
|
const { onExitComplete: r } = e.options;
|
|
@@ -5145,8 +5167,8 @@ const v1 = (e, t, n) => {
|
|
|
5145
5167
|
}), t.render();
|
|
5146
5168
|
const l = t.measureViewportBox();
|
|
5147
5169
|
return n.forEach((c) => {
|
|
5148
|
-
const
|
|
5149
|
-
|
|
5170
|
+
const u = t.getValue(c);
|
|
5171
|
+
u && u.jump(a[c]), e[c] = $t[c](l, s);
|
|
5150
5172
|
}), e;
|
|
5151
5173
|
}, b1 = (e, t, n = {}, r = {}) => {
|
|
5152
5174
|
t = { ...t }, r = { ...r };
|
|
@@ -5157,26 +5179,26 @@ const v1 = (e, t, n) => {
|
|
|
5157
5179
|
const c = e.getValue(l);
|
|
5158
5180
|
if (!e.hasValue(l))
|
|
5159
5181
|
return;
|
|
5160
|
-
let
|
|
5182
|
+
let u = n[l], d = qt(u);
|
|
5161
5183
|
const h = t[l];
|
|
5162
5184
|
let p;
|
|
5163
5185
|
if (nr(h)) {
|
|
5164
5186
|
const y = h.length, f = h[0] === null ? 1 : 0;
|
|
5165
|
-
|
|
5187
|
+
u = h[f], d = qt(u);
|
|
5166
5188
|
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 ===
|
|
5189
|
+
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
5190
|
} else
|
|
5169
5191
|
p = qt(h);
|
|
5170
|
-
if (
|
|
5171
|
-
if (Ln(
|
|
5192
|
+
if (d !== p)
|
|
5193
|
+
if (Ln(d) && Ln(p)) {
|
|
5172
5194
|
const y = c.get();
|
|
5173
5195
|
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
5196
|
} else
|
|
5175
|
-
|
|
5197
|
+
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
5198
|
}), a.length) {
|
|
5177
5199
|
const l = a.indexOf("height") >= 0 ? window.pageYOffset : null, c = v1(t, e, a);
|
|
5178
|
-
return s.length && s.forEach(([
|
|
5179
|
-
e.getValue(
|
|
5200
|
+
return s.length && s.forEach(([u, d]) => {
|
|
5201
|
+
e.getValue(u).set(d);
|
|
5180
5202
|
}), e.render(), mr && l !== null && window.scrollTo({ top: l }), { target: c, transitionEnd: r };
|
|
5181
5203
|
} else
|
|
5182
5204
|
return { target: t, transitionEnd: r };
|
|
@@ -5233,10 +5255,10 @@ class _1 {
|
|
|
5233
5255
|
}, this.scheduleRender = () => Y.render(this.render, !1, !0);
|
|
5234
5256
|
const { latestValues: a, renderState: l } = s;
|
|
5235
5257
|
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[
|
|
5258
|
+
const { willChange: c, ...u } = this.scrapeMotionValuesFromProps(n, {});
|
|
5259
|
+
for (const d in u) {
|
|
5260
|
+
const h = u[d];
|
|
5261
|
+
a[d] !== void 0 && pe(h) && (h.set(a[d], !1), sr(c) && c.add(d));
|
|
5240
5262
|
}
|
|
5241
5263
|
}
|
|
5242
5264
|
/**
|
|
@@ -5278,16 +5300,16 @@ class _1 {
|
|
|
5278
5300
|
n.ignoreStrict ? wn(!1, l) : De(!1, l);
|
|
5279
5301
|
}
|
|
5280
5302
|
for (let l = 0; l < C1; l++) {
|
|
5281
|
-
const c = Jl[l], { isEnabled:
|
|
5282
|
-
h && (o = h),
|
|
5303
|
+
const c = Jl[l], { isEnabled: u, Feature: d, ProjectionNode: h, MeasureLayout: p } = un[c];
|
|
5304
|
+
h && (o = h), u(n) && (!this.features[c] && d && (this.features[c] = new d(this)), p && (a = p));
|
|
5283
5305
|
}
|
|
5284
5306
|
if ((this.type === "html" || this.type === "svg") && !this.projection && o) {
|
|
5285
5307
|
this.projection = new o(this.latestValues, this.parent && this.parent.projection);
|
|
5286
|
-
const { layoutId: l, layout: c, drag:
|
|
5308
|
+
const { layoutId: l, layout: c, drag: u, dragConstraints: d, layoutScroll: h, layoutRoot: p } = n;
|
|
5287
5309
|
this.projection.setOptions({
|
|
5288
5310
|
layoutId: l,
|
|
5289
5311
|
layout: c,
|
|
5290
|
-
alwaysMeasureLayout: !!
|
|
5312
|
+
alwaysMeasureLayout: !!u || d && Ot(d),
|
|
5291
5313
|
visualElement: this,
|
|
5292
5314
|
scheduleRender: () => this.scheduleRender(),
|
|
5293
5315
|
/**
|
|
@@ -5605,12 +5627,12 @@ function V1(e) {
|
|
|
5605
5627
|
}
|
|
5606
5628
|
function ec({ item: e, level: t = 0, ...n }) {
|
|
5607
5629
|
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" : "",
|
|
5630
|
+
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
5631
|
return /* @__PURE__ */ k(
|
|
5610
5632
|
"div",
|
|
5611
5633
|
{
|
|
5612
5634
|
ref: y,
|
|
5613
|
-
className:
|
|
5635
|
+
className: u("menu-item__wrapper"),
|
|
5614
5636
|
onMouseEnter: () => i && p(!0),
|
|
5615
5637
|
onMouseLeave: () => i && p(!1),
|
|
5616
5638
|
children: [
|
|
@@ -5624,17 +5646,17 @@ function ec({ item: e, level: t = 0, ...n }) {
|
|
|
5624
5646
|
transition: "all 0.3s"
|
|
5625
5647
|
// transitionDelay: '0.1s',
|
|
5626
5648
|
},
|
|
5627
|
-
className:
|
|
5649
|
+
className: u("menu-item__link"),
|
|
5628
5650
|
onClick: (O) => {
|
|
5629
|
-
|
|
5651
|
+
d && (O.preventDefault(), i || o(e.id));
|
|
5630
5652
|
},
|
|
5631
5653
|
children: [
|
|
5632
|
-
t !== 0 && /* @__PURE__ */ g(I1, { cls:
|
|
5633
|
-
/* @__PURE__ */ g("span", { className:
|
|
5634
|
-
|
|
5654
|
+
t !== 0 && /* @__PURE__ */ g(I1, { cls: u, item: e }),
|
|
5655
|
+
/* @__PURE__ */ g("span", { className: u("menu-item__label"), children: e.name }),
|
|
5656
|
+
d && /* @__PURE__ */ g("div", { className: u("menu-item__icon-arrow__wrapper"), children: /* @__PURE__ */ g(
|
|
5635
5657
|
R1,
|
|
5636
5658
|
{
|
|
5637
|
-
className:
|
|
5659
|
+
className: u(
|
|
5638
5660
|
`menu-item__icon-arrow__icon ${s(e.id) ? "open" : "close"}`
|
|
5639
5661
|
)
|
|
5640
5662
|
}
|
|
@@ -5650,7 +5672,7 @@ function ec({ item: e, level: t = 0, ...n }) {
|
|
|
5650
5672
|
children: /* @__PURE__ */ g(
|
|
5651
5673
|
D1.div,
|
|
5652
5674
|
{
|
|
5653
|
-
className:
|
|
5675
|
+
className: u("menu-item__dropdown", `level-${E}`),
|
|
5654
5676
|
initial: {
|
|
5655
5677
|
height: i || s(e.id) ? "auto" : 0
|
|
5656
5678
|
},
|
|
@@ -5699,8 +5721,8 @@ function I1({ item: e, cls: t }) {
|
|
|
5699
5721
|
{
|
|
5700
5722
|
src: e.icon,
|
|
5701
5723
|
beforeInjection: (l) => {
|
|
5702
|
-
l.setAttribute("style", "margin: 0 auto;"), l.querySelectorAll("path").forEach((
|
|
5703
|
-
|
|
5724
|
+
l.setAttribute("style", "margin: 0 auto;"), l.querySelectorAll("path").forEach((u) => {
|
|
5725
|
+
u.hasAttribute("fill") && u.setAttribute("fill", "currentColor"), u.hasAttribute("stroke") && u.setAttribute("stroke", "currentColor");
|
|
5704
5726
|
});
|
|
5705
5727
|
}
|
|
5706
5728
|
}
|
|
@@ -5771,14 +5793,14 @@ const F1 = `.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collaps
|
|
|
5771
5793
|
function j1(e) {
|
|
5772
5794
|
const { baseUrl: t, menuPath: n } = e, r = fu(), [i, s] = K([]), [o, a] = K(
|
|
5773
5795
|
localStorage.getItem("isCollapsed") === "true"
|
|
5774
|
-
), [l, c] = K({}),
|
|
5796
|
+
), [l, c] = K({}), u = Wi(i), [d, h] = K(window.location.href);
|
|
5775
5797
|
be(() => {
|
|
5776
5798
|
h(window.location.href);
|
|
5777
5799
|
}, [r]);
|
|
5778
|
-
const p = tc(
|
|
5800
|
+
const p = tc(u, d).filter(
|
|
5779
5801
|
(v) => v.parentKey !== 0
|
|
5780
5802
|
);
|
|
5781
|
-
console.log("matchPaths:",
|
|
5803
|
+
console.log("matchPaths:", d, r, p);
|
|
5782
5804
|
const y = (v) => {
|
|
5783
5805
|
c({
|
|
5784
5806
|
...l,
|
|
@@ -6470,7 +6492,7 @@ function Z1() {
|
|
|
6470
6492
|
if (Cs)
|
|
6471
6493
|
return $;
|
|
6472
6494
|
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"),
|
|
6495
|
+
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
6496
|
y = Symbol.for("react.module.reference");
|
|
6475
6497
|
function f(m) {
|
|
6476
6498
|
if (typeof m == "object" && m !== null) {
|
|
@@ -6482,7 +6504,7 @@ function Z1() {
|
|
|
6482
6504
|
case i:
|
|
6483
6505
|
case r:
|
|
6484
6506
|
case c:
|
|
6485
|
-
case
|
|
6507
|
+
case u:
|
|
6486
6508
|
return m;
|
|
6487
6509
|
default:
|
|
6488
6510
|
switch (m = m && m.$$typeof, m) {
|
|
@@ -6490,7 +6512,7 @@ function Z1() {
|
|
|
6490
6512
|
case o:
|
|
6491
6513
|
case l:
|
|
6492
6514
|
case h:
|
|
6493
|
-
case
|
|
6515
|
+
case d:
|
|
6494
6516
|
case s:
|
|
6495
6517
|
return m;
|
|
6496
6518
|
default:
|
|
@@ -6502,7 +6524,7 @@ function Z1() {
|
|
|
6502
6524
|
}
|
|
6503
6525
|
}
|
|
6504
6526
|
}
|
|
6505
|
-
return $.ContextConsumer = o, $.ContextProvider = s, $.Element = e, $.ForwardRef = l, $.Fragment = n, $.Lazy = h, $.Memo =
|
|
6527
|
+
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
6528
|
return !1;
|
|
6507
6529
|
}, $.isConcurrentMode = function() {
|
|
6508
6530
|
return !1;
|
|
@@ -6519,7 +6541,7 @@ function Z1() {
|
|
|
6519
6541
|
}, $.isLazy = function(m) {
|
|
6520
6542
|
return f(m) === h;
|
|
6521
6543
|
}, $.isMemo = function(m) {
|
|
6522
|
-
return f(m) ===
|
|
6544
|
+
return f(m) === d;
|
|
6523
6545
|
}, $.isPortal = function(m) {
|
|
6524
6546
|
return f(m) === t;
|
|
6525
6547
|
}, $.isProfiler = function(m) {
|
|
@@ -6529,9 +6551,9 @@ function Z1() {
|
|
|
6529
6551
|
}, $.isSuspense = function(m) {
|
|
6530
6552
|
return f(m) === c;
|
|
6531
6553
|
}, $.isSuspenseList = function(m) {
|
|
6532
|
-
return f(m) ===
|
|
6554
|
+
return f(m) === u;
|
|
6533
6555
|
}, $.isValidElementType = function(m) {
|
|
6534
|
-
return typeof m == "string" || typeof m == "function" || m === n || m === i || m === r || m === c || m ===
|
|
6556
|
+
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
6557
|
}, $.typeOf = f, $;
|
|
6536
6558
|
}
|
|
6537
6559
|
var z = {};
|
|
@@ -6547,10 +6569,10 @@ var z = {};
|
|
|
6547
6569
|
var Ts;
|
|
6548
6570
|
function J1() {
|
|
6549
6571
|
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"),
|
|
6572
|
+
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
6573
|
x = Symbol.for("react.module.reference");
|
|
6552
6574
|
function S(A) {
|
|
6553
|
-
return !!(typeof A == "string" || typeof A == "function" || A === n || A === i || w || A === r || A === c || A ===
|
|
6575
|
+
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
6576
|
// types supported by any Flight configuration anywhere since
|
|
6555
6577
|
// we don't know which Flight build this will end up being used
|
|
6556
6578
|
// with.
|
|
@@ -6567,7 +6589,7 @@ function J1() {
|
|
|
6567
6589
|
case i:
|
|
6568
6590
|
case r:
|
|
6569
6591
|
case c:
|
|
6570
|
-
case
|
|
6592
|
+
case u:
|
|
6571
6593
|
return An;
|
|
6572
6594
|
default:
|
|
6573
6595
|
var ao = An && An.$$typeof;
|
|
@@ -6576,7 +6598,7 @@ function J1() {
|
|
|
6576
6598
|
case o:
|
|
6577
6599
|
case l:
|
|
6578
6600
|
case h:
|
|
6579
|
-
case
|
|
6601
|
+
case d:
|
|
6580
6602
|
case s:
|
|
6581
6603
|
return ao;
|
|
6582
6604
|
default:
|
|
@@ -6588,7 +6610,7 @@ function J1() {
|
|
|
6588
6610
|
}
|
|
6589
6611
|
}
|
|
6590
6612
|
}
|
|
6591
|
-
var E = o, C = s, T = e, P = l, D = n, O = h, V =
|
|
6613
|
+
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
6614
|
function Re(A) {
|
|
6593
6615
|
return ue || (ue = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
6594
6616
|
}
|
|
@@ -6614,7 +6636,7 @@ function J1() {
|
|
|
6614
6636
|
return v(A) === h;
|
|
6615
6637
|
}
|
|
6616
6638
|
function Ut(A) {
|
|
6617
|
-
return v(A) ===
|
|
6639
|
+
return v(A) === d;
|
|
6618
6640
|
}
|
|
6619
6641
|
function ct(A) {
|
|
6620
6642
|
return v(A) === t;
|
|
@@ -6629,7 +6651,7 @@ function J1() {
|
|
|
6629
6651
|
return v(A) === c;
|
|
6630
6652
|
}
|
|
6631
6653
|
function Yt(A) {
|
|
6632
|
-
return v(A) ===
|
|
6654
|
+
return v(A) === u;
|
|
6633
6655
|
}
|
|
6634
6656
|
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
6657
|
}()), z;
|
|
@@ -6799,10 +6821,10 @@ function lc(e) {
|
|
|
6799
6821
|
const y = o.indexOf(p);
|
|
6800
6822
|
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
6823
|
}
|
|
6802
|
-
function
|
|
6824
|
+
function u(h) {
|
|
6803
6825
|
return o.indexOf(h) + 1 < o.length ? c(h, o[o.indexOf(h) + 1]) : a(h);
|
|
6804
6826
|
}
|
|
6805
|
-
function
|
|
6827
|
+
function d(h) {
|
|
6806
6828
|
const p = o.indexOf(h);
|
|
6807
6829
|
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
6830
|
}
|
|
@@ -6812,8 +6834,8 @@ function lc(e) {
|
|
|
6812
6834
|
up: a,
|
|
6813
6835
|
down: l,
|
|
6814
6836
|
between: c,
|
|
6815
|
-
only:
|
|
6816
|
-
not:
|
|
6837
|
+
only: u,
|
|
6838
|
+
not: d,
|
|
6817
6839
|
unit: n
|
|
6818
6840
|
}, i);
|
|
6819
6841
|
}
|
|
@@ -6901,9 +6923,9 @@ function ee(e) {
|
|
|
6901
6923
|
if (o[t] == null)
|
|
6902
6924
|
return null;
|
|
6903
6925
|
const a = o[t], l = o.theme, c = wr(l, r) || {};
|
|
6904
|
-
return qe(o, a, (
|
|
6905
|
-
let h = lr(c, i,
|
|
6906
|
-
return
|
|
6926
|
+
return qe(o, a, (d) => {
|
|
6927
|
+
let h = lr(c, i, d);
|
|
6928
|
+
return d === h && typeof d == "string" && (h = lr(c, i, `${t}${d === "default" ? "" : gt(d)}`, d)), n === !1 ? h : {
|
|
6907
6929
|
[n]: h
|
|
6908
6930
|
};
|
|
6909
6931
|
});
|
|
@@ -7456,8 +7478,8 @@ function dc() {
|
|
|
7456
7478
|
const {
|
|
7457
7479
|
cssProperty: l = n,
|
|
7458
7480
|
themeKey: c,
|
|
7459
|
-
transform:
|
|
7460
|
-
style:
|
|
7481
|
+
transform: u,
|
|
7482
|
+
style: d
|
|
7461
7483
|
} = a;
|
|
7462
7484
|
if (r == null)
|
|
7463
7485
|
return null;
|
|
@@ -7466,9 +7488,9 @@ function dc() {
|
|
|
7466
7488
|
[n]: r
|
|
7467
7489
|
};
|
|
7468
7490
|
const h = wr(i, c) || {};
|
|
7469
|
-
return
|
|
7470
|
-
let f = lr(h,
|
|
7471
|
-
return y === f && typeof y == "string" && (f = lr(h,
|
|
7491
|
+
return d ? d(o) : qe(o, r, (y) => {
|
|
7492
|
+
let f = lr(h, u, y);
|
|
7493
|
+
return y === f && typeof y == "string" && (f = lr(h, u, `${n}${y === "default" ? "" : gt(y)}`, y)), l === !1 ? f : {
|
|
7472
7494
|
[l]: f
|
|
7473
7495
|
};
|
|
7474
7496
|
});
|
|
@@ -7490,8 +7512,8 @@ function dc() {
|
|
|
7490
7512
|
return l;
|
|
7491
7513
|
if (!c)
|
|
7492
7514
|
return null;
|
|
7493
|
-
const
|
|
7494
|
-
let h =
|
|
7515
|
+
const u = yp(s.breakpoints), d = Object.keys(u);
|
|
7516
|
+
let h = u;
|
|
7495
7517
|
return Object.keys(c).forEach((p) => {
|
|
7496
7518
|
const y = om(c[p], s);
|
|
7497
7519
|
if (y != null)
|
|
@@ -7511,7 +7533,7 @@ function dc() {
|
|
|
7511
7533
|
}
|
|
7512
7534
|
else
|
|
7513
7535
|
h = sn(h, e(p, y, s, o));
|
|
7514
|
-
}), vp(
|
|
7536
|
+
}), vp(d, h);
|
|
7515
7537
|
}
|
|
7516
7538
|
return Array.isArray(i) ? i.map(a) : a(i);
|
|
7517
7539
|
}
|
|
@@ -7545,9 +7567,9 @@ function qi(e = {}, ...t) {
|
|
|
7545
7567
|
spacing: l,
|
|
7546
7568
|
shape: W({}, mp, s)
|
|
7547
7569
|
}, o);
|
|
7548
|
-
return c.applyStyles = hc, c = t.reduce((
|
|
7570
|
+
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
7571
|
return Gi({
|
|
7550
|
-
sx:
|
|
7572
|
+
sx: d,
|
|
7551
7573
|
theme: this
|
|
7552
7574
|
});
|
|
7553
7575
|
}, c;
|
|
@@ -7758,10 +7780,10 @@ function _m(e) {
|
|
|
7758
7780
|
return bc(Un("", null, null, null, [""], e = vc(e), 0, [0], e));
|
|
7759
7781
|
}
|
|
7760
7782
|
function Un(e, t, n, r, i, s, o, a, l) {
|
|
7761
|
-
for (var c = 0,
|
|
7783
|
+
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
7784
|
switch (y = w, w = xe()) {
|
|
7763
7785
|
case 40:
|
|
7764
|
-
if (y != 108 && oe(C,
|
|
7786
|
+
if (y != 108 && oe(C, d - 1) == 58) {
|
|
7765
7787
|
pi(C += L(Hn(w), "&", "&\f"), "&\f") != -1 && (b = -1);
|
|
7766
7788
|
break;
|
|
7767
7789
|
}
|
|
@@ -7798,31 +7820,31 @@ function Un(e, t, n, r, i, s, o, a, l) {
|
|
|
7798
7820
|
case 0:
|
|
7799
7821
|
case 125:
|
|
7800
7822
|
m = 0;
|
|
7801
|
-
case 59 +
|
|
7802
|
-
b == -1 && (C = L(C, /\f/g, "")), p > 0 && Ve(C) -
|
|
7823
|
+
case 59 + u:
|
|
7824
|
+
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
7825
|
break;
|
|
7804
7826
|
case 59:
|
|
7805
7827
|
C += ";";
|
|
7806
7828
|
default:
|
|
7807
|
-
if ($n(E = Ms(C, t, n, c,
|
|
7808
|
-
if (
|
|
7809
|
-
Un(C, t, E, E, S, s,
|
|
7829
|
+
if ($n(E = Ms(C, t, n, c, u, i, a, x, S = [], v = [], d), s), w === 123)
|
|
7830
|
+
if (u === 0)
|
|
7831
|
+
Un(C, t, E, E, S, s, d, a, v);
|
|
7810
7832
|
else
|
|
7811
7833
|
switch (h === 99 && oe(C, 3) === 110 ? 100 : h) {
|
|
7812
7834
|
case 100:
|
|
7813
7835
|
case 108:
|
|
7814
7836
|
case 109:
|
|
7815
7837
|
case 115:
|
|
7816
|
-
Un(e, E, E, r && $n(Ms(e, E, E, 0, 0, i, a, x, i, S = [],
|
|
7838
|
+
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
7839
|
break;
|
|
7818
7840
|
default:
|
|
7819
7841
|
Un(C, E, E, E, [""], v, 0, a, v);
|
|
7820
7842
|
}
|
|
7821
7843
|
}
|
|
7822
|
-
c =
|
|
7844
|
+
c = u = p = 0, f = b = 1, x = C = "", d = o;
|
|
7823
7845
|
break;
|
|
7824
7846
|
case 58:
|
|
7825
|
-
|
|
7847
|
+
d = 1 + Ve(C), p = y;
|
|
7826
7848
|
default:
|
|
7827
7849
|
if (f < 1) {
|
|
7828
7850
|
if (w == 123)
|
|
@@ -7832,13 +7854,13 @@ function Un(e, t, n, r, i, s, o, a, l) {
|
|
|
7832
7854
|
}
|
|
7833
7855
|
switch (C += kr(w), w * f) {
|
|
7834
7856
|
case 38:
|
|
7835
|
-
b =
|
|
7857
|
+
b = u > 0 ? 1 : (C += "\f", -1);
|
|
7836
7858
|
break;
|
|
7837
7859
|
case 44:
|
|
7838
7860
|
a[c++] = (Ve(C) - 1) * b, b = 1;
|
|
7839
7861
|
break;
|
|
7840
7862
|
case 64:
|
|
7841
|
-
$e() === 45 && (C += Hn(xe())), h = $e(),
|
|
7863
|
+
$e() === 45 && (C += Hn(xe())), h = $e(), u = d = Ve(x = C += Tm(Wn())), w++;
|
|
7842
7864
|
break;
|
|
7843
7865
|
case 45:
|
|
7844
7866
|
y === 45 && Ve(C) == 2 && (f = 0);
|
|
@@ -7846,11 +7868,11 @@ function Un(e, t, n, r, i, s, o, a, l) {
|
|
|
7846
7868
|
}
|
|
7847
7869
|
return s;
|
|
7848
7870
|
}
|
|
7849
|
-
function Ms(e, t, n, r, i, s, o, a, l, c,
|
|
7850
|
-
for (var
|
|
7851
|
-
for (var b = 0, w = hn(e,
|
|
7871
|
+
function Ms(e, t, n, r, i, s, o, a, l, c, u) {
|
|
7872
|
+
for (var d = i - 1, h = i === 0 ? s : [""], p = Ji(h), y = 0, f = 0, m = 0; y < r; ++y)
|
|
7873
|
+
for (var b = 0, w = hn(e, d + 1, d = mm(f = o[y])), x = e; b < p; ++b)
|
|
7852
7874
|
(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,
|
|
7875
|
+
return Mr(e, t, n, i === 0 ? Xi : a, l, c, u);
|
|
7854
7876
|
}
|
|
7855
7877
|
function Pm(e, t, n) {
|
|
7856
7878
|
return Mr(e, t, n, Ki, kr(xm()), hn(e, 2, -2), 0);
|
|
@@ -7929,8 +7951,8 @@ var Mm = function(t, n, r) {
|
|
|
7929
7951
|
if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !Ds.get(r)) && !i) {
|
|
7930
7952
|
Ds.set(t, !0);
|
|
7931
7953
|
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[
|
|
7954
|
+
for (var u = 0; u < a.length; u++, c++)
|
|
7955
|
+
t.props[c] = s[l] ? o[l].replace(/&\f/g, a[u]) : a[u] + " " + o[l];
|
|
7934
7956
|
}
|
|
7935
7957
|
}
|
|
7936
7958
|
}, Vm = function(t) {
|
|
@@ -7960,8 +7982,8 @@ var Mm = function(t, n, r) {
|
|
|
7960
7982
|
break;
|
|
7961
7983
|
}
|
|
7962
7984
|
}
|
|
7963
|
-
s.forEach(function(
|
|
7964
|
-
console.error('The pseudo class "' +
|
|
7985
|
+
s.forEach(function(u) {
|
|
7986
|
+
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
7987
|
});
|
|
7966
7988
|
}
|
|
7967
7989
|
}
|
|
@@ -8156,15 +8178,15 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
8156
8178
|
}
|
|
8157
8179
|
}), Fm);
|
|
8158
8180
|
{
|
|
8159
|
-
var
|
|
8160
|
-
f.root || (f.return ?
|
|
8181
|
+
var u, d = [Am, process.env.NODE_ENV !== "production" ? function(f) {
|
|
8182
|
+
f.root || (f.return ? u.insert(f.return) : f.value && f.type !== Ki && u.insert(f.value + "{}"));
|
|
8161
8183
|
} : Om(function(f) {
|
|
8162
|
-
|
|
8163
|
-
})], h = km(c.concat(i,
|
|
8184
|
+
u.insert(f);
|
|
8185
|
+
})], h = km(c.concat(i, d)), p = function(m) {
|
|
8164
8186
|
return It(_m(m), h);
|
|
8165
8187
|
};
|
|
8166
8188
|
l = function(m, b, w, x) {
|
|
8167
|
-
|
|
8189
|
+
u = w, process.env.NODE_ENV !== "production" && b.map !== void 0 && (u = {
|
|
8168
8190
|
insert: function(v) {
|
|
8169
8191
|
w.insert(v + b.map);
|
|
8170
8192
|
}
|
|
@@ -8201,7 +8223,7 @@ function Wm() {
|
|
|
8201
8223
|
if (Vs)
|
|
8202
8224
|
return F;
|
|
8203
8225
|
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,
|
|
8226
|
+
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
8227
|
function x(v) {
|
|
8206
8228
|
if (typeof v == "object" && v !== null) {
|
|
8207
8229
|
var E = v.$$typeof;
|
|
@@ -8213,12 +8235,12 @@ function Wm() {
|
|
|
8213
8235
|
case r:
|
|
8214
8236
|
case s:
|
|
8215
8237
|
case i:
|
|
8216
|
-
case
|
|
8238
|
+
case d:
|
|
8217
8239
|
return v;
|
|
8218
8240
|
default:
|
|
8219
8241
|
switch (v = v && v.$$typeof, v) {
|
|
8220
8242
|
case a:
|
|
8221
|
-
case
|
|
8243
|
+
case u:
|
|
8222
8244
|
case y:
|
|
8223
8245
|
case p:
|
|
8224
8246
|
case o:
|
|
@@ -8235,7 +8257,7 @@ function Wm() {
|
|
|
8235
8257
|
function S(v) {
|
|
8236
8258
|
return x(v) === c;
|
|
8237
8259
|
}
|
|
8238
|
-
return F.AsyncMode = l, F.ConcurrentMode = c, F.ContextConsumer = a, F.ContextProvider = o, F.Element = t, F.ForwardRef =
|
|
8260
|
+
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
8261
|
return S(v) || x(v) === l;
|
|
8240
8262
|
}, F.isConcurrentMode = S, F.isContextConsumer = function(v) {
|
|
8241
8263
|
return x(v) === a;
|
|
@@ -8244,7 +8266,7 @@ function Wm() {
|
|
|
8244
8266
|
}, F.isElement = function(v) {
|
|
8245
8267
|
return typeof v == "object" && v !== null && v.$$typeof === t;
|
|
8246
8268
|
}, F.isForwardRef = function(v) {
|
|
8247
|
-
return x(v) ===
|
|
8269
|
+
return x(v) === u;
|
|
8248
8270
|
}, F.isFragment = function(v) {
|
|
8249
8271
|
return x(v) === r;
|
|
8250
8272
|
}, F.isLazy = function(v) {
|
|
@@ -8258,9 +8280,9 @@ function Wm() {
|
|
|
8258
8280
|
}, F.isStrictMode = function(v) {
|
|
8259
8281
|
return x(v) === i;
|
|
8260
8282
|
}, F.isSuspense = function(v) {
|
|
8261
|
-
return x(v) ===
|
|
8283
|
+
return x(v) === d;
|
|
8262
8284
|
}, F.isValidElementType = function(v) {
|
|
8263
|
-
return typeof v == "string" || typeof v == "function" || v === r || v === c || v === s || v === i || v ===
|
|
8285
|
+
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
8286
|
}, F.typeOf = x, F;
|
|
8265
8287
|
}
|
|
8266
8288
|
var j = {};
|
|
@@ -8275,10 +8297,10 @@ var j = {};
|
|
|
8275
8297
|
var Is;
|
|
8276
8298
|
function Hm() {
|
|
8277
8299
|
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,
|
|
8300
|
+
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
8301
|
function x(_) {
|
|
8280
8302
|
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 || _ ===
|
|
8303
|
+
_ === 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
8304
|
}
|
|
8283
8305
|
function S(_) {
|
|
8284
8306
|
if (typeof _ == "object" && _ !== null) {
|
|
@@ -8292,13 +8314,13 @@ function Hm() {
|
|
|
8292
8314
|
case r:
|
|
8293
8315
|
case s:
|
|
8294
8316
|
case i:
|
|
8295
|
-
case
|
|
8317
|
+
case d:
|
|
8296
8318
|
return A;
|
|
8297
8319
|
default:
|
|
8298
8320
|
var wt = A && A.$$typeof;
|
|
8299
8321
|
switch (wt) {
|
|
8300
8322
|
case a:
|
|
8301
|
-
case
|
|
8323
|
+
case u:
|
|
8302
8324
|
case y:
|
|
8303
8325
|
case p:
|
|
8304
8326
|
case o:
|
|
@@ -8312,7 +8334,7 @@ function Hm() {
|
|
|
8312
8334
|
}
|
|
8313
8335
|
}
|
|
8314
8336
|
}
|
|
8315
|
-
var v = l, E = c, C = a, T = o, P = t, D =
|
|
8337
|
+
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
8338
|
function ge(_) {
|
|
8317
8339
|
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
8340
|
}
|
|
@@ -8329,7 +8351,7 @@ function Hm() {
|
|
|
8329
8351
|
return typeof _ == "object" && _ !== null && _.$$typeof === t;
|
|
8330
8352
|
}
|
|
8331
8353
|
function Se(_) {
|
|
8332
|
-
return S(_) ===
|
|
8354
|
+
return S(_) === u;
|
|
8333
8355
|
}
|
|
8334
8356
|
function Be(_) {
|
|
8335
8357
|
return S(_) === r;
|
|
@@ -8350,7 +8372,7 @@ function Hm() {
|
|
|
8350
8372
|
return S(_) === i;
|
|
8351
8373
|
}
|
|
8352
8374
|
function Oe(_) {
|
|
8353
|
-
return S(_) ===
|
|
8375
|
+
return S(_) === d;
|
|
8354
8376
|
}
|
|
8355
8377
|
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
8378
|
}()), j;
|
|
@@ -8546,7 +8568,7 @@ function mn(e, t, n) {
|
|
|
8546
8568
|
}
|
|
8547
8569
|
case "string":
|
|
8548
8570
|
if (process.env.NODE_ENV !== "production") {
|
|
8549
|
-
var a = [], l = n.replace(Tc, function(
|
|
8571
|
+
var a = [], l = n.replace(Tc, function(u, d, h) {
|
|
8550
8572
|
var p = "animation" + a.length;
|
|
8551
8573
|
return a.push("const " + p + " = keyframes`" + h.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + p + "}";
|
|
8552
8574
|
});
|
|
@@ -8611,12 +8633,12 @@ var Ne, Ft = function(t, n, r) {
|
|
|
8611
8633
|
process.env.NODE_ENV !== "production" && (s = s.replace(Pc, function(h) {
|
|
8612
8634
|
return l = h, "";
|
|
8613
8635
|
})), Fs.lastIndex = 0;
|
|
8614
|
-
for (var c = "",
|
|
8636
|
+
for (var c = "", u; (u = Fs.exec(s)) !== null; )
|
|
8615
8637
|
c += "-" + // $FlowFixMe we know it's not null
|
|
8616
|
-
|
|
8617
|
-
var
|
|
8638
|
+
u[1];
|
|
8639
|
+
var d = Km(s) + c;
|
|
8618
8640
|
return process.env.NODE_ENV !== "production" ? {
|
|
8619
|
-
name:
|
|
8641
|
+
name: d,
|
|
8620
8642
|
styles: s,
|
|
8621
8643
|
map: l,
|
|
8622
8644
|
next: Ne,
|
|
@@ -8624,7 +8646,7 @@ var Ne, Ft = function(t, n, r) {
|
|
|
8624
8646
|
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
8647
|
}
|
|
8626
8648
|
} : {
|
|
8627
|
-
name:
|
|
8649
|
+
name: d,
|
|
8628
8650
|
styles: s,
|
|
8629
8651
|
next: Ne
|
|
8630
8652
|
};
|
|
@@ -8666,8 +8688,8 @@ var Bs = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", Ws = "__EMOTION_LABEL_PLEASE_DO_N
|
|
|
8666
8688
|
}
|
|
8667
8689
|
o += t.key + "-" + a.name;
|
|
8668
8690
|
var c = {};
|
|
8669
|
-
for (var
|
|
8670
|
-
s2.call(e,
|
|
8691
|
+
for (var u in e)
|
|
8692
|
+
s2.call(e, u) && u !== "css" && u !== Bs && (process.env.NODE_ENV === "production" || u !== Ws) && (c[u] = e[u]);
|
|
8671
8693
|
return c.ref = n, c.className = o, /* @__PURE__ */ N.createElement(N.Fragment, null, /* @__PURE__ */ N.createElement(l2, {
|
|
8672
8694
|
cache: t,
|
|
8673
8695
|
serialized: a,
|
|
@@ -8891,16 +8913,16 @@ var p2 = function(t) {
|
|
|
8891
8913
|
var n = !1, r = [], i = function() {
|
|
8892
8914
|
if (n && process.env.NODE_ENV !== "production")
|
|
8893
8915
|
throw new Error("css can only be used during render");
|
|
8894
|
-
for (var c = arguments.length,
|
|
8895
|
-
d
|
|
8896
|
-
var h = Ft(
|
|
8916
|
+
for (var c = arguments.length, u = new Array(c), d = 0; d < c; d++)
|
|
8917
|
+
u[d] = arguments[d];
|
|
8918
|
+
var h = Ft(u, t.registered);
|
|
8897
8919
|
return r.push(h), Nr(t, h, !1), t.key + "-" + h.name;
|
|
8898
8920
|
}, s = function() {
|
|
8899
8921
|
if (n && process.env.NODE_ENV !== "production")
|
|
8900
8922
|
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(
|
|
8923
|
+
for (var c = arguments.length, u = new Array(c), d = 0; d < c; d++)
|
|
8924
|
+
u[d] = arguments[d];
|
|
8925
|
+
return h2(t.registered, i, f2(u));
|
|
8904
8926
|
}, o = {
|
|
8905
8927
|
css: i,
|
|
8906
8928
|
cx: s,
|
|
@@ -8954,13 +8976,13 @@ You may have forgotten to import it.`);
|
|
|
8954
8976
|
n !== void 0 && (s = n.label, o = n.target);
|
|
8955
8977
|
var a = Ks(t, n, r), l = a || qs(i), c = !l("as");
|
|
8956
8978
|
return function() {
|
|
8957
|
-
var
|
|
8958
|
-
if (s !== void 0 &&
|
|
8959
|
-
|
|
8979
|
+
var u = arguments, d = r && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
|
|
8980
|
+
if (s !== void 0 && d.push("label:" + s + ";"), u[0] == null || u[0].raw === void 0)
|
|
8981
|
+
d.push.apply(d, u);
|
|
8960
8982
|
else {
|
|
8961
|
-
process.env.NODE_ENV !== "production" &&
|
|
8962
|
-
for (var h =
|
|
8963
|
-
process.env.NODE_ENV !== "production" &&
|
|
8983
|
+
process.env.NODE_ENV !== "production" && u[0][0] === void 0 && console.error(Xs), d.push(u[0][0]);
|
|
8984
|
+
for (var h = u.length, p = 1; p < h; p++)
|
|
8985
|
+
process.env.NODE_ENV !== "production" && u[0][p] === void 0 && console.error(Xs), d.push(u[p], u[0][p]);
|
|
8964
8986
|
}
|
|
8965
8987
|
var y = Rr(function(f, m, b) {
|
|
8966
8988
|
var w = c && f.as || i, x = "", S = [], v = f;
|
|
@@ -8971,7 +8993,7 @@ You may have forgotten to import it.`);
|
|
|
8971
8993
|
v.theme = N.useContext(bt);
|
|
8972
8994
|
}
|
|
8973
8995
|
typeof f.className == "string" ? x = Qi(m.registered, S, f.className) : f.className != null && (x = f.className + " ");
|
|
8974
|
-
var C = Ft(
|
|
8996
|
+
var C = Ft(d.concat(S), m.registered, v);
|
|
8975
8997
|
x += m.key + "-" + C.name, o !== void 0 && (x += " " + o);
|
|
8976
8998
|
var T = c && a === void 0 ? qs(w) : l, P = {};
|
|
8977
8999
|
for (var D in f)
|
|
@@ -8983,14 +9005,14 @@ You may have forgotten to import it.`);
|
|
|
8983
9005
|
isStringTag: typeof w == "string"
|
|
8984
9006
|
}), /* @__PURE__ */ N.createElement(w, P));
|
|
8985
9007
|
});
|
|
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 =
|
|
9008
|
+
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
9009
|
value: function() {
|
|
8988
9010
|
return o === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + o;
|
|
8989
9011
|
}
|
|
8990
9012
|
}), y.withComponent = function(f, m) {
|
|
8991
9013
|
return e(f, W({}, n, m, {
|
|
8992
9014
|
shouldForwardProp: Ks(y, m, !0)
|
|
8993
|
-
})).apply(void 0,
|
|
9015
|
+
})).apply(void 0, d);
|
|
8994
9016
|
}, y;
|
|
8995
9017
|
};
|
|
8996
9018
|
}, w2 = [
|
|
@@ -9378,7 +9400,7 @@ function $c(e) {
|
|
|
9378
9400
|
e = Pe(e);
|
|
9379
9401
|
const {
|
|
9380
9402
|
values: t
|
|
9381
|
-
} = e, n = t[0], r = t[1] / 100, i = t[2] / 100, s = r * Math.min(i, 1 - i), o = (c,
|
|
9403
|
+
} = 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
9404
|
let a = "rgb";
|
|
9383
9405
|
const l = [Math.round(o(0) * 255), Math.round(o(8) * 255), Math.round(o(4) * 255)];
|
|
9384
9406
|
return e.type === "hsla" && (a += "a", l.push(t[3])), Wt({
|
|
@@ -9702,8 +9724,8 @@ function fg(e) {
|
|
|
9702
9724
|
mode: t = "light",
|
|
9703
9725
|
contrastThreshold: n = 3,
|
|
9704
9726
|
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
|
|
9727
|
+
} = 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);
|
|
9728
|
+
function d(f) {
|
|
9707
9729
|
const m = Zs(f, Zr.text.primary) >= n ? Zr.text.primary : Qs.text.primary;
|
|
9708
9730
|
if (process.env.NODE_ENV !== "production") {
|
|
9709
9731
|
const b = Zs(f, m);
|
|
@@ -9737,7 +9759,7 @@ const theme1 = createTheme({ palette: {
|
|
|
9737
9759
|
const theme2 = createTheme({ palette: {
|
|
9738
9760
|
primary: { main: green[500] },
|
|
9739
9761
|
} });` : fn(12, m ? ` (${m})` : "", JSON.stringify(f.main)));
|
|
9740
|
-
return ea(f, "light", w, r), ea(f, "dark", x, r), f.contrastText || (f.contrastText =
|
|
9762
|
+
return ea(f, "light", w, r), ea(f, "dark", x, r), f.contrastText || (f.contrastText = d(f.main)), f;
|
|
9741
9763
|
}, p = {
|
|
9742
9764
|
dark: Zr,
|
|
9743
9765
|
light: Qs
|
|
@@ -9768,7 +9790,7 @@ const theme2 = createTheme({ palette: {
|
|
|
9768
9790
|
}),
|
|
9769
9791
|
// The colors used to represent potentially dangerous actions or important messages.
|
|
9770
9792
|
warning: h({
|
|
9771
|
-
color:
|
|
9793
|
+
color: u,
|
|
9772
9794
|
name: "warning"
|
|
9773
9795
|
}),
|
|
9774
9796
|
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
@@ -9787,7 +9809,7 @@ const theme2 = createTheme({ palette: {
|
|
|
9787
9809
|
// the background and the text.
|
|
9788
9810
|
contrastThreshold: n,
|
|
9789
9811
|
// Takes a background color and returns the text color that maximizes the contrast.
|
|
9790
|
-
getContrastText:
|
|
9812
|
+
getContrastText: d,
|
|
9791
9813
|
// Generate a rich color object.
|
|
9792
9814
|
augmentColor: h,
|
|
9793
9815
|
// Used by the functions below to shift a color's luminance by approximately
|
|
@@ -9817,11 +9839,11 @@ function mg(e, t) {
|
|
|
9817
9839
|
// 16px is the default font-size used by browsers.
|
|
9818
9840
|
htmlFontSize: c = 16,
|
|
9819
9841
|
// Apply the CSS properties to all the variants.
|
|
9820
|
-
allVariants:
|
|
9821
|
-
pxToRem:
|
|
9842
|
+
allVariants: u,
|
|
9843
|
+
pxToRem: d
|
|
9822
9844
|
} = n, h = st(n, hg);
|
|
9823
9845
|
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 =
|
|
9846
|
+
const p = i / 14, y = d || ((b) => `${b / c * p}rem`), f = (b, w, x, S, v) => W({
|
|
9825
9847
|
fontFamily: r,
|
|
9826
9848
|
fontWeight: b,
|
|
9827
9849
|
fontSize: y(w),
|
|
@@ -9829,7 +9851,7 @@ function mg(e, t) {
|
|
|
9829
9851
|
lineHeight: x
|
|
9830
9852
|
}, r === na ? {
|
|
9831
9853
|
letterSpacing: `${pg(S / w)}em`
|
|
9832
|
-
} : {}, v,
|
|
9854
|
+
} : {}, v, u), m = {
|
|
9833
9855
|
h1: f(s, 96, 1.167, -1.5),
|
|
9834
9856
|
h2: f(s, 60, 1.2, -0.5),
|
|
9835
9857
|
h3: f(o, 48, 1.167, 0),
|
|
@@ -9913,11 +9935,11 @@ function Tg(e) {
|
|
|
9913
9935
|
delay: l = 0
|
|
9914
9936
|
} = s, c = st(s, wg);
|
|
9915
9937
|
if (process.env.NODE_ENV !== "production") {
|
|
9916
|
-
const
|
|
9917
|
-
!
|
|
9938
|
+
const u = (h) => typeof h == "string", d = (h) => !isNaN(parseFloat(h));
|
|
9939
|
+
!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
9940
|
`)), Object.keys(c).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`);
|
|
9919
9941
|
}
|
|
9920
|
-
return (Array.isArray(i) ? i : [i]).map((
|
|
9942
|
+
return (Array.isArray(i) ? i : [i]).map((u) => `${u} ${typeof o == "string" ? o : ra(o)} ${a} ${typeof l == "string" ? l : ra(l)}`).join(",");
|
|
9921
9943
|
}
|
|
9922
9944
|
}, e, {
|
|
9923
9945
|
easing: t,
|
|
@@ -9953,12 +9975,12 @@ function kg(e = {}, ...t) {
|
|
|
9953
9975
|
transitions: Tg(i),
|
|
9954
9976
|
zIndex: W({}, Pg)
|
|
9955
9977
|
});
|
|
9956
|
-
if (c = Le(c, o), c = t.reduce((
|
|
9957
|
-
const
|
|
9978
|
+
if (c = Le(c, o), c = t.reduce((u, d) => Le(u, d), c), process.env.NODE_ENV !== "production") {
|
|
9979
|
+
const u = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], d = (h, p) => {
|
|
9958
9980
|
let y;
|
|
9959
9981
|
for (y in h) {
|
|
9960
9982
|
const f = h[y];
|
|
9961
|
-
if (
|
|
9983
|
+
if (u.indexOf(y) !== -1 && Object.keys(f).length > 0) {
|
|
9962
9984
|
if (process.env.NODE_ENV !== "production") {
|
|
9963
9985
|
const m = Hi("", y);
|
|
9964
9986
|
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 +9996,12 @@ function kg(e = {}, ...t) {
|
|
|
9974
9996
|
};
|
|
9975
9997
|
Object.keys(c.components).forEach((h) => {
|
|
9976
9998
|
const p = c.components[h].styleOverrides;
|
|
9977
|
-
p && h.indexOf("Mui") === 0 &&
|
|
9999
|
+
p && h.indexOf("Mui") === 0 && d(p, h);
|
|
9978
10000
|
});
|
|
9979
10001
|
}
|
|
9980
|
-
return c.unstable_sxConfig = W({}, Tn, o == null ? void 0 : o.unstable_sxConfig), c.unstable_sx = function(
|
|
10002
|
+
return c.unstable_sxConfig = W({}, Tn, o == null ? void 0 : o.unstable_sxConfig), c.unstable_sx = function(d) {
|
|
9981
10003
|
return Gi({
|
|
9982
|
-
sx:
|
|
10004
|
+
sx: d,
|
|
9983
10005
|
theme: this
|
|
9984
10006
|
});
|
|
9985
10007
|
}, c;
|
|
@@ -10073,8 +10095,8 @@ function Gn(e, t) {
|
|
|
10073
10095
|
let c = !0;
|
|
10074
10096
|
typeof l.props == "function" ? c = l.props((0, Te.default)({
|
|
10075
10097
|
ownerState: n
|
|
10076
|
-
}, r, n)) : Object.keys(l.props).forEach((
|
|
10077
|
-
(n == null ? void 0 : n[
|
|
10098
|
+
}, r, n)) : Object.keys(l.props).forEach((u) => {
|
|
10099
|
+
(n == null ? void 0 : n[u]) !== l.props[u] && r[u] !== l.props[u] && (c = !1);
|
|
10078
10100
|
}), c && (Array.isArray(a) || (a = [a]), a.push(typeof l.style == "function" ? l.style((0, Te.default)({
|
|
10079
10101
|
ownerState: n
|
|
10080
10102
|
}, r, n)) : l.style));
|
|
@@ -10099,16 +10121,16 @@ function t3(e = {}) {
|
|
|
10099
10121
|
const {
|
|
10100
10122
|
name: l,
|
|
10101
10123
|
slot: c,
|
|
10102
|
-
skipVariantsResolver:
|
|
10103
|
-
skipSx:
|
|
10124
|
+
skipVariantsResolver: u,
|
|
10125
|
+
skipSx: d,
|
|
10104
10126
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
10105
10127
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
10106
10128
|
overridesResolver: h = e3(oa(c))
|
|
10107
|
-
} = a, p = (0, xi.default)(a, Kg), y =
|
|
10129
|
+
} = a, p = (0, xi.default)(a, Kg), y = u !== void 0 ? u : (
|
|
10108
10130
|
// TODO v6: remove `Root` in the next major release
|
|
10109
10131
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
10110
10132
|
c && c !== "Root" && c !== "root" || !1
|
|
10111
|
-
), f =
|
|
10133
|
+
), f = d || !1;
|
|
10112
10134
|
let m;
|
|
10113
10135
|
process.env.NODE_ENV !== "production" && l && (m = `${l}-${oa(c || "Root")}`);
|
|
10114
10136
|
let b = Yn;
|
|
@@ -10196,7 +10218,7 @@ const s3 = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
10196
10218
|
theme: e,
|
|
10197
10219
|
ownerState: t
|
|
10198
10220
|
}) => {
|
|
10199
|
-
var n, r, i, s, o, a, l, c,
|
|
10221
|
+
var n, r, i, s, o, a, l, c, u, d, h, p, y;
|
|
10200
10222
|
return {
|
|
10201
10223
|
userSelect: "none",
|
|
10202
10224
|
width: "1em",
|
|
@@ -10213,10 +10235,10 @@ const s3 = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
10213
10235
|
inherit: "inherit",
|
|
10214
10236
|
small: ((s = e.typography) == null || (o = s.pxToRem) == null ? void 0 : o.call(s, 20)) || "1.25rem",
|
|
10215
10237
|
medium: ((a = e.typography) == null || (l = a.pxToRem) == null ? void 0 : l.call(a, 24)) || "1.5rem",
|
|
10216
|
-
large: ((c = e.typography) == null || (
|
|
10238
|
+
large: ((c = e.typography) == null || (u = c.pxToRem) == null ? void 0 : u.call(c, 35)) || "2.1875rem"
|
|
10217
10239
|
}[t.fontSize],
|
|
10218
10240
|
// TODO v5 deprecate, v6 remove for sx
|
|
10219
|
-
color: (
|
|
10241
|
+
color: (d = (h = (e.vars || e).palette) == null || (h = h[t.color]) == null ? void 0 : h.main) != null ? d : {
|
|
10220
10242
|
action: (p = (e.vars || e).palette) == null || (p = p.action) == null ? void 0 : p.active,
|
|
10221
10243
|
disabled: (y = (e.vars || e).palette) == null || (y = y.action) == null ? void 0 : y.disabled,
|
|
10222
10244
|
inherit: void 0
|
|
@@ -10233,32 +10255,32 @@ const s3 = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
10233
10255
|
component: a = "svg",
|
|
10234
10256
|
fontSize: l = "medium",
|
|
10235
10257
|
htmlColor: c,
|
|
10236
|
-
inheritViewBox:
|
|
10237
|
-
titleAccess:
|
|
10258
|
+
inheritViewBox: u = !1,
|
|
10259
|
+
titleAccess: d,
|
|
10238
10260
|
viewBox: h = "0 0 24 24"
|
|
10239
10261
|
} = r, p = st(r, s3), y = /* @__PURE__ */ N.isValidElement(i) && i.type === "svg", f = W({}, r, {
|
|
10240
10262
|
color: o,
|
|
10241
10263
|
component: a,
|
|
10242
10264
|
fontSize: l,
|
|
10243
10265
|
instanceFontSize: t.fontSize,
|
|
10244
|
-
inheritViewBox:
|
|
10266
|
+
inheritViewBox: u,
|
|
10245
10267
|
viewBox: h,
|
|
10246
10268
|
hasSvgAsChild: y
|
|
10247
10269
|
}), m = {};
|
|
10248
|
-
|
|
10270
|
+
u || (m.viewBox = h);
|
|
10249
10271
|
const b = a3(f);
|
|
10250
10272
|
return /* @__PURE__ */ k(l3, W({
|
|
10251
10273
|
as: a,
|
|
10252
10274
|
className: eu(b.root, s),
|
|
10253
10275
|
focusable: "false",
|
|
10254
10276
|
color: c,
|
|
10255
|
-
"aria-hidden":
|
|
10256
|
-
role:
|
|
10277
|
+
"aria-hidden": d ? void 0 : !0,
|
|
10278
|
+
role: d ? "img" : void 0,
|
|
10257
10279
|
ref: n
|
|
10258
10280
|
}, m, p, y && i.props, {
|
|
10259
10281
|
ownerState: f,
|
|
10260
|
-
children: [y ? i.props.children : i,
|
|
10261
|
-
children:
|
|
10282
|
+
children: [y ? i.props.children : i, d ? /* @__PURE__ */ g("title", {
|
|
10283
|
+
children: d
|
|
10262
10284
|
}) : null]
|
|
10263
10285
|
}));
|
|
10264
10286
|
});
|
|
@@ -10421,12 +10443,12 @@ var m3 = 150, g3 = function(t, n) {
|
|
|
10421
10443
|
}, qn = null, Kn = null;
|
|
10422
10444
|
process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (qn = /* @__PURE__ */ new WeakSet(), Kn = /* @__PURE__ */ new WeakSet());
|
|
10423
10445
|
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,
|
|
10446
|
+
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;
|
|
10447
|
+
return t = /* @__PURE__ */ function(d) {
|
|
10448
|
+
tu(h, d);
|
|
10427
10449
|
function h(y) {
|
|
10428
10450
|
var f;
|
|
10429
|
-
return f =
|
|
10451
|
+
return f = d.call(this, y) || this, f._instanceProps = l(f.props, aa(f)), f._outerRef = void 0, f._resetIsScrollingTimeoutId = null, f.state = {
|
|
10430
10452
|
instance: aa(f),
|
|
10431
10453
|
isScrolling: !1,
|
|
10432
10454
|
scrollDirection: "forward",
|
|
@@ -10512,7 +10534,7 @@ function y3(e) {
|
|
|
10512
10534
|
}, f;
|
|
10513
10535
|
}
|
|
10514
10536
|
h.getDerivedStateFromProps = function(f, m) {
|
|
10515
|
-
return v3(f, m),
|
|
10537
|
+
return v3(f, m), u(f), null;
|
|
10516
10538
|
};
|
|
10517
10539
|
var p = h.prototype;
|
|
10518
10540
|
return p.scrollTo = function(f) {
|
|
@@ -10628,14 +10650,14 @@ function y3(e) {
|
|
|
10628
10650
|
}, t;
|
|
10629
10651
|
}
|
|
10630
10652
|
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,
|
|
10653
|
+
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
10654
|
if (process.env.NODE_ENV !== "production") {
|
|
10633
|
-
(a != null || l != null) && Kn && !Kn.has(
|
|
10634
|
-
var
|
|
10655
|
+
(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."));
|
|
10656
|
+
var d = i === "horizontal" || o === "horizontal";
|
|
10635
10657
|
switch (i) {
|
|
10636
10658
|
case "horizontal":
|
|
10637
10659
|
case "vertical":
|
|
10638
|
-
qn && !qn.has(
|
|
10660
|
+
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
10661
|
break;
|
|
10640
10662
|
case "ltr":
|
|
10641
10663
|
case "rtl":
|
|
@@ -10652,9 +10674,9 @@ var v3 = function(t, n) {
|
|
|
10652
10674
|
}
|
|
10653
10675
|
if (r == null)
|
|
10654
10676
|
throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
|
|
10655
|
-
if (
|
|
10677
|
+
if (d && typeof c != "number")
|
|
10656
10678
|
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 (!
|
|
10679
|
+
if (!d && typeof s != "number")
|
|
10658
10680
|
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
10681
|
}
|
|
10660
10682
|
}, b3 = 50, Rt = function(t, n, r) {
|
|
@@ -10665,12 +10687,12 @@ var v3 = function(t, n) {
|
|
|
10665
10687
|
var c = o[a];
|
|
10666
10688
|
l = c.offset + c.size;
|
|
10667
10689
|
}
|
|
10668
|
-
for (var
|
|
10669
|
-
var
|
|
10670
|
-
o[
|
|
10690
|
+
for (var u = a + 1; u <= n; u++) {
|
|
10691
|
+
var d = s(u);
|
|
10692
|
+
o[u] = {
|
|
10671
10693
|
offset: l,
|
|
10672
|
-
size:
|
|
10673
|
-
}, l +=
|
|
10694
|
+
size: d
|
|
10695
|
+
}, l += d;
|
|
10674
10696
|
}
|
|
10675
10697
|
r.lastMeasuredIndex = n;
|
|
10676
10698
|
}
|
|
@@ -10696,8 +10718,8 @@ var v3 = function(t, n) {
|
|
|
10696
10718
|
var l = i[o];
|
|
10697
10719
|
a = l.offset + l.size;
|
|
10698
10720
|
}
|
|
10699
|
-
var c = r - o - 1,
|
|
10700
|
-
return a +
|
|
10721
|
+
var c = r - o - 1, u = c * s;
|
|
10722
|
+
return a + u;
|
|
10701
10723
|
}, S3 = /* @__PURE__ */ y3({
|
|
10702
10724
|
getItemOffset: function(t, n, r) {
|
|
10703
10725
|
return Rt(t, n, r).offset;
|
|
@@ -10707,7 +10729,7 @@ var v3 = function(t, n) {
|
|
|
10707
10729
|
},
|
|
10708
10730
|
getEstimatedTotalSize: ha,
|
|
10709
10731
|
getOffsetForIndexAndAlignment: function(t, n, r, i, s, o) {
|
|
10710
|
-
var a = t.direction, l = t.height, c = t.layout,
|
|
10732
|
+
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
10733
|
switch (r === "smart" && (i >= m - h && i <= f + h ? r = "auto" : r = "center"), r) {
|
|
10712
10734
|
case "start":
|
|
10713
10735
|
return f;
|
|
@@ -10724,7 +10746,7 @@ var v3 = function(t, n) {
|
|
|
10724
10746
|
return x3(t, r, n);
|
|
10725
10747
|
},
|
|
10726
10748
|
getStopIndexForStartIndex: function(t, n, r, i) {
|
|
10727
|
-
for (var s = t.direction, o = t.height, a = t.itemCount, l = t.layout, c = t.width,
|
|
10749
|
+
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
10750
|
f++, y += Rt(t, f, i).size;
|
|
10729
10751
|
return f;
|
|
10730
10752
|
},
|
|
@@ -10786,16 +10808,16 @@ const fr = 37, E3 = (e, t) => {
|
|
|
10786
10808
|
return document.body.removeChild(o), a > 21 ? fr + 21 : fr;
|
|
10787
10809
|
};
|
|
10788
10810
|
function q3(e) {
|
|
10789
|
-
const [t, n] = K(!1), [r, i] = K(""), [s, o] = K(""), [a, l] = K(!1), { isRequired: c = !1 } = e,
|
|
10811
|
+
const [t, n] = K(!1), [r, i] = K(""), [s, o] = K(""), [a, l] = K(!1), { isRequired: c = !1 } = e, u = Qt(
|
|
10790
10812
|
co.debounce((S) => {
|
|
10791
10813
|
var v;
|
|
10792
10814
|
(v = e.handleChangeSearch) == null || v.call(e, S);
|
|
10793
10815
|
}, 300),
|
|
10794
10816
|
[e.handleChangeSearch]
|
|
10795
|
-
),
|
|
10817
|
+
), d = () => {
|
|
10796
10818
|
n(!t);
|
|
10797
10819
|
}, h = () => {
|
|
10798
|
-
n(!1), o(""),
|
|
10820
|
+
n(!1), o(""), u("");
|
|
10799
10821
|
};
|
|
10800
10822
|
be(() => {
|
|
10801
10823
|
i(e.value ? e.getOptionLabel(e.value) : "");
|
|
@@ -10805,7 +10827,7 @@ function q3(e) {
|
|
|
10805
10827
|
l(e.searchLoading);
|
|
10806
10828
|
}, [e.paging.rows, e.searchLoading]);
|
|
10807
10829
|
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),
|
|
10830
|
+
i(S.target.value), t && (o(S.target.value), u(S.target.value), l(!0));
|
|
10809
10831
|
}, x = ze(null);
|
|
10810
10832
|
return /* @__PURE__ */ g(
|
|
10811
10833
|
vu,
|
|
@@ -10855,7 +10877,7 @@ function q3(e) {
|
|
|
10855
10877
|
padding: "1px"
|
|
10856
10878
|
},
|
|
10857
10879
|
onClick: (S) => {
|
|
10858
|
-
S.preventDefault(), S.stopPropagation(),
|
|
10880
|
+
S.preventDefault(), S.stopPropagation(), d();
|
|
10859
10881
|
},
|
|
10860
10882
|
disabled: e.loading || e.disabled || e.readOnly,
|
|
10861
10883
|
children: e.loading ? /* @__PURE__ */ g(xu, { size: "16px" }) : /* @__PURE__ */ g(
|
|
@@ -11011,7 +11033,7 @@ function q3(e) {
|
|
|
11011
11033
|
);
|
|
11012
11034
|
}
|
|
11013
11035
|
function K3(e) {
|
|
11014
|
-
var
|
|
11036
|
+
var u;
|
|
11015
11037
|
const { listProps: t } = e, [n, r] = K({
|
|
11016
11038
|
initLoading: !e.disabled,
|
|
11017
11039
|
searchLoading: !1,
|
|
@@ -11019,17 +11041,17 @@ function K3(e) {
|
|
|
11019
11041
|
isNextPageLoading: !1,
|
|
11020
11042
|
paging: {
|
|
11021
11043
|
page: 1,
|
|
11022
|
-
pageSize: ((
|
|
11044
|
+
pageSize: ((u = e.listProps) == null ? void 0 : u.pageSize) || 20,
|
|
11023
11045
|
rows: [],
|
|
11024
11046
|
total: 0,
|
|
11025
11047
|
totalPages: 1
|
|
11026
11048
|
}
|
|
11027
|
-
}), i = async (
|
|
11049
|
+
}), i = async (d, h) => {
|
|
11028
11050
|
var p, y;
|
|
11029
11051
|
if (e.list)
|
|
11030
11052
|
r(() => {
|
|
11031
11053
|
var b;
|
|
11032
|
-
const f = ((b =
|
|
11054
|
+
const f = ((b = d == null ? void 0 : d.search) == null ? void 0 : b.content) || "";
|
|
11033
11055
|
return {
|
|
11034
11056
|
hasNextPage: !1,
|
|
11035
11057
|
isNextPageLoading: !1,
|
|
@@ -11054,13 +11076,13 @@ function K3(e) {
|
|
|
11054
11076
|
pageSize: 20,
|
|
11055
11077
|
filter: {
|
|
11056
11078
|
...t == null ? void 0 : t.filter,
|
|
11057
|
-
...
|
|
11079
|
+
...d == null ? void 0 : d.filter
|
|
11058
11080
|
},
|
|
11059
11081
|
...uo.omit(t, "filter"),
|
|
11060
|
-
...uo.omit(
|
|
11082
|
+
...uo.omit(d, "filter"),
|
|
11061
11083
|
search: {
|
|
11062
11084
|
fields: ((p = t == null ? void 0 : t.search) == null ? void 0 : p.fields) ?? [],
|
|
11063
|
-
content: ((y =
|
|
11085
|
+
content: ((y = d == null ? void 0 : d.search) == null ? void 0 : y.content) ?? ""
|
|
11064
11086
|
}
|
|
11065
11087
|
};
|
|
11066
11088
|
h && (f.filter = {}, f.search && (f.search.content = ""), f.page = 1);
|
|
@@ -11071,26 +11093,26 @@ function K3(e) {
|
|
|
11071
11093
|
isNextPageLoading: !1,
|
|
11072
11094
|
paging: {
|
|
11073
11095
|
...m,
|
|
11074
|
-
rows: (
|
|
11096
|
+
rows: (d == null ? void 0 : d.page) === 1 ? m.rows : b.paging.rows.concat(m.rows)
|
|
11075
11097
|
},
|
|
11076
11098
|
hasNextPage: m.page < m.totalPages
|
|
11077
11099
|
}));
|
|
11078
11100
|
} catch {
|
|
11079
11101
|
}
|
|
11080
11102
|
}
|
|
11081
|
-
}, s = () => (r((
|
|
11103
|
+
}, s = () => (r((d) => ({ ...d, initLoading: !0 })), i(void 0, !0)), o = (d) => (r((h) => ({ ...h, initLoading: !0 })), i(d)), a = (d) => {
|
|
11082
11104
|
i({
|
|
11083
11105
|
page: n.paging.page + 1,
|
|
11084
|
-
search: { content:
|
|
11106
|
+
search: { content: d }
|
|
11085
11107
|
});
|
|
11086
|
-
}, l = (
|
|
11087
|
-
r((h) => ({ ...h, searchLoading: !0 })), i({ page: 1, search: { content:
|
|
11108
|
+
}, l = (d) => {
|
|
11109
|
+
r((h) => ({ ...h, searchLoading: !0 })), i({ page: 1, search: { content: d } });
|
|
11088
11110
|
};
|
|
11089
11111
|
be(() => {
|
|
11090
|
-
e.disabled || (r((
|
|
11112
|
+
e.disabled || (r((d) => ({ ...d, initLoading: !0 })), i({ page: 1 }));
|
|
11091
11113
|
}, [...e.dependencyList || []]);
|
|
11092
11114
|
const c = () => {
|
|
11093
|
-
r((
|
|
11115
|
+
r((d) => ({ ...d, initLoading: !d.initLoading }));
|
|
11094
11116
|
};
|
|
11095
11117
|
return {
|
|
11096
11118
|
...e,
|
|
@@ -11220,7 +11242,7 @@ function X3(e) {
|
|
|
11220
11242
|
},
|
|
11221
11243
|
onApply: (l, c) => {
|
|
11222
11244
|
var f, m, b;
|
|
11223
|
-
const
|
|
11245
|
+
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
11246
|
console.log("onApply"), n({ startDate: p, endDate: y }), (b = e.onChange) == null || b.call(e, { startDate: p, endDate: y });
|
|
11225
11247
|
},
|
|
11226
11248
|
children: /* @__PURE__ */ g(
|
|
@@ -11351,12 +11373,12 @@ const _3 = ["granted", "denied"], P3 = (e) => {
|
|
|
11351
11373
|
message: (a = s == null ? void 0 : s.data) == null ? void 0 : a.message,
|
|
11352
11374
|
context: (l = s == null ? void 0 : s.data) == null ? void 0 : l.context
|
|
11353
11375
|
}), r((c) => {
|
|
11354
|
-
var
|
|
11376
|
+
var u;
|
|
11355
11377
|
return {
|
|
11356
11378
|
...c,
|
|
11357
11379
|
unread: {
|
|
11358
11380
|
...c.unread,
|
|
11359
|
-
total: ((
|
|
11381
|
+
total: ((u = c.unread) == null ? void 0 : u.total) + 1
|
|
11360
11382
|
}
|
|
11361
11383
|
};
|
|
11362
11384
|
});
|