@feedmepos/mf-payment 1.11.4-dev → 1.11.5
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-BPh2hhit.js → Actions.vue_vue_type_script_setup_true_lang-3SV7Yisp.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DgswT3Ud.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-C03x7TOE.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-D7RuRMlk.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DrlKuLw7.js} +3 -3
- package/dist/{Chargeback-B8cjc_pN.js → Chargeback-EcJi6zOO.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DQXv0gnh.js → DocumentViewer.vue_vue_type_script_setup_true_lang-Ub6yU-qZ.js} +1 -1
- package/dist/{ExternalTerminal-r_0OqPCU.js → ExternalTerminal-CHTRv3Ua.js} +6 -6
- package/dist/{OnboardForm-BCZ_YurN.js → OnboardForm-B378DOcX.js} +6 -6
- package/dist/{OnboardForm-BVfA7iqT.js → OnboardForm-_cXLOdhB.js} +462 -432
- package/dist/{OnboardSubmission-JZDSvuzp.js → OnboardSubmission-2ywRR2fk.js} +3 -3
- package/dist/{OnboardSubmission-DmWcJsAp.js → OnboardSubmission-DxqZG6QZ.js} +6 -6
- package/dist/{PaymentCheckout-CstxxfEL.js → PaymentCheckout-Br97izd1.js} +2 -2
- package/dist/{PayoutAccount-SYruVIwb.js → PayoutAccount-BCKC42lU.js} +7 -7
- package/dist/{PayoutAccount-D-G1xwPX.js → PayoutAccount-CbqfCHQM.js} +5 -5
- package/dist/{PayoutAccountSetting-B99lsGOy.js → PayoutAccountSetting-B-SJFwjG.js} +6 -6
- package/dist/{Restaurant-BX2gE_HI.js → Restaurant-404A4nLn.js} +4 -4
- package/dist/{RestaurantSetting-D0E6REVo.js → RestaurantSetting-LzQiQcIv.js} +3 -3
- package/dist/{Settlement-BDov44GA.js → Settlement-BJ1KdP50.js} +3 -3
- package/dist/{Settlement-D16D5PXH.js → Settlement-DuIEuBWL.js} +4 -4
- package/dist/{SettlementTransactions-BUvDH10q.js → SettlementTransactions-DxziumM1.js} +5 -5
- package/dist/{SettlementTransactions-CyJ21ZA6.js → SettlementTransactions-iHUFJO_W.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-DlIp-zin.js → Status.vue_vue_type_script_setup_true_lang-BHNHGevm.js} +1 -1
- package/dist/{Terminal-CY2uX4Wf.js → Terminal-DB76mZcJ.js} +6 -6
- package/dist/{TerminalSetting-C6U8gzkD.js → TerminalSetting-IpoWXpKY.js} +7 -7
- package/dist/{TerminalTemplate-DwxrCqyi.js → TerminalTemplate-MAMv9HaT.js} +5 -5
- package/dist/{TerminalTemplateSetting-Ca1bBZOK.js → TerminalTemplateSetting-Ci_6hWRf.js} +5 -5
- package/dist/{Transaction-EZWgDtJ8.js → Transaction-Brn5Mdhj.js} +10 -10
- package/dist/{Transaction-wBN2-1H9.js → Transaction-CM5PgSXC.js} +12 -12
- package/dist/{TransactionOld-b8vKw1PJ.js → TransactionOld-CFg0DQb9.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-Bju-v34z.js → TransactionStatus.vue_vue_type_script_setup_true_lang-DPyZfivn.js} +1 -1
- package/dist/api/onboard-submission/index.d.ts +1 -1
- package/dist/{app-DJINOWPG.js → app-D4I1AB3Q.js} +447 -456
- package/dist/app.js +1 -1
- package/dist/{assets-RL6HCVpd.js → assets-CUHEPueQ.js} +1 -1
- package/dist/{grafana-De5XGV4f.js → grafana-ChBCGFOj.js} +1 -1
- package/dist/{index-BKieABma.js → index-1xbtrg1U.js} +1 -1
- package/dist/{index-BPMowDa0.js → index-CCGiuuqV.js} +1 -1
- package/dist/{index-Bv9zWWLS.js → index-CLplfyOs.js} +1 -1
- package/dist/{index-UgdiYNp8.js → index-CMzi8EpY.js} +1 -1
- package/dist/{index-CSRxJCgx.js → index-CRIOFxJ6.js} +1 -1
- package/dist/{index-BWJe-a5q.js → index-CmBjL8wD.js} +1 -1
- package/dist/{index-BCyFg7AI.js → index-CxsHLT0K.js} +1 -1
- package/dist/{index-BKtdCHW0.js → index-DVm28tuh.js} +1 -1
- package/dist/{index-B8KFOPPX.js → index-DWKU1hJS.js} +24 -24
- package/dist/{index-DoL1iPS4.js → index-DmCFB0qO.js} +1 -1
- package/dist/{index-DBm5x5lN.js → index-n0NgHff2.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BiA2JIwO.js → index.vue_vue_type_script_setup_true_lang-BLDZPBcs.js} +1 -1
- package/dist/{onboard-submission-mj3NaLcK.js → onboard-submission-CvKpd6hG.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-Bg55qZ-o.js → payout-account-CQLK-tI6.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useQuery-CzkaEzXi.js → useQuery-ak8x1KJc.js} +1 -1
- package/package.json +1 -1
|
@@ -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 Vt = (t, e, n, r) => ({
|
|
7
7
|
set _(s) {
|
|
8
8
|
D(t, e, s, n);
|
|
9
9
|
},
|
|
@@ -11,10 +11,10 @@ var xt = (t, e, n, r) => ({
|
|
|
11
11
|
return h(t, e, r);
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
import { routes as
|
|
15
|
-
import { isRef as qn, ref as
|
|
14
|
+
import { routes as ki, i18nMessages as qi } from "@feedmepos/mf-financing";
|
|
15
|
+
import { isRef as qn, ref as Xt, shallowRef as Ni, watchEffect as Hi, computed as Nn, h as wn, defineComponent as en, unref as ge, openBlock as tn, 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 nn, 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 = {
|
|
@@ -1264,28 +1264,28 @@ function ca(t, e, n) {
|
|
|
1264
1264
|
evaluating: i = void 0,
|
|
1265
1265
|
shallow: a = !0,
|
|
1266
1266
|
onError: c = oa
|
|
1267
|
-
} = r, l =
|
|
1267
|
+
} = r, l = Xt(!s), A = a ? Ni(e) : Xt(e);
|
|
1268
1268
|
let f = 0;
|
|
1269
1269
|
return Hi(async (p) => {
|
|
1270
1270
|
if (!l.value)
|
|
1271
1271
|
return;
|
|
1272
1272
|
f++;
|
|
1273
1273
|
const B = f;
|
|
1274
|
-
let
|
|
1274
|
+
let v = !1;
|
|
1275
1275
|
i && Promise.resolve().then(() => {
|
|
1276
1276
|
i.value = !0;
|
|
1277
1277
|
});
|
|
1278
1278
|
try {
|
|
1279
1279
|
const P = await t((I) => {
|
|
1280
1280
|
p(() => {
|
|
1281
|
-
i && (i.value = !1),
|
|
1281
|
+
i && (i.value = !1), v || I();
|
|
1282
1282
|
});
|
|
1283
1283
|
});
|
|
1284
1284
|
B === f && (A.value = P);
|
|
1285
1285
|
} catch (P) {
|
|
1286
1286
|
c(P);
|
|
1287
1287
|
} finally {
|
|
1288
|
-
i && B === f && (i.value = !1),
|
|
1288
|
+
i && B === f && (i.value = !1), v = !0;
|
|
1289
1289
|
}
|
|
1290
1290
|
}), s ? Nn(() => (l.value = !0, A.value)) : A;
|
|
1291
1291
|
}
|
|
@@ -1396,7 +1396,7 @@ var rs = { exports: {} };
|
|
|
1396
1396
|
return !0;
|
|
1397
1397
|
};
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function v(u, m, g, y) {
|
|
1400
1400
|
return u.validate(u.options, m, g, y);
|
|
1401
1401
|
}
|
|
1402
1402
|
var P = {
|
|
@@ -1441,7 +1441,7 @@ var rs = { exports: {} };
|
|
|
1441
1441
|
},
|
|
1442
1442
|
$or: function(u, m, g, y) {
|
|
1443
1443
|
for (var b = 0, E = u.length; b < E; b++)
|
|
1444
|
-
if (
|
|
1444
|
+
if (v(f(u, b), m, g, y)) return !0;
|
|
1445
1445
|
return !1;
|
|
1446
1446
|
},
|
|
1447
1447
|
$nor: function(u, m, g, y) {
|
|
@@ -1449,7 +1449,7 @@ var rs = { exports: {} };
|
|
|
1449
1449
|
},
|
|
1450
1450
|
$and: function(u, m, g, y) {
|
|
1451
1451
|
for (var b = 0, E = u.length; b < E; b++)
|
|
1452
|
-
if (!
|
|
1452
|
+
if (!v(f(u, b), m, g, y)) return !1;
|
|
1453
1453
|
return !0;
|
|
1454
1454
|
},
|
|
1455
1455
|
$regex: p(function(u, m) {
|
|
@@ -1461,9 +1461,9 @@ var rs = { exports: {} };
|
|
|
1461
1461
|
$elemMatch: function(u, m, g, y) {
|
|
1462
1462
|
return c(m) ? !!~function(b, E) {
|
|
1463
1463
|
for (var O = 0; O < b.length; O++)
|
|
1464
|
-
if (f(b, O),
|
|
1464
|
+
if (f(b, O), v(E, f(b, O))) return O;
|
|
1465
1465
|
return -1;
|
|
1466
|
-
}(m, u) :
|
|
1466
|
+
}(m, u) : v(u, m, g, y);
|
|
1467
1467
|
},
|
|
1468
1468
|
$exists: function(u, m, g, y) {
|
|
1469
1469
|
return y.hasOwnProperty(g) === u;
|
|
@@ -1521,7 +1521,7 @@ var rs = { exports: {} };
|
|
|
1521
1521
|
for (j = u.length; j--; ) if (u[j] == null) return !0;
|
|
1522
1522
|
}
|
|
1523
1523
|
for (j = u.length; j--; ) {
|
|
1524
|
-
var O =
|
|
1524
|
+
var O = v(H(f(u, j), g), E, j, u);
|
|
1525
1525
|
if (O && String(O) !== "[object Object]" && String(E) !== "[object Object]")
|
|
1526
1526
|
return !0;
|
|
1527
1527
|
}
|
|
@@ -1564,7 +1564,7 @@ var rs = { exports: {} };
|
|
|
1564
1564
|
$not: function(u, m, g) {
|
|
1565
1565
|
var y = Y(g)(u);
|
|
1566
1566
|
return function(b, E, O) {
|
|
1567
|
-
return !
|
|
1567
|
+
return !v(y, b, E, O);
|
|
1568
1568
|
};
|
|
1569
1569
|
},
|
|
1570
1570
|
$type: function(u) {
|
|
@@ -1591,27 +1591,27 @@ var rs = { exports: {} };
|
|
|
1591
1591
|
function V(u, m) {
|
|
1592
1592
|
return { options: u, validate: m };
|
|
1593
1593
|
}
|
|
1594
|
-
function
|
|
1594
|
+
function k(u, m) {
|
|
1595
1595
|
var g = u.keyPath, y = u.child, b = u.query, E = [];
|
|
1596
1596
|
if (function tr(Ce, ft, gt, Fi, ln) {
|
|
1597
1597
|
if (gt === ft.length || Ce == null)
|
|
1598
1598
|
return void ln.push([Ce, ft[gt - 1], Fi]);
|
|
1599
1599
|
var nr = f(ft, gt);
|
|
1600
1600
|
if (c(Ce) && isNaN(Number(nr)))
|
|
1601
|
-
for (var An = 0,
|
|
1601
|
+
for (var An = 0, Ri = Ce.length; An < Ri; An++) tr(f(Ce, An), ft, gt, Ce, ln);
|
|
1602
1602
|
else tr(f(Ce, nr), ft, gt + 1, Ce, ln);
|
|
1603
1603
|
}(m, g, 0, m, E), E.length === 1) {
|
|
1604
1604
|
var O = E[0];
|
|
1605
|
-
return
|
|
1605
|
+
return v(y, O[0], O[1], O[2]);
|
|
1606
1606
|
}
|
|
1607
1607
|
for (var j = b && b.$ne !== void 0, W = j, _ = 0; _ < E.length; _++) {
|
|
1608
|
-
var he = E[_],
|
|
1609
|
-
j ? W &=
|
|
1608
|
+
var he = E[_], Yt = v(y, he[0], he[1], he[2]);
|
|
1609
|
+
j ? W &= Yt : W |= Yt;
|
|
1610
1610
|
}
|
|
1611
1611
|
return W;
|
|
1612
1612
|
}
|
|
1613
1613
|
function Q(u, m, g) {
|
|
1614
|
-
return V({ keyPath: u, child: m, query: g },
|
|
1614
|
+
return V({ keyPath: u, child: m, query: g }, k);
|
|
1615
1615
|
}
|
|
1616
1616
|
function Y(u) {
|
|
1617
1617
|
var m = u.comparable, g = u.expressions, y = function(O) {
|
|
@@ -1628,8 +1628,8 @@ var rs = { exports: {} };
|
|
|
1628
1628
|
else {
|
|
1629
1629
|
if (W.charCodeAt(0) === 36)
|
|
1630
1630
|
throw new Error("Unknown operation " + W);
|
|
1631
|
-
var
|
|
1632
|
-
j.push(Q(
|
|
1631
|
+
var Yt = W.split(".");
|
|
1632
|
+
j.push(Q(Yt, E(_), _));
|
|
1633
1633
|
}
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
@@ -1639,24 +1639,24 @@ var rs = { exports: {} };
|
|
|
1639
1639
|
if (!l(W)) return _;
|
|
1640
1640
|
for (var he in W) _.push(he), j(W[he], _);
|
|
1641
1641
|
return _;
|
|
1642
|
-
}(O, []).join(",").search(/[$.]/) === -1 ? V(O,
|
|
1642
|
+
}(O, []).join(",").search(/[$.]/) === -1 ? V(O, w) : b(O);
|
|
1643
1643
|
};
|
|
1644
1644
|
return function(O) {
|
|
1645
1645
|
return b(y(O));
|
|
1646
1646
|
};
|
|
1647
1647
|
}
|
|
1648
|
-
function
|
|
1648
|
+
function w(u, m) {
|
|
1649
1649
|
if (Object.prototype.toString.call(u) !== Object.prototype.toString.call(m))
|
|
1650
1650
|
return !1;
|
|
1651
1651
|
if (l(u)) {
|
|
1652
1652
|
if (Object.keys(u).length !== Object.keys(m).length) return !1;
|
|
1653
|
-
for (var g in u) if (!
|
|
1653
|
+
for (var g in u) if (!w(u[g], m[g])) return !1;
|
|
1654
1654
|
return !0;
|
|
1655
1655
|
}
|
|
1656
1656
|
if (c(u)) {
|
|
1657
1657
|
if (u.length !== m.length) return !1;
|
|
1658
1658
|
for (var y = 0, b = u.length; y < b; y++)
|
|
1659
|
-
if (!
|
|
1659
|
+
if (!w(u[y], m[y])) return !1;
|
|
1660
1660
|
return !0;
|
|
1661
1661
|
}
|
|
1662
1662
|
return u === m;
|
|
@@ -1666,18 +1666,18 @@ var rs = { exports: {} };
|
|
|
1666
1666
|
return m && m.select && (g = {
|
|
1667
1667
|
options: g,
|
|
1668
1668
|
validate: function(y, b, E, O) {
|
|
1669
|
-
return
|
|
1669
|
+
return v(y, b && m.select(b), E, O);
|
|
1670
1670
|
}
|
|
1671
1671
|
}), g;
|
|
1672
1672
|
}
|
|
1673
1673
|
function U(u, m) {
|
|
1674
1674
|
var g = H(u, m = Object.assign({ compare: ee, comparable: q }, m));
|
|
1675
1675
|
return function(y, b, E) {
|
|
1676
|
-
return
|
|
1676
|
+
return v(g, y, b, E);
|
|
1677
1677
|
};
|
|
1678
1678
|
}
|
|
1679
1679
|
function ee(u, m) {
|
|
1680
|
-
if (
|
|
1680
|
+
if (w(u, m)) return 0;
|
|
1681
1681
|
if (i(u) === i(m)) {
|
|
1682
1682
|
if (u > m) return 1;
|
|
1683
1683
|
if (u < m) return -1;
|
|
@@ -1704,15 +1704,15 @@ function ma(t, e, n) {
|
|
|
1704
1704
|
function fa(t, e) {
|
|
1705
1705
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
|
|
1706
1706
|
}
|
|
1707
|
-
function
|
|
1708
|
-
return
|
|
1707
|
+
function vn(t) {
|
|
1708
|
+
return vn = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
|
|
1709
1709
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
1710
|
-
},
|
|
1710
|
+
}, vn(t);
|
|
1711
1711
|
}
|
|
1712
|
-
function
|
|
1713
|
-
return
|
|
1712
|
+
function St(t, e) {
|
|
1713
|
+
return St = Object.setPrototypeOf || function(r, s) {
|
|
1714
1714
|
return r.__proto__ = s, r;
|
|
1715
|
-
},
|
|
1715
|
+
}, St(t, e);
|
|
1716
1716
|
}
|
|
1717
1717
|
function ga() {
|
|
1718
1718
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
@@ -1724,13 +1724,13 @@ function ga() {
|
|
|
1724
1724
|
return !1;
|
|
1725
1725
|
}
|
|
1726
1726
|
}
|
|
1727
|
-
function
|
|
1728
|
-
return ga() ?
|
|
1727
|
+
function kt(t, e, n) {
|
|
1728
|
+
return ga() ? kt = Reflect.construct : kt = function(s, i, a) {
|
|
1729
1729
|
var c = [null];
|
|
1730
1730
|
c.push.apply(c, i);
|
|
1731
1731
|
var l = Function.bind.apply(s, c), A = new l();
|
|
1732
|
-
return a &&
|
|
1733
|
-
},
|
|
1732
|
+
return a && St(A, a.prototype), A;
|
|
1733
|
+
}, kt.apply(null, arguments);
|
|
1734
1734
|
}
|
|
1735
1735
|
function pa(t) {
|
|
1736
1736
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
@@ -1746,7 +1746,7 @@ function Bn(t) {
|
|
|
1746
1746
|
e.set(r, s);
|
|
1747
1747
|
}
|
|
1748
1748
|
function s() {
|
|
1749
|
-
return
|
|
1749
|
+
return kt(r, arguments, vn(this).constructor);
|
|
1750
1750
|
}
|
|
1751
1751
|
return s.prototype = Object.create(r.prototype, {
|
|
1752
1752
|
constructor: {
|
|
@@ -1755,7 +1755,7 @@ function Bn(t) {
|
|
|
1755
1755
|
writable: !0,
|
|
1756
1756
|
configurable: !0
|
|
1757
1757
|
}
|
|
1758
|
-
}),
|
|
1758
|
+
}), St(s, r);
|
|
1759
1759
|
}, Bn(t);
|
|
1760
1760
|
}
|
|
1761
1761
|
function ir(t) {
|
|
@@ -1765,9 +1765,9 @@ function ir(t) {
|
|
|
1765
1765
|
}
|
|
1766
1766
|
var ss = function(e) {
|
|
1767
1767
|
return 'Cannot execute "' + e.action + '" on "' + e.subjectName + '"';
|
|
1768
|
-
},
|
|
1768
|
+
}, xt = ss, ya = /* @__PURE__ */ function(t) {
|
|
1769
1769
|
fa(e, t), e.setDefaultMessage = function(s) {
|
|
1770
|
-
s === null ?
|
|
1770
|
+
s === null ? xt = ss : xt = typeof s == "string" ? function() {
|
|
1771
1771
|
return s;
|
|
1772
1772
|
} : s;
|
|
1773
1773
|
}, e.from = function(s) {
|
|
@@ -1778,7 +1778,7 @@ var ss = function(e) {
|
|
|
1778
1778
|
};
|
|
1779
1779
|
function e(r, s) {
|
|
1780
1780
|
var i;
|
|
1781
|
-
return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r ||
|
|
1781
|
+
return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r || xt(ir(i)), i._customMessage = null, typeof Error.captureStackTrace == "function" && (i.name = i.constructor.name, Error.captureStackTrace(ir(i), i.constructor)), i;
|
|
1782
1782
|
}
|
|
1783
1783
|
var n = e.prototype;
|
|
1784
1784
|
return n.setMessage = function(s) {
|
|
@@ -1795,7 +1795,7 @@ var ss = function(e) {
|
|
|
1795
1795
|
subjectName: this.ability.subjectName(i)
|
|
1796
1796
|
});
|
|
1797
1797
|
var l = c ? c.reason : "";
|
|
1798
|
-
throw this.message = this._customMessage || l ||
|
|
1798
|
+
throw this.message = this._customMessage || l || xt(this), this;
|
|
1799
1799
|
}
|
|
1800
1800
|
}, n._setMetadata = function(s) {
|
|
1801
1801
|
this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
|
|
@@ -1810,10 +1810,10 @@ function ba(t) {
|
|
|
1810
1810
|
var e = typeof t == "object" ? t.constructor : t;
|
|
1811
1811
|
return e.modelName || e.name;
|
|
1812
1812
|
}
|
|
1813
|
-
function
|
|
1813
|
+
function wa(t) {
|
|
1814
1814
|
return JSON.parse(JSON.stringify(t));
|
|
1815
1815
|
}
|
|
1816
|
-
var
|
|
1816
|
+
var va = /[-/\\^$+?.()|[\]{}]/g, Ba = /\.?\*+\.?/g, Da = /\*+/, Ca = /\./g;
|
|
1817
1817
|
function Ea(t, e, n) {
|
|
1818
1818
|
var r = n[0] === "*" || t[0] === "." && t[t.length - 1] === "." ? "+" : "*", s = t.indexOf("**") === -1 ? "[^.]" : ".", i = t.replace(Ca, "\\$&").replace(Da, s + r);
|
|
1819
1819
|
return e + t.length === n.length ? "(?:" + i + ")?" : i;
|
|
@@ -1823,7 +1823,7 @@ function Ma(t, e, n) {
|
|
|
1823
1823
|
}
|
|
1824
1824
|
function Ia(t) {
|
|
1825
1825
|
var e = t.map(function(r) {
|
|
1826
|
-
return r.replace(
|
|
1826
|
+
return r.replace(va, Ma).replace(Ba, Ea);
|
|
1827
1827
|
}), n = e.length > 1 ? "(?:" + e.join("|") + ")" : e[0];
|
|
1828
1828
|
return new RegExp("^" + n + "$");
|
|
1829
1829
|
}
|
|
@@ -1868,7 +1868,7 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
1868
1868
|
indexedRules: /* @__PURE__ */ Object.create(null),
|
|
1869
1869
|
mergedRules: /* @__PURE__ */ Object.create(null),
|
|
1870
1870
|
events: {},
|
|
1871
|
-
aliases:
|
|
1871
|
+
aliases: wa(ar)
|
|
1872
1872
|
}, this.update(n);
|
|
1873
1873
|
}
|
|
1874
1874
|
var e = t.prototype;
|
|
@@ -1886,8 +1886,8 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
1886
1886
|
for (var s = /* @__PURE__ */ Object.create(null), i = this[te].RuleType, a = !0, c = !1, l = 0; l < r.length; l++) {
|
|
1887
1887
|
var A = new i(r[l]), f = this.expandActions(A.actions), p = Dn(A.subject), B = r.length - l - 1;
|
|
1888
1888
|
a = !!(a && A.inverted), !c && A.fields && (c = !0);
|
|
1889
|
-
for (var
|
|
1890
|
-
var P = p[
|
|
1889
|
+
for (var v = 0; v < p.length; v++) {
|
|
1890
|
+
var P = p[v];
|
|
1891
1891
|
s[P] = s[P] || /* @__PURE__ */ Object.create(null);
|
|
1892
1892
|
for (var I = 0; I < f.length; I++) {
|
|
1893
1893
|
var V = f[I];
|
|
@@ -2031,7 +2031,7 @@ async function Fa(t) {
|
|
|
2031
2031
|
}
|
|
2032
2032
|
return Promise.resolve({ canAccess: !0 });
|
|
2033
2033
|
}
|
|
2034
|
-
async function
|
|
2034
|
+
async function Ra(t, e) {
|
|
2035
2035
|
for (const n of t.matched)
|
|
2036
2036
|
if (n.meta.validationManifest) {
|
|
2037
2037
|
const r = await Fa({
|
|
@@ -2050,8 +2050,8 @@ async function ka(t, e) {
|
|
|
2050
2050
|
};
|
|
2051
2051
|
}
|
|
2052
2052
|
var Cn = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Cn || {});
|
|
2053
|
-
function
|
|
2054
|
-
const t = ts(), { sessionUser: e } =
|
|
2053
|
+
function ka() {
|
|
2054
|
+
const t = ts(), { sessionUser: e } = nn();
|
|
2055
2055
|
return ca(
|
|
2056
2056
|
async () => {
|
|
2057
2057
|
t.matched;
|
|
@@ -2061,7 +2061,7 @@ function Ra() {
|
|
|
2061
2061
|
if (!n)
|
|
2062
2062
|
return "denied";
|
|
2063
2063
|
try {
|
|
2064
|
-
return (await
|
|
2064
|
+
return (await Ra(t, n)).canAccess ? "allowed" : "denied";
|
|
2065
2065
|
} catch {
|
|
2066
2066
|
return "denied";
|
|
2067
2067
|
}
|
|
@@ -2090,7 +2090,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2090
2090
|
subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
|
|
2091
2091
|
}, za = {
|
|
2092
2092
|
noPermission: Wa
|
|
2093
|
-
}, 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__ */
|
|
2093
|
+
}, 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__ */ en({
|
|
2094
2094
|
__name: "NoPermission",
|
|
2095
2095
|
setup(t) {
|
|
2096
2096
|
const { t: e } = ns({
|
|
@@ -2101,7 +2101,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2101
2101
|
"th-TH": za
|
|
2102
2102
|
}
|
|
2103
2103
|
});
|
|
2104
|
-
return (n, r) => (
|
|
2104
|
+
return (n, r) => (tn(), Si("div", Za, [
|
|
2105
2105
|
Ke("div", La, [
|
|
2106
2106
|
Ke("div", Ka, [
|
|
2107
2107
|
Ke("img", {
|
|
@@ -2116,31 +2116,31 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2116
2116
|
])
|
|
2117
2117
|
]));
|
|
2118
2118
|
}
|
|
2119
|
-
}), to = /* @__PURE__ */
|
|
2119
|
+
}), to = /* @__PURE__ */ en({
|
|
2120
2120
|
__name: "PermissionWrapper",
|
|
2121
2121
|
setup(t) {
|
|
2122
|
-
const e =
|
|
2123
|
-
return (n, r) => ge(e) === ge(Cn).Denied ? (
|
|
2122
|
+
const e = ka();
|
|
2123
|
+
return (n, r) => ge(e) === ge(Cn).Denied ? (tn(), Hn(eo, { key: 0 })) : ge(e) === ge(Cn).Allowed ? Qi(n.$slots, "default", { key: 1 }) : Xi("", !0);
|
|
2124
2124
|
}
|
|
2125
2125
|
});
|
|
2126
2126
|
function os(t) {
|
|
2127
2127
|
return {
|
|
2128
2128
|
inheritAttrs: !1,
|
|
2129
2129
|
setup(e, { attrs: n }) {
|
|
2130
|
-
return () =>
|
|
2130
|
+
return () => wn(to, {}, { default: () => wn(t, n) });
|
|
2131
2131
|
}
|
|
2132
2132
|
};
|
|
2133
2133
|
}
|
|
2134
2134
|
d.restaurant, o.manage, d.inventory_stockBalance, o.manage, d.inventory_stockAdjustment, o.manage, d.inventory_unitCostHistory, o.manage, d.inventory_wastageTemplate, o.manage, d.inventory_closingHistory, o.manage, d.inventory_closingTemplate, o.manage, d.inventory_closingDraft, o.manage, d.inventory_ingredient, o.manage, d.inventory_ingredientGroup, o.manage, d.inventory_recipe, o.manage, d.inventory_unit, o.manage, d.inventory_purchaseTransfer, o.manage, d.inventory_orderDraftApproval, o.manage, d.inventory_transferOut, o.manage, d.inventory_surcharge, o.manage, d.inventory_orderTemplate, o.manage, d.inventory_supplier, o.manage, d.inventory_warehouse, o.manage, d.inventory_publish, o.manage, d.inventory_import, o.manage, d.inventory_integration, o.manage, d.crm_membership, o.manage, d.crm_promotion, o.manage, d.crm_voucher, o.manage, d.crm_analytic, o.manage, d.crm_tier, o.manage, d.crm_title, o.manage, d.crm_broadcast, o.manage, d.crm_point, o.manage, d.crm_credit, o.manage, d.crm_experience, o.manage, d.crm_game, o.manage, d.crm_mission, o.manage, d.crm_loyaltyMember, o.manage, d.crm_loyaltySegment, o.manage, d.crm_loyaltyCard, o.manage, d.crm_referral, o.manage, d.crm_store, o.manage, d.crm_transaction, o.manage, d.crm_setting, o.manage, d.crm_bin, o.manage, d.payment_payoutAccount, o.manage, d.payment_paymentOnboarding, o.manage, d.payment_transactions, o.manage, d.payment_settlements, o.manage, d.hrm_teamMember, o.manage, d.hrm_employee, o.manage, d.hrm_auditLog, o.manage, d.report_createReport, o.manage, d.report_accessOverview, o.manage, d.report_accessInsight, o.manage, d.report_accessSetting, o.manage, d.report_accessIntegration, o.manage, d.report_reports_allDefaultReports, o.manage, o.read, o.create, d.report_reports_allCustomReports, o.manage, o.read, o.create, o.update, o.delete;
|
|
2135
2135
|
var x = /* @__PURE__ */ ((t) => (t.crm = "crm", t.crm_user = "crm::user", t.crm_segmentation = "crm::segmentation", t.crm_queue = "crm::queue", t.crm_transaction = "crm::transaction", t.crm_store = "crm::store", t.crm_location = "crm::location", t.crm_effect = "crm::effect", t.crm_setting = "crm::setting", t.crm_reward = "crm::reward", t.crm_campaign = "crm::campaign", t.crm_referral = "crm::referral", t.crm_marketingMaterial = "crm::marketingMaterial", t.crm_voucher = "crm::voucher", t.crm_membership = "crm::membership", t.crm_analytic = "crm::analytic", t.crm_tier = "crm::tier", t.crm_title = "crm::title", t.crm_broadcast = "crm::broadcast", t.crm_point = "crm::point", t.crm_credit = "crm::credit", t.crm_experience = "crm::experience", t.crm_game = "crm::game", t.crm_mission = "crm::mission", t.crm_loyaltyMember = "crm::loyaltyMember", t.crm_loyaltySegment = "crm::loyaltySegment", t.crm_loyaltyCard = "crm::loyaltyCard", t.crm_bin = "crm::bin", t))(x || {});
|
|
2136
|
-
const
|
|
2136
|
+
const R = [
|
|
2137
2137
|
{
|
|
2138
2138
|
label: "CRM",
|
|
2139
2139
|
subject: x.crm,
|
|
2140
2140
|
actions: [o.read]
|
|
2141
2141
|
}
|
|
2142
2142
|
], $ = (...t) => t.flat(), no = [
|
|
2143
|
-
...
|
|
2143
|
+
...R,
|
|
2144
2144
|
{
|
|
2145
2145
|
label: "User",
|
|
2146
2146
|
subject: x.crm_user,
|
|
@@ -2152,7 +2152,7 @@ const k = [
|
|
|
2152
2152
|
]
|
|
2153
2153
|
}
|
|
2154
2154
|
], ro = [
|
|
2155
|
-
...
|
|
2155
|
+
...R,
|
|
2156
2156
|
{
|
|
2157
2157
|
label: "Segmentation",
|
|
2158
2158
|
subject: x.crm_segmentation,
|
|
@@ -2164,7 +2164,7 @@ const k = [
|
|
|
2164
2164
|
]
|
|
2165
2165
|
}
|
|
2166
2166
|
], cs = [
|
|
2167
|
-
...
|
|
2167
|
+
...R,
|
|
2168
2168
|
{
|
|
2169
2169
|
label: "Transaction",
|
|
2170
2170
|
subject: x.crm_transaction,
|
|
@@ -2176,7 +2176,7 @@ const k = [
|
|
|
2176
2176
|
]
|
|
2177
2177
|
}
|
|
2178
2178
|
], us = [
|
|
2179
|
-
...
|
|
2179
|
+
...R,
|
|
2180
2180
|
{
|
|
2181
2181
|
label: "Store",
|
|
2182
2182
|
subject: x.crm_store,
|
|
@@ -2188,7 +2188,7 @@ const k = [
|
|
|
2188
2188
|
]
|
|
2189
2189
|
}
|
|
2190
2190
|
], so = [
|
|
2191
|
-
...
|
|
2191
|
+
...R,
|
|
2192
2192
|
{
|
|
2193
2193
|
label: "Location",
|
|
2194
2194
|
subject: x.crm_location,
|
|
@@ -2200,7 +2200,7 @@ const k = [
|
|
|
2200
2200
|
]
|
|
2201
2201
|
}
|
|
2202
2202
|
], io = [
|
|
2203
|
-
...
|
|
2203
|
+
...R,
|
|
2204
2204
|
{
|
|
2205
2205
|
label: "Effect",
|
|
2206
2206
|
subject: x.crm_effect,
|
|
@@ -2212,14 +2212,14 @@ const k = [
|
|
|
2212
2212
|
]
|
|
2213
2213
|
}
|
|
2214
2214
|
], ao = [
|
|
2215
|
-
...
|
|
2215
|
+
...R,
|
|
2216
2216
|
{
|
|
2217
2217
|
label: "Setting",
|
|
2218
2218
|
subject: x.crm_setting,
|
|
2219
2219
|
actions: [o.read, o.update]
|
|
2220
2220
|
}
|
|
2221
2221
|
], oo = [
|
|
2222
|
-
...
|
|
2222
|
+
...R,
|
|
2223
2223
|
{
|
|
2224
2224
|
label: "Reward",
|
|
2225
2225
|
subject: x.crm_reward,
|
|
@@ -2231,7 +2231,7 @@ const k = [
|
|
|
2231
2231
|
]
|
|
2232
2232
|
}
|
|
2233
2233
|
], se = [
|
|
2234
|
-
...
|
|
2234
|
+
...R,
|
|
2235
2235
|
{
|
|
2236
2236
|
label: "Campaign",
|
|
2237
2237
|
subject: x.crm_campaign,
|
|
@@ -2243,7 +2243,7 @@ const k = [
|
|
|
2243
2243
|
]
|
|
2244
2244
|
}
|
|
2245
2245
|
], ls = [
|
|
2246
|
-
...
|
|
2246
|
+
...R,
|
|
2247
2247
|
{
|
|
2248
2248
|
label: "Referral",
|
|
2249
2249
|
subject: x.crm_referral,
|
|
@@ -2255,7 +2255,7 @@ const k = [
|
|
|
2255
2255
|
]
|
|
2256
2256
|
}
|
|
2257
2257
|
], co = [
|
|
2258
|
-
...
|
|
2258
|
+
...R,
|
|
2259
2259
|
{
|
|
2260
2260
|
label: "Marketing Material",
|
|
2261
2261
|
subject: x.crm_marketingMaterial,
|
|
@@ -2267,14 +2267,14 @@ const k = [
|
|
|
2267
2267
|
]
|
|
2268
2268
|
}
|
|
2269
2269
|
], As = [
|
|
2270
|
-
...
|
|
2270
|
+
...R,
|
|
2271
2271
|
{
|
|
2272
2272
|
label: "Analytic",
|
|
2273
2273
|
subject: x.crm_analytic,
|
|
2274
2274
|
actions: [o.read]
|
|
2275
2275
|
}
|
|
2276
2276
|
], uo = [
|
|
2277
|
-
...
|
|
2277
|
+
...R,
|
|
2278
2278
|
{
|
|
2279
2279
|
label: "Tier",
|
|
2280
2280
|
subject: x.crm_tier,
|
|
@@ -2286,7 +2286,7 @@ const k = [
|
|
|
2286
2286
|
]
|
|
2287
2287
|
}
|
|
2288
2288
|
], lo = [
|
|
2289
|
-
...
|
|
2289
|
+
...R,
|
|
2290
2290
|
{
|
|
2291
2291
|
label: "Title",
|
|
2292
2292
|
subject: x.crm_title,
|
|
@@ -2298,7 +2298,7 @@ const k = [
|
|
|
2298
2298
|
]
|
|
2299
2299
|
}
|
|
2300
2300
|
], Ao = [
|
|
2301
|
-
...
|
|
2301
|
+
...R,
|
|
2302
2302
|
{
|
|
2303
2303
|
label: "Broadcast",
|
|
2304
2304
|
subject: x.crm_broadcast,
|
|
@@ -2310,7 +2310,7 @@ const k = [
|
|
|
2310
2310
|
]
|
|
2311
2311
|
}
|
|
2312
2312
|
], ho = [
|
|
2313
|
-
...
|
|
2313
|
+
...R,
|
|
2314
2314
|
{
|
|
2315
2315
|
label: "Point",
|
|
2316
2316
|
subject: x.crm_point,
|
|
@@ -2322,7 +2322,7 @@ const k = [
|
|
|
2322
2322
|
]
|
|
2323
2323
|
}
|
|
2324
2324
|
], mo = [
|
|
2325
|
-
...
|
|
2325
|
+
...R,
|
|
2326
2326
|
{
|
|
2327
2327
|
label: "Credit",
|
|
2328
2328
|
subject: x.crm_credit,
|
|
@@ -2334,7 +2334,7 @@ const k = [
|
|
|
2334
2334
|
]
|
|
2335
2335
|
}
|
|
2336
2336
|
], fo = [
|
|
2337
|
-
...
|
|
2337
|
+
...R,
|
|
2338
2338
|
{
|
|
2339
2339
|
label: "Experience",
|
|
2340
2340
|
subject: x.crm_experience,
|
|
@@ -2346,7 +2346,7 @@ const k = [
|
|
|
2346
2346
|
]
|
|
2347
2347
|
}
|
|
2348
2348
|
], go = [
|
|
2349
|
-
...
|
|
2349
|
+
...R,
|
|
2350
2350
|
{
|
|
2351
2351
|
label: "Game",
|
|
2352
2352
|
subject: x.crm_game,
|
|
@@ -2358,7 +2358,7 @@ const k = [
|
|
|
2358
2358
|
]
|
|
2359
2359
|
}
|
|
2360
2360
|
], po = [
|
|
2361
|
-
...
|
|
2361
|
+
...R,
|
|
2362
2362
|
{
|
|
2363
2363
|
label: "Mission",
|
|
2364
2364
|
subject: x.crm_mission,
|
|
@@ -2370,7 +2370,7 @@ const k = [
|
|
|
2370
2370
|
]
|
|
2371
2371
|
}
|
|
2372
2372
|
], ds = [
|
|
2373
|
-
...
|
|
2373
|
+
...R,
|
|
2374
2374
|
{
|
|
2375
2375
|
label: "Loyalty Member",
|
|
2376
2376
|
subject: x.crm_loyaltyMember,
|
|
@@ -2382,7 +2382,7 @@ const k = [
|
|
|
2382
2382
|
]
|
|
2383
2383
|
}
|
|
2384
2384
|
], hs = [
|
|
2385
|
-
...
|
|
2385
|
+
...R,
|
|
2386
2386
|
{
|
|
2387
2387
|
label: "Loyalty Segment",
|
|
2388
2388
|
subject: x.crm_loyaltySegment,
|
|
@@ -2394,7 +2394,7 @@ const k = [
|
|
|
2394
2394
|
]
|
|
2395
2395
|
}
|
|
2396
2396
|
], ms = [
|
|
2397
|
-
...
|
|
2397
|
+
...R,
|
|
2398
2398
|
{
|
|
2399
2399
|
label: "Loyalty Card",
|
|
2400
2400
|
subject: x.crm_loyaltyCard,
|
|
@@ -2406,7 +2406,7 @@ const k = [
|
|
|
2406
2406
|
]
|
|
2407
2407
|
}
|
|
2408
2408
|
], fs = [
|
|
2409
|
-
...
|
|
2409
|
+
...R,
|
|
2410
2410
|
{
|
|
2411
2411
|
label: "Bin",
|
|
2412
2412
|
subject: x.crm_bin,
|
|
@@ -2424,10 +2424,10 @@ const k = [
|
|
|
2424
2424
|
), bs = $(
|
|
2425
2425
|
se,
|
|
2426
2426
|
ho
|
|
2427
|
-
),
|
|
2427
|
+
), ws = $(
|
|
2428
2428
|
se,
|
|
2429
2429
|
mo
|
|
2430
|
-
),
|
|
2430
|
+
), vs = $(
|
|
2431
2431
|
se,
|
|
2432
2432
|
fo
|
|
2433
2433
|
), Bs = $(
|
|
@@ -2443,7 +2443,7 @@ const k = [
|
|
|
2443
2443
|
se,
|
|
2444
2444
|
ao
|
|
2445
2445
|
), bo = [
|
|
2446
|
-
...
|
|
2446
|
+
...R,
|
|
2447
2447
|
{
|
|
2448
2448
|
label: "Voucher",
|
|
2449
2449
|
subject: x.crm_voucher,
|
|
@@ -2454,8 +2454,8 @@ const k = [
|
|
|
2454
2454
|
o.delete
|
|
2455
2455
|
]
|
|
2456
2456
|
}
|
|
2457
|
-
],
|
|
2458
|
-
...
|
|
2457
|
+
], wo = [
|
|
2458
|
+
...R,
|
|
2459
2459
|
{
|
|
2460
2460
|
label: "Membership",
|
|
2461
2461
|
subject: x.crm_membership,
|
|
@@ -2466,7 +2466,7 @@ const k = [
|
|
|
2466
2466
|
o.delete
|
|
2467
2467
|
]
|
|
2468
2468
|
}
|
|
2469
|
-
],
|
|
2469
|
+
], vo = $(
|
|
2470
2470
|
no,
|
|
2471
2471
|
ro,
|
|
2472
2472
|
cs,
|
|
@@ -2480,8 +2480,8 @@ const k = [
|
|
|
2480
2480
|
ps,
|
|
2481
2481
|
ys,
|
|
2482
2482
|
bs,
|
|
2483
|
-
vs,
|
|
2484
2483
|
ws,
|
|
2484
|
+
vs,
|
|
2485
2485
|
Bs,
|
|
2486
2486
|
Ds,
|
|
2487
2487
|
ds,
|
|
@@ -2495,11 +2495,11 @@ const k = [
|
|
|
2495
2495
|
), Do = $(
|
|
2496
2496
|
se,
|
|
2497
2497
|
bo
|
|
2498
|
-
), Co = $(
|
|
2498
|
+
), Co = $(wo), Eo = {
|
|
2499
2499
|
[`set_${d.crm}`]: {
|
|
2500
2500
|
key: "sys:crm:access",
|
|
2501
2501
|
name: "CRM Access",
|
|
2502
|
-
permissions:
|
|
2502
|
+
permissions: vo
|
|
2503
2503
|
},
|
|
2504
2504
|
[`set_${d.crm_promotion}`]: {
|
|
2505
2505
|
key: "sys:crm:promotion",
|
|
@@ -2544,12 +2544,12 @@ const k = [
|
|
|
2544
2544
|
[`set_${d.crm_credit}`]: {
|
|
2545
2545
|
key: "sys:crm:credit",
|
|
2546
2546
|
name: "CRM Credit",
|
|
2547
|
-
permissions:
|
|
2547
|
+
permissions: ws
|
|
2548
2548
|
},
|
|
2549
2549
|
[`set_${d.crm_experience}`]: {
|
|
2550
2550
|
key: "sys:crm:experience",
|
|
2551
2551
|
name: "CRM Experience",
|
|
2552
|
-
permissions:
|
|
2552
|
+
permissions: vs
|
|
2553
2553
|
},
|
|
2554
2554
|
[`set_${d.crm_game}`]: {
|
|
2555
2555
|
key: "sys:crm:game",
|
|
@@ -2939,7 +2939,7 @@ const jo = [
|
|
|
2939
2939
|
...Qn,
|
|
2940
2940
|
...Xn
|
|
2941
2941
|
];
|
|
2942
|
-
const
|
|
2942
|
+
const Ro = {
|
|
2943
2943
|
[`set_${d.inventory_stockBalance}`]: {
|
|
2944
2944
|
key: "sys:inventory:stock_balance",
|
|
2945
2945
|
name: "Stock Balance",
|
|
@@ -3047,7 +3047,7 @@ const ko = {
|
|
|
3047
3047
|
}
|
|
3048
3048
|
};
|
|
3049
3049
|
var Je = /* @__PURE__ */ ((t) => (t.hrm_posRole = "hrm::posRole", t.hrm_portalUsers = "hrm::portalUsers", t))(Je || {});
|
|
3050
|
-
const
|
|
3050
|
+
const ko = {
|
|
3051
3051
|
/**
|
|
3052
3052
|
* Triggered by: hrm_teamMember:manage (portal toggle)
|
|
3053
3053
|
* Injects: team member list read + pos role read
|
|
@@ -3142,8 +3142,8 @@ const cr = [
|
|
|
3142
3142
|
}
|
|
3143
3143
|
}, No = {
|
|
3144
3144
|
...Eo,
|
|
3145
|
-
...ko,
|
|
3146
3145
|
...Ro,
|
|
3146
|
+
...ko,
|
|
3147
3147
|
...qo
|
|
3148
3148
|
};
|
|
3149
3149
|
Object.values(
|
|
@@ -3172,7 +3172,7 @@ const Ho = () => ({
|
|
|
3172
3172
|
sidebarDisplay: "Restaurants",
|
|
3173
3173
|
section: "payment-gateway"
|
|
3174
3174
|
},
|
|
3175
|
-
component: () => import("./Restaurant-
|
|
3175
|
+
component: () => import("./Restaurant-404A4nLn.js")
|
|
3176
3176
|
},
|
|
3177
3177
|
{
|
|
3178
3178
|
path: "/admin/restaurants/:restaurantId",
|
|
@@ -3181,7 +3181,7 @@ const Ho = () => ({
|
|
|
3181
3181
|
meta: {
|
|
3182
3182
|
parent: "mf-payment-admin.restaurant"
|
|
3183
3183
|
},
|
|
3184
|
-
component: () => import("./RestaurantSetting-
|
|
3184
|
+
component: () => import("./RestaurantSetting-LzQiQcIv.js")
|
|
3185
3185
|
},
|
|
3186
3186
|
{
|
|
3187
3187
|
path: "/admin/payout-accounts",
|
|
@@ -3190,7 +3190,7 @@ const Ho = () => ({
|
|
|
3190
3190
|
sidebarDisplay: "Payout Accounts",
|
|
3191
3191
|
section: "payment-gateway"
|
|
3192
3192
|
},
|
|
3193
|
-
component: () => import("./PayoutAccount-
|
|
3193
|
+
component: () => import("./PayoutAccount-BCKC42lU.js")
|
|
3194
3194
|
},
|
|
3195
3195
|
{
|
|
3196
3196
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -3199,7 +3199,7 @@ const Ho = () => ({
|
|
|
3199
3199
|
meta: {
|
|
3200
3200
|
parent: "mf-payment-admin.payout-account"
|
|
3201
3201
|
},
|
|
3202
|
-
component: () => import("./PayoutAccountSetting-
|
|
3202
|
+
component: () => import("./PayoutAccountSetting-B-SJFwjG.js")
|
|
3203
3203
|
},
|
|
3204
3204
|
{
|
|
3205
3205
|
path: "/admin/onboarding",
|
|
@@ -3208,7 +3208,7 @@ const Ho = () => ({
|
|
|
3208
3208
|
sidebarDisplay: "Payment Onboarding",
|
|
3209
3209
|
section: "payment-gateway"
|
|
3210
3210
|
},
|
|
3211
|
-
component: () => import("./OnboardSubmission-
|
|
3211
|
+
component: () => import("./OnboardSubmission-DxqZG6QZ.js")
|
|
3212
3212
|
},
|
|
3213
3213
|
{
|
|
3214
3214
|
path: "/admin/onboarding/:submissionId",
|
|
@@ -3217,7 +3217,7 @@ const Ho = () => ({
|
|
|
3217
3217
|
meta: {
|
|
3218
3218
|
parent: "mf-payment-admin.onboard-submission"
|
|
3219
3219
|
},
|
|
3220
|
-
component: () => import("./OnboardForm-
|
|
3220
|
+
component: () => import("./OnboardForm-_cXLOdhB.js")
|
|
3221
3221
|
},
|
|
3222
3222
|
{
|
|
3223
3223
|
path: "/admin/terminal/pos",
|
|
@@ -3226,7 +3226,7 @@ const Ho = () => ({
|
|
|
3226
3226
|
sidebarDisplay: "POS",
|
|
3227
3227
|
section: "device"
|
|
3228
3228
|
},
|
|
3229
|
-
component: () => import("./Terminal-
|
|
3229
|
+
component: () => import("./Terminal-DB76mZcJ.js"),
|
|
3230
3230
|
props: {
|
|
3231
3231
|
type: "POS"
|
|
3232
3232
|
}
|
|
@@ -3238,7 +3238,7 @@ const Ho = () => ({
|
|
|
3238
3238
|
sidebarDisplay: "Kiosks",
|
|
3239
3239
|
section: "device"
|
|
3240
3240
|
},
|
|
3241
|
-
component: () => import("./Terminal-
|
|
3241
|
+
component: () => import("./Terminal-DB76mZcJ.js"),
|
|
3242
3242
|
props: {
|
|
3243
3243
|
type: "KIOSK"
|
|
3244
3244
|
}
|
|
@@ -3250,7 +3250,7 @@ const Ho = () => ({
|
|
|
3250
3250
|
sidebarDisplay: "Terminals",
|
|
3251
3251
|
section: "device"
|
|
3252
3252
|
},
|
|
3253
|
-
component: () => import("./Terminal-
|
|
3253
|
+
component: () => import("./Terminal-DB76mZcJ.js"),
|
|
3254
3254
|
props: {
|
|
3255
3255
|
type: "TERMINAL"
|
|
3256
3256
|
}
|
|
@@ -3263,7 +3263,7 @@ const Ho = () => ({
|
|
|
3263
3263
|
section: "device",
|
|
3264
3264
|
region: { TH: !0, ID: !0 }
|
|
3265
3265
|
},
|
|
3266
|
-
component: () => import("./ExternalTerminal-
|
|
3266
|
+
component: () => import("./ExternalTerminal-CHTRv3Ua.js")
|
|
3267
3267
|
},
|
|
3268
3268
|
{
|
|
3269
3269
|
path: "/admin/terminal/templates",
|
|
@@ -3272,7 +3272,7 @@ const Ho = () => ({
|
|
|
3272
3272
|
sidebarDisplay: "Templates",
|
|
3273
3273
|
section: "device"
|
|
3274
3274
|
},
|
|
3275
|
-
component: () => import("./TerminalTemplate-
|
|
3275
|
+
component: () => import("./TerminalTemplate-MAMv9HaT.js")
|
|
3276
3276
|
},
|
|
3277
3277
|
{
|
|
3278
3278
|
path: "/admin/terminal/templates/:templateId",
|
|
@@ -3281,7 +3281,7 @@ const Ho = () => ({
|
|
|
3281
3281
|
meta: {
|
|
3282
3282
|
parent: "mf-payment-admin.terminal-template"
|
|
3283
3283
|
},
|
|
3284
|
-
component: () => import("./TerminalTemplateSetting-
|
|
3284
|
+
component: () => import("./TerminalTemplateSetting-Ci_6hWRf.js")
|
|
3285
3285
|
},
|
|
3286
3286
|
{
|
|
3287
3287
|
path: "/admin/terminal/pos/:terminalId",
|
|
@@ -3290,7 +3290,7 @@ const Ho = () => ({
|
|
|
3290
3290
|
meta: {
|
|
3291
3291
|
parent: "mf-payment-admin.pos"
|
|
3292
3292
|
},
|
|
3293
|
-
component: () => import("./TerminalSetting-
|
|
3293
|
+
component: () => import("./TerminalSetting-IpoWXpKY.js")
|
|
3294
3294
|
},
|
|
3295
3295
|
{
|
|
3296
3296
|
path: "/admin/terminal/kiosk/:terminalId",
|
|
@@ -3299,7 +3299,7 @@ const Ho = () => ({
|
|
|
3299
3299
|
meta: {
|
|
3300
3300
|
parent: "mf-payment-admin.kiosk"
|
|
3301
3301
|
},
|
|
3302
|
-
component: () => import("./TerminalSetting-
|
|
3302
|
+
component: () => import("./TerminalSetting-IpoWXpKY.js")
|
|
3303
3303
|
},
|
|
3304
3304
|
{
|
|
3305
3305
|
path: "/admin/terminal/terminal/:terminalId",
|
|
@@ -3308,7 +3308,7 @@ const Ho = () => ({
|
|
|
3308
3308
|
meta: {
|
|
3309
3309
|
parent: "mf-payment-admin.terminal"
|
|
3310
3310
|
},
|
|
3311
|
-
component: () => import("./TerminalSetting-
|
|
3311
|
+
component: () => import("./TerminalSetting-IpoWXpKY.js")
|
|
3312
3312
|
},
|
|
3313
3313
|
{
|
|
3314
3314
|
path: "/admin/transaction",
|
|
@@ -3316,7 +3316,7 @@ const Ho = () => ({
|
|
|
3316
3316
|
meta: {
|
|
3317
3317
|
sidebarDisplay: "Transactions"
|
|
3318
3318
|
},
|
|
3319
|
-
component: () => import("./Transaction-
|
|
3319
|
+
component: () => import("./Transaction-CM5PgSXC.js")
|
|
3320
3320
|
},
|
|
3321
3321
|
{
|
|
3322
3322
|
path: "/admin/chargeback",
|
|
@@ -3324,7 +3324,7 @@ const Ho = () => ({
|
|
|
3324
3324
|
meta: {
|
|
3325
3325
|
sidebarDisplay: "Chargebacks"
|
|
3326
3326
|
},
|
|
3327
|
-
component: () => import("./Chargeback-
|
|
3327
|
+
component: () => import("./Chargeback-EcJi6zOO.js")
|
|
3328
3328
|
},
|
|
3329
3329
|
{
|
|
3330
3330
|
path: "/admin/settlement",
|
|
@@ -3332,7 +3332,7 @@ const Ho = () => ({
|
|
|
3332
3332
|
meta: {
|
|
3333
3333
|
sidebarDisplay: "Settlements"
|
|
3334
3334
|
},
|
|
3335
|
-
component: () => import("./Settlement-
|
|
3335
|
+
component: () => import("./Settlement-BJ1KdP50.js")
|
|
3336
3336
|
},
|
|
3337
3337
|
{
|
|
3338
3338
|
path: "/admin/settlement/:settlementId",
|
|
@@ -3341,7 +3341,7 @@ const Ho = () => ({
|
|
|
3341
3341
|
meta: {
|
|
3342
3342
|
parent: "mf-payment-admin.settlement"
|
|
3343
3343
|
},
|
|
3344
|
-
component: () => import("./SettlementTransactions-
|
|
3344
|
+
component: () => import("./SettlementTransactions-iHUFJO_W.js")
|
|
3345
3345
|
}
|
|
3346
3346
|
].map((t) => ({
|
|
3347
3347
|
...t,
|
|
@@ -3349,7 +3349,7 @@ const Ho = () => ({
|
|
|
3349
3349
|
...t.meta,
|
|
3350
3350
|
...Ho()
|
|
3351
3351
|
}
|
|
3352
|
-
})),
|
|
3352
|
+
})), rn = [
|
|
3353
3353
|
{
|
|
3354
3354
|
path: "",
|
|
3355
3355
|
redirect: { name: "mf-payment-payout-account" }
|
|
@@ -3357,7 +3357,7 @@ const Ho = () => ({
|
|
|
3357
3357
|
{
|
|
3358
3358
|
path: "/payout-account",
|
|
3359
3359
|
name: "mf-payment-payout-account",
|
|
3360
|
-
component: () => import("./PayoutAccount-
|
|
3360
|
+
component: () => import("./PayoutAccount-CbqfCHQM.js"),
|
|
3361
3361
|
meta: {
|
|
3362
3362
|
sidebarDisplay: "i18n:payment.routes.payout_account",
|
|
3363
3363
|
region: { MY: !0 },
|
|
@@ -3374,7 +3374,7 @@ const Ho = () => ({
|
|
|
3374
3374
|
{
|
|
3375
3375
|
path: "/onboard-submission",
|
|
3376
3376
|
name: "mf-payment-onboard-submission",
|
|
3377
|
-
component: () => import("./OnboardSubmission-
|
|
3377
|
+
component: () => import("./OnboardSubmission-2ywRR2fk.js"),
|
|
3378
3378
|
meta: {
|
|
3379
3379
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
3380
3380
|
region: { MY: !0, TH: !0, AU: !0 },
|
|
@@ -3392,7 +3392,7 @@ const Ho = () => ({
|
|
|
3392
3392
|
path: "/onboard-submission/restaurant/:restaurantId/:type/:submission?",
|
|
3393
3393
|
name: "mf-payment-onboard-submission-form",
|
|
3394
3394
|
props: !0,
|
|
3395
|
-
component: () => import("./OnboardForm-
|
|
3395
|
+
component: () => import("./OnboardForm-B378DOcX.js"),
|
|
3396
3396
|
meta: {
|
|
3397
3397
|
parent: "mf-payment-onboard-submission",
|
|
3398
3398
|
validationManifest: {
|
|
@@ -3408,7 +3408,7 @@ const Ho = () => ({
|
|
|
3408
3408
|
{
|
|
3409
3409
|
path: "/transaction-old",
|
|
3410
3410
|
name: "mf-payment-old-transaction",
|
|
3411
|
-
component: () => import("./TransactionOld-
|
|
3411
|
+
component: () => import("./TransactionOld-CFg0DQb9.js"),
|
|
3412
3412
|
meta: {
|
|
3413
3413
|
sidebarDisplay: "i18n:payment.routes.transaction",
|
|
3414
3414
|
validationManifest: {
|
|
@@ -3424,7 +3424,7 @@ const Ho = () => ({
|
|
|
3424
3424
|
{
|
|
3425
3425
|
path: "/transaction",
|
|
3426
3426
|
name: "mf-payment-transaction",
|
|
3427
|
-
component: () => import("./Transaction-
|
|
3427
|
+
component: () => import("./Transaction-Brn5Mdhj.js"),
|
|
3428
3428
|
meta: {
|
|
3429
3429
|
sidebarDisplay: "i18n:payment.routes.transaction_new",
|
|
3430
3430
|
sidebarNew: !0,
|
|
@@ -3441,7 +3441,7 @@ const Ho = () => ({
|
|
|
3441
3441
|
{
|
|
3442
3442
|
path: "/settlement",
|
|
3443
3443
|
name: "mf-payment-settlement",
|
|
3444
|
-
component: () => import("./Settlement-
|
|
3444
|
+
component: () => import("./Settlement-DuIEuBWL.js"),
|
|
3445
3445
|
meta: {
|
|
3446
3446
|
sidebarDisplay: "i18n:payment.routes.settlement",
|
|
3447
3447
|
region: { MY: !0, SG: !0 },
|
|
@@ -3459,7 +3459,7 @@ const Ho = () => ({
|
|
|
3459
3459
|
path: "/settlement/:settlementId",
|
|
3460
3460
|
name: "mf-payment-settlement-transaction",
|
|
3461
3461
|
props: !0,
|
|
3462
|
-
component: () => import("./SettlementTransactions-
|
|
3462
|
+
component: () => import("./SettlementTransactions-DxziumM1.js"),
|
|
3463
3463
|
meta: {
|
|
3464
3464
|
parent: "mf-payment-settlement",
|
|
3465
3465
|
validationManifest: {
|
|
@@ -3487,7 +3487,7 @@ const Ho = () => ({
|
|
|
3487
3487
|
]
|
|
3488
3488
|
}
|
|
3489
3489
|
},
|
|
3490
|
-
children:
|
|
3490
|
+
children: ki.map((t) => ({
|
|
3491
3491
|
...t,
|
|
3492
3492
|
meta: {
|
|
3493
3493
|
...t.meta,
|
|
@@ -3627,8 +3627,8 @@ const Vs = function(t) {
|
|
|
3627
3627
|
const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
|
3628
3628
|
for (let s = 0; s < t.length; s += 3) {
|
|
3629
3629
|
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;
|
|
3630
|
-
let B = (c & 15) << 2 | A >> 6,
|
|
3631
|
-
l || (
|
|
3630
|
+
let B = (c & 15) << 2 | A >> 6, v = A & 63;
|
|
3631
|
+
l || (v = 64, a || (B = 64)), r.push(n[f], n[p], n[B], n[v]);
|
|
3632
3632
|
}
|
|
3633
3633
|
return r.join("");
|
|
3634
3634
|
},
|
|
@@ -3682,8 +3682,8 @@ const Vs = function(t) {
|
|
|
3682
3682
|
throw new So();
|
|
3683
3683
|
const B = i << 2 | c >> 4;
|
|
3684
3684
|
if (r.push(B), A !== 64) {
|
|
3685
|
-
const
|
|
3686
|
-
if (r.push(
|
|
3685
|
+
const v = c << 4 & 240 | A >> 2;
|
|
3686
|
+
if (r.push(v), p !== 64) {
|
|
3687
3687
|
const P = A << 6 & 192 | p;
|
|
3688
3688
|
r.push(P);
|
|
3689
3689
|
}
|
|
@@ -3714,7 +3714,7 @@ const Uo = function(t) {
|
|
|
3714
3714
|
return xs.encodeByteArray(e, !0);
|
|
3715
3715
|
}, Fs = function(t) {
|
|
3716
3716
|
return Uo(t).replace(/\./g, "");
|
|
3717
|
-
},
|
|
3717
|
+
}, Rs = function(t) {
|
|
3718
3718
|
try {
|
|
3719
3719
|
return xs.decodeString(t, !0);
|
|
3720
3720
|
} catch (e) {
|
|
@@ -3778,7 +3778,7 @@ const zo = () => Wo().__FIREBASE_DEFAULTS__, Zo = () => {
|
|
|
3778
3778
|
} catch {
|
|
3779
3779
|
return;
|
|
3780
3780
|
}
|
|
3781
|
-
const e = t &&
|
|
3781
|
+
const e = t && Rs(t[1]);
|
|
3782
3782
|
return e && JSON.parse(e);
|
|
3783
3783
|
}, Sn = () => {
|
|
3784
3784
|
try {
|
|
@@ -3790,7 +3790,7 @@ const zo = () => Wo().__FIREBASE_DEFAULTS__, Zo = () => {
|
|
|
3790
3790
|
}, Ko = (t) => {
|
|
3791
3791
|
var e, n;
|
|
3792
3792
|
return (n = (e = Sn()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || n === void 0 ? void 0 : n[t];
|
|
3793
|
-
},
|
|
3793
|
+
}, ks = () => {
|
|
3794
3794
|
var t;
|
|
3795
3795
|
return (t = Sn()) === null || t === void 0 ? void 0 : t.config;
|
|
3796
3796
|
}, qs = (t) => {
|
|
@@ -3915,10 +3915,10 @@ function sc() {
|
|
|
3915
3915
|
const ic = "FirebaseError";
|
|
3916
3916
|
class qe extends Error {
|
|
3917
3917
|
constructor(e, n, r) {
|
|
3918
|
-
super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this,
|
|
3918
|
+
super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this, It.prototype.create);
|
|
3919
3919
|
}
|
|
3920
3920
|
}
|
|
3921
|
-
class
|
|
3921
|
+
class It {
|
|
3922
3922
|
constructor(e, n, r) {
|
|
3923
3923
|
this.service = e, this.serviceName = n, this.errors = r;
|
|
3924
3924
|
}
|
|
@@ -3940,7 +3940,7 @@ function cc(t) {
|
|
|
3940
3940
|
return !1;
|
|
3941
3941
|
return !0;
|
|
3942
3942
|
}
|
|
3943
|
-
function
|
|
3943
|
+
function Ut(t, e) {
|
|
3944
3944
|
if (t === e)
|
|
3945
3945
|
return !0;
|
|
3946
3946
|
const n = Object.keys(t), r = Object.keys(e);
|
|
@@ -3949,7 +3949,7 @@ function Wt(t, e) {
|
|
|
3949
3949
|
return !1;
|
|
3950
3950
|
const i = t[s], a = e[s];
|
|
3951
3951
|
if (ur(i) && ur(a)) {
|
|
3952
|
-
if (!
|
|
3952
|
+
if (!Ut(i, a))
|
|
3953
3953
|
return !1;
|
|
3954
3954
|
} else if (i !== a)
|
|
3955
3955
|
return !1;
|
|
@@ -3978,7 +3978,7 @@ function ur(t) {
|
|
|
3978
3978
|
* See the License for the specific language governing permissions and
|
|
3979
3979
|
* limitations under the License.
|
|
3980
3980
|
*/
|
|
3981
|
-
function
|
|
3981
|
+
function Pt(t) {
|
|
3982
3982
|
const e = [];
|
|
3983
3983
|
for (const [n, r] of Object.entries(t))
|
|
3984
3984
|
Array.isArray(r) ? r.forEach((s) => {
|
|
@@ -4471,9 +4471,9 @@ class Ns {
|
|
|
4471
4471
|
this._userLogHandler && this._userLogHandler(this, F.ERROR, ...e), this._logHandler(this, F.ERROR, ...e);
|
|
4472
4472
|
}
|
|
4473
4473
|
}
|
|
4474
|
-
const
|
|
4474
|
+
const wc = (t, e) => e.some((n) => t instanceof n);
|
|
4475
4475
|
let lr, Ar;
|
|
4476
|
-
function
|
|
4476
|
+
function vc() {
|
|
4477
4477
|
return lr || (lr = [
|
|
4478
4478
|
IDBDatabase,
|
|
4479
4479
|
IDBObjectStore,
|
|
@@ -4554,7 +4554,7 @@ function Mc(t) {
|
|
|
4554
4554
|
};
|
|
4555
4555
|
}
|
|
4556
4556
|
function Ic(t) {
|
|
4557
|
-
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t),
|
|
4557
|
+
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), wc(t, vc()) ? new Proxy(t, Mn) : t);
|
|
4558
4558
|
}
|
|
4559
4559
|
function Fe(t) {
|
|
4560
4560
|
if (t instanceof IDBRequest)
|
|
@@ -4659,7 +4659,7 @@ const In = "@firebase/app", hr = "0.10.13";
|
|
|
4659
4659
|
* See the License for the specific language governing permissions and
|
|
4660
4660
|
* limitations under the License.
|
|
4661
4661
|
*/
|
|
4662
|
-
const
|
|
4662
|
+
const ve = new Ns("@firebase/app"), Yc = "@firebase/app-compat", Vc = "@firebase/analytics-compat", xc = "@firebase/analytics", Fc = "@firebase/app-check-compat", Rc = "@firebase/app-check", kc = "@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";
|
|
4663
4663
|
/**
|
|
4664
4664
|
* @license
|
|
4665
4665
|
* Copyright 2019 Google LLC
|
|
@@ -4681,9 +4681,9 @@ const Pn = "[DEFAULT]", au = {
|
|
|
4681
4681
|
[Yc]: "fire-core-compat",
|
|
4682
4682
|
[xc]: "fire-analytics",
|
|
4683
4683
|
[Vc]: "fire-analytics-compat",
|
|
4684
|
-
[
|
|
4684
|
+
[Rc]: "fire-app-check",
|
|
4685
4685
|
[Fc]: "fire-app-check-compat",
|
|
4686
|
-
[
|
|
4686
|
+
[kc]: "fire-auth",
|
|
4687
4687
|
[qc]: "fire-auth-compat",
|
|
4688
4688
|
[Nc]: "fire-rtdb",
|
|
4689
4689
|
[Hc]: "fire-data-connect",
|
|
@@ -4722,20 +4722,20 @@ const Pn = "[DEFAULT]", au = {
|
|
|
4722
4722
|
* See the License for the specific language governing permissions and
|
|
4723
4723
|
* limitations under the License.
|
|
4724
4724
|
*/
|
|
4725
|
-
const
|
|
4725
|
+
const Wt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), On = /* @__PURE__ */ new Map();
|
|
4726
4726
|
function mr(t, e) {
|
|
4727
4727
|
try {
|
|
4728
4728
|
t.container.addComponent(e);
|
|
4729
4729
|
} catch (n) {
|
|
4730
|
-
|
|
4730
|
+
ve.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
|
|
4731
4731
|
}
|
|
4732
4732
|
}
|
|
4733
|
-
function
|
|
4733
|
+
function bt(t) {
|
|
4734
4734
|
const e = t.name;
|
|
4735
4735
|
if (On.has(e))
|
|
4736
|
-
return
|
|
4736
|
+
return ve.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
4737
4737
|
On.set(e, t);
|
|
4738
|
-
for (const n of
|
|
4738
|
+
for (const n of Wt.values())
|
|
4739
4739
|
mr(n, t);
|
|
4740
4740
|
for (const n of ou.values())
|
|
4741
4741
|
mr(n, t);
|
|
@@ -4779,7 +4779,7 @@ const cu = {
|
|
|
4779
4779
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
|
4780
4780
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
|
4781
4781
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
|
4782
|
-
},
|
|
4782
|
+
}, Re = new It("app", "Firebase", cu);
|
|
4783
4783
|
/**
|
|
4784
4784
|
* @license
|
|
4785
4785
|
* Copyright 2019 Google LLC
|
|
@@ -4835,7 +4835,7 @@ class uu {
|
|
|
4835
4835
|
*/
|
|
4836
4836
|
checkDestroyed() {
|
|
4837
4837
|
if (this.isDeleted)
|
|
4838
|
-
throw
|
|
4838
|
+
throw Re.create("app-deleted", { appName: this._name });
|
|
4839
4839
|
}
|
|
4840
4840
|
}
|
|
4841
4841
|
/**
|
|
@@ -4854,38 +4854,38 @@ class uu {
|
|
|
4854
4854
|
* See the License for the specific language governing permissions and
|
|
4855
4855
|
* limitations under the License.
|
|
4856
4856
|
*/
|
|
4857
|
-
const
|
|
4857
|
+
const Ot = iu;
|
|
4858
4858
|
function Ss(t, e = {}) {
|
|
4859
4859
|
let n = t;
|
|
4860
4860
|
typeof e != "object" && (e = { name: e });
|
|
4861
4861
|
const r = Object.assign({ name: Pn, automaticDataCollectionEnabled: !1 }, e), s = r.name;
|
|
4862
4862
|
if (typeof s != "string" || !s)
|
|
4863
|
-
throw
|
|
4863
|
+
throw Re.create("bad-app-name", {
|
|
4864
4864
|
appName: String(s)
|
|
4865
4865
|
});
|
|
4866
|
-
if (n || (n =
|
|
4867
|
-
throw
|
|
4866
|
+
if (n || (n = ks()), !n)
|
|
4867
|
+
throw Re.create(
|
|
4868
4868
|
"no-options"
|
|
4869
4869
|
/* AppError.NO_OPTIONS */
|
|
4870
4870
|
);
|
|
4871
|
-
const i =
|
|
4871
|
+
const i = Wt.get(s);
|
|
4872
4872
|
if (i) {
|
|
4873
|
-
if (
|
|
4873
|
+
if (Ut(n, i.options) && Ut(r, i.config))
|
|
4874
4874
|
return i;
|
|
4875
|
-
throw
|
|
4875
|
+
throw Re.create("duplicate-app", { appName: s });
|
|
4876
4876
|
}
|
|
4877
4877
|
const a = new fc(s);
|
|
4878
4878
|
for (const l of On.values())
|
|
4879
4879
|
a.addComponent(l);
|
|
4880
4880
|
const c = new uu(n, r, a);
|
|
4881
|
-
return
|
|
4881
|
+
return Wt.set(s, c), c;
|
|
4882
4882
|
}
|
|
4883
4883
|
function lu(t = Pn) {
|
|
4884
|
-
const e =
|
|
4885
|
-
if (!e && t === Pn &&
|
|
4884
|
+
const e = Wt.get(t);
|
|
4885
|
+
if (!e && t === Pn && ks())
|
|
4886
4886
|
return Ss();
|
|
4887
4887
|
if (!e)
|
|
4888
|
-
throw
|
|
4888
|
+
throw Re.create("no-app", { appName: t });
|
|
4889
4889
|
return e;
|
|
4890
4890
|
}
|
|
4891
4891
|
function $e(t, e, n) {
|
|
@@ -4897,10 +4897,10 @@ function $e(t, e, n) {
|
|
|
4897
4897
|
const c = [
|
|
4898
4898
|
`Unable to register library "${s}" with version "${e}":`
|
|
4899
4899
|
];
|
|
4900
|
-
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 "/")`),
|
|
4900
|
+
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 "/")`), ve.warn(c.join(" "));
|
|
4901
4901
|
return;
|
|
4902
4902
|
}
|
|
4903
|
-
|
|
4903
|
+
bt(new dt(
|
|
4904
4904
|
`${s}-version`,
|
|
4905
4905
|
() => ({ library: s, version: e }),
|
|
4906
4906
|
"VERSION"
|
|
@@ -4938,7 +4938,7 @@ function Us() {
|
|
|
4938
4938
|
}
|
|
4939
4939
|
}
|
|
4940
4940
|
}).catch((t) => {
|
|
4941
|
-
throw
|
|
4941
|
+
throw Re.create("idb-open", {
|
|
4942
4942
|
originalErrorMessage: t.message
|
|
4943
4943
|
});
|
|
4944
4944
|
})), pn;
|
|
@@ -4949,12 +4949,12 @@ async function hu(t) {
|
|
|
4949
4949
|
return await n.done, r;
|
|
4950
4950
|
} catch (e) {
|
|
4951
4951
|
if (e instanceof qe)
|
|
4952
|
-
|
|
4952
|
+
ve.warn(e.message);
|
|
4953
4953
|
else {
|
|
4954
|
-
const n =
|
|
4954
|
+
const n = Re.create("idb-get", {
|
|
4955
4955
|
originalErrorMessage: e == null ? void 0 : e.message
|
|
4956
4956
|
});
|
|
4957
|
-
|
|
4957
|
+
ve.warn(n.message);
|
|
4958
4958
|
}
|
|
4959
4959
|
}
|
|
4960
4960
|
}
|
|
@@ -4964,12 +4964,12 @@ async function fr(t, e) {
|
|
|
4964
4964
|
await r.objectStore(wt).put(e, Ws(t)), await r.done;
|
|
4965
4965
|
} catch (n) {
|
|
4966
4966
|
if (n instanceof qe)
|
|
4967
|
-
|
|
4967
|
+
ve.warn(n.message);
|
|
4968
4968
|
else {
|
|
4969
|
-
const r =
|
|
4969
|
+
const r = Re.create("idb-set", {
|
|
4970
4970
|
originalErrorMessage: n == null ? void 0 : n.message
|
|
4971
4971
|
});
|
|
4972
|
-
|
|
4972
|
+
ve.warn(r.message);
|
|
4973
4973
|
}
|
|
4974
4974
|
}
|
|
4975
4975
|
}
|
|
@@ -5015,7 +5015,7 @@ class gu {
|
|
|
5015
5015
|
return Date.now() - c <= fu;
|
|
5016
5016
|
}), this._storage.overwrite(this._heartbeatsCache));
|
|
5017
5017
|
} catch (r) {
|
|
5018
|
-
|
|
5018
|
+
ve.warn(r);
|
|
5019
5019
|
}
|
|
5020
5020
|
}
|
|
5021
5021
|
/**
|
|
@@ -5033,7 +5033,7 @@ class gu {
|
|
|
5033
5033
|
const n = gr(), { heartbeatsToSend: r, unsentEntries: s } = pu(this._heartbeatsCache.heartbeats), i = Fs(JSON.stringify({ version: 2, heartbeats: r }));
|
|
5034
5034
|
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;
|
|
5035
5035
|
} catch (n) {
|
|
5036
|
-
return
|
|
5036
|
+
return ve.warn(n), "";
|
|
5037
5037
|
}
|
|
5038
5038
|
}
|
|
5039
5039
|
}
|
|
@@ -5132,12 +5132,12 @@ function pr(t) {
|
|
|
5132
5132
|
* limitations under the License.
|
|
5133
5133
|
*/
|
|
5134
5134
|
function bu(t) {
|
|
5135
|
-
|
|
5135
|
+
bt(new dt(
|
|
5136
5136
|
"platform-logger",
|
|
5137
5137
|
(e) => new Gc(e),
|
|
5138
5138
|
"PRIVATE"
|
|
5139
5139
|
/* ComponentType.PRIVATE */
|
|
5140
|
-
)),
|
|
5140
|
+
)), bt(new dt(
|
|
5141
5141
|
"heartbeat",
|
|
5142
5142
|
(e) => new gu(e),
|
|
5143
5143
|
"PRIVATE"
|
|
@@ -5145,7 +5145,7 @@ function bu(t) {
|
|
|
5145
5145
|
)), $e(In, hr, t), $e(In, hr, "esm2017"), $e("fire-js", "");
|
|
5146
5146
|
}
|
|
5147
5147
|
bu("");
|
|
5148
|
-
var
|
|
5148
|
+
var wu = "firebase", vu = "10.14.1";
|
|
5149
5149
|
/**
|
|
5150
5150
|
* @license
|
|
5151
5151
|
* Copyright 2020 Google LLC
|
|
@@ -5162,7 +5162,7 @@ var vu = "firebase", wu = "10.14.1";
|
|
|
5162
5162
|
* See the License for the specific language governing permissions and
|
|
5163
5163
|
* limitations under the License.
|
|
5164
5164
|
*/
|
|
5165
|
-
$e(
|
|
5165
|
+
$e(wu, vu, "app");
|
|
5166
5166
|
var yr = function() {
|
|
5167
5167
|
return yr = Object.assign || function(e) {
|
|
5168
5168
|
for (var n, r = 1, s = arguments.length; r < s; r++) {
|
|
@@ -5185,7 +5185,7 @@ function zs() {
|
|
|
5185
5185
|
"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."
|
|
5186
5186
|
};
|
|
5187
5187
|
}
|
|
5188
|
-
const Bu = zs, Zs = new
|
|
5188
|
+
const Bu = zs, Zs = new It("auth", "Firebase", zs());
|
|
5189
5189
|
/**
|
|
5190
5190
|
* @license
|
|
5191
5191
|
* Copyright 2020 Google LLC
|
|
@@ -5202,12 +5202,12 @@ const Bu = zs, Zs = new Pt("auth", "Firebase", zs());
|
|
|
5202
5202
|
* See the License for the specific language governing permissions and
|
|
5203
5203
|
* limitations under the License.
|
|
5204
5204
|
*/
|
|
5205
|
-
const
|
|
5205
|
+
const zt = new Ns("@firebase/auth");
|
|
5206
5206
|
function Du(t, ...e) {
|
|
5207
|
-
|
|
5207
|
+
zt.logLevel <= F.WARN && zt.warn(`Auth (${Ot}): ${t}`, ...e);
|
|
5208
5208
|
}
|
|
5209
|
-
function
|
|
5210
|
-
|
|
5209
|
+
function qt(t, ...e) {
|
|
5210
|
+
zt.logLevel <= F.ERROR && zt.error(`Auth (${Ot}): ${t}`, ...e);
|
|
5211
5211
|
}
|
|
5212
5212
|
/**
|
|
5213
5213
|
* @license
|
|
@@ -5233,11 +5233,11 @@ function Ae(t, ...e) {
|
|
|
5233
5233
|
}
|
|
5234
5234
|
function Ls(t, e, n) {
|
|
5235
5235
|
const r = Object.assign(Object.assign({}, Bu()), { [e]: n });
|
|
5236
|
-
return new
|
|
5236
|
+
return new It("auth", "Firebase", r).create(e, {
|
|
5237
5237
|
appName: t.name
|
|
5238
5238
|
});
|
|
5239
5239
|
}
|
|
5240
|
-
function
|
|
5240
|
+
function ke(t) {
|
|
5241
5241
|
return Ls(t, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
|
|
5242
5242
|
}
|
|
5243
5243
|
function zn(t, ...e) {
|
|
@@ -5253,7 +5253,7 @@ function M(t, e, ...n) {
|
|
|
5253
5253
|
}
|
|
5254
5254
|
function ye(t) {
|
|
5255
5255
|
const e = "INTERNAL ASSERTION FAILED: " + t;
|
|
5256
|
-
throw
|
|
5256
|
+
throw qt(e), new Error(e);
|
|
5257
5257
|
}
|
|
5258
5258
|
function De(t, e) {
|
|
5259
5259
|
t || ye(e);
|
|
@@ -5337,7 +5337,7 @@ function Mu() {
|
|
|
5337
5337
|
* See the License for the specific language governing permissions and
|
|
5338
5338
|
* limitations under the License.
|
|
5339
5339
|
*/
|
|
5340
|
-
class
|
|
5340
|
+
class Tt {
|
|
5341
5341
|
constructor(e, n) {
|
|
5342
5342
|
this.shortDelay = e, this.longDelay = n, De(n > e, "Short delay should be less than long delay!"), this.isMobile = _o() || tc();
|
|
5343
5343
|
}
|
|
@@ -5527,7 +5527,7 @@ const Iu = {
|
|
|
5527
5527
|
* See the License for the specific language governing permissions and
|
|
5528
5528
|
* limitations under the License.
|
|
5529
5529
|
*/
|
|
5530
|
-
const Pu = new
|
|
5530
|
+
const Pu = new Tt(3e4, 6e4);
|
|
5531
5531
|
function sn(t, e) {
|
|
5532
5532
|
return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
|
|
5533
5533
|
}
|
|
@@ -5537,7 +5537,7 @@ async function mt(t, e, n, r, s = {}) {
|
|
|
5537
5537
|
r && (e === "GET" ? a = r : i = {
|
|
5538
5538
|
body: JSON.stringify(r)
|
|
5539
5539
|
});
|
|
5540
|
-
const c =
|
|
5540
|
+
const c = Pt(Object.assign({ key: t.config.apiKey }, a)).slice(1), l = await t._getAdditionalHeaders();
|
|
5541
5541
|
l[
|
|
5542
5542
|
"Content-Type"
|
|
5543
5543
|
/* HttpHeader.CONTENT_TYPE */
|
|
@@ -5563,17 +5563,17 @@ async function Js(t, e, n) {
|
|
|
5563
5563
|
s.clearNetworkTimeout();
|
|
5564
5564
|
const a = await i.json();
|
|
5565
5565
|
if ("needConfirmation" in a)
|
|
5566
|
-
throw
|
|
5566
|
+
throw Ft(t, "account-exists-with-different-credential", a);
|
|
5567
5567
|
if (i.ok && !("errorMessage" in a))
|
|
5568
5568
|
return a;
|
|
5569
5569
|
{
|
|
5570
5570
|
const c = i.ok ? a.errorMessage : a.error.message, [l, A] = c.split(" : ");
|
|
5571
5571
|
if (l === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
5572
|
-
throw
|
|
5572
|
+
throw Ft(t, "credential-already-in-use", a);
|
|
5573
5573
|
if (l === "EMAIL_EXISTS")
|
|
5574
|
-
throw
|
|
5574
|
+
throw Ft(t, "email-already-in-use", a);
|
|
5575
5575
|
if (l === "USER_DISABLED")
|
|
5576
|
-
throw
|
|
5576
|
+
throw Ft(t, "user-disabled", a);
|
|
5577
5577
|
const f = r[l] || l.toLowerCase().replace(/[_\s]+/g, "-");
|
|
5578
5578
|
if (A)
|
|
5579
5579
|
throw Ls(t, f, A);
|
|
@@ -5609,7 +5609,7 @@ class Ou {
|
|
|
5609
5609
|
clearTimeout(this.timer);
|
|
5610
5610
|
}
|
|
5611
5611
|
}
|
|
5612
|
-
function
|
|
5612
|
+
function Ft(t, e, n) {
|
|
5613
5613
|
const r = {
|
|
5614
5614
|
appName: t.name
|
|
5615
5615
|
};
|
|
@@ -5689,15 +5689,15 @@ function yn(t) {
|
|
|
5689
5689
|
function Ln(t) {
|
|
5690
5690
|
const [e, n, r] = t.split(".");
|
|
5691
5691
|
if (e === void 0 || n === void 0 || r === void 0)
|
|
5692
|
-
return
|
|
5692
|
+
return qt("JWT malformed, contained fewer than 3 sections"), null;
|
|
5693
5693
|
try {
|
|
5694
|
-
const s =
|
|
5695
|
-
return s ? JSON.parse(s) : (
|
|
5694
|
+
const s = Rs(n);
|
|
5695
|
+
return s ? JSON.parse(s) : (qt("Failed to decode base64 JWT payload"), null);
|
|
5696
5696
|
} catch (s) {
|
|
5697
|
-
return
|
|
5697
|
+
return qt("Caught error parsing JWT payload as JSON", s == null ? void 0 : s.toString()), null;
|
|
5698
5698
|
}
|
|
5699
5699
|
}
|
|
5700
|
-
function
|
|
5700
|
+
function wr(t) {
|
|
5701
5701
|
const e = Ln(t);
|
|
5702
5702
|
return M(
|
|
5703
5703
|
e,
|
|
@@ -5729,7 +5729,7 @@ function vr(t) {
|
|
|
5729
5729
|
* See the License for the specific language governing permissions and
|
|
5730
5730
|
* limitations under the License.
|
|
5731
5731
|
*/
|
|
5732
|
-
async function
|
|
5732
|
+
async function vt(t, e, n = !1) {
|
|
5733
5733
|
if (n)
|
|
5734
5734
|
return e;
|
|
5735
5735
|
try {
|
|
@@ -5852,9 +5852,9 @@ class Gn {
|
|
|
5852
5852
|
* See the License for the specific language governing permissions and
|
|
5853
5853
|
* limitations under the License.
|
|
5854
5854
|
*/
|
|
5855
|
-
async function
|
|
5855
|
+
async function Zt(t) {
|
|
5856
5856
|
var e;
|
|
5857
|
-
const n = t.auth, r = await t.getIdToken(), s = await
|
|
5857
|
+
const n = t.auth, r = await t.getIdToken(), s = await vt(t, ei(n, { idToken: r }));
|
|
5858
5858
|
M(
|
|
5859
5859
|
s == null ? void 0 : s.users.length,
|
|
5860
5860
|
n,
|
|
@@ -5879,7 +5879,7 @@ async function Lt(t) {
|
|
|
5879
5879
|
}
|
|
5880
5880
|
async function Vu(t) {
|
|
5881
5881
|
const e = ht(t);
|
|
5882
|
-
await
|
|
5882
|
+
await Zt(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
5883
5883
|
}
|
|
5884
5884
|
function xu(t, e) {
|
|
5885
5885
|
return [...t.filter((r) => !e.some((s) => s.providerId === r.providerId)), ...e];
|
|
@@ -5915,7 +5915,7 @@ function ti(t) {
|
|
|
5915
5915
|
*/
|
|
5916
5916
|
async function Fu(t, e) {
|
|
5917
5917
|
const n = await Js(t, {}, async () => {
|
|
5918
|
-
const r =
|
|
5918
|
+
const r = Pt({
|
|
5919
5919
|
grant_type: "refresh_token",
|
|
5920
5920
|
refresh_token: e
|
|
5921
5921
|
}).slice(1), { tokenApiHost: s, apiKey: i } = t.config, a = $s(t, s, "/v1/token", `key=${i}`), c = await t._getAdditionalHeaders();
|
|
@@ -5934,7 +5934,7 @@ async function Fu(t, e) {
|
|
|
5934
5934
|
refreshToken: n.refresh_token
|
|
5935
5935
|
};
|
|
5936
5936
|
}
|
|
5937
|
-
async function
|
|
5937
|
+
async function Ru(t, e) {
|
|
5938
5938
|
return mt(t, "POST", "/v2/accounts:revokeToken", sn(t, e));
|
|
5939
5939
|
}
|
|
5940
5940
|
/**
|
|
@@ -5974,7 +5974,7 @@ class et {
|
|
|
5974
5974
|
"internal-error"
|
|
5975
5975
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5976
5976
|
);
|
|
5977
|
-
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) :
|
|
5977
|
+
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : wr(e.idToken);
|
|
5978
5978
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, n);
|
|
5979
5979
|
}
|
|
5980
5980
|
updateFromIdToken(e) {
|
|
@@ -5983,7 +5983,7 @@ class et {
|
|
|
5983
5983
|
"internal-error"
|
|
5984
5984
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5985
5985
|
);
|
|
5986
|
-
const n =
|
|
5986
|
+
const n = wr(e);
|
|
5987
5987
|
this.updateTokensAndExpiration(e, null, n);
|
|
5988
5988
|
}
|
|
5989
5989
|
async getToken(e, n = !1) {
|
|
@@ -6056,7 +6056,7 @@ class be {
|
|
|
6056
6056
|
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);
|
|
6057
6057
|
}
|
|
6058
6058
|
async getIdToken(e) {
|
|
6059
|
-
const n = await
|
|
6059
|
+
const n = await vt(this, this.stsTokenManager.getToken(this.auth, e));
|
|
6060
6060
|
return M(
|
|
6061
6061
|
n,
|
|
6062
6062
|
this.auth,
|
|
@@ -6101,13 +6101,13 @@ class be {
|
|
|
6101
6101
|
}
|
|
6102
6102
|
async _updateTokensIfNecessary(e, n = !1) {
|
|
6103
6103
|
let r = !1;
|
|
6104
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await
|
|
6104
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await Zt(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
|
6105
6105
|
}
|
|
6106
6106
|
async delete() {
|
|
6107
6107
|
if (pe(this.auth.app))
|
|
6108
|
-
return Promise.reject(
|
|
6108
|
+
return Promise.reject(ke(this.auth));
|
|
6109
6109
|
const e = await this.getIdToken();
|
|
6110
|
-
return await
|
|
6110
|
+
return await vt(this, Tu(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
6111
6111
|
}
|
|
6112
6112
|
toJSON() {
|
|
6113
6113
|
return Object.assign(Object.assign({
|
|
@@ -6135,7 +6135,7 @@ class be {
|
|
|
6135
6135
|
}
|
|
6136
6136
|
static _fromJSON(e, n) {
|
|
6137
6137
|
var r, s, i, a, c, l, A, f;
|
|
6138
|
-
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0,
|
|
6138
|
+
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0, v = (i = n.phoneNumber) !== null && i !== void 0 ? i : void 0, P = (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, k = (A = n.createdAt) !== null && A !== void 0 ? A : void 0, Q = (f = n.lastLoginAt) !== null && f !== void 0 ? f : void 0, { uid: Y, emailVerified: w, isAnonymous: H, providerData: U, stsTokenManager: ee } = n;
|
|
6139
6139
|
M(
|
|
6140
6140
|
Y && ee,
|
|
6141
6141
|
e,
|
|
@@ -6149,7 +6149,7 @@ class be {
|
|
|
6149
6149
|
"internal-error"
|
|
6150
6150
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6151
6151
|
), Ee(p, e.name), Ee(B, e.name), M(
|
|
6152
|
-
typeof
|
|
6152
|
+
typeof w == "boolean",
|
|
6153
6153
|
e,
|
|
6154
6154
|
"internal-error"
|
|
6155
6155
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -6158,19 +6158,19 @@ class be {
|
|
|
6158
6158
|
e,
|
|
6159
6159
|
"internal-error"
|
|
6160
6160
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6161
|
-
), Ee(
|
|
6161
|
+
), Ee(v, e.name), Ee(P, e.name), Ee(I, e.name), Ee(V, e.name), Ee(k, e.name), Ee(Q, e.name);
|
|
6162
6162
|
const u = new be({
|
|
6163
6163
|
uid: Y,
|
|
6164
6164
|
auth: e,
|
|
6165
6165
|
email: B,
|
|
6166
|
-
emailVerified:
|
|
6166
|
+
emailVerified: w,
|
|
6167
6167
|
displayName: p,
|
|
6168
6168
|
isAnonymous: H,
|
|
6169
6169
|
photoURL: P,
|
|
6170
|
-
phoneNumber:
|
|
6170
|
+
phoneNumber: v,
|
|
6171
6171
|
tenantId: I,
|
|
6172
6172
|
stsTokenManager: q,
|
|
6173
|
-
createdAt:
|
|
6173
|
+
createdAt: k,
|
|
6174
6174
|
lastLoginAt: Q
|
|
6175
6175
|
});
|
|
6176
6176
|
return U && Array.isArray(U) && (u.providerData = U.map((m) => Object.assign({}, m))), V && (u._redirectEventId = V), u;
|
|
@@ -6189,7 +6189,7 @@ class be {
|
|
|
6189
6189
|
stsTokenManager: s,
|
|
6190
6190
|
isAnonymous: r
|
|
6191
6191
|
});
|
|
6192
|
-
return await
|
|
6192
|
+
return await Zt(i), i;
|
|
6193
6193
|
}
|
|
6194
6194
|
/**
|
|
6195
6195
|
* Initialize a User from an idToken server response
|
|
@@ -6241,11 +6241,11 @@ class be {
|
|
|
6241
6241
|
* See the License for the specific language governing permissions and
|
|
6242
6242
|
* limitations under the License.
|
|
6243
6243
|
*/
|
|
6244
|
-
const
|
|
6245
|
-
function
|
|
6244
|
+
const vr = /* @__PURE__ */ new Map();
|
|
6245
|
+
function we(t) {
|
|
6246
6246
|
De(t instanceof Function, "Expected a class definition");
|
|
6247
|
-
let e =
|
|
6248
|
-
return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(),
|
|
6247
|
+
let e = vr.get(t);
|
|
6248
|
+
return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), vr.set(t, e), e);
|
|
6249
6249
|
}
|
|
6250
6250
|
/**
|
|
6251
6251
|
* @license
|
|
@@ -6303,14 +6303,14 @@ const Br = ni;
|
|
|
6303
6303
|
* See the License for the specific language governing permissions and
|
|
6304
6304
|
* limitations under the License.
|
|
6305
6305
|
*/
|
|
6306
|
-
function
|
|
6306
|
+
function Nt(t, e, n) {
|
|
6307
6307
|
return `firebase:${t}:${e}:${n}`;
|
|
6308
6308
|
}
|
|
6309
6309
|
class tt {
|
|
6310
6310
|
constructor(e, n, r) {
|
|
6311
6311
|
this.persistence = e, this.auth = n, this.userKey = r;
|
|
6312
6312
|
const { config: s, name: i } = this.auth;
|
|
6313
|
-
this.fullUserKey =
|
|
6313
|
+
this.fullUserKey = Nt(this.userKey, s.apiKey, i), this.fullPersistenceKey = Nt("persistence", s.apiKey, i), this.boundEventHandler = n._onStorageEvent.bind(n), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
|
|
6314
6314
|
}
|
|
6315
6315
|
setCurrentUser(e) {
|
|
6316
6316
|
return this.persistence._set(this.fullUserKey, e.toJSON());
|
|
@@ -6337,13 +6337,13 @@ class tt {
|
|
|
6337
6337
|
}
|
|
6338
6338
|
static async create(e, n, r = "authUser") {
|
|
6339
6339
|
if (!n.length)
|
|
6340
|
-
return new tt(
|
|
6340
|
+
return new tt(we(Br), e, r);
|
|
6341
6341
|
const s = (await Promise.all(n.map(async (A) => {
|
|
6342
6342
|
if (await A._isAvailable())
|
|
6343
6343
|
return A;
|
|
6344
6344
|
}))).filter((A) => A);
|
|
6345
|
-
let i = s[0] ||
|
|
6346
|
-
const a =
|
|
6345
|
+
let i = s[0] || we(Br);
|
|
6346
|
+
const a = Nt(r, e.config.apiKey, e.name);
|
|
6347
6347
|
let c = null;
|
|
6348
6348
|
for (const A of n)
|
|
6349
6349
|
try {
|
|
@@ -6437,7 +6437,7 @@ function ui(t = K()) {
|
|
|
6437
6437
|
function Kn(t = K()) {
|
|
6438
6438
|
return /iphone|ipad|ipod/i.test(t) || /macintosh/i.test(t) && /mobile/i.test(t);
|
|
6439
6439
|
}
|
|
6440
|
-
function
|
|
6440
|
+
function ku(t = K()) {
|
|
6441
6441
|
var e;
|
|
6442
6442
|
return Kn(t) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
|
6443
6443
|
}
|
|
@@ -6476,7 +6476,7 @@ function Ai(t, e = []) {
|
|
|
6476
6476
|
n = t;
|
|
6477
6477
|
}
|
|
6478
6478
|
const r = e.length ? e.join(",") : "FirebaseCore-web";
|
|
6479
|
-
return `${n}/JsCore/${
|
|
6479
|
+
return `${n}/JsCore/${Ot}/${r}`;
|
|
6480
6480
|
}
|
|
6481
6481
|
/**
|
|
6482
6482
|
* @license
|
|
@@ -6661,7 +6661,7 @@ class Su {
|
|
|
6661
6661
|
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;
|
|
6662
6662
|
}
|
|
6663
6663
|
_initializeWithPersistence(e, n) {
|
|
6664
|
-
return n && (this._popupRedirectResolver =
|
|
6664
|
+
return n && (this._popupRedirectResolver = we(n)), this._initializationPromise = this.queue(async () => {
|
|
6665
6665
|
var r, s;
|
|
6666
6666
|
if (!this._deleted && (this.persistenceManager = await tt.create(this, e), !this._deleted)) {
|
|
6667
6667
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
|
@@ -6744,7 +6744,7 @@ class Su {
|
|
|
6744
6744
|
}
|
|
6745
6745
|
async reloadAndSetCurrentUserOrClear(e) {
|
|
6746
6746
|
try {
|
|
6747
|
-
await
|
|
6747
|
+
await Zt(e);
|
|
6748
6748
|
} catch (n) {
|
|
6749
6749
|
if ((n == null ? void 0 : n.code) !== "auth/network-request-failed")
|
|
6750
6750
|
return this.directlySetCurrentUser(null);
|
|
@@ -6759,7 +6759,7 @@ class Su {
|
|
|
6759
6759
|
}
|
|
6760
6760
|
async updateCurrentUser(e) {
|
|
6761
6761
|
if (pe(this.app))
|
|
6762
|
-
return Promise.reject(
|
|
6762
|
+
return Promise.reject(ke(this));
|
|
6763
6763
|
const n = e ? ht(e) : null;
|
|
6764
6764
|
return n && M(
|
|
6765
6765
|
n.auth.config.apiKey === this.config.apiKey,
|
|
@@ -6780,15 +6780,15 @@ class Su {
|
|
|
6780
6780
|
});
|
|
6781
6781
|
}
|
|
6782
6782
|
async signOut() {
|
|
6783
|
-
return pe(this.app) ? Promise.reject(
|
|
6783
|
+
return pe(this.app) ? Promise.reject(ke(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
|
|
6784
6784
|
null,
|
|
6785
6785
|
/* skipBeforeStateCallbacks */
|
|
6786
6786
|
!0
|
|
6787
6787
|
));
|
|
6788
6788
|
}
|
|
6789
6789
|
setPersistence(e) {
|
|
6790
|
-
return pe(this.app) ? Promise.reject(
|
|
6791
|
-
await this.assertedPersistence.setPersistence(
|
|
6790
|
+
return pe(this.app) ? Promise.reject(ke(this)) : this.queue(async () => {
|
|
6791
|
+
await this.assertedPersistence.setPersistence(we(e));
|
|
6792
6792
|
});
|
|
6793
6793
|
}
|
|
6794
6794
|
_getRecaptchaConfig() {
|
|
@@ -6810,7 +6810,7 @@ class Su {
|
|
|
6810
6810
|
return this.assertedPersistence.persistence.type;
|
|
6811
6811
|
}
|
|
6812
6812
|
_updateErrorMap(e) {
|
|
6813
|
-
this._errorFactory = new
|
|
6813
|
+
this._errorFactory = new It("auth", "Firebase", e());
|
|
6814
6814
|
}
|
|
6815
6815
|
onAuthStateChanged(e, n, r) {
|
|
6816
6816
|
return this.registerStateListener(this.authStateSubscription, e, n, r);
|
|
@@ -6843,7 +6843,7 @@ class Su {
|
|
|
6843
6843
|
token: e,
|
|
6844
6844
|
idToken: n
|
|
6845
6845
|
};
|
|
6846
|
-
this.tenantId != null && (r.tenantId = this.tenantId), await
|
|
6846
|
+
this.tenantId != null && (r.tenantId = this.tenantId), await Ru(this, r);
|
|
6847
6847
|
}
|
|
6848
6848
|
}
|
|
6849
6849
|
toJSON() {
|
|
@@ -6861,7 +6861,7 @@ class Su {
|
|
|
6861
6861
|
}
|
|
6862
6862
|
async getOrInitRedirectPersistenceManager(e) {
|
|
6863
6863
|
if (!this.redirectPersistenceManager) {
|
|
6864
|
-
const n = e &&
|
|
6864
|
+
const n = e && we(e) || this._popupRedirectResolver;
|
|
6865
6865
|
M(
|
|
6866
6866
|
n,
|
|
6867
6867
|
this,
|
|
@@ -6869,7 +6869,7 @@ class Su {
|
|
|
6869
6869
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
6870
6870
|
), this.redirectPersistenceManager = await tt.create(
|
|
6871
6871
|
this,
|
|
6872
|
-
[
|
|
6872
|
+
[we(n._redirectPersistence)],
|
|
6873
6873
|
"redirectUser"
|
|
6874
6874
|
/* KeyName.REDIRECT_USER */
|
|
6875
6875
|
), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
|
|
@@ -7061,7 +7061,7 @@ function Lu(t, e) {
|
|
|
7061
7061
|
const n = Xs(t, "auth");
|
|
7062
7062
|
if (n.isInitialized()) {
|
|
7063
7063
|
const s = n.getImmediate(), i = n.getOptions();
|
|
7064
|
-
if (
|
|
7064
|
+
if (Ut(i, e ?? {}))
|
|
7065
7065
|
return s;
|
|
7066
7066
|
Be(
|
|
7067
7067
|
s,
|
|
@@ -7072,7 +7072,7 @@ function Lu(t, e) {
|
|
|
7072
7072
|
return n.initialize({ options: e });
|
|
7073
7073
|
}
|
|
7074
7074
|
function Ku(t, e) {
|
|
7075
|
-
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(
|
|
7075
|
+
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(we);
|
|
7076
7076
|
e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
7077
7077
|
}
|
|
7078
7078
|
function Ju(t, e, n) {
|
|
@@ -7268,7 +7268,7 @@ class Ze extends hi {
|
|
|
7268
7268
|
e.pendingToken = this.pendingToken;
|
|
7269
7269
|
else {
|
|
7270
7270
|
const n = {};
|
|
7271
|
-
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 =
|
|
7271
|
+
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 = Pt(n);
|
|
7272
7272
|
}
|
|
7273
7273
|
return e;
|
|
7274
7274
|
}
|
|
@@ -7342,7 +7342,7 @@ class mi {
|
|
|
7342
7342
|
* See the License for the specific language governing permissions and
|
|
7343
7343
|
* limitations under the License.
|
|
7344
7344
|
*/
|
|
7345
|
-
class
|
|
7345
|
+
class Gt extends mi {
|
|
7346
7346
|
constructor() {
|
|
7347
7347
|
super(...arguments), this.scopes = [];
|
|
7348
7348
|
}
|
|
@@ -7377,7 +7377,7 @@ class jt extends mi {
|
|
|
7377
7377
|
* See the License for the specific language governing permissions and
|
|
7378
7378
|
* limitations under the License.
|
|
7379
7379
|
*/
|
|
7380
|
-
class Ie extends
|
|
7380
|
+
class Ie extends Gt {
|
|
7381
7381
|
constructor() {
|
|
7382
7382
|
super(
|
|
7383
7383
|
"facebook.com"
|
|
@@ -7448,7 +7448,7 @@ Ie.PROVIDER_ID = "facebook.com";
|
|
|
7448
7448
|
* See the License for the specific language governing permissions and
|
|
7449
7449
|
* limitations under the License.
|
|
7450
7450
|
*/
|
|
7451
|
-
class Pe extends
|
|
7451
|
+
class Pe extends Gt {
|
|
7452
7452
|
constructor() {
|
|
7453
7453
|
super(
|
|
7454
7454
|
"google.com"
|
|
@@ -7524,7 +7524,7 @@ Pe.PROVIDER_ID = "google.com";
|
|
|
7524
7524
|
* See the License for the specific language governing permissions and
|
|
7525
7525
|
* limitations under the License.
|
|
7526
7526
|
*/
|
|
7527
|
-
class Oe extends
|
|
7527
|
+
class Oe extends Gt {
|
|
7528
7528
|
constructor() {
|
|
7529
7529
|
super(
|
|
7530
7530
|
"github.com"
|
|
@@ -7588,7 +7588,7 @@ Oe.PROVIDER_ID = "github.com";
|
|
|
7588
7588
|
* See the License for the specific language governing permissions and
|
|
7589
7589
|
* limitations under the License.
|
|
7590
7590
|
*/
|
|
7591
|
-
class Te extends
|
|
7591
|
+
class Te extends Gt {
|
|
7592
7592
|
constructor() {
|
|
7593
7593
|
super(
|
|
7594
7594
|
"twitter.com"
|
|
@@ -7704,10 +7704,10 @@ function Mr(t) {
|
|
|
7704
7704
|
* See the License for the specific language governing permissions and
|
|
7705
7705
|
* limitations under the License.
|
|
7706
7706
|
*/
|
|
7707
|
-
class
|
|
7707
|
+
class Lt extends qe {
|
|
7708
7708
|
constructor(e, n, r, s) {
|
|
7709
7709
|
var i;
|
|
7710
|
-
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this,
|
|
7710
|
+
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, Lt.prototype), this.customData = {
|
|
7711
7711
|
appName: e.name,
|
|
7712
7712
|
tenantId: (i = e.tenantId) !== null && i !== void 0 ? i : void 0,
|
|
7713
7713
|
_serverResponse: n.customData._serverResponse,
|
|
@@ -7715,16 +7715,16 @@ class Kt extends qe {
|
|
|
7715
7715
|
};
|
|
7716
7716
|
}
|
|
7717
7717
|
static _fromErrorAndOperation(e, n, r, s) {
|
|
7718
|
-
return new
|
|
7718
|
+
return new Lt(e, n, r, s);
|
|
7719
7719
|
}
|
|
7720
7720
|
}
|
|
7721
7721
|
function fi(t, e, n, r) {
|
|
7722
7722
|
return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((i) => {
|
|
7723
|
-
throw i.code === "auth/multi-factor-auth-required" ?
|
|
7723
|
+
throw i.code === "auth/multi-factor-auth-required" ? Lt._fromErrorAndOperation(t, i, e, r) : i;
|
|
7724
7724
|
});
|
|
7725
7725
|
}
|
|
7726
7726
|
async function tl(t, e, n = !1) {
|
|
7727
|
-
const r = await
|
|
7727
|
+
const r = await vt(t, e._linkToIdToken(t.auth, await t.getIdToken()), n);
|
|
7728
7728
|
return Le._forOperation(t, "link", r);
|
|
7729
7729
|
}
|
|
7730
7730
|
/**
|
|
@@ -7746,10 +7746,10 @@ async function tl(t, e, n = !1) {
|
|
|
7746
7746
|
async function nl(t, e, n = !1) {
|
|
7747
7747
|
const { auth: r } = t;
|
|
7748
7748
|
if (pe(r.app))
|
|
7749
|
-
return Promise.reject(
|
|
7749
|
+
return Promise.reject(ke(r));
|
|
7750
7750
|
const s = "reauthenticate";
|
|
7751
7751
|
try {
|
|
7752
|
-
const i = await
|
|
7752
|
+
const i = await vt(t, fi(r, s, e, t), n);
|
|
7753
7753
|
M(
|
|
7754
7754
|
i.idToken,
|
|
7755
7755
|
r,
|
|
@@ -7796,7 +7796,7 @@ async function nl(t, e, n = !1) {
|
|
|
7796
7796
|
*/
|
|
7797
7797
|
async function rl(t, e, n = !1) {
|
|
7798
7798
|
if (pe(t.app))
|
|
7799
|
-
return Promise.reject(
|
|
7799
|
+
return Promise.reject(ke(t));
|
|
7800
7800
|
const r = "signIn", s = await fi(t, r, e), i = await Le._fromIdTokenResponse(t, r, s);
|
|
7801
7801
|
return n || await t._updateCurrentUser(i.user), i;
|
|
7802
7802
|
}
|
|
@@ -7837,7 +7837,7 @@ async function sl(t, e) {
|
|
|
7837
7837
|
*/
|
|
7838
7838
|
async function il(t, e) {
|
|
7839
7839
|
if (pe(t.app))
|
|
7840
|
-
return Promise.reject(
|
|
7840
|
+
return Promise.reject(ke(t));
|
|
7841
7841
|
const n = an(t), r = await sl(n, {
|
|
7842
7842
|
token: e,
|
|
7843
7843
|
returnSecureToken: !0
|
|
@@ -7850,7 +7850,7 @@ function al(t, e, n, r) {
|
|
|
7850
7850
|
function ol(t, e, n) {
|
|
7851
7851
|
return ht(t).beforeAuthStateChanged(e, n);
|
|
7852
7852
|
}
|
|
7853
|
-
const
|
|
7853
|
+
const Kt = "__sak";
|
|
7854
7854
|
/**
|
|
7855
7855
|
* @license
|
|
7856
7856
|
* Copyright 2019 Google LLC
|
|
@@ -7873,7 +7873,7 @@ class gi {
|
|
|
7873
7873
|
}
|
|
7874
7874
|
_isAvailable() {
|
|
7875
7875
|
try {
|
|
7876
|
-
return this.storage ? (this.storage.setItem(
|
|
7876
|
+
return this.storage ? (this.storage.setItem(Kt, "1"), this.storage.removeItem(Kt), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
7877
7877
|
} catch {
|
|
7878
7878
|
return Promise.resolve(!1);
|
|
7879
7879
|
}
|
|
@@ -8293,7 +8293,7 @@ function hl(t) {
|
|
|
8293
8293
|
* See the License for the specific language governing permissions and
|
|
8294
8294
|
* limitations under the License.
|
|
8295
8295
|
*/
|
|
8296
|
-
function
|
|
8296
|
+
function wi() {
|
|
8297
8297
|
return typeof de().WorkerGlobalScope < "u" && typeof de().importScripts == "function";
|
|
8298
8298
|
}
|
|
8299
8299
|
async function ml() {
|
|
@@ -8310,7 +8310,7 @@ function fl() {
|
|
|
8310
8310
|
return ((t = navigator == null ? void 0 : navigator.serviceWorker) === null || t === void 0 ? void 0 : t.controller) || null;
|
|
8311
8311
|
}
|
|
8312
8312
|
function gl() {
|
|
8313
|
-
return
|
|
8313
|
+
return wi() ? self : null;
|
|
8314
8314
|
}
|
|
8315
8315
|
/**
|
|
8316
8316
|
* @license
|
|
@@ -8328,8 +8328,8 @@ function gl() {
|
|
|
8328
8328
|
* See the License for the specific language governing permissions and
|
|
8329
8329
|
* limitations under the License.
|
|
8330
8330
|
*/
|
|
8331
|
-
const
|
|
8332
|
-
class
|
|
8331
|
+
const vi = "firebaseLocalStorageDb", pl = 1, Jt = "firebaseLocalStorage", Bi = "fbase_key";
|
|
8332
|
+
class jt {
|
|
8333
8333
|
constructor(e) {
|
|
8334
8334
|
this.request = e;
|
|
8335
8335
|
}
|
|
@@ -8344,27 +8344,27 @@ class Yt {
|
|
|
8344
8344
|
}
|
|
8345
8345
|
}
|
|
8346
8346
|
function cn(t, e) {
|
|
8347
|
-
return t.transaction([
|
|
8347
|
+
return t.transaction([Jt], e ? "readwrite" : "readonly").objectStore(Jt);
|
|
8348
8348
|
}
|
|
8349
8349
|
function yl() {
|
|
8350
|
-
const t = indexedDB.deleteDatabase(
|
|
8351
|
-
return new
|
|
8350
|
+
const t = indexedDB.deleteDatabase(vi);
|
|
8351
|
+
return new jt(t).toPromise();
|
|
8352
8352
|
}
|
|
8353
8353
|
function jn() {
|
|
8354
|
-
const t = indexedDB.open(
|
|
8354
|
+
const t = indexedDB.open(vi, pl);
|
|
8355
8355
|
return new Promise((e, n) => {
|
|
8356
8356
|
t.addEventListener("error", () => {
|
|
8357
8357
|
n(t.error);
|
|
8358
8358
|
}), t.addEventListener("upgradeneeded", () => {
|
|
8359
8359
|
const r = t.result;
|
|
8360
8360
|
try {
|
|
8361
|
-
r.createObjectStore(
|
|
8361
|
+
r.createObjectStore(Jt, { keyPath: Bi });
|
|
8362
8362
|
} catch (s) {
|
|
8363
8363
|
n(s);
|
|
8364
8364
|
}
|
|
8365
8365
|
}), t.addEventListener("success", async () => {
|
|
8366
8366
|
const r = t.result;
|
|
8367
|
-
r.objectStoreNames.contains(
|
|
8367
|
+
r.objectStoreNames.contains(Jt) ? e(r) : (r.close(), await yl(), e(await jn()));
|
|
8368
8368
|
});
|
|
8369
8369
|
});
|
|
8370
8370
|
}
|
|
@@ -8373,17 +8373,17 @@ async function Ir(t, e, n) {
|
|
|
8373
8373
|
[Bi]: e,
|
|
8374
8374
|
value: n
|
|
8375
8375
|
});
|
|
8376
|
-
return new
|
|
8376
|
+
return new jt(r).toPromise();
|
|
8377
8377
|
}
|
|
8378
8378
|
async function bl(t, e) {
|
|
8379
|
-
const n = cn(t, !1).get(e), r = await new
|
|
8379
|
+
const n = cn(t, !1).get(e), r = await new jt(n).toPromise();
|
|
8380
8380
|
return r === void 0 ? null : r.value;
|
|
8381
8381
|
}
|
|
8382
8382
|
function Pr(t, e) {
|
|
8383
8383
|
const n = cn(t, !0).delete(e);
|
|
8384
|
-
return new
|
|
8384
|
+
return new jt(n).toPromise();
|
|
8385
8385
|
}
|
|
8386
|
-
const
|
|
8386
|
+
const wl = 800, vl = 3;
|
|
8387
8387
|
class Di {
|
|
8388
8388
|
constructor() {
|
|
8389
8389
|
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(() => {
|
|
@@ -8400,7 +8400,7 @@ class Di {
|
|
|
8400
8400
|
const r = await this._openDb();
|
|
8401
8401
|
return await e(r);
|
|
8402
8402
|
} catch (r) {
|
|
8403
|
-
if (n++ >
|
|
8403
|
+
if (n++ > vl)
|
|
8404
8404
|
throw r;
|
|
8405
8405
|
this.db && (this.db.close(), this.db = void 0);
|
|
8406
8406
|
}
|
|
@@ -8410,7 +8410,7 @@ class Di {
|
|
|
8410
8410
|
* postMessage interface to send these events to the worker ourselves.
|
|
8411
8411
|
*/
|
|
8412
8412
|
async initializeServiceWorkerMessaging() {
|
|
8413
|
-
return
|
|
8413
|
+
return wi() ? this.initializeReceiver() : this.initializeSender();
|
|
8414
8414
|
}
|
|
8415
8415
|
/**
|
|
8416
8416
|
* As the worker we should listen to events from the main window.
|
|
@@ -8473,7 +8473,7 @@ class Di {
|
|
|
8473
8473
|
if (!indexedDB)
|
|
8474
8474
|
return !1;
|
|
8475
8475
|
const e = await jn();
|
|
8476
|
-
return await Ir(e,
|
|
8476
|
+
return await Ir(e, Kt, "1"), await Pr(e, Kt), !0;
|
|
8477
8477
|
} catch {
|
|
8478
8478
|
}
|
|
8479
8479
|
return !1;
|
|
@@ -8499,7 +8499,7 @@ class Di {
|
|
|
8499
8499
|
async _poll() {
|
|
8500
8500
|
const e = await this._withRetries((s) => {
|
|
8501
8501
|
const i = cn(s, !1).getAll();
|
|
8502
|
-
return new
|
|
8502
|
+
return new jt(i).toPromise();
|
|
8503
8503
|
});
|
|
8504
8504
|
if (!e)
|
|
8505
8505
|
return [];
|
|
@@ -8521,7 +8521,7 @@ class Di {
|
|
|
8521
8521
|
s(n);
|
|
8522
8522
|
}
|
|
8523
8523
|
startPolling() {
|
|
8524
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
|
8524
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), wl);
|
|
8525
8525
|
}
|
|
8526
8526
|
stopPolling() {
|
|
8527
8527
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -8535,7 +8535,7 @@ class Di {
|
|
|
8535
8535
|
}
|
|
8536
8536
|
Di.type = "LOCAL";
|
|
8537
8537
|
const Bl = Di;
|
|
8538
|
-
new
|
|
8538
|
+
new Tt(3e4, 6e4);
|
|
8539
8539
|
/**
|
|
8540
8540
|
* @license
|
|
8541
8541
|
* Copyright 2021 Google LLC
|
|
@@ -8553,7 +8553,7 @@ new Gt(3e4, 6e4);
|
|
|
8553
8553
|
* limitations under the License.
|
|
8554
8554
|
*/
|
|
8555
8555
|
function Dl(t, e) {
|
|
8556
|
-
return e ?
|
|
8556
|
+
return e ? we(e) : (M(
|
|
8557
8557
|
t._popupRedirectResolver,
|
|
8558
8558
|
t,
|
|
8559
8559
|
"argument-error"
|
|
@@ -8726,7 +8726,7 @@ class Ci {
|
|
|
8726
8726
|
* See the License for the specific language governing permissions and
|
|
8727
8727
|
* limitations under the License.
|
|
8728
8728
|
*/
|
|
8729
|
-
const Il = new
|
|
8729
|
+
const Il = new Tt(2e3, 1e4);
|
|
8730
8730
|
class _e extends Ci {
|
|
8731
8731
|
constructor(e, n, r, s, i) {
|
|
8732
8732
|
super(e, n, s, i), this.provider = r, this.authWindow = null, this.pollId = null, _e.currentPopupAction && _e.currentPopupAction.cancel(), _e.currentPopupAction = this;
|
|
@@ -8812,7 +8812,7 @@ _e.currentPopupAction = null;
|
|
|
8812
8812
|
* See the License for the specific language governing permissions and
|
|
8813
8813
|
* limitations under the License.
|
|
8814
8814
|
*/
|
|
8815
|
-
const Pl = "pendingRedirect",
|
|
8815
|
+
const Pl = "pendingRedirect", Ht = /* @__PURE__ */ new Map();
|
|
8816
8816
|
class Ol extends Ci {
|
|
8817
8817
|
constructor(e, n, r = !1) {
|
|
8818
8818
|
super(e, [
|
|
@@ -8828,7 +8828,7 @@ class Ol extends Ci {
|
|
|
8828
8828
|
* just return it.
|
|
8829
8829
|
*/
|
|
8830
8830
|
async execute() {
|
|
8831
|
-
let e =
|
|
8831
|
+
let e = Ht.get(this.auth._key());
|
|
8832
8832
|
if (!e) {
|
|
8833
8833
|
try {
|
|
8834
8834
|
const r = await Tl(this.resolver, this.auth) ? await super.execute() : null;
|
|
@@ -8836,9 +8836,9 @@ class Ol extends Ci {
|
|
|
8836
8836
|
} catch (n) {
|
|
8837
8837
|
e = () => Promise.reject(n);
|
|
8838
8838
|
}
|
|
8839
|
-
|
|
8839
|
+
Ht.set(this.auth._key(), e);
|
|
8840
8840
|
}
|
|
8841
|
-
return this.bypassAuthState ||
|
|
8841
|
+
return this.bypassAuthState || Ht.set(this.auth._key(), () => Promise.resolve(null)), e();
|
|
8842
8842
|
}
|
|
8843
8843
|
async onAuthEvent(e) {
|
|
8844
8844
|
if (e.type === "signInViaRedirect")
|
|
@@ -8867,17 +8867,17 @@ async function Tl(t, e) {
|
|
|
8867
8867
|
return await r._remove(n), s;
|
|
8868
8868
|
}
|
|
8869
8869
|
function Gl(t, e) {
|
|
8870
|
-
|
|
8870
|
+
Ht.set(t._key(), e);
|
|
8871
8871
|
}
|
|
8872
8872
|
function jl(t) {
|
|
8873
|
-
return
|
|
8873
|
+
return we(t._redirectPersistence);
|
|
8874
8874
|
}
|
|
8875
8875
|
function Yl(t) {
|
|
8876
|
-
return
|
|
8876
|
+
return Nt(Pl, t.config.apiKey, t.name);
|
|
8877
8877
|
}
|
|
8878
8878
|
async function Vl(t, e, n = !1) {
|
|
8879
8879
|
if (pe(t.app))
|
|
8880
|
-
return Promise.reject(
|
|
8880
|
+
return Promise.reject(ke(t));
|
|
8881
8881
|
const r = an(t), s = Dl(r, e), a = await new Ol(r, s, n).execute();
|
|
8882
8882
|
return a && !n && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
|
8883
8883
|
}
|
|
@@ -8914,7 +8914,7 @@ class Fl {
|
|
|
8914
8914
|
let n = !1;
|
|
8915
8915
|
return this.consumers.forEach((r) => {
|
|
8916
8916
|
this.isEventForConsumer(e, r) && (n = !0, this.sendToConsumer(e, r), this.saveEventToCache(e));
|
|
8917
|
-
}), this.hasHandledPotentialRedirect || !
|
|
8917
|
+
}), this.hasHandledPotentialRedirect || !Rl(e) || (this.hasHandledPotentialRedirect = !0, n || (this.queuedRedirectEvent = e, n = !0)), n;
|
|
8918
8918
|
}
|
|
8919
8919
|
sendToConsumer(e, n) {
|
|
8920
8920
|
var r;
|
|
@@ -8941,7 +8941,7 @@ function Or(t) {
|
|
|
8941
8941
|
function Ei({ type: t, error: e }) {
|
|
8942
8942
|
return t === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
|
|
8943
8943
|
}
|
|
8944
|
-
function
|
|
8944
|
+
function Rl(t) {
|
|
8945
8945
|
switch (t.type) {
|
|
8946
8946
|
case "signInViaRedirect":
|
|
8947
8947
|
case "linkViaRedirect":
|
|
@@ -8969,7 +8969,7 @@ function kl(t) {
|
|
|
8969
8969
|
* See the License for the specific language governing permissions and
|
|
8970
8970
|
* limitations under the License.
|
|
8971
8971
|
*/
|
|
8972
|
-
async function
|
|
8972
|
+
async function kl(t, e = {}) {
|
|
8973
8973
|
return mt(t, "GET", "/v1/projects", e);
|
|
8974
8974
|
}
|
|
8975
8975
|
/**
|
|
@@ -8992,7 +8992,7 @@ const ql = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Nl = /^https?/;
|
|
|
8992
8992
|
async function Hl(t) {
|
|
8993
8993
|
if (t.config.emulator)
|
|
8994
8994
|
return;
|
|
8995
|
-
const { authorizedDomains: e } = await
|
|
8995
|
+
const { authorizedDomains: e } = await kl(t);
|
|
8996
8996
|
for (const n of e)
|
|
8997
8997
|
try {
|
|
8998
8998
|
if (Ql(n))
|
|
@@ -9034,7 +9034,7 @@ function Ql(t) {
|
|
|
9034
9034
|
* See the License for the specific language governing permissions and
|
|
9035
9035
|
* limitations under the License.
|
|
9036
9036
|
*/
|
|
9037
|
-
const Xl = new
|
|
9037
|
+
const Xl = new Tt(3e4, 6e4);
|
|
9038
9038
|
function Tr() {
|
|
9039
9039
|
const t = de().___jsl;
|
|
9040
9040
|
if (t != null && t.H) {
|
|
@@ -9077,12 +9077,12 @@ function Sl(t) {
|
|
|
9077
9077
|
}, Wu(`${zu()}?onload=${c}`).catch((l) => n(l));
|
|
9078
9078
|
}
|
|
9079
9079
|
}).catch((e) => {
|
|
9080
|
-
throw
|
|
9080
|
+
throw Qt = null, e;
|
|
9081
9081
|
});
|
|
9082
9082
|
}
|
|
9083
|
-
let
|
|
9083
|
+
let Qt = null;
|
|
9084
9084
|
function Ul(t) {
|
|
9085
|
-
return
|
|
9085
|
+
return Qt = Qt || Sl(t), Qt;
|
|
9086
9086
|
}
|
|
9087
9087
|
/**
|
|
9088
9088
|
* @license
|
|
@@ -9100,7 +9100,7 @@ function Ul(t) {
|
|
|
9100
9100
|
* See the License for the specific language governing permissions and
|
|
9101
9101
|
* limitations under the License.
|
|
9102
9102
|
*/
|
|
9103
|
-
const Wl = new
|
|
9103
|
+
const Wl = new Tt(5e3, 15e3), zl = "__/auth/iframe", Zl = "emulator/auth/iframe", Ll = {
|
|
9104
9104
|
style: {
|
|
9105
9105
|
position: "absolute",
|
|
9106
9106
|
top: "-100px",
|
|
@@ -9126,11 +9126,11 @@ function Jl(t) {
|
|
|
9126
9126
|
const n = e.emulator ? Zn(e, Zl) : `https://${t.config.authDomain}/${zl}`, r = {
|
|
9127
9127
|
apiKey: e.apiKey,
|
|
9128
9128
|
appName: t.name,
|
|
9129
|
-
v:
|
|
9129
|
+
v: Ot
|
|
9130
9130
|
}, s = Kl.get(t.config.apiHost);
|
|
9131
9131
|
s && (r.eid = s);
|
|
9132
9132
|
const i = t._getFrameworks();
|
|
9133
|
-
return i.length && (r.fw = i.join(",")), `${n}?${
|
|
9133
|
+
return i.length && (r.fw = i.join(",")), `${n}?${Pt(r).slice(1)}`;
|
|
9134
9134
|
}
|
|
9135
9135
|
async function _l(t) {
|
|
9136
9136
|
const e = await Ul(t), n = de().gapi;
|
|
@@ -9209,8 +9209,8 @@ function sA(t, e, n, r = eA, s = tA) {
|
|
|
9209
9209
|
left: a
|
|
9210
9210
|
}), A = K().toLowerCase();
|
|
9211
9211
|
n && (c = ii(A) ? nA : n), ri(A) && (e = e || rA, l.scrollbars = "yes");
|
|
9212
|
-
const f = Object.entries(l).reduce((B, [
|
|
9213
|
-
if (
|
|
9212
|
+
const f = Object.entries(l).reduce((B, [v, P]) => `${B}${v}=${P},`, "");
|
|
9213
|
+
if (ku(A) && c !== "_self")
|
|
9214
9214
|
return iA(e || "", c), new Gr(null);
|
|
9215
9215
|
const p = window.open(e || "", c, f);
|
|
9216
9216
|
M(
|
|
@@ -9265,7 +9265,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9265
9265
|
appName: t.name,
|
|
9266
9266
|
authType: n,
|
|
9267
9267
|
redirectUrl: r,
|
|
9268
|
-
v:
|
|
9268
|
+
v: Ot,
|
|
9269
9269
|
eventId: s
|
|
9270
9270
|
};
|
|
9271
9271
|
if (e instanceof mi) {
|
|
@@ -9273,7 +9273,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9273
9273
|
for (const [f, p] of Object.entries({}))
|
|
9274
9274
|
a[f] = p;
|
|
9275
9275
|
}
|
|
9276
|
-
if (e instanceof
|
|
9276
|
+
if (e instanceof Gt) {
|
|
9277
9277
|
const f = e.getScopes().filter((p) => p !== "");
|
|
9278
9278
|
f.length > 0 && (a.scopes = f.join(","));
|
|
9279
9279
|
}
|
|
@@ -9282,7 +9282,7 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9282
9282
|
for (const f of Object.keys(c))
|
|
9283
9283
|
c[f] === void 0 && delete c[f];
|
|
9284
9284
|
const l = await t._getAppCheckToken(), A = l ? `#${cA}=${encodeURIComponent(l)}` : "";
|
|
9285
|
-
return `${uA(t)}?${
|
|
9285
|
+
return `${uA(t)}?${Pt(c).slice(1)}${A}`;
|
|
9286
9286
|
}
|
|
9287
9287
|
function uA({ config: t }) {
|
|
9288
9288
|
return t.emulator ? Zn(t, oA) : `https://${t.authDomain}/${aA}`;
|
|
@@ -9450,7 +9450,7 @@ function hA(t) {
|
|
|
9450
9450
|
}
|
|
9451
9451
|
}
|
|
9452
9452
|
function mA(t) {
|
|
9453
|
-
|
|
9453
|
+
bt(new dt(
|
|
9454
9454
|
"auth",
|
|
9455
9455
|
(e, { options: n }) => {
|
|
9456
9456
|
const r = e.getProvider("app").getImmediate(), s = e.getProvider("heartbeat"), i = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
|
|
@@ -9476,7 +9476,7 @@ function mA(t) {
|
|
|
9476
9476
|
"auth-internal"
|
|
9477
9477
|
/* _ComponentName.AUTH_INTERNAL */
|
|
9478
9478
|
).initialize();
|
|
9479
|
-
})),
|
|
9479
|
+
})), bt(new dt(
|
|
9480
9480
|
"auth-internal",
|
|
9481
9481
|
(e) => {
|
|
9482
9482
|
const n = an(e.getProvider(
|
|
@@ -9585,7 +9585,7 @@ var un = class {
|
|
|
9585
9585
|
}
|
|
9586
9586
|
onUnsubscribe() {
|
|
9587
9587
|
}
|
|
9588
|
-
}, He, Ge, rt, Xr,
|
|
9588
|
+
}, He, Ge, rt, Xr, wA = (Xr = class extends un {
|
|
9589
9589
|
constructor() {
|
|
9590
9590
|
super();
|
|
9591
9591
|
G(this, He);
|
|
@@ -9626,7 +9626,7 @@ var un = class {
|
|
|
9626
9626
|
var e;
|
|
9627
9627
|
return typeof h(this, He) == "boolean" ? h(this, He) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
9628
9628
|
}
|
|
9629
|
-
}, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new
|
|
9629
|
+
}, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new wA(), vA = {
|
|
9630
9630
|
// We need the wrapper function syntax below instead of direct references to
|
|
9631
9631
|
// global setTimeout etc.
|
|
9632
9632
|
//
|
|
@@ -9650,7 +9650,7 @@ var un = class {
|
|
|
9650
9650
|
//
|
|
9651
9651
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
|
9652
9652
|
// this class is unsafe internally to allow for extension.
|
|
9653
|
-
G(this, oe,
|
|
9653
|
+
G(this, oe, vA);
|
|
9654
9654
|
G(this, Qe, !1);
|
|
9655
9655
|
}
|
|
9656
9656
|
setTimeoutProvider(t) {
|
|
@@ -9706,7 +9706,7 @@ function Fr(t, e) {
|
|
|
9706
9706
|
if (r) {
|
|
9707
9707
|
if (e.queryHash !== er(a, e.options))
|
|
9708
9708
|
return !1;
|
|
9709
|
-
} else if (!
|
|
9709
|
+
} else if (!Dt(e.queryKey, a))
|
|
9710
9710
|
return !1;
|
|
9711
9711
|
}
|
|
9712
9712
|
if (n !== "all") {
|
|
@@ -9716,51 +9716,51 @@ function Fr(t, e) {
|
|
|
9716
9716
|
}
|
|
9717
9717
|
return !(typeof c == "boolean" && e.isStale() !== c || s && s !== e.state.fetchStatus || i && !i(e));
|
|
9718
9718
|
}
|
|
9719
|
-
function
|
|
9719
|
+
function Rr(t, e) {
|
|
9720
9720
|
const { exact: n, status: r, predicate: s, mutationKey: i } = t;
|
|
9721
9721
|
if (i) {
|
|
9722
9722
|
if (!e.options.mutationKey)
|
|
9723
9723
|
return !1;
|
|
9724
9724
|
if (n) {
|
|
9725
|
-
if (
|
|
9725
|
+
if (Bt(e.options.mutationKey) !== Bt(i))
|
|
9726
9726
|
return !1;
|
|
9727
|
-
} else if (!
|
|
9727
|
+
} else if (!Dt(e.options.mutationKey, i))
|
|
9728
9728
|
return !1;
|
|
9729
9729
|
}
|
|
9730
9730
|
return !(r && e.state.status !== r || s && !s(e));
|
|
9731
9731
|
}
|
|
9732
9732
|
function er(t, e) {
|
|
9733
|
-
return ((e == null ? void 0 : e.queryKeyHashFn) ||
|
|
9733
|
+
return ((e == null ? void 0 : e.queryKeyHashFn) || Bt)(t);
|
|
9734
9734
|
}
|
|
9735
|
-
function
|
|
9735
|
+
function Bt(t) {
|
|
9736
9736
|
return JSON.stringify(
|
|
9737
9737
|
t,
|
|
9738
9738
|
(e, n) => Fn(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
|
|
9739
9739
|
);
|
|
9740
9740
|
}
|
|
9741
|
-
function
|
|
9742
|
-
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) =>
|
|
9741
|
+
function Dt(t, e) {
|
|
9742
|
+
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) => Dt(t[n], e[n])) : !1;
|
|
9743
9743
|
}
|
|
9744
9744
|
var OA = Object.prototype.hasOwnProperty;
|
|
9745
9745
|
function xn(t, e, n = 0) {
|
|
9746
9746
|
if (t === e)
|
|
9747
9747
|
return t;
|
|
9748
9748
|
if (n > 500) return e;
|
|
9749
|
-
const r =
|
|
9749
|
+
const r = kr(t) && kr(e);
|
|
9750
9750
|
if (!r && !(Fn(t) && Fn(e))) return e;
|
|
9751
9751
|
const i = (r ? t : Object.keys(t)).length, a = r ? e : Object.keys(e), c = a.length, l = r ? new Array(c) : {};
|
|
9752
9752
|
let A = 0;
|
|
9753
9753
|
for (let f = 0; f < c; f++) {
|
|
9754
|
-
const p = r ? f : a[f], B = t[p],
|
|
9755
|
-
if (B ===
|
|
9754
|
+
const p = r ? f : a[f], B = t[p], v = e[p];
|
|
9755
|
+
if (B === v) {
|
|
9756
9756
|
l[p] = B, (r ? f < i : OA.call(t, p)) && A++;
|
|
9757
9757
|
continue;
|
|
9758
9758
|
}
|
|
9759
|
-
if (B === null ||
|
|
9760
|
-
l[p] =
|
|
9759
|
+
if (B === null || v === null || typeof B != "object" || typeof v != "object") {
|
|
9760
|
+
l[p] = v;
|
|
9761
9761
|
continue;
|
|
9762
9762
|
}
|
|
9763
|
-
const P = xn(B,
|
|
9763
|
+
const P = xn(B, v, n + 1);
|
|
9764
9764
|
l[p] = P, P === B && A++;
|
|
9765
9765
|
}
|
|
9766
9766
|
return i === c && A === i ? t : l;
|
|
@@ -9773,7 +9773,7 @@ function Ad(t, e) {
|
|
|
9773
9773
|
return !1;
|
|
9774
9774
|
return !0;
|
|
9775
9775
|
}
|
|
9776
|
-
function
|
|
9776
|
+
function kr(t) {
|
|
9777
9777
|
return Array.isArray(t) && t.length === Object.keys(t).length;
|
|
9778
9778
|
}
|
|
9779
9779
|
function Fn(t) {
|
|
@@ -9820,11 +9820,11 @@ function YA(t, e, n = 0) {
|
|
|
9820
9820
|
const r = [e, ...t];
|
|
9821
9821
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
9822
9822
|
}
|
|
9823
|
-
var
|
|
9823
|
+
var _t = /* @__PURE__ */ Symbol();
|
|
9824
9824
|
function Ii(t, e) {
|
|
9825
|
-
return process.env.NODE_ENV !== "production" && t.queryFn ===
|
|
9825
|
+
return process.env.NODE_ENV !== "production" && t.queryFn === _t && console.error(
|
|
9826
9826
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
|
|
9827
|
-
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn ===
|
|
9827
|
+
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === _t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
9828
9828
|
}
|
|
9829
9829
|
function hd(t, e) {
|
|
9830
9830
|
return typeof t == "function" ? t(...e) : !!t;
|
|
@@ -9876,7 +9876,7 @@ function xA() {
|
|
|
9876
9876
|
}, n;
|
|
9877
9877
|
}
|
|
9878
9878
|
var FA = DA;
|
|
9879
|
-
function
|
|
9879
|
+
function RA() {
|
|
9880
9880
|
let t = [], e = 0, n = (c) => {
|
|
9881
9881
|
c();
|
|
9882
9882
|
}, r = (c) => {
|
|
@@ -9935,7 +9935,7 @@ function kA() {
|
|
|
9935
9935
|
}
|
|
9936
9936
|
};
|
|
9937
9937
|
}
|
|
9938
|
-
var L =
|
|
9938
|
+
var L = RA(), st, je, it, Ur, kA = (Ur = class extends un {
|
|
9939
9939
|
constructor() {
|
|
9940
9940
|
super();
|
|
9941
9941
|
G(this, st, !0);
|
|
@@ -9969,14 +9969,14 @@ var L = kA(), st, je, it, Ur, RA = (Ur = class extends un {
|
|
|
9969
9969
|
isOnline() {
|
|
9970
9970
|
return h(this, st);
|
|
9971
9971
|
}
|
|
9972
|
-
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur),
|
|
9972
|
+
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur), $t = new kA();
|
|
9973
9973
|
function qA(t) {
|
|
9974
9974
|
return Math.min(1e3 * 2 ** t, 3e4);
|
|
9975
9975
|
}
|
|
9976
9976
|
function Oi(t) {
|
|
9977
|
-
return (t ?? "online") === "online" ?
|
|
9977
|
+
return (t ?? "online") === "online" ? $t.isOnline() : !0;
|
|
9978
9978
|
}
|
|
9979
|
-
var
|
|
9979
|
+
var Rn = class extends Error {
|
|
9980
9980
|
constructor(t) {
|
|
9981
9981
|
super("CancelledError"), this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
|
|
9982
9982
|
}
|
|
@@ -9986,21 +9986,21 @@ function Ti(t) {
|
|
|
9986
9986
|
const s = xA(), i = () => s.status !== "pending", a = (I) => {
|
|
9987
9987
|
var V;
|
|
9988
9988
|
if (!i()) {
|
|
9989
|
-
const
|
|
9990
|
-
B(
|
|
9989
|
+
const k = new Rn(I);
|
|
9990
|
+
B(k), (V = t.onCancel) == null || V.call(t, k);
|
|
9991
9991
|
}
|
|
9992
9992
|
}, c = () => {
|
|
9993
9993
|
e = !0;
|
|
9994
9994
|
}, l = () => {
|
|
9995
9995
|
e = !1;
|
|
9996
|
-
}, A = () => Mi.isFocused() && (t.networkMode === "always" ||
|
|
9996
|
+
}, A = () => Mi.isFocused() && (t.networkMode === "always" || $t.isOnline()) && t.canRun(), f = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
|
|
9997
9997
|
i() || (r == null || r(), s.resolve(I));
|
|
9998
9998
|
}, B = (I) => {
|
|
9999
9999
|
i() || (r == null || r(), s.reject(I));
|
|
10000
|
-
},
|
|
10000
|
+
}, v = () => new Promise((I) => {
|
|
10001
10001
|
var V;
|
|
10002
|
-
r = (
|
|
10003
|
-
(i() || A()) && I(
|
|
10002
|
+
r = (k) => {
|
|
10003
|
+
(i() || A()) && I(k);
|
|
10004
10004
|
}, (V = t.onPause) == null || V.call(t);
|
|
10005
10005
|
}).then(() => {
|
|
10006
10006
|
var I;
|
|
@@ -10012,20 +10012,20 @@ function Ti(t) {
|
|
|
10012
10012
|
const V = n === 0 ? t.initialPromise : void 0;
|
|
10013
10013
|
try {
|
|
10014
10014
|
I = V ?? t.fn();
|
|
10015
|
-
} catch (
|
|
10016
|
-
I = Promise.reject(
|
|
10015
|
+
} catch (k) {
|
|
10016
|
+
I = Promise.reject(k);
|
|
10017
10017
|
}
|
|
10018
|
-
Promise.resolve(I).then(p).catch((
|
|
10018
|
+
Promise.resolve(I).then(p).catch((k) => {
|
|
10019
10019
|
var U;
|
|
10020
10020
|
if (i())
|
|
10021
10021
|
return;
|
|
10022
|
-
const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA,
|
|
10022
|
+
const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA, w = typeof Y == "function" ? Y(n, k) : Y, H = Q === !0 || typeof Q == "number" && n < Q || typeof Q == "function" && Q(n, k);
|
|
10023
10023
|
if (e || !H) {
|
|
10024
|
-
B(
|
|
10024
|
+
B(k);
|
|
10025
10025
|
return;
|
|
10026
10026
|
}
|
|
10027
|
-
n++, (U = t.onFail) == null || U.call(t, n,
|
|
10028
|
-
e ? B(
|
|
10027
|
+
n++, (U = t.onFail) == null || U.call(t, n, k), TA(w).then(() => A() ? void 0 : v()).then(() => {
|
|
10028
|
+
e ? B(k) : P();
|
|
10029
10029
|
});
|
|
10030
10030
|
});
|
|
10031
10031
|
};
|
|
@@ -10037,7 +10037,7 @@ function Ti(t) {
|
|
|
10037
10037
|
cancelRetry: c,
|
|
10038
10038
|
continueRetry: l,
|
|
10039
10039
|
canStart: f,
|
|
10040
|
-
start: () => (f() ? P() :
|
|
10040
|
+
start: () => (f() ? P() : v().then(P), s)
|
|
10041
10041
|
};
|
|
10042
10042
|
}
|
|
10043
10043
|
var Xe, Wr, Gi = (Wr = class {
|
|
@@ -10065,8 +10065,8 @@ var Xe, Wr, Gi = (Wr = class {
|
|
|
10065
10065
|
function NA(t) {
|
|
10066
10066
|
return {
|
|
10067
10067
|
onFetch: (e, n) => {
|
|
10068
|
-
var f, p, B,
|
|
10069
|
-
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 = ((
|
|
10068
|
+
var f, p, B, v, P;
|
|
10069
|
+
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 = ((v = e.state.data) == null ? void 0 : v.pages) || [], a = ((P = e.state.data) == null ? void 0 : P.pageParams) || [];
|
|
10070
10070
|
let c = { pages: [], pageParams: [] }, l = 0;
|
|
10071
10071
|
const A = async () => {
|
|
10072
10072
|
let I = !1;
|
|
@@ -10076,39 +10076,39 @@ function NA(t) {
|
|
|
10076
10076
|
() => e.signal,
|
|
10077
10077
|
() => I = !0
|
|
10078
10078
|
);
|
|
10079
|
-
},
|
|
10079
|
+
}, k = Ii(e.options, e.fetchOptions), Q = async (Y, w, H) => {
|
|
10080
10080
|
if (I)
|
|
10081
10081
|
return Promise.reject(e.signal.reason);
|
|
10082
|
-
if (
|
|
10082
|
+
if (w == null && Y.pages.length)
|
|
10083
10083
|
return Promise.resolve(Y);
|
|
10084
10084
|
const ee = (() => {
|
|
10085
10085
|
const g = {
|
|
10086
10086
|
client: e.client,
|
|
10087
10087
|
queryKey: e.queryKey,
|
|
10088
|
-
pageParam:
|
|
10088
|
+
pageParam: w,
|
|
10089
10089
|
direction: H ? "backward" : "forward",
|
|
10090
10090
|
meta: e.options.meta
|
|
10091
10091
|
};
|
|
10092
10092
|
return V(g), g;
|
|
10093
|
-
})(), q = await
|
|
10093
|
+
})(), q = await k(ee), { maxPages: u } = e.options, m = H ? YA : jA;
|
|
10094
10094
|
return {
|
|
10095
10095
|
pages: m(Y.pages, q, u),
|
|
10096
|
-
pageParams: m(Y.pageParams,
|
|
10096
|
+
pageParams: m(Y.pageParams, w, u)
|
|
10097
10097
|
};
|
|
10098
10098
|
};
|
|
10099
10099
|
if (s && i.length) {
|
|
10100
|
-
const Y = s === "backward",
|
|
10100
|
+
const Y = s === "backward", w = Y ? HA : Nr, H = {
|
|
10101
10101
|
pages: i,
|
|
10102
10102
|
pageParams: a
|
|
10103
|
-
}, U =
|
|
10103
|
+
}, U = w(r, H);
|
|
10104
10104
|
c = await Q(H, U, Y);
|
|
10105
10105
|
} else {
|
|
10106
10106
|
const Y = t ?? i.length;
|
|
10107
10107
|
do {
|
|
10108
|
-
const
|
|
10109
|
-
if (l > 0 &&
|
|
10108
|
+
const w = l === 0 ? a[0] ?? r.initialPageParam : Nr(r, c);
|
|
10109
|
+
if (l > 0 && w == null)
|
|
10110
10110
|
break;
|
|
10111
|
-
c = await Q(c,
|
|
10111
|
+
c = await Q(c, w), l++;
|
|
10112
10112
|
} while (l < Y);
|
|
10113
10113
|
}
|
|
10114
10114
|
return c;
|
|
@@ -10143,7 +10143,7 @@ function HA(t, { pages: e, pageParams: n }) {
|
|
|
10143
10143
|
var r;
|
|
10144
10144
|
return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, n[0], n) : void 0;
|
|
10145
10145
|
}
|
|
10146
|
-
var at, Se, ot, re, Ue, S,
|
|
10146
|
+
var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
10147
10147
|
constructor(e) {
|
|
10148
10148
|
super();
|
|
10149
10149
|
G(this, ne);
|
|
@@ -10153,9 +10153,9 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10153
10153
|
G(this, re);
|
|
10154
10154
|
G(this, Ue);
|
|
10155
10155
|
G(this, S);
|
|
10156
|
-
G(this,
|
|
10156
|
+
G(this, Ct);
|
|
10157
10157
|
G(this, We);
|
|
10158
|
-
D(this, We, !1), D(this,
|
|
10158
|
+
D(this, We, !1), D(this, Ct, 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();
|
|
10159
10159
|
}
|
|
10160
10160
|
get meta() {
|
|
10161
10161
|
return this.options.meta;
|
|
@@ -10168,7 +10168,7 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10168
10168
|
return (e = h(this, S)) == null ? void 0 : e.promise;
|
|
10169
10169
|
}
|
|
10170
10170
|
setOptions(e) {
|
|
10171
|
-
if (this.options = { ...h(this,
|
|
10171
|
+
if (this.options = { ...h(this, Ct), ...e }, e != null && e._type && D(this, at, e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
10172
10172
|
const n = Qr(this.options);
|
|
10173
10173
|
n.data !== void 0 && (this.setState(
|
|
10174
10174
|
Hr(n.data, n.dataUpdatedAt)
|
|
@@ -10210,7 +10210,7 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10210
10210
|
);
|
|
10211
10211
|
}
|
|
10212
10212
|
isDisabled() {
|
|
10213
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
10213
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === _t || !this.isFetched();
|
|
10214
10214
|
}
|
|
10215
10215
|
isFetched() {
|
|
10216
10216
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
@@ -10251,7 +10251,7 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10251
10251
|
this.state.isInvalidated || z(this, ne, me).call(this, { type: "invalidate" });
|
|
10252
10252
|
}
|
|
10253
10253
|
async fetch(e, n) {
|
|
10254
|
-
var A, f, p, B,
|
|
10254
|
+
var A, f, p, B, v, P, I, V, k, Q, Y;
|
|
10255
10255
|
if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
|
|
10256
10256
|
// re-start the fetch; there is a chance that the query is still in a
|
|
10257
10257
|
// pending state when that happens
|
|
@@ -10262,19 +10262,19 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10262
10262
|
return h(this, S).continueRetry(), h(this, S).promise;
|
|
10263
10263
|
}
|
|
10264
10264
|
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
10265
|
-
const
|
|
10266
|
-
|
|
10265
|
+
const w = this.observers.find((H) => H.options.queryFn);
|
|
10266
|
+
w && this.setOptions(w.options);
|
|
10267
10267
|
}
|
|
10268
10268
|
process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
|
|
10269
10269
|
"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']"
|
|
10270
10270
|
));
|
|
10271
|
-
const r = new AbortController(), s = (
|
|
10272
|
-
Object.defineProperty(
|
|
10271
|
+
const r = new AbortController(), s = (w) => {
|
|
10272
|
+
Object.defineProperty(w, "signal", {
|
|
10273
10273
|
enumerable: !0,
|
|
10274
10274
|
get: () => (D(this, We, !0), r.signal)
|
|
10275
10275
|
});
|
|
10276
10276
|
}, i = () => {
|
|
10277
|
-
const
|
|
10277
|
+
const w = Ii(this.options, n), U = (() => {
|
|
10278
10278
|
const ee = {
|
|
10279
10279
|
client: h(this, Ue),
|
|
10280
10280
|
queryKey: this.queryKey,
|
|
@@ -10283,12 +10283,12 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10283
10283
|
return s(ee), ee;
|
|
10284
10284
|
})();
|
|
10285
10285
|
return D(this, We, !1), this.options.persister ? this.options.persister(
|
|
10286
|
-
|
|
10286
|
+
w,
|
|
10287
10287
|
U,
|
|
10288
10288
|
this
|
|
10289
|
-
) :
|
|
10289
|
+
) : w(U);
|
|
10290
10290
|
}, c = (() => {
|
|
10291
|
-
const
|
|
10291
|
+
const w = {
|
|
10292
10292
|
fetchOptions: n,
|
|
10293
10293
|
options: this.options,
|
|
10294
10294
|
queryKey: this.queryKey,
|
|
@@ -10296,21 +10296,21 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10296
10296
|
state: this.state,
|
|
10297
10297
|
fetchFn: i
|
|
10298
10298
|
};
|
|
10299
|
-
return s(
|
|
10299
|
+
return s(w), w;
|
|
10300
10300
|
})(), l = h(this, at) === "infinite" ? NA(
|
|
10301
10301
|
this.options.pages
|
|
10302
10302
|
) : this.options.behavior;
|
|
10303
10303
|
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({
|
|
10304
10304
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
10305
10305
|
fn: c.fetchFn,
|
|
10306
|
-
onCancel: (
|
|
10307
|
-
|
|
10306
|
+
onCancel: (w) => {
|
|
10307
|
+
w instanceof Rn && w.revert && this.setState({
|
|
10308
10308
|
...h(this, ot),
|
|
10309
10309
|
fetchStatus: "idle"
|
|
10310
10310
|
}), r.abort();
|
|
10311
10311
|
},
|
|
10312
|
-
onFail: (
|
|
10313
|
-
z(this, ne, me).call(this, { type: "failed", failureCount:
|
|
10312
|
+
onFail: (w, H) => {
|
|
10313
|
+
z(this, ne, me).call(this, { type: "failed", failureCount: w, error: H });
|
|
10314
10314
|
},
|
|
10315
10315
|
onPause: () => {
|
|
10316
10316
|
z(this, ne, me).call(this, { type: "pause" });
|
|
@@ -10324,45 +10324,45 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10324
10324
|
canRun: () => !0
|
|
10325
10325
|
}));
|
|
10326
10326
|
try {
|
|
10327
|
-
const
|
|
10328
|
-
if (
|
|
10327
|
+
const w = await h(this, S).start();
|
|
10328
|
+
if (w === void 0)
|
|
10329
10329
|
throw process.env.NODE_ENV !== "production" && console.error(
|
|
10330
10330
|
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
|
|
10331
10331
|
), new Error(`${this.queryHash} data is undefined`);
|
|
10332
|
-
return this.setData(
|
|
10332
|
+
return this.setData(w), (v = (B = h(this, re).config).onSuccess) == null || v.call(B, w, this), (I = (P = h(this, re).config).onSettled) == null || I.call(
|
|
10333
10333
|
P,
|
|
10334
|
-
|
|
10334
|
+
w,
|
|
10335
10335
|
this.state.error,
|
|
10336
10336
|
this
|
|
10337
|
-
),
|
|
10338
|
-
} catch (
|
|
10339
|
-
if (
|
|
10340
|
-
if (
|
|
10337
|
+
), w;
|
|
10338
|
+
} catch (w) {
|
|
10339
|
+
if (w instanceof Rn) {
|
|
10340
|
+
if (w.silent)
|
|
10341
10341
|
return h(this, S).promise;
|
|
10342
|
-
if (
|
|
10342
|
+
if (w.revert) {
|
|
10343
10343
|
if (this.state.data === void 0)
|
|
10344
|
-
throw
|
|
10344
|
+
throw w;
|
|
10345
10345
|
return this.state.data;
|
|
10346
10346
|
}
|
|
10347
10347
|
}
|
|
10348
10348
|
throw z(this, ne, me).call(this, {
|
|
10349
10349
|
type: "error",
|
|
10350
|
-
error:
|
|
10351
|
-
}), (
|
|
10350
|
+
error: w
|
|
10351
|
+
}), (k = (V = h(this, re).config).onError) == null || k.call(
|
|
10352
10352
|
V,
|
|
10353
|
-
|
|
10353
|
+
w,
|
|
10354
10354
|
this
|
|
10355
10355
|
), (Y = (Q = h(this, re).config).onSettled) == null || Y.call(
|
|
10356
10356
|
Q,
|
|
10357
10357
|
this.state.data,
|
|
10358
|
-
|
|
10358
|
+
w,
|
|
10359
10359
|
this
|
|
10360
|
-
),
|
|
10360
|
+
), w;
|
|
10361
10361
|
} finally {
|
|
10362
10362
|
this.scheduleGc();
|
|
10363
10363
|
}
|
|
10364
10364
|
}
|
|
10365
|
-
}, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(),
|
|
10365
|
+
}, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(), Ct = new WeakMap(), We = new WeakMap(), ne = new WeakSet(), ji = function() {
|
|
10366
10366
|
return this.state.fetchStatus === "paused" && this.state.status === "pending";
|
|
10367
10367
|
}, me = function(e) {
|
|
10368
10368
|
const n = (r) => {
|
|
@@ -10471,15 +10471,15 @@ function Qr(t) {
|
|
|
10471
10471
|
fetchStatus: "idle"
|
|
10472
10472
|
};
|
|
10473
10473
|
}
|
|
10474
|
-
var
|
|
10474
|
+
var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
10475
10475
|
constructor(e) {
|
|
10476
10476
|
super();
|
|
10477
10477
|
G(this, ue);
|
|
10478
|
-
G(this,
|
|
10478
|
+
G(this, Et);
|
|
10479
10479
|
G(this, ce);
|
|
10480
10480
|
G(this, Z);
|
|
10481
10481
|
G(this, ze);
|
|
10482
|
-
D(this,
|
|
10482
|
+
D(this, Et, 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();
|
|
10483
10483
|
}
|
|
10484
10484
|
setOptions(e) {
|
|
10485
10485
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -10510,11 +10510,11 @@ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10510
10510
|
this.execute(this.state.variables);
|
|
10511
10511
|
}
|
|
10512
10512
|
async execute(e) {
|
|
10513
|
-
var a, c, l, A, f, p, B,
|
|
10513
|
+
var a, c, l, A, f, p, B, v, P, I, V, k, Q, Y, w, H, U, ee;
|
|
10514
10514
|
const n = () => {
|
|
10515
10515
|
z(this, ue, Me).call(this, { type: "continue" });
|
|
10516
10516
|
}, r = {
|
|
10517
|
-
client: h(this,
|
|
10517
|
+
client: h(this, Et),
|
|
10518
10518
|
meta: this.options.meta,
|
|
10519
10519
|
mutationKey: this.options.mutationKey
|
|
10520
10520
|
};
|
|
@@ -10568,7 +10568,7 @@ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10568
10568
|
e,
|
|
10569
10569
|
this.state.context,
|
|
10570
10570
|
r
|
|
10571
|
-
)), await ((
|
|
10571
|
+
)), await ((v = (B = h(this, Z).config).onSettled) == null ? void 0 : v.call(
|
|
10572
10572
|
B,
|
|
10573
10573
|
q,
|
|
10574
10574
|
null,
|
|
@@ -10586,7 +10586,7 @@ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10586
10586
|
)), z(this, ue, Me).call(this, { type: "success", data: q }), q;
|
|
10587
10587
|
} catch (q) {
|
|
10588
10588
|
try {
|
|
10589
|
-
await ((
|
|
10589
|
+
await ((k = (V = h(this, Z).config).onError) == null ? void 0 : k.call(
|
|
10590
10590
|
V,
|
|
10591
10591
|
q,
|
|
10592
10592
|
e,
|
|
@@ -10609,8 +10609,8 @@ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10609
10609
|
Promise.reject(u);
|
|
10610
10610
|
}
|
|
10611
10611
|
try {
|
|
10612
|
-
await ((H = (
|
|
10613
|
-
|
|
10612
|
+
await ((H = (w = h(this, Z).config).onSettled) == null ? void 0 : H.call(
|
|
10613
|
+
w,
|
|
10614
10614
|
void 0,
|
|
10615
10615
|
q,
|
|
10616
10616
|
this.state.variables,
|
|
@@ -10638,7 +10638,7 @@ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10638
10638
|
h(this, Z).runNext(this);
|
|
10639
10639
|
}
|
|
10640
10640
|
}
|
|
10641
|
-
},
|
|
10641
|
+
}, Et = new WeakMap(), ce = new WeakMap(), Z = new WeakMap(), ze = new WeakMap(), ue = new WeakSet(), Me = function(e) {
|
|
10642
10642
|
const n = (r) => {
|
|
10643
10643
|
switch (e.type) {
|
|
10644
10644
|
case "failed":
|
|
@@ -10715,19 +10715,19 @@ function UA() {
|
|
|
10715
10715
|
submittedAt: 0
|
|
10716
10716
|
};
|
|
10717
10717
|
}
|
|
10718
|
-
var fe, ae,
|
|
10718
|
+
var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
10719
10719
|
constructor(n = {}) {
|
|
10720
10720
|
super();
|
|
10721
10721
|
G(this, fe);
|
|
10722
10722
|
G(this, ae);
|
|
10723
|
-
G(this,
|
|
10724
|
-
this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this,
|
|
10723
|
+
G(this, Mt);
|
|
10724
|
+
this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, Mt, 0);
|
|
10725
10725
|
}
|
|
10726
10726
|
build(n, r, s) {
|
|
10727
10727
|
const i = new SA({
|
|
10728
10728
|
client: n,
|
|
10729
10729
|
mutationCache: this,
|
|
10730
|
-
mutationId: ++
|
|
10730
|
+
mutationId: ++Vt(this, Mt)._,
|
|
10731
10731
|
options: n.defaultMutationOptions(r),
|
|
10732
10732
|
state: s
|
|
10733
10733
|
});
|
|
@@ -10788,11 +10788,11 @@ var fe, ae, It, Lr, Yi = (Lr = class extends un {
|
|
|
10788
10788
|
find(n) {
|
|
10789
10789
|
const r = { exact: !0, ...n };
|
|
10790
10790
|
return this.getAll().find(
|
|
10791
|
-
(s) =>
|
|
10791
|
+
(s) => Rr(r, s)
|
|
10792
10792
|
);
|
|
10793
10793
|
}
|
|
10794
10794
|
findAll(n = {}) {
|
|
10795
|
-
return this.getAll().filter((r) =>
|
|
10795
|
+
return this.getAll().filter((r) => Rr(n, r));
|
|
10796
10796
|
}
|
|
10797
10797
|
notify(n) {
|
|
10798
10798
|
L.batch(() => {
|
|
@@ -10809,7 +10809,7 @@ var fe, ae, It, Lr, Yi = (Lr = class extends un {
|
|
|
10809
10809
|
)
|
|
10810
10810
|
);
|
|
10811
10811
|
}
|
|
10812
|
-
}, fe = new WeakMap(), ae = new WeakMap(),
|
|
10812
|
+
}, fe = new WeakMap(), ae = new WeakMap(), Mt = new WeakMap(), Lr);
|
|
10813
10813
|
function Rt(t) {
|
|
10814
10814
|
var e;
|
|
10815
10815
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
@@ -10899,15 +10899,15 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
10899
10899
|
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);
|
|
10900
10900
|
}
|
|
10901
10901
|
mount() {
|
|
10902
|
-
|
|
10902
|
+
Vt(this, xe)._++, h(this, xe) === 1 && (D(this, lt, Mi.subscribe(async (e) => {
|
|
10903
10903
|
e && (await this.resumePausedMutations(), h(this, N).onFocus());
|
|
10904
|
-
})), D(this, At,
|
|
10904
|
+
})), D(this, At, $t.subscribe(async (e) => {
|
|
10905
10905
|
e && (await this.resumePausedMutations(), h(this, N).onOnline());
|
|
10906
10906
|
})));
|
|
10907
10907
|
}
|
|
10908
10908
|
unmount() {
|
|
10909
10909
|
var e, n;
|
|
10910
|
-
|
|
10910
|
+
Vt(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));
|
|
10911
10911
|
}
|
|
10912
10912
|
isFetching(e) {
|
|
10913
10913
|
return h(this, N).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -11029,7 +11029,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11029
11029
|
return e._type = "infinite", this.ensureQueryData(e);
|
|
11030
11030
|
}
|
|
11031
11031
|
resumePausedMutations() {
|
|
11032
|
-
return
|
|
11032
|
+
return $t.isOnline() ? h(this, Ye).resumePausedMutations() : Promise.resolve();
|
|
11033
11033
|
}
|
|
11034
11034
|
getQueryCache() {
|
|
11035
11035
|
return h(this, N);
|
|
@@ -11044,7 +11044,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11044
11044
|
D(this, Ve, e);
|
|
11045
11045
|
}
|
|
11046
11046
|
setQueryDefaults(e, n) {
|
|
11047
|
-
h(this, ct).set(
|
|
11047
|
+
h(this, ct).set(Bt(e), {
|
|
11048
11048
|
queryKey: e,
|
|
11049
11049
|
defaultOptions: n
|
|
11050
11050
|
});
|
|
@@ -11052,11 +11052,11 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11052
11052
|
getQueryDefaults(e) {
|
|
11053
11053
|
const n = [...h(this, ct).values()], r = {};
|
|
11054
11054
|
return n.forEach((s) => {
|
|
11055
|
-
|
|
11055
|
+
Dt(e, s.queryKey) && Object.assign(r, s.defaultOptions);
|
|
11056
11056
|
}), r;
|
|
11057
11057
|
}
|
|
11058
11058
|
setMutationDefaults(e, n) {
|
|
11059
|
-
h(this, ut).set(
|
|
11059
|
+
h(this, ut).set(Bt(e), {
|
|
11060
11060
|
mutationKey: e,
|
|
11061
11061
|
defaultOptions: n
|
|
11062
11062
|
});
|
|
@@ -11064,7 +11064,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11064
11064
|
getMutationDefaults(e) {
|
|
11065
11065
|
const n = [...h(this, ut).values()], r = {};
|
|
11066
11066
|
return n.forEach((s) => {
|
|
11067
|
-
|
|
11067
|
+
Dt(e, s.mutationKey) && Object.assign(r, s.defaultOptions);
|
|
11068
11068
|
}), r;
|
|
11069
11069
|
}
|
|
11070
11070
|
defaultQueryOptions(e) {
|
|
@@ -11079,7 +11079,7 @@ var le, Kr, Vi = (Kr = class extends un {
|
|
|
11079
11079
|
return n.queryHash || (n.queryHash = er(
|
|
11080
11080
|
n.queryKey,
|
|
11081
11081
|
n
|
|
11082
|
-
)), 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 ===
|
|
11082
|
+
)), 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;
|
|
11083
11083
|
}
|
|
11084
11084
|
defaultMutationOptions(e) {
|
|
11085
11085
|
return e != null && e._defaulted ? e : {
|
|
@@ -11102,7 +11102,7 @@ function yd(t, e) {
|
|
|
11102
11102
|
t[n] = e[n];
|
|
11103
11103
|
});
|
|
11104
11104
|
}
|
|
11105
|
-
function
|
|
11105
|
+
function kn(t, e, n = "", r = 0) {
|
|
11106
11106
|
if (e) {
|
|
11107
11107
|
const s = e(t, n, r);
|
|
11108
11108
|
if (s === void 0 && qn(t) || s !== void 0)
|
|
@@ -11110,19 +11110,19 @@ function Rn(t, e, n = "", r = 0) {
|
|
|
11110
11110
|
}
|
|
11111
11111
|
if (Array.isArray(t))
|
|
11112
11112
|
return t.map(
|
|
11113
|
-
(s, i) =>
|
|
11113
|
+
(s, i) => kn(s, e, String(i), r + 1)
|
|
11114
11114
|
);
|
|
11115
11115
|
if (typeof t == "object" && ZA(t)) {
|
|
11116
11116
|
const s = Object.entries(t).map(([i, a]) => [
|
|
11117
11117
|
i,
|
|
11118
|
-
|
|
11118
|
+
kn(a, e, i, r + 1)
|
|
11119
11119
|
]);
|
|
11120
11120
|
return Object.fromEntries(s);
|
|
11121
11121
|
}
|
|
11122
11122
|
return t;
|
|
11123
11123
|
}
|
|
11124
11124
|
function zA(t, e) {
|
|
11125
|
-
return
|
|
11125
|
+
return kn(t, e);
|
|
11126
11126
|
}
|
|
11127
11127
|
function T(t, e = !1) {
|
|
11128
11128
|
return zA(t, (n, r, s) => {
|
|
@@ -11164,7 +11164,7 @@ var KA = class extends Vi {
|
|
|
11164
11164
|
queryCache: t.queryCache || new KA(),
|
|
11165
11165
|
mutationCache: t.mutationCache || new JA()
|
|
11166
11166
|
};
|
|
11167
|
-
super(e), this.isRestoring =
|
|
11167
|
+
super(e), this.isRestoring = Xt(!1);
|
|
11168
11168
|
}
|
|
11169
11169
|
isFetching(t = {}) {
|
|
11170
11170
|
return super.isFetching(T(t));
|
|
@@ -11263,7 +11263,7 @@ var KA = class extends Vi {
|
|
|
11263
11263
|
};
|
|
11264
11264
|
const $A = Ki({
|
|
11265
11265
|
history: Ji(),
|
|
11266
|
-
routes: [...
|
|
11266
|
+
routes: [...rn, ...pt].map((t) => ({
|
|
11267
11267
|
...t,
|
|
11268
11268
|
component: os(
|
|
11269
11269
|
_r({
|
|
@@ -11274,10 +11274,10 @@ const $A = Ki({
|
|
|
11274
11274
|
});
|
|
11275
11275
|
$A.beforeEach((t) => {
|
|
11276
11276
|
var r;
|
|
11277
|
-
const { currentCountry: e } =
|
|
11277
|
+
const { currentCountry: e } = nn(), n = e.value;
|
|
11278
11278
|
if (!n) return !0;
|
|
11279
11279
|
if ((r = t.meta) != null && r.region && !t.meta.region[n]) {
|
|
11280
|
-
const s =
|
|
11280
|
+
const s = rn.find(
|
|
11281
11281
|
(i) => {
|
|
11282
11282
|
var a;
|
|
11283
11283
|
return ((a = i.meta) == null ? void 0 : a.sidebarDisplay) && (!i.meta.region || i.meta.region[n]);
|
|
@@ -11287,17 +11287,17 @@ $A.beforeEach((t) => {
|
|
|
11287
11287
|
}
|
|
11288
11288
|
return !0;
|
|
11289
11289
|
});
|
|
11290
|
-
const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */
|
|
11290
|
+
const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */ en({
|
|
11291
11291
|
__name: "AppSidebar",
|
|
11292
11292
|
setup(t) {
|
|
11293
|
-
const e =
|
|
11293
|
+
const e = nn(), n = _i(), { t: r } = ns(), s = Xt(n.currentRoute.value.name);
|
|
11294
11294
|
$r(n.currentRoute, () => {
|
|
11295
11295
|
let A = n.currentRoute.value.name;
|
|
11296
11296
|
n.currentRoute.value.meta.parent && (A = n.currentRoute.value.meta.parent), s.value = A;
|
|
11297
11297
|
});
|
|
11298
|
-
const i =
|
|
11299
|
-
var B,
|
|
11300
|
-
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((
|
|
11298
|
+
const i = rn.map((A) => {
|
|
11299
|
+
var B, v;
|
|
11300
|
+
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((v = A.meta.region) != null && v[e.currentCountry.value]) || A.meta.section)
|
|
11301
11301
|
return;
|
|
11302
11302
|
const f = A.meta.sidebarDisplay, p = {
|
|
11303
11303
|
label: f.startsWith("i18n:") ? r(f.replaceAll("i18n:", "")) : f,
|
|
@@ -11307,12 +11307,12 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11307
11307
|
return n.push({ name: A.name });
|
|
11308
11308
|
}
|
|
11309
11309
|
};
|
|
11310
|
-
return A.meta.sidebarNew && (p.badge = () =>
|
|
11310
|
+
return A.meta.sidebarNew && (p.badge = () => wn(ea.FmPill, { label: "New" })), p;
|
|
11311
11311
|
}).filter((A) => !!A);
|
|
11312
11312
|
function a(A, f) {
|
|
11313
11313
|
return A.map((p) => {
|
|
11314
|
-
var B,
|
|
11315
|
-
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (
|
|
11314
|
+
var B, v, P, I;
|
|
11315
|
+
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (v = p.meta) != null && v.region && !((P = p.meta.region) != null && P[e.currentCountry.value]) ? [] : (I = p.meta) != null && I.sidebarDisplay ? p.meta.section !== f ? [] : [
|
|
11316
11316
|
{
|
|
11317
11317
|
label: p.meta.sidebarDisplay.startsWith("i18n:") ? r(p.meta.sidebarDisplay.replaceAll("i18n:", "")) : p.meta.sidebarDisplay,
|
|
11318
11318
|
value: p.name,
|
|
@@ -11337,16 +11337,7 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11337
11337
|
};
|
|
11338
11338
|
}).filter((A) => !!A), l = Nn(() => {
|
|
11339
11339
|
const A = [...i];
|
|
11340
|
-
return A.push({
|
|
11341
|
-
label: "",
|
|
11342
|
-
value: "divider",
|
|
11343
|
-
disabled: !0
|
|
11344
|
-
}), A.push({
|
|
11345
|
-
label: r("financing.title"),
|
|
11346
|
-
icon: "credit_score",
|
|
11347
|
-
value: "divider",
|
|
11348
|
-
disabled: !0
|
|
11349
|
-
}), A.push(...a(bt, "financing")), ed(e.sessionUser.value) && (A.push({
|
|
11340
|
+
return ed(e.sessionUser.value) && (A.push({
|
|
11350
11341
|
label: "",
|
|
11351
11342
|
value: "divider",
|
|
11352
11343
|
disabled: !0
|
|
@@ -11377,7 +11368,7 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11377
11368
|
});
|
|
11378
11369
|
return (A, f) => {
|
|
11379
11370
|
const p = es("FmCollapsibleTabs");
|
|
11380
|
-
return
|
|
11371
|
+
return tn(), Hn(p, {
|
|
11381
11372
|
modelValue: s.value,
|
|
11382
11373
|
"onUpdate:modelValue": f[0] || (f[0] = (B) => s.value = B),
|
|
11383
11374
|
items: l.value,
|
|
@@ -11386,11 +11377,11 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
|
|
|
11386
11377
|
};
|
|
11387
11378
|
}
|
|
11388
11379
|
});
|
|
11389
|
-
var nd = { firebase: { apiKey: "
|
|
11390
|
-
const bd = /* @__PURE__ */
|
|
11380
|
+
var nd = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" } };
|
|
11381
|
+
const bd = /* @__PURE__ */ en({
|
|
11391
11382
|
__name: "App",
|
|
11392
11383
|
setup(t) {
|
|
11393
|
-
const { state: e } = Qo(), n =
|
|
11384
|
+
const { state: e } = Qo(), n = nn(), r = ts(), s = new _A();
|
|
11394
11385
|
Wi(xi, s);
|
|
11395
11386
|
const i = Ss(nd.firebase);
|
|
11396
11387
|
async function a() {
|
|
@@ -11407,12 +11398,12 @@ const bd = /* @__PURE__ */ tn({
|
|
|
11407
11398
|
s.unmount();
|
|
11408
11399
|
}), (c, l) => {
|
|
11409
11400
|
const A = es("RouterView");
|
|
11410
|
-
return
|
|
11401
|
+
return tn(), Hn(A, {
|
|
11411
11402
|
key: ge(r).path
|
|
11412
11403
|
});
|
|
11413
11404
|
};
|
|
11414
11405
|
}
|
|
11415
|
-
}),
|
|
11406
|
+
}), wd = () => {
|
|
11416
11407
|
const t = [
|
|
11417
11408
|
{ "en-US": na, "th-TH": sa, "zh-CN": aa },
|
|
11418
11409
|
qi
|
|
@@ -11429,7 +11420,7 @@ const bd = /* @__PURE__ */ tn({
|
|
|
11429
11420
|
},
|
|
11430
11421
|
{}
|
|
11431
11422
|
);
|
|
11432
|
-
},
|
|
11423
|
+
}, vd = [...pt, ...rn].map((t) => ({
|
|
11433
11424
|
...t,
|
|
11434
11425
|
component: os(
|
|
11435
11426
|
_r({ loader: t.component })
|
|
@@ -11437,7 +11428,7 @@ const bd = /* @__PURE__ */ tn({
|
|
|
11437
11428
|
}));
|
|
11438
11429
|
export {
|
|
11439
11430
|
xa as A,
|
|
11440
|
-
|
|
11431
|
+
vd as B,
|
|
11441
11432
|
un as S,
|
|
11442
11433
|
yr as _,
|
|
11443
11434
|
Vn as a,
|
|
@@ -11465,5 +11456,5 @@ export {
|
|
|
11465
11456
|
ua as w,
|
|
11466
11457
|
ld as x,
|
|
11467
11458
|
bd as y,
|
|
11468
|
-
|
|
11459
|
+
wd as z
|
|
11469
11460
|
};
|