@arbocollab/arbo-plugin-item-table 0.1.183 → 0.1.185
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/CHANGELOG.md +34 -0
- package/lib/es/index.es.js +639 -631
- package/lib/style.css +1 -1
- package/lib/umd/index.umd.js +19 -19
- package/package.json +1 -1
package/lib/es/index.es.js
CHANGED
|
@@ -3513,27 +3513,27 @@ function qU(e, t) {
|
|
|
3513
3513
|
nextSibling: h,
|
|
3514
3514
|
setScopeId: f = vo,
|
|
3515
3515
|
insertStaticContent: p
|
|
3516
|
-
} = e, g = (G, Y, de,
|
|
3516
|
+
} = e, g = (G, Y, de, Ae = null, xe = null, Ve = null, ye = void 0, L = null, j = J.env.NODE_ENV !== "production" && mi ? !1 : !!Y.dynamicChildren) => {
|
|
3517
3517
|
if (G === Y)
|
|
3518
3518
|
return;
|
|
3519
|
-
G && !Kl(G, Y) && (
|
|
3519
|
+
G && !Kl(G, Y) && (Ae = re(G), z(G, xe, Ve, !0), G = null), Y.patchFlag === -2 && (j = !1, Y.dynamicChildren = null);
|
|
3520
3520
|
const { type: le, ref: Ge, shapeFlag: be } = Y;
|
|
3521
3521
|
switch (le) {
|
|
3522
3522
|
case gl:
|
|
3523
|
-
v(G, Y, de,
|
|
3523
|
+
v(G, Y, de, Ae);
|
|
3524
3524
|
break;
|
|
3525
3525
|
case Jn:
|
|
3526
|
-
w(G, Y, de,
|
|
3526
|
+
w(G, Y, de, Ae);
|
|
3527
3527
|
break;
|
|
3528
3528
|
case Yh:
|
|
3529
|
-
G == null ? S(Y, de,
|
|
3529
|
+
G == null ? S(Y, de, Ae, ye) : J.env.NODE_ENV !== "production" && b(G, Y, de, ye);
|
|
3530
3530
|
break;
|
|
3531
3531
|
case It:
|
|
3532
3532
|
O(
|
|
3533
3533
|
G,
|
|
3534
3534
|
Y,
|
|
3535
3535
|
de,
|
|
3536
|
-
|
|
3536
|
+
Ae,
|
|
3537
3537
|
xe,
|
|
3538
3538
|
Ve,
|
|
3539
3539
|
ye,
|
|
@@ -3546,7 +3546,7 @@ function qU(e, t) {
|
|
|
3546
3546
|
G,
|
|
3547
3547
|
Y,
|
|
3548
3548
|
de,
|
|
3549
|
-
|
|
3549
|
+
Ae,
|
|
3550
3550
|
xe,
|
|
3551
3551
|
Ve,
|
|
3552
3552
|
ye,
|
|
@@ -3556,7 +3556,7 @@ function qU(e, t) {
|
|
|
3556
3556
|
G,
|
|
3557
3557
|
Y,
|
|
3558
3558
|
de,
|
|
3559
|
-
|
|
3559
|
+
Ae,
|
|
3560
3560
|
xe,
|
|
3561
3561
|
Ve,
|
|
3562
3562
|
ye,
|
|
@@ -3566,7 +3566,7 @@ function qU(e, t) {
|
|
|
3566
3566
|
G,
|
|
3567
3567
|
Y,
|
|
3568
3568
|
de,
|
|
3569
|
-
|
|
3569
|
+
Ae,
|
|
3570
3570
|
xe,
|
|
3571
3571
|
Ve,
|
|
3572
3572
|
ye,
|
|
@@ -3576,59 +3576,59 @@ function qU(e, t) {
|
|
|
3576
3576
|
) : J.env.NODE_ENV !== "production" && ot("Invalid VNode type:", le, `(${typeof le})`);
|
|
3577
3577
|
}
|
|
3578
3578
|
Ge != null && xe ? qh(Ge, G && G.ref, Ve, Y || G, !Y) : Ge == null && G && G.ref != null && qh(G.ref, null, Ve, G, !0);
|
|
3579
|
-
}, v = (G, Y, de,
|
|
3579
|
+
}, v = (G, Y, de, Ae) => {
|
|
3580
3580
|
if (G == null)
|
|
3581
3581
|
o(
|
|
3582
3582
|
Y.el = a(Y.children),
|
|
3583
3583
|
de,
|
|
3584
|
-
|
|
3584
|
+
Ae
|
|
3585
3585
|
);
|
|
3586
3586
|
else {
|
|
3587
3587
|
const xe = Y.el = G.el;
|
|
3588
3588
|
Y.children !== G.children && c(xe, Y.children);
|
|
3589
3589
|
}
|
|
3590
|
-
}, w = (G, Y, de,
|
|
3590
|
+
}, w = (G, Y, de, Ae) => {
|
|
3591
3591
|
G == null ? o(
|
|
3592
3592
|
Y.el = l(Y.children || ""),
|
|
3593
3593
|
de,
|
|
3594
|
-
|
|
3594
|
+
Ae
|
|
3595
3595
|
) : Y.el = G.el;
|
|
3596
|
-
}, S = (G, Y, de,
|
|
3596
|
+
}, S = (G, Y, de, Ae) => {
|
|
3597
3597
|
[G.el, G.anchor] = p(
|
|
3598
3598
|
G.children,
|
|
3599
3599
|
Y,
|
|
3600
3600
|
de,
|
|
3601
|
-
|
|
3601
|
+
Ae,
|
|
3602
3602
|
G.el,
|
|
3603
3603
|
G.anchor
|
|
3604
3604
|
);
|
|
3605
|
-
}, b = (G, Y, de,
|
|
3605
|
+
}, b = (G, Y, de, Ae) => {
|
|
3606
3606
|
if (Y.children !== G.children) {
|
|
3607
3607
|
const xe = h(G.anchor);
|
|
3608
3608
|
_(G), [Y.el, Y.anchor] = p(
|
|
3609
3609
|
Y.children,
|
|
3610
3610
|
de,
|
|
3611
3611
|
xe,
|
|
3612
|
-
|
|
3612
|
+
Ae
|
|
3613
3613
|
);
|
|
3614
3614
|
} else
|
|
3615
3615
|
Y.el = G.el, Y.anchor = G.anchor;
|
|
3616
|
-
}, C = ({ el: G, anchor: Y }, de,
|
|
3616
|
+
}, C = ({ el: G, anchor: Y }, de, Ae) => {
|
|
3617
3617
|
let xe;
|
|
3618
3618
|
for (; G && G !== Y; )
|
|
3619
|
-
xe = h(G), o(G, de,
|
|
3620
|
-
o(Y, de,
|
|
3619
|
+
xe = h(G), o(G, de, Ae), G = xe;
|
|
3620
|
+
o(Y, de, Ae);
|
|
3621
3621
|
}, _ = ({ el: G, anchor: Y }) => {
|
|
3622
3622
|
let de;
|
|
3623
3623
|
for (; G && G !== Y; )
|
|
3624
3624
|
de = h(G), s(G), G = de;
|
|
3625
3625
|
s(Y);
|
|
3626
|
-
}, E = (G, Y, de,
|
|
3626
|
+
}, E = (G, Y, de, Ae, xe, Ve, ye, L, j) => {
|
|
3627
3627
|
if (Y.type === "svg" ? ye = "svg" : Y.type === "math" && (ye = "mathml"), G == null)
|
|
3628
3628
|
I(
|
|
3629
3629
|
Y,
|
|
3630
3630
|
de,
|
|
3631
|
-
|
|
3631
|
+
Ae,
|
|
3632
3632
|
xe,
|
|
3633
3633
|
Ve,
|
|
3634
3634
|
ye,
|
|
@@ -3651,7 +3651,7 @@ function qU(e, t) {
|
|
|
3651
3651
|
le && le._endPatch();
|
|
3652
3652
|
}
|
|
3653
3653
|
}
|
|
3654
|
-
}, I = (G, Y, de,
|
|
3654
|
+
}, I = (G, Y, de, Ae, xe, Ve, ye, L) => {
|
|
3655
3655
|
let j, le;
|
|
3656
3656
|
const { props: Ge, shapeFlag: be, transition: ze, dirs: qe } = G;
|
|
3657
3657
|
if (j = G.el = i(
|
|
@@ -3663,25 +3663,25 @@ function qU(e, t) {
|
|
|
3663
3663
|
G.children,
|
|
3664
3664
|
j,
|
|
3665
3665
|
null,
|
|
3666
|
-
|
|
3666
|
+
Ae,
|
|
3667
3667
|
xe,
|
|
3668
3668
|
Yw(G, Ve),
|
|
3669
3669
|
ye,
|
|
3670
3670
|
L
|
|
3671
|
-
), qe && xl(G, null,
|
|
3671
|
+
), qe && xl(G, null, Ae, "created"), T(j, G, G.scopeId, ye, Ae), Ge) {
|
|
3672
3672
|
for (const Me in Ge)
|
|
3673
|
-
Me !== "value" && !zh(Me) && r(j, Me, null, Ge[Me], Ve,
|
|
3674
|
-
"value" in Ge && r(j, "value", null, Ge.value, Ve), (le = Ge.onVnodeBeforeMount) && Qr(le,
|
|
3673
|
+
Me !== "value" && !zh(Me) && r(j, Me, null, Ge[Me], Ve, Ae);
|
|
3674
|
+
"value" in Ge && r(j, "value", null, Ge.value, Ve), (le = Ge.onVnodeBeforeMount) && Qr(le, Ae, G);
|
|
3675
3675
|
}
|
|
3676
|
-
J.env.NODE_ENV !== "production" && (zm(j, "__vnode", G, !0), zm(j, "__vueParentComponent",
|
|
3676
|
+
J.env.NODE_ENV !== "production" && (zm(j, "__vnode", G, !0), zm(j, "__vueParentComponent", Ae, !0)), qe && xl(G, null, Ae, "beforeMount");
|
|
3677
3677
|
const Ee = YU(xe, ze);
|
|
3678
3678
|
Ee && ze.beforeEnter(j), o(j, Y, de), ((le = Ge && Ge.onVnodeMounted) || Ee || qe) && Ds(() => {
|
|
3679
|
-
le && Qr(le,
|
|
3679
|
+
le && Qr(le, Ae, G), Ee && ze.enter(j), qe && xl(G, null, Ae, "mounted");
|
|
3680
3680
|
}, xe);
|
|
3681
|
-
}, T = (G, Y, de,
|
|
3682
|
-
if (de && f(G, de),
|
|
3683
|
-
for (let Ve = 0; Ve <
|
|
3684
|
-
f(G,
|
|
3681
|
+
}, T = (G, Y, de, Ae, xe) => {
|
|
3682
|
+
if (de && f(G, de), Ae)
|
|
3683
|
+
for (let Ve = 0; Ve < Ae.length; Ve++)
|
|
3684
|
+
f(G, Ae[Ve]);
|
|
3685
3685
|
if (xe) {
|
|
3686
3686
|
let Ve = xe.subTree;
|
|
3687
3687
|
if (J.env.NODE_ENV !== "production" && Ve.patchFlag > 0 && Ve.patchFlag & 2048 && (Ve = u0(Ve.children) || Ve), Y === Ve || bA(Ve.type) && (Ve.ssContent === Y || Ve.ssFallback === Y)) {
|
|
@@ -3695,7 +3695,7 @@ function qU(e, t) {
|
|
|
3695
3695
|
);
|
|
3696
3696
|
}
|
|
3697
3697
|
}
|
|
3698
|
-
}, P = (G, Y, de,
|
|
3698
|
+
}, P = (G, Y, de, Ae, xe, Ve, ye, L, j = 0) => {
|
|
3699
3699
|
for (let le = j; le < G.length; le++) {
|
|
3700
3700
|
const Ge = G[le] = L ? Wa(G[le]) : _r(G[le]);
|
|
3701
3701
|
g(
|
|
@@ -3703,14 +3703,14 @@ function qU(e, t) {
|
|
|
3703
3703
|
Ge,
|
|
3704
3704
|
Y,
|
|
3705
3705
|
de,
|
|
3706
|
-
|
|
3706
|
+
Ae,
|
|
3707
3707
|
xe,
|
|
3708
3708
|
Ve,
|
|
3709
3709
|
ye,
|
|
3710
3710
|
L
|
|
3711
3711
|
);
|
|
3712
3712
|
}
|
|
3713
|
-
}, M = (G, Y, de,
|
|
3713
|
+
}, M = (G, Y, de, Ae, xe, Ve, ye) => {
|
|
3714
3714
|
const L = Y.el = G.el;
|
|
3715
3715
|
J.env.NODE_ENV !== "production" && (L.__vnode = Y);
|
|
3716
3716
|
let { patchFlag: j, dynamicChildren: le, dirs: Ge } = Y;
|
|
@@ -3722,7 +3722,7 @@ function qU(e, t) {
|
|
|
3722
3722
|
le,
|
|
3723
3723
|
L,
|
|
3724
3724
|
de,
|
|
3725
|
-
|
|
3725
|
+
Ae,
|
|
3726
3726
|
Yw(Y, xe),
|
|
3727
3727
|
Ve
|
|
3728
3728
|
), J.env.NODE_ENV !== "production" && om(G, Y)) : ye || ae(
|
|
@@ -3731,7 +3731,7 @@ function qU(e, t) {
|
|
|
3731
3731
|
L,
|
|
3732
3732
|
null,
|
|
3733
3733
|
de,
|
|
3734
|
-
|
|
3734
|
+
Ae,
|
|
3735
3735
|
Yw(Y, xe),
|
|
3736
3736
|
Ve,
|
|
3737
3737
|
!1
|
|
@@ -3749,8 +3749,8 @@ function qU(e, t) {
|
|
|
3749
3749
|
} else !ye && le == null && F(L, be, ze, de, xe);
|
|
3750
3750
|
((qe = ze.onVnodeUpdated) || Ge) && Ds(() => {
|
|
3751
3751
|
qe && Qr(qe, de, Y, G), Ge && xl(Y, G, de, "updated");
|
|
3752
|
-
},
|
|
3753
|
-
}, D = (G, Y, de,
|
|
3752
|
+
}, Ae);
|
|
3753
|
+
}, D = (G, Y, de, Ae, xe, Ve, ye) => {
|
|
3754
3754
|
for (let L = 0; L < Y.length; L++) {
|
|
3755
3755
|
const j = G[L], le = Y[L], Ge = (
|
|
3756
3756
|
// oldVNode may be an errored async setup() component inside Suspense
|
|
@@ -3771,14 +3771,14 @@ function qU(e, t) {
|
|
|
3771
3771
|
le,
|
|
3772
3772
|
Ge,
|
|
3773
3773
|
null,
|
|
3774
|
-
|
|
3774
|
+
Ae,
|
|
3775
3775
|
xe,
|
|
3776
3776
|
Ve,
|
|
3777
3777
|
ye,
|
|
3778
3778
|
!0
|
|
3779
3779
|
);
|
|
3780
3780
|
}
|
|
3781
|
-
}, F = (G, Y, de,
|
|
3781
|
+
}, F = (G, Y, de, Ae, xe) => {
|
|
3782
3782
|
if (Y !== de) {
|
|
3783
3783
|
if (Y !== sn)
|
|
3784
3784
|
for (const Ve in Y)
|
|
@@ -3788,20 +3788,20 @@ function qU(e, t) {
|
|
|
3788
3788
|
Y[Ve],
|
|
3789
3789
|
null,
|
|
3790
3790
|
xe,
|
|
3791
|
-
|
|
3791
|
+
Ae
|
|
3792
3792
|
);
|
|
3793
3793
|
for (const Ve in de) {
|
|
3794
3794
|
if (zh(Ve)) continue;
|
|
3795
3795
|
const ye = de[Ve], L = Y[Ve];
|
|
3796
|
-
ye !== L && Ve !== "value" && r(G, Ve, L, ye, xe,
|
|
3796
|
+
ye !== L && Ve !== "value" && r(G, Ve, L, ye, xe, Ae);
|
|
3797
3797
|
}
|
|
3798
3798
|
"value" in de && r(G, "value", Y.value, de.value, xe);
|
|
3799
3799
|
}
|
|
3800
|
-
}, O = (G, Y, de,
|
|
3800
|
+
}, O = (G, Y, de, Ae, xe, Ve, ye, L, j) => {
|
|
3801
3801
|
const le = Y.el = G ? G.el : a(""), Ge = Y.anchor = G ? G.anchor : a("");
|
|
3802
3802
|
let { patchFlag: be, dynamicChildren: ze, slotScopeIds: qe } = Y;
|
|
3803
3803
|
J.env.NODE_ENV !== "production" && // #5523 dev root fragment may inherit directives
|
|
3804
|
-
(mi || be & 2048) && (be = 0, j = !1, ze = null), qe && (L = L ? L.concat(qe) : qe), G == null ? (o(le, de,
|
|
3804
|
+
(mi || be & 2048) && (be = 0, j = !1, ze = null), qe && (L = L ? L.concat(qe) : qe), G == null ? (o(le, de, Ae), o(Ge, de, Ae), P(
|
|
3805
3805
|
// #10007
|
|
3806
3806
|
// such fragment like `<></>` will be compiled into
|
|
3807
3807
|
// a fragment which doesn't have a children.
|
|
@@ -3846,26 +3846,26 @@ function qU(e, t) {
|
|
|
3846
3846
|
L,
|
|
3847
3847
|
j
|
|
3848
3848
|
);
|
|
3849
|
-
}, k = (G, Y, de,
|
|
3849
|
+
}, k = (G, Y, de, Ae, xe, Ve, ye, L, j) => {
|
|
3850
3850
|
Y.slotScopeIds = L, G == null ? Y.shapeFlag & 512 ? xe.ctx.activate(
|
|
3851
3851
|
Y,
|
|
3852
3852
|
de,
|
|
3853
|
-
|
|
3853
|
+
Ae,
|
|
3854
3854
|
ye,
|
|
3855
3855
|
j
|
|
3856
3856
|
) : x(
|
|
3857
3857
|
Y,
|
|
3858
3858
|
de,
|
|
3859
|
-
|
|
3859
|
+
Ae,
|
|
3860
3860
|
xe,
|
|
3861
3861
|
Ve,
|
|
3862
3862
|
ye,
|
|
3863
3863
|
j
|
|
3864
3864
|
) : $(G, Y, j);
|
|
3865
|
-
}, x = (G, Y, de,
|
|
3865
|
+
}, x = (G, Y, de, Ae, xe, Ve, ye) => {
|
|
3866
3866
|
const L = G.component = oW(
|
|
3867
3867
|
G,
|
|
3868
|
-
|
|
3868
|
+
Ae,
|
|
3869
3869
|
xe
|
|
3870
3870
|
);
|
|
3871
3871
|
if (J.env.NODE_ENV !== "production" && L.type.__hmrId && VG(L), J.env.NODE_ENV !== "production" && (em(G), eu(L, "mount")), fp(G) && (L.ctx.renderer = oe), J.env.NODE_ENV !== "production" && eu(L, "init"), rW(L, !1, ye), J.env.NODE_ENV !== "production" && tu(L, "init"), J.env.NODE_ENV !== "production" && mi && (G.el = null), L.asyncDep) {
|
|
@@ -3885,16 +3885,16 @@ function qU(e, t) {
|
|
|
3885
3885
|
);
|
|
3886
3886
|
J.env.NODE_ENV !== "production" && (tm(), tu(L, "mount"));
|
|
3887
3887
|
}, $ = (G, Y, de) => {
|
|
3888
|
-
const
|
|
3888
|
+
const Ae = Y.component = G.component;
|
|
3889
3889
|
if (PU(G, Y, de))
|
|
3890
|
-
if (
|
|
3891
|
-
J.env.NODE_ENV !== "production" && em(Y), Q(
|
|
3890
|
+
if (Ae.asyncDep && !Ae.asyncResolved) {
|
|
3891
|
+
J.env.NODE_ENV !== "production" && em(Y), Q(Ae, Y, de), J.env.NODE_ENV !== "production" && tm();
|
|
3892
3892
|
return;
|
|
3893
3893
|
} else
|
|
3894
|
-
|
|
3894
|
+
Ae.next = Y, Ae.update();
|
|
3895
3895
|
else
|
|
3896
|
-
Y.el = G.el,
|
|
3897
|
-
}, W = (G, Y, de,
|
|
3896
|
+
Y.el = G.el, Ae.vnode = Y;
|
|
3897
|
+
}, W = (G, Y, de, Ae, xe, Ve, ye) => {
|
|
3898
3898
|
const L = () => {
|
|
3899
3899
|
if (G.isMounted) {
|
|
3900
3900
|
let { next: be, bu: ze, u: qe, parent: Ee, vnode: Me } = G;
|
|
@@ -3938,7 +3938,7 @@ function qU(e, t) {
|
|
|
3938
3938
|
null,
|
|
3939
3939
|
Wt,
|
|
3940
3940
|
de,
|
|
3941
|
-
|
|
3941
|
+
Ae,
|
|
3942
3942
|
G,
|
|
3943
3943
|
xe,
|
|
3944
3944
|
Ve
|
|
@@ -3951,7 +3951,7 @@ function qU(e, t) {
|
|
|
3951
3951
|
xe
|
|
3952
3952
|
);
|
|
3953
3953
|
}
|
|
3954
|
-
(Y.shapeFlag & 256 || vt && Lu(vt.vnode) && vt.vnode.shapeFlag & 256) && G.a && Ds(G.a, xe), G.isMounted = !0, J.env.NODE_ENV !== "production" && WG(G), Y = de =
|
|
3954
|
+
(Y.shapeFlag & 256 || vt && Lu(vt.vnode) && vt.vnode.shapeFlag & 256) && G.a && Ds(G.a, xe), G.isMounted = !0, J.env.NODE_ENV !== "production" && WG(G), Y = de = Ae = null;
|
|
3955
3955
|
}
|
|
3956
3956
|
};
|
|
3957
3957
|
G.scope.on();
|
|
@@ -3961,9 +3961,9 @@ function qU(e, t) {
|
|
|
3961
3961
|
Ge.i = G, Ge.id = G.uid, j.scheduler = () => gy(Ge), Fl(G, !0), J.env.NODE_ENV !== "production" && (j.onTrack = G.rtc ? (be) => pu(G.rtc, be) : void 0, j.onTrigger = G.rtg ? (be) => pu(G.rtg, be) : void 0), le();
|
|
3962
3962
|
}, Q = (G, Y, de) => {
|
|
3963
3963
|
Y.component = G;
|
|
3964
|
-
const
|
|
3965
|
-
G.vnode = Y, G.next = null, MU(G, Y.props,
|
|
3966
|
-
}, ae = (G, Y, de,
|
|
3964
|
+
const Ae = G.vnode.props;
|
|
3965
|
+
G.vnode = Y, G.next = null, MU(G, Y.props, Ae, de), zU(G, Y.children, de), kr(), rD(G), Ar();
|
|
3966
|
+
}, ae = (G, Y, de, Ae, xe, Ve, ye, L, j = !1) => {
|
|
3967
3967
|
const le = G && G.children, Ge = G ? G.shapeFlag : 0, be = Y.children, { patchFlag: ze, shapeFlag: qe } = Y;
|
|
3968
3968
|
if (ze > 0) {
|
|
3969
3969
|
if (ze & 128) {
|
|
@@ -3971,7 +3971,7 @@ function qU(e, t) {
|
|
|
3971
3971
|
le,
|
|
3972
3972
|
be,
|
|
3973
3973
|
de,
|
|
3974
|
-
|
|
3974
|
+
Ae,
|
|
3975
3975
|
xe,
|
|
3976
3976
|
Ve,
|
|
3977
3977
|
ye,
|
|
@@ -3984,7 +3984,7 @@ function qU(e, t) {
|
|
|
3984
3984
|
le,
|
|
3985
3985
|
be,
|
|
3986
3986
|
de,
|
|
3987
|
-
|
|
3987
|
+
Ae,
|
|
3988
3988
|
xe,
|
|
3989
3989
|
Ve,
|
|
3990
3990
|
ye,
|
|
@@ -3998,7 +3998,7 @@ function qU(e, t) {
|
|
|
3998
3998
|
le,
|
|
3999
3999
|
be,
|
|
4000
4000
|
de,
|
|
4001
|
-
|
|
4001
|
+
Ae,
|
|
4002
4002
|
xe,
|
|
4003
4003
|
Ve,
|
|
4004
4004
|
ye,
|
|
@@ -4007,14 +4007,14 @@ function qU(e, t) {
|
|
|
4007
4007
|
) : we(le, xe, Ve, !0) : (Ge & 8 && u(de, ""), qe & 16 && P(
|
|
4008
4008
|
be,
|
|
4009
4009
|
de,
|
|
4010
|
-
|
|
4010
|
+
Ae,
|
|
4011
4011
|
xe,
|
|
4012
4012
|
Ve,
|
|
4013
4013
|
ye,
|
|
4014
4014
|
L,
|
|
4015
4015
|
j
|
|
4016
4016
|
));
|
|
4017
|
-
}, ee = (G, Y, de,
|
|
4017
|
+
}, ee = (G, Y, de, Ae, xe, Ve, ye, L, j) => {
|
|
4018
4018
|
G = G || Mu, Y = Y || Mu;
|
|
4019
4019
|
const le = G.length, Ge = Y.length, be = Math.min(le, Ge);
|
|
4020
4020
|
let ze;
|
|
@@ -4042,7 +4042,7 @@ function qU(e, t) {
|
|
|
4042
4042
|
) : P(
|
|
4043
4043
|
Y,
|
|
4044
4044
|
de,
|
|
4045
|
-
|
|
4045
|
+
Ae,
|
|
4046
4046
|
xe,
|
|
4047
4047
|
Ve,
|
|
4048
4048
|
ye,
|
|
@@ -4050,7 +4050,7 @@ function qU(e, t) {
|
|
|
4050
4050
|
j,
|
|
4051
4051
|
be
|
|
4052
4052
|
);
|
|
4053
|
-
}, X = (G, Y, de,
|
|
4053
|
+
}, X = (G, Y, de, Ae, xe, Ve, ye, L, j) => {
|
|
4054
4054
|
let le = 0;
|
|
4055
4055
|
const Ge = Y.length;
|
|
4056
4056
|
let be = G.length - 1, ze = Ge - 1;
|
|
@@ -4092,7 +4092,7 @@ function qU(e, t) {
|
|
|
4092
4092
|
}
|
|
4093
4093
|
if (le > be) {
|
|
4094
4094
|
if (le <= ze) {
|
|
4095
|
-
const qe = ze + 1, Ee = qe < Ge ? Y[qe].el :
|
|
4095
|
+
const qe = ze + 1, Ee = qe < Ge ? Y[qe].el : Ae;
|
|
4096
4096
|
for (; le <= ze; )
|
|
4097
4097
|
g(
|
|
4098
4098
|
null,
|
|
@@ -4122,8 +4122,8 @@ function qU(e, t) {
|
|
|
4122
4122
|
let vt, At = 0;
|
|
4123
4123
|
const Gt = ze - Ee + 1;
|
|
4124
4124
|
let en = !1, Wt = 0;
|
|
4125
|
-
const
|
|
4126
|
-
for (le = 0; le < Gt; le++)
|
|
4125
|
+
const Ne = new Array(Gt);
|
|
4126
|
+
for (le = 0; le < Gt; le++) Ne[le] = 0;
|
|
4127
4127
|
for (le = qe; le <= be; le++) {
|
|
4128
4128
|
const Et = G[le];
|
|
4129
4129
|
if (At >= Gt) {
|
|
@@ -4135,11 +4135,11 @@ function qU(e, t) {
|
|
|
4135
4135
|
Mt = Me.get(Et.key);
|
|
4136
4136
|
else
|
|
4137
4137
|
for (vt = Ee; vt <= ze; vt++)
|
|
4138
|
-
if (
|
|
4138
|
+
if (Ne[vt - Ee] === 0 && Kl(Et, Y[vt])) {
|
|
4139
4139
|
Mt = vt;
|
|
4140
4140
|
break;
|
|
4141
4141
|
}
|
|
4142
|
-
Mt === void 0 ? z(Et, xe, Ve, !0) : (
|
|
4142
|
+
Mt === void 0 ? z(Et, xe, Ve, !0) : (Ne[Mt - Ee] = le + 1, Mt >= Wt ? Wt = Mt : en = !0, g(
|
|
4143
4143
|
Et,
|
|
4144
4144
|
Y[Mt],
|
|
4145
4145
|
de,
|
|
@@ -4151,13 +4151,13 @@ function qU(e, t) {
|
|
|
4151
4151
|
j
|
|
4152
4152
|
), At++);
|
|
4153
4153
|
}
|
|
4154
|
-
const je = en ? ZU(
|
|
4154
|
+
const je = en ? ZU(Ne) : Mu;
|
|
4155
4155
|
for (vt = je.length - 1, le = Gt - 1; le >= 0; le--) {
|
|
4156
4156
|
const Et = Ee + le, Mt = Y[Et], zt = Y[Et + 1], tt = Et + 1 < Ge ? (
|
|
4157
4157
|
// #13559, fallback to el placeholder for unresolved async component
|
|
4158
4158
|
zt.el || zt.placeholder
|
|
4159
|
-
) :
|
|
4160
|
-
|
|
4159
|
+
) : Ae;
|
|
4160
|
+
Ne[le] === 0 ? g(
|
|
4161
4161
|
null,
|
|
4162
4162
|
Mt,
|
|
4163
4163
|
de,
|
|
@@ -4170,14 +4170,14 @@ function qU(e, t) {
|
|
|
4170
4170
|
) : en && (vt < 0 || le !== je[vt] ? N(Mt, de, tt, 2) : vt--);
|
|
4171
4171
|
}
|
|
4172
4172
|
}
|
|
4173
|
-
}, N = (G, Y, de,
|
|
4173
|
+
}, N = (G, Y, de, Ae, xe = null) => {
|
|
4174
4174
|
const { el: Ve, type: ye, transition: L, children: j, shapeFlag: le } = G;
|
|
4175
4175
|
if (le & 6) {
|
|
4176
|
-
N(G.component.subTree, Y, de,
|
|
4176
|
+
N(G.component.subTree, Y, de, Ae);
|
|
4177
4177
|
return;
|
|
4178
4178
|
}
|
|
4179
4179
|
if (le & 128) {
|
|
4180
|
-
G.suspense.move(Y, de,
|
|
4180
|
+
G.suspense.move(Y, de, Ae);
|
|
4181
4181
|
return;
|
|
4182
4182
|
}
|
|
4183
4183
|
if (le & 64) {
|
|
@@ -4187,7 +4187,7 @@ function qU(e, t) {
|
|
|
4187
4187
|
if (ye === It) {
|
|
4188
4188
|
o(Ve, Y, de);
|
|
4189
4189
|
for (let be = 0; be < j.length; be++)
|
|
4190
|
-
N(j[be], Y, de,
|
|
4190
|
+
N(j[be], Y, de, Ae);
|
|
4191
4191
|
o(G.anchor, Y, de);
|
|
4192
4192
|
return;
|
|
4193
4193
|
}
|
|
@@ -4195,8 +4195,8 @@ function qU(e, t) {
|
|
|
4195
4195
|
C(G, Y, de);
|
|
4196
4196
|
return;
|
|
4197
4197
|
}
|
|
4198
|
-
if (
|
|
4199
|
-
if (
|
|
4198
|
+
if (Ae !== 2 && le & 1 && L)
|
|
4199
|
+
if (Ae === 0)
|
|
4200
4200
|
L.beforeEnter(Ve), o(Ve, Y, de), Ds(() => L.enter(Ve), xe);
|
|
4201
4201
|
else {
|
|
4202
4202
|
const { leave: be, delayLeave: ze, afterLeave: qe } = L, Ee = () => {
|
|
@@ -4213,7 +4213,7 @@ function qU(e, t) {
|
|
|
4213
4213
|
}
|
|
4214
4214
|
else
|
|
4215
4215
|
o(Ve, Y, de);
|
|
4216
|
-
}, z = (G, Y, de,
|
|
4216
|
+
}, z = (G, Y, de, Ae = !1, xe = !1) => {
|
|
4217
4217
|
const {
|
|
4218
4218
|
type: Ve,
|
|
4219
4219
|
props: ye,
|
|
@@ -4232,10 +4232,10 @@ function qU(e, t) {
|
|
|
4232
4232
|
const Ee = Ge & 1 && ze, Me = !Lu(G);
|
|
4233
4233
|
let vt;
|
|
4234
4234
|
if (Me && (vt = ye && ye.onVnodeBeforeUnmount) && Qr(vt, Y, G), Ge & 6)
|
|
4235
|
-
ve(G.component, de,
|
|
4235
|
+
ve(G.component, de, Ae);
|
|
4236
4236
|
else {
|
|
4237
4237
|
if (Ge & 128) {
|
|
4238
|
-
G.suspense.unmount(de,
|
|
4238
|
+
G.suspense.unmount(de, Ae);
|
|
4239
4239
|
return;
|
|
4240
4240
|
}
|
|
4241
4241
|
Ee && xl(G, null, Y, "beforeUnmount"), Ge & 64 ? G.type.remove(
|
|
@@ -4243,7 +4243,7 @@ function qU(e, t) {
|
|
|
4243
4243
|
Y,
|
|
4244
4244
|
de,
|
|
4245
4245
|
oe,
|
|
4246
|
-
|
|
4246
|
+
Ae
|
|
4247
4247
|
) : le && // #5154
|
|
4248
4248
|
// when v-once is used inside a block, setBlockTracking(-1) marks the
|
|
4249
4249
|
// parent block with hasOnce: true
|
|
@@ -4256,17 +4256,17 @@ function qU(e, t) {
|
|
|
4256
4256
|
de,
|
|
4257
4257
|
!1,
|
|
4258
4258
|
!0
|
|
4259
|
-
) : (Ve === It && be & 384 || !xe && Ge & 16) && we(j, Y, de),
|
|
4259
|
+
) : (Ve === It && be & 384 || !xe && Ge & 16) && we(j, Y, de), Ae && ne(G);
|
|
4260
4260
|
}
|
|
4261
4261
|
(Me && (vt = ye && ye.onVnodeUnmounted) || Ee) && Ds(() => {
|
|
4262
4262
|
vt && Qr(vt, Y, G), Ee && xl(G, null, Y, "unmounted");
|
|
4263
4263
|
}, de);
|
|
4264
4264
|
}, ne = (G) => {
|
|
4265
|
-
const { type: Y, el: de, anchor:
|
|
4265
|
+
const { type: Y, el: de, anchor: Ae, transition: xe } = G;
|
|
4266
4266
|
if (Y === It) {
|
|
4267
4267
|
J.env.NODE_ENV !== "production" && G.patchFlag > 0 && G.patchFlag & 2048 && xe && !xe.persisted ? G.children.forEach((ye) => {
|
|
4268
4268
|
ye.type === Jn ? s(ye.el) : ne(ye);
|
|
4269
|
-
}) : pe(de,
|
|
4269
|
+
}) : pe(de, Ae);
|
|
4270
4270
|
return;
|
|
4271
4271
|
}
|
|
4272
4272
|
if (Y === Yh) {
|
|
@@ -4288,13 +4288,13 @@ function qU(e, t) {
|
|
|
4288
4288
|
s(Y);
|
|
4289
4289
|
}, ve = (G, Y, de) => {
|
|
4290
4290
|
J.env.NODE_ENV !== "production" && G.type.__hmrId && BG(G);
|
|
4291
|
-
const { bum:
|
|
4292
|
-
CD(j), CD(le),
|
|
4291
|
+
const { bum: Ae, scope: xe, job: Ve, subTree: ye, um: L, m: j, a: le } = G;
|
|
4292
|
+
CD(j), CD(le), Ae && pu(Ae), xe.stop(), Ve && (Ve.flags |= 8, z(ye, G, Y, de)), L && Ds(L, Y), Ds(() => {
|
|
4293
4293
|
G.isUnmounted = !0;
|
|
4294
4294
|
}, Y), J.env.NODE_ENV !== "production" && jG(G);
|
|
4295
|
-
}, we = (G, Y, de,
|
|
4295
|
+
}, we = (G, Y, de, Ae = !1, xe = !1, Ve = 0) => {
|
|
4296
4296
|
for (let ye = Ve; ye < G.length; ye++)
|
|
4297
|
-
z(G[ye], Y, de,
|
|
4297
|
+
z(G[ye], Y, de, Ae, xe);
|
|
4298
4298
|
}, re = (G) => {
|
|
4299
4299
|
if (G.shapeFlag & 6)
|
|
4300
4300
|
return re(G.component.subTree);
|
|
@@ -6630,8 +6630,8 @@ function Jz(e) {
|
|
|
6630
6630
|
var O, k = C === "y" ? gs : ms, x = C === "y" ? hr : fr, $ = C === "y" ? "height" : "width", W = E[C], Q = W + v[k], ae = W - v[x], ee = f ? -T[$] / 2 : 0, X = S === ad ? I[$] : T[$], N = S === ad ? -T[$] : -I[$], z = t.elements.arrow, ne = f && z ? v0(z) : {
|
|
6631
6631
|
width: 0,
|
|
6632
6632
|
height: 0
|
|
6633
|
-
}, pe = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ZA(), ve = pe[k], we = pe[x], re = Xh(0, I[$], ne[$]), U = b ? I[$] / 2 - ee - re - ve - M.mainAxis : X - re - ve - M.mainAxis, ge = b ? -I[$] / 2 + ee + re + we + M.mainAxis : N + re + we + M.mainAxis, oe = t.elements.arrow && Cp(t.elements.arrow), Re = oe ? C === "y" ? oe.clientTop || 0 : oe.clientLeft || 0 : 0, G = (O = D == null ? void 0 : D[C]) != null ? O : 0, Y = W + U - G - Re, de = W + ge - G,
|
|
6634
|
-
E[C] =
|
|
6633
|
+
}, pe = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ZA(), ve = pe[k], we = pe[x], re = Xh(0, I[$], ne[$]), U = b ? I[$] / 2 - ee - re - ve - M.mainAxis : X - re - ve - M.mainAxis, ge = b ? -I[$] / 2 + ee + re + we + M.mainAxis : N + re + we + M.mainAxis, oe = t.elements.arrow && Cp(t.elements.arrow), Re = oe ? C === "y" ? oe.clientTop || 0 : oe.clientLeft || 0 : 0, G = (O = D == null ? void 0 : D[C]) != null ? O : 0, Y = W + U - G - Re, de = W + ge - G, Ae = Xh(f ? cv(Q, Y) : Q, W, f ? lc(ae, de) : ae);
|
|
6634
|
+
E[C] = Ae, F[C] = Ae - W;
|
|
6635
6635
|
}
|
|
6636
6636
|
if (a) {
|
|
6637
6637
|
var xe, Ve = C === "x" ? gs : ms, ye = C === "x" ? hr : fr, L = E[_], j = _ === "y" ? "height" : "width", le = L + v[Ve], Ge = L - v[ye], be = [gs, ms].indexOf(w) !== -1, ze = (xe = D == null ? void 0 : D[_]) != null ? xe : 0, qe = be ? le : L - I[j] - T[j] - ze + M.altAxis, Ee = be ? L + I[j] + T[j] - ze - M.altAxis : Ge, Me = f && be ? Sz(qe, L, Ee) : Xh(f ? qe : le, L, f ? Ee : Ge);
|
|
@@ -7238,8 +7238,8 @@ function V3(e, t) {
|
|
|
7238
7238
|
return J.env.NODE_ENV !== "production" && oS(!0, "render() function has not been supplied."), C;
|
|
7239
7239
|
var _ = n.render(C), E = _.popper, I = _.onUpdate;
|
|
7240
7240
|
E.setAttribute("data-tippy-root", ""), E.id = "tippy-" + C.id, C.popper = E, e._tippy = C, E._tippy = C;
|
|
7241
|
-
var T = S.map(function(
|
|
7242
|
-
return
|
|
7241
|
+
var T = S.map(function(Ne) {
|
|
7242
|
+
return Ne.fn(C);
|
|
7243
7243
|
}), P = e.hasAttribute("aria-expanded");
|
|
7244
7244
|
return oe(), ee(), W(), Q("onCreate", [C]), n.showOnCreate && le(), E.addEventListener("mouseenter", function() {
|
|
7245
7245
|
C.props.interactive && C.state.isVisible && C.clearDelayTimeouts();
|
|
@@ -7247,44 +7247,44 @@ function V3(e, t) {
|
|
|
7247
7247
|
C.props.interactive && C.props.trigger.indexOf("mouseenter") >= 0 && k().addEventListener("mousemove", p);
|
|
7248
7248
|
}), C;
|
|
7249
7249
|
function M() {
|
|
7250
|
-
var
|
|
7251
|
-
return Array.isArray(
|
|
7250
|
+
var Ne = C.props.touch;
|
|
7251
|
+
return Array.isArray(Ne) ? Ne : [Ne, 0];
|
|
7252
7252
|
}
|
|
7253
7253
|
function D() {
|
|
7254
7254
|
return M()[0] === "hold";
|
|
7255
7255
|
}
|
|
7256
7256
|
function F() {
|
|
7257
|
-
var
|
|
7258
|
-
return !!((
|
|
7257
|
+
var Ne;
|
|
7258
|
+
return !!((Ne = C.props.render) != null && Ne.$$tippy);
|
|
7259
7259
|
}
|
|
7260
7260
|
function O() {
|
|
7261
7261
|
return g || e;
|
|
7262
7262
|
}
|
|
7263
7263
|
function k() {
|
|
7264
|
-
var
|
|
7265
|
-
return
|
|
7264
|
+
var Ne = O().parentNode;
|
|
7265
|
+
return Ne ? S3(Ne) : document;
|
|
7266
7266
|
}
|
|
7267
7267
|
function x() {
|
|
7268
7268
|
return rS(E);
|
|
7269
7269
|
}
|
|
7270
|
-
function $(
|
|
7271
|
-
return C.state.isMounted && !C.state.isVisible || li.isTouch || u && u.type === "focus" ? 0 : nC(C.props.delay,
|
|
7270
|
+
function $(Ne) {
|
|
7271
|
+
return C.state.isMounted && !C.state.isVisible || li.isTouch || u && u.type === "focus" ? 0 : nC(C.props.delay, Ne ? 0 : 1, Ps.delay);
|
|
7272
7272
|
}
|
|
7273
|
-
function W(
|
|
7274
|
-
|
|
7273
|
+
function W(Ne) {
|
|
7274
|
+
Ne === void 0 && (Ne = !1), E.style.pointerEvents = C.props.interactive && !Ne ? "" : "none", E.style.zIndex = "" + C.props.zIndex;
|
|
7275
7275
|
}
|
|
7276
|
-
function Q(
|
|
7276
|
+
function Q(Ne, je, Et) {
|
|
7277
7277
|
if (Et === void 0 && (Et = !0), T.forEach(function(zt) {
|
|
7278
|
-
zt[
|
|
7278
|
+
zt[Ne] && zt[Ne].apply(zt, je);
|
|
7279
7279
|
}), Et) {
|
|
7280
7280
|
var Mt;
|
|
7281
|
-
(Mt = C.props)[
|
|
7281
|
+
(Mt = C.props)[Ne].apply(Mt, je);
|
|
7282
7282
|
}
|
|
7283
7283
|
}
|
|
7284
7284
|
function ae() {
|
|
7285
|
-
var
|
|
7286
|
-
if (
|
|
7287
|
-
var je = "aria-" +
|
|
7285
|
+
var Ne = C.props.aria;
|
|
7286
|
+
if (Ne.content) {
|
|
7287
|
+
var je = "aria-" + Ne.content, Et = E.id, Mt = vu(C.props.triggerTarget || e);
|
|
7288
7288
|
Mt.forEach(function(zt) {
|
|
7289
7289
|
var tt = zt.getAttribute(je);
|
|
7290
7290
|
if (C.state.isVisible)
|
|
@@ -7298,20 +7298,20 @@ function V3(e, t) {
|
|
|
7298
7298
|
}
|
|
7299
7299
|
function ee() {
|
|
7300
7300
|
if (!(P || !C.props.aria.expanded)) {
|
|
7301
|
-
var
|
|
7302
|
-
|
|
7301
|
+
var Ne = vu(C.props.triggerTarget || e);
|
|
7302
|
+
Ne.forEach(function(je) {
|
|
7303
7303
|
C.props.interactive ? je.setAttribute("aria-expanded", C.state.isVisible && je === O() ? "true" : "false") : je.removeAttribute("aria-expanded");
|
|
7304
7304
|
});
|
|
7305
7305
|
}
|
|
7306
7306
|
}
|
|
7307
7307
|
function X() {
|
|
7308
|
-
k().removeEventListener("mousemove", p), pg = pg.filter(function(
|
|
7309
|
-
return
|
|
7308
|
+
k().removeEventListener("mousemove", p), pg = pg.filter(function(Ne) {
|
|
7309
|
+
return Ne !== p;
|
|
7310
7310
|
});
|
|
7311
7311
|
}
|
|
7312
|
-
function N(
|
|
7313
|
-
if (!(li.isTouch && (l ||
|
|
7314
|
-
var je =
|
|
7312
|
+
function N(Ne) {
|
|
7313
|
+
if (!(li.isTouch && (l || Ne.type === "mousedown"))) {
|
|
7314
|
+
var je = Ne.composedPath && Ne.composedPath()[0] || Ne.target;
|
|
7315
7315
|
if (!(C.props.interactive && fT(E, je))) {
|
|
7316
7316
|
if (vu(C.props.triggerTarget || e).some(function(Et) {
|
|
7317
7317
|
return fT(Et, je);
|
|
@@ -7319,7 +7319,7 @@ function V3(e, t) {
|
|
|
7319
7319
|
if (li.isTouch || C.state.isVisible && C.props.trigger.indexOf("click") >= 0)
|
|
7320
7320
|
return;
|
|
7321
7321
|
} else
|
|
7322
|
-
Q("onClickOutside", [C,
|
|
7322
|
+
Q("onClickOutside", [C, Ne]);
|
|
7323
7323
|
C.props.hideOnClick === !0 && (C.clearDelayTimeouts(), C.hide(), a = !0, setTimeout(function() {
|
|
7324
7324
|
a = !1;
|
|
7325
7325
|
}), C.state.isMounted || ve());
|
|
@@ -7333,37 +7333,37 @@ function V3(e, t) {
|
|
|
7333
7333
|
l = !1;
|
|
7334
7334
|
}
|
|
7335
7335
|
function pe() {
|
|
7336
|
-
var
|
|
7337
|
-
|
|
7336
|
+
var Ne = k();
|
|
7337
|
+
Ne.addEventListener("mousedown", N, !0), Ne.addEventListener("touchend", N, Gl), Ne.addEventListener("touchstart", ne, Gl), Ne.addEventListener("touchmove", z, Gl);
|
|
7338
7338
|
}
|
|
7339
7339
|
function ve() {
|
|
7340
|
-
var
|
|
7341
|
-
|
|
7340
|
+
var Ne = k();
|
|
7341
|
+
Ne.removeEventListener("mousedown", N, !0), Ne.removeEventListener("touchend", N, Gl), Ne.removeEventListener("touchstart", ne, Gl), Ne.removeEventListener("touchmove", z, Gl);
|
|
7342
7342
|
}
|
|
7343
|
-
function we(
|
|
7344
|
-
U(
|
|
7343
|
+
function we(Ne, je) {
|
|
7344
|
+
U(Ne, function() {
|
|
7345
7345
|
!C.state.isVisible && E.parentNode && E.parentNode.contains(E) && je();
|
|
7346
7346
|
});
|
|
7347
7347
|
}
|
|
7348
|
-
function re(
|
|
7349
|
-
U(
|
|
7348
|
+
function re(Ne, je) {
|
|
7349
|
+
U(Ne, je);
|
|
7350
7350
|
}
|
|
7351
|
-
function U(
|
|
7351
|
+
function U(Ne, je) {
|
|
7352
7352
|
var Et = x().box;
|
|
7353
7353
|
function Mt(zt) {
|
|
7354
7354
|
zt.target === Et && (sC(Et, "remove", Mt), je());
|
|
7355
7355
|
}
|
|
7356
|
-
if (
|
|
7356
|
+
if (Ne === 0)
|
|
7357
7357
|
return je();
|
|
7358
7358
|
sC(Et, "remove", d), sC(Et, "add", Mt), d = Mt;
|
|
7359
7359
|
}
|
|
7360
|
-
function ge(
|
|
7360
|
+
function ge(Ne, je, Et) {
|
|
7361
7361
|
Et === void 0 && (Et = !1);
|
|
7362
7362
|
var Mt = vu(C.props.triggerTarget || e);
|
|
7363
7363
|
Mt.forEach(function(zt) {
|
|
7364
|
-
zt.addEventListener(
|
|
7364
|
+
zt.addEventListener(Ne, je, Et), f.push({
|
|
7365
7365
|
node: zt,
|
|
7366
|
-
eventType:
|
|
7366
|
+
eventType: Ne,
|
|
7367
7367
|
handler: je,
|
|
7368
7368
|
options: Et
|
|
7369
7369
|
});
|
|
@@ -7374,39 +7374,39 @@ function V3(e, t) {
|
|
|
7374
7374
|
passive: !0
|
|
7375
7375
|
}), ge("touchend", de, {
|
|
7376
7376
|
passive: !0
|
|
7377
|
-
})), g3(C.props.trigger).forEach(function(
|
|
7378
|
-
if (
|
|
7379
|
-
switch (ge(
|
|
7377
|
+
})), g3(C.props.trigger).forEach(function(Ne) {
|
|
7378
|
+
if (Ne !== "manual")
|
|
7379
|
+
switch (ge(Ne, G), Ne) {
|
|
7380
7380
|
case "mouseenter":
|
|
7381
7381
|
ge("mouseleave", de);
|
|
7382
7382
|
break;
|
|
7383
7383
|
case "focus":
|
|
7384
|
-
ge(I3 ? "focusout" : "blur",
|
|
7384
|
+
ge(I3 ? "focusout" : "blur", Ae);
|
|
7385
7385
|
break;
|
|
7386
7386
|
case "focusin":
|
|
7387
|
-
ge("focusout",
|
|
7387
|
+
ge("focusout", Ae);
|
|
7388
7388
|
break;
|
|
7389
7389
|
}
|
|
7390
7390
|
});
|
|
7391
7391
|
}
|
|
7392
7392
|
function Re() {
|
|
7393
|
-
f.forEach(function(
|
|
7394
|
-
var je =
|
|
7393
|
+
f.forEach(function(Ne) {
|
|
7394
|
+
var je = Ne.node, Et = Ne.eventType, Mt = Ne.handler, zt = Ne.options;
|
|
7395
7395
|
je.removeEventListener(Et, Mt, zt);
|
|
7396
7396
|
}), f = [];
|
|
7397
7397
|
}
|
|
7398
|
-
function G(
|
|
7398
|
+
function G(Ne) {
|
|
7399
7399
|
var je, Et = !1;
|
|
7400
|
-
if (!(!C.state.isEnabled || xe(
|
|
7400
|
+
if (!(!C.state.isEnabled || xe(Ne) || a)) {
|
|
7401
7401
|
var Mt = ((je = u) == null ? void 0 : je.type) === "focus";
|
|
7402
|
-
u =
|
|
7403
|
-
return zt(
|
|
7404
|
-
}),
|
|
7402
|
+
u = Ne, g = Ne.currentTarget, ee(), !C.state.isVisible && w3(Ne) && pg.forEach(function(zt) {
|
|
7403
|
+
return zt(Ne);
|
|
7404
|
+
}), Ne.type === "click" && (C.props.trigger.indexOf("mouseenter") < 0 || i) && C.props.hideOnClick !== !1 && C.state.isVisible ? Et = !0 : le(Ne), Ne.type === "click" && (i = !Et), Et && !Mt && Ge(Ne);
|
|
7405
7405
|
}
|
|
7406
7406
|
}
|
|
7407
|
-
function Y(
|
|
7408
|
-
var je =
|
|
7409
|
-
if (!(
|
|
7407
|
+
function Y(Ne) {
|
|
7408
|
+
var je = Ne.target, Et = O().contains(je) || E.contains(je);
|
|
7409
|
+
if (!(Ne.type === "mousemove" && Et)) {
|
|
7410
7410
|
var Mt = j().concat(E).map(function(zt) {
|
|
7411
7411
|
var tt, So = zt._tippy, Us = (tt = So.popperInstance) == null ? void 0 : tt.state;
|
|
7412
7412
|
return Us ? {
|
|
@@ -7415,28 +7415,28 @@ function V3(e, t) {
|
|
|
7415
7415
|
props: n
|
|
7416
7416
|
} : null;
|
|
7417
7417
|
}).filter(Boolean);
|
|
7418
|
-
E3(Mt,
|
|
7418
|
+
E3(Mt, Ne) && (X(), Ge(Ne));
|
|
7419
7419
|
}
|
|
7420
7420
|
}
|
|
7421
|
-
function de(
|
|
7422
|
-
var je = xe(
|
|
7421
|
+
function de(Ne) {
|
|
7422
|
+
var je = xe(Ne) || C.props.trigger.indexOf("click") >= 0 && i;
|
|
7423
7423
|
if (!je) {
|
|
7424
7424
|
if (C.props.interactive) {
|
|
7425
|
-
C.hideWithInteractivity(
|
|
7425
|
+
C.hideWithInteractivity(Ne);
|
|
7426
7426
|
return;
|
|
7427
7427
|
}
|
|
7428
|
-
Ge(
|
|
7428
|
+
Ge(Ne);
|
|
7429
7429
|
}
|
|
7430
7430
|
}
|
|
7431
|
-
function
|
|
7432
|
-
C.props.trigger.indexOf("focusin") < 0 &&
|
|
7431
|
+
function Ae(Ne) {
|
|
7432
|
+
C.props.trigger.indexOf("focusin") < 0 && Ne.target !== O() || C.props.interactive && Ne.relatedTarget && E.contains(Ne.relatedTarget) || Ge(Ne);
|
|
7433
7433
|
}
|
|
7434
|
-
function xe(
|
|
7435
|
-
return li.isTouch ? D() !==
|
|
7434
|
+
function xe(Ne) {
|
|
7435
|
+
return li.isTouch ? D() !== Ne.type.indexOf("touch") >= 0 : !1;
|
|
7436
7436
|
}
|
|
7437
7437
|
function Ve() {
|
|
7438
7438
|
ye();
|
|
7439
|
-
var
|
|
7439
|
+
var Ne = C.props, je = Ne.popperOptions, Et = Ne.placement, Mt = Ne.offset, zt = Ne.getReferenceClientRect, tt = Ne.moveTransition, So = F() ? rS(E).arrow : null, Us = zt ? {
|
|
7440
7440
|
getBoundingClientRect: zt,
|
|
7441
7441
|
contextElement: zt.contextElement || O()
|
|
7442
7442
|
} : e, Wr = {
|
|
@@ -7495,8 +7495,8 @@ function V3(e, t) {
|
|
|
7495
7495
|
C.popperInstance && (C.popperInstance.destroy(), C.popperInstance = null);
|
|
7496
7496
|
}
|
|
7497
7497
|
function L() {
|
|
7498
|
-
var
|
|
7499
|
-
C.props.interactive &&
|
|
7498
|
+
var Ne = C.props.appendTo, je, Et = O();
|
|
7499
|
+
C.props.interactive && Ne === sO || Ne === "parent" ? je = Et.parentNode : je = rO(Ne, [Et]), je.contains(E) || je.appendChild(E), C.state.isMounted = !0, Ve(), J.env.NODE_ENV !== "production" && Yi(C.props.interactive && Ne === Ps.appendTo && Et.nextElementSibling !== E, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
7500
7500
|
|
|
7501
7501
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
7502
7502
|
|
|
@@ -7507,19 +7507,19 @@ function V3(e, t) {
|
|
|
7507
7507
|
function j() {
|
|
7508
7508
|
return uv(E.querySelectorAll("[data-tippy-root]"));
|
|
7509
7509
|
}
|
|
7510
|
-
function le(
|
|
7511
|
-
C.clearDelayTimeouts(),
|
|
7510
|
+
function le(Ne) {
|
|
7511
|
+
C.clearDelayTimeouts(), Ne && Q("onTrigger", [C, Ne]), pe();
|
|
7512
7512
|
var je = $(!0), Et = M(), Mt = Et[0], zt = Et[1];
|
|
7513
7513
|
li.isTouch && Mt === "hold" && zt && (je = zt), je ? o = setTimeout(function() {
|
|
7514
7514
|
C.show();
|
|
7515
7515
|
}, je) : C.show();
|
|
7516
7516
|
}
|
|
7517
|
-
function Ge(
|
|
7518
|
-
if (C.clearDelayTimeouts(), Q("onUntrigger", [C,
|
|
7517
|
+
function Ge(Ne) {
|
|
7518
|
+
if (C.clearDelayTimeouts(), Q("onUntrigger", [C, Ne]), !C.state.isVisible) {
|
|
7519
7519
|
ve();
|
|
7520
7520
|
return;
|
|
7521
7521
|
}
|
|
7522
|
-
if (!(C.props.trigger.indexOf("mouseenter") >= 0 && C.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(
|
|
7522
|
+
if (!(C.props.trigger.indexOf("mouseenter") >= 0 && C.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(Ne.type) >= 0 && i)) {
|
|
7523
7523
|
var je = $(!1);
|
|
7524
7524
|
je ? s = setTimeout(function() {
|
|
7525
7525
|
C.state.isVisible && C.hide();
|
|
@@ -7537,28 +7537,28 @@ function V3(e, t) {
|
|
|
7537
7537
|
function qe() {
|
|
7538
7538
|
clearTimeout(o), clearTimeout(s), cancelAnimationFrame(r);
|
|
7539
7539
|
}
|
|
7540
|
-
function Ee(
|
|
7540
|
+
function Ee(Ne) {
|
|
7541
7541
|
if (J.env.NODE_ENV !== "production" && Yi(C.state.isDestroyed, nu("setProps")), !C.state.isDestroyed) {
|
|
7542
|
-
Q("onBeforeUpdate", [C,
|
|
7543
|
-
var je = C.props, Et = mT(e, Object.assign({}, je, dT(
|
|
7542
|
+
Q("onBeforeUpdate", [C, Ne]), Re();
|
|
7543
|
+
var je = C.props, Et = mT(e, Object.assign({}, je, dT(Ne), {
|
|
7544
7544
|
ignoreAttributes: !0
|
|
7545
7545
|
}));
|
|
7546
7546
|
C.props = Et, oe(), je.interactiveDebounce !== Et.interactiveDebounce && (X(), p = cT(Y, Et.interactiveDebounce)), je.triggerTarget && !Et.triggerTarget ? vu(je.triggerTarget).forEach(function(Mt) {
|
|
7547
7547
|
Mt.removeAttribute("aria-expanded");
|
|
7548
7548
|
}) : Et.triggerTarget && e.removeAttribute("aria-expanded"), ee(), W(), I && I(je, Et), C.popperInstance && (Ve(), j().forEach(function(Mt) {
|
|
7549
7549
|
requestAnimationFrame(Mt._tippy.popperInstance.forceUpdate);
|
|
7550
|
-
})), Q("onAfterUpdate", [C,
|
|
7550
|
+
})), Q("onAfterUpdate", [C, Ne]);
|
|
7551
7551
|
}
|
|
7552
7552
|
}
|
|
7553
|
-
function Me(
|
|
7553
|
+
function Me(Ne) {
|
|
7554
7554
|
C.setProps({
|
|
7555
|
-
content:
|
|
7555
|
+
content: Ne
|
|
7556
7556
|
});
|
|
7557
7557
|
}
|
|
7558
7558
|
function vt() {
|
|
7559
7559
|
J.env.NODE_ENV !== "production" && Yi(C.state.isDestroyed, nu("show"));
|
|
7560
|
-
var
|
|
7561
|
-
if (!(
|
|
7560
|
+
var Ne = C.state.isVisible, je = C.state.isDestroyed, Et = !C.state.isEnabled, Mt = li.isTouch && !C.props.touch, zt = nC(C.props.duration, 0, Ps.duration);
|
|
7561
|
+
if (!(Ne || je || Et || Mt) && !O().hasAttribute("disabled") && (Q("onShow", [C], !1), C.props.onShow(C) !== !1)) {
|
|
7562
7562
|
if (C.state.isVisible = !0, F() && (E.style.visibility = "visible"), W(), pe(), C.state.isMounted || (E.style.transition = "none"), F()) {
|
|
7563
7563
|
var tt = x(), So = tt.box, Us = tt.content;
|
|
7564
7564
|
oC([So, Us], 0);
|
|
@@ -7579,8 +7579,8 @@ function V3(e, t) {
|
|
|
7579
7579
|
}
|
|
7580
7580
|
function At() {
|
|
7581
7581
|
J.env.NODE_ENV !== "production" && Yi(C.state.isDestroyed, nu("hide"));
|
|
7582
|
-
var
|
|
7583
|
-
if (!(
|
|
7582
|
+
var Ne = !C.state.isVisible, je = C.state.isDestroyed, Et = !C.state.isEnabled, Mt = nC(C.props.duration, 1, Ps.duration);
|
|
7583
|
+
if (!(Ne || je || Et) && (Q("onHide", [C], !1), C.props.onHide(C) !== !1)) {
|
|
7584
7584
|
if (C.state.isVisible = !1, C.state.isShown = !1, c = !1, i = !1, F() && (E.style.visibility = "hidden"), X(), ve(), W(!0), F()) {
|
|
7585
7585
|
var zt = x(), tt = zt.box, So = zt.content;
|
|
7586
7586
|
C.props.animation && (oC([tt, So], Mt), hT([tt, So], "hidden"));
|
|
@@ -7588,14 +7588,14 @@ function V3(e, t) {
|
|
|
7588
7588
|
ae(), ee(), C.props.animation ? F() && we(Mt, C.unmount) : C.unmount();
|
|
7589
7589
|
}
|
|
7590
7590
|
}
|
|
7591
|
-
function Gt(
|
|
7592
|
-
J.env.NODE_ENV !== "production" && Yi(C.state.isDestroyed, nu("hideWithInteractivity")), k().addEventListener("mousemove", p), uT(pg, p), p(
|
|
7591
|
+
function Gt(Ne) {
|
|
7592
|
+
J.env.NODE_ENV !== "production" && Yi(C.state.isDestroyed, nu("hideWithInteractivity")), k().addEventListener("mousemove", p), uT(pg, p), p(Ne);
|
|
7593
7593
|
}
|
|
7594
7594
|
function en() {
|
|
7595
|
-
J.env.NODE_ENV !== "production" && Yi(C.state.isDestroyed, nu("unmount")), C.state.isVisible && C.hide(), C.state.isMounted && (ye(), j().forEach(function(
|
|
7596
|
-
|
|
7597
|
-
}), E.parentNode && E.parentNode.removeChild(E), rC = rC.filter(function(
|
|
7598
|
-
return
|
|
7595
|
+
J.env.NODE_ENV !== "production" && Yi(C.state.isDestroyed, nu("unmount")), C.state.isVisible && C.hide(), C.state.isMounted && (ye(), j().forEach(function(Ne) {
|
|
7596
|
+
Ne._tippy.unmount();
|
|
7597
|
+
}), E.parentNode && E.parentNode.removeChild(E), rC = rC.filter(function(Ne) {
|
|
7598
|
+
return Ne !== C;
|
|
7599
7599
|
}), C.state.isMounted = !1, Q("onHidden", [C]));
|
|
7600
7600
|
}
|
|
7601
7601
|
function Wt() {
|
|
@@ -8583,18 +8583,18 @@ var y6 = il.ArrayBuffer, iC = il.FileReader, kl = il.URL || il.webkitURL, w6 = /
|
|
|
8583
8583
|
});
|
|
8584
8584
|
};
|
|
8585
8585
|
if (Y && oe && p.retainExif && o.exif && o.exif.length > 0) {
|
|
8586
|
-
var
|
|
8586
|
+
var Ae = function(ye) {
|
|
8587
8587
|
return de(_T(DT(v6(ye, o.exif), p.mimeType)));
|
|
8588
8588
|
};
|
|
8589
8589
|
if (Y.arrayBuffer)
|
|
8590
|
-
Y.arrayBuffer().then(
|
|
8590
|
+
Y.arrayBuffer().then(Ae).catch(function() {
|
|
8591
8591
|
o.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."));
|
|
8592
8592
|
});
|
|
8593
8593
|
else {
|
|
8594
8594
|
var xe = new iC();
|
|
8595
8595
|
o.reader = xe, xe.onload = function(Ve) {
|
|
8596
8596
|
var ye = Ve.target;
|
|
8597
|
-
|
|
8597
|
+
Ae(ye.result);
|
|
8598
8598
|
}, xe.onabort = function() {
|
|
8599
8599
|
o.fail(new Error("Aborted to read the compressed image with FileReader."));
|
|
8600
8600
|
}, xe.onerror = function() {
|
|
@@ -8869,7 +8869,7 @@ var wO = { exports: {} };
|
|
|
8869
8869
|
m.apply(this, arguments), y.apply(this, arguments);
|
|
8870
8870
|
};
|
|
8871
8871
|
}
|
|
8872
|
-
function
|
|
8872
|
+
function Ae(m, y) {
|
|
8873
8873
|
return m === Re ? y : function() {
|
|
8874
8874
|
var R = m.apply(this, arguments);
|
|
8875
8875
|
R !== void 0 && (arguments[0] = R);
|
|
@@ -8923,7 +8923,7 @@ var wO = { exports: {} };
|
|
|
8923
8923
|
return [y, c(y), m];
|
|
8924
8924
|
}(), ze = Bi[0], Ks = Bi[1], Bi = Bi[2], Ks = Ks && Ks.then, qe = ze && ze.constructor, Ee = !!Bi, Me = function(m, y) {
|
|
8925
8925
|
Et.push([m, y]), At && (queueMicrotask(jr), At = !1);
|
|
8926
|
-
}, vt = !0, At = !0, Gt = [], en = [], Wt = G,
|
|
8926
|
+
}, vt = !0, At = !0, Gt = [], en = [], Wt = G, Ne = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: Re, pgp: !1, env: {}, finalize: Re }, je = Ne, Et = [], Mt = 0, zt = [];
|
|
8927
8927
|
function tt(m) {
|
|
8928
8928
|
if (typeof this != "object") throw new TypeError("Promises must be constructed via new");
|
|
8929
8929
|
this._listeners = [], this._lib = !1;
|
|
@@ -8951,7 +8951,7 @@ var wO = { exports: {} };
|
|
|
8951
8951
|
var So = { get: function() {
|
|
8952
8952
|
var m = je, y = Kc;
|
|
8953
8953
|
function R(A, V) {
|
|
8954
|
-
var Z = this, se = !m.global && (m !== je || y !== Kc), ce = se && !
|
|
8954
|
+
var Z = this, se = !m.global && (m !== je || y !== Kc), ce = se && !Pe(), Ce = new tt(function(_e, Ie) {
|
|
8955
8955
|
Li(Z, new Us(_l(A, m, se, ce), _l(V, m, se, ce), _e, Ie, m));
|
|
8956
8956
|
});
|
|
8957
8957
|
return this._consoleTask && (Ce._consoleTask = this._consoleTask), Ce;
|
|
@@ -9002,7 +9002,7 @@ var wO = { exports: {} };
|
|
|
9002
9002
|
}
|
|
9003
9003
|
}
|
|
9004
9004
|
function jr() {
|
|
9005
|
-
Xo(
|
|
9005
|
+
Xo(Ne, function() {
|
|
9006
9006
|
Kr() && zs();
|
|
9007
9007
|
});
|
|
9008
9008
|
}
|
|
@@ -9071,7 +9071,7 @@ var wO = { exports: {} };
|
|
|
9071
9071
|
}, m);
|
|
9072
9072
|
R.then(A, V).finally(clearTimeout.bind(null, Z));
|
|
9073
9073
|
}) : this;
|
|
9074
|
-
} }), typeof Symbol < "u" && Symbol.toStringTag && p(tt.prototype, Symbol.toStringTag, "Dexie.Promise"),
|
|
9074
|
+
} }), typeof Symbol < "u" && Symbol.toStringTag && p(tt.prototype, Symbol.toStringTag, "Dexie.Promise"), Ne.env = Zr(), h(tt, { all: function() {
|
|
9075
9075
|
var m = ee.apply(null, arguments).map(Ze);
|
|
9076
9076
|
return new tt(function(y, R) {
|
|
9077
9077
|
m.length === 0 && y([]);
|
|
@@ -9155,21 +9155,21 @@ var wO = { exports: {} };
|
|
|
9155
9155
|
var no = { awaits: 0, echoes: 0, id: 0 }, pw = 0, zc = [], jc = 0, Kc = 0, gw = 0;
|
|
9156
9156
|
function Yr(m, y, R, A) {
|
|
9157
9157
|
var V = je, Z = Object.create(V);
|
|
9158
|
-
return Z.parent = V, Z.ref = 0, Z.global = !1, Z.id = ++gw,
|
|
9158
|
+
return Z.parent = V, Z.ref = 0, Z.global = !1, Z.id = ++gw, Ne.env, Z.env = Ee ? { Promise: tt, PromiseProp: { value: tt, configurable: !0, writable: !0 }, all: tt.all, race: tt.race, allSettled: tt.allSettled, any: tt.any, resolve: tt.resolve, reject: tt.reject } : {}, y && l(Z, y), ++V.ref, Z.finalize = function() {
|
|
9159
9159
|
--this.parent.ref || this.parent.finalize();
|
|
9160
9160
|
}, A = Xo(Z, m, R, A), Z.ref === 0 && Z.finalize(), A;
|
|
9161
9161
|
}
|
|
9162
9162
|
function Da() {
|
|
9163
9163
|
return no.id || (no.id = ++pw), ++no.awaits, no.echoes += be, no.id;
|
|
9164
9164
|
}
|
|
9165
|
-
function
|
|
9165
|
+
function Pe() {
|
|
9166
9166
|
return !!no.awaits && (--no.awaits == 0 && (no.id = 0), no.echoes = no.awaits * be, !0);
|
|
9167
9167
|
}
|
|
9168
9168
|
function Ze(m) {
|
|
9169
9169
|
return no.echoes && m && m.constructor === qe ? (Da(), m.then(function(y) {
|
|
9170
|
-
return
|
|
9170
|
+
return Pe(), y;
|
|
9171
9171
|
}, function(y) {
|
|
9172
|
-
return
|
|
9172
|
+
return Pe(), Rn(y);
|
|
9173
9173
|
})) : m;
|
|
9174
9174
|
}
|
|
9175
9175
|
function jt() {
|
|
@@ -9180,7 +9180,7 @@ var wO = { exports: {} };
|
|
|
9180
9180
|
var R, A = je;
|
|
9181
9181
|
(y ? !no.echoes || jc++ && m === je : !jc || --jc && m === je) || queueMicrotask(y ? (function(V) {
|
|
9182
9182
|
++Kc, no.echoes && --no.echoes != 0 || (no.echoes = no.awaits = no.id = 0), zc.push(je), ln(V, !0);
|
|
9183
|
-
}).bind(null, m) : jt), m !== je && (je = m, A ===
|
|
9183
|
+
}).bind(null, m) : jt), m !== je && (je = m, A === Ne && (Ne.env = Zr()), Ee && (R = Ne.env.Promise, y = m.env, (A.global || m.global) && (Object.defineProperty(r, "Promise", y.PromiseProp), R.all = y.all, R.race = y.race, R.resolve = y.resolve, R.reject = y.reject, y.allSettled && (R.allSettled = y.allSettled), y.any && (R.any = y.any))));
|
|
9184
9184
|
}
|
|
9185
9185
|
function Zr() {
|
|
9186
9186
|
var m = r.Promise;
|
|
@@ -9201,14 +9201,14 @@ var wO = { exports: {} };
|
|
|
9201
9201
|
try {
|
|
9202
9202
|
return m.apply(this, arguments);
|
|
9203
9203
|
} finally {
|
|
9204
|
-
ln(V, !1), A && queueMicrotask(
|
|
9204
|
+
ln(V, !1), A && queueMicrotask(Pe);
|
|
9205
9205
|
}
|
|
9206
9206
|
};
|
|
9207
9207
|
}
|
|
9208
9208
|
function Vi(m) {
|
|
9209
9209
|
Promise === qe && no.echoes === 0 ? jc === 0 ? m() : enqueueNativeMicroTask(m) : setTimeout(m, 0);
|
|
9210
9210
|
}
|
|
9211
|
-
("" + Ks).indexOf("[native code]") === -1 && (Da =
|
|
9211
|
+
("" + Ks).indexOf("[native code]") === -1 && (Da = Pe = Re);
|
|
9212
9212
|
var Rn = tt.reject, yr = "", ls = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", Qd = "String expected.", Rl = [], qc = "__dbnames", eh = "readonly", Yc = "readwrite";
|
|
9213
9213
|
function js(m, y) {
|
|
9214
9214
|
return m ? y ? function() {
|
|
@@ -9270,14 +9270,14 @@ var wO = { exports: {} };
|
|
|
9270
9270
|
try {
|
|
9271
9271
|
var Ce = A && A.db._novip === this.db._novip ? A === je.trans ? A._promise(m, se, R) : Yr(function() {
|
|
9272
9272
|
return A._promise(m, se, R);
|
|
9273
|
-
}, { trans: A, transless: je.transless || je }) : function _e(Ie, fe,
|
|
9273
|
+
}, { trans: A, transless: je.transless || je }) : function _e(Ie, fe, ke, Se) {
|
|
9274
9274
|
if (Ie.idbdb && (Ie._state.openComplete || je.letThrough || Ie._vip)) {
|
|
9275
|
-
var Te = Ie._createTransaction(fe,
|
|
9275
|
+
var Te = Ie._createTransaction(fe, ke, Ie._dbSchema);
|
|
9276
9276
|
try {
|
|
9277
9277
|
Te.create(), Ie._state.PR1398_maxLoop = 3;
|
|
9278
9278
|
} catch (Fe) {
|
|
9279
9279
|
return Fe.name === we.InvalidState && Ie.isOpen() && 0 < --Ie._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), Ie.close({ disableAutoOpen: !1 }), Ie.open().then(function() {
|
|
9280
|
-
return _e(Ie, fe,
|
|
9280
|
+
return _e(Ie, fe, ke, Se);
|
|
9281
9281
|
})) : Rn(Fe);
|
|
9282
9282
|
}
|
|
9283
9283
|
return Te._promise(fe, function(Fe, De) {
|
|
@@ -9300,7 +9300,7 @@ var wO = { exports: {} };
|
|
|
9300
9300
|
Ie.open().catch(Re);
|
|
9301
9301
|
}
|
|
9302
9302
|
return Ie._state.dbReadyPromise.then(function() {
|
|
9303
|
-
return _e(Ie, fe,
|
|
9303
|
+
return _e(Ie, fe, ke, Se);
|
|
9304
9304
|
});
|
|
9305
9305
|
}(this.db, m, [this.name], se);
|
|
9306
9306
|
return Z && (Ce._consoleTask = Z, Ce = Ce.catch(function(_e) {
|
|
@@ -9344,13 +9344,13 @@ var wO = { exports: {} };
|
|
|
9344
9344
|
return rn(ce, Ce) === 0;
|
|
9345
9345
|
}
|
|
9346
9346
|
var se = y.reduce(function(fe, Ce) {
|
|
9347
|
-
var _e = fe[0], Ie = fe[1], fe = A[Ce],
|
|
9347
|
+
var _e = fe[0], Ie = fe[1], fe = A[Ce], ke = m[Ce];
|
|
9348
9348
|
return [_e || fe, _e || !fe ? js(Ie, fe && fe.multi ? function(Se) {
|
|
9349
9349
|
return Se = E(Se, Ce), a(Se) && Se.some(function(Te) {
|
|
9350
|
-
return V(
|
|
9350
|
+
return V(ke, Te);
|
|
9351
9351
|
});
|
|
9352
9352
|
} : function(Se) {
|
|
9353
|
-
return V(
|
|
9353
|
+
return V(ke, E(Se, Ce));
|
|
9354
9354
|
}) : Ie];
|
|
9355
9355
|
}, [null, null]), Z = se[0], se = se[1];
|
|
9356
9356
|
return Z ? this.where(Z.name).equals(m[Z.keyPath]).filter(se) : R ? this.filter(se) : this.where(y).equals("");
|
|
@@ -9464,8 +9464,8 @@ var wO = { exports: {} };
|
|
|
9464
9464
|
if (V && V.length !== m.length) throw new U.InvalidArgument("Arguments objects and keys must have the same length");
|
|
9465
9465
|
var Ce = m.length, _e = _e && ce ? m.map(jp(_e)) : m;
|
|
9466
9466
|
return A.core.mutate({ trans: se, type: "add", keys: V, values: _e, wantResults: Z }).then(function(Te) {
|
|
9467
|
-
var fe = Te.numFailures,
|
|
9468
|
-
if (fe === 0) return Z ?
|
|
9467
|
+
var fe = Te.numFailures, ke = Te.results, Se = Te.lastResult, Te = Te.failures;
|
|
9468
|
+
if (fe === 0) return Z ? ke : Se;
|
|
9469
9469
|
throw new ve("".concat(A.name, ".bulkAdd(): ").concat(fe, " of ").concat(Ce, " operations failed"), Te);
|
|
9470
9470
|
});
|
|
9471
9471
|
});
|
|
@@ -9477,8 +9477,8 @@ var wO = { exports: {} };
|
|
|
9477
9477
|
if (V && V.length !== m.length) throw new U.InvalidArgument("Arguments objects and keys must have the same length");
|
|
9478
9478
|
var Ce = m.length, _e = _e && ce ? m.map(jp(_e)) : m;
|
|
9479
9479
|
return A.core.mutate({ trans: se, type: "put", keys: V, values: _e, wantResults: Z }).then(function(Te) {
|
|
9480
|
-
var fe = Te.numFailures,
|
|
9481
|
-
if (fe === 0) return Z ?
|
|
9480
|
+
var fe = Te.numFailures, ke = Te.results, Se = Te.lastResult, Te = Te.failures;
|
|
9481
|
+
if (fe === 0) return Z ? ke : Se;
|
|
9482
9482
|
throw new ve("".concat(A.name, ".bulkPut(): ").concat(fe, " of ").concat(Ce, " operations failed"), Te);
|
|
9483
9483
|
});
|
|
9484
9484
|
});
|
|
@@ -9491,27 +9491,27 @@ var wO = { exports: {} };
|
|
|
9491
9491
|
return this._trans("readwrite", function(se) {
|
|
9492
9492
|
return R.getMany({ trans: se, keys: A, cache: "clone" }).then(function(ce) {
|
|
9493
9493
|
var Ce = [], _e = [];
|
|
9494
|
-
m.forEach(function(fe,
|
|
9495
|
-
var Se = fe.key, Te = fe.changes, Fe = ce[
|
|
9494
|
+
m.forEach(function(fe, ke) {
|
|
9495
|
+
var Se = fe.key, Te = fe.changes, Fe = ce[ke];
|
|
9496
9496
|
if (Fe) {
|
|
9497
|
-
for (var De = 0,
|
|
9498
|
-
var Be =
|
|
9497
|
+
for (var De = 0, Le = Object.keys(Te); De < Le.length; De++) {
|
|
9498
|
+
var Be = Le[De], He = Te[Be];
|
|
9499
9499
|
if (Be === y.schema.primKey.keyPath) {
|
|
9500
9500
|
if (rn(He, Se) !== 0) throw new U.Constraint("Cannot update primary key in bulkUpdate()");
|
|
9501
9501
|
} else I(Fe, Be, He);
|
|
9502
9502
|
}
|
|
9503
|
-
Z.push(
|
|
9503
|
+
Z.push(ke), Ce.push(Se), _e.push(Fe);
|
|
9504
9504
|
}
|
|
9505
9505
|
});
|
|
9506
9506
|
var Ie = Ce.length;
|
|
9507
9507
|
return R.mutate({ trans: se, type: "put", keys: Ce, values: _e, updates: { keys: A, changeSpecs: V } }).then(function(fe) {
|
|
9508
|
-
var
|
|
9509
|
-
if (
|
|
9508
|
+
var ke = fe.numFailures, Se = fe.failures;
|
|
9509
|
+
if (ke === 0) return Ie;
|
|
9510
9510
|
for (var Te = 0, Fe = Object.keys(Se); Te < Fe.length; Te++) {
|
|
9511
|
-
var De,
|
|
9512
|
-
Be != null && (De = Se[
|
|
9511
|
+
var De, Le = Fe[Te], Be = Z[Number(Le)];
|
|
9512
|
+
Be != null && (De = Se[Le], delete Se[Le], Se[Be] = De);
|
|
9513
9513
|
}
|
|
9514
|
-
throw new ve("".concat(y.name, ".bulkUpdate(): ").concat(
|
|
9514
|
+
throw new ve("".concat(y.name, ".bulkUpdate(): ").concat(ke, " of ").concat(Ie, " operations failed"), Se);
|
|
9515
9515
|
});
|
|
9516
9516
|
});
|
|
9517
9517
|
});
|
|
@@ -9546,17 +9546,17 @@ var wO = { exports: {} };
|
|
|
9546
9546
|
var Ie = { subscribers: [], fire: Ce = Ce || Re, subscribe: function(fe) {
|
|
9547
9547
|
Ie.subscribers.indexOf(fe) === -1 && (Ie.subscribers.push(fe), Ie.fire = ce(Ie.fire, fe));
|
|
9548
9548
|
}, unsubscribe: function(fe) {
|
|
9549
|
-
Ie.subscribers = Ie.subscribers.filter(function(
|
|
9550
|
-
return
|
|
9549
|
+
Ie.subscribers = Ie.subscribers.filter(function(ke) {
|
|
9550
|
+
return ke !== fe;
|
|
9551
9551
|
}), Ie.fire = Ie.subscribers.reduce(ce, Ce);
|
|
9552
9552
|
} };
|
|
9553
9553
|
return R[se] = y[se] = Ie;
|
|
9554
9554
|
}
|
|
9555
9555
|
i(_e = se).forEach(function(fe) {
|
|
9556
|
-
var
|
|
9557
|
-
if (a(
|
|
9556
|
+
var ke = _e[fe];
|
|
9557
|
+
if (a(ke)) Z(fe, _e[fe][0], _e[fe][1]);
|
|
9558
9558
|
else {
|
|
9559
|
-
if (
|
|
9559
|
+
if (ke !== "asap") throw new U.InvalidArgument("Invalid event config");
|
|
9560
9560
|
var Se = Z(fe, G, function() {
|
|
9561
9561
|
for (var Te = arguments.length, Fe = new Array(Te); Te--; ) Fe[Te] = arguments[Te];
|
|
9562
9562
|
Se.subscribers.forEach(function(De) {
|
|
@@ -9599,10 +9599,10 @@ var wO = { exports: {} };
|
|
|
9599
9599
|
if (m.or) {
|
|
9600
9600
|
var Z = {}, se = function(ce, Ce, _e) {
|
|
9601
9601
|
var Ie, fe;
|
|
9602
|
-
V && !V(Ce, _e, function(
|
|
9603
|
-
return Ce.stop(
|
|
9604
|
-
}, function(
|
|
9605
|
-
return Ce.fail(
|
|
9602
|
+
V && !V(Ce, _e, function(ke) {
|
|
9603
|
+
return Ce.stop(ke);
|
|
9604
|
+
}, function(ke) {
|
|
9605
|
+
return Ce.fail(ke);
|
|
9606
9606
|
}) || ((fe = "" + (Ie = Ce.primaryKey)) == "[object ArrayBuffer]" && (fe = "" + new Uint8Array(Ie)), d(Z, fe) || (Z[fe] = !0, y(ce, Ce, _e)));
|
|
9607
9607
|
};
|
|
9608
9608
|
return Promise.all([m.or._iterate(se, R), MR(OR(m, A, R), m.algorithm, se, !m.keysOnly && m.valueMapper)]);
|
|
@@ -9826,15 +9826,15 @@ var wO = { exports: {} };
|
|
|
9826
9826
|
return this._write(function(A) {
|
|
9827
9827
|
var V, Z, se;
|
|
9828
9828
|
se = typeof m == "function" ? m : (V = i(m), Z = V.length, function(De) {
|
|
9829
|
-
for (var
|
|
9829
|
+
for (var Le = !1, Be = 0; Be < Z; ++Be) {
|
|
9830
9830
|
var He = V[Be], Ye = m[He], rt = E(De, He);
|
|
9831
|
-
Ye instanceof oh ? (I(De, He, Ye.execute(rt)),
|
|
9831
|
+
Ye instanceof oh ? (I(De, He, Ye.execute(rt)), Le = !0) : rt !== Ye && (I(De, He, Ye), Le = !0);
|
|
9832
9832
|
}
|
|
9833
|
-
return
|
|
9833
|
+
return Le;
|
|
9834
9834
|
});
|
|
9835
9835
|
var ce = R.table.core, fe = ce.schema.primaryKey, Ce = fe.outbound, _e = fe.extractKey, Ie = 200, fe = y.db._options.modifyChunkSize;
|
|
9836
9836
|
fe && (Ie = typeof fe == "object" ? fe[ce.name] || fe["*"] || 200 : fe);
|
|
9837
|
-
function
|
|
9837
|
+
function ke(De, He) {
|
|
9838
9838
|
var Be = He.failures, He = He.numFailures;
|
|
9839
9839
|
Te += De - He;
|
|
9840
9840
|
for (var Ye = 0, rt = i(Be); Ye < rt.length; Ye++) {
|
|
@@ -9844,7 +9844,7 @@ var wO = { exports: {} };
|
|
|
9844
9844
|
}
|
|
9845
9845
|
var Se = [], Te = 0, Fe = [];
|
|
9846
9846
|
return y.clone().primaryKeys().then(function(De) {
|
|
9847
|
-
function
|
|
9847
|
+
function Le(He) {
|
|
9848
9848
|
var Ye = Math.min(Ie, De.length - He);
|
|
9849
9849
|
return ce.getMany({ trans: A, keys: De.slice(He, He + Ye), cache: "immutable" }).then(function(rt) {
|
|
9850
9850
|
for (var gt = [], it = [], ct = Ce ? [] : null, bt = [], pt = 0; pt < Ye; ++pt) {
|
|
@@ -9853,22 +9853,22 @@ var wO = { exports: {} };
|
|
|
9853
9853
|
}
|
|
9854
9854
|
return Promise.resolve(0 < gt.length && ce.mutate({ trans: A, type: "add", values: gt }).then(function(nn) {
|
|
9855
9855
|
for (var on in nn.failures) bt.splice(parseInt(on), 1);
|
|
9856
|
-
|
|
9856
|
+
ke(gt.length, nn);
|
|
9857
9857
|
})).then(function() {
|
|
9858
9858
|
return (0 < it.length || Be && typeof m == "object") && ce.mutate({ trans: A, type: "put", keys: ct, values: it, criteria: Be, changeSpec: typeof m != "function" && m, isAdditionalChunk: 0 < He }).then(function(nn) {
|
|
9859
|
-
return
|
|
9859
|
+
return ke(it.length, nn);
|
|
9860
9860
|
});
|
|
9861
9861
|
}).then(function() {
|
|
9862
9862
|
return (0 < bt.length || Be && m === yw) && ce.mutate({ trans: A, type: "delete", keys: bt, criteria: Be, isAdditionalChunk: 0 < He }).then(function(nn) {
|
|
9863
|
-
return
|
|
9863
|
+
return ke(bt.length, nn);
|
|
9864
9864
|
});
|
|
9865
9865
|
}).then(function() {
|
|
9866
|
-
return De.length > He + Ye &&
|
|
9866
|
+
return De.length > He + Ye && Le(He + Ie);
|
|
9867
9867
|
});
|
|
9868
9868
|
});
|
|
9869
9869
|
}
|
|
9870
9870
|
var Be = Zc(R) && R.limit === 1 / 0 && (typeof m != "function" || m === yw) && { index: R.index, range: R.range };
|
|
9871
|
-
return
|
|
9871
|
+
return Le(0).then(function() {
|
|
9872
9872
|
if (0 < Se.length) throw new pe("Error modifying one or more objects", Se, Te, Fe);
|
|
9873
9873
|
return De.length;
|
|
9874
9874
|
});
|
|
@@ -9913,7 +9913,7 @@ var wO = { exports: {} };
|
|
|
9913
9913
|
if (!R.every(function(Te) {
|
|
9914
9914
|
return typeof Te == "string";
|
|
9915
9915
|
})) return bs(m, Qd);
|
|
9916
|
-
function
|
|
9916
|
+
function ke(Te) {
|
|
9917
9917
|
V = Te === "next" ? function(De) {
|
|
9918
9918
|
return De.toUpperCase();
|
|
9919
9919
|
} : function(De) {
|
|
@@ -9925,8 +9925,8 @@ var wO = { exports: {} };
|
|
|
9925
9925
|
}, se = Te === "next" ? gH : mH;
|
|
9926
9926
|
var Fe = R.map(function(De) {
|
|
9927
9927
|
return { lower: Z(De), upper: V(De) };
|
|
9928
|
-
}).sort(function(De,
|
|
9929
|
-
return se(De.lower,
|
|
9928
|
+
}).sort(function(De, Le) {
|
|
9929
|
+
return se(De.lower, Le.lower);
|
|
9930
9930
|
});
|
|
9931
9931
|
ce = Fe.map(function(De) {
|
|
9932
9932
|
return De.upper;
|
|
@@ -9934,16 +9934,16 @@ var wO = { exports: {} };
|
|
|
9934
9934
|
return De.lower;
|
|
9935
9935
|
}), Ie = (_e = Te) === "next" ? "" : A;
|
|
9936
9936
|
}
|
|
9937
|
-
|
|
9937
|
+
ke("next"), m = new m.Collection(m, function() {
|
|
9938
9938
|
return Ta(ce[0], Ce[fe - 1] + A);
|
|
9939
9939
|
}), m._ondirectionchange = function(Te) {
|
|
9940
|
-
|
|
9940
|
+
ke(Te);
|
|
9941
9941
|
};
|
|
9942
9942
|
var Se = 0;
|
|
9943
9943
|
return m._addAlgorithm(function(Te, Fe, De) {
|
|
9944
|
-
var
|
|
9945
|
-
if (typeof
|
|
9946
|
-
var Be = Z(
|
|
9944
|
+
var Le = Te.key;
|
|
9945
|
+
if (typeof Le != "string") return !1;
|
|
9946
|
+
var Be = Z(Le);
|
|
9947
9947
|
if (y(Be, Ce, Se)) return !0;
|
|
9948
9948
|
for (var He = null, Ye = Se; Ye < fe; ++Ye) {
|
|
9949
9949
|
var rt = function(gt, it, ct, bt, pt, Rt) {
|
|
@@ -9953,7 +9953,7 @@ var wO = { exports: {} };
|
|
|
9953
9953
|
pt(gt[on], Ss) < 0 && (nn = on);
|
|
9954
9954
|
}
|
|
9955
9955
|
return Yt < bt.length && Rt === "next" ? gt + ct.substr(gt.length) : Yt < gt.length && Rt === "prev" ? gt.substr(0, ct.length) : nn < 0 ? null : gt.substr(0, nn) + bt[nn] + ct.substr(nn + 1);
|
|
9956
|
-
}(
|
|
9956
|
+
}(Le, Be, ce[Ye], Ce[Ye], se, _e);
|
|
9957
9957
|
rt === null && He === null ? Se = Ye + 1 : (He === null || 0 < se(He, rt)) && (He = rt);
|
|
9958
9958
|
}
|
|
9959
9959
|
return Fe(He !== null ? function() {
|
|
@@ -10055,18 +10055,18 @@ var wO = { exports: {} };
|
|
|
10055
10055
|
return R ? R.concat([[R[R.length - 1][1], A]]) : [[-1 / 0, A]];
|
|
10056
10056
|
}, null);
|
|
10057
10057
|
return y.push([m[m.length - 1], this.db._maxKey]), this.inAnyRange(y, { includeLowers: !1, includeUppers: !1 });
|
|
10058
|
-
}, Eo.prototype.inAnyRange = function(
|
|
10058
|
+
}, Eo.prototype.inAnyRange = function(Le, y) {
|
|
10059
10059
|
var R = this, A = this._cmp, V = this._ascending, Z = this._descending, se = this._min, ce = this._max;
|
|
10060
|
-
if (
|
|
10061
|
-
if (!
|
|
10060
|
+
if (Le.length === 0) return Xc(this);
|
|
10061
|
+
if (!Le.every(function(Be) {
|
|
10062
10062
|
return Be[0] !== void 0 && Be[1] !== void 0 && V(Be[0], Be[1]) <= 0;
|
|
10063
10063
|
})) return bs(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", U.InvalidArgument);
|
|
10064
10064
|
var Ce = !y || y.includeLowers !== !1, _e = y && y.includeUppers === !0, Ie, fe = V;
|
|
10065
|
-
function
|
|
10065
|
+
function ke(Be, He) {
|
|
10066
10066
|
return fe(Be[0], He[0]);
|
|
10067
10067
|
}
|
|
10068
10068
|
try {
|
|
10069
|
-
(Ie =
|
|
10069
|
+
(Ie = Le.reduce(function(Be, He) {
|
|
10070
10070
|
for (var Ye = 0, rt = Be.length; Ye < rt; ++Ye) {
|
|
10071
10071
|
var gt = Be[Ye];
|
|
10072
10072
|
if (A(He[0], gt[1]) < 0 && 0 < A(He[1], gt[0])) {
|
|
@@ -10075,7 +10075,7 @@ var wO = { exports: {} };
|
|
|
10075
10075
|
}
|
|
10076
10076
|
}
|
|
10077
10077
|
return Ye === rt && Be.push(He), Be;
|
|
10078
|
-
}, [])).sort(
|
|
10078
|
+
}, [])).sort(ke);
|
|
10079
10079
|
} catch {
|
|
10080
10080
|
return bs(this, ls);
|
|
10081
10081
|
}
|
|
@@ -10087,17 +10087,17 @@ var wO = { exports: {} };
|
|
|
10087
10087
|
return 0 < Z(Be, Ie[Se][0]);
|
|
10088
10088
|
} : function(Be) {
|
|
10089
10089
|
return 0 <= Z(Be, Ie[Se][0]);
|
|
10090
|
-
}, De = Te,
|
|
10090
|
+
}, De = Te, Le = new this.Collection(this, function() {
|
|
10091
10091
|
return Ta(Ie[0][0], Ie[Ie.length - 1][1], !Ce, !_e);
|
|
10092
10092
|
});
|
|
10093
|
-
return
|
|
10094
|
-
fe = Be === "next" ? (De = Te, V) : (De = Fe, Z), Ie.sort(
|
|
10095
|
-
},
|
|
10093
|
+
return Le._ondirectionchange = function(Be) {
|
|
10094
|
+
fe = Be === "next" ? (De = Te, V) : (De = Fe, Z), Ie.sort(ke);
|
|
10095
|
+
}, Le._addAlgorithm(function(Be, He, Ye) {
|
|
10096
10096
|
for (var rt, gt = Be.key; De(gt); ) if (++Se === Ie.length) return He(Ye), !1;
|
|
10097
10097
|
return !Te(rt = gt) && !Fe(rt) || (R._cmp(gt, Ie[Se][1]) === 0 || R._cmp(gt, Ie[Se][0]) === 0 || He(function() {
|
|
10098
10098
|
fe === V ? Be.continue(Ie[Se][0]) : Be.continue(Ie[Se][1]);
|
|
10099
10099
|
}), !1);
|
|
10100
|
-
}),
|
|
10100
|
+
}), Le;
|
|
10101
10101
|
}, Eo.prototype.startsWithAnyOf = function() {
|
|
10102
10102
|
var m = ee.apply(ae, arguments);
|
|
10103
10103
|
return m.every(function(y) {
|
|
@@ -10254,14 +10254,14 @@ var wO = { exports: {} };
|
|
|
10254
10254
|
var Se = De.lower, Te = De.upper, Fe = De.lowerOpen, De = De.upperOpen;
|
|
10255
10255
|
return Se === void 0 ? Te === void 0 ? null : y.upperBound(Te, !!De) : Te === void 0 ? y.lowerBound(Se, !!Fe) : y.bound(Se, Te, !!Fe, !!De);
|
|
10256
10256
|
}
|
|
10257
|
-
function V(
|
|
10258
|
-
var Se, Te =
|
|
10259
|
-
return { name: Te, schema:
|
|
10260
|
-
var De = Fe.trans,
|
|
10257
|
+
function V(ke) {
|
|
10258
|
+
var Se, Te = ke.name;
|
|
10259
|
+
return { name: Te, schema: ke, mutate: function(Fe) {
|
|
10260
|
+
var De = Fe.trans, Le = Fe.type, Be = Fe.keys, He = Fe.values, Ye = Fe.range;
|
|
10261
10261
|
return new Promise(function(rt, gt) {
|
|
10262
10262
|
rt = xn(rt);
|
|
10263
|
-
var it = De.objectStore(Te), ct = it.keyPath == null, bt =
|
|
10264
|
-
if (!bt &&
|
|
10263
|
+
var it = De.objectStore(Te), ct = it.keyPath == null, bt = Le === "put" || Le === "add";
|
|
10264
|
+
if (!bt && Le !== "delete" && Le !== "deleteRange") throw new Error("Invalid operation type: " + Le);
|
|
10265
10265
|
var pt, Rt = (Be || He || { length: 1 }).length;
|
|
10266
10266
|
if (Be && He && Be.length !== He.length) throw new Error("Given keys array must have same length as given values array.");
|
|
10267
10267
|
if (Rt === 0) return rt({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
|
|
@@ -10269,18 +10269,18 @@ var wO = { exports: {} };
|
|
|
10269
10269
|
++Ss, sh(Jo);
|
|
10270
10270
|
}
|
|
10271
10271
|
var nn = [], on = [], Ss = 0;
|
|
10272
|
-
if (
|
|
10272
|
+
if (Le === "deleteRange") {
|
|
10273
10273
|
if (Ye.type === 4) return rt({ numFailures: Ss, failures: on, results: [], lastResult: void 0 });
|
|
10274
10274
|
Ye.type === 3 ? nn.push(pt = it.clear()) : nn.push(pt = it.delete(A(Ye)));
|
|
10275
10275
|
} else {
|
|
10276
10276
|
var ct = bt ? ct ? [He, Be] : [He, null] : [Be, null], Kt = ct[0], Bo = ct[1];
|
|
10277
|
-
if (bt) for (var $o = 0; $o < Rt; ++$o) nn.push(pt = Bo && Bo[$o] !== void 0 ? it[
|
|
10278
|
-
else for ($o = 0; $o < Rt; ++$o) nn.push(pt = it[
|
|
10277
|
+
if (bt) for (var $o = 0; $o < Rt; ++$o) nn.push(pt = Bo && Bo[$o] !== void 0 ? it[Le](Kt[$o], Bo[$o]) : it[Le](Kt[$o])), pt.onerror = Yt;
|
|
10278
|
+
else for ($o = 0; $o < Rt; ++$o) nn.push(pt = it[Le](Kt[$o])), pt.onerror = Yt;
|
|
10279
10279
|
}
|
|
10280
10280
|
function lg(Jo) {
|
|
10281
10281
|
Jo = Jo.target.result, nn.forEach(function(Il, $w) {
|
|
10282
10282
|
return Il.error != null && (on[$w] = Il.error);
|
|
10283
|
-
}), rt({ numFailures: Ss, failures: on, results:
|
|
10283
|
+
}), rt({ numFailures: Ss, failures: on, results: Le === "delete" ? Be : nn.map(function(Il) {
|
|
10284
10284
|
return Il.result;
|
|
10285
10285
|
}), lastResult: Jo });
|
|
10286
10286
|
}
|
|
@@ -10289,40 +10289,40 @@ var wO = { exports: {} };
|
|
|
10289
10289
|
}, pt.onsuccess = lg;
|
|
10290
10290
|
});
|
|
10291
10291
|
}, getMany: function(Fe) {
|
|
10292
|
-
var De = Fe.trans,
|
|
10292
|
+
var De = Fe.trans, Le = Fe.keys;
|
|
10293
10293
|
return new Promise(function(Be, He) {
|
|
10294
10294
|
Be = xn(Be);
|
|
10295
|
-
for (var Ye, rt = De.objectStore(Te), gt =
|
|
10295
|
+
for (var Ye, rt = De.objectStore(Te), gt = Le.length, it = new Array(gt), ct = 0, bt = 0, pt = function(nn) {
|
|
10296
10296
|
nn = nn.target, it[nn._pos] = nn.result, ++bt === ct && Be(it);
|
|
10297
|
-
}, Rt = Xr(He), Yt = 0; Yt < gt; ++Yt)
|
|
10297
|
+
}, Rt = Xr(He), Yt = 0; Yt < gt; ++Yt) Le[Yt] != null && ((Ye = rt.get(Le[Yt]))._pos = Yt, Ye.onsuccess = pt, Ye.onerror = Rt, ++ct);
|
|
10298
10298
|
ct === 0 && Be(it);
|
|
10299
10299
|
});
|
|
10300
10300
|
}, get: function(Fe) {
|
|
10301
|
-
var De = Fe.trans,
|
|
10301
|
+
var De = Fe.trans, Le = Fe.key;
|
|
10302
10302
|
return new Promise(function(Be, He) {
|
|
10303
10303
|
Be = xn(Be);
|
|
10304
|
-
var Ye = De.objectStore(Te).get(
|
|
10304
|
+
var Ye = De.objectStore(Te).get(Le);
|
|
10305
10305
|
Ye.onsuccess = function(rt) {
|
|
10306
10306
|
return Be(rt.target.result);
|
|
10307
10307
|
}, Ye.onerror = Xr(He);
|
|
10308
10308
|
});
|
|
10309
10309
|
}, query: (Se = _e, function(Fe) {
|
|
10310
|
-
return new Promise(function(De,
|
|
10310
|
+
return new Promise(function(De, Le) {
|
|
10311
10311
|
De = xn(De);
|
|
10312
10312
|
var Be, He, Ye, ct = Fe.trans, rt = Fe.values, gt = Fe.limit, pt = Fe.query, it = gt === 1 / 0 ? void 0 : gt, bt = pt.index, pt = pt.range, ct = ct.objectStore(Te), bt = bt.isPrimaryKey ? ct : ct.index(bt.name), pt = A(pt);
|
|
10313
10313
|
if (gt === 0) return De({ result: [] });
|
|
10314
10314
|
Se ? ((it = rt ? bt.getAll(pt, it) : bt.getAllKeys(pt, it)).onsuccess = function(Rt) {
|
|
10315
10315
|
return De({ result: Rt.target.result });
|
|
10316
|
-
}, it.onerror = Xr(
|
|
10316
|
+
}, it.onerror = Xr(Le)) : (Be = 0, He = !rt && "openKeyCursor" in bt ? bt.openKeyCursor(pt) : bt.openCursor(pt), Ye = [], He.onsuccess = function(Rt) {
|
|
10317
10317
|
var Yt = He.result;
|
|
10318
10318
|
return Yt ? (Ye.push(rt ? Yt.value : Yt.primaryKey), ++Be === gt ? De({ result: Ye }) : void Yt.continue()) : De({ result: Ye });
|
|
10319
|
-
}, He.onerror = Xr(
|
|
10319
|
+
}, He.onerror = Xr(Le));
|
|
10320
10320
|
});
|
|
10321
10321
|
}), openCursor: function(Fe) {
|
|
10322
|
-
var De = Fe.trans,
|
|
10322
|
+
var De = Fe.trans, Le = Fe.values, Be = Fe.query, He = Fe.reverse, Ye = Fe.unique;
|
|
10323
10323
|
return new Promise(function(rt, gt) {
|
|
10324
10324
|
rt = xn(rt);
|
|
10325
|
-
var bt = Be.index, it = Be.range, ct = De.objectStore(Te), ct = bt.isPrimaryKey ? ct : ct.index(bt.name), bt = He ? Ye ? "prevunique" : "prev" : Ye ? "nextunique" : "next", pt = !
|
|
10325
|
+
var bt = Be.index, it = Be.range, ct = De.objectStore(Te), ct = bt.isPrimaryKey ? ct : ct.index(bt.name), bt = He ? Ye ? "prevunique" : "prev" : Ye ? "nextunique" : "next", pt = !Le && "openKeyCursor" in ct ? ct.openKeyCursor(A(it), bt) : ct.openCursor(A(it), bt);
|
|
10326
10326
|
pt.onerror = Xr(gt), pt.onsuccess = xn(function(Rt) {
|
|
10327
10327
|
var Yt, nn, on, Ss, Kt = pt.result;
|
|
10328
10328
|
Kt ? (Kt.___id = ++yH, Kt.done = !1, Yt = Kt.continue.bind(Kt), nn = (nn = Kt.continuePrimaryKey) && nn.bind(Kt), on = Kt.advance.bind(Kt), Ss = function() {
|
|
@@ -10359,33 +10359,33 @@ var wO = { exports: {} };
|
|
|
10359
10359
|
}, gt);
|
|
10360
10360
|
});
|
|
10361
10361
|
}, count: function(Fe) {
|
|
10362
|
-
var De = Fe.query,
|
|
10362
|
+
var De = Fe.query, Le = Fe.trans, Be = De.index, He = De.range;
|
|
10363
10363
|
return new Promise(function(Ye, rt) {
|
|
10364
|
-
var gt =
|
|
10364
|
+
var gt = Le.objectStore(Te), it = Be.isPrimaryKey ? gt : gt.index(Be.name), gt = A(He), it = gt ? it.count(gt) : it.count();
|
|
10365
10365
|
it.onsuccess = xn(function(ct) {
|
|
10366
10366
|
return Ye(ct.target.result);
|
|
10367
10367
|
}), it.onerror = Xr(rt);
|
|
10368
10368
|
});
|
|
10369
10369
|
} };
|
|
10370
10370
|
}
|
|
10371
|
-
var Z, se, ce, Ie = (se = Ce, ce = $R((Z = m).objectStoreNames), { schema: { name: Z.name, tables: ce.map(function(
|
|
10372
|
-
return se.objectStore(
|
|
10373
|
-
}).map(function(
|
|
10374
|
-
var Se =
|
|
10375
|
-
return
|
|
10371
|
+
var Z, se, ce, Ie = (se = Ce, ce = $R((Z = m).objectStoreNames), { schema: { name: Z.name, tables: ce.map(function(ke) {
|
|
10372
|
+
return se.objectStore(ke);
|
|
10373
|
+
}).map(function(ke) {
|
|
10374
|
+
var Se = ke.keyPath, De = ke.autoIncrement, Te = a(Se), Fe = {}, De = { name: ke.name, primaryKey: { name: null, isPrimaryKey: !0, outbound: Se == null, compound: Te, keyPath: Se, autoIncrement: De, unique: !0, extractKey: Sw(Se) }, indexes: $R(ke.indexNames).map(function(Le) {
|
|
10375
|
+
return ke.index(Le);
|
|
10376
10376
|
}).map(function(Ye) {
|
|
10377
10377
|
var Be = Ye.name, He = Ye.unique, rt = Ye.multiEntry, Ye = Ye.keyPath, rt = { name: Be, compound: a(Ye), keyPath: Ye, unique: He, multiEntry: rt, extractKey: Sw(Ye) };
|
|
10378
10378
|
return Fe[ah(Ye)] = rt;
|
|
10379
|
-
}), getIndexByKeyPath: function(
|
|
10380
|
-
return Fe[ah(
|
|
10379
|
+
}), getIndexByKeyPath: function(Le) {
|
|
10380
|
+
return Fe[ah(Le)];
|
|
10381
10381
|
} };
|
|
10382
10382
|
return Fe[":id"] = De.primaryKey, Se != null && (Fe[ah(Se)] = De.primaryKey), De;
|
|
10383
10383
|
}) }, hasGetAll: 0 < ce.length && "getAll" in se.objectStore(ce[0]) && !(typeof navigator < "u" && /Safari/.test(navigator.userAgent) && !/(Chrome\/|Edge\/)/.test(navigator.userAgent) && [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) }), Ce = Ie.schema, _e = Ie.hasGetAll, Ie = Ce.tables.map(V), fe = {};
|
|
10384
|
-
return Ie.forEach(function(
|
|
10385
|
-
return fe[
|
|
10386
|
-
}), { stack: "dbcore", transaction: m.transaction.bind(m), table: function(
|
|
10387
|
-
if (!fe[
|
|
10388
|
-
return fe[
|
|
10384
|
+
return Ie.forEach(function(ke) {
|
|
10385
|
+
return fe[ke.name] = ke;
|
|
10386
|
+
}), { stack: "dbcore", transaction: m.transaction.bind(m), table: function(ke) {
|
|
10387
|
+
if (!fe[ke]) throw new Error("Table '".concat(ke, "' not found"));
|
|
10388
|
+
return fe[ke];
|
|
10389
10389
|
}, MIN_KEY: -1 / 0, MAX_KEY: ih(y), schema: Ce };
|
|
10390
10390
|
}
|
|
10391
10391
|
function CH(m, y, R, A) {
|
|
@@ -10436,11 +10436,11 @@ var wO = { exports: {} };
|
|
|
10436
10436
|
return je.trans = Z, je.transless = ce, y !== 0 ? (Zp(m, R), _e = y, ((Ce = Z).storeNames.includes("$meta") ? Ce.table("$meta").get("version").then(function(Ie) {
|
|
10437
10437
|
return Ie ?? _e;
|
|
10438
10438
|
}) : tt.resolve(_e)).then(function(Ie) {
|
|
10439
|
-
return
|
|
10440
|
-
return
|
|
10441
|
-
})).length !== 0 ? (Ie.forEach(function(
|
|
10439
|
+
return ke = Ie, Se = Z, Te = R, Fe = [], Ie = (fe = m)._versions, De = fe._dbSchema = Qp(0, fe.idbdb, Te), (Ie = Ie.filter(function(Le) {
|
|
10440
|
+
return Le._cfg.version >= ke;
|
|
10441
|
+
})).length !== 0 ? (Ie.forEach(function(Le) {
|
|
10442
10442
|
Fe.push(function() {
|
|
10443
|
-
var Be = De, He =
|
|
10443
|
+
var Be = De, He = Le._cfg.dbschema;
|
|
10444
10444
|
eg(fe, Be, Te), eg(fe, He, Te), De = fe._dbSchema = He;
|
|
10445
10445
|
var Ye = _w(Be, He);
|
|
10446
10446
|
Ye.add.forEach(function(bt) {
|
|
@@ -10456,8 +10456,8 @@ var wO = { exports: {} };
|
|
|
10456
10456
|
return pt.deleteIndex(Rt);
|
|
10457
10457
|
});
|
|
10458
10458
|
});
|
|
10459
|
-
var rt =
|
|
10460
|
-
if (rt &&
|
|
10459
|
+
var rt = Le._cfg.contentUpgrade;
|
|
10460
|
+
if (rt && Le._cfg.version > ke) {
|
|
10461
10461
|
Zp(fe, Te), Se._memoizedTables = {};
|
|
10462
10462
|
var gt = T(He);
|
|
10463
10463
|
Ye.del.forEach(function(bt) {
|
|
@@ -10466,27 +10466,27 @@ var wO = { exports: {} };
|
|
|
10466
10466
|
var it, ct = X(rt);
|
|
10467
10467
|
return ct && Da(), Ye = tt.follow(function() {
|
|
10468
10468
|
var bt;
|
|
10469
|
-
(it = rt(Se)) && ct && (bt =
|
|
10469
|
+
(it = rt(Se)) && ct && (bt = Pe.bind(null, null), it.then(bt, bt));
|
|
10470
10470
|
}), it && typeof it.then == "function" ? tt.resolve(it) : Ye.then(function() {
|
|
10471
10471
|
return it;
|
|
10472
10472
|
});
|
|
10473
10473
|
}
|
|
10474
10474
|
}), Fe.push(function(Be) {
|
|
10475
|
-
var He, Ye, rt =
|
|
10475
|
+
var He, Ye, rt = Le._cfg.dbschema;
|
|
10476
10476
|
He = rt, Ye = Be, [].slice.call(Ye.db.objectStoreNames).forEach(function(gt) {
|
|
10477
10477
|
return He[gt] == null && Ye.db.deleteObjectStore(gt);
|
|
10478
10478
|
}), Ew(fe, [fe.Transaction.prototype]), Xp(fe, [fe.Transaction.prototype], fe._storeNames, fe._dbSchema), Se.schema = fe._dbSchema;
|
|
10479
10479
|
}), Fe.push(function(Be) {
|
|
10480
|
-
fe.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(fe.idbdb.version / 10) ===
|
|
10480
|
+
fe.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(fe.idbdb.version / 10) === Le._cfg.version ? (fe.idbdb.deleteObjectStore("$meta"), delete fe._dbSchema.$meta, fe._storeNames = fe._storeNames.filter(function(He) {
|
|
10481
10481
|
return He !== "$meta";
|
|
10482
|
-
})) : Be.objectStore("$meta").put(
|
|
10482
|
+
})) : Be.objectStore("$meta").put(Le._cfg.version, "version"));
|
|
10483
10483
|
});
|
|
10484
|
-
}), function
|
|
10485
|
-
return Fe.length ? tt.resolve(Fe.shift()(Se.idbtrans)).then(
|
|
10484
|
+
}), function Le() {
|
|
10485
|
+
return Fe.length ? tt.resolve(Fe.shift()(Se.idbtrans)).then(Le) : tt.resolve();
|
|
10486
10486
|
}().then(function() {
|
|
10487
10487
|
HR(De, Te);
|
|
10488
10488
|
})) : tt.resolve();
|
|
10489
|
-
var fe,
|
|
10489
|
+
var fe, ke, Se, Te, Fe, De;
|
|
10490
10490
|
}).catch(se)) : (i(V).forEach(function(Ie) {
|
|
10491
10491
|
Rw(R, Ie, V[Ie].primKey, V[Ie].indexes);
|
|
10492
10492
|
}), Zp(m, R), void tt.follow(function() {
|
|
@@ -10721,10 +10721,10 @@ var wO = { exports: {} };
|
|
|
10721
10721
|
function jR(m, y, R, A) {
|
|
10722
10722
|
for (var V = [], Z = 0, se = Object.entries(m.queries.query); Z < se.length; Z++) {
|
|
10723
10723
|
for (var ce = se[Z], Ce = ce[0], _e = [], Ie = 0, fe = ce[1]; Ie < fe.length; Ie++) {
|
|
10724
|
-
var
|
|
10725
|
-
Fw(y,
|
|
10724
|
+
var ke = fe[Ie];
|
|
10725
|
+
Fw(y, ke.obsSet) ? ke.subscribers.forEach(function(De) {
|
|
10726
10726
|
return R.add(De);
|
|
10727
|
-
}) : A && _e.push(
|
|
10727
|
+
}) : A && _e.push(ke);
|
|
10728
10728
|
}
|
|
10729
10729
|
A && V.push([Ce, _e]);
|
|
10730
10730
|
}
|
|
@@ -10744,24 +10744,24 @@ var wO = { exports: {} };
|
|
|
10744
10744
|
if (y.openCanceller !== A) throw new U.DatabaseClosed("db.open() was cancelled");
|
|
10745
10745
|
}
|
|
10746
10746
|
function ce() {
|
|
10747
|
-
return new tt(function(
|
|
10747
|
+
return new tt(function(ke, Se) {
|
|
10748
10748
|
if (se(), !R) throw new U.MissingAPI();
|
|
10749
10749
|
var Te = m.name, Fe = y.autoSchema || !V ? R.open(Te) : R.open(Te, V);
|
|
10750
10750
|
if (!Fe) throw new U.MissingAPI();
|
|
10751
10751
|
Fe.onerror = Xr(Se), Fe.onblocked = xn(m._fireOnBlocked), Fe.onupgradeneeded = xn(function(De) {
|
|
10752
|
-
var
|
|
10753
|
-
Ie = Fe.transaction, y.autoSchema && !m._options.allowEmptyDB ? (Fe.onerror = sh, Ie.abort(), Fe.result.close(), (
|
|
10752
|
+
var Le;
|
|
10753
|
+
Ie = Fe.transaction, y.autoSchema && !m._options.allowEmptyDB ? (Fe.onerror = sh, Ie.abort(), Fe.result.close(), (Le = R.deleteDatabase(Te)).onsuccess = Le.onerror = xn(function() {
|
|
10754
10754
|
Se(new U.NoSuchDatabase("Database ".concat(Te, " doesnt exist")));
|
|
10755
10755
|
})) : (Ie.onerror = Xr(Se), De = De.oldVersion > Math.pow(2, 62) ? 0 : De.oldVersion, fe = De < 1, m.idbdb = Fe.result, Z && EH(m, Ie), SH(m, De / 10, Ie, Se));
|
|
10756
10756
|
}, Se), Fe.onsuccess = xn(function() {
|
|
10757
10757
|
Ie = null;
|
|
10758
|
-
var De,
|
|
10758
|
+
var De, Le, Be, He, Ye, rt = m.idbdb = Fe.result, gt = S(rt.objectStoreNames);
|
|
10759
10759
|
if (0 < gt.length) try {
|
|
10760
10760
|
var it = rt.transaction((He = gt).length === 1 ? He[0] : He, "readonly");
|
|
10761
|
-
if (y.autoSchema)
|
|
10761
|
+
if (y.autoSchema) Le = rt, Be = it, (De = m).verno = Le.version / 10, Be = De._dbSchema = Qp(0, Le, Be), De._storeNames = S(Le.objectStoreNames, 0), Xp(De, [De._allTables], i(Be), Be);
|
|
10762
10762
|
else if (eg(m, m._dbSchema, it), ((Ye = _w(Qp(0, (Ye = m).idbdb, it), Ye._dbSchema)).add.length || Ye.change.some(function(ct) {
|
|
10763
10763
|
return ct.add.length || ct.change.length;
|
|
10764
|
-
})) && !Z) return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), rt.close(), V = rt.version + 1, Z = !0,
|
|
10764
|
+
})) && !Z) return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), rt.close(), V = rt.version + 1, Z = !0, ke(ce());
|
|
10765
10765
|
Zp(m, it);
|
|
10766
10766
|
} catch {
|
|
10767
10767
|
}
|
|
@@ -10769,23 +10769,23 @@ var wO = { exports: {} };
|
|
|
10769
10769
|
y.vcFired = !0, m.on("versionchange").fire(ct);
|
|
10770
10770
|
}), rt.onclose = xn(function(ct) {
|
|
10771
10771
|
m.on("close").fire(ct);
|
|
10772
|
-
}), fe && (Ye = m._deps, it = Te, rt = Ye.indexedDB, Ye = Ye.IDBKeyRange, Tw(rt) || it === qc || Dw(rt, Ye).put({ name: it }).catch(Re)),
|
|
10772
|
+
}), fe && (Ye = m._deps, it = Te, rt = Ye.indexedDB, Ye = Ye.IDBKeyRange, Tw(rt) || it === qc || Dw(rt, Ye).put({ name: it }).catch(Re)), ke();
|
|
10773
10773
|
}, Se);
|
|
10774
|
-
}).catch(function(
|
|
10775
|
-
switch (
|
|
10774
|
+
}).catch(function(ke) {
|
|
10775
|
+
switch (ke == null ? void 0 : ke.name) {
|
|
10776
10776
|
case "UnknownError":
|
|
10777
10777
|
if (0 < y.PR1398_maxLoop) return y.PR1398_maxLoop--, console.warn("Dexie: Workaround for Chrome UnknownError on open()"), ce();
|
|
10778
10778
|
break;
|
|
10779
10779
|
case "VersionError":
|
|
10780
10780
|
if (0 < V) return V = 0, ce();
|
|
10781
10781
|
}
|
|
10782
|
-
return tt.reject(
|
|
10782
|
+
return tt.reject(ke);
|
|
10783
10783
|
});
|
|
10784
10784
|
}
|
|
10785
10785
|
var Ce, _e = y.dbReadyResolve, Ie = null, fe = !1;
|
|
10786
|
-
return tt.race([A, (typeof navigator > "u" ? tt.resolve() : !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent) && indexedDB.databases ? new Promise(function(
|
|
10786
|
+
return tt.race([A, (typeof navigator > "u" ? tt.resolve() : !navigator.userAgentData && /Safari\//.test(navigator.userAgent) && !/Chrom(e|ium)\//.test(navigator.userAgent) && indexedDB.databases ? new Promise(function(ke) {
|
|
10787
10787
|
function Se() {
|
|
10788
|
-
return indexedDB.databases().finally(
|
|
10788
|
+
return indexedDB.databases().finally(ke);
|
|
10789
10789
|
}
|
|
10790
10790
|
Ce = setInterval(Se, 100), Se();
|
|
10791
10791
|
}).finally(function() {
|
|
@@ -10793,32 +10793,32 @@ var wO = { exports: {} };
|
|
|
10793
10793
|
}) : Promise.resolve()).then(ce)]).then(function() {
|
|
10794
10794
|
return se(), y.onReadyBeingFired = [], tt.resolve(Iw(function() {
|
|
10795
10795
|
return m.on.ready.fire(m.vip);
|
|
10796
|
-
})).then(function
|
|
10796
|
+
})).then(function ke() {
|
|
10797
10797
|
if (0 < y.onReadyBeingFired.length) {
|
|
10798
10798
|
var Se = y.onReadyBeingFired.reduce(L, Re);
|
|
10799
10799
|
return y.onReadyBeingFired = [], tt.resolve(Iw(function() {
|
|
10800
10800
|
return Se(m.vip);
|
|
10801
|
-
})).then(
|
|
10801
|
+
})).then(ke);
|
|
10802
10802
|
}
|
|
10803
10803
|
});
|
|
10804
10804
|
}).finally(function() {
|
|
10805
10805
|
y.openCanceller === A && (y.onReadyBeingFired = null, y.isBeingOpened = !1);
|
|
10806
|
-
}).catch(function(
|
|
10807
|
-
y.dbOpenError =
|
|
10806
|
+
}).catch(function(ke) {
|
|
10807
|
+
y.dbOpenError = ke;
|
|
10808
10808
|
try {
|
|
10809
10809
|
Ie && Ie.abort();
|
|
10810
10810
|
} catch {
|
|
10811
10811
|
}
|
|
10812
|
-
return A === y.openCanceller && m._close(), Rn(
|
|
10812
|
+
return A === y.openCanceller && m._close(), Rn(ke);
|
|
10813
10813
|
}).finally(function() {
|
|
10814
10814
|
y.openComplete = !0, _e();
|
|
10815
10815
|
}).then(function() {
|
|
10816
|
-
var
|
|
10817
|
-
return fe && (
|
|
10816
|
+
var ke;
|
|
10817
|
+
return fe && (ke = {}, m.tables.forEach(function(Se) {
|
|
10818
10818
|
Se.schema.indexes.forEach(function(Te) {
|
|
10819
|
-
Te.name && (
|
|
10820
|
-
}),
|
|
10821
|
-
}), Ia(rh).fire(
|
|
10819
|
+
Te.name && (ke["idb://".concat(m.name, "/").concat(Se.name, "/").concat(Te.name)] = new Vo(-1 / 0, [[[]]]));
|
|
10820
|
+
}), ke["idb://".concat(m.name, "/").concat(Se.name, "/")] = ke["idb://".concat(m.name, "/").concat(Se.name, "/:dels")] = new Vo(-1 / 0, [[[]]]);
|
|
10821
|
+
}), Ia(rh).fire(ke), Aw(ke, !0)), m;
|
|
10822
10822
|
});
|
|
10823
10823
|
}
|
|
10824
10824
|
function Ow(m) {
|
|
@@ -10843,11 +10843,11 @@ var wO = { exports: {} };
|
|
|
10843
10843
|
var DH = { stack: "dbcore", name: "VirtualIndexMiddleware", level: 1, create: function(m) {
|
|
10844
10844
|
return o(o({}, m), { table: function(y) {
|
|
10845
10845
|
var R = m.table(y), A = R.schema, V = {}, Z = [];
|
|
10846
|
-
function se(fe,
|
|
10847
|
-
var Te = ah(fe), Fe = V[Te] = V[Te] || [], De = fe == null ? 0 : typeof fe == "string" ? 1 : fe.length,
|
|
10848
|
-
return Fe.push(
|
|
10846
|
+
function se(fe, ke, Se) {
|
|
10847
|
+
var Te = ah(fe), Fe = V[Te] = V[Te] || [], De = fe == null ? 0 : typeof fe == "string" ? 1 : fe.length, Le = 0 < ke, Le = o(o({}, Se), { name: Le ? "".concat(Te, "(virtual-from:").concat(Se.name, ")") : Se.name, lowLevelIndex: Se, isVirtual: Le, keyTail: ke, keyLength: De, extractKey: Sw(fe), unique: !Le && Se.unique });
|
|
10848
|
+
return Fe.push(Le), Le.isPrimaryKey || Z.push(Le), 1 < De && se(De === 2 ? fe[0] : fe.slice(0, De - 1), ke + 1, Se), Fe.sort(function(Be, He) {
|
|
10849
10849
|
return Be.keyTail - He.keyTail;
|
|
10850
|
-
}),
|
|
10850
|
+
}), Le;
|
|
10851
10851
|
}
|
|
10852
10852
|
y = se(A.primaryKey.keyPath, 0, A.primaryKey), V[":id"] = [y];
|
|
10853
10853
|
for (var ce = 0, Ce = A.indexes; ce < Ce.length; ce++) {
|
|
@@ -10855,8 +10855,8 @@ var wO = { exports: {} };
|
|
|
10855
10855
|
se(_e.keyPath, 0, _e);
|
|
10856
10856
|
}
|
|
10857
10857
|
function Ie(fe) {
|
|
10858
|
-
var
|
|
10859
|
-
return Se.isVirtual ? o(o({}, fe), { query: { index: Se.lowLevelIndex, range: (
|
|
10858
|
+
var ke, Se = fe.query.index;
|
|
10859
|
+
return Se.isVirtual ? o(o({}, fe), { query: { index: Se.lowLevelIndex, range: (ke = fe.query.range, Se = Se.keyTail, { type: ke.type === 1 ? 2 : ke.type, lower: rg(ke.lower, ke.lowerOpen ? m.MAX_KEY : m.MIN_KEY, Se), lowerOpen: !0, upper: rg(ke.upper, ke.upperOpen ? m.MIN_KEY : m.MAX_KEY, Se), upperOpen: !0 }) } }) : fe;
|
|
10860
10860
|
}
|
|
10861
10861
|
return o(o({}, R), { schema: o(o({}, A), { primaryKey: y, indexes: Z, getIndexByKeyPath: function(fe) {
|
|
10862
10862
|
return (fe = V[ah(fe)]) && fe[0];
|
|
@@ -10865,22 +10865,22 @@ var wO = { exports: {} };
|
|
|
10865
10865
|
}, query: function(fe) {
|
|
10866
10866
|
return R.query(Ie(fe));
|
|
10867
10867
|
}, openCursor: function(fe) {
|
|
10868
|
-
var
|
|
10869
|
-
return Te ? R.openCursor(Ie(fe)).then(function(
|
|
10870
|
-
return
|
|
10868
|
+
var ke = fe.query.index, Se = ke.keyTail, Te = ke.isVirtual, Fe = ke.keyLength;
|
|
10869
|
+
return Te ? R.openCursor(Ie(fe)).then(function(Le) {
|
|
10870
|
+
return Le && De(Le);
|
|
10871
10871
|
}) : R.openCursor(fe);
|
|
10872
|
-
function De(
|
|
10873
|
-
return Object.create(
|
|
10874
|
-
Be != null ?
|
|
10872
|
+
function De(Le) {
|
|
10873
|
+
return Object.create(Le, { continue: { value: function(Be) {
|
|
10874
|
+
Be != null ? Le.continue(rg(Be, fe.reverse ? m.MAX_KEY : m.MIN_KEY, Se)) : fe.unique ? Le.continue(Le.key.slice(0, Fe).concat(fe.reverse ? m.MIN_KEY : m.MAX_KEY, Se)) : Le.continue();
|
|
10875
10875
|
} }, continuePrimaryKey: { value: function(Be, He) {
|
|
10876
|
-
|
|
10876
|
+
Le.continuePrimaryKey(rg(Be, m.MAX_KEY, Se), He);
|
|
10877
10877
|
} }, primaryKey: { get: function() {
|
|
10878
|
-
return
|
|
10878
|
+
return Le.primaryKey;
|
|
10879
10879
|
} }, key: { get: function() {
|
|
10880
|
-
var Be =
|
|
10880
|
+
var Be = Le.key;
|
|
10881
10881
|
return Fe === 1 ? Be[0] : Be.slice(0, Fe);
|
|
10882
10882
|
} }, value: { get: function() {
|
|
10883
|
-
return
|
|
10883
|
+
return Le.value;
|
|
10884
10884
|
} } });
|
|
10885
10885
|
}
|
|
10886
10886
|
} });
|
|
@@ -10921,11 +10921,11 @@ var wO = { exports: {} };
|
|
|
10921
10921
|
case "deleteRange":
|
|
10922
10922
|
if (ce.fire === Re) break;
|
|
10923
10923
|
return Z._promise("readwrite", function() {
|
|
10924
|
-
return function fe(
|
|
10925
|
-
return R.query({ trans:
|
|
10924
|
+
return function fe(ke, Se, Te) {
|
|
10925
|
+
return R.query({ trans: ke, values: !1, query: { index: A, range: Se }, limit: Te }).then(function(Fe) {
|
|
10926
10926
|
var De = Fe.result;
|
|
10927
|
-
return Ie({ type: "delete", keys: De, trans:
|
|
10928
|
-
return 0 <
|
|
10927
|
+
return Ie({ type: "delete", keys: De, trans: ke }).then(function(Le) {
|
|
10928
|
+
return 0 < Le.numFailures ? Promise.reject(Le.failures[0]) : De.length < Te ? { failures: [], numFailures: 0, lastResult: void 0 } : fe(ke, o(o({}, Se), { lower: De[De.length - 1], lowerOpen: !0 }), Te);
|
|
10929
10929
|
});
|
|
10930
10930
|
});
|
|
10931
10931
|
}(V.trans, V.range, 1e4);
|
|
@@ -10933,11 +10933,11 @@ var wO = { exports: {} };
|
|
|
10933
10933
|
}
|
|
10934
10934
|
return R.mutate(V);
|
|
10935
10935
|
function Ie(fe) {
|
|
10936
|
-
var
|
|
10936
|
+
var ke, Se, Te, Fe = je.trans, De = fe.keys || Nw(A, fe);
|
|
10937
10937
|
if (!De) throw new Error("Keys missing");
|
|
10938
|
-
return (fe = fe.type === "add" || fe.type === "put" ? o(o({}, fe), { keys: De }) : o({}, fe)).type !== "delete" && (fe.values = s([], fe.values)), fe.keys && (fe.keys = s([], fe.keys)),
|
|
10938
|
+
return (fe = fe.type === "add" || fe.type === "put" ? o(o({}, fe), { keys: De }) : o({}, fe)).type !== "delete" && (fe.values = s([], fe.values)), fe.keys && (fe.keys = s([], fe.keys)), ke = R, Te = De, ((Se = fe).type === "add" ? Promise.resolve([]) : ke.getMany({ trans: Se.trans, keys: Te, cache: "immutable" })).then(function(Le) {
|
|
10939
10939
|
var Be = De.map(function(He, Ye) {
|
|
10940
|
-
var rt, gt, it, ct =
|
|
10940
|
+
var rt, gt, it, ct = Le[Ye], bt = { onerror: null, onsuccess: null };
|
|
10941
10941
|
return fe.type === "delete" ? ce.fire.call(bt, He, ct, Fe) : fe.type === "add" || ct === void 0 ? (rt = Ce.fire.call(bt, He, fe.values[Ye], Fe), He == null && rt != null && (fe.keys[Ye] = He = rt, A.outbound || I(fe.values[Ye], A.keyPath, He))) : (rt = Mw(ct, fe.values[Ye]), (gt = _e.fire.call(bt, rt, He, ct, Fe)) && (it = fe.values[Ye], Object.keys(gt).forEach(function(pt) {
|
|
10942
10942
|
d(it, pt) ? it[pt] = gt[pt] : I(it, pt, gt[pt]);
|
|
10943
10943
|
}))), bt;
|
|
@@ -10945,7 +10945,7 @@ var wO = { exports: {} };
|
|
|
10945
10945
|
return R.mutate(fe).then(function(He) {
|
|
10946
10946
|
for (var Ye = He.failures, rt = He.results, gt = He.numFailures, He = He.lastResult, it = 0; it < De.length; ++it) {
|
|
10947
10947
|
var ct = (rt || De)[it], bt = Be[it];
|
|
10948
|
-
ct == null ? bt.onerror && bt.onerror(Ye[it]) : bt.onsuccess && bt.onsuccess(fe.type === "put" &&
|
|
10948
|
+
ct == null ? bt.onerror && bt.onerror(Ye[it]) : bt.onsuccess && bt.onsuccess(fe.type === "put" && Le[it] ? fe.values[it] : ct);
|
|
10949
10949
|
}
|
|
10950
10950
|
return { failures: Ye, results: rt, numFailures: gt, lastResult: He };
|
|
10951
10951
|
}).catch(function(He) {
|
|
@@ -11007,10 +11007,10 @@ var wO = { exports: {} };
|
|
|
11007
11007
|
function Te(pt) {
|
|
11008
11008
|
return pt = "idb://".concat(y, "/").concat(A, "/").concat(pt), He[pt] || (He[pt] = new Vo());
|
|
11009
11009
|
}
|
|
11010
|
-
var Fe, De,
|
|
11010
|
+
var Fe, De, Le, Be = Se.trans, He = Se.mutatedParts || (Se.mutatedParts = {}), Ye = Te(""), rt = Te(":dels"), gt = Se.type, bt = Se.type === "deleteRange" ? [Se.range] : Se.type === "delete" ? [Se.keys] : Se.values.length < 50 ? [Nw(se, Se).filter(function(pt) {
|
|
11011
11011
|
return pt;
|
|
11012
11012
|
}), Se.values] : [], it = bt[0], ct = bt[1], bt = Se.trans._cache;
|
|
11013
|
-
return a(it) ? (Ye.addKeys(it), (bt = gt === "delete" || it.length === ct.length ? KR(it, bt) : null) || rt.addKeys(it), (bt || ct) && (Fe = Te, De = bt,
|
|
11013
|
+
return a(it) ? (Ye.addKeys(it), (bt = gt === "delete" || it.length === ct.length ? KR(it, bt) : null) || rt.addKeys(it), (bt || ct) && (Fe = Te, De = bt, Le = ct, Z.indexes.forEach(function(pt) {
|
|
11014
11014
|
var Rt = Fe(pt.name || "");
|
|
11015
11015
|
function Yt(on) {
|
|
11016
11016
|
return on != null ? pt.extractKey(on) : null;
|
|
@@ -11020,8 +11020,8 @@ var wO = { exports: {} };
|
|
|
11020
11020
|
return Rt.addKey(Ss);
|
|
11021
11021
|
}) : Rt.addKey(on);
|
|
11022
11022
|
}
|
|
11023
|
-
(De ||
|
|
11024
|
-
var Kt = De && Yt(De[Bo]), Bo =
|
|
11023
|
+
(De || Le).forEach(function(on, Bo) {
|
|
11024
|
+
var Kt = De && Yt(De[Bo]), Bo = Le && Yt(Le[Bo]);
|
|
11025
11025
|
rn(Kt, Bo) !== 0 && (Kt != null && nn(Kt), Bo != null && nn(Bo));
|
|
11026
11026
|
});
|
|
11027
11027
|
}))) : it ? (ct = { from: (ct = it.lower) !== null && ct !== void 0 ? ct : m.MIN_KEY, to: (ct = it.upper) !== null && ct !== void 0 ? ct : m.MAX_KEY }, rt.add(ct), Ye.add(ct)) : (Ye.add(R), rt.add(R), Z.indexes.forEach(function(pt) {
|
|
@@ -11039,18 +11039,18 @@ var wO = { exports: {} };
|
|
|
11039
11039
|
} }), fe = function(Te) {
|
|
11040
11040
|
var Fe = Te.query, Te = Fe.index, Fe = Fe.range;
|
|
11041
11041
|
return [Te, new Vo((Te = Fe.lower) !== null && Te !== void 0 ? Te : m.MIN_KEY, (Fe = Fe.upper) !== null && Fe !== void 0 ? Fe : m.MAX_KEY)];
|
|
11042
|
-
},
|
|
11042
|
+
}, ke = { get: function(Se) {
|
|
11043
11043
|
return [se, new Vo(Se.key)];
|
|
11044
11044
|
}, getMany: function(Se) {
|
|
11045
11045
|
return [se, new Vo().addKeys(Se.keys)];
|
|
11046
11046
|
}, count: fe, query: fe, openCursor: fe };
|
|
11047
|
-
return i(
|
|
11047
|
+
return i(ke).forEach(function(Se) {
|
|
11048
11048
|
Ie[Se] = function(Te) {
|
|
11049
|
-
var Fe = je.subscr, De = !!Fe,
|
|
11049
|
+
var Fe = je.subscr, De = !!Fe, Le = qR(je, V) && YR(Se, Te) ? Te.obsSet = {} : Fe;
|
|
11050
11050
|
if (De) {
|
|
11051
11051
|
var Be = function(ct) {
|
|
11052
|
-
return ct = "idb://".concat(y, "/").concat(A, "/").concat(ct),
|
|
11053
|
-
}, He = Be(""), Ye = Be(":dels"), Fe =
|
|
11052
|
+
return ct = "idb://".concat(y, "/").concat(A, "/").concat(ct), Le[ct] || (Le[ct] = new Vo());
|
|
11053
|
+
}, He = Be(""), Ye = Be(":dels"), Fe = ke[Se](Te), De = Fe[0], Fe = Fe[1];
|
|
11054
11054
|
if ((Se === "query" && De.isPrimaryKey && !Te.values ? Ye : Be(De.name || "")).add(Fe), !De.isPrimaryKey) {
|
|
11055
11055
|
if (Se !== "count") {
|
|
11056
11056
|
var rt = Se === "query" && Ce && Te.values && V.query(o(o({}, Te), { values: !1 }));
|
|
@@ -11097,15 +11097,15 @@ var wO = { exports: {} };
|
|
|
11097
11097
|
return R = m, ((A = y).lower === void 0 || (A.lowerOpen ? 0 < rn(R, A.lower) : 0 <= rn(R, A.lower))) && (m = m, (y = y).upper === void 0 || (y.upperOpen ? rn(m, y.upper) < 0 : rn(m, y.upper) <= 0));
|
|
11098
11098
|
var R, A;
|
|
11099
11099
|
}
|
|
11100
|
-
function XR(m, y,
|
|
11101
|
-
if (!
|
|
11102
|
-
var se = y.query.index, ce = se.multiEntry, Ce = y.query.range, _e = A.schema.primaryKey.extractKey, Ie = se.extractKey, fe = (se.lowLevelIndex || se).extractKey,
|
|
11100
|
+
function XR(m, y, ke, A, V, Z) {
|
|
11101
|
+
if (!ke || ke.length === 0) return m;
|
|
11102
|
+
var se = y.query.index, ce = se.multiEntry, Ce = y.query.range, _e = A.schema.primaryKey.extractKey, Ie = se.extractKey, fe = (se.lowLevelIndex || se).extractKey, ke = ke.reduce(function(Se, Te) {
|
|
11103
11103
|
var Fe = Se, De = [];
|
|
11104
|
-
if (Te.type === "add" || Te.type === "put") for (var
|
|
11104
|
+
if (Te.type === "add" || Te.type === "put") for (var Le = new Vo(), Be = Te.values.length - 1; 0 <= Be; --Be) {
|
|
11105
11105
|
var He, Ye = Te.values[Be], rt = _e(Ye);
|
|
11106
|
-
|
|
11106
|
+
Le.hasKey(rt) || (He = Ie(Ye), (ce && a(He) ? He.some(function(pt) {
|
|
11107
11107
|
return Lw(pt, Ce);
|
|
11108
|
-
}) : Lw(He, Ce)) && (
|
|
11108
|
+
}) : Lw(He, Ce)) && (Le.addKey(rt), De.push(Ye)));
|
|
11109
11109
|
}
|
|
11110
11110
|
switch (Te.type) {
|
|
11111
11111
|
case "add":
|
|
@@ -11143,9 +11143,9 @@ var wO = { exports: {} };
|
|
|
11143
11143
|
}
|
|
11144
11144
|
return Fe;
|
|
11145
11145
|
}, m);
|
|
11146
|
-
return
|
|
11146
|
+
return ke === m ? m : (ke.sort(function(Se, Te) {
|
|
11147
11147
|
return rn(fe(Se), fe(Te)) || rn(_e(Se), _e(Te));
|
|
11148
|
-
}), y.limit && y.limit < 1 / 0 && (
|
|
11148
|
+
}), y.limit && y.limit < 1 / 0 && (ke.length > y.limit ? ke.length = y.limit : m.length === y.limit && ke.length < y.limit && (V.dirty = !0)), Z ? Object.freeze(ke) : ke);
|
|
11149
11149
|
}
|
|
11150
11150
|
function JR(m, y) {
|
|
11151
11151
|
return rn(m.lower, y.lower) === 0 && rn(m.upper, y.upper) === 0 && !!m.lowerOpen == !!y.lowerOpen && !!m.upperOpen == !!y.upperOpen;
|
|
@@ -11187,12 +11187,12 @@ var wO = { exports: {} };
|
|
|
11187
11187
|
return function() {
|
|
11188
11188
|
if (Z.abort(), A === "readwrite") {
|
|
11189
11189
|
for (var _e = /* @__PURE__ */ new Set(), Ie = 0, fe = R; Ie < fe.length; Ie++) {
|
|
11190
|
-
var
|
|
11190
|
+
var ke = fe[Ie], Se = Dl["idb://".concat(y, "/").concat(ke)];
|
|
11191
11191
|
if (Se) {
|
|
11192
|
-
var Te = m.table(
|
|
11192
|
+
var Te = m.table(ke), Fe = Se.optimisticOps.filter(function(Rt) {
|
|
11193
11193
|
return Rt.trans === ce;
|
|
11194
11194
|
});
|
|
11195
|
-
if (ce._explicit && Ce && ce.mutatedParts) for (var De = 0,
|
|
11195
|
+
if (ce._explicit && Ce && ce.mutatedParts) for (var De = 0, Le = Object.values(Se.queries.query); De < Le.length; De++) for (var Be = 0, He = (gt = Le[De]).slice(); Be < He.length; Be++) Fw((it = He[Be]).obsSet, ce.mutatedParts) && (Q(gt, it), it.subscribers.forEach(function(Rt) {
|
|
11196
11196
|
return _e.add(Rt);
|
|
11197
11197
|
}));
|
|
11198
11198
|
else if (0 < Fe.length) {
|
|
@@ -11227,8 +11227,8 @@ var wO = { exports: {} };
|
|
|
11227
11227
|
Q(ce.optimisticOps, Z), Z.mutatedParts && sg(Z.mutatedParts);
|
|
11228
11228
|
})) : se.then(function(Ce) {
|
|
11229
11229
|
var _e = ZR(0, o(o({}, Z), { values: Z.values.map(function(Ie, fe) {
|
|
11230
|
-
var
|
|
11231
|
-
return Ce.failures[fe] ? Ie : (Ie = (
|
|
11230
|
+
var ke;
|
|
11231
|
+
return Ce.failures[fe] ? Ie : (Ie = (ke = V.keyPath) !== null && ke !== void 0 && ke.includes(".") ? O(Ie) : o({}, Ie), I(Ie, V.keyPath, Ce.results[fe]), Ie);
|
|
11232
11232
|
}) }), Ce);
|
|
11233
11233
|
ce.optimisticOps.push(_e), queueMicrotask(function() {
|
|
11234
11234
|
return Z.mutatedParts && sg(Z.mutatedParts);
|
|
@@ -11236,37 +11236,37 @@ var wO = { exports: {} };
|
|
|
11236
11236
|
}), se) : A.mutate(Z);
|
|
11237
11237
|
}, query: function(Z) {
|
|
11238
11238
|
if (!qR(je, A) || !YR("query", Z)) return A.query(Z);
|
|
11239
|
-
var se = ((_e = je.trans) === null || _e === void 0 ? void 0 : _e.db._options.cache) === "immutable", fe = je, ce = fe.requery, Ce = fe.signal, _e = function(Te, Fe, De,
|
|
11239
|
+
var se = ((_e = je.trans) === null || _e === void 0 ? void 0 : _e.db._options.cache) === "immutable", fe = je, ce = fe.requery, Ce = fe.signal, _e = function(Te, Fe, De, Le) {
|
|
11240
11240
|
var Be = Dl["idb://".concat(Te, "/").concat(Fe)];
|
|
11241
11241
|
if (!Be) return [];
|
|
11242
11242
|
if (!(Fe = Be.queries[De])) return [null, !1, Be, null];
|
|
11243
|
-
var He = Fe[(
|
|
11243
|
+
var He = Fe[(Le.query ? Le.query.index.name : null) || ""];
|
|
11244
11244
|
if (!He) return [null, !1, Be, null];
|
|
11245
11245
|
switch (De) {
|
|
11246
11246
|
case "query":
|
|
11247
11247
|
var Ye = He.find(function(rt) {
|
|
11248
|
-
return rt.req.limit ===
|
|
11248
|
+
return rt.req.limit === Le.limit && rt.req.values === Le.values && JR(rt.req.query.range, Le.query.range);
|
|
11249
11249
|
});
|
|
11250
11250
|
return Ye ? [Ye, !0, Be, He] : [He.find(function(rt) {
|
|
11251
|
-
return ("limit" in rt.req ? rt.req.limit : 1 / 0) >=
|
|
11251
|
+
return ("limit" in rt.req ? rt.req.limit : 1 / 0) >= Le.limit && (!Le.values || rt.req.values) && FH(rt.req.query.range, Le.query.range);
|
|
11252
11252
|
}), !1, Be, He];
|
|
11253
11253
|
case "count":
|
|
11254
11254
|
return Ye = He.find(function(rt) {
|
|
11255
|
-
return JR(rt.req.query.range,
|
|
11255
|
+
return JR(rt.req.query.range, Le.query.range);
|
|
11256
11256
|
}), [Ye, !!Ye, Be, He];
|
|
11257
11257
|
}
|
|
11258
|
-
}(y, R, "query", Z), Ie = _e[0], fe = _e[1],
|
|
11258
|
+
}(y, R, "query", Z), Ie = _e[0], fe = _e[1], ke = _e[2], Se = _e[3];
|
|
11259
11259
|
return Ie && fe ? Ie.obsSet = Z.obsSet : (fe = A.query(Z).then(function(Te) {
|
|
11260
11260
|
var Fe = Te.result;
|
|
11261
11261
|
if (Ie && (Ie.res = Fe), se) {
|
|
11262
|
-
for (var De = 0,
|
|
11262
|
+
for (var De = 0, Le = Fe.length; De < Le; ++De) Object.freeze(Fe[De]);
|
|
11263
11263
|
Object.freeze(Fe);
|
|
11264
11264
|
} else Te.result = O(Fe);
|
|
11265
11265
|
return Te;
|
|
11266
11266
|
}).catch(function(Te) {
|
|
11267
11267
|
return Se && Ie && Q(Se, Ie), Promise.reject(Te);
|
|
11268
|
-
}), Ie = { obsSet: Z.obsSet, promise: fe, subscribers: /* @__PURE__ */ new Set(), type: "query", req: Z, dirty: !1 }, Se ? Se.push(Ie) : (Se = [Ie], (
|
|
11269
|
-
return { result: XR(Te.result, Z,
|
|
11268
|
+
}), Ie = { obsSet: Z.obsSet, promise: fe, subscribers: /* @__PURE__ */ new Set(), type: "query", req: Z, dirty: !1 }, Se ? Se.push(Ie) : (Se = [Ie], (ke = ke || (Dl["idb://".concat(y, "/").concat(R)] = { queries: { query: {}, count: {} }, objs: /* @__PURE__ */ new Map(), optimisticOps: [], unsignaledParts: {} })).queries.query[Z.query.index.name || ""] = Se)), PH(Ie, Se, ce, Ce), Ie.promise.then(function(Te) {
|
|
11269
|
+
return { result: XR(Te.result, Z, ke == null ? void 0 : ke.optimisticOps, A, Ie, se) };
|
|
11270
11270
|
});
|
|
11271
11271
|
} });
|
|
11272
11272
|
} });
|
|
@@ -11306,7 +11306,7 @@ var wO = { exports: {} };
|
|
|
11306
11306
|
})), this;
|
|
11307
11307
|
}, oo.prototype.open = function() {
|
|
11308
11308
|
var m = this;
|
|
11309
|
-
return Xo(
|
|
11309
|
+
return Xo(Ne, function() {
|
|
11310
11310
|
return RH(m);
|
|
11311
11311
|
});
|
|
11312
11312
|
}, oo.prototype._close = function() {
|
|
@@ -11397,25 +11397,25 @@ var wO = { exports: {} };
|
|
|
11397
11397
|
fe(_e);
|
|
11398
11398
|
}) : Rn(_e);
|
|
11399
11399
|
}
|
|
11400
|
-
var Ce = (function _e(Ie, fe,
|
|
11400
|
+
var Ce = (function _e(Ie, fe, ke, Se, Te) {
|
|
11401
11401
|
return tt.resolve().then(function() {
|
|
11402
|
-
var Fe = je.transless || je, De = Ie._createTransaction(fe,
|
|
11402
|
+
var Fe = je.transless || je, De = Ie._createTransaction(fe, ke, Ie._dbSchema, Se);
|
|
11403
11403
|
if (De.explicit = !0, Fe = { trans: De, transless: Fe }, Se) De.idbtrans = Se.idbtrans;
|
|
11404
11404
|
else try {
|
|
11405
11405
|
De.create(), De.idbtrans._explicit = !0, Ie._state.PR1398_maxLoop = 3;
|
|
11406
11406
|
} catch (He) {
|
|
11407
11407
|
return He.name === we.InvalidState && Ie.isOpen() && 0 < --Ie._state.PR1398_maxLoop ? (console.warn("Dexie: Need to reopen db"), Ie.close({ disableAutoOpen: !1 }), Ie.open().then(function() {
|
|
11408
|
-
return _e(Ie, fe,
|
|
11408
|
+
return _e(Ie, fe, ke, null, Te);
|
|
11409
11409
|
})) : Rn(He);
|
|
11410
11410
|
}
|
|
11411
|
-
var
|
|
11411
|
+
var Le, Be = X(Te);
|
|
11412
11412
|
return Be && Da(), Fe = tt.follow(function() {
|
|
11413
11413
|
var He;
|
|
11414
|
-
(
|
|
11415
|
-
}, Fe), (
|
|
11414
|
+
(Le = Te.call(De, De)) && (Be ? (He = Pe.bind(null, null), Le.then(He, He)) : typeof Le.next == "function" && typeof Le.throw == "function" && (Le = Ow(Le)));
|
|
11415
|
+
}, Fe), (Le && typeof Le.then == "function" ? tt.resolve(Le).then(function(He) {
|
|
11416
11416
|
return De.active ? He : Rn(new U.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
|
|
11417
11417
|
}) : Fe.then(function() {
|
|
11418
|
-
return
|
|
11418
|
+
return Le;
|
|
11419
11419
|
})).then(function(He) {
|
|
11420
11420
|
return Se && De._resolve(), De._completion.then(function() {
|
|
11421
11421
|
return He;
|
|
@@ -11440,18 +11440,18 @@ var wO = { exports: {} };
|
|
|
11440
11440
|
var V, Z, se, ce, Ce, _e = { dbOpenError: null, isBeingOpened: !1, onReadyBeingFired: null, openComplete: !1, dbReadyResolve: Re, dbReadyPromise: null, cancelOpen: Re, openCanceller: null, autoSchema: !0, PR1398_maxLoop: 3, autoOpen: y.autoOpen };
|
|
11441
11441
|
_e.dbReadyPromise = new tt(function(fe) {
|
|
11442
11442
|
_e.dbReadyResolve = fe;
|
|
11443
|
-
}), _e.openCanceller = new tt(function(fe,
|
|
11444
|
-
_e.cancelOpen =
|
|
11443
|
+
}), _e.openCanceller = new tt(function(fe, ke) {
|
|
11444
|
+
_e.cancelOpen = ke;
|
|
11445
11445
|
}), this._state = _e, this.name = m, this.on = th(this, "populate", "blocked", "versionchange", "close", { ready: [L, Re] }), this.on.ready.subscribe = b(this.on.ready.subscribe, function(fe) {
|
|
11446
|
-
return function(
|
|
11446
|
+
return function(ke, Se) {
|
|
11447
11447
|
oo.vip(function() {
|
|
11448
11448
|
var Te, Fe = R._state;
|
|
11449
|
-
Fe.openComplete ? (Fe.dbOpenError || tt.resolve().then(
|
|
11450
|
-
Te.on.ready.unsubscribe(
|
|
11449
|
+
Fe.openComplete ? (Fe.dbOpenError || tt.resolve().then(ke), Se && fe(ke)) : Fe.onReadyBeingFired ? (Fe.onReadyBeingFired.push(ke), Se && fe(ke)) : (fe(ke), Te = R, Se || fe(function De() {
|
|
11450
|
+
Te.on.ready.unsubscribe(ke), Te.on.ready.unsubscribe(De);
|
|
11451
11451
|
}));
|
|
11452
11452
|
});
|
|
11453
11453
|
};
|
|
11454
|
-
}), this.Collection = (V = this, nh(pH.prototype, function(
|
|
11454
|
+
}), this.Collection = (V = this, nh(pH.prototype, function(Le, De) {
|
|
11455
11455
|
this.db = V;
|
|
11456
11456
|
var Se = xR, Te = null;
|
|
11457
11457
|
if (De) try {
|
|
@@ -11459,24 +11459,24 @@ var wO = { exports: {} };
|
|
|
11459
11459
|
} catch (Be) {
|
|
11460
11460
|
Te = Be;
|
|
11461
11461
|
}
|
|
11462
|
-
var Fe =
|
|
11463
|
-
this._ctx = { table: De, index: Fe.index, isPrimKey: !Fe.index || De.schema.primKey.keyPath && Fe.index === De.schema.primKey.name, range: Se, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: Te, or: Fe.or, valueMapper:
|
|
11464
|
-
})), this.Table = (Z = this, nh(AR.prototype, function(fe,
|
|
11465
|
-
this.db = Z, this._tx = Se, this.name = fe, this.schema =
|
|
11466
|
-
})), this.Transaction = (se = this, nh(vH.prototype, function(fe,
|
|
11462
|
+
var Fe = Le._ctx, De = Fe.table, Le = De.hook.reading.fire;
|
|
11463
|
+
this._ctx = { table: De, index: Fe.index, isPrimKey: !Fe.index || De.schema.primKey.keyPath && Fe.index === De.schema.primKey.name, range: Se, keysOnly: !1, dir: "next", unique: "", algorithm: null, filter: null, replayFilter: null, justLimit: !0, isMatch: null, offset: 0, limit: 1 / 0, error: Te, or: Fe.or, valueMapper: Le !== G ? Le : null };
|
|
11464
|
+
})), this.Table = (Z = this, nh(AR.prototype, function(fe, ke, Se) {
|
|
11465
|
+
this.db = Z, this._tx = Se, this.name = fe, this.schema = ke, this.hook = Z._allTables[fe] ? Z._allTables[fe].hook : th(null, { creating: [Ae, Re], reading: [Y, G], updating: [Ve, Re], deleting: [xe, Re] });
|
|
11466
|
+
})), this.Transaction = (se = this, nh(vH.prototype, function(fe, ke, Se, Te, Fe) {
|
|
11467
11467
|
var De = this;
|
|
11468
|
-
this.db = se, this.mode = fe, this.storeNames =
|
|
11469
|
-
De._resolve =
|
|
11468
|
+
this.db = se, this.mode = fe, this.storeNames = ke, this.schema = Se, this.chromeTransactionDurability = Te, this.idbtrans = null, this.on = th(this, "complete", "error", "abort"), this.parent = Fe || null, this.active = !0, this._reculock = 0, this._blockedFuncs = [], this._resolve = null, this._reject = null, this._waitingFor = null, this._waitingQueue = null, this._spinCount = 0, this._completion = new tt(function(Le, Be) {
|
|
11469
|
+
De._resolve = Le, De._reject = Be;
|
|
11470
11470
|
}), this._completion.then(function() {
|
|
11471
11471
|
De.active = !1, De.on.complete.fire();
|
|
11472
|
-
}, function(
|
|
11472
|
+
}, function(Le) {
|
|
11473
11473
|
var Be = De.active;
|
|
11474
|
-
return De.active = !1, De.on.error.fire(
|
|
11474
|
+
return De.active = !1, De.on.error.fire(Le), De.parent ? De.parent._reject(Le) : Be && De.idbtrans && De.idbtrans.abort(), Rn(Le);
|
|
11475
11475
|
});
|
|
11476
11476
|
})), this.Version = (ce = this, nh(_H.prototype, function(fe) {
|
|
11477
11477
|
this.db = ce, this._cfg = { version: fe, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
|
|
11478
|
-
})), this.WhereClause = (Ce = this, nh(VR.prototype, function(fe,
|
|
11479
|
-
if (this.db = Ce, this._ctx = { table: fe, index:
|
|
11478
|
+
})), this.WhereClause = (Ce = this, nh(VR.prototype, function(fe, ke, Se) {
|
|
11479
|
+
if (this.db = Ce, this._ctx = { table: fe, index: ke === ":id" ? null : ke, or: Se }, this._cmp = this._ascending = rn, this._descending = function(Te, Fe) {
|
|
11480
11480
|
return rn(Fe, Te);
|
|
11481
11481
|
}, this._max = function(Te, Fe) {
|
|
11482
11482
|
return 0 < rn(Te, Fe) ? Te : Fe;
|
|
@@ -11487,24 +11487,24 @@ var wO = { exports: {} };
|
|
|
11487
11487
|
0 < fe.newVersion ? console.warn("Another connection wants to upgrade database '".concat(R.name, "'. Closing db now to resume the upgrade.")) : console.warn("Another connection wants to delete database '".concat(R.name, "'. Closing db now to resume the delete request.")), R.close({ disableAutoOpen: !1 });
|
|
11488
11488
|
}), this.on("blocked", function(fe) {
|
|
11489
11489
|
!fe.newVersion || fe.newVersion < fe.oldVersion ? console.warn("Dexie.delete('".concat(R.name, "') was blocked")) : console.warn("Upgrade '".concat(R.name, "' blocked by other connection holding version ").concat(fe.oldVersion / 10));
|
|
11490
|
-
}), this._maxKey = ih(y.IDBKeyRange), this._createTransaction = function(fe,
|
|
11491
|
-
return new R.Transaction(fe,
|
|
11490
|
+
}), this._maxKey = ih(y.IDBKeyRange), this._createTransaction = function(fe, ke, Se, Te) {
|
|
11491
|
+
return new R.Transaction(fe, ke, Se, R._options.chromeTransactionDurability, Te);
|
|
11492
11492
|
}, this._fireOnBlocked = function(fe) {
|
|
11493
|
-
R.on("blocked").fire(fe), Rl.filter(function(
|
|
11494
|
-
return
|
|
11495
|
-
}).map(function(
|
|
11496
|
-
return
|
|
11493
|
+
R.on("blocked").fire(fe), Rl.filter(function(ke) {
|
|
11494
|
+
return ke.name === R.name && ke !== R && !ke._state.vcFired;
|
|
11495
|
+
}).map(function(ke) {
|
|
11496
|
+
return ke.on("versionchange").fire(fe);
|
|
11497
11497
|
});
|
|
11498
11498
|
}, this.use(IH), this.use(kH), this.use(xH), this.use(DH), this.use(TH);
|
|
11499
|
-
var Ie = new Proxy(this, { get: function(fe,
|
|
11500
|
-
if (
|
|
11501
|
-
if (
|
|
11499
|
+
var Ie = new Proxy(this, { get: function(fe, ke, Se) {
|
|
11500
|
+
if (ke === "_vip") return !0;
|
|
11501
|
+
if (ke === "table") return function(Fe) {
|
|
11502
11502
|
return ig(R.table(Fe), Ie);
|
|
11503
11503
|
};
|
|
11504
|
-
var Te = Reflect.get(fe,
|
|
11505
|
-
return Te instanceof AR ? ig(Te, Ie) :
|
|
11504
|
+
var Te = Reflect.get(fe, ke, Se);
|
|
11505
|
+
return Te instanceof AR ? ig(Te, Ie) : ke === "tables" ? Te.map(function(Fe) {
|
|
11506
11506
|
return ig(Fe, Ie);
|
|
11507
|
-
}) :
|
|
11507
|
+
}) : ke === "_createTransaction" ? function() {
|
|
11508
11508
|
return ig(Te.apply(this, arguments), Ie);
|
|
11509
11509
|
} : Te;
|
|
11510
11510
|
} });
|
|
@@ -11533,22 +11533,22 @@ var wO = { exports: {} };
|
|
|
11533
11533
|
ce || (ce = !0, se && se.abort(), fe && Ia.storagemutated.unsubscribe(Se));
|
|
11534
11534
|
} };
|
|
11535
11535
|
V.start && V.start(Ie);
|
|
11536
|
-
var fe = !1,
|
|
11536
|
+
var fe = !1, ke = function() {
|
|
11537
11537
|
return Vi(Te);
|
|
11538
11538
|
}, Se = function(Fe) {
|
|
11539
|
-
og(Ce, Fe), Fw(_e, Ce) &&
|
|
11539
|
+
og(Ce, Fe), Fw(_e, Ce) && ke();
|
|
11540
11540
|
}, Te = function() {
|
|
11541
|
-
var Fe, De,
|
|
11542
|
-
!ce && ag.indexedDB && (Ce = {}, Fe = {}, se && se.abort(), se = new AbortController(),
|
|
11541
|
+
var Fe, De, Le;
|
|
11542
|
+
!ce && ag.indexedDB && (Ce = {}, Fe = {}, se && se.abort(), se = new AbortController(), Le = function(Be) {
|
|
11543
11543
|
var He = Kr();
|
|
11544
11544
|
try {
|
|
11545
11545
|
Z && Da();
|
|
11546
11546
|
var Ye = Yr(m, Be);
|
|
11547
|
-
return Ye = Z ? Ye.finally(
|
|
11547
|
+
return Ye = Z ? Ye.finally(Pe) : Ye;
|
|
11548
11548
|
} finally {
|
|
11549
11549
|
He && zs();
|
|
11550
11550
|
}
|
|
11551
|
-
}(De = { subscr: Fe, signal: se.signal, requery:
|
|
11551
|
+
}(De = { subscr: Fe, signal: se.signal, requery: ke, querier: m, trans: null }), Promise.resolve(Le).then(function(Be) {
|
|
11552
11552
|
R = !0, y = Be, ce || De.signal.aborted || (Ce = {}, function(He) {
|
|
11553
11553
|
for (var Ye in He) if (d(He, Ye)) return;
|
|
11554
11554
|
return 1;
|
|
@@ -11561,7 +11561,7 @@ var wO = { exports: {} };
|
|
|
11561
11561
|
});
|
|
11562
11562
|
}));
|
|
11563
11563
|
};
|
|
11564
|
-
return setTimeout(
|
|
11564
|
+
return setTimeout(ke, 0), Ie;
|
|
11565
11565
|
});
|
|
11566
11566
|
return A.hasValue = function() {
|
|
11567
11567
|
return R;
|
|
@@ -27246,7 +27246,7 @@ const tJ = ["value", "placeholder", "disabled", "readonly", "inputmode", "maxlen
|
|
|
27246
27246
|
], 512)
|
|
27247
27247
|
], 512));
|
|
27248
27248
|
}
|
|
27249
|
-
}), Ip = /* @__PURE__ */ Ct(LJ, [["__scopeId", "data-v-
|
|
27249
|
+
}), Ip = /* @__PURE__ */ Ct(LJ, [["__scopeId", "data-v-af84b00b"]]), VJ = /* @__PURE__ */ st({
|
|
27250
27250
|
__name: "AssignneeUpdateButton",
|
|
27251
27251
|
props: {
|
|
27252
27252
|
disabled: { type: Boolean },
|
|
@@ -27577,8 +27577,8 @@ const tJ = ["value", "placeholder", "disabled", "readonly", "inputmode", "maxlen
|
|
|
27577
27577
|
c.value = z.year, u.value = z.month, l("update:year", z.year), l("update:month", z.month), I(z), l("gotoToday");
|
|
27578
27578
|
};
|
|
27579
27579
|
function Q(N) {
|
|
27580
|
-
var de,
|
|
27581
|
-
const z = !!f.value, ne = !!p.value, pe = r.activeField, ve = ((de = f.value) == null ? void 0 : de.toISODate()) || "null", we = ((
|
|
27580
|
+
var de, Ae;
|
|
27581
|
+
const z = !!f.value, ne = !!p.value, pe = r.activeField, ve = ((de = f.value) == null ? void 0 : de.toISODate()) || "null", we = ((Ae = p.value) == null ? void 0 : Ae.toISODate()) || "null", re = N.dt.toISODate() || "", U = (xe, Ve) => {
|
|
27582
27582
|
a.value = { case: xe, behavior: Ve };
|
|
27583
27583
|
}, ge = () => `Selected start ${re} > existing end ${we} -> reset both to ${re}`, oe = () => `Selected end ${re} < existing start ${ve} -> reset both to ${re}`, Re = () => {
|
|
27584
27584
|
D("start", N.dt, !0), D("end", N.dt), l("update:activeField", "end");
|
|
@@ -28451,10 +28451,10 @@ const rQ = {
|
|
|
28451
28451
|
}
|
|
28452
28452
|
nt(
|
|
28453
28453
|
() => {
|
|
28454
|
-
var U, ge, oe, Re, G, Y, de,
|
|
28454
|
+
var U, ge, oe, Re, G, Y, de, Ae;
|
|
28455
28455
|
return [
|
|
28456
28456
|
((oe = (ge = (U = s.value) == null ? void 0 : U[0]) == null ? void 0 : ge.getTime) == null ? void 0 : oe.call(ge)) || ((Re = s.value) == null ? void 0 : Re[0]),
|
|
28457
|
-
((de = (Y = (G = s.value) == null ? void 0 : G[1]) == null ? void 0 : Y.getTime) == null ? void 0 : de.call(Y)) || ((
|
|
28457
|
+
((de = (Y = (G = s.value) == null ? void 0 : G[1]) == null ? void 0 : Y.getTime) == null ? void 0 : de.call(Y)) || ((Ae = s.value) == null ? void 0 : Ae[1]),
|
|
28458
28458
|
s.timezone,
|
|
28459
28459
|
s.format,
|
|
28460
28460
|
s.placeholder,
|
|
@@ -34261,8 +34261,8 @@ const Dne = (e, t, n, o, s, r, i) => {
|
|
|
34261
34261
|
let Y = [];
|
|
34262
34262
|
switch (re) {
|
|
34263
34263
|
case "add": {
|
|
34264
|
-
const de = new Set(G.map((xe) => xe.id)),
|
|
34265
|
-
Y = [...G, ...
|
|
34264
|
+
const de = new Set(G.map((xe) => xe.id)), Ae = we.filter((xe) => !de.has(xe.id));
|
|
34265
|
+
Y = [...G, ...Ae];
|
|
34266
34266
|
break;
|
|
34267
34267
|
}
|
|
34268
34268
|
case "overwrite": {
|
|
@@ -34270,8 +34270,8 @@ const Dne = (e, t, n, o, s, r, i) => {
|
|
|
34270
34270
|
break;
|
|
34271
34271
|
}
|
|
34272
34272
|
case "remove": {
|
|
34273
|
-
const de = new Set(we.map((
|
|
34274
|
-
Y = G.filter((
|
|
34273
|
+
const de = new Set(we.map((Ae) => Ae.id));
|
|
34274
|
+
Y = G.filter((Ae) => !de.has(Ae.id));
|
|
34275
34275
|
break;
|
|
34276
34276
|
}
|
|
34277
34277
|
case "removeAll": {
|
|
@@ -34954,8 +34954,8 @@ const Dne = (e, t, n, o, s, r, i) => {
|
|
|
34954
34954
|
if (oe) {
|
|
34955
34955
|
const G = KM(oe, Re), Y = { ...r.data, ...G };
|
|
34956
34956
|
(z = r.params) == null || z.api.clearFocusedCell();
|
|
34957
|
-
const de = ((pe = (ne = r.params) == null ? void 0 : ne.column) == null ? void 0 : pe.getColId()) || "",
|
|
34958
|
-
(re = r.params) == null || re.api.setFocusedCell(
|
|
34957
|
+
const de = ((pe = (ne = r.params) == null ? void 0 : ne.column) == null ? void 0 : pe.getColId()) || "", Ae = ((we = (ve = r.params) == null ? void 0 : ve.node) == null ? void 0 : we.rowIndex) || 0;
|
|
34958
|
+
(re = r.params) == null || re.api.setFocusedCell(Ae, de), (ge = (U = r.params) == null ? void 0 : U.node) == null || ge.setData(Y), l.value = a.value, i("enter");
|
|
34959
34959
|
} else
|
|
34960
34960
|
a.value = l.value;
|
|
34961
34961
|
} catch (oe) {
|
|
@@ -41242,7 +41242,7 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
41242
41242
|
...o,
|
|
41243
41243
|
value: []
|
|
41244
41244
|
}), { apiServices: k } = to(!1, o), x = Cn("entityId"), $ = async (U = 1, ge = "", oe = !1) => {
|
|
41245
|
-
var G, Y, de,
|
|
41245
|
+
var G, Y, de, Ae, xe;
|
|
41246
41246
|
if (!k.value)
|
|
41247
41247
|
throw console.error("API service or item identifiers are undefined"), new Error("API service or item identifiers are undefined");
|
|
41248
41248
|
if (oe ? C.value = !0 : b.value = !0, _.value = null, !((G = k.value) != null && G.getAssignableAssignees))
|
|
@@ -41255,7 +41255,7 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
41255
41255
|
per_page: Iae,
|
|
41256
41256
|
display_name_like: ge
|
|
41257
41257
|
})), ye = ((de = Uu(Ve.data)) == null ? void 0 : de.map(My)) ?? [];
|
|
41258
|
-
F.value = oe ? hd(F.value, ye, "id") : ye, T.value = Ve.meta.total, I.value = (((
|
|
41258
|
+
F.value = oe ? hd(F.value, ye, "id") : ye, T.value = Ve.meta.total, I.value = (((Ae = Ve == null ? void 0 : Ve.meta) == null ? void 0 : Ae.current_page) || 0) < (((xe = Ve == null ? void 0 : Ve.meta) == null ? void 0 : xe.last_page) || 0), E.value = U;
|
|
41259
41259
|
} catch (Ve) {
|
|
41260
41260
|
console.error("Error fetching assignable users:", Ve), _.value = "Failed to load assignable users";
|
|
41261
41261
|
} finally {
|
|
@@ -41422,7 +41422,7 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
41422
41422
|
isSelected: G,
|
|
41423
41423
|
handleSelect: Y,
|
|
41424
41424
|
handleItemHover: de,
|
|
41425
|
-
getHighlightedLabel:
|
|
41425
|
+
getHighlightedLabel: Ae,
|
|
41426
41426
|
query: xe,
|
|
41427
41427
|
idx: Ve
|
|
41428
41428
|
}) => [
|
|
@@ -41446,7 +41446,7 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
41446
41446
|
key: 0,
|
|
41447
41447
|
class: te([U.$style["item-label"], U.$style.match]),
|
|
41448
41448
|
style: { flex: "1" },
|
|
41449
|
-
innerHTML:
|
|
41449
|
+
innerHTML: Ae(oe.label)
|
|
41450
41450
|
}, null, 10, Tae)), [
|
|
41451
41451
|
[H(g), { content: oe.label }]
|
|
41452
41452
|
]) : Ke((K(), ie("span", {
|
|
@@ -41993,7 +41993,7 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
41993
41993
|
v.value = !1, w.value = !1;
|
|
41994
41994
|
}
|
|
41995
41995
|
});
|
|
41996
|
-
},
|
|
41996
|
+
}, Ae = (ye, L) => {
|
|
41997
41997
|
O.value || (L.metaKey || L.ctrlKey ? de("close-open") : L.shiftKey ? de("keep") : de("clear"));
|
|
41998
41998
|
}, xe = (ye = !1) => {
|
|
41999
41999
|
u.isCreating && (!O.value && !u.error ? de(ye ? "close" : "clear") : W());
|
|
@@ -42032,7 +42032,7 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
42032
42032
|
modelValue: H(u).name,
|
|
42033
42033
|
"onUpdate:modelValue": L[0] || (L[0] = (j) => H(u).name = j),
|
|
42034
42034
|
onChange: H(d),
|
|
42035
|
-
onEnter:
|
|
42035
|
+
onEnter: Ae,
|
|
42036
42036
|
onCancel: Ve,
|
|
42037
42037
|
onTab: L[1] || (L[1] = (j, le) => oe(le)),
|
|
42038
42038
|
onFocus: L[2] || (L[2] = (j) => S.value = "name"),
|
|
@@ -42393,7 +42393,7 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
42393
42393
|
appendTo: () => document.querySelector("#filter-assignee"),
|
|
42394
42394
|
offset: [0, 2]
|
|
42395
42395
|
}), w = B(null), S = () => {
|
|
42396
|
-
Q.value = [], xe.value = !1,
|
|
42396
|
+
Q.value = [], xe.value = !1, Ae.value = !1, U.value = "any";
|
|
42397
42397
|
}, b = q(() => l.value || p.value || s.actived), C = q(() => {
|
|
42398
42398
|
var be;
|
|
42399
42399
|
return {
|
|
@@ -42431,8 +42431,8 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
42431
42431
|
per_page: mle,
|
|
42432
42432
|
display_name_like: ze,
|
|
42433
42433
|
entity_ids: String(s.entityId)
|
|
42434
|
-
})),
|
|
42435
|
-
ee.value = qe ? hd(ee.value,
|
|
42434
|
+
})), Ne = ((At = Uu(Wt.data)) == null ? void 0 : At.map(My)) ?? [];
|
|
42435
|
+
ee.value = qe ? hd(ee.value, Ne, "id") : Ne, $.value = Wt.meta.total, x.value = (((Gt = Wt == null ? void 0 : Wt.meta) == null ? void 0 : Gt.current_page) || 0) < (((en = Wt == null ? void 0 : Wt.meta) == null ? void 0 : en.last_page) || 0), k.value = be;
|
|
42436
42436
|
} catch (Wt) {
|
|
42437
42437
|
console.error("Error fetching assignable users:", Wt), O.value = "Failed to load assignable users";
|
|
42438
42438
|
} finally {
|
|
@@ -42503,17 +42503,17 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
42503
42503
|
profile_image: be.avatar,
|
|
42504
42504
|
color: { bgColor: "#CCCCCC", textColor: "var(--background-color)" }
|
|
42505
42505
|
};
|
|
42506
|
-
}),
|
|
42506
|
+
}), Ae = B(!1), xe = B(!1);
|
|
42507
42507
|
t({
|
|
42508
42508
|
getData: () => ({
|
|
42509
42509
|
assignees: Q.value,
|
|
42510
|
-
showNoAssignee:
|
|
42510
|
+
showNoAssignee: Ae.value,
|
|
42511
42511
|
showMe: xe.value,
|
|
42512
42512
|
selectedTypeId: U.value
|
|
42513
42513
|
}),
|
|
42514
42514
|
clear: S,
|
|
42515
42515
|
setData: (be) => {
|
|
42516
|
-
Q.value = be.assignees || [],
|
|
42516
|
+
Q.value = be.assignees || [], Ae.value = be.showNoAssignee || !1, xe.value = be.showMe || !1, U.value = be.selectedTypeId || "any";
|
|
42517
42517
|
},
|
|
42518
42518
|
focus: () => {
|
|
42519
42519
|
var be;
|
|
@@ -42524,11 +42524,11 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
42524
42524
|
(be = i.value) == null || be.focus();
|
|
42525
42525
|
}
|
|
42526
42526
|
}), nt(
|
|
42527
|
-
[Q,
|
|
42527
|
+
[Q, Ae, xe, U],
|
|
42528
42528
|
() => {
|
|
42529
42529
|
T("updated", {
|
|
42530
42530
|
assignees: Q.value,
|
|
42531
|
-
showNoAssignee:
|
|
42531
|
+
showNoAssignee: Ae.value,
|
|
42532
42532
|
showMe: xe.value,
|
|
42533
42533
|
selectedTypeId: U.value
|
|
42534
42534
|
});
|
|
@@ -42536,7 +42536,7 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
42536
42536
|
{ deep: !0 }
|
|
42537
42537
|
);
|
|
42538
42538
|
const Ve = () => {
|
|
42539
|
-
|
|
42539
|
+
Ae.value = !1;
|
|
42540
42540
|
}, ye = () => {
|
|
42541
42541
|
var be;
|
|
42542
42542
|
xe.value = !1, Q.value = (be = Q.value) == null ? void 0 : be.filter((ze) => ze.id !== de.value.id);
|
|
@@ -42576,10 +42576,10 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
42576
42576
|
ref_key: "triggerRef1",
|
|
42577
42577
|
ref: i,
|
|
42578
42578
|
size: 30,
|
|
42579
|
-
disabled:
|
|
42579
|
+
disabled: Ae.value,
|
|
42580
42580
|
style: hn({
|
|
42581
|
-
background:
|
|
42582
|
-
borderRadius:
|
|
42581
|
+
background: Ae.value ? "#D7D7D7" : "transparent",
|
|
42582
|
+
borderRadius: Ae.value ? "4px 0 0 4px" : "",
|
|
42583
42583
|
border: "none",
|
|
42584
42584
|
width: "calc(100% - 2px)",
|
|
42585
42585
|
height: "30px"
|
|
@@ -42603,7 +42603,7 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
42603
42603
|
])
|
|
42604
42604
|
])), [
|
|
42605
42605
|
[H(I), {
|
|
42606
|
-
content:
|
|
42606
|
+
content: Ae.value ? "Only ‘Any’ is allowed with ‘No assignee’" : ""
|
|
42607
42607
|
}]
|
|
42608
42608
|
]),
|
|
42609
42609
|
me("span", {
|
|
@@ -42631,7 +42631,7 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
42631
42631
|
"disable-remove": !1
|
|
42632
42632
|
}, {
|
|
42633
42633
|
default: he(() => [
|
|
42634
|
-
|
|
42634
|
+
Ae.value && U.value == "any" ? (K(), ie("div", ple, [
|
|
42635
42635
|
me("div", {
|
|
42636
42636
|
class: te(be.$style["unassign-icon"])
|
|
42637
42637
|
}, [...ze[2] || (ze[2] = [
|
|
@@ -42695,7 +42695,7 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
42695
42695
|
suffix: he(() => {
|
|
42696
42696
|
var Me;
|
|
42697
42697
|
return [
|
|
42698
|
-
(Q.value && ((Me = Q.value) == null ? void 0 : Me.length) > 0 ||
|
|
42698
|
+
(Q.value && ((Me = Q.value) == null ? void 0 : Me.length) > 0 || Ae.value || xe.value) && (qe || Ee || H(p)) ? (K(), ie("div", {
|
|
42699
42699
|
key: 0,
|
|
42700
42700
|
class: "wrapper-suffix",
|
|
42701
42701
|
onClick: kt(S, ["stop", "prevent"])
|
|
@@ -42773,9 +42773,9 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
42773
42773
|
U.value == "any" && qe.trim() === "" ? (K(), Ue(d_, {
|
|
42774
42774
|
key: 0,
|
|
42775
42775
|
onClick: ze[0] || (ze[0] = () => {
|
|
42776
|
-
|
|
42776
|
+
Ae.value = !Ae.value;
|
|
42777
42777
|
}),
|
|
42778
|
-
actived:
|
|
42778
|
+
actived: Ae.value
|
|
42779
42779
|
}, null, 8, ["actived"])) : Xe("", !0)
|
|
42780
42780
|
]),
|
|
42781
42781
|
item: he(({
|
|
@@ -42795,8 +42795,8 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
42795
42795
|
isMe: !1,
|
|
42796
42796
|
hover: Wt === Ee,
|
|
42797
42797
|
selected: Me(qe),
|
|
42798
|
-
onClick: kt((
|
|
42799
|
-
onMouseover: (
|
|
42798
|
+
onClick: kt((Ne) => vt(qe, Ne), ["stop", "prevent"]),
|
|
42799
|
+
onMouseover: (Ne) => At(Wt),
|
|
42800
42800
|
"api-update-function": j
|
|
42801
42801
|
}, {
|
|
42802
42802
|
name: he(() => [
|
|
@@ -43490,10 +43490,10 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
43490
43490
|
var de;
|
|
43491
43491
|
const U = {};
|
|
43492
43492
|
if (!re) return U;
|
|
43493
|
-
const ge = ((de = re.assignees) == null ? void 0 : de.map((
|
|
43493
|
+
const ge = ((de = re.assignees) == null ? void 0 : de.map((Ae) => Ae.id)) || [], oe = re.showMe, Re = re.showNoAssignee, G = re.selectedTypeId, Y = oe && I.value ? [...ge, I.value] : ge;
|
|
43494
43494
|
if (Y.length > 0) {
|
|
43495
|
-
const
|
|
43496
|
-
G === "any" ? U.assignee_any_ina =
|
|
43495
|
+
const Ae = Y.join(",");
|
|
43496
|
+
G === "any" ? U.assignee_any_ina = Ae || "" : G === "all" && (U.assignee_all_ina = Ae);
|
|
43497
43497
|
}
|
|
43498
43498
|
return Re && G === "any" && (U.with_not_assigned = "1"), U;
|
|
43499
43499
|
}, Q = (re, U) => {
|
|
@@ -43532,9 +43532,9 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
43532
43532
|
archiveStatuses: ((Re = b.value) == null ? void 0 : Re.getData()) || []
|
|
43533
43533
|
};
|
|
43534
43534
|
}, N = (re) => {
|
|
43535
|
-
var U, ge, oe, Re, G, Y, de,
|
|
43535
|
+
var U, ge, oe, Re, G, Y, de, Ae, xe, Ve, ye, L, j, le, Ge, be, ze, qe, Ee, Me;
|
|
43536
43536
|
if (!re) {
|
|
43537
|
-
(ge = (U = g.value) == null ? void 0 : U.clear) == null || ge.call(U), (Re = (oe = v.value) == null ? void 0 : oe.clear) == null || Re.call(oe), (Y = (G = w.value) == null ? void 0 : G.clear) == null || Y.call(G), (
|
|
43537
|
+
(ge = (U = g.value) == null ? void 0 : U.clear) == null || ge.call(U), (Re = (oe = v.value) == null ? void 0 : oe.clear) == null || Re.call(oe), (Y = (G = w.value) == null ? void 0 : G.clear) == null || Y.call(G), (Ae = (de = S.value) == null ? void 0 : de.clear) == null || Ae.call(de), (Ve = (xe = b.value) == null ? void 0 : xe.clear) == null || Ve.call(xe);
|
|
43538
43538
|
return;
|
|
43539
43539
|
}
|
|
43540
43540
|
re.assignees && ((L = (ye = g.value) == null ? void 0 : ye.setData) == null || L.call(ye, re.assignees)), re.statuses && ((le = (j = v.value) == null ? void 0 : j.setData) == null || le.call(j, re.statuses)), re.startDateRange && ((be = (Ge = w.value) == null ? void 0 : Ge.setData) == null || be.call(Ge, re.startDateRange)), re.dueDateRange && ((qe = (ze = S.value) == null ? void 0 : ze.setData) == null || qe.call(ze, re.dueDateRange)), re.archiveStatuses && ((Me = (Ee = b.value) == null ? void 0 : Ee.setData) == null || Me.call(Ee, re.archiveStatuses));
|
|
@@ -43542,8 +43542,8 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
43542
43542
|
const re = X(), U = ae(re);
|
|
43543
43543
|
_.value = ee(re), C.value = ee(re), p("apply-filter", U), l();
|
|
43544
43544
|
}, ne = () => {
|
|
43545
|
-
var re, U, ge, oe, Re, G, Y, de,
|
|
43546
|
-
(U = (re = g.value) == null ? void 0 : re.clear) == null || U.call(re), (oe = (ge = v.value) == null ? void 0 : ge.clear) == null || oe.call(ge), (G = (Re = w.value) == null ? void 0 : Re.clear) == null || G.call(Re), (de = (Y = S.value) == null ? void 0 : Y.clear) == null || de.call(Y), (xe = (
|
|
43545
|
+
var re, U, ge, oe, Re, G, Y, de, Ae, xe;
|
|
43546
|
+
(U = (re = g.value) == null ? void 0 : re.clear) == null || U.call(re), (oe = (ge = v.value) == null ? void 0 : ge.clear) == null || oe.call(ge), (G = (Re = w.value) == null ? void 0 : Re.clear) == null || G.call(Re), (de = (Y = S.value) == null ? void 0 : Y.clear) == null || de.call(Y), (xe = (Ae = b.value) == null ? void 0 : Ae.clear) == null || xe.call(Ae), T.value = "AND", C.value = null;
|
|
43547
43547
|
}, pe = () => {
|
|
43548
43548
|
ne(), _.value = null, C.value = null, p("apply-filter", {
|
|
43549
43549
|
preflight_status: "1"
|
|
@@ -43576,7 +43576,7 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
43576
43576
|
});
|
|
43577
43577
|
}
|
|
43578
43578
|
), (re, U) => {
|
|
43579
|
-
var ge, oe, Re, G, Y, de,
|
|
43579
|
+
var ge, oe, Re, G, Y, de, Ae;
|
|
43580
43580
|
return K(), ie(It, null, [
|
|
43581
43581
|
me("div", {
|
|
43582
43582
|
ref_key: "triggerRef",
|
|
@@ -43741,7 +43741,7 @@ const Zy = /* @__PURE__ */ Vc("userStore", () => {
|
|
|
43741
43741
|
ue(Ch, {
|
|
43742
43742
|
logic: T.value,
|
|
43743
43743
|
label: "Archive Status",
|
|
43744
|
-
openDropdown: (
|
|
43744
|
+
openDropdown: (Ae = b.value) == null ? void 0 : Ae.triggerFocus
|
|
43745
43745
|
}, {
|
|
43746
43746
|
default: he(() => [
|
|
43747
43747
|
ue(xle, {
|
|
@@ -44714,7 +44714,7 @@ function Kce(e, t = {}) {
|
|
|
44714
44714
|
);
|
|
44715
44715
|
return v(L), j;
|
|
44716
44716
|
}
|
|
44717
|
-
function
|
|
44717
|
+
function Ae(L, j) {
|
|
44718
44718
|
let le = null;
|
|
44719
44719
|
switch (L.currentChar()) {
|
|
44720
44720
|
case "{":
|
|
@@ -44779,7 +44779,7 @@ function Kce(e, t = {}) {
|
|
|
44779
44779
|
/* TokenChars.LinkedDelimiter */
|
|
44780
44780
|
);
|
|
44781
44781
|
default:
|
|
44782
|
-
return M(L) ? (Ge = h(j, 1, de(L)), j.braceNest = 0, j.inLinked = !1, Ge) : E(L, j) || T(L, j) ? (v(L), xe(L, j)) : I(L, j) ? (v(L), h(j, 12, G(L))) : P(L, j) ? (v(L), be === "{" ?
|
|
44782
|
+
return M(L) ? (Ge = h(j, 1, de(L)), j.braceNest = 0, j.inLinked = !1, Ge) : E(L, j) || T(L, j) ? (v(L), xe(L, j)) : I(L, j) ? (v(L), h(j, 12, G(L))) : P(L, j) ? (v(L), be === "{" ? Ae(L, j) || Ge : h(j, 11, Y(L))) : (le === 8 && d(Lt.INVALID_LINKED_FORMAT, r(), 0), j.braceNest = 0, j.inLinked = !1, Ve(L, j));
|
|
44783
44783
|
}
|
|
44784
44784
|
}
|
|
44785
44785
|
function Ve(L, j) {
|
|
@@ -44788,12 +44788,12 @@ function Kce(e, t = {}) {
|
|
|
44788
44788
|
/* TokenTypes.EOF */
|
|
44789
44789
|
};
|
|
44790
44790
|
if (j.braceNest > 0)
|
|
44791
|
-
return
|
|
44791
|
+
return Ae(L, j) || f(j);
|
|
44792
44792
|
if (j.inLinked)
|
|
44793
44793
|
return xe(L, j) || f(j);
|
|
44794
44794
|
switch (L.currentChar()) {
|
|
44795
44795
|
case "{":
|
|
44796
|
-
return
|
|
44796
|
+
return Ae(L, j) || f(j);
|
|
44797
44797
|
case "}":
|
|
44798
44798
|
return d(Lt.UNBALANCED_CLOSING_BRACE, r(), 0), L.next(), h(
|
|
44799
44799
|
j,
|
|
@@ -46756,20 +46756,20 @@ function A_(e = {}, t) {
|
|
|
46756
46756
|
}
|
|
46757
46757
|
if (vt !== "translate exists" && // for not `te` (e.g `t`)
|
|
46758
46758
|
io(Wt) && Wt === ew || vt === "translate exists" && !Wt) {
|
|
46759
|
-
const [
|
|
46760
|
-
if (J.env.NODE_ENV !== "production" && n && yt(
|
|
46761
|
-
key:
|
|
46759
|
+
const [Ne, je] = Me();
|
|
46760
|
+
if (J.env.NODE_ENV !== "production" && n && yt(Ne) && X(vt, je) && (v && (tw(g, Ne) || L2(p, Ne)) && fo(fs(Un.FALLBACK_TO_ROOT, {
|
|
46761
|
+
key: Ne,
|
|
46762
46762
|
type: vt
|
|
46763
46763
|
})), J.env.NODE_ENV !== "production")) {
|
|
46764
46764
|
const { __v_emitter: Et } = P;
|
|
46765
46765
|
Et && v && Et.emit("fallback", {
|
|
46766
46766
|
type: vt,
|
|
46767
|
-
key:
|
|
46767
|
+
key: Ne,
|
|
46768
46768
|
to: "global",
|
|
46769
|
-
groupId: `${vt}:${
|
|
46769
|
+
groupId: `${vt}:${Ne}`
|
|
46770
46770
|
});
|
|
46771
46771
|
}
|
|
46772
|
-
return n && v ? At(n) : Gt(
|
|
46772
|
+
return n && v ? At(n) : Gt(Ne);
|
|
46773
46773
|
} else {
|
|
46774
46774
|
if (en(Wt))
|
|
46775
46775
|
return Wt;
|
|
@@ -46864,7 +46864,7 @@ function A_(e = {}, t) {
|
|
|
46864
46864
|
}
|
|
46865
46865
|
return Me;
|
|
46866
46866
|
}
|
|
46867
|
-
function
|
|
46867
|
+
function Ae(Ee) {
|
|
46868
46868
|
const Me = de(Ee);
|
|
46869
46869
|
return Me ?? (n ? n.tm(Ee) || {} : {});
|
|
46870
46870
|
}
|
|
@@ -46980,7 +46980,7 @@ function A_(e = {}, t) {
|
|
|
46980
46980
|
setMissingHandler: ee,
|
|
46981
46981
|
[X2]: G
|
|
46982
46982
|
};
|
|
46983
|
-
return qe.datetimeFormats = x, qe.numberFormats = $, qe.rt = ne, qe.te = Y, qe.tm =
|
|
46983
|
+
return qe.datetimeFormats = x, qe.numberFormats = $, qe.rt = ne, qe.te = Y, qe.tm = Ae, qe.d = pe, qe.n = ve, qe.getDateTimeFormat = L, qe.setDateTimeFormat = j, qe.mergeDateTimeFormat = le, qe.getNumberFormat = Ge, qe.setNumberFormat = be, qe.mergeNumberFormat = ze, qe[J2] = o, qe[iE] = ge, qe[aE] = Re, qe[lE] = oe, J.env.NODE_ENV !== "production" && (qe[Ic] = (Ee) => {
|
|
46984
46984
|
P.__v_emitter = Ee;
|
|
46985
46985
|
}, qe[jf] = () => {
|
|
46986
46986
|
P.__v_emitter = void 0;
|
|
@@ -48698,19 +48698,19 @@ const Ehe = { key: 1 }, _he = /* @__PURE__ */ st({
|
|
|
48698
48698
|
} : void 0
|
|
48699
48699
|
]), 1032, ["popup-name"]));
|
|
48700
48700
|
}
|
|
48701
|
-
}), Rhe = "
|
|
48702
|
-
"step-section": "_step-
|
|
48703
|
-
"step-title": "_step-
|
|
48704
|
-
"step-title-2": "_step-title-
|
|
48705
|
-
"step-description": "_step-
|
|
48706
|
-
"actions-section": "_actions-
|
|
48707
|
-
"date-format-guide": "_date-format-
|
|
48708
|
-
"import-error": "_import-
|
|
48709
|
-
"drop-area": "_drop-
|
|
48710
|
-
"is-dragging": "_is-
|
|
48711
|
-
"drop-area-content": "_drop-area-
|
|
48701
|
+
}), Rhe = "_browse_77yki_67", Dhe = {
|
|
48702
|
+
"step-section": "_step-section_77yki_1",
|
|
48703
|
+
"step-title": "_step-title_77yki_11",
|
|
48704
|
+
"step-title-2": "_step-title-2_77yki_17",
|
|
48705
|
+
"step-description": "_step-description_77yki_23",
|
|
48706
|
+
"actions-section": "_actions-section_77yki_28",
|
|
48707
|
+
"date-format-guide": "_date-format-guide_77yki_34",
|
|
48708
|
+
"import-error": "_import-error_77yki_45",
|
|
48709
|
+
"drop-area": "_drop-area_77yki_55",
|
|
48710
|
+
"is-dragging": "_is-dragging_77yki_55",
|
|
48711
|
+
"drop-area-content": "_drop-area-content_77yki_58",
|
|
48712
48712
|
browse: Rhe,
|
|
48713
|
-
"download-sample-btn": "_download-sample-
|
|
48713
|
+
"download-sample-btn": "_download-sample-btn_77yki_71"
|
|
48714
48714
|
}, The = {
|
|
48715
48715
|
$style: Dhe
|
|
48716
48716
|
}, Ihe = /* @__PURE__ */ Ct(_he, [["__cssModules", The]]), kF = {
|
|
@@ -89396,30 +89396,38 @@ const hIe = {
|
|
|
89396
89396
|
GRID_HEIGHT: "650px"
|
|
89397
89397
|
}, d = B(""), h = q(() => {
|
|
89398
89398
|
var Ze;
|
|
89399
|
-
const
|
|
89399
|
+
const Pe = ((Ze = i.value) == null ? void 0 : Ze.has_create_item_permission) == 1 || !1;
|
|
89400
89400
|
return [
|
|
89401
|
-
{
|
|
89402
|
-
label: "Create in bulk",
|
|
89403
|
-
value: "import_scenes",
|
|
89404
|
-
// icon: 'FileImport',
|
|
89405
|
-
type: "text",
|
|
89406
|
-
id: "import_scenes_option",
|
|
89407
|
-
hide: !Ae
|
|
89408
|
-
},
|
|
89409
89401
|
// {
|
|
89410
|
-
// label: '
|
|
89402
|
+
// label: 'Create in bulk',
|
|
89411
89403
|
// value: 'import_scenes',
|
|
89412
|
-
// icon: 'FileImport',
|
|
89413
|
-
// type: '
|
|
89414
|
-
// hide: !canCreate,
|
|
89404
|
+
// // icon: 'FileImport',
|
|
89405
|
+
// type: 'text',
|
|
89415
89406
|
// id: 'import_scenes_option',
|
|
89407
|
+
// hide: !canCreate,
|
|
89416
89408
|
// },
|
|
89409
|
+
{
|
|
89410
|
+
label: "Create manually",
|
|
89411
|
+
value: "new_scene",
|
|
89412
|
+
icon: "Plus",
|
|
89413
|
+
type: "icon",
|
|
89414
|
+
id: "create_new_scene",
|
|
89415
|
+
hide: !Pe
|
|
89416
|
+
},
|
|
89417
|
+
{
|
|
89418
|
+
label: "Import from CSV or Excel",
|
|
89419
|
+
value: "import_scenes",
|
|
89420
|
+
icon: "FileImport",
|
|
89421
|
+
type: "icon",
|
|
89422
|
+
hide: !Pe,
|
|
89423
|
+
id: "import_scenes_option"
|
|
89424
|
+
},
|
|
89417
89425
|
{
|
|
89418
89426
|
label: "Update existing (CSV or Excel)",
|
|
89419
89427
|
value: "overwrite_scenes",
|
|
89420
|
-
|
|
89421
|
-
type: "
|
|
89422
|
-
hide: !
|
|
89428
|
+
icon: "FilePen",
|
|
89429
|
+
type: "icon",
|
|
89430
|
+
hide: !Pe,
|
|
89423
89431
|
id: "overwrite_scenes_option"
|
|
89424
89432
|
}
|
|
89425
89433
|
];
|
|
@@ -89430,8 +89438,8 @@ const hIe = {
|
|
|
89430
89438
|
});
|
|
89431
89439
|
const p = Tp(), { switchInstanceFunc: g } = is(p);
|
|
89432
89440
|
Qt(() => {
|
|
89433
|
-
const
|
|
89434
|
-
g.value =
|
|
89441
|
+
const Pe = lo();
|
|
89442
|
+
g.value = Pe == null ? void 0 : Pe.appContext.config.globalProperties.switchInstance;
|
|
89435
89443
|
const Ze = new BroadcastChannel("focusable_channel");
|
|
89436
89444
|
wt(() => {
|
|
89437
89445
|
setTimeout(() => {
|
|
@@ -89447,23 +89455,23 @@ const hIe = {
|
|
|
89447
89455
|
nt(
|
|
89448
89456
|
() => k,
|
|
89449
89457
|
() => {
|
|
89450
|
-
var
|
|
89451
|
-
(
|
|
89458
|
+
var Pe;
|
|
89459
|
+
(Pe = W.value) == null || Pe.updateColumnDefs(k.value);
|
|
89452
89460
|
},
|
|
89453
89461
|
{ deep: !0 }
|
|
89454
89462
|
);
|
|
89455
|
-
const Q = (
|
|
89456
|
-
$(
|
|
89463
|
+
const Q = (Pe, Ze) => {
|
|
89464
|
+
$(Pe, Ze);
|
|
89457
89465
|
}, { updateRowData: ae, setMetricValues: ee } = cIe(v), X = q(() => ({
|
|
89458
89466
|
isSearching: _.value.length > 0,
|
|
89459
89467
|
isFiltering: !(Object.keys(Ve.value || {}).length == 1 && Object.keys(Ve.value)[0] == "preflight_status") && Object.keys(Ve.value || {}).length > 0
|
|
89460
89468
|
})), N = q(Ay), z = q(
|
|
89461
|
-
() => k.value.filter((
|
|
89469
|
+
() => k.value.filter((Pe) => {
|
|
89462
89470
|
var Ze;
|
|
89463
|
-
return ((Ze =
|
|
89464
|
-
}).map((
|
|
89471
|
+
return ((Ze = Pe.field) == null ? void 0 : Ze.startsWith("metric_")) && !Pe.hide;
|
|
89472
|
+
}).map((Pe) => {
|
|
89465
89473
|
var Ze;
|
|
89466
|
-
return ((Ze =
|
|
89474
|
+
return ((Ze = Pe.field) == null ? void 0 : Ze.replace("metric_", "")) || "";
|
|
89467
89475
|
})
|
|
89468
89476
|
);
|
|
89469
89477
|
Ti("timezone", N);
|
|
@@ -89476,30 +89484,30 @@ const hIe = {
|
|
|
89476
89484
|
setMetricValues: ee
|
|
89477
89485
|
})), { fetchItems: pe, getMetricList: ve, cusorMap: we, getMetricValues: re } = lIe(ne), U = q(() => {
|
|
89478
89486
|
if (!v.value) return !1;
|
|
89479
|
-
const
|
|
89480
|
-
return
|
|
89487
|
+
const Pe = v.value.getSelectedRows().length;
|
|
89488
|
+
return Pe > 0 && Pe >= b.value.total;
|
|
89481
89489
|
}), ge = q(() => {
|
|
89482
|
-
var
|
|
89483
|
-
return ((
|
|
89484
|
-
}), oe = (
|
|
89490
|
+
var Pe;
|
|
89491
|
+
return ((Pe = c.value) == null ? void 0 : Pe.name) || "Items";
|
|
89492
|
+
}), oe = (Pe) => {
|
|
89485
89493
|
setTimeout(() => {
|
|
89486
89494
|
wt(() => {
|
|
89487
89495
|
var Ze, jt;
|
|
89488
|
-
v.value && (
|
|
89496
|
+
v.value && (Pe ? (Ze = v.value) == null || Ze.showNoRowsOverlay() : (jt = v.value) == null || jt.hideOverlay());
|
|
89489
89497
|
});
|
|
89490
89498
|
}, 500);
|
|
89491
|
-
}, Re = (
|
|
89499
|
+
}, Re = (Pe, Ze) => {
|
|
89492
89500
|
var jt;
|
|
89493
|
-
b.value.total =
|
|
89494
|
-
}, G = h2(), { setDefaultSort: Y } = G, de = B(null), { sortingAPIConfiguration:
|
|
89501
|
+
b.value.total = Pe.meta.total ?? 0, (jt = Pe.meta.next) != null && jt.cursor && (we[Ze + 1] = Pe.meta.next.cursor), P.value = Pe.meta["X-Tsr-signature"] || "", Pe.meta.total === 0 ? oe(!0) : oe(!1);
|
|
89502
|
+
}, G = h2(), { setDefaultSort: Y } = G, de = B(null), { sortingAPIConfiguration: Ae, isSortingRunning: xe } = is(G), Ve = B({
|
|
89495
89503
|
// status_eq: '1',
|
|
89496
89504
|
preflight_status: "1"
|
|
89497
89505
|
}), ye = q(() => ({ ...Ve.value, search: _.value }));
|
|
89498
89506
|
Ti("filterParams", ye);
|
|
89499
|
-
const L = B([]), j = async ({ page:
|
|
89507
|
+
const L = B([]), j = async ({ page: Pe, pageSize: Ze, filterText: jt }) => {
|
|
89500
89508
|
var _l, Vi, Rn;
|
|
89501
89509
|
(_l = v.value) == null || _l.hideOverlay();
|
|
89502
|
-
const ln = we[
|
|
89510
|
+
const ln = we[Pe], Zr = !ln && Pe > 1 ? (Pe - 1) * Ze : void 0, Xo = Ae.value;
|
|
89503
89511
|
Xo.length > 0 && (xe.value = !0);
|
|
89504
89512
|
try {
|
|
89505
89513
|
const yr = {
|
|
@@ -89519,7 +89527,7 @@ const hIe = {
|
|
|
89519
89527
|
D.value.add(String(js.id)), F.value.set(String(js.id), {});
|
|
89520
89528
|
}), Yc;
|
|
89521
89529
|
})(ls);
|
|
89522
|
-
return Re(ls,
|
|
89530
|
+
return Re(ls, Pe), { rows: qc, total: b.value.total };
|
|
89523
89531
|
} catch (yr) {
|
|
89524
89532
|
return console.error("Failed to fetch items:", yr), { rows: [], total: 0 };
|
|
89525
89533
|
} finally {
|
|
@@ -89542,8 +89550,8 @@ const hIe = {
|
|
|
89542
89550
|
perPage: u.ROWS_PER_PAGE,
|
|
89543
89551
|
fetcher: j
|
|
89544
89552
|
}), vt = B([]), At = () => {
|
|
89545
|
-
var
|
|
89546
|
-
vt.value = ((
|
|
89553
|
+
var Pe;
|
|
89554
|
+
vt.value = ((Pe = v.value) == null ? void 0 : Pe.getSelectedRows()) || [];
|
|
89547
89555
|
}, Gt = ws({
|
|
89548
89556
|
columnsDisplay: [],
|
|
89549
89557
|
rowsDisplay: {
|
|
@@ -89591,11 +89599,11 @@ const hIe = {
|
|
|
89591
89599
|
minWidth: 100,
|
|
89592
89600
|
suppressNavigable: !1
|
|
89593
89601
|
},
|
|
89594
|
-
getRowId: (
|
|
89595
|
-
getRowClass: (
|
|
89596
|
-
if (!
|
|
89602
|
+
getRowId: (Pe) => Pe.data.id,
|
|
89603
|
+
getRowClass: (Pe) => {
|
|
89604
|
+
if (!Pe.data) return ["row-empty"];
|
|
89597
89605
|
const Ze = ["row-highlight"];
|
|
89598
|
-
return
|
|
89606
|
+
return Pe.data.id || Ze.push("row-inactive"), Pe.data.isDeleted && Ze.push("row-deleted"), Pe.data.disabled && Ze.push("row-deleted"), Pe.data.isArchived && Ze.push("row-archived"), Pe.data.isLocked && Ze.push("row-locked"), Ze;
|
|
89599
89607
|
},
|
|
89600
89608
|
suppressRowTransform: !1,
|
|
89601
89609
|
singleClickEdit: !0,
|
|
@@ -89605,12 +89613,12 @@ const hIe = {
|
|
|
89605
89613
|
apiServices: O.value,
|
|
89606
89614
|
sorting: xe.value
|
|
89607
89615
|
},
|
|
89608
|
-
onCellKeyDown: (
|
|
89616
|
+
onCellKeyDown: (Pe) => {
|
|
89609
89617
|
var Ze, jt, ln;
|
|
89610
|
-
if (
|
|
89618
|
+
if (Pe.data.isDeleted)
|
|
89611
89619
|
return !1;
|
|
89612
|
-
if (((Ze =
|
|
89613
|
-
const { api: Zr, node: Xo, column: _l } =
|
|
89620
|
+
if (((Ze = Pe == null ? void 0 : Pe.event) == null ? void 0 : Ze.key) === "Enter") {
|
|
89621
|
+
const { api: Zr, node: Xo, column: _l } = Pe, Vi = Zr.getCellRendererInstances({
|
|
89614
89622
|
rowNodes: [Xo],
|
|
89615
89623
|
columns: [_l]
|
|
89616
89624
|
});
|
|
@@ -89620,36 +89628,36 @@ const hIe = {
|
|
|
89620
89628
|
}
|
|
89621
89629
|
}
|
|
89622
89630
|
},
|
|
89623
|
-
isRowSelectable: (
|
|
89624
|
-
suppressKeyboardEvent: (
|
|
89631
|
+
isRowSelectable: (Pe) => !Pe.group,
|
|
89632
|
+
suppressKeyboardEvent: (Pe) => {
|
|
89625
89633
|
var ln;
|
|
89626
|
-
if ((ln =
|
|
89634
|
+
if ((ln = Pe.data) != null && ln.isDeleted)
|
|
89627
89635
|
return !0;
|
|
89628
|
-
const Ze =
|
|
89629
|
-
return jt && Ze === "Tab" ? !0 : jt && Ze === "Enter" ? !1 : Ze === "Enter" ? (
|
|
89636
|
+
const Ze = Pe.event.key, jt = Pe.editing;
|
|
89637
|
+
return jt && Ze === "Tab" ? !0 : jt && Ze === "Enter" ? !1 : Ze === "Enter" ? (Pe.event.preventDefault(), Pe.event.stopPropagation(), !0) : Ze === "ArrowUp" || Ze === "ArrowDown" || Ze === "ArrowLeft" || Ze === "ArrowRight" || Ze === "Tab" || Ze === "Enter";
|
|
89630
89638
|
},
|
|
89631
89639
|
navigateToNextCell: () => null,
|
|
89632
|
-
onBodyScroll: (
|
|
89633
|
-
const Ze =
|
|
89634
|
-
Gt.rowsDisplay.fromIndex = Ze, Gt.rowsDisplay.toIndex = jt, Gt.columnsDisplay =
|
|
89640
|
+
onBodyScroll: (Pe) => {
|
|
89641
|
+
const Ze = Pe.api.getFirstDisplayedRowIndex(), jt = Pe.api.getLastDisplayedRowIndex();
|
|
89642
|
+
Gt.rowsDisplay.fromIndex = Ze, Gt.rowsDisplay.toIndex = jt, Gt.columnsDisplay = Pe.api.getAllDisplayedVirtualColumns().map((ln) => ln.getColId());
|
|
89635
89643
|
},
|
|
89636
|
-
onViewportChanged: (
|
|
89637
|
-
Gt.columnsDisplay =
|
|
89644
|
+
onViewportChanged: (Pe) => {
|
|
89645
|
+
Gt.columnsDisplay = Pe.api.getAllDisplayedVirtualColumns().map((Ze) => Ze.getColId());
|
|
89638
89646
|
},
|
|
89639
89647
|
suppressHeaderFocus: !0,
|
|
89640
|
-
onCellEditingStarted(
|
|
89641
|
-
if (
|
|
89642
|
-
const Ze =
|
|
89643
|
-
rowNodes: [
|
|
89644
|
-
columns: [
|
|
89648
|
+
onCellEditingStarted(Pe) {
|
|
89649
|
+
if (Pe.data.isDeleted && Pe.api.stopEditing(), Pe.colDef.field == "options") {
|
|
89650
|
+
const Ze = Pe.api.getCellRendererInstances({
|
|
89651
|
+
rowNodes: [Pe.node],
|
|
89652
|
+
columns: [Pe.column]
|
|
89645
89653
|
});
|
|
89646
89654
|
Ze.length > 0 && Ze[0].focusUi();
|
|
89647
89655
|
}
|
|
89648
89656
|
},
|
|
89649
|
-
tabToNextCell: (
|
|
89650
|
-
let Ze =
|
|
89657
|
+
tabToNextCell: (Pe) => {
|
|
89658
|
+
let Ze = Pe.nextCellPosition;
|
|
89651
89659
|
if (Ze && Ze.column.getColId() === "ag-Grid-SelectionColumn") {
|
|
89652
|
-
const jt =
|
|
89660
|
+
const jt = Pe.api.getAllDisplayedColumns(), ln = jt.indexOf(Ze.column), Zr = Pe.backwards ? -1 : 1, Xo = jt[ln + Zr];
|
|
89653
89661
|
if (Xo)
|
|
89654
89662
|
return {
|
|
89655
89663
|
rowIndex: Ze.rowIndex,
|
|
@@ -89662,114 +89670,114 @@ const hIe = {
|
|
|
89662
89670
|
}));
|
|
89663
89671
|
function Wt() {
|
|
89664
89672
|
if (!v.value) return;
|
|
89665
|
-
let
|
|
89673
|
+
let Pe = 0;
|
|
89666
89674
|
v.value.forEachNode((Ze) => {
|
|
89667
|
-
Ze.data &&
|
|
89668
|
-
}), b.value.loaded = Math.min(
|
|
89675
|
+
Ze.data && Pe++;
|
|
89676
|
+
}), b.value.loaded = Math.min(Pe, b.value.total);
|
|
89669
89677
|
}
|
|
89670
89678
|
nt(
|
|
89671
|
-
() =>
|
|
89679
|
+
() => Ae,
|
|
89672
89680
|
() => {
|
|
89673
|
-
v.value && (P.value = "", D.value.clear(), v.value.deselectAll(), Object.keys(we).forEach((
|
|
89681
|
+
v.value && (P.value = "", D.value.clear(), v.value.deselectAll(), Object.keys(we).forEach((Pe) => delete we[Number(Pe)]), v.value.purgeInfiniteCache(), v.value.ensureIndexVisible(0));
|
|
89674
89682
|
},
|
|
89675
89683
|
{
|
|
89676
89684
|
deep: !0
|
|
89677
89685
|
}
|
|
89678
89686
|
);
|
|
89679
|
-
const
|
|
89680
|
-
var
|
|
89681
|
-
(
|
|
89687
|
+
const Ne = B(), je = B(), Et = B(), Mt = () => {
|
|
89688
|
+
var Pe;
|
|
89689
|
+
(Pe = Et.value) == null || Pe.open();
|
|
89682
89690
|
}, zt = () => {
|
|
89683
|
-
var
|
|
89684
|
-
(
|
|
89691
|
+
var Pe;
|
|
89692
|
+
(Pe = Ne.value) == null || Pe.open();
|
|
89685
89693
|
}, tt = async () => {
|
|
89686
|
-
Me.value = !0, v.value && (P.value = "", D.value.clear(), Object.keys(we).forEach((
|
|
89694
|
+
Me.value = !0, v.value && (P.value = "", D.value.clear(), Object.keys(we).forEach((Pe) => delete we[Number(Pe)]), await v.value.deselectAll(), await v.value.ensureIndexVisible(0, "top"), await v.value.purgeInfiniteCache(), await v.value.refreshInfiniteCache());
|
|
89687
89695
|
}, So = q(() => dn.getInstance().getItem("ITEM_TABLE_APP_VERSION") || ""), Us = B();
|
|
89688
89696
|
q(() => {
|
|
89689
|
-
var
|
|
89690
|
-
return (
|
|
89697
|
+
var Pe;
|
|
89698
|
+
return (Pe = pIe(So.value)) == null ? void 0 : Pe.map((Ze) => `<div>• ${Ze}</div>`).join(`
|
|
89691
89699
|
`);
|
|
89692
89700
|
});
|
|
89693
|
-
function Wr(
|
|
89701
|
+
function Wr(Pe) {
|
|
89694
89702
|
var Ze;
|
|
89695
|
-
|
|
89703
|
+
Pe === "new_scene" ? (Ze = Us.value) == null || Ze.show() : Pe === "import_scenes" ? zt() : Pe === "overwrite_scenes" && Mt();
|
|
89696
89704
|
}
|
|
89697
|
-
const Ws = (
|
|
89698
|
-
w.value =
|
|
89699
|
-
}, Li = (
|
|
89700
|
-
const Ze = be(
|
|
89705
|
+
const Ws = (Pe) => {
|
|
89706
|
+
w.value = Pe.api.getSelectedRows().map((Ze) => Ze.id);
|
|
89707
|
+
}, Li = (Pe) => {
|
|
89708
|
+
const Ze = be(Pe);
|
|
89701
89709
|
return Ze && (Ze.addEventListener("modelUpdated", Wt), Ze.addEventListener("bodyScroll", () => Ze.stopEditing()), Ze.addEventListener("selectionChanged", At), Ze.addEventListener("columnMoved", (ln) => Q(ln, !0)), Ze.addEventListener("columnResized", (ln) => Q(ln, !0)), Ze.addEventListener("firstDataRendered", () => {
|
|
89702
89710
|
Me.value = !1;
|
|
89703
|
-
}), !document.querySelector(".ag-body-viewport")) ||
|
|
89711
|
+
}), !document.querySelector(".ag-body-viewport")) || Pe == null || Pe.setColumnsVisible(["ag-Grid-SelectionColumn"], !1), Ze;
|
|
89704
89712
|
}, zr = () => {
|
|
89705
|
-
var
|
|
89706
|
-
d.value = (((
|
|
89713
|
+
var Pe;
|
|
89714
|
+
d.value = (((Pe = document.getElementById("item-table-layout-id")) == null ? void 0 : Pe.clientHeight) ?? 0) - 78 + "px";
|
|
89707
89715
|
};
|
|
89708
89716
|
Qt(() => {
|
|
89709
89717
|
wt(() => {
|
|
89710
89718
|
zr();
|
|
89711
89719
|
}), window.addEventListener("resize", zr);
|
|
89712
|
-
function
|
|
89713
|
-
requestAnimationFrame(
|
|
89720
|
+
function Pe() {
|
|
89721
|
+
requestAnimationFrame(Pe);
|
|
89714
89722
|
}
|
|
89715
|
-
|
|
89723
|
+
Pe();
|
|
89716
89724
|
}), Qn(() => {
|
|
89717
89725
|
window.removeEventListener("resize", zr);
|
|
89718
89726
|
});
|
|
89719
|
-
const jr = async ({ code:
|
|
89720
|
-
await Ee(
|
|
89727
|
+
const jr = async ({ code: Pe, name: Ze }) => {
|
|
89728
|
+
await Ee(Pe), setTimeout(() => {
|
|
89721
89729
|
var jt;
|
|
89722
89730
|
(jt = E.value) == null || jt.setValue(Ze);
|
|
89723
89731
|
}, 300);
|
|
89724
|
-
}, Kr = (
|
|
89732
|
+
}, Kr = (Pe) => {
|
|
89725
89733
|
if (!v.value) return;
|
|
89726
|
-
const Ze = v.value.getRowNode(
|
|
89734
|
+
const Ze = v.value.getRowNode(Pe);
|
|
89727
89735
|
Ze ? (v.value.ensureIndexVisible(Number(Ze.rowIndex), "middle"), v.value.flashCells({
|
|
89728
89736
|
rowNodes: [Ze],
|
|
89729
89737
|
flashDuration: 3e3,
|
|
89730
89738
|
/** The duration in milliseconds of how long the "flashed" state animation takes to fade away after the timer set by `flashDuration` has completed. */
|
|
89731
89739
|
fadeDuration: 1e3
|
|
89732
89740
|
})) : v.value.ensureIndexVisible(b.value.total - 1, "bottom");
|
|
89733
|
-
}, zs = (
|
|
89741
|
+
}, zs = (Pe) => Pe.metric_type.code === "number" ? "number" : "default", qr = async () => {
|
|
89734
89742
|
if (f.entityId)
|
|
89735
89743
|
try {
|
|
89736
|
-
const
|
|
89737
|
-
T.value =
|
|
89744
|
+
const Pe = await ve(f.entityId);
|
|
89745
|
+
T.value = Pe.data.map((Ze) => ({
|
|
89738
89746
|
...Ze,
|
|
89739
89747
|
sortType: zs(Ze)
|
|
89740
89748
|
}));
|
|
89741
|
-
} catch (
|
|
89742
|
-
console.error("Failed to initialize metric list:",
|
|
89749
|
+
} catch (Pe) {
|
|
89750
|
+
console.error("Failed to initialize metric list:", Pe), T.value = [];
|
|
89743
89751
|
}
|
|
89744
89752
|
}, Wc = async () => {
|
|
89745
89753
|
if (O.value)
|
|
89746
89754
|
try {
|
|
89747
|
-
const
|
|
89748
|
-
s(
|
|
89749
|
-
} catch (
|
|
89750
|
-
console.error("Failed to fetch user permissions:",
|
|
89755
|
+
const Pe = await O.value.getUserPermission(f.workspaceId);
|
|
89756
|
+
s(Pe);
|
|
89757
|
+
} catch (Pe) {
|
|
89758
|
+
console.error("Failed to fetch user permissions:", Pe);
|
|
89751
89759
|
}
|
|
89752
89760
|
}, xn = async () => {
|
|
89753
89761
|
if (O.value)
|
|
89754
89762
|
try {
|
|
89755
|
-
const
|
|
89756
|
-
r(
|
|
89757
|
-
} catch (
|
|
89758
|
-
console.error("Failed to fetch entity details:",
|
|
89763
|
+
const Pe = await O.value.getEntityDetail(f.workspaceId, f.entityId);
|
|
89764
|
+
r(Pe.permission), c.value = Pe;
|
|
89765
|
+
} catch (Pe) {
|
|
89766
|
+
console.error("Failed to fetch entity details:", Pe);
|
|
89759
89767
|
}
|
|
89760
89768
|
}, no = Zy(), { setUser: pw } = no, zc = async () => {
|
|
89761
89769
|
if (O.value)
|
|
89762
89770
|
try {
|
|
89763
|
-
const
|
|
89764
|
-
return pw(
|
|
89765
|
-
} catch (
|
|
89766
|
-
console.error("Failed to fetch user details:",
|
|
89771
|
+
const Pe = await O.value.getMe();
|
|
89772
|
+
return pw(Pe), Pe;
|
|
89773
|
+
} catch (Pe) {
|
|
89774
|
+
console.error("Failed to fetch user details:", Pe);
|
|
89767
89775
|
}
|
|
89768
89776
|
}, jc = async () => {
|
|
89769
|
-
var
|
|
89777
|
+
var Pe;
|
|
89770
89778
|
if (O.value)
|
|
89771
89779
|
try {
|
|
89772
|
-
const Ze = await O.value.getWorkspaces(f.workspaceId), jt = (
|
|
89780
|
+
const Ze = await O.value.getWorkspaces(f.workspaceId), jt = (Pe = Ze.data[0]) == null ? void 0 : Pe.ws_user_role_id;
|
|
89773
89781
|
return jt && no.setUserRoleId(jt), Ze;
|
|
89774
89782
|
} catch (Ze) {
|
|
89775
89783
|
console.error("Failed to fetch workspace details:", Ze);
|
|
@@ -89777,14 +89785,14 @@ const hIe = {
|
|
|
89777
89785
|
};
|
|
89778
89786
|
nt(
|
|
89779
89787
|
() => [f.entityId, f.workspaceId],
|
|
89780
|
-
async ([
|
|
89781
|
-
!
|
|
89788
|
+
async ([Pe, Ze]) => {
|
|
89789
|
+
!Pe || !Ze || (zc(), jc(), qr(), Wc(), xn());
|
|
89782
89790
|
},
|
|
89783
89791
|
{ immediate: !0, deep: !0 }
|
|
89784
89792
|
), nt(
|
|
89785
89793
|
z,
|
|
89786
|
-
(
|
|
89787
|
-
const jt =
|
|
89794
|
+
(Pe, Ze) => {
|
|
89795
|
+
const jt = Pe.filter((ln) => !(Ze != null && Ze.includes(ln)));
|
|
89788
89796
|
jt.length > 0 && re(Array.from(D.value), jt).then((ln) => {
|
|
89789
89797
|
ee(ln, D.value, jt);
|
|
89790
89798
|
});
|
|
@@ -89793,23 +89801,23 @@ const hIe = {
|
|
|
89793
89801
|
immediate: !0,
|
|
89794
89802
|
deep: !0
|
|
89795
89803
|
}
|
|
89796
|
-
), nt(P, (
|
|
89797
|
-
M.value = !!(Ze &&
|
|
89804
|
+
), nt(P, (Pe, Ze) => {
|
|
89805
|
+
M.value = !!(Ze && Pe && Ze !== Pe);
|
|
89798
89806
|
}), t({
|
|
89799
89807
|
refreshTable: tt
|
|
89800
89808
|
});
|
|
89801
|
-
const Kc = (
|
|
89802
|
-
Ve.value =
|
|
89803
|
-
}, gw = (
|
|
89804
|
-
L.value =
|
|
89805
|
-
}, Yr = (
|
|
89806
|
-
k.value =
|
|
89809
|
+
const Kc = (Pe) => {
|
|
89810
|
+
Ve.value = Pe, tt();
|
|
89811
|
+
}, gw = (Pe) => {
|
|
89812
|
+
L.value = Pe, tt();
|
|
89813
|
+
}, Yr = (Pe) => {
|
|
89814
|
+
k.value = Pe || [], Q({}, !0);
|
|
89807
89815
|
}, Da = q(() => {
|
|
89808
89816
|
var ln;
|
|
89809
|
-
const
|
|
89817
|
+
const Pe = dn.getInstance().getItem("ws.terminology"), Ze = Pe ? JSON.parse(Pe) : null;
|
|
89810
89818
|
return `New ${((ln = Ze == null ? void 0 : Ze.find((Zr) => Zr.code === "scene")) == null ? void 0 : ln.name) || "Scene"}`;
|
|
89811
89819
|
});
|
|
89812
|
-
return (
|
|
89820
|
+
return (Pe, Ze) => (K(), Ue(H(Moe), {
|
|
89813
89821
|
"is-sidebar-open": C.value,
|
|
89814
89822
|
onCloseSidebar: H(Ge),
|
|
89815
89823
|
onSidebarClear: H(Ge),
|
|
@@ -89856,7 +89864,7 @@ const hIe = {
|
|
|
89856
89864
|
modelValue: _.value,
|
|
89857
89865
|
"onUpdate:modelValue": Ze[2] || (Ze[2] = (jt) => _.value = jt),
|
|
89858
89866
|
onSearch: H(Ee),
|
|
89859
|
-
class: te(
|
|
89867
|
+
class: te(Pe.$style.itemSearchBox),
|
|
89860
89868
|
onClear: Ze[3] || (Ze[3] = (jt) => H(Ee)("")),
|
|
89861
89869
|
id: "item_search_box",
|
|
89862
89870
|
ref_key: "searchBoxRef",
|
|
@@ -89914,12 +89922,12 @@ const hIe = {
|
|
|
89914
89922
|
isSorting: H(xe),
|
|
89915
89923
|
onOnGridReady: Li,
|
|
89916
89924
|
onSelectionChanged: Ws,
|
|
89917
|
-
onOnScroll:
|
|
89925
|
+
onOnScroll: Pe.handleScroll
|
|
89918
89926
|
}), null, 16, ["height", "isSorting", "onOnScroll"])
|
|
89919
89927
|
]),
|
|
89920
89928
|
footer: he(() => [
|
|
89921
89929
|
me("div", {
|
|
89922
|
-
class: te(
|
|
89930
|
+
class: te(Pe.$style.tableFooter),
|
|
89923
89931
|
id: "table_footer"
|
|
89924
89932
|
}, [
|
|
89925
89933
|
me("span", null, [
|
|
@@ -89961,7 +89969,7 @@ const hIe = {
|
|
|
89961
89969
|
popup: he(() => [
|
|
89962
89970
|
ue(Ihe, {
|
|
89963
89971
|
ref_key: "popupCreateSceneRef",
|
|
89964
|
-
ref:
|
|
89972
|
+
ref: Ne,
|
|
89965
89973
|
"workspace-id": f.workspaceId,
|
|
89966
89974
|
"entity-id": f.entityId,
|
|
89967
89975
|
onImportSuccess: tt
|
|
@@ -89995,7 +90003,7 @@ const hIe = {
|
|
|
89995
90003
|
"beta-tag": "_beta-tag_1sow5_56"
|
|
89996
90004
|
}, YIe = {
|
|
89997
90005
|
$style: qIe
|
|
89998
|
-
}, ZIe = /* @__PURE__ */ Ct(GIe, [["__cssModules", YIe]]), fH = "0.1.
|
|
90006
|
+
}, ZIe = /* @__PURE__ */ Ct(GIe, [["__cssModules", YIe]]), fH = "0.1.185", XIe = { key: 0 }, JIe = /* @__PURE__ */ st({
|
|
89999
90007
|
__name: "app",
|
|
90000
90008
|
setup(e) {
|
|
90001
90009
|
const t = q(() => n.id.length === 0 || n.workspaceId.length === 0), n = ws({
|