bt-core-app 2.0.203 → 2.0.205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bt-core-app.js +349 -349
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -6436,11 +6436,11 @@ var $D = { exports: {} };
|
|
|
6436
6436
|
var Te = ie.result;
|
|
6437
6437
|
try {
|
|
6438
6438
|
Te.createObjectStore(F.storeName), ye.oldVersion <= 1 && Te.createObjectStore(p);
|
|
6439
|
-
} catch (
|
|
6440
|
-
if (
|
|
6439
|
+
} catch (Ie) {
|
|
6440
|
+
if (Ie.name === "ConstraintError")
|
|
6441
6441
|
console.warn('The database "' + F.name + '" has been upgraded from version ' + ye.oldVersion + " to version " + ye.newVersion + ', but the storage "' + F.storeName + '" already exists.');
|
|
6442
6442
|
else
|
|
6443
|
-
throw
|
|
6443
|
+
throw Ie;
|
|
6444
6444
|
}
|
|
6445
6445
|
}), ie.onerror = function(ye) {
|
|
6446
6446
|
ye.preventDefault(), oe(ie.error);
|
|
@@ -6559,18 +6559,18 @@ var $D = { exports: {} };
|
|
|
6559
6559
|
return d.resolve();
|
|
6560
6560
|
}
|
|
6561
6561
|
for (var Te = 0; Te < se.forages.length; Te++) {
|
|
6562
|
-
var
|
|
6563
|
-
|
|
6562
|
+
var Ie = se.forages[Te];
|
|
6563
|
+
Ie !== Q && ie.push(Ie._initReady().catch(ye));
|
|
6564
6564
|
}
|
|
6565
|
-
var
|
|
6565
|
+
var Ee = se.forages.slice(0);
|
|
6566
6566
|
return d.all(ie).then(function() {
|
|
6567
6567
|
return G.db = se.db, A(G);
|
|
6568
6568
|
}).then(function(Ve) {
|
|
6569
6569
|
return G.db = Ve, I(G, Q._defaultConfig.version) ? $(G) : Ve;
|
|
6570
6570
|
}).then(function(Ve) {
|
|
6571
6571
|
G.db = se.db = Ve, Q._dbInfo = G;
|
|
6572
|
-
for (var Ye = 0; Ye <
|
|
6573
|
-
var ot =
|
|
6572
|
+
for (var Ye = 0; Ye < Ee.length; Ye++) {
|
|
6573
|
+
var ot = Ee[Ye];
|
|
6574
6574
|
ot !== Q && (ot._dbInfo.db = G.db, ot._dbInfo.version = G.version);
|
|
6575
6575
|
}
|
|
6576
6576
|
});
|
|
@@ -6584,12 +6584,12 @@ var $D = { exports: {} };
|
|
|
6584
6584
|
if (ye)
|
|
6585
6585
|
return ie(ye);
|
|
6586
6586
|
try {
|
|
6587
|
-
var
|
|
6588
|
-
|
|
6589
|
-
var Ve =
|
|
6587
|
+
var Ie = Te.objectStore(G._dbInfo.storeName), Ee = Ie.get(F);
|
|
6588
|
+
Ee.onsuccess = function() {
|
|
6589
|
+
var Ve = Ee.result;
|
|
6590
6590
|
Ve === void 0 && (Ve = null), Y(Ve) && (Ve = V(Ve)), se(Ve);
|
|
6591
|
-
},
|
|
6592
|
-
ie(
|
|
6591
|
+
}, Ee.onerror = function() {
|
|
6592
|
+
ie(Ee.error);
|
|
6593
6593
|
};
|
|
6594
6594
|
} catch (Ve) {
|
|
6595
6595
|
ie(Ve);
|
|
@@ -6606,9 +6606,9 @@ var $D = { exports: {} };
|
|
|
6606
6606
|
if (ye)
|
|
6607
6607
|
return ie(ye);
|
|
6608
6608
|
try {
|
|
6609
|
-
var
|
|
6610
|
-
|
|
6611
|
-
var Ye =
|
|
6609
|
+
var Ie = Te.objectStore(G._dbInfo.storeName), Ee = Ie.openCursor(), Ve = 1;
|
|
6610
|
+
Ee.onsuccess = function() {
|
|
6611
|
+
var Ye = Ee.result;
|
|
6612
6612
|
if (Ye) {
|
|
6613
6613
|
var ot = Ye.value;
|
|
6614
6614
|
Y(ot) && (ot = V(ot));
|
|
@@ -6616,8 +6616,8 @@ var $D = { exports: {} };
|
|
|
6616
6616
|
St !== void 0 ? se(St) : Ye.continue();
|
|
6617
6617
|
} else
|
|
6618
6618
|
se();
|
|
6619
|
-
},
|
|
6620
|
-
ie(
|
|
6619
|
+
}, Ee.onerror = function() {
|
|
6620
|
+
ie(Ee.error);
|
|
6621
6621
|
};
|
|
6622
6622
|
} catch (Ye) {
|
|
6623
6623
|
ie(Ye);
|
|
@@ -6633,19 +6633,19 @@ var $D = { exports: {} };
|
|
|
6633
6633
|
var se = new d(function(ie, ye) {
|
|
6634
6634
|
var Te;
|
|
6635
6635
|
oe.ready().then(function() {
|
|
6636
|
-
return Te = oe._dbInfo, S.call(Q) === "[object Blob]" ? D(Te.db).then(function(
|
|
6637
|
-
return
|
|
6636
|
+
return Te = oe._dbInfo, S.call(Q) === "[object Blob]" ? D(Te.db).then(function(Ie) {
|
|
6637
|
+
return Ie ? Q : z(Q);
|
|
6638
6638
|
}) : Q;
|
|
6639
|
-
}).then(function(
|
|
6640
|
-
R(oe._dbInfo, b, function(
|
|
6641
|
-
if (
|
|
6642
|
-
return ye(
|
|
6639
|
+
}).then(function(Ie) {
|
|
6640
|
+
R(oe._dbInfo, b, function(Ee, Ve) {
|
|
6641
|
+
if (Ee)
|
|
6642
|
+
return ye(Ee);
|
|
6643
6643
|
try {
|
|
6644
6644
|
var Ye = Ve.objectStore(oe._dbInfo.storeName);
|
|
6645
|
-
|
|
6646
|
-
var ot = Ye.put(
|
|
6645
|
+
Ie === null && (Ie = void 0);
|
|
6646
|
+
var ot = Ye.put(Ie, F);
|
|
6647
6647
|
Ve.oncomplete = function() {
|
|
6648
|
-
|
|
6648
|
+
Ie === void 0 && (Ie = null), ie(Ie);
|
|
6649
6649
|
}, Ve.onabort = Ve.onerror = function() {
|
|
6650
6650
|
var St = ot.error ? ot.error : ot.transaction.error;
|
|
6651
6651
|
ye(St);
|
|
@@ -6667,13 +6667,13 @@ var $D = { exports: {} };
|
|
|
6667
6667
|
if (ye)
|
|
6668
6668
|
return ie(ye);
|
|
6669
6669
|
try {
|
|
6670
|
-
var
|
|
6670
|
+
var Ie = Te.objectStore(G._dbInfo.storeName), Ee = Ie.delete(F);
|
|
6671
6671
|
Te.oncomplete = function() {
|
|
6672
6672
|
se();
|
|
6673
6673
|
}, Te.onerror = function() {
|
|
6674
|
-
ie(
|
|
6674
|
+
ie(Ee.error);
|
|
6675
6675
|
}, Te.onabort = function() {
|
|
6676
|
-
var Ve =
|
|
6676
|
+
var Ve = Ee.error ? Ee.error : Ee.transaction.error;
|
|
6677
6677
|
ie(Ve);
|
|
6678
6678
|
};
|
|
6679
6679
|
} catch (Ve) {
|
|
@@ -6691,15 +6691,15 @@ var $D = { exports: {} };
|
|
|
6691
6691
|
if (ie)
|
|
6692
6692
|
return se(ie);
|
|
6693
6693
|
try {
|
|
6694
|
-
var Te = ye.objectStore(Q._dbInfo.storeName),
|
|
6694
|
+
var Te = ye.objectStore(Q._dbInfo.storeName), Ie = Te.clear();
|
|
6695
6695
|
ye.oncomplete = function() {
|
|
6696
6696
|
oe();
|
|
6697
6697
|
}, ye.onabort = ye.onerror = function() {
|
|
6698
|
-
var
|
|
6699
|
-
se(
|
|
6698
|
+
var Ee = Ie.error ? Ie.error : Ie.transaction.error;
|
|
6699
|
+
se(Ee);
|
|
6700
6700
|
};
|
|
6701
|
-
} catch (
|
|
6702
|
-
se(
|
|
6701
|
+
} catch (Ee) {
|
|
6702
|
+
se(Ee);
|
|
6703
6703
|
}
|
|
6704
6704
|
});
|
|
6705
6705
|
}).catch(se);
|
|
@@ -6713,14 +6713,14 @@ var $D = { exports: {} };
|
|
|
6713
6713
|
if (ie)
|
|
6714
6714
|
return se(ie);
|
|
6715
6715
|
try {
|
|
6716
|
-
var Te = ye.objectStore(Q._dbInfo.storeName),
|
|
6717
|
-
|
|
6718
|
-
oe(
|
|
6719
|
-
},
|
|
6720
|
-
se(
|
|
6716
|
+
var Te = ye.objectStore(Q._dbInfo.storeName), Ie = Te.count();
|
|
6717
|
+
Ie.onsuccess = function() {
|
|
6718
|
+
oe(Ie.result);
|
|
6719
|
+
}, Ie.onerror = function() {
|
|
6720
|
+
se(Ie.error);
|
|
6721
6721
|
};
|
|
6722
|
-
} catch (
|
|
6723
|
-
se(
|
|
6722
|
+
} catch (Ee) {
|
|
6723
|
+
se(Ee);
|
|
6724
6724
|
}
|
|
6725
6725
|
});
|
|
6726
6726
|
}).catch(se);
|
|
@@ -6738,14 +6738,14 @@ var $D = { exports: {} };
|
|
|
6738
6738
|
if (ye)
|
|
6739
6739
|
return ie(ye);
|
|
6740
6740
|
try {
|
|
6741
|
-
var
|
|
6741
|
+
var Ie = Te.objectStore(G._dbInfo.storeName), Ee = !1, Ve = Ie.openKeyCursor();
|
|
6742
6742
|
Ve.onsuccess = function() {
|
|
6743
6743
|
var Ye = Ve.result;
|
|
6744
6744
|
if (!Ye) {
|
|
6745
6745
|
se(null);
|
|
6746
6746
|
return;
|
|
6747
6747
|
}
|
|
6748
|
-
F === 0 ||
|
|
6748
|
+
F === 0 || Ee ? se(Ye.key) : (Ee = !0, Ye.advance(F));
|
|
6749
6749
|
}, Ve.onerror = function() {
|
|
6750
6750
|
ie(Ve.error);
|
|
6751
6751
|
};
|
|
@@ -6764,16 +6764,16 @@ var $D = { exports: {} };
|
|
|
6764
6764
|
if (ie)
|
|
6765
6765
|
return se(ie);
|
|
6766
6766
|
try {
|
|
6767
|
-
var Te = ye.objectStore(Q._dbInfo.storeName),
|
|
6768
|
-
|
|
6769
|
-
var Ve =
|
|
6767
|
+
var Te = ye.objectStore(Q._dbInfo.storeName), Ie = Te.openKeyCursor(), Ee = [];
|
|
6768
|
+
Ie.onsuccess = function() {
|
|
6769
|
+
var Ve = Ie.result;
|
|
6770
6770
|
if (!Ve) {
|
|
6771
|
-
oe(
|
|
6771
|
+
oe(Ee);
|
|
6772
6772
|
return;
|
|
6773
6773
|
}
|
|
6774
|
-
|
|
6775
|
-
},
|
|
6776
|
-
se(
|
|
6774
|
+
Ee.push(Ve.key), Ve.continue();
|
|
6775
|
+
}, Ie.onerror = function() {
|
|
6776
|
+
se(Ie.error);
|
|
6777
6777
|
};
|
|
6778
6778
|
} catch (Ve) {
|
|
6779
6779
|
se(Ve);
|
|
@@ -6792,24 +6792,24 @@ var $D = { exports: {} };
|
|
|
6792
6792
|
se = d.reject("Invalid arguments");
|
|
6793
6793
|
else {
|
|
6794
6794
|
var ie = F.name === G.name && oe._dbInfo.db, ye = ie ? d.resolve(oe._dbInfo.db) : A(F).then(function(Te) {
|
|
6795
|
-
var
|
|
6796
|
-
|
|
6797
|
-
for (var Ve = 0; Ve <
|
|
6798
|
-
|
|
6795
|
+
var Ie = x[F.name], Ee = Ie.forages;
|
|
6796
|
+
Ie.db = Te;
|
|
6797
|
+
for (var Ve = 0; Ve < Ee.length; Ve++)
|
|
6798
|
+
Ee[Ve]._dbInfo.db = Te;
|
|
6799
6799
|
return Te;
|
|
6800
6800
|
});
|
|
6801
6801
|
F.storeName ? se = ye.then(function(Te) {
|
|
6802
6802
|
if (Te.objectStoreNames.contains(F.storeName)) {
|
|
6803
|
-
var
|
|
6803
|
+
var Ie = Te.version + 1;
|
|
6804
6804
|
_(F);
|
|
6805
|
-
var
|
|
6805
|
+
var Ee = x[F.name], Ve = Ee.forages;
|
|
6806
6806
|
Te.close();
|
|
6807
6807
|
for (var Ye = 0; Ye < Ve.length; Ye++) {
|
|
6808
6808
|
var ot = Ve[Ye];
|
|
6809
|
-
ot._dbInfo.db = null, ot._dbInfo.version =
|
|
6809
|
+
ot._dbInfo.db = null, ot._dbInfo.version = Ie;
|
|
6810
6810
|
}
|
|
6811
6811
|
var St = new d(function(kt, Yt) {
|
|
6812
|
-
var Ot = s.open(F.name,
|
|
6812
|
+
var Ot = s.open(F.name, Ie);
|
|
6813
6813
|
Ot.onerror = function(Fa) {
|
|
6814
6814
|
var fo = Ot.result;
|
|
6815
6815
|
fo.close(), Yt(Fa);
|
|
@@ -6822,7 +6822,7 @@ var $D = { exports: {} };
|
|
|
6822
6822
|
};
|
|
6823
6823
|
});
|
|
6824
6824
|
return St.then(function(kt) {
|
|
6825
|
-
|
|
6825
|
+
Ee.db = kt;
|
|
6826
6826
|
for (var Yt = 0; Yt < Ve.length; Yt++) {
|
|
6827
6827
|
var Ot = Ve[Yt];
|
|
6828
6828
|
Ot._dbInfo.db = kt, E(Ot._dbInfo);
|
|
@@ -6834,10 +6834,10 @@ var $D = { exports: {} };
|
|
|
6834
6834
|
}
|
|
6835
6835
|
}) : se = ye.then(function(Te) {
|
|
6836
6836
|
_(F);
|
|
6837
|
-
var
|
|
6837
|
+
var Ie = x[F.name], Ee = Ie.forages;
|
|
6838
6838
|
Te.close();
|
|
6839
|
-
for (var Ve = 0; Ve <
|
|
6840
|
-
var Ye =
|
|
6839
|
+
for (var Ve = 0; Ve < Ee.length; Ve++) {
|
|
6840
|
+
var Ye = Ee[Ve];
|
|
6841
6841
|
Ye._dbInfo.db = null;
|
|
6842
6842
|
}
|
|
6843
6843
|
var ot = new d(function(St, kt) {
|
|
@@ -6853,9 +6853,9 @@ var $D = { exports: {} };
|
|
|
6853
6853
|
};
|
|
6854
6854
|
});
|
|
6855
6855
|
return ot.then(function(St) {
|
|
6856
|
-
|
|
6857
|
-
for (var kt = 0; kt <
|
|
6858
|
-
var Yt =
|
|
6856
|
+
Ie.db = St;
|
|
6857
|
+
for (var kt = 0; kt < Ee.length; kt++) {
|
|
6858
|
+
var Yt = Ee[kt];
|
|
6859
6859
|
E(Yt._dbInfo);
|
|
6860
6860
|
}
|
|
6861
6861
|
}).catch(function(St) {
|
|
@@ -6885,12 +6885,12 @@ var $D = { exports: {} };
|
|
|
6885
6885
|
}
|
|
6886
6886
|
var X = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", K = "~~local_forage_type~", me = /^~~local_forage_type~([^~]+)~/, de = "__lfsc__:", De = de.length, Le = "arbf", Oe = "blob", Re = "si08", he = "ui08", He = "uic8", mt = "si16", Mt = "si32", Ht = "ur16", it = "ui32", ua = "fl32", Ja = "fl64", Ml = De + Le.length, fl = Object.prototype.toString;
|
|
6887
6887
|
function Dl(F) {
|
|
6888
|
-
var Q = F.length * 0.75, G = F.length, oe, se = 0, ie, ye, Te,
|
|
6888
|
+
var Q = F.length * 0.75, G = F.length, oe, se = 0, ie, ye, Te, Ie;
|
|
6889
6889
|
F[F.length - 1] === "=" && (Q--, F[F.length - 2] === "=" && Q--);
|
|
6890
|
-
var
|
|
6890
|
+
var Ee = new ArrayBuffer(Q), Ve = new Uint8Array(Ee);
|
|
6891
6891
|
for (oe = 0; oe < G; oe += 4)
|
|
6892
|
-
ie = X.indexOf(F[oe]), ye = X.indexOf(F[oe + 1]), Te = X.indexOf(F[oe + 2]),
|
|
6893
|
-
return
|
|
6892
|
+
ie = X.indexOf(F[oe]), ye = X.indexOf(F[oe + 1]), Te = X.indexOf(F[oe + 2]), Ie = X.indexOf(F[oe + 3]), Ve[se++] = ie << 2 | ye >> 4, Ve[se++] = (ye & 15) << 4 | Te >> 2, Ve[se++] = (Te & 3) << 6 | Ie & 63;
|
|
6893
|
+
return Ee;
|
|
6894
6894
|
}
|
|
6895
6895
|
function nl(F) {
|
|
6896
6896
|
var Q = new Uint8Array(F), G = "", oe;
|
|
@@ -6977,8 +6977,8 @@ var $D = { exports: {} };
|
|
|
6977
6977
|
G.db.transaction(function(Te) {
|
|
6978
6978
|
pe(Te, G, function() {
|
|
6979
6979
|
Q._dbInfo = G, ie();
|
|
6980
|
-
}, function(
|
|
6981
|
-
ye(
|
|
6980
|
+
}, function(Ie, Ee) {
|
|
6981
|
+
ye(Ee);
|
|
6982
6982
|
});
|
|
6983
6983
|
}, ye);
|
|
6984
6984
|
});
|
|
@@ -6986,9 +6986,9 @@ var $D = { exports: {} };
|
|
|
6986
6986
|
}
|
|
6987
6987
|
function Be(F, Q, G, oe, se, ie) {
|
|
6988
6988
|
F.executeSql(G, oe, se, function(ye, Te) {
|
|
6989
|
-
Te.code === Te.SYNTAX_ERR ? ye.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [Q.storeName], function(
|
|
6990
|
-
|
|
6991
|
-
|
|
6989
|
+
Te.code === Te.SYNTAX_ERR ? ye.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [Q.storeName], function(Ie, Ee) {
|
|
6990
|
+
Ee.rows.length ? ie(Ie, Te) : pe(Ie, Q, function() {
|
|
6991
|
+
Ie.executeSql(G, oe, se, ie);
|
|
6992
6992
|
}, ie);
|
|
6993
6993
|
}, ie) : ie(ye, Te);
|
|
6994
6994
|
}, ie);
|
|
@@ -7000,11 +7000,11 @@ var $D = { exports: {} };
|
|
|
7000
7000
|
G.ready().then(function() {
|
|
7001
7001
|
var ye = G._dbInfo;
|
|
7002
7002
|
ye.db.transaction(function(Te) {
|
|
7003
|
-
Be(Te, ye, "SELECT * FROM " + ye.storeName + " WHERE key = ? LIMIT 1", [F], function(
|
|
7004
|
-
var Ve =
|
|
7003
|
+
Be(Te, ye, "SELECT * FROM " + ye.storeName + " WHERE key = ? LIMIT 1", [F], function(Ie, Ee) {
|
|
7004
|
+
var Ve = Ee.rows.length ? Ee.rows.item(0).value : null;
|
|
7005
7005
|
Ve && (Ve = ye.serializer.deserialize(Ve)), se(Ve);
|
|
7006
|
-
}, function(
|
|
7007
|
-
ie(
|
|
7006
|
+
}, function(Ie, Ee) {
|
|
7007
|
+
ie(Ee);
|
|
7008
7008
|
});
|
|
7009
7009
|
});
|
|
7010
7010
|
}).catch(ie);
|
|
@@ -7016,8 +7016,8 @@ var $D = { exports: {} };
|
|
|
7016
7016
|
G.ready().then(function() {
|
|
7017
7017
|
var ye = G._dbInfo;
|
|
7018
7018
|
ye.db.transaction(function(Te) {
|
|
7019
|
-
Be(Te, ye, "SELECT * FROM " + ye.storeName, [], function(
|
|
7020
|
-
for (var Ve =
|
|
7019
|
+
Be(Te, ye, "SELECT * FROM " + ye.storeName, [], function(Ie, Ee) {
|
|
7020
|
+
for (var Ve = Ee.rows, Ye = Ve.length, ot = 0; ot < Ye; ot++) {
|
|
7021
7021
|
var St = Ve.item(ot), kt = St.value;
|
|
7022
7022
|
if (kt && (kt = ye.serializer.deserialize(kt)), kt = F(kt, St.key, ot + 1), kt !== void 0) {
|
|
7023
7023
|
se(kt);
|
|
@@ -7025,8 +7025,8 @@ var $D = { exports: {} };
|
|
|
7025
7025
|
}
|
|
7026
7026
|
}
|
|
7027
7027
|
se();
|
|
7028
|
-
}, function(
|
|
7029
|
-
ie(
|
|
7028
|
+
}, function(Ie, Ee) {
|
|
7029
|
+
ie(Ee);
|
|
7030
7030
|
});
|
|
7031
7031
|
});
|
|
7032
7032
|
}).catch(ie);
|
|
@@ -7039,18 +7039,18 @@ var $D = { exports: {} };
|
|
|
7039
7039
|
var ie = new d(function(ye, Te) {
|
|
7040
7040
|
se.ready().then(function() {
|
|
7041
7041
|
Q === void 0 && (Q = null);
|
|
7042
|
-
var
|
|
7043
|
-
|
|
7044
|
-
Ye ? Te(Ye) :
|
|
7045
|
-
Be(ot,
|
|
7046
|
-
ye(
|
|
7042
|
+
var Ie = Q, Ee = se._dbInfo;
|
|
7043
|
+
Ee.serializer.serialize(Q, function(Ve, Ye) {
|
|
7044
|
+
Ye ? Te(Ye) : Ee.db.transaction(function(ot) {
|
|
7045
|
+
Be(ot, Ee, "INSERT OR REPLACE INTO " + Ee.storeName + " (key, value) VALUES (?, ?)", [F, Ve], function() {
|
|
7046
|
+
ye(Ie);
|
|
7047
7047
|
}, function(St, kt) {
|
|
7048
7048
|
Te(kt);
|
|
7049
7049
|
});
|
|
7050
7050
|
}, function(ot) {
|
|
7051
7051
|
if (ot.code === ot.QUOTA_ERR) {
|
|
7052
7052
|
if (oe > 0) {
|
|
7053
|
-
ye(et.apply(se, [F,
|
|
7053
|
+
ye(et.apply(se, [F, Ie, G, oe - 1]));
|
|
7054
7054
|
return;
|
|
7055
7055
|
}
|
|
7056
7056
|
Te(ot);
|
|
@@ -7073,8 +7073,8 @@ var $D = { exports: {} };
|
|
|
7073
7073
|
ye.db.transaction(function(Te) {
|
|
7074
7074
|
Be(Te, ye, "DELETE FROM " + ye.storeName + " WHERE key = ?", [F], function() {
|
|
7075
7075
|
se();
|
|
7076
|
-
}, function(
|
|
7077
|
-
ie(
|
|
7076
|
+
}, function(Ie, Ee) {
|
|
7077
|
+
ie(Ee);
|
|
7078
7078
|
});
|
|
7079
7079
|
});
|
|
7080
7080
|
}).catch(ie);
|
|
@@ -7088,8 +7088,8 @@ var $D = { exports: {} };
|
|
|
7088
7088
|
ie.db.transaction(function(ye) {
|
|
7089
7089
|
Be(ye, ie, "DELETE FROM " + ie.storeName, [], function() {
|
|
7090
7090
|
oe();
|
|
7091
|
-
}, function(Te,
|
|
7092
|
-
se(
|
|
7091
|
+
}, function(Te, Ie) {
|
|
7092
|
+
se(Ie);
|
|
7093
7093
|
});
|
|
7094
7094
|
});
|
|
7095
7095
|
}).catch(se);
|
|
@@ -7101,11 +7101,11 @@ var $D = { exports: {} };
|
|
|
7101
7101
|
Q.ready().then(function() {
|
|
7102
7102
|
var ie = Q._dbInfo;
|
|
7103
7103
|
ie.db.transaction(function(ye) {
|
|
7104
|
-
Be(ye, ie, "SELECT COUNT(key) as c FROM " + ie.storeName, [], function(Te,
|
|
7105
|
-
var
|
|
7106
|
-
oe(
|
|
7107
|
-
}, function(Te,
|
|
7108
|
-
se(
|
|
7104
|
+
Be(ye, ie, "SELECT COUNT(key) as c FROM " + ie.storeName, [], function(Te, Ie) {
|
|
7105
|
+
var Ee = Ie.rows.item(0).c;
|
|
7106
|
+
oe(Ee);
|
|
7107
|
+
}, function(Te, Ie) {
|
|
7108
|
+
se(Ie);
|
|
7109
7109
|
});
|
|
7110
7110
|
});
|
|
7111
7111
|
}).catch(se);
|
|
@@ -7117,11 +7117,11 @@ var $D = { exports: {} };
|
|
|
7117
7117
|
G.ready().then(function() {
|
|
7118
7118
|
var ye = G._dbInfo;
|
|
7119
7119
|
ye.db.transaction(function(Te) {
|
|
7120
|
-
Be(Te, ye, "SELECT key FROM " + ye.storeName + " WHERE id = ? LIMIT 1", [F + 1], function(
|
|
7121
|
-
var Ve =
|
|
7120
|
+
Be(Te, ye, "SELECT key FROM " + ye.storeName + " WHERE id = ? LIMIT 1", [F + 1], function(Ie, Ee) {
|
|
7121
|
+
var Ve = Ee.rows.length ? Ee.rows.item(0).key : null;
|
|
7122
7122
|
se(Ve);
|
|
7123
|
-
}, function(
|
|
7124
|
-
ie(
|
|
7123
|
+
}, function(Ie, Ee) {
|
|
7124
|
+
ie(Ee);
|
|
7125
7125
|
});
|
|
7126
7126
|
});
|
|
7127
7127
|
}).catch(ie);
|
|
@@ -7133,12 +7133,12 @@ var $D = { exports: {} };
|
|
|
7133
7133
|
Q.ready().then(function() {
|
|
7134
7134
|
var ie = Q._dbInfo;
|
|
7135
7135
|
ie.db.transaction(function(ye) {
|
|
7136
|
-
Be(ye, ie, "SELECT key FROM " + ie.storeName, [], function(Te,
|
|
7137
|
-
for (var
|
|
7138
|
-
|
|
7139
|
-
oe(
|
|
7140
|
-
}, function(Te,
|
|
7141
|
-
se(
|
|
7136
|
+
Be(ye, ie, "SELECT key FROM " + ie.storeName, [], function(Te, Ie) {
|
|
7137
|
+
for (var Ee = [], Ve = 0; Ve < Ie.rows.length; Ve++)
|
|
7138
|
+
Ee.push(Ie.rows.item(Ve).key);
|
|
7139
|
+
oe(Ee);
|
|
7140
|
+
}, function(Te, Ie) {
|
|
7141
|
+
se(Ie);
|
|
7142
7142
|
});
|
|
7143
7143
|
});
|
|
7144
7144
|
}).catch(se);
|
|
@@ -7163,7 +7163,7 @@ var $D = { exports: {} };
|
|
|
7163
7163
|
});
|
|
7164
7164
|
});
|
|
7165
7165
|
}
|
|
7166
|
-
function
|
|
7166
|
+
function $e(F, Q) {
|
|
7167
7167
|
Q = h.apply(this, arguments);
|
|
7168
7168
|
var G = this.config();
|
|
7169
7169
|
F = typeof F != "function" && F || {}, F.name || (F.name = F.name || G.name, F.storeName = F.storeName || G.storeName);
|
|
@@ -7176,10 +7176,10 @@ var $D = { exports: {} };
|
|
|
7176
7176
|
}) : ie(Io(ye));
|
|
7177
7177
|
}).then(function(ie) {
|
|
7178
7178
|
return new d(function(ye, Te) {
|
|
7179
|
-
ie.db.transaction(function(
|
|
7180
|
-
function
|
|
7179
|
+
ie.db.transaction(function(Ie) {
|
|
7180
|
+
function Ee(St) {
|
|
7181
7181
|
return new d(function(kt, Yt) {
|
|
7182
|
-
|
|
7182
|
+
Ie.executeSql("DROP TABLE IF EXISTS " + St, [], function() {
|
|
7183
7183
|
kt();
|
|
7184
7184
|
}, function(Ot, Fa) {
|
|
7185
7185
|
Yt(Fa);
|
|
@@ -7187,14 +7187,14 @@ var $D = { exports: {} };
|
|
|
7187
7187
|
});
|
|
7188
7188
|
}
|
|
7189
7189
|
for (var Ve = [], Ye = 0, ot = ie.storeNames.length; Ye < ot; Ye++)
|
|
7190
|
-
Ve.push(
|
|
7190
|
+
Ve.push(Ee(ie.storeNames[Ye]));
|
|
7191
7191
|
d.all(Ve).then(function() {
|
|
7192
7192
|
ye();
|
|
7193
7193
|
}).catch(function(St) {
|
|
7194
7194
|
Te(St);
|
|
7195
7195
|
});
|
|
7196
|
-
}, function(
|
|
7197
|
-
Te(
|
|
7196
|
+
}, function(Ie) {
|
|
7197
|
+
Te(Ie);
|
|
7198
7198
|
});
|
|
7199
7199
|
});
|
|
7200
7200
|
}) : se = d.reject("Invalid arguments"), m(se, Q), se;
|
|
@@ -7211,7 +7211,7 @@ var $D = { exports: {} };
|
|
|
7211
7211
|
length: en,
|
|
7212
7212
|
key: jn,
|
|
7213
7213
|
keys: wr,
|
|
7214
|
-
dropInstance:
|
|
7214
|
+
dropInstance: $e
|
|
7215
7215
|
};
|
|
7216
7216
|
function nt() {
|
|
7217
7217
|
try {
|
|
@@ -7263,11 +7263,11 @@ var $D = { exports: {} };
|
|
|
7263
7263
|
}
|
|
7264
7264
|
function Vn(F, Q) {
|
|
7265
7265
|
var G = this, oe = G.ready().then(function() {
|
|
7266
|
-
for (var se = G._dbInfo, ie = se.keyPrefix, ye = ie.length, Te = localStorage.length,
|
|
7267
|
-
var Ve = localStorage.key(
|
|
7266
|
+
for (var se = G._dbInfo, ie = se.keyPrefix, ye = ie.length, Te = localStorage.length, Ie = 1, Ee = 0; Ee < Te; Ee++) {
|
|
7267
|
+
var Ve = localStorage.key(Ee);
|
|
7268
7268
|
if (Ve.indexOf(ie) === 0) {
|
|
7269
7269
|
var Ye = localStorage.getItem(Ve);
|
|
7270
|
-
if (Ye && (Ye = se.serializer.deserialize(Ye)), Ye = F(Ye, Ve.substring(ye),
|
|
7270
|
+
if (Ye && (Ye = se.serializer.deserialize(Ye)), Ye = F(Ye, Ve.substring(ye), Ie++), Ye !== void 0)
|
|
7271
7271
|
return Ye;
|
|
7272
7272
|
}
|
|
7273
7273
|
}
|
|
@@ -7318,13 +7318,13 @@ var $D = { exports: {} };
|
|
|
7318
7318
|
Q === void 0 && (Q = null);
|
|
7319
7319
|
var ie = Q;
|
|
7320
7320
|
return new d(function(ye, Te) {
|
|
7321
|
-
var
|
|
7322
|
-
|
|
7321
|
+
var Ie = oe._dbInfo;
|
|
7322
|
+
Ie.serializer.serialize(Q, function(Ee, Ve) {
|
|
7323
7323
|
if (Ve)
|
|
7324
7324
|
Te(Ve);
|
|
7325
7325
|
else
|
|
7326
7326
|
try {
|
|
7327
|
-
localStorage.setItem(
|
|
7327
|
+
localStorage.setItem(Ie.keyPrefix + F, Ee), ye(ie);
|
|
7328
7328
|
} catch (Ye) {
|
|
7329
7329
|
(Ye.name === "QuotaExceededError" || Ye.name === "NS_ERROR_DOM_QUOTA_REACHED") && Te(Ye), Te(Ye);
|
|
7330
7330
|
}
|
|
@@ -7429,15 +7429,15 @@ var $D = { exports: {} };
|
|
|
7429
7429
|
}, F.prototype.defineDriver = function(G, oe, se) {
|
|
7430
7430
|
var ie = new d(function(ye, Te) {
|
|
7431
7431
|
try {
|
|
7432
|
-
var
|
|
7432
|
+
var Ie = G._driver, Ee = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
|
|
7433
7433
|
if (!G._driver) {
|
|
7434
|
-
Te(
|
|
7434
|
+
Te(Ee);
|
|
7435
7435
|
return;
|
|
7436
7436
|
}
|
|
7437
7437
|
for (var Ve = ks.concat("_initStorage"), Ye = 0, ot = Ve.length; Ye < ot; Ye++) {
|
|
7438
7438
|
var St = Ve[Ye], kt = !Bp(co, St);
|
|
7439
7439
|
if ((kt || G[St]) && typeof G[St] != "function") {
|
|
7440
|
-
Te(
|
|
7440
|
+
Te(Ee);
|
|
7441
7441
|
return;
|
|
7442
7442
|
}
|
|
7443
7443
|
}
|
|
@@ -7454,7 +7454,7 @@ var $D = { exports: {} };
|
|
|
7454
7454
|
};
|
|
7455
7455
|
Yt();
|
|
7456
7456
|
var Ot = function(fo) {
|
|
7457
|
-
Or[
|
|
7457
|
+
Or[Ie] && console.info("Redefining LocalForage driver: " + Ie), Or[Ie] = G, wd[Ie] = fo, ye();
|
|
7458
7458
|
};
|
|
7459
7459
|
"_support" in G ? G._support && typeof G._support == "function" ? G._support().then(Ot, Te) : Ot(!!G._support) : Ot(!0);
|
|
7460
7460
|
} catch (Fa) {
|
|
@@ -7482,16 +7482,16 @@ var $D = { exports: {} };
|
|
|
7482
7482
|
function Te() {
|
|
7483
7483
|
ie._config.driver = ie.driver();
|
|
7484
7484
|
}
|
|
7485
|
-
function
|
|
7485
|
+
function Ie(Ye) {
|
|
7486
7486
|
return ie._extend(Ye), Te(), ie._ready = ie._initStorage(ie._config), ie._ready;
|
|
7487
7487
|
}
|
|
7488
|
-
function
|
|
7488
|
+
function Ee(Ye) {
|
|
7489
7489
|
return function() {
|
|
7490
7490
|
var ot = 0;
|
|
7491
7491
|
function St() {
|
|
7492
7492
|
for (; ot < Ye.length; ) {
|
|
7493
7493
|
var kt = Ye[ot];
|
|
7494
|
-
return ot++, ie._dbInfo = null, ie._ready = null, ie.getDriver(kt).then(
|
|
7494
|
+
return ot++, ie._dbInfo = null, ie._ready = null, ie.getDriver(kt).then(Ie).catch(St);
|
|
7495
7495
|
}
|
|
7496
7496
|
Te();
|
|
7497
7497
|
var Yt = new Error("No available storage method found.");
|
|
@@ -7506,7 +7506,7 @@ var $D = { exports: {} };
|
|
|
7506
7506
|
return this._driverSet = Ve.then(function() {
|
|
7507
7507
|
var Ye = ye[0];
|
|
7508
7508
|
return ie._dbInfo = null, ie._ready = null, ie.getDriver(Ye).then(function(ot) {
|
|
7509
|
-
ie._driver = ot._driver, Te(), ie._wrapLibraryMethodsWithReady(), ie._initDriver =
|
|
7509
|
+
ie._driver = ot._driver, Te(), ie._wrapLibraryMethodsWithReady(), ie._initDriver = Ee(ye);
|
|
7510
7510
|
});
|
|
7511
7511
|
}).catch(function() {
|
|
7512
7512
|
Te();
|
|
@@ -19490,11 +19490,11 @@ var xT = { exports: {} };
|
|
|
19490
19490
|
var Te = ie.result;
|
|
19491
19491
|
try {
|
|
19492
19492
|
Te.createObjectStore(F.storeName), ye.oldVersion <= 1 && Te.createObjectStore(p);
|
|
19493
|
-
} catch (
|
|
19494
|
-
if (
|
|
19493
|
+
} catch (Ie) {
|
|
19494
|
+
if (Ie.name === "ConstraintError")
|
|
19495
19495
|
console.warn('The database "' + F.name + '" has been upgraded from version ' + ye.oldVersion + " to version " + ye.newVersion + ', but the storage "' + F.storeName + '" already exists.');
|
|
19496
19496
|
else
|
|
19497
|
-
throw
|
|
19497
|
+
throw Ie;
|
|
19498
19498
|
}
|
|
19499
19499
|
}), ie.onerror = function(ye) {
|
|
19500
19500
|
ye.preventDefault(), oe(ie.error);
|
|
@@ -19613,18 +19613,18 @@ var xT = { exports: {} };
|
|
|
19613
19613
|
return d.resolve();
|
|
19614
19614
|
}
|
|
19615
19615
|
for (var Te = 0; Te < se.forages.length; Te++) {
|
|
19616
|
-
var
|
|
19617
|
-
|
|
19616
|
+
var Ie = se.forages[Te];
|
|
19617
|
+
Ie !== Q && ie.push(Ie._initReady().catch(ye));
|
|
19618
19618
|
}
|
|
19619
|
-
var
|
|
19619
|
+
var Ee = se.forages.slice(0);
|
|
19620
19620
|
return d.all(ie).then(function() {
|
|
19621
19621
|
return G.db = se.db, A(G);
|
|
19622
19622
|
}).then(function(Ve) {
|
|
19623
19623
|
return G.db = Ve, I(G, Q._defaultConfig.version) ? $(G) : Ve;
|
|
19624
19624
|
}).then(function(Ve) {
|
|
19625
19625
|
G.db = se.db = Ve, Q._dbInfo = G;
|
|
19626
|
-
for (var Ye = 0; Ye <
|
|
19627
|
-
var ot =
|
|
19626
|
+
for (var Ye = 0; Ye < Ee.length; Ye++) {
|
|
19627
|
+
var ot = Ee[Ye];
|
|
19628
19628
|
ot !== Q && (ot._dbInfo.db = G.db, ot._dbInfo.version = G.version);
|
|
19629
19629
|
}
|
|
19630
19630
|
});
|
|
@@ -19638,12 +19638,12 @@ var xT = { exports: {} };
|
|
|
19638
19638
|
if (ye)
|
|
19639
19639
|
return ie(ye);
|
|
19640
19640
|
try {
|
|
19641
|
-
var
|
|
19642
|
-
|
|
19643
|
-
var Ve =
|
|
19641
|
+
var Ie = Te.objectStore(G._dbInfo.storeName), Ee = Ie.get(F);
|
|
19642
|
+
Ee.onsuccess = function() {
|
|
19643
|
+
var Ve = Ee.result;
|
|
19644
19644
|
Ve === void 0 && (Ve = null), Y(Ve) && (Ve = V(Ve)), se(Ve);
|
|
19645
|
-
},
|
|
19646
|
-
ie(
|
|
19645
|
+
}, Ee.onerror = function() {
|
|
19646
|
+
ie(Ee.error);
|
|
19647
19647
|
};
|
|
19648
19648
|
} catch (Ve) {
|
|
19649
19649
|
ie(Ve);
|
|
@@ -19660,9 +19660,9 @@ var xT = { exports: {} };
|
|
|
19660
19660
|
if (ye)
|
|
19661
19661
|
return ie(ye);
|
|
19662
19662
|
try {
|
|
19663
|
-
var
|
|
19664
|
-
|
|
19665
|
-
var Ye =
|
|
19663
|
+
var Ie = Te.objectStore(G._dbInfo.storeName), Ee = Ie.openCursor(), Ve = 1;
|
|
19664
|
+
Ee.onsuccess = function() {
|
|
19665
|
+
var Ye = Ee.result;
|
|
19666
19666
|
if (Ye) {
|
|
19667
19667
|
var ot = Ye.value;
|
|
19668
19668
|
Y(ot) && (ot = V(ot));
|
|
@@ -19670,8 +19670,8 @@ var xT = { exports: {} };
|
|
|
19670
19670
|
St !== void 0 ? se(St) : Ye.continue();
|
|
19671
19671
|
} else
|
|
19672
19672
|
se();
|
|
19673
|
-
},
|
|
19674
|
-
ie(
|
|
19673
|
+
}, Ee.onerror = function() {
|
|
19674
|
+
ie(Ee.error);
|
|
19675
19675
|
};
|
|
19676
19676
|
} catch (Ye) {
|
|
19677
19677
|
ie(Ye);
|
|
@@ -19687,19 +19687,19 @@ var xT = { exports: {} };
|
|
|
19687
19687
|
var se = new d(function(ie, ye) {
|
|
19688
19688
|
var Te;
|
|
19689
19689
|
oe.ready().then(function() {
|
|
19690
|
-
return Te = oe._dbInfo, S.call(Q) === "[object Blob]" ? D(Te.db).then(function(
|
|
19691
|
-
return
|
|
19690
|
+
return Te = oe._dbInfo, S.call(Q) === "[object Blob]" ? D(Te.db).then(function(Ie) {
|
|
19691
|
+
return Ie ? Q : z(Q);
|
|
19692
19692
|
}) : Q;
|
|
19693
|
-
}).then(function(
|
|
19694
|
-
R(oe._dbInfo, b, function(
|
|
19695
|
-
if (
|
|
19696
|
-
return ye(
|
|
19693
|
+
}).then(function(Ie) {
|
|
19694
|
+
R(oe._dbInfo, b, function(Ee, Ve) {
|
|
19695
|
+
if (Ee)
|
|
19696
|
+
return ye(Ee);
|
|
19697
19697
|
try {
|
|
19698
19698
|
var Ye = Ve.objectStore(oe._dbInfo.storeName);
|
|
19699
|
-
|
|
19700
|
-
var ot = Ye.put(
|
|
19699
|
+
Ie === null && (Ie = void 0);
|
|
19700
|
+
var ot = Ye.put(Ie, F);
|
|
19701
19701
|
Ve.oncomplete = function() {
|
|
19702
|
-
|
|
19702
|
+
Ie === void 0 && (Ie = null), ie(Ie);
|
|
19703
19703
|
}, Ve.onabort = Ve.onerror = function() {
|
|
19704
19704
|
var St = ot.error ? ot.error : ot.transaction.error;
|
|
19705
19705
|
ye(St);
|
|
@@ -19721,13 +19721,13 @@ var xT = { exports: {} };
|
|
|
19721
19721
|
if (ye)
|
|
19722
19722
|
return ie(ye);
|
|
19723
19723
|
try {
|
|
19724
|
-
var
|
|
19724
|
+
var Ie = Te.objectStore(G._dbInfo.storeName), Ee = Ie.delete(F);
|
|
19725
19725
|
Te.oncomplete = function() {
|
|
19726
19726
|
se();
|
|
19727
19727
|
}, Te.onerror = function() {
|
|
19728
|
-
ie(
|
|
19728
|
+
ie(Ee.error);
|
|
19729
19729
|
}, Te.onabort = function() {
|
|
19730
|
-
var Ve =
|
|
19730
|
+
var Ve = Ee.error ? Ee.error : Ee.transaction.error;
|
|
19731
19731
|
ie(Ve);
|
|
19732
19732
|
};
|
|
19733
19733
|
} catch (Ve) {
|
|
@@ -19745,15 +19745,15 @@ var xT = { exports: {} };
|
|
|
19745
19745
|
if (ie)
|
|
19746
19746
|
return se(ie);
|
|
19747
19747
|
try {
|
|
19748
|
-
var Te = ye.objectStore(Q._dbInfo.storeName),
|
|
19748
|
+
var Te = ye.objectStore(Q._dbInfo.storeName), Ie = Te.clear();
|
|
19749
19749
|
ye.oncomplete = function() {
|
|
19750
19750
|
oe();
|
|
19751
19751
|
}, ye.onabort = ye.onerror = function() {
|
|
19752
|
-
var
|
|
19753
|
-
se(
|
|
19752
|
+
var Ee = Ie.error ? Ie.error : Ie.transaction.error;
|
|
19753
|
+
se(Ee);
|
|
19754
19754
|
};
|
|
19755
|
-
} catch (
|
|
19756
|
-
se(
|
|
19755
|
+
} catch (Ee) {
|
|
19756
|
+
se(Ee);
|
|
19757
19757
|
}
|
|
19758
19758
|
});
|
|
19759
19759
|
}).catch(se);
|
|
@@ -19767,14 +19767,14 @@ var xT = { exports: {} };
|
|
|
19767
19767
|
if (ie)
|
|
19768
19768
|
return se(ie);
|
|
19769
19769
|
try {
|
|
19770
|
-
var Te = ye.objectStore(Q._dbInfo.storeName),
|
|
19771
|
-
|
|
19772
|
-
oe(
|
|
19773
|
-
},
|
|
19774
|
-
se(
|
|
19770
|
+
var Te = ye.objectStore(Q._dbInfo.storeName), Ie = Te.count();
|
|
19771
|
+
Ie.onsuccess = function() {
|
|
19772
|
+
oe(Ie.result);
|
|
19773
|
+
}, Ie.onerror = function() {
|
|
19774
|
+
se(Ie.error);
|
|
19775
19775
|
};
|
|
19776
|
-
} catch (
|
|
19777
|
-
se(
|
|
19776
|
+
} catch (Ee) {
|
|
19777
|
+
se(Ee);
|
|
19778
19778
|
}
|
|
19779
19779
|
});
|
|
19780
19780
|
}).catch(se);
|
|
@@ -19792,14 +19792,14 @@ var xT = { exports: {} };
|
|
|
19792
19792
|
if (ye)
|
|
19793
19793
|
return ie(ye);
|
|
19794
19794
|
try {
|
|
19795
|
-
var
|
|
19795
|
+
var Ie = Te.objectStore(G._dbInfo.storeName), Ee = !1, Ve = Ie.openKeyCursor();
|
|
19796
19796
|
Ve.onsuccess = function() {
|
|
19797
19797
|
var Ye = Ve.result;
|
|
19798
19798
|
if (!Ye) {
|
|
19799
19799
|
se(null);
|
|
19800
19800
|
return;
|
|
19801
19801
|
}
|
|
19802
|
-
F === 0 ||
|
|
19802
|
+
F === 0 || Ee ? se(Ye.key) : (Ee = !0, Ye.advance(F));
|
|
19803
19803
|
}, Ve.onerror = function() {
|
|
19804
19804
|
ie(Ve.error);
|
|
19805
19805
|
};
|
|
@@ -19818,16 +19818,16 @@ var xT = { exports: {} };
|
|
|
19818
19818
|
if (ie)
|
|
19819
19819
|
return se(ie);
|
|
19820
19820
|
try {
|
|
19821
|
-
var Te = ye.objectStore(Q._dbInfo.storeName),
|
|
19822
|
-
|
|
19823
|
-
var Ve =
|
|
19821
|
+
var Te = ye.objectStore(Q._dbInfo.storeName), Ie = Te.openKeyCursor(), Ee = [];
|
|
19822
|
+
Ie.onsuccess = function() {
|
|
19823
|
+
var Ve = Ie.result;
|
|
19824
19824
|
if (!Ve) {
|
|
19825
|
-
oe(
|
|
19825
|
+
oe(Ee);
|
|
19826
19826
|
return;
|
|
19827
19827
|
}
|
|
19828
|
-
|
|
19829
|
-
},
|
|
19830
|
-
se(
|
|
19828
|
+
Ee.push(Ve.key), Ve.continue();
|
|
19829
|
+
}, Ie.onerror = function() {
|
|
19830
|
+
se(Ie.error);
|
|
19831
19831
|
};
|
|
19832
19832
|
} catch (Ve) {
|
|
19833
19833
|
se(Ve);
|
|
@@ -19846,24 +19846,24 @@ var xT = { exports: {} };
|
|
|
19846
19846
|
se = d.reject("Invalid arguments");
|
|
19847
19847
|
else {
|
|
19848
19848
|
var ie = F.name === G.name && oe._dbInfo.db, ye = ie ? d.resolve(oe._dbInfo.db) : A(F).then(function(Te) {
|
|
19849
|
-
var
|
|
19850
|
-
|
|
19851
|
-
for (var Ve = 0; Ve <
|
|
19852
|
-
|
|
19849
|
+
var Ie = x[F.name], Ee = Ie.forages;
|
|
19850
|
+
Ie.db = Te;
|
|
19851
|
+
for (var Ve = 0; Ve < Ee.length; Ve++)
|
|
19852
|
+
Ee[Ve]._dbInfo.db = Te;
|
|
19853
19853
|
return Te;
|
|
19854
19854
|
});
|
|
19855
19855
|
F.storeName ? se = ye.then(function(Te) {
|
|
19856
19856
|
if (Te.objectStoreNames.contains(F.storeName)) {
|
|
19857
|
-
var
|
|
19857
|
+
var Ie = Te.version + 1;
|
|
19858
19858
|
_(F);
|
|
19859
|
-
var
|
|
19859
|
+
var Ee = x[F.name], Ve = Ee.forages;
|
|
19860
19860
|
Te.close();
|
|
19861
19861
|
for (var Ye = 0; Ye < Ve.length; Ye++) {
|
|
19862
19862
|
var ot = Ve[Ye];
|
|
19863
|
-
ot._dbInfo.db = null, ot._dbInfo.version =
|
|
19863
|
+
ot._dbInfo.db = null, ot._dbInfo.version = Ie;
|
|
19864
19864
|
}
|
|
19865
19865
|
var St = new d(function(kt, Yt) {
|
|
19866
|
-
var Ot = s.open(F.name,
|
|
19866
|
+
var Ot = s.open(F.name, Ie);
|
|
19867
19867
|
Ot.onerror = function(Fa) {
|
|
19868
19868
|
var fo = Ot.result;
|
|
19869
19869
|
fo.close(), Yt(Fa);
|
|
@@ -19876,7 +19876,7 @@ var xT = { exports: {} };
|
|
|
19876
19876
|
};
|
|
19877
19877
|
});
|
|
19878
19878
|
return St.then(function(kt) {
|
|
19879
|
-
|
|
19879
|
+
Ee.db = kt;
|
|
19880
19880
|
for (var Yt = 0; Yt < Ve.length; Yt++) {
|
|
19881
19881
|
var Ot = Ve[Yt];
|
|
19882
19882
|
Ot._dbInfo.db = kt, E(Ot._dbInfo);
|
|
@@ -19888,10 +19888,10 @@ var xT = { exports: {} };
|
|
|
19888
19888
|
}
|
|
19889
19889
|
}) : se = ye.then(function(Te) {
|
|
19890
19890
|
_(F);
|
|
19891
|
-
var
|
|
19891
|
+
var Ie = x[F.name], Ee = Ie.forages;
|
|
19892
19892
|
Te.close();
|
|
19893
|
-
for (var Ve = 0; Ve <
|
|
19894
|
-
var Ye =
|
|
19893
|
+
for (var Ve = 0; Ve < Ee.length; Ve++) {
|
|
19894
|
+
var Ye = Ee[Ve];
|
|
19895
19895
|
Ye._dbInfo.db = null;
|
|
19896
19896
|
}
|
|
19897
19897
|
var ot = new d(function(St, kt) {
|
|
@@ -19907,9 +19907,9 @@ var xT = { exports: {} };
|
|
|
19907
19907
|
};
|
|
19908
19908
|
});
|
|
19909
19909
|
return ot.then(function(St) {
|
|
19910
|
-
|
|
19911
|
-
for (var kt = 0; kt <
|
|
19912
|
-
var Yt =
|
|
19910
|
+
Ie.db = St;
|
|
19911
|
+
for (var kt = 0; kt < Ee.length; kt++) {
|
|
19912
|
+
var Yt = Ee[kt];
|
|
19913
19913
|
E(Yt._dbInfo);
|
|
19914
19914
|
}
|
|
19915
19915
|
}).catch(function(St) {
|
|
@@ -19939,12 +19939,12 @@ var xT = { exports: {} };
|
|
|
19939
19939
|
}
|
|
19940
19940
|
var X = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", K = "~~local_forage_type~", me = /^~~local_forage_type~([^~]+)~/, de = "__lfsc__:", De = de.length, Le = "arbf", Oe = "blob", Re = "si08", he = "ui08", He = "uic8", mt = "si16", Mt = "si32", Ht = "ur16", it = "ui32", ua = "fl32", Ja = "fl64", Ml = De + Le.length, fl = Object.prototype.toString;
|
|
19941
19941
|
function Dl(F) {
|
|
19942
|
-
var Q = F.length * 0.75, G = F.length, oe, se = 0, ie, ye, Te,
|
|
19942
|
+
var Q = F.length * 0.75, G = F.length, oe, se = 0, ie, ye, Te, Ie;
|
|
19943
19943
|
F[F.length - 1] === "=" && (Q--, F[F.length - 2] === "=" && Q--);
|
|
19944
|
-
var
|
|
19944
|
+
var Ee = new ArrayBuffer(Q), Ve = new Uint8Array(Ee);
|
|
19945
19945
|
for (oe = 0; oe < G; oe += 4)
|
|
19946
|
-
ie = X.indexOf(F[oe]), ye = X.indexOf(F[oe + 1]), Te = X.indexOf(F[oe + 2]),
|
|
19947
|
-
return
|
|
19946
|
+
ie = X.indexOf(F[oe]), ye = X.indexOf(F[oe + 1]), Te = X.indexOf(F[oe + 2]), Ie = X.indexOf(F[oe + 3]), Ve[se++] = ie << 2 | ye >> 4, Ve[se++] = (ye & 15) << 4 | Te >> 2, Ve[se++] = (Te & 3) << 6 | Ie & 63;
|
|
19947
|
+
return Ee;
|
|
19948
19948
|
}
|
|
19949
19949
|
function nl(F) {
|
|
19950
19950
|
var Q = new Uint8Array(F), G = "", oe;
|
|
@@ -20031,8 +20031,8 @@ var xT = { exports: {} };
|
|
|
20031
20031
|
G.db.transaction(function(Te) {
|
|
20032
20032
|
pe(Te, G, function() {
|
|
20033
20033
|
Q._dbInfo = G, ie();
|
|
20034
|
-
}, function(
|
|
20035
|
-
ye(
|
|
20034
|
+
}, function(Ie, Ee) {
|
|
20035
|
+
ye(Ee);
|
|
20036
20036
|
});
|
|
20037
20037
|
}, ye);
|
|
20038
20038
|
});
|
|
@@ -20040,9 +20040,9 @@ var xT = { exports: {} };
|
|
|
20040
20040
|
}
|
|
20041
20041
|
function Be(F, Q, G, oe, se, ie) {
|
|
20042
20042
|
F.executeSql(G, oe, se, function(ye, Te) {
|
|
20043
|
-
Te.code === Te.SYNTAX_ERR ? ye.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [Q.storeName], function(
|
|
20044
|
-
|
|
20045
|
-
|
|
20043
|
+
Te.code === Te.SYNTAX_ERR ? ye.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [Q.storeName], function(Ie, Ee) {
|
|
20044
|
+
Ee.rows.length ? ie(Ie, Te) : pe(Ie, Q, function() {
|
|
20045
|
+
Ie.executeSql(G, oe, se, ie);
|
|
20046
20046
|
}, ie);
|
|
20047
20047
|
}, ie) : ie(ye, Te);
|
|
20048
20048
|
}, ie);
|
|
@@ -20054,11 +20054,11 @@ var xT = { exports: {} };
|
|
|
20054
20054
|
G.ready().then(function() {
|
|
20055
20055
|
var ye = G._dbInfo;
|
|
20056
20056
|
ye.db.transaction(function(Te) {
|
|
20057
|
-
Be(Te, ye, "SELECT * FROM " + ye.storeName + " WHERE key = ? LIMIT 1", [F], function(
|
|
20058
|
-
var Ve =
|
|
20057
|
+
Be(Te, ye, "SELECT * FROM " + ye.storeName + " WHERE key = ? LIMIT 1", [F], function(Ie, Ee) {
|
|
20058
|
+
var Ve = Ee.rows.length ? Ee.rows.item(0).value : null;
|
|
20059
20059
|
Ve && (Ve = ye.serializer.deserialize(Ve)), se(Ve);
|
|
20060
|
-
}, function(
|
|
20061
|
-
ie(
|
|
20060
|
+
}, function(Ie, Ee) {
|
|
20061
|
+
ie(Ee);
|
|
20062
20062
|
});
|
|
20063
20063
|
});
|
|
20064
20064
|
}).catch(ie);
|
|
@@ -20070,8 +20070,8 @@ var xT = { exports: {} };
|
|
|
20070
20070
|
G.ready().then(function() {
|
|
20071
20071
|
var ye = G._dbInfo;
|
|
20072
20072
|
ye.db.transaction(function(Te) {
|
|
20073
|
-
Be(Te, ye, "SELECT * FROM " + ye.storeName, [], function(
|
|
20074
|
-
for (var Ve =
|
|
20073
|
+
Be(Te, ye, "SELECT * FROM " + ye.storeName, [], function(Ie, Ee) {
|
|
20074
|
+
for (var Ve = Ee.rows, Ye = Ve.length, ot = 0; ot < Ye; ot++) {
|
|
20075
20075
|
var St = Ve.item(ot), kt = St.value;
|
|
20076
20076
|
if (kt && (kt = ye.serializer.deserialize(kt)), kt = F(kt, St.key, ot + 1), kt !== void 0) {
|
|
20077
20077
|
se(kt);
|
|
@@ -20079,8 +20079,8 @@ var xT = { exports: {} };
|
|
|
20079
20079
|
}
|
|
20080
20080
|
}
|
|
20081
20081
|
se();
|
|
20082
|
-
}, function(
|
|
20083
|
-
ie(
|
|
20082
|
+
}, function(Ie, Ee) {
|
|
20083
|
+
ie(Ee);
|
|
20084
20084
|
});
|
|
20085
20085
|
});
|
|
20086
20086
|
}).catch(ie);
|
|
@@ -20093,18 +20093,18 @@ var xT = { exports: {} };
|
|
|
20093
20093
|
var ie = new d(function(ye, Te) {
|
|
20094
20094
|
se.ready().then(function() {
|
|
20095
20095
|
Q === void 0 && (Q = null);
|
|
20096
|
-
var
|
|
20097
|
-
|
|
20098
|
-
Ye ? Te(Ye) :
|
|
20099
|
-
Be(ot,
|
|
20100
|
-
ye(
|
|
20096
|
+
var Ie = Q, Ee = se._dbInfo;
|
|
20097
|
+
Ee.serializer.serialize(Q, function(Ve, Ye) {
|
|
20098
|
+
Ye ? Te(Ye) : Ee.db.transaction(function(ot) {
|
|
20099
|
+
Be(ot, Ee, "INSERT OR REPLACE INTO " + Ee.storeName + " (key, value) VALUES (?, ?)", [F, Ve], function() {
|
|
20100
|
+
ye(Ie);
|
|
20101
20101
|
}, function(St, kt) {
|
|
20102
20102
|
Te(kt);
|
|
20103
20103
|
});
|
|
20104
20104
|
}, function(ot) {
|
|
20105
20105
|
if (ot.code === ot.QUOTA_ERR) {
|
|
20106
20106
|
if (oe > 0) {
|
|
20107
|
-
ye(et.apply(se, [F,
|
|
20107
|
+
ye(et.apply(se, [F, Ie, G, oe - 1]));
|
|
20108
20108
|
return;
|
|
20109
20109
|
}
|
|
20110
20110
|
Te(ot);
|
|
@@ -20127,8 +20127,8 @@ var xT = { exports: {} };
|
|
|
20127
20127
|
ye.db.transaction(function(Te) {
|
|
20128
20128
|
Be(Te, ye, "DELETE FROM " + ye.storeName + " WHERE key = ?", [F], function() {
|
|
20129
20129
|
se();
|
|
20130
|
-
}, function(
|
|
20131
|
-
ie(
|
|
20130
|
+
}, function(Ie, Ee) {
|
|
20131
|
+
ie(Ee);
|
|
20132
20132
|
});
|
|
20133
20133
|
});
|
|
20134
20134
|
}).catch(ie);
|
|
@@ -20142,8 +20142,8 @@ var xT = { exports: {} };
|
|
|
20142
20142
|
ie.db.transaction(function(ye) {
|
|
20143
20143
|
Be(ye, ie, "DELETE FROM " + ie.storeName, [], function() {
|
|
20144
20144
|
oe();
|
|
20145
|
-
}, function(Te,
|
|
20146
|
-
se(
|
|
20145
|
+
}, function(Te, Ie) {
|
|
20146
|
+
se(Ie);
|
|
20147
20147
|
});
|
|
20148
20148
|
});
|
|
20149
20149
|
}).catch(se);
|
|
@@ -20155,11 +20155,11 @@ var xT = { exports: {} };
|
|
|
20155
20155
|
Q.ready().then(function() {
|
|
20156
20156
|
var ie = Q._dbInfo;
|
|
20157
20157
|
ie.db.transaction(function(ye) {
|
|
20158
|
-
Be(ye, ie, "SELECT COUNT(key) as c FROM " + ie.storeName, [], function(Te,
|
|
20159
|
-
var
|
|
20160
|
-
oe(
|
|
20161
|
-
}, function(Te,
|
|
20162
|
-
se(
|
|
20158
|
+
Be(ye, ie, "SELECT COUNT(key) as c FROM " + ie.storeName, [], function(Te, Ie) {
|
|
20159
|
+
var Ee = Ie.rows.item(0).c;
|
|
20160
|
+
oe(Ee);
|
|
20161
|
+
}, function(Te, Ie) {
|
|
20162
|
+
se(Ie);
|
|
20163
20163
|
});
|
|
20164
20164
|
});
|
|
20165
20165
|
}).catch(se);
|
|
@@ -20171,11 +20171,11 @@ var xT = { exports: {} };
|
|
|
20171
20171
|
G.ready().then(function() {
|
|
20172
20172
|
var ye = G._dbInfo;
|
|
20173
20173
|
ye.db.transaction(function(Te) {
|
|
20174
|
-
Be(Te, ye, "SELECT key FROM " + ye.storeName + " WHERE id = ? LIMIT 1", [F + 1], function(
|
|
20175
|
-
var Ve =
|
|
20174
|
+
Be(Te, ye, "SELECT key FROM " + ye.storeName + " WHERE id = ? LIMIT 1", [F + 1], function(Ie, Ee) {
|
|
20175
|
+
var Ve = Ee.rows.length ? Ee.rows.item(0).key : null;
|
|
20176
20176
|
se(Ve);
|
|
20177
|
-
}, function(
|
|
20178
|
-
ie(
|
|
20177
|
+
}, function(Ie, Ee) {
|
|
20178
|
+
ie(Ee);
|
|
20179
20179
|
});
|
|
20180
20180
|
});
|
|
20181
20181
|
}).catch(ie);
|
|
@@ -20187,12 +20187,12 @@ var xT = { exports: {} };
|
|
|
20187
20187
|
Q.ready().then(function() {
|
|
20188
20188
|
var ie = Q._dbInfo;
|
|
20189
20189
|
ie.db.transaction(function(ye) {
|
|
20190
|
-
Be(ye, ie, "SELECT key FROM " + ie.storeName, [], function(Te,
|
|
20191
|
-
for (var
|
|
20192
|
-
|
|
20193
|
-
oe(
|
|
20194
|
-
}, function(Te,
|
|
20195
|
-
se(
|
|
20190
|
+
Be(ye, ie, "SELECT key FROM " + ie.storeName, [], function(Te, Ie) {
|
|
20191
|
+
for (var Ee = [], Ve = 0; Ve < Ie.rows.length; Ve++)
|
|
20192
|
+
Ee.push(Ie.rows.item(Ve).key);
|
|
20193
|
+
oe(Ee);
|
|
20194
|
+
}, function(Te, Ie) {
|
|
20195
|
+
se(Ie);
|
|
20196
20196
|
});
|
|
20197
20197
|
});
|
|
20198
20198
|
}).catch(se);
|
|
@@ -20217,7 +20217,7 @@ var xT = { exports: {} };
|
|
|
20217
20217
|
});
|
|
20218
20218
|
});
|
|
20219
20219
|
}
|
|
20220
|
-
function
|
|
20220
|
+
function $e(F, Q) {
|
|
20221
20221
|
Q = h.apply(this, arguments);
|
|
20222
20222
|
var G = this.config();
|
|
20223
20223
|
F = typeof F != "function" && F || {}, F.name || (F.name = F.name || G.name, F.storeName = F.storeName || G.storeName);
|
|
@@ -20230,10 +20230,10 @@ var xT = { exports: {} };
|
|
|
20230
20230
|
}) : ie(Io(ye));
|
|
20231
20231
|
}).then(function(ie) {
|
|
20232
20232
|
return new d(function(ye, Te) {
|
|
20233
|
-
ie.db.transaction(function(
|
|
20234
|
-
function
|
|
20233
|
+
ie.db.transaction(function(Ie) {
|
|
20234
|
+
function Ee(St) {
|
|
20235
20235
|
return new d(function(kt, Yt) {
|
|
20236
|
-
|
|
20236
|
+
Ie.executeSql("DROP TABLE IF EXISTS " + St, [], function() {
|
|
20237
20237
|
kt();
|
|
20238
20238
|
}, function(Ot, Fa) {
|
|
20239
20239
|
Yt(Fa);
|
|
@@ -20241,14 +20241,14 @@ var xT = { exports: {} };
|
|
|
20241
20241
|
});
|
|
20242
20242
|
}
|
|
20243
20243
|
for (var Ve = [], Ye = 0, ot = ie.storeNames.length; Ye < ot; Ye++)
|
|
20244
|
-
Ve.push(
|
|
20244
|
+
Ve.push(Ee(ie.storeNames[Ye]));
|
|
20245
20245
|
d.all(Ve).then(function() {
|
|
20246
20246
|
ye();
|
|
20247
20247
|
}).catch(function(St) {
|
|
20248
20248
|
Te(St);
|
|
20249
20249
|
});
|
|
20250
|
-
}, function(
|
|
20251
|
-
Te(
|
|
20250
|
+
}, function(Ie) {
|
|
20251
|
+
Te(Ie);
|
|
20252
20252
|
});
|
|
20253
20253
|
});
|
|
20254
20254
|
}) : se = d.reject("Invalid arguments"), m(se, Q), se;
|
|
@@ -20265,7 +20265,7 @@ var xT = { exports: {} };
|
|
|
20265
20265
|
length: en,
|
|
20266
20266
|
key: jn,
|
|
20267
20267
|
keys: wr,
|
|
20268
|
-
dropInstance:
|
|
20268
|
+
dropInstance: $e
|
|
20269
20269
|
};
|
|
20270
20270
|
function nt() {
|
|
20271
20271
|
try {
|
|
@@ -20317,11 +20317,11 @@ var xT = { exports: {} };
|
|
|
20317
20317
|
}
|
|
20318
20318
|
function Vn(F, Q) {
|
|
20319
20319
|
var G = this, oe = G.ready().then(function() {
|
|
20320
|
-
for (var se = G._dbInfo, ie = se.keyPrefix, ye = ie.length, Te = localStorage.length,
|
|
20321
|
-
var Ve = localStorage.key(
|
|
20320
|
+
for (var se = G._dbInfo, ie = se.keyPrefix, ye = ie.length, Te = localStorage.length, Ie = 1, Ee = 0; Ee < Te; Ee++) {
|
|
20321
|
+
var Ve = localStorage.key(Ee);
|
|
20322
20322
|
if (Ve.indexOf(ie) === 0) {
|
|
20323
20323
|
var Ye = localStorage.getItem(Ve);
|
|
20324
|
-
if (Ye && (Ye = se.serializer.deserialize(Ye)), Ye = F(Ye, Ve.substring(ye),
|
|
20324
|
+
if (Ye && (Ye = se.serializer.deserialize(Ye)), Ye = F(Ye, Ve.substring(ye), Ie++), Ye !== void 0)
|
|
20325
20325
|
return Ye;
|
|
20326
20326
|
}
|
|
20327
20327
|
}
|
|
@@ -20372,13 +20372,13 @@ var xT = { exports: {} };
|
|
|
20372
20372
|
Q === void 0 && (Q = null);
|
|
20373
20373
|
var ie = Q;
|
|
20374
20374
|
return new d(function(ye, Te) {
|
|
20375
|
-
var
|
|
20376
|
-
|
|
20375
|
+
var Ie = oe._dbInfo;
|
|
20376
|
+
Ie.serializer.serialize(Q, function(Ee, Ve) {
|
|
20377
20377
|
if (Ve)
|
|
20378
20378
|
Te(Ve);
|
|
20379
20379
|
else
|
|
20380
20380
|
try {
|
|
20381
|
-
localStorage.setItem(
|
|
20381
|
+
localStorage.setItem(Ie.keyPrefix + F, Ee), ye(ie);
|
|
20382
20382
|
} catch (Ye) {
|
|
20383
20383
|
(Ye.name === "QuotaExceededError" || Ye.name === "NS_ERROR_DOM_QUOTA_REACHED") && Te(Ye), Te(Ye);
|
|
20384
20384
|
}
|
|
@@ -20483,15 +20483,15 @@ var xT = { exports: {} };
|
|
|
20483
20483
|
}, F.prototype.defineDriver = function(Q, G, oe) {
|
|
20484
20484
|
var se = new d(function(ie, ye) {
|
|
20485
20485
|
try {
|
|
20486
|
-
var Te = Q._driver,
|
|
20486
|
+
var Te = Q._driver, Ie = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
|
|
20487
20487
|
if (!Q._driver) {
|
|
20488
|
-
ye(
|
|
20488
|
+
ye(Ie);
|
|
20489
20489
|
return;
|
|
20490
20490
|
}
|
|
20491
|
-
for (var
|
|
20492
|
-
var ot =
|
|
20491
|
+
for (var Ee = ks.concat("_initStorage"), Ve = 0, Ye = Ee.length; Ve < Ye; Ve++) {
|
|
20492
|
+
var ot = Ee[Ve], St = !Bp(co, ot);
|
|
20493
20493
|
if ((St || Q[ot]) && typeof Q[ot] != "function") {
|
|
20494
|
-
ye(
|
|
20494
|
+
ye(Ie);
|
|
20495
20495
|
return;
|
|
20496
20496
|
}
|
|
20497
20497
|
}
|
|
@@ -20539,7 +20539,7 @@ var xT = { exports: {} };
|
|
|
20539
20539
|
function Te(Ve) {
|
|
20540
20540
|
return se._extend(Ve), ye(), se._ready = se._initStorage(se._config), se._ready;
|
|
20541
20541
|
}
|
|
20542
|
-
function
|
|
20542
|
+
function Ie(Ve) {
|
|
20543
20543
|
return function() {
|
|
20544
20544
|
var Ye = 0;
|
|
20545
20545
|
function ot() {
|
|
@@ -20554,13 +20554,13 @@ var xT = { exports: {} };
|
|
|
20554
20554
|
return ot();
|
|
20555
20555
|
};
|
|
20556
20556
|
}
|
|
20557
|
-
var
|
|
20557
|
+
var Ee = this._driverSet !== null ? this._driverSet.catch(function() {
|
|
20558
20558
|
return d.resolve();
|
|
20559
20559
|
}) : d.resolve();
|
|
20560
|
-
return this._driverSet =
|
|
20560
|
+
return this._driverSet = Ee.then(function() {
|
|
20561
20561
|
var Ve = ie[0];
|
|
20562
20562
|
return se._dbInfo = null, se._ready = null, se.getDriver(Ve).then(function(Ye) {
|
|
20563
|
-
se._driver = Ye._driver, ye(), se._wrapLibraryMethodsWithReady(), se._initDriver =
|
|
20563
|
+
se._driver = Ye._driver, ye(), se._wrapLibraryMethodsWithReady(), se._initDriver = Ie(ie);
|
|
20564
20564
|
});
|
|
20565
20565
|
}).catch(function() {
|
|
20566
20566
|
ye();
|
|
@@ -44289,11 +44289,11 @@ function RU() {
|
|
|
44289
44289
|
i != null ? s = {
|
|
44290
44290
|
...e.query,
|
|
44291
44291
|
search: i
|
|
44292
|
-
} : delete s.search;
|
|
44292
|
+
} : delete s.search, console.log(s), console.log(i);
|
|
44293
44293
|
let c = {
|
|
44294
44294
|
...e,
|
|
44295
44295
|
params: e.params,
|
|
44296
|
-
query: s,
|
|
44296
|
+
query: s ?? {},
|
|
44297
44297
|
replace: o == !0
|
|
44298
44298
|
};
|
|
44299
44299
|
sc = !0, t.replace(c);
|
|
@@ -44307,28 +44307,28 @@ function RU() {
|
|
|
44307
44307
|
}
|
|
44308
44308
|
function cu(e, t, a) {
|
|
44309
44309
|
var en, jn, wr, Io;
|
|
44310
|
-
const n = a4(), l = bi(), r = RU(), i = (a == null ? void 0 : a.idSelector) ?? e.idSelector ?? ((
|
|
44310
|
+
const n = a4(), l = bi(), r = RU(), i = (a == null ? void 0 : a.idSelector) ?? e.idSelector ?? (($e) => $e.id), o = (a == null ? void 0 : a.isNotSetup) == !0 ? void 0 : M1({
|
|
44311
44311
|
bladeGroup: e.bladeGroup,
|
|
44312
44312
|
bladeName: e.bladeName,
|
|
44313
|
-
onUpdate: (
|
|
44313
|
+
onUpdate: ($e) => {
|
|
44314
44314
|
var qe;
|
|
44315
|
-
lt({ deepRefresh: !!e.refreshOnChange || !!((qe =
|
|
44315
|
+
lt({ deepRefresh: !!e.refreshOnChange || !!((qe = $e == null ? void 0 : $e.data) != null && qe.refresh), resetSearch: !0 });
|
|
44316
44316
|
},
|
|
44317
44317
|
bladeStartShowing: e.bladeStartShowing
|
|
44318
44318
|
}), s = e.useBladeSrc ?? !!e.bladeName, c = e.useRouteSrc ?? e.variant == "page", u = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic";
|
|
44319
44319
|
var d = l.findItem(u);
|
|
44320
44320
|
const m = e.storeMode ?? (d == null ? void 0 : d.storeMode), f = e.storageMode ?? (d == null ? void 0 : d.storageMode), g = d == null ? void 0 : d.deleteStrat, h = U((d == null ? void 0 : d.externals) ?? []), p = U(), y = ft(e.customFilters) ?? [], x = U([]), S = T(() => FE([
|
|
44321
|
-
...(e.localFilters ?? []).filter((
|
|
44322
|
-
...y.filter((
|
|
44321
|
+
...(e.localFilters ?? []).filter(($e) => $e.predicate != null || $e.onFilter != null).map(($e) => $e.name),
|
|
44322
|
+
...y.filter(($e) => $e.name != null).map(($e) => $e.name),
|
|
44323
44323
|
...e.defaultFilters ?? [],
|
|
44324
44324
|
...x.value
|
|
44325
|
-
]).value), w = U((e.defaultFilters ?? []).map((
|
|
44325
|
+
]).value), w = U((e.defaultFilters ?? []).map(($e) => S.value.indexOf($e)));
|
|
44326
44326
|
let b = U([...w.value]);
|
|
44327
44327
|
const v = T(() => dx(b, w).value.length > 0 || dx(w, b).value.length > 0), C = U([]), D = U(_());
|
|
44328
44328
|
function _() {
|
|
44329
|
-
var
|
|
44329
|
+
var $e, qe, nt, Pt;
|
|
44330
44330
|
if (s) {
|
|
44331
|
-
const Vt = (qe = (
|
|
44331
|
+
const Vt = (qe = ($e = o == null ? void 0 : o.bladeData) == null ? void 0 : $e.data) == null ? void 0 : qe.page;
|
|
44332
44332
|
if (Vt != null)
|
|
44333
44333
|
return Number.parseInt(Vt);
|
|
44334
44334
|
}
|
|
@@ -44341,17 +44341,17 @@ function cu(e, t, a) {
|
|
|
44341
44341
|
}
|
|
44342
44342
|
const E = e.proxyKey ?? "proxyID", P = T(() => {
|
|
44343
44343
|
var qe, nt, Pt;
|
|
44344
|
-
let
|
|
44345
|
-
return
|
|
44344
|
+
let $e = e.proxyID;
|
|
44345
|
+
return $e == null && s && ((qe = o == null ? void 0 : o.bladeData) == null ? void 0 : qe.data) != null && ($e = o.bladeData.data[E]), $e == null && c && ($e = (Pt = (nt = a == null ? void 0 : a.route) == null ? void 0 : nt.query) == null ? void 0 : Pt[E]), $e;
|
|
44346
44346
|
}), L = e.searchKey ?? "search", A = U($());
|
|
44347
44347
|
function $() {
|
|
44348
44348
|
var qe, nt, Pt;
|
|
44349
|
-
let
|
|
44350
|
-
return
|
|
44349
|
+
let $e;
|
|
44350
|
+
return $e == null && s && ((qe = o == null ? void 0 : o.bladeData) == null ? void 0 : qe.data) != null && ($e = o.bladeData.data[L]), $e == null && c && ($e = (Pt = (nt = a == null ? void 0 : a.route) == null ? void 0 : nt.query) == null ? void 0 : Pt[L]), $e;
|
|
44351
44351
|
}
|
|
44352
44352
|
const I = U(ft(e.startShowingInactive) ?? !1), z = T(() => [
|
|
44353
44353
|
...e.searchProps ?? [],
|
|
44354
|
-
...(e.headers ?? []).filter((
|
|
44354
|
+
...(e.headers ?? []).filter(($e) => $e.searchable != null && $e.value != null).map(($e) => $e.value ?? "")
|
|
44355
44355
|
]), V = U(), Y = U(), j = Fe([]), q = U([]);
|
|
44356
44356
|
let R;
|
|
44357
44357
|
const W = e.onFinished ?? (a == null ? void 0 : a.onFinished), { actionErrorMsg: Z, actionLoadingMsg: H, deleteItem: ee, doAction: re, getItem: N, getAllItems: ce, restoreItem: Se, saveItem: we, syncItem: xe } = zh({
|
|
@@ -44372,46 +44372,46 @@ function cu(e, t, a) {
|
|
|
44372
44372
|
return e.startShowingSearch ? !0 : !of($());
|
|
44373
44373
|
}
|
|
44374
44374
|
const De = U(0), Le = T(() => {
|
|
44375
|
-
let
|
|
44375
|
+
let $e, qe = [];
|
|
44376
44376
|
w.value.forEach((Pt) => {
|
|
44377
44377
|
const Vt = S.value[Pt], ca = y.find((La) => La.name == Vt);
|
|
44378
|
-
ca != null ?
|
|
44378
|
+
ca != null ? $e = $e != null ? `${$e}ANDALSO${ca.filterFunction()}` : ca.filterFunction() : qe.push(Vt);
|
|
44379
44379
|
});
|
|
44380
44380
|
const nt = {};
|
|
44381
|
-
return Ct(qe) && (nt.filterBy = qe.toString()),
|
|
44381
|
+
return Ct(qe) && (nt.filterBy = qe.toString()), $e != null && (nt.query = $e), nt;
|
|
44382
44382
|
}), Oe = T(() => {
|
|
44383
44383
|
var qe, nt, Pt, Vt, ca, La;
|
|
44384
|
-
let
|
|
44385
|
-
return
|
|
44384
|
+
let $e = e.itemID;
|
|
44385
|
+
return $e == null && s && ($e = (nt = (qe = o == null ? void 0 : o.bladeData) == null ? void 0 : qe.data) == null ? void 0 : nt.id), $e == null && c && ($e = (Vt = (Pt = a == null ? void 0 : a.route) == null ? void 0 : Pt.query) == null ? void 0 : Vt.id), $e == null && c && ($e = (La = (ca = a == null ? void 0 : a.route) == null ? void 0 : ca.params) == null ? void 0 : La.id), $e;
|
|
44386
44386
|
}), Re = U(Oe.value == "new" ? "new" : e.startEditing ? "edit" : "view"), he = T(() => {
|
|
44387
44387
|
var qe, nt, Pt;
|
|
44388
|
-
let
|
|
44389
|
-
return e.paginate == "server" && e.itemsPerPage != null && (
|
|
44388
|
+
let $e = e.params != null ? { ...e.params } : {};
|
|
44389
|
+
return e.paginate == "server" && e.itemsPerPage != null && ($e.includeCount = !0, $e.takeAmount = e.itemsPerPage, $e.takeFrom = (D.value - 1) * e.itemsPerPage), Le.value != null && ($e = { ...$e, ...Le.value }), I.value && ($e.includeInactive = !0), Ct(e.selectProps) && ($e.properties = (qe = e.selectProps) == null ? void 0 : qe.toString()), A.value != null && ($e.searchString = A.value), Ct(e.queryParams) && ((nt = a == null ? void 0 : a.route) == null ? void 0 : nt.query) != null && ((Pt = e.queryParams) == null || Pt.forEach((Vt) => {
|
|
44390
44390
|
var ca, La, En, qt;
|
|
44391
|
-
typeof Vt == "string" ? ((ca = a.route) == null ? void 0 : ca.query[Vt]) != null && (
|
|
44392
|
-
})),
|
|
44393
|
-
}), He = T(() => (
|
|
44394
|
-
qe.hasOwnProperty("rowVersion") && (
|
|
44395
|
-
}), ua = T(() => q.value.filter((
|
|
44396
|
-
let
|
|
44391
|
+
typeof Vt == "string" ? ((ca = a.route) == null ? void 0 : ca.query[Vt]) != null && ($e[Vt] = (La = a.route) == null ? void 0 : La.query[Vt]) : ((En = a.route) == null ? void 0 : En.query[Vt.key]) != null && ($e[Vt.value] = (qt = a.route) == null ? void 0 : qt.query[Vt.key]);
|
|
44392
|
+
})), $e;
|
|
44393
|
+
}), He = T(() => ($e) => e.onCanDelete != null ? e.onCanDelete($e) : !($e != null && $e.isInactive === !0)), mt = T(() => ($e) => e.onCanIntegrate != null ? e.onCanIntegrate($e) : !(!Ct(h.value) || p.value == null || ($e == null ? void 0 : $e.isInactive) === !0)), Mt = T(() => ($e) => p.value != null ? !of(zn($e, p.value.localIDProp)) : !1), Ht = T(() => ($e) => I.value ? e.onCanRestore != null ? e.onCanRestore($e) : ($e == null ? void 0 : $e.isInactive) === !0 : !1), it = e.onUpdateAsyncItem ?? (($e, qe) => {
|
|
44394
|
+
qe.hasOwnProperty("rowVersion") && ($e.rowVersion = qe.rowVersion), qe.hasOwnProperty("version") && ($e.version = qe.version), qe.hasOwnProperty("isDeleted") && ($e.isDeleted = qe.isDeleted), qe.hasOwnProperty("isInactive") && ($e.isInactive = qe.isInactive), qe.hasOwnProperty("id") && ($e.id = qe.id);
|
|
44395
|
+
}), ua = T(() => q.value.filter(($e) => !$e.hide)), Ja = T(() => {
|
|
44396
|
+
let $e = new Array();
|
|
44397
44397
|
return ua.value.filter((nt) => nt.sublevel != null).forEach((nt) => {
|
|
44398
|
-
let Pt =
|
|
44399
|
-
Pt == null ?
|
|
44400
|
-
}),
|
|
44398
|
+
let Pt = $e.find((Vt) => Vt.position == nt.sublevel);
|
|
44399
|
+
Pt == null ? $e.push({ position: nt.sublevel ?? 0, values: [nt] }) : Pt.values.push(nt);
|
|
44400
|
+
}), $e.sort(sl.firstBy((nt) => nt.position));
|
|
44401
44401
|
}), Ml = T(() => {
|
|
44402
|
-
let
|
|
44402
|
+
let $e = new Array();
|
|
44403
44403
|
return ua.value.filter((nt) => nt.level != null).forEach((nt) => {
|
|
44404
|
-
let Pt =
|
|
44405
|
-
Pt == null ?
|
|
44406
|
-
}),
|
|
44407
|
-
}), fl = T(() => ua.value.filter((
|
|
44408
|
-
function Dl(
|
|
44409
|
-
p.value =
|
|
44410
|
-
}
|
|
44411
|
-
function nl(
|
|
44404
|
+
let Pt = $e.find((Vt) => Vt.position == nt.level);
|
|
44405
|
+
Pt == null ? $e.push({ position: nt.level ?? 0, values: [nt] }) : Pt.values.push(nt);
|
|
44406
|
+
}), $e.sort(sl.firstBy((nt) => nt.position));
|
|
44407
|
+
}), fl = T(() => ua.value.filter(($e) => $e.nav != null && $e.itemText != null || $e.textFilter != null || $e.display != null || $e.bool != null));
|
|
44408
|
+
function Dl($e) {
|
|
44409
|
+
p.value = $e, C.value = [];
|
|
44410
|
+
}
|
|
44411
|
+
function nl($e) {
|
|
44412
44412
|
var nt;
|
|
44413
44413
|
const qe = e.addBladeName ?? e.itemBladeName;
|
|
44414
|
-
qe != null && (
|
|
44414
|
+
qe != null && ($e == "page" || e.navType == "page" ? (nt = a == null ? void 0 : a.router) == null || nt.push({
|
|
44415
44415
|
name: qe,
|
|
44416
44416
|
params: { id: "new" },
|
|
44417
44417
|
query: { proxyID: P.value }
|
|
@@ -44421,8 +44421,8 @@ function cu(e, t, a) {
|
|
|
44421
44421
|
closeBladeNames: e.closeBladeNames
|
|
44422
44422
|
})));
|
|
44423
44423
|
}
|
|
44424
|
-
async function Jl(
|
|
44425
|
-
const qe = i(
|
|
44424
|
+
async function Jl($e) {
|
|
44425
|
+
const qe = i($e), {
|
|
44426
44426
|
additionalUrl: nt,
|
|
44427
44427
|
onDeleteAsync: Pt
|
|
44428
44428
|
} = { ...e };
|
|
@@ -44441,9 +44441,9 @@ function cu(e, t, a) {
|
|
|
44441
44441
|
if (qt > -1)
|
|
44442
44442
|
return La.splice(qt, 1), !0;
|
|
44443
44443
|
} else {
|
|
44444
|
-
let qt = La.findIndex((Vn) => Vn ===
|
|
44444
|
+
let qt = La.findIndex((Vn) => Vn === $e);
|
|
44445
44445
|
if (qt == -1)
|
|
44446
|
-
return qt = La.findIndex((Vn) => Vn ==
|
|
44446
|
+
return qt = La.findIndex((Vn) => Vn == $e), !0;
|
|
44447
44447
|
if (qt > -1)
|
|
44448
44448
|
return La.splice(qt, 1), !0;
|
|
44449
44449
|
}
|
|
@@ -44451,28 +44451,28 @@ function cu(e, t, a) {
|
|
|
44451
44451
|
};
|
|
44452
44452
|
e.localOnly == !0 || u == null ? g != "soft" ? (ca(V.value, qe), ca(e.items, qe)) : I.value || ca(j.value, qe) : await ee({
|
|
44453
44453
|
additionalUrl: nt,
|
|
44454
|
-
data:
|
|
44454
|
+
data: $e,
|
|
44455
44455
|
nav: u,
|
|
44456
44456
|
onCanDeleteAsync: e.onCanDeleteAsync,
|
|
44457
44457
|
onDeleteAsync: Pt,
|
|
44458
|
-
onDeleteSuccessAsync: async (La) => (g != "soft" ? ca(e.items, qe) : (it(
|
|
44458
|
+
onDeleteSuccessAsync: async (La) => (g != "soft" ? ca(e.items, qe) : (it($e, La), I.value || ca(j.value, qe)), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync($e) : Promise.resolve(void 0)),
|
|
44459
44459
|
proxyID: P.value
|
|
44460
44460
|
// ...(useBladeSrc ? bladeData.value : {}),
|
|
44461
44461
|
// requireConfirmation: true
|
|
44462
|
-
}), t && t("deleted",
|
|
44462
|
+
}), t && t("deleted", $e);
|
|
44463
44463
|
}
|
|
44464
|
-
async function er(
|
|
44464
|
+
async function er($e) {
|
|
44465
44465
|
let qe = p.value;
|
|
44466
44466
|
if ((qe == null ? void 0 : qe.party) == null || (qe == null ? void 0 : qe.localIDProp) == null || (qe == null ? void 0 : qe.additionalUrl) == null)
|
|
44467
44467
|
return;
|
|
44468
|
-
const nt = ft(
|
|
44468
|
+
const nt = ft($e), {
|
|
44469
44469
|
nav: Pt,
|
|
44470
44470
|
onSyncAsync: Vt
|
|
44471
44471
|
} = { ...e };
|
|
44472
44472
|
var ca = await xe({
|
|
44473
44473
|
actions: [{
|
|
44474
44474
|
action: "push",
|
|
44475
|
-
item:
|
|
44475
|
+
item: $e,
|
|
44476
44476
|
localItemID: nt.id
|
|
44477
44477
|
}],
|
|
44478
44478
|
additionalUrl: qe.additionalUrl,
|
|
@@ -44481,20 +44481,20 @@ function cu(e, t, a) {
|
|
|
44481
44481
|
onSyncAsync: Vt,
|
|
44482
44482
|
partyID: qe == null ? void 0 : qe.party
|
|
44483
44483
|
});
|
|
44484
|
-
ca != null && ca.length > 0 && !ca[0].isSuccess && (
|
|
44484
|
+
ca != null && ca.length > 0 && !ca[0].isSuccess && ($e.errorMsg = ca[0].msg ?? "Failed");
|
|
44485
44485
|
}
|
|
44486
|
-
async function Pe(
|
|
44486
|
+
async function Pe($e) {
|
|
44487
44487
|
let qe = p.value;
|
|
44488
44488
|
if ((qe == null ? void 0 : qe.party) == null || (qe == null ? void 0 : qe.localIDProp) == null || (qe == null ? void 0 : qe.additionalUrl) == null)
|
|
44489
44489
|
return;
|
|
44490
|
-
const nt = ft(
|
|
44490
|
+
const nt = ft($e), {
|
|
44491
44491
|
nav: Pt,
|
|
44492
44492
|
onSyncAsync: Vt
|
|
44493
44493
|
} = { ...e };
|
|
44494
44494
|
var ca = await xe({
|
|
44495
44495
|
actions: [{
|
|
44496
44496
|
action: "unlink",
|
|
44497
|
-
item:
|
|
44497
|
+
item: $e,
|
|
44498
44498
|
localItemID: nt.id
|
|
44499
44499
|
}],
|
|
44500
44500
|
additionalUrl: qe.additionalUrl,
|
|
@@ -44503,17 +44503,17 @@ function cu(e, t, a) {
|
|
|
44503
44503
|
onSyncAsync: Vt,
|
|
44504
44504
|
partyID: qe == null ? void 0 : qe.party
|
|
44505
44505
|
});
|
|
44506
|
-
ca != null && ca.length > 0 && !ca[0].isSuccess && (
|
|
44506
|
+
ca != null && ca.length > 0 && !ca[0].isSuccess && ($e.errorMsg = ca[0].msg ?? "Failed");
|
|
44507
44507
|
}
|
|
44508
|
-
function pe(
|
|
44508
|
+
function pe($e) {
|
|
44509
44509
|
const {
|
|
44510
44510
|
additionalUrl: qe,
|
|
44511
44511
|
onRestoreAsync: nt,
|
|
44512
|
-
onRestoreSuccessAsync: Pt = (Vt) => (it(
|
|
44512
|
+
onRestoreSuccessAsync: Pt = (Vt) => (it($e, Vt), Vt)
|
|
44513
44513
|
} = { ...e };
|
|
44514
44514
|
return Se({
|
|
44515
44515
|
additionalUrl: qe,
|
|
44516
|
-
data:
|
|
44516
|
+
data: $e,
|
|
44517
44517
|
nav: u,
|
|
44518
44518
|
onRestoreAsync: nt,
|
|
44519
44519
|
onRestoreSuccessAsync: Pt,
|
|
@@ -44522,8 +44522,8 @@ function cu(e, t, a) {
|
|
|
44522
44522
|
// ...(useBladeSrc ? bladeData.value : {}),
|
|
44523
44523
|
});
|
|
44524
44524
|
}
|
|
44525
|
-
function ke(
|
|
44526
|
-
const qe = ft(
|
|
44525
|
+
function ke($e) {
|
|
44526
|
+
const qe = ft($e), {
|
|
44527
44527
|
additionalUrl: nt,
|
|
44528
44528
|
onCanSaveAsync: Pt,
|
|
44529
44529
|
onGetSaveAsync: Vt,
|
|
@@ -44551,38 +44551,38 @@ function cu(e, t, a) {
|
|
|
44551
44551
|
j.value = [];
|
|
44552
44552
|
return;
|
|
44553
44553
|
}
|
|
44554
|
-
let
|
|
44555
|
-
if (e.sortProp != null && (
|
|
44554
|
+
let $e = V.value;
|
|
44555
|
+
if (e.sortProp != null && ($e = $e.sort(sl.firstBy((qe) => zn(qe, e.sortProp)))), e.onFilter != null && ($e = e.onFilter($e)), Ct(e.localFilters) && w.value.forEach((qe) => {
|
|
44556
44556
|
var Pt;
|
|
44557
44557
|
const nt = (Pt = e.localFilters) == null ? void 0 : Pt.find((Vt) => Vt.name == S.value[qe]);
|
|
44558
|
-
nt != null && (nt.onFilter != null ?
|
|
44558
|
+
nt != null && (nt.onFilter != null ? $e = nt.onFilter($e) : nt.predicate != null && ($e = $e.filter((Vt) => nt.predicate(Vt))));
|
|
44559
44559
|
}), e.inactiveProp != null && !I.value) {
|
|
44560
44560
|
const qe = e.inactiveProp;
|
|
44561
|
-
|
|
44561
|
+
$e = $e.filter((nt) => nt[qe] !== !0);
|
|
44562
44562
|
}
|
|
44563
44563
|
if (A.value != null && A.value.length > 0) {
|
|
44564
44564
|
let qe = [...z.value];
|
|
44565
|
-
e.itemText && qe.push(e.itemText), Ct(qe) && (
|
|
44565
|
+
e.itemText && qe.push(e.itemText), Ct(qe) && ($e = $e.filter((nt) => iL(nt, A.value, qe)));
|
|
44566
44566
|
}
|
|
44567
|
-
if (e.paginate == "local" && (et(
|
|
44567
|
+
if (e.paginate == "local" && (et($e, $e.length), e.itemsPerPage != null)) {
|
|
44568
44568
|
let qe = (D.value - 1) * e.itemsPerPage, nt = qe + e.itemsPerPage;
|
|
44569
|
-
nt >=
|
|
44569
|
+
nt >= $e.length && (nt = $e.length), $e = $e.slice(qe, nt);
|
|
44570
44570
|
}
|
|
44571
|
-
e.sortProp != null && (
|
|
44571
|
+
e.sortProp != null && ($e = $e.sort(sl.firstBy((qe) => zn(qe, e.sortProp)))), j.value = $e;
|
|
44572
44572
|
}
|
|
44573
44573
|
function ze() {
|
|
44574
|
-
const
|
|
44575
|
-
e.headers != null && (q.value = [...e.headers],
|
|
44574
|
+
const $e = (a == null ? void 0 : a.hideActions) ?? e.hideActions;
|
|
44575
|
+
e.headers != null && (q.value = [...e.headers], $e || q.value.push({ title: "Actions", value: "itemActions", align: "end" }));
|
|
44576
44576
|
}
|
|
44577
|
-
function et(
|
|
44578
|
-
if (e.itemsPerPage == null ||
|
|
44577
|
+
function et($e, qe) {
|
|
44578
|
+
if (e.itemsPerPage == null || $e == null || $e.length == 0)
|
|
44579
44579
|
return;
|
|
44580
44580
|
const nt = typeof e.itemsPerPage == "string" ? Number.parseInt(e.itemsPerPage) : e.itemsPerPage;
|
|
44581
|
-
nt <= 0 || (e.paginate == "server" ? qe != null && (De.value = Math.ceil(qe / nt)) : e.paginate == "local" && (De.value = Math.ceil(
|
|
44581
|
+
nt <= 0 || (e.paginate == "server" ? qe != null && (De.value = Math.ceil(qe / nt)) : e.paginate == "local" && (De.value = Math.ceil($e.length / nt)));
|
|
44582
44582
|
}
|
|
44583
|
-
async function lt(
|
|
44583
|
+
async function lt($e) {
|
|
44584
44584
|
var nt, Pt, Vt, ca, La;
|
|
44585
|
-
if (K.value = !1, (
|
|
44585
|
+
if (K.value = !1, ($e == null ? void 0 : $e.resetSearch) == !0 && (me.value = !1, A.value = void 0), e.items != null) {
|
|
44586
44586
|
let En = { data: e.items };
|
|
44587
44587
|
J.value = "Loading";
|
|
44588
44588
|
let qt = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(En) : En;
|
|
@@ -44606,7 +44606,7 @@ function cu(e, t, a) {
|
|
|
44606
44606
|
...s ? (Vt = (Pt = o == null ? void 0 : o.bladeData) == null ? void 0 : Pt.data) == null ? void 0 : Vt.params : {}
|
|
44607
44607
|
},
|
|
44608
44608
|
proxyID: P.value,
|
|
44609
|
-
refresh: (
|
|
44609
|
+
refresh: ($e == null ? void 0 : $e.deepRefresh) ?? !1,
|
|
44610
44610
|
onGetAsync: e.onGetSingleAsync,
|
|
44611
44611
|
onGetSuccessAsync: e.onGetSingleSuccessAsync
|
|
44612
44612
|
};
|
|
@@ -44627,7 +44627,7 @@ function cu(e, t, a) {
|
|
|
44627
44627
|
...s ? (La = (ca = o == null ? void 0 : o.bladeData) == null ? void 0 : ca.data) == null ? void 0 : La.params : {}
|
|
44628
44628
|
},
|
|
44629
44629
|
proxyID: P.value,
|
|
44630
|
-
refresh: (
|
|
44630
|
+
refresh: ($e == null ? void 0 : $e.deepRefresh) ?? !1,
|
|
44631
44631
|
onGetAsync: e.onGetAsync,
|
|
44632
44632
|
onGetSuccessAsync: e.onGetSuccessAsync
|
|
44633
44633
|
};
|
|
@@ -44639,9 +44639,9 @@ function cu(e, t, a) {
|
|
|
44639
44639
|
}
|
|
44640
44640
|
je(), W && W(V.value), (a == null ? void 0 : a.onFinishedAsync) != null && await (a == null ? void 0 : a.onFinishedAsync(V.value)), t && t("fetched", V.value);
|
|
44641
44641
|
}
|
|
44642
|
-
function In(
|
|
44642
|
+
function In($e, qe) {
|
|
44643
44643
|
var Vt;
|
|
44644
|
-
const nt = ft(
|
|
44644
|
+
const nt = ft($e);
|
|
44645
44645
|
if (e.canUnselect ? R = nt === R ? null : nt : R = nt ?? R, e.canSelect == !0 && (e.onCanSelectItem == null || e.onCanSelectItem(nt))) {
|
|
44646
44646
|
var Pt = e.navType == "blade" || e.itemBladeName != null && R == null;
|
|
44647
44647
|
e.onSelectItem != null ? e.onSelectItem(R) : Pt ? o == null || o.closeBlade({ bladeName: e.itemBladeName }) : e.navType == "page" || qe == "page" ? (Vt = a == null ? void 0 : a.router) == null || Vt.push({
|
|
@@ -44659,16 +44659,16 @@ function cu(e, t, a) {
|
|
|
44659
44659
|
function vn() {
|
|
44660
44660
|
me.value = !me.value, A.value = void 0, lt();
|
|
44661
44661
|
}
|
|
44662
|
-
return ze(), xM([A], ([
|
|
44663
|
-
(e.trackSearchQuery || e.variant == "page") && r.updateSearch(
|
|
44664
|
-
}, { debounce: 500, maxWait: 500 }), Me(() => e.searchStr, (
|
|
44665
|
-
A.value =
|
|
44662
|
+
return ze(), xM([A], ([$e]) => {
|
|
44663
|
+
(e.trackSearchQuery || e.variant == "page") && r.updateSearch($e), console.log($e), D.value != 1 ? D.value = 1 : je();
|
|
44664
|
+
}, { debounce: 500, maxWait: 500 }), Me(() => e.searchStr, ($e) => {
|
|
44665
|
+
A.value = $e;
|
|
44666
44666
|
}), Me(I, async () => {
|
|
44667
44667
|
m == "whole-last-updated" ? je() : await lt();
|
|
44668
44668
|
}), Me(D, async () => {
|
|
44669
44669
|
await lt();
|
|
44670
|
-
}), Me([ae, () => e.errorMsg], ([
|
|
44671
|
-
K.value =
|
|
44670
|
+
}), Me([ae, () => e.errorMsg], ([$e, qe]) => {
|
|
44671
|
+
K.value = $e != null || qe != null;
|
|
44672
44672
|
}), Me(() => e.refreshToggle, () => {
|
|
44673
44673
|
lt({ deepRefresh: !0 });
|
|
44674
44674
|
}), Me(() => e.filterToggle, () => {
|
|
@@ -44680,8 +44680,8 @@ function cu(e, t, a) {
|
|
|
44680
44680
|
}, { deep: !0 }), fx([() => e.items], () => {
|
|
44681
44681
|
lt();
|
|
44682
44682
|
}, { deep: !0 }), a != null && a.isNotSetup ? (a == null ? void 0 : a.isNotSetup) == !0 && e.eager == !0 && lt({ deepRefresh: ((jn = (en = a == null ? void 0 : a.route) == null ? void 0 : en.params) == null ? void 0 : jn.refresh) == "true" || ((Io = (wr = a == null ? void 0 : a.route) == null ? void 0 : wr.query) == null ? void 0 : Io.refresh) == "true" }) : yt(async () => {
|
|
44683
|
-
var
|
|
44684
|
-
e.eager == !0 && await lt({ deepRefresh: ((qe = (
|
|
44683
|
+
var $e, qe, nt, Pt;
|
|
44684
|
+
e.eager == !0 && await lt({ deepRefresh: ((qe = ($e = a == null ? void 0 : a.route) == null ? void 0 : $e.params) == null ? void 0 : qe.refresh) == "true" || ((Pt = (nt = a == null ? void 0 : a.route) == null ? void 0 : nt.query) == null ? void 0 : Pt.refresh) == "true" });
|
|
44685
44685
|
}), {
|
|
44686
44686
|
add: nl,
|
|
44687
44687
|
applyFilters: async () => {
|