bt-core-app 2.0.210 → 2.0.211
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 +27 -28
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -44841,31 +44841,31 @@ function Ise() {
|
|
|
44841
44841
|
}
|
|
44842
44842
|
function WU(e) {
|
|
44843
44843
|
function t() {
|
|
44844
|
-
const
|
|
44845
|
-
return
|
|
44844
|
+
const g = n.includes("Safari") && !n.includes("Chrome") && !n.includes("Edg"), h = n.includes("Macintosh") || n.includes("Windows");
|
|
44845
|
+
return g && h;
|
|
44846
44846
|
}
|
|
44847
44847
|
function a() {
|
|
44848
44848
|
return l(/iPhone|iPad|iPod/) || t();
|
|
44849
44849
|
}
|
|
44850
44850
|
const n = window.navigator.userAgent;
|
|
44851
|
-
function l(
|
|
44852
|
-
return !!n.match(
|
|
44851
|
+
function l(g) {
|
|
44852
|
+
return !!n.match(g);
|
|
44853
44853
|
}
|
|
44854
|
-
function r(
|
|
44855
|
-
console.log("notfiy update available"), um.value =
|
|
44854
|
+
function r(g) {
|
|
44855
|
+
console.log("notfiy update available"), um.value = g.detail, Fg.value = !0;
|
|
44856
44856
|
}
|
|
44857
44857
|
function i() {
|
|
44858
44858
|
console.log("controller changed"), !IS && (IS = !0, window.location.reload());
|
|
44859
44859
|
}
|
|
44860
44860
|
function o() {
|
|
44861
|
-
var
|
|
44862
|
-
Rg.value != null ? ((
|
|
44861
|
+
var g;
|
|
44862
|
+
Rg.value != null ? ((g = Rg.value) == null || g.prompt(), sm.value = !1) : a() && (ES.value = !0);
|
|
44863
44863
|
}
|
|
44864
44864
|
function s() {
|
|
44865
44865
|
return !!("standalone" in window.navigator && window.navigator.standalone) || !!window.matchMedia("(display-mode: standalone)").matches;
|
|
44866
44866
|
}
|
|
44867
|
-
function c(
|
|
44868
|
-
|
|
44867
|
+
function c(g) {
|
|
44868
|
+
g.preventDefault(), sm.value = !0, Rg.value = g;
|
|
44869
44869
|
}
|
|
44870
44870
|
function u() {
|
|
44871
44871
|
Fg.value = !1, !(!um.value || !um.value.waiting) && um.value.waiting.postMessage({ type: "SKIP_WAITING" });
|
|
@@ -44873,32 +44873,31 @@ function WU(e) {
|
|
|
44873
44873
|
RE(() => {
|
|
44874
44874
|
TS == null && (TS = document.addEventListener("swUpdated", r, { once: !0 })), AS == null && (AS = navigator.serviceWorker.addEventListener("controllerchange", i)), $S == null && ($S = window.addEventListener("beforeinstallprompt", c)), a() && !s() && (sm.value = !0);
|
|
44875
44875
|
});
|
|
44876
|
-
function d(
|
|
44877
|
-
document.dispatchEvent(new CustomEvent("swUpdated", { detail:
|
|
44876
|
+
function d(g) {
|
|
44877
|
+
document.dispatchEvent(new CustomEvent("swUpdated", { detail: g }));
|
|
44878
44878
|
}
|
|
44879
|
-
|
|
44880
|
-
|
|
44879
|
+
let m, f = tv(e.urls);
|
|
44880
|
+
return typeof window < "u" && (typeof Promise < "u" ? m = new Promise((g) => window.addEventListener("load", g)) : m = { then: (g) => window.addEventListener("load", g) }), e.registerServiceWorker == !0 && "serviceWorker" in navigator && (m == null || m.then(() => {
|
|
44881
44881
|
console.log("registering"), navigator.serviceWorker.register(
|
|
44882
|
-
|
|
44883
|
-
{ type:
|
|
44884
|
-
).then((
|
|
44885
|
-
if (console.log("registering done"),
|
|
44886
|
-
console.log("waiting"), d(
|
|
44882
|
+
f != "development" ? "/service-worker.js" : "/dev-sw.js?dev-sw",
|
|
44883
|
+
{ type: f != "development" ? "classic" : "module" }
|
|
44884
|
+
).then((g) => {
|
|
44885
|
+
if (console.log("registering done"), g.waiting) {
|
|
44886
|
+
console.log("waiting"), d(g);
|
|
44887
44887
|
return;
|
|
44888
44888
|
}
|
|
44889
|
-
|
|
44890
|
-
if (console.log("update found"),
|
|
44891
|
-
const
|
|
44892
|
-
|
|
44893
|
-
(
|
|
44889
|
+
g.onupdatefound = () => {
|
|
44890
|
+
if (console.log("update found"), console.log(g), g.installing != null) {
|
|
44891
|
+
const h = g.installing;
|
|
44892
|
+
h.onstatechange = () => {
|
|
44893
|
+
(h == null ? void 0 : h.state) === "installed" && navigator.serviceWorker.controller && d(g);
|
|
44894
44894
|
};
|
|
44895
44895
|
}
|
|
44896
44896
|
};
|
|
44897
|
-
}).catch((
|
|
44898
|
-
console.log("service worker registration error"), console.log(
|
|
44897
|
+
}).catch((g) => {
|
|
44898
|
+
console.log("service worker registration error"), console.log(g);
|
|
44899
44899
|
});
|
|
44900
|
-
}
|
|
44901
|
-
return I0 = {
|
|
44900
|
+
})), I0 = {
|
|
44902
44901
|
canInstallApp: sm,
|
|
44903
44902
|
canUpdateApp: Fg,
|
|
44904
44903
|
installApp: o,
|
package/package.json
CHANGED