bt-core-app 1.4.65 → 1.4.67
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 +311 -311
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -36,8 +36,8 @@ function rn(e) {
|
|
|
36
36
|
try {
|
|
37
37
|
return u.requireConfirmation || u.confirmationMsg, y = await d(), u.completionMsg != null && (s.value = u.completionMsg), y;
|
|
38
38
|
} catch (I) {
|
|
39
|
-
if (
|
|
40
|
-
|
|
39
|
+
if ((e == null ? void 0 : e.onError) != null)
|
|
40
|
+
e.onError(I);
|
|
41
41
|
else {
|
|
42
42
|
if (u.throwError == !0)
|
|
43
43
|
return I;
|
|
@@ -418,9 +418,9 @@ var at = { exports: {} };
|
|
|
418
418
|
var h, u = [];
|
|
419
419
|
function r() {
|
|
420
420
|
h = !0;
|
|
421
|
-
for (var I,
|
|
422
|
-
for (
|
|
423
|
-
|
|
421
|
+
for (var I, i, E = u.length; E; ) {
|
|
422
|
+
for (i = u, u = [], I = -1; ++I < E; )
|
|
423
|
+
i[I]();
|
|
424
424
|
E = u.length;
|
|
425
425
|
}
|
|
426
426
|
h = !1;
|
|
@@ -526,8 +526,8 @@ var at = { exports: {} };
|
|
|
526
526
|
}
|
|
527
527
|
return D;
|
|
528
528
|
}
|
|
529
|
-
d.resolve =
|
|
530
|
-
function
|
|
529
|
+
d.resolve = i;
|
|
530
|
+
function i(b) {
|
|
531
531
|
return b instanceof this ? b : P.resolve(new this(x), b);
|
|
532
532
|
}
|
|
533
533
|
d.reject = E;
|
|
@@ -584,8 +584,8 @@ var at = { exports: {} };
|
|
|
584
584
|
} : function(n) {
|
|
585
585
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
586
586
|
};
|
|
587
|
-
function x(n,
|
|
588
|
-
if (!(n instanceof
|
|
587
|
+
function x(n, c) {
|
|
588
|
+
if (!(n instanceof c))
|
|
589
589
|
throw new TypeError("Cannot call a class as a function");
|
|
590
590
|
}
|
|
591
591
|
function P() {
|
|
@@ -609,8 +609,8 @@ var at = { exports: {} };
|
|
|
609
609
|
try {
|
|
610
610
|
if (!T || !T.open)
|
|
611
611
|
return !1;
|
|
612
|
-
var n = typeof openDatabase < "u" && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform),
|
|
613
|
-
return (!n ||
|
|
612
|
+
var n = typeof openDatabase < "u" && /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), c = typeof fetch == "function" && fetch.toString().indexOf("[native code") !== -1;
|
|
613
|
+
return (!n || c) && typeof indexedDB < "u" && // some outdated implementations of IDB that appear on Samsung
|
|
614
614
|
// and HTC Android devices <4.4 are missing IDBKeyRange
|
|
615
615
|
// See: https://github.com/mozilla/localForage/issues/128
|
|
616
616
|
// See: https://github.com/mozilla/localForage/issues/272
|
|
@@ -619,29 +619,29 @@ var at = { exports: {} };
|
|
|
619
619
|
return !1;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function $(n,
|
|
623
|
-
n = n || [],
|
|
622
|
+
function $(n, c) {
|
|
623
|
+
n = n || [], c = c || {};
|
|
624
624
|
try {
|
|
625
|
-
return new Blob(n,
|
|
625
|
+
return new Blob(n, c);
|
|
626
626
|
} catch (o) {
|
|
627
627
|
if (o.name !== "TypeError")
|
|
628
628
|
throw o;
|
|
629
629
|
for (var a = typeof BlobBuilder < "u" ? BlobBuilder : typeof MSBlobBuilder < "u" ? MSBlobBuilder : typeof MozBlobBuilder < "u" ? MozBlobBuilder : WebKitBlobBuilder, m = new a(), v = 0; v < n.length; v += 1)
|
|
630
630
|
m.append(n[v]);
|
|
631
|
-
return m.getBlob(
|
|
631
|
+
return m.getBlob(c.type);
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
typeof Promise > "u" && l(3);
|
|
635
635
|
var d = Promise;
|
|
636
|
-
function h(n,
|
|
637
|
-
|
|
638
|
-
|
|
636
|
+
function h(n, c) {
|
|
637
|
+
c && n.then(function(a) {
|
|
638
|
+
c(null, a);
|
|
639
639
|
}, function(a) {
|
|
640
|
-
|
|
640
|
+
c(a);
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
|
-
function u(n,
|
|
644
|
-
typeof
|
|
643
|
+
function u(n, c, a) {
|
|
644
|
+
typeof c == "function" && n.then(c), typeof a == "function" && n.catch(a);
|
|
645
645
|
}
|
|
646
646
|
function r(n) {
|
|
647
647
|
return typeof n != "string" && (console.warn(n + " used as a key, but it is not a string."), n = String(n)), n;
|
|
@@ -650,59 +650,59 @@ var at = { exports: {} };
|
|
|
650
650
|
if (arguments.length && typeof arguments[arguments.length - 1] == "function")
|
|
651
651
|
return arguments[arguments.length - 1];
|
|
652
652
|
}
|
|
653
|
-
var I = "local-forage-detect-blob-support",
|
|
653
|
+
var I = "local-forage-detect-blob-support", i = void 0, E = {}, w = Object.prototype.toString, M = "readonly", b = "readwrite";
|
|
654
654
|
function _(n) {
|
|
655
|
-
for (var
|
|
655
|
+
for (var c = n.length, a = new ArrayBuffer(c), m = new Uint8Array(a), v = 0; v < c; v++)
|
|
656
656
|
m[v] = n.charCodeAt(v);
|
|
657
657
|
return a;
|
|
658
658
|
}
|
|
659
659
|
function D(n) {
|
|
660
|
-
return new d(function(
|
|
660
|
+
return new d(function(c) {
|
|
661
661
|
var a = n.transaction(I, b), m = $([""]);
|
|
662
662
|
a.objectStore(I).put(m, "key"), a.onabort = function(v) {
|
|
663
|
-
v.preventDefault(), v.stopPropagation(),
|
|
663
|
+
v.preventDefault(), v.stopPropagation(), c(!1);
|
|
664
664
|
}, a.oncomplete = function() {
|
|
665
665
|
var v = navigator.userAgent.match(/Chrome\/(\d+)/), o = navigator.userAgent.match(/Edge\//);
|
|
666
|
-
|
|
666
|
+
c(o || !v || parseInt(v[1], 10) >= 43);
|
|
667
667
|
};
|
|
668
668
|
}).catch(function() {
|
|
669
669
|
return !1;
|
|
670
670
|
});
|
|
671
671
|
}
|
|
672
672
|
function L(n) {
|
|
673
|
-
return typeof
|
|
674
|
-
return
|
|
673
|
+
return typeof i == "boolean" ? d.resolve(i) : D(n).then(function(c) {
|
|
674
|
+
return i = c, i;
|
|
675
675
|
});
|
|
676
676
|
}
|
|
677
677
|
function f(n) {
|
|
678
|
-
var
|
|
678
|
+
var c = E[n.name], a = {};
|
|
679
679
|
a.promise = new d(function(m, v) {
|
|
680
680
|
a.resolve = m, a.reject = v;
|
|
681
|
-
}),
|
|
681
|
+
}), c.deferredOperations.push(a), c.dbReady ? c.dbReady = c.dbReady.then(function() {
|
|
682
682
|
return a.promise;
|
|
683
|
-
}) :
|
|
683
|
+
}) : c.dbReady = a.promise;
|
|
684
684
|
}
|
|
685
685
|
function A(n) {
|
|
686
|
-
var
|
|
686
|
+
var c = E[n.name], a = c.deferredOperations.pop();
|
|
687
687
|
if (a)
|
|
688
688
|
return a.resolve(), a.promise;
|
|
689
689
|
}
|
|
690
|
-
function J(n,
|
|
690
|
+
function J(n, c) {
|
|
691
691
|
var a = E[n.name], m = a.deferredOperations.pop();
|
|
692
692
|
if (m)
|
|
693
|
-
return m.reject(
|
|
693
|
+
return m.reject(c), m.promise;
|
|
694
694
|
}
|
|
695
|
-
function Q(n,
|
|
695
|
+
function Q(n, c) {
|
|
696
696
|
return new d(function(a, m) {
|
|
697
697
|
if (E[n.name] = E[n.name] || ne(), n.db)
|
|
698
|
-
if (
|
|
698
|
+
if (c)
|
|
699
699
|
f(n), n.db.close();
|
|
700
700
|
else
|
|
701
701
|
return a(n.db);
|
|
702
702
|
var v = [n.name];
|
|
703
|
-
|
|
703
|
+
c && v.push(n.version);
|
|
704
704
|
var o = T.open.apply(T, v);
|
|
705
|
-
|
|
705
|
+
c && (o.onupgradeneeded = function(C) {
|
|
706
706
|
var R = o.result;
|
|
707
707
|
try {
|
|
708
708
|
R.createObjectStore(n.storeName), C.oldVersion <= 1 && R.createObjectStore(I);
|
|
@@ -728,11 +728,11 @@ var at = { exports: {} };
|
|
|
728
728
|
function ie(n) {
|
|
729
729
|
return Q(n, !0);
|
|
730
730
|
}
|
|
731
|
-
function we(n,
|
|
731
|
+
function we(n, c) {
|
|
732
732
|
if (!n.db)
|
|
733
733
|
return !0;
|
|
734
734
|
var a = !n.db.objectStoreNames.contains(n.storeName), m = n.version < n.db.version, v = n.version > n.db.version;
|
|
735
|
-
if (m && (n.version !==
|
|
735
|
+
if (m && (n.version !== c && console.warn('The database "' + n.name + `" can't be downgraded from version ` + n.db.version + " to version " + n.version + "."), n.version = n.db.version), v || a) {
|
|
736
736
|
if (a) {
|
|
737
737
|
var o = n.db.version + 1;
|
|
738
738
|
o > n.version && (n.version = o);
|
|
@@ -742,11 +742,11 @@ var at = { exports: {} };
|
|
|
742
742
|
return !1;
|
|
743
743
|
}
|
|
744
744
|
function W(n) {
|
|
745
|
-
return new d(function(
|
|
745
|
+
return new d(function(c, a) {
|
|
746
746
|
var m = new FileReader();
|
|
747
747
|
m.onerror = a, m.onloadend = function(v) {
|
|
748
748
|
var o = btoa(v.target.result || "");
|
|
749
|
-
|
|
749
|
+
c({
|
|
750
750
|
__local_forage_encoded_blob: !0,
|
|
751
751
|
data: o,
|
|
752
752
|
type: n.type
|
|
@@ -755,15 +755,15 @@ var at = { exports: {} };
|
|
|
755
755
|
});
|
|
756
756
|
}
|
|
757
757
|
function Y(n) {
|
|
758
|
-
var
|
|
759
|
-
return $([
|
|
758
|
+
var c = _(atob(n.data));
|
|
759
|
+
return $([c], { type: n.type });
|
|
760
760
|
}
|
|
761
761
|
function V(n) {
|
|
762
762
|
return n && n.__local_forage_encoded_blob;
|
|
763
763
|
}
|
|
764
764
|
function ae(n) {
|
|
765
|
-
var
|
|
766
|
-
var m = E[
|
|
765
|
+
var c = this, a = c._initReady().then(function() {
|
|
766
|
+
var m = E[c._dbInfo.name];
|
|
767
767
|
if (m && m.dbReady)
|
|
768
768
|
return m.dbReady;
|
|
769
769
|
});
|
|
@@ -771,24 +771,24 @@ var at = { exports: {} };
|
|
|
771
771
|
}
|
|
772
772
|
function G(n) {
|
|
773
773
|
f(n);
|
|
774
|
-
for (var
|
|
774
|
+
for (var c = E[n.name], a = c.forages, m = 0; m < a.length; m++) {
|
|
775
775
|
var v = a[m];
|
|
776
776
|
v._dbInfo.db && (v._dbInfo.db.close(), v._dbInfo.db = null);
|
|
777
777
|
}
|
|
778
778
|
return n.db = null, ee(n).then(function(o) {
|
|
779
779
|
return n.db = o, we(n) ? ie(n) : o;
|
|
780
780
|
}).then(function(o) {
|
|
781
|
-
n.db =
|
|
781
|
+
n.db = c.db = o;
|
|
782
782
|
for (var C = 0; C < a.length; C++)
|
|
783
783
|
a[C]._dbInfo.db = o;
|
|
784
784
|
}).catch(function(o) {
|
|
785
785
|
throw J(n, o), o;
|
|
786
786
|
});
|
|
787
787
|
}
|
|
788
|
-
function X(n,
|
|
788
|
+
function X(n, c, a, m) {
|
|
789
789
|
m === void 0 && (m = 1);
|
|
790
790
|
try {
|
|
791
|
-
var v = n.db.transaction(n.storeName,
|
|
791
|
+
var v = n.db.transaction(n.storeName, c);
|
|
792
792
|
a(null, v);
|
|
793
793
|
} catch (o) {
|
|
794
794
|
if (m > 0 && (!n.db || o.name === "InvalidStateError" || o.name === "NotFoundError"))
|
|
@@ -797,7 +797,7 @@ var at = { exports: {} };
|
|
|
797
797
|
return n.db && (n.version = n.db.version + 1), ie(n);
|
|
798
798
|
}).then(function() {
|
|
799
799
|
return G(n).then(function() {
|
|
800
|
-
X(n,
|
|
800
|
+
X(n, c, a, m - 1);
|
|
801
801
|
});
|
|
802
802
|
}).catch(a);
|
|
803
803
|
a(o);
|
|
@@ -816,36 +816,36 @@ var at = { exports: {} };
|
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
818
|
function fe(n) {
|
|
819
|
-
var
|
|
819
|
+
var c = this, a = {
|
|
820
820
|
db: null
|
|
821
821
|
};
|
|
822
822
|
if (n)
|
|
823
823
|
for (var m in n)
|
|
824
824
|
a[m] = n[m];
|
|
825
825
|
var v = E[a.name];
|
|
826
|
-
v || (v = ne(), E[a.name] = v), v.forages.push(
|
|
826
|
+
v || (v = ne(), E[a.name] = v), v.forages.push(c), c._initReady || (c._initReady = c.ready, c.ready = ae);
|
|
827
827
|
var o = [];
|
|
828
828
|
function C() {
|
|
829
829
|
return d.resolve();
|
|
830
830
|
}
|
|
831
831
|
for (var R = 0; R < v.forages.length; R++) {
|
|
832
832
|
var B = v.forages[R];
|
|
833
|
-
B !==
|
|
833
|
+
B !== c && o.push(B._initReady().catch(C));
|
|
834
834
|
}
|
|
835
835
|
var F = v.forages.slice(0);
|
|
836
836
|
return d.all(o).then(function() {
|
|
837
837
|
return a.db = v.db, ee(a);
|
|
838
838
|
}).then(function(k) {
|
|
839
|
-
return a.db = k, we(a,
|
|
839
|
+
return a.db = k, we(a, c._defaultConfig.version) ? ie(a) : k;
|
|
840
840
|
}).then(function(k) {
|
|
841
|
-
a.db = v.db = k,
|
|
841
|
+
a.db = v.db = k, c._dbInfo = a;
|
|
842
842
|
for (var q = 0; q < F.length; q++) {
|
|
843
843
|
var Z = F[q];
|
|
844
|
-
Z !==
|
|
844
|
+
Z !== c && (Z._dbInfo.db = a.db, Z._dbInfo.version = a.version);
|
|
845
845
|
}
|
|
846
846
|
});
|
|
847
847
|
}
|
|
848
|
-
function ce(n,
|
|
848
|
+
function ce(n, c) {
|
|
849
849
|
var a = this;
|
|
850
850
|
n = r(n);
|
|
851
851
|
var m = new d(function(v, o) {
|
|
@@ -867,9 +867,9 @@ var at = { exports: {} };
|
|
|
867
867
|
});
|
|
868
868
|
}).catch(o);
|
|
869
869
|
});
|
|
870
|
-
return h(m,
|
|
870
|
+
return h(m, c), m;
|
|
871
871
|
}
|
|
872
|
-
function Ee(n,
|
|
872
|
+
function Ee(n, c) {
|
|
873
873
|
var a = this, m = new d(function(v, o) {
|
|
874
874
|
a.ready().then(function() {
|
|
875
875
|
X(a._dbInfo, M, function(C, R) {
|
|
@@ -895,17 +895,17 @@ var at = { exports: {} };
|
|
|
895
895
|
});
|
|
896
896
|
}).catch(o);
|
|
897
897
|
});
|
|
898
|
-
return h(m,
|
|
898
|
+
return h(m, c), m;
|
|
899
899
|
}
|
|
900
|
-
function $e(n,
|
|
900
|
+
function $e(n, c, a) {
|
|
901
901
|
var m = this;
|
|
902
902
|
n = r(n);
|
|
903
903
|
var v = new d(function(o, C) {
|
|
904
904
|
var R;
|
|
905
905
|
m.ready().then(function() {
|
|
906
|
-
return R = m._dbInfo, w.call(
|
|
907
|
-
return B ?
|
|
908
|
-
}) :
|
|
906
|
+
return R = m._dbInfo, w.call(c) === "[object Blob]" ? L(R.db).then(function(B) {
|
|
907
|
+
return B ? c : W(c);
|
|
908
|
+
}) : c;
|
|
909
909
|
}).then(function(B) {
|
|
910
910
|
X(m._dbInfo, b, function(F, k) {
|
|
911
911
|
if (F)
|
|
@@ -928,7 +928,7 @@ var at = { exports: {} };
|
|
|
928
928
|
});
|
|
929
929
|
return h(v, a), v;
|
|
930
930
|
}
|
|
931
|
-
function Ce(n,
|
|
931
|
+
function Ce(n, c) {
|
|
932
932
|
var a = this;
|
|
933
933
|
n = r(n);
|
|
934
934
|
var m = new d(function(v, o) {
|
|
@@ -952,16 +952,16 @@ var at = { exports: {} };
|
|
|
952
952
|
});
|
|
953
953
|
}).catch(o);
|
|
954
954
|
});
|
|
955
|
-
return h(m,
|
|
955
|
+
return h(m, c), m;
|
|
956
956
|
}
|
|
957
957
|
function rr(n) {
|
|
958
|
-
var
|
|
959
|
-
|
|
960
|
-
X(
|
|
958
|
+
var c = this, a = new d(function(m, v) {
|
|
959
|
+
c.ready().then(function() {
|
|
960
|
+
X(c._dbInfo, b, function(o, C) {
|
|
961
961
|
if (o)
|
|
962
962
|
return v(o);
|
|
963
963
|
try {
|
|
964
|
-
var R = C.objectStore(
|
|
964
|
+
var R = C.objectStore(c._dbInfo.storeName), B = R.clear();
|
|
965
965
|
C.oncomplete = function() {
|
|
966
966
|
m();
|
|
967
967
|
}, C.onabort = C.onerror = function() {
|
|
@@ -977,13 +977,13 @@ var at = { exports: {} };
|
|
|
977
977
|
return h(a, n), a;
|
|
978
978
|
}
|
|
979
979
|
function tr(n) {
|
|
980
|
-
var
|
|
981
|
-
|
|
982
|
-
X(
|
|
980
|
+
var c = this, a = new d(function(m, v) {
|
|
981
|
+
c.ready().then(function() {
|
|
982
|
+
X(c._dbInfo, M, function(o, C) {
|
|
983
983
|
if (o)
|
|
984
984
|
return v(o);
|
|
985
985
|
try {
|
|
986
|
-
var R = C.objectStore(
|
|
986
|
+
var R = C.objectStore(c._dbInfo.storeName), B = R.count();
|
|
987
987
|
B.onsuccess = function() {
|
|
988
988
|
m(B.result);
|
|
989
989
|
}, B.onerror = function() {
|
|
@@ -997,7 +997,7 @@ var at = { exports: {} };
|
|
|
997
997
|
});
|
|
998
998
|
return h(a, n), a;
|
|
999
999
|
}
|
|
1000
|
-
function nr(n,
|
|
1000
|
+
function nr(n, c) {
|
|
1001
1001
|
var a = this, m = new d(function(v, o) {
|
|
1002
1002
|
if (n < 0) {
|
|
1003
1003
|
v(null);
|
|
@@ -1025,16 +1025,16 @@ var at = { exports: {} };
|
|
|
1025
1025
|
});
|
|
1026
1026
|
}).catch(o);
|
|
1027
1027
|
});
|
|
1028
|
-
return h(m,
|
|
1028
|
+
return h(m, c), m;
|
|
1029
1029
|
}
|
|
1030
1030
|
function Pe(n) {
|
|
1031
|
-
var
|
|
1032
|
-
|
|
1033
|
-
X(
|
|
1031
|
+
var c = this, a = new d(function(m, v) {
|
|
1032
|
+
c.ready().then(function() {
|
|
1033
|
+
X(c._dbInfo, M, function(o, C) {
|
|
1034
1034
|
if (o)
|
|
1035
1035
|
return v(o);
|
|
1036
1036
|
try {
|
|
1037
|
-
var R = C.objectStore(
|
|
1037
|
+
var R = C.objectStore(c._dbInfo.storeName), B = R.openKeyCursor(), F = [];
|
|
1038
1038
|
B.onsuccess = function() {
|
|
1039
1039
|
var k = B.result;
|
|
1040
1040
|
if (!k) {
|
|
@@ -1053,8 +1053,8 @@ var at = { exports: {} };
|
|
|
1053
1053
|
});
|
|
1054
1054
|
return h(a, n), a;
|
|
1055
1055
|
}
|
|
1056
|
-
function ar(n,
|
|
1057
|
-
|
|
1056
|
+
function ar(n, c) {
|
|
1057
|
+
c = y.apply(this, arguments);
|
|
1058
1058
|
var a = this.config();
|
|
1059
1059
|
n = typeof n != "function" && n || {}, n.name || (n.name = n.name || a.name, n.storeName = n.storeName || a.storeName);
|
|
1060
1060
|
var m = this, v;
|
|
@@ -1134,7 +1134,7 @@ var at = { exports: {} };
|
|
|
1134
1134
|
});
|
|
1135
1135
|
});
|
|
1136
1136
|
}
|
|
1137
|
-
return h(v,
|
|
1137
|
+
return h(v, c), v;
|
|
1138
1138
|
}
|
|
1139
1139
|
var lr = {
|
|
1140
1140
|
_driver: "asyncStorage",
|
|
@@ -1155,46 +1155,46 @@ var at = { exports: {} };
|
|
|
1155
1155
|
}
|
|
1156
1156
|
var be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ir = "~~local_forage_type~", Ze = /^~~local_forage_type~([^~]+)~/, Fe = "__lfsc__:", Ne = Fe.length, We = "arbf", Ie = "blob", Je = "si08", je = "ui08", qe = "uic8", Ve = "si16", U = "si32", j = "ur16", H = "ui32", O = "fl32", oe = "fl64", ve = Ne + We.length, De = Object.prototype.toString;
|
|
1157
1157
|
function Se(n) {
|
|
1158
|
-
var
|
|
1159
|
-
n[n.length - 1] === "=" && (
|
|
1160
|
-
var F = new ArrayBuffer(
|
|
1158
|
+
var c = n.length * 0.75, a = n.length, m, v = 0, o, C, R, B;
|
|
1159
|
+
n[n.length - 1] === "=" && (c--, n[n.length - 2] === "=" && c--);
|
|
1160
|
+
var F = new ArrayBuffer(c), k = new Uint8Array(F);
|
|
1161
1161
|
for (m = 0; m < a; m += 4)
|
|
1162
1162
|
o = be.indexOf(n[m]), C = be.indexOf(n[m + 1]), R = be.indexOf(n[m + 2]), B = be.indexOf(n[m + 3]), k[v++] = o << 2 | C >> 4, k[v++] = (C & 15) << 4 | R >> 2, k[v++] = (R & 3) << 6 | B & 63;
|
|
1163
1163
|
return F;
|
|
1164
1164
|
}
|
|
1165
1165
|
function se(n) {
|
|
1166
|
-
var
|
|
1167
|
-
for (m = 0; m <
|
|
1168
|
-
a += be[
|
|
1169
|
-
return
|
|
1166
|
+
var c = new Uint8Array(n), a = "", m;
|
|
1167
|
+
for (m = 0; m < c.length; m += 3)
|
|
1168
|
+
a += be[c[m] >> 2], a += be[(c[m] & 3) << 4 | c[m + 1] >> 4], a += be[(c[m + 1] & 15) << 2 | c[m + 2] >> 6], a += be[c[m + 2] & 63];
|
|
1169
|
+
return c.length % 3 === 2 ? a = a.substring(0, a.length - 1) + "=" : c.length % 3 === 1 && (a = a.substring(0, a.length - 2) + "=="), a;
|
|
1170
1170
|
}
|
|
1171
|
-
function Me(n,
|
|
1171
|
+
function Me(n, c) {
|
|
1172
1172
|
var a = "";
|
|
1173
1173
|
if (n && (a = De.call(n)), n && (a === "[object ArrayBuffer]" || n.buffer && De.call(n.buffer) === "[object ArrayBuffer]")) {
|
|
1174
1174
|
var m, v = Fe;
|
|
1175
|
-
n instanceof ArrayBuffer ? (m = n, v += We) : (m = n.buffer, a === "[object Int8Array]" ? v += Je : a === "[object Uint8Array]" ? v += je : a === "[object Uint8ClampedArray]" ? v += qe : a === "[object Int16Array]" ? v += Ve : a === "[object Uint16Array]" ? v += j : a === "[object Int32Array]" ? v += U : a === "[object Uint32Array]" ? v += H : a === "[object Float32Array]" ? v += O : a === "[object Float64Array]" ? v += oe :
|
|
1175
|
+
n instanceof ArrayBuffer ? (m = n, v += We) : (m = n.buffer, a === "[object Int8Array]" ? v += Je : a === "[object Uint8Array]" ? v += je : a === "[object Uint8ClampedArray]" ? v += qe : a === "[object Int16Array]" ? v += Ve : a === "[object Uint16Array]" ? v += j : a === "[object Int32Array]" ? v += U : a === "[object Uint32Array]" ? v += H : a === "[object Float32Array]" ? v += O : a === "[object Float64Array]" ? v += oe : c(new Error("Failed to get type for BinaryArray"))), c(v + se(m));
|
|
1176
1176
|
} else if (a === "[object Blob]") {
|
|
1177
1177
|
var o = new FileReader();
|
|
1178
1178
|
o.onload = function() {
|
|
1179
1179
|
var C = ir + n.type + "~" + se(this.result);
|
|
1180
|
-
|
|
1180
|
+
c(Fe + Ie + C);
|
|
1181
1181
|
}, o.readAsArrayBuffer(n);
|
|
1182
1182
|
} else
|
|
1183
1183
|
try {
|
|
1184
|
-
|
|
1184
|
+
c(JSON.stringify(n));
|
|
1185
1185
|
} catch (C) {
|
|
1186
|
-
console.error("Couldn't convert value into a JSON string: ", n),
|
|
1186
|
+
console.error("Couldn't convert value into a JSON string: ", n), c(null, C);
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
1189
|
function ft(n) {
|
|
1190
1190
|
if (n.substring(0, Ne) !== Fe)
|
|
1191
1191
|
return JSON.parse(n);
|
|
1192
|
-
var
|
|
1193
|
-
if (a === Ie && Ze.test(
|
|
1194
|
-
var v =
|
|
1195
|
-
m = v[1],
|
|
1192
|
+
var c = n.substring(ve), a = n.substring(Ne, ve), m;
|
|
1193
|
+
if (a === Ie && Ze.test(c)) {
|
|
1194
|
+
var v = c.match(Ze);
|
|
1195
|
+
m = v[1], c = c.substring(v[0].length);
|
|
1196
1196
|
}
|
|
1197
|
-
var o = Se(
|
|
1197
|
+
var o = Se(c);
|
|
1198
1198
|
switch (a) {
|
|
1199
1199
|
case We:
|
|
1200
1200
|
return o;
|
|
@@ -1228,11 +1228,11 @@ var at = { exports: {} };
|
|
|
1228
1228
|
stringToBuffer: Se,
|
|
1229
1229
|
bufferToString: se
|
|
1230
1230
|
};
|
|
1231
|
-
function Ur(n,
|
|
1232
|
-
n.executeSql("CREATE TABLE IF NOT EXISTS " +
|
|
1231
|
+
function Ur(n, c, a, m) {
|
|
1232
|
+
n.executeSql("CREATE TABLE IF NOT EXISTS " + c.storeName + " (id INTEGER PRIMARY KEY, key unique, value)", [], a, m);
|
|
1233
1233
|
}
|
|
1234
1234
|
function st(n) {
|
|
1235
|
-
var
|
|
1235
|
+
var c = this, a = {
|
|
1236
1236
|
db: null
|
|
1237
1237
|
};
|
|
1238
1238
|
if (n)
|
|
@@ -1246,7 +1246,7 @@ var at = { exports: {} };
|
|
|
1246
1246
|
}
|
|
1247
1247
|
a.db.transaction(function(R) {
|
|
1248
1248
|
Ur(R, a, function() {
|
|
1249
|
-
|
|
1249
|
+
c._dbInfo = a, o();
|
|
1250
1250
|
}, function(B, F) {
|
|
1251
1251
|
C(F);
|
|
1252
1252
|
});
|
|
@@ -1254,16 +1254,16 @@ var at = { exports: {} };
|
|
|
1254
1254
|
});
|
|
1255
1255
|
return a.serializer = cr, v;
|
|
1256
1256
|
}
|
|
1257
|
-
function xe(n,
|
|
1257
|
+
function xe(n, c, a, m, v, o) {
|
|
1258
1258
|
n.executeSql(a, m, v, function(C, R) {
|
|
1259
|
-
R.code === R.SYNTAX_ERR ? C.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [
|
|
1260
|
-
F.rows.length ? o(B, R) : Ur(B,
|
|
1259
|
+
R.code === R.SYNTAX_ERR ? C.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [c.storeName], function(B, F) {
|
|
1260
|
+
F.rows.length ? o(B, R) : Ur(B, c, function() {
|
|
1261
1261
|
B.executeSql(a, m, v, o);
|
|
1262
1262
|
}, o);
|
|
1263
1263
|
}, o) : o(C, R);
|
|
1264
1264
|
}, o);
|
|
1265
1265
|
}
|
|
1266
|
-
function ot(n,
|
|
1266
|
+
function ot(n, c) {
|
|
1267
1267
|
var a = this;
|
|
1268
1268
|
n = r(n);
|
|
1269
1269
|
var m = new d(function(v, o) {
|
|
@@ -1279,9 +1279,9 @@ var at = { exports: {} };
|
|
|
1279
1279
|
});
|
|
1280
1280
|
}).catch(o);
|
|
1281
1281
|
});
|
|
1282
|
-
return h(m,
|
|
1282
|
+
return h(m, c), m;
|
|
1283
1283
|
}
|
|
1284
|
-
function dt(n,
|
|
1284
|
+
function dt(n, c) {
|
|
1285
1285
|
var a = this, m = new d(function(v, o) {
|
|
1286
1286
|
a.ready().then(function() {
|
|
1287
1287
|
var C = a._dbInfo;
|
|
@@ -1301,16 +1301,16 @@ var at = { exports: {} };
|
|
|
1301
1301
|
});
|
|
1302
1302
|
}).catch(o);
|
|
1303
1303
|
});
|
|
1304
|
-
return h(m,
|
|
1304
|
+
return h(m, c), m;
|
|
1305
1305
|
}
|
|
1306
|
-
function Br(n,
|
|
1306
|
+
function Br(n, c, a, m) {
|
|
1307
1307
|
var v = this;
|
|
1308
1308
|
n = r(n);
|
|
1309
1309
|
var o = new d(function(C, R) {
|
|
1310
1310
|
v.ready().then(function() {
|
|
1311
|
-
|
|
1312
|
-
var B =
|
|
1313
|
-
F.serializer.serialize(
|
|
1311
|
+
c === void 0 && (c = null);
|
|
1312
|
+
var B = c, F = v._dbInfo;
|
|
1313
|
+
F.serializer.serialize(c, function(k, q) {
|
|
1314
1314
|
q ? R(q) : F.db.transaction(function(Z) {
|
|
1315
1315
|
xe(Z, F, "INSERT OR REPLACE INTO " + F.storeName + " (key, value) VALUES (?, ?)", [n, k], function() {
|
|
1316
1316
|
C(B);
|
|
@@ -1331,10 +1331,10 @@ var at = { exports: {} };
|
|
|
1331
1331
|
});
|
|
1332
1332
|
return h(o, a), o;
|
|
1333
1333
|
}
|
|
1334
|
-
function ht(n,
|
|
1335
|
-
return Br.apply(this, [n,
|
|
1334
|
+
function ht(n, c, a) {
|
|
1335
|
+
return Br.apply(this, [n, c, a, 1]);
|
|
1336
1336
|
}
|
|
1337
|
-
function mt(n,
|
|
1337
|
+
function mt(n, c) {
|
|
1338
1338
|
var a = this;
|
|
1339
1339
|
n = r(n);
|
|
1340
1340
|
var m = new d(function(v, o) {
|
|
@@ -1349,12 +1349,12 @@ var at = { exports: {} };
|
|
|
1349
1349
|
});
|
|
1350
1350
|
}).catch(o);
|
|
1351
1351
|
});
|
|
1352
|
-
return h(m,
|
|
1352
|
+
return h(m, c), m;
|
|
1353
1353
|
}
|
|
1354
1354
|
function vt(n) {
|
|
1355
|
-
var
|
|
1356
|
-
|
|
1357
|
-
var o =
|
|
1355
|
+
var c = this, a = new d(function(m, v) {
|
|
1356
|
+
c.ready().then(function() {
|
|
1357
|
+
var o = c._dbInfo;
|
|
1358
1358
|
o.db.transaction(function(C) {
|
|
1359
1359
|
xe(C, o, "DELETE FROM " + o.storeName, [], function() {
|
|
1360
1360
|
m();
|
|
@@ -1367,9 +1367,9 @@ var at = { exports: {} };
|
|
|
1367
1367
|
return h(a, n), a;
|
|
1368
1368
|
}
|
|
1369
1369
|
function gt(n) {
|
|
1370
|
-
var
|
|
1371
|
-
|
|
1372
|
-
var o =
|
|
1370
|
+
var c = this, a = new d(function(m, v) {
|
|
1371
|
+
c.ready().then(function() {
|
|
1372
|
+
var o = c._dbInfo;
|
|
1373
1373
|
o.db.transaction(function(C) {
|
|
1374
1374
|
xe(C, o, "SELECT COUNT(key) as c FROM " + o.storeName, [], function(R, B) {
|
|
1375
1375
|
var F = B.rows.item(0).c;
|
|
@@ -1382,7 +1382,7 @@ var at = { exports: {} };
|
|
|
1382
1382
|
});
|
|
1383
1383
|
return h(a, n), a;
|
|
1384
1384
|
}
|
|
1385
|
-
function yt(n,
|
|
1385
|
+
function yt(n, c) {
|
|
1386
1386
|
var a = this, m = new d(function(v, o) {
|
|
1387
1387
|
a.ready().then(function() {
|
|
1388
1388
|
var C = a._dbInfo;
|
|
@@ -1396,12 +1396,12 @@ var at = { exports: {} };
|
|
|
1396
1396
|
});
|
|
1397
1397
|
}).catch(o);
|
|
1398
1398
|
});
|
|
1399
|
-
return h(m,
|
|
1399
|
+
return h(m, c), m;
|
|
1400
1400
|
}
|
|
1401
1401
|
function wt(n) {
|
|
1402
|
-
var
|
|
1403
|
-
|
|
1404
|
-
var o =
|
|
1402
|
+
var c = this, a = new d(function(m, v) {
|
|
1403
|
+
c.ready().then(function() {
|
|
1404
|
+
var o = c._dbInfo;
|
|
1405
1405
|
o.db.transaction(function(C) {
|
|
1406
1406
|
xe(C, o, "SELECT key FROM " + o.storeName, [], function(R, B) {
|
|
1407
1407
|
for (var F = [], k = 0; k < B.rows.length; k++)
|
|
@@ -1416,12 +1416,12 @@ var at = { exports: {} };
|
|
|
1416
1416
|
return h(a, n), a;
|
|
1417
1417
|
}
|
|
1418
1418
|
function bt(n) {
|
|
1419
|
-
return new d(function(
|
|
1419
|
+
return new d(function(c, a) {
|
|
1420
1420
|
n.transaction(function(m) {
|
|
1421
1421
|
m.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'", [], function(v, o) {
|
|
1422
1422
|
for (var C = [], R = 0; R < o.rows.length; R++)
|
|
1423
1423
|
C.push(o.rows.item(R).name);
|
|
1424
|
-
|
|
1424
|
+
c({
|
|
1425
1425
|
db: n,
|
|
1426
1426
|
storeNames: C
|
|
1427
1427
|
});
|
|
@@ -1433,8 +1433,8 @@ var at = { exports: {} };
|
|
|
1433
1433
|
});
|
|
1434
1434
|
});
|
|
1435
1435
|
}
|
|
1436
|
-
function St(n,
|
|
1437
|
-
|
|
1436
|
+
function St(n, c) {
|
|
1437
|
+
c = y.apply(this, arguments);
|
|
1438
1438
|
var a = this.config();
|
|
1439
1439
|
n = typeof n != "function" && n || {}, n.name || (n.name = n.name || a.name, n.storeName = n.storeName || a.storeName);
|
|
1440
1440
|
var m = this, v;
|
|
@@ -1467,7 +1467,7 @@ var at = { exports: {} };
|
|
|
1467
1467
|
R(B);
|
|
1468
1468
|
});
|
|
1469
1469
|
});
|
|
1470
|
-
}) : v = d.reject("Invalid arguments"), h(v,
|
|
1470
|
+
}) : v = d.reject("Invalid arguments"), h(v, c), v;
|
|
1471
1471
|
}
|
|
1472
1472
|
var At = {
|
|
1473
1473
|
_driver: "webSQLStorage",
|
|
@@ -1491,9 +1491,9 @@ var at = { exports: {} };
|
|
|
1491
1491
|
return !1;
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
1494
|
-
function $r(n,
|
|
1494
|
+
function $r(n, c) {
|
|
1495
1495
|
var a = n.name + "/";
|
|
1496
|
-
return n.storeName !==
|
|
1496
|
+
return n.storeName !== c.storeName && (a += n.storeName + "/"), a;
|
|
1497
1497
|
}
|
|
1498
1498
|
function It() {
|
|
1499
1499
|
var n = "_localforage_support_test";
|
|
@@ -1507,31 +1507,31 @@ var at = { exports: {} };
|
|
|
1507
1507
|
return !It() || localStorage.length > 0;
|
|
1508
1508
|
}
|
|
1509
1509
|
function xt(n) {
|
|
1510
|
-
var
|
|
1510
|
+
var c = this, a = {};
|
|
1511
1511
|
if (n)
|
|
1512
1512
|
for (var m in n)
|
|
1513
1513
|
a[m] = n[m];
|
|
1514
|
-
return a.keyPrefix = $r(n,
|
|
1514
|
+
return a.keyPrefix = $r(n, c._defaultConfig), Dt() ? (c._dbInfo = a, a.serializer = cr, d.resolve()) : d.reject();
|
|
1515
1515
|
}
|
|
1516
1516
|
function _t(n) {
|
|
1517
|
-
var
|
|
1518
|
-
for (var m =
|
|
1517
|
+
var c = this, a = c.ready().then(function() {
|
|
1518
|
+
for (var m = c._dbInfo.keyPrefix, v = localStorage.length - 1; v >= 0; v--) {
|
|
1519
1519
|
var o = localStorage.key(v);
|
|
1520
1520
|
o.indexOf(m) === 0 && localStorage.removeItem(o);
|
|
1521
1521
|
}
|
|
1522
1522
|
});
|
|
1523
1523
|
return h(a, n), a;
|
|
1524
1524
|
}
|
|
1525
|
-
function Tt(n,
|
|
1525
|
+
function Tt(n, c) {
|
|
1526
1526
|
var a = this;
|
|
1527
1527
|
n = r(n);
|
|
1528
1528
|
var m = a.ready().then(function() {
|
|
1529
1529
|
var v = a._dbInfo, o = localStorage.getItem(v.keyPrefix + n);
|
|
1530
1530
|
return o && (o = v.serializer.deserialize(o)), o;
|
|
1531
1531
|
});
|
|
1532
|
-
return h(m,
|
|
1532
|
+
return h(m, c), m;
|
|
1533
1533
|
}
|
|
1534
|
-
function Ct(n,
|
|
1534
|
+
function Ct(n, c) {
|
|
1535
1535
|
var a = this, m = a.ready().then(function() {
|
|
1536
1536
|
for (var v = a._dbInfo, o = v.keyPrefix, C = o.length, R = localStorage.length, B = 1, F = 0; F < R; F++) {
|
|
1537
1537
|
var k = localStorage.key(F);
|
|
@@ -1542,9 +1542,9 @@ var at = { exports: {} };
|
|
|
1542
1542
|
}
|
|
1543
1543
|
}
|
|
1544
1544
|
});
|
|
1545
|
-
return h(m,
|
|
1545
|
+
return h(m, c), m;
|
|
1546
1546
|
}
|
|
1547
|
-
function Pt(n,
|
|
1547
|
+
function Pt(n, c) {
|
|
1548
1548
|
var a = this, m = a.ready().then(function() {
|
|
1549
1549
|
var v = a._dbInfo, o;
|
|
1550
1550
|
try {
|
|
@@ -1554,11 +1554,11 @@ var at = { exports: {} };
|
|
|
1554
1554
|
}
|
|
1555
1555
|
return o && (o = o.substring(v.keyPrefix.length)), o;
|
|
1556
1556
|
});
|
|
1557
|
-
return h(m,
|
|
1557
|
+
return h(m, c), m;
|
|
1558
1558
|
}
|
|
1559
1559
|
function Nt(n) {
|
|
1560
|
-
var
|
|
1561
|
-
for (var m =
|
|
1560
|
+
var c = this, a = c.ready().then(function() {
|
|
1561
|
+
for (var m = c._dbInfo, v = localStorage.length, o = [], C = 0; C < v; C++) {
|
|
1562
1562
|
var R = localStorage.key(C);
|
|
1563
1563
|
R.indexOf(m.keyPrefix) === 0 && o.push(R.substring(m.keyPrefix.length));
|
|
1564
1564
|
}
|
|
@@ -1567,29 +1567,29 @@ var at = { exports: {} };
|
|
|
1567
1567
|
return h(a, n), a;
|
|
1568
1568
|
}
|
|
1569
1569
|
function Mt(n) {
|
|
1570
|
-
var
|
|
1570
|
+
var c = this, a = c.keys().then(function(m) {
|
|
1571
1571
|
return m.length;
|
|
1572
1572
|
});
|
|
1573
1573
|
return h(a, n), a;
|
|
1574
1574
|
}
|
|
1575
|
-
function Lt(n,
|
|
1575
|
+
function Lt(n, c) {
|
|
1576
1576
|
var a = this;
|
|
1577
1577
|
n = r(n);
|
|
1578
1578
|
var m = a.ready().then(function() {
|
|
1579
1579
|
var v = a._dbInfo;
|
|
1580
1580
|
localStorage.removeItem(v.keyPrefix + n);
|
|
1581
1581
|
});
|
|
1582
|
-
return h(m,
|
|
1582
|
+
return h(m, c), m;
|
|
1583
1583
|
}
|
|
1584
|
-
function Rt(n,
|
|
1584
|
+
function Rt(n, c, a) {
|
|
1585
1585
|
var m = this;
|
|
1586
1586
|
n = r(n);
|
|
1587
1587
|
var v = m.ready().then(function() {
|
|
1588
|
-
|
|
1589
|
-
var o =
|
|
1588
|
+
c === void 0 && (c = null);
|
|
1589
|
+
var o = c;
|
|
1590
1590
|
return new d(function(C, R) {
|
|
1591
1591
|
var B = m._dbInfo;
|
|
1592
|
-
B.serializer.serialize(
|
|
1592
|
+
B.serializer.serialize(c, function(F, k) {
|
|
1593
1593
|
if (k)
|
|
1594
1594
|
R(k);
|
|
1595
1595
|
else
|
|
@@ -1603,8 +1603,8 @@ var at = { exports: {} };
|
|
|
1603
1603
|
});
|
|
1604
1604
|
return h(v, a), v;
|
|
1605
1605
|
}
|
|
1606
|
-
function Ut(n,
|
|
1607
|
-
if (
|
|
1606
|
+
function Ut(n, c) {
|
|
1607
|
+
if (c = y.apply(this, arguments), n = typeof n != "function" && n || {}, !n.name) {
|
|
1608
1608
|
var a = this.config();
|
|
1609
1609
|
n.name = n.name || a.name, n.storeName = n.storeName || a.storeName;
|
|
1610
1610
|
}
|
|
@@ -1616,7 +1616,7 @@ var at = { exports: {} };
|
|
|
1616
1616
|
var R = localStorage.key(C);
|
|
1617
1617
|
R.indexOf(o) === 0 && localStorage.removeItem(R);
|
|
1618
1618
|
}
|
|
1619
|
-
}) : v = d.reject("Invalid arguments"), h(v,
|
|
1619
|
+
}) : v = d.reject("Invalid arguments"), h(v, c), v;
|
|
1620
1620
|
}
|
|
1621
1621
|
var Bt = {
|
|
1622
1622
|
_driver: "localStorageWrapper",
|
|
@@ -1631,11 +1631,11 @@ var at = { exports: {} };
|
|
|
1631
1631
|
key: Pt,
|
|
1632
1632
|
keys: Nt,
|
|
1633
1633
|
dropInstance: Ut
|
|
1634
|
-
}, $t = function(
|
|
1635
|
-
return
|
|
1636
|
-
}, Ft = function(
|
|
1637
|
-
for (var m =
|
|
1638
|
-
if ($t(
|
|
1634
|
+
}, $t = function(c, a) {
|
|
1635
|
+
return c === a || typeof c == "number" && typeof a == "number" && isNaN(c) && isNaN(a);
|
|
1636
|
+
}, Ft = function(c, a) {
|
|
1637
|
+
for (var m = c.length, v = 0; v < m; ) {
|
|
1638
|
+
if ($t(c[v], a))
|
|
1639
1639
|
return !0;
|
|
1640
1640
|
v++;
|
|
1641
1641
|
}
|
|
@@ -1656,32 +1656,32 @@ var at = { exports: {} };
|
|
|
1656
1656
|
storeName: "keyvaluepairs",
|
|
1657
1657
|
version: 1
|
|
1658
1658
|
};
|
|
1659
|
-
function Wt(n,
|
|
1660
|
-
n[
|
|
1659
|
+
function Wt(n, c) {
|
|
1660
|
+
n[c] = function() {
|
|
1661
1661
|
var a = arguments;
|
|
1662
1662
|
return n.ready().then(function() {
|
|
1663
|
-
return n[
|
|
1663
|
+
return n[c].apply(n, a);
|
|
1664
1664
|
});
|
|
1665
1665
|
};
|
|
1666
1666
|
}
|
|
1667
1667
|
function sr() {
|
|
1668
1668
|
for (var n = 1; n < arguments.length; n++) {
|
|
1669
|
-
var
|
|
1670
|
-
if (
|
|
1671
|
-
for (var a in
|
|
1672
|
-
|
|
1669
|
+
var c = arguments[n];
|
|
1670
|
+
if (c)
|
|
1671
|
+
for (var a in c)
|
|
1672
|
+
c.hasOwnProperty(a) && (Fr(c[a]) ? arguments[0][a] = c[a].slice() : arguments[0][a] = c[a]);
|
|
1673
1673
|
}
|
|
1674
1674
|
return arguments[0];
|
|
1675
1675
|
}
|
|
1676
1676
|
var qt = function() {
|
|
1677
|
-
function n(
|
|
1677
|
+
function n(c) {
|
|
1678
1678
|
x(this, n);
|
|
1679
1679
|
for (var a in ke)
|
|
1680
1680
|
if (ke.hasOwnProperty(a)) {
|
|
1681
1681
|
var m = ke[a], v = m._driver;
|
|
1682
1682
|
this[a] = v, He[v] || this.defineDriver(m);
|
|
1683
1683
|
}
|
|
1684
|
-
this._defaultConfig = sr({}, Gt), this._config = sr({}, this._defaultConfig,
|
|
1684
|
+
this._defaultConfig = sr({}, Gt), this._config = sr({}, this._defaultConfig, c), this._driverSet = null, this._initDriver = null, this._ready = !1, this._dbInfo = null, this._wrapLibraryMethodsWithReady(), this.setDriver(this._config.driver).catch(function() {
|
|
1685
1685
|
});
|
|
1686
1686
|
}
|
|
1687
1687
|
return n.prototype.config = function(a) {
|
|
@@ -1904,10 +1904,10 @@ function En(e) {
|
|
|
1904
1904
|
var u;
|
|
1905
1905
|
const t = de.utc().toSeconds() / 86400, l = z({}), S = z({}), s = e.storageMode == "local-cache", g = e.buildUrl ?? ((u = e.api) == null ? void 0 : u.buildUrl) ?? An;
|
|
1906
1906
|
function x(r) {
|
|
1907
|
-
var
|
|
1907
|
+
var i, E;
|
|
1908
1908
|
let y = "";
|
|
1909
1909
|
const I = r.params ?? {};
|
|
1910
|
-
return I != null && (y = Object.entries(I).sort(Ue.firstBy((w) => w[0])).map((w) => `${w[0]}=${JSON.stringify(w[1])}`).join("&")), `${e.storeName ?? "base"}_${((
|
|
1910
|
+
return I != null && (y = Object.entries(I).sort(Ue.firstBy((w) => w[0])).map((w) => `${w[0]}=${JSON.stringify(w[1])}`).join("&")), `${e.storeName ?? "base"}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}_${r.id ?? ((E = r.data) == null ? void 0 : E.id) ?? "no-item-id"}_${y ?? "no-params"}`;
|
|
1911
1911
|
}
|
|
1912
1912
|
async function P(r) {
|
|
1913
1913
|
r.additionalUrl ?? (r.additionalUrl = "/getAll"), g(r);
|
|
@@ -1915,15 +1915,15 @@ function En(e) {
|
|
|
1915
1915
|
if (!I && l.value[y] !== void 0)
|
|
1916
1916
|
return l.value[y];
|
|
1917
1917
|
if (!I && s == !0) {
|
|
1918
|
-
const
|
|
1919
|
-
if (
|
|
1920
|
-
return l.value[y] =
|
|
1918
|
+
const i = await me().getItem(y);
|
|
1919
|
+
if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
|
|
1920
|
+
return l.value[y] = i, i;
|
|
1921
1921
|
}
|
|
1922
1922
|
if (e.api == null)
|
|
1923
1923
|
return l.value[y];
|
|
1924
1924
|
try {
|
|
1925
|
-
let
|
|
1926
|
-
|
|
1925
|
+
let i = S.value[y];
|
|
1926
|
+
i == null && (i = new Promise(async (w, M) => {
|
|
1927
1927
|
var b;
|
|
1928
1928
|
try {
|
|
1929
1929
|
const _ = await ((b = e.api) == null ? void 0 : b.getAll(r)), D = {
|
|
@@ -1938,15 +1938,15 @@ function En(e) {
|
|
|
1938
1938
|
} finally {
|
|
1939
1939
|
delete S.value[y];
|
|
1940
1940
|
}
|
|
1941
|
-
}), S.value[y] =
|
|
1942
|
-
const E = await
|
|
1941
|
+
}), S.value[y] = i);
|
|
1942
|
+
const E = await i;
|
|
1943
1943
|
return l.value[y] = E, {
|
|
1944
1944
|
data: E == null ? void 0 : E.data,
|
|
1945
1945
|
filters: E == null ? void 0 : E.filters,
|
|
1946
1946
|
count: E == null ? void 0 : E.count
|
|
1947
1947
|
};
|
|
1948
|
-
} catch (
|
|
1949
|
-
throw
|
|
1948
|
+
} catch (i) {
|
|
1949
|
+
throw i;
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
1952
1952
|
async function T(r) {
|
|
@@ -1955,15 +1955,15 @@ function En(e) {
|
|
|
1955
1955
|
if (!I && l.value[y] !== void 0)
|
|
1956
1956
|
return l.value[y];
|
|
1957
1957
|
if (!I && s == !0) {
|
|
1958
|
-
const
|
|
1959
|
-
if (
|
|
1960
|
-
return l.value[y] =
|
|
1958
|
+
const i = await me().getItem(y);
|
|
1959
|
+
if (i != null && (e.api == null || parseFloat(i.meta.storedOn) > t - 7))
|
|
1960
|
+
return l.value[y] = i, { data: i.data };
|
|
1961
1961
|
}
|
|
1962
1962
|
if (e.api == null)
|
|
1963
1963
|
return l.value[y];
|
|
1964
1964
|
try {
|
|
1965
|
-
let
|
|
1966
|
-
|
|
1965
|
+
let i = S.value[y];
|
|
1966
|
+
i == null && (i = new Promise(async (w, M) => {
|
|
1967
1967
|
var b;
|
|
1968
1968
|
try {
|
|
1969
1969
|
let _ = await ((b = e.api) == null ? void 0 : b.get(r));
|
|
@@ -1977,15 +1977,15 @@ function En(e) {
|
|
|
1977
1977
|
} finally {
|
|
1978
1978
|
delete S.value[y];
|
|
1979
1979
|
}
|
|
1980
|
-
}), S.value[y] =
|
|
1981
|
-
const E = await
|
|
1980
|
+
}), S.value[y] = i);
|
|
1981
|
+
const E = await i;
|
|
1982
1982
|
return l.value[y] = E, { data: E.data };
|
|
1983
|
-
} catch (
|
|
1984
|
-
throw
|
|
1983
|
+
} catch (i) {
|
|
1984
|
+
throw i;
|
|
1985
1985
|
}
|
|
1986
1986
|
}
|
|
1987
1987
|
async function N(r) {
|
|
1988
|
-
var
|
|
1988
|
+
var i;
|
|
1989
1989
|
r.additionalUrl ?? (r.additionalUrl = "/patch"), g(r);
|
|
1990
1990
|
const y = x(r);
|
|
1991
1991
|
let I;
|
|
@@ -2001,7 +2001,7 @@ function En(e) {
|
|
|
2001
2001
|
if (I != null) {
|
|
2002
2002
|
let E = {
|
|
2003
2003
|
meta: { storedOn: t.toString() },
|
|
2004
|
-
data: { ...(
|
|
2004
|
+
data: { ...(i = l.value[y]) == null ? void 0 : i.data, ...I }
|
|
2005
2005
|
};
|
|
2006
2006
|
return l.value[y] = E, s == !0 && await me().setItem(y, E), I.id != null && I.rowVersion != null && Object.entries(l.value).forEach((M) => {
|
|
2007
2007
|
const b = M[1].data;
|
|
@@ -2021,24 +2021,24 @@ function En(e) {
|
|
|
2021
2021
|
let I;
|
|
2022
2022
|
if (e.api != null)
|
|
2023
2023
|
try {
|
|
2024
|
-
let
|
|
2025
|
-
I =
|
|
2026
|
-
} catch (
|
|
2027
|
-
throw
|
|
2024
|
+
let i = await e.api.post(r);
|
|
2025
|
+
I = i == null ? void 0 : i.data;
|
|
2026
|
+
} catch (i) {
|
|
2027
|
+
throw i;
|
|
2028
2028
|
}
|
|
2029
2029
|
else
|
|
2030
2030
|
I = r.data;
|
|
2031
2031
|
if (I != null) {
|
|
2032
|
-
let
|
|
2032
|
+
let i = {
|
|
2033
2033
|
meta: { storedOn: t.toString() },
|
|
2034
2034
|
data: I
|
|
2035
2035
|
};
|
|
2036
|
-
return s == !0 && await me().setItem(y,
|
|
2036
|
+
return s == !0 && await me().setItem(y, i), l.value[y] = i, i.data;
|
|
2037
2037
|
}
|
|
2038
2038
|
return I;
|
|
2039
2039
|
}
|
|
2040
2040
|
async function d(r) {
|
|
2041
|
-
var
|
|
2041
|
+
var i;
|
|
2042
2042
|
r.additionalUrl ?? (r.additionalUrl = "/delete"), g(r);
|
|
2043
2043
|
const y = x(r);
|
|
2044
2044
|
if (e.api != null)
|
|
@@ -2050,7 +2050,7 @@ function En(e) {
|
|
|
2050
2050
|
throw E;
|
|
2051
2051
|
}
|
|
2052
2052
|
delete l.value[y];
|
|
2053
|
-
const I = ((
|
|
2053
|
+
const I = ((i = r.data) == null ? void 0 : i.id) ?? r.id;
|
|
2054
2054
|
I != null && Object.entries(l.value).forEach((w) => {
|
|
2055
2055
|
const M = w[1].data;
|
|
2056
2056
|
if (M != null)
|
|
@@ -2086,8 +2086,8 @@ function Vr(e) {
|
|
|
2086
2086
|
return et(e.storeName, () => {
|
|
2087
2087
|
const t = z(), l = z(0), S = de.utc().toSeconds() / 3600, s = z(), g = z(), x = z({}), P = e.storageMode == "local-cache";
|
|
2088
2088
|
function T() {
|
|
2089
|
-
var
|
|
2090
|
-
return `${e.storeName}_${((
|
|
2089
|
+
var i;
|
|
2090
|
+
return `${e.storeName}_${((i = e.auth) == null ? void 0 : i.credentials.value.userID) ?? "no-user-id"}`;
|
|
2091
2091
|
}
|
|
2092
2092
|
async function N() {
|
|
2093
2093
|
P == !0 && await me().setItem(T(), {
|
|
@@ -2097,14 +2097,14 @@ function Vr(e) {
|
|
|
2097
2097
|
filters: []
|
|
2098
2098
|
});
|
|
2099
2099
|
}
|
|
2100
|
-
function $(
|
|
2100
|
+
function $(i) {
|
|
2101
2101
|
const E = T();
|
|
2102
2102
|
return x.value[E] || (x.value[E] = new Promise(async (w, M) => {
|
|
2103
2103
|
var b, _;
|
|
2104
2104
|
try {
|
|
2105
2105
|
let D = await ((_ = e.api) == null ? void 0 : _.getAll({
|
|
2106
2106
|
additionalUrl: "/getAll",
|
|
2107
|
-
nav:
|
|
2107
|
+
nav: i.nav,
|
|
2108
2108
|
params: {
|
|
2109
2109
|
lastUpdate: ((b = g.value) == null ? void 0 : b.lastUpdate) ?? un()
|
|
2110
2110
|
}
|
|
@@ -2124,9 +2124,9 @@ function Vr(e) {
|
|
|
2124
2124
|
}
|
|
2125
2125
|
})), x.value[E];
|
|
2126
2126
|
}
|
|
2127
|
-
async function d(
|
|
2127
|
+
async function d(i) {
|
|
2128
2128
|
var M, b, _;
|
|
2129
|
-
const E = T(), w =
|
|
2129
|
+
const E = T(), w = i.refresh;
|
|
2130
2130
|
if (!w && t.value != null)
|
|
2131
2131
|
return {
|
|
2132
2132
|
count: (M = t.value) == null ? void 0 : M.length,
|
|
@@ -2150,18 +2150,18 @@ function Vr(e) {
|
|
|
2150
2150
|
};
|
|
2151
2151
|
t.value ?? (t.value = []);
|
|
2152
2152
|
try {
|
|
2153
|
-
return await $(
|
|
2153
|
+
return await $(i);
|
|
2154
2154
|
} catch (D) {
|
|
2155
2155
|
let L = D;
|
|
2156
2156
|
throw new Error(L.message ?? "Problem");
|
|
2157
2157
|
}
|
|
2158
2158
|
}
|
|
2159
|
-
async function h(
|
|
2159
|
+
async function h(i) {
|
|
2160
2160
|
var b, _, D, L;
|
|
2161
|
-
const E = T(), w =
|
|
2161
|
+
const E = T(), w = i.id ?? ((b = i.data) == null ? void 0 : b.id);
|
|
2162
2162
|
if (w == null)
|
|
2163
2163
|
throw new Error("no id provided");
|
|
2164
|
-
let M =
|
|
2164
|
+
let M = i.refresh;
|
|
2165
2165
|
if (!M && t.value != null) {
|
|
2166
2166
|
const f = t.value.find((A) => A.id == w);
|
|
2167
2167
|
if (f != null)
|
|
@@ -2171,92 +2171,92 @@ function Vr(e) {
|
|
|
2171
2171
|
const f = await me().getItem(E);
|
|
2172
2172
|
if (f != null && parseFloat(f.meta.storedOn) > S - 12) {
|
|
2173
2173
|
t.value = f.data, l.value = f.data.length, s.value = f.filters ?? [], g.value = f.meta;
|
|
2174
|
-
let A = (_ = t.value) == null ? void 0 : _.find((J) => J.id ==
|
|
2174
|
+
let A = (_ = t.value) == null ? void 0 : _.find((J) => J.id == i.id);
|
|
2175
2175
|
if (A != null)
|
|
2176
2176
|
return { data: A };
|
|
2177
2177
|
}
|
|
2178
2178
|
}
|
|
2179
2179
|
if (e.api == null)
|
|
2180
2180
|
return {
|
|
2181
|
-
data: (D = t.value) == null ? void 0 : D.find((f) => f.id ==
|
|
2181
|
+
data: (D = t.value) == null ? void 0 : D.find((f) => f.id == i.id)
|
|
2182
2182
|
};
|
|
2183
2183
|
t.value ?? (t.value = []);
|
|
2184
2184
|
try {
|
|
2185
|
-
return await $(
|
|
2185
|
+
return await $(i), { data: (L = t.value) == null ? void 0 : L.find((f) => f.id == i.id) };
|
|
2186
2186
|
} catch (f) {
|
|
2187
2187
|
let A = f;
|
|
2188
2188
|
throw new Error(A.message ?? "Problem");
|
|
2189
2189
|
}
|
|
2190
2190
|
}
|
|
2191
|
-
async function u(
|
|
2191
|
+
async function u(i) {
|
|
2192
2192
|
var w, M, b;
|
|
2193
|
-
|
|
2193
|
+
i.additionalUrl ?? (i.additionalUrl = "/patch");
|
|
2194
2194
|
let E;
|
|
2195
2195
|
if (e.api != null)
|
|
2196
2196
|
try {
|
|
2197
|
-
let _ = await e.api.patch(
|
|
2198
|
-
E = { ...
|
|
2197
|
+
let _ = await e.api.patch(i);
|
|
2198
|
+
E = { ...i.data, ..._ == null ? void 0 : _.data };
|
|
2199
2199
|
} catch (_) {
|
|
2200
2200
|
let D = _;
|
|
2201
2201
|
throw new Error(D.message ?? "Patch Problem");
|
|
2202
2202
|
}
|
|
2203
2203
|
else
|
|
2204
|
-
E =
|
|
2204
|
+
E = i.data;
|
|
2205
2205
|
if (E != null) {
|
|
2206
2206
|
let _ = (w = t.value) == null ? void 0 : w.findIndex((D) => D.id == E.id);
|
|
2207
2207
|
_ != null && _ >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(_, 1, E), await N());
|
|
2208
2208
|
}
|
|
2209
|
-
return (b = t.value) == null ? void 0 : b.find((_) => _.id == (
|
|
2209
|
+
return (b = t.value) == null ? void 0 : b.find((_) => _.id == (i.id ?? i.data.id));
|
|
2210
2210
|
}
|
|
2211
|
-
async function r(
|
|
2211
|
+
async function r(i) {
|
|
2212
2212
|
var w, M;
|
|
2213
|
-
|
|
2213
|
+
i.additionalUrl ?? (i.additionalUrl = "/post");
|
|
2214
2214
|
let E;
|
|
2215
2215
|
if (e.api != null)
|
|
2216
2216
|
try {
|
|
2217
|
-
let b = await e.api.post(
|
|
2217
|
+
let b = await e.api.post(i);
|
|
2218
2218
|
E = b == null ? void 0 : b.data;
|
|
2219
2219
|
} catch (b) {
|
|
2220
2220
|
let _ = b;
|
|
2221
2221
|
throw new Error(_.message ?? "Patch Problem");
|
|
2222
2222
|
}
|
|
2223
2223
|
else
|
|
2224
|
-
E =
|
|
2225
|
-
return E != null && (t.value ?? (t.value = []), (w = t.value) == null || w.unshift(E), l.value += 1, await N()), (M = t.value) == null ? void 0 : M.find((b) => b.id == (
|
|
2224
|
+
E = i.data;
|
|
2225
|
+
return E != null && (t.value ?? (t.value = []), (w = t.value) == null || w.unshift(E), l.value += 1, await N()), (M = t.value) == null ? void 0 : M.find((b) => b.id == (i.id ?? i.data.id));
|
|
2226
2226
|
}
|
|
2227
|
-
async function y(
|
|
2227
|
+
async function y(i) {
|
|
2228
2228
|
var w, M;
|
|
2229
|
-
if (
|
|
2229
|
+
if (i.additionalUrl ?? (i.additionalUrl = "/delete"), e.api != null)
|
|
2230
2230
|
try {
|
|
2231
|
-
let b = await e.api.deleteItem(
|
|
2231
|
+
let b = await e.api.deleteItem(i);
|
|
2232
2232
|
if (b != null)
|
|
2233
2233
|
return b;
|
|
2234
2234
|
} catch (b) {
|
|
2235
2235
|
let _ = b;
|
|
2236
2236
|
throw new Error(_.message ?? "Patch Problem");
|
|
2237
2237
|
}
|
|
2238
|
-
const E =
|
|
2238
|
+
const E = i.id ?? i.data.id;
|
|
2239
2239
|
if (E != null) {
|
|
2240
2240
|
let b = (w = t.value) == null ? void 0 : w.findIndex((_) => _.id == E);
|
|
2241
2241
|
b != null && b >= 0 && (t.value ?? (t.value = []), (M = t.value) == null || M.splice(b, 1), await N());
|
|
2242
2242
|
}
|
|
2243
2243
|
}
|
|
2244
|
-
async function I(
|
|
2244
|
+
async function I(i) {
|
|
2245
2245
|
var E;
|
|
2246
|
-
if (
|
|
2246
|
+
if (i.additionalUrl ?? (i.additionalUrl = `/patch/restore?id=${i.data.id}`), e.api != null)
|
|
2247
2247
|
try {
|
|
2248
|
-
await e.api.patch(
|
|
2248
|
+
await e.api.patch(i);
|
|
2249
2249
|
} catch (w) {
|
|
2250
2250
|
let M = w;
|
|
2251
2251
|
throw new Error(M.message ?? "Patch Problem");
|
|
2252
2252
|
}
|
|
2253
2253
|
try {
|
|
2254
|
-
|
|
2254
|
+
i.additionalUrl = "/getAll", await $(i);
|
|
2255
2255
|
} catch (w) {
|
|
2256
2256
|
let M = w;
|
|
2257
2257
|
throw new Error(M.message ?? "Problem");
|
|
2258
2258
|
}
|
|
2259
|
-
return (E = t.value) == null ? void 0 : E.find((w) => w.id == (
|
|
2259
|
+
return (E = t.value) == null ? void 0 : E.find((w) => w.id == (i.id ?? i.data.id));
|
|
2260
2260
|
}
|
|
2261
2261
|
return {
|
|
2262
2262
|
deleteItem: y,
|
|
@@ -2293,13 +2293,13 @@ function In(e) {
|
|
|
2293
2293
|
}
|
|
2294
2294
|
async function T(u) {
|
|
2295
2295
|
const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
|
|
2296
|
-
let
|
|
2297
|
-
if (
|
|
2298
|
-
return console.log(`DEMO: Get from ${
|
|
2299
|
-
console.log(`Get from ${
|
|
2296
|
+
let i = u.finalUrl, E = u.headers;
|
|
2297
|
+
if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
|
|
2298
|
+
return console.log(`DEMO: Get from ${i}`), s.get(u);
|
|
2299
|
+
console.log(`Get from ${i}`);
|
|
2300
2300
|
let w;
|
|
2301
2301
|
try {
|
|
2302
|
-
if (w = await fetch(
|
|
2302
|
+
if (w = await fetch(i, {
|
|
2303
2303
|
method: "GET",
|
|
2304
2304
|
mode: "cors",
|
|
2305
2305
|
cache: "no-cache",
|
|
@@ -2328,13 +2328,13 @@ function In(e) {
|
|
|
2328
2328
|
}
|
|
2329
2329
|
async function N(u) {
|
|
2330
2330
|
const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
|
|
2331
|
-
let
|
|
2332
|
-
if (
|
|
2333
|
-
return console.log(`DEMO: Get all from ${
|
|
2334
|
-
console.log(`Get all from ${
|
|
2331
|
+
let i = u.finalUrl, E = u.headers;
|
|
2332
|
+
if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
|
|
2333
|
+
return console.log(`DEMO: Get all from ${i}`), s.getAll(u);
|
|
2334
|
+
console.log(`Get all from ${i}`);
|
|
2335
2335
|
let w;
|
|
2336
2336
|
try {
|
|
2337
|
-
if (w = await fetch(
|
|
2337
|
+
if (w = await fetch(i, {
|
|
2338
2338
|
method: "GET",
|
|
2339
2339
|
mode: "cors",
|
|
2340
2340
|
cache: "no-cache",
|
|
@@ -2363,13 +2363,13 @@ function In(e) {
|
|
|
2363
2363
|
}
|
|
2364
2364
|
async function $(u) {
|
|
2365
2365
|
const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
|
|
2366
|
-
let
|
|
2367
|
-
if (
|
|
2368
|
-
return console.log(`DEMO: Post to ${
|
|
2369
|
-
console.log(`Post to ${
|
|
2366
|
+
let i = u.finalUrl, E = u.headers;
|
|
2367
|
+
if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
|
|
2368
|
+
return console.log(`DEMO: Post to ${i}`), s.post(u);
|
|
2369
|
+
console.log(`Post to ${i}`);
|
|
2370
2370
|
let w;
|
|
2371
2371
|
try {
|
|
2372
|
-
if (w = await fetch(
|
|
2372
|
+
if (w = await fetch(i, {
|
|
2373
2373
|
method: "POST",
|
|
2374
2374
|
mode: "cors",
|
|
2375
2375
|
cache: "no-cache",
|
|
@@ -2399,13 +2399,13 @@ function In(e) {
|
|
|
2399
2399
|
}
|
|
2400
2400
|
async function d(u) {
|
|
2401
2401
|
const r = u.throwError ?? (e == null ? void 0 : e.defaultThrowError) ?? !0, y = u.returnJson ?? (e == null ? void 0 : e.defaultReturnJson) ?? !0, I = u.returnText ?? (e == null ? void 0 : e.defaultReturnText) ?? !1;
|
|
2402
|
-
let
|
|
2403
|
-
if (
|
|
2404
|
-
return console.log(`DEMO: Patch to ${
|
|
2405
|
-
console.log(`Patch to ${
|
|
2402
|
+
let i = u.finalUrl, E = u.headers;
|
|
2403
|
+
if (i == null && (i = S(u)), u.overrideHeaders !== !0 && (E = t(u)), s != null && s.isDemoing.value)
|
|
2404
|
+
return console.log(`DEMO: Patch to ${i}`), s.patch(u);
|
|
2405
|
+
console.log(`Patch to ${i}`);
|
|
2406
2406
|
let w;
|
|
2407
2407
|
try {
|
|
2408
|
-
if (w = await fetch(
|
|
2408
|
+
if (w = await fetch(i, {
|
|
2409
2409
|
method: "PATCH",
|
|
2410
2410
|
mode: "cors",
|
|
2411
2411
|
cache: "no-cache",
|
|
@@ -2439,26 +2439,26 @@ function In(e) {
|
|
|
2439
2439
|
if (y == null && (y = S(u)), u.overrideHeaders !== !0 && (I = t(u)), s != null && s.isDemoing.value)
|
|
2440
2440
|
return console.log(`DEMO: Delete ${y}`), s.deleteItem(u);
|
|
2441
2441
|
console.log(`Delete ${y}`);
|
|
2442
|
-
let
|
|
2442
|
+
let i;
|
|
2443
2443
|
try {
|
|
2444
|
-
if (
|
|
2444
|
+
if (i = await fetch(y, {
|
|
2445
2445
|
method: "DELETE",
|
|
2446
2446
|
mode: "cors",
|
|
2447
2447
|
cache: "no-cache",
|
|
2448
2448
|
headers: I,
|
|
2449
2449
|
body: JSON.stringify(u.data)
|
|
2450
|
-
}),
|
|
2450
|
+
}), i.status == 401)
|
|
2451
2451
|
throw {
|
|
2452
|
-
code:
|
|
2452
|
+
code: i.status,
|
|
2453
2453
|
name: "Unauthorized",
|
|
2454
|
-
message:
|
|
2454
|
+
message: i.statusText
|
|
2455
2455
|
};
|
|
2456
|
-
return
|
|
2456
|
+
return i.status == 200 ? void 0 : i.statusText;
|
|
2457
2457
|
} catch (E) {
|
|
2458
|
-
const w = `${(
|
|
2458
|
+
const w = `${(i == null ? void 0 : i.status) ?? ""} ${(i == null ? void 0 : i.statusText) ?? ""} ${E.message}`;
|
|
2459
2459
|
if (!r)
|
|
2460
2460
|
return w;
|
|
2461
|
-
throw E.code == 401 ? E : new Error(`${
|
|
2461
|
+
throw E.code == 401 ? E : new Error(`${i.status} ${i.statusText} ${E.message}`);
|
|
2462
2462
|
}
|
|
2463
2463
|
}
|
|
2464
2464
|
return Ar = {
|
|
@@ -2480,14 +2480,14 @@ function it(e) {
|
|
|
2480
2480
|
const I = (e == null ? void 0 : e.items) ?? [];
|
|
2481
2481
|
return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onDeleteAsync ?? (r.onDeleteAsync = () => y().deleteItem(r)) : r.onDeleteAsync ?? (r.onDeleteAsync = () => {
|
|
2482
2482
|
var w;
|
|
2483
|
-
const
|
|
2484
|
-
if (
|
|
2483
|
+
const i = r.id ?? ((w = r.data) == null ? void 0 : w.id);
|
|
2484
|
+
if (i == null)
|
|
2485
2485
|
return Promise.resolve("No id found in delete action");
|
|
2486
|
-
const E = I.findIndex((M) => M.id ==
|
|
2486
|
+
const E = I.findIndex((M) => M.id == i);
|
|
2487
2487
|
return E >= 0 && I.splice(E, 1), Promise.resolve(void 0);
|
|
2488
2488
|
}), g(async () => {
|
|
2489
|
-
let
|
|
2490
|
-
r.onCanDeleteAsync != null && (
|
|
2489
|
+
let i;
|
|
2490
|
+
r.onCanDeleteAsync != null && (i = await r.onCanDeleteAsync(r.data)), i == null && r.onDeleteAsync != null && (i = await r.onDeleteAsync(r.data)), i == null && r.onDeleteSuccessAsync != null && await r.onDeleteSuccessAsync(r.data), x(i);
|
|
2491
2491
|
}, {
|
|
2492
2492
|
completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
|
|
2493
2493
|
confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
|
|
@@ -2503,11 +2503,11 @@ function it(e) {
|
|
|
2503
2503
|
const I = (e == null ? void 0 : e.items) ?? [];
|
|
2504
2504
|
return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onGetAsync ?? (r.onGetAsync = async () => (await y().get(r)).data) : r.onGetAsync ?? (r.onGetAsync = () => {
|
|
2505
2505
|
var E;
|
|
2506
|
-
const
|
|
2507
|
-
return
|
|
2506
|
+
const i = r.id ?? ((E = r.data) == null ? void 0 : E.id);
|
|
2507
|
+
return i == null ? Promise.resolve(void 0) : Promise.resolve(I.find((w) => w.id == i));
|
|
2508
2508
|
}), g(async () => {
|
|
2509
|
-
let
|
|
2510
|
-
return r.onGetAsync != null && (
|
|
2509
|
+
let i;
|
|
2510
|
+
return r.onGetAsync != null && (i = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (i = await r.onGetSuccessAsync(i, r)), i;
|
|
2511
2511
|
}, {
|
|
2512
2512
|
completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
|
|
2513
2513
|
confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
|
|
@@ -2522,8 +2522,8 @@ function it(e) {
|
|
|
2522
2522
|
let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
|
|
2523
2523
|
const I = (e == null ? void 0 : e.items) ?? [];
|
|
2524
2524
|
return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onGetAsync ?? (r.onGetAsync = () => y().getAll(r)) : r.onGetAsync ?? (r.onGetAsync = () => Promise.resolve(I)), g(async () => {
|
|
2525
|
-
let
|
|
2526
|
-
return r.onGetAsync != null && (
|
|
2525
|
+
let i;
|
|
2526
|
+
return r.onGetAsync != null && (i = await r.onGetAsync(r)), r.onGetSuccessAsync != null && (i = await r.onGetSuccessAsync(i, r)), i;
|
|
2527
2527
|
}, {
|
|
2528
2528
|
completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
|
|
2529
2529
|
confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
|
|
@@ -2537,8 +2537,8 @@ function it(e) {
|
|
|
2537
2537
|
r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to restore this item?" : void 0);
|
|
2538
2538
|
let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
|
|
2539
2539
|
return y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null && (r.onRestoreAsync ?? (r.onRestoreAsync = () => y().restore(r))), g(async () => {
|
|
2540
|
-
let I,
|
|
2541
|
-
return r.onCanRestoreAsync != null && (I = await r.onCanRestoreAsync(r.data)), I == null && r.onRestoreAsync != null && (
|
|
2540
|
+
let I, i;
|
|
2541
|
+
return r.onCanRestoreAsync != null && (I = await r.onCanRestoreAsync(r.data)), I == null && r.onRestoreAsync != null && (i = await r.onRestoreAsync(r.data)), i != null && r.onRestoreSuccessAsync != null && await r.onRestoreSuccessAsync(i), x(I), i;
|
|
2542
2542
|
}, {
|
|
2543
2543
|
completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
|
|
2544
2544
|
confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
|
|
@@ -2552,23 +2552,23 @@ function it(e) {
|
|
|
2552
2552
|
r.nav ?? (r.nav = e == null ? void 0 : e.nav), r.proxyID ?? (r.proxyID = e == null ? void 0 : e.proxyID), r.refresh ?? (r.refresh = e == null ? void 0 : e.refresh), r.throwError ?? (r.throwError = e == null ? void 0 : e.throwError), r.url ?? (r.url = e == null ? void 0 : e.url), r.confirmationMsg ?? (r.confirmationMsg = r.requireConfirmation === !0 ? "Are you sure you want to save this item?" : void 0);
|
|
2553
2553
|
let y = (r == null ? void 0 : r.store) ?? (e == null ? void 0 : e.store);
|
|
2554
2554
|
const I = (e == null ? void 0 : e.items) ?? [];
|
|
2555
|
-
return r.onGetSaveAsync ?? (r.onGetSaveAsync = (
|
|
2556
|
-
var
|
|
2557
|
-
return r.mode ?? (r.mode = ((
|
|
2558
|
-
}) : r.onSaveAsync ?? (r.onSaveAsync = (
|
|
2559
|
-
const E = I.findIndex((w) => w.id ==
|
|
2560
|
-
return E >= 0 ? I.splice(E, 1,
|
|
2555
|
+
return r.onGetSaveAsync ?? (r.onGetSaveAsync = (i) => i), r.onCanSaveAsync ?? (r.onCanSaveAsync = () => Promise.resolve(void 0)), y == null && r.nav != null && (y = Le({ nav: r.nav })), y != null ? r.onSaveAsync ?? (r.onSaveAsync = async () => {
|
|
2556
|
+
var i;
|
|
2557
|
+
return r.mode ?? (r.mode = ((i = r.data) == null ? void 0 : i.id) == null ? "new" : "edit"), r.mode == "new" ? await y().post(r) : await y().patch(r);
|
|
2558
|
+
}) : r.onSaveAsync ?? (r.onSaveAsync = (i) => {
|
|
2559
|
+
const E = I.findIndex((w) => w.id == i.id);
|
|
2560
|
+
return E >= 0 ? I.splice(E, 1, i) : I.push(i), Promise.resolve(i);
|
|
2561
2561
|
}), g(async () => {
|
|
2562
|
-
let
|
|
2563
|
-
if (r.onGetSaveAsync != null && (
|
|
2562
|
+
let i;
|
|
2563
|
+
if (r.onGetSaveAsync != null && (i = await r.onGetSaveAsync(r.data)), i == null)
|
|
2564
2564
|
return;
|
|
2565
2565
|
if (r.onCanSaveAsync != null) {
|
|
2566
|
-
let w = await r.onCanSaveAsync(
|
|
2566
|
+
let w = await r.onCanSaveAsync(i);
|
|
2567
2567
|
if (x(w), w != null)
|
|
2568
2568
|
return;
|
|
2569
2569
|
}
|
|
2570
2570
|
let E;
|
|
2571
|
-
return r.onSaveAsync != null && (E = await r.onSaveAsync(
|
|
2571
|
+
return r.onSaveAsync != null && (E = await r.onSaveAsync(i), E = E.data != null ? E.data : E), r.onSaveSuccessAsync != null && (E = await r.onSaveSuccessAsync(E)), E;
|
|
2572
2572
|
}, {
|
|
2573
2573
|
completionMsg: r.completionMsg ?? (e == null ? void 0 : e.completionMsg),
|
|
2574
2574
|
confirmationMsg: r.confirmationMsg ?? (e == null ? void 0 : e.confirmationMsg),
|
|
@@ -2723,7 +2723,7 @@ function xn(e) {
|
|
|
2723
2723
|
var f;
|
|
2724
2724
|
K(s).isLoggedIn || ((f = e.demo) == null || f.endDemo(), _() && (y(), window.location.href = d(D)));
|
|
2725
2725
|
}
|
|
2726
|
-
async function
|
|
2726
|
+
async function i(D, L) {
|
|
2727
2727
|
return e.getToken ?? (e.getToken = async () => {
|
|
2728
2728
|
let f = D, A = L, J = e.oauthGrantType ?? "authorization_token", Q = e.oauthClientID ?? "";
|
|
2729
2729
|
if (f == null || A == null)
|
|
@@ -2777,7 +2777,7 @@ function xn(e) {
|
|
|
2777
2777
|
doShow: N,
|
|
2778
2778
|
doShowByNav: $,
|
|
2779
2779
|
getAuthorizeUrl: d,
|
|
2780
|
-
getToken:
|
|
2780
|
+
getToken: i,
|
|
2781
2781
|
isLoggedIn: te(() => s.value.isLoggedIn === !0),
|
|
2782
2782
|
login: I,
|
|
2783
2783
|
logout: y,
|
|
@@ -2817,7 +2817,7 @@ function _n(e, t, l = {}) {
|
|
|
2817
2817
|
return;
|
|
2818
2818
|
const D = M.type === "touchmove" && M.touches.length > 0 ? M.touches[0] : M;
|
|
2819
2819
|
let L = D.clientX - N.x, f = D.clientY - N.y;
|
|
2820
|
-
(g === "x" || g === "both") && (P.x = T.x + L), (g === "y" || g === "both") && (P.y = T.y + f), (A = l.onMove) == null || A.call(l, P, M), u(M),
|
|
2820
|
+
(g === "x" || g === "both") && (P.x = T.x + L), (g === "y" || g === "both") && (P.y = T.y + f), (A = l.onMove) == null || A.call(l, P, M), u(M), i(P);
|
|
2821
2821
|
}
|
|
2822
2822
|
function I(M) {
|
|
2823
2823
|
var b;
|
|
@@ -2825,7 +2825,7 @@ function _n(e, t, l = {}) {
|
|
|
2825
2825
|
_();
|
|
2826
2826
|
}), d.length = 0, (b = l.onEnd) == null || b.call(l, P, M), u(M);
|
|
2827
2827
|
}
|
|
2828
|
-
function
|
|
2828
|
+
function i(M) {
|
|
2829
2829
|
const b = K(e);
|
|
2830
2830
|
if (!b)
|
|
2831
2831
|
return;
|
|
@@ -2863,7 +2863,7 @@ function Cn(e, t = {}) {
|
|
|
2863
2863
|
let l, S = t.handleWidth ?? 12, s = t.handleZIndex ?? 100, g = t.minWidth ?? 0, x = t.maxWidth ?? Number.MAX_SAFE_INTEGER, P = t.minHeight ?? 0, T = t.maxHeight ?? Number.MAX_SAFE_INTEGER, N = t.preventDefault ?? !1, $ = t.stopPropagation ?? !1, d, h = [];
|
|
2864
2864
|
const u = z(!1);
|
|
2865
2865
|
let r = [], y = [];
|
|
2866
|
-
const I = z(!1),
|
|
2866
|
+
const I = z(!1), i = z({ x: 0, y: 0 });
|
|
2867
2867
|
let E = { left: 0, top: 0, height: 0, width: 0, position: "absolute" }, w = {};
|
|
2868
2868
|
function M(W) {
|
|
2869
2869
|
Ae(N) && W.preventDefault(), Ae($) && W.stopPropagation();
|
|
@@ -2886,12 +2886,12 @@ function Cn(e, t = {}) {
|
|
|
2886
2886
|
if (!Y)
|
|
2887
2887
|
return;
|
|
2888
2888
|
const V = Y.$el, G = W.type === "touchstart" && W.touches.length > 0 ? W.touches[0] : W;
|
|
2889
|
-
if (
|
|
2889
|
+
if (i.value.x = G.clientX, i.value.y = G.clientY, E = {
|
|
2890
2890
|
left: V.offsetLeft,
|
|
2891
2891
|
top: V.offsetTop,
|
|
2892
2892
|
height: parseInt(window.getComputedStyle(V).getPropertyValue("height")),
|
|
2893
2893
|
width: parseInt(window.getComputedStyle(V).getPropertyValue("width"))
|
|
2894
|
-
}, w = Lr(E), ((ne = t.onStart) == null ? void 0 : ne.call(t,
|
|
2894
|
+
}, w = Lr(E), ((ne = t.onStart) == null ? void 0 : ne.call(t, i.value, W)) === !1)
|
|
2895
2895
|
return;
|
|
2896
2896
|
let X = W.target;
|
|
2897
2897
|
document.documentElement.style.cursor = J(X.dataset.handle), d = X.dataset.handle, y.push(he("mousemove", f)), y.push(he("mouseup", A)), y.push(he("touchmove", f)), y.push(he("touchend", A)), M(W);
|
|
@@ -2901,7 +2901,7 @@ function Cn(e, t = {}) {
|
|
|
2901
2901
|
if (!Y)
|
|
2902
2902
|
return;
|
|
2903
2903
|
const V = Y.$el, G = W.type === "touchmove" && W.touches.length > 0 ? W.touches[0] : W;
|
|
2904
|
-
let X = G.clientX -
|
|
2904
|
+
let X = G.clientX - i.value.x, ne = G.clientY - i.value.y;
|
|
2905
2905
|
const fe = Ae(E);
|
|
2906
2906
|
if (d.includes("t")) {
|
|
2907
2907
|
const ce = Math.min(T, Math.max(P, (fe.height ?? 0) - ne));
|
|
@@ -3147,12 +3147,12 @@ function Mn() {
|
|
|
3147
3147
|
})) : x = Object.keys(l[0]).map((I) => ({ header: nn(I) ?? "", value: I })), x = x.filter((I) => I.header.length > 0);
|
|
3148
3148
|
var P = [];
|
|
3149
3149
|
for (let I = 0; I < l.length; I++) {
|
|
3150
|
-
const
|
|
3150
|
+
const i = l[I];
|
|
3151
3151
|
var T = {}, N = [];
|
|
3152
3152
|
for (let E = 0; E < x.length; E++) {
|
|
3153
3153
|
const w = x[E];
|
|
3154
3154
|
var $ = null;
|
|
3155
|
-
typeof w.value == "function" ? $ = w.value(
|
|
3155
|
+
typeof w.value == "function" ? $ = w.value(i) : typeof w.value == "string" && ($ = Sr(i, w.value)), w.itemText != null ? T[w.header] = Sr($, w.itemText) : T[w.header] = $;
|
|
3156
3156
|
}
|
|
3157
3157
|
P.push(T), Te(N) && N.forEach((E) => {
|
|
3158
3158
|
P.push(E);
|
|
@@ -3160,11 +3160,11 @@ function Mn() {
|
|
|
3160
3160
|
}
|
|
3161
3161
|
var d = [];
|
|
3162
3162
|
if (d.push(x.map((I) => I.header).toString()), P.forEach((I) => {
|
|
3163
|
-
let
|
|
3163
|
+
let i = [];
|
|
3164
3164
|
x.forEach(function(E) {
|
|
3165
3165
|
var w = I[E.header];
|
|
3166
|
-
|
|
3167
|
-
}), d.push(
|
|
3166
|
+
i.push(w ?? "");
|
|
3167
|
+
}), d.push(i.join(","));
|
|
3168
3168
|
}), g == "array")
|
|
3169
3169
|
return d;
|
|
3170
3170
|
var h = d.join(`
|
|
@@ -3263,12 +3263,12 @@ function Rn(e) {
|
|
|
3263
3263
|
});
|
|
3264
3264
|
}
|
|
3265
3265
|
function P(d) {
|
|
3266
|
-
var y, I,
|
|
3266
|
+
var y, I, i;
|
|
3267
3267
|
if (l == null)
|
|
3268
3268
|
throw new Error("no demo data available for this api");
|
|
3269
3269
|
const h = d.id ?? ((y = d.data) == null ? void 0 : y.id), u = g(d);
|
|
3270
3270
|
let r;
|
|
3271
|
-
return u != null && (u.data ?? (u.data = []), u.getAction != null ? r = u.getAction(u.data, h) : h != null ? r = (I = u.data) == null ? void 0 : I.find((E) => E.id == h) : u.path != null && ((
|
|
3271
|
+
return u != null && (u.data ?? (u.data = []), u.getAction != null ? r = u.getAction(u.data, h) : h != null ? r = (I = u.data) == null ? void 0 : I.find((E) => E.id == h) : u.path != null && ((i = u.data) == null ? void 0 : i.length) == 1 && (r = u.data[0])), r == null ? Promise.resolve(void 0) : new Promise((E) => {
|
|
3272
3272
|
setTimeout(() => {
|
|
3273
3273
|
E({
|
|
3274
3274
|
data: r
|
|
@@ -3315,7 +3315,7 @@ function Rn(e) {
|
|
|
3315
3315
|
if (h.data ?? (h.data = []), h.patchAction != null)
|
|
3316
3316
|
u = h.patchAction(h.data, d.data);
|
|
3317
3317
|
else if (d.data.id != null) {
|
|
3318
|
-
const I = (r = h.data) == null ? void 0 : r.findIndex((
|
|
3318
|
+
const I = (r = h.data) == null ? void 0 : r.findIndex((i) => i.id == d.data.id);
|
|
3319
3319
|
I != null && I > -1 && ((y = h.data) == null || y.splice(I, 1, d.data)), u = d.data;
|
|
3320
3320
|
}
|
|
3321
3321
|
}
|
|
@@ -3429,7 +3429,7 @@ function Bn(e) {
|
|
|
3429
3429
|
function I(f, A) {
|
|
3430
3430
|
return t(f, "ccc dd LLL yyyy hh:mm a", A);
|
|
3431
3431
|
}
|
|
3432
|
-
function
|
|
3432
|
+
function i(f) {
|
|
3433
3433
|
var A = new Intl.NumberFormat("en-US", {
|
|
3434
3434
|
style: "percent",
|
|
3435
3435
|
minimumFractionDigits: 2
|
|
@@ -3467,7 +3467,7 @@ function Bn(e) {
|
|
|
3467
3467
|
toLocationLineNoCommas: r,
|
|
3468
3468
|
toLongDate: y,
|
|
3469
3469
|
toLongDateAndTime: I,
|
|
3470
|
-
toPercent:
|
|
3470
|
+
toPercent: i,
|
|
3471
3471
|
toPrettyCSV: E,
|
|
3472
3472
|
toShortDate: w,
|
|
3473
3473
|
toShortDateAndTime: M,
|
|
@@ -3518,7 +3518,7 @@ function Da(e, t) {
|
|
|
3518
3518
|
} = t ?? {}, S = e.storeMode ?? (t == null ? void 0 : t.storeMode), s = e.storageMode ?? (t == null ? void 0 : t.storageMode), g = e.nav ?? e.bladeName ?? "basic", x = Mr(), P = rt(), T = K(e.proxyQueryKey), N = te(() => {
|
|
3519
3519
|
var G;
|
|
3520
3520
|
return K(e.proxyID) ?? (T != null ? (G = P == null ? void 0 : P.query) == null ? void 0 : G[T] : void 0);
|
|
3521
|
-
}), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: I, saveItem:
|
|
3521
|
+
}), $ = z(void 0), { actionErrorMsg: d, actionLoadingMsg: h, deleteItem: u, getItem: r, getAllItems: y, restoreItem: I, saveItem: i } = it({
|
|
3522
3522
|
nav: g,
|
|
3523
3523
|
onError: e.onError ?? (t == null ? void 0 : t.onError),
|
|
3524
3524
|
proxyID: N.value,
|
|
@@ -3619,7 +3619,7 @@ function Da(e, t) {
|
|
|
3619
3619
|
onSaveAsync: Ee,
|
|
3620
3620
|
onSaveSuccessAsync: $e = (Ce) => ((X == null ? void 0 : X.navBack) === !0 ? x.back() : (G.rowVersion != null && Ce.rowVersion != null && (G.rowVersion = Ce.rowVersion), ee(), _.value = "view"), Promise.resolve(void 0))
|
|
3621
3621
|
} = { ...e };
|
|
3622
|
-
|
|
3622
|
+
i({
|
|
3623
3623
|
additionalUrl: ne,
|
|
3624
3624
|
data: G,
|
|
3625
3625
|
nav: g,
|
|
@@ -3755,8 +3755,8 @@ function xa(e, t, l) {
|
|
|
3755
3755
|
...e.defaultFilters ?? [],
|
|
3756
3756
|
...r.value
|
|
3757
3757
|
]).value), I = z((e.defaultFilters ?? []).map((U) => y.value.indexOf(U)));
|
|
3758
|
-
let
|
|
3759
|
-
const E = te(() => Wr(
|
|
3758
|
+
let i = z([...I.value]);
|
|
3759
|
+
const E = te(() => Wr(i, I).value.length > 0 || Wr(I, i).value.length > 0), w = z(M());
|
|
3760
3760
|
function M() {
|
|
3761
3761
|
var U, j;
|
|
3762
3762
|
if (T) {
|
|
@@ -3939,7 +3939,7 @@ function xa(e, t, l) {
|
|
|
3939
3939
|
return r.value = (O == null ? void 0 : O.filters) ?? [], e.useServerPagination === !0 && e.itemsPerPage && O.count && ($e.value = Math.ceil(O.count / e.itemsPerPage)), e.onGetSuccessAsync != null && (ve = await e.onGetSuccessAsync(ve, oe)), ve;
|
|
3940
3940
|
}
|
|
3941
3941
|
});
|
|
3942
|
-
A.value = H;
|
|
3942
|
+
A.value = H, i.value = [...I.value];
|
|
3943
3943
|
}
|
|
3944
3944
|
Ne();
|
|
3945
3945
|
}
|