@feedmepos/mf-payment 1.5.86 → 1.6.0
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-DV1rvqNV.js → Actions.vue_vue_type_script_setup_true_lang-CkaI4PbF.js} +1 -1
- package/dist/{Chargeback-HK5XNjfy.js → Chargeback-D8muUSaC.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DjyAuJIl.js → DocumentViewer.vue_vue_type_script_setup_true_lang-D3qzPrOA.js} +1 -1
- package/dist/{OnboardForm-BaoDhJPX.js → OnboardForm-C0GBRILD.js} +5 -5
- package/dist/{OnboardForm-Dv5AVDVS.js → OnboardForm-D0RX-eMY.js} +5 -5
- package/dist/{OnboardSubmission-BoKdQzlV.js → OnboardSubmission-BcutTJ5J.js} +5 -5
- package/dist/{OnboardSubmission-0XiXVNxy.js → OnboardSubmission-DVTlnpWs.js} +2 -2
- package/dist/{PayoutAccount-Ck6sws4U.js → PayoutAccount-CZ_IK5ZU.js} +5 -5
- package/dist/{PayoutAccount-DnBQ6FbN.js → PayoutAccount-kNy7_-9C.js} +5 -5
- package/dist/{PayoutAccountSetting-B4c7sbop.js → PayoutAccountSetting-7BceG-DZ.js} +6 -6
- package/dist/{Restaurant-B2osozDk.js → Restaurant-5nB-u0bP.js} +4 -4
- package/dist/{RestaurantSetting-DQIXs7Ah.js → RestaurantSetting-DUyJurNQ.js} +3 -3
- package/dist/{Settlement-DBBY9WIM.js → Settlement-DHeLlO47.js} +3 -3
- package/dist/{Settlement-CXZLvl8I.js → Settlement-QqGieBPW.js} +4 -4
- package/dist/{SettlementTransactions-BAV1sNGf.js → SettlementTransactions-BpjEfMoR.js} +4 -4
- package/dist/{SettlementTransactions-BBgfnsFN.js → SettlementTransactions-Ubm0NSp_.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-Cp2M0B2Y.js → Status.vue_vue_type_script_setup_true_lang-D6nIOZKz.js} +1 -1
- package/dist/{Terminal-BorTfj77.js → Terminal-DK4Mmr3W.js} +5 -5
- package/dist/{TerminalSetting-rWFzpC2Z.js → TerminalSetting-kEgY2sty.js} +4 -4
- package/dist/{Transaction-CAj91hij.js → Transaction-0CY84p6O.js} +6 -6
- package/dist/{Transaction-Om7otvK6.js → Transaction-DuEVhonz.js} +10 -10
- package/dist/{TransactionOld-CX5N6ccn.js → TransactionOld-B7190ma3.js} +7 -7
- package/dist/{app-HR0qr6Dv.js → app-DyANbAkA.js} +173 -182
- package/dist/app.js +1 -1
- package/dist/{assets-BVGEYr7p.js → assets-DG5PFQ4s.js} +1 -1
- package/dist/{grafana-CaF8aiob.js → grafana-DeRsL4-h.js} +1 -1
- package/dist/{index-DopbvJEf.js → index-3PbY4C7t.js} +1 -1
- package/dist/{index-DqOV4_B-.js → index-BsQbyi1D.js} +1 -1
- package/dist/{index-C0AiPbU6.js → index-BxGtNQqK.js} +1 -1
- package/dist/{index-DvAM2qxI.js → index-Bzb-u2qj.js} +1 -1
- package/dist/{index-txpO1nd1.js → index-CmFpGuWg.js} +1 -1
- package/dist/{index-CUXcbXUR.js → index-Cr5gZLKp.js} +1 -1
- package/dist/{index-D95Xz90J.js → index-DO06YuYL.js} +2 -2
- package/dist/{index-Crg1ZVk8.js → index-F9wJsJQG.js} +1 -1
- package/dist/{index-BvWoD_Br.js → index-ViMQ27u1.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BkM8S2nJ.js → index.vue_vue_type_script_setup_true_lang-CrEpHOGu.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-BGfrXgdt.js → payout-account-DvQNG3l3.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { routes as is, i18nMessages as os } from "@feedmepos/mf-financing";
|
|
2
|
-
import { isRef as cs, ref as
|
|
2
|
+
import { isRef as cs, ref as bt, shallowRef as ls, watchEffect as As, computed as Tt, h as yt, defineComponent as rt, unref as re, openBlock as st, createBlock as jt, renderSlot as us, createCommentVNode as ds, createElementBlock as gs, createElementVNode as de, toDisplayString as Jt, defineAsyncComponent as Yn, watch as Vn, resolveComponent as Tn, onMounted as ms, onBeforeMount as hs } from "vue";
|
|
3
3
|
import { useRoute as jn, createRouter as fs, createWebHistory as ps, useRouter as bs } from "vue-router";
|
|
4
|
-
import { useCoreStore as
|
|
4
|
+
import { useCoreStore as Ot, useI18n as On } from "@feedmepos/mf-common";
|
|
5
5
|
import { defineStore as ys } from "pinia";
|
|
6
6
|
import { components as ws } from "@feedmepos/ui-library";
|
|
7
7
|
const Bs = {
|
|
@@ -1230,7 +1230,7 @@ function Ps(t, e, n) {
|
|
|
1230
1230
|
evaluating: a = void 0,
|
|
1231
1231
|
shallow: o = !0,
|
|
1232
1232
|
onError: l = Is
|
|
1233
|
-
} = r, A =
|
|
1233
|
+
} = r, A = bt(!s), d = o ? ls(e) : bt(e);
|
|
1234
1234
|
let h = 0;
|
|
1235
1235
|
return As(async (p) => {
|
|
1236
1236
|
if (!A.value)
|
|
@@ -1253,7 +1253,7 @@ function Ps(t, e, n) {
|
|
|
1253
1253
|
} finally {
|
|
1254
1254
|
a && E === h && (a.value = !1), C = !0;
|
|
1255
1255
|
}
|
|
1256
|
-
}), s ?
|
|
1256
|
+
}), s ? Tt(() => (A.value = !0, d.value)) : d;
|
|
1257
1257
|
}
|
|
1258
1258
|
var Gs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1259
1259
|
function Ys(t) {
|
|
@@ -1559,13 +1559,13 @@ var kn = { exports: {} };
|
|
|
1559
1559
|
}
|
|
1560
1560
|
function Fe(c, g) {
|
|
1561
1561
|
var m = c.keyPath, f = c.child, b = c.query, w = [];
|
|
1562
|
-
if (function Lt(J, Me, Ie, ss,
|
|
1562
|
+
if (function Lt(J, Me, Ie, ss, lt) {
|
|
1563
1563
|
if (Ie === Me.length || J == null)
|
|
1564
|
-
return void
|
|
1564
|
+
return void lt.push([J, Me[Ie - 1], ss]);
|
|
1565
1565
|
var Kt = h(Me, Ie);
|
|
1566
1566
|
if (l(J) && isNaN(Number(Kt)))
|
|
1567
|
-
for (var
|
|
1568
|
-
else Lt(h(J, Kt), Me, Ie + 1, J,
|
|
1567
|
+
for (var At = 0, as = J.length; At < as; At++) Lt(h(J, At), Me, Ie, J, lt);
|
|
1568
|
+
else Lt(h(J, Kt), Me, Ie + 1, J, lt);
|
|
1569
1569
|
}(g, m, 0, g, w), w.length === 1) {
|
|
1570
1570
|
var v = w[0];
|
|
1571
1571
|
return C(f, v[0], v[1], v[2]);
|
|
@@ -1670,10 +1670,10 @@ function Os(t, e, n) {
|
|
|
1670
1670
|
function ks(t, e) {
|
|
1671
1671
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
|
|
1672
1672
|
}
|
|
1673
|
-
function
|
|
1674
|
-
return
|
|
1673
|
+
function wt(t) {
|
|
1674
|
+
return wt = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
|
|
1675
1675
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
1676
|
-
},
|
|
1676
|
+
}, wt(t);
|
|
1677
1677
|
}
|
|
1678
1678
|
function Le(t, e) {
|
|
1679
1679
|
return Le = Object.setPrototypeOf || function(r, s) {
|
|
@@ -1701,9 +1701,9 @@ function Ue(t, e, n) {
|
|
|
1701
1701
|
function Rs(t) {
|
|
1702
1702
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function Bt(t) {
|
|
1705
1705
|
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
1706
|
-
return
|
|
1706
|
+
return Bt = function(r) {
|
|
1707
1707
|
if (r === null || !Rs(r)) return r;
|
|
1708
1708
|
if (typeof r != "function")
|
|
1709
1709
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -1712,7 +1712,7 @@ function vt(t) {
|
|
|
1712
1712
|
e.set(r, s);
|
|
1713
1713
|
}
|
|
1714
1714
|
function s() {
|
|
1715
|
-
return Ue(r, arguments,
|
|
1715
|
+
return Ue(r, arguments, wt(this).constructor);
|
|
1716
1716
|
}
|
|
1717
1717
|
return s.prototype = Object.create(r.prototype, {
|
|
1718
1718
|
constructor: {
|
|
@@ -1722,7 +1722,7 @@ function vt(t) {
|
|
|
1722
1722
|
configurable: !0
|
|
1723
1723
|
}
|
|
1724
1724
|
}), Le(s, r);
|
|
1725
|
-
},
|
|
1725
|
+
}, Bt(t);
|
|
1726
1726
|
}
|
|
1727
1727
|
function _t(t) {
|
|
1728
1728
|
if (t === void 0)
|
|
@@ -1766,8 +1766,8 @@ var xn = function(e) {
|
|
|
1766
1766
|
}, n._setMetadata = function(s) {
|
|
1767
1767
|
this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
|
|
1768
1768
|
}, e;
|
|
1769
|
-
}(
|
|
1770
|
-
function
|
|
1769
|
+
}(Bt(Error));
|
|
1770
|
+
function vt(t) {
|
|
1771
1771
|
return Array.isArray(t) ? t : [t];
|
|
1772
1772
|
}
|
|
1773
1773
|
function Fs(t) {
|
|
@@ -1795,7 +1795,7 @@ function zs(t) {
|
|
|
1795
1795
|
}
|
|
1796
1796
|
var Zs = /* @__PURE__ */ function() {
|
|
1797
1797
|
function t(n) {
|
|
1798
|
-
this.actions = n.actions || n.action, this.subject = n.subject, this.fields = !n.fields || n.fields.length === 0 ? void 0 :
|
|
1798
|
+
this.actions = n.actions || n.action, this.subject = n.subject, this.fields = !n.fields || n.fields.length === 0 ? void 0 : vt(n.fields), Object.defineProperty(this, "_fieldsPattern", {
|
|
1799
1799
|
writable: !0
|
|
1800
1800
|
}), this.inverted = !!n.inverted, this.conditions = n.conditions, Object.defineProperty(this, "_matches", {
|
|
1801
1801
|
writable: !0,
|
|
@@ -1850,7 +1850,7 @@ var Ls = /* @__PURE__ */ function() {
|
|
|
1850
1850
|
return process.env.NODE_ENV !== "production" && a.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[R].indexedRules = a.rules, this[R].hasPerFieldRules = a.hasPerFieldRules, this.emit("updated", s), this;
|
|
1851
1851
|
}, e.buildIndexFor = function(r) {
|
|
1852
1852
|
for (var s = /* @__PURE__ */ Object.create(null), a = this[R].RuleType, o = !0, l = !1, A = 0; A < r.length; A++) {
|
|
1853
|
-
var d = new a(r[A]), h = this.expandActions(d.actions), p =
|
|
1853
|
+
var d = new a(r[A]), h = this.expandActions(d.actions), p = vt(d.subject), E = r.length - A - 1;
|
|
1854
1854
|
o = !!(o && d.inverted), !l && d.fields && (l = !0);
|
|
1855
1855
|
for (var C = 0; C < p.length; C++) {
|
|
1856
1856
|
var G = p[C];
|
|
@@ -1867,7 +1867,7 @@ var Ls = /* @__PURE__ */ function() {
|
|
|
1867
1867
|
rules: s
|
|
1868
1868
|
};
|
|
1869
1869
|
}, e.expandActions = function(r) {
|
|
1870
|
-
for (var s = this[R].aliases, a =
|
|
1870
|
+
for (var s = this[R].aliases, a = vt(r), o = 0; o < a.length; ) {
|
|
1871
1871
|
var l = a[o++];
|
|
1872
1872
|
s.hasOwnProperty(l) && (a = a.concat(s[l]));
|
|
1873
1873
|
}
|
|
@@ -1923,7 +1923,7 @@ var Ls = /* @__PURE__ */ function() {
|
|
|
1923
1923
|
return this[R].originalRules;
|
|
1924
1924
|
}
|
|
1925
1925
|
}]), t;
|
|
1926
|
-
}(), i = /* @__PURE__ */ ((t) => (t.manage = "manage", t.create = "create", t.read = "read", t.update = "update", t.delete = "delete", t))(i || {}),
|
|
1926
|
+
}(), i = /* @__PURE__ */ ((t) => (t.manage = "manage", t.create = "create", t.read = "read", t.update = "update", t.delete = "delete", t))(i || {}), kt = /* @__PURE__ */ ((t) => (t.all = "all", t.restaurant = "restaurant", t.business = "business", t.delivery = "delivery", t.agent = "agent", t))(kt || {}), Rn = /* @__PURE__ */ ((t) => (t.quota = "quota", t.owner = "owner", t))(Rn || {}), u = /* @__PURE__ */ ((t) => (t.crm = "business::crm", t.crm_promotion = "business::crm::promotion", t.crm_voucher = "business::crm::voucher", t.crm_membership = "business::crm::membership", t.crm_analytic = "business::crm::analytic", t.crm_tier = "business::crm::tier", t.crm_title = "business::crm::title", t.crm_broadcast = "business::crm::broadcast", t.crm_point = "business::crm::point", t.crm_credit = "business::crm::credit", t.crm_experience = "business::crm::experience", t.crm_game = "business::crm::game", t.crm_mission = "business::crm::mission", t.crm_loyaltyMember = "business::crm::loyaltyMember", t.crm_loyaltySegment = "business::crm::loyaltySegment", t.crm_loyaltyCard = "business::crm::loyaltyCard", t.crm_referral = "business::crm::referral", t.crm_store = "business::crm::store", t.crm_transaction = "business::crm::transaction", t.crm_setting = "business::crm::setting", t.crm_bin = "business::crm::bin", t.payment = "business::payment", t.payment_payoutAccount = "business::payment::payoutAccount", t.payment_paymentOnboarding = "business::payment::paymentOnboarding", t.payment_transactions = "business::payment::transactions", t.payment_settlements = "business::payment::settlements", t.inventory_stock = "business::inventory::stock", t.inventory_stockBalance = "business::inventory::stockBalance", t.inventory_stockAdjustment = "business::inventory::stockAdjustment", t.inventory_unitCostHistory = "business::inventory::unitCostHistory", t.inventory_wastageTemplate = "business::inventory::wastageTemplate", t.inventory_closingHistory = "business::inventory::closingHistory", t.inventory_closingTemplate = "business::inventory::closingTemplate", t.inventory_closingDraft = "business::inventory::closingDraft", t.inventory_ingredient = "business::inventory::ingredient", t.inventory_ingredientGroup = "business::inventory::ingredientGroup", t.inventory_recipe = "business::inventory::recipe", t.inventory_unit = "business::inventory::unit", t.inventory_purchaseTransfer = "business::inventory::purchaseTransfer", t.inventory_orderDraftApproval = "business::inventory::orderDraftApproval", t.inventory_transferOut = "business::inventory::transferOut", t.inventory_surcharge = "business::inventory::surcharge", t.inventory_orderTemplate = "business::inventory::orderTemplate", t.inventory_supplier = "business::inventory::supplier", t.inventory_warehouse = "business::inventory::warehouse", t.inventory_publish = "business::inventory::publish", t.inventory_import = "business::inventory::import", t.inventory_integration = "business::inventory::integration", t.hrm = "business::hrm", t.hrm_employee = "business::hrm::employee", t.hrm_teamMember = "business::hrm::teamMember", t.hrm_auditLog = "business::hrm::auditLog", t.menu_item = "business::menu::item", t.menu_catalog = "business::menu::catalog", t.menu_category = "business::menu::category", t.menu_subCategory = "business::menu::subCategory", t.menu_group = "business::menu::group", t.menu_takeaway = "business::menu::takeaway", t.menu_scheduler = "business::menu::scheduler", t.menu_variant = "business::menu::variant", t.menu_cookingGuide = "business::menu::cookingGuide", t.menu_printRoute = "business::menu::printRoute", t.menu_servingSequence = "business::menu::servingSequence", t.menu_settings = "business::menu::settings", t.menu_publish = "business::menu::publish", t.menu_menuManagement = "business::menu::menuManagement", t.menu_importExport = "business::menu::importExport", t.menu_unit = "business::menu::unit", t.menu_ingredient = "business::menu::ingredient", t.menu_recipe = "business::menu::recipe", t.restaurant = "business::restaurant", t.role = "business::role", t.mdm_deviceManagement = "business::mdm::deviceManagement", t.mdm_createDevice = "business::mdm::createDevice", t.mdm_deviceBinding = "business::mdm::deviceBinding", t.mdm_customerDisplay = "business::mdm::customerDisplay", t.eInvoice_management = "business::eInvoice::management", t.eInvoice_integration = "business::eInvoice::integration", t.profile = "business::profile", t.report_createReport = "business::report::createReport", t.report_accessInsight = "business::report::accessInsight", t.report_accessSetting = "business::report::accessSetting", t.report_accessIntegration = "business::report::accessIntegration", t.report_accessOverview = "business::report::accessOverview", t.report_reports_allDefaultReports = "business::report::allDefaultReports", t.report_reports_allCustomReports = "business::report::allCustomReports", t))(u || {}), Y = /* @__PURE__ */ ((t) => (t.profile = "business::profile", t.restaurant = "business::restaurant", t.menu = "business::menu", t.promotion = "business::promotion", t.voucher = "business::voucher", t.membership = "business::membership", t.stock = "business::stock", t.permission = "business::permission", t.role = "business::role", t.wastageTemplate = "business::wastageTemplate", t.closingTemplate = "business::closingTemplate", t.orderTemplate = "business::orderTemplate", t.ingredient = "business::ingredient", t.recipe = "business::recipe", t.unit = "business::unit", t.supplier = "business::supplier", t.warehouse = "business::warehouse", t.publish = "business::publish", t.integration = "business::integration", t.orderDraft = "business::orderDraft", t.unitCostHistory = "business::unitCostHistory", t))(Y || {});
|
|
1927
1927
|
const Ks = "access-denied", Js = {
|
|
1928
1928
|
[Y.permission]: u.hrm_teamMember,
|
|
1929
1929
|
[Y.promotion]: u.crm_promotion,
|
|
@@ -2015,9 +2015,9 @@ async function na(t, e) {
|
|
|
2015
2015
|
canAccess: !0
|
|
2016
2016
|
};
|
|
2017
2017
|
}
|
|
2018
|
-
var
|
|
2018
|
+
var Dt = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Dt || {});
|
|
2019
2019
|
function ra() {
|
|
2020
|
-
const t = jn(), { sessionUser: e } =
|
|
2020
|
+
const t = jn(), { sessionUser: e } = Ot();
|
|
2021
2021
|
return Ps(
|
|
2022
2022
|
async () => {
|
|
2023
2023
|
t.matched;
|
|
@@ -2056,7 +2056,7 @@ const sa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2056
2056
|
subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
|
|
2057
2057
|
}, da = {
|
|
2058
2058
|
noPermission: ua
|
|
2059
|
-
}, ga = { class: "w-full h-full flex justify-center items-center" }, ma = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, ha = { class: "w-[300px] h-[300px]" }, fa = ["src"], pa = { class: "text-2xl" }, ba = { class: "text-xl" }, ya = /* @__PURE__ */
|
|
2059
|
+
}, ga = { class: "w-full h-full flex justify-center items-center" }, ma = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, ha = { class: "w-[300px] h-[300px]" }, fa = ["src"], pa = { class: "text-2xl" }, ba = { class: "text-xl" }, ya = /* @__PURE__ */ rt({
|
|
2060
2060
|
__name: "NoPermission",
|
|
2061
2061
|
setup(t) {
|
|
2062
2062
|
const { t: e } = On({
|
|
@@ -2067,7 +2067,7 @@ const sa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2067
2067
|
"th-TH": da
|
|
2068
2068
|
}
|
|
2069
2069
|
});
|
|
2070
|
-
return (n, r) => (
|
|
2070
|
+
return (n, r) => (st(), gs("div", ga, [
|
|
2071
2071
|
de("div", ma, [
|
|
2072
2072
|
de("div", ha, [
|
|
2073
2073
|
de("img", {
|
|
@@ -2082,18 +2082,18 @@ const sa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2082
2082
|
])
|
|
2083
2083
|
]));
|
|
2084
2084
|
}
|
|
2085
|
-
}), wa = /* @__PURE__ */
|
|
2085
|
+
}), wa = /* @__PURE__ */ rt({
|
|
2086
2086
|
__name: "PermissionWrapper",
|
|
2087
2087
|
setup(t) {
|
|
2088
2088
|
const e = ra();
|
|
2089
|
-
return (n, r) => re(e) === re(
|
|
2089
|
+
return (n, r) => re(e) === re(Dt).Denied ? (st(), jt(ya, { key: 0 })) : re(e) === re(Dt).Allowed ? us(n.$slots, "default", { key: 1 }) : ds("", !0);
|
|
2090
2090
|
}
|
|
2091
2091
|
});
|
|
2092
2092
|
function Fn(t) {
|
|
2093
2093
|
return {
|
|
2094
2094
|
inheritAttrs: !1,
|
|
2095
2095
|
setup(e, { attrs: n }) {
|
|
2096
|
-
return () =>
|
|
2096
|
+
return () => yt(wa, {}, { default: () => yt(t, n) });
|
|
2097
2097
|
}
|
|
2098
2098
|
};
|
|
2099
2099
|
}
|
|
@@ -2575,7 +2575,7 @@ const j = [
|
|
|
2575
2575
|
subject: y.inventory,
|
|
2576
2576
|
actions: [i.read]
|
|
2577
2577
|
}
|
|
2578
|
-
],
|
|
2578
|
+
], xt = [
|
|
2579
2579
|
...j,
|
|
2580
2580
|
{
|
|
2581
2581
|
label: "Stock",
|
|
@@ -2625,11 +2625,11 @@ const j = [
|
|
|
2625
2625
|
}
|
|
2626
2626
|
];
|
|
2627
2627
|
[
|
|
2628
|
-
...
|
|
2628
|
+
...xt,
|
|
2629
2629
|
...rr,
|
|
2630
2630
|
...sr
|
|
2631
2631
|
];
|
|
2632
|
-
const
|
|
2632
|
+
const Rt = [
|
|
2633
2633
|
...j,
|
|
2634
2634
|
{
|
|
2635
2635
|
label: "Closing",
|
|
@@ -2692,7 +2692,7 @@ const Nt = [
|
|
|
2692
2692
|
}
|
|
2693
2693
|
];
|
|
2694
2694
|
[
|
|
2695
|
-
...
|
|
2695
|
+
...Rt,
|
|
2696
2696
|
...ar,
|
|
2697
2697
|
...ir
|
|
2698
2698
|
];
|
|
@@ -2902,14 +2902,14 @@ const Ka = [
|
|
|
2902
2902
|
];
|
|
2903
2903
|
[
|
|
2904
2904
|
...j,
|
|
2905
|
-
...
|
|
2906
|
-
...
|
|
2905
|
+
...xt,
|
|
2906
|
+
...Rt
|
|
2907
2907
|
];
|
|
2908
2908
|
const ti = {
|
|
2909
2909
|
[`set_${u.inventory_stockBalance}`]: {
|
|
2910
2910
|
key: "sys:inventory:stock_balance",
|
|
2911
2911
|
name: "Stock Balance",
|
|
2912
|
-
permissions:
|
|
2912
|
+
permissions: xt
|
|
2913
2913
|
},
|
|
2914
2914
|
[`set_${u.inventory_stockAdjustment}`]: {
|
|
2915
2915
|
key: "sys:inventory:stock_adjustment",
|
|
@@ -2929,7 +2929,7 @@ const ti = {
|
|
|
2929
2929
|
[`set_${u.inventory_closingHistory}`]: {
|
|
2930
2930
|
key: "sys:inventory:closing_history",
|
|
2931
2931
|
name: "Closing History",
|
|
2932
|
-
permissions:
|
|
2932
|
+
permissions: Rt
|
|
2933
2933
|
},
|
|
2934
2934
|
[`set_${u.inventory_closingTemplate}`]: {
|
|
2935
2935
|
key: "sys:inventory:closing_template",
|
|
@@ -3125,7 +3125,7 @@ const ai = () => ({
|
|
|
3125
3125
|
validationManifest: {
|
|
3126
3126
|
requiredCaslPermissions: [
|
|
3127
3127
|
{
|
|
3128
|
-
subject:
|
|
3128
|
+
subject: kt.all,
|
|
3129
3129
|
action: i.manage
|
|
3130
3130
|
}
|
|
3131
3131
|
]
|
|
@@ -3138,7 +3138,7 @@ const ai = () => ({
|
|
|
3138
3138
|
sidebarDisplay: "Restaurants",
|
|
3139
3139
|
section: "payment-gateway"
|
|
3140
3140
|
},
|
|
3141
|
-
component: () => import("./Restaurant-
|
|
3141
|
+
component: () => import("./Restaurant-5nB-u0bP.js")
|
|
3142
3142
|
},
|
|
3143
3143
|
{
|
|
3144
3144
|
path: "/admin/restaurants/:restaurantId",
|
|
@@ -3147,7 +3147,7 @@ const ai = () => ({
|
|
|
3147
3147
|
meta: {
|
|
3148
3148
|
parent: "mf-payment-admin.restaurant"
|
|
3149
3149
|
},
|
|
3150
|
-
component: () => import("./RestaurantSetting-
|
|
3150
|
+
component: () => import("./RestaurantSetting-DUyJurNQ.js")
|
|
3151
3151
|
},
|
|
3152
3152
|
{
|
|
3153
3153
|
path: "/admin/payout-accounts",
|
|
@@ -3156,7 +3156,7 @@ const ai = () => ({
|
|
|
3156
3156
|
sidebarDisplay: "Payout Accounts",
|
|
3157
3157
|
section: "payment-gateway"
|
|
3158
3158
|
},
|
|
3159
|
-
component: () => import("./PayoutAccount-
|
|
3159
|
+
component: () => import("./PayoutAccount-kNy7_-9C.js")
|
|
3160
3160
|
},
|
|
3161
3161
|
{
|
|
3162
3162
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -3165,7 +3165,7 @@ const ai = () => ({
|
|
|
3165
3165
|
meta: {
|
|
3166
3166
|
parent: "mf-payment-admin.payout-account"
|
|
3167
3167
|
},
|
|
3168
|
-
component: () => import("./PayoutAccountSetting-
|
|
3168
|
+
component: () => import("./PayoutAccountSetting-7BceG-DZ.js")
|
|
3169
3169
|
},
|
|
3170
3170
|
{
|
|
3171
3171
|
path: "/admin/onboarding",
|
|
@@ -3174,7 +3174,7 @@ const ai = () => ({
|
|
|
3174
3174
|
sidebarDisplay: "Payment Onboarding",
|
|
3175
3175
|
section: "payment-gateway"
|
|
3176
3176
|
},
|
|
3177
|
-
component: () => import("./OnboardSubmission-
|
|
3177
|
+
component: () => import("./OnboardSubmission-BcutTJ5J.js")
|
|
3178
3178
|
},
|
|
3179
3179
|
{
|
|
3180
3180
|
path: "/admin/onboarding/:submissionId",
|
|
@@ -3183,7 +3183,7 @@ const ai = () => ({
|
|
|
3183
3183
|
meta: {
|
|
3184
3184
|
parent: "mf-payment-admin.onboard-submission"
|
|
3185
3185
|
},
|
|
3186
|
-
component: () => import("./OnboardForm-
|
|
3186
|
+
component: () => import("./OnboardForm-C0GBRILD.js")
|
|
3187
3187
|
},
|
|
3188
3188
|
{
|
|
3189
3189
|
path: "/admin/terminal/pos",
|
|
@@ -3192,7 +3192,7 @@ const ai = () => ({
|
|
|
3192
3192
|
sidebarDisplay: "POS",
|
|
3193
3193
|
section: "device"
|
|
3194
3194
|
},
|
|
3195
|
-
component: () => import("./Terminal-
|
|
3195
|
+
component: () => import("./Terminal-DK4Mmr3W.js"),
|
|
3196
3196
|
props: {
|
|
3197
3197
|
type: "POS"
|
|
3198
3198
|
}
|
|
@@ -3204,7 +3204,7 @@ const ai = () => ({
|
|
|
3204
3204
|
sidebarDisplay: "Kiosks",
|
|
3205
3205
|
section: "device"
|
|
3206
3206
|
},
|
|
3207
|
-
component: () => import("./Terminal-
|
|
3207
|
+
component: () => import("./Terminal-DK4Mmr3W.js"),
|
|
3208
3208
|
props: {
|
|
3209
3209
|
type: "KIOSK"
|
|
3210
3210
|
}
|
|
@@ -3216,7 +3216,7 @@ const ai = () => ({
|
|
|
3216
3216
|
sidebarDisplay: "Terminals",
|
|
3217
3217
|
section: "device"
|
|
3218
3218
|
},
|
|
3219
|
-
component: () => import("./Terminal-
|
|
3219
|
+
component: () => import("./Terminal-DK4Mmr3W.js"),
|
|
3220
3220
|
props: {
|
|
3221
3221
|
type: "TERMINAL"
|
|
3222
3222
|
}
|
|
@@ -3228,7 +3228,7 @@ const ai = () => ({
|
|
|
3228
3228
|
meta: {
|
|
3229
3229
|
parent: "mf-payment-admin.pos"
|
|
3230
3230
|
},
|
|
3231
|
-
component: () => import("./TerminalSetting-
|
|
3231
|
+
component: () => import("./TerminalSetting-kEgY2sty.js")
|
|
3232
3232
|
},
|
|
3233
3233
|
{
|
|
3234
3234
|
path: "/admin/terminal/kiosk/:terminalId",
|
|
@@ -3237,7 +3237,7 @@ const ai = () => ({
|
|
|
3237
3237
|
meta: {
|
|
3238
3238
|
parent: "mf-payment-admin.kiosk"
|
|
3239
3239
|
},
|
|
3240
|
-
component: () => import("./TerminalSetting-
|
|
3240
|
+
component: () => import("./TerminalSetting-kEgY2sty.js")
|
|
3241
3241
|
},
|
|
3242
3242
|
{
|
|
3243
3243
|
path: "/admin/terminal/terminal/:terminalId",
|
|
@@ -3246,7 +3246,7 @@ const ai = () => ({
|
|
|
3246
3246
|
meta: {
|
|
3247
3247
|
parent: "mf-payment-admin.terminal"
|
|
3248
3248
|
},
|
|
3249
|
-
component: () => import("./TerminalSetting-
|
|
3249
|
+
component: () => import("./TerminalSetting-kEgY2sty.js")
|
|
3250
3250
|
},
|
|
3251
3251
|
{
|
|
3252
3252
|
path: "/admin/transaction",
|
|
@@ -3254,7 +3254,7 @@ const ai = () => ({
|
|
|
3254
3254
|
meta: {
|
|
3255
3255
|
sidebarDisplay: "Transactions"
|
|
3256
3256
|
},
|
|
3257
|
-
component: () => import("./Transaction-
|
|
3257
|
+
component: () => import("./Transaction-0CY84p6O.js")
|
|
3258
3258
|
},
|
|
3259
3259
|
{
|
|
3260
3260
|
path: "/admin/chargeback",
|
|
@@ -3262,7 +3262,7 @@ const ai = () => ({
|
|
|
3262
3262
|
meta: {
|
|
3263
3263
|
sidebarDisplay: "Chargebacks"
|
|
3264
3264
|
},
|
|
3265
|
-
component: () => import("./Chargeback-
|
|
3265
|
+
component: () => import("./Chargeback-D8muUSaC.js")
|
|
3266
3266
|
},
|
|
3267
3267
|
{
|
|
3268
3268
|
path: "/admin/settlement",
|
|
@@ -3270,7 +3270,7 @@ const ai = () => ({
|
|
|
3270
3270
|
meta: {
|
|
3271
3271
|
sidebarDisplay: "Settlements"
|
|
3272
3272
|
},
|
|
3273
|
-
component: () => import("./Settlement-
|
|
3273
|
+
component: () => import("./Settlement-DHeLlO47.js")
|
|
3274
3274
|
},
|
|
3275
3275
|
{
|
|
3276
3276
|
path: "/admin/settlement/:settlementId",
|
|
@@ -3279,7 +3279,7 @@ const ai = () => ({
|
|
|
3279
3279
|
meta: {
|
|
3280
3280
|
parent: "mf-payment-admin.settlement"
|
|
3281
3281
|
},
|
|
3282
|
-
component: () => import("./SettlementTransactions-
|
|
3282
|
+
component: () => import("./SettlementTransactions-Ubm0NSp_.js")
|
|
3283
3283
|
}
|
|
3284
3284
|
].map((t) => ({
|
|
3285
3285
|
...t,
|
|
@@ -3287,7 +3287,7 @@ const ai = () => ({
|
|
|
3287
3287
|
...t.meta,
|
|
3288
3288
|
...ai()
|
|
3289
3289
|
}
|
|
3290
|
-
})),
|
|
3290
|
+
})), Nt = [
|
|
3291
3291
|
{
|
|
3292
3292
|
path: "",
|
|
3293
3293
|
redirect: { name: "mf-payment-payout-account" }
|
|
@@ -3295,7 +3295,7 @@ const ai = () => ({
|
|
|
3295
3295
|
{
|
|
3296
3296
|
path: "/payout-account",
|
|
3297
3297
|
name: "mf-payment-payout-account",
|
|
3298
|
-
component: () => import("./PayoutAccount-
|
|
3298
|
+
component: () => import("./PayoutAccount-CZ_IK5ZU.js"),
|
|
3299
3299
|
meta: {
|
|
3300
3300
|
sidebarDisplay: "i18n:payment.routes.payout_account",
|
|
3301
3301
|
validationManifest: {
|
|
@@ -3311,7 +3311,7 @@ const ai = () => ({
|
|
|
3311
3311
|
{
|
|
3312
3312
|
path: "/onboard-submission",
|
|
3313
3313
|
name: "mf-payment-onboard-submission",
|
|
3314
|
-
component: () => import("./OnboardSubmission-
|
|
3314
|
+
component: () => import("./OnboardSubmission-DVTlnpWs.js"),
|
|
3315
3315
|
meta: {
|
|
3316
3316
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
3317
3317
|
region: { MY: !0, TH: !0, AU: !0 },
|
|
@@ -3329,7 +3329,7 @@ const ai = () => ({
|
|
|
3329
3329
|
path: "/onboard-submission/:type/:submission?",
|
|
3330
3330
|
name: "mf-payment-onboard-submission-form",
|
|
3331
3331
|
props: !0,
|
|
3332
|
-
component: () => import("./OnboardForm-
|
|
3332
|
+
component: () => import("./OnboardForm-D0RX-eMY.js"),
|
|
3333
3333
|
meta: {
|
|
3334
3334
|
parent: "mf-payment-onboard-submission",
|
|
3335
3335
|
validationManifest: {
|
|
@@ -3345,7 +3345,7 @@ const ai = () => ({
|
|
|
3345
3345
|
{
|
|
3346
3346
|
path: "/transaction-old",
|
|
3347
3347
|
name: "mf-payment-old-transaction",
|
|
3348
|
-
component: () => import("./TransactionOld-
|
|
3348
|
+
component: () => import("./TransactionOld-B7190ma3.js"),
|
|
3349
3349
|
meta: {
|
|
3350
3350
|
sidebarDisplay: "i18n:payment.routes.transaction",
|
|
3351
3351
|
validationManifest: {
|
|
@@ -3361,7 +3361,7 @@ const ai = () => ({
|
|
|
3361
3361
|
{
|
|
3362
3362
|
path: "/transaction",
|
|
3363
3363
|
name: "mf-payment-transaction",
|
|
3364
|
-
component: () => import("./Transaction-
|
|
3364
|
+
component: () => import("./Transaction-DuEVhonz.js"),
|
|
3365
3365
|
meta: {
|
|
3366
3366
|
sidebarDisplay: "i18n:payment.routes.transaction_new",
|
|
3367
3367
|
sidebarNew: !0,
|
|
@@ -3378,7 +3378,7 @@ const ai = () => ({
|
|
|
3378
3378
|
{
|
|
3379
3379
|
path: "/settlement",
|
|
3380
3380
|
name: "mf-payment-settlement",
|
|
3381
|
-
component: () => import("./Settlement-
|
|
3381
|
+
component: () => import("./Settlement-QqGieBPW.js"),
|
|
3382
3382
|
meta: {
|
|
3383
3383
|
sidebarDisplay: "i18n:payment.routes.settlement",
|
|
3384
3384
|
region: { MY: !0, SG: !0 },
|
|
@@ -3396,7 +3396,7 @@ const ai = () => ({
|
|
|
3396
3396
|
path: "/settlement/:settlementId",
|
|
3397
3397
|
name: "mf-payment-settlement-transaction",
|
|
3398
3398
|
props: !0,
|
|
3399
|
-
component: () => import("./SettlementTransactions-
|
|
3399
|
+
component: () => import("./SettlementTransactions-BpjEfMoR.js"),
|
|
3400
3400
|
meta: {
|
|
3401
3401
|
parent: "mf-payment-settlement",
|
|
3402
3402
|
validationManifest: {
|
|
@@ -3436,7 +3436,7 @@ const ai = () => ({
|
|
|
3436
3436
|
], ii = ys("mf-payment-iframe", () => {
|
|
3437
3437
|
const t = {
|
|
3438
3438
|
isIframe: !1
|
|
3439
|
-
}, e =
|
|
3439
|
+
}, e = Tt(() => t);
|
|
3440
3440
|
function n(r) {
|
|
3441
3441
|
t.isIframe = r;
|
|
3442
3442
|
}
|
|
@@ -3877,7 +3877,7 @@ function Mi(t) {
|
|
|
3877
3877
|
return !1;
|
|
3878
3878
|
return !0;
|
|
3879
3879
|
}
|
|
3880
|
-
function
|
|
3880
|
+
function Ke(t, e) {
|
|
3881
3881
|
if (t === e)
|
|
3882
3882
|
return !0;
|
|
3883
3883
|
const n = Object.keys(t), r = Object.keys(e);
|
|
@@ -3886,7 +3886,7 @@ function Je(t, e) {
|
|
|
3886
3886
|
return !1;
|
|
3887
3887
|
const a = t[s], o = e[s];
|
|
3888
3888
|
if (nn(a) && nn(o)) {
|
|
3889
|
-
if (!
|
|
3889
|
+
if (!Ke(a, o))
|
|
3890
3890
|
return !1;
|
|
3891
3891
|
} else if (a !== o)
|
|
3892
3892
|
return !1;
|
|
@@ -3973,7 +3973,7 @@ class Pi {
|
|
|
3973
3973
|
next: e,
|
|
3974
3974
|
error: n,
|
|
3975
3975
|
complete: r
|
|
3976
|
-
}, s.next === void 0 && (s.next =
|
|
3976
|
+
}, s.next === void 0 && (s.next = ut), s.error === void 0 && (s.error = ut), s.complete === void 0 && (s.complete = ut);
|
|
3977
3977
|
const a = this.unsubscribeOne.bind(this, this.observers.length);
|
|
3978
3978
|
return this.finalized && this.task.then(() => {
|
|
3979
3979
|
try {
|
|
@@ -4019,7 +4019,7 @@ function Gi(t, e) {
|
|
|
4019
4019
|
return !0;
|
|
4020
4020
|
return !1;
|
|
4021
4021
|
}
|
|
4022
|
-
function
|
|
4022
|
+
function ut() {
|
|
4023
4023
|
}
|
|
4024
4024
|
/**
|
|
4025
4025
|
* @license
|
|
@@ -4426,7 +4426,7 @@ function Hi() {
|
|
|
4426
4426
|
IDBCursor.prototype.continuePrimaryKey
|
|
4427
4427
|
]);
|
|
4428
4428
|
}
|
|
4429
|
-
const yr = /* @__PURE__ */ new WeakMap(),
|
|
4429
|
+
const yr = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap();
|
|
4430
4430
|
function qi(t) {
|
|
4431
4431
|
const e = new Promise((n, r) => {
|
|
4432
4432
|
const s = () => {
|
|
@@ -4444,7 +4444,7 @@ function qi(t) {
|
|
|
4444
4444
|
}), Ht.set(e, t), e;
|
|
4445
4445
|
}
|
|
4446
4446
|
function Xi(t) {
|
|
4447
|
-
if (
|
|
4447
|
+
if (Ct.has(t))
|
|
4448
4448
|
return;
|
|
4449
4449
|
const e = new Promise((n, r) => {
|
|
4450
4450
|
const s = () => {
|
|
@@ -4456,13 +4456,13 @@ function Xi(t) {
|
|
|
4456
4456
|
};
|
|
4457
4457
|
t.addEventListener("complete", a), t.addEventListener("error", o), t.addEventListener("abort", o);
|
|
4458
4458
|
});
|
|
4459
|
-
|
|
4459
|
+
Ct.set(t, e);
|
|
4460
4460
|
}
|
|
4461
|
-
let
|
|
4461
|
+
let Et = {
|
|
4462
4462
|
get(t, e, n) {
|
|
4463
4463
|
if (t instanceof IDBTransaction) {
|
|
4464
4464
|
if (e === "done")
|
|
4465
|
-
return
|
|
4465
|
+
return Ct.get(t);
|
|
4466
4466
|
if (e === "objectStoreNames")
|
|
4467
4467
|
return t.objectStoreNames || wr.get(t);
|
|
4468
4468
|
if (e === "store")
|
|
@@ -4478,30 +4478,30 @@ let Mt = {
|
|
|
4478
4478
|
}
|
|
4479
4479
|
};
|
|
4480
4480
|
function Qi(t) {
|
|
4481
|
-
|
|
4481
|
+
Et = t(Et);
|
|
4482
4482
|
}
|
|
4483
4483
|
function Ui(t) {
|
|
4484
4484
|
return t === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...n) {
|
|
4485
|
-
const r = t.call(
|
|
4485
|
+
const r = t.call(gt(this), e, ...n);
|
|
4486
4486
|
return wr.set(r, e.sort ? e.sort() : [e]), se(r);
|
|
4487
4487
|
} : Hi().includes(t) ? function(...e) {
|
|
4488
|
-
return t.apply(
|
|
4488
|
+
return t.apply(gt(this), e), se(yr.get(this));
|
|
4489
4489
|
} : function(...e) {
|
|
4490
|
-
return se(t.apply(
|
|
4490
|
+
return se(t.apply(gt(this), e));
|
|
4491
4491
|
};
|
|
4492
4492
|
}
|
|
4493
4493
|
function Wi(t) {
|
|
4494
|
-
return typeof t == "function" ? Ui(t) : (t instanceof IDBTransaction && Xi(t), Ni(t, Fi()) ? new Proxy(t,
|
|
4494
|
+
return typeof t == "function" ? Ui(t) : (t instanceof IDBTransaction && Xi(t), Ni(t, Fi()) ? new Proxy(t, Et) : t);
|
|
4495
4495
|
}
|
|
4496
4496
|
function se(t) {
|
|
4497
4497
|
if (t instanceof IDBRequest)
|
|
4498
4498
|
return qi(t);
|
|
4499
|
-
if (
|
|
4500
|
-
return
|
|
4499
|
+
if (dt.has(t))
|
|
4500
|
+
return dt.get(t);
|
|
4501
4501
|
const e = Wi(t);
|
|
4502
|
-
return e !== t && (
|
|
4502
|
+
return e !== t && (dt.set(t, e), Ht.set(e, t)), e;
|
|
4503
4503
|
}
|
|
4504
|
-
const
|
|
4504
|
+
const gt = (t) => Ht.get(t);
|
|
4505
4505
|
function Si(t, e, { blocked: n, upgrade: r, blocking: s, terminated: a } = {}) {
|
|
4506
4506
|
const o = indexedDB.open(t, e), l = se(o);
|
|
4507
4507
|
return r && o.addEventListener("upgradeneeded", (A) => {
|
|
@@ -4516,12 +4516,12 @@ function Si(t, e, { blocked: n, upgrade: r, blocking: s, terminated: a } = {}) {
|
|
|
4516
4516
|
}).catch(() => {
|
|
4517
4517
|
}), l;
|
|
4518
4518
|
}
|
|
4519
|
-
const zi = ["get", "getKey", "getAll", "getAllKeys", "count"], Zi = ["put", "add", "delete", "clear"],
|
|
4519
|
+
const zi = ["get", "getKey", "getAll", "getAllKeys", "count"], Zi = ["put", "add", "delete", "clear"], mt = /* @__PURE__ */ new Map();
|
|
4520
4520
|
function an(t, e) {
|
|
4521
4521
|
if (!(t instanceof IDBDatabase && !(e in t) && typeof e == "string"))
|
|
4522
4522
|
return;
|
|
4523
|
-
if (
|
|
4524
|
-
return
|
|
4523
|
+
if (mt.get(e))
|
|
4524
|
+
return mt.get(e);
|
|
4525
4525
|
const n = e.replace(/FromIndex$/, ""), r = e !== n, s = Zi.includes(n);
|
|
4526
4526
|
if (
|
|
4527
4527
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
@@ -4536,7 +4536,7 @@ function an(t, e) {
|
|
|
4536
4536
|
s && A.done
|
|
4537
4537
|
]))[0];
|
|
4538
4538
|
};
|
|
4539
|
-
return
|
|
4539
|
+
return mt.set(e, a), a;
|
|
4540
4540
|
}
|
|
4541
4541
|
Qi((t) => ({
|
|
4542
4542
|
...t,
|
|
@@ -4579,7 +4579,7 @@ function Ki(t) {
|
|
|
4579
4579
|
const e = t.getComponent();
|
|
4580
4580
|
return (e == null ? void 0 : e.type) === "VERSION";
|
|
4581
4581
|
}
|
|
4582
|
-
const
|
|
4582
|
+
const Mt = "@firebase/app", on = "0.10.13";
|
|
4583
4583
|
/**
|
|
4584
4584
|
* @license
|
|
4585
4585
|
* Copyright 2019 Google LLC
|
|
@@ -4613,8 +4613,8 @@ const Z = new br("@firebase/app"), Ji = "@firebase/app-compat", _i = "@firebase/
|
|
|
4613
4613
|
* See the License for the specific language governing permissions and
|
|
4614
4614
|
* limitations under the License.
|
|
4615
4615
|
*/
|
|
4616
|
-
const
|
|
4617
|
-
[
|
|
4616
|
+
const It = "[DEFAULT]", Eo = {
|
|
4617
|
+
[Mt]: "fire-core",
|
|
4618
4618
|
[Ji]: "fire-core-compat",
|
|
4619
4619
|
[$i]: "fire-analytics",
|
|
4620
4620
|
[_i]: "fire-analytics-compat",
|
|
@@ -4659,7 +4659,7 @@ const Pt = "[DEFAULT]", Eo = {
|
|
|
4659
4659
|
* See the License for the specific language governing permissions and
|
|
4660
4660
|
* limitations under the License.
|
|
4661
4661
|
*/
|
|
4662
|
-
const
|
|
4662
|
+
const Je = /* @__PURE__ */ new Map(), Mo = /* @__PURE__ */ new Map(), Pt = /* @__PURE__ */ new Map();
|
|
4663
4663
|
function cn(t, e) {
|
|
4664
4664
|
try {
|
|
4665
4665
|
t.container.addComponent(e);
|
|
@@ -4669,10 +4669,10 @@ function cn(t, e) {
|
|
|
4669
4669
|
}
|
|
4670
4670
|
function Ye(t) {
|
|
4671
4671
|
const e = t.name;
|
|
4672
|
-
if (
|
|
4672
|
+
if (Pt.has(e))
|
|
4673
4673
|
return Z.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
4674
|
-
|
|
4675
|
-
for (const n of
|
|
4674
|
+
Pt.set(e, t);
|
|
4675
|
+
for (const n of Je.values())
|
|
4676
4676
|
cn(n, t);
|
|
4677
4677
|
for (const n of Mo.values())
|
|
4678
4678
|
cn(n, t);
|
|
@@ -4795,7 +4795,7 @@ const ke = Co;
|
|
|
4795
4795
|
function vr(t, e = {}) {
|
|
4796
4796
|
let n = t;
|
|
4797
4797
|
typeof e != "object" && (e = { name: e });
|
|
4798
|
-
const r = Object.assign({ name:
|
|
4798
|
+
const r = Object.assign({ name: It, automaticDataCollectionEnabled: !1 }, e), s = r.name;
|
|
4799
4799
|
if (typeof s != "string" || !s)
|
|
4800
4800
|
throw ae.create("bad-app-name", {
|
|
4801
4801
|
appName: String(s)
|
|
@@ -4805,21 +4805,21 @@ function vr(t, e = {}) {
|
|
|
4805
4805
|
"no-options"
|
|
4806
4806
|
/* AppError.NO_OPTIONS */
|
|
4807
4807
|
);
|
|
4808
|
-
const a =
|
|
4808
|
+
const a = Je.get(s);
|
|
4809
4809
|
if (a) {
|
|
4810
|
-
if (
|
|
4810
|
+
if (Ke(n, a.options) && Ke(r, a.config))
|
|
4811
4811
|
return a;
|
|
4812
4812
|
throw ae.create("duplicate-app", { appName: s });
|
|
4813
4813
|
}
|
|
4814
4814
|
const o = new ji(s);
|
|
4815
|
-
for (const A of
|
|
4815
|
+
for (const A of Pt.values())
|
|
4816
4816
|
o.addComponent(A);
|
|
4817
4817
|
const l = new Po(n, r, o);
|
|
4818
|
-
return
|
|
4818
|
+
return Je.set(s, l), l;
|
|
4819
4819
|
}
|
|
4820
|
-
function Go(t =
|
|
4821
|
-
const e =
|
|
4822
|
-
if (!e && t ===
|
|
4820
|
+
function Go(t = It) {
|
|
4821
|
+
const e = Je.get(t);
|
|
4822
|
+
if (!e && t === It && fr())
|
|
4823
4823
|
return vr();
|
|
4824
4824
|
if (!e)
|
|
4825
4825
|
throw ae.create("no-app", { appName: t });
|
|
@@ -4861,9 +4861,9 @@ function he(t, e, n) {
|
|
|
4861
4861
|
* limitations under the License.
|
|
4862
4862
|
*/
|
|
4863
4863
|
const Yo = "firebase-heartbeat-database", Vo = 1, Ve = "firebase-heartbeat-store";
|
|
4864
|
-
let
|
|
4864
|
+
let ht = null;
|
|
4865
4865
|
function Dr() {
|
|
4866
|
-
return
|
|
4866
|
+
return ht || (ht = Si(Yo, Vo, {
|
|
4867
4867
|
upgrade: (t, e) => {
|
|
4868
4868
|
switch (e) {
|
|
4869
4869
|
case 0:
|
|
@@ -4878,7 +4878,7 @@ function Dr() {
|
|
|
4878
4878
|
throw ae.create("idb-open", {
|
|
4879
4879
|
originalErrorMessage: t.message
|
|
4880
4880
|
});
|
|
4881
|
-
})),
|
|
4881
|
+
})), ht;
|
|
4882
4882
|
}
|
|
4883
4883
|
async function To(t) {
|
|
4884
4884
|
try {
|
|
@@ -5079,7 +5079,7 @@ function No(t) {
|
|
|
5079
5079
|
(e) => new ko(e),
|
|
5080
5080
|
"PRIVATE"
|
|
5081
5081
|
/* ComponentType.PRIVATE */
|
|
5082
|
-
)), he(
|
|
5082
|
+
)), he(Mt, on, t), he(Mt, on, "esm2017"), he("fire-js", "");
|
|
5083
5083
|
}
|
|
5084
5084
|
No("");
|
|
5085
5085
|
var Fo = "firebase", Ho = "10.14.1";
|
|
@@ -5139,12 +5139,12 @@ const qo = Er, Mr = new je("auth", "Firebase", Er());
|
|
|
5139
5139
|
* See the License for the specific language governing permissions and
|
|
5140
5140
|
* limitations under the License.
|
|
5141
5141
|
*/
|
|
5142
|
-
const
|
|
5142
|
+
const _e = new br("@firebase/auth");
|
|
5143
5143
|
function Xo(t, ...e) {
|
|
5144
|
-
|
|
5144
|
+
_e.logLevel <= I.WARN && _e.warn(`Auth (${ke}): ${t}`, ...e);
|
|
5145
5145
|
}
|
|
5146
5146
|
function We(t, ...e) {
|
|
5147
|
-
|
|
5147
|
+
_e.logLevel <= I.ERROR && _e.error(`Auth (${ke}): ${t}`, ...e);
|
|
5148
5148
|
}
|
|
5149
5149
|
/**
|
|
5150
5150
|
* @license
|
|
@@ -5211,7 +5211,7 @@ function K(t, e) {
|
|
|
5211
5211
|
* See the License for the specific language governing permissions and
|
|
5212
5212
|
* limitations under the License.
|
|
5213
5213
|
*/
|
|
5214
|
-
function
|
|
5214
|
+
function Gt() {
|
|
5215
5215
|
var t;
|
|
5216
5216
|
return typeof self < "u" && ((t = self.location) === null || t === void 0 ? void 0 : t.href) || "";
|
|
5217
5217
|
}
|
|
@@ -5465,7 +5465,7 @@ const So = {
|
|
|
5465
5465
|
* limitations under the License.
|
|
5466
5466
|
*/
|
|
5467
5467
|
const zo = new xe(3e4, 6e4);
|
|
5468
|
-
function
|
|
5468
|
+
function at(t, e) {
|
|
5469
5469
|
return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
|
|
5470
5470
|
}
|
|
5471
5471
|
async function Be(t, e, n, r, s = {}) {
|
|
@@ -5613,14 +5613,14 @@ async function Ko(t, e = !1) {
|
|
|
5613
5613
|
return {
|
|
5614
5614
|
claims: s,
|
|
5615
5615
|
token: r,
|
|
5616
|
-
authTime: Ge(
|
|
5617
|
-
issuedAtTime: Ge(
|
|
5618
|
-
expirationTime: Ge(
|
|
5616
|
+
authTime: Ge(ft(s.auth_time)),
|
|
5617
|
+
issuedAtTime: Ge(ft(s.iat)),
|
|
5618
|
+
expirationTime: Ge(ft(s.exp)),
|
|
5619
5619
|
signInProvider: o || null,
|
|
5620
5620
|
signInSecondFactor: (a == null ? void 0 : a.sign_in_second_factor) || null
|
|
5621
5621
|
};
|
|
5622
5622
|
}
|
|
5623
|
-
function
|
|
5623
|
+
function ft(t) {
|
|
5624
5624
|
return Number(t) * 1e3;
|
|
5625
5625
|
}
|
|
5626
5626
|
function Ut(t) {
|
|
@@ -5756,7 +5756,7 @@ class _o {
|
|
|
5756
5756
|
* See the License for the specific language governing permissions and
|
|
5757
5757
|
* limitations under the License.
|
|
5758
5758
|
*/
|
|
5759
|
-
class
|
|
5759
|
+
class Yt {
|
|
5760
5760
|
constructor(e, n) {
|
|
5761
5761
|
this.createdAt = e, this.lastLoginAt = n, this._initializeTime();
|
|
5762
5762
|
}
|
|
@@ -5789,7 +5789,7 @@ class Vt {
|
|
|
5789
5789
|
* See the License for the specific language governing permissions and
|
|
5790
5790
|
* limitations under the License.
|
|
5791
5791
|
*/
|
|
5792
|
-
async function
|
|
5792
|
+
async function $e(t) {
|
|
5793
5793
|
var e;
|
|
5794
5794
|
const n = t.auth, r = await t.getIdToken(), s = await Te(t, Tr(n, { idToken: r }));
|
|
5795
5795
|
B(
|
|
@@ -5809,14 +5809,14 @@ async function et(t) {
|
|
|
5809
5809
|
phoneNumber: a.phoneNumber || null,
|
|
5810
5810
|
tenantId: a.tenantId || null,
|
|
5811
5811
|
providerData: l,
|
|
5812
|
-
metadata: new
|
|
5812
|
+
metadata: new Yt(a.createdAt, a.lastLoginAt),
|
|
5813
5813
|
isAnonymous: h
|
|
5814
5814
|
};
|
|
5815
5815
|
Object.assign(t, p);
|
|
5816
5816
|
}
|
|
5817
5817
|
async function $o(t) {
|
|
5818
5818
|
const e = we(t);
|
|
5819
|
-
await
|
|
5819
|
+
await $e(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
5820
5820
|
}
|
|
5821
5821
|
function ec(t, e) {
|
|
5822
5822
|
return [...t.filter((r) => !e.some((s) => s.providerId === r.providerId)), ...e];
|
|
@@ -5872,7 +5872,7 @@ async function tc(t, e) {
|
|
|
5872
5872
|
};
|
|
5873
5873
|
}
|
|
5874
5874
|
async function nc(t, e) {
|
|
5875
|
-
return Be(t, "POST", "/v2/accounts:revokeToken",
|
|
5875
|
+
return Be(t, "POST", "/v2/accounts:revokeToken", at(t, e));
|
|
5876
5876
|
}
|
|
5877
5877
|
/**
|
|
5878
5878
|
* @license
|
|
@@ -5990,7 +5990,7 @@ function _(t, e) {
|
|
|
5990
5990
|
class S {
|
|
5991
5991
|
constructor(e) {
|
|
5992
5992
|
var { uid: n, auth: r, stsTokenManager: s } = e, a = qt(e, ["uid", "auth", "stsTokenManager"]);
|
|
5993
|
-
this.providerId = "firebase", this.proactiveRefresh = new _o(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = s, this.accessToken = s.accessToken, this.displayName = a.displayName || null, this.email = a.email || null, this.emailVerified = a.emailVerified || !1, this.phoneNumber = a.phoneNumber || null, this.photoURL = a.photoURL || null, this.isAnonymous = a.isAnonymous || !1, this.tenantId = a.tenantId || null, this.providerData = a.providerData ? [...a.providerData] : [], this.metadata = new
|
|
5993
|
+
this.providerId = "firebase", this.proactiveRefresh = new _o(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = s, this.accessToken = s.accessToken, this.displayName = a.displayName || null, this.email = a.email || null, this.emailVerified = a.emailVerified || !1, this.phoneNumber = a.phoneNumber || null, this.photoURL = a.photoURL || null, this.isAnonymous = a.isAnonymous || !1, this.tenantId = a.tenantId || null, this.providerData = a.providerData ? [...a.providerData] : [], this.metadata = new Yt(a.createdAt || void 0, a.lastLoginAt || void 0);
|
|
5994
5994
|
}
|
|
5995
5995
|
async getIdToken(e) {
|
|
5996
5996
|
const n = await Te(this, this.stsTokenManager.getToken(this.auth, e));
|
|
@@ -6038,7 +6038,7 @@ class S {
|
|
|
6038
6038
|
}
|
|
6039
6039
|
async _updateTokensIfNecessary(e, n = !1) {
|
|
6040
6040
|
let r = !1;
|
|
6041
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await
|
|
6041
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await $e(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
|
6042
6042
|
}
|
|
6043
6043
|
async delete() {
|
|
6044
6044
|
if (U(this.auth.app))
|
|
@@ -6126,7 +6126,7 @@ class S {
|
|
|
6126
6126
|
stsTokenManager: s,
|
|
6127
6127
|
isAnonymous: r
|
|
6128
6128
|
});
|
|
6129
|
-
return await
|
|
6129
|
+
return await $e(a), a;
|
|
6130
6130
|
}
|
|
6131
6131
|
/**
|
|
6132
6132
|
* Initialize a User from an idToken server response
|
|
@@ -6156,7 +6156,7 @@ class S {
|
|
|
6156
6156
|
phoneNumber: s.phoneNumber || null,
|
|
6157
6157
|
tenantId: s.tenantId || null,
|
|
6158
6158
|
providerData: a,
|
|
6159
|
-
metadata: new
|
|
6159
|
+
metadata: new Yt(s.createdAt, s.lastLoginAt),
|
|
6160
6160
|
isAnonymous: !(s.email && s.passwordHash) && !(a != null && a.length)
|
|
6161
6161
|
};
|
|
6162
6162
|
return Object.assign(A, d), A;
|
|
@@ -6487,7 +6487,7 @@ class ac {
|
|
|
6487
6487
|
* limitations under the License.
|
|
6488
6488
|
*/
|
|
6489
6489
|
async function ic(t, e = {}) {
|
|
6490
|
-
return Be(t, "GET", "/v2/passwordPolicy",
|
|
6490
|
+
return Be(t, "GET", "/v2/passwordPolicy", at(t, e));
|
|
6491
6491
|
}
|
|
6492
6492
|
/**
|
|
6493
6493
|
* @license
|
|
@@ -6681,7 +6681,7 @@ class lc {
|
|
|
6681
6681
|
}
|
|
6682
6682
|
async reloadAndSetCurrentUserOrClear(e) {
|
|
6683
6683
|
try {
|
|
6684
|
-
await
|
|
6684
|
+
await $e(e);
|
|
6685
6685
|
} catch (n) {
|
|
6686
6686
|
if ((n == null ? void 0 : n.code) !== "auth/network-request-failed")
|
|
6687
6687
|
return this.directlySetCurrentUser(null);
|
|
@@ -6926,7 +6926,7 @@ class lc {
|
|
|
6926
6926
|
return n != null && n.error && Xo(`Error while retrieving App Check token: ${n.error}`), n == null ? void 0 : n.token;
|
|
6927
6927
|
}
|
|
6928
6928
|
}
|
|
6929
|
-
function
|
|
6929
|
+
function it(t) {
|
|
6930
6930
|
return we(t);
|
|
6931
6931
|
}
|
|
6932
6932
|
class bn {
|
|
@@ -6998,7 +6998,7 @@ function mc(t, e) {
|
|
|
6998
6998
|
const n = Br(t, "auth");
|
|
6999
6999
|
if (n.isInitialized()) {
|
|
7000
7000
|
const s = n.getImmediate(), a = n.getOptions();
|
|
7001
|
-
if (
|
|
7001
|
+
if (Ke(a, e ?? {}))
|
|
7002
7002
|
return s;
|
|
7003
7003
|
L(
|
|
7004
7004
|
s,
|
|
@@ -7013,7 +7013,7 @@ function hc(t, e) {
|
|
|
7013
7013
|
e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
7014
7014
|
}
|
|
7015
7015
|
function fc(t, e, n) {
|
|
7016
|
-
const r =
|
|
7016
|
+
const r = it(t);
|
|
7017
7017
|
B(
|
|
7018
7018
|
r._canInitEmulator,
|
|
7019
7019
|
r,
|
|
@@ -7122,7 +7122,7 @@ class Wr {
|
|
|
7122
7122
|
* limitations under the License.
|
|
7123
7123
|
*/
|
|
7124
7124
|
async function be(t, e) {
|
|
7125
|
-
return Yr(t, "POST", "/v1/accounts:signInWithIdp",
|
|
7125
|
+
return Yr(t, "POST", "/v1/accounts:signInWithIdp", at(t, e));
|
|
7126
7126
|
}
|
|
7127
7127
|
/**
|
|
7128
7128
|
* @license
|
|
@@ -7641,10 +7641,10 @@ function wn(t) {
|
|
|
7641
7641
|
* See the License for the specific language governing permissions and
|
|
7642
7642
|
* limitations under the License.
|
|
7643
7643
|
*/
|
|
7644
|
-
class
|
|
7644
|
+
class et extends oe {
|
|
7645
7645
|
constructor(e, n, r, s) {
|
|
7646
7646
|
var a;
|
|
7647
|
-
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this,
|
|
7647
|
+
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, et.prototype), this.customData = {
|
|
7648
7648
|
appName: e.name,
|
|
7649
7649
|
tenantId: (a = e.tenantId) !== null && a !== void 0 ? a : void 0,
|
|
7650
7650
|
_serverResponse: n.customData._serverResponse,
|
|
@@ -7652,12 +7652,12 @@ class tt extends oe {
|
|
|
7652
7652
|
};
|
|
7653
7653
|
}
|
|
7654
7654
|
static _fromErrorAndOperation(e, n, r, s) {
|
|
7655
|
-
return new
|
|
7655
|
+
return new et(e, n, r, s);
|
|
7656
7656
|
}
|
|
7657
7657
|
}
|
|
7658
7658
|
function zr(t, e, n, r) {
|
|
7659
7659
|
return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((a) => {
|
|
7660
|
-
throw a.code === "auth/multi-factor-auth-required" ?
|
|
7660
|
+
throw a.code === "auth/multi-factor-auth-required" ? et._fromErrorAndOperation(t, a, e, r) : a;
|
|
7661
7661
|
});
|
|
7662
7662
|
}
|
|
7663
7663
|
async function wc(t, e, n = !1) {
|
|
@@ -7754,7 +7754,7 @@ async function vc(t, e, n = !1) {
|
|
|
7754
7754
|
* limitations under the License.
|
|
7755
7755
|
*/
|
|
7756
7756
|
async function Dc(t, e) {
|
|
7757
|
-
return Yr(t, "POST", "/v1/accounts:signInWithCustomToken",
|
|
7757
|
+
return Yr(t, "POST", "/v1/accounts:signInWithCustomToken", at(t, e));
|
|
7758
7758
|
}
|
|
7759
7759
|
/**
|
|
7760
7760
|
* @license
|
|
@@ -7775,7 +7775,7 @@ async function Dc(t, e) {
|
|
|
7775
7775
|
async function Cc(t, e) {
|
|
7776
7776
|
if (U(t.app))
|
|
7777
7777
|
return Promise.reject(ie(t));
|
|
7778
|
-
const n =
|
|
7778
|
+
const n = it(t), r = await Dc(n, {
|
|
7779
7779
|
token: e,
|
|
7780
7780
|
returnSecureToken: !0
|
|
7781
7781
|
}), s = await ue._fromIdTokenResponse(n, "signIn", r);
|
|
@@ -7787,7 +7787,7 @@ function Ec(t, e, n, r) {
|
|
|
7787
7787
|
function Mc(t, e, n) {
|
|
7788
7788
|
return we(t).beforeAuthStateChanged(e, n);
|
|
7789
7789
|
}
|
|
7790
|
-
const
|
|
7790
|
+
const tt = "__sak";
|
|
7791
7791
|
/**
|
|
7792
7792
|
* @license
|
|
7793
7793
|
* Copyright 2019 Google LLC
|
|
@@ -7810,7 +7810,7 @@ class Zr {
|
|
|
7810
7810
|
}
|
|
7811
7811
|
_isAvailable() {
|
|
7812
7812
|
try {
|
|
7813
|
-
return this.storage ? (this.storage.setItem(
|
|
7813
|
+
return this.storage ? (this.storage.setItem(tt, "1"), this.storage.removeItem(tt), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
7814
7814
|
} catch {
|
|
7815
7815
|
return Promise.resolve(!1);
|
|
7816
7816
|
}
|
|
@@ -8004,7 +8004,7 @@ function Yc(t) {
|
|
|
8004
8004
|
* See the License for the specific language governing permissions and
|
|
8005
8005
|
* limitations under the License.
|
|
8006
8006
|
*/
|
|
8007
|
-
class
|
|
8007
|
+
class ot {
|
|
8008
8008
|
constructor(e) {
|
|
8009
8009
|
this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
|
|
8010
8010
|
}
|
|
@@ -8018,7 +8018,7 @@ class ct {
|
|
|
8018
8018
|
const n = this.receivers.find((s) => s.isListeningto(e));
|
|
8019
8019
|
if (n)
|
|
8020
8020
|
return n;
|
|
8021
|
-
const r = new
|
|
8021
|
+
const r = new ot(e);
|
|
8022
8022
|
return this.receivers.push(r), r;
|
|
8023
8023
|
}
|
|
8024
8024
|
isListeningto(e) {
|
|
@@ -8072,7 +8072,7 @@ class ct {
|
|
|
8072
8072
|
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);
|
|
8073
8073
|
}
|
|
8074
8074
|
}
|
|
8075
|
-
|
|
8075
|
+
ot.receivers = [];
|
|
8076
8076
|
/**
|
|
8077
8077
|
* @license
|
|
8078
8078
|
* Copyright 2020 Google LLC
|
|
@@ -8265,7 +8265,7 @@ function kc() {
|
|
|
8265
8265
|
* See the License for the specific language governing permissions and
|
|
8266
8266
|
* limitations under the License.
|
|
8267
8267
|
*/
|
|
8268
|
-
const $r = "firebaseLocalStorageDb", xc = 1,
|
|
8268
|
+
const $r = "firebaseLocalStorageDb", xc = 1, nt = "firebaseLocalStorage", es = "fbase_key";
|
|
8269
8269
|
class Ne {
|
|
8270
8270
|
constructor(e) {
|
|
8271
8271
|
this.request = e;
|
|
@@ -8280,14 +8280,14 @@ class Ne {
|
|
|
8280
8280
|
});
|
|
8281
8281
|
}
|
|
8282
8282
|
}
|
|
8283
|
-
function
|
|
8284
|
-
return t.transaction([
|
|
8283
|
+
function ct(t, e) {
|
|
8284
|
+
return t.transaction([nt], e ? "readwrite" : "readonly").objectStore(nt);
|
|
8285
8285
|
}
|
|
8286
8286
|
function Rc() {
|
|
8287
8287
|
const t = indexedDB.deleteDatabase($r);
|
|
8288
8288
|
return new Ne(t).toPromise();
|
|
8289
8289
|
}
|
|
8290
|
-
function
|
|
8290
|
+
function Vt() {
|
|
8291
8291
|
const t = indexedDB.open($r, xc);
|
|
8292
8292
|
return new Promise((e, n) => {
|
|
8293
8293
|
t.addEventListener("error", () => {
|
|
@@ -8295,29 +8295,29 @@ function Tt() {
|
|
|
8295
8295
|
}), t.addEventListener("upgradeneeded", () => {
|
|
8296
8296
|
const r = t.result;
|
|
8297
8297
|
try {
|
|
8298
|
-
r.createObjectStore(
|
|
8298
|
+
r.createObjectStore(nt, { keyPath: es });
|
|
8299
8299
|
} catch (s) {
|
|
8300
8300
|
n(s);
|
|
8301
8301
|
}
|
|
8302
8302
|
}), t.addEventListener("success", async () => {
|
|
8303
8303
|
const r = t.result;
|
|
8304
|
-
r.objectStoreNames.contains(
|
|
8304
|
+
r.objectStoreNames.contains(nt) ? e(r) : (r.close(), await Rc(), e(await Vt()));
|
|
8305
8305
|
});
|
|
8306
8306
|
});
|
|
8307
8307
|
}
|
|
8308
8308
|
async function Bn(t, e, n) {
|
|
8309
|
-
const r =
|
|
8309
|
+
const r = ct(t, !0).put({
|
|
8310
8310
|
[es]: e,
|
|
8311
8311
|
value: n
|
|
8312
8312
|
});
|
|
8313
8313
|
return new Ne(r).toPromise();
|
|
8314
8314
|
}
|
|
8315
8315
|
async function Nc(t, e) {
|
|
8316
|
-
const n =
|
|
8316
|
+
const n = ct(t, !1).get(e), r = await new Ne(n).toPromise();
|
|
8317
8317
|
return r === void 0 ? null : r.value;
|
|
8318
8318
|
}
|
|
8319
8319
|
function vn(t, e) {
|
|
8320
|
-
const n =
|
|
8320
|
+
const n = ct(t, !0).delete(e);
|
|
8321
8321
|
return new Ne(n).toPromise();
|
|
8322
8322
|
}
|
|
8323
8323
|
const Fc = 800, Hc = 3;
|
|
@@ -8328,7 +8328,7 @@ class ts {
|
|
|
8328
8328
|
});
|
|
8329
8329
|
}
|
|
8330
8330
|
async _openDb() {
|
|
8331
|
-
return this.db ? this.db : (this.db = await
|
|
8331
|
+
return this.db ? this.db : (this.db = await Vt(), this.db);
|
|
8332
8332
|
}
|
|
8333
8333
|
async _withRetries(e) {
|
|
8334
8334
|
let n = 0;
|
|
@@ -8353,7 +8353,7 @@ class ts {
|
|
|
8353
8353
|
* As the worker we should listen to events from the main window.
|
|
8354
8354
|
*/
|
|
8355
8355
|
async initializeReceiver() {
|
|
8356
|
-
this.receiver =
|
|
8356
|
+
this.receiver = ot._getInstance(kc()), this.receiver._subscribe("keyChanged", async (e, n) => ({
|
|
8357
8357
|
keyProcessed: (await this._poll()).includes(n.key)
|
|
8358
8358
|
})), this.receiver._subscribe("ping", async (e, n) => [
|
|
8359
8359
|
"keyChanged"
|
|
@@ -8409,8 +8409,8 @@ class ts {
|
|
|
8409
8409
|
try {
|
|
8410
8410
|
if (!indexedDB)
|
|
8411
8411
|
return !1;
|
|
8412
|
-
const e = await
|
|
8413
|
-
return await Bn(e,
|
|
8412
|
+
const e = await Vt();
|
|
8413
|
+
return await Bn(e, tt, "1"), await vn(e, tt), !0;
|
|
8414
8414
|
} catch {
|
|
8415
8415
|
}
|
|
8416
8416
|
return !1;
|
|
@@ -8435,7 +8435,7 @@ class ts {
|
|
|
8435
8435
|
}
|
|
8436
8436
|
async _poll() {
|
|
8437
8437
|
const e = await this._withRetries((s) => {
|
|
8438
|
-
const a =
|
|
8438
|
+
const a = ct(s, !1).getAll();
|
|
8439
8439
|
return new Ne(a).toPromise();
|
|
8440
8440
|
});
|
|
8441
8441
|
if (!e)
|
|
@@ -8815,7 +8815,7 @@ function _c(t) {
|
|
|
8815
8815
|
async function $c(t, e, n = !1) {
|
|
8816
8816
|
if (U(t.app))
|
|
8817
8817
|
return Promise.reject(ie(t));
|
|
8818
|
-
const r =
|
|
8818
|
+
const r = it(t), s = Xc(r, e), o = await new Zc(r, s, n).execute();
|
|
8819
8819
|
return o && !n && (delete o.user._redirectEventId, await r._persistUserIfCurrent(o.user), await r._setRedirectUser(null, e)), o;
|
|
8820
8820
|
}
|
|
8821
8821
|
/**
|
|
@@ -8943,7 +8943,7 @@ async function il(t) {
|
|
|
8943
8943
|
);
|
|
8944
8944
|
}
|
|
8945
8945
|
function ol(t) {
|
|
8946
|
-
const e =
|
|
8946
|
+
const e = Gt(), { protocol: n, hostname: r } = new URL(e);
|
|
8947
8947
|
if (t.startsWith("chrome-extension://")) {
|
|
8948
8948
|
const o = new URL(t);
|
|
8949
8949
|
return o.hostname === "" && r === "" ? n === "chrome-extension:" && t.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : n === "chrome-extension:" && o.hostname === r;
|
|
@@ -9240,7 +9240,7 @@ function Pl({ config: t }) {
|
|
|
9240
9240
|
* See the License for the specific language governing permissions and
|
|
9241
9241
|
* limitations under the License.
|
|
9242
9242
|
*/
|
|
9243
|
-
const
|
|
9243
|
+
const pt = "webStorageSupport";
|
|
9244
9244
|
class Gl {
|
|
9245
9245
|
constructor() {
|
|
9246
9246
|
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Jr, this._completeRedirectFn = $c, this._overrideRedirectResult = Kc;
|
|
@@ -9250,12 +9250,12 @@ class Gl {
|
|
|
9250
9250
|
async _openPopup(e, n, r, s) {
|
|
9251
9251
|
var a;
|
|
9252
9252
|
K((a = this.eventManagers[e._key()]) === null || a === void 0 ? void 0 : a.manager, "_initialize() not called before _openPopup()");
|
|
9253
|
-
const o = await Mn(e, n, r,
|
|
9253
|
+
const o = await Mn(e, n, r, Gt(), s);
|
|
9254
9254
|
return Dl(e, o, zt());
|
|
9255
9255
|
}
|
|
9256
9256
|
async _openRedirect(e, n, r, s) {
|
|
9257
9257
|
await this._originValidation(e);
|
|
9258
|
-
const a = await Mn(e, n, r,
|
|
9258
|
+
const a = await Mn(e, n, r, Gt(), s);
|
|
9259
9259
|
return Tc(a), new Promise(() => {
|
|
9260
9260
|
});
|
|
9261
9261
|
}
|
|
@@ -9283,9 +9283,9 @@ class Gl {
|
|
|
9283
9283
|
}), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = n, r;
|
|
9284
9284
|
}
|
|
9285
9285
|
_isIframeWebStorageSupported(e, n) {
|
|
9286
|
-
this.iframes[e._key()].send(
|
|
9286
|
+
this.iframes[e._key()].send(pt, { type: pt }, (s) => {
|
|
9287
9287
|
var a;
|
|
9288
|
-
const o = (a = s == null ? void 0 : s[0]) === null || a === void 0 ? void 0 : a[
|
|
9288
|
+
const o = (a = s == null ? void 0 : s[0]) === null || a === void 0 ? void 0 : a[pt];
|
|
9289
9289
|
o !== void 0 && n(!!o), L(
|
|
9290
9290
|
e,
|
|
9291
9291
|
"internal-error"
|
|
@@ -9416,7 +9416,7 @@ function jl(t) {
|
|
|
9416
9416
|
})), Ye(new ye(
|
|
9417
9417
|
"auth-internal",
|
|
9418
9418
|
(e) => {
|
|
9419
|
-
const n =
|
|
9419
|
+
const n = it(e.getProvider(
|
|
9420
9420
|
"auth"
|
|
9421
9421
|
/* _ComponentName.AUTH */
|
|
9422
9422
|
).getImmediate());
|
|
@@ -9508,7 +9508,7 @@ jl(
|
|
|
9508
9508
|
);
|
|
9509
9509
|
fs({
|
|
9510
9510
|
history: ps(),
|
|
9511
|
-
routes: [...
|
|
9511
|
+
routes: [...Nt, ...Pe].map((t) => ({
|
|
9512
9512
|
...t,
|
|
9513
9513
|
component: Fn(
|
|
9514
9514
|
Yn({
|
|
@@ -9520,20 +9520,20 @@ fs({
|
|
|
9520
9520
|
const Fl = (t) => t ? Nn(
|
|
9521
9521
|
[
|
|
9522
9522
|
{
|
|
9523
|
-
subject:
|
|
9523
|
+
subject: kt.all,
|
|
9524
9524
|
action: i.manage
|
|
9525
9525
|
}
|
|
9526
9526
|
],
|
|
9527
9527
|
t.permissions || []
|
|
9528
|
-
).granted : !1, Hl = /* @__PURE__ */
|
|
9528
|
+
).granted : !1, Hl = /* @__PURE__ */ rt({
|
|
9529
9529
|
__name: "AppSidebar",
|
|
9530
9530
|
setup(t) {
|
|
9531
|
-
const e =
|
|
9531
|
+
const e = Ot(), n = bs(), { t: r } = On(), s = bt(n.currentRoute.value.name);
|
|
9532
9532
|
Vn(n.currentRoute, () => {
|
|
9533
9533
|
let d = n.currentRoute.value.name;
|
|
9534
9534
|
n.currentRoute.value.meta.parent && (d = n.currentRoute.value.meta.parent), s.value = d;
|
|
9535
9535
|
});
|
|
9536
|
-
const a =
|
|
9536
|
+
const a = Nt.map((d) => {
|
|
9537
9537
|
var E, C;
|
|
9538
9538
|
if (!((E = d.meta) != null && E.sidebarDisplay) || d.meta.region && !((C = d.meta.region) != null && C[e.currentCountry.value]) || d.meta.section)
|
|
9539
9539
|
return;
|
|
@@ -9545,7 +9545,7 @@ const Fl = (t) => t ? Nn(
|
|
|
9545
9545
|
return n.push({ name: d.name });
|
|
9546
9546
|
}
|
|
9547
9547
|
};
|
|
9548
|
-
return d.meta.sidebarNew && (p.badge = () =>
|
|
9548
|
+
return d.meta.sidebarNew && (p.badge = () => yt(ws.FmPill, { label: "New" })), p;
|
|
9549
9549
|
}).filter((d) => !!d);
|
|
9550
9550
|
function o(d, h) {
|
|
9551
9551
|
return d.map((p) => {
|
|
@@ -9573,18 +9573,9 @@ const Fl = (t) => t ? Nn(
|
|
|
9573
9573
|
return n.push({ name: d.name });
|
|
9574
9574
|
}
|
|
9575
9575
|
};
|
|
9576
|
-
}).filter((d) => !!d), A =
|
|
9576
|
+
}).filter((d) => !!d), A = Tt(() => {
|
|
9577
9577
|
const d = [...a];
|
|
9578
|
-
return d.push({
|
|
9579
|
-
label: "",
|
|
9580
|
-
value: "divider",
|
|
9581
|
-
disabled: !0
|
|
9582
|
-
}), d.push({
|
|
9583
|
-
label: r("financing.title"),
|
|
9584
|
-
icon: "credit_score",
|
|
9585
|
-
value: "divider",
|
|
9586
|
-
disabled: !0
|
|
9587
|
-
}), d.push(...o(Ke, "financing")), Fl(e.sessionUser.value) && (d.push({
|
|
9578
|
+
return Fl(e.sessionUser.value) && (d.push({
|
|
9588
9579
|
label: "",
|
|
9589
9580
|
value: "divider",
|
|
9590
9581
|
disabled: !0
|
|
@@ -9615,7 +9606,7 @@ const Fl = (t) => t ? Nn(
|
|
|
9615
9606
|
});
|
|
9616
9607
|
return (d, h) => {
|
|
9617
9608
|
const p = Tn("FmCollapsibleTabs");
|
|
9618
|
-
return
|
|
9609
|
+
return st(), jt(p, {
|
|
9619
9610
|
modelValue: s.value,
|
|
9620
9611
|
"onUpdate:modelValue": h[0] || (h[0] = (E) => s.value = E),
|
|
9621
9612
|
items: A.value,
|
|
@@ -9625,10 +9616,10 @@ const Fl = (t) => t ? Nn(
|
|
|
9625
9616
|
}
|
|
9626
9617
|
});
|
|
9627
9618
|
var ql = { 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" } };
|
|
9628
|
-
const Ll = /* @__PURE__ */
|
|
9619
|
+
const Ll = /* @__PURE__ */ rt({
|
|
9629
9620
|
__name: "App",
|
|
9630
9621
|
setup(t) {
|
|
9631
|
-
const { state: e } = ii(), n =
|
|
9622
|
+
const { state: e } = ii(), n = Ot(), r = jn(), s = vr(ql.firebase);
|
|
9632
9623
|
async function a() {
|
|
9633
9624
|
const o = n.sessionUser.value;
|
|
9634
9625
|
if (!o || !o.token) return;
|
|
@@ -9641,7 +9632,7 @@ const Ll = /* @__PURE__ */ st({
|
|
|
9641
9632
|
n.registerSidebarComponent(Hl);
|
|
9642
9633
|
}), (o, l) => {
|
|
9643
9634
|
const A = Tn("RouterView");
|
|
9644
|
-
return
|
|
9635
|
+
return st(), jt(A, {
|
|
9645
9636
|
key: re(r).path
|
|
9646
9637
|
});
|
|
9647
9638
|
};
|
|
@@ -9663,7 +9654,7 @@ const Ll = /* @__PURE__ */ st({
|
|
|
9663
9654
|
},
|
|
9664
9655
|
{}
|
|
9665
9656
|
);
|
|
9666
|
-
}, Jl = [...Pe, ...
|
|
9657
|
+
}, Jl = [...Pe, ...Nt].map((t) => ({
|
|
9667
9658
|
...t,
|
|
9668
9659
|
component: Fn(
|
|
9669
9660
|
Yn({ loader: t.component })
|