@feedmepos/mf-payment 1.8.0 → 1.8.1-dev
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/{Actions.vue_vue_type_script_setup_true_lang-CX1_lQSw.js → Actions.vue_vue_type_script_setup_true_lang-Cuzla1oY.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BeMe0eWN.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-D79gyND3.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DfYsAAaC.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-OINuOkas.js} +2 -2
- package/dist/{Chargeback-xwB_glv5.js → Chargeback-sQQp7fCd.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CrvzKQgC.js → DocumentViewer.vue_vue_type_script_setup_true_lang-C42uptsa.js} +1 -1
- package/dist/{OnboardForm-DKhsjm3n.js → OnboardForm-9mnBqMmd.js} +722 -717
- package/dist/{OnboardForm-F2Qcvalp.js → OnboardForm-CaOEbQ22.js} +128 -127
- package/dist/{OnboardSubmission-0hfx_f8i.js → OnboardSubmission-BdRBebcC.js} +3 -3
- package/dist/{OnboardSubmission-D2ebcVnG.js → OnboardSubmission-BeP-x0v2.js} +6 -6
- package/dist/{PayoutAccount-CIek2Qnh.js → PayoutAccount-DOFljBvE.js} +5 -5
- package/dist/{PayoutAccount-Dw-_pf4z.js → PayoutAccount-PBySjzsl.js} +7 -7
- package/dist/{PayoutAccountSetting-DSk8ZV9p.js → PayoutAccountSetting-CWAxe_Bk.js} +6 -6
- package/dist/{Restaurant-Bdike4SW.js → Restaurant-DoMkz27y.js} +4 -4
- package/dist/{RestaurantSetting-DSDzRmgE.js → RestaurantSetting-Bz6qwpNC.js} +3 -3
- package/dist/{Settlement-Cw6JGHxU.js → Settlement-BYZHrs8E.js} +3 -3
- package/dist/{Settlement-BEhvMZje.js → Settlement-CMayu7aU.js} +4 -4
- package/dist/{SettlementTransactions-BlRbAo_K.js → SettlementTransactions-CRPIYXVW.js} +5 -5
- package/dist/{SettlementTransactions-yczyKInV.js → SettlementTransactions-CyxL85fB.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-sobv3LfF.js → Status.vue_vue_type_script_setup_true_lang-DWJ_miup.js} +1 -1
- package/dist/{Terminal-BwHi929R.js → Terminal-DkwnRFFL.js} +5 -5
- package/dist/{TerminalSetting-ZA-ADJVD.js → TerminalSetting-CGlMvxa8.js} +5 -5
- package/dist/{Transaction-DqwB7HTI.js → Transaction-8t3Tgjwa.js} +10 -10
- package/dist/{Transaction-BvvdK0go.js → Transaction-fm0B5nRC.js} +11 -11
- package/dist/{TransactionOld-B0fQrQ7W.js → TransactionOld-BCUkorA2.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-KpyoB07o.js → TransactionStatus.vue_vue_type_script_setup_true_lang-DRthK8zD.js} +1 -1
- package/dist/{app-v4m_QvHC.js → app-HurNvNS5.js} +361 -352
- package/dist/app.js +1 -1
- package/dist/{assets-xspGnWqt.js → assets-DVLU2t_q.js} +1 -1
- package/dist/{grafana-By90eHTE.js → grafana-BsMCGCzE.js} +1 -1
- package/dist/{index-ClZtCkMC.js → index-03Hs823S.js} +1 -1
- package/dist/{index-BO4m11-f.js → index-BifkD6JA.js} +1 -1
- package/dist/{index-COhy5Sra.js → index-BmEpfjpT.js} +1 -1
- package/dist/{index-B-1dMDti.js → index-BwALxMhM.js} +1 -1
- package/dist/{index-Bm1fndT6.js → index-C4XdtTWx.js} +1 -1
- package/dist/{index-DQ81tv1s.js → index-CYzo-plj.js} +1 -1
- package/dist/{index-D3G27Mr4.js → index-DHD88s-a.js} +2 -2
- package/dist/{index-CnoeFPh3.js → index-DsLgOa7d.js} +1 -1
- package/dist/{index-CMIKOUH0.js → index-nSB5f6HJ.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-FjfVgwqj.js → index.vue_vue_type_script_setup_true_lang-BsBHrQLx.js} +1 -1
- package/dist/model/onboard-submission.d.ts +1 -0
- package/dist/onboard-submission-CPRheDQl.js +30 -0
- package/dist/package.json +2 -2
- package/dist/{payout-account-Dz18wMnQ.js → payout-account-D3OetCJc.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/onboard-submission-dp_mz2J_.js +0 -23
|
@@ -3,7 +3,7 @@ var rr = (t) => {
|
|
|
3
3
|
};
|
|
4
4
|
var dn = (t, e, n) => e.has(t) || rr("Cannot " + n);
|
|
5
5
|
var h = (t, e, n) => (dn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), G = (t, e, n) => e.has(t) ? rr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), D = (t, e, n, r) => (dn(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), z = (t, e, n) => (dn(t, e, "access private method"), n);
|
|
6
|
-
var
|
|
6
|
+
var xt = (t, e, n, r) => ({
|
|
7
7
|
set _(s) {
|
|
8
8
|
D(t, e, s, n);
|
|
9
9
|
},
|
|
@@ -12,9 +12,9 @@ var Vt = (t, e, n, r) => ({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
import { routes as Ri, i18nMessages as qi } from "@feedmepos/mf-financing";
|
|
15
|
-
import { isRef as qn, ref as
|
|
15
|
+
import { isRef as qn, ref as St, shallowRef as Ni, watchEffect as Hi, computed as Nn, h as vn, defineComponent as tn, unref as ge, openBlock as nn, createBlock as Hn, renderSlot as Qi, createCommentVNode as Xi, createElementBlock as Si, createElementVNode as Ke, toDisplayString as sr, nextTick as Ui, defineAsyncComponent as _r, watch as $r, resolveComponent as es, provide as Wi, onMounted as zi, onBeforeMount as Zi, onUnmounted as Li } from "vue";
|
|
16
16
|
import { useRoute as ts, createRouter as Ki, createWebHistory as Ji, useRouter as _i } from "vue-router";
|
|
17
|
-
import { useCoreStore as
|
|
17
|
+
import { useCoreStore as rn, useI18n as ns } from "@feedmepos/mf-common";
|
|
18
18
|
import { defineStore as $i } from "pinia";
|
|
19
19
|
import { components as ea } from "@feedmepos/ui-library";
|
|
20
20
|
const ta = {
|
|
@@ -1249,28 +1249,28 @@ function ca(t, e, n) {
|
|
|
1249
1249
|
evaluating: i = void 0,
|
|
1250
1250
|
shallow: a = !0,
|
|
1251
1251
|
onError: c = oa
|
|
1252
|
-
} = r, l =
|
|
1252
|
+
} = r, l = St(!s), A = a ? Ni(e) : St(e);
|
|
1253
1253
|
let f = 0;
|
|
1254
1254
|
return Hi(async (p) => {
|
|
1255
1255
|
if (!l.value)
|
|
1256
1256
|
return;
|
|
1257
1257
|
f++;
|
|
1258
1258
|
const B = f;
|
|
1259
|
-
let
|
|
1259
|
+
let w = !1;
|
|
1260
1260
|
i && Promise.resolve().then(() => {
|
|
1261
1261
|
i.value = !0;
|
|
1262
1262
|
});
|
|
1263
1263
|
try {
|
|
1264
1264
|
const O = await t((I) => {
|
|
1265
1265
|
p(() => {
|
|
1266
|
-
i && (i.value = !1),
|
|
1266
|
+
i && (i.value = !1), w || I();
|
|
1267
1267
|
});
|
|
1268
1268
|
});
|
|
1269
1269
|
B === f && (A.value = O);
|
|
1270
1270
|
} catch (O) {
|
|
1271
1271
|
c(O);
|
|
1272
1272
|
} finally {
|
|
1273
|
-
i && B === f && (i.value = !1),
|
|
1273
|
+
i && B === f && (i.value = !1), w = !0;
|
|
1274
1274
|
}
|
|
1275
1275
|
}), s ? Nn(() => (l.value = !0, A.value)) : A;
|
|
1276
1276
|
}
|
|
@@ -1381,7 +1381,7 @@ var rs = { exports: {} };
|
|
|
1381
1381
|
return !0;
|
|
1382
1382
|
};
|
|
1383
1383
|
}
|
|
1384
|
-
function
|
|
1384
|
+
function w(u, m, g, y) {
|
|
1385
1385
|
return u.validate(u.options, m, g, y);
|
|
1386
1386
|
}
|
|
1387
1387
|
var O = {
|
|
@@ -1426,7 +1426,7 @@ var rs = { exports: {} };
|
|
|
1426
1426
|
},
|
|
1427
1427
|
$or: function(u, m, g, y) {
|
|
1428
1428
|
for (var b = 0, E = u.length; b < E; b++)
|
|
1429
|
-
if (
|
|
1429
|
+
if (w(f(u, b), m, g, y)) return !0;
|
|
1430
1430
|
return !1;
|
|
1431
1431
|
},
|
|
1432
1432
|
$nor: function(u, m, g, y) {
|
|
@@ -1434,7 +1434,7 @@ var rs = { exports: {} };
|
|
|
1434
1434
|
},
|
|
1435
1435
|
$and: function(u, m, g, y) {
|
|
1436
1436
|
for (var b = 0, E = u.length; b < E; b++)
|
|
1437
|
-
if (!
|
|
1437
|
+
if (!w(f(u, b), m, g, y)) return !1;
|
|
1438
1438
|
return !0;
|
|
1439
1439
|
},
|
|
1440
1440
|
$regex: p(function(u, m) {
|
|
@@ -1446,9 +1446,9 @@ var rs = { exports: {} };
|
|
|
1446
1446
|
$elemMatch: function(u, m, g, y) {
|
|
1447
1447
|
return c(m) ? !!~function(b, E) {
|
|
1448
1448
|
for (var P = 0; P < b.length; P++)
|
|
1449
|
-
if (f(b, P),
|
|
1449
|
+
if (f(b, P), w(E, f(b, P))) return P;
|
|
1450
1450
|
return -1;
|
|
1451
|
-
}(m, u) :
|
|
1451
|
+
}(m, u) : w(u, m, g, y);
|
|
1452
1452
|
},
|
|
1453
1453
|
$exists: function(u, m, g, y) {
|
|
1454
1454
|
return y.hasOwnProperty(g) === u;
|
|
@@ -1506,7 +1506,7 @@ var rs = { exports: {} };
|
|
|
1506
1506
|
for (j = u.length; j--; ) if (u[j] == null) return !0;
|
|
1507
1507
|
}
|
|
1508
1508
|
for (j = u.length; j--; ) {
|
|
1509
|
-
var P =
|
|
1509
|
+
var P = w(H(f(u, j), g), E, j, u);
|
|
1510
1510
|
if (P && String(P) !== "[object Object]" && String(E) !== "[object Object]")
|
|
1511
1511
|
return !0;
|
|
1512
1512
|
}
|
|
@@ -1549,7 +1549,7 @@ var rs = { exports: {} };
|
|
|
1549
1549
|
$not: function(u, m, g) {
|
|
1550
1550
|
var y = Y(g)(u);
|
|
1551
1551
|
return function(b, E, P) {
|
|
1552
|
-
return !
|
|
1552
|
+
return !w(y, b, E, P);
|
|
1553
1553
|
};
|
|
1554
1554
|
},
|
|
1555
1555
|
$type: function(u) {
|
|
@@ -1587,11 +1587,11 @@ var rs = { exports: {} };
|
|
|
1587
1587
|
else tr(f(Ce, nr), ft, gt + 1, Ce, ln);
|
|
1588
1588
|
}(m, g, 0, m, E), E.length === 1) {
|
|
1589
1589
|
var P = E[0];
|
|
1590
|
-
return
|
|
1590
|
+
return w(y, P[0], P[1], P[2]);
|
|
1591
1591
|
}
|
|
1592
1592
|
for (var j = b && b.$ne !== void 0, W = j, _ = 0; _ < E.length; _++) {
|
|
1593
|
-
var he = E[_],
|
|
1594
|
-
j ? W &=
|
|
1593
|
+
var he = E[_], Vt = w(y, he[0], he[1], he[2]);
|
|
1594
|
+
j ? W &= Vt : W |= Vt;
|
|
1595
1595
|
}
|
|
1596
1596
|
return W;
|
|
1597
1597
|
}
|
|
@@ -1613,8 +1613,8 @@ var rs = { exports: {} };
|
|
|
1613
1613
|
else {
|
|
1614
1614
|
if (W.charCodeAt(0) === 36)
|
|
1615
1615
|
throw new Error("Unknown operation " + W);
|
|
1616
|
-
var
|
|
1617
|
-
j.push(Q(
|
|
1616
|
+
var Vt = W.split(".");
|
|
1617
|
+
j.push(Q(Vt, E(_), _));
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
1620
|
}
|
|
@@ -1624,24 +1624,24 @@ var rs = { exports: {} };
|
|
|
1624
1624
|
if (!l(W)) return _;
|
|
1625
1625
|
for (var he in W) _.push(he), j(W[he], _);
|
|
1626
1626
|
return _;
|
|
1627
|
-
}(P, []).join(",").search(/[$.]/) === -1 ? V(P,
|
|
1627
|
+
}(P, []).join(",").search(/[$.]/) === -1 ? V(P, v) : b(P);
|
|
1628
1628
|
};
|
|
1629
1629
|
return function(P) {
|
|
1630
1630
|
return b(y(P));
|
|
1631
1631
|
};
|
|
1632
1632
|
}
|
|
1633
|
-
function
|
|
1633
|
+
function v(u, m) {
|
|
1634
1634
|
if (Object.prototype.toString.call(u) !== Object.prototype.toString.call(m))
|
|
1635
1635
|
return !1;
|
|
1636
1636
|
if (l(u)) {
|
|
1637
1637
|
if (Object.keys(u).length !== Object.keys(m).length) return !1;
|
|
1638
|
-
for (var g in u) if (!
|
|
1638
|
+
for (var g in u) if (!v(u[g], m[g])) return !1;
|
|
1639
1639
|
return !0;
|
|
1640
1640
|
}
|
|
1641
1641
|
if (c(u)) {
|
|
1642
1642
|
if (u.length !== m.length) return !1;
|
|
1643
1643
|
for (var y = 0, b = u.length; y < b; y++)
|
|
1644
|
-
if (!
|
|
1644
|
+
if (!v(u[y], m[y])) return !1;
|
|
1645
1645
|
return !0;
|
|
1646
1646
|
}
|
|
1647
1647
|
return u === m;
|
|
@@ -1651,18 +1651,18 @@ var rs = { exports: {} };
|
|
|
1651
1651
|
return m && m.select && (g = {
|
|
1652
1652
|
options: g,
|
|
1653
1653
|
validate: function(y, b, E, P) {
|
|
1654
|
-
return
|
|
1654
|
+
return w(y, b && m.select(b), E, P);
|
|
1655
1655
|
}
|
|
1656
1656
|
}), g;
|
|
1657
1657
|
}
|
|
1658
1658
|
function U(u, m) {
|
|
1659
1659
|
var g = H(u, m = Object.assign({ compare: ee, comparable: q }, m));
|
|
1660
1660
|
return function(y, b, E) {
|
|
1661
|
-
return
|
|
1661
|
+
return w(g, y, b, E);
|
|
1662
1662
|
};
|
|
1663
1663
|
}
|
|
1664
1664
|
function ee(u, m) {
|
|
1665
|
-
if (
|
|
1665
|
+
if (v(u, m)) return 0;
|
|
1666
1666
|
if (i(u) === i(m)) {
|
|
1667
1667
|
if (u > m) return 1;
|
|
1668
1668
|
if (u < m) return -1;
|
|
@@ -1689,15 +1689,15 @@ function ma(t, e, n) {
|
|
|
1689
1689
|
function fa(t, e) {
|
|
1690
1690
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1693
|
-
return
|
|
1692
|
+
function wn(t) {
|
|
1693
|
+
return wn = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
|
|
1694
1694
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
1695
|
-
},
|
|
1695
|
+
}, wn(t);
|
|
1696
1696
|
}
|
|
1697
|
-
function
|
|
1698
|
-
return
|
|
1697
|
+
function Ut(t, e) {
|
|
1698
|
+
return Ut = Object.setPrototypeOf || function(r, s) {
|
|
1699
1699
|
return r.__proto__ = s, r;
|
|
1700
|
-
},
|
|
1700
|
+
}, Ut(t, e);
|
|
1701
1701
|
}
|
|
1702
1702
|
function ga() {
|
|
1703
1703
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
@@ -1709,13 +1709,13 @@ function ga() {
|
|
|
1709
1709
|
return !1;
|
|
1710
1710
|
}
|
|
1711
1711
|
}
|
|
1712
|
-
function
|
|
1713
|
-
return ga() ?
|
|
1712
|
+
function qt(t, e, n) {
|
|
1713
|
+
return ga() ? qt = Reflect.construct : qt = function(s, i, a) {
|
|
1714
1714
|
var c = [null];
|
|
1715
1715
|
c.push.apply(c, i);
|
|
1716
1716
|
var l = Function.bind.apply(s, c), A = new l();
|
|
1717
|
-
return a &&
|
|
1718
|
-
},
|
|
1717
|
+
return a && Ut(A, a.prototype), A;
|
|
1718
|
+
}, qt.apply(null, arguments);
|
|
1719
1719
|
}
|
|
1720
1720
|
function pa(t) {
|
|
1721
1721
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
@@ -1731,7 +1731,7 @@ function Bn(t) {
|
|
|
1731
1731
|
e.set(r, s);
|
|
1732
1732
|
}
|
|
1733
1733
|
function s() {
|
|
1734
|
-
return
|
|
1734
|
+
return qt(r, arguments, wn(this).constructor);
|
|
1735
1735
|
}
|
|
1736
1736
|
return s.prototype = Object.create(r.prototype, {
|
|
1737
1737
|
constructor: {
|
|
@@ -1740,7 +1740,7 @@ function Bn(t) {
|
|
|
1740
1740
|
writable: !0,
|
|
1741
1741
|
configurable: !0
|
|
1742
1742
|
}
|
|
1743
|
-
}),
|
|
1743
|
+
}), Ut(s, r);
|
|
1744
1744
|
}, Bn(t);
|
|
1745
1745
|
}
|
|
1746
1746
|
function ir(t) {
|
|
@@ -1750,9 +1750,9 @@ function ir(t) {
|
|
|
1750
1750
|
}
|
|
1751
1751
|
var ss = function(e) {
|
|
1752
1752
|
return 'Cannot execute "' + e.action + '" on "' + e.subjectName + '"';
|
|
1753
|
-
},
|
|
1753
|
+
}, Ft = ss, ya = /* @__PURE__ */ function(t) {
|
|
1754
1754
|
fa(e, t), e.setDefaultMessage = function(s) {
|
|
1755
|
-
s === null ?
|
|
1755
|
+
s === null ? Ft = ss : Ft = typeof s == "string" ? function() {
|
|
1756
1756
|
return s;
|
|
1757
1757
|
} : s;
|
|
1758
1758
|
}, e.from = function(s) {
|
|
@@ -1763,7 +1763,7 @@ var ss = function(e) {
|
|
|
1763
1763
|
};
|
|
1764
1764
|
function e(r, s) {
|
|
1765
1765
|
var i;
|
|
1766
|
-
return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r ||
|
|
1766
|
+
return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r || Ft(ir(i)), i._customMessage = null, typeof Error.captureStackTrace == "function" && (i.name = i.constructor.name, Error.captureStackTrace(ir(i), i.constructor)), i;
|
|
1767
1767
|
}
|
|
1768
1768
|
var n = e.prototype;
|
|
1769
1769
|
return n.setMessage = function(s) {
|
|
@@ -1780,7 +1780,7 @@ var ss = function(e) {
|
|
|
1780
1780
|
subjectName: this.ability.subjectName(i)
|
|
1781
1781
|
});
|
|
1782
1782
|
var l = c ? c.reason : "";
|
|
1783
|
-
throw this.message = this._customMessage || l ||
|
|
1783
|
+
throw this.message = this._customMessage || l || Ft(this), this;
|
|
1784
1784
|
}
|
|
1785
1785
|
}, n._setMetadata = function(s) {
|
|
1786
1786
|
this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
|
|
@@ -1795,10 +1795,10 @@ function ba(t) {
|
|
|
1795
1795
|
var e = typeof t == "object" ? t.constructor : t;
|
|
1796
1796
|
return e.modelName || e.name;
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function va(t) {
|
|
1799
1799
|
return JSON.parse(JSON.stringify(t));
|
|
1800
1800
|
}
|
|
1801
|
-
var
|
|
1801
|
+
var wa = /[-/\\^$+?.()|[\]{}]/g, Ba = /\.?\*+\.?/g, Da = /\*+/, Ca = /\./g;
|
|
1802
1802
|
function Ea(t, e, n) {
|
|
1803
1803
|
var r = n[0] === "*" || t[0] === "." && t[t.length - 1] === "." ? "+" : "*", s = t.indexOf("**") === -1 ? "[^.]" : ".", i = t.replace(Ca, "\\$&").replace(Da, s + r);
|
|
1804
1804
|
return e + t.length === n.length ? "(?:" + i + ")?" : i;
|
|
@@ -1808,7 +1808,7 @@ function Ma(t, e, n) {
|
|
|
1808
1808
|
}
|
|
1809
1809
|
function Ia(t) {
|
|
1810
1810
|
var e = t.map(function(r) {
|
|
1811
|
-
return r.replace(
|
|
1811
|
+
return r.replace(wa, Ma).replace(Ba, Ea);
|
|
1812
1812
|
}), n = e.length > 1 ? "(?:" + e.join("|") + ")" : e[0];
|
|
1813
1813
|
return new RegExp("^" + n + "$");
|
|
1814
1814
|
}
|
|
@@ -1853,7 +1853,7 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
1853
1853
|
indexedRules: /* @__PURE__ */ Object.create(null),
|
|
1854
1854
|
mergedRules: /* @__PURE__ */ Object.create(null),
|
|
1855
1855
|
events: {},
|
|
1856
|
-
aliases:
|
|
1856
|
+
aliases: va(ar)
|
|
1857
1857
|
}, this.update(n);
|
|
1858
1858
|
}
|
|
1859
1859
|
var e = t.prototype;
|
|
@@ -1871,8 +1871,8 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
1871
1871
|
for (var s = /* @__PURE__ */ Object.create(null), i = this[te].RuleType, a = !0, c = !1, l = 0; l < r.length; l++) {
|
|
1872
1872
|
var A = new i(r[l]), f = this.expandActions(A.actions), p = Dn(A.subject), B = r.length - l - 1;
|
|
1873
1873
|
a = !!(a && A.inverted), !c && A.fields && (c = !0);
|
|
1874
|
-
for (var
|
|
1875
|
-
var O = p[
|
|
1874
|
+
for (var w = 0; w < p.length; w++) {
|
|
1875
|
+
var O = p[w];
|
|
1876
1876
|
s[O] = s[O] || /* @__PURE__ */ Object.create(null);
|
|
1877
1877
|
for (var I = 0; I < f.length; I++) {
|
|
1878
1878
|
var V = f[I];
|
|
@@ -2036,7 +2036,7 @@ async function ka(t, e) {
|
|
|
2036
2036
|
}
|
|
2037
2037
|
var Cn = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Cn || {});
|
|
2038
2038
|
function Ra() {
|
|
2039
|
-
const t = ts(), { sessionUser: e } =
|
|
2039
|
+
const t = ts(), { sessionUser: e } = rn();
|
|
2040
2040
|
return ca(
|
|
2041
2041
|
async () => {
|
|
2042
2042
|
t.matched;
|
|
@@ -2075,7 +2075,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2075
2075
|
subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
|
|
2076
2076
|
}, za = {
|
|
2077
2077
|
noPermission: Wa
|
|
2078
|
-
}, Za = { class: "w-full h-full flex justify-center items-center" }, La = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Ka = { class: "w-[300px] h-[300px]" }, Ja = ["src"], _a = { class: "text-2xl" }, $a = { class: "text-xl" }, eo = /* @__PURE__ */
|
|
2078
|
+
}, Za = { class: "w-full h-full flex justify-center items-center" }, La = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Ka = { class: "w-[300px] h-[300px]" }, Ja = ["src"], _a = { class: "text-2xl" }, $a = { class: "text-xl" }, eo = /* @__PURE__ */ tn({
|
|
2079
2079
|
__name: "NoPermission",
|
|
2080
2080
|
setup(t) {
|
|
2081
2081
|
const { t: e } = ns({
|
|
@@ -2086,7 +2086,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2086
2086
|
"th-TH": za
|
|
2087
2087
|
}
|
|
2088
2088
|
});
|
|
2089
|
-
return (n, r) => (
|
|
2089
|
+
return (n, r) => (nn(), Si("div", Za, [
|
|
2090
2090
|
Ke("div", La, [
|
|
2091
2091
|
Ke("div", Ka, [
|
|
2092
2092
|
Ke("img", {
|
|
@@ -2101,18 +2101,18 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2101
2101
|
])
|
|
2102
2102
|
]));
|
|
2103
2103
|
}
|
|
2104
|
-
}), to = /* @__PURE__ */
|
|
2104
|
+
}), to = /* @__PURE__ */ tn({
|
|
2105
2105
|
__name: "PermissionWrapper",
|
|
2106
2106
|
setup(t) {
|
|
2107
2107
|
const e = Ra();
|
|
2108
|
-
return (n, r) => ge(e) === ge(Cn).Denied ? (
|
|
2108
|
+
return (n, r) => ge(e) === ge(Cn).Denied ? (nn(), Hn(eo, { key: 0 })) : ge(e) === ge(Cn).Allowed ? Qi(n.$slots, "default", { key: 1 }) : Xi("", !0);
|
|
2109
2109
|
}
|
|
2110
2110
|
});
|
|
2111
2111
|
function os(t) {
|
|
2112
2112
|
return {
|
|
2113
2113
|
inheritAttrs: !1,
|
|
2114
2114
|
setup(e, { attrs: n }) {
|
|
2115
|
-
return () =>
|
|
2115
|
+
return () => vn(to, {}, { default: () => vn(t, n) });
|
|
2116
2116
|
}
|
|
2117
2117
|
};
|
|
2118
2118
|
}
|
|
@@ -2409,10 +2409,10 @@ const k = [
|
|
|
2409
2409
|
), bs = $(
|
|
2410
2410
|
se,
|
|
2411
2411
|
ho
|
|
2412
|
-
),
|
|
2412
|
+
), vs = $(
|
|
2413
2413
|
se,
|
|
2414
2414
|
mo
|
|
2415
|
-
),
|
|
2415
|
+
), ws = $(
|
|
2416
2416
|
se,
|
|
2417
2417
|
fo
|
|
2418
2418
|
), Bs = $(
|
|
@@ -2439,7 +2439,7 @@ const k = [
|
|
|
2439
2439
|
o.delete
|
|
2440
2440
|
]
|
|
2441
2441
|
}
|
|
2442
|
-
],
|
|
2442
|
+
], vo = [
|
|
2443
2443
|
...k,
|
|
2444
2444
|
{
|
|
2445
2445
|
label: "Membership",
|
|
@@ -2451,7 +2451,7 @@ const k = [
|
|
|
2451
2451
|
o.delete
|
|
2452
2452
|
]
|
|
2453
2453
|
}
|
|
2454
|
-
],
|
|
2454
|
+
], wo = $(
|
|
2455
2455
|
no,
|
|
2456
2456
|
ro,
|
|
2457
2457
|
cs,
|
|
@@ -2465,8 +2465,8 @@ const k = [
|
|
|
2465
2465
|
ps,
|
|
2466
2466
|
ys,
|
|
2467
2467
|
bs,
|
|
2468
|
-
ws,
|
|
2469
2468
|
vs,
|
|
2469
|
+
ws,
|
|
2470
2470
|
Bs,
|
|
2471
2471
|
Ds,
|
|
2472
2472
|
ds,
|
|
@@ -2480,11 +2480,11 @@ const k = [
|
|
|
2480
2480
|
), Do = $(
|
|
2481
2481
|
se,
|
|
2482
2482
|
bo
|
|
2483
|
-
), Co = $(
|
|
2483
|
+
), Co = $(vo), Eo = {
|
|
2484
2484
|
[`set_${d.crm}`]: {
|
|
2485
2485
|
key: "sys:crm:access",
|
|
2486
2486
|
name: "CRM Access",
|
|
2487
|
-
permissions:
|
|
2487
|
+
permissions: wo
|
|
2488
2488
|
},
|
|
2489
2489
|
[`set_${d.crm_promotion}`]: {
|
|
2490
2490
|
key: "sys:crm:promotion",
|
|
@@ -2529,12 +2529,12 @@ const k = [
|
|
|
2529
2529
|
[`set_${d.crm_credit}`]: {
|
|
2530
2530
|
key: "sys:crm:credit",
|
|
2531
2531
|
name: "CRM Credit",
|
|
2532
|
-
permissions:
|
|
2532
|
+
permissions: vs
|
|
2533
2533
|
},
|
|
2534
2534
|
[`set_${d.crm_experience}`]: {
|
|
2535
2535
|
key: "sys:crm:experience",
|
|
2536
2536
|
name: "CRM Experience",
|
|
2537
|
-
permissions:
|
|
2537
|
+
permissions: ws
|
|
2538
2538
|
},
|
|
2539
2539
|
[`set_${d.crm_game}`]: {
|
|
2540
2540
|
key: "sys:crm:game",
|
|
@@ -3157,7 +3157,7 @@ const Ho = () => ({
|
|
|
3157
3157
|
sidebarDisplay: "Restaurants",
|
|
3158
3158
|
section: "payment-gateway"
|
|
3159
3159
|
},
|
|
3160
|
-
component: () => import("./Restaurant-
|
|
3160
|
+
component: () => import("./Restaurant-DoMkz27y.js")
|
|
3161
3161
|
},
|
|
3162
3162
|
{
|
|
3163
3163
|
path: "/admin/restaurants/:restaurantId",
|
|
@@ -3166,7 +3166,7 @@ const Ho = () => ({
|
|
|
3166
3166
|
meta: {
|
|
3167
3167
|
parent: "mf-payment-admin.restaurant"
|
|
3168
3168
|
},
|
|
3169
|
-
component: () => import("./RestaurantSetting-
|
|
3169
|
+
component: () => import("./RestaurantSetting-Bz6qwpNC.js")
|
|
3170
3170
|
},
|
|
3171
3171
|
{
|
|
3172
3172
|
path: "/admin/payout-accounts",
|
|
@@ -3175,7 +3175,7 @@ const Ho = () => ({
|
|
|
3175
3175
|
sidebarDisplay: "Payout Accounts",
|
|
3176
3176
|
section: "payment-gateway"
|
|
3177
3177
|
},
|
|
3178
|
-
component: () => import("./PayoutAccount-
|
|
3178
|
+
component: () => import("./PayoutAccount-PBySjzsl.js")
|
|
3179
3179
|
},
|
|
3180
3180
|
{
|
|
3181
3181
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -3184,7 +3184,7 @@ const Ho = () => ({
|
|
|
3184
3184
|
meta: {
|
|
3185
3185
|
parent: "mf-payment-admin.payout-account"
|
|
3186
3186
|
},
|
|
3187
|
-
component: () => import("./PayoutAccountSetting-
|
|
3187
|
+
component: () => import("./PayoutAccountSetting-CWAxe_Bk.js")
|
|
3188
3188
|
},
|
|
3189
3189
|
{
|
|
3190
3190
|
path: "/admin/onboarding",
|
|
@@ -3193,7 +3193,7 @@ const Ho = () => ({
|
|
|
3193
3193
|
sidebarDisplay: "Payment Onboarding",
|
|
3194
3194
|
section: "payment-gateway"
|
|
3195
3195
|
},
|
|
3196
|
-
component: () => import("./OnboardSubmission-
|
|
3196
|
+
component: () => import("./OnboardSubmission-BeP-x0v2.js")
|
|
3197
3197
|
},
|
|
3198
3198
|
{
|
|
3199
3199
|
path: "/admin/onboarding/:submissionId",
|
|
@@ -3202,7 +3202,7 @@ const Ho = () => ({
|
|
|
3202
3202
|
meta: {
|
|
3203
3203
|
parent: "mf-payment-admin.onboard-submission"
|
|
3204
3204
|
},
|
|
3205
|
-
component: () => import("./OnboardForm-
|
|
3205
|
+
component: () => import("./OnboardForm-CaOEbQ22.js")
|
|
3206
3206
|
},
|
|
3207
3207
|
{
|
|
3208
3208
|
path: "/admin/terminal/pos",
|
|
@@ -3211,7 +3211,7 @@ const Ho = () => ({
|
|
|
3211
3211
|
sidebarDisplay: "POS",
|
|
3212
3212
|
section: "device"
|
|
3213
3213
|
},
|
|
3214
|
-
component: () => import("./Terminal-
|
|
3214
|
+
component: () => import("./Terminal-DkwnRFFL.js"),
|
|
3215
3215
|
props: {
|
|
3216
3216
|
type: "POS"
|
|
3217
3217
|
}
|
|
@@ -3223,7 +3223,7 @@ const Ho = () => ({
|
|
|
3223
3223
|
sidebarDisplay: "Kiosks",
|
|
3224
3224
|
section: "device"
|
|
3225
3225
|
},
|
|
3226
|
-
component: () => import("./Terminal-
|
|
3226
|
+
component: () => import("./Terminal-DkwnRFFL.js"),
|
|
3227
3227
|
props: {
|
|
3228
3228
|
type: "KIOSK"
|
|
3229
3229
|
}
|
|
@@ -3235,7 +3235,7 @@ const Ho = () => ({
|
|
|
3235
3235
|
sidebarDisplay: "Terminals",
|
|
3236
3236
|
section: "device"
|
|
3237
3237
|
},
|
|
3238
|
-
component: () => import("./Terminal-
|
|
3238
|
+
component: () => import("./Terminal-DkwnRFFL.js"),
|
|
3239
3239
|
props: {
|
|
3240
3240
|
type: "TERMINAL"
|
|
3241
3241
|
}
|
|
@@ -3247,7 +3247,7 @@ const Ho = () => ({
|
|
|
3247
3247
|
meta: {
|
|
3248
3248
|
parent: "mf-payment-admin.pos"
|
|
3249
3249
|
},
|
|
3250
|
-
component: () => import("./TerminalSetting-
|
|
3250
|
+
component: () => import("./TerminalSetting-CGlMvxa8.js")
|
|
3251
3251
|
},
|
|
3252
3252
|
{
|
|
3253
3253
|
path: "/admin/terminal/kiosk/:terminalId",
|
|
@@ -3256,7 +3256,7 @@ const Ho = () => ({
|
|
|
3256
3256
|
meta: {
|
|
3257
3257
|
parent: "mf-payment-admin.kiosk"
|
|
3258
3258
|
},
|
|
3259
|
-
component: () => import("./TerminalSetting-
|
|
3259
|
+
component: () => import("./TerminalSetting-CGlMvxa8.js")
|
|
3260
3260
|
},
|
|
3261
3261
|
{
|
|
3262
3262
|
path: "/admin/terminal/terminal/:terminalId",
|
|
@@ -3265,7 +3265,7 @@ const Ho = () => ({
|
|
|
3265
3265
|
meta: {
|
|
3266
3266
|
parent: "mf-payment-admin.terminal"
|
|
3267
3267
|
},
|
|
3268
|
-
component: () => import("./TerminalSetting-
|
|
3268
|
+
component: () => import("./TerminalSetting-CGlMvxa8.js")
|
|
3269
3269
|
},
|
|
3270
3270
|
{
|
|
3271
3271
|
path: "/admin/transaction",
|
|
@@ -3273,7 +3273,7 @@ const Ho = () => ({
|
|
|
3273
3273
|
meta: {
|
|
3274
3274
|
sidebarDisplay: "Transactions"
|
|
3275
3275
|
},
|
|
3276
|
-
component: () => import("./Transaction-
|
|
3276
|
+
component: () => import("./Transaction-fm0B5nRC.js")
|
|
3277
3277
|
},
|
|
3278
3278
|
{
|
|
3279
3279
|
path: "/admin/chargeback",
|
|
@@ -3281,7 +3281,7 @@ const Ho = () => ({
|
|
|
3281
3281
|
meta: {
|
|
3282
3282
|
sidebarDisplay: "Chargebacks"
|
|
3283
3283
|
},
|
|
3284
|
-
component: () => import("./Chargeback-
|
|
3284
|
+
component: () => import("./Chargeback-sQQp7fCd.js")
|
|
3285
3285
|
},
|
|
3286
3286
|
{
|
|
3287
3287
|
path: "/admin/settlement",
|
|
@@ -3289,7 +3289,7 @@ const Ho = () => ({
|
|
|
3289
3289
|
meta: {
|
|
3290
3290
|
sidebarDisplay: "Settlements"
|
|
3291
3291
|
},
|
|
3292
|
-
component: () => import("./Settlement-
|
|
3292
|
+
component: () => import("./Settlement-BYZHrs8E.js")
|
|
3293
3293
|
},
|
|
3294
3294
|
{
|
|
3295
3295
|
path: "/admin/settlement/:settlementId",
|
|
@@ -3298,7 +3298,7 @@ const Ho = () => ({
|
|
|
3298
3298
|
meta: {
|
|
3299
3299
|
parent: "mf-payment-admin.settlement"
|
|
3300
3300
|
},
|
|
3301
|
-
component: () => import("./SettlementTransactions-
|
|
3301
|
+
component: () => import("./SettlementTransactions-CRPIYXVW.js")
|
|
3302
3302
|
}
|
|
3303
3303
|
].map((t) => ({
|
|
3304
3304
|
...t,
|
|
@@ -3306,7 +3306,7 @@ const Ho = () => ({
|
|
|
3306
3306
|
...t.meta,
|
|
3307
3307
|
...Ho()
|
|
3308
3308
|
}
|
|
3309
|
-
})),
|
|
3309
|
+
})), bt = [
|
|
3310
3310
|
{
|
|
3311
3311
|
path: "",
|
|
3312
3312
|
redirect: { name: "mf-payment-payout-account" }
|
|
@@ -3314,7 +3314,7 @@ const Ho = () => ({
|
|
|
3314
3314
|
{
|
|
3315
3315
|
path: "/payout-account",
|
|
3316
3316
|
name: "mf-payment-payout-account",
|
|
3317
|
-
component: () => import("./PayoutAccount-
|
|
3317
|
+
component: () => import("./PayoutAccount-DOFljBvE.js"),
|
|
3318
3318
|
meta: {
|
|
3319
3319
|
sidebarDisplay: "i18n:payment.routes.payout_account",
|
|
3320
3320
|
region: { MY: !0 },
|
|
@@ -3331,7 +3331,7 @@ const Ho = () => ({
|
|
|
3331
3331
|
{
|
|
3332
3332
|
path: "/onboard-submission",
|
|
3333
3333
|
name: "mf-payment-onboard-submission",
|
|
3334
|
-
component: () => import("./OnboardSubmission-
|
|
3334
|
+
component: () => import("./OnboardSubmission-BdRBebcC.js"),
|
|
3335
3335
|
meta: {
|
|
3336
3336
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
3337
3337
|
region: { MY: !0, TH: !0, AU: !0 },
|
|
@@ -3349,7 +3349,7 @@ const Ho = () => ({
|
|
|
3349
3349
|
path: "/onboard-submission/restaurant/:restaurantId/:type/:submission?",
|
|
3350
3350
|
name: "mf-payment-onboard-submission-form",
|
|
3351
3351
|
props: !0,
|
|
3352
|
-
component: () => import("./OnboardForm-
|
|
3352
|
+
component: () => import("./OnboardForm-9mnBqMmd.js"),
|
|
3353
3353
|
meta: {
|
|
3354
3354
|
parent: "mf-payment-onboard-submission",
|
|
3355
3355
|
validationManifest: {
|
|
@@ -3365,7 +3365,7 @@ const Ho = () => ({
|
|
|
3365
3365
|
{
|
|
3366
3366
|
path: "/transaction-old",
|
|
3367
3367
|
name: "mf-payment-old-transaction",
|
|
3368
|
-
component: () => import("./TransactionOld-
|
|
3368
|
+
component: () => import("./TransactionOld-BCUkorA2.js"),
|
|
3369
3369
|
meta: {
|
|
3370
3370
|
sidebarDisplay: "i18n:payment.routes.transaction",
|
|
3371
3371
|
validationManifest: {
|
|
@@ -3381,7 +3381,7 @@ const Ho = () => ({
|
|
|
3381
3381
|
{
|
|
3382
3382
|
path: "/transaction",
|
|
3383
3383
|
name: "mf-payment-transaction",
|
|
3384
|
-
component: () => import("./Transaction-
|
|
3384
|
+
component: () => import("./Transaction-8t3Tgjwa.js"),
|
|
3385
3385
|
meta: {
|
|
3386
3386
|
sidebarDisplay: "i18n:payment.routes.transaction_new",
|
|
3387
3387
|
sidebarNew: !0,
|
|
@@ -3398,7 +3398,7 @@ const Ho = () => ({
|
|
|
3398
3398
|
{
|
|
3399
3399
|
path: "/settlement",
|
|
3400
3400
|
name: "mf-payment-settlement",
|
|
3401
|
-
component: () => import("./Settlement-
|
|
3401
|
+
component: () => import("./Settlement-CMayu7aU.js"),
|
|
3402
3402
|
meta: {
|
|
3403
3403
|
sidebarDisplay: "i18n:payment.routes.settlement",
|
|
3404
3404
|
region: { MY: !0, SG: !0 },
|
|
@@ -3416,7 +3416,7 @@ const Ho = () => ({
|
|
|
3416
3416
|
path: "/settlement/:settlementId",
|
|
3417
3417
|
name: "mf-payment-settlement-transaction",
|
|
3418
3418
|
props: !0,
|
|
3419
|
-
component: () => import("./SettlementTransactions-
|
|
3419
|
+
component: () => import("./SettlementTransactions-CyxL85fB.js"),
|
|
3420
3420
|
meta: {
|
|
3421
3421
|
parent: "mf-payment-settlement",
|
|
3422
3422
|
validationManifest: {
|
|
@@ -3584,8 +3584,8 @@ const Vs = function(t) {
|
|
|
3584
3584
|
const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
|
3585
3585
|
for (let s = 0; s < t.length; s += 3) {
|
|
3586
3586
|
const i = t[s], a = s + 1 < t.length, c = a ? t[s + 1] : 0, l = s + 2 < t.length, A = l ? t[s + 2] : 0, f = i >> 2, p = (i & 3) << 4 | c >> 4;
|
|
3587
|
-
let B = (c & 15) << 2 | A >> 6,
|
|
3588
|
-
l || (
|
|
3587
|
+
let B = (c & 15) << 2 | A >> 6, w = A & 63;
|
|
3588
|
+
l || (w = 64, a || (B = 64)), r.push(n[f], n[p], n[B], n[w]);
|
|
3589
3589
|
}
|
|
3590
3590
|
return r.join("");
|
|
3591
3591
|
},
|
|
@@ -3639,8 +3639,8 @@ const Vs = function(t) {
|
|
|
3639
3639
|
throw new So();
|
|
3640
3640
|
const B = i << 2 | c >> 4;
|
|
3641
3641
|
if (r.push(B), A !== 64) {
|
|
3642
|
-
const
|
|
3643
|
-
if (r.push(
|
|
3642
|
+
const w = c << 4 & 240 | A >> 2;
|
|
3643
|
+
if (r.push(w), p !== 64) {
|
|
3644
3644
|
const O = A << 6 & 192 | p;
|
|
3645
3645
|
r.push(O);
|
|
3646
3646
|
}
|
|
@@ -3872,10 +3872,10 @@ function sc() {
|
|
|
3872
3872
|
const ic = "FirebaseError";
|
|
3873
3873
|
class qe extends Error {
|
|
3874
3874
|
constructor(e, n, r) {
|
|
3875
|
-
super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this,
|
|
3875
|
+
super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Pt.prototype.create);
|
|
3876
3876
|
}
|
|
3877
3877
|
}
|
|
3878
|
-
class
|
|
3878
|
+
class Pt {
|
|
3879
3879
|
constructor(e, n, r) {
|
|
3880
3880
|
this.service = e, this.serviceName = n, this.errors = r;
|
|
3881
3881
|
}
|
|
@@ -3897,7 +3897,7 @@ function cc(t) {
|
|
|
3897
3897
|
return !1;
|
|
3898
3898
|
return !0;
|
|
3899
3899
|
}
|
|
3900
|
-
function
|
|
3900
|
+
function Wt(t, e) {
|
|
3901
3901
|
if (t === e)
|
|
3902
3902
|
return !0;
|
|
3903
3903
|
const n = Object.keys(t), r = Object.keys(e);
|
|
@@ -3906,7 +3906,7 @@ function Ut(t, e) {
|
|
|
3906
3906
|
return !1;
|
|
3907
3907
|
const i = t[s], a = e[s];
|
|
3908
3908
|
if (ur(i) && ur(a)) {
|
|
3909
|
-
if (!
|
|
3909
|
+
if (!Wt(i, a))
|
|
3910
3910
|
return !1;
|
|
3911
3911
|
} else if (i !== a)
|
|
3912
3912
|
return !1;
|
|
@@ -3935,7 +3935,7 @@ function ur(t) {
|
|
|
3935
3935
|
* See the License for the specific language governing permissions and
|
|
3936
3936
|
* limitations under the License.
|
|
3937
3937
|
*/
|
|
3938
|
-
function
|
|
3938
|
+
function Ot(t) {
|
|
3939
3939
|
const e = [];
|
|
3940
3940
|
for (const [n, r] of Object.entries(t))
|
|
3941
3941
|
Array.isArray(r) ? r.forEach((s) => {
|
|
@@ -4428,9 +4428,9 @@ class Ns {
|
|
|
4428
4428
|
this._userLogHandler && this._userLogHandler(this, F.ERROR, ...e), this._logHandler(this, F.ERROR, ...e);
|
|
4429
4429
|
}
|
|
4430
4430
|
}
|
|
4431
|
-
const
|
|
4431
|
+
const vc = (t, e) => e.some((n) => t instanceof n);
|
|
4432
4432
|
let lr, Ar;
|
|
4433
|
-
function
|
|
4433
|
+
function wc() {
|
|
4434
4434
|
return lr || (lr = [
|
|
4435
4435
|
IDBDatabase,
|
|
4436
4436
|
IDBObjectStore,
|
|
@@ -4511,7 +4511,7 @@ function Mc(t) {
|
|
|
4511
4511
|
};
|
|
4512
4512
|
}
|
|
4513
4513
|
function Ic(t) {
|
|
4514
|
-
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t),
|
|
4514
|
+
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), vc(t, wc()) ? new Proxy(t, Mn) : t);
|
|
4515
4515
|
}
|
|
4516
4516
|
function Fe(t) {
|
|
4517
4517
|
if (t instanceof IDBRequest)
|
|
@@ -4616,7 +4616,7 @@ const In = "@firebase/app", hr = "0.10.13";
|
|
|
4616
4616
|
* See the License for the specific language governing permissions and
|
|
4617
4617
|
* limitations under the License.
|
|
4618
4618
|
*/
|
|
4619
|
-
const
|
|
4619
|
+
const we = new Ns("@firebase/app"), Yc = "@firebase/app-compat", Vc = "@firebase/analytics-compat", xc = "@firebase/analytics", Fc = "@firebase/app-check-compat", kc = "@firebase/app-check", Rc = "@firebase/auth", qc = "@firebase/auth-compat", Nc = "@firebase/database", Hc = "@firebase/data-connect", Qc = "@firebase/database-compat", Xc = "@firebase/functions", Sc = "@firebase/functions-compat", Uc = "@firebase/installations", Wc = "@firebase/installations-compat", zc = "@firebase/messaging", Zc = "@firebase/messaging-compat", Lc = "@firebase/performance", Kc = "@firebase/performance-compat", Jc = "@firebase/remote-config", _c = "@firebase/remote-config-compat", $c = "@firebase/storage", eu = "@firebase/storage-compat", tu = "@firebase/firestore", nu = "@firebase/vertexai-preview", ru = "@firebase/firestore-compat", su = "firebase", iu = "10.14.1";
|
|
4620
4620
|
/**
|
|
4621
4621
|
* @license
|
|
4622
4622
|
* Copyright 2019 Google LLC
|
|
@@ -4679,20 +4679,20 @@ const Pn = "[DEFAULT]", au = {
|
|
|
4679
4679
|
* See the License for the specific language governing permissions and
|
|
4680
4680
|
* limitations under the License.
|
|
4681
4681
|
*/
|
|
4682
|
-
const
|
|
4682
|
+
const zt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), On = /* @__PURE__ */ new Map();
|
|
4683
4683
|
function mr(t, e) {
|
|
4684
4684
|
try {
|
|
4685
4685
|
t.container.addComponent(e);
|
|
4686
4686
|
} catch (n) {
|
|
4687
|
-
|
|
4687
|
+
we.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
|
|
4688
4688
|
}
|
|
4689
4689
|
}
|
|
4690
|
-
function
|
|
4690
|
+
function vt(t) {
|
|
4691
4691
|
const e = t.name;
|
|
4692
4692
|
if (On.has(e))
|
|
4693
|
-
return
|
|
4693
|
+
return we.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
4694
4694
|
On.set(e, t);
|
|
4695
|
-
for (const n of
|
|
4695
|
+
for (const n of zt.values())
|
|
4696
4696
|
mr(n, t);
|
|
4697
4697
|
for (const n of ou.values())
|
|
4698
4698
|
mr(n, t);
|
|
@@ -4736,7 +4736,7 @@ const cu = {
|
|
|
4736
4736
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
|
4737
4737
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
|
4738
4738
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
|
4739
|
-
}, ke = new
|
|
4739
|
+
}, ke = new Pt("app", "Firebase", cu);
|
|
4740
4740
|
/**
|
|
4741
4741
|
* @license
|
|
4742
4742
|
* Copyright 2019 Google LLC
|
|
@@ -4811,7 +4811,7 @@ class uu {
|
|
|
4811
4811
|
* See the License for the specific language governing permissions and
|
|
4812
4812
|
* limitations under the License.
|
|
4813
4813
|
*/
|
|
4814
|
-
const
|
|
4814
|
+
const Tt = iu;
|
|
4815
4815
|
function Ss(t, e = {}) {
|
|
4816
4816
|
let n = t;
|
|
4817
4817
|
typeof e != "object" && (e = { name: e });
|
|
@@ -4825,9 +4825,9 @@ function Ss(t, e = {}) {
|
|
|
4825
4825
|
"no-options"
|
|
4826
4826
|
/* AppError.NO_OPTIONS */
|
|
4827
4827
|
);
|
|
4828
|
-
const i =
|
|
4828
|
+
const i = zt.get(s);
|
|
4829
4829
|
if (i) {
|
|
4830
|
-
if (
|
|
4830
|
+
if (Wt(n, i.options) && Wt(r, i.config))
|
|
4831
4831
|
return i;
|
|
4832
4832
|
throw ke.create("duplicate-app", { appName: s });
|
|
4833
4833
|
}
|
|
@@ -4835,10 +4835,10 @@ function Ss(t, e = {}) {
|
|
|
4835
4835
|
for (const l of On.values())
|
|
4836
4836
|
a.addComponent(l);
|
|
4837
4837
|
const c = new uu(n, r, a);
|
|
4838
|
-
return
|
|
4838
|
+
return zt.set(s, c), c;
|
|
4839
4839
|
}
|
|
4840
4840
|
function lu(t = Pn) {
|
|
4841
|
-
const e =
|
|
4841
|
+
const e = zt.get(t);
|
|
4842
4842
|
if (!e && t === Pn && Rs())
|
|
4843
4843
|
return Ss();
|
|
4844
4844
|
if (!e)
|
|
@@ -4854,10 +4854,10 @@ function $e(t, e, n) {
|
|
|
4854
4854
|
const c = [
|
|
4855
4855
|
`Unable to register library "${s}" with version "${e}":`
|
|
4856
4856
|
];
|
|
4857
|
-
i && c.push(`library name "${s}" contains illegal characters (whitespace or "/")`), i && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`),
|
|
4857
|
+
i && c.push(`library name "${s}" contains illegal characters (whitespace or "/")`), i && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), we.warn(c.join(" "));
|
|
4858
4858
|
return;
|
|
4859
4859
|
}
|
|
4860
|
-
|
|
4860
|
+
vt(new dt(
|
|
4861
4861
|
`${s}-version`,
|
|
4862
4862
|
() => ({ library: s, version: e }),
|
|
4863
4863
|
"VERSION"
|
|
@@ -4906,12 +4906,12 @@ async function hu(t) {
|
|
|
4906
4906
|
return await n.done, r;
|
|
4907
4907
|
} catch (e) {
|
|
4908
4908
|
if (e instanceof qe)
|
|
4909
|
-
|
|
4909
|
+
we.warn(e.message);
|
|
4910
4910
|
else {
|
|
4911
4911
|
const n = ke.create("idb-get", {
|
|
4912
4912
|
originalErrorMessage: e == null ? void 0 : e.message
|
|
4913
4913
|
});
|
|
4914
|
-
|
|
4914
|
+
we.warn(n.message);
|
|
4915
4915
|
}
|
|
4916
4916
|
}
|
|
4917
4917
|
}
|
|
@@ -4921,12 +4921,12 @@ async function fr(t, e) {
|
|
|
4921
4921
|
await r.objectStore(wt).put(e, Ws(t)), await r.done;
|
|
4922
4922
|
} catch (n) {
|
|
4923
4923
|
if (n instanceof qe)
|
|
4924
|
-
|
|
4924
|
+
we.warn(n.message);
|
|
4925
4925
|
else {
|
|
4926
4926
|
const r = ke.create("idb-set", {
|
|
4927
4927
|
originalErrorMessage: n == null ? void 0 : n.message
|
|
4928
4928
|
});
|
|
4929
|
-
|
|
4929
|
+
we.warn(r.message);
|
|
4930
4930
|
}
|
|
4931
4931
|
}
|
|
4932
4932
|
}
|
|
@@ -4972,7 +4972,7 @@ class gu {
|
|
|
4972
4972
|
return Date.now() - c <= fu;
|
|
4973
4973
|
}), this._storage.overwrite(this._heartbeatsCache));
|
|
4974
4974
|
} catch (r) {
|
|
4975
|
-
|
|
4975
|
+
we.warn(r);
|
|
4976
4976
|
}
|
|
4977
4977
|
}
|
|
4978
4978
|
/**
|
|
@@ -4990,7 +4990,7 @@ class gu {
|
|
|
4990
4990
|
const n = gr(), { heartbeatsToSend: r, unsentEntries: s } = pu(this._heartbeatsCache.heartbeats), i = Fs(JSON.stringify({ version: 2, heartbeats: r }));
|
|
4991
4991
|
return this._heartbeatsCache.lastSentHeartbeatDate = n, s.length > 0 ? (this._heartbeatsCache.heartbeats = s, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), i;
|
|
4992
4992
|
} catch (n) {
|
|
4993
|
-
return
|
|
4993
|
+
return we.warn(n), "";
|
|
4994
4994
|
}
|
|
4995
4995
|
}
|
|
4996
4996
|
}
|
|
@@ -5089,12 +5089,12 @@ function pr(t) {
|
|
|
5089
5089
|
* limitations under the License.
|
|
5090
5090
|
*/
|
|
5091
5091
|
function bu(t) {
|
|
5092
|
-
|
|
5092
|
+
vt(new dt(
|
|
5093
5093
|
"platform-logger",
|
|
5094
5094
|
(e) => new Gc(e),
|
|
5095
5095
|
"PRIVATE"
|
|
5096
5096
|
/* ComponentType.PRIVATE */
|
|
5097
|
-
)),
|
|
5097
|
+
)), vt(new dt(
|
|
5098
5098
|
"heartbeat",
|
|
5099
5099
|
(e) => new gu(e),
|
|
5100
5100
|
"PRIVATE"
|
|
@@ -5102,7 +5102,7 @@ function bu(t) {
|
|
|
5102
5102
|
)), $e(In, hr, t), $e(In, hr, "esm2017"), $e("fire-js", "");
|
|
5103
5103
|
}
|
|
5104
5104
|
bu("");
|
|
5105
|
-
var
|
|
5105
|
+
var vu = "firebase", wu = "10.14.1";
|
|
5106
5106
|
/**
|
|
5107
5107
|
* @license
|
|
5108
5108
|
* Copyright 2020 Google LLC
|
|
@@ -5119,7 +5119,7 @@ var wu = "firebase", vu = "10.14.1";
|
|
|
5119
5119
|
* See the License for the specific language governing permissions and
|
|
5120
5120
|
* limitations under the License.
|
|
5121
5121
|
*/
|
|
5122
|
-
$e(
|
|
5122
|
+
$e(vu, wu, "app");
|
|
5123
5123
|
var yr = function() {
|
|
5124
5124
|
return yr = Object.assign || function(e) {
|
|
5125
5125
|
for (var n, r = 1, s = arguments.length; r < s; r++) {
|
|
@@ -5142,7 +5142,7 @@ function zs() {
|
|
|
5142
5142
|
"dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
|
|
5143
5143
|
};
|
|
5144
5144
|
}
|
|
5145
|
-
const Bu = zs, Zs = new
|
|
5145
|
+
const Bu = zs, Zs = new Pt("auth", "Firebase", zs());
|
|
5146
5146
|
/**
|
|
5147
5147
|
* @license
|
|
5148
5148
|
* Copyright 2020 Google LLC
|
|
@@ -5159,12 +5159,12 @@ const Bu = zs, Zs = new It("auth", "Firebase", zs());
|
|
|
5159
5159
|
* See the License for the specific language governing permissions and
|
|
5160
5160
|
* limitations under the License.
|
|
5161
5161
|
*/
|
|
5162
|
-
const
|
|
5162
|
+
const Zt = new Ns("@firebase/auth");
|
|
5163
5163
|
function Du(t, ...e) {
|
|
5164
|
-
|
|
5164
|
+
Zt.logLevel <= F.WARN && Zt.warn(`Auth (${Tt}): ${t}`, ...e);
|
|
5165
5165
|
}
|
|
5166
|
-
function
|
|
5167
|
-
|
|
5166
|
+
function Nt(t, ...e) {
|
|
5167
|
+
Zt.logLevel <= F.ERROR && Zt.error(`Auth (${Tt}): ${t}`, ...e);
|
|
5168
5168
|
}
|
|
5169
5169
|
/**
|
|
5170
5170
|
* @license
|
|
@@ -5190,7 +5190,7 @@ function Ae(t, ...e) {
|
|
|
5190
5190
|
}
|
|
5191
5191
|
function Ls(t, e, n) {
|
|
5192
5192
|
const r = Object.assign(Object.assign({}, Bu()), { [e]: n });
|
|
5193
|
-
return new
|
|
5193
|
+
return new Pt("auth", "Firebase", r).create(e, {
|
|
5194
5194
|
appName: t.name
|
|
5195
5195
|
});
|
|
5196
5196
|
}
|
|
@@ -5210,7 +5210,7 @@ function M(t, e, ...n) {
|
|
|
5210
5210
|
}
|
|
5211
5211
|
function ye(t) {
|
|
5212
5212
|
const e = "INTERNAL ASSERTION FAILED: " + t;
|
|
5213
|
-
throw
|
|
5213
|
+
throw Nt(e), new Error(e);
|
|
5214
5214
|
}
|
|
5215
5215
|
function De(t, e) {
|
|
5216
5216
|
t || ye(e);
|
|
@@ -5294,7 +5294,7 @@ function Mu() {
|
|
|
5294
5294
|
* See the License for the specific language governing permissions and
|
|
5295
5295
|
* limitations under the License.
|
|
5296
5296
|
*/
|
|
5297
|
-
class
|
|
5297
|
+
class Gt {
|
|
5298
5298
|
constructor(e, n) {
|
|
5299
5299
|
this.shortDelay = e, this.longDelay = n, De(n > e, "Short delay should be less than long delay!"), this.isMobile = _o() || tc();
|
|
5300
5300
|
}
|
|
@@ -5484,7 +5484,7 @@ const Iu = {
|
|
|
5484
5484
|
* See the License for the specific language governing permissions and
|
|
5485
5485
|
* limitations under the License.
|
|
5486
5486
|
*/
|
|
5487
|
-
const Pu = new
|
|
5487
|
+
const Pu = new Gt(3e4, 6e4);
|
|
5488
5488
|
function sn(t, e) {
|
|
5489
5489
|
return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
|
|
5490
5490
|
}
|
|
@@ -5494,7 +5494,7 @@ async function mt(t, e, n, r, s = {}) {
|
|
|
5494
5494
|
r && (e === "GET" ? a = r : i = {
|
|
5495
5495
|
body: JSON.stringify(r)
|
|
5496
5496
|
});
|
|
5497
|
-
const c =
|
|
5497
|
+
const c = Ot(Object.assign({ key: t.config.apiKey }, a)).slice(1), l = await t._getAdditionalHeaders();
|
|
5498
5498
|
l[
|
|
5499
5499
|
"Content-Type"
|
|
5500
5500
|
/* HttpHeader.CONTENT_TYPE */
|
|
@@ -5520,17 +5520,17 @@ async function Js(t, e, n) {
|
|
|
5520
5520
|
s.clearNetworkTimeout();
|
|
5521
5521
|
const a = await i.json();
|
|
5522
5522
|
if ("needConfirmation" in a)
|
|
5523
|
-
throw
|
|
5523
|
+
throw kt(t, "account-exists-with-different-credential", a);
|
|
5524
5524
|
if (i.ok && !("errorMessage" in a))
|
|
5525
5525
|
return a;
|
|
5526
5526
|
{
|
|
5527
5527
|
const c = i.ok ? a.errorMessage : a.error.message, [l, A] = c.split(" : ");
|
|
5528
5528
|
if (l === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
5529
|
-
throw
|
|
5529
|
+
throw kt(t, "credential-already-in-use", a);
|
|
5530
5530
|
if (l === "EMAIL_EXISTS")
|
|
5531
|
-
throw
|
|
5531
|
+
throw kt(t, "email-already-in-use", a);
|
|
5532
5532
|
if (l === "USER_DISABLED")
|
|
5533
|
-
throw
|
|
5533
|
+
throw kt(t, "user-disabled", a);
|
|
5534
5534
|
const f = r[l] || l.toLowerCase().replace(/[_\s]+/g, "-");
|
|
5535
5535
|
if (A)
|
|
5536
5536
|
throw Ls(t, f, A);
|
|
@@ -5566,7 +5566,7 @@ class Ou {
|
|
|
5566
5566
|
clearTimeout(this.timer);
|
|
5567
5567
|
}
|
|
5568
5568
|
}
|
|
5569
|
-
function
|
|
5569
|
+
function kt(t, e, n) {
|
|
5570
5570
|
const r = {
|
|
5571
5571
|
appName: t.name
|
|
5572
5572
|
};
|
|
@@ -5646,15 +5646,15 @@ function yn(t) {
|
|
|
5646
5646
|
function Ln(t) {
|
|
5647
5647
|
const [e, n, r] = t.split(".");
|
|
5648
5648
|
if (e === void 0 || n === void 0 || r === void 0)
|
|
5649
|
-
return
|
|
5649
|
+
return Nt("JWT malformed, contained fewer than 3 sections"), null;
|
|
5650
5650
|
try {
|
|
5651
5651
|
const s = ks(n);
|
|
5652
|
-
return s ? JSON.parse(s) : (
|
|
5652
|
+
return s ? JSON.parse(s) : (Nt("Failed to decode base64 JWT payload"), null);
|
|
5653
5653
|
} catch (s) {
|
|
5654
|
-
return
|
|
5654
|
+
return Nt("Caught error parsing JWT payload as JSON", s == null ? void 0 : s.toString()), null;
|
|
5655
5655
|
}
|
|
5656
5656
|
}
|
|
5657
|
-
function
|
|
5657
|
+
function vr(t) {
|
|
5658
5658
|
const e = Ln(t);
|
|
5659
5659
|
return M(
|
|
5660
5660
|
e,
|
|
@@ -5686,7 +5686,7 @@ function wr(t) {
|
|
|
5686
5686
|
* See the License for the specific language governing permissions and
|
|
5687
5687
|
* limitations under the License.
|
|
5688
5688
|
*/
|
|
5689
|
-
async function
|
|
5689
|
+
async function Bt(t, e, n = !1) {
|
|
5690
5690
|
if (n)
|
|
5691
5691
|
return e;
|
|
5692
5692
|
try {
|
|
@@ -5809,9 +5809,9 @@ class Gn {
|
|
|
5809
5809
|
* See the License for the specific language governing permissions and
|
|
5810
5810
|
* limitations under the License.
|
|
5811
5811
|
*/
|
|
5812
|
-
async function
|
|
5812
|
+
async function Lt(t) {
|
|
5813
5813
|
var e;
|
|
5814
|
-
const n = t.auth, r = await t.getIdToken(), s = await
|
|
5814
|
+
const n = t.auth, r = await t.getIdToken(), s = await Bt(t, ei(n, { idToken: r }));
|
|
5815
5815
|
M(
|
|
5816
5816
|
s == null ? void 0 : s.users.length,
|
|
5817
5817
|
n,
|
|
@@ -5836,7 +5836,7 @@ async function Zt(t) {
|
|
|
5836
5836
|
}
|
|
5837
5837
|
async function Vu(t) {
|
|
5838
5838
|
const e = ht(t);
|
|
5839
|
-
await
|
|
5839
|
+
await Lt(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
5840
5840
|
}
|
|
5841
5841
|
function xu(t, e) {
|
|
5842
5842
|
return [...t.filter((r) => !e.some((s) => s.providerId === r.providerId)), ...e];
|
|
@@ -5872,7 +5872,7 @@ function ti(t) {
|
|
|
5872
5872
|
*/
|
|
5873
5873
|
async function Fu(t, e) {
|
|
5874
5874
|
const n = await Js(t, {}, async () => {
|
|
5875
|
-
const r =
|
|
5875
|
+
const r = Ot({
|
|
5876
5876
|
grant_type: "refresh_token",
|
|
5877
5877
|
refresh_token: e
|
|
5878
5878
|
}).slice(1), { tokenApiHost: s, apiKey: i } = t.config, a = $s(t, s, "/v1/token", `key=${i}`), c = await t._getAdditionalHeaders();
|
|
@@ -5931,7 +5931,7 @@ class et {
|
|
|
5931
5931
|
"internal-error"
|
|
5932
5932
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5933
5933
|
);
|
|
5934
|
-
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) :
|
|
5934
|
+
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : vr(e.idToken);
|
|
5935
5935
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, n);
|
|
5936
5936
|
}
|
|
5937
5937
|
updateFromIdToken(e) {
|
|
@@ -5940,7 +5940,7 @@ class et {
|
|
|
5940
5940
|
"internal-error"
|
|
5941
5941
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5942
5942
|
);
|
|
5943
|
-
const n =
|
|
5943
|
+
const n = vr(e);
|
|
5944
5944
|
this.updateTokensAndExpiration(e, null, n);
|
|
5945
5945
|
}
|
|
5946
5946
|
async getToken(e, n = !1) {
|
|
@@ -6013,7 +6013,7 @@ class be {
|
|
|
6013
6013
|
this.providerId = "firebase", this.proactiveRefresh = new Yu(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = s, this.accessToken = s.accessToken, this.displayName = i.displayName || null, this.email = i.email || null, this.emailVerified = i.emailVerified || !1, this.phoneNumber = i.phoneNumber || null, this.photoURL = i.photoURL || null, this.isAnonymous = i.isAnonymous || !1, this.tenantId = i.tenantId || null, this.providerData = i.providerData ? [...i.providerData] : [], this.metadata = new Gn(i.createdAt || void 0, i.lastLoginAt || void 0);
|
|
6014
6014
|
}
|
|
6015
6015
|
async getIdToken(e) {
|
|
6016
|
-
const n = await
|
|
6016
|
+
const n = await Bt(this, this.stsTokenManager.getToken(this.auth, e));
|
|
6017
6017
|
return M(
|
|
6018
6018
|
n,
|
|
6019
6019
|
this.auth,
|
|
@@ -6058,13 +6058,13 @@ class be {
|
|
|
6058
6058
|
}
|
|
6059
6059
|
async _updateTokensIfNecessary(e, n = !1) {
|
|
6060
6060
|
let r = !1;
|
|
6061
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await
|
|
6061
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await Lt(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
|
6062
6062
|
}
|
|
6063
6063
|
async delete() {
|
|
6064
6064
|
if (pe(this.auth.app))
|
|
6065
6065
|
return Promise.reject(Re(this.auth));
|
|
6066
6066
|
const e = await this.getIdToken();
|
|
6067
|
-
return await
|
|
6067
|
+
return await Bt(this, Tu(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
6068
6068
|
}
|
|
6069
6069
|
toJSON() {
|
|
6070
6070
|
return Object.assign(Object.assign({
|
|
@@ -6092,7 +6092,7 @@ class be {
|
|
|
6092
6092
|
}
|
|
6093
6093
|
static _fromJSON(e, n) {
|
|
6094
6094
|
var r, s, i, a, c, l, A, f;
|
|
6095
|
-
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0,
|
|
6095
|
+
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0, w = (i = n.phoneNumber) !== null && i !== void 0 ? i : void 0, O = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, I = (c = n.tenantId) !== null && c !== void 0 ? c : void 0, V = (l = n._redirectEventId) !== null && l !== void 0 ? l : void 0, R = (A = n.createdAt) !== null && A !== void 0 ? A : void 0, Q = (f = n.lastLoginAt) !== null && f !== void 0 ? f : void 0, { uid: Y, emailVerified: v, isAnonymous: H, providerData: U, stsTokenManager: ee } = n;
|
|
6096
6096
|
M(
|
|
6097
6097
|
Y && ee,
|
|
6098
6098
|
e,
|
|
@@ -6106,7 +6106,7 @@ class be {
|
|
|
6106
6106
|
"internal-error"
|
|
6107
6107
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6108
6108
|
), Ee(p, e.name), Ee(B, e.name), M(
|
|
6109
|
-
typeof
|
|
6109
|
+
typeof v == "boolean",
|
|
6110
6110
|
e,
|
|
6111
6111
|
"internal-error"
|
|
6112
6112
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -6115,16 +6115,16 @@ class be {
|
|
|
6115
6115
|
e,
|
|
6116
6116
|
"internal-error"
|
|
6117
6117
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6118
|
-
), Ee(
|
|
6118
|
+
), Ee(w, e.name), Ee(O, e.name), Ee(I, e.name), Ee(V, e.name), Ee(R, e.name), Ee(Q, e.name);
|
|
6119
6119
|
const u = new be({
|
|
6120
6120
|
uid: Y,
|
|
6121
6121
|
auth: e,
|
|
6122
6122
|
email: B,
|
|
6123
|
-
emailVerified:
|
|
6123
|
+
emailVerified: v,
|
|
6124
6124
|
displayName: p,
|
|
6125
6125
|
isAnonymous: H,
|
|
6126
6126
|
photoURL: O,
|
|
6127
|
-
phoneNumber:
|
|
6127
|
+
phoneNumber: w,
|
|
6128
6128
|
tenantId: I,
|
|
6129
6129
|
stsTokenManager: q,
|
|
6130
6130
|
createdAt: R,
|
|
@@ -6146,7 +6146,7 @@ class be {
|
|
|
6146
6146
|
stsTokenManager: s,
|
|
6147
6147
|
isAnonymous: r
|
|
6148
6148
|
});
|
|
6149
|
-
return await
|
|
6149
|
+
return await Lt(i), i;
|
|
6150
6150
|
}
|
|
6151
6151
|
/**
|
|
6152
6152
|
* Initialize a User from an idToken server response
|
|
@@ -6198,11 +6198,11 @@ class be {
|
|
|
6198
6198
|
* See the License for the specific language governing permissions and
|
|
6199
6199
|
* limitations under the License.
|
|
6200
6200
|
*/
|
|
6201
|
-
const
|
|
6202
|
-
function
|
|
6201
|
+
const wr = /* @__PURE__ */ new Map();
|
|
6202
|
+
function ve(t) {
|
|
6203
6203
|
De(t instanceof Function, "Expected a class definition");
|
|
6204
|
-
let e =
|
|
6205
|
-
return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(),
|
|
6204
|
+
let e = wr.get(t);
|
|
6205
|
+
return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), wr.set(t, e), e);
|
|
6206
6206
|
}
|
|
6207
6207
|
/**
|
|
6208
6208
|
* @license
|
|
@@ -6260,14 +6260,14 @@ const Br = ni;
|
|
|
6260
6260
|
* See the License for the specific language governing permissions and
|
|
6261
6261
|
* limitations under the License.
|
|
6262
6262
|
*/
|
|
6263
|
-
function
|
|
6263
|
+
function Ht(t, e, n) {
|
|
6264
6264
|
return `firebase:${t}:${e}:${n}`;
|
|
6265
6265
|
}
|
|
6266
6266
|
class tt {
|
|
6267
6267
|
constructor(e, n, r) {
|
|
6268
6268
|
this.persistence = e, this.auth = n, this.userKey = r;
|
|
6269
6269
|
const { config: s, name: i } = this.auth;
|
|
6270
|
-
this.fullUserKey =
|
|
6270
|
+
this.fullUserKey = Ht(this.userKey, s.apiKey, i), this.fullPersistenceKey = Ht("persistence", s.apiKey, i), this.boundEventHandler = n._onStorageEvent.bind(n), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
|
|
6271
6271
|
}
|
|
6272
6272
|
setCurrentUser(e) {
|
|
6273
6273
|
return this.persistence._set(this.fullUserKey, e.toJSON());
|
|
@@ -6294,13 +6294,13 @@ class tt {
|
|
|
6294
6294
|
}
|
|
6295
6295
|
static async create(e, n, r = "authUser") {
|
|
6296
6296
|
if (!n.length)
|
|
6297
|
-
return new tt(
|
|
6297
|
+
return new tt(ve(Br), e, r);
|
|
6298
6298
|
const s = (await Promise.all(n.map(async (A) => {
|
|
6299
6299
|
if (await A._isAvailable())
|
|
6300
6300
|
return A;
|
|
6301
6301
|
}))).filter((A) => A);
|
|
6302
|
-
let i = s[0] ||
|
|
6303
|
-
const a =
|
|
6302
|
+
let i = s[0] || ve(Br);
|
|
6303
|
+
const a = Ht(r, e.config.apiKey, e.name);
|
|
6304
6304
|
let c = null;
|
|
6305
6305
|
for (const A of n)
|
|
6306
6306
|
try {
|
|
@@ -6433,7 +6433,7 @@ function Ai(t, e = []) {
|
|
|
6433
6433
|
n = t;
|
|
6434
6434
|
}
|
|
6435
6435
|
const r = e.length ? e.join(",") : "FirebaseCore-web";
|
|
6436
|
-
return `${n}/JsCore/${
|
|
6436
|
+
return `${n}/JsCore/${Tt}/${r}`;
|
|
6437
6437
|
}
|
|
6438
6438
|
/**
|
|
6439
6439
|
* @license
|
|
@@ -6618,7 +6618,7 @@ class Su {
|
|
|
6618
6618
|
this.app = e, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = r, this.config = s, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Cr(this), this.idTokenSubscription = new Cr(this), this.beforeStateQueue = new Nu(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Zs, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = s.sdkClientVersion;
|
|
6619
6619
|
}
|
|
6620
6620
|
_initializeWithPersistence(e, n) {
|
|
6621
|
-
return n && (this._popupRedirectResolver =
|
|
6621
|
+
return n && (this._popupRedirectResolver = ve(n)), this._initializationPromise = this.queue(async () => {
|
|
6622
6622
|
var r, s;
|
|
6623
6623
|
if (!this._deleted && (this.persistenceManager = await tt.create(this, e), !this._deleted)) {
|
|
6624
6624
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
|
@@ -6701,7 +6701,7 @@ class Su {
|
|
|
6701
6701
|
}
|
|
6702
6702
|
async reloadAndSetCurrentUserOrClear(e) {
|
|
6703
6703
|
try {
|
|
6704
|
-
await
|
|
6704
|
+
await Lt(e);
|
|
6705
6705
|
} catch (n) {
|
|
6706
6706
|
if ((n == null ? void 0 : n.code) !== "auth/network-request-failed")
|
|
6707
6707
|
return this.directlySetCurrentUser(null);
|
|
@@ -6745,7 +6745,7 @@ class Su {
|
|
|
6745
6745
|
}
|
|
6746
6746
|
setPersistence(e) {
|
|
6747
6747
|
return pe(this.app) ? Promise.reject(Re(this)) : this.queue(async () => {
|
|
6748
|
-
await this.assertedPersistence.setPersistence(
|
|
6748
|
+
await this.assertedPersistence.setPersistence(ve(e));
|
|
6749
6749
|
});
|
|
6750
6750
|
}
|
|
6751
6751
|
_getRecaptchaConfig() {
|
|
@@ -6767,7 +6767,7 @@ class Su {
|
|
|
6767
6767
|
return this.assertedPersistence.persistence.type;
|
|
6768
6768
|
}
|
|
6769
6769
|
_updateErrorMap(e) {
|
|
6770
|
-
this._errorFactory = new
|
|
6770
|
+
this._errorFactory = new Pt("auth", "Firebase", e());
|
|
6771
6771
|
}
|
|
6772
6772
|
onAuthStateChanged(e, n, r) {
|
|
6773
6773
|
return this.registerStateListener(this.authStateSubscription, e, n, r);
|
|
@@ -6818,7 +6818,7 @@ class Su {
|
|
|
6818
6818
|
}
|
|
6819
6819
|
async getOrInitRedirectPersistenceManager(e) {
|
|
6820
6820
|
if (!this.redirectPersistenceManager) {
|
|
6821
|
-
const n = e &&
|
|
6821
|
+
const n = e && ve(e) || this._popupRedirectResolver;
|
|
6822
6822
|
M(
|
|
6823
6823
|
n,
|
|
6824
6824
|
this,
|
|
@@ -6826,7 +6826,7 @@ class Su {
|
|
|
6826
6826
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
6827
6827
|
), this.redirectPersistenceManager = await tt.create(
|
|
6828
6828
|
this,
|
|
6829
|
-
[
|
|
6829
|
+
[ve(n._redirectPersistence)],
|
|
6830
6830
|
"redirectUser"
|
|
6831
6831
|
/* KeyName.REDIRECT_USER */
|
|
6832
6832
|
), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
|
|
@@ -7018,7 +7018,7 @@ function Lu(t, e) {
|
|
|
7018
7018
|
const n = Xs(t, "auth");
|
|
7019
7019
|
if (n.isInitialized()) {
|
|
7020
7020
|
const s = n.getImmediate(), i = n.getOptions();
|
|
7021
|
-
if (
|
|
7021
|
+
if (Wt(i, e ?? {}))
|
|
7022
7022
|
return s;
|
|
7023
7023
|
Be(
|
|
7024
7024
|
s,
|
|
@@ -7029,7 +7029,7 @@ function Lu(t, e) {
|
|
|
7029
7029
|
return n.initialize({ options: e });
|
|
7030
7030
|
}
|
|
7031
7031
|
function Ku(t, e) {
|
|
7032
|
-
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(
|
|
7032
|
+
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(ve);
|
|
7033
7033
|
e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
7034
7034
|
}
|
|
7035
7035
|
function Ju(t, e, n) {
|
|
@@ -7225,7 +7225,7 @@ class Ze extends hi {
|
|
|
7225
7225
|
e.pendingToken = this.pendingToken;
|
|
7226
7226
|
else {
|
|
7227
7227
|
const n = {};
|
|
7228
|
-
this.idToken && (n.id_token = this.idToken), this.accessToken && (n.access_token = this.accessToken), this.secret && (n.oauth_token_secret = this.secret), n.providerId = this.providerId, this.nonce && !this.pendingToken && (n.nonce = this.nonce), e.postBody =
|
|
7228
|
+
this.idToken && (n.id_token = this.idToken), this.accessToken && (n.access_token = this.accessToken), this.secret && (n.oauth_token_secret = this.secret), n.providerId = this.providerId, this.nonce && !this.pendingToken && (n.nonce = this.nonce), e.postBody = Ot(n);
|
|
7229
7229
|
}
|
|
7230
7230
|
return e;
|
|
7231
7231
|
}
|
|
@@ -7299,7 +7299,7 @@ class mi {
|
|
|
7299
7299
|
* See the License for the specific language governing permissions and
|
|
7300
7300
|
* limitations under the License.
|
|
7301
7301
|
*/
|
|
7302
|
-
class
|
|
7302
|
+
class jt extends mi {
|
|
7303
7303
|
constructor() {
|
|
7304
7304
|
super(...arguments), this.scopes = [];
|
|
7305
7305
|
}
|
|
@@ -7334,7 +7334,7 @@ class Gt extends mi {
|
|
|
7334
7334
|
* See the License for the specific language governing permissions and
|
|
7335
7335
|
* limitations under the License.
|
|
7336
7336
|
*/
|
|
7337
|
-
class Ie extends
|
|
7337
|
+
class Ie extends jt {
|
|
7338
7338
|
constructor() {
|
|
7339
7339
|
super(
|
|
7340
7340
|
"facebook.com"
|
|
@@ -7405,7 +7405,7 @@ Ie.PROVIDER_ID = "facebook.com";
|
|
|
7405
7405
|
* See the License for the specific language governing permissions and
|
|
7406
7406
|
* limitations under the License.
|
|
7407
7407
|
*/
|
|
7408
|
-
class Pe extends
|
|
7408
|
+
class Pe extends jt {
|
|
7409
7409
|
constructor() {
|
|
7410
7410
|
super(
|
|
7411
7411
|
"google.com"
|
|
@@ -7481,7 +7481,7 @@ Pe.PROVIDER_ID = "google.com";
|
|
|
7481
7481
|
* See the License for the specific language governing permissions and
|
|
7482
7482
|
* limitations under the License.
|
|
7483
7483
|
*/
|
|
7484
|
-
class Oe extends
|
|
7484
|
+
class Oe extends jt {
|
|
7485
7485
|
constructor() {
|
|
7486
7486
|
super(
|
|
7487
7487
|
"github.com"
|
|
@@ -7545,7 +7545,7 @@ Oe.PROVIDER_ID = "github.com";
|
|
|
7545
7545
|
* See the License for the specific language governing permissions and
|
|
7546
7546
|
* limitations under the License.
|
|
7547
7547
|
*/
|
|
7548
|
-
class Te extends
|
|
7548
|
+
class Te extends jt {
|
|
7549
7549
|
constructor() {
|
|
7550
7550
|
super(
|
|
7551
7551
|
"twitter.com"
|
|
@@ -7661,10 +7661,10 @@ function Mr(t) {
|
|
|
7661
7661
|
* See the License for the specific language governing permissions and
|
|
7662
7662
|
* limitations under the License.
|
|
7663
7663
|
*/
|
|
7664
|
-
class
|
|
7664
|
+
class Kt extends qe {
|
|
7665
7665
|
constructor(e, n, r, s) {
|
|
7666
7666
|
var i;
|
|
7667
|
-
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this,
|
|
7667
|
+
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, Kt.prototype), this.customData = {
|
|
7668
7668
|
appName: e.name,
|
|
7669
7669
|
tenantId: (i = e.tenantId) !== null && i !== void 0 ? i : void 0,
|
|
7670
7670
|
_serverResponse: n.customData._serverResponse,
|
|
@@ -7672,16 +7672,16 @@ class Lt extends qe {
|
|
|
7672
7672
|
};
|
|
7673
7673
|
}
|
|
7674
7674
|
static _fromErrorAndOperation(e, n, r, s) {
|
|
7675
|
-
return new
|
|
7675
|
+
return new Kt(e, n, r, s);
|
|
7676
7676
|
}
|
|
7677
7677
|
}
|
|
7678
7678
|
function fi(t, e, n, r) {
|
|
7679
7679
|
return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((i) => {
|
|
7680
|
-
throw i.code === "auth/multi-factor-auth-required" ?
|
|
7680
|
+
throw i.code === "auth/multi-factor-auth-required" ? Kt._fromErrorAndOperation(t, i, e, r) : i;
|
|
7681
7681
|
});
|
|
7682
7682
|
}
|
|
7683
7683
|
async function tl(t, e, n = !1) {
|
|
7684
|
-
const r = await
|
|
7684
|
+
const r = await Bt(t, e._linkToIdToken(t.auth, await t.getIdToken()), n);
|
|
7685
7685
|
return Le._forOperation(t, "link", r);
|
|
7686
7686
|
}
|
|
7687
7687
|
/**
|
|
@@ -7706,7 +7706,7 @@ async function nl(t, e, n = !1) {
|
|
|
7706
7706
|
return Promise.reject(Re(r));
|
|
7707
7707
|
const s = "reauthenticate";
|
|
7708
7708
|
try {
|
|
7709
|
-
const i = await
|
|
7709
|
+
const i = await Bt(t, fi(r, s, e, t), n);
|
|
7710
7710
|
M(
|
|
7711
7711
|
i.idToken,
|
|
7712
7712
|
r,
|
|
@@ -7807,7 +7807,7 @@ function al(t, e, n, r) {
|
|
|
7807
7807
|
function ol(t, e, n) {
|
|
7808
7808
|
return ht(t).beforeAuthStateChanged(e, n);
|
|
7809
7809
|
}
|
|
7810
|
-
const
|
|
7810
|
+
const Jt = "__sak";
|
|
7811
7811
|
/**
|
|
7812
7812
|
* @license
|
|
7813
7813
|
* Copyright 2019 Google LLC
|
|
@@ -7830,7 +7830,7 @@ class gi {
|
|
|
7830
7830
|
}
|
|
7831
7831
|
_isAvailable() {
|
|
7832
7832
|
try {
|
|
7833
|
-
return this.storage ? (this.storage.setItem(
|
|
7833
|
+
return this.storage ? (this.storage.setItem(Jt, "1"), this.storage.removeItem(Jt), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
7834
7834
|
} catch {
|
|
7835
7835
|
return Promise.resolve(!1);
|
|
7836
7836
|
}
|
|
@@ -8250,7 +8250,7 @@ function hl(t) {
|
|
|
8250
8250
|
* See the License for the specific language governing permissions and
|
|
8251
8251
|
* limitations under the License.
|
|
8252
8252
|
*/
|
|
8253
|
-
function
|
|
8253
|
+
function vi() {
|
|
8254
8254
|
return typeof de().WorkerGlobalScope < "u" && typeof de().importScripts == "function";
|
|
8255
8255
|
}
|
|
8256
8256
|
async function ml() {
|
|
@@ -8267,7 +8267,7 @@ function fl() {
|
|
|
8267
8267
|
return ((t = navigator == null ? void 0 : navigator.serviceWorker) === null || t === void 0 ? void 0 : t.controller) || null;
|
|
8268
8268
|
}
|
|
8269
8269
|
function gl() {
|
|
8270
|
-
return
|
|
8270
|
+
return vi() ? self : null;
|
|
8271
8271
|
}
|
|
8272
8272
|
/**
|
|
8273
8273
|
* @license
|
|
@@ -8285,8 +8285,8 @@ function gl() {
|
|
|
8285
8285
|
* See the License for the specific language governing permissions and
|
|
8286
8286
|
* limitations under the License.
|
|
8287
8287
|
*/
|
|
8288
|
-
const
|
|
8289
|
-
class
|
|
8288
|
+
const wi = "firebaseLocalStorageDb", pl = 1, _t = "firebaseLocalStorage", Bi = "fbase_key";
|
|
8289
|
+
class Yt {
|
|
8290
8290
|
constructor(e) {
|
|
8291
8291
|
this.request = e;
|
|
8292
8292
|
}
|
|
@@ -8301,27 +8301,27 @@ class jt {
|
|
|
8301
8301
|
}
|
|
8302
8302
|
}
|
|
8303
8303
|
function cn(t, e) {
|
|
8304
|
-
return t.transaction([
|
|
8304
|
+
return t.transaction([_t], e ? "readwrite" : "readonly").objectStore(_t);
|
|
8305
8305
|
}
|
|
8306
8306
|
function yl() {
|
|
8307
|
-
const t = indexedDB.deleteDatabase(
|
|
8308
|
-
return new
|
|
8307
|
+
const t = indexedDB.deleteDatabase(wi);
|
|
8308
|
+
return new Yt(t).toPromise();
|
|
8309
8309
|
}
|
|
8310
8310
|
function jn() {
|
|
8311
|
-
const t = indexedDB.open(
|
|
8311
|
+
const t = indexedDB.open(wi, pl);
|
|
8312
8312
|
return new Promise((e, n) => {
|
|
8313
8313
|
t.addEventListener("error", () => {
|
|
8314
8314
|
n(t.error);
|
|
8315
8315
|
}), t.addEventListener("upgradeneeded", () => {
|
|
8316
8316
|
const r = t.result;
|
|
8317
8317
|
try {
|
|
8318
|
-
r.createObjectStore(
|
|
8318
|
+
r.createObjectStore(_t, { keyPath: Bi });
|
|
8319
8319
|
} catch (s) {
|
|
8320
8320
|
n(s);
|
|
8321
8321
|
}
|
|
8322
8322
|
}), t.addEventListener("success", async () => {
|
|
8323
8323
|
const r = t.result;
|
|
8324
|
-
r.objectStoreNames.contains(
|
|
8324
|
+
r.objectStoreNames.contains(_t) ? e(r) : (r.close(), await yl(), e(await jn()));
|
|
8325
8325
|
});
|
|
8326
8326
|
});
|
|
8327
8327
|
}
|
|
@@ -8330,17 +8330,17 @@ async function Ir(t, e, n) {
|
|
|
8330
8330
|
[Bi]: e,
|
|
8331
8331
|
value: n
|
|
8332
8332
|
});
|
|
8333
|
-
return new
|
|
8333
|
+
return new Yt(r).toPromise();
|
|
8334
8334
|
}
|
|
8335
8335
|
async function bl(t, e) {
|
|
8336
|
-
const n = cn(t, !1).get(e), r = await new
|
|
8336
|
+
const n = cn(t, !1).get(e), r = await new Yt(n).toPromise();
|
|
8337
8337
|
return r === void 0 ? null : r.value;
|
|
8338
8338
|
}
|
|
8339
8339
|
function Pr(t, e) {
|
|
8340
8340
|
const n = cn(t, !0).delete(e);
|
|
8341
|
-
return new
|
|
8341
|
+
return new Yt(n).toPromise();
|
|
8342
8342
|
}
|
|
8343
|
-
const
|
|
8343
|
+
const vl = 800, wl = 3;
|
|
8344
8344
|
class Di {
|
|
8345
8345
|
constructor() {
|
|
8346
8346
|
this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
|
|
@@ -8357,7 +8357,7 @@ class Di {
|
|
|
8357
8357
|
const r = await this._openDb();
|
|
8358
8358
|
return await e(r);
|
|
8359
8359
|
} catch (r) {
|
|
8360
|
-
if (n++ >
|
|
8360
|
+
if (n++ > wl)
|
|
8361
8361
|
throw r;
|
|
8362
8362
|
this.db && (this.db.close(), this.db = void 0);
|
|
8363
8363
|
}
|
|
@@ -8367,7 +8367,7 @@ class Di {
|
|
|
8367
8367
|
* postMessage interface to send these events to the worker ourselves.
|
|
8368
8368
|
*/
|
|
8369
8369
|
async initializeServiceWorkerMessaging() {
|
|
8370
|
-
return
|
|
8370
|
+
return vi() ? this.initializeReceiver() : this.initializeSender();
|
|
8371
8371
|
}
|
|
8372
8372
|
/**
|
|
8373
8373
|
* As the worker we should listen to events from the main window.
|
|
@@ -8430,7 +8430,7 @@ class Di {
|
|
|
8430
8430
|
if (!indexedDB)
|
|
8431
8431
|
return !1;
|
|
8432
8432
|
const e = await jn();
|
|
8433
|
-
return await Ir(e,
|
|
8433
|
+
return await Ir(e, Jt, "1"), await Pr(e, Jt), !0;
|
|
8434
8434
|
} catch {
|
|
8435
8435
|
}
|
|
8436
8436
|
return !1;
|
|
@@ -8456,7 +8456,7 @@ class Di {
|
|
|
8456
8456
|
async _poll() {
|
|
8457
8457
|
const e = await this._withRetries((s) => {
|
|
8458
8458
|
const i = cn(s, !1).getAll();
|
|
8459
|
-
return new
|
|
8459
|
+
return new Yt(i).toPromise();
|
|
8460
8460
|
});
|
|
8461
8461
|
if (!e)
|
|
8462
8462
|
return [];
|
|
@@ -8478,7 +8478,7 @@ class Di {
|
|
|
8478
8478
|
s(n);
|
|
8479
8479
|
}
|
|
8480
8480
|
startPolling() {
|
|
8481
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
|
8481
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), vl);
|
|
8482
8482
|
}
|
|
8483
8483
|
stopPolling() {
|
|
8484
8484
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -8492,7 +8492,7 @@ class Di {
|
|
|
8492
8492
|
}
|
|
8493
8493
|
Di.type = "LOCAL";
|
|
8494
8494
|
const Bl = Di;
|
|
8495
|
-
new
|
|
8495
|
+
new Gt(3e4, 6e4);
|
|
8496
8496
|
/**
|
|
8497
8497
|
* @license
|
|
8498
8498
|
* Copyright 2021 Google LLC
|
|
@@ -8510,7 +8510,7 @@ new Tt(3e4, 6e4);
|
|
|
8510
8510
|
* limitations under the License.
|
|
8511
8511
|
*/
|
|
8512
8512
|
function Dl(t, e) {
|
|
8513
|
-
return e ?
|
|
8513
|
+
return e ? ve(e) : (M(
|
|
8514
8514
|
t._popupRedirectResolver,
|
|
8515
8515
|
t,
|
|
8516
8516
|
"argument-error"
|
|
@@ -8683,7 +8683,7 @@ class Ci {
|
|
|
8683
8683
|
* See the License for the specific language governing permissions and
|
|
8684
8684
|
* limitations under the License.
|
|
8685
8685
|
*/
|
|
8686
|
-
const Il = new
|
|
8686
|
+
const Il = new Gt(2e3, 1e4);
|
|
8687
8687
|
class _e extends Ci {
|
|
8688
8688
|
constructor(e, n, r, s, i) {
|
|
8689
8689
|
super(e, n, s, i), this.provider = r, this.authWindow = null, this.pollId = null, _e.currentPopupAction && _e.currentPopupAction.cancel(), _e.currentPopupAction = this;
|
|
@@ -8769,7 +8769,7 @@ _e.currentPopupAction = null;
|
|
|
8769
8769
|
* See the License for the specific language governing permissions and
|
|
8770
8770
|
* limitations under the License.
|
|
8771
8771
|
*/
|
|
8772
|
-
const Pl = "pendingRedirect",
|
|
8772
|
+
const Pl = "pendingRedirect", Qt = /* @__PURE__ */ new Map();
|
|
8773
8773
|
class Ol extends Ci {
|
|
8774
8774
|
constructor(e, n, r = !1) {
|
|
8775
8775
|
super(e, [
|
|
@@ -8785,7 +8785,7 @@ class Ol extends Ci {
|
|
|
8785
8785
|
* just return it.
|
|
8786
8786
|
*/
|
|
8787
8787
|
async execute() {
|
|
8788
|
-
let e =
|
|
8788
|
+
let e = Qt.get(this.auth._key());
|
|
8789
8789
|
if (!e) {
|
|
8790
8790
|
try {
|
|
8791
8791
|
const r = await Tl(this.resolver, this.auth) ? await super.execute() : null;
|
|
@@ -8793,9 +8793,9 @@ class Ol extends Ci {
|
|
|
8793
8793
|
} catch (n) {
|
|
8794
8794
|
e = () => Promise.reject(n);
|
|
8795
8795
|
}
|
|
8796
|
-
|
|
8796
|
+
Qt.set(this.auth._key(), e);
|
|
8797
8797
|
}
|
|
8798
|
-
return this.bypassAuthState ||
|
|
8798
|
+
return this.bypassAuthState || Qt.set(this.auth._key(), () => Promise.resolve(null)), e();
|
|
8799
8799
|
}
|
|
8800
8800
|
async onAuthEvent(e) {
|
|
8801
8801
|
if (e.type === "signInViaRedirect")
|
|
@@ -8824,13 +8824,13 @@ async function Tl(t, e) {
|
|
|
8824
8824
|
return await r._remove(n), s;
|
|
8825
8825
|
}
|
|
8826
8826
|
function Gl(t, e) {
|
|
8827
|
-
|
|
8827
|
+
Qt.set(t._key(), e);
|
|
8828
8828
|
}
|
|
8829
8829
|
function jl(t) {
|
|
8830
|
-
return
|
|
8830
|
+
return ve(t._redirectPersistence);
|
|
8831
8831
|
}
|
|
8832
8832
|
function Yl(t) {
|
|
8833
|
-
return
|
|
8833
|
+
return Ht(Pl, t.config.apiKey, t.name);
|
|
8834
8834
|
}
|
|
8835
8835
|
async function Vl(t, e, n = !1) {
|
|
8836
8836
|
if (pe(t.app))
|
|
@@ -8991,7 +8991,7 @@ function Ql(t) {
|
|
|
8991
8991
|
* See the License for the specific language governing permissions and
|
|
8992
8992
|
* limitations under the License.
|
|
8993
8993
|
*/
|
|
8994
|
-
const Xl = new
|
|
8994
|
+
const Xl = new Gt(3e4, 6e4);
|
|
8995
8995
|
function Tr() {
|
|
8996
8996
|
const t = de().___jsl;
|
|
8997
8997
|
if (t != null && t.H) {
|
|
@@ -9034,12 +9034,12 @@ function Sl(t) {
|
|
|
9034
9034
|
}, Wu(`${zu()}?onload=${c}`).catch((l) => n(l));
|
|
9035
9035
|
}
|
|
9036
9036
|
}).catch((e) => {
|
|
9037
|
-
throw
|
|
9037
|
+
throw Xt = null, e;
|
|
9038
9038
|
});
|
|
9039
9039
|
}
|
|
9040
|
-
let
|
|
9040
|
+
let Xt = null;
|
|
9041
9041
|
function Ul(t) {
|
|
9042
|
-
return
|
|
9042
|
+
return Xt = Xt || Sl(t), Xt;
|
|
9043
9043
|
}
|
|
9044
9044
|
/**
|
|
9045
9045
|
* @license
|
|
@@ -9057,7 +9057,7 @@ function Ul(t) {
|
|
|
9057
9057
|
* See the License for the specific language governing permissions and
|
|
9058
9058
|
* limitations under the License.
|
|
9059
9059
|
*/
|
|
9060
|
-
const Wl = new
|
|
9060
|
+
const Wl = new Gt(5e3, 15e3), zl = "__/auth/iframe", Zl = "emulator/auth/iframe", Ll = {
|
|
9061
9061
|
style: {
|
|
9062
9062
|
position: "absolute",
|
|
9063
9063
|
top: "-100px",
|
|
@@ -9083,11 +9083,11 @@ function Jl(t) {
|
|
|
9083
9083
|
const n = e.emulator ? Zn(e, Zl) : `https://${t.config.authDomain}/${zl}`, r = {
|
|
9084
9084
|
apiKey: e.apiKey,
|
|
9085
9085
|
appName: t.name,
|
|
9086
|
-
v:
|
|
9086
|
+
v: Tt
|
|
9087
9087
|
}, s = Kl.get(t.config.apiHost);
|
|
9088
9088
|
s && (r.eid = s);
|
|
9089
9089
|
const i = t._getFrameworks();
|
|
9090
|
-
return i.length && (r.fw = i.join(",")), `${n}?${
|
|
9090
|
+
return i.length && (r.fw = i.join(",")), `${n}?${Ot(r).slice(1)}`;
|
|
9091
9091
|
}
|
|
9092
9092
|
async function _l(t) {
|
|
9093
9093
|
const e = await Ul(t), n = de().gapi;
|
|
@@ -9166,7 +9166,7 @@ function sA(t, e, n, r = eA, s = tA) {
|
|
|
9166
9166
|
left: a
|
|
9167
9167
|
}), A = K().toLowerCase();
|
|
9168
9168
|
n && (c = ii(A) ? nA : n), ri(A) && (e = e || rA, l.scrollbars = "yes");
|
|
9169
|
-
const f = Object.entries(l).reduce((B, [
|
|
9169
|
+
const f = Object.entries(l).reduce((B, [w, O]) => `${B}${w}=${O},`, "");
|
|
9170
9170
|
if (Ru(A) && c !== "_self")
|
|
9171
9171
|
return iA(e || "", c), new Gr(null);
|
|
9172
9172
|
const p = window.open(e || "", c, f);
|
|
@@ -9222,7 +9222,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9222
9222
|
appName: t.name,
|
|
9223
9223
|
authType: n,
|
|
9224
9224
|
redirectUrl: r,
|
|
9225
|
-
v:
|
|
9225
|
+
v: Tt,
|
|
9226
9226
|
eventId: s
|
|
9227
9227
|
};
|
|
9228
9228
|
if (e instanceof mi) {
|
|
@@ -9230,7 +9230,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9230
9230
|
for (const [f, p] of Object.entries({}))
|
|
9231
9231
|
a[f] = p;
|
|
9232
9232
|
}
|
|
9233
|
-
if (e instanceof
|
|
9233
|
+
if (e instanceof jt) {
|
|
9234
9234
|
const f = e.getScopes().filter((p) => p !== "");
|
|
9235
9235
|
f.length > 0 && (a.scopes = f.join(","));
|
|
9236
9236
|
}
|
|
@@ -9239,7 +9239,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9239
9239
|
for (const f of Object.keys(c))
|
|
9240
9240
|
c[f] === void 0 && delete c[f];
|
|
9241
9241
|
const l = await t._getAppCheckToken(), A = l ? `#${cA}=${encodeURIComponent(l)}` : "";
|
|
9242
|
-
return `${uA(t)}?${
|
|
9242
|
+
return `${uA(t)}?${Ot(c).slice(1)}${A}`;
|
|
9243
9243
|
}
|
|
9244
9244
|
function uA({ config: t }) {
|
|
9245
9245
|
return t.emulator ? Zn(t, oA) : `https://${t.authDomain}/${aA}`;
|
|
@@ -9407,7 +9407,7 @@ function hA(t) {
|
|
|
9407
9407
|
}
|
|
9408
9408
|
}
|
|
9409
9409
|
function mA(t) {
|
|
9410
|
-
|
|
9410
|
+
vt(new dt(
|
|
9411
9411
|
"auth",
|
|
9412
9412
|
(e, { options: n }) => {
|
|
9413
9413
|
const r = e.getProvider("app").getImmediate(), s = e.getProvider("heartbeat"), i = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
|
|
@@ -9433,7 +9433,7 @@ function mA(t) {
|
|
|
9433
9433
|
"auth-internal"
|
|
9434
9434
|
/* _ComponentName.AUTH_INTERNAL */
|
|
9435
9435
|
).initialize();
|
|
9436
|
-
})),
|
|
9436
|
+
})), vt(new dt(
|
|
9437
9437
|
"auth-internal",
|
|
9438
9438
|
(e) => {
|
|
9439
9439
|
const n = an(e.getProvider(
|
|
@@ -9542,7 +9542,7 @@ var un = class {
|
|
|
9542
9542
|
}
|
|
9543
9543
|
onUnsubscribe() {
|
|
9544
9544
|
}
|
|
9545
|
-
}, He, Ge, rt, Xr,
|
|
9545
|
+
}, He, Ge, rt, Xr, vA = (Xr = class extends un {
|
|
9546
9546
|
constructor() {
|
|
9547
9547
|
super();
|
|
9548
9548
|
G(this, He);
|
|
@@ -9583,7 +9583,7 @@ var un = class {
|
|
|
9583
9583
|
var e;
|
|
9584
9584
|
return typeof h(this, He) == "boolean" ? h(this, He) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
9585
9585
|
}
|
|
9586
|
-
}, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new
|
|
9586
|
+
}, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new vA(), wA = {
|
|
9587
9587
|
// We need the wrapper function syntax below instead of direct references to
|
|
9588
9588
|
// global setTimeout etc.
|
|
9589
9589
|
//
|
|
@@ -9607,7 +9607,7 @@ var un = class {
|
|
|
9607
9607
|
//
|
|
9608
9608
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
|
9609
9609
|
// this class is unsafe internally to allow for extension.
|
|
9610
|
-
G(this, oe,
|
|
9610
|
+
G(this, oe, wA);
|
|
9611
9611
|
G(this, Qe, !1);
|
|
9612
9612
|
}
|
|
9613
9613
|
setTimeoutProvider(t) {
|
|
@@ -9663,7 +9663,7 @@ function Fr(t, e) {
|
|
|
9663
9663
|
if (r) {
|
|
9664
9664
|
if (e.queryHash !== er(a, e.options))
|
|
9665
9665
|
return !1;
|
|
9666
|
-
} else if (!
|
|
9666
|
+
} else if (!Ct(e.queryKey, a))
|
|
9667
9667
|
return !1;
|
|
9668
9668
|
}
|
|
9669
9669
|
if (n !== "all") {
|
|
@@ -9679,24 +9679,24 @@ function kr(t, e) {
|
|
|
9679
9679
|
if (!e.options.mutationKey)
|
|
9680
9680
|
return !1;
|
|
9681
9681
|
if (n) {
|
|
9682
|
-
if (
|
|
9682
|
+
if (Dt(e.options.mutationKey) !== Dt(i))
|
|
9683
9683
|
return !1;
|
|
9684
|
-
} else if (!
|
|
9684
|
+
} else if (!Ct(e.options.mutationKey, i))
|
|
9685
9685
|
return !1;
|
|
9686
9686
|
}
|
|
9687
9687
|
return !(r && e.state.status !== r || s && !s(e));
|
|
9688
9688
|
}
|
|
9689
9689
|
function er(t, e) {
|
|
9690
|
-
return ((e == null ? void 0 : e.queryKeyHashFn) ||
|
|
9690
|
+
return ((e == null ? void 0 : e.queryKeyHashFn) || Dt)(t);
|
|
9691
9691
|
}
|
|
9692
|
-
function
|
|
9692
|
+
function Dt(t) {
|
|
9693
9693
|
return JSON.stringify(
|
|
9694
9694
|
t,
|
|
9695
9695
|
(e, n) => Fn(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
|
|
9696
9696
|
);
|
|
9697
9697
|
}
|
|
9698
|
-
function
|
|
9699
|
-
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) =>
|
|
9698
|
+
function Ct(t, e) {
|
|
9699
|
+
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) => Ct(t[n], e[n])) : !1;
|
|
9700
9700
|
}
|
|
9701
9701
|
var OA = Object.prototype.hasOwnProperty;
|
|
9702
9702
|
function xn(t, e, n = 0) {
|
|
@@ -9708,16 +9708,16 @@ function xn(t, e, n = 0) {
|
|
|
9708
9708
|
const i = (r ? t : Object.keys(t)).length, a = r ? e : Object.keys(e), c = a.length, l = r ? new Array(c) : {};
|
|
9709
9709
|
let A = 0;
|
|
9710
9710
|
for (let f = 0; f < c; f++) {
|
|
9711
|
-
const p = r ? f : a[f], B = t[p],
|
|
9712
|
-
if (B ===
|
|
9711
|
+
const p = r ? f : a[f], B = t[p], w = e[p];
|
|
9712
|
+
if (B === w) {
|
|
9713
9713
|
l[p] = B, (r ? f < i : OA.call(t, p)) && A++;
|
|
9714
9714
|
continue;
|
|
9715
9715
|
}
|
|
9716
|
-
if (B === null ||
|
|
9717
|
-
l[p] =
|
|
9716
|
+
if (B === null || w === null || typeof B != "object" || typeof w != "object") {
|
|
9717
|
+
l[p] = w;
|
|
9718
9718
|
continue;
|
|
9719
9719
|
}
|
|
9720
|
-
const O = xn(B,
|
|
9720
|
+
const O = xn(B, w, n + 1);
|
|
9721
9721
|
l[p] = O, O === B && A++;
|
|
9722
9722
|
}
|
|
9723
9723
|
return i === c && A === i ? t : l;
|
|
@@ -9777,11 +9777,11 @@ function YA(t, e, n = 0) {
|
|
|
9777
9777
|
const r = [e, ...t];
|
|
9778
9778
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
9779
9779
|
}
|
|
9780
|
-
var
|
|
9780
|
+
var $t = /* @__PURE__ */ Symbol();
|
|
9781
9781
|
function Ii(t, e) {
|
|
9782
|
-
return process.env.NODE_ENV !== "production" && t.queryFn ===
|
|
9782
|
+
return process.env.NODE_ENV !== "production" && t.queryFn === $t && console.error(
|
|
9783
9783
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
|
|
9784
|
-
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn ===
|
|
9784
|
+
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === $t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
9785
9785
|
}
|
|
9786
9786
|
function hd(t, e) {
|
|
9787
9787
|
return typeof t == "function" ? t(...e) : !!t;
|
|
@@ -9926,12 +9926,12 @@ var L = kA(), st, je, it, Ur, RA = (Ur = class extends un {
|
|
|
9926
9926
|
isOnline() {
|
|
9927
9927
|
return h(this, st);
|
|
9928
9928
|
}
|
|
9929
|
-
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur),
|
|
9929
|
+
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur), en = new RA();
|
|
9930
9930
|
function qA(t) {
|
|
9931
9931
|
return Math.min(1e3 * 2 ** t, 3e4);
|
|
9932
9932
|
}
|
|
9933
9933
|
function Oi(t) {
|
|
9934
|
-
return (t ?? "online") === "online" ?
|
|
9934
|
+
return (t ?? "online") === "online" ? en.isOnline() : !0;
|
|
9935
9935
|
}
|
|
9936
9936
|
var kn = class extends Error {
|
|
9937
9937
|
constructor(t) {
|
|
@@ -9950,11 +9950,11 @@ function Ti(t) {
|
|
|
9950
9950
|
e = !0;
|
|
9951
9951
|
}, l = () => {
|
|
9952
9952
|
e = !1;
|
|
9953
|
-
}, A = () => Mi.isFocused() && (t.networkMode === "always" ||
|
|
9953
|
+
}, A = () => Mi.isFocused() && (t.networkMode === "always" || en.isOnline()) && t.canRun(), f = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
|
|
9954
9954
|
i() || (r == null || r(), s.resolve(I));
|
|
9955
9955
|
}, B = (I) => {
|
|
9956
9956
|
i() || (r == null || r(), s.reject(I));
|
|
9957
|
-
},
|
|
9957
|
+
}, w = () => new Promise((I) => {
|
|
9958
9958
|
var V;
|
|
9959
9959
|
r = (R) => {
|
|
9960
9960
|
(i() || A()) && I(R);
|
|
@@ -9976,12 +9976,12 @@ function Ti(t) {
|
|
|
9976
9976
|
var U;
|
|
9977
9977
|
if (i())
|
|
9978
9978
|
return;
|
|
9979
|
-
const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA,
|
|
9979
|
+
const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA, v = typeof Y == "function" ? Y(n, R) : Y, H = Q === !0 || typeof Q == "number" && n < Q || typeof Q == "function" && Q(n, R);
|
|
9980
9980
|
if (e || !H) {
|
|
9981
9981
|
B(R);
|
|
9982
9982
|
return;
|
|
9983
9983
|
}
|
|
9984
|
-
n++, (U = t.onFail) == null || U.call(t, n, R), TA(
|
|
9984
|
+
n++, (U = t.onFail) == null || U.call(t, n, R), TA(v).then(() => A() ? void 0 : w()).then(() => {
|
|
9985
9985
|
e ? B(R) : O();
|
|
9986
9986
|
});
|
|
9987
9987
|
});
|
|
@@ -9994,7 +9994,7 @@ function Ti(t) {
|
|
|
9994
9994
|
cancelRetry: c,
|
|
9995
9995
|
continueRetry: l,
|
|
9996
9996
|
canStart: f,
|
|
9997
|
-
start: () => (f() ? O() :
|
|
9997
|
+
start: () => (f() ? O() : w().then(O), s)
|
|
9998
9998
|
};
|
|
9999
9999
|
}
|
|
10000
10000
|
var Xe, Wr, Gi = (Wr = class {
|
|
@@ -10022,8 +10022,8 @@ var Xe, Wr, Gi = (Wr = class {
|
|
|
10022
10022
|
function NA(t) {
|
|
10023
10023
|
return {
|
|
10024
10024
|
onFetch: (e, n) => {
|
|
10025
|
-
var f, p, B,
|
|
10026
|
-
const r = e.options, s = (B = (p = (f = e.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : p.fetchMore) == null ? void 0 : B.direction, i = ((
|
|
10025
|
+
var f, p, B, w, O;
|
|
10026
|
+
const r = e.options, s = (B = (p = (f = e.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : p.fetchMore) == null ? void 0 : B.direction, i = ((w = e.state.data) == null ? void 0 : w.pages) || [], a = ((O = e.state.data) == null ? void 0 : O.pageParams) || [];
|
|
10027
10027
|
let c = { pages: [], pageParams: [] }, l = 0;
|
|
10028
10028
|
const A = async () => {
|
|
10029
10029
|
let I = !1;
|
|
@@ -10033,16 +10033,16 @@ function NA(t) {
|
|
|
10033
10033
|
() => e.signal,
|
|
10034
10034
|
() => I = !0
|
|
10035
10035
|
);
|
|
10036
|
-
}, R = Ii(e.options, e.fetchOptions), Q = async (Y,
|
|
10036
|
+
}, R = Ii(e.options, e.fetchOptions), Q = async (Y, v, H) => {
|
|
10037
10037
|
if (I)
|
|
10038
10038
|
return Promise.reject(e.signal.reason);
|
|
10039
|
-
if (
|
|
10039
|
+
if (v == null && Y.pages.length)
|
|
10040
10040
|
return Promise.resolve(Y);
|
|
10041
10041
|
const ee = (() => {
|
|
10042
10042
|
const g = {
|
|
10043
10043
|
client: e.client,
|
|
10044
10044
|
queryKey: e.queryKey,
|
|
10045
|
-
pageParam:
|
|
10045
|
+
pageParam: v,
|
|
10046
10046
|
direction: H ? "backward" : "forward",
|
|
10047
10047
|
meta: e.options.meta
|
|
10048
10048
|
};
|
|
@@ -10050,22 +10050,22 @@ function NA(t) {
|
|
|
10050
10050
|
})(), q = await R(ee), { maxPages: u } = e.options, m = H ? YA : jA;
|
|
10051
10051
|
return {
|
|
10052
10052
|
pages: m(Y.pages, q, u),
|
|
10053
|
-
pageParams: m(Y.pageParams,
|
|
10053
|
+
pageParams: m(Y.pageParams, v, u)
|
|
10054
10054
|
};
|
|
10055
10055
|
};
|
|
10056
10056
|
if (s && i.length) {
|
|
10057
|
-
const Y = s === "backward",
|
|
10057
|
+
const Y = s === "backward", v = Y ? HA : Nr, H = {
|
|
10058
10058
|
pages: i,
|
|
10059
10059
|
pageParams: a
|
|
10060
|
-
}, U =
|
|
10060
|
+
}, U = v(r, H);
|
|
10061
10061
|
c = await Q(H, U, Y);
|
|
10062
10062
|
} else {
|
|
10063
10063
|
const Y = t ?? i.length;
|
|
10064
10064
|
do {
|
|
10065
|
-
const
|
|
10066
|
-
if (l > 0 &&
|
|
10065
|
+
const v = l === 0 ? a[0] ?? r.initialPageParam : Nr(r, c);
|
|
10066
|
+
if (l > 0 && v == null)
|
|
10067
10067
|
break;
|
|
10068
|
-
c = await Q(c,
|
|
10068
|
+
c = await Q(c, v), l++;
|
|
10069
10069
|
} while (l < Y);
|
|
10070
10070
|
}
|
|
10071
10071
|
return c;
|
|
@@ -10100,7 +10100,7 @@ function HA(t, { pages: e, pageParams: n }) {
|
|
|
10100
10100
|
var r;
|
|
10101
10101
|
return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, n[0], n) : void 0;
|
|
10102
10102
|
}
|
|
10103
|
-
var at, Se, ot, re, Ue, S,
|
|
10103
|
+
var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
10104
10104
|
constructor(e) {
|
|
10105
10105
|
super();
|
|
10106
10106
|
G(this, ne);
|
|
@@ -10110,9 +10110,9 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10110
10110
|
G(this, re);
|
|
10111
10111
|
G(this, Ue);
|
|
10112
10112
|
G(this, S);
|
|
10113
|
-
G(this,
|
|
10113
|
+
G(this, Et);
|
|
10114
10114
|
G(this, We);
|
|
10115
|
-
D(this, We, !1), D(this,
|
|
10115
|
+
D(this, We, !1), D(this, Et, e.defaultOptions), this.setOptions(e.options), this.observers = [], D(this, Ue, e.client), D(this, re, h(this, Ue).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, D(this, Se, Qr(this.options)), this.state = e.state ?? h(this, Se), this.scheduleGc();
|
|
10116
10116
|
}
|
|
10117
10117
|
get meta() {
|
|
10118
10118
|
return this.options.meta;
|
|
@@ -10125,7 +10125,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10125
10125
|
return (e = h(this, S)) == null ? void 0 : e.promise;
|
|
10126
10126
|
}
|
|
10127
10127
|
setOptions(e) {
|
|
10128
|
-
if (this.options = { ...h(this,
|
|
10128
|
+
if (this.options = { ...h(this, Et), ...e }, e != null && e._type && D(this, at, e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
10129
10129
|
const n = Qr(this.options);
|
|
10130
10130
|
n.data !== void 0 && (this.setState(
|
|
10131
10131
|
Hr(n.data, n.dataUpdatedAt)
|
|
@@ -10167,7 +10167,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10167
10167
|
);
|
|
10168
10168
|
}
|
|
10169
10169
|
isDisabled() {
|
|
10170
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
10170
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === $t || !this.isFetched();
|
|
10171
10171
|
}
|
|
10172
10172
|
isFetched() {
|
|
10173
10173
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
@@ -10208,7 +10208,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10208
10208
|
this.state.isInvalidated || z(this, ne, me).call(this, { type: "invalidate" });
|
|
10209
10209
|
}
|
|
10210
10210
|
async fetch(e, n) {
|
|
10211
|
-
var A, f, p, B,
|
|
10211
|
+
var A, f, p, B, w, O, I, V, R, Q, Y;
|
|
10212
10212
|
if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
|
|
10213
10213
|
// re-start the fetch; there is a chance that the query is still in a
|
|
10214
10214
|
// pending state when that happens
|
|
@@ -10219,19 +10219,19 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10219
10219
|
return h(this, S).continueRetry(), h(this, S).promise;
|
|
10220
10220
|
}
|
|
10221
10221
|
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
10222
|
-
const
|
|
10223
|
-
|
|
10222
|
+
const v = this.observers.find((H) => H.options.queryFn);
|
|
10223
|
+
v && this.setOptions(v.options);
|
|
10224
10224
|
}
|
|
10225
10225
|
process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
|
|
10226
10226
|
"As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"
|
|
10227
10227
|
));
|
|
10228
|
-
const r = new AbortController(), s = (
|
|
10229
|
-
Object.defineProperty(
|
|
10228
|
+
const r = new AbortController(), s = (v) => {
|
|
10229
|
+
Object.defineProperty(v, "signal", {
|
|
10230
10230
|
enumerable: !0,
|
|
10231
10231
|
get: () => (D(this, We, !0), r.signal)
|
|
10232
10232
|
});
|
|
10233
10233
|
}, i = () => {
|
|
10234
|
-
const
|
|
10234
|
+
const v = Ii(this.options, n), U = (() => {
|
|
10235
10235
|
const ee = {
|
|
10236
10236
|
client: h(this, Ue),
|
|
10237
10237
|
queryKey: this.queryKey,
|
|
@@ -10240,12 +10240,12 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10240
10240
|
return s(ee), ee;
|
|
10241
10241
|
})();
|
|
10242
10242
|
return D(this, We, !1), this.options.persister ? this.options.persister(
|
|
10243
|
-
|
|
10243
|
+
v,
|
|
10244
10244
|
U,
|
|
10245
10245
|
this
|
|
10246
|
-
) :
|
|
10246
|
+
) : v(U);
|
|
10247
10247
|
}, c = (() => {
|
|
10248
|
-
const
|
|
10248
|
+
const v = {
|
|
10249
10249
|
fetchOptions: n,
|
|
10250
10250
|
options: this.options,
|
|
10251
10251
|
queryKey: this.queryKey,
|
|
@@ -10253,21 +10253,21 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10253
10253
|
state: this.state,
|
|
10254
10254
|
fetchFn: i
|
|
10255
10255
|
};
|
|
10256
|
-
return s(
|
|
10256
|
+
return s(v), v;
|
|
10257
10257
|
})(), l = h(this, at) === "infinite" ? NA(
|
|
10258
10258
|
this.options.pages
|
|
10259
10259
|
) : this.options.behavior;
|
|
10260
10260
|
l == null || l.onFetch(c, this), D(this, ot, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((f = c.fetchOptions) == null ? void 0 : f.meta)) && z(this, ne, me).call(this, { type: "fetch", meta: (p = c.fetchOptions) == null ? void 0 : p.meta }), D(this, S, Ti({
|
|
10261
10261
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
10262
10262
|
fn: c.fetchFn,
|
|
10263
|
-
onCancel: (
|
|
10264
|
-
|
|
10263
|
+
onCancel: (v) => {
|
|
10264
|
+
v instanceof kn && v.revert && this.setState({
|
|
10265
10265
|
...h(this, ot),
|
|
10266
10266
|
fetchStatus: "idle"
|
|
10267
10267
|
}), r.abort();
|
|
10268
10268
|
},
|
|
10269
|
-
onFail: (
|
|
10270
|
-
z(this, ne, me).call(this, { type: "failed", failureCount:
|
|
10269
|
+
onFail: (v, H) => {
|
|
10270
|
+
z(this, ne, me).call(this, { type: "failed", failureCount: v, error: H });
|
|
10271
10271
|
},
|
|
10272
10272
|
onPause: () => {
|
|
10273
10273
|
z(this, ne, me).call(this, { type: "pause" });
|
|
@@ -10281,45 +10281,45 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10281
10281
|
canRun: () => !0
|
|
10282
10282
|
}));
|
|
10283
10283
|
try {
|
|
10284
|
-
const
|
|
10285
|
-
if (
|
|
10284
|
+
const v = await h(this, S).start();
|
|
10285
|
+
if (v === void 0)
|
|
10286
10286
|
throw process.env.NODE_ENV !== "production" && console.error(
|
|
10287
10287
|
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
|
|
10288
10288
|
), new Error(`${this.queryHash} data is undefined`);
|
|
10289
|
-
return this.setData(
|
|
10289
|
+
return this.setData(v), (w = (B = h(this, re).config).onSuccess) == null || w.call(B, v, this), (I = (O = h(this, re).config).onSettled) == null || I.call(
|
|
10290
10290
|
O,
|
|
10291
|
-
|
|
10291
|
+
v,
|
|
10292
10292
|
this.state.error,
|
|
10293
10293
|
this
|
|
10294
|
-
),
|
|
10295
|
-
} catch (
|
|
10296
|
-
if (
|
|
10297
|
-
if (
|
|
10294
|
+
), v;
|
|
10295
|
+
} catch (v) {
|
|
10296
|
+
if (v instanceof kn) {
|
|
10297
|
+
if (v.silent)
|
|
10298
10298
|
return h(this, S).promise;
|
|
10299
|
-
if (
|
|
10299
|
+
if (v.revert) {
|
|
10300
10300
|
if (this.state.data === void 0)
|
|
10301
|
-
throw
|
|
10301
|
+
throw v;
|
|
10302
10302
|
return this.state.data;
|
|
10303
10303
|
}
|
|
10304
10304
|
}
|
|
10305
10305
|
throw z(this, ne, me).call(this, {
|
|
10306
10306
|
type: "error",
|
|
10307
|
-
error:
|
|
10307
|
+
error: v
|
|
10308
10308
|
}), (R = (V = h(this, re).config).onError) == null || R.call(
|
|
10309
10309
|
V,
|
|
10310
|
-
|
|
10310
|
+
v,
|
|
10311
10311
|
this
|
|
10312
10312
|
), (Y = (Q = h(this, re).config).onSettled) == null || Y.call(
|
|
10313
10313
|
Q,
|
|
10314
10314
|
this.state.data,
|
|
10315
|
-
|
|
10315
|
+
v,
|
|
10316
10316
|
this
|
|
10317
|
-
),
|
|
10317
|
+
), v;
|
|
10318
10318
|
} finally {
|
|
10319
10319
|
this.scheduleGc();
|
|
10320
10320
|
}
|
|
10321
10321
|
}
|
|
10322
|
-
}, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(),
|
|
10322
|
+
}, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(), Et = new WeakMap(), We = new WeakMap(), ne = new WeakSet(), ji = function() {
|
|
10323
10323
|
return this.state.fetchStatus === "paused" && this.state.status === "pending";
|
|
10324
10324
|
}, me = function(e) {
|
|
10325
10325
|
const n = (r) => {
|
|
@@ -10428,15 +10428,15 @@ function Qr(t) {
|
|
|
10428
10428
|
fetchStatus: "idle"
|
|
10429
10429
|
};
|
|
10430
10430
|
}
|
|
10431
|
-
var
|
|
10431
|
+
var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
10432
10432
|
constructor(e) {
|
|
10433
10433
|
super();
|
|
10434
10434
|
G(this, ue);
|
|
10435
|
-
G(this,
|
|
10435
|
+
G(this, Mt);
|
|
10436
10436
|
G(this, ce);
|
|
10437
10437
|
G(this, Z);
|
|
10438
10438
|
G(this, ze);
|
|
10439
|
-
D(this,
|
|
10439
|
+
D(this, Mt, e.client), this.mutationId = e.mutationId, D(this, Z, e.mutationCache), D(this, ce, []), this.state = e.state || UA(), this.setOptions(e.options), this.scheduleGc();
|
|
10440
10440
|
}
|
|
10441
10441
|
setOptions(e) {
|
|
10442
10442
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -10467,11 +10467,11 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10467
10467
|
this.execute(this.state.variables);
|
|
10468
10468
|
}
|
|
10469
10469
|
async execute(e) {
|
|
10470
|
-
var a, c, l, A, f, p, B,
|
|
10470
|
+
var a, c, l, A, f, p, B, w, O, I, V, R, Q, Y, v, H, U, ee;
|
|
10471
10471
|
const n = () => {
|
|
10472
10472
|
z(this, ue, Me).call(this, { type: "continue" });
|
|
10473
10473
|
}, r = {
|
|
10474
|
-
client: h(this,
|
|
10474
|
+
client: h(this, Mt),
|
|
10475
10475
|
meta: this.options.meta,
|
|
10476
10476
|
mutationKey: this.options.mutationKey
|
|
10477
10477
|
};
|
|
@@ -10525,7 +10525,7 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10525
10525
|
e,
|
|
10526
10526
|
this.state.context,
|
|
10527
10527
|
r
|
|
10528
|
-
)), await ((
|
|
10528
|
+
)), await ((w = (B = h(this, Z).config).onSettled) == null ? void 0 : w.call(
|
|
10529
10529
|
B,
|
|
10530
10530
|
q,
|
|
10531
10531
|
null,
|
|
@@ -10566,8 +10566,8 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10566
10566
|
Promise.reject(u);
|
|
10567
10567
|
}
|
|
10568
10568
|
try {
|
|
10569
|
-
await ((H = (
|
|
10570
|
-
|
|
10569
|
+
await ((H = (v = h(this, Z).config).onSettled) == null ? void 0 : H.call(
|
|
10570
|
+
v,
|
|
10571
10571
|
void 0,
|
|
10572
10572
|
q,
|
|
10573
10573
|
this.state.variables,
|
|
@@ -10595,7 +10595,7 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10595
10595
|
h(this, Z).runNext(this);
|
|
10596
10596
|
}
|
|
10597
10597
|
}
|
|
10598
|
-
},
|
|
10598
|
+
}, Mt = new WeakMap(), ce = new WeakMap(), Z = new WeakMap(), ze = new WeakMap(), ue = new WeakSet(), Me = function(e) {
|
|
10599
10599
|
const n = (r) => {
|
|
10600
10600
|
switch (e.type) {
|
|
10601
10601
|
case "failed":
|
|
@@ -10672,19 +10672,19 @@ function UA() {
|
|
|
10672
10672
|
submittedAt: 0
|
|
10673
10673
|
};
|
|
10674
10674
|
}
|
|
10675
|
-
var fe, ae,
|
|
10675
|
+
var fe, ae, It, Lr, Yi = (Lr = class extends un {
|
|
10676
10676
|
constructor(n = {}) {
|
|
10677
10677
|
super();
|
|
10678
10678
|
G(this, fe);
|
|
10679
10679
|
G(this, ae);
|
|
10680
|
-
G(this,
|
|
10681
|
-
this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this,
|
|
10680
|
+
G(this, It);
|
|
10681
|
+
this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, It, 0);
|
|
10682
10682
|
}
|
|
10683
10683
|
build(n, r, s) {
|
|
10684
10684
|
const i = new SA({
|
|
10685
10685
|
client: n,
|
|
10686
10686
|
mutationCache: this,
|
|
10687
|
-
mutationId: ++
|
|
10687
|
+
mutationId: ++xt(this, It)._,
|
|
10688
10688
|
options: n.defaultMutationOptions(r),
|
|
10689
10689
|
state: s
|
|
10690
10690
|
});
|
|
@@ -10692,7 +10692,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10692
10692
|
}
|
|
10693
10693
|
add(n) {
|
|
10694
10694
|
h(this, fe).add(n);
|
|
10695
|
-
const r =
|
|
10695
|
+
const r = Rt(n);
|
|
10696
10696
|
if (typeof r == "string") {
|
|
10697
10697
|
const s = h(this, ae).get(r);
|
|
10698
10698
|
s ? s.push(n) : h(this, ae).set(r, [n]);
|
|
@@ -10701,7 +10701,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10701
10701
|
}
|
|
10702
10702
|
remove(n) {
|
|
10703
10703
|
if (h(this, fe).delete(n)) {
|
|
10704
|
-
const r =
|
|
10704
|
+
const r = Rt(n);
|
|
10705
10705
|
if (typeof r == "string") {
|
|
10706
10706
|
const s = h(this, ae).get(r);
|
|
10707
10707
|
if (s)
|
|
@@ -10714,7 +10714,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10714
10714
|
this.notify({ type: "removed", mutation: n });
|
|
10715
10715
|
}
|
|
10716
10716
|
canRun(n) {
|
|
10717
|
-
const r =
|
|
10717
|
+
const r = Rt(n);
|
|
10718
10718
|
if (typeof r == "string") {
|
|
10719
10719
|
const s = h(this, ae).get(r), i = s == null ? void 0 : s.find(
|
|
10720
10720
|
(a) => a.state.status === "pending"
|
|
@@ -10725,7 +10725,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10725
10725
|
}
|
|
10726
10726
|
runNext(n) {
|
|
10727
10727
|
var s;
|
|
10728
|
-
const r =
|
|
10728
|
+
const r = Rt(n);
|
|
10729
10729
|
if (typeof r == "string") {
|
|
10730
10730
|
const i = (s = h(this, ae).get(r)) == null ? void 0 : s.find((a) => a !== n && a.state.isPaused);
|
|
10731
10731
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
@@ -10766,8 +10766,8 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
|
10766
10766
|
)
|
|
10767
10767
|
);
|
|
10768
10768
|
}
|
|
10769
|
-
}, fe = new WeakMap(), ae = new WeakMap(),
|
|
10770
|
-
function
|
|
10769
|
+
}, fe = new WeakMap(), ae = new WeakMap(), It = new WeakMap(), Lr);
|
|
10770
|
+
function Rt(t) {
|
|
10771
10771
|
var e;
|
|
10772
10772
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
10773
10773
|
}
|
|
@@ -10856,15 +10856,15 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
10856
10856
|
D(this, N, e.queryCache || new Vi()), D(this, Ye, e.mutationCache || new Yi()), D(this, Ve, e.defaultOptions || {}), D(this, ct, /* @__PURE__ */ new Map()), D(this, ut, /* @__PURE__ */ new Map()), D(this, xe, 0);
|
|
10857
10857
|
}
|
|
10858
10858
|
mount() {
|
|
10859
|
-
|
|
10859
|
+
xt(this, xe)._++, h(this, xe) === 1 && (D(this, lt, Mi.subscribe(async (e) => {
|
|
10860
10860
|
e && (await this.resumePausedMutations(), h(this, N).onFocus());
|
|
10861
|
-
})), D(this, At,
|
|
10861
|
+
})), D(this, At, en.subscribe(async (e) => {
|
|
10862
10862
|
e && (await this.resumePausedMutations(), h(this, N).onOnline());
|
|
10863
10863
|
})));
|
|
10864
10864
|
}
|
|
10865
10865
|
unmount() {
|
|
10866
10866
|
var e, n;
|
|
10867
|
-
|
|
10867
|
+
xt(this, xe)._--, h(this, xe) === 0 && ((e = h(this, lt)) == null || e.call(this), D(this, lt, void 0), (n = h(this, At)) == null || n.call(this), D(this, At, void 0));
|
|
10868
10868
|
}
|
|
10869
10869
|
isFetching(e) {
|
|
10870
10870
|
return h(this, N).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -10986,7 +10986,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
10986
10986
|
return e._type = "infinite", this.ensureQueryData(e);
|
|
10987
10987
|
}
|
|
10988
10988
|
resumePausedMutations() {
|
|
10989
|
-
return
|
|
10989
|
+
return en.isOnline() ? h(this, Ye).resumePausedMutations() : Promise.resolve();
|
|
10990
10990
|
}
|
|
10991
10991
|
getQueryCache() {
|
|
10992
10992
|
return h(this, N);
|
|
@@ -11001,7 +11001,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11001
11001
|
D(this, Ve, e);
|
|
11002
11002
|
}
|
|
11003
11003
|
setQueryDefaults(e, n) {
|
|
11004
|
-
h(this, ct).set(
|
|
11004
|
+
h(this, ct).set(Dt(e), {
|
|
11005
11005
|
queryKey: e,
|
|
11006
11006
|
defaultOptions: n
|
|
11007
11007
|
});
|
|
@@ -11009,11 +11009,11 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11009
11009
|
getQueryDefaults(e) {
|
|
11010
11010
|
const n = [...h(this, ct).values()], r = {};
|
|
11011
11011
|
return n.forEach((s) => {
|
|
11012
|
-
|
|
11012
|
+
Ct(e, s.queryKey) && Object.assign(r, s.defaultOptions);
|
|
11013
11013
|
}), r;
|
|
11014
11014
|
}
|
|
11015
11015
|
setMutationDefaults(e, n) {
|
|
11016
|
-
h(this, ut).set(
|
|
11016
|
+
h(this, ut).set(Dt(e), {
|
|
11017
11017
|
mutationKey: e,
|
|
11018
11018
|
defaultOptions: n
|
|
11019
11019
|
});
|
|
@@ -11021,7 +11021,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11021
11021
|
getMutationDefaults(e) {
|
|
11022
11022
|
const n = [...h(this, ut).values()], r = {};
|
|
11023
11023
|
return n.forEach((s) => {
|
|
11024
|
-
|
|
11024
|
+
Ct(e, s.mutationKey) && Object.assign(r, s.defaultOptions);
|
|
11025
11025
|
}), r;
|
|
11026
11026
|
}
|
|
11027
11027
|
defaultQueryOptions(e) {
|
|
@@ -11036,7 +11036,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11036
11036
|
return n.queryHash || (n.queryHash = er(
|
|
11037
11037
|
n.queryKey,
|
|
11038
11038
|
n
|
|
11039
|
-
)), n.refetchOnReconnect === void 0 && (n.refetchOnReconnect = n.networkMode !== "always"), n.throwOnError === void 0 && (n.throwOnError = !!n.suspense), !n.networkMode && n.persister && (n.networkMode = "offlineFirst"), n.queryFn ===
|
|
11039
|
+
)), n.refetchOnReconnect === void 0 && (n.refetchOnReconnect = n.networkMode !== "always"), n.throwOnError === void 0 && (n.throwOnError = !!n.suspense), !n.networkMode && n.persister && (n.networkMode = "offlineFirst"), n.queryFn === $t && (n.enabled = !1), n;
|
|
11040
11040
|
}
|
|
11041
11041
|
defaultMutationOptions(e) {
|
|
11042
11042
|
return e != null && e._defaulted ? e : {
|
|
@@ -11121,7 +11121,7 @@ var KA = class extends Vi {
|
|
|
11121
11121
|
queryCache: t.queryCache || new KA(),
|
|
11122
11122
|
mutationCache: t.mutationCache || new JA()
|
|
11123
11123
|
};
|
|
11124
|
-
super(e), this.isRestoring =
|
|
11124
|
+
super(e), this.isRestoring = St(!1);
|
|
11125
11125
|
}
|
|
11126
11126
|
isFetching(t = {}) {
|
|
11127
11127
|
return super.isFetching(T(t));
|
|
@@ -11220,7 +11220,7 @@ var KA = class extends Vi {
|
|
|
11220
11220
|
};
|
|
11221
11221
|
const $A = Ki({
|
|
11222
11222
|
history: Ji(),
|
|
11223
|
-
routes: [...
|
|
11223
|
+
routes: [...bt, ...pt].map((t) => ({
|
|
11224
11224
|
...t,
|
|
11225
11225
|
component: os(
|
|
11226
11226
|
_r({
|
|
@@ -11231,10 +11231,10 @@ const $A = Ki({
|
|
|
11231
11231
|
});
|
|
11232
11232
|
$A.beforeEach((t) => {
|
|
11233
11233
|
var r;
|
|
11234
|
-
const { currentCountry: e } =
|
|
11234
|
+
const { currentCountry: e } = rn(), n = e.value;
|
|
11235
11235
|
if (!n) return !0;
|
|
11236
11236
|
if ((r = t.meta) != null && r.region && !t.meta.region[n]) {
|
|
11237
|
-
const s =
|
|
11237
|
+
const s = bt.find(
|
|
11238
11238
|
(i) => {
|
|
11239
11239
|
var a;
|
|
11240
11240
|
return ((a = i.meta) == null ? void 0 : a.sidebarDisplay) && (!i.meta.region || i.meta.region[n]);
|
|
@@ -11244,17 +11244,17 @@ $A.beforeEach((t) => {
|
|
|
11244
11244
|
}
|
|
11245
11245
|
return !0;
|
|
11246
11246
|
});
|
|
11247
|
-
const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */
|
|
11247
|
+
const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */ tn({
|
|
11248
11248
|
__name: "AppSidebar",
|
|
11249
11249
|
setup(t) {
|
|
11250
|
-
const e =
|
|
11250
|
+
const e = rn(), n = _i(), { t: r } = ns(), s = St(n.currentRoute.value.name);
|
|
11251
11251
|
$r(n.currentRoute, () => {
|
|
11252
11252
|
let A = n.currentRoute.value.name;
|
|
11253
11253
|
n.currentRoute.value.meta.parent && (A = n.currentRoute.value.meta.parent), s.value = A;
|
|
11254
11254
|
});
|
|
11255
|
-
const i =
|
|
11256
|
-
var B,
|
|
11257
|
-
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((
|
|
11255
|
+
const i = bt.map((A) => {
|
|
11256
|
+
var B, w;
|
|
11257
|
+
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((w = A.meta.region) != null && w[e.currentCountry.value]) || A.meta.section)
|
|
11258
11258
|
return;
|
|
11259
11259
|
const f = A.meta.sidebarDisplay, p = {
|
|
11260
11260
|
label: f.startsWith("i18n:") ? r(f.replaceAll("i18n:", "")) : f,
|
|
@@ -11264,12 +11264,12 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11264
11264
|
return n.push({ name: A.name });
|
|
11265
11265
|
}
|
|
11266
11266
|
};
|
|
11267
|
-
return A.meta.sidebarNew && (p.badge = () =>
|
|
11267
|
+
return A.meta.sidebarNew && (p.badge = () => vn(ea.FmPill, { label: "New" })), p;
|
|
11268
11268
|
}).filter((A) => !!A);
|
|
11269
11269
|
function a(A, f) {
|
|
11270
11270
|
return A.map((p) => {
|
|
11271
|
-
var B,
|
|
11272
|
-
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (
|
|
11271
|
+
var B, w;
|
|
11272
|
+
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (w = p.meta) != null && w.sidebarDisplay ? p.meta.section !== f ? [] : [
|
|
11273
11273
|
{
|
|
11274
11274
|
label: p.meta.sidebarDisplay.startsWith("i18n:") ? r(p.meta.sidebarDisplay.replaceAll("i18n:", "")) : p.meta.sidebarDisplay,
|
|
11275
11275
|
value: p.name,
|
|
@@ -11294,7 +11294,16 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11294
11294
|
};
|
|
11295
11295
|
}).filter((A) => !!A), l = Nn(() => {
|
|
11296
11296
|
const A = [...i];
|
|
11297
|
-
return
|
|
11297
|
+
return A.push({
|
|
11298
|
+
label: "",
|
|
11299
|
+
value: "divider",
|
|
11300
|
+
disabled: !0
|
|
11301
|
+
}), A.push({
|
|
11302
|
+
label: r("financing.title"),
|
|
11303
|
+
icon: "credit_score",
|
|
11304
|
+
value: "divider",
|
|
11305
|
+
disabled: !0
|
|
11306
|
+
}), A.push(...a(bt, "financing")), ed(e.sessionUser.value) && (A.push({
|
|
11298
11307
|
label: "",
|
|
11299
11308
|
value: "divider",
|
|
11300
11309
|
disabled: !0
|
|
@@ -11325,7 +11334,7 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11325
11334
|
});
|
|
11326
11335
|
return (A, f) => {
|
|
11327
11336
|
const p = es("FmCollapsibleTabs");
|
|
11328
|
-
return
|
|
11337
|
+
return nn(), Hn(p, {
|
|
11329
11338
|
modelValue: s.value,
|
|
11330
11339
|
"onUpdate:modelValue": f[0] || (f[0] = (B) => s.value = B),
|
|
11331
11340
|
items: l.value,
|
|
@@ -11334,11 +11343,11 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11334
11343
|
};
|
|
11335
11344
|
}
|
|
11336
11345
|
});
|
|
11337
|
-
var nd = { firebase: { apiKey: "
|
|
11338
|
-
const bd = /* @__PURE__ */
|
|
11346
|
+
var nd = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" } };
|
|
11347
|
+
const bd = /* @__PURE__ */ tn({
|
|
11339
11348
|
__name: "App",
|
|
11340
11349
|
setup(t) {
|
|
11341
|
-
const { state: e } = Qo(), n =
|
|
11350
|
+
const { state: e } = Qo(), n = rn(), r = ts(), s = new _A();
|
|
11342
11351
|
Wi(xi, s);
|
|
11343
11352
|
const i = Ss(nd.firebase);
|
|
11344
11353
|
async function a() {
|
|
@@ -11355,12 +11364,12 @@ const bd = /* @__PURE__ */ en({
|
|
|
11355
11364
|
s.unmount();
|
|
11356
11365
|
}), (c, l) => {
|
|
11357
11366
|
const A = es("RouterView");
|
|
11358
|
-
return
|
|
11367
|
+
return nn(), Hn(A, {
|
|
11359
11368
|
key: ge(r).path
|
|
11360
11369
|
});
|
|
11361
11370
|
};
|
|
11362
11371
|
}
|
|
11363
|
-
}),
|
|
11372
|
+
}), vd = () => {
|
|
11364
11373
|
const t = [
|
|
11365
11374
|
{ "en-US": na, "th-TH": sa, "zh-CN": aa },
|
|
11366
11375
|
qi
|
|
@@ -11377,7 +11386,7 @@ const bd = /* @__PURE__ */ en({
|
|
|
11377
11386
|
},
|
|
11378
11387
|
{}
|
|
11379
11388
|
);
|
|
11380
|
-
},
|
|
11389
|
+
}, wd = [...pt, ...bt].map((t) => ({
|
|
11381
11390
|
...t,
|
|
11382
11391
|
component: os(
|
|
11383
11392
|
_r({ loader: t.component })
|
|
@@ -11385,7 +11394,7 @@ const bd = /* @__PURE__ */ en({
|
|
|
11385
11394
|
}));
|
|
11386
11395
|
export {
|
|
11387
11396
|
xa as A,
|
|
11388
|
-
|
|
11397
|
+
wd as B,
|
|
11389
11398
|
un as S,
|
|
11390
11399
|
yr as _,
|
|
11391
11400
|
Vn as a,
|
|
@@ -11413,5 +11422,5 @@ export {
|
|
|
11413
11422
|
ua as w,
|
|
11414
11423
|
ld as x,
|
|
11415
11424
|
bd as y,
|
|
11416
|
-
|
|
11425
|
+
vd as z
|
|
11417
11426
|
};
|