@feedmepos/mf-payment 1.7.5 → 1.7.6
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-JYZcfqUo.js → Actions.vue_vue_type_script_setup_true_lang-DQR1_RpF.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CQxYDlES.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CHkrHNPF.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-K87PW1uK.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BIvrqTNw.js} +2 -2
- package/dist/{Chargeback-CKeP0C3C.js → Chargeback-CAj9Jgcy.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-4cyCT01g.js → DocumentViewer.vue_vue_type_script_setup_true_lang-jTkg_too.js} +1 -1
- package/dist/{OnboardForm-BP_9VO_L.js → OnboardForm-DRoUPx01.js} +5 -5
- package/dist/{OnboardForm-zqjcD6iD.js → OnboardForm-v-95d-S1.js} +5 -5
- package/dist/{OnboardSubmission-Du8NpfFx.js → OnboardSubmission-C09-Ac_u.js} +5 -5
- package/dist/{OnboardSubmission-BlRpjm51.js → OnboardSubmission-ciBwl8NO.js} +2 -2
- package/dist/{PayoutAccount-waepqJrT.js → PayoutAccount-5ckNIseh.js} +7 -7
- package/dist/{PayoutAccount-DB93s4Bz.js → PayoutAccount-BIXgrxF8.js} +5 -5
- package/dist/PayoutAccountSetting-Bhg_rRvI.js +1943 -0
- package/dist/{Restaurant-DMbTKWlj.js → Restaurant-CAkspzgz.js} +4 -4
- package/dist/{RestaurantSetting-CAZlf2Vs.js → RestaurantSetting-D-joRYbL.js} +3 -3
- package/dist/{Settlement-Cr6LJOel.js → Settlement-DCBsf6-S.js} +3 -3
- package/dist/{Settlement-BT-qtZX9.js → Settlement-tz1oE3Qt.js} +4 -4
- package/dist/{SettlementTransactions-BDjZmZjE.js → SettlementTransactions-B2IUyVs5.js} +4 -4
- package/dist/{SettlementTransactions-DoMTS35M.js → SettlementTransactions-YSNYN3HM.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-CZZiQMYe.js → Status.vue_vue_type_script_setup_true_lang-CpoEkJUQ.js} +1 -1
- package/dist/{Terminal-BcWccOla.js → Terminal-V45vMcvG.js} +5 -5
- package/dist/{TerminalSetting-DE0v-4-p.js → TerminalSetting-DtSt5q66.js} +4 -4
- package/dist/{Transaction-Cc4utrzZ.js → Transaction-8K6WJBsa.js} +10 -10
- package/dist/{Transaction-CVVGm-I8.js → Transaction-BJ6-2G9v.js} +10 -10
- package/dist/{TransactionOld-BgafsXwW.js → TransactionOld-DNVGQ2ck.js} +7 -7
- package/dist/{app-Cs1GHhDd.js → app-DiZz8sPe.js} +212 -197
- package/dist/app.js +1 -1
- package/dist/{assets-eHLQjw1e.js → assets-DiH3EaF3.js} +1 -1
- package/dist/{grafana-SUvDElAd.js → grafana-Bou0e3nV.js} +1 -1
- package/dist/{index-DXAJfLCs.js → index-CTKrpHLR.js} +2 -2
- package/dist/{index-B247KQYg.js → index-CZ_b9Pch.js} +1 -1
- package/dist/{index-gCNUDOJw.js → index-CfsmsUeJ.js} +1 -1
- package/dist/{index-ClGv4aTb.js → index-DO4-_8Af.js} +1 -1
- package/dist/{index-DvPHBuEr.js → index-Da6Yh4Gu.js} +1 -1
- package/dist/{index-BPGQQPaG.js → index-DeT3z3Jr.js} +1 -1
- package/dist/{index-lovX0Huh.js → index-DjOUxa1H.js} +1 -1
- package/dist/{index-MMGPrDuq.js → index-LkcyucJ_.js} +1 -1
- package/dist/{index-Xn55a2pJ.js → index-yLXt4lrZ.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-1b18Xw6F.js → index.vue_vue_type_script_setup_true_lang-BQSr_US-.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-Doi16CAx.js → payout-account-DDudWzkA.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +9 -0
- package/package.json +1 -1
- package/dist/PayoutAccountSetting-47b8bmqq.js +0 -1847
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var rr = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var h = (t, e, n) => (
|
|
4
|
+
var dn = (t, e, n) => e.has(t) || rr("Cannot " + n);
|
|
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
6
|
var Vt = (t, e, n, r) => ({
|
|
7
7
|
set _(s) {
|
|
8
8
|
D(t, e, s, n);
|
|
@@ -12,9 +12,9 @@ var Vt = (t, e, n, r) => ({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
import { routes as Ri, i18nMessages as qi } from "@feedmepos/mf-financing";
|
|
15
|
-
import { isRef as
|
|
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 = {
|
|
@@ -1238,7 +1238,7 @@ const oa = () => {
|
|
|
1238
1238
|
};
|
|
1239
1239
|
function ca(t, e, n) {
|
|
1240
1240
|
let r;
|
|
1241
|
-
|
|
1241
|
+
qn(n) ? r = {
|
|
1242
1242
|
evaluating: n
|
|
1243
1243
|
} : r = {};
|
|
1244
1244
|
const {
|
|
@@ -1269,13 +1269,13 @@ function ca(t, e, n) {
|
|
|
1269
1269
|
} finally {
|
|
1270
1270
|
i && B === f && (i.value = !1), v = !0;
|
|
1271
1271
|
}
|
|
1272
|
-
}), s ?
|
|
1272
|
+
}), s ? Nn(() => (l.value = !0, A.value)) : A;
|
|
1273
1273
|
}
|
|
1274
1274
|
var ua = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1275
1275
|
function la(t) {
|
|
1276
1276
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
1278
|
+
function ld(t) {
|
|
1279
1279
|
if (t.__esModule) return t;
|
|
1280
1280
|
var e = t.default;
|
|
1281
1281
|
if (typeof e == "function") {
|
|
@@ -1575,13 +1575,13 @@ var rs = { exports: {} };
|
|
|
1575
1575
|
}
|
|
1576
1576
|
function R(u, m) {
|
|
1577
1577
|
var g = u.keyPath, y = u.child, b = u.query, E = [];
|
|
1578
|
-
if (function tr(Ce, ft, gt, Fi,
|
|
1578
|
+
if (function tr(Ce, ft, gt, Fi, ln) {
|
|
1579
1579
|
if (gt === ft.length || Ce == null)
|
|
1580
|
-
return void
|
|
1580
|
+
return void ln.push([Ce, ft[gt - 1], Fi]);
|
|
1581
1581
|
var nr = f(ft, gt);
|
|
1582
1582
|
if (c(Ce) && isNaN(Number(nr)))
|
|
1583
|
-
for (var
|
|
1584
|
-
else tr(f(Ce, nr), ft, gt + 1, Ce,
|
|
1583
|
+
for (var An = 0, ki = Ce.length; An < ki; An++) tr(f(Ce, An), ft, gt, Ce, ln);
|
|
1584
|
+
else tr(f(Ce, nr), ft, gt + 1, Ce, ln);
|
|
1585
1585
|
}(m, g, 0, m, E), E.length === 1) {
|
|
1586
1586
|
var P = E[0];
|
|
1587
1587
|
return v(y, P[0], P[1], P[2]);
|
|
@@ -1686,10 +1686,10 @@ function ma(t, e, n) {
|
|
|
1686
1686
|
function fa(t, e) {
|
|
1687
1687
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1690
|
-
return
|
|
1689
|
+
function vn(t) {
|
|
1690
|
+
return vn = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
|
|
1691
1691
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
1692
|
-
},
|
|
1692
|
+
}, vn(t);
|
|
1693
1693
|
}
|
|
1694
1694
|
function St(t, e) {
|
|
1695
1695
|
return St = Object.setPrototypeOf || function(r, s) {
|
|
@@ -1717,9 +1717,9 @@ function Rt(t, e, n) {
|
|
|
1717
1717
|
function pa(t) {
|
|
1718
1718
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
1719
1719
|
}
|
|
1720
|
-
function
|
|
1720
|
+
function Bn(t) {
|
|
1721
1721
|
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
1722
|
-
return
|
|
1722
|
+
return Bn = function(r) {
|
|
1723
1723
|
if (r === null || !pa(r)) return r;
|
|
1724
1724
|
if (typeof r != "function")
|
|
1725
1725
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -1728,7 +1728,7 @@ function wn(t) {
|
|
|
1728
1728
|
e.set(r, s);
|
|
1729
1729
|
}
|
|
1730
1730
|
function s() {
|
|
1731
|
-
return Rt(r, arguments,
|
|
1731
|
+
return Rt(r, arguments, vn(this).constructor);
|
|
1732
1732
|
}
|
|
1733
1733
|
return s.prototype = Object.create(r.prototype, {
|
|
1734
1734
|
constructor: {
|
|
@@ -1738,7 +1738,7 @@ function wn(t) {
|
|
|
1738
1738
|
configurable: !0
|
|
1739
1739
|
}
|
|
1740
1740
|
}), St(s, r);
|
|
1741
|
-
},
|
|
1741
|
+
}, Bn(t);
|
|
1742
1742
|
}
|
|
1743
1743
|
function ir(t) {
|
|
1744
1744
|
if (t === void 0)
|
|
@@ -1782,8 +1782,8 @@ var ss = function(e) {
|
|
|
1782
1782
|
}, n._setMetadata = function(s) {
|
|
1783
1783
|
this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
|
|
1784
1784
|
}, e;
|
|
1785
|
-
}(
|
|
1786
|
-
function
|
|
1785
|
+
}(Bn(Error));
|
|
1786
|
+
function Dn(t) {
|
|
1787
1787
|
return Array.isArray(t) ? t : [t];
|
|
1788
1788
|
}
|
|
1789
1789
|
function ba(t) {
|
|
@@ -1811,7 +1811,7 @@ function Ia(t) {
|
|
|
1811
1811
|
}
|
|
1812
1812
|
var Pa = /* @__PURE__ */ function() {
|
|
1813
1813
|
function t(n) {
|
|
1814
|
-
this.actions = n.actions || n.action, this.subject = n.subject, this.fields = !n.fields || n.fields.length === 0 ? void 0 :
|
|
1814
|
+
this.actions = n.actions || n.action, this.subject = n.subject, this.fields = !n.fields || n.fields.length === 0 ? void 0 : Dn(n.fields), Object.defineProperty(this, "_fieldsPattern", {
|
|
1815
1815
|
writable: !0
|
|
1816
1816
|
}), this.inverted = !!n.inverted, this.conditions = n.conditions, Object.defineProperty(this, "_matches", {
|
|
1817
1817
|
writable: !0,
|
|
@@ -1866,7 +1866,7 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
1866
1866
|
return process.env.NODE_ENV !== "production" && i.isAllInverted && r.length && console.warn("[casl]: Ability contains only inverted rules. That means user will not be able to do any actions. This will be changed to Error throw in the next major version"), this[te].indexedRules = i.rules, this[te].hasPerFieldRules = i.hasPerFieldRules, this.emit("updated", s), this;
|
|
1867
1867
|
}, e.buildIndexFor = function(r) {
|
|
1868
1868
|
for (var s = /* @__PURE__ */ Object.create(null), i = this[te].RuleType, a = !0, c = !1, l = 0; l < r.length; l++) {
|
|
1869
|
-
var A = new i(r[l]), f = this.expandActions(A.actions), p =
|
|
1869
|
+
var A = new i(r[l]), f = this.expandActions(A.actions), p = Dn(A.subject), B = r.length - l - 1;
|
|
1870
1870
|
a = !!(a && A.inverted), !c && A.fields && (c = !0);
|
|
1871
1871
|
for (var v = 0; v < p.length; v++) {
|
|
1872
1872
|
var O = p[v];
|
|
@@ -1883,7 +1883,7 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
1883
1883
|
rules: s
|
|
1884
1884
|
};
|
|
1885
1885
|
}, e.expandActions = function(r) {
|
|
1886
|
-
for (var s = this[te].aliases, i =
|
|
1886
|
+
for (var s = this[te].aliases, i = Dn(r), a = 0; a < i.length; ) {
|
|
1887
1887
|
var c = i[a++];
|
|
1888
1888
|
s.hasOwnProperty(c) && (i = i.concat(s[c]));
|
|
1889
1889
|
}
|
|
@@ -2031,9 +2031,9 @@ async function ka(t, e) {
|
|
|
2031
2031
|
canAccess: !0
|
|
2032
2032
|
};
|
|
2033
2033
|
}
|
|
2034
|
-
var
|
|
2034
|
+
var Cn = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Cn || {});
|
|
2035
2035
|
function Ra() {
|
|
2036
|
-
const t = ts(), { sessionUser: e } =
|
|
2036
|
+
const t = ts(), { sessionUser: e } = nn();
|
|
2037
2037
|
return ca(
|
|
2038
2038
|
async () => {
|
|
2039
2039
|
t.matched;
|
|
@@ -2102,14 +2102,14 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2102
2102
|
__name: "PermissionWrapper",
|
|
2103
2103
|
setup(t) {
|
|
2104
2104
|
const e = Ra();
|
|
2105
|
-
return (n, r) => ge(e) === ge(
|
|
2105
|
+
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);
|
|
2106
2106
|
}
|
|
2107
2107
|
});
|
|
2108
2108
|
function os(t) {
|
|
2109
2109
|
return {
|
|
2110
2110
|
inheritAttrs: !1,
|
|
2111
2111
|
setup(e, { attrs: n }) {
|
|
2112
|
-
return () =>
|
|
2112
|
+
return () => wn(to, {}, { default: () => wn(t, n) });
|
|
2113
2113
|
}
|
|
2114
2114
|
};
|
|
2115
2115
|
}
|
|
@@ -2591,7 +2591,7 @@ const J = [
|
|
|
2591
2591
|
subject: C.inventory,
|
|
2592
2592
|
actions: [o.read]
|
|
2593
2593
|
}
|
|
2594
|
-
],
|
|
2594
|
+
], Qn = [
|
|
2595
2595
|
...J,
|
|
2596
2596
|
{
|
|
2597
2597
|
label: "Stock",
|
|
@@ -2641,11 +2641,11 @@ const J = [
|
|
|
2641
2641
|
}
|
|
2642
2642
|
];
|
|
2643
2643
|
[
|
|
2644
|
-
...
|
|
2644
|
+
...Qn,
|
|
2645
2645
|
...Es,
|
|
2646
2646
|
...Ms
|
|
2647
2647
|
];
|
|
2648
|
-
const
|
|
2648
|
+
const Xn = [
|
|
2649
2649
|
...J,
|
|
2650
2650
|
{
|
|
2651
2651
|
label: "Closing",
|
|
@@ -2708,7 +2708,7 @@ const Qn = [
|
|
|
2708
2708
|
}
|
|
2709
2709
|
];
|
|
2710
2710
|
[
|
|
2711
|
-
...
|
|
2711
|
+
...Xn,
|
|
2712
2712
|
...Is,
|
|
2713
2713
|
...Ps
|
|
2714
2714
|
];
|
|
@@ -2918,14 +2918,14 @@ const jo = [
|
|
|
2918
2918
|
];
|
|
2919
2919
|
[
|
|
2920
2920
|
...J,
|
|
2921
|
-
...
|
|
2922
|
-
...
|
|
2921
|
+
...Qn,
|
|
2922
|
+
...Xn
|
|
2923
2923
|
];
|
|
2924
2924
|
const ko = {
|
|
2925
2925
|
[`set_${d.inventory_stockBalance}`]: {
|
|
2926
2926
|
key: "sys:inventory:stock_balance",
|
|
2927
2927
|
name: "Stock Balance",
|
|
2928
|
-
permissions:
|
|
2928
|
+
permissions: Qn
|
|
2929
2929
|
},
|
|
2930
2930
|
[`set_${d.inventory_stockAdjustment}`]: {
|
|
2931
2931
|
key: "sys:inventory:stock_adjustment",
|
|
@@ -2945,7 +2945,7 @@ const ko = {
|
|
|
2945
2945
|
[`set_${d.inventory_closingHistory}`]: {
|
|
2946
2946
|
key: "sys:inventory:closing_history",
|
|
2947
2947
|
name: "Closing History",
|
|
2948
|
-
permissions:
|
|
2948
|
+
permissions: Xn
|
|
2949
2949
|
},
|
|
2950
2950
|
[`set_${d.inventory_closingTemplate}`]: {
|
|
2951
2951
|
key: "sys:inventory:closing_template",
|
|
@@ -3154,7 +3154,7 @@ const Ho = () => ({
|
|
|
3154
3154
|
sidebarDisplay: "Restaurants",
|
|
3155
3155
|
section: "payment-gateway"
|
|
3156
3156
|
},
|
|
3157
|
-
component: () => import("./Restaurant-
|
|
3157
|
+
component: () => import("./Restaurant-CAkspzgz.js")
|
|
3158
3158
|
},
|
|
3159
3159
|
{
|
|
3160
3160
|
path: "/admin/restaurants/:restaurantId",
|
|
@@ -3163,7 +3163,7 @@ const Ho = () => ({
|
|
|
3163
3163
|
meta: {
|
|
3164
3164
|
parent: "mf-payment-admin.restaurant"
|
|
3165
3165
|
},
|
|
3166
|
-
component: () => import("./RestaurantSetting-
|
|
3166
|
+
component: () => import("./RestaurantSetting-D-joRYbL.js")
|
|
3167
3167
|
},
|
|
3168
3168
|
{
|
|
3169
3169
|
path: "/admin/payout-accounts",
|
|
@@ -3172,7 +3172,7 @@ const Ho = () => ({
|
|
|
3172
3172
|
sidebarDisplay: "Payout Accounts",
|
|
3173
3173
|
section: "payment-gateway"
|
|
3174
3174
|
},
|
|
3175
|
-
component: () => import("./PayoutAccount-
|
|
3175
|
+
component: () => import("./PayoutAccount-5ckNIseh.js")
|
|
3176
3176
|
},
|
|
3177
3177
|
{
|
|
3178
3178
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -3181,7 +3181,7 @@ const Ho = () => ({
|
|
|
3181
3181
|
meta: {
|
|
3182
3182
|
parent: "mf-payment-admin.payout-account"
|
|
3183
3183
|
},
|
|
3184
|
-
component: () => import("./PayoutAccountSetting-
|
|
3184
|
+
component: () => import("./PayoutAccountSetting-Bhg_rRvI.js")
|
|
3185
3185
|
},
|
|
3186
3186
|
{
|
|
3187
3187
|
path: "/admin/onboarding",
|
|
@@ -3190,7 +3190,7 @@ const Ho = () => ({
|
|
|
3190
3190
|
sidebarDisplay: "Payment Onboarding",
|
|
3191
3191
|
section: "payment-gateway"
|
|
3192
3192
|
},
|
|
3193
|
-
component: () => import("./OnboardSubmission-
|
|
3193
|
+
component: () => import("./OnboardSubmission-C09-Ac_u.js")
|
|
3194
3194
|
},
|
|
3195
3195
|
{
|
|
3196
3196
|
path: "/admin/onboarding/:submissionId",
|
|
@@ -3199,7 +3199,7 @@ const Ho = () => ({
|
|
|
3199
3199
|
meta: {
|
|
3200
3200
|
parent: "mf-payment-admin.onboard-submission"
|
|
3201
3201
|
},
|
|
3202
|
-
component: () => import("./OnboardForm-
|
|
3202
|
+
component: () => import("./OnboardForm-v-95d-S1.js")
|
|
3203
3203
|
},
|
|
3204
3204
|
{
|
|
3205
3205
|
path: "/admin/terminal/pos",
|
|
@@ -3208,7 +3208,7 @@ const Ho = () => ({
|
|
|
3208
3208
|
sidebarDisplay: "POS",
|
|
3209
3209
|
section: "device"
|
|
3210
3210
|
},
|
|
3211
|
-
component: () => import("./Terminal-
|
|
3211
|
+
component: () => import("./Terminal-V45vMcvG.js"),
|
|
3212
3212
|
props: {
|
|
3213
3213
|
type: "POS"
|
|
3214
3214
|
}
|
|
@@ -3220,7 +3220,7 @@ const Ho = () => ({
|
|
|
3220
3220
|
sidebarDisplay: "Kiosks",
|
|
3221
3221
|
section: "device"
|
|
3222
3222
|
},
|
|
3223
|
-
component: () => import("./Terminal-
|
|
3223
|
+
component: () => import("./Terminal-V45vMcvG.js"),
|
|
3224
3224
|
props: {
|
|
3225
3225
|
type: "KIOSK"
|
|
3226
3226
|
}
|
|
@@ -3232,7 +3232,7 @@ const Ho = () => ({
|
|
|
3232
3232
|
sidebarDisplay: "Terminals",
|
|
3233
3233
|
section: "device"
|
|
3234
3234
|
},
|
|
3235
|
-
component: () => import("./Terminal-
|
|
3235
|
+
component: () => import("./Terminal-V45vMcvG.js"),
|
|
3236
3236
|
props: {
|
|
3237
3237
|
type: "TERMINAL"
|
|
3238
3238
|
}
|
|
@@ -3244,7 +3244,7 @@ const Ho = () => ({
|
|
|
3244
3244
|
meta: {
|
|
3245
3245
|
parent: "mf-payment-admin.pos"
|
|
3246
3246
|
},
|
|
3247
|
-
component: () => import("./TerminalSetting-
|
|
3247
|
+
component: () => import("./TerminalSetting-DtSt5q66.js")
|
|
3248
3248
|
},
|
|
3249
3249
|
{
|
|
3250
3250
|
path: "/admin/terminal/kiosk/:terminalId",
|
|
@@ -3253,7 +3253,7 @@ const Ho = () => ({
|
|
|
3253
3253
|
meta: {
|
|
3254
3254
|
parent: "mf-payment-admin.kiosk"
|
|
3255
3255
|
},
|
|
3256
|
-
component: () => import("./TerminalSetting-
|
|
3256
|
+
component: () => import("./TerminalSetting-DtSt5q66.js")
|
|
3257
3257
|
},
|
|
3258
3258
|
{
|
|
3259
3259
|
path: "/admin/terminal/terminal/:terminalId",
|
|
@@ -3262,7 +3262,7 @@ const Ho = () => ({
|
|
|
3262
3262
|
meta: {
|
|
3263
3263
|
parent: "mf-payment-admin.terminal"
|
|
3264
3264
|
},
|
|
3265
|
-
component: () => import("./TerminalSetting-
|
|
3265
|
+
component: () => import("./TerminalSetting-DtSt5q66.js")
|
|
3266
3266
|
},
|
|
3267
3267
|
{
|
|
3268
3268
|
path: "/admin/transaction",
|
|
@@ -3270,7 +3270,7 @@ const Ho = () => ({
|
|
|
3270
3270
|
meta: {
|
|
3271
3271
|
sidebarDisplay: "Transactions"
|
|
3272
3272
|
},
|
|
3273
|
-
component: () => import("./Transaction-
|
|
3273
|
+
component: () => import("./Transaction-BJ6-2G9v.js")
|
|
3274
3274
|
},
|
|
3275
3275
|
{
|
|
3276
3276
|
path: "/admin/chargeback",
|
|
@@ -3278,7 +3278,7 @@ const Ho = () => ({
|
|
|
3278
3278
|
meta: {
|
|
3279
3279
|
sidebarDisplay: "Chargebacks"
|
|
3280
3280
|
},
|
|
3281
|
-
component: () => import("./Chargeback-
|
|
3281
|
+
component: () => import("./Chargeback-CAj9Jgcy.js")
|
|
3282
3282
|
},
|
|
3283
3283
|
{
|
|
3284
3284
|
path: "/admin/settlement",
|
|
@@ -3286,7 +3286,7 @@ const Ho = () => ({
|
|
|
3286
3286
|
meta: {
|
|
3287
3287
|
sidebarDisplay: "Settlements"
|
|
3288
3288
|
},
|
|
3289
|
-
component: () => import("./Settlement-
|
|
3289
|
+
component: () => import("./Settlement-DCBsf6-S.js")
|
|
3290
3290
|
},
|
|
3291
3291
|
{
|
|
3292
3292
|
path: "/admin/settlement/:settlementId",
|
|
@@ -3295,7 +3295,7 @@ const Ho = () => ({
|
|
|
3295
3295
|
meta: {
|
|
3296
3296
|
parent: "mf-payment-admin.settlement"
|
|
3297
3297
|
},
|
|
3298
|
-
component: () => import("./SettlementTransactions-
|
|
3298
|
+
component: () => import("./SettlementTransactions-YSNYN3HM.js")
|
|
3299
3299
|
}
|
|
3300
3300
|
].map((t) => ({
|
|
3301
3301
|
...t,
|
|
@@ -3303,7 +3303,7 @@ const Ho = () => ({
|
|
|
3303
3303
|
...t.meta,
|
|
3304
3304
|
...Ho()
|
|
3305
3305
|
}
|
|
3306
|
-
})),
|
|
3306
|
+
})), rn = [
|
|
3307
3307
|
{
|
|
3308
3308
|
path: "",
|
|
3309
3309
|
redirect: { name: "mf-payment-payout-account" }
|
|
@@ -3311,7 +3311,7 @@ const Ho = () => ({
|
|
|
3311
3311
|
{
|
|
3312
3312
|
path: "/payout-account",
|
|
3313
3313
|
name: "mf-payment-payout-account",
|
|
3314
|
-
component: () => import("./PayoutAccount-
|
|
3314
|
+
component: () => import("./PayoutAccount-BIXgrxF8.js"),
|
|
3315
3315
|
meta: {
|
|
3316
3316
|
sidebarDisplay: "i18n:payment.routes.payout_account",
|
|
3317
3317
|
region: { MY: !0 },
|
|
@@ -3328,7 +3328,7 @@ const Ho = () => ({
|
|
|
3328
3328
|
{
|
|
3329
3329
|
path: "/onboard-submission",
|
|
3330
3330
|
name: "mf-payment-onboard-submission",
|
|
3331
|
-
component: () => import("./OnboardSubmission-
|
|
3331
|
+
component: () => import("./OnboardSubmission-ciBwl8NO.js"),
|
|
3332
3332
|
meta: {
|
|
3333
3333
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
3334
3334
|
region: { MY: !0, TH: !0, AU: !0 },
|
|
@@ -3346,7 +3346,7 @@ const Ho = () => ({
|
|
|
3346
3346
|
path: "/onboard-submission/restaurant/:restaurantId/:type/:submission?",
|
|
3347
3347
|
name: "mf-payment-onboard-submission-form",
|
|
3348
3348
|
props: !0,
|
|
3349
|
-
component: () => import("./OnboardForm-
|
|
3349
|
+
component: () => import("./OnboardForm-DRoUPx01.js"),
|
|
3350
3350
|
meta: {
|
|
3351
3351
|
parent: "mf-payment-onboard-submission",
|
|
3352
3352
|
validationManifest: {
|
|
@@ -3362,7 +3362,7 @@ const Ho = () => ({
|
|
|
3362
3362
|
{
|
|
3363
3363
|
path: "/transaction-old",
|
|
3364
3364
|
name: "mf-payment-old-transaction",
|
|
3365
|
-
component: () => import("./TransactionOld-
|
|
3365
|
+
component: () => import("./TransactionOld-DNVGQ2ck.js"),
|
|
3366
3366
|
meta: {
|
|
3367
3367
|
sidebarDisplay: "i18n:payment.routes.transaction",
|
|
3368
3368
|
validationManifest: {
|
|
@@ -3378,7 +3378,7 @@ const Ho = () => ({
|
|
|
3378
3378
|
{
|
|
3379
3379
|
path: "/transaction",
|
|
3380
3380
|
name: "mf-payment-transaction",
|
|
3381
|
-
component: () => import("./Transaction-
|
|
3381
|
+
component: () => import("./Transaction-8K6WJBsa.js"),
|
|
3382
3382
|
meta: {
|
|
3383
3383
|
sidebarDisplay: "i18n:payment.routes.transaction_new",
|
|
3384
3384
|
sidebarNew: !0,
|
|
@@ -3395,7 +3395,7 @@ const Ho = () => ({
|
|
|
3395
3395
|
{
|
|
3396
3396
|
path: "/settlement",
|
|
3397
3397
|
name: "mf-payment-settlement",
|
|
3398
|
-
component: () => import("./Settlement-
|
|
3398
|
+
component: () => import("./Settlement-tz1oE3Qt.js"),
|
|
3399
3399
|
meta: {
|
|
3400
3400
|
sidebarDisplay: "i18n:payment.routes.settlement",
|
|
3401
3401
|
region: { MY: !0, SG: !0 },
|
|
@@ -3413,7 +3413,7 @@ const Ho = () => ({
|
|
|
3413
3413
|
path: "/settlement/:settlementId",
|
|
3414
3414
|
name: "mf-payment-settlement-transaction",
|
|
3415
3415
|
props: !0,
|
|
3416
|
-
component: () => import("./SettlementTransactions-
|
|
3416
|
+
component: () => import("./SettlementTransactions-B2IUyVs5.js"),
|
|
3417
3417
|
meta: {
|
|
3418
3418
|
parent: "mf-payment-settlement",
|
|
3419
3419
|
validationManifest: {
|
|
@@ -3453,7 +3453,7 @@ const Ho = () => ({
|
|
|
3453
3453
|
], Qo = $i("mf-payment-iframe", () => {
|
|
3454
3454
|
const t = {
|
|
3455
3455
|
isIframe: !1
|
|
3456
|
-
}, e =
|
|
3456
|
+
}, e = Nn(() => t);
|
|
3457
3457
|
function n(r) {
|
|
3458
3458
|
t.isIframe = r;
|
|
3459
3459
|
}
|
|
@@ -3990,7 +3990,7 @@ class lc {
|
|
|
3990
3990
|
next: e,
|
|
3991
3991
|
error: n,
|
|
3992
3992
|
complete: r
|
|
3993
|
-
}, s.next === void 0 && (s.next =
|
|
3993
|
+
}, s.next === void 0 && (s.next = hn), s.error === void 0 && (s.error = hn), s.complete === void 0 && (s.complete = hn);
|
|
3994
3994
|
const i = this.unsubscribeOne.bind(this, this.observers.length);
|
|
3995
3995
|
return this.finalized && this.task.then(() => {
|
|
3996
3996
|
try {
|
|
@@ -4036,7 +4036,7 @@ function Ac(t, e) {
|
|
|
4036
4036
|
return !0;
|
|
4037
4037
|
return !1;
|
|
4038
4038
|
}
|
|
4039
|
-
function
|
|
4039
|
+
function hn() {
|
|
4040
4040
|
}
|
|
4041
4041
|
/**
|
|
4042
4042
|
* @license
|
|
@@ -4443,7 +4443,7 @@ function Bc() {
|
|
|
4443
4443
|
IDBCursor.prototype.continuePrimaryKey
|
|
4444
4444
|
]);
|
|
4445
4445
|
}
|
|
4446
|
-
const Hs = /* @__PURE__ */ new WeakMap(),
|
|
4446
|
+
const Hs = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap();
|
|
4447
4447
|
function Dc(t) {
|
|
4448
4448
|
const e = new Promise((n, r) => {
|
|
4449
4449
|
const s = () => {
|
|
@@ -4461,7 +4461,7 @@ function Dc(t) {
|
|
|
4461
4461
|
}), Un.set(e, t), e;
|
|
4462
4462
|
}
|
|
4463
4463
|
function Cc(t) {
|
|
4464
|
-
if (
|
|
4464
|
+
if (En.has(t))
|
|
4465
4465
|
return;
|
|
4466
4466
|
const e = new Promise((n, r) => {
|
|
4467
4467
|
const s = () => {
|
|
@@ -4473,13 +4473,13 @@ function Cc(t) {
|
|
|
4473
4473
|
};
|
|
4474
4474
|
t.addEventListener("complete", i), t.addEventListener("error", a), t.addEventListener("abort", a);
|
|
4475
4475
|
});
|
|
4476
|
-
|
|
4476
|
+
En.set(t, e);
|
|
4477
4477
|
}
|
|
4478
|
-
let
|
|
4478
|
+
let Mn = {
|
|
4479
4479
|
get(t, e, n) {
|
|
4480
4480
|
if (t instanceof IDBTransaction) {
|
|
4481
4481
|
if (e === "done")
|
|
4482
|
-
return
|
|
4482
|
+
return En.get(t);
|
|
4483
4483
|
if (e === "objectStoreNames")
|
|
4484
4484
|
return t.objectStoreNames || Qs.get(t);
|
|
4485
4485
|
if (e === "store")
|
|
@@ -4495,30 +4495,30 @@ let Cn = {
|
|
|
4495
4495
|
}
|
|
4496
4496
|
};
|
|
4497
4497
|
function Ec(t) {
|
|
4498
|
-
|
|
4498
|
+
Mn = t(Mn);
|
|
4499
4499
|
}
|
|
4500
4500
|
function Mc(t) {
|
|
4501
4501
|
return t === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...n) {
|
|
4502
|
-
const r = t.call(
|
|
4502
|
+
const r = t.call(fn(this), e, ...n);
|
|
4503
4503
|
return Qs.set(r, e.sort ? e.sort() : [e]), Fe(r);
|
|
4504
4504
|
} : Bc().includes(t) ? function(...e) {
|
|
4505
|
-
return t.apply(
|
|
4505
|
+
return t.apply(fn(this), e), Fe(Hs.get(this));
|
|
4506
4506
|
} : function(...e) {
|
|
4507
|
-
return Fe(t.apply(
|
|
4507
|
+
return Fe(t.apply(fn(this), e));
|
|
4508
4508
|
};
|
|
4509
4509
|
}
|
|
4510
4510
|
function Ic(t) {
|
|
4511
|
-
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), wc(t, vc()) ? new Proxy(t,
|
|
4511
|
+
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), wc(t, vc()) ? new Proxy(t, Mn) : t);
|
|
4512
4512
|
}
|
|
4513
4513
|
function Fe(t) {
|
|
4514
4514
|
if (t instanceof IDBRequest)
|
|
4515
4515
|
return Dc(t);
|
|
4516
|
-
if (
|
|
4517
|
-
return
|
|
4516
|
+
if (mn.has(t))
|
|
4517
|
+
return mn.get(t);
|
|
4518
4518
|
const e = Ic(t);
|
|
4519
|
-
return e !== t && (
|
|
4519
|
+
return e !== t && (mn.set(t, e), Un.set(e, t)), e;
|
|
4520
4520
|
}
|
|
4521
|
-
const
|
|
4521
|
+
const fn = (t) => Un.get(t);
|
|
4522
4522
|
function Pc(t, e, { blocked: n, upgrade: r, blocking: s, terminated: i } = {}) {
|
|
4523
4523
|
const a = indexedDB.open(t, e), c = Fe(a);
|
|
4524
4524
|
return r && a.addEventListener("upgradeneeded", (l) => {
|
|
@@ -4533,12 +4533,12 @@ function Pc(t, e, { blocked: n, upgrade: r, blocking: s, terminated: i } = {}) {
|
|
|
4533
4533
|
}).catch(() => {
|
|
4534
4534
|
}), c;
|
|
4535
4535
|
}
|
|
4536
|
-
const Oc = ["get", "getKey", "getAll", "getAllKeys", "count"], Tc = ["put", "add", "delete", "clear"],
|
|
4536
|
+
const Oc = ["get", "getKey", "getAll", "getAllKeys", "count"], Tc = ["put", "add", "delete", "clear"], gn = /* @__PURE__ */ new Map();
|
|
4537
4537
|
function dr(t, e) {
|
|
4538
4538
|
if (!(t instanceof IDBDatabase && !(e in t) && typeof e == "string"))
|
|
4539
4539
|
return;
|
|
4540
|
-
if (
|
|
4541
|
-
return
|
|
4540
|
+
if (gn.get(e))
|
|
4541
|
+
return gn.get(e);
|
|
4542
4542
|
const n = e.replace(/FromIndex$/, ""), r = e !== n, s = Tc.includes(n);
|
|
4543
4543
|
if (
|
|
4544
4544
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
@@ -4553,7 +4553,7 @@ function dr(t, e) {
|
|
|
4553
4553
|
s && l.done
|
|
4554
4554
|
]))[0];
|
|
4555
4555
|
};
|
|
4556
|
-
return
|
|
4556
|
+
return gn.set(e, i), i;
|
|
4557
4557
|
}
|
|
4558
4558
|
Ec((t) => ({
|
|
4559
4559
|
...t,
|
|
@@ -4596,7 +4596,7 @@ function jc(t) {
|
|
|
4596
4596
|
const e = t.getComponent();
|
|
4597
4597
|
return (e == null ? void 0 : e.type) === "VERSION";
|
|
4598
4598
|
}
|
|
4599
|
-
const
|
|
4599
|
+
const In = "@firebase/app", hr = "0.10.13";
|
|
4600
4600
|
/**
|
|
4601
4601
|
* @license
|
|
4602
4602
|
* Copyright 2019 Google LLC
|
|
@@ -4630,8 +4630,8 @@ const ve = new Ns("@firebase/app"), Yc = "@firebase/app-compat", Vc = "@firebase
|
|
|
4630
4630
|
* See the License for the specific language governing permissions and
|
|
4631
4631
|
* limitations under the License.
|
|
4632
4632
|
*/
|
|
4633
|
-
const
|
|
4634
|
-
[
|
|
4633
|
+
const Pn = "[DEFAULT]", au = {
|
|
4634
|
+
[In]: "fire-core",
|
|
4635
4635
|
[Yc]: "fire-core-compat",
|
|
4636
4636
|
[xc]: "fire-analytics",
|
|
4637
4637
|
[Vc]: "fire-analytics-compat",
|
|
@@ -4676,7 +4676,7 @@ const Mn = "[DEFAULT]", au = {
|
|
|
4676
4676
|
* See the License for the specific language governing permissions and
|
|
4677
4677
|
* limitations under the License.
|
|
4678
4678
|
*/
|
|
4679
|
-
const Wt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(),
|
|
4679
|
+
const Wt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), On = /* @__PURE__ */ new Map();
|
|
4680
4680
|
function mr(t, e) {
|
|
4681
4681
|
try {
|
|
4682
4682
|
t.container.addComponent(e);
|
|
@@ -4686,9 +4686,9 @@ function mr(t, e) {
|
|
|
4686
4686
|
}
|
|
4687
4687
|
function bt(t) {
|
|
4688
4688
|
const e = t.name;
|
|
4689
|
-
if (
|
|
4689
|
+
if (On.has(e))
|
|
4690
4690
|
return ve.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
4691
|
-
|
|
4691
|
+
On.set(e, t);
|
|
4692
4692
|
for (const n of Wt.values())
|
|
4693
4693
|
mr(n, t);
|
|
4694
4694
|
for (const n of ou.values())
|
|
@@ -4812,7 +4812,7 @@ const Ot = iu;
|
|
|
4812
4812
|
function Ss(t, e = {}) {
|
|
4813
4813
|
let n = t;
|
|
4814
4814
|
typeof e != "object" && (e = { name: e });
|
|
4815
|
-
const r = Object.assign({ name:
|
|
4815
|
+
const r = Object.assign({ name: Pn, automaticDataCollectionEnabled: !1 }, e), s = r.name;
|
|
4816
4816
|
if (typeof s != "string" || !s)
|
|
4817
4817
|
throw ke.create("bad-app-name", {
|
|
4818
4818
|
appName: String(s)
|
|
@@ -4829,14 +4829,14 @@ function Ss(t, e = {}) {
|
|
|
4829
4829
|
throw ke.create("duplicate-app", { appName: s });
|
|
4830
4830
|
}
|
|
4831
4831
|
const a = new fc(s);
|
|
4832
|
-
for (const l of
|
|
4832
|
+
for (const l of On.values())
|
|
4833
4833
|
a.addComponent(l);
|
|
4834
4834
|
const c = new uu(n, r, a);
|
|
4835
4835
|
return Wt.set(s, c), c;
|
|
4836
4836
|
}
|
|
4837
|
-
function lu(t =
|
|
4837
|
+
function lu(t = Pn) {
|
|
4838
4838
|
const e = Wt.get(t);
|
|
4839
|
-
if (!e && t ===
|
|
4839
|
+
if (!e && t === Pn && Rs())
|
|
4840
4840
|
return Ss();
|
|
4841
4841
|
if (!e)
|
|
4842
4842
|
throw ke.create("no-app", { appName: t });
|
|
@@ -4878,9 +4878,9 @@ function $e(t, e, n) {
|
|
|
4878
4878
|
* limitations under the License.
|
|
4879
4879
|
*/
|
|
4880
4880
|
const Au = "firebase-heartbeat-database", du = 1, wt = "firebase-heartbeat-store";
|
|
4881
|
-
let
|
|
4881
|
+
let pn = null;
|
|
4882
4882
|
function Us() {
|
|
4883
|
-
return
|
|
4883
|
+
return pn || (pn = Pc(Au, du, {
|
|
4884
4884
|
upgrade: (t, e) => {
|
|
4885
4885
|
switch (e) {
|
|
4886
4886
|
case 0:
|
|
@@ -4895,7 +4895,7 @@ function Us() {
|
|
|
4895
4895
|
throw ke.create("idb-open", {
|
|
4896
4896
|
originalErrorMessage: t.message
|
|
4897
4897
|
});
|
|
4898
|
-
})),
|
|
4898
|
+
})), pn;
|
|
4899
4899
|
}
|
|
4900
4900
|
async function hu(t) {
|
|
4901
4901
|
try {
|
|
@@ -5096,7 +5096,7 @@ function bu(t) {
|
|
|
5096
5096
|
(e) => new gu(e),
|
|
5097
5097
|
"PRIVATE"
|
|
5098
5098
|
/* ComponentType.PRIVATE */
|
|
5099
|
-
)), $e(
|
|
5099
|
+
)), $e(In, hr, t), $e(In, hr, "esm2017"), $e("fire-js", "");
|
|
5100
5100
|
}
|
|
5101
5101
|
bu("");
|
|
5102
5102
|
var wu = "firebase", vu = "10.14.1";
|
|
@@ -5228,7 +5228,7 @@ function De(t, e) {
|
|
|
5228
5228
|
* See the License for the specific language governing permissions and
|
|
5229
5229
|
* limitations under the License.
|
|
5230
5230
|
*/
|
|
5231
|
-
function
|
|
5231
|
+
function Tn() {
|
|
5232
5232
|
var t;
|
|
5233
5233
|
return typeof self < "u" && ((t = self.location) === null || t === void 0 ? void 0 : t.href) || "";
|
|
5234
5234
|
}
|
|
@@ -5482,7 +5482,7 @@ const Iu = {
|
|
|
5482
5482
|
* limitations under the License.
|
|
5483
5483
|
*/
|
|
5484
5484
|
const Pu = new Tt(3e4, 6e4);
|
|
5485
|
-
function
|
|
5485
|
+
function sn(t, e) {
|
|
5486
5486
|
return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
|
|
5487
5487
|
}
|
|
5488
5488
|
async function mt(t, e, n, r, s = {}) {
|
|
@@ -5630,14 +5630,14 @@ async function Gu(t, e = !1) {
|
|
|
5630
5630
|
return {
|
|
5631
5631
|
claims: s,
|
|
5632
5632
|
token: r,
|
|
5633
|
-
authTime: yt(
|
|
5634
|
-
issuedAtTime: yt(
|
|
5635
|
-
expirationTime: yt(
|
|
5633
|
+
authTime: yt(yn(s.auth_time)),
|
|
5634
|
+
issuedAtTime: yt(yn(s.iat)),
|
|
5635
|
+
expirationTime: yt(yn(s.exp)),
|
|
5636
5636
|
signInProvider: a || null,
|
|
5637
5637
|
signInSecondFactor: (i == null ? void 0 : i.sign_in_second_factor) || null
|
|
5638
5638
|
};
|
|
5639
5639
|
}
|
|
5640
|
-
function
|
|
5640
|
+
function yn(t) {
|
|
5641
5641
|
return Number(t) * 1e3;
|
|
5642
5642
|
}
|
|
5643
5643
|
function Ln(t) {
|
|
@@ -5773,7 +5773,7 @@ class Yu {
|
|
|
5773
5773
|
* See the License for the specific language governing permissions and
|
|
5774
5774
|
* limitations under the License.
|
|
5775
5775
|
*/
|
|
5776
|
-
class
|
|
5776
|
+
class Gn {
|
|
5777
5777
|
constructor(e, n) {
|
|
5778
5778
|
this.createdAt = e, this.lastLoginAt = n, this._initializeTime();
|
|
5779
5779
|
}
|
|
@@ -5826,7 +5826,7 @@ async function Zt(t) {
|
|
|
5826
5826
|
phoneNumber: i.phoneNumber || null,
|
|
5827
5827
|
tenantId: i.tenantId || null,
|
|
5828
5828
|
providerData: c,
|
|
5829
|
-
metadata: new
|
|
5829
|
+
metadata: new Gn(i.createdAt, i.lastLoginAt),
|
|
5830
5830
|
isAnonymous: f
|
|
5831
5831
|
};
|
|
5832
5832
|
Object.assign(t, p);
|
|
@@ -5889,7 +5889,7 @@ async function Fu(t, e) {
|
|
|
5889
5889
|
};
|
|
5890
5890
|
}
|
|
5891
5891
|
async function ku(t, e) {
|
|
5892
|
-
return mt(t, "POST", "/v2/accounts:revokeToken",
|
|
5892
|
+
return mt(t, "POST", "/v2/accounts:revokeToken", sn(t, e));
|
|
5893
5893
|
}
|
|
5894
5894
|
/**
|
|
5895
5895
|
* @license
|
|
@@ -6007,7 +6007,7 @@ function Ee(t, e) {
|
|
|
6007
6007
|
class be {
|
|
6008
6008
|
constructor(e) {
|
|
6009
6009
|
var { uid: n, auth: r, stsTokenManager: s } = e, i = Wn(e, ["uid", "auth", "stsTokenManager"]);
|
|
6010
|
-
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
|
|
6010
|
+
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);
|
|
6011
6011
|
}
|
|
6012
6012
|
async getIdToken(e) {
|
|
6013
6013
|
const n = await vt(this, this.stsTokenManager.getToken(this.auth, e));
|
|
@@ -6173,7 +6173,7 @@ class be {
|
|
|
6173
6173
|
phoneNumber: s.phoneNumber || null,
|
|
6174
6174
|
tenantId: s.tenantId || null,
|
|
6175
6175
|
providerData: i,
|
|
6176
|
-
metadata: new
|
|
6176
|
+
metadata: new Gn(s.createdAt, s.lastLoginAt),
|
|
6177
6177
|
isAnonymous: !(s.email && s.passwordHash) && !(i != null && i.length)
|
|
6178
6178
|
};
|
|
6179
6179
|
return Object.assign(l, A), l;
|
|
@@ -6504,7 +6504,7 @@ class Nu {
|
|
|
6504
6504
|
* limitations under the License.
|
|
6505
6505
|
*/
|
|
6506
6506
|
async function Hu(t, e = {}) {
|
|
6507
|
-
return mt(t, "GET", "/v2/passwordPolicy",
|
|
6507
|
+
return mt(t, "GET", "/v2/passwordPolicy", sn(t, e));
|
|
6508
6508
|
}
|
|
6509
6509
|
/**
|
|
6510
6510
|
* @license
|
|
@@ -6943,7 +6943,7 @@ class Su {
|
|
|
6943
6943
|
return n != null && n.error && Du(`Error while retrieving App Check token: ${n.error}`), n == null ? void 0 : n.token;
|
|
6944
6944
|
}
|
|
6945
6945
|
}
|
|
6946
|
-
function
|
|
6946
|
+
function an(t) {
|
|
6947
6947
|
return ht(t);
|
|
6948
6948
|
}
|
|
6949
6949
|
class Cr {
|
|
@@ -7030,7 +7030,7 @@ function Ku(t, e) {
|
|
|
7030
7030
|
e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
7031
7031
|
}
|
|
7032
7032
|
function Ju(t, e, n) {
|
|
7033
|
-
const r =
|
|
7033
|
+
const r = an(t);
|
|
7034
7034
|
M(
|
|
7035
7035
|
r._canInitEmulator,
|
|
7036
7036
|
r,
|
|
@@ -7139,7 +7139,7 @@ class hi {
|
|
|
7139
7139
|
* limitations under the License.
|
|
7140
7140
|
*/
|
|
7141
7141
|
async function nt(t, e) {
|
|
7142
|
-
return _s(t, "POST", "/v1/accounts:signInWithIdp",
|
|
7142
|
+
return _s(t, "POST", "/v1/accounts:signInWithIdp", sn(t, e));
|
|
7143
7143
|
}
|
|
7144
7144
|
/**
|
|
7145
7145
|
* @license
|
|
@@ -7771,7 +7771,7 @@ async function rl(t, e, n = !1) {
|
|
|
7771
7771
|
* limitations under the License.
|
|
7772
7772
|
*/
|
|
7773
7773
|
async function sl(t, e) {
|
|
7774
|
-
return _s(t, "POST", "/v1/accounts:signInWithCustomToken",
|
|
7774
|
+
return _s(t, "POST", "/v1/accounts:signInWithCustomToken", sn(t, e));
|
|
7775
7775
|
}
|
|
7776
7776
|
/**
|
|
7777
7777
|
* @license
|
|
@@ -7792,7 +7792,7 @@ async function sl(t, e) {
|
|
|
7792
7792
|
async function il(t, e) {
|
|
7793
7793
|
if (pe(t.app))
|
|
7794
7794
|
return Promise.reject(Re(t));
|
|
7795
|
-
const n =
|
|
7795
|
+
const n = an(t), r = await sl(n, {
|
|
7796
7796
|
token: e,
|
|
7797
7797
|
returnSecureToken: !0
|
|
7798
7798
|
}), s = await Le._fromIdTokenResponse(n, "signIn", r);
|
|
@@ -8021,7 +8021,7 @@ function Al(t) {
|
|
|
8021
8021
|
* See the License for the specific language governing permissions and
|
|
8022
8022
|
* limitations under the License.
|
|
8023
8023
|
*/
|
|
8024
|
-
class
|
|
8024
|
+
class on {
|
|
8025
8025
|
constructor(e) {
|
|
8026
8026
|
this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
|
|
8027
8027
|
}
|
|
@@ -8035,7 +8035,7 @@ class sn {
|
|
|
8035
8035
|
const n = this.receivers.find((s) => s.isListeningto(e));
|
|
8036
8036
|
if (n)
|
|
8037
8037
|
return n;
|
|
8038
|
-
const r = new
|
|
8038
|
+
const r = new on(e);
|
|
8039
8039
|
return this.receivers.push(r), r;
|
|
8040
8040
|
}
|
|
8041
8041
|
isListeningto(e) {
|
|
@@ -8089,7 +8089,7 @@ class sn {
|
|
|
8089
8089
|
this.handlersMap[e] && n && this.handlersMap[e].delete(n), (!n || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
|
|
8090
8090
|
}
|
|
8091
8091
|
}
|
|
8092
|
-
|
|
8092
|
+
on.receivers = [];
|
|
8093
8093
|
/**
|
|
8094
8094
|
* @license
|
|
8095
8095
|
* Copyright 2020 Google LLC
|
|
@@ -8297,14 +8297,14 @@ class jt {
|
|
|
8297
8297
|
});
|
|
8298
8298
|
}
|
|
8299
8299
|
}
|
|
8300
|
-
function
|
|
8300
|
+
function cn(t, e) {
|
|
8301
8301
|
return t.transaction([Jt], e ? "readwrite" : "readonly").objectStore(Jt);
|
|
8302
8302
|
}
|
|
8303
8303
|
function yl() {
|
|
8304
8304
|
const t = indexedDB.deleteDatabase(vi);
|
|
8305
8305
|
return new jt(t).toPromise();
|
|
8306
8306
|
}
|
|
8307
|
-
function
|
|
8307
|
+
function jn() {
|
|
8308
8308
|
const t = indexedDB.open(vi, pl);
|
|
8309
8309
|
return new Promise((e, n) => {
|
|
8310
8310
|
t.addEventListener("error", () => {
|
|
@@ -8318,23 +8318,23 @@ function Tn() {
|
|
|
8318
8318
|
}
|
|
8319
8319
|
}), t.addEventListener("success", async () => {
|
|
8320
8320
|
const r = t.result;
|
|
8321
|
-
r.objectStoreNames.contains(Jt) ? e(r) : (r.close(), await yl(), e(await
|
|
8321
|
+
r.objectStoreNames.contains(Jt) ? e(r) : (r.close(), await yl(), e(await jn()));
|
|
8322
8322
|
});
|
|
8323
8323
|
});
|
|
8324
8324
|
}
|
|
8325
8325
|
async function Ir(t, e, n) {
|
|
8326
|
-
const r =
|
|
8326
|
+
const r = cn(t, !0).put({
|
|
8327
8327
|
[Bi]: e,
|
|
8328
8328
|
value: n
|
|
8329
8329
|
});
|
|
8330
8330
|
return new jt(r).toPromise();
|
|
8331
8331
|
}
|
|
8332
8332
|
async function bl(t, e) {
|
|
8333
|
-
const n =
|
|
8333
|
+
const n = cn(t, !1).get(e), r = await new jt(n).toPromise();
|
|
8334
8334
|
return r === void 0 ? null : r.value;
|
|
8335
8335
|
}
|
|
8336
8336
|
function Pr(t, e) {
|
|
8337
|
-
const n =
|
|
8337
|
+
const n = cn(t, !0).delete(e);
|
|
8338
8338
|
return new jt(n).toPromise();
|
|
8339
8339
|
}
|
|
8340
8340
|
const wl = 800, vl = 3;
|
|
@@ -8345,7 +8345,7 @@ class Di {
|
|
|
8345
8345
|
});
|
|
8346
8346
|
}
|
|
8347
8347
|
async _openDb() {
|
|
8348
|
-
return this.db ? this.db : (this.db = await
|
|
8348
|
+
return this.db ? this.db : (this.db = await jn(), this.db);
|
|
8349
8349
|
}
|
|
8350
8350
|
async _withRetries(e) {
|
|
8351
8351
|
let n = 0;
|
|
@@ -8370,7 +8370,7 @@ class Di {
|
|
|
8370
8370
|
* As the worker we should listen to events from the main window.
|
|
8371
8371
|
*/
|
|
8372
8372
|
async initializeReceiver() {
|
|
8373
|
-
this.receiver =
|
|
8373
|
+
this.receiver = on._getInstance(gl()), this.receiver._subscribe("keyChanged", async (e, n) => ({
|
|
8374
8374
|
keyProcessed: (await this._poll()).includes(n.key)
|
|
8375
8375
|
})), this.receiver._subscribe("ping", async (e, n) => [
|
|
8376
8376
|
"keyChanged"
|
|
@@ -8426,7 +8426,7 @@ class Di {
|
|
|
8426
8426
|
try {
|
|
8427
8427
|
if (!indexedDB)
|
|
8428
8428
|
return !1;
|
|
8429
|
-
const e = await
|
|
8429
|
+
const e = await jn();
|
|
8430
8430
|
return await Ir(e, Kt, "1"), await Pr(e, Kt), !0;
|
|
8431
8431
|
} catch {
|
|
8432
8432
|
}
|
|
@@ -8452,7 +8452,7 @@ class Di {
|
|
|
8452
8452
|
}
|
|
8453
8453
|
async _poll() {
|
|
8454
8454
|
const e = await this._withRetries((s) => {
|
|
8455
|
-
const i =
|
|
8455
|
+
const i = cn(s, !1).getAll();
|
|
8456
8456
|
return new jt(i).toPromise();
|
|
8457
8457
|
});
|
|
8458
8458
|
if (!e)
|
|
@@ -8832,7 +8832,7 @@ function Yl(t) {
|
|
|
8832
8832
|
async function Vl(t, e, n = !1) {
|
|
8833
8833
|
if (pe(t.app))
|
|
8834
8834
|
return Promise.reject(Re(t));
|
|
8835
|
-
const r =
|
|
8835
|
+
const r = an(t), s = Dl(r, e), a = await new Ol(r, s, n).execute();
|
|
8836
8836
|
return a && !n && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
|
8837
8837
|
}
|
|
8838
8838
|
/**
|
|
@@ -8960,7 +8960,7 @@ async function Hl(t) {
|
|
|
8960
8960
|
);
|
|
8961
8961
|
}
|
|
8962
8962
|
function Ql(t) {
|
|
8963
|
-
const e =
|
|
8963
|
+
const e = Tn(), { protocol: n, hostname: r } = new URL(e);
|
|
8964
8964
|
if (t.startsWith("chrome-extension://")) {
|
|
8965
8965
|
const a = new URL(t);
|
|
8966
8966
|
return a.hostname === "" && r === "" ? n === "chrome-extension:" && t.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : n === "chrome-extension:" && a.hostname === r;
|
|
@@ -9257,7 +9257,7 @@ function uA({ config: t }) {
|
|
|
9257
9257
|
* See the License for the specific language governing permissions and
|
|
9258
9258
|
* limitations under the License.
|
|
9259
9259
|
*/
|
|
9260
|
-
const
|
|
9260
|
+
const bn = "webStorageSupport";
|
|
9261
9261
|
class lA {
|
|
9262
9262
|
constructor() {
|
|
9263
9263
|
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = bi, this._completeRedirectFn = Vl, this._overrideRedirectResult = Gl;
|
|
@@ -9267,12 +9267,12 @@ class lA {
|
|
|
9267
9267
|
async _openPopup(e, n, r, s) {
|
|
9268
9268
|
var i;
|
|
9269
9269
|
De((i = this.eventManagers[e._key()]) === null || i === void 0 ? void 0 : i.manager, "_initialize() not called before _openPopup()");
|
|
9270
|
-
const a = await jr(e, n, r,
|
|
9270
|
+
const a = await jr(e, n, r, Tn(), s);
|
|
9271
9271
|
return sA(e, a, _n());
|
|
9272
9272
|
}
|
|
9273
9273
|
async _openRedirect(e, n, r, s) {
|
|
9274
9274
|
await this._originValidation(e);
|
|
9275
|
-
const i = await jr(e, n, r,
|
|
9275
|
+
const i = await jr(e, n, r, Tn(), s);
|
|
9276
9276
|
return hl(i), new Promise(() => {
|
|
9277
9277
|
});
|
|
9278
9278
|
}
|
|
@@ -9300,9 +9300,9 @@ class lA {
|
|
|
9300
9300
|
}), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = n, r;
|
|
9301
9301
|
}
|
|
9302
9302
|
_isIframeWebStorageSupported(e, n) {
|
|
9303
|
-
this.iframes[e._key()].send(
|
|
9303
|
+
this.iframes[e._key()].send(bn, { type: bn }, (s) => {
|
|
9304
9304
|
var i;
|
|
9305
|
-
const a = (i = s == null ? void 0 : s[0]) === null || i === void 0 ? void 0 : i[
|
|
9305
|
+
const a = (i = s == null ? void 0 : s[0]) === null || i === void 0 ? void 0 : i[bn];
|
|
9306
9306
|
a !== void 0 && n(!!a), Be(
|
|
9307
9307
|
e,
|
|
9308
9308
|
"internal-error"
|
|
@@ -9433,7 +9433,7 @@ function mA(t) {
|
|
|
9433
9433
|
})), bt(new dt(
|
|
9434
9434
|
"auth-internal",
|
|
9435
9435
|
(e) => {
|
|
9436
|
-
const n =
|
|
9436
|
+
const n = an(e.getProvider(
|
|
9437
9437
|
"auth"
|
|
9438
9438
|
/* _ComponentName.AUTH */
|
|
9439
9439
|
).getImmediate());
|
|
@@ -9523,7 +9523,7 @@ mA(
|
|
|
9523
9523
|
"Browser"
|
|
9524
9524
|
/* ClientPlatform.BROWSER */
|
|
9525
9525
|
);
|
|
9526
|
-
var
|
|
9526
|
+
var un = class {
|
|
9527
9527
|
constructor() {
|
|
9528
9528
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
9529
9529
|
}
|
|
@@ -9539,7 +9539,7 @@ var on = class {
|
|
|
9539
9539
|
}
|
|
9540
9540
|
onUnsubscribe() {
|
|
9541
9541
|
}
|
|
9542
|
-
}, He, Ge, rt, Xr, wA = (Xr = class extends
|
|
9542
|
+
}, He, Ge, rt, Xr, wA = (Xr = class extends un {
|
|
9543
9543
|
constructor() {
|
|
9544
9544
|
super();
|
|
9545
9545
|
G(this, He);
|
|
@@ -9625,7 +9625,7 @@ var on = class {
|
|
|
9625
9625
|
clearInterval(t) {
|
|
9626
9626
|
h(this, oe).clearInterval(t);
|
|
9627
9627
|
}
|
|
9628
|
-
}, oe = new WeakMap(), Qe = new WeakMap(), Sr),
|
|
9628
|
+
}, oe = new WeakMap(), Qe = new WeakMap(), Sr), Yn = new BA();
|
|
9629
9629
|
function DA(t) {
|
|
9630
9630
|
setTimeout(t, 0);
|
|
9631
9631
|
}
|
|
@@ -9641,7 +9641,7 @@ function MA(t) {
|
|
|
9641
9641
|
function IA(t, e) {
|
|
9642
9642
|
return Math.max(t + (e || 0) - Date.now(), 0);
|
|
9643
9643
|
}
|
|
9644
|
-
function
|
|
9644
|
+
function Vn(t, e) {
|
|
9645
9645
|
return typeof t == "function" ? t(e) : t;
|
|
9646
9646
|
}
|
|
9647
9647
|
function PA(t, e) {
|
|
@@ -9689,19 +9689,19 @@ function er(t, e) {
|
|
|
9689
9689
|
function Bt(t) {
|
|
9690
9690
|
return JSON.stringify(
|
|
9691
9691
|
t,
|
|
9692
|
-
(e, n) =>
|
|
9692
|
+
(e, n) => Fn(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
|
|
9693
9693
|
);
|
|
9694
9694
|
}
|
|
9695
9695
|
function Dt(t, e) {
|
|
9696
9696
|
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;
|
|
9697
9697
|
}
|
|
9698
9698
|
var OA = Object.prototype.hasOwnProperty;
|
|
9699
|
-
function
|
|
9699
|
+
function xn(t, e, n = 0) {
|
|
9700
9700
|
if (t === e)
|
|
9701
9701
|
return t;
|
|
9702
9702
|
if (n > 500) return e;
|
|
9703
9703
|
const r = Rr(t) && Rr(e);
|
|
9704
|
-
if (!r && !(
|
|
9704
|
+
if (!r && !(Fn(t) && Fn(e))) return e;
|
|
9705
9705
|
const i = (r ? t : Object.keys(t)).length, a = r ? e : Object.keys(e), c = a.length, l = r ? new Array(c) : {};
|
|
9706
9706
|
let A = 0;
|
|
9707
9707
|
for (let f = 0; f < c; f++) {
|
|
@@ -9714,12 +9714,12 @@ function Yn(t, e, n = 0) {
|
|
|
9714
9714
|
l[p] = v;
|
|
9715
9715
|
continue;
|
|
9716
9716
|
}
|
|
9717
|
-
const O =
|
|
9717
|
+
const O = xn(B, v, n + 1);
|
|
9718
9718
|
l[p] = O, O === B && A++;
|
|
9719
9719
|
}
|
|
9720
9720
|
return i === c && A === i ? t : l;
|
|
9721
9721
|
}
|
|
9722
|
-
function
|
|
9722
|
+
function Ad(t, e) {
|
|
9723
9723
|
if (!e || Object.keys(t).length !== Object.keys(e).length)
|
|
9724
9724
|
return !1;
|
|
9725
9725
|
for (const n in t)
|
|
@@ -9730,7 +9730,7 @@ function ld(t, e) {
|
|
|
9730
9730
|
function Rr(t) {
|
|
9731
9731
|
return Array.isArray(t) && t.length === Object.keys(t).length;
|
|
9732
9732
|
}
|
|
9733
|
-
function
|
|
9733
|
+
function Fn(t) {
|
|
9734
9734
|
if (!qr(t))
|
|
9735
9735
|
return !1;
|
|
9736
9736
|
const e = t.constructor;
|
|
@@ -9744,7 +9744,7 @@ function qr(t) {
|
|
|
9744
9744
|
}
|
|
9745
9745
|
function TA(t) {
|
|
9746
9746
|
return new Promise((e) => {
|
|
9747
|
-
|
|
9747
|
+
Yn.setTimeout(e, t);
|
|
9748
9748
|
});
|
|
9749
9749
|
}
|
|
9750
9750
|
function GA(t, e, n) {
|
|
@@ -9753,17 +9753,17 @@ function GA(t, e, n) {
|
|
|
9753
9753
|
if (n.structuralSharing !== !1) {
|
|
9754
9754
|
if (process.env.NODE_ENV !== "production")
|
|
9755
9755
|
try {
|
|
9756
|
-
return
|
|
9756
|
+
return xn(t, e);
|
|
9757
9757
|
} catch (r) {
|
|
9758
9758
|
throw console.error(
|
|
9759
9759
|
`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`
|
|
9760
9760
|
), r;
|
|
9761
9761
|
}
|
|
9762
|
-
return
|
|
9762
|
+
return xn(t, e);
|
|
9763
9763
|
}
|
|
9764
9764
|
return e;
|
|
9765
9765
|
}
|
|
9766
|
-
function
|
|
9766
|
+
function dd(t) {
|
|
9767
9767
|
return t;
|
|
9768
9768
|
}
|
|
9769
9769
|
function jA(t, e, n = 0) {
|
|
@@ -9780,7 +9780,7 @@ function Ii(t, e) {
|
|
|
9780
9780
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
|
|
9781
9781
|
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === _t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
9782
9782
|
}
|
|
9783
|
-
function
|
|
9783
|
+
function hd(t, e) {
|
|
9784
9784
|
return typeof t == "function" ? t(...e) : !!t;
|
|
9785
9785
|
}
|
|
9786
9786
|
function VA(t, e, n) {
|
|
@@ -9889,7 +9889,7 @@ function kA() {
|
|
|
9889
9889
|
}
|
|
9890
9890
|
};
|
|
9891
9891
|
}
|
|
9892
|
-
var L = kA(), st, je, it, Ur, RA = (Ur = class extends
|
|
9892
|
+
var L = kA(), st, je, it, Ur, RA = (Ur = class extends un {
|
|
9893
9893
|
constructor() {
|
|
9894
9894
|
super();
|
|
9895
9895
|
G(this, st, !0);
|
|
@@ -9930,7 +9930,7 @@ function qA(t) {
|
|
|
9930
9930
|
function Oi(t) {
|
|
9931
9931
|
return (t ?? "online") === "online" ? $t.isOnline() : !0;
|
|
9932
9932
|
}
|
|
9933
|
-
var
|
|
9933
|
+
var kn = class extends Error {
|
|
9934
9934
|
constructor(t) {
|
|
9935
9935
|
super("CancelledError"), this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
|
|
9936
9936
|
}
|
|
@@ -9940,7 +9940,7 @@ function Ti(t) {
|
|
|
9940
9940
|
const s = xA(), i = () => s.status !== "pending", a = (I) => {
|
|
9941
9941
|
var V;
|
|
9942
9942
|
if (!i()) {
|
|
9943
|
-
const R = new
|
|
9943
|
+
const R = new kn(I);
|
|
9944
9944
|
B(R), (V = t.onCancel) == null || V.call(t, R);
|
|
9945
9945
|
}
|
|
9946
9946
|
}, c = () => {
|
|
@@ -10002,7 +10002,7 @@ var Xe, Wr, Gi = (Wr = class {
|
|
|
10002
10002
|
this.clearGcTimeout();
|
|
10003
10003
|
}
|
|
10004
10004
|
scheduleGc() {
|
|
10005
|
-
this.clearGcTimeout(), MA(this.gcTime) && D(this, Xe,
|
|
10005
|
+
this.clearGcTimeout(), MA(this.gcTime) && D(this, Xe, Yn.setTimeout(() => {
|
|
10006
10006
|
this.optionalRemove();
|
|
10007
10007
|
}, this.gcTime));
|
|
10008
10008
|
}
|
|
@@ -10013,7 +10013,7 @@ var Xe, Wr, Gi = (Wr = class {
|
|
|
10013
10013
|
);
|
|
10014
10014
|
}
|
|
10015
10015
|
clearGcTimeout() {
|
|
10016
|
-
h(this, Xe) !== void 0 && (
|
|
10016
|
+
h(this, Xe) !== void 0 && (Yn.clearTimeout(h(this, Xe)), D(this, Xe, void 0));
|
|
10017
10017
|
}
|
|
10018
10018
|
}, Xe = new WeakMap(), Wr);
|
|
10019
10019
|
function NA(t) {
|
|
@@ -10171,7 +10171,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10171
10171
|
}
|
|
10172
10172
|
isStatic() {
|
|
10173
10173
|
return this.getObserversCount() > 0 ? this.observers.some(
|
|
10174
|
-
(e) =>
|
|
10174
|
+
(e) => Vn(e.options.staleTime, this) === "static"
|
|
10175
10175
|
) : !1;
|
|
10176
10176
|
}
|
|
10177
10177
|
isStale() {
|
|
@@ -10258,7 +10258,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10258
10258
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
10259
10259
|
fn: c.fetchFn,
|
|
10260
10260
|
onCancel: (w) => {
|
|
10261
|
-
w instanceof
|
|
10261
|
+
w instanceof kn && w.revert && this.setState({
|
|
10262
10262
|
...h(this, ot),
|
|
10263
10263
|
fetchStatus: "idle"
|
|
10264
10264
|
}), r.abort();
|
|
@@ -10290,7 +10290,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10290
10290
|
this
|
|
10291
10291
|
), w;
|
|
10292
10292
|
} catch (w) {
|
|
10293
|
-
if (w instanceof
|
|
10293
|
+
if (w instanceof kn) {
|
|
10294
10294
|
if (w.silent)
|
|
10295
10295
|
return h(this, S).promise;
|
|
10296
10296
|
if (w.revert) {
|
|
@@ -10669,7 +10669,7 @@ function UA() {
|
|
|
10669
10669
|
submittedAt: 0
|
|
10670
10670
|
};
|
|
10671
10671
|
}
|
|
10672
|
-
var fe, ae, Mt, Lr, Yi = (Lr = class extends
|
|
10672
|
+
var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
|
|
10673
10673
|
constructor(n = {}) {
|
|
10674
10674
|
super();
|
|
10675
10675
|
G(this, fe);
|
|
@@ -10768,7 +10768,7 @@ function kt(t) {
|
|
|
10768
10768
|
var e;
|
|
10769
10769
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
10770
10770
|
}
|
|
10771
|
-
var le, Kr, Vi = (Kr = class extends
|
|
10771
|
+
var le, Kr, Vi = (Kr = class extends un {
|
|
10772
10772
|
constructor(n = {}) {
|
|
10773
10773
|
super();
|
|
10774
10774
|
G(this, le);
|
|
@@ -10883,7 +10883,7 @@ var le, Kr, Vi = (Kr = class extends on {
|
|
|
10883
10883
|
}
|
|
10884
10884
|
ensureQueryData(e) {
|
|
10885
10885
|
const n = this.defaultQueryOptions(e), r = h(this, N).build(this, n), s = r.state.data;
|
|
10886
|
-
return s === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(
|
|
10886
|
+
return s === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(Vn(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(s));
|
|
10887
10887
|
}
|
|
10888
10888
|
getQueriesData(e) {
|
|
10889
10889
|
return h(this, N).findAll(e).map(({ queryKey: n, state: r }) => {
|
|
@@ -10967,7 +10967,7 @@ var le, Kr, Vi = (Kr = class extends on {
|
|
|
10967
10967
|
n.retry === void 0 && (n.retry = !1);
|
|
10968
10968
|
const r = h(this, N).build(this, n);
|
|
10969
10969
|
return r.isStaleByTime(
|
|
10970
|
-
|
|
10970
|
+
Vn(n.staleTime, r)
|
|
10971
10971
|
) ? r.fetch(n) : Promise.resolve(r.state.data);
|
|
10972
10972
|
}
|
|
10973
10973
|
prefetchQuery(e) {
|
|
@@ -11047,36 +11047,36 @@ var le, Kr, Vi = (Kr = class extends on {
|
|
|
11047
11047
|
h(this, N).clear(), h(this, Ye).clear();
|
|
11048
11048
|
}
|
|
11049
11049
|
}, N = new WeakMap(), Ye = new WeakMap(), Ve = new WeakMap(), ct = new WeakMap(), ut = new WeakMap(), xe = new WeakMap(), lt = new WeakMap(), At = new WeakMap(), Jr), xi = "VUE_QUERY_CLIENT";
|
|
11050
|
-
function
|
|
11050
|
+
function pd(t) {
|
|
11051
11051
|
const e = t ? `:${t}` : "";
|
|
11052
11052
|
return `${xi}${e}`;
|
|
11053
11053
|
}
|
|
11054
|
-
function
|
|
11054
|
+
function yd(t, e) {
|
|
11055
11055
|
Object.keys(t).forEach((n) => {
|
|
11056
11056
|
t[n] = e[n];
|
|
11057
11057
|
});
|
|
11058
11058
|
}
|
|
11059
|
-
function
|
|
11059
|
+
function Rn(t, e, n = "", r = 0) {
|
|
11060
11060
|
if (e) {
|
|
11061
11061
|
const s = e(t, n, r);
|
|
11062
|
-
if (s === void 0 &&
|
|
11062
|
+
if (s === void 0 && qn(t) || s !== void 0)
|
|
11063
11063
|
return s;
|
|
11064
11064
|
}
|
|
11065
11065
|
if (Array.isArray(t))
|
|
11066
11066
|
return t.map(
|
|
11067
|
-
(s, i) =>
|
|
11067
|
+
(s, i) => Rn(s, e, String(i), r + 1)
|
|
11068
11068
|
);
|
|
11069
11069
|
if (typeof t == "object" && ZA(t)) {
|
|
11070
11070
|
const s = Object.entries(t).map(([i, a]) => [
|
|
11071
11071
|
i,
|
|
11072
|
-
|
|
11072
|
+
Rn(a, e, i, r + 1)
|
|
11073
11073
|
]);
|
|
11074
11074
|
return Object.fromEntries(s);
|
|
11075
11075
|
}
|
|
11076
11076
|
return t;
|
|
11077
11077
|
}
|
|
11078
11078
|
function zA(t, e) {
|
|
11079
|
-
return
|
|
11079
|
+
return Rn(t, e);
|
|
11080
11080
|
}
|
|
11081
11081
|
function T(t, e = !1) {
|
|
11082
11082
|
return zA(t, (n, r, s) => {
|
|
@@ -11084,7 +11084,7 @@ function T(t, e = !1) {
|
|
|
11084
11084
|
return T(n, !0);
|
|
11085
11085
|
if (e && LA(n))
|
|
11086
11086
|
return T(n(), e);
|
|
11087
|
-
if (
|
|
11087
|
+
if (qn(n))
|
|
11088
11088
|
return T(ge(n), e);
|
|
11089
11089
|
});
|
|
11090
11090
|
}
|
|
@@ -11215,9 +11215,9 @@ var KA = class extends Vi {
|
|
|
11215
11215
|
return super.getMutationDefaults(T(t));
|
|
11216
11216
|
}
|
|
11217
11217
|
};
|
|
11218
|
-
Ki({
|
|
11218
|
+
const $A = Ki({
|
|
11219
11219
|
history: Ji(),
|
|
11220
|
-
routes: [...
|
|
11220
|
+
routes: [...rn, ...pt].map((t) => ({
|
|
11221
11221
|
...t,
|
|
11222
11222
|
component: os(
|
|
11223
11223
|
_r({
|
|
@@ -11226,15 +11226,30 @@ Ki({
|
|
|
11226
11226
|
)
|
|
11227
11227
|
}))
|
|
11228
11228
|
});
|
|
11229
|
-
|
|
11229
|
+
$A.beforeEach((t) => {
|
|
11230
|
+
var r;
|
|
11231
|
+
const { currentCountry: e } = nn(), n = e.value;
|
|
11232
|
+
if (!n) return !0;
|
|
11233
|
+
if ((r = t.meta) != null && r.region && !t.meta.region[n]) {
|
|
11234
|
+
const s = rn.find(
|
|
11235
|
+
(i) => {
|
|
11236
|
+
var a;
|
|
11237
|
+
return ((a = i.meta) == null ? void 0 : a.sidebarDisplay) && (!i.meta.region || i.meta.region[n]);
|
|
11238
|
+
}
|
|
11239
|
+
);
|
|
11240
|
+
return s != null && s.name ? { name: s.name } : !0;
|
|
11241
|
+
}
|
|
11242
|
+
return !0;
|
|
11243
|
+
});
|
|
11244
|
+
const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */ en({
|
|
11230
11245
|
__name: "AppSidebar",
|
|
11231
11246
|
setup(t) {
|
|
11232
|
-
const e =
|
|
11247
|
+
const e = nn(), n = _i(), { t: r } = ns(), s = Xt(n.currentRoute.value.name);
|
|
11233
11248
|
$r(n.currentRoute, () => {
|
|
11234
11249
|
let A = n.currentRoute.value.name;
|
|
11235
11250
|
n.currentRoute.value.meta.parent && (A = n.currentRoute.value.meta.parent), s.value = A;
|
|
11236
11251
|
});
|
|
11237
|
-
const i =
|
|
11252
|
+
const i = rn.map((A) => {
|
|
11238
11253
|
var B, v;
|
|
11239
11254
|
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((v = A.meta.region) != null && v[e.currentCountry.value]) || A.meta.section)
|
|
11240
11255
|
return;
|
|
@@ -11246,7 +11261,7 @@ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ *
|
|
|
11246
11261
|
return n.push({ name: A.name });
|
|
11247
11262
|
}
|
|
11248
11263
|
};
|
|
11249
|
-
return A.meta.sidebarNew && (p.badge = () =>
|
|
11264
|
+
return A.meta.sidebarNew && (p.badge = () => wn(ea.FmPill, { label: "New" })), p;
|
|
11250
11265
|
}).filter((A) => !!A);
|
|
11251
11266
|
function a(A, f) {
|
|
11252
11267
|
return A.map((p) => {
|
|
@@ -11274,9 +11289,9 @@ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ *
|
|
|
11274
11289
|
return n.push({ name: A.name });
|
|
11275
11290
|
}
|
|
11276
11291
|
};
|
|
11277
|
-
}).filter((A) => !!A), l =
|
|
11292
|
+
}).filter((A) => !!A), l = Nn(() => {
|
|
11278
11293
|
const A = [...i];
|
|
11279
|
-
return
|
|
11294
|
+
return ed(e.sessionUser.value) && (A.push({
|
|
11280
11295
|
label: "",
|
|
11281
11296
|
value: "divider",
|
|
11282
11297
|
disabled: !0
|
|
@@ -11307,7 +11322,7 @@ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ *
|
|
|
11307
11322
|
});
|
|
11308
11323
|
return (A, f) => {
|
|
11309
11324
|
const p = es("FmCollapsibleTabs");
|
|
11310
|
-
return tn(),
|
|
11325
|
+
return tn(), Hn(p, {
|
|
11311
11326
|
modelValue: s.value,
|
|
11312
11327
|
"onUpdate:modelValue": f[0] || (f[0] = (B) => s.value = B),
|
|
11313
11328
|
items: l.value,
|
|
@@ -11316,13 +11331,13 @@ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ *
|
|
|
11316
11331
|
};
|
|
11317
11332
|
}
|
|
11318
11333
|
});
|
|
11319
|
-
var
|
|
11320
|
-
const
|
|
11334
|
+
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" } };
|
|
11335
|
+
const bd = /* @__PURE__ */ en({
|
|
11321
11336
|
__name: "App",
|
|
11322
11337
|
setup(t) {
|
|
11323
|
-
const { state: e } = Qo(), n =
|
|
11338
|
+
const { state: e } = Qo(), n = nn(), r = ts(), s = new _A();
|
|
11324
11339
|
Wi(xi, s);
|
|
11325
|
-
const i = Ss(
|
|
11340
|
+
const i = Ss(nd.firebase);
|
|
11326
11341
|
async function a() {
|
|
11327
11342
|
const c = n.sessionUser.value;
|
|
11328
11343
|
if (!c || !c.token) return;
|
|
@@ -11332,17 +11347,17 @@ const yd = /* @__PURE__ */ en({
|
|
|
11332
11347
|
return a(), $r(n.sessionUser, a), zi(() => {
|
|
11333
11348
|
e.isIframe && parent.postMessage({ event: "ready" }, "*"), s.mount();
|
|
11334
11349
|
}), Zi(() => {
|
|
11335
|
-
n.registerSidebarComponent(
|
|
11350
|
+
n.registerSidebarComponent(td);
|
|
11336
11351
|
}), Li(() => {
|
|
11337
11352
|
s.unmount();
|
|
11338
11353
|
}), (c, l) => {
|
|
11339
11354
|
const A = es("RouterView");
|
|
11340
|
-
return tn(),
|
|
11355
|
+
return tn(), Hn(A, {
|
|
11341
11356
|
key: ge(r).path
|
|
11342
11357
|
});
|
|
11343
11358
|
};
|
|
11344
11359
|
}
|
|
11345
|
-
}),
|
|
11360
|
+
}), wd = () => {
|
|
11346
11361
|
const t = [
|
|
11347
11362
|
{ "en-US": na, "th-TH": sa, "zh-CN": aa },
|
|
11348
11363
|
qi
|
|
@@ -11359,7 +11374,7 @@ const yd = /* @__PURE__ */ en({
|
|
|
11359
11374
|
},
|
|
11360
11375
|
{}
|
|
11361
11376
|
);
|
|
11362
|
-
},
|
|
11377
|
+
}, vd = [...pt, ...rn].map((t) => ({
|
|
11363
11378
|
...t,
|
|
11364
11379
|
component: os(
|
|
11365
11380
|
_r({ loader: t.component })
|
|
@@ -11367,33 +11382,33 @@ const yd = /* @__PURE__ */ en({
|
|
|
11367
11382
|
}));
|
|
11368
11383
|
export {
|
|
11369
11384
|
xa as A,
|
|
11370
|
-
|
|
11371
|
-
|
|
11385
|
+
vd as B,
|
|
11386
|
+
un as S,
|
|
11372
11387
|
yr as _,
|
|
11373
|
-
|
|
11374
|
-
|
|
11388
|
+
Vn as a,
|
|
11389
|
+
Yn as b,
|
|
11375
11390
|
XA as c,
|
|
11376
11391
|
GA as d,
|
|
11377
11392
|
Pi as e,
|
|
11378
11393
|
Mi as f,
|
|
11379
11394
|
L as g,
|
|
11380
|
-
|
|
11395
|
+
ed as h,
|
|
11381
11396
|
MA as i,
|
|
11382
|
-
|
|
11383
|
-
|
|
11397
|
+
pd as j,
|
|
11398
|
+
dd as k,
|
|
11384
11399
|
T as l,
|
|
11385
|
-
|
|
11400
|
+
hd as m,
|
|
11386
11401
|
ie as n,
|
|
11387
11402
|
o,
|
|
11388
11403
|
xA as p,
|
|
11389
11404
|
d as q,
|
|
11390
11405
|
PA as r,
|
|
11391
|
-
|
|
11406
|
+
Ad as s,
|
|
11392
11407
|
IA as t,
|
|
11393
|
-
|
|
11408
|
+
yd as u,
|
|
11394
11409
|
la as v,
|
|
11395
11410
|
ua as w,
|
|
11396
|
-
|
|
11397
|
-
|
|
11398
|
-
|
|
11411
|
+
ld as x,
|
|
11412
|
+
bd as y,
|
|
11413
|
+
wd as z
|
|
11399
11414
|
};
|