@feedmepos/mf-payment 1.7.1 → 1.7.4-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Actions.vue_vue_type_script_setup_true_lang-CRNNEhdb.js → Actions.vue_vue_type_script_setup_true_lang-B5sqVL7d.js} +1 -1
- package/dist/AdminBusinessSelector.vue_vue_type_script_setup_true_lang-B2sVLkI5.js +140 -0
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DjiSltH9.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-D_hGHpb0.js} +2 -2
- package/dist/{Chargeback-CLmIb_z0.js → Chargeback-CtYYjuEB.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-Cy-vikjQ.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BW-Gu-nZ.js} +1 -1
- package/dist/{OnboardForm-DJcR03we.js → OnboardForm-CIFQEBec.js} +5 -5
- package/dist/{OnboardForm--egFxuAd.js → OnboardForm-IRLkWmoI.js} +5 -5
- package/dist/{OnboardSubmission-D5uJWKHh.js → OnboardSubmission-C9M8t5vU.js} +5 -5
- package/dist/{OnboardSubmission-BaM01HIV.js → OnboardSubmission-CndjRMqy.js} +2 -2
- package/dist/{PayoutAccount-DYZ2gQGD.js → PayoutAccount-BSXnemjX.js} +5 -5
- package/dist/PayoutAccount-CpuAa-qa.js +399 -0
- package/dist/{PayoutAccountSetting-DlF_FPHr.js → PayoutAccountSetting-CMkQNnDb.js} +6 -6
- package/dist/{Restaurant-KGa0xV0K.js → Restaurant-bpdNibYe.js} +4 -4
- package/dist/{RestaurantSetting-Bg5M-n6p.js → RestaurantSetting-NbagQfTz.js} +3 -3
- package/dist/{Settlement-C4q03i6e.js → Settlement-D_yGtVZV.js} +4 -4
- package/dist/{Settlement-DAkVWztP.js → Settlement-TAZg6fCx.js} +3 -3
- package/dist/{SettlementTransactions-XjsIKvXQ.js → SettlementTransactions-DHxHNPdw.js} +4 -4
- package/dist/{SettlementTransactions-CsvfmLM_.js → SettlementTransactions-ENvQRM79.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-ExFNksup.js → Status.vue_vue_type_script_setup_true_lang-B0FnrTJk.js} +1 -1
- package/dist/{Terminal-DkeT7bTc.js → Terminal-z_7q3GBS.js} +5 -5
- package/dist/{TerminalSetting-AnoIOO73.js → TerminalSetting-C5UmznfX.js} +655 -521
- package/dist/Transaction-DNkc6es6.js +1005 -0
- package/dist/{Transaction-mo1v6xz1.js → Transaction-zDTbTtVx.js} +10 -10
- package/dist/{TransactionOld-nzUGTELC.js → TransactionOld-Dm5PvUqF.js} +7 -7
- package/dist/api/payout/index.d.ts +4 -0
- package/dist/{app-1rw4JLKr.js → app-ByzqMQl4.js} +452 -442
- package/dist/app.js +1 -1
- package/dist/{assets-CPEv5xmO.js → assets-DXXXC51N.js} +1 -1
- package/dist/{grafana-fcTmH2tm.js → grafana-U9VBVEEb.js} +1 -1
- package/dist/{index-Ch9pmMdq.js → index-BMLgxxih.js} +1 -1
- package/dist/{index-B0rOAUW-.js → index-BZ6UOzJf.js} +34 -29
- package/dist/{index-DTBJopG8.js → index-C6uyHnHe.js} +1 -1
- package/dist/{index-CIbvJ5oc.js → index-COd-DEdZ.js} +1 -1
- package/dist/{index-gbUzsHq5.js → index-CbRKtmjR.js} +1 -1
- package/dist/{index-CVs0aN89.js → index-D5SllCXu.js} +26 -31
- package/dist/{index-BiKaun0K.js → index-DR01zn4-.js} +1 -1
- package/dist/{index-DYl43WIP.js → index-DmTVLzm7.js} +5544 -5474
- package/dist/{index-Qmbuelbf.js → index-udIS6_YQ.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-Ld8QyF50.js → index.vue_vue_type_script_setup_true_lang-QSCHnqzi.js} +1 -1
- package/dist/model/payout-account.d.ts +2 -2
- package/dist/package.json +2 -2
- package/dist/{payout-account-B4W2N8Xm.js → payout-account-DlZkCb88.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +22 -22
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +20 -16
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +20 -16
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +20 -16
- package/dist/views/admin/payout-account/CreateDummyPayoutDialog.vue.d.ts +2 -0
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +22 -22
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +44 -44
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +44 -44
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +22 -22
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +22 -22
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +44 -44
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +10 -10
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +10 -10
- package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +10 -10
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +6 -6
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +16 -16
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +140 -0
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +14 -14
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +44 -44
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +80 -80
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +40 -40
- package/dist/views/settlement/SettlementTable.vue.d.ts +16 -16
- package/package.json +2 -2
- package/dist/PayoutAccount-CEr0rx4J.js +0 -273
- package/dist/Transaction-BEkrFPHL.js +0 -1135
|
@@ -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 An = (t, e, n) => e.has(t) || rr("Cannot " + n);
|
|
5
|
+
var h = (t, e, n) => (An(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) => (An(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), z = (t, e, n) => (An(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 Rn, ref as Xt, shallowRef as Ni, watchEffect as Hi, computed as qn, h as bn, defineComponent as tn, unref as ge, openBlock as nn, createBlock as Nn, 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 Hn, 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
|
+
Rn(n) ? r = {
|
|
1242
1242
|
evaluating: n
|
|
1243
1243
|
} : r = {};
|
|
1244
1244
|
const {
|
|
@@ -1247,12 +1247,12 @@ function ca(t, e, n) {
|
|
|
1247
1247
|
shallow: a = !0,
|
|
1248
1248
|
onError: c = oa
|
|
1249
1249
|
} = r, l = Xt(!s), A = a ? Ni(e) : Xt(e);
|
|
1250
|
-
let
|
|
1250
|
+
let m = 0;
|
|
1251
1251
|
return Hi(async (p) => {
|
|
1252
1252
|
if (!l.value)
|
|
1253
1253
|
return;
|
|
1254
|
-
|
|
1255
|
-
const B =
|
|
1254
|
+
m++;
|
|
1255
|
+
const B = m;
|
|
1256
1256
|
let v = !1;
|
|
1257
1257
|
i && Promise.resolve().then(() => {
|
|
1258
1258
|
i.value = !0;
|
|
@@ -1263,13 +1263,13 @@ function ca(t, e, n) {
|
|
|
1263
1263
|
i && (i.value = !1), v || I();
|
|
1264
1264
|
});
|
|
1265
1265
|
});
|
|
1266
|
-
B ===
|
|
1266
|
+
B === m && (A.value = O);
|
|
1267
1267
|
} catch (O) {
|
|
1268
1268
|
c(O);
|
|
1269
1269
|
} finally {
|
|
1270
|
-
i && B ===
|
|
1270
|
+
i && B === m && (i.value = !1), v = !0;
|
|
1271
1271
|
}
|
|
1272
|
-
}), s ?
|
|
1272
|
+
}), s ? qn(() => (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) {
|
|
@@ -1339,16 +1339,16 @@ var rs = { exports: {} };
|
|
|
1339
1339
|
},
|
|
1340
1340
|
function(n, r, s) {
|
|
1341
1341
|
function i(u) {
|
|
1342
|
-
return (i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
1343
|
-
return typeof
|
|
1344
|
-
} : function(
|
|
1345
|
-
return
|
|
1342
|
+
return (i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(f) {
|
|
1343
|
+
return typeof f;
|
|
1344
|
+
} : function(f) {
|
|
1345
|
+
return f && typeof Symbol == "function" && f.constructor === Symbol && f !== Symbol.prototype ? "symbol" : typeof f;
|
|
1346
1346
|
})(u);
|
|
1347
1347
|
}
|
|
1348
1348
|
function a(u) {
|
|
1349
|
-
var
|
|
1349
|
+
var f = "[object " + u + "]";
|
|
1350
1350
|
return function(g) {
|
|
1351
|
-
return Object.prototype.toString.call(g) ===
|
|
1351
|
+
return Object.prototype.toString.call(g) === f;
|
|
1352
1352
|
};
|
|
1353
1353
|
}
|
|
1354
1354
|
s.r(r), s.d(r, "default", function() {
|
|
@@ -1359,99 +1359,99 @@ var rs = { exports: {} };
|
|
|
1359
1359
|
return q;
|
|
1360
1360
|
});
|
|
1361
1361
|
var c = a("Array"), l = a("Object"), A = a("Function");
|
|
1362
|
-
function
|
|
1363
|
-
return A(u.get) ? u.get(
|
|
1362
|
+
function m(u, f) {
|
|
1363
|
+
return A(u.get) ? u.get(f) : u[f];
|
|
1364
1364
|
}
|
|
1365
1365
|
function p(u) {
|
|
1366
|
-
return function(
|
|
1367
|
-
if (!c(g) || !g.length) return u(
|
|
1366
|
+
return function(f, g) {
|
|
1367
|
+
if (!c(g) || !g.length) return u(f, g);
|
|
1368
1368
|
for (var y = 0, b = g.length; y < b; y++)
|
|
1369
|
-
if (u(
|
|
1369
|
+
if (u(f, m(g, y))) return !0;
|
|
1370
1370
|
return !1;
|
|
1371
1371
|
};
|
|
1372
1372
|
}
|
|
1373
1373
|
function B(u) {
|
|
1374
|
-
return function(
|
|
1375
|
-
if (!c(g) || !g.length) return u(
|
|
1374
|
+
return function(f, g) {
|
|
1375
|
+
if (!c(g) || !g.length) return u(f, g);
|
|
1376
1376
|
for (var y = 0, b = g.length; y < b; y++)
|
|
1377
|
-
if (!u(
|
|
1377
|
+
if (!u(f, m(g, y))) return !1;
|
|
1378
1378
|
return !0;
|
|
1379
1379
|
};
|
|
1380
1380
|
}
|
|
1381
|
-
function v(u,
|
|
1382
|
-
return u.validate(u.options,
|
|
1381
|
+
function v(u, f, g, y) {
|
|
1382
|
+
return u.validate(u.options, f, g, y);
|
|
1383
1383
|
}
|
|
1384
1384
|
var O = {
|
|
1385
|
-
$eq: p(function(u,
|
|
1386
|
-
return u(
|
|
1385
|
+
$eq: p(function(u, f) {
|
|
1386
|
+
return u(f);
|
|
1387
1387
|
}),
|
|
1388
|
-
$ne: B(function(u,
|
|
1389
|
-
return u(
|
|
1388
|
+
$ne: B(function(u, f) {
|
|
1389
|
+
return u(f);
|
|
1390
1390
|
}),
|
|
1391
|
-
$gt: p(function(u,
|
|
1392
|
-
return u(
|
|
1391
|
+
$gt: p(function(u, f) {
|
|
1392
|
+
return u(f);
|
|
1393
1393
|
}),
|
|
1394
|
-
$gte: p(function(u,
|
|
1395
|
-
return u(
|
|
1394
|
+
$gte: p(function(u, f) {
|
|
1395
|
+
return u(f);
|
|
1396
1396
|
}),
|
|
1397
|
-
$lt: p(function(u,
|
|
1398
|
-
return u(
|
|
1397
|
+
$lt: p(function(u, f) {
|
|
1398
|
+
return u(f);
|
|
1399
1399
|
}),
|
|
1400
|
-
$lte: p(function(u,
|
|
1401
|
-
return u(
|
|
1400
|
+
$lte: p(function(u, f) {
|
|
1401
|
+
return u(f);
|
|
1402
1402
|
}),
|
|
1403
|
-
$mod: p(function(u,
|
|
1404
|
-
return u(
|
|
1403
|
+
$mod: p(function(u, f) {
|
|
1404
|
+
return u(f);
|
|
1405
1405
|
}),
|
|
1406
|
-
$in: function(u,
|
|
1407
|
-
return u(
|
|
1406
|
+
$in: function(u, f) {
|
|
1407
|
+
return u(f);
|
|
1408
1408
|
},
|
|
1409
|
-
$nin: function(u,
|
|
1410
|
-
return u(
|
|
1409
|
+
$nin: function(u, f) {
|
|
1410
|
+
return u(f);
|
|
1411
1411
|
},
|
|
1412
|
-
$not: function(u,
|
|
1413
|
-
return u(
|
|
1412
|
+
$not: function(u, f, g, y) {
|
|
1413
|
+
return u(f, g, y);
|
|
1414
1414
|
},
|
|
1415
|
-
$type: function(u,
|
|
1416
|
-
return u(
|
|
1415
|
+
$type: function(u, f) {
|
|
1416
|
+
return u(f);
|
|
1417
1417
|
},
|
|
1418
|
-
$all: function(u,
|
|
1419
|
-
return O.$and(u,
|
|
1418
|
+
$all: function(u, f, g, y) {
|
|
1419
|
+
return O.$and(u, f, g, y);
|
|
1420
1420
|
},
|
|
1421
|
-
$size: function(u,
|
|
1422
|
-
return !!
|
|
1421
|
+
$size: function(u, f) {
|
|
1422
|
+
return !!f && u === f.length;
|
|
1423
1423
|
},
|
|
1424
|
-
$or: function(u,
|
|
1424
|
+
$or: function(u, f, g, y) {
|
|
1425
1425
|
for (var b = 0, E = u.length; b < E; b++)
|
|
1426
|
-
if (v(
|
|
1426
|
+
if (v(m(u, b), f, g, y)) return !0;
|
|
1427
1427
|
return !1;
|
|
1428
1428
|
},
|
|
1429
|
-
$nor: function(u,
|
|
1430
|
-
return !O.$or(u,
|
|
1429
|
+
$nor: function(u, f, g, y) {
|
|
1430
|
+
return !O.$or(u, f, g, y);
|
|
1431
1431
|
},
|
|
1432
|
-
$and: function(u,
|
|
1432
|
+
$and: function(u, f, g, y) {
|
|
1433
1433
|
for (var b = 0, E = u.length; b < E; b++)
|
|
1434
|
-
if (!v(
|
|
1434
|
+
if (!v(m(u, b), f, g, y)) return !1;
|
|
1435
1435
|
return !0;
|
|
1436
1436
|
},
|
|
1437
|
-
$regex: p(function(u,
|
|
1438
|
-
return typeof
|
|
1437
|
+
$regex: p(function(u, f) {
|
|
1438
|
+
return typeof f == "string" && u.test(f);
|
|
1439
1439
|
}),
|
|
1440
|
-
$where: function(u,
|
|
1441
|
-
return u.call(
|
|
1440
|
+
$where: function(u, f, g, y) {
|
|
1441
|
+
return u.call(f, f, g, y);
|
|
1442
1442
|
},
|
|
1443
|
-
$elemMatch: function(u,
|
|
1444
|
-
return c(
|
|
1443
|
+
$elemMatch: function(u, f, g, y) {
|
|
1444
|
+
return c(f) ? !!~function(b, E) {
|
|
1445
1445
|
for (var P = 0; P < b.length; P++)
|
|
1446
|
-
if (
|
|
1446
|
+
if (m(b, P), v(E, m(b, P))) return P;
|
|
1447
1447
|
return -1;
|
|
1448
|
-
}(
|
|
1448
|
+
}(f, u) : v(u, f, g, y);
|
|
1449
1449
|
},
|
|
1450
|
-
$exists: function(u,
|
|
1450
|
+
$exists: function(u, f, g, y) {
|
|
1451
1451
|
return y.hasOwnProperty(g) === u;
|
|
1452
1452
|
}
|
|
1453
1453
|
}, I = {
|
|
1454
|
-
$eq: function(u,
|
|
1454
|
+
$eq: function(u, f, g) {
|
|
1455
1455
|
var y = g.comparable, b = g.compare;
|
|
1456
1456
|
return u instanceof RegExp ? p(function(E) {
|
|
1457
1457
|
return typeof E == "string" && u.test(E);
|
|
@@ -1465,31 +1465,31 @@ var rs = { exports: {} };
|
|
|
1465
1465
|
}
|
|
1466
1466
|
);
|
|
1467
1467
|
},
|
|
1468
|
-
$gt: function(u,
|
|
1468
|
+
$gt: function(u, f, g) {
|
|
1469
1469
|
var y = g.comparable, b = g.compare;
|
|
1470
1470
|
return function(E) {
|
|
1471
1471
|
return b(y(E), y(u)) > 0;
|
|
1472
1472
|
};
|
|
1473
1473
|
},
|
|
1474
|
-
$gte: function(u,
|
|
1474
|
+
$gte: function(u, f, g) {
|
|
1475
1475
|
var y = g.comparable, b = g.compare;
|
|
1476
1476
|
return function(E) {
|
|
1477
1477
|
return b(y(E), y(u)) >= 0;
|
|
1478
1478
|
};
|
|
1479
1479
|
},
|
|
1480
|
-
$lt: function(u,
|
|
1480
|
+
$lt: function(u, f, g) {
|
|
1481
1481
|
var y = g.comparable, b = g.compare;
|
|
1482
1482
|
return function(E) {
|
|
1483
1483
|
return b(y(E), y(u)) < 0;
|
|
1484
1484
|
};
|
|
1485
1485
|
},
|
|
1486
|
-
$lte: function(u,
|
|
1486
|
+
$lte: function(u, f, g) {
|
|
1487
1487
|
var y = g.comparable, b = g.compare;
|
|
1488
1488
|
return function(E) {
|
|
1489
1489
|
return b(y(E), y(u)) <= 0;
|
|
1490
1490
|
};
|
|
1491
1491
|
},
|
|
1492
|
-
$in: function(u,
|
|
1492
|
+
$in: function(u, f, g) {
|
|
1493
1493
|
var y = g.comparable;
|
|
1494
1494
|
return function(b) {
|
|
1495
1495
|
if (!(b instanceof Array)) {
|
|
@@ -1503,59 +1503,59 @@ var rs = { exports: {} };
|
|
|
1503
1503
|
for (j = u.length; j--; ) if (u[j] == null) return !0;
|
|
1504
1504
|
}
|
|
1505
1505
|
for (j = u.length; j--; ) {
|
|
1506
|
-
var P = v(H(
|
|
1506
|
+
var P = v(H(m(u, j), g), E, j, u);
|
|
1507
1507
|
if (P && String(P) !== "[object Object]" && String(E) !== "[object Object]")
|
|
1508
1508
|
return !0;
|
|
1509
1509
|
}
|
|
1510
1510
|
return !!~u.indexOf(E);
|
|
1511
1511
|
}
|
|
1512
1512
|
for (var j = b.length; j--; )
|
|
1513
|
-
if (~u.indexOf(y(
|
|
1513
|
+
if (~u.indexOf(y(m(b, j)))) return !0;
|
|
1514
1514
|
return !1;
|
|
1515
1515
|
};
|
|
1516
1516
|
},
|
|
1517
|
-
$nin: function(u,
|
|
1518
|
-
var y = I.$in(u,
|
|
1517
|
+
$nin: function(u, f, g) {
|
|
1518
|
+
var y = I.$in(u, f, g);
|
|
1519
1519
|
return function(b, E, P, j) {
|
|
1520
1520
|
return !y(b, E, P, j);
|
|
1521
1521
|
};
|
|
1522
1522
|
},
|
|
1523
1523
|
$mod: function(u) {
|
|
1524
|
-
return function(
|
|
1525
|
-
return
|
|
1524
|
+
return function(f) {
|
|
1525
|
+
return f % u[0] == u[1];
|
|
1526
1526
|
};
|
|
1527
1527
|
},
|
|
1528
|
-
$ne: function(u,
|
|
1529
|
-
var y = I.$eq(u,
|
|
1528
|
+
$ne: function(u, f, g) {
|
|
1529
|
+
var y = I.$eq(u, f, g);
|
|
1530
1530
|
return B(function(b, E, P, j) {
|
|
1531
1531
|
return !y(b, E, P, j);
|
|
1532
1532
|
});
|
|
1533
1533
|
},
|
|
1534
|
-
$and: function(u,
|
|
1534
|
+
$and: function(u, f, g) {
|
|
1535
1535
|
return u.map(Y(g));
|
|
1536
1536
|
},
|
|
1537
|
-
$all: function(u,
|
|
1538
|
-
return I.$and(u,
|
|
1537
|
+
$all: function(u, f, g) {
|
|
1538
|
+
return I.$and(u, f, g);
|
|
1539
1539
|
},
|
|
1540
|
-
$or: function(u,
|
|
1540
|
+
$or: function(u, f, g) {
|
|
1541
1541
|
return u.map(Y(g));
|
|
1542
1542
|
},
|
|
1543
|
-
$nor: function(u,
|
|
1543
|
+
$nor: function(u, f, g) {
|
|
1544
1544
|
return u.map(Y(g));
|
|
1545
1545
|
},
|
|
1546
|
-
$not: function(u,
|
|
1546
|
+
$not: function(u, f, g) {
|
|
1547
1547
|
var y = Y(g)(u);
|
|
1548
1548
|
return function(b, E, P) {
|
|
1549
1549
|
return !v(y, b, E, P);
|
|
1550
1550
|
};
|
|
1551
1551
|
},
|
|
1552
1552
|
$type: function(u) {
|
|
1553
|
-
return function(
|
|
1554
|
-
return
|
|
1553
|
+
return function(f, g, y) {
|
|
1554
|
+
return f != null && (f instanceof u || f.constructor == u);
|
|
1555
1555
|
};
|
|
1556
1556
|
},
|
|
1557
|
-
$regex: function(u,
|
|
1558
|
-
return new RegExp(u,
|
|
1557
|
+
$regex: function(u, f) {
|
|
1558
|
+
return new RegExp(u, f.$options);
|
|
1559
1559
|
},
|
|
1560
1560
|
$where: function(u) {
|
|
1561
1561
|
if (typeof u == "function") return u;
|
|
@@ -1563,26 +1563,26 @@ var rs = { exports: {} };
|
|
|
1563
1563
|
'In CSP mode, sift does not support strings in "$where" condition'
|
|
1564
1564
|
);
|
|
1565
1565
|
},
|
|
1566
|
-
$elemMatch: function(u,
|
|
1566
|
+
$elemMatch: function(u, f, g) {
|
|
1567
1567
|
return Y(g)(u);
|
|
1568
1568
|
},
|
|
1569
1569
|
$exists: function(u) {
|
|
1570
1570
|
return !!u;
|
|
1571
1571
|
}
|
|
1572
1572
|
};
|
|
1573
|
-
function V(u,
|
|
1574
|
-
return { options: u, validate:
|
|
1573
|
+
function V(u, f) {
|
|
1574
|
+
return { options: u, validate: f };
|
|
1575
1575
|
}
|
|
1576
|
-
function R(u,
|
|
1576
|
+
function R(u, f) {
|
|
1577
1577
|
var g = u.keyPath, y = u.child, b = u.query, E = [];
|
|
1578
|
-
if (function tr(Ce,
|
|
1579
|
-
if (gt ===
|
|
1580
|
-
return void
|
|
1581
|
-
var nr =
|
|
1578
|
+
if (function tr(Ce, mt, gt, Fi, un) {
|
|
1579
|
+
if (gt === mt.length || Ce == null)
|
|
1580
|
+
return void un.push([Ce, mt[gt - 1], Fi]);
|
|
1581
|
+
var nr = m(mt, gt);
|
|
1582
1582
|
if (c(Ce) && isNaN(Number(nr)))
|
|
1583
|
-
for (var
|
|
1584
|
-
else tr(
|
|
1585
|
-
}(
|
|
1583
|
+
for (var ln = 0, ki = Ce.length; ln < ki; ln++) tr(m(Ce, ln), mt, gt, Ce, un);
|
|
1584
|
+
else tr(m(Ce, nr), mt, gt + 1, Ce, un);
|
|
1585
|
+
}(f, g, 0, f, E), E.length === 1) {
|
|
1586
1586
|
var P = E[0];
|
|
1587
1587
|
return v(y, P[0], P[1], P[2]);
|
|
1588
1588
|
}
|
|
@@ -1592,21 +1592,21 @@ var rs = { exports: {} };
|
|
|
1592
1592
|
}
|
|
1593
1593
|
return W;
|
|
1594
1594
|
}
|
|
1595
|
-
function Q(u,
|
|
1596
|
-
return V({ keyPath: u, child:
|
|
1595
|
+
function Q(u, f, g) {
|
|
1596
|
+
return V({ keyPath: u, child: f, query: g }, R);
|
|
1597
1597
|
}
|
|
1598
1598
|
function Y(u) {
|
|
1599
|
-
var
|
|
1599
|
+
var f = u.comparable, g = u.expressions, y = function(P) {
|
|
1600
1600
|
var j;
|
|
1601
1601
|
return (!P || !(j = P) || j.constructor !== Object && j.constructor !== Array && j.constructor.toString() !== "function Object() { [native code] }" && j.constructor.toString() !== "function Array() { [native code] }" || j.toJSON) && (P = { $eq: P }), P;
|
|
1602
1602
|
}, b = function(P) {
|
|
1603
|
-
P =
|
|
1603
|
+
P = f(P);
|
|
1604
1604
|
var j = [];
|
|
1605
1605
|
for (var W in P) {
|
|
1606
1606
|
var _ = P[W];
|
|
1607
1607
|
if (W !== "$options") {
|
|
1608
1608
|
var he = O[W] || u && g && g[W];
|
|
1609
|
-
if (he) I[W] && (_ = I[W](_, P, u)), j.push(V(
|
|
1609
|
+
if (he) I[W] && (_ = I[W](_, P, u)), j.push(V(f(_), he));
|
|
1610
1610
|
else {
|
|
1611
1611
|
if (W.charCodeAt(0) === 36)
|
|
1612
1612
|
throw new Error("Unknown operation " + W);
|
|
@@ -1627,42 +1627,42 @@ var rs = { exports: {} };
|
|
|
1627
1627
|
return b(y(P));
|
|
1628
1628
|
};
|
|
1629
1629
|
}
|
|
1630
|
-
function w(u,
|
|
1631
|
-
if (Object.prototype.toString.call(u) !== Object.prototype.toString.call(
|
|
1630
|
+
function w(u, f) {
|
|
1631
|
+
if (Object.prototype.toString.call(u) !== Object.prototype.toString.call(f))
|
|
1632
1632
|
return !1;
|
|
1633
1633
|
if (l(u)) {
|
|
1634
|
-
if (Object.keys(u).length !== Object.keys(
|
|
1635
|
-
for (var g in u) if (!w(u[g],
|
|
1634
|
+
if (Object.keys(u).length !== Object.keys(f).length) return !1;
|
|
1635
|
+
for (var g in u) if (!w(u[g], f[g])) return !1;
|
|
1636
1636
|
return !0;
|
|
1637
1637
|
}
|
|
1638
1638
|
if (c(u)) {
|
|
1639
|
-
if (u.length !==
|
|
1639
|
+
if (u.length !== f.length) return !1;
|
|
1640
1640
|
for (var y = 0, b = u.length; y < b; y++)
|
|
1641
|
-
if (!w(u[y],
|
|
1641
|
+
if (!w(u[y], f[y])) return !1;
|
|
1642
1642
|
return !0;
|
|
1643
1643
|
}
|
|
1644
|
-
return u ===
|
|
1644
|
+
return u === f;
|
|
1645
1645
|
}
|
|
1646
|
-
function H(u,
|
|
1647
|
-
var g = Y(
|
|
1648
|
-
return
|
|
1646
|
+
function H(u, f) {
|
|
1647
|
+
var g = Y(f)(u);
|
|
1648
|
+
return f && f.select && (g = {
|
|
1649
1649
|
options: g,
|
|
1650
1650
|
validate: function(y, b, E, P) {
|
|
1651
|
-
return v(y, b &&
|
|
1651
|
+
return v(y, b && f.select(b), E, P);
|
|
1652
1652
|
}
|
|
1653
1653
|
}), g;
|
|
1654
1654
|
}
|
|
1655
|
-
function U(u,
|
|
1656
|
-
var g = H(u,
|
|
1655
|
+
function U(u, f) {
|
|
1656
|
+
var g = H(u, f = Object.assign({ compare: ee, comparable: q }, f));
|
|
1657
1657
|
return function(y, b, E) {
|
|
1658
1658
|
return v(g, y, b, E);
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
|
-
function ee(u,
|
|
1662
|
-
if (w(u,
|
|
1663
|
-
if (i(u) === i(
|
|
1664
|
-
if (u >
|
|
1665
|
-
if (u <
|
|
1661
|
+
function ee(u, f) {
|
|
1662
|
+
if (w(u, f)) return 0;
|
|
1663
|
+
if (i(u) === i(f)) {
|
|
1664
|
+
if (u > f) return 1;
|
|
1665
|
+
if (u < f) return -1;
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
1668
1668
|
function q(u) {
|
|
@@ -1680,16 +1680,16 @@ function ha(t, e) {
|
|
|
1680
1680
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
1681
1681
|
}
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function fa(t, e, n) {
|
|
1684
1684
|
return e && ha(t.prototype, e), t;
|
|
1685
1685
|
}
|
|
1686
|
-
function
|
|
1686
|
+
function ma(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 wn(t) {
|
|
1690
|
+
return wn = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
|
|
1691
1691
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
1692
|
-
},
|
|
1692
|
+
}, wn(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 vn(t) {
|
|
1721
1721
|
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
1722
|
-
return
|
|
1722
|
+
return vn = 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, wn(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
|
+
}, vn(t);
|
|
1742
1742
|
}
|
|
1743
1743
|
function ir(t) {
|
|
1744
1744
|
if (t === void 0)
|
|
@@ -1748,7 +1748,7 @@ function ir(t) {
|
|
|
1748
1748
|
var ss = function(e) {
|
|
1749
1749
|
return 'Cannot execute "' + e.action + '" on "' + e.subjectName + '"';
|
|
1750
1750
|
}, xt = ss, ya = /* @__PURE__ */ function(t) {
|
|
1751
|
-
|
|
1751
|
+
ma(e, t), e.setDefaultMessage = function(s) {
|
|
1752
1752
|
s === null ? xt = ss : xt = typeof s == "string" ? function() {
|
|
1753
1753
|
return s;
|
|
1754
1754
|
} : s;
|
|
@@ -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
|
+
}(vn(Error));
|
|
1786
|
+
function Bn(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 : Bn(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,13 +1866,13 @@ 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]),
|
|
1869
|
+
var A = new i(r[l]), m = this.expandActions(A.actions), p = Bn(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];
|
|
1873
1873
|
s[O] = s[O] || /* @__PURE__ */ Object.create(null);
|
|
1874
|
-
for (var I = 0; I <
|
|
1875
|
-
var V =
|
|
1874
|
+
for (var I = 0; I < m.length; I++) {
|
|
1875
|
+
var V = m[I];
|
|
1876
1876
|
s[O][V] = s[O][V] || /* @__PURE__ */ Object.create(null), s[O][V][B] = A;
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
@@ -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 = Bn(r), a = 0; a < i.length; ) {
|
|
1887
1887
|
var c = i[a++];
|
|
1888
1888
|
s.hasOwnProperty(c) && (i = i.concat(s[c]));
|
|
1889
1889
|
}
|
|
@@ -1933,7 +1933,7 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
1933
1933
|
i && i.slice(0).forEach(function(a) {
|
|
1934
1934
|
return a(s);
|
|
1935
1935
|
});
|
|
1936
|
-
},
|
|
1936
|
+
}, fa(t, [{
|
|
1937
1937
|
key: "rules",
|
|
1938
1938
|
get: function() {
|
|
1939
1939
|
return this[te].originalRules;
|
|
@@ -1973,9 +1973,9 @@ function Va(t) {
|
|
|
1973
1973
|
return new Oa(Ya(t));
|
|
1974
1974
|
}
|
|
1975
1975
|
function xa(t, e, n) {
|
|
1976
|
-
const r = Array.isArray(t) ? t : [t], s = Va(e), i = (
|
|
1976
|
+
const r = Array.isArray(t) ? t : [t], s = Va(e), i = (m) => m.subject, a = (m) => s.can(m.action, i(m), m.field) ? !0 : m.coverSubject !== void 0 ? s.can(m.action, m.coverSubject, m.field) : !1, c = r.find((m) => !a(m));
|
|
1977
1977
|
if (c) {
|
|
1978
|
-
const
|
|
1978
|
+
const m = s.relevantRuleFor(
|
|
1979
1979
|
c.action,
|
|
1980
1980
|
i(c),
|
|
1981
1981
|
c.field
|
|
@@ -1983,7 +1983,7 @@ function xa(t, e, n) {
|
|
|
1983
1983
|
return {
|
|
1984
1984
|
granted: !1,
|
|
1985
1985
|
decisivePermission: c,
|
|
1986
|
-
decisiveRule:
|
|
1986
|
+
decisiveRule: m ?? null
|
|
1987
1987
|
};
|
|
1988
1988
|
}
|
|
1989
1989
|
const l = r[0], A = s.relevantRuleFor(l.action, i(l), l.field);
|
|
@@ -2031,9 +2031,9 @@ async function ka(t, e) {
|
|
|
2031
2031
|
canAccess: !0
|
|
2032
2032
|
};
|
|
2033
2033
|
}
|
|
2034
|
-
var
|
|
2034
|
+
var Dn = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Dn || {});
|
|
2035
2035
|
function Ra() {
|
|
2036
|
-
const t = ts(), { sessionUser: e } =
|
|
2036
|
+
const t = ts(), { sessionUser: e } = Hn();
|
|
2037
2037
|
return ca(
|
|
2038
2038
|
async () => {
|
|
2039
2039
|
t.matched;
|
|
@@ -2072,7 +2072,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2072
2072
|
subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
|
|
2073
2073
|
}, za = {
|
|
2074
2074
|
noPermission: Wa
|
|
2075
|
-
}, Za = { class: "w-full h-full flex justify-center items-center" }, La = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Ka = { class: "w-[300px] h-[300px]" }, Ja = ["src"], _a = { class: "text-2xl" }, $a = { class: "text-xl" }, eo = /* @__PURE__ */
|
|
2075
|
+
}, Za = { class: "w-full h-full flex justify-center items-center" }, La = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Ka = { class: "w-[300px] h-[300px]" }, Ja = ["src"], _a = { class: "text-2xl" }, $a = { class: "text-xl" }, eo = /* @__PURE__ */ tn({
|
|
2076
2076
|
__name: "NoPermission",
|
|
2077
2077
|
setup(t) {
|
|
2078
2078
|
const { t: e } = ns({
|
|
@@ -2083,7 +2083,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2083
2083
|
"th-TH": za
|
|
2084
2084
|
}
|
|
2085
2085
|
});
|
|
2086
|
-
return (n, r) => (
|
|
2086
|
+
return (n, r) => (nn(), Si("div", Za, [
|
|
2087
2087
|
Ke("div", La, [
|
|
2088
2088
|
Ke("div", Ka, [
|
|
2089
2089
|
Ke("img", {
|
|
@@ -2098,18 +2098,18 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2098
2098
|
])
|
|
2099
2099
|
]));
|
|
2100
2100
|
}
|
|
2101
|
-
}), to = /* @__PURE__ */
|
|
2101
|
+
}), to = /* @__PURE__ */ tn({
|
|
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(Dn).Denied ? (nn(), Nn(eo, { key: 0 })) : ge(e) === ge(Dn).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 () => bn(to, {}, { default: () => bn(t, n) });
|
|
2113
2113
|
}
|
|
2114
2114
|
};
|
|
2115
2115
|
}
|
|
@@ -2303,7 +2303,7 @@ const k = [
|
|
|
2303
2303
|
o.delete
|
|
2304
2304
|
]
|
|
2305
2305
|
}
|
|
2306
|
-
],
|
|
2306
|
+
], fo = [
|
|
2307
2307
|
...k,
|
|
2308
2308
|
{
|
|
2309
2309
|
label: "Credit",
|
|
@@ -2315,7 +2315,7 @@ const k = [
|
|
|
2315
2315
|
o.delete
|
|
2316
2316
|
]
|
|
2317
2317
|
}
|
|
2318
|
-
],
|
|
2318
|
+
], mo = [
|
|
2319
2319
|
...k,
|
|
2320
2320
|
{
|
|
2321
2321
|
label: "Experience",
|
|
@@ -2375,7 +2375,7 @@ const k = [
|
|
|
2375
2375
|
o.delete
|
|
2376
2376
|
]
|
|
2377
2377
|
}
|
|
2378
|
-
],
|
|
2378
|
+
], fs = [
|
|
2379
2379
|
...k,
|
|
2380
2380
|
{
|
|
2381
2381
|
label: "Loyalty Card",
|
|
@@ -2387,7 +2387,7 @@ const k = [
|
|
|
2387
2387
|
o.delete
|
|
2388
2388
|
]
|
|
2389
2389
|
}
|
|
2390
|
-
],
|
|
2390
|
+
], ms = [
|
|
2391
2391
|
...k,
|
|
2392
2392
|
{
|
|
2393
2393
|
label: "Bin",
|
|
@@ -2408,10 +2408,10 @@ const k = [
|
|
|
2408
2408
|
ho
|
|
2409
2409
|
), ws = $(
|
|
2410
2410
|
se,
|
|
2411
|
-
|
|
2411
|
+
fo
|
|
2412
2412
|
), vs = $(
|
|
2413
2413
|
se,
|
|
2414
|
-
|
|
2414
|
+
mo
|
|
2415
2415
|
), Bs = $(
|
|
2416
2416
|
se,
|
|
2417
2417
|
go
|
|
@@ -2468,8 +2468,8 @@ const k = [
|
|
|
2468
2468
|
Ds,
|
|
2469
2469
|
ds,
|
|
2470
2470
|
hs,
|
|
2471
|
-
|
|
2472
|
-
|
|
2471
|
+
fs,
|
|
2472
|
+
ms
|
|
2473
2473
|
), Bo = $(
|
|
2474
2474
|
se,
|
|
2475
2475
|
ls,
|
|
@@ -2556,7 +2556,7 @@ const k = [
|
|
|
2556
2556
|
[`set_${d.crm_loyaltyCard}`]: {
|
|
2557
2557
|
key: "sys:crm:loyaltyCard",
|
|
2558
2558
|
name: "CRM Loyalty Card",
|
|
2559
|
-
permissions:
|
|
2559
|
+
permissions: fs
|
|
2560
2560
|
},
|
|
2561
2561
|
[`set_${d.crm_referral}`]: {
|
|
2562
2562
|
key: "sys:crm:referral",
|
|
@@ -2581,7 +2581,7 @@ const k = [
|
|
|
2581
2581
|
[`set_${d.crm_bin}`]: {
|
|
2582
2582
|
key: "sys:crm:bin",
|
|
2583
2583
|
name: "CRM Bin",
|
|
2584
|
-
permissions:
|
|
2584
|
+
permissions: ms
|
|
2585
2585
|
}
|
|
2586
2586
|
};
|
|
2587
2587
|
var C = /* @__PURE__ */ ((t) => (t.inventory = "inventory", t.inventory_stock = "inventory::stock", t.inventory_stockAdjustment = "inventory::stockAdjustment", t.inventory_stockRecalculation = "inventory::stockRecalculation", t.inventory_unitCostHistory = "inventory::unitCostHistory", t.inventory_wastageTemplate = "inventory::wastageTemplate", t.inventory_closing = "inventory::closing", t.inventory_closingDraft = "inventory::closingDraft", t.inventory_closingTemplate = "inventory::closingTemplate", t.inventory_ingredient = "inventory::ingredient", t.inventory_ingredientGroup = "inventory::ingredientGroup", t.inventory_recipe = "inventory::recipe", t.inventory_unit = "inventory::unit", t.inventory_orderTemplate = "inventory::orderTemplate", t.inventory_orderDraft = "inventory::orderDraft", t.inventory_printTemplate = "inventory::printTemplate", t.inventory_purchaseOrder = "inventory::purchaseOrder", t.inventory_transferOutApproval = "inventory::transferOutApproval", t.inventory_adjustmentTemplate = "inventory::adjustmentTemplate", t.inventory_surcharge = "inventory::surcharge", t.inventory_supplier = "inventory::supplier", t.inventory_warehouse = "inventory::warehouse", t.inventory_publish = "inventory::publish", t.inventory_integration = "inventory::integration", t.inventory_deliveryOrder = "inventory::deliveryOrder", t.inventory_shipment = "inventory::shipment", t.inventory_orderDraftApproval = "inventory::orderDraftApproval", t))(C || {});
|
|
@@ -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-bpdNibYe.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-NbagQfTz.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-CpuAa-qa.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-CMkQNnDb.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-C9M8t5vU.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-CIFQEBec.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-z_7q3GBS.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-z_7q3GBS.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-z_7q3GBS.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-C5UmznfX.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-C5UmznfX.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-C5UmznfX.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-DNkc6es6.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-CtYYjuEB.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-TAZg6fCx.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-ENvQRM79.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
|
+
})), Ut = [
|
|
3307
3307
|
{
|
|
3308
3308
|
path: "",
|
|
3309
3309
|
redirect: { name: "mf-payment-payout-account" }
|
|
@@ -3311,9 +3311,10 @@ const Ho = () => ({
|
|
|
3311
3311
|
{
|
|
3312
3312
|
path: "/payout-account",
|
|
3313
3313
|
name: "mf-payment-payout-account",
|
|
3314
|
-
component: () => import("./PayoutAccount-
|
|
3314
|
+
component: () => import("./PayoutAccount-BSXnemjX.js"),
|
|
3315
3315
|
meta: {
|
|
3316
3316
|
sidebarDisplay: "i18n:payment.routes.payout_account",
|
|
3317
|
+
region: { MY: !0 },
|
|
3317
3318
|
validationManifest: {
|
|
3318
3319
|
requiredCaslPermissions: [
|
|
3319
3320
|
{
|
|
@@ -3327,7 +3328,7 @@ const Ho = () => ({
|
|
|
3327
3328
|
{
|
|
3328
3329
|
path: "/onboard-submission",
|
|
3329
3330
|
name: "mf-payment-onboard-submission",
|
|
3330
|
-
component: () => import("./OnboardSubmission-
|
|
3331
|
+
component: () => import("./OnboardSubmission-CndjRMqy.js"),
|
|
3331
3332
|
meta: {
|
|
3332
3333
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
3333
3334
|
region: { MY: !0, TH: !0, AU: !0 },
|
|
@@ -3345,7 +3346,7 @@ const Ho = () => ({
|
|
|
3345
3346
|
path: "/onboard-submission/restaurant/:restaurantId/:type/:submission?",
|
|
3346
3347
|
name: "mf-payment-onboard-submission-form",
|
|
3347
3348
|
props: !0,
|
|
3348
|
-
component: () => import("./OnboardForm
|
|
3349
|
+
component: () => import("./OnboardForm-IRLkWmoI.js"),
|
|
3349
3350
|
meta: {
|
|
3350
3351
|
parent: "mf-payment-onboard-submission",
|
|
3351
3352
|
validationManifest: {
|
|
@@ -3361,7 +3362,7 @@ const Ho = () => ({
|
|
|
3361
3362
|
{
|
|
3362
3363
|
path: "/transaction-old",
|
|
3363
3364
|
name: "mf-payment-old-transaction",
|
|
3364
|
-
component: () => import("./TransactionOld-
|
|
3365
|
+
component: () => import("./TransactionOld-Dm5PvUqF.js"),
|
|
3365
3366
|
meta: {
|
|
3366
3367
|
sidebarDisplay: "i18n:payment.routes.transaction",
|
|
3367
3368
|
validationManifest: {
|
|
@@ -3377,7 +3378,7 @@ const Ho = () => ({
|
|
|
3377
3378
|
{
|
|
3378
3379
|
path: "/transaction",
|
|
3379
3380
|
name: "mf-payment-transaction",
|
|
3380
|
-
component: () => import("./Transaction-
|
|
3381
|
+
component: () => import("./Transaction-zDTbTtVx.js"),
|
|
3381
3382
|
meta: {
|
|
3382
3383
|
sidebarDisplay: "i18n:payment.routes.transaction_new",
|
|
3383
3384
|
sidebarNew: !0,
|
|
@@ -3394,7 +3395,7 @@ const Ho = () => ({
|
|
|
3394
3395
|
{
|
|
3395
3396
|
path: "/settlement",
|
|
3396
3397
|
name: "mf-payment-settlement",
|
|
3397
|
-
component: () => import("./Settlement-
|
|
3398
|
+
component: () => import("./Settlement-D_yGtVZV.js"),
|
|
3398
3399
|
meta: {
|
|
3399
3400
|
sidebarDisplay: "i18n:payment.routes.settlement",
|
|
3400
3401
|
region: { MY: !0, SG: !0 },
|
|
@@ -3412,7 +3413,7 @@ const Ho = () => ({
|
|
|
3412
3413
|
path: "/settlement/:settlementId",
|
|
3413
3414
|
name: "mf-payment-settlement-transaction",
|
|
3414
3415
|
props: !0,
|
|
3415
|
-
component: () => import("./SettlementTransactions-
|
|
3416
|
+
component: () => import("./SettlementTransactions-DHxHNPdw.js"),
|
|
3416
3417
|
meta: {
|
|
3417
3418
|
parent: "mf-payment-settlement",
|
|
3418
3419
|
validationManifest: {
|
|
@@ -3452,7 +3453,7 @@ const Ho = () => ({
|
|
|
3452
3453
|
], Qo = $i("mf-payment-iframe", () => {
|
|
3453
3454
|
const t = {
|
|
3454
3455
|
isIframe: !1
|
|
3455
|
-
}, e =
|
|
3456
|
+
}, e = qn(() => t);
|
|
3456
3457
|
function n(r) {
|
|
3457
3458
|
t.isIframe = r;
|
|
3458
3459
|
}
|
|
@@ -3579,9 +3580,9 @@ const Vs = function(t) {
|
|
|
3579
3580
|
this.init_();
|
|
3580
3581
|
const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
|
3581
3582
|
for (let s = 0; s < t.length; s += 3) {
|
|
3582
|
-
const i = t[s], a = s + 1 < t.length, c = a ? t[s + 1] : 0, l = s + 2 < t.length, A = l ? t[s + 2] : 0,
|
|
3583
|
+
const i = t[s], a = s + 1 < t.length, c = a ? t[s + 1] : 0, l = s + 2 < t.length, A = l ? t[s + 2] : 0, m = i >> 2, p = (i & 3) << 4 | c >> 4;
|
|
3583
3584
|
let B = (c & 15) << 2 | A >> 6, v = A & 63;
|
|
3584
|
-
l || (v = 64, a || (B = 64)), r.push(n[
|
|
3585
|
+
l || (v = 64, a || (B = 64)), r.push(n[m], n[p], n[B], n[v]);
|
|
3585
3586
|
}
|
|
3586
3587
|
return r.join("");
|
|
3587
3588
|
},
|
|
@@ -3893,7 +3894,7 @@ function cc(t) {
|
|
|
3893
3894
|
return !1;
|
|
3894
3895
|
return !0;
|
|
3895
3896
|
}
|
|
3896
|
-
function
|
|
3897
|
+
function Wt(t, e) {
|
|
3897
3898
|
if (t === e)
|
|
3898
3899
|
return !0;
|
|
3899
3900
|
const n = Object.keys(t), r = Object.keys(e);
|
|
@@ -3902,7 +3903,7 @@ function Ut(t, e) {
|
|
|
3902
3903
|
return !1;
|
|
3903
3904
|
const i = t[s], a = e[s];
|
|
3904
3905
|
if (ur(i) && ur(a)) {
|
|
3905
|
-
if (!
|
|
3906
|
+
if (!Wt(i, a))
|
|
3906
3907
|
return !1;
|
|
3907
3908
|
} else if (i !== a)
|
|
3908
3909
|
return !1;
|
|
@@ -3989,7 +3990,7 @@ class lc {
|
|
|
3989
3990
|
next: e,
|
|
3990
3991
|
error: n,
|
|
3991
3992
|
complete: r
|
|
3992
|
-
}, s.next === void 0 && (s.next =
|
|
3993
|
+
}, s.next === void 0 && (s.next = dn), s.error === void 0 && (s.error = dn), s.complete === void 0 && (s.complete = dn);
|
|
3993
3994
|
const i = this.unsubscribeOne.bind(this, this.observers.length);
|
|
3994
3995
|
return this.finalized && this.task.then(() => {
|
|
3995
3996
|
try {
|
|
@@ -4035,7 +4036,7 @@ function Ac(t, e) {
|
|
|
4035
4036
|
return !0;
|
|
4036
4037
|
return !1;
|
|
4037
4038
|
}
|
|
4038
|
-
function
|
|
4039
|
+
function dn() {
|
|
4039
4040
|
}
|
|
4040
4041
|
/**
|
|
4041
4042
|
* @license
|
|
@@ -4163,7 +4164,7 @@ class dc {
|
|
|
4163
4164
|
if (this.component)
|
|
4164
4165
|
throw Error(`Component for ${this.name} has already been provided`);
|
|
4165
4166
|
if (this.component = e, !!this.shouldAutoInitialize()) {
|
|
4166
|
-
if (
|
|
4167
|
+
if (fc(e))
|
|
4167
4168
|
try {
|
|
4168
4169
|
this.getOrInitializeService({ instanceIdentifier: Ne });
|
|
4169
4170
|
} catch {
|
|
@@ -4269,7 +4270,7 @@ class dc {
|
|
|
4269
4270
|
function hc(t) {
|
|
4270
4271
|
return t === Ne ? void 0 : t;
|
|
4271
4272
|
}
|
|
4272
|
-
function
|
|
4273
|
+
function fc(t) {
|
|
4273
4274
|
return t.instantiationMode === "EAGER";
|
|
4274
4275
|
}
|
|
4275
4276
|
/**
|
|
@@ -4288,7 +4289,7 @@ function mc(t) {
|
|
|
4288
4289
|
* See the License for the specific language governing permissions and
|
|
4289
4290
|
* limitations under the License.
|
|
4290
4291
|
*/
|
|
4291
|
-
class
|
|
4292
|
+
class mc {
|
|
4292
4293
|
constructor(e) {
|
|
4293
4294
|
this.name = e, this.providers = /* @__PURE__ */ new Map();
|
|
4294
4295
|
}
|
|
@@ -4442,7 +4443,7 @@ function Bc() {
|
|
|
4442
4443
|
IDBCursor.prototype.continuePrimaryKey
|
|
4443
4444
|
]);
|
|
4444
4445
|
}
|
|
4445
|
-
const Hs = /* @__PURE__ */ new WeakMap(),
|
|
4446
|
+
const Hs = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap();
|
|
4446
4447
|
function Dc(t) {
|
|
4447
4448
|
const e = new Promise((n, r) => {
|
|
4448
4449
|
const s = () => {
|
|
@@ -4460,7 +4461,7 @@ function Dc(t) {
|
|
|
4460
4461
|
}), Un.set(e, t), e;
|
|
4461
4462
|
}
|
|
4462
4463
|
function Cc(t) {
|
|
4463
|
-
if (
|
|
4464
|
+
if (Cn.has(t))
|
|
4464
4465
|
return;
|
|
4465
4466
|
const e = new Promise((n, r) => {
|
|
4466
4467
|
const s = () => {
|
|
@@ -4472,13 +4473,13 @@ function Cc(t) {
|
|
|
4472
4473
|
};
|
|
4473
4474
|
t.addEventListener("complete", i), t.addEventListener("error", a), t.addEventListener("abort", a);
|
|
4474
4475
|
});
|
|
4475
|
-
|
|
4476
|
+
Cn.set(t, e);
|
|
4476
4477
|
}
|
|
4477
|
-
let
|
|
4478
|
+
let En = {
|
|
4478
4479
|
get(t, e, n) {
|
|
4479
4480
|
if (t instanceof IDBTransaction) {
|
|
4480
4481
|
if (e === "done")
|
|
4481
|
-
return
|
|
4482
|
+
return Cn.get(t);
|
|
4482
4483
|
if (e === "objectStoreNames")
|
|
4483
4484
|
return t.objectStoreNames || Qs.get(t);
|
|
4484
4485
|
if (e === "store")
|
|
@@ -4494,30 +4495,30 @@ let Cn = {
|
|
|
4494
4495
|
}
|
|
4495
4496
|
};
|
|
4496
4497
|
function Ec(t) {
|
|
4497
|
-
|
|
4498
|
+
En = t(En);
|
|
4498
4499
|
}
|
|
4499
4500
|
function Mc(t) {
|
|
4500
4501
|
return t === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...n) {
|
|
4501
|
-
const r = t.call(
|
|
4502
|
+
const r = t.call(fn(this), e, ...n);
|
|
4502
4503
|
return Qs.set(r, e.sort ? e.sort() : [e]), Fe(r);
|
|
4503
4504
|
} : Bc().includes(t) ? function(...e) {
|
|
4504
|
-
return t.apply(
|
|
4505
|
+
return t.apply(fn(this), e), Fe(Hs.get(this));
|
|
4505
4506
|
} : function(...e) {
|
|
4506
|
-
return Fe(t.apply(
|
|
4507
|
+
return Fe(t.apply(fn(this), e));
|
|
4507
4508
|
};
|
|
4508
4509
|
}
|
|
4509
4510
|
function Ic(t) {
|
|
4510
|
-
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, En) : t);
|
|
4511
4512
|
}
|
|
4512
4513
|
function Fe(t) {
|
|
4513
4514
|
if (t instanceof IDBRequest)
|
|
4514
4515
|
return Dc(t);
|
|
4515
|
-
if (
|
|
4516
|
-
return
|
|
4516
|
+
if (hn.has(t))
|
|
4517
|
+
return hn.get(t);
|
|
4517
4518
|
const e = Ic(t);
|
|
4518
|
-
return e !== t && (
|
|
4519
|
+
return e !== t && (hn.set(t, e), Un.set(e, t)), e;
|
|
4519
4520
|
}
|
|
4520
|
-
const
|
|
4521
|
+
const fn = (t) => Un.get(t);
|
|
4521
4522
|
function Pc(t, e, { blocked: n, upgrade: r, blocking: s, terminated: i } = {}) {
|
|
4522
4523
|
const a = indexedDB.open(t, e), c = Fe(a);
|
|
4523
4524
|
return r && a.addEventListener("upgradeneeded", (l) => {
|
|
@@ -4595,7 +4596,7 @@ function jc(t) {
|
|
|
4595
4596
|
const e = t.getComponent();
|
|
4596
4597
|
return (e == null ? void 0 : e.type) === "VERSION";
|
|
4597
4598
|
}
|
|
4598
|
-
const
|
|
4599
|
+
const Mn = "@firebase/app", hr = "0.10.13";
|
|
4599
4600
|
/**
|
|
4600
4601
|
* @license
|
|
4601
4602
|
* Copyright 2019 Google LLC
|
|
@@ -4629,8 +4630,8 @@ const ve = new Ns("@firebase/app"), Yc = "@firebase/app-compat", Vc = "@firebase
|
|
|
4629
4630
|
* See the License for the specific language governing permissions and
|
|
4630
4631
|
* limitations under the License.
|
|
4631
4632
|
*/
|
|
4632
|
-
const
|
|
4633
|
-
[
|
|
4633
|
+
const In = "[DEFAULT]", au = {
|
|
4634
|
+
[Mn]: "fire-core",
|
|
4634
4635
|
[Yc]: "fire-core-compat",
|
|
4635
4636
|
[xc]: "fire-analytics",
|
|
4636
4637
|
[Vc]: "fire-analytics-compat",
|
|
@@ -4675,8 +4676,8 @@ const Mn = "[DEFAULT]", au = {
|
|
|
4675
4676
|
* See the License for the specific language governing permissions and
|
|
4676
4677
|
* limitations under the License.
|
|
4677
4678
|
*/
|
|
4678
|
-
const
|
|
4679
|
-
function
|
|
4679
|
+
const zt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), Pn = /* @__PURE__ */ new Map();
|
|
4680
|
+
function fr(t, e) {
|
|
4680
4681
|
try {
|
|
4681
4682
|
t.container.addComponent(e);
|
|
4682
4683
|
} catch (n) {
|
|
@@ -4685,13 +4686,13 @@ function mr(t, e) {
|
|
|
4685
4686
|
}
|
|
4686
4687
|
function bt(t) {
|
|
4687
4688
|
const e = t.name;
|
|
4688
|
-
if (
|
|
4689
|
+
if (Pn.has(e))
|
|
4689
4690
|
return ve.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
4690
|
-
|
|
4691
|
-
for (const n of
|
|
4692
|
-
|
|
4691
|
+
Pn.set(e, t);
|
|
4692
|
+
for (const n of zt.values())
|
|
4693
|
+
fr(n, t);
|
|
4693
4694
|
for (const n of ou.values())
|
|
4694
|
-
|
|
4695
|
+
fr(n, t);
|
|
4695
4696
|
return !0;
|
|
4696
4697
|
}
|
|
4697
4698
|
function Xs(t, e) {
|
|
@@ -4811,7 +4812,7 @@ const Ot = iu;
|
|
|
4811
4812
|
function Ss(t, e = {}) {
|
|
4812
4813
|
let n = t;
|
|
4813
4814
|
typeof e != "object" && (e = { name: e });
|
|
4814
|
-
const r = Object.assign({ name:
|
|
4815
|
+
const r = Object.assign({ name: In, automaticDataCollectionEnabled: !1 }, e), s = r.name;
|
|
4815
4816
|
if (typeof s != "string" || !s)
|
|
4816
4817
|
throw ke.create("bad-app-name", {
|
|
4817
4818
|
appName: String(s)
|
|
@@ -4821,21 +4822,21 @@ function Ss(t, e = {}) {
|
|
|
4821
4822
|
"no-options"
|
|
4822
4823
|
/* AppError.NO_OPTIONS */
|
|
4823
4824
|
);
|
|
4824
|
-
const i =
|
|
4825
|
+
const i = zt.get(s);
|
|
4825
4826
|
if (i) {
|
|
4826
|
-
if (
|
|
4827
|
+
if (Wt(n, i.options) && Wt(r, i.config))
|
|
4827
4828
|
return i;
|
|
4828
4829
|
throw ke.create("duplicate-app", { appName: s });
|
|
4829
4830
|
}
|
|
4830
|
-
const a = new
|
|
4831
|
-
for (const l of
|
|
4831
|
+
const a = new mc(s);
|
|
4832
|
+
for (const l of Pn.values())
|
|
4832
4833
|
a.addComponent(l);
|
|
4833
4834
|
const c = new uu(n, r, a);
|
|
4834
|
-
return
|
|
4835
|
+
return zt.set(s, c), c;
|
|
4835
4836
|
}
|
|
4836
|
-
function lu(t =
|
|
4837
|
-
const e =
|
|
4838
|
-
if (!e && t ===
|
|
4837
|
+
function lu(t = In) {
|
|
4838
|
+
const e = zt.get(t);
|
|
4839
|
+
if (!e && t === In && Rs())
|
|
4839
4840
|
return Ss();
|
|
4840
4841
|
if (!e)
|
|
4841
4842
|
throw ke.create("no-app", { appName: t });
|
|
@@ -4877,9 +4878,9 @@ function $e(t, e, n) {
|
|
|
4877
4878
|
* limitations under the License.
|
|
4878
4879
|
*/
|
|
4879
4880
|
const Au = "firebase-heartbeat-database", du = 1, wt = "firebase-heartbeat-store";
|
|
4880
|
-
let
|
|
4881
|
+
let gn = null;
|
|
4881
4882
|
function Us() {
|
|
4882
|
-
return
|
|
4883
|
+
return gn || (gn = Pc(Au, du, {
|
|
4883
4884
|
upgrade: (t, e) => {
|
|
4884
4885
|
switch (e) {
|
|
4885
4886
|
case 0:
|
|
@@ -4894,7 +4895,7 @@ function Us() {
|
|
|
4894
4895
|
throw ke.create("idb-open", {
|
|
4895
4896
|
originalErrorMessage: t.message
|
|
4896
4897
|
});
|
|
4897
|
-
})),
|
|
4898
|
+
})), gn;
|
|
4898
4899
|
}
|
|
4899
4900
|
async function hu(t) {
|
|
4900
4901
|
try {
|
|
@@ -4911,7 +4912,7 @@ async function hu(t) {
|
|
|
4911
4912
|
}
|
|
4912
4913
|
}
|
|
4913
4914
|
}
|
|
4914
|
-
async function
|
|
4915
|
+
async function mr(t, e) {
|
|
4915
4916
|
try {
|
|
4916
4917
|
const r = (await Us()).transaction(wt, "readwrite");
|
|
4917
4918
|
await r.objectStore(wt).put(e, Ws(t)), await r.done;
|
|
@@ -4945,7 +4946,7 @@ function Ws(t) {
|
|
|
4945
4946
|
* See the License for the specific language governing permissions and
|
|
4946
4947
|
* limitations under the License.
|
|
4947
4948
|
*/
|
|
4948
|
-
const
|
|
4949
|
+
const fu = 1024, mu = 30 * 24 * 60 * 60 * 1e3;
|
|
4949
4950
|
class gu {
|
|
4950
4951
|
constructor(e) {
|
|
4951
4952
|
this.container = e, this._heartbeatsCache = null;
|
|
@@ -4965,7 +4966,7 @@ class gu {
|
|
|
4965
4966
|
const s = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), i = gr();
|
|
4966
4967
|
return ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((n = this._heartbeatsCache) === null || n === void 0 ? void 0 : n.heartbeats) == null) || this._heartbeatsCache.lastSentHeartbeatDate === i || this._heartbeatsCache.heartbeats.some((a) => a.date === i) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: i, agent: s }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((a) => {
|
|
4967
4968
|
const c = new Date(a.date).valueOf();
|
|
4968
|
-
return Date.now() - c <=
|
|
4969
|
+
return Date.now() - c <= mu;
|
|
4969
4970
|
}), this._storage.overwrite(this._heartbeatsCache));
|
|
4970
4971
|
} catch (r) {
|
|
4971
4972
|
ve.warn(r);
|
|
@@ -4993,7 +4994,7 @@ class gu {
|
|
|
4993
4994
|
function gr() {
|
|
4994
4995
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
|
4995
4996
|
}
|
|
4996
|
-
function pu(t, e =
|
|
4997
|
+
function pu(t, e = fu) {
|
|
4997
4998
|
const n = [];
|
|
4998
4999
|
let r = t.slice();
|
|
4999
5000
|
for (const s of t) {
|
|
@@ -5039,7 +5040,7 @@ class yu {
|
|
|
5039
5040
|
var n;
|
|
5040
5041
|
if (await this._canUseIndexedDBPromise) {
|
|
5041
5042
|
const s = await this.read();
|
|
5042
|
-
return
|
|
5043
|
+
return mr(this.app, {
|
|
5043
5044
|
lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
|
|
5044
5045
|
heartbeats: e.heartbeats
|
|
5045
5046
|
});
|
|
@@ -5051,7 +5052,7 @@ class yu {
|
|
|
5051
5052
|
var n;
|
|
5052
5053
|
if (await this._canUseIndexedDBPromise) {
|
|
5053
5054
|
const s = await this.read();
|
|
5054
|
-
return
|
|
5055
|
+
return mr(this.app, {
|
|
5055
5056
|
lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
|
|
5056
5057
|
heartbeats: [
|
|
5057
5058
|
...s.heartbeats,
|
|
@@ -5095,7 +5096,7 @@ function bu(t) {
|
|
|
5095
5096
|
(e) => new gu(e),
|
|
5096
5097
|
"PRIVATE"
|
|
5097
5098
|
/* ComponentType.PRIVATE */
|
|
5098
|
-
)), $e(
|
|
5099
|
+
)), $e(Mn, hr, t), $e(Mn, hr, "esm2017"), $e("fire-js", "");
|
|
5099
5100
|
}
|
|
5100
5101
|
bu("");
|
|
5101
5102
|
var wu = "firebase", vu = "10.14.1";
|
|
@@ -5155,12 +5156,12 @@ const Bu = zs, Zs = new It("auth", "Firebase", zs());
|
|
|
5155
5156
|
* See the License for the specific language governing permissions and
|
|
5156
5157
|
* limitations under the License.
|
|
5157
5158
|
*/
|
|
5158
|
-
const
|
|
5159
|
+
const Zt = new Ns("@firebase/auth");
|
|
5159
5160
|
function Du(t, ...e) {
|
|
5160
|
-
|
|
5161
|
+
Zt.logLevel <= F.WARN && Zt.warn(`Auth (${Ot}): ${t}`, ...e);
|
|
5161
5162
|
}
|
|
5162
5163
|
function qt(t, ...e) {
|
|
5163
|
-
|
|
5164
|
+
Zt.logLevel <= F.ERROR && Zt.error(`Auth (${Ot}): ${t}`, ...e);
|
|
5164
5165
|
}
|
|
5165
5166
|
/**
|
|
5166
5167
|
* @license
|
|
@@ -5227,7 +5228,7 @@ function De(t, e) {
|
|
|
5227
5228
|
* See the License for the specific language governing permissions and
|
|
5228
5229
|
* limitations under the License.
|
|
5229
5230
|
*/
|
|
5230
|
-
function
|
|
5231
|
+
function On() {
|
|
5231
5232
|
var t;
|
|
5232
5233
|
return typeof self < "u" && ((t = self.location) === null || t === void 0 ? void 0 : t.href) || "";
|
|
5233
5234
|
}
|
|
@@ -5481,10 +5482,10 @@ const Iu = {
|
|
|
5481
5482
|
* limitations under the License.
|
|
5482
5483
|
*/
|
|
5483
5484
|
const Pu = new Tt(3e4, 6e4);
|
|
5484
|
-
function
|
|
5485
|
+
function rn(t, e) {
|
|
5485
5486
|
return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
|
|
5486
5487
|
}
|
|
5487
|
-
async function
|
|
5488
|
+
async function ft(t, e, n, r, s = {}) {
|
|
5488
5489
|
return Js(t, s, async () => {
|
|
5489
5490
|
let i = {}, a = {};
|
|
5490
5491
|
r && (e === "GET" ? a = r : i = {
|
|
@@ -5527,10 +5528,10 @@ async function Js(t, e, n) {
|
|
|
5527
5528
|
throw Ft(t, "email-already-in-use", a);
|
|
5528
5529
|
if (l === "USER_DISABLED")
|
|
5529
5530
|
throw Ft(t, "user-disabled", a);
|
|
5530
|
-
const
|
|
5531
|
+
const m = r[l] || l.toLowerCase().replace(/[_\s]+/g, "-");
|
|
5531
5532
|
if (A)
|
|
5532
|
-
throw Ls(t,
|
|
5533
|
-
Be(t,
|
|
5533
|
+
throw Ls(t, m, A);
|
|
5534
|
+
Be(t, m);
|
|
5534
5535
|
}
|
|
5535
5536
|
} catch (s) {
|
|
5536
5537
|
if (s instanceof qe)
|
|
@@ -5539,7 +5540,7 @@ async function Js(t, e, n) {
|
|
|
5539
5540
|
}
|
|
5540
5541
|
}
|
|
5541
5542
|
async function _s(t, e, n, r, s = {}) {
|
|
5542
|
-
const i = await
|
|
5543
|
+
const i = await ft(t, e, n, r, s);
|
|
5543
5544
|
return "mfaPendingCredential" in i && Be(t, "multi-factor-auth-required", {
|
|
5544
5545
|
_serverResponse: i
|
|
5545
5546
|
}), i;
|
|
@@ -5587,10 +5588,10 @@ function Ft(t, e, n) {
|
|
|
5587
5588
|
* limitations under the License.
|
|
5588
5589
|
*/
|
|
5589
5590
|
async function Tu(t, e) {
|
|
5590
|
-
return
|
|
5591
|
+
return ft(t, "POST", "/v1/accounts:delete", e);
|
|
5591
5592
|
}
|
|
5592
5593
|
async function ei(t, e) {
|
|
5593
|
-
return
|
|
5594
|
+
return ft(t, "POST", "/v1/accounts:lookup", e);
|
|
5594
5595
|
}
|
|
5595
5596
|
/**
|
|
5596
5597
|
* @license
|
|
@@ -5629,14 +5630,14 @@ async function Gu(t, e = !1) {
|
|
|
5629
5630
|
return {
|
|
5630
5631
|
claims: s,
|
|
5631
5632
|
token: r,
|
|
5632
|
-
authTime: yt(
|
|
5633
|
-
issuedAtTime: yt(
|
|
5634
|
-
expirationTime: yt(
|
|
5633
|
+
authTime: yt(pn(s.auth_time)),
|
|
5634
|
+
issuedAtTime: yt(pn(s.iat)),
|
|
5635
|
+
expirationTime: yt(pn(s.exp)),
|
|
5635
5636
|
signInProvider: a || null,
|
|
5636
5637
|
signInSecondFactor: (i == null ? void 0 : i.sign_in_second_factor) || null
|
|
5637
5638
|
};
|
|
5638
5639
|
}
|
|
5639
|
-
function
|
|
5640
|
+
function pn(t) {
|
|
5640
5641
|
return Number(t) * 1e3;
|
|
5641
5642
|
}
|
|
5642
5643
|
function Ln(t) {
|
|
@@ -5772,7 +5773,7 @@ class Yu {
|
|
|
5772
5773
|
* See the License for the specific language governing permissions and
|
|
5773
5774
|
* limitations under the License.
|
|
5774
5775
|
*/
|
|
5775
|
-
class
|
|
5776
|
+
class Tn {
|
|
5776
5777
|
constructor(e, n) {
|
|
5777
5778
|
this.createdAt = e, this.lastLoginAt = n, this._initializeTime();
|
|
5778
5779
|
}
|
|
@@ -5805,7 +5806,7 @@ class On {
|
|
|
5805
5806
|
* See the License for the specific language governing permissions and
|
|
5806
5807
|
* limitations under the License.
|
|
5807
5808
|
*/
|
|
5808
|
-
async function
|
|
5809
|
+
async function Lt(t) {
|
|
5809
5810
|
var e;
|
|
5810
5811
|
const n = t.auth, r = await t.getIdToken(), s = await vt(t, ei(n, { idToken: r }));
|
|
5811
5812
|
M(
|
|
@@ -5816,7 +5817,7 @@ async function Zt(t) {
|
|
|
5816
5817
|
);
|
|
5817
5818
|
const i = s.users[0];
|
|
5818
5819
|
t._notifyReloadListener(i);
|
|
5819
|
-
const a = !((e = i.providerUserInfo) === null || e === void 0) && e.length ? ti(i.providerUserInfo) : [], c = xu(t.providerData, a), l = t.isAnonymous, A = !(t.email && i.passwordHash) && !(c != null && c.length),
|
|
5820
|
+
const a = !((e = i.providerUserInfo) === null || e === void 0) && e.length ? ti(i.providerUserInfo) : [], c = xu(t.providerData, a), l = t.isAnonymous, A = !(t.email && i.passwordHash) && !(c != null && c.length), m = l ? A : !1, p = {
|
|
5820
5821
|
uid: i.localId,
|
|
5821
5822
|
displayName: i.displayName || null,
|
|
5822
5823
|
photoURL: i.photoUrl || null,
|
|
@@ -5825,14 +5826,14 @@ async function Zt(t) {
|
|
|
5825
5826
|
phoneNumber: i.phoneNumber || null,
|
|
5826
5827
|
tenantId: i.tenantId || null,
|
|
5827
5828
|
providerData: c,
|
|
5828
|
-
metadata: new
|
|
5829
|
-
isAnonymous:
|
|
5829
|
+
metadata: new Tn(i.createdAt, i.lastLoginAt),
|
|
5830
|
+
isAnonymous: m
|
|
5830
5831
|
};
|
|
5831
5832
|
Object.assign(t, p);
|
|
5832
5833
|
}
|
|
5833
5834
|
async function Vu(t) {
|
|
5834
5835
|
const e = ht(t);
|
|
5835
|
-
await
|
|
5836
|
+
await Lt(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
5836
5837
|
}
|
|
5837
5838
|
function xu(t, e) {
|
|
5838
5839
|
return [...t.filter((r) => !e.some((s) => s.providerId === r.providerId)), ...e];
|
|
@@ -5888,7 +5889,7 @@ async function Fu(t, e) {
|
|
|
5888
5889
|
};
|
|
5889
5890
|
}
|
|
5890
5891
|
async function ku(t, e) {
|
|
5891
|
-
return
|
|
5892
|
+
return ft(t, "POST", "/v2/accounts:revokeToken", rn(t, e));
|
|
5892
5893
|
}
|
|
5893
5894
|
/**
|
|
5894
5895
|
* @license
|
|
@@ -6006,7 +6007,7 @@ function Ee(t, e) {
|
|
|
6006
6007
|
class be {
|
|
6007
6008
|
constructor(e) {
|
|
6008
6009
|
var { uid: n, auth: r, stsTokenManager: s } = e, i = Wn(e, ["uid", "auth", "stsTokenManager"]);
|
|
6009
|
-
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 Tn(i.createdAt || void 0, i.lastLoginAt || void 0);
|
|
6010
6011
|
}
|
|
6011
6012
|
async getIdToken(e) {
|
|
6012
6013
|
const n = await vt(this, this.stsTokenManager.getToken(this.auth, e));
|
|
@@ -6054,7 +6055,7 @@ class be {
|
|
|
6054
6055
|
}
|
|
6055
6056
|
async _updateTokensIfNecessary(e, n = !1) {
|
|
6056
6057
|
let r = !1;
|
|
6057
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await
|
|
6058
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await Lt(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
|
6058
6059
|
}
|
|
6059
6060
|
async delete() {
|
|
6060
6061
|
if (pe(this.auth.app))
|
|
@@ -6087,8 +6088,8 @@ class be {
|
|
|
6087
6088
|
return this.stsTokenManager.refreshToken || "";
|
|
6088
6089
|
}
|
|
6089
6090
|
static _fromJSON(e, n) {
|
|
6090
|
-
var r, s, i, a, c, l, A,
|
|
6091
|
-
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0, v = (i = n.phoneNumber) !== null && i !== void 0 ? i : void 0, O = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, I = (c = n.tenantId) !== null && c !== void 0 ? c : void 0, V = (l = n._redirectEventId) !== null && l !== void 0 ? l : void 0, R = (A = n.createdAt) !== null && A !== void 0 ? A : void 0, Q = (
|
|
6091
|
+
var r, s, i, a, c, l, A, m;
|
|
6092
|
+
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0, v = (i = n.phoneNumber) !== null && i !== void 0 ? i : void 0, O = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, I = (c = n.tenantId) !== null && c !== void 0 ? c : void 0, V = (l = n._redirectEventId) !== null && l !== void 0 ? l : void 0, R = (A = n.createdAt) !== null && A !== void 0 ? A : void 0, Q = (m = n.lastLoginAt) !== null && m !== void 0 ? m : void 0, { uid: Y, emailVerified: w, isAnonymous: H, providerData: U, stsTokenManager: ee } = n;
|
|
6092
6093
|
M(
|
|
6093
6094
|
Y && ee,
|
|
6094
6095
|
e,
|
|
@@ -6126,7 +6127,7 @@ class be {
|
|
|
6126
6127
|
createdAt: R,
|
|
6127
6128
|
lastLoginAt: Q
|
|
6128
6129
|
});
|
|
6129
|
-
return U && Array.isArray(U) && (u.providerData = U.map((
|
|
6130
|
+
return U && Array.isArray(U) && (u.providerData = U.map((f) => Object.assign({}, f))), V && (u._redirectEventId = V), u;
|
|
6130
6131
|
}
|
|
6131
6132
|
/**
|
|
6132
6133
|
* Initialize a User from an idToken server response
|
|
@@ -6142,7 +6143,7 @@ class be {
|
|
|
6142
6143
|
stsTokenManager: s,
|
|
6143
6144
|
isAnonymous: r
|
|
6144
6145
|
});
|
|
6145
|
-
return await
|
|
6146
|
+
return await Lt(i), i;
|
|
6146
6147
|
}
|
|
6147
6148
|
/**
|
|
6148
6149
|
* Initialize a User from an idToken server response
|
|
@@ -6172,7 +6173,7 @@ class be {
|
|
|
6172
6173
|
phoneNumber: s.phoneNumber || null,
|
|
6173
6174
|
tenantId: s.tenantId || null,
|
|
6174
6175
|
providerData: i,
|
|
6175
|
-
metadata: new
|
|
6176
|
+
metadata: new Tn(s.createdAt, s.lastLoginAt),
|
|
6176
6177
|
isAnonymous: !(s.email && s.passwordHash) && !(i != null && i.length)
|
|
6177
6178
|
};
|
|
6178
6179
|
return Object.assign(l, A), l;
|
|
@@ -6300,9 +6301,9 @@ class tt {
|
|
|
6300
6301
|
let c = null;
|
|
6301
6302
|
for (const A of n)
|
|
6302
6303
|
try {
|
|
6303
|
-
const
|
|
6304
|
-
if (
|
|
6305
|
-
const p = be._fromJSON(e,
|
|
6304
|
+
const m = await A._get(a);
|
|
6305
|
+
if (m) {
|
|
6306
|
+
const p = be._fromJSON(e, m);
|
|
6306
6307
|
A !== i && (c = p), i = A;
|
|
6307
6308
|
break;
|
|
6308
6309
|
}
|
|
@@ -6503,7 +6504,7 @@ class Nu {
|
|
|
6503
6504
|
* limitations under the License.
|
|
6504
6505
|
*/
|
|
6505
6506
|
async function Hu(t, e = {}) {
|
|
6506
|
-
return
|
|
6507
|
+
return ft(t, "GET", "/v2/passwordPolicy", rn(t, e));
|
|
6507
6508
|
}
|
|
6508
6509
|
/**
|
|
6509
6510
|
* @license
|
|
@@ -6697,7 +6698,7 @@ class Su {
|
|
|
6697
6698
|
}
|
|
6698
6699
|
async reloadAndSetCurrentUserOrClear(e) {
|
|
6699
6700
|
try {
|
|
6700
|
-
await
|
|
6701
|
+
await Lt(e);
|
|
6701
6702
|
} catch (n) {
|
|
6702
6703
|
if ((n == null ? void 0 : n.code) !== "auth/network-request-failed")
|
|
6703
6704
|
return this.directlySetCurrentUser(null);
|
|
@@ -6942,7 +6943,7 @@ class Su {
|
|
|
6942
6943
|
return n != null && n.error && Du(`Error while retrieving App Check token: ${n.error}`), n == null ? void 0 : n.token;
|
|
6943
6944
|
}
|
|
6944
6945
|
}
|
|
6945
|
-
function
|
|
6946
|
+
function sn(t) {
|
|
6946
6947
|
return ht(t);
|
|
6947
6948
|
}
|
|
6948
6949
|
class Cr {
|
|
@@ -7014,7 +7015,7 @@ function Lu(t, e) {
|
|
|
7014
7015
|
const n = Xs(t, "auth");
|
|
7015
7016
|
if (n.isInitialized()) {
|
|
7016
7017
|
const s = n.getImmediate(), i = n.getOptions();
|
|
7017
|
-
if (
|
|
7018
|
+
if (Wt(i, e ?? {}))
|
|
7018
7019
|
return s;
|
|
7019
7020
|
Be(
|
|
7020
7021
|
s,
|
|
@@ -7029,7 +7030,7 @@ function Ku(t, e) {
|
|
|
7029
7030
|
e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
7030
7031
|
}
|
|
7031
7032
|
function Ju(t, e, n) {
|
|
7032
|
-
const r =
|
|
7033
|
+
const r = sn(t);
|
|
7033
7034
|
M(
|
|
7034
7035
|
r._canInitEmulator,
|
|
7035
7036
|
r,
|
|
@@ -7138,7 +7139,7 @@ class hi {
|
|
|
7138
7139
|
* limitations under the License.
|
|
7139
7140
|
*/
|
|
7140
7141
|
async function nt(t, e) {
|
|
7141
|
-
return _s(t, "POST", "/v1/accounts:signInWithIdp",
|
|
7142
|
+
return _s(t, "POST", "/v1/accounts:signInWithIdp", rn(t, e));
|
|
7142
7143
|
}
|
|
7143
7144
|
/**
|
|
7144
7145
|
* @license
|
|
@@ -7242,7 +7243,7 @@ class Ze extends hi {
|
|
|
7242
7243
|
* See the License for the specific language governing permissions and
|
|
7243
7244
|
* limitations under the License.
|
|
7244
7245
|
*/
|
|
7245
|
-
class
|
|
7246
|
+
class fi {
|
|
7246
7247
|
/**
|
|
7247
7248
|
* Constructor for generic OAuth providers.
|
|
7248
7249
|
*
|
|
@@ -7295,7 +7296,7 @@ class mi {
|
|
|
7295
7296
|
* See the License for the specific language governing permissions and
|
|
7296
7297
|
* limitations under the License.
|
|
7297
7298
|
*/
|
|
7298
|
-
class Gt extends
|
|
7299
|
+
class Gt extends fi {
|
|
7299
7300
|
constructor() {
|
|
7300
7301
|
super(...arguments), this.scopes = [];
|
|
7301
7302
|
}
|
|
@@ -7657,10 +7658,10 @@ function Mr(t) {
|
|
|
7657
7658
|
* See the License for the specific language governing permissions and
|
|
7658
7659
|
* limitations under the License.
|
|
7659
7660
|
*/
|
|
7660
|
-
class
|
|
7661
|
+
class Kt extends qe {
|
|
7661
7662
|
constructor(e, n, r, s) {
|
|
7662
7663
|
var i;
|
|
7663
|
-
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this,
|
|
7664
|
+
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, Kt.prototype), this.customData = {
|
|
7664
7665
|
appName: e.name,
|
|
7665
7666
|
tenantId: (i = e.tenantId) !== null && i !== void 0 ? i : void 0,
|
|
7666
7667
|
_serverResponse: n.customData._serverResponse,
|
|
@@ -7668,12 +7669,12 @@ class Lt extends qe {
|
|
|
7668
7669
|
};
|
|
7669
7670
|
}
|
|
7670
7671
|
static _fromErrorAndOperation(e, n, r, s) {
|
|
7671
|
-
return new
|
|
7672
|
+
return new Kt(e, n, r, s);
|
|
7672
7673
|
}
|
|
7673
7674
|
}
|
|
7674
|
-
function
|
|
7675
|
+
function mi(t, e, n, r) {
|
|
7675
7676
|
return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((i) => {
|
|
7676
|
-
throw i.code === "auth/multi-factor-auth-required" ?
|
|
7677
|
+
throw i.code === "auth/multi-factor-auth-required" ? Kt._fromErrorAndOperation(t, i, e, r) : i;
|
|
7677
7678
|
});
|
|
7678
7679
|
}
|
|
7679
7680
|
async function tl(t, e, n = !1) {
|
|
@@ -7702,7 +7703,7 @@ async function nl(t, e, n = !1) {
|
|
|
7702
7703
|
return Promise.reject(Re(r));
|
|
7703
7704
|
const s = "reauthenticate";
|
|
7704
7705
|
try {
|
|
7705
|
-
const i = await vt(t,
|
|
7706
|
+
const i = await vt(t, mi(r, s, e, t), n);
|
|
7706
7707
|
M(
|
|
7707
7708
|
i.idToken,
|
|
7708
7709
|
r,
|
|
@@ -7750,7 +7751,7 @@ async function nl(t, e, n = !1) {
|
|
|
7750
7751
|
async function rl(t, e, n = !1) {
|
|
7751
7752
|
if (pe(t.app))
|
|
7752
7753
|
return Promise.reject(Re(t));
|
|
7753
|
-
const r = "signIn", s = await
|
|
7754
|
+
const r = "signIn", s = await mi(t, r, e), i = await Le._fromIdTokenResponse(t, r, s);
|
|
7754
7755
|
return n || await t._updateCurrentUser(i.user), i;
|
|
7755
7756
|
}
|
|
7756
7757
|
/**
|
|
@@ -7770,7 +7771,7 @@ async function rl(t, e, n = !1) {
|
|
|
7770
7771
|
* limitations under the License.
|
|
7771
7772
|
*/
|
|
7772
7773
|
async function sl(t, e) {
|
|
7773
|
-
return _s(t, "POST", "/v1/accounts:signInWithCustomToken",
|
|
7774
|
+
return _s(t, "POST", "/v1/accounts:signInWithCustomToken", rn(t, e));
|
|
7774
7775
|
}
|
|
7775
7776
|
/**
|
|
7776
7777
|
* @license
|
|
@@ -7791,7 +7792,7 @@ async function sl(t, e) {
|
|
|
7791
7792
|
async function il(t, e) {
|
|
7792
7793
|
if (pe(t.app))
|
|
7793
7794
|
return Promise.reject(Re(t));
|
|
7794
|
-
const n =
|
|
7795
|
+
const n = sn(t), r = await sl(n, {
|
|
7795
7796
|
token: e,
|
|
7796
7797
|
returnSecureToken: !0
|
|
7797
7798
|
}), s = await Le._fromIdTokenResponse(n, "signIn", r);
|
|
@@ -7803,7 +7804,7 @@ function al(t, e, n, r) {
|
|
|
7803
7804
|
function ol(t, e, n) {
|
|
7804
7805
|
return ht(t).beforeAuthStateChanged(e, n);
|
|
7805
7806
|
}
|
|
7806
|
-
const
|
|
7807
|
+
const Jt = "__sak";
|
|
7807
7808
|
/**
|
|
7808
7809
|
* @license
|
|
7809
7810
|
* Copyright 2019 Google LLC
|
|
@@ -7826,7 +7827,7 @@ class gi {
|
|
|
7826
7827
|
}
|
|
7827
7828
|
_isAvailable() {
|
|
7828
7829
|
try {
|
|
7829
|
-
return this.storage ? (this.storage.setItem(
|
|
7830
|
+
return this.storage ? (this.storage.setItem(Jt, "1"), this.storage.removeItem(Jt), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
7830
7831
|
} catch {
|
|
7831
7832
|
return Promise.resolve(!1);
|
|
7832
7833
|
}
|
|
@@ -8020,7 +8021,7 @@ function Al(t) {
|
|
|
8020
8021
|
* See the License for the specific language governing permissions and
|
|
8021
8022
|
* limitations under the License.
|
|
8022
8023
|
*/
|
|
8023
|
-
class
|
|
8024
|
+
class an {
|
|
8024
8025
|
constructor(e) {
|
|
8025
8026
|
this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
|
|
8026
8027
|
}
|
|
@@ -8034,7 +8035,7 @@ class sn {
|
|
|
8034
8035
|
const n = this.receivers.find((s) => s.isListeningto(e));
|
|
8035
8036
|
if (n)
|
|
8036
8037
|
return n;
|
|
8037
|
-
const r = new
|
|
8038
|
+
const r = new an(e);
|
|
8038
8039
|
return this.receivers.push(r), r;
|
|
8039
8040
|
}
|
|
8040
8041
|
isListeningto(e) {
|
|
@@ -8088,7 +8089,7 @@ class sn {
|
|
|
8088
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);
|
|
8089
8090
|
}
|
|
8090
8091
|
}
|
|
8091
|
-
|
|
8092
|
+
an.receivers = [];
|
|
8092
8093
|
/**
|
|
8093
8094
|
* @license
|
|
8094
8095
|
* Copyright 2020 Google LLC
|
|
@@ -8163,7 +8164,7 @@ class dl {
|
|
|
8163
8164
|
return new Promise((c, l) => {
|
|
8164
8165
|
const A = _n("", 20);
|
|
8165
8166
|
s.port1.start();
|
|
8166
|
-
const
|
|
8167
|
+
const m = setTimeout(() => {
|
|
8167
8168
|
l(new Error(
|
|
8168
8169
|
"unsupported_event"
|
|
8169
8170
|
/* _MessageError.UNSUPPORTED_EVENT */
|
|
@@ -8176,7 +8177,7 @@ class dl {
|
|
|
8176
8177
|
if (B.data.eventId === A)
|
|
8177
8178
|
switch (B.data.status) {
|
|
8178
8179
|
case "ack":
|
|
8179
|
-
clearTimeout(
|
|
8180
|
+
clearTimeout(m), i = setTimeout(
|
|
8180
8181
|
() => {
|
|
8181
8182
|
l(new Error(
|
|
8182
8183
|
"timeout"
|
|
@@ -8191,7 +8192,7 @@ class dl {
|
|
|
8191
8192
|
clearTimeout(i), c(B.data.response);
|
|
8192
8193
|
break;
|
|
8193
8194
|
default:
|
|
8194
|
-
clearTimeout(
|
|
8195
|
+
clearTimeout(m), clearTimeout(i), l(new Error(
|
|
8195
8196
|
"invalid_response"
|
|
8196
8197
|
/* _MessageError.INVALID_RESPONSE */
|
|
8197
8198
|
));
|
|
@@ -8249,7 +8250,7 @@ function hl(t) {
|
|
|
8249
8250
|
function wi() {
|
|
8250
8251
|
return typeof de().WorkerGlobalScope < "u" && typeof de().importScripts == "function";
|
|
8251
8252
|
}
|
|
8252
|
-
async function
|
|
8253
|
+
async function fl() {
|
|
8253
8254
|
if (!(navigator != null && navigator.serviceWorker))
|
|
8254
8255
|
return null;
|
|
8255
8256
|
try {
|
|
@@ -8258,7 +8259,7 @@ async function ml() {
|
|
|
8258
8259
|
return null;
|
|
8259
8260
|
}
|
|
8260
8261
|
}
|
|
8261
|
-
function
|
|
8262
|
+
function ml() {
|
|
8262
8263
|
var t;
|
|
8263
8264
|
return ((t = navigator == null ? void 0 : navigator.serviceWorker) === null || t === void 0 ? void 0 : t.controller) || null;
|
|
8264
8265
|
}
|
|
@@ -8281,7 +8282,7 @@ function gl() {
|
|
|
8281
8282
|
* See the License for the specific language governing permissions and
|
|
8282
8283
|
* limitations under the License.
|
|
8283
8284
|
*/
|
|
8284
|
-
const vi = "firebaseLocalStorageDb", pl = 1,
|
|
8285
|
+
const vi = "firebaseLocalStorageDb", pl = 1, _t = "firebaseLocalStorage", Bi = "fbase_key";
|
|
8285
8286
|
class jt {
|
|
8286
8287
|
constructor(e) {
|
|
8287
8288
|
this.request = e;
|
|
@@ -8296,14 +8297,14 @@ class jt {
|
|
|
8296
8297
|
});
|
|
8297
8298
|
}
|
|
8298
8299
|
}
|
|
8299
|
-
function
|
|
8300
|
-
return t.transaction([
|
|
8300
|
+
function on(t, e) {
|
|
8301
|
+
return t.transaction([_t], e ? "readwrite" : "readonly").objectStore(_t);
|
|
8301
8302
|
}
|
|
8302
8303
|
function yl() {
|
|
8303
8304
|
const t = indexedDB.deleteDatabase(vi);
|
|
8304
8305
|
return new jt(t).toPromise();
|
|
8305
8306
|
}
|
|
8306
|
-
function
|
|
8307
|
+
function Gn() {
|
|
8307
8308
|
const t = indexedDB.open(vi, pl);
|
|
8308
8309
|
return new Promise((e, n) => {
|
|
8309
8310
|
t.addEventListener("error", () => {
|
|
@@ -8311,29 +8312,29 @@ function Tn() {
|
|
|
8311
8312
|
}), t.addEventListener("upgradeneeded", () => {
|
|
8312
8313
|
const r = t.result;
|
|
8313
8314
|
try {
|
|
8314
|
-
r.createObjectStore(
|
|
8315
|
+
r.createObjectStore(_t, { keyPath: Bi });
|
|
8315
8316
|
} catch (s) {
|
|
8316
8317
|
n(s);
|
|
8317
8318
|
}
|
|
8318
8319
|
}), t.addEventListener("success", async () => {
|
|
8319
8320
|
const r = t.result;
|
|
8320
|
-
r.objectStoreNames.contains(
|
|
8321
|
+
r.objectStoreNames.contains(_t) ? e(r) : (r.close(), await yl(), e(await Gn()));
|
|
8321
8322
|
});
|
|
8322
8323
|
});
|
|
8323
8324
|
}
|
|
8324
8325
|
async function Ir(t, e, n) {
|
|
8325
|
-
const r =
|
|
8326
|
+
const r = on(t, !0).put({
|
|
8326
8327
|
[Bi]: e,
|
|
8327
8328
|
value: n
|
|
8328
8329
|
});
|
|
8329
8330
|
return new jt(r).toPromise();
|
|
8330
8331
|
}
|
|
8331
8332
|
async function bl(t, e) {
|
|
8332
|
-
const n =
|
|
8333
|
+
const n = on(t, !1).get(e), r = await new jt(n).toPromise();
|
|
8333
8334
|
return r === void 0 ? null : r.value;
|
|
8334
8335
|
}
|
|
8335
8336
|
function Pr(t, e) {
|
|
8336
|
-
const n =
|
|
8337
|
+
const n = on(t, !0).delete(e);
|
|
8337
8338
|
return new jt(n).toPromise();
|
|
8338
8339
|
}
|
|
8339
8340
|
const wl = 800, vl = 3;
|
|
@@ -8344,7 +8345,7 @@ class Di {
|
|
|
8344
8345
|
});
|
|
8345
8346
|
}
|
|
8346
8347
|
async _openDb() {
|
|
8347
|
-
return this.db ? this.db : (this.db = await
|
|
8348
|
+
return this.db ? this.db : (this.db = await Gn(), this.db);
|
|
8348
8349
|
}
|
|
8349
8350
|
async _withRetries(e) {
|
|
8350
8351
|
let n = 0;
|
|
@@ -8369,7 +8370,7 @@ class Di {
|
|
|
8369
8370
|
* As the worker we should listen to events from the main window.
|
|
8370
8371
|
*/
|
|
8371
8372
|
async initializeReceiver() {
|
|
8372
|
-
this.receiver =
|
|
8373
|
+
this.receiver = an._getInstance(gl()), this.receiver._subscribe("keyChanged", async (e, n) => ({
|
|
8373
8374
|
keyProcessed: (await this._poll()).includes(n.key)
|
|
8374
8375
|
})), this.receiver._subscribe("ping", async (e, n) => [
|
|
8375
8376
|
"keyChanged"
|
|
@@ -8385,7 +8386,7 @@ class Di {
|
|
|
8385
8386
|
*/
|
|
8386
8387
|
async initializeSender() {
|
|
8387
8388
|
var e, n;
|
|
8388
|
-
if (this.activeServiceWorker = await
|
|
8389
|
+
if (this.activeServiceWorker = await fl(), !this.activeServiceWorker)
|
|
8389
8390
|
return;
|
|
8390
8391
|
this.sender = new dl(this.activeServiceWorker);
|
|
8391
8392
|
const r = await this.sender._send(
|
|
@@ -8409,7 +8410,7 @@ class Di {
|
|
|
8409
8410
|
* @param key - Storage key which changed.
|
|
8410
8411
|
*/
|
|
8411
8412
|
async notifyServiceWorker(e) {
|
|
8412
|
-
if (!(!this.sender || !this.activeServiceWorker ||
|
|
8413
|
+
if (!(!this.sender || !this.activeServiceWorker || ml() !== this.activeServiceWorker))
|
|
8413
8414
|
try {
|
|
8414
8415
|
await this.sender._send(
|
|
8415
8416
|
"keyChanged",
|
|
@@ -8425,8 +8426,8 @@ class Di {
|
|
|
8425
8426
|
try {
|
|
8426
8427
|
if (!indexedDB)
|
|
8427
8428
|
return !1;
|
|
8428
|
-
const e = await
|
|
8429
|
-
return await Ir(e,
|
|
8429
|
+
const e = await Gn();
|
|
8430
|
+
return await Ir(e, Jt, "1"), await Pr(e, Jt), !0;
|
|
8430
8431
|
} catch {
|
|
8431
8432
|
}
|
|
8432
8433
|
return !1;
|
|
@@ -8451,7 +8452,7 @@ class Di {
|
|
|
8451
8452
|
}
|
|
8452
8453
|
async _poll() {
|
|
8453
8454
|
const e = await this._withRetries((s) => {
|
|
8454
|
-
const i =
|
|
8455
|
+
const i = on(s, !1).getAll();
|
|
8455
8456
|
return new jt(i).toPromise();
|
|
8456
8457
|
});
|
|
8457
8458
|
if (!e)
|
|
@@ -8831,7 +8832,7 @@ function Yl(t) {
|
|
|
8831
8832
|
async function Vl(t, e, n = !1) {
|
|
8832
8833
|
if (pe(t.app))
|
|
8833
8834
|
return Promise.reject(Re(t));
|
|
8834
|
-
const r =
|
|
8835
|
+
const r = sn(t), s = Dl(r, e), a = await new Ol(r, s, n).execute();
|
|
8835
8836
|
return a && !n && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
|
8836
8837
|
}
|
|
8837
8838
|
/**
|
|
@@ -8923,7 +8924,7 @@ function kl(t) {
|
|
|
8923
8924
|
* limitations under the License.
|
|
8924
8925
|
*/
|
|
8925
8926
|
async function Rl(t, e = {}) {
|
|
8926
|
-
return
|
|
8927
|
+
return ft(t, "GET", "/v1/projects", e);
|
|
8927
8928
|
}
|
|
8928
8929
|
/**
|
|
8929
8930
|
* @license
|
|
@@ -8959,7 +8960,7 @@ async function Hl(t) {
|
|
|
8959
8960
|
);
|
|
8960
8961
|
}
|
|
8961
8962
|
function Ql(t) {
|
|
8962
|
-
const e =
|
|
8963
|
+
const e = On(), { protocol: n, hostname: r } = new URL(e);
|
|
8963
8964
|
if (t.startsWith("chrome-extension://")) {
|
|
8964
8965
|
const a = new URL(t);
|
|
8965
8966
|
return a.hostname === "" && r === "" ? n === "chrome-extension:" && t.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : n === "chrome-extension:" && a.hostname === r;
|
|
@@ -9162,10 +9163,10 @@ function sA(t, e, n, r = eA, s = tA) {
|
|
|
9162
9163
|
left: a
|
|
9163
9164
|
}), A = K().toLowerCase();
|
|
9164
9165
|
n && (c = ii(A) ? nA : n), ri(A) && (e = e || rA, l.scrollbars = "yes");
|
|
9165
|
-
const
|
|
9166
|
+
const m = Object.entries(l).reduce((B, [v, O]) => `${B}${v}=${O},`, "");
|
|
9166
9167
|
if (Ru(A) && c !== "_self")
|
|
9167
9168
|
return iA(e || "", c), new Gr(null);
|
|
9168
|
-
const p = window.open(e || "", c,
|
|
9169
|
+
const p = window.open(e || "", c, m);
|
|
9169
9170
|
M(
|
|
9170
9171
|
p,
|
|
9171
9172
|
t,
|
|
@@ -9221,19 +9222,19 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9221
9222
|
v: Ot,
|
|
9222
9223
|
eventId: s
|
|
9223
9224
|
};
|
|
9224
|
-
if (e instanceof
|
|
9225
|
+
if (e instanceof fi) {
|
|
9225
9226
|
e.setDefaultLanguage(t.languageCode), a.providerId = e.providerId || "", cc(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
|
|
9226
|
-
for (const [
|
|
9227
|
-
a[
|
|
9227
|
+
for (const [m, p] of Object.entries({}))
|
|
9228
|
+
a[m] = p;
|
|
9228
9229
|
}
|
|
9229
9230
|
if (e instanceof Gt) {
|
|
9230
|
-
const
|
|
9231
|
-
|
|
9231
|
+
const m = e.getScopes().filter((p) => p !== "");
|
|
9232
|
+
m.length > 0 && (a.scopes = m.join(","));
|
|
9232
9233
|
}
|
|
9233
9234
|
t.tenantId && (a.tid = t.tenantId);
|
|
9234
9235
|
const c = a;
|
|
9235
|
-
for (const
|
|
9236
|
-
c[
|
|
9236
|
+
for (const m of Object.keys(c))
|
|
9237
|
+
c[m] === void 0 && delete c[m];
|
|
9237
9238
|
const l = await t._getAppCheckToken(), A = l ? `#${cA}=${encodeURIComponent(l)}` : "";
|
|
9238
9239
|
return `${uA(t)}?${Pt(c).slice(1)}${A}`;
|
|
9239
9240
|
}
|
|
@@ -9256,7 +9257,7 @@ function uA({ config: t }) {
|
|
|
9256
9257
|
* See the License for the specific language governing permissions and
|
|
9257
9258
|
* limitations under the License.
|
|
9258
9259
|
*/
|
|
9259
|
-
const
|
|
9260
|
+
const yn = "webStorageSupport";
|
|
9260
9261
|
class lA {
|
|
9261
9262
|
constructor() {
|
|
9262
9263
|
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = bi, this._completeRedirectFn = Vl, this._overrideRedirectResult = Gl;
|
|
@@ -9266,12 +9267,12 @@ class lA {
|
|
|
9266
9267
|
async _openPopup(e, n, r, s) {
|
|
9267
9268
|
var i;
|
|
9268
9269
|
De((i = this.eventManagers[e._key()]) === null || i === void 0 ? void 0 : i.manager, "_initialize() not called before _openPopup()");
|
|
9269
|
-
const a = await jr(e, n, r,
|
|
9270
|
+
const a = await jr(e, n, r, On(), s);
|
|
9270
9271
|
return sA(e, a, _n());
|
|
9271
9272
|
}
|
|
9272
9273
|
async _openRedirect(e, n, r, s) {
|
|
9273
9274
|
await this._originValidation(e);
|
|
9274
|
-
const i = await jr(e, n, r,
|
|
9275
|
+
const i = await jr(e, n, r, On(), s);
|
|
9275
9276
|
return hl(i), new Promise(() => {
|
|
9276
9277
|
});
|
|
9277
9278
|
}
|
|
@@ -9299,9 +9300,9 @@ class lA {
|
|
|
9299
9300
|
}), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = n, r;
|
|
9300
9301
|
}
|
|
9301
9302
|
_isIframeWebStorageSupported(e, n) {
|
|
9302
|
-
this.iframes[e._key()].send(
|
|
9303
|
+
this.iframes[e._key()].send(yn, { type: yn }, (s) => {
|
|
9303
9304
|
var i;
|
|
9304
|
-
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[yn];
|
|
9305
9306
|
a !== void 0 && n(!!a), Be(
|
|
9306
9307
|
e,
|
|
9307
9308
|
"internal-error"
|
|
@@ -9402,7 +9403,7 @@ function hA(t) {
|
|
|
9402
9403
|
return;
|
|
9403
9404
|
}
|
|
9404
9405
|
}
|
|
9405
|
-
function
|
|
9406
|
+
function fA(t) {
|
|
9406
9407
|
bt(new dt(
|
|
9407
9408
|
"auth",
|
|
9408
9409
|
(e, { options: n }) => {
|
|
@@ -9432,7 +9433,7 @@ function mA(t) {
|
|
|
9432
9433
|
})), bt(new dt(
|
|
9433
9434
|
"auth-internal",
|
|
9434
9435
|
(e) => {
|
|
9435
|
-
const n =
|
|
9436
|
+
const n = sn(e.getProvider(
|
|
9436
9437
|
"auth"
|
|
9437
9438
|
/* _ComponentName.AUTH */
|
|
9438
9439
|
).getImmediate());
|
|
@@ -9461,7 +9462,7 @@ function mA(t) {
|
|
|
9461
9462
|
* See the License for the specific language governing permissions and
|
|
9462
9463
|
* limitations under the License.
|
|
9463
9464
|
*/
|
|
9464
|
-
const
|
|
9465
|
+
const mA = 5 * 60, gA = qs("authIdTokenMaxAge") || mA;
|
|
9465
9466
|
let xr = null;
|
|
9466
9467
|
const pA = (t) => async (e) => {
|
|
9467
9468
|
const n = e && await e.getIdTokenResult(), r = n && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(n.issuedAtTime)) / 1e3;
|
|
@@ -9518,11 +9519,11 @@ Uu({
|
|
|
9518
9519
|
recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
|
|
9519
9520
|
recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
|
|
9520
9521
|
});
|
|
9521
|
-
|
|
9522
|
+
fA(
|
|
9522
9523
|
"Browser"
|
|
9523
9524
|
/* ClientPlatform.BROWSER */
|
|
9524
9525
|
);
|
|
9525
|
-
var
|
|
9526
|
+
var cn = class {
|
|
9526
9527
|
constructor() {
|
|
9527
9528
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
9528
9529
|
}
|
|
@@ -9538,7 +9539,7 @@ var on = class {
|
|
|
9538
9539
|
}
|
|
9539
9540
|
onUnsubscribe() {
|
|
9540
9541
|
}
|
|
9541
|
-
}, He, Ge, rt, Xr, wA = (Xr = class extends
|
|
9542
|
+
}, He, Ge, rt, Xr, wA = (Xr = class extends cn {
|
|
9542
9543
|
constructor() {
|
|
9543
9544
|
super();
|
|
9544
9545
|
G(this, He);
|
|
@@ -9624,7 +9625,7 @@ var on = class {
|
|
|
9624
9625
|
clearInterval(t) {
|
|
9625
9626
|
h(this, oe).clearInterval(t);
|
|
9626
9627
|
}
|
|
9627
|
-
}, oe = new WeakMap(), Qe = new WeakMap(), Sr),
|
|
9628
|
+
}, oe = new WeakMap(), Qe = new WeakMap(), Sr), jn = new BA();
|
|
9628
9629
|
function DA(t) {
|
|
9629
9630
|
setTimeout(t, 0);
|
|
9630
9631
|
}
|
|
@@ -9640,7 +9641,7 @@ function MA(t) {
|
|
|
9640
9641
|
function IA(t, e) {
|
|
9641
9642
|
return Math.max(t + (e || 0) - Date.now(), 0);
|
|
9642
9643
|
}
|
|
9643
|
-
function
|
|
9644
|
+
function Yn(t, e) {
|
|
9644
9645
|
return typeof t == "function" ? t(e) : t;
|
|
9645
9646
|
}
|
|
9646
9647
|
function PA(t, e) {
|
|
@@ -9688,32 +9689,32 @@ function er(t, e) {
|
|
|
9688
9689
|
function Bt(t) {
|
|
9689
9690
|
return JSON.stringify(
|
|
9690
9691
|
t,
|
|
9691
|
-
(e, n) =>
|
|
9692
|
+
(e, n) => xn(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
|
|
9692
9693
|
);
|
|
9693
9694
|
}
|
|
9694
9695
|
function Dt(t, e) {
|
|
9695
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;
|
|
9696
9697
|
}
|
|
9697
9698
|
var OA = Object.prototype.hasOwnProperty;
|
|
9698
|
-
function
|
|
9699
|
+
function Vn(t, e, n = 0) {
|
|
9699
9700
|
if (t === e)
|
|
9700
9701
|
return t;
|
|
9701
9702
|
if (n > 500) return e;
|
|
9702
9703
|
const r = Rr(t) && Rr(e);
|
|
9703
|
-
if (!r && !(
|
|
9704
|
+
if (!r && !(xn(t) && xn(e))) return e;
|
|
9704
9705
|
const i = (r ? t : Object.keys(t)).length, a = r ? e : Object.keys(e), c = a.length, l = r ? new Array(c) : {};
|
|
9705
9706
|
let A = 0;
|
|
9706
|
-
for (let
|
|
9707
|
-
const p = r ?
|
|
9707
|
+
for (let m = 0; m < c; m++) {
|
|
9708
|
+
const p = r ? m : a[m], B = t[p], v = e[p];
|
|
9708
9709
|
if (B === v) {
|
|
9709
|
-
l[p] = B, (r ?
|
|
9710
|
+
l[p] = B, (r ? m < i : OA.call(t, p)) && A++;
|
|
9710
9711
|
continue;
|
|
9711
9712
|
}
|
|
9712
9713
|
if (B === null || v === null || typeof B != "object" || typeof v != "object") {
|
|
9713
9714
|
l[p] = v;
|
|
9714
9715
|
continue;
|
|
9715
9716
|
}
|
|
9716
|
-
const O =
|
|
9717
|
+
const O = Vn(B, v, n + 1);
|
|
9717
9718
|
l[p] = O, O === B && A++;
|
|
9718
9719
|
}
|
|
9719
9720
|
return i === c && A === i ? t : l;
|
|
@@ -9729,7 +9730,7 @@ function ld(t, e) {
|
|
|
9729
9730
|
function Rr(t) {
|
|
9730
9731
|
return Array.isArray(t) && t.length === Object.keys(t).length;
|
|
9731
9732
|
}
|
|
9732
|
-
function
|
|
9733
|
+
function xn(t) {
|
|
9733
9734
|
if (!qr(t))
|
|
9734
9735
|
return !1;
|
|
9735
9736
|
const e = t.constructor;
|
|
@@ -9743,7 +9744,7 @@ function qr(t) {
|
|
|
9743
9744
|
}
|
|
9744
9745
|
function TA(t) {
|
|
9745
9746
|
return new Promise((e) => {
|
|
9746
|
-
|
|
9747
|
+
jn.setTimeout(e, t);
|
|
9747
9748
|
});
|
|
9748
9749
|
}
|
|
9749
9750
|
function GA(t, e, n) {
|
|
@@ -9752,13 +9753,13 @@ function GA(t, e, n) {
|
|
|
9752
9753
|
if (n.structuralSharing !== !1) {
|
|
9753
9754
|
if (process.env.NODE_ENV !== "production")
|
|
9754
9755
|
try {
|
|
9755
|
-
return
|
|
9756
|
+
return Vn(t, e);
|
|
9756
9757
|
} catch (r) {
|
|
9757
9758
|
throw console.error(
|
|
9758
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}`
|
|
9759
9760
|
), r;
|
|
9760
9761
|
}
|
|
9761
|
-
return
|
|
9762
|
+
return Vn(t, e);
|
|
9762
9763
|
}
|
|
9763
9764
|
return e;
|
|
9764
9765
|
}
|
|
@@ -9773,11 +9774,11 @@ function YA(t, e, n = 0) {
|
|
|
9773
9774
|
const r = [e, ...t];
|
|
9774
9775
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
9775
9776
|
}
|
|
9776
|
-
var
|
|
9777
|
+
var $t = /* @__PURE__ */ Symbol();
|
|
9777
9778
|
function Ii(t, e) {
|
|
9778
|
-
return process.env.NODE_ENV !== "production" && t.queryFn ===
|
|
9779
|
+
return process.env.NODE_ENV !== "production" && t.queryFn === $t && console.error(
|
|
9779
9780
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
|
|
9780
|
-
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn ===
|
|
9781
|
+
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === $t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
9781
9782
|
}
|
|
9782
9783
|
function dd(t, e) {
|
|
9783
9784
|
return typeof t == "function" ? t(...e) : !!t;
|
|
@@ -9888,7 +9889,7 @@ function kA() {
|
|
|
9888
9889
|
}
|
|
9889
9890
|
};
|
|
9890
9891
|
}
|
|
9891
|
-
var L = kA(), st, je, it, Ur, RA = (Ur = class extends
|
|
9892
|
+
var L = kA(), st, je, it, Ur, RA = (Ur = class extends cn {
|
|
9892
9893
|
constructor() {
|
|
9893
9894
|
super();
|
|
9894
9895
|
G(this, st, !0);
|
|
@@ -9922,14 +9923,14 @@ var L = kA(), st, je, it, Ur, RA = (Ur = class extends on {
|
|
|
9922
9923
|
isOnline() {
|
|
9923
9924
|
return h(this, st);
|
|
9924
9925
|
}
|
|
9925
|
-
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur),
|
|
9926
|
+
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur), en = new RA();
|
|
9926
9927
|
function qA(t) {
|
|
9927
9928
|
return Math.min(1e3 * 2 ** t, 3e4);
|
|
9928
9929
|
}
|
|
9929
9930
|
function Oi(t) {
|
|
9930
|
-
return (t ?? "online") === "online" ?
|
|
9931
|
+
return (t ?? "online") === "online" ? en.isOnline() : !0;
|
|
9931
9932
|
}
|
|
9932
|
-
var
|
|
9933
|
+
var Fn = class extends Error {
|
|
9933
9934
|
constructor(t) {
|
|
9934
9935
|
super("CancelledError"), this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
|
|
9935
9936
|
}
|
|
@@ -9939,14 +9940,14 @@ function Ti(t) {
|
|
|
9939
9940
|
const s = xA(), i = () => s.status !== "pending", a = (I) => {
|
|
9940
9941
|
var V;
|
|
9941
9942
|
if (!i()) {
|
|
9942
|
-
const R = new
|
|
9943
|
+
const R = new Fn(I);
|
|
9943
9944
|
B(R), (V = t.onCancel) == null || V.call(t, R);
|
|
9944
9945
|
}
|
|
9945
9946
|
}, c = () => {
|
|
9946
9947
|
e = !0;
|
|
9947
9948
|
}, l = () => {
|
|
9948
9949
|
e = !1;
|
|
9949
|
-
}, A = () => Mi.isFocused() && (t.networkMode === "always" ||
|
|
9950
|
+
}, A = () => Mi.isFocused() && (t.networkMode === "always" || en.isOnline()) && t.canRun(), m = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
|
|
9950
9951
|
i() || (r == null || r(), s.resolve(I));
|
|
9951
9952
|
}, B = (I) => {
|
|
9952
9953
|
i() || (r == null || r(), s.reject(I));
|
|
@@ -9989,8 +9990,8 @@ function Ti(t) {
|
|
|
9989
9990
|
continue: () => (r == null || r(), s),
|
|
9990
9991
|
cancelRetry: c,
|
|
9991
9992
|
continueRetry: l,
|
|
9992
|
-
canStart:
|
|
9993
|
-
start: () => (
|
|
9993
|
+
canStart: m,
|
|
9994
|
+
start: () => (m() ? O() : v().then(O), s)
|
|
9994
9995
|
};
|
|
9995
9996
|
}
|
|
9996
9997
|
var Xe, Wr, Gi = (Wr = class {
|
|
@@ -10001,7 +10002,7 @@ var Xe, Wr, Gi = (Wr = class {
|
|
|
10001
10002
|
this.clearGcTimeout();
|
|
10002
10003
|
}
|
|
10003
10004
|
scheduleGc() {
|
|
10004
|
-
this.clearGcTimeout(), MA(this.gcTime) && D(this, Xe,
|
|
10005
|
+
this.clearGcTimeout(), MA(this.gcTime) && D(this, Xe, jn.setTimeout(() => {
|
|
10005
10006
|
this.optionalRemove();
|
|
10006
10007
|
}, this.gcTime));
|
|
10007
10008
|
}
|
|
@@ -10012,14 +10013,14 @@ var Xe, Wr, Gi = (Wr = class {
|
|
|
10012
10013
|
);
|
|
10013
10014
|
}
|
|
10014
10015
|
clearGcTimeout() {
|
|
10015
|
-
h(this, Xe) !== void 0 && (
|
|
10016
|
+
h(this, Xe) !== void 0 && (jn.clearTimeout(h(this, Xe)), D(this, Xe, void 0));
|
|
10016
10017
|
}
|
|
10017
10018
|
}, Xe = new WeakMap(), Wr);
|
|
10018
10019
|
function NA(t) {
|
|
10019
10020
|
return {
|
|
10020
10021
|
onFetch: (e, n) => {
|
|
10021
|
-
var
|
|
10022
|
-
const r = e.options, s = (B = (p = (
|
|
10022
|
+
var m, p, B, v, O;
|
|
10023
|
+
const r = e.options, s = (B = (p = (m = e.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : p.fetchMore) == null ? void 0 : B.direction, i = ((v = e.state.data) == null ? void 0 : v.pages) || [], a = ((O = e.state.data) == null ? void 0 : O.pageParams) || [];
|
|
10023
10024
|
let c = { pages: [], pageParams: [] }, l = 0;
|
|
10024
10025
|
const A = async () => {
|
|
10025
10026
|
let I = !1;
|
|
@@ -10043,10 +10044,10 @@ function NA(t) {
|
|
|
10043
10044
|
meta: e.options.meta
|
|
10044
10045
|
};
|
|
10045
10046
|
return V(g), g;
|
|
10046
|
-
})(), q = await R(ee), { maxPages: u } = e.options,
|
|
10047
|
+
})(), q = await R(ee), { maxPages: u } = e.options, f = H ? YA : jA;
|
|
10047
10048
|
return {
|
|
10048
|
-
pages:
|
|
10049
|
-
pageParams:
|
|
10049
|
+
pages: f(Y.pages, q, u),
|
|
10050
|
+
pageParams: f(Y.pageParams, w, u)
|
|
10050
10051
|
};
|
|
10051
10052
|
};
|
|
10052
10053
|
if (s && i.length) {
|
|
@@ -10096,7 +10097,7 @@ function HA(t, { pages: e, pageParams: n }) {
|
|
|
10096
10097
|
var r;
|
|
10097
10098
|
return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, n[0], n) : void 0;
|
|
10098
10099
|
}
|
|
10099
|
-
var at, Se, ot, re, Ue, S, Ct, We, ne, ji,
|
|
10100
|
+
var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
10100
10101
|
constructor(e) {
|
|
10101
10102
|
super();
|
|
10102
10103
|
G(this, ne);
|
|
@@ -10133,7 +10134,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10133
10134
|
}
|
|
10134
10135
|
setData(e, n) {
|
|
10135
10136
|
const r = GA(this.state.data, e, this.options);
|
|
10136
|
-
return z(this, ne,
|
|
10137
|
+
return z(this, ne, fe).call(this, {
|
|
10137
10138
|
data: r,
|
|
10138
10139
|
type: "success",
|
|
10139
10140
|
dataUpdatedAt: n == null ? void 0 : n.updatedAt,
|
|
@@ -10141,7 +10142,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10141
10142
|
}), r;
|
|
10142
10143
|
}
|
|
10143
10144
|
setState(e) {
|
|
10144
|
-
z(this, ne,
|
|
10145
|
+
z(this, ne, fe).call(this, { type: "setState", state: e });
|
|
10145
10146
|
}
|
|
10146
10147
|
cancel(e) {
|
|
10147
10148
|
var r, s;
|
|
@@ -10163,14 +10164,14 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10163
10164
|
);
|
|
10164
10165
|
}
|
|
10165
10166
|
isDisabled() {
|
|
10166
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
10167
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === $t || !this.isFetched();
|
|
10167
10168
|
}
|
|
10168
10169
|
isFetched() {
|
|
10169
10170
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
10170
10171
|
}
|
|
10171
10172
|
isStatic() {
|
|
10172
10173
|
return this.getObserversCount() > 0 ? this.observers.some(
|
|
10173
|
-
(e) =>
|
|
10174
|
+
(e) => Yn(e.options.staleTime, this) === "static"
|
|
10174
10175
|
) : !1;
|
|
10175
10176
|
}
|
|
10176
10177
|
isStale() {
|
|
@@ -10201,10 +10202,10 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10201
10202
|
return this.observers.length;
|
|
10202
10203
|
}
|
|
10203
10204
|
invalidate() {
|
|
10204
|
-
this.state.isInvalidated || z(this, ne,
|
|
10205
|
+
this.state.isInvalidated || z(this, ne, fe).call(this, { type: "invalidate" });
|
|
10205
10206
|
}
|
|
10206
10207
|
async fetch(e, n) {
|
|
10207
|
-
var A,
|
|
10208
|
+
var A, m, p, B, v, O, I, V, R, Q, Y;
|
|
10208
10209
|
if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
|
|
10209
10210
|
// re-start the fetch; there is a chance that the query is still in a
|
|
10210
10211
|
// pending state when that happens
|
|
@@ -10253,23 +10254,23 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10253
10254
|
})(), l = h(this, at) === "infinite" ? NA(
|
|
10254
10255
|
this.options.pages
|
|
10255
10256
|
) : this.options.behavior;
|
|
10256
|
-
l == null || l.onFetch(c, this), D(this, ot, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((
|
|
10257
|
+
l == null || l.onFetch(c, this), D(this, ot, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((m = c.fetchOptions) == null ? void 0 : m.meta)) && z(this, ne, fe).call(this, { type: "fetch", meta: (p = c.fetchOptions) == null ? void 0 : p.meta }), D(this, S, Ti({
|
|
10257
10258
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
10258
10259
|
fn: c.fetchFn,
|
|
10259
10260
|
onCancel: (w) => {
|
|
10260
|
-
w instanceof
|
|
10261
|
+
w instanceof Fn && w.revert && this.setState({
|
|
10261
10262
|
...h(this, ot),
|
|
10262
10263
|
fetchStatus: "idle"
|
|
10263
10264
|
}), r.abort();
|
|
10264
10265
|
},
|
|
10265
10266
|
onFail: (w, H) => {
|
|
10266
|
-
z(this, ne,
|
|
10267
|
+
z(this, ne, fe).call(this, { type: "failed", failureCount: w, error: H });
|
|
10267
10268
|
},
|
|
10268
10269
|
onPause: () => {
|
|
10269
|
-
z(this, ne,
|
|
10270
|
+
z(this, ne, fe).call(this, { type: "pause" });
|
|
10270
10271
|
},
|
|
10271
10272
|
onContinue: () => {
|
|
10272
|
-
z(this, ne,
|
|
10273
|
+
z(this, ne, fe).call(this, { type: "continue" });
|
|
10273
10274
|
},
|
|
10274
10275
|
retry: c.options.retry,
|
|
10275
10276
|
retryDelay: c.options.retryDelay,
|
|
@@ -10289,7 +10290,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10289
10290
|
this
|
|
10290
10291
|
), w;
|
|
10291
10292
|
} catch (w) {
|
|
10292
|
-
if (w instanceof
|
|
10293
|
+
if (w instanceof Fn) {
|
|
10293
10294
|
if (w.silent)
|
|
10294
10295
|
return h(this, S).promise;
|
|
10295
10296
|
if (w.revert) {
|
|
@@ -10298,7 +10299,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10298
10299
|
return this.state.data;
|
|
10299
10300
|
}
|
|
10300
10301
|
}
|
|
10301
|
-
throw z(this, ne,
|
|
10302
|
+
throw z(this, ne, fe).call(this, {
|
|
10302
10303
|
type: "error",
|
|
10303
10304
|
error: w
|
|
10304
10305
|
}), (R = (V = h(this, re).config).onError) == null || R.call(
|
|
@@ -10317,7 +10318,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
|
10317
10318
|
}
|
|
10318
10319
|
}, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(), Ct = new WeakMap(), We = new WeakMap(), ne = new WeakSet(), ji = function() {
|
|
10319
10320
|
return this.state.fetchStatus === "paused" && this.state.status === "pending";
|
|
10320
|
-
},
|
|
10321
|
+
}, fe = function(e) {
|
|
10321
10322
|
const n = (r) => {
|
|
10322
10323
|
switch (e.type) {
|
|
10323
10324
|
case "failed":
|
|
@@ -10463,7 +10464,7 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10463
10464
|
this.execute(this.state.variables);
|
|
10464
10465
|
}
|
|
10465
10466
|
async execute(e) {
|
|
10466
|
-
var a, c, l, A,
|
|
10467
|
+
var a, c, l, A, m, p, B, v, O, I, V, R, Q, Y, w, H, U, ee;
|
|
10467
10468
|
const n = () => {
|
|
10468
10469
|
z(this, ue, Me).call(this, { type: "continue" });
|
|
10469
10470
|
}, r = {
|
|
@@ -10515,8 +10516,8 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10515
10516
|
this.state.context,
|
|
10516
10517
|
this,
|
|
10517
10518
|
r
|
|
10518
|
-
)), await ((p = (
|
|
10519
|
-
|
|
10519
|
+
)), await ((p = (m = this.options).onSuccess) == null ? void 0 : p.call(
|
|
10520
|
+
m,
|
|
10520
10521
|
q,
|
|
10521
10522
|
e,
|
|
10522
10523
|
this.state.context,
|
|
@@ -10668,13 +10669,13 @@ function UA() {
|
|
|
10668
10669
|
submittedAt: 0
|
|
10669
10670
|
};
|
|
10670
10671
|
}
|
|
10671
|
-
var
|
|
10672
|
+
var me, ae, Mt, Lr, Yi = (Lr = class extends cn {
|
|
10672
10673
|
constructor(n = {}) {
|
|
10673
10674
|
super();
|
|
10674
|
-
G(this,
|
|
10675
|
+
G(this, me);
|
|
10675
10676
|
G(this, ae);
|
|
10676
10677
|
G(this, Mt);
|
|
10677
|
-
this.config = n, D(this,
|
|
10678
|
+
this.config = n, D(this, me, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, Mt, 0);
|
|
10678
10679
|
}
|
|
10679
10680
|
build(n, r, s) {
|
|
10680
10681
|
const i = new SA({
|
|
@@ -10687,7 +10688,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends on {
|
|
|
10687
10688
|
return this.add(i), i;
|
|
10688
10689
|
}
|
|
10689
10690
|
add(n) {
|
|
10690
|
-
h(this,
|
|
10691
|
+
h(this, me).add(n);
|
|
10691
10692
|
const r = kt(n);
|
|
10692
10693
|
if (typeof r == "string") {
|
|
10693
10694
|
const s = h(this, ae).get(r);
|
|
@@ -10696,7 +10697,7 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends on {
|
|
|
10696
10697
|
this.notify({ type: "added", mutation: n });
|
|
10697
10698
|
}
|
|
10698
10699
|
remove(n) {
|
|
10699
|
-
if (h(this,
|
|
10700
|
+
if (h(this, me).delete(n)) {
|
|
10700
10701
|
const r = kt(n);
|
|
10701
10702
|
if (typeof r == "string") {
|
|
10702
10703
|
const s = h(this, ae).get(r);
|
|
@@ -10730,13 +10731,13 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends on {
|
|
|
10730
10731
|
}
|
|
10731
10732
|
clear() {
|
|
10732
10733
|
L.batch(() => {
|
|
10733
|
-
h(this,
|
|
10734
|
+
h(this, me).forEach((n) => {
|
|
10734
10735
|
this.notify({ type: "removed", mutation: n });
|
|
10735
|
-
}), h(this,
|
|
10736
|
+
}), h(this, me).clear(), h(this, ae).clear();
|
|
10736
10737
|
});
|
|
10737
10738
|
}
|
|
10738
10739
|
getAll() {
|
|
10739
|
-
return Array.from(h(this,
|
|
10740
|
+
return Array.from(h(this, me));
|
|
10740
10741
|
}
|
|
10741
10742
|
find(n) {
|
|
10742
10743
|
const r = { exact: !0, ...n };
|
|
@@ -10762,12 +10763,12 @@ var fe, ae, Mt, Lr, Yi = (Lr = class extends on {
|
|
|
10762
10763
|
)
|
|
10763
10764
|
);
|
|
10764
10765
|
}
|
|
10765
|
-
},
|
|
10766
|
+
}, me = new WeakMap(), ae = new WeakMap(), Mt = new WeakMap(), Lr);
|
|
10766
10767
|
function kt(t) {
|
|
10767
10768
|
var e;
|
|
10768
10769
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
10769
10770
|
}
|
|
10770
|
-
var le, Kr, Vi = (Kr = class extends
|
|
10771
|
+
var le, Kr, Vi = (Kr = class extends cn {
|
|
10771
10772
|
constructor(n = {}) {
|
|
10772
10773
|
super();
|
|
10773
10774
|
G(this, le);
|
|
@@ -10854,7 +10855,7 @@ var le, Kr, Vi = (Kr = class extends on {
|
|
|
10854
10855
|
mount() {
|
|
10855
10856
|
Vt(this, xe)._++, h(this, xe) === 1 && (D(this, lt, Mi.subscribe(async (e) => {
|
|
10856
10857
|
e && (await this.resumePausedMutations(), h(this, N).onFocus());
|
|
10857
|
-
})), D(this, At,
|
|
10858
|
+
})), D(this, At, en.subscribe(async (e) => {
|
|
10858
10859
|
e && (await this.resumePausedMutations(), h(this, N).onOnline());
|
|
10859
10860
|
})));
|
|
10860
10861
|
}
|
|
@@ -10882,7 +10883,7 @@ var le, Kr, Vi = (Kr = class extends on {
|
|
|
10882
10883
|
}
|
|
10883
10884
|
ensureQueryData(e) {
|
|
10884
10885
|
const n = this.defaultQueryOptions(e), r = h(this, N).build(this, n), s = r.state.data;
|
|
10885
|
-
return s === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(
|
|
10886
|
+
return s === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(Yn(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(s));
|
|
10886
10887
|
}
|
|
10887
10888
|
getQueriesData(e) {
|
|
10888
10889
|
return h(this, N).findAll(e).map(({ queryKey: n, state: r }) => {
|
|
@@ -10966,7 +10967,7 @@ var le, Kr, Vi = (Kr = class extends on {
|
|
|
10966
10967
|
n.retry === void 0 && (n.retry = !1);
|
|
10967
10968
|
const r = h(this, N).build(this, n);
|
|
10968
10969
|
return r.isStaleByTime(
|
|
10969
|
-
|
|
10970
|
+
Yn(n.staleTime, r)
|
|
10970
10971
|
) ? r.fetch(n) : Promise.resolve(r.state.data);
|
|
10971
10972
|
}
|
|
10972
10973
|
prefetchQuery(e) {
|
|
@@ -10982,7 +10983,7 @@ var le, Kr, Vi = (Kr = class extends on {
|
|
|
10982
10983
|
return e._type = "infinite", this.ensureQueryData(e);
|
|
10983
10984
|
}
|
|
10984
10985
|
resumePausedMutations() {
|
|
10985
|
-
return
|
|
10986
|
+
return en.isOnline() ? h(this, Ye).resumePausedMutations() : Promise.resolve();
|
|
10986
10987
|
}
|
|
10987
10988
|
getQueryCache() {
|
|
10988
10989
|
return h(this, N);
|
|
@@ -11032,7 +11033,7 @@ var le, Kr, Vi = (Kr = class extends on {
|
|
|
11032
11033
|
return n.queryHash || (n.queryHash = er(
|
|
11033
11034
|
n.queryKey,
|
|
11034
11035
|
n
|
|
11035
|
-
)), n.refetchOnReconnect === void 0 && (n.refetchOnReconnect = n.networkMode !== "always"), n.throwOnError === void 0 && (n.throwOnError = !!n.suspense), !n.networkMode && n.persister && (n.networkMode = "offlineFirst"), n.queryFn ===
|
|
11036
|
+
)), n.refetchOnReconnect === void 0 && (n.refetchOnReconnect = n.networkMode !== "always"), n.throwOnError === void 0 && (n.throwOnError = !!n.suspense), !n.networkMode && n.persister && (n.networkMode = "offlineFirst"), n.queryFn === $t && (n.enabled = !1), n;
|
|
11036
11037
|
}
|
|
11037
11038
|
defaultMutationOptions(e) {
|
|
11038
11039
|
return e != null && e._defaulted ? e : {
|
|
@@ -11055,27 +11056,27 @@ function pd(t, e) {
|
|
|
11055
11056
|
t[n] = e[n];
|
|
11056
11057
|
});
|
|
11057
11058
|
}
|
|
11058
|
-
function
|
|
11059
|
+
function kn(t, e, n = "", r = 0) {
|
|
11059
11060
|
if (e) {
|
|
11060
11061
|
const s = e(t, n, r);
|
|
11061
|
-
if (s === void 0 &&
|
|
11062
|
+
if (s === void 0 && Rn(t) || s !== void 0)
|
|
11062
11063
|
return s;
|
|
11063
11064
|
}
|
|
11064
11065
|
if (Array.isArray(t))
|
|
11065
11066
|
return t.map(
|
|
11066
|
-
(s, i) =>
|
|
11067
|
+
(s, i) => kn(s, e, String(i), r + 1)
|
|
11067
11068
|
);
|
|
11068
11069
|
if (typeof t == "object" && ZA(t)) {
|
|
11069
11070
|
const s = Object.entries(t).map(([i, a]) => [
|
|
11070
11071
|
i,
|
|
11071
|
-
|
|
11072
|
+
kn(a, e, i, r + 1)
|
|
11072
11073
|
]);
|
|
11073
11074
|
return Object.fromEntries(s);
|
|
11074
11075
|
}
|
|
11075
11076
|
return t;
|
|
11076
11077
|
}
|
|
11077
11078
|
function zA(t, e) {
|
|
11078
|
-
return
|
|
11079
|
+
return kn(t, e);
|
|
11079
11080
|
}
|
|
11080
11081
|
function T(t, e = !1) {
|
|
11081
11082
|
return zA(t, (n, r, s) => {
|
|
@@ -11083,7 +11084,7 @@ function T(t, e = !1) {
|
|
|
11083
11084
|
return T(n, !0);
|
|
11084
11085
|
if (e && LA(n))
|
|
11085
11086
|
return T(n(), e);
|
|
11086
|
-
if (
|
|
11087
|
+
if (Rn(n))
|
|
11087
11088
|
return T(ge(n), e);
|
|
11088
11089
|
});
|
|
11089
11090
|
}
|
|
@@ -11216,7 +11217,7 @@ var KA = class extends Vi {
|
|
|
11216
11217
|
};
|
|
11217
11218
|
Ki({
|
|
11218
11219
|
history: Ji(),
|
|
11219
|
-
routes: [...
|
|
11220
|
+
routes: [...Ut, ...pt].map((t) => ({
|
|
11220
11221
|
...t,
|
|
11221
11222
|
component: os(
|
|
11222
11223
|
_r({
|
|
@@ -11225,32 +11226,32 @@ Ki({
|
|
|
11225
11226
|
)
|
|
11226
11227
|
}))
|
|
11227
11228
|
});
|
|
11228
|
-
const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ */
|
|
11229
|
+
const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ */ tn({
|
|
11229
11230
|
__name: "AppSidebar",
|
|
11230
11231
|
setup(t) {
|
|
11231
|
-
const e =
|
|
11232
|
+
const e = Hn(), n = _i(), { t: r } = ns(), s = Xt(n.currentRoute.value.name);
|
|
11232
11233
|
$r(n.currentRoute, () => {
|
|
11233
11234
|
let A = n.currentRoute.value.name;
|
|
11234
11235
|
n.currentRoute.value.meta.parent && (A = n.currentRoute.value.meta.parent), s.value = A;
|
|
11235
11236
|
});
|
|
11236
|
-
const i =
|
|
11237
|
+
const i = Ut.map((A) => {
|
|
11237
11238
|
var B, v;
|
|
11238
11239
|
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((v = A.meta.region) != null && v[e.currentCountry.value]) || A.meta.section)
|
|
11239
11240
|
return;
|
|
11240
|
-
const
|
|
11241
|
-
label:
|
|
11241
|
+
const m = A.meta.sidebarDisplay, p = {
|
|
11242
|
+
label: m.startsWith("i18n:") ? r(m.replaceAll("i18n:", "")) : m,
|
|
11242
11243
|
value: A.name,
|
|
11243
11244
|
action: () => {
|
|
11244
11245
|
if (n.currentRoute.value.name !== A.name)
|
|
11245
11246
|
return n.push({ name: A.name });
|
|
11246
11247
|
}
|
|
11247
11248
|
};
|
|
11248
|
-
return A.meta.sidebarNew && (p.badge = () =>
|
|
11249
|
+
return A.meta.sidebarNew && (p.badge = () => bn(ea.FmPill, { label: "New" })), p;
|
|
11249
11250
|
}).filter((A) => !!A);
|
|
11250
|
-
function a(A,
|
|
11251
|
+
function a(A, m) {
|
|
11251
11252
|
return A.map((p) => {
|
|
11252
11253
|
var B, v;
|
|
11253
|
-
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [],
|
|
11254
|
+
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], m) : (v = p.meta) != null && v.sidebarDisplay ? p.meta.section !== m ? [] : [
|
|
11254
11255
|
{
|
|
11255
11256
|
label: p.meta.sidebarDisplay.startsWith("i18n:") ? r(p.meta.sidebarDisplay.replaceAll("i18n:", "")) : p.meta.sidebarDisplay,
|
|
11256
11257
|
value: p.name,
|
|
@@ -11263,8 +11264,8 @@ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ *
|
|
|
11263
11264
|
}).flat().filter((p) => !!p);
|
|
11264
11265
|
}
|
|
11265
11266
|
const c = pt.map((A) => {
|
|
11266
|
-
var
|
|
11267
|
-
if ((
|
|
11267
|
+
var m;
|
|
11268
|
+
if ((m = A.meta) != null && m.sidebarDisplay && !A.meta.section)
|
|
11268
11269
|
return {
|
|
11269
11270
|
label: A.meta.sidebarDisplay.startsWith("i18n:") ? r(A.meta.sidebarDisplay.replaceAll("i18n:", "")) : A.meta.sidebarDisplay,
|
|
11270
11271
|
value: A.name,
|
|
@@ -11273,9 +11274,18 @@ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ *
|
|
|
11273
11274
|
return n.push({ name: A.name });
|
|
11274
11275
|
}
|
|
11275
11276
|
};
|
|
11276
|
-
}).filter((A) => !!A), l =
|
|
11277
|
+
}).filter((A) => !!A), l = qn(() => {
|
|
11277
11278
|
const A = [...i];
|
|
11278
|
-
return
|
|
11279
|
+
return A.push({
|
|
11280
|
+
label: "",
|
|
11281
|
+
value: "divider",
|
|
11282
|
+
disabled: !0
|
|
11283
|
+
}), A.push({
|
|
11284
|
+
label: r("financing.title"),
|
|
11285
|
+
icon: "credit_score",
|
|
11286
|
+
value: "divider",
|
|
11287
|
+
disabled: !0
|
|
11288
|
+
}), A.push(...a(Ut, "financing")), $A(e.sessionUser.value) && (A.push({
|
|
11279
11289
|
label: "",
|
|
11280
11290
|
value: "divider",
|
|
11281
11291
|
disabled: !0
|
|
@@ -11304,22 +11314,22 @@ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ *
|
|
|
11304
11314
|
disabled: !0
|
|
11305
11315
|
}), A.push(...c)), A;
|
|
11306
11316
|
});
|
|
11307
|
-
return (A,
|
|
11317
|
+
return (A, m) => {
|
|
11308
11318
|
const p = es("FmCollapsibleTabs");
|
|
11309
|
-
return
|
|
11319
|
+
return nn(), Nn(p, {
|
|
11310
11320
|
modelValue: s.value,
|
|
11311
|
-
"onUpdate:modelValue":
|
|
11321
|
+
"onUpdate:modelValue": m[0] || (m[0] = (B) => s.value = B),
|
|
11312
11322
|
items: l.value,
|
|
11313
11323
|
class: "py-16 px-8 w-[240px]"
|
|
11314
11324
|
}, null, 8, ["modelValue", "items"]);
|
|
11315
11325
|
};
|
|
11316
11326
|
}
|
|
11317
11327
|
});
|
|
11318
|
-
var td = { firebase: { apiKey: "
|
|
11319
|
-
const yd = /* @__PURE__ */
|
|
11328
|
+
var td = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" } };
|
|
11329
|
+
const yd = /* @__PURE__ */ tn({
|
|
11320
11330
|
__name: "App",
|
|
11321
11331
|
setup(t) {
|
|
11322
|
-
const { state: e } = Qo(), n =
|
|
11332
|
+
const { state: e } = Qo(), n = Hn(), r = ts(), s = new _A();
|
|
11323
11333
|
Wi(xi, s);
|
|
11324
11334
|
const i = Ss(td.firebase);
|
|
11325
11335
|
async function a() {
|
|
@@ -11336,7 +11346,7 @@ const yd = /* @__PURE__ */ en({
|
|
|
11336
11346
|
s.unmount();
|
|
11337
11347
|
}), (c, l) => {
|
|
11338
11348
|
const A = es("RouterView");
|
|
11339
|
-
return
|
|
11349
|
+
return nn(), Nn(A, {
|
|
11340
11350
|
key: ge(r).path
|
|
11341
11351
|
});
|
|
11342
11352
|
};
|
|
@@ -11358,7 +11368,7 @@ const yd = /* @__PURE__ */ en({
|
|
|
11358
11368
|
},
|
|
11359
11369
|
{}
|
|
11360
11370
|
);
|
|
11361
|
-
}, wd = [...pt, ...
|
|
11371
|
+
}, wd = [...pt, ...Ut].map((t) => ({
|
|
11362
11372
|
...t,
|
|
11363
11373
|
component: os(
|
|
11364
11374
|
_r({ loader: t.component })
|
|
@@ -11367,10 +11377,10 @@ const yd = /* @__PURE__ */ en({
|
|
|
11367
11377
|
export {
|
|
11368
11378
|
xa as A,
|
|
11369
11379
|
wd as B,
|
|
11370
|
-
|
|
11380
|
+
cn as S,
|
|
11371
11381
|
yr as _,
|
|
11372
|
-
|
|
11373
|
-
|
|
11382
|
+
Yn as a,
|
|
11383
|
+
jn as b,
|
|
11374
11384
|
XA as c,
|
|
11375
11385
|
GA as d,
|
|
11376
11386
|
Pi as e,
|