@feedmepos/mf-payment 1.7.6-dev → 1.7.7-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-3JBwNlGx.js → Actions.vue_vue_type_script_setup_true_lang-CIxhGPYp.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BsmZ17dQ.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CEnoxjto.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-Dv42bb8d.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DUBMuE17.js} +2 -2
- package/dist/{Chargeback-iw42NmhQ.js → Chargeback-DJ2lO5im.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CEgmqMPG.js → DocumentViewer.vue_vue_type_script_setup_true_lang-B0Db94Wn.js} +1 -1
- package/dist/{OnboardForm-BKrj6MlH.js → OnboardForm-BwiRWBYF.js} +5 -5
- package/dist/{OnboardForm-DKKZj1r1.js → OnboardForm-KMdCA6Mv.js} +5 -5
- package/dist/{OnboardSubmission-CTi_k_LL.js → OnboardSubmission-BYufhN9I.js} +2 -2
- package/dist/{OnboardSubmission-BUmm693d.js → OnboardSubmission-wlzwVZAR.js} +5 -5
- package/dist/PayoutAccount-DEly67Y1.js +384 -0
- package/dist/{PayoutAccount-BEMqd1z_.js → PayoutAccount-OM7Xs4n6.js} +5 -5
- package/dist/PayoutAccountSetting-C8iAlIl0.js +1943 -0
- package/dist/{Restaurant-BXSPjKBF.js → Restaurant-BsTAeknH.js} +4 -4
- package/dist/{RestaurantSetting-DN3J5ffo.js → RestaurantSetting-Crx30KSO.js} +3 -3
- package/dist/{Settlement-Bsz_dIzQ.js → Settlement-BHUe4urm.js} +3 -3
- package/dist/{Settlement-vo8MPovs.js → Settlement-C6qRX_Ko.js} +4 -4
- package/dist/{SettlementTransactions-BZl7_Xa2.js → SettlementTransactions-BlhiPuXi.js} +4 -4
- package/dist/{SettlementTransactions-DDrEx1YK.js → SettlementTransactions-OW_8J_p6.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-CUXS7I4X.js → Status.vue_vue_type_script_setup_true_lang--sCirZ49.js} +1 -1
- package/dist/{Terminal-BlbmYTBq.js → Terminal-DascqK6Y.js} +5 -5
- package/dist/{TerminalSetting-CX9iXWRz.js → TerminalSetting-CdNDI8b_.js} +4 -4
- package/dist/{Transaction-OzWglcKv.js → Transaction-CCYaXRxb.js} +10 -10
- package/dist/{Transaction-Drs-TpOg.js → Transaction-RBN5zhFN.js} +10 -10
- package/dist/{TransactionOld-Cm8iNWsy.js → TransactionOld-vp_PrWoG.js} +7 -7
- package/dist/{app-C0XKu0jl.js → app-CVsUdOTR.js} +654 -639
- package/dist/app.js +1 -1
- package/dist/{assets-DWLVlgG7.js → assets-CsXPGJP8.js} +1 -1
- package/dist/{grafana-CWSgbuy6.js → grafana-CedAXZ7t.js} +1 -1
- package/dist/{index-Zct56Atf.js → index-B67CfTjB.js} +1 -1
- package/dist/{index-6ApGYfIO.js → index-C5RRyMQr.js} +1 -1
- package/dist/{index-BF2Ll-1V.js → index-CUFEGS7x.js} +2 -2
- package/dist/{index-DkKk3kia.js → index-CgsTyRKx.js} +1 -1
- package/dist/{index-DyYRhqsz.js → index-D2whcU-7.js} +2 -2
- package/dist/{index-ggQ7Kq-J.js → index-DKsbQUlX.js} +1 -1
- package/dist/{index-DeAOhjan.js → index-DbEMwjP9.js} +1 -1
- package/dist/{index-DM4_Wt8u.js → index-DfG8JvOq.js} +1 -1
- package/dist/{index-B5nzDCce.js → index-DfSuo0cW.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DGPlPaAk.js → index.vue_vue_type_script_setup_true_lang-BgeBwkkF.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-DJI6NhRC.js → payout-account-BFWIdAMk.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/CreateDummyPayoutDialog.vue.d.ts +11 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +9 -0
- package/package.json +1 -1
- package/dist/PayoutAccount-SjIfbvLB.js +0 -399
- package/dist/PayoutAccountSetting-5yDs3zgb.js +0 -1847
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var rr = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var h = (t, e, n) => (
|
|
6
|
-
var
|
|
4
|
+
var dn = (t, e, n) => e.has(t) || rr("Cannot " + n);
|
|
5
|
+
var h = (t, e, n) => (dn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), G = (t, e, n) => e.has(t) ? rr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), D = (t, e, n, r) => (dn(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), z = (t, e, n) => (dn(t, e, "access private method"), n);
|
|
6
|
+
var xt = (t, e, n, r) => ({
|
|
7
7
|
set _(s) {
|
|
8
8
|
D(t, e, s, n);
|
|
9
9
|
},
|
|
@@ -12,9 +12,9 @@ var Vt = (t, e, n, r) => ({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
import { routes as Ri, i18nMessages as qi } from "@feedmepos/mf-financing";
|
|
15
|
-
import { isRef as
|
|
15
|
+
import { isRef as qn, ref as St, shallowRef as Ni, watchEffect as Hi, computed as Nn, h as vn, defineComponent as tn, unref as ge, openBlock as nn, createBlock as Hn, renderSlot as Qi, createCommentVNode as Xi, createElementBlock as Si, createElementVNode as Ke, toDisplayString as sr, nextTick as Ui, defineAsyncComponent as _r, watch as $r, resolveComponent as es, provide as Wi, onMounted as zi, onBeforeMount as Zi, onUnmounted as Li } from "vue";
|
|
16
16
|
import { useRoute as ts, createRouter as Ki, createWebHistory as Ji, useRouter as _i } from "vue-router";
|
|
17
|
-
import { useCoreStore as
|
|
17
|
+
import { useCoreStore as rn, useI18n as ns } from "@feedmepos/mf-common";
|
|
18
18
|
import { defineStore as $i } from "pinia";
|
|
19
19
|
import { components as ea } from "@feedmepos/ui-library";
|
|
20
20
|
const ta = {
|
|
@@ -1238,7 +1238,7 @@ const oa = () => {
|
|
|
1238
1238
|
};
|
|
1239
1239
|
function ca(t, e, n) {
|
|
1240
1240
|
let r;
|
|
1241
|
-
|
|
1241
|
+
qn(n) ? r = {
|
|
1242
1242
|
evaluating: n
|
|
1243
1243
|
} : r = {};
|
|
1244
1244
|
const {
|
|
@@ -1246,36 +1246,36 @@ function ca(t, e, n) {
|
|
|
1246
1246
|
evaluating: i = void 0,
|
|
1247
1247
|
shallow: a = !0,
|
|
1248
1248
|
onError: c = oa
|
|
1249
|
-
} = r, l =
|
|
1250
|
-
let
|
|
1249
|
+
} = r, l = St(!s), A = a ? Ni(e) : St(e);
|
|
1250
|
+
let f = 0;
|
|
1251
1251
|
return Hi(async (p) => {
|
|
1252
1252
|
if (!l.value)
|
|
1253
1253
|
return;
|
|
1254
|
-
|
|
1255
|
-
const B =
|
|
1256
|
-
let
|
|
1254
|
+
f++;
|
|
1255
|
+
const B = f;
|
|
1256
|
+
let w = !1;
|
|
1257
1257
|
i && Promise.resolve().then(() => {
|
|
1258
1258
|
i.value = !0;
|
|
1259
1259
|
});
|
|
1260
1260
|
try {
|
|
1261
1261
|
const O = await t((I) => {
|
|
1262
1262
|
p(() => {
|
|
1263
|
-
i && (i.value = !1),
|
|
1263
|
+
i && (i.value = !1), w || I();
|
|
1264
1264
|
});
|
|
1265
1265
|
});
|
|
1266
|
-
B ===
|
|
1266
|
+
B === f && (A.value = O);
|
|
1267
1267
|
} catch (O) {
|
|
1268
1268
|
c(O);
|
|
1269
1269
|
} finally {
|
|
1270
|
-
i && B ===
|
|
1270
|
+
i && B === f && (i.value = !1), w = !0;
|
|
1271
1271
|
}
|
|
1272
|
-
}), s ?
|
|
1272
|
+
}), s ? Nn(() => (l.value = !0, A.value)) : A;
|
|
1273
1273
|
}
|
|
1274
1274
|
var ua = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1275
1275
|
function la(t) {
|
|
1276
1276
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
1278
|
+
function ld(t) {
|
|
1279
1279
|
if (t.__esModule) return t;
|
|
1280
1280
|
var e = t.default;
|
|
1281
1281
|
if (typeof e == "function") {
|
|
@@ -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(m) {
|
|
1343
|
+
return typeof m;
|
|
1344
|
+
} : function(m) {
|
|
1345
|
+
return m && typeof Symbol == "function" && m.constructor === Symbol && m !== Symbol.prototype ? "symbol" : typeof m;
|
|
1346
1346
|
})(u);
|
|
1347
1347
|
}
|
|
1348
1348
|
function a(u) {
|
|
1349
|
-
var
|
|
1349
|
+
var m = "[object " + u + "]";
|
|
1350
1350
|
return function(g) {
|
|
1351
|
-
return Object.prototype.toString.call(g) ===
|
|
1351
|
+
return Object.prototype.toString.call(g) === m;
|
|
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 f(u, m) {
|
|
1363
|
+
return A(u.get) ? u.get(m) : u[m];
|
|
1364
1364
|
}
|
|
1365
1365
|
function p(u) {
|
|
1366
|
-
return function(
|
|
1367
|
-
if (!c(g) || !g.length) return u(
|
|
1366
|
+
return function(m, g) {
|
|
1367
|
+
if (!c(g) || !g.length) return u(m, g);
|
|
1368
1368
|
for (var y = 0, b = g.length; y < b; y++)
|
|
1369
|
-
if (u(
|
|
1369
|
+
if (u(m, f(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(m, g) {
|
|
1375
|
+
if (!c(g) || !g.length) return u(m, g);
|
|
1376
1376
|
for (var y = 0, b = g.length; y < b; y++)
|
|
1377
|
-
if (!u(
|
|
1377
|
+
if (!u(m, f(g, y))) return !1;
|
|
1378
1378
|
return !0;
|
|
1379
1379
|
};
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1382
|
-
return u.validate(u.options,
|
|
1381
|
+
function w(u, m, g, y) {
|
|
1382
|
+
return u.validate(u.options, m, g, y);
|
|
1383
1383
|
}
|
|
1384
1384
|
var O = {
|
|
1385
|
-
$eq: p(function(u,
|
|
1386
|
-
return u(
|
|
1385
|
+
$eq: p(function(u, m) {
|
|
1386
|
+
return u(m);
|
|
1387
1387
|
}),
|
|
1388
|
-
$ne: B(function(u,
|
|
1389
|
-
return u(
|
|
1388
|
+
$ne: B(function(u, m) {
|
|
1389
|
+
return u(m);
|
|
1390
1390
|
}),
|
|
1391
|
-
$gt: p(function(u,
|
|
1392
|
-
return u(
|
|
1391
|
+
$gt: p(function(u, m) {
|
|
1392
|
+
return u(m);
|
|
1393
1393
|
}),
|
|
1394
|
-
$gte: p(function(u,
|
|
1395
|
-
return u(
|
|
1394
|
+
$gte: p(function(u, m) {
|
|
1395
|
+
return u(m);
|
|
1396
1396
|
}),
|
|
1397
|
-
$lt: p(function(u,
|
|
1398
|
-
return u(
|
|
1397
|
+
$lt: p(function(u, m) {
|
|
1398
|
+
return u(m);
|
|
1399
1399
|
}),
|
|
1400
|
-
$lte: p(function(u,
|
|
1401
|
-
return u(
|
|
1400
|
+
$lte: p(function(u, m) {
|
|
1401
|
+
return u(m);
|
|
1402
1402
|
}),
|
|
1403
|
-
$mod: p(function(u,
|
|
1404
|
-
return u(
|
|
1403
|
+
$mod: p(function(u, m) {
|
|
1404
|
+
return u(m);
|
|
1405
1405
|
}),
|
|
1406
|
-
$in: function(u,
|
|
1407
|
-
return u(
|
|
1406
|
+
$in: function(u, m) {
|
|
1407
|
+
return u(m);
|
|
1408
1408
|
},
|
|
1409
|
-
$nin: function(u,
|
|
1410
|
-
return u(
|
|
1409
|
+
$nin: function(u, m) {
|
|
1410
|
+
return u(m);
|
|
1411
1411
|
},
|
|
1412
|
-
$not: function(u,
|
|
1413
|
-
return u(
|
|
1412
|
+
$not: function(u, m, g, y) {
|
|
1413
|
+
return u(m, g, y);
|
|
1414
1414
|
},
|
|
1415
|
-
$type: function(u,
|
|
1416
|
-
return u(
|
|
1415
|
+
$type: function(u, m) {
|
|
1416
|
+
return u(m);
|
|
1417
1417
|
},
|
|
1418
|
-
$all: function(u,
|
|
1419
|
-
return O.$and(u,
|
|
1418
|
+
$all: function(u, m, g, y) {
|
|
1419
|
+
return O.$and(u, m, g, y);
|
|
1420
1420
|
},
|
|
1421
|
-
$size: function(u,
|
|
1422
|
-
return !!
|
|
1421
|
+
$size: function(u, m) {
|
|
1422
|
+
return !!m && u === m.length;
|
|
1423
1423
|
},
|
|
1424
|
-
$or: function(u,
|
|
1424
|
+
$or: function(u, m, g, y) {
|
|
1425
1425
|
for (var b = 0, E = u.length; b < E; b++)
|
|
1426
|
-
if (
|
|
1426
|
+
if (w(f(u, b), m, g, y)) return !0;
|
|
1427
1427
|
return !1;
|
|
1428
1428
|
},
|
|
1429
|
-
$nor: function(u,
|
|
1430
|
-
return !O.$or(u,
|
|
1429
|
+
$nor: function(u, m, g, y) {
|
|
1430
|
+
return !O.$or(u, m, g, y);
|
|
1431
1431
|
},
|
|
1432
|
-
$and: function(u,
|
|
1432
|
+
$and: function(u, m, g, y) {
|
|
1433
1433
|
for (var b = 0, E = u.length; b < E; b++)
|
|
1434
|
-
if (!
|
|
1434
|
+
if (!w(f(u, b), m, g, y)) return !1;
|
|
1435
1435
|
return !0;
|
|
1436
1436
|
},
|
|
1437
|
-
$regex: p(function(u,
|
|
1438
|
-
return typeof
|
|
1437
|
+
$regex: p(function(u, m) {
|
|
1438
|
+
return typeof m == "string" && u.test(m);
|
|
1439
1439
|
}),
|
|
1440
|
-
$where: function(u,
|
|
1441
|
-
return u.call(
|
|
1440
|
+
$where: function(u, m, g, y) {
|
|
1441
|
+
return u.call(m, m, g, y);
|
|
1442
1442
|
},
|
|
1443
|
-
$elemMatch: function(u,
|
|
1444
|
-
return c(
|
|
1443
|
+
$elemMatch: function(u, m, g, y) {
|
|
1444
|
+
return c(m) ? !!~function(b, E) {
|
|
1445
1445
|
for (var P = 0; P < b.length; P++)
|
|
1446
|
-
if (
|
|
1446
|
+
if (f(b, P), w(E, f(b, P))) return P;
|
|
1447
1447
|
return -1;
|
|
1448
|
-
}(
|
|
1448
|
+
}(m, u) : w(u, m, g, y);
|
|
1449
1449
|
},
|
|
1450
|
-
$exists: function(u,
|
|
1450
|
+
$exists: function(u, m, g, y) {
|
|
1451
1451
|
return y.hasOwnProperty(g) === u;
|
|
1452
1452
|
}
|
|
1453
1453
|
}, I = {
|
|
1454
|
-
$eq: function(u,
|
|
1454
|
+
$eq: function(u, m, 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, m, 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, m, 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, m, 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, m, 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, m, 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 =
|
|
1506
|
+
var P = w(H(f(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(f(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, m, g) {
|
|
1518
|
+
var y = I.$in(u, m, 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(m) {
|
|
1525
|
+
return m % u[0] == u[1];
|
|
1526
1526
|
};
|
|
1527
1527
|
},
|
|
1528
|
-
$ne: function(u,
|
|
1529
|
-
var y = I.$eq(u,
|
|
1528
|
+
$ne: function(u, m, g) {
|
|
1529
|
+
var y = I.$eq(u, m, 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, m, g) {
|
|
1535
1535
|
return u.map(Y(g));
|
|
1536
1536
|
},
|
|
1537
|
-
$all: function(u,
|
|
1538
|
-
return I.$and(u,
|
|
1537
|
+
$all: function(u, m, g) {
|
|
1538
|
+
return I.$and(u, m, g);
|
|
1539
1539
|
},
|
|
1540
|
-
$or: function(u,
|
|
1540
|
+
$or: function(u, m, g) {
|
|
1541
1541
|
return u.map(Y(g));
|
|
1542
1542
|
},
|
|
1543
|
-
$nor: function(u,
|
|
1543
|
+
$nor: function(u, m, g) {
|
|
1544
1544
|
return u.map(Y(g));
|
|
1545
1545
|
},
|
|
1546
|
-
$not: function(u,
|
|
1546
|
+
$not: function(u, m, g) {
|
|
1547
1547
|
var y = Y(g)(u);
|
|
1548
1548
|
return function(b, E, P) {
|
|
1549
|
-
return !
|
|
1549
|
+
return !w(y, b, E, P);
|
|
1550
1550
|
};
|
|
1551
1551
|
},
|
|
1552
1552
|
$type: function(u) {
|
|
1553
|
-
return function(
|
|
1554
|
-
return
|
|
1553
|
+
return function(m, g, y) {
|
|
1554
|
+
return m != null && (m instanceof u || m.constructor == u);
|
|
1555
1555
|
};
|
|
1556
1556
|
},
|
|
1557
|
-
$regex: function(u,
|
|
1558
|
-
return new RegExp(u,
|
|
1557
|
+
$regex: function(u, m) {
|
|
1558
|
+
return new RegExp(u, m.$options);
|
|
1559
1559
|
},
|
|
1560
1560
|
$where: function(u) {
|
|
1561
1561
|
if (typeof u == "function") return u;
|
|
@@ -1563,55 +1563,55 @@ 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, m, 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, m) {
|
|
1574
|
+
return { options: u, validate: m };
|
|
1575
1575
|
}
|
|
1576
|
-
function R(u,
|
|
1576
|
+
function R(u, m) {
|
|
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, ft, gt, Fi, ln) {
|
|
1579
|
+
if (gt === ft.length || Ce == null)
|
|
1580
|
+
return void ln.push([Ce, ft[gt - 1], Fi]);
|
|
1581
|
+
var nr = f(ft, gt);
|
|
1582
1582
|
if (c(Ce) && isNaN(Number(nr)))
|
|
1583
|
-
for (var
|
|
1584
|
-
else tr(
|
|
1585
|
-
}(
|
|
1583
|
+
for (var An = 0, ki = Ce.length; An < ki; An++) tr(f(Ce, An), ft, gt, Ce, ln);
|
|
1584
|
+
else tr(f(Ce, nr), ft, gt + 1, Ce, ln);
|
|
1585
|
+
}(m, g, 0, m, E), E.length === 1) {
|
|
1586
1586
|
var P = E[0];
|
|
1587
|
-
return
|
|
1587
|
+
return w(y, P[0], P[1], P[2]);
|
|
1588
1588
|
}
|
|
1589
1589
|
for (var j = b && b.$ne !== void 0, W = j, _ = 0; _ < E.length; _++) {
|
|
1590
|
-
var he = E[_],
|
|
1591
|
-
j ? W &=
|
|
1590
|
+
var he = E[_], Vt = w(y, he[0], he[1], he[2]);
|
|
1591
|
+
j ? W &= Vt : W |= Vt;
|
|
1592
1592
|
}
|
|
1593
1593
|
return W;
|
|
1594
1594
|
}
|
|
1595
|
-
function Q(u,
|
|
1596
|
-
return V({ keyPath: u, child:
|
|
1595
|
+
function Q(u, m, g) {
|
|
1596
|
+
return V({ keyPath: u, child: m, query: g }, R);
|
|
1597
1597
|
}
|
|
1598
1598
|
function Y(u) {
|
|
1599
|
-
var
|
|
1599
|
+
var m = 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 = m(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(m(_), he));
|
|
1610
1610
|
else {
|
|
1611
1611
|
if (W.charCodeAt(0) === 36)
|
|
1612
1612
|
throw new Error("Unknown operation " + W);
|
|
1613
|
-
var
|
|
1614
|
-
j.push(Q(
|
|
1613
|
+
var Vt = W.split(".");
|
|
1614
|
+
j.push(Q(Vt, E(_), _));
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
@@ -1621,48 +1621,48 @@ var rs = { exports: {} };
|
|
|
1621
1621
|
if (!l(W)) return _;
|
|
1622
1622
|
for (var he in W) _.push(he), j(W[he], _);
|
|
1623
1623
|
return _;
|
|
1624
|
-
}(P, []).join(",").search(/[$.]/) === -1 ? V(P,
|
|
1624
|
+
}(P, []).join(",").search(/[$.]/) === -1 ? V(P, v) : b(P);
|
|
1625
1625
|
};
|
|
1626
1626
|
return function(P) {
|
|
1627
1627
|
return b(y(P));
|
|
1628
1628
|
};
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1631
|
-
if (Object.prototype.toString.call(u) !== Object.prototype.toString.call(
|
|
1630
|
+
function v(u, m) {
|
|
1631
|
+
if (Object.prototype.toString.call(u) !== Object.prototype.toString.call(m))
|
|
1632
1632
|
return !1;
|
|
1633
1633
|
if (l(u)) {
|
|
1634
|
-
if (Object.keys(u).length !== Object.keys(
|
|
1635
|
-
for (var g in u) if (!
|
|
1634
|
+
if (Object.keys(u).length !== Object.keys(m).length) return !1;
|
|
1635
|
+
for (var g in u) if (!v(u[g], m[g])) return !1;
|
|
1636
1636
|
return !0;
|
|
1637
1637
|
}
|
|
1638
1638
|
if (c(u)) {
|
|
1639
|
-
if (u.length !==
|
|
1639
|
+
if (u.length !== m.length) return !1;
|
|
1640
1640
|
for (var y = 0, b = u.length; y < b; y++)
|
|
1641
|
-
if (!
|
|
1641
|
+
if (!v(u[y], m[y])) return !1;
|
|
1642
1642
|
return !0;
|
|
1643
1643
|
}
|
|
1644
|
-
return u ===
|
|
1644
|
+
return u === m;
|
|
1645
1645
|
}
|
|
1646
|
-
function H(u,
|
|
1647
|
-
var g = Y(
|
|
1648
|
-
return
|
|
1646
|
+
function H(u, m) {
|
|
1647
|
+
var g = Y(m)(u);
|
|
1648
|
+
return m && m.select && (g = {
|
|
1649
1649
|
options: g,
|
|
1650
1650
|
validate: function(y, b, E, P) {
|
|
1651
|
-
return
|
|
1651
|
+
return w(y, b && m.select(b), E, P);
|
|
1652
1652
|
}
|
|
1653
1653
|
}), g;
|
|
1654
1654
|
}
|
|
1655
|
-
function U(u,
|
|
1656
|
-
var g = H(u,
|
|
1655
|
+
function U(u, m) {
|
|
1656
|
+
var g = H(u, m = Object.assign({ compare: ee, comparable: q }, m));
|
|
1657
1657
|
return function(y, b, E) {
|
|
1658
|
-
return
|
|
1658
|
+
return w(g, y, b, E);
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
|
-
function ee(u,
|
|
1662
|
-
if (
|
|
1663
|
-
if (i(u) === i(
|
|
1664
|
-
if (u >
|
|
1665
|
-
if (u <
|
|
1661
|
+
function ee(u, m) {
|
|
1662
|
+
if (v(u, m)) return 0;
|
|
1663
|
+
if (i(u) === i(m)) {
|
|
1664
|
+
if (u > m) return 1;
|
|
1665
|
+
if (u < m) return -1;
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
1668
1668
|
function q(u) {
|
|
@@ -1680,10 +1680,10 @@ 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 ma(t, e, n) {
|
|
1684
1684
|
return e && ha(t.prototype, e), t;
|
|
1685
1685
|
}
|
|
1686
|
-
function
|
|
1686
|
+
function fa(t, e) {
|
|
1687
1687
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
|
|
1688
1688
|
}
|
|
1689
1689
|
function wn(t) {
|
|
@@ -1691,10 +1691,10 @@ function wn(t) {
|
|
|
1691
1691
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
1692
1692
|
}, wn(t);
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1695
|
-
return
|
|
1694
|
+
function Ut(t, e) {
|
|
1695
|
+
return Ut = Object.setPrototypeOf || function(r, s) {
|
|
1696
1696
|
return r.__proto__ = s, r;
|
|
1697
|
-
},
|
|
1697
|
+
}, Ut(t, e);
|
|
1698
1698
|
}
|
|
1699
1699
|
function ga() {
|
|
1700
1700
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
@@ -1706,20 +1706,20 @@ function ga() {
|
|
|
1706
1706
|
return !1;
|
|
1707
1707
|
}
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1710
|
-
return ga() ?
|
|
1709
|
+
function qt(t, e, n) {
|
|
1710
|
+
return ga() ? qt = Reflect.construct : qt = function(s, i, a) {
|
|
1711
1711
|
var c = [null];
|
|
1712
1712
|
c.push.apply(c, i);
|
|
1713
1713
|
var l = Function.bind.apply(s, c), A = new l();
|
|
1714
|
-
return a &&
|
|
1715
|
-
},
|
|
1714
|
+
return a && Ut(A, a.prototype), A;
|
|
1715
|
+
}, qt.apply(null, arguments);
|
|
1716
1716
|
}
|
|
1717
1717
|
function pa(t) {
|
|
1718
1718
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
1719
1719
|
}
|
|
1720
|
-
function
|
|
1720
|
+
function Bn(t) {
|
|
1721
1721
|
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
1722
|
-
return
|
|
1722
|
+
return Bn = function(r) {
|
|
1723
1723
|
if (r === null || !pa(r)) return r;
|
|
1724
1724
|
if (typeof r != "function")
|
|
1725
1725
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -1728,7 +1728,7 @@ function vn(t) {
|
|
|
1728
1728
|
e.set(r, s);
|
|
1729
1729
|
}
|
|
1730
1730
|
function s() {
|
|
1731
|
-
return
|
|
1731
|
+
return qt(r, arguments, wn(this).constructor);
|
|
1732
1732
|
}
|
|
1733
1733
|
return s.prototype = Object.create(r.prototype, {
|
|
1734
1734
|
constructor: {
|
|
@@ -1737,8 +1737,8 @@ function vn(t) {
|
|
|
1737
1737
|
writable: !0,
|
|
1738
1738
|
configurable: !0
|
|
1739
1739
|
}
|
|
1740
|
-
}),
|
|
1741
|
-
},
|
|
1740
|
+
}), Ut(s, r);
|
|
1741
|
+
}, Bn(t);
|
|
1742
1742
|
}
|
|
1743
1743
|
function ir(t) {
|
|
1744
1744
|
if (t === void 0)
|
|
@@ -1747,9 +1747,9 @@ function ir(t) {
|
|
|
1747
1747
|
}
|
|
1748
1748
|
var ss = function(e) {
|
|
1749
1749
|
return 'Cannot execute "' + e.action + '" on "' + e.subjectName + '"';
|
|
1750
|
-
},
|
|
1751
|
-
|
|
1752
|
-
s === null ?
|
|
1750
|
+
}, Ft = ss, ya = /* @__PURE__ */ function(t) {
|
|
1751
|
+
fa(e, t), e.setDefaultMessage = function(s) {
|
|
1752
|
+
s === null ? Ft = ss : Ft = typeof s == "string" ? function() {
|
|
1753
1753
|
return s;
|
|
1754
1754
|
} : s;
|
|
1755
1755
|
}, e.from = function(s) {
|
|
@@ -1760,7 +1760,7 @@ var ss = function(e) {
|
|
|
1760
1760
|
};
|
|
1761
1761
|
function e(r, s) {
|
|
1762
1762
|
var i;
|
|
1763
|
-
return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r ||
|
|
1763
|
+
return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r || Ft(ir(i)), i._customMessage = null, typeof Error.captureStackTrace == "function" && (i.name = i.constructor.name, Error.captureStackTrace(ir(i), i.constructor)), i;
|
|
1764
1764
|
}
|
|
1765
1765
|
var n = e.prototype;
|
|
1766
1766
|
return n.setMessage = function(s) {
|
|
@@ -1777,13 +1777,13 @@ var ss = function(e) {
|
|
|
1777
1777
|
subjectName: this.ability.subjectName(i)
|
|
1778
1778
|
});
|
|
1779
1779
|
var l = c ? c.reason : "";
|
|
1780
|
-
throw this.message = this._customMessage || l ||
|
|
1780
|
+
throw this.message = this._customMessage || l || Ft(this), this;
|
|
1781
1781
|
}
|
|
1782
1782
|
}, n._setMetadata = function(s) {
|
|
1783
1783
|
this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
|
|
1784
1784
|
}, e;
|
|
1785
|
-
}(
|
|
1786
|
-
function
|
|
1785
|
+
}(Bn(Error));
|
|
1786
|
+
function Dn(t) {
|
|
1787
1787
|
return Array.isArray(t) ? t : [t];
|
|
1788
1788
|
}
|
|
1789
1789
|
function ba(t) {
|
|
@@ -1792,10 +1792,10 @@ function ba(t) {
|
|
|
1792
1792
|
var e = typeof t == "object" ? t.constructor : t;
|
|
1793
1793
|
return e.modelName || e.name;
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1795
|
+
function va(t) {
|
|
1796
1796
|
return JSON.parse(JSON.stringify(t));
|
|
1797
1797
|
}
|
|
1798
|
-
var
|
|
1798
|
+
var wa = /[-/\\^$+?.()|[\]{}]/g, Ba = /\.?\*+\.?/g, Da = /\*+/, Ca = /\./g;
|
|
1799
1799
|
function Ea(t, e, n) {
|
|
1800
1800
|
var r = n[0] === "*" || t[0] === "." && t[t.length - 1] === "." ? "+" : "*", s = t.indexOf("**") === -1 ? "[^.]" : ".", i = t.replace(Ca, "\\$&").replace(Da, s + r);
|
|
1801
1801
|
return e + t.length === n.length ? "(?:" + i + ")?" : i;
|
|
@@ -1805,13 +1805,13 @@ function Ma(t, e, n) {
|
|
|
1805
1805
|
}
|
|
1806
1806
|
function Ia(t) {
|
|
1807
1807
|
var e = t.map(function(r) {
|
|
1808
|
-
return r.replace(
|
|
1808
|
+
return r.replace(wa, Ma).replace(Ba, Ea);
|
|
1809
1809
|
}), n = e.length > 1 ? "(?:" + e.join("|") + ")" : e[0];
|
|
1810
1810
|
return new RegExp("^" + n + "$");
|
|
1811
1811
|
}
|
|
1812
1812
|
var Pa = /* @__PURE__ */ function() {
|
|
1813
1813
|
function t(n) {
|
|
1814
|
-
this.actions = n.actions || n.action, this.subject = n.subject, this.fields = !n.fields || n.fields.length === 0 ? void 0 :
|
|
1814
|
+
this.actions = n.actions || n.action, this.subject = n.subject, this.fields = !n.fields || n.fields.length === 0 ? void 0 : Dn(n.fields), Object.defineProperty(this, "_fieldsPattern", {
|
|
1815
1815
|
writable: !0
|
|
1816
1816
|
}), this.inverted = !!n.inverted, this.conditions = n.conditions, Object.defineProperty(this, "_matches", {
|
|
1817
1817
|
writable: !0,
|
|
@@ -1850,7 +1850,7 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
1850
1850
|
indexedRules: /* @__PURE__ */ Object.create(null),
|
|
1851
1851
|
mergedRules: /* @__PURE__ */ Object.create(null),
|
|
1852
1852
|
events: {},
|
|
1853
|
-
aliases:
|
|
1853
|
+
aliases: va(ar)
|
|
1854
1854
|
}, this.update(n);
|
|
1855
1855
|
}
|
|
1856
1856
|
var e = t.prototype;
|
|
@@ -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]), f = this.expandActions(A.actions), p = Dn(A.subject), B = r.length - l - 1;
|
|
1870
1870
|
a = !!(a && A.inverted), !c && A.fields && (c = !0);
|
|
1871
|
-
for (var
|
|
1872
|
-
var O = p[
|
|
1871
|
+
for (var w = 0; w < p.length; w++) {
|
|
1872
|
+
var O = p[w];
|
|
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 < f.length; I++) {
|
|
1875
|
+
var V = f[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 = Dn(r), a = 0; a < i.length; ) {
|
|
1887
1887
|
var c = i[a++];
|
|
1888
1888
|
s.hasOwnProperty(c) && (i = i.concat(s[c]));
|
|
1889
1889
|
}
|
|
@@ -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
|
+
}, ma(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 = (f) => f.subject, a = (f) => s.can(f.action, i(f), f.field) ? !0 : f.coverSubject !== void 0 ? s.can(f.action, f.coverSubject, f.field) : !1, c = r.find((f) => !a(f));
|
|
1977
1977
|
if (c) {
|
|
1978
|
-
const
|
|
1978
|
+
const f = 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: f ?? 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 Cn = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Cn || {});
|
|
2035
2035
|
function Ra() {
|
|
2036
|
-
const t = ts(), { sessionUser: e } =
|
|
2036
|
+
const t = ts(), { sessionUser: e } = rn();
|
|
2037
2037
|
return ca(
|
|
2038
2038
|
async () => {
|
|
2039
2039
|
t.matched;
|
|
@@ -2102,14 +2102,14 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2102
2102
|
__name: "PermissionWrapper",
|
|
2103
2103
|
setup(t) {
|
|
2104
2104
|
const e = Ra();
|
|
2105
|
-
return (n, r) => ge(e) === ge(
|
|
2105
|
+
return (n, r) => ge(e) === ge(Cn).Denied ? (nn(), Hn(eo, { key: 0 })) : ge(e) === ge(Cn).Allowed ? Qi(n.$slots, "default", { key: 1 }) : Xi("", !0);
|
|
2106
2106
|
}
|
|
2107
2107
|
});
|
|
2108
2108
|
function os(t) {
|
|
2109
2109
|
return {
|
|
2110
2110
|
inheritAttrs: !1,
|
|
2111
2111
|
setup(e, { attrs: n }) {
|
|
2112
|
-
return () =>
|
|
2112
|
+
return () => vn(to, {}, { default: () => vn(t, n) });
|
|
2113
2113
|
}
|
|
2114
2114
|
};
|
|
2115
2115
|
}
|
|
@@ -2303,7 +2303,7 @@ const k = [
|
|
|
2303
2303
|
o.delete
|
|
2304
2304
|
]
|
|
2305
2305
|
}
|
|
2306
|
-
],
|
|
2306
|
+
], mo = [
|
|
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
|
+
], fo = [
|
|
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
|
+
], ms = [
|
|
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
|
+
], fs = [
|
|
2391
2391
|
...k,
|
|
2392
2392
|
{
|
|
2393
2393
|
label: "Bin",
|
|
@@ -2406,12 +2406,12 @@ const k = [
|
|
|
2406
2406
|
), bs = $(
|
|
2407
2407
|
se,
|
|
2408
2408
|
ho
|
|
2409
|
-
), ws = $(
|
|
2410
|
-
se,
|
|
2411
|
-
fo
|
|
2412
2409
|
), vs = $(
|
|
2413
2410
|
se,
|
|
2414
2411
|
mo
|
|
2412
|
+
), ws = $(
|
|
2413
|
+
se,
|
|
2414
|
+
fo
|
|
2415
2415
|
), Bs = $(
|
|
2416
2416
|
se,
|
|
2417
2417
|
go
|
|
@@ -2436,7 +2436,7 @@ const k = [
|
|
|
2436
2436
|
o.delete
|
|
2437
2437
|
]
|
|
2438
2438
|
}
|
|
2439
|
-
],
|
|
2439
|
+
], vo = [
|
|
2440
2440
|
...k,
|
|
2441
2441
|
{
|
|
2442
2442
|
label: "Membership",
|
|
@@ -2448,7 +2448,7 @@ const k = [
|
|
|
2448
2448
|
o.delete
|
|
2449
2449
|
]
|
|
2450
2450
|
}
|
|
2451
|
-
],
|
|
2451
|
+
], wo = $(
|
|
2452
2452
|
no,
|
|
2453
2453
|
ro,
|
|
2454
2454
|
cs,
|
|
@@ -2462,14 +2462,14 @@ const k = [
|
|
|
2462
2462
|
ps,
|
|
2463
2463
|
ys,
|
|
2464
2464
|
bs,
|
|
2465
|
-
ws,
|
|
2466
2465
|
vs,
|
|
2466
|
+
ws,
|
|
2467
2467
|
Bs,
|
|
2468
2468
|
Ds,
|
|
2469
2469
|
ds,
|
|
2470
2470
|
hs,
|
|
2471
|
-
|
|
2472
|
-
|
|
2471
|
+
ms,
|
|
2472
|
+
fs
|
|
2473
2473
|
), Bo = $(
|
|
2474
2474
|
se,
|
|
2475
2475
|
ls,
|
|
@@ -2477,11 +2477,11 @@ const k = [
|
|
|
2477
2477
|
), Do = $(
|
|
2478
2478
|
se,
|
|
2479
2479
|
bo
|
|
2480
|
-
), Co = $(
|
|
2480
|
+
), Co = $(vo), Eo = {
|
|
2481
2481
|
[`set_${d.crm}`]: {
|
|
2482
2482
|
key: "sys:crm:access",
|
|
2483
2483
|
name: "CRM Access",
|
|
2484
|
-
permissions:
|
|
2484
|
+
permissions: wo
|
|
2485
2485
|
},
|
|
2486
2486
|
[`set_${d.crm_promotion}`]: {
|
|
2487
2487
|
key: "sys:crm:promotion",
|
|
@@ -2526,12 +2526,12 @@ const k = [
|
|
|
2526
2526
|
[`set_${d.crm_credit}`]: {
|
|
2527
2527
|
key: "sys:crm:credit",
|
|
2528
2528
|
name: "CRM Credit",
|
|
2529
|
-
permissions:
|
|
2529
|
+
permissions: vs
|
|
2530
2530
|
},
|
|
2531
2531
|
[`set_${d.crm_experience}`]: {
|
|
2532
2532
|
key: "sys:crm:experience",
|
|
2533
2533
|
name: "CRM Experience",
|
|
2534
|
-
permissions:
|
|
2534
|
+
permissions: ws
|
|
2535
2535
|
},
|
|
2536
2536
|
[`set_${d.crm_game}`]: {
|
|
2537
2537
|
key: "sys:crm:game",
|
|
@@ -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: ms
|
|
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: fs
|
|
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 || {});
|
|
@@ -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-BsTAeknH.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-Crx30KSO.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-DEly67Y1.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-C8iAlIl0.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-wlzwVZAR.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-KMdCA6Mv.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-DascqK6Y.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-DascqK6Y.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-DascqK6Y.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-CdNDI8b_.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-CdNDI8b_.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-CdNDI8b_.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-RBN5zhFN.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-DJ2lO5im.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-BHUe4urm.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-OW_8J_p6.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
|
+
})), bt = [
|
|
3307
3307
|
{
|
|
3308
3308
|
path: "",
|
|
3309
3309
|
redirect: { name: "mf-payment-payout-account" }
|
|
@@ -3311,7 +3311,7 @@ const Ho = () => ({
|
|
|
3311
3311
|
{
|
|
3312
3312
|
path: "/payout-account",
|
|
3313
3313
|
name: "mf-payment-payout-account",
|
|
3314
|
-
component: () => import("./PayoutAccount-
|
|
3314
|
+
component: () => import("./PayoutAccount-OM7Xs4n6.js"),
|
|
3315
3315
|
meta: {
|
|
3316
3316
|
sidebarDisplay: "i18n:payment.routes.payout_account",
|
|
3317
3317
|
region: { MY: !0 },
|
|
@@ -3328,7 +3328,7 @@ const Ho = () => ({
|
|
|
3328
3328
|
{
|
|
3329
3329
|
path: "/onboard-submission",
|
|
3330
3330
|
name: "mf-payment-onboard-submission",
|
|
3331
|
-
component: () => import("./OnboardSubmission-
|
|
3331
|
+
component: () => import("./OnboardSubmission-BYufhN9I.js"),
|
|
3332
3332
|
meta: {
|
|
3333
3333
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
3334
3334
|
region: { MY: !0, TH: !0, AU: !0 },
|
|
@@ -3346,7 +3346,7 @@ const Ho = () => ({
|
|
|
3346
3346
|
path: "/onboard-submission/restaurant/:restaurantId/:type/:submission?",
|
|
3347
3347
|
name: "mf-payment-onboard-submission-form",
|
|
3348
3348
|
props: !0,
|
|
3349
|
-
component: () => import("./OnboardForm-
|
|
3349
|
+
component: () => import("./OnboardForm-BwiRWBYF.js"),
|
|
3350
3350
|
meta: {
|
|
3351
3351
|
parent: "mf-payment-onboard-submission",
|
|
3352
3352
|
validationManifest: {
|
|
@@ -3362,7 +3362,7 @@ const Ho = () => ({
|
|
|
3362
3362
|
{
|
|
3363
3363
|
path: "/transaction-old",
|
|
3364
3364
|
name: "mf-payment-old-transaction",
|
|
3365
|
-
component: () => import("./TransactionOld-
|
|
3365
|
+
component: () => import("./TransactionOld-vp_PrWoG.js"),
|
|
3366
3366
|
meta: {
|
|
3367
3367
|
sidebarDisplay: "i18n:payment.routes.transaction",
|
|
3368
3368
|
validationManifest: {
|
|
@@ -3378,7 +3378,7 @@ const Ho = () => ({
|
|
|
3378
3378
|
{
|
|
3379
3379
|
path: "/transaction",
|
|
3380
3380
|
name: "mf-payment-transaction",
|
|
3381
|
-
component: () => import("./Transaction-
|
|
3381
|
+
component: () => import("./Transaction-CCYaXRxb.js"),
|
|
3382
3382
|
meta: {
|
|
3383
3383
|
sidebarDisplay: "i18n:payment.routes.transaction_new",
|
|
3384
3384
|
sidebarNew: !0,
|
|
@@ -3395,7 +3395,7 @@ const Ho = () => ({
|
|
|
3395
3395
|
{
|
|
3396
3396
|
path: "/settlement",
|
|
3397
3397
|
name: "mf-payment-settlement",
|
|
3398
|
-
component: () => import("./Settlement-
|
|
3398
|
+
component: () => import("./Settlement-C6qRX_Ko.js"),
|
|
3399
3399
|
meta: {
|
|
3400
3400
|
sidebarDisplay: "i18n:payment.routes.settlement",
|
|
3401
3401
|
region: { MY: !0, SG: !0 },
|
|
@@ -3413,7 +3413,7 @@ const Ho = () => ({
|
|
|
3413
3413
|
path: "/settlement/:settlementId",
|
|
3414
3414
|
name: "mf-payment-settlement-transaction",
|
|
3415
3415
|
props: !0,
|
|
3416
|
-
component: () => import("./SettlementTransactions-
|
|
3416
|
+
component: () => import("./SettlementTransactions-BlhiPuXi.js"),
|
|
3417
3417
|
meta: {
|
|
3418
3418
|
parent: "mf-payment-settlement",
|
|
3419
3419
|
validationManifest: {
|
|
@@ -3453,7 +3453,7 @@ const Ho = () => ({
|
|
|
3453
3453
|
], Qo = $i("mf-payment-iframe", () => {
|
|
3454
3454
|
const t = {
|
|
3455
3455
|
isIframe: !1
|
|
3456
|
-
}, e =
|
|
3456
|
+
}, e = Nn(() => t);
|
|
3457
3457
|
function n(r) {
|
|
3458
3458
|
t.isIframe = r;
|
|
3459
3459
|
}
|
|
@@ -3580,9 +3580,9 @@ const Vs = function(t) {
|
|
|
3580
3580
|
this.init_();
|
|
3581
3581
|
const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
|
3582
3582
|
for (let s = 0; s < t.length; s += 3) {
|
|
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,
|
|
3584
|
-
let B = (c & 15) << 2 | A >> 6,
|
|
3585
|
-
l || (
|
|
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, f = i >> 2, p = (i & 3) << 4 | c >> 4;
|
|
3584
|
+
let B = (c & 15) << 2 | A >> 6, w = A & 63;
|
|
3585
|
+
l || (w = 64, a || (B = 64)), r.push(n[f], n[p], n[B], n[w]);
|
|
3586
3586
|
}
|
|
3587
3587
|
return r.join("");
|
|
3588
3588
|
},
|
|
@@ -3636,8 +3636,8 @@ const Vs = function(t) {
|
|
|
3636
3636
|
throw new So();
|
|
3637
3637
|
const B = i << 2 | c >> 4;
|
|
3638
3638
|
if (r.push(B), A !== 64) {
|
|
3639
|
-
const
|
|
3640
|
-
if (r.push(
|
|
3639
|
+
const w = c << 4 & 240 | A >> 2;
|
|
3640
|
+
if (r.push(w), p !== 64) {
|
|
3641
3641
|
const O = A << 6 & 192 | p;
|
|
3642
3642
|
r.push(O);
|
|
3643
3643
|
}
|
|
@@ -3869,10 +3869,10 @@ function sc() {
|
|
|
3869
3869
|
const ic = "FirebaseError";
|
|
3870
3870
|
class qe extends Error {
|
|
3871
3871
|
constructor(e, n, r) {
|
|
3872
|
-
super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this,
|
|
3872
|
+
super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Pt.prototype.create);
|
|
3873
3873
|
}
|
|
3874
3874
|
}
|
|
3875
|
-
class
|
|
3875
|
+
class Pt {
|
|
3876
3876
|
constructor(e, n, r) {
|
|
3877
3877
|
this.service = e, this.serviceName = n, this.errors = r;
|
|
3878
3878
|
}
|
|
@@ -3932,7 +3932,7 @@ function ur(t) {
|
|
|
3932
3932
|
* See the License for the specific language governing permissions and
|
|
3933
3933
|
* limitations under the License.
|
|
3934
3934
|
*/
|
|
3935
|
-
function
|
|
3935
|
+
function Ot(t) {
|
|
3936
3936
|
const e = [];
|
|
3937
3937
|
for (const [n, r] of Object.entries(t))
|
|
3938
3938
|
Array.isArray(r) ? r.forEach((s) => {
|
|
@@ -3990,7 +3990,7 @@ class lc {
|
|
|
3990
3990
|
next: e,
|
|
3991
3991
|
error: n,
|
|
3992
3992
|
complete: r
|
|
3993
|
-
}, s.next === void 0 && (s.next =
|
|
3993
|
+
}, s.next === void 0 && (s.next = hn), s.error === void 0 && (s.error = hn), s.complete === void 0 && (s.complete = hn);
|
|
3994
3994
|
const i = this.unsubscribeOne.bind(this, this.observers.length);
|
|
3995
3995
|
return this.finalized && this.task.then(() => {
|
|
3996
3996
|
try {
|
|
@@ -4036,7 +4036,7 @@ function Ac(t, e) {
|
|
|
4036
4036
|
return !0;
|
|
4037
4037
|
return !1;
|
|
4038
4038
|
}
|
|
4039
|
-
function
|
|
4039
|
+
function hn() {
|
|
4040
4040
|
}
|
|
4041
4041
|
/**
|
|
4042
4042
|
* @license
|
|
@@ -4164,7 +4164,7 @@ class dc {
|
|
|
4164
4164
|
if (this.component)
|
|
4165
4165
|
throw Error(`Component for ${this.name} has already been provided`);
|
|
4166
4166
|
if (this.component = e, !!this.shouldAutoInitialize()) {
|
|
4167
|
-
if (
|
|
4167
|
+
if (mc(e))
|
|
4168
4168
|
try {
|
|
4169
4169
|
this.getOrInitializeService({ instanceIdentifier: Ne });
|
|
4170
4170
|
} catch {
|
|
@@ -4270,7 +4270,7 @@ class dc {
|
|
|
4270
4270
|
function hc(t) {
|
|
4271
4271
|
return t === Ne ? void 0 : t;
|
|
4272
4272
|
}
|
|
4273
|
-
function
|
|
4273
|
+
function mc(t) {
|
|
4274
4274
|
return t.instantiationMode === "EAGER";
|
|
4275
4275
|
}
|
|
4276
4276
|
/**
|
|
@@ -4289,7 +4289,7 @@ function fc(t) {
|
|
|
4289
4289
|
* See the License for the specific language governing permissions and
|
|
4290
4290
|
* limitations under the License.
|
|
4291
4291
|
*/
|
|
4292
|
-
class
|
|
4292
|
+
class fc {
|
|
4293
4293
|
constructor(e) {
|
|
4294
4294
|
this.name = e, this.providers = /* @__PURE__ */ new Map();
|
|
4295
4295
|
}
|
|
@@ -4425,9 +4425,9 @@ class Ns {
|
|
|
4425
4425
|
this._userLogHandler && this._userLogHandler(this, F.ERROR, ...e), this._logHandler(this, F.ERROR, ...e);
|
|
4426
4426
|
}
|
|
4427
4427
|
}
|
|
4428
|
-
const
|
|
4428
|
+
const vc = (t, e) => e.some((n) => t instanceof n);
|
|
4429
4429
|
let lr, Ar;
|
|
4430
|
-
function
|
|
4430
|
+
function wc() {
|
|
4431
4431
|
return lr || (lr = [
|
|
4432
4432
|
IDBDatabase,
|
|
4433
4433
|
IDBObjectStore,
|
|
@@ -4443,7 +4443,7 @@ function Bc() {
|
|
|
4443
4443
|
IDBCursor.prototype.continuePrimaryKey
|
|
4444
4444
|
]);
|
|
4445
4445
|
}
|
|
4446
|
-
const Hs = /* @__PURE__ */ new WeakMap(),
|
|
4446
|
+
const Hs = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap();
|
|
4447
4447
|
function Dc(t) {
|
|
4448
4448
|
const e = new Promise((n, r) => {
|
|
4449
4449
|
const s = () => {
|
|
@@ -4461,7 +4461,7 @@ function Dc(t) {
|
|
|
4461
4461
|
}), Un.set(e, t), e;
|
|
4462
4462
|
}
|
|
4463
4463
|
function Cc(t) {
|
|
4464
|
-
if (
|
|
4464
|
+
if (En.has(t))
|
|
4465
4465
|
return;
|
|
4466
4466
|
const e = new Promise((n, r) => {
|
|
4467
4467
|
const s = () => {
|
|
@@ -4473,13 +4473,13 @@ function Cc(t) {
|
|
|
4473
4473
|
};
|
|
4474
4474
|
t.addEventListener("complete", i), t.addEventListener("error", a), t.addEventListener("abort", a);
|
|
4475
4475
|
});
|
|
4476
|
-
|
|
4476
|
+
En.set(t, e);
|
|
4477
4477
|
}
|
|
4478
|
-
let
|
|
4478
|
+
let Mn = {
|
|
4479
4479
|
get(t, e, n) {
|
|
4480
4480
|
if (t instanceof IDBTransaction) {
|
|
4481
4481
|
if (e === "done")
|
|
4482
|
-
return
|
|
4482
|
+
return En.get(t);
|
|
4483
4483
|
if (e === "objectStoreNames")
|
|
4484
4484
|
return t.objectStoreNames || Qs.get(t);
|
|
4485
4485
|
if (e === "store")
|
|
@@ -4495,7 +4495,7 @@ let En = {
|
|
|
4495
4495
|
}
|
|
4496
4496
|
};
|
|
4497
4497
|
function Ec(t) {
|
|
4498
|
-
|
|
4498
|
+
Mn = t(Mn);
|
|
4499
4499
|
}
|
|
4500
4500
|
function Mc(t) {
|
|
4501
4501
|
return t === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...n) {
|
|
@@ -4508,15 +4508,15 @@ function Mc(t) {
|
|
|
4508
4508
|
};
|
|
4509
4509
|
}
|
|
4510
4510
|
function Ic(t) {
|
|
4511
|
-
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t),
|
|
4511
|
+
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), vc(t, wc()) ? new Proxy(t, Mn) : t);
|
|
4512
4512
|
}
|
|
4513
4513
|
function Fe(t) {
|
|
4514
4514
|
if (t instanceof IDBRequest)
|
|
4515
4515
|
return Dc(t);
|
|
4516
|
-
if (
|
|
4517
|
-
return
|
|
4516
|
+
if (mn.has(t))
|
|
4517
|
+
return mn.get(t);
|
|
4518
4518
|
const e = Ic(t);
|
|
4519
|
-
return e !== t && (
|
|
4519
|
+
return e !== t && (mn.set(t, e), Un.set(e, t)), e;
|
|
4520
4520
|
}
|
|
4521
4521
|
const fn = (t) => Un.get(t);
|
|
4522
4522
|
function Pc(t, e, { blocked: n, upgrade: r, blocking: s, terminated: i } = {}) {
|
|
@@ -4533,12 +4533,12 @@ function Pc(t, e, { blocked: n, upgrade: r, blocking: s, terminated: i } = {}) {
|
|
|
4533
4533
|
}).catch(() => {
|
|
4534
4534
|
}), c;
|
|
4535
4535
|
}
|
|
4536
|
-
const Oc = ["get", "getKey", "getAll", "getAllKeys", "count"], Tc = ["put", "add", "delete", "clear"],
|
|
4536
|
+
const Oc = ["get", "getKey", "getAll", "getAllKeys", "count"], Tc = ["put", "add", "delete", "clear"], gn = /* @__PURE__ */ new Map();
|
|
4537
4537
|
function dr(t, e) {
|
|
4538
4538
|
if (!(t instanceof IDBDatabase && !(e in t) && typeof e == "string"))
|
|
4539
4539
|
return;
|
|
4540
|
-
if (
|
|
4541
|
-
return
|
|
4540
|
+
if (gn.get(e))
|
|
4541
|
+
return gn.get(e);
|
|
4542
4542
|
const n = e.replace(/FromIndex$/, ""), r = e !== n, s = Tc.includes(n);
|
|
4543
4543
|
if (
|
|
4544
4544
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
@@ -4553,7 +4553,7 @@ function dr(t, e) {
|
|
|
4553
4553
|
s && l.done
|
|
4554
4554
|
]))[0];
|
|
4555
4555
|
};
|
|
4556
|
-
return
|
|
4556
|
+
return gn.set(e, i), i;
|
|
4557
4557
|
}
|
|
4558
4558
|
Ec((t) => ({
|
|
4559
4559
|
...t,
|
|
@@ -4596,7 +4596,7 @@ function jc(t) {
|
|
|
4596
4596
|
const e = t.getComponent();
|
|
4597
4597
|
return (e == null ? void 0 : e.type) === "VERSION";
|
|
4598
4598
|
}
|
|
4599
|
-
const
|
|
4599
|
+
const In = "@firebase/app", hr = "0.10.13";
|
|
4600
4600
|
/**
|
|
4601
4601
|
* @license
|
|
4602
4602
|
* Copyright 2019 Google LLC
|
|
@@ -4613,7 +4613,7 @@ const Mn = "@firebase/app", hr = "0.10.13";
|
|
|
4613
4613
|
* See the License for the specific language governing permissions and
|
|
4614
4614
|
* limitations under the License.
|
|
4615
4615
|
*/
|
|
4616
|
-
const
|
|
4616
|
+
const we = new Ns("@firebase/app"), Yc = "@firebase/app-compat", Vc = "@firebase/analytics-compat", xc = "@firebase/analytics", Fc = "@firebase/app-check-compat", kc = "@firebase/app-check", Rc = "@firebase/auth", qc = "@firebase/auth-compat", Nc = "@firebase/database", Hc = "@firebase/data-connect", Qc = "@firebase/database-compat", Xc = "@firebase/functions", Sc = "@firebase/functions-compat", Uc = "@firebase/installations", Wc = "@firebase/installations-compat", zc = "@firebase/messaging", Zc = "@firebase/messaging-compat", Lc = "@firebase/performance", Kc = "@firebase/performance-compat", Jc = "@firebase/remote-config", _c = "@firebase/remote-config-compat", $c = "@firebase/storage", eu = "@firebase/storage-compat", tu = "@firebase/firestore", nu = "@firebase/vertexai-preview", ru = "@firebase/firestore-compat", su = "firebase", iu = "10.14.1";
|
|
4617
4617
|
/**
|
|
4618
4618
|
* @license
|
|
4619
4619
|
* Copyright 2019 Google LLC
|
|
@@ -4630,8 +4630,8 @@ const ve = new Ns("@firebase/app"), Yc = "@firebase/app-compat", Vc = "@firebase
|
|
|
4630
4630
|
* See the License for the specific language governing permissions and
|
|
4631
4631
|
* limitations under the License.
|
|
4632
4632
|
*/
|
|
4633
|
-
const
|
|
4634
|
-
[
|
|
4633
|
+
const Pn = "[DEFAULT]", au = {
|
|
4634
|
+
[In]: "fire-core",
|
|
4635
4635
|
[Yc]: "fire-core-compat",
|
|
4636
4636
|
[xc]: "fire-analytics",
|
|
4637
4637
|
[Vc]: "fire-analytics-compat",
|
|
@@ -4676,23 +4676,23 @@ const In = "[DEFAULT]", au = {
|
|
|
4676
4676
|
* See the License for the specific language governing permissions and
|
|
4677
4677
|
* limitations under the License.
|
|
4678
4678
|
*/
|
|
4679
|
-
const zt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(),
|
|
4680
|
-
function
|
|
4679
|
+
const zt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), On = /* @__PURE__ */ new Map();
|
|
4680
|
+
function mr(t, e) {
|
|
4681
4681
|
try {
|
|
4682
4682
|
t.container.addComponent(e);
|
|
4683
4683
|
} catch (n) {
|
|
4684
|
-
|
|
4684
|
+
we.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
|
|
4685
4685
|
}
|
|
4686
4686
|
}
|
|
4687
|
-
function
|
|
4687
|
+
function vt(t) {
|
|
4688
4688
|
const e = t.name;
|
|
4689
|
-
if (
|
|
4690
|
-
return
|
|
4691
|
-
|
|
4689
|
+
if (On.has(e))
|
|
4690
|
+
return we.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
4691
|
+
On.set(e, t);
|
|
4692
4692
|
for (const n of zt.values())
|
|
4693
|
-
|
|
4693
|
+
mr(n, t);
|
|
4694
4694
|
for (const n of ou.values())
|
|
4695
|
-
|
|
4695
|
+
mr(n, t);
|
|
4696
4696
|
return !0;
|
|
4697
4697
|
}
|
|
4698
4698
|
function Xs(t, e) {
|
|
@@ -4733,7 +4733,7 @@ const cu = {
|
|
|
4733
4733
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
|
4734
4734
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
|
4735
4735
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
|
4736
|
-
}, ke = new
|
|
4736
|
+
}, ke = new Pt("app", "Firebase", cu);
|
|
4737
4737
|
/**
|
|
4738
4738
|
* @license
|
|
4739
4739
|
* Copyright 2019 Google LLC
|
|
@@ -4808,11 +4808,11 @@ class uu {
|
|
|
4808
4808
|
* See the License for the specific language governing permissions and
|
|
4809
4809
|
* limitations under the License.
|
|
4810
4810
|
*/
|
|
4811
|
-
const
|
|
4811
|
+
const Tt = iu;
|
|
4812
4812
|
function Ss(t, e = {}) {
|
|
4813
4813
|
let n = t;
|
|
4814
4814
|
typeof e != "object" && (e = { name: e });
|
|
4815
|
-
const r = Object.assign({ name:
|
|
4815
|
+
const r = Object.assign({ name: Pn, automaticDataCollectionEnabled: !1 }, e), s = r.name;
|
|
4816
4816
|
if (typeof s != "string" || !s)
|
|
4817
4817
|
throw ke.create("bad-app-name", {
|
|
4818
4818
|
appName: String(s)
|
|
@@ -4828,15 +4828,15 @@ function Ss(t, e = {}) {
|
|
|
4828
4828
|
return i;
|
|
4829
4829
|
throw ke.create("duplicate-app", { appName: s });
|
|
4830
4830
|
}
|
|
4831
|
-
const a = new
|
|
4832
|
-
for (const l of
|
|
4831
|
+
const a = new fc(s);
|
|
4832
|
+
for (const l of On.values())
|
|
4833
4833
|
a.addComponent(l);
|
|
4834
4834
|
const c = new uu(n, r, a);
|
|
4835
4835
|
return zt.set(s, c), c;
|
|
4836
4836
|
}
|
|
4837
|
-
function lu(t =
|
|
4837
|
+
function lu(t = Pn) {
|
|
4838
4838
|
const e = zt.get(t);
|
|
4839
|
-
if (!e && t ===
|
|
4839
|
+
if (!e && t === Pn && Rs())
|
|
4840
4840
|
return Ss();
|
|
4841
4841
|
if (!e)
|
|
4842
4842
|
throw ke.create("no-app", { appName: t });
|
|
@@ -4851,10 +4851,10 @@ function $e(t, e, n) {
|
|
|
4851
4851
|
const c = [
|
|
4852
4852
|
`Unable to register library "${s}" with version "${e}":`
|
|
4853
4853
|
];
|
|
4854
|
-
i && c.push(`library name "${s}" contains illegal characters (whitespace or "/")`), i && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`),
|
|
4854
|
+
i && c.push(`library name "${s}" contains illegal characters (whitespace or "/")`), i && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), we.warn(c.join(" "));
|
|
4855
4855
|
return;
|
|
4856
4856
|
}
|
|
4857
|
-
|
|
4857
|
+
vt(new dt(
|
|
4858
4858
|
`${s}-version`,
|
|
4859
4859
|
() => ({ library: s, version: e }),
|
|
4860
4860
|
"VERSION"
|
|
@@ -4878,9 +4878,9 @@ function $e(t, e, n) {
|
|
|
4878
4878
|
* limitations under the License.
|
|
4879
4879
|
*/
|
|
4880
4880
|
const Au = "firebase-heartbeat-database", du = 1, wt = "firebase-heartbeat-store";
|
|
4881
|
-
let
|
|
4881
|
+
let pn = null;
|
|
4882
4882
|
function Us() {
|
|
4883
|
-
return
|
|
4883
|
+
return pn || (pn = Pc(Au, du, {
|
|
4884
4884
|
upgrade: (t, e) => {
|
|
4885
4885
|
switch (e) {
|
|
4886
4886
|
case 0:
|
|
@@ -4895,7 +4895,7 @@ function Us() {
|
|
|
4895
4895
|
throw ke.create("idb-open", {
|
|
4896
4896
|
originalErrorMessage: t.message
|
|
4897
4897
|
});
|
|
4898
|
-
})),
|
|
4898
|
+
})), pn;
|
|
4899
4899
|
}
|
|
4900
4900
|
async function hu(t) {
|
|
4901
4901
|
try {
|
|
@@ -4903,27 +4903,27 @@ async function hu(t) {
|
|
|
4903
4903
|
return await n.done, r;
|
|
4904
4904
|
} catch (e) {
|
|
4905
4905
|
if (e instanceof qe)
|
|
4906
|
-
|
|
4906
|
+
we.warn(e.message);
|
|
4907
4907
|
else {
|
|
4908
4908
|
const n = ke.create("idb-get", {
|
|
4909
4909
|
originalErrorMessage: e == null ? void 0 : e.message
|
|
4910
4910
|
});
|
|
4911
|
-
|
|
4911
|
+
we.warn(n.message);
|
|
4912
4912
|
}
|
|
4913
4913
|
}
|
|
4914
4914
|
}
|
|
4915
|
-
async function
|
|
4915
|
+
async function fr(t, e) {
|
|
4916
4916
|
try {
|
|
4917
4917
|
const r = (await Us()).transaction(wt, "readwrite");
|
|
4918
4918
|
await r.objectStore(wt).put(e, Ws(t)), await r.done;
|
|
4919
4919
|
} catch (n) {
|
|
4920
4920
|
if (n instanceof qe)
|
|
4921
|
-
|
|
4921
|
+
we.warn(n.message);
|
|
4922
4922
|
else {
|
|
4923
4923
|
const r = ke.create("idb-set", {
|
|
4924
4924
|
originalErrorMessage: n == null ? void 0 : n.message
|
|
4925
4925
|
});
|
|
4926
|
-
|
|
4926
|
+
we.warn(r.message);
|
|
4927
4927
|
}
|
|
4928
4928
|
}
|
|
4929
4929
|
}
|
|
@@ -4946,7 +4946,7 @@ function Ws(t) {
|
|
|
4946
4946
|
* See the License for the specific language governing permissions and
|
|
4947
4947
|
* limitations under the License.
|
|
4948
4948
|
*/
|
|
4949
|
-
const
|
|
4949
|
+
const mu = 1024, fu = 30 * 24 * 60 * 60 * 1e3;
|
|
4950
4950
|
class gu {
|
|
4951
4951
|
constructor(e) {
|
|
4952
4952
|
this.container = e, this._heartbeatsCache = null;
|
|
@@ -4966,10 +4966,10 @@ class gu {
|
|
|
4966
4966
|
const s = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), i = gr();
|
|
4967
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) => {
|
|
4968
4968
|
const c = new Date(a.date).valueOf();
|
|
4969
|
-
return Date.now() - c <=
|
|
4969
|
+
return Date.now() - c <= fu;
|
|
4970
4970
|
}), this._storage.overwrite(this._heartbeatsCache));
|
|
4971
4971
|
} catch (r) {
|
|
4972
|
-
|
|
4972
|
+
we.warn(r);
|
|
4973
4973
|
}
|
|
4974
4974
|
}
|
|
4975
4975
|
/**
|
|
@@ -4987,14 +4987,14 @@ class gu {
|
|
|
4987
4987
|
const n = gr(), { heartbeatsToSend: r, unsentEntries: s } = pu(this._heartbeatsCache.heartbeats), i = Fs(JSON.stringify({ version: 2, heartbeats: r }));
|
|
4988
4988
|
return this._heartbeatsCache.lastSentHeartbeatDate = n, s.length > 0 ? (this._heartbeatsCache.heartbeats = s, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), i;
|
|
4989
4989
|
} catch (n) {
|
|
4990
|
-
return
|
|
4990
|
+
return we.warn(n), "";
|
|
4991
4991
|
}
|
|
4992
4992
|
}
|
|
4993
4993
|
}
|
|
4994
4994
|
function gr() {
|
|
4995
4995
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
|
4996
4996
|
}
|
|
4997
|
-
function pu(t, e =
|
|
4997
|
+
function pu(t, e = mu) {
|
|
4998
4998
|
const n = [];
|
|
4999
4999
|
let r = t.slice();
|
|
5000
5000
|
for (const s of t) {
|
|
@@ -5040,7 +5040,7 @@ class yu {
|
|
|
5040
5040
|
var n;
|
|
5041
5041
|
if (await this._canUseIndexedDBPromise) {
|
|
5042
5042
|
const s = await this.read();
|
|
5043
|
-
return
|
|
5043
|
+
return fr(this.app, {
|
|
5044
5044
|
lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
|
|
5045
5045
|
heartbeats: e.heartbeats
|
|
5046
5046
|
});
|
|
@@ -5052,7 +5052,7 @@ class yu {
|
|
|
5052
5052
|
var n;
|
|
5053
5053
|
if (await this._canUseIndexedDBPromise) {
|
|
5054
5054
|
const s = await this.read();
|
|
5055
|
-
return
|
|
5055
|
+
return fr(this.app, {
|
|
5056
5056
|
lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
|
|
5057
5057
|
heartbeats: [
|
|
5058
5058
|
...s.heartbeats,
|
|
@@ -5086,20 +5086,20 @@ function pr(t) {
|
|
|
5086
5086
|
* limitations under the License.
|
|
5087
5087
|
*/
|
|
5088
5088
|
function bu(t) {
|
|
5089
|
-
|
|
5089
|
+
vt(new dt(
|
|
5090
5090
|
"platform-logger",
|
|
5091
5091
|
(e) => new Gc(e),
|
|
5092
5092
|
"PRIVATE"
|
|
5093
5093
|
/* ComponentType.PRIVATE */
|
|
5094
|
-
)),
|
|
5094
|
+
)), vt(new dt(
|
|
5095
5095
|
"heartbeat",
|
|
5096
5096
|
(e) => new gu(e),
|
|
5097
5097
|
"PRIVATE"
|
|
5098
5098
|
/* ComponentType.PRIVATE */
|
|
5099
|
-
)), $e(
|
|
5099
|
+
)), $e(In, hr, t), $e(In, hr, "esm2017"), $e("fire-js", "");
|
|
5100
5100
|
}
|
|
5101
5101
|
bu("");
|
|
5102
|
-
var
|
|
5102
|
+
var vu = "firebase", wu = "10.14.1";
|
|
5103
5103
|
/**
|
|
5104
5104
|
* @license
|
|
5105
5105
|
* Copyright 2020 Google LLC
|
|
@@ -5116,7 +5116,7 @@ var wu = "firebase", vu = "10.14.1";
|
|
|
5116
5116
|
* See the License for the specific language governing permissions and
|
|
5117
5117
|
* limitations under the License.
|
|
5118
5118
|
*/
|
|
5119
|
-
$e(
|
|
5119
|
+
$e(vu, wu, "app");
|
|
5120
5120
|
var yr = function() {
|
|
5121
5121
|
return yr = Object.assign || function(e) {
|
|
5122
5122
|
for (var n, r = 1, s = arguments.length; r < s; r++) {
|
|
@@ -5139,7 +5139,7 @@ function zs() {
|
|
|
5139
5139
|
"dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
|
|
5140
5140
|
};
|
|
5141
5141
|
}
|
|
5142
|
-
const Bu = zs, Zs = new
|
|
5142
|
+
const Bu = zs, Zs = new Pt("auth", "Firebase", zs());
|
|
5143
5143
|
/**
|
|
5144
5144
|
* @license
|
|
5145
5145
|
* Copyright 2020 Google LLC
|
|
@@ -5158,10 +5158,10 @@ const Bu = zs, Zs = new It("auth", "Firebase", zs());
|
|
|
5158
5158
|
*/
|
|
5159
5159
|
const Zt = new Ns("@firebase/auth");
|
|
5160
5160
|
function Du(t, ...e) {
|
|
5161
|
-
Zt.logLevel <= F.WARN && Zt.warn(`Auth (${
|
|
5161
|
+
Zt.logLevel <= F.WARN && Zt.warn(`Auth (${Tt}): ${t}`, ...e);
|
|
5162
5162
|
}
|
|
5163
|
-
function
|
|
5164
|
-
Zt.logLevel <= F.ERROR && Zt.error(`Auth (${
|
|
5163
|
+
function Nt(t, ...e) {
|
|
5164
|
+
Zt.logLevel <= F.ERROR && Zt.error(`Auth (${Tt}): ${t}`, ...e);
|
|
5165
5165
|
}
|
|
5166
5166
|
/**
|
|
5167
5167
|
* @license
|
|
@@ -5187,7 +5187,7 @@ function Ae(t, ...e) {
|
|
|
5187
5187
|
}
|
|
5188
5188
|
function Ls(t, e, n) {
|
|
5189
5189
|
const r = Object.assign(Object.assign({}, Bu()), { [e]: n });
|
|
5190
|
-
return new
|
|
5190
|
+
return new Pt("auth", "Firebase", r).create(e, {
|
|
5191
5191
|
appName: t.name
|
|
5192
5192
|
});
|
|
5193
5193
|
}
|
|
@@ -5207,7 +5207,7 @@ function M(t, e, ...n) {
|
|
|
5207
5207
|
}
|
|
5208
5208
|
function ye(t) {
|
|
5209
5209
|
const e = "INTERNAL ASSERTION FAILED: " + t;
|
|
5210
|
-
throw
|
|
5210
|
+
throw Nt(e), new Error(e);
|
|
5211
5211
|
}
|
|
5212
5212
|
function De(t, e) {
|
|
5213
5213
|
t || ye(e);
|
|
@@ -5228,7 +5228,7 @@ function De(t, e) {
|
|
|
5228
5228
|
* See the License for the specific language governing permissions and
|
|
5229
5229
|
* limitations under the License.
|
|
5230
5230
|
*/
|
|
5231
|
-
function
|
|
5231
|
+
function Tn() {
|
|
5232
5232
|
var t;
|
|
5233
5233
|
return typeof self < "u" && ((t = self.location) === null || t === void 0 ? void 0 : t.href) || "";
|
|
5234
5234
|
}
|
|
@@ -5291,7 +5291,7 @@ function Mu() {
|
|
|
5291
5291
|
* See the License for the specific language governing permissions and
|
|
5292
5292
|
* limitations under the License.
|
|
5293
5293
|
*/
|
|
5294
|
-
class
|
|
5294
|
+
class Gt {
|
|
5295
5295
|
constructor(e, n) {
|
|
5296
5296
|
this.shortDelay = e, this.longDelay = n, De(n > e, "Short delay should be less than long delay!"), this.isMobile = _o() || tc();
|
|
5297
5297
|
}
|
|
@@ -5481,17 +5481,17 @@ const Iu = {
|
|
|
5481
5481
|
* See the License for the specific language governing permissions and
|
|
5482
5482
|
* limitations under the License.
|
|
5483
5483
|
*/
|
|
5484
|
-
const Pu = new
|
|
5485
|
-
function
|
|
5484
|
+
const Pu = new Gt(3e4, 6e4);
|
|
5485
|
+
function sn(t, e) {
|
|
5486
5486
|
return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
|
|
5487
5487
|
}
|
|
5488
|
-
async function
|
|
5488
|
+
async function mt(t, e, n, r, s = {}) {
|
|
5489
5489
|
return Js(t, s, async () => {
|
|
5490
5490
|
let i = {}, a = {};
|
|
5491
5491
|
r && (e === "GET" ? a = r : i = {
|
|
5492
5492
|
body: JSON.stringify(r)
|
|
5493
5493
|
});
|
|
5494
|
-
const c =
|
|
5494
|
+
const c = Ot(Object.assign({ key: t.config.apiKey }, a)).slice(1), l = await t._getAdditionalHeaders();
|
|
5495
5495
|
l[
|
|
5496
5496
|
"Content-Type"
|
|
5497
5497
|
/* HttpHeader.CONTENT_TYPE */
|
|
@@ -5517,21 +5517,21 @@ async function Js(t, e, n) {
|
|
|
5517
5517
|
s.clearNetworkTimeout();
|
|
5518
5518
|
const a = await i.json();
|
|
5519
5519
|
if ("needConfirmation" in a)
|
|
5520
|
-
throw
|
|
5520
|
+
throw kt(t, "account-exists-with-different-credential", a);
|
|
5521
5521
|
if (i.ok && !("errorMessage" in a))
|
|
5522
5522
|
return a;
|
|
5523
5523
|
{
|
|
5524
5524
|
const c = i.ok ? a.errorMessage : a.error.message, [l, A] = c.split(" : ");
|
|
5525
5525
|
if (l === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
5526
|
-
throw
|
|
5526
|
+
throw kt(t, "credential-already-in-use", a);
|
|
5527
5527
|
if (l === "EMAIL_EXISTS")
|
|
5528
|
-
throw
|
|
5528
|
+
throw kt(t, "email-already-in-use", a);
|
|
5529
5529
|
if (l === "USER_DISABLED")
|
|
5530
|
-
throw
|
|
5531
|
-
const
|
|
5530
|
+
throw kt(t, "user-disabled", a);
|
|
5531
|
+
const f = r[l] || l.toLowerCase().replace(/[_\s]+/g, "-");
|
|
5532
5532
|
if (A)
|
|
5533
|
-
throw Ls(t,
|
|
5534
|
-
Be(t,
|
|
5533
|
+
throw Ls(t, f, A);
|
|
5534
|
+
Be(t, f);
|
|
5535
5535
|
}
|
|
5536
5536
|
} catch (s) {
|
|
5537
5537
|
if (s instanceof qe)
|
|
@@ -5540,7 +5540,7 @@ async function Js(t, e, n) {
|
|
|
5540
5540
|
}
|
|
5541
5541
|
}
|
|
5542
5542
|
async function _s(t, e, n, r, s = {}) {
|
|
5543
|
-
const i = await
|
|
5543
|
+
const i = await mt(t, e, n, r, s);
|
|
5544
5544
|
return "mfaPendingCredential" in i && Be(t, "multi-factor-auth-required", {
|
|
5545
5545
|
_serverResponse: i
|
|
5546
5546
|
}), i;
|
|
@@ -5563,7 +5563,7 @@ class Ou {
|
|
|
5563
5563
|
clearTimeout(this.timer);
|
|
5564
5564
|
}
|
|
5565
5565
|
}
|
|
5566
|
-
function
|
|
5566
|
+
function kt(t, e, n) {
|
|
5567
5567
|
const r = {
|
|
5568
5568
|
appName: t.name
|
|
5569
5569
|
};
|
|
@@ -5588,10 +5588,10 @@ function Ft(t, e, n) {
|
|
|
5588
5588
|
* limitations under the License.
|
|
5589
5589
|
*/
|
|
5590
5590
|
async function Tu(t, e) {
|
|
5591
|
-
return
|
|
5591
|
+
return mt(t, "POST", "/v1/accounts:delete", e);
|
|
5592
5592
|
}
|
|
5593
5593
|
async function ei(t, e) {
|
|
5594
|
-
return
|
|
5594
|
+
return mt(t, "POST", "/v1/accounts:lookup", e);
|
|
5595
5595
|
}
|
|
5596
5596
|
/**
|
|
5597
5597
|
* @license
|
|
@@ -5630,28 +5630,28 @@ async function Gu(t, e = !1) {
|
|
|
5630
5630
|
return {
|
|
5631
5631
|
claims: s,
|
|
5632
5632
|
token: r,
|
|
5633
|
-
authTime: yt(
|
|
5634
|
-
issuedAtTime: yt(
|
|
5635
|
-
expirationTime: yt(
|
|
5633
|
+
authTime: yt(yn(s.auth_time)),
|
|
5634
|
+
issuedAtTime: yt(yn(s.iat)),
|
|
5635
|
+
expirationTime: yt(yn(s.exp)),
|
|
5636
5636
|
signInProvider: a || null,
|
|
5637
5637
|
signInSecondFactor: (i == null ? void 0 : i.sign_in_second_factor) || null
|
|
5638
5638
|
};
|
|
5639
5639
|
}
|
|
5640
|
-
function
|
|
5640
|
+
function yn(t) {
|
|
5641
5641
|
return Number(t) * 1e3;
|
|
5642
5642
|
}
|
|
5643
5643
|
function Ln(t) {
|
|
5644
5644
|
const [e, n, r] = t.split(".");
|
|
5645
5645
|
if (e === void 0 || n === void 0 || r === void 0)
|
|
5646
|
-
return
|
|
5646
|
+
return Nt("JWT malformed, contained fewer than 3 sections"), null;
|
|
5647
5647
|
try {
|
|
5648
5648
|
const s = ks(n);
|
|
5649
|
-
return s ? JSON.parse(s) : (
|
|
5649
|
+
return s ? JSON.parse(s) : (Nt("Failed to decode base64 JWT payload"), null);
|
|
5650
5650
|
} catch (s) {
|
|
5651
|
-
return
|
|
5651
|
+
return Nt("Caught error parsing JWT payload as JSON", s == null ? void 0 : s.toString()), null;
|
|
5652
5652
|
}
|
|
5653
5653
|
}
|
|
5654
|
-
function
|
|
5654
|
+
function vr(t) {
|
|
5655
5655
|
const e = Ln(t);
|
|
5656
5656
|
return M(
|
|
5657
5657
|
e,
|
|
@@ -5683,7 +5683,7 @@ function wr(t) {
|
|
|
5683
5683
|
* See the License for the specific language governing permissions and
|
|
5684
5684
|
* limitations under the License.
|
|
5685
5685
|
*/
|
|
5686
|
-
async function
|
|
5686
|
+
async function Bt(t, e, n = !1) {
|
|
5687
5687
|
if (n)
|
|
5688
5688
|
return e;
|
|
5689
5689
|
try {
|
|
@@ -5773,7 +5773,7 @@ class Yu {
|
|
|
5773
5773
|
* See the License for the specific language governing permissions and
|
|
5774
5774
|
* limitations under the License.
|
|
5775
5775
|
*/
|
|
5776
|
-
class
|
|
5776
|
+
class Gn {
|
|
5777
5777
|
constructor(e, n) {
|
|
5778
5778
|
this.createdAt = e, this.lastLoginAt = n, this._initializeTime();
|
|
5779
5779
|
}
|
|
@@ -5808,7 +5808,7 @@ class Tn {
|
|
|
5808
5808
|
*/
|
|
5809
5809
|
async function Lt(t) {
|
|
5810
5810
|
var e;
|
|
5811
|
-
const n = t.auth, r = await t.getIdToken(), s = await
|
|
5811
|
+
const n = t.auth, r = await t.getIdToken(), s = await Bt(t, ei(n, { idToken: r }));
|
|
5812
5812
|
M(
|
|
5813
5813
|
s == null ? void 0 : s.users.length,
|
|
5814
5814
|
n,
|
|
@@ -5817,7 +5817,7 @@ async function Lt(t) {
|
|
|
5817
5817
|
);
|
|
5818
5818
|
const i = s.users[0];
|
|
5819
5819
|
t._notifyReloadListener(i);
|
|
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),
|
|
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), f = l ? A : !1, p = {
|
|
5821
5821
|
uid: i.localId,
|
|
5822
5822
|
displayName: i.displayName || null,
|
|
5823
5823
|
photoURL: i.photoUrl || null,
|
|
@@ -5826,8 +5826,8 @@ async function Lt(t) {
|
|
|
5826
5826
|
phoneNumber: i.phoneNumber || null,
|
|
5827
5827
|
tenantId: i.tenantId || null,
|
|
5828
5828
|
providerData: c,
|
|
5829
|
-
metadata: new
|
|
5830
|
-
isAnonymous:
|
|
5829
|
+
metadata: new Gn(i.createdAt, i.lastLoginAt),
|
|
5830
|
+
isAnonymous: f
|
|
5831
5831
|
};
|
|
5832
5832
|
Object.assign(t, p);
|
|
5833
5833
|
}
|
|
@@ -5869,7 +5869,7 @@ function ti(t) {
|
|
|
5869
5869
|
*/
|
|
5870
5870
|
async function Fu(t, e) {
|
|
5871
5871
|
const n = await Js(t, {}, async () => {
|
|
5872
|
-
const r =
|
|
5872
|
+
const r = Ot({
|
|
5873
5873
|
grant_type: "refresh_token",
|
|
5874
5874
|
refresh_token: e
|
|
5875
5875
|
}).slice(1), { tokenApiHost: s, apiKey: i } = t.config, a = $s(t, s, "/v1/token", `key=${i}`), c = await t._getAdditionalHeaders();
|
|
@@ -5889,7 +5889,7 @@ async function Fu(t, e) {
|
|
|
5889
5889
|
};
|
|
5890
5890
|
}
|
|
5891
5891
|
async function ku(t, e) {
|
|
5892
|
-
return
|
|
5892
|
+
return mt(t, "POST", "/v2/accounts:revokeToken", sn(t, e));
|
|
5893
5893
|
}
|
|
5894
5894
|
/**
|
|
5895
5895
|
* @license
|
|
@@ -5928,7 +5928,7 @@ class et {
|
|
|
5928
5928
|
"internal-error"
|
|
5929
5929
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5930
5930
|
);
|
|
5931
|
-
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) :
|
|
5931
|
+
const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : vr(e.idToken);
|
|
5932
5932
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, n);
|
|
5933
5933
|
}
|
|
5934
5934
|
updateFromIdToken(e) {
|
|
@@ -5937,7 +5937,7 @@ class et {
|
|
|
5937
5937
|
"internal-error"
|
|
5938
5938
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5939
5939
|
);
|
|
5940
|
-
const n =
|
|
5940
|
+
const n = vr(e);
|
|
5941
5941
|
this.updateTokensAndExpiration(e, null, n);
|
|
5942
5942
|
}
|
|
5943
5943
|
async getToken(e, n = !1) {
|
|
@@ -6007,10 +6007,10 @@ function Ee(t, e) {
|
|
|
6007
6007
|
class be {
|
|
6008
6008
|
constructor(e) {
|
|
6009
6009
|
var { uid: n, auth: r, stsTokenManager: s } = e, i = Wn(e, ["uid", "auth", "stsTokenManager"]);
|
|
6010
|
-
this.providerId = "firebase", this.proactiveRefresh = new Yu(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = s, this.accessToken = s.accessToken, this.displayName = i.displayName || null, this.email = i.email || null, this.emailVerified = i.emailVerified || !1, this.phoneNumber = i.phoneNumber || null, this.photoURL = i.photoURL || null, this.isAnonymous = i.isAnonymous || !1, this.tenantId = i.tenantId || null, this.providerData = i.providerData ? [...i.providerData] : [], this.metadata = new
|
|
6010
|
+
this.providerId = "firebase", this.proactiveRefresh = new Yu(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = s, this.accessToken = s.accessToken, this.displayName = i.displayName || null, this.email = i.email || null, this.emailVerified = i.emailVerified || !1, this.phoneNumber = i.phoneNumber || null, this.photoURL = i.photoURL || null, this.isAnonymous = i.isAnonymous || !1, this.tenantId = i.tenantId || null, this.providerData = i.providerData ? [...i.providerData] : [], this.metadata = new Gn(i.createdAt || void 0, i.lastLoginAt || void 0);
|
|
6011
6011
|
}
|
|
6012
6012
|
async getIdToken(e) {
|
|
6013
|
-
const n = await
|
|
6013
|
+
const n = await Bt(this, this.stsTokenManager.getToken(this.auth, e));
|
|
6014
6014
|
return M(
|
|
6015
6015
|
n,
|
|
6016
6016
|
this.auth,
|
|
@@ -6061,7 +6061,7 @@ class be {
|
|
|
6061
6061
|
if (pe(this.auth.app))
|
|
6062
6062
|
return Promise.reject(Re(this.auth));
|
|
6063
6063
|
const e = await this.getIdToken();
|
|
6064
|
-
return await
|
|
6064
|
+
return await Bt(this, Tu(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
6065
6065
|
}
|
|
6066
6066
|
toJSON() {
|
|
6067
6067
|
return Object.assign(Object.assign({
|
|
@@ -6088,8 +6088,8 @@ class be {
|
|
|
6088
6088
|
return this.stsTokenManager.refreshToken || "";
|
|
6089
6089
|
}
|
|
6090
6090
|
static _fromJSON(e, n) {
|
|
6091
|
-
var r, s, i, a, c, l, A,
|
|
6092
|
-
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0,
|
|
6091
|
+
var r, s, i, a, c, l, A, f;
|
|
6092
|
+
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0, w = (i = n.phoneNumber) !== null && i !== void 0 ? i : void 0, O = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, I = (c = n.tenantId) !== null && c !== void 0 ? c : void 0, V = (l = n._redirectEventId) !== null && l !== void 0 ? l : void 0, R = (A = n.createdAt) !== null && A !== void 0 ? A : void 0, Q = (f = n.lastLoginAt) !== null && f !== void 0 ? f : void 0, { uid: Y, emailVerified: v, isAnonymous: H, providerData: U, stsTokenManager: ee } = n;
|
|
6093
6093
|
M(
|
|
6094
6094
|
Y && ee,
|
|
6095
6095
|
e,
|
|
@@ -6103,7 +6103,7 @@ class be {
|
|
|
6103
6103
|
"internal-error"
|
|
6104
6104
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6105
6105
|
), Ee(p, e.name), Ee(B, e.name), M(
|
|
6106
|
-
typeof
|
|
6106
|
+
typeof v == "boolean",
|
|
6107
6107
|
e,
|
|
6108
6108
|
"internal-error"
|
|
6109
6109
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -6112,22 +6112,22 @@ class be {
|
|
|
6112
6112
|
e,
|
|
6113
6113
|
"internal-error"
|
|
6114
6114
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6115
|
-
), Ee(
|
|
6115
|
+
), Ee(w, e.name), Ee(O, e.name), Ee(I, e.name), Ee(V, e.name), Ee(R, e.name), Ee(Q, e.name);
|
|
6116
6116
|
const u = new be({
|
|
6117
6117
|
uid: Y,
|
|
6118
6118
|
auth: e,
|
|
6119
6119
|
email: B,
|
|
6120
|
-
emailVerified:
|
|
6120
|
+
emailVerified: v,
|
|
6121
6121
|
displayName: p,
|
|
6122
6122
|
isAnonymous: H,
|
|
6123
6123
|
photoURL: O,
|
|
6124
|
-
phoneNumber:
|
|
6124
|
+
phoneNumber: w,
|
|
6125
6125
|
tenantId: I,
|
|
6126
6126
|
stsTokenManager: q,
|
|
6127
6127
|
createdAt: R,
|
|
6128
6128
|
lastLoginAt: Q
|
|
6129
6129
|
});
|
|
6130
|
-
return U && Array.isArray(U) && (u.providerData = U.map((
|
|
6130
|
+
return U && Array.isArray(U) && (u.providerData = U.map((m) => Object.assign({}, m))), V && (u._redirectEventId = V), u;
|
|
6131
6131
|
}
|
|
6132
6132
|
/**
|
|
6133
6133
|
* Initialize a User from an idToken server response
|
|
@@ -6173,7 +6173,7 @@ class be {
|
|
|
6173
6173
|
phoneNumber: s.phoneNumber || null,
|
|
6174
6174
|
tenantId: s.tenantId || null,
|
|
6175
6175
|
providerData: i,
|
|
6176
|
-
metadata: new
|
|
6176
|
+
metadata: new Gn(s.createdAt, s.lastLoginAt),
|
|
6177
6177
|
isAnonymous: !(s.email && s.passwordHash) && !(i != null && i.length)
|
|
6178
6178
|
};
|
|
6179
6179
|
return Object.assign(l, A), l;
|
|
@@ -6195,11 +6195,11 @@ class be {
|
|
|
6195
6195
|
* See the License for the specific language governing permissions and
|
|
6196
6196
|
* limitations under the License.
|
|
6197
6197
|
*/
|
|
6198
|
-
const
|
|
6199
|
-
function
|
|
6198
|
+
const wr = /* @__PURE__ */ new Map();
|
|
6199
|
+
function ve(t) {
|
|
6200
6200
|
De(t instanceof Function, "Expected a class definition");
|
|
6201
|
-
let e =
|
|
6202
|
-
return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(),
|
|
6201
|
+
let e = wr.get(t);
|
|
6202
|
+
return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), wr.set(t, e), e);
|
|
6203
6203
|
}
|
|
6204
6204
|
/**
|
|
6205
6205
|
* @license
|
|
@@ -6257,14 +6257,14 @@ const Br = ni;
|
|
|
6257
6257
|
* See the License for the specific language governing permissions and
|
|
6258
6258
|
* limitations under the License.
|
|
6259
6259
|
*/
|
|
6260
|
-
function
|
|
6260
|
+
function Ht(t, e, n) {
|
|
6261
6261
|
return `firebase:${t}:${e}:${n}`;
|
|
6262
6262
|
}
|
|
6263
6263
|
class tt {
|
|
6264
6264
|
constructor(e, n, r) {
|
|
6265
6265
|
this.persistence = e, this.auth = n, this.userKey = r;
|
|
6266
6266
|
const { config: s, name: i } = this.auth;
|
|
6267
|
-
this.fullUserKey =
|
|
6267
|
+
this.fullUserKey = Ht(this.userKey, s.apiKey, i), this.fullPersistenceKey = Ht("persistence", s.apiKey, i), this.boundEventHandler = n._onStorageEvent.bind(n), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
|
|
6268
6268
|
}
|
|
6269
6269
|
setCurrentUser(e) {
|
|
6270
6270
|
return this.persistence._set(this.fullUserKey, e.toJSON());
|
|
@@ -6291,19 +6291,19 @@ class tt {
|
|
|
6291
6291
|
}
|
|
6292
6292
|
static async create(e, n, r = "authUser") {
|
|
6293
6293
|
if (!n.length)
|
|
6294
|
-
return new tt(
|
|
6294
|
+
return new tt(ve(Br), e, r);
|
|
6295
6295
|
const s = (await Promise.all(n.map(async (A) => {
|
|
6296
6296
|
if (await A._isAvailable())
|
|
6297
6297
|
return A;
|
|
6298
6298
|
}))).filter((A) => A);
|
|
6299
|
-
let i = s[0] ||
|
|
6300
|
-
const a =
|
|
6299
|
+
let i = s[0] || ve(Br);
|
|
6300
|
+
const a = Ht(r, e.config.apiKey, e.name);
|
|
6301
6301
|
let c = null;
|
|
6302
6302
|
for (const A of n)
|
|
6303
6303
|
try {
|
|
6304
|
-
const
|
|
6305
|
-
if (
|
|
6306
|
-
const p = be._fromJSON(e,
|
|
6304
|
+
const f = await A._get(a);
|
|
6305
|
+
if (f) {
|
|
6306
|
+
const p = be._fromJSON(e, f);
|
|
6307
6307
|
A !== i && (c = p), i = A;
|
|
6308
6308
|
break;
|
|
6309
6309
|
}
|
|
@@ -6430,7 +6430,7 @@ function Ai(t, e = []) {
|
|
|
6430
6430
|
n = t;
|
|
6431
6431
|
}
|
|
6432
6432
|
const r = e.length ? e.join(",") : "FirebaseCore-web";
|
|
6433
|
-
return `${n}/JsCore/${
|
|
6433
|
+
return `${n}/JsCore/${Tt}/${r}`;
|
|
6434
6434
|
}
|
|
6435
6435
|
/**
|
|
6436
6436
|
* @license
|
|
@@ -6504,7 +6504,7 @@ class Nu {
|
|
|
6504
6504
|
* limitations under the License.
|
|
6505
6505
|
*/
|
|
6506
6506
|
async function Hu(t, e = {}) {
|
|
6507
|
-
return
|
|
6507
|
+
return mt(t, "GET", "/v2/passwordPolicy", sn(t, e));
|
|
6508
6508
|
}
|
|
6509
6509
|
/**
|
|
6510
6510
|
* @license
|
|
@@ -6615,7 +6615,7 @@ class Su {
|
|
|
6615
6615
|
this.app = e, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = r, this.config = s, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Cr(this), this.idTokenSubscription = new Cr(this), this.beforeStateQueue = new Nu(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Zs, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = s.sdkClientVersion;
|
|
6616
6616
|
}
|
|
6617
6617
|
_initializeWithPersistence(e, n) {
|
|
6618
|
-
return n && (this._popupRedirectResolver =
|
|
6618
|
+
return n && (this._popupRedirectResolver = ve(n)), this._initializationPromise = this.queue(async () => {
|
|
6619
6619
|
var r, s;
|
|
6620
6620
|
if (!this._deleted && (this.persistenceManager = await tt.create(this, e), !this._deleted)) {
|
|
6621
6621
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
|
@@ -6742,7 +6742,7 @@ class Su {
|
|
|
6742
6742
|
}
|
|
6743
6743
|
setPersistence(e) {
|
|
6744
6744
|
return pe(this.app) ? Promise.reject(Re(this)) : this.queue(async () => {
|
|
6745
|
-
await this.assertedPersistence.setPersistence(
|
|
6745
|
+
await this.assertedPersistence.setPersistence(ve(e));
|
|
6746
6746
|
});
|
|
6747
6747
|
}
|
|
6748
6748
|
_getRecaptchaConfig() {
|
|
@@ -6764,7 +6764,7 @@ class Su {
|
|
|
6764
6764
|
return this.assertedPersistence.persistence.type;
|
|
6765
6765
|
}
|
|
6766
6766
|
_updateErrorMap(e) {
|
|
6767
|
-
this._errorFactory = new
|
|
6767
|
+
this._errorFactory = new Pt("auth", "Firebase", e());
|
|
6768
6768
|
}
|
|
6769
6769
|
onAuthStateChanged(e, n, r) {
|
|
6770
6770
|
return this.registerStateListener(this.authStateSubscription, e, n, r);
|
|
@@ -6815,7 +6815,7 @@ class Su {
|
|
|
6815
6815
|
}
|
|
6816
6816
|
async getOrInitRedirectPersistenceManager(e) {
|
|
6817
6817
|
if (!this.redirectPersistenceManager) {
|
|
6818
|
-
const n = e &&
|
|
6818
|
+
const n = e && ve(e) || this._popupRedirectResolver;
|
|
6819
6819
|
M(
|
|
6820
6820
|
n,
|
|
6821
6821
|
this,
|
|
@@ -6823,7 +6823,7 @@ class Su {
|
|
|
6823
6823
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
6824
6824
|
), this.redirectPersistenceManager = await tt.create(
|
|
6825
6825
|
this,
|
|
6826
|
-
[
|
|
6826
|
+
[ve(n._redirectPersistence)],
|
|
6827
6827
|
"redirectUser"
|
|
6828
6828
|
/* KeyName.REDIRECT_USER */
|
|
6829
6829
|
), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
|
|
@@ -6943,7 +6943,7 @@ class Su {
|
|
|
6943
6943
|
return n != null && n.error && Du(`Error while retrieving App Check token: ${n.error}`), n == null ? void 0 : n.token;
|
|
6944
6944
|
}
|
|
6945
6945
|
}
|
|
6946
|
-
function
|
|
6946
|
+
function an(t) {
|
|
6947
6947
|
return ht(t);
|
|
6948
6948
|
}
|
|
6949
6949
|
class Cr {
|
|
@@ -7026,11 +7026,11 @@ function Lu(t, e) {
|
|
|
7026
7026
|
return n.initialize({ options: e });
|
|
7027
7027
|
}
|
|
7028
7028
|
function Ku(t, e) {
|
|
7029
|
-
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(
|
|
7029
|
+
const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(ve);
|
|
7030
7030
|
e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
7031
7031
|
}
|
|
7032
7032
|
function Ju(t, e, n) {
|
|
7033
|
-
const r =
|
|
7033
|
+
const r = an(t);
|
|
7034
7034
|
M(
|
|
7035
7035
|
r._canInitEmulator,
|
|
7036
7036
|
r,
|
|
@@ -7139,7 +7139,7 @@ class hi {
|
|
|
7139
7139
|
* limitations under the License.
|
|
7140
7140
|
*/
|
|
7141
7141
|
async function nt(t, e) {
|
|
7142
|
-
return _s(t, "POST", "/v1/accounts:signInWithIdp",
|
|
7142
|
+
return _s(t, "POST", "/v1/accounts:signInWithIdp", sn(t, e));
|
|
7143
7143
|
}
|
|
7144
7144
|
/**
|
|
7145
7145
|
* @license
|
|
@@ -7222,7 +7222,7 @@ class Ze extends hi {
|
|
|
7222
7222
|
e.pendingToken = this.pendingToken;
|
|
7223
7223
|
else {
|
|
7224
7224
|
const n = {};
|
|
7225
|
-
this.idToken && (n.id_token = this.idToken), this.accessToken && (n.access_token = this.accessToken), this.secret && (n.oauth_token_secret = this.secret), n.providerId = this.providerId, this.nonce && !this.pendingToken && (n.nonce = this.nonce), e.postBody =
|
|
7225
|
+
this.idToken && (n.id_token = this.idToken), this.accessToken && (n.access_token = this.accessToken), this.secret && (n.oauth_token_secret = this.secret), n.providerId = this.providerId, this.nonce && !this.pendingToken && (n.nonce = this.nonce), e.postBody = Ot(n);
|
|
7226
7226
|
}
|
|
7227
7227
|
return e;
|
|
7228
7228
|
}
|
|
@@ -7243,7 +7243,7 @@ class Ze extends hi {
|
|
|
7243
7243
|
* See the License for the specific language governing permissions and
|
|
7244
7244
|
* limitations under the License.
|
|
7245
7245
|
*/
|
|
7246
|
-
class
|
|
7246
|
+
class mi {
|
|
7247
7247
|
/**
|
|
7248
7248
|
* Constructor for generic OAuth providers.
|
|
7249
7249
|
*
|
|
@@ -7296,7 +7296,7 @@ class fi {
|
|
|
7296
7296
|
* See the License for the specific language governing permissions and
|
|
7297
7297
|
* limitations under the License.
|
|
7298
7298
|
*/
|
|
7299
|
-
class
|
|
7299
|
+
class jt extends mi {
|
|
7300
7300
|
constructor() {
|
|
7301
7301
|
super(...arguments), this.scopes = [];
|
|
7302
7302
|
}
|
|
@@ -7331,7 +7331,7 @@ class Gt extends fi {
|
|
|
7331
7331
|
* See the License for the specific language governing permissions and
|
|
7332
7332
|
* limitations under the License.
|
|
7333
7333
|
*/
|
|
7334
|
-
class Ie extends
|
|
7334
|
+
class Ie extends jt {
|
|
7335
7335
|
constructor() {
|
|
7336
7336
|
super(
|
|
7337
7337
|
"facebook.com"
|
|
@@ -7402,7 +7402,7 @@ Ie.PROVIDER_ID = "facebook.com";
|
|
|
7402
7402
|
* See the License for the specific language governing permissions and
|
|
7403
7403
|
* limitations under the License.
|
|
7404
7404
|
*/
|
|
7405
|
-
class Pe extends
|
|
7405
|
+
class Pe extends jt {
|
|
7406
7406
|
constructor() {
|
|
7407
7407
|
super(
|
|
7408
7408
|
"google.com"
|
|
@@ -7478,7 +7478,7 @@ Pe.PROVIDER_ID = "google.com";
|
|
|
7478
7478
|
* See the License for the specific language governing permissions and
|
|
7479
7479
|
* limitations under the License.
|
|
7480
7480
|
*/
|
|
7481
|
-
class Oe extends
|
|
7481
|
+
class Oe extends jt {
|
|
7482
7482
|
constructor() {
|
|
7483
7483
|
super(
|
|
7484
7484
|
"github.com"
|
|
@@ -7542,7 +7542,7 @@ Oe.PROVIDER_ID = "github.com";
|
|
|
7542
7542
|
* See the License for the specific language governing permissions and
|
|
7543
7543
|
* limitations under the License.
|
|
7544
7544
|
*/
|
|
7545
|
-
class Te extends
|
|
7545
|
+
class Te extends jt {
|
|
7546
7546
|
constructor() {
|
|
7547
7547
|
super(
|
|
7548
7548
|
"twitter.com"
|
|
@@ -7672,13 +7672,13 @@ class Kt extends qe {
|
|
|
7672
7672
|
return new Kt(e, n, r, s);
|
|
7673
7673
|
}
|
|
7674
7674
|
}
|
|
7675
|
-
function
|
|
7675
|
+
function fi(t, e, n, r) {
|
|
7676
7676
|
return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((i) => {
|
|
7677
7677
|
throw i.code === "auth/multi-factor-auth-required" ? Kt._fromErrorAndOperation(t, i, e, r) : i;
|
|
7678
7678
|
});
|
|
7679
7679
|
}
|
|
7680
7680
|
async function tl(t, e, n = !1) {
|
|
7681
|
-
const r = await
|
|
7681
|
+
const r = await Bt(t, e._linkToIdToken(t.auth, await t.getIdToken()), n);
|
|
7682
7682
|
return Le._forOperation(t, "link", r);
|
|
7683
7683
|
}
|
|
7684
7684
|
/**
|
|
@@ -7703,7 +7703,7 @@ async function nl(t, e, n = !1) {
|
|
|
7703
7703
|
return Promise.reject(Re(r));
|
|
7704
7704
|
const s = "reauthenticate";
|
|
7705
7705
|
try {
|
|
7706
|
-
const i = await
|
|
7706
|
+
const i = await Bt(t, fi(r, s, e, t), n);
|
|
7707
7707
|
M(
|
|
7708
7708
|
i.idToken,
|
|
7709
7709
|
r,
|
|
@@ -7751,7 +7751,7 @@ async function nl(t, e, n = !1) {
|
|
|
7751
7751
|
async function rl(t, e, n = !1) {
|
|
7752
7752
|
if (pe(t.app))
|
|
7753
7753
|
return Promise.reject(Re(t));
|
|
7754
|
-
const r = "signIn", s = await
|
|
7754
|
+
const r = "signIn", s = await fi(t, r, e), i = await Le._fromIdTokenResponse(t, r, s);
|
|
7755
7755
|
return n || await t._updateCurrentUser(i.user), i;
|
|
7756
7756
|
}
|
|
7757
7757
|
/**
|
|
@@ -7771,7 +7771,7 @@ async function rl(t, e, n = !1) {
|
|
|
7771
7771
|
* limitations under the License.
|
|
7772
7772
|
*/
|
|
7773
7773
|
async function sl(t, e) {
|
|
7774
|
-
return _s(t, "POST", "/v1/accounts:signInWithCustomToken",
|
|
7774
|
+
return _s(t, "POST", "/v1/accounts:signInWithCustomToken", sn(t, e));
|
|
7775
7775
|
}
|
|
7776
7776
|
/**
|
|
7777
7777
|
* @license
|
|
@@ -7792,7 +7792,7 @@ async function sl(t, e) {
|
|
|
7792
7792
|
async function il(t, e) {
|
|
7793
7793
|
if (pe(t.app))
|
|
7794
7794
|
return Promise.reject(Re(t));
|
|
7795
|
-
const n =
|
|
7795
|
+
const n = an(t), r = await sl(n, {
|
|
7796
7796
|
token: e,
|
|
7797
7797
|
returnSecureToken: !0
|
|
7798
7798
|
}), s = await Le._fromIdTokenResponse(n, "signIn", r);
|
|
@@ -8021,7 +8021,7 @@ function Al(t) {
|
|
|
8021
8021
|
* See the License for the specific language governing permissions and
|
|
8022
8022
|
* limitations under the License.
|
|
8023
8023
|
*/
|
|
8024
|
-
class
|
|
8024
|
+
class on {
|
|
8025
8025
|
constructor(e) {
|
|
8026
8026
|
this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
|
|
8027
8027
|
}
|
|
@@ -8035,7 +8035,7 @@ class an {
|
|
|
8035
8035
|
const n = this.receivers.find((s) => s.isListeningto(e));
|
|
8036
8036
|
if (n)
|
|
8037
8037
|
return n;
|
|
8038
|
-
const r = new
|
|
8038
|
+
const r = new on(e);
|
|
8039
8039
|
return this.receivers.push(r), r;
|
|
8040
8040
|
}
|
|
8041
8041
|
isListeningto(e) {
|
|
@@ -8089,7 +8089,7 @@ class an {
|
|
|
8089
8089
|
this.handlersMap[e] && n && this.handlersMap[e].delete(n), (!n || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
|
|
8090
8090
|
}
|
|
8091
8091
|
}
|
|
8092
|
-
|
|
8092
|
+
on.receivers = [];
|
|
8093
8093
|
/**
|
|
8094
8094
|
* @license
|
|
8095
8095
|
* Copyright 2020 Google LLC
|
|
@@ -8164,7 +8164,7 @@ class dl {
|
|
|
8164
8164
|
return new Promise((c, l) => {
|
|
8165
8165
|
const A = _n("", 20);
|
|
8166
8166
|
s.port1.start();
|
|
8167
|
-
const
|
|
8167
|
+
const f = setTimeout(() => {
|
|
8168
8168
|
l(new Error(
|
|
8169
8169
|
"unsupported_event"
|
|
8170
8170
|
/* _MessageError.UNSUPPORTED_EVENT */
|
|
@@ -8177,7 +8177,7 @@ class dl {
|
|
|
8177
8177
|
if (B.data.eventId === A)
|
|
8178
8178
|
switch (B.data.status) {
|
|
8179
8179
|
case "ack":
|
|
8180
|
-
clearTimeout(
|
|
8180
|
+
clearTimeout(f), i = setTimeout(
|
|
8181
8181
|
() => {
|
|
8182
8182
|
l(new Error(
|
|
8183
8183
|
"timeout"
|
|
@@ -8192,7 +8192,7 @@ class dl {
|
|
|
8192
8192
|
clearTimeout(i), c(B.data.response);
|
|
8193
8193
|
break;
|
|
8194
8194
|
default:
|
|
8195
|
-
clearTimeout(
|
|
8195
|
+
clearTimeout(f), clearTimeout(i), l(new Error(
|
|
8196
8196
|
"invalid_response"
|
|
8197
8197
|
/* _MessageError.INVALID_RESPONSE */
|
|
8198
8198
|
));
|
|
@@ -8247,10 +8247,10 @@ function hl(t) {
|
|
|
8247
8247
|
* See the License for the specific language governing permissions and
|
|
8248
8248
|
* limitations under the License.
|
|
8249
8249
|
*/
|
|
8250
|
-
function
|
|
8250
|
+
function vi() {
|
|
8251
8251
|
return typeof de().WorkerGlobalScope < "u" && typeof de().importScripts == "function";
|
|
8252
8252
|
}
|
|
8253
|
-
async function
|
|
8253
|
+
async function ml() {
|
|
8254
8254
|
if (!(navigator != null && navigator.serviceWorker))
|
|
8255
8255
|
return null;
|
|
8256
8256
|
try {
|
|
@@ -8259,12 +8259,12 @@ async function fl() {
|
|
|
8259
8259
|
return null;
|
|
8260
8260
|
}
|
|
8261
8261
|
}
|
|
8262
|
-
function
|
|
8262
|
+
function fl() {
|
|
8263
8263
|
var t;
|
|
8264
8264
|
return ((t = navigator == null ? void 0 : navigator.serviceWorker) === null || t === void 0 ? void 0 : t.controller) || null;
|
|
8265
8265
|
}
|
|
8266
8266
|
function gl() {
|
|
8267
|
-
return
|
|
8267
|
+
return vi() ? self : null;
|
|
8268
8268
|
}
|
|
8269
8269
|
/**
|
|
8270
8270
|
* @license
|
|
@@ -8282,8 +8282,8 @@ function gl() {
|
|
|
8282
8282
|
* See the License for the specific language governing permissions and
|
|
8283
8283
|
* limitations under the License.
|
|
8284
8284
|
*/
|
|
8285
|
-
const
|
|
8286
|
-
class
|
|
8285
|
+
const wi = "firebaseLocalStorageDb", pl = 1, _t = "firebaseLocalStorage", Bi = "fbase_key";
|
|
8286
|
+
class Yt {
|
|
8287
8287
|
constructor(e) {
|
|
8288
8288
|
this.request = e;
|
|
8289
8289
|
}
|
|
@@ -8297,15 +8297,15 @@ class jt {
|
|
|
8297
8297
|
});
|
|
8298
8298
|
}
|
|
8299
8299
|
}
|
|
8300
|
-
function
|
|
8300
|
+
function cn(t, e) {
|
|
8301
8301
|
return t.transaction([_t], e ? "readwrite" : "readonly").objectStore(_t);
|
|
8302
8302
|
}
|
|
8303
8303
|
function yl() {
|
|
8304
|
-
const t = indexedDB.deleteDatabase(
|
|
8305
|
-
return new
|
|
8304
|
+
const t = indexedDB.deleteDatabase(wi);
|
|
8305
|
+
return new Yt(t).toPromise();
|
|
8306
8306
|
}
|
|
8307
|
-
function
|
|
8308
|
-
const t = indexedDB.open(
|
|
8307
|
+
function jn() {
|
|
8308
|
+
const t = indexedDB.open(wi, pl);
|
|
8309
8309
|
return new Promise((e, n) => {
|
|
8310
8310
|
t.addEventListener("error", () => {
|
|
8311
8311
|
n(t.error);
|
|
@@ -8318,26 +8318,26 @@ function Gn() {
|
|
|
8318
8318
|
}
|
|
8319
8319
|
}), t.addEventListener("success", async () => {
|
|
8320
8320
|
const r = t.result;
|
|
8321
|
-
r.objectStoreNames.contains(_t) ? e(r) : (r.close(), await yl(), e(await
|
|
8321
|
+
r.objectStoreNames.contains(_t) ? e(r) : (r.close(), await yl(), e(await jn()));
|
|
8322
8322
|
});
|
|
8323
8323
|
});
|
|
8324
8324
|
}
|
|
8325
8325
|
async function Ir(t, e, n) {
|
|
8326
|
-
const r =
|
|
8326
|
+
const r = cn(t, !0).put({
|
|
8327
8327
|
[Bi]: e,
|
|
8328
8328
|
value: n
|
|
8329
8329
|
});
|
|
8330
|
-
return new
|
|
8330
|
+
return new Yt(r).toPromise();
|
|
8331
8331
|
}
|
|
8332
8332
|
async function bl(t, e) {
|
|
8333
|
-
const n =
|
|
8333
|
+
const n = cn(t, !1).get(e), r = await new Yt(n).toPromise();
|
|
8334
8334
|
return r === void 0 ? null : r.value;
|
|
8335
8335
|
}
|
|
8336
8336
|
function Pr(t, e) {
|
|
8337
|
-
const n =
|
|
8338
|
-
return new
|
|
8337
|
+
const n = cn(t, !0).delete(e);
|
|
8338
|
+
return new Yt(n).toPromise();
|
|
8339
8339
|
}
|
|
8340
|
-
const
|
|
8340
|
+
const vl = 800, wl = 3;
|
|
8341
8341
|
class Di {
|
|
8342
8342
|
constructor() {
|
|
8343
8343
|
this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
|
|
@@ -8345,7 +8345,7 @@ class Di {
|
|
|
8345
8345
|
});
|
|
8346
8346
|
}
|
|
8347
8347
|
async _openDb() {
|
|
8348
|
-
return this.db ? this.db : (this.db = await
|
|
8348
|
+
return this.db ? this.db : (this.db = await jn(), this.db);
|
|
8349
8349
|
}
|
|
8350
8350
|
async _withRetries(e) {
|
|
8351
8351
|
let n = 0;
|
|
@@ -8354,7 +8354,7 @@ class Di {
|
|
|
8354
8354
|
const r = await this._openDb();
|
|
8355
8355
|
return await e(r);
|
|
8356
8356
|
} catch (r) {
|
|
8357
|
-
if (n++ >
|
|
8357
|
+
if (n++ > wl)
|
|
8358
8358
|
throw r;
|
|
8359
8359
|
this.db && (this.db.close(), this.db = void 0);
|
|
8360
8360
|
}
|
|
@@ -8364,13 +8364,13 @@ class Di {
|
|
|
8364
8364
|
* postMessage interface to send these events to the worker ourselves.
|
|
8365
8365
|
*/
|
|
8366
8366
|
async initializeServiceWorkerMessaging() {
|
|
8367
|
-
return
|
|
8367
|
+
return vi() ? this.initializeReceiver() : this.initializeSender();
|
|
8368
8368
|
}
|
|
8369
8369
|
/**
|
|
8370
8370
|
* As the worker we should listen to events from the main window.
|
|
8371
8371
|
*/
|
|
8372
8372
|
async initializeReceiver() {
|
|
8373
|
-
this.receiver =
|
|
8373
|
+
this.receiver = on._getInstance(gl()), this.receiver._subscribe("keyChanged", async (e, n) => ({
|
|
8374
8374
|
keyProcessed: (await this._poll()).includes(n.key)
|
|
8375
8375
|
})), this.receiver._subscribe("ping", async (e, n) => [
|
|
8376
8376
|
"keyChanged"
|
|
@@ -8386,7 +8386,7 @@ class Di {
|
|
|
8386
8386
|
*/
|
|
8387
8387
|
async initializeSender() {
|
|
8388
8388
|
var e, n;
|
|
8389
|
-
if (this.activeServiceWorker = await
|
|
8389
|
+
if (this.activeServiceWorker = await ml(), !this.activeServiceWorker)
|
|
8390
8390
|
return;
|
|
8391
8391
|
this.sender = new dl(this.activeServiceWorker);
|
|
8392
8392
|
const r = await this.sender._send(
|
|
@@ -8410,7 +8410,7 @@ class Di {
|
|
|
8410
8410
|
* @param key - Storage key which changed.
|
|
8411
8411
|
*/
|
|
8412
8412
|
async notifyServiceWorker(e) {
|
|
8413
|
-
if (!(!this.sender || !this.activeServiceWorker ||
|
|
8413
|
+
if (!(!this.sender || !this.activeServiceWorker || fl() !== this.activeServiceWorker))
|
|
8414
8414
|
try {
|
|
8415
8415
|
await this.sender._send(
|
|
8416
8416
|
"keyChanged",
|
|
@@ -8426,7 +8426,7 @@ class Di {
|
|
|
8426
8426
|
try {
|
|
8427
8427
|
if (!indexedDB)
|
|
8428
8428
|
return !1;
|
|
8429
|
-
const e = await
|
|
8429
|
+
const e = await jn();
|
|
8430
8430
|
return await Ir(e, Jt, "1"), await Pr(e, Jt), !0;
|
|
8431
8431
|
} catch {
|
|
8432
8432
|
}
|
|
@@ -8452,8 +8452,8 @@ class Di {
|
|
|
8452
8452
|
}
|
|
8453
8453
|
async _poll() {
|
|
8454
8454
|
const e = await this._withRetries((s) => {
|
|
8455
|
-
const i =
|
|
8456
|
-
return new
|
|
8455
|
+
const i = cn(s, !1).getAll();
|
|
8456
|
+
return new Yt(i).toPromise();
|
|
8457
8457
|
});
|
|
8458
8458
|
if (!e)
|
|
8459
8459
|
return [];
|
|
@@ -8475,7 +8475,7 @@ class Di {
|
|
|
8475
8475
|
s(n);
|
|
8476
8476
|
}
|
|
8477
8477
|
startPolling() {
|
|
8478
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
|
8478
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), vl);
|
|
8479
8479
|
}
|
|
8480
8480
|
stopPolling() {
|
|
8481
8481
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -8489,7 +8489,7 @@ class Di {
|
|
|
8489
8489
|
}
|
|
8490
8490
|
Di.type = "LOCAL";
|
|
8491
8491
|
const Bl = Di;
|
|
8492
|
-
new
|
|
8492
|
+
new Gt(3e4, 6e4);
|
|
8493
8493
|
/**
|
|
8494
8494
|
* @license
|
|
8495
8495
|
* Copyright 2021 Google LLC
|
|
@@ -8507,7 +8507,7 @@ new Tt(3e4, 6e4);
|
|
|
8507
8507
|
* limitations under the License.
|
|
8508
8508
|
*/
|
|
8509
8509
|
function Dl(t, e) {
|
|
8510
|
-
return e ?
|
|
8510
|
+
return e ? ve(e) : (M(
|
|
8511
8511
|
t._popupRedirectResolver,
|
|
8512
8512
|
t,
|
|
8513
8513
|
"argument-error"
|
|
@@ -8680,7 +8680,7 @@ class Ci {
|
|
|
8680
8680
|
* See the License for the specific language governing permissions and
|
|
8681
8681
|
* limitations under the License.
|
|
8682
8682
|
*/
|
|
8683
|
-
const Il = new
|
|
8683
|
+
const Il = new Gt(2e3, 1e4);
|
|
8684
8684
|
class _e extends Ci {
|
|
8685
8685
|
constructor(e, n, r, s, i) {
|
|
8686
8686
|
super(e, n, s, i), this.provider = r, this.authWindow = null, this.pollId = null, _e.currentPopupAction && _e.currentPopupAction.cancel(), _e.currentPopupAction = this;
|
|
@@ -8766,7 +8766,7 @@ _e.currentPopupAction = null;
|
|
|
8766
8766
|
* See the License for the specific language governing permissions and
|
|
8767
8767
|
* limitations under the License.
|
|
8768
8768
|
*/
|
|
8769
|
-
const Pl = "pendingRedirect",
|
|
8769
|
+
const Pl = "pendingRedirect", Qt = /* @__PURE__ */ new Map();
|
|
8770
8770
|
class Ol extends Ci {
|
|
8771
8771
|
constructor(e, n, r = !1) {
|
|
8772
8772
|
super(e, [
|
|
@@ -8782,7 +8782,7 @@ class Ol extends Ci {
|
|
|
8782
8782
|
* just return it.
|
|
8783
8783
|
*/
|
|
8784
8784
|
async execute() {
|
|
8785
|
-
let e =
|
|
8785
|
+
let e = Qt.get(this.auth._key());
|
|
8786
8786
|
if (!e) {
|
|
8787
8787
|
try {
|
|
8788
8788
|
const r = await Tl(this.resolver, this.auth) ? await super.execute() : null;
|
|
@@ -8790,9 +8790,9 @@ class Ol extends Ci {
|
|
|
8790
8790
|
} catch (n) {
|
|
8791
8791
|
e = () => Promise.reject(n);
|
|
8792
8792
|
}
|
|
8793
|
-
|
|
8793
|
+
Qt.set(this.auth._key(), e);
|
|
8794
8794
|
}
|
|
8795
|
-
return this.bypassAuthState ||
|
|
8795
|
+
return this.bypassAuthState || Qt.set(this.auth._key(), () => Promise.resolve(null)), e();
|
|
8796
8796
|
}
|
|
8797
8797
|
async onAuthEvent(e) {
|
|
8798
8798
|
if (e.type === "signInViaRedirect")
|
|
@@ -8821,18 +8821,18 @@ async function Tl(t, e) {
|
|
|
8821
8821
|
return await r._remove(n), s;
|
|
8822
8822
|
}
|
|
8823
8823
|
function Gl(t, e) {
|
|
8824
|
-
|
|
8824
|
+
Qt.set(t._key(), e);
|
|
8825
8825
|
}
|
|
8826
8826
|
function jl(t) {
|
|
8827
|
-
return
|
|
8827
|
+
return ve(t._redirectPersistence);
|
|
8828
8828
|
}
|
|
8829
8829
|
function Yl(t) {
|
|
8830
|
-
return
|
|
8830
|
+
return Ht(Pl, t.config.apiKey, t.name);
|
|
8831
8831
|
}
|
|
8832
8832
|
async function Vl(t, e, n = !1) {
|
|
8833
8833
|
if (pe(t.app))
|
|
8834
8834
|
return Promise.reject(Re(t));
|
|
8835
|
-
const r =
|
|
8835
|
+
const r = an(t), s = Dl(r, e), a = await new Ol(r, s, n).execute();
|
|
8836
8836
|
return a && !n && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
|
8837
8837
|
}
|
|
8838
8838
|
/**
|
|
@@ -8924,7 +8924,7 @@ function kl(t) {
|
|
|
8924
8924
|
* limitations under the License.
|
|
8925
8925
|
*/
|
|
8926
8926
|
async function Rl(t, e = {}) {
|
|
8927
|
-
return
|
|
8927
|
+
return mt(t, "GET", "/v1/projects", e);
|
|
8928
8928
|
}
|
|
8929
8929
|
/**
|
|
8930
8930
|
* @license
|
|
@@ -8960,7 +8960,7 @@ async function Hl(t) {
|
|
|
8960
8960
|
);
|
|
8961
8961
|
}
|
|
8962
8962
|
function Ql(t) {
|
|
8963
|
-
const e =
|
|
8963
|
+
const e = Tn(), { protocol: n, hostname: r } = new URL(e);
|
|
8964
8964
|
if (t.startsWith("chrome-extension://")) {
|
|
8965
8965
|
const a = new URL(t);
|
|
8966
8966
|
return a.hostname === "" && r === "" ? n === "chrome-extension:" && t.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : n === "chrome-extension:" && a.hostname === r;
|
|
@@ -8988,7 +8988,7 @@ function Ql(t) {
|
|
|
8988
8988
|
* See the License for the specific language governing permissions and
|
|
8989
8989
|
* limitations under the License.
|
|
8990
8990
|
*/
|
|
8991
|
-
const Xl = new
|
|
8991
|
+
const Xl = new Gt(3e4, 6e4);
|
|
8992
8992
|
function Tr() {
|
|
8993
8993
|
const t = de().___jsl;
|
|
8994
8994
|
if (t != null && t.H) {
|
|
@@ -9031,12 +9031,12 @@ function Sl(t) {
|
|
|
9031
9031
|
}, Wu(`${zu()}?onload=${c}`).catch((l) => n(l));
|
|
9032
9032
|
}
|
|
9033
9033
|
}).catch((e) => {
|
|
9034
|
-
throw
|
|
9034
|
+
throw Xt = null, e;
|
|
9035
9035
|
});
|
|
9036
9036
|
}
|
|
9037
|
-
let
|
|
9037
|
+
let Xt = null;
|
|
9038
9038
|
function Ul(t) {
|
|
9039
|
-
return
|
|
9039
|
+
return Xt = Xt || Sl(t), Xt;
|
|
9040
9040
|
}
|
|
9041
9041
|
/**
|
|
9042
9042
|
* @license
|
|
@@ -9054,7 +9054,7 @@ function Ul(t) {
|
|
|
9054
9054
|
* See the License for the specific language governing permissions and
|
|
9055
9055
|
* limitations under the License.
|
|
9056
9056
|
*/
|
|
9057
|
-
const Wl = new
|
|
9057
|
+
const Wl = new Gt(5e3, 15e3), zl = "__/auth/iframe", Zl = "emulator/auth/iframe", Ll = {
|
|
9058
9058
|
style: {
|
|
9059
9059
|
position: "absolute",
|
|
9060
9060
|
top: "-100px",
|
|
@@ -9080,11 +9080,11 @@ function Jl(t) {
|
|
|
9080
9080
|
const n = e.emulator ? Zn(e, Zl) : `https://${t.config.authDomain}/${zl}`, r = {
|
|
9081
9081
|
apiKey: e.apiKey,
|
|
9082
9082
|
appName: t.name,
|
|
9083
|
-
v:
|
|
9083
|
+
v: Tt
|
|
9084
9084
|
}, s = Kl.get(t.config.apiHost);
|
|
9085
9085
|
s && (r.eid = s);
|
|
9086
9086
|
const i = t._getFrameworks();
|
|
9087
|
-
return i.length && (r.fw = i.join(",")), `${n}?${
|
|
9087
|
+
return i.length && (r.fw = i.join(",")), `${n}?${Ot(r).slice(1)}`;
|
|
9088
9088
|
}
|
|
9089
9089
|
async function _l(t) {
|
|
9090
9090
|
const e = await Ul(t), n = de().gapi;
|
|
@@ -9163,10 +9163,10 @@ function sA(t, e, n, r = eA, s = tA) {
|
|
|
9163
9163
|
left: a
|
|
9164
9164
|
}), A = K().toLowerCase();
|
|
9165
9165
|
n && (c = ii(A) ? nA : n), ri(A) && (e = e || rA, l.scrollbars = "yes");
|
|
9166
|
-
const
|
|
9166
|
+
const f = Object.entries(l).reduce((B, [w, O]) => `${B}${w}=${O},`, "");
|
|
9167
9167
|
if (Ru(A) && c !== "_self")
|
|
9168
9168
|
return iA(e || "", c), new Gr(null);
|
|
9169
|
-
const p = window.open(e || "", c,
|
|
9169
|
+
const p = window.open(e || "", c, f);
|
|
9170
9170
|
M(
|
|
9171
9171
|
p,
|
|
9172
9172
|
t,
|
|
@@ -9219,24 +9219,24 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9219
9219
|
appName: t.name,
|
|
9220
9220
|
authType: n,
|
|
9221
9221
|
redirectUrl: r,
|
|
9222
|
-
v:
|
|
9222
|
+
v: Tt,
|
|
9223
9223
|
eventId: s
|
|
9224
9224
|
};
|
|
9225
|
-
if (e instanceof
|
|
9225
|
+
if (e instanceof mi) {
|
|
9226
9226
|
e.setDefaultLanguage(t.languageCode), a.providerId = e.providerId || "", cc(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
|
|
9227
|
-
for (const [
|
|
9228
|
-
a[
|
|
9227
|
+
for (const [f, p] of Object.entries({}))
|
|
9228
|
+
a[f] = p;
|
|
9229
9229
|
}
|
|
9230
|
-
if (e instanceof
|
|
9231
|
-
const
|
|
9232
|
-
|
|
9230
|
+
if (e instanceof jt) {
|
|
9231
|
+
const f = e.getScopes().filter((p) => p !== "");
|
|
9232
|
+
f.length > 0 && (a.scopes = f.join(","));
|
|
9233
9233
|
}
|
|
9234
9234
|
t.tenantId && (a.tid = t.tenantId);
|
|
9235
9235
|
const c = a;
|
|
9236
|
-
for (const
|
|
9237
|
-
c[
|
|
9236
|
+
for (const f of Object.keys(c))
|
|
9237
|
+
c[f] === void 0 && delete c[f];
|
|
9238
9238
|
const l = await t._getAppCheckToken(), A = l ? `#${cA}=${encodeURIComponent(l)}` : "";
|
|
9239
|
-
return `${uA(t)}?${
|
|
9239
|
+
return `${uA(t)}?${Ot(c).slice(1)}${A}`;
|
|
9240
9240
|
}
|
|
9241
9241
|
function uA({ config: t }) {
|
|
9242
9242
|
return t.emulator ? Zn(t, oA) : `https://${t.authDomain}/${aA}`;
|
|
@@ -9257,7 +9257,7 @@ function uA({ config: t }) {
|
|
|
9257
9257
|
* See the License for the specific language governing permissions and
|
|
9258
9258
|
* limitations under the License.
|
|
9259
9259
|
*/
|
|
9260
|
-
const
|
|
9260
|
+
const bn = "webStorageSupport";
|
|
9261
9261
|
class lA {
|
|
9262
9262
|
constructor() {
|
|
9263
9263
|
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = bi, this._completeRedirectFn = Vl, this._overrideRedirectResult = Gl;
|
|
@@ -9267,12 +9267,12 @@ class lA {
|
|
|
9267
9267
|
async _openPopup(e, n, r, s) {
|
|
9268
9268
|
var i;
|
|
9269
9269
|
De((i = this.eventManagers[e._key()]) === null || i === void 0 ? void 0 : i.manager, "_initialize() not called before _openPopup()");
|
|
9270
|
-
const a = await jr(e, n, r,
|
|
9270
|
+
const a = await jr(e, n, r, Tn(), s);
|
|
9271
9271
|
return sA(e, a, _n());
|
|
9272
9272
|
}
|
|
9273
9273
|
async _openRedirect(e, n, r, s) {
|
|
9274
9274
|
await this._originValidation(e);
|
|
9275
|
-
const i = await jr(e, n, r,
|
|
9275
|
+
const i = await jr(e, n, r, Tn(), s);
|
|
9276
9276
|
return hl(i), new Promise(() => {
|
|
9277
9277
|
});
|
|
9278
9278
|
}
|
|
@@ -9300,9 +9300,9 @@ class lA {
|
|
|
9300
9300
|
}), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = n, r;
|
|
9301
9301
|
}
|
|
9302
9302
|
_isIframeWebStorageSupported(e, n) {
|
|
9303
|
-
this.iframes[e._key()].send(
|
|
9303
|
+
this.iframes[e._key()].send(bn, { type: bn }, (s) => {
|
|
9304
9304
|
var i;
|
|
9305
|
-
const a = (i = s == null ? void 0 : s[0]) === null || i === void 0 ? void 0 : i[
|
|
9305
|
+
const a = (i = s == null ? void 0 : s[0]) === null || i === void 0 ? void 0 : i[bn];
|
|
9306
9306
|
a !== void 0 && n(!!a), Be(
|
|
9307
9307
|
e,
|
|
9308
9308
|
"internal-error"
|
|
@@ -9403,8 +9403,8 @@ function hA(t) {
|
|
|
9403
9403
|
return;
|
|
9404
9404
|
}
|
|
9405
9405
|
}
|
|
9406
|
-
function
|
|
9407
|
-
|
|
9406
|
+
function mA(t) {
|
|
9407
|
+
vt(new dt(
|
|
9408
9408
|
"auth",
|
|
9409
9409
|
(e, { options: n }) => {
|
|
9410
9410
|
const r = e.getProvider("app").getImmediate(), s = e.getProvider("heartbeat"), i = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
|
|
@@ -9430,10 +9430,10 @@ function fA(t) {
|
|
|
9430
9430
|
"auth-internal"
|
|
9431
9431
|
/* _ComponentName.AUTH_INTERNAL */
|
|
9432
9432
|
).initialize();
|
|
9433
|
-
})),
|
|
9433
|
+
})), vt(new dt(
|
|
9434
9434
|
"auth-internal",
|
|
9435
9435
|
(e) => {
|
|
9436
|
-
const n =
|
|
9436
|
+
const n = an(e.getProvider(
|
|
9437
9437
|
"auth"
|
|
9438
9438
|
/* _ComponentName.AUTH */
|
|
9439
9439
|
).getImmediate());
|
|
@@ -9462,7 +9462,7 @@ function fA(t) {
|
|
|
9462
9462
|
* See the License for the specific language governing permissions and
|
|
9463
9463
|
* limitations under the License.
|
|
9464
9464
|
*/
|
|
9465
|
-
const
|
|
9465
|
+
const fA = 5 * 60, gA = qs("authIdTokenMaxAge") || fA;
|
|
9466
9466
|
let xr = null;
|
|
9467
9467
|
const pA = (t) => async (e) => {
|
|
9468
9468
|
const n = e && await e.getIdTokenResult(), r = n && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(n.issuedAtTime)) / 1e3;
|
|
@@ -9519,11 +9519,11 @@ Uu({
|
|
|
9519
9519
|
recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
|
|
9520
9520
|
recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
|
|
9521
9521
|
});
|
|
9522
|
-
|
|
9522
|
+
mA(
|
|
9523
9523
|
"Browser"
|
|
9524
9524
|
/* ClientPlatform.BROWSER */
|
|
9525
9525
|
);
|
|
9526
|
-
var
|
|
9526
|
+
var un = class {
|
|
9527
9527
|
constructor() {
|
|
9528
9528
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
9529
9529
|
}
|
|
@@ -9539,7 +9539,7 @@ var cn = class {
|
|
|
9539
9539
|
}
|
|
9540
9540
|
onUnsubscribe() {
|
|
9541
9541
|
}
|
|
9542
|
-
}, He, Ge, rt, Xr,
|
|
9542
|
+
}, He, Ge, rt, Xr, vA = (Xr = class extends un {
|
|
9543
9543
|
constructor() {
|
|
9544
9544
|
super();
|
|
9545
9545
|
G(this, He);
|
|
@@ -9580,7 +9580,7 @@ var cn = class {
|
|
|
9580
9580
|
var e;
|
|
9581
9581
|
return typeof h(this, He) == "boolean" ? h(this, He) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
9582
9582
|
}
|
|
9583
|
-
}, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new
|
|
9583
|
+
}, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new vA(), wA = {
|
|
9584
9584
|
// We need the wrapper function syntax below instead of direct references to
|
|
9585
9585
|
// global setTimeout etc.
|
|
9586
9586
|
//
|
|
@@ -9604,7 +9604,7 @@ var cn = class {
|
|
|
9604
9604
|
//
|
|
9605
9605
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
|
9606
9606
|
// this class is unsafe internally to allow for extension.
|
|
9607
|
-
G(this, oe,
|
|
9607
|
+
G(this, oe, wA);
|
|
9608
9608
|
G(this, Qe, !1);
|
|
9609
9609
|
}
|
|
9610
9610
|
setTimeoutProvider(t) {
|
|
@@ -9625,7 +9625,7 @@ var cn = class {
|
|
|
9625
9625
|
clearInterval(t) {
|
|
9626
9626
|
h(this, oe).clearInterval(t);
|
|
9627
9627
|
}
|
|
9628
|
-
}, oe = new WeakMap(), Qe = new WeakMap(), Sr),
|
|
9628
|
+
}, oe = new WeakMap(), Qe = new WeakMap(), Sr), Yn = new BA();
|
|
9629
9629
|
function DA(t) {
|
|
9630
9630
|
setTimeout(t, 0);
|
|
9631
9631
|
}
|
|
@@ -9641,7 +9641,7 @@ function MA(t) {
|
|
|
9641
9641
|
function IA(t, e) {
|
|
9642
9642
|
return Math.max(t + (e || 0) - Date.now(), 0);
|
|
9643
9643
|
}
|
|
9644
|
-
function
|
|
9644
|
+
function Vn(t, e) {
|
|
9645
9645
|
return typeof t == "function" ? t(e) : t;
|
|
9646
9646
|
}
|
|
9647
9647
|
function PA(t, e) {
|
|
@@ -9660,7 +9660,7 @@ function Fr(t, e) {
|
|
|
9660
9660
|
if (r) {
|
|
9661
9661
|
if (e.queryHash !== er(a, e.options))
|
|
9662
9662
|
return !1;
|
|
9663
|
-
} else if (!
|
|
9663
|
+
} else if (!Ct(e.queryKey, a))
|
|
9664
9664
|
return !1;
|
|
9665
9665
|
}
|
|
9666
9666
|
if (n !== "all") {
|
|
@@ -9676,50 +9676,50 @@ function kr(t, e) {
|
|
|
9676
9676
|
if (!e.options.mutationKey)
|
|
9677
9677
|
return !1;
|
|
9678
9678
|
if (n) {
|
|
9679
|
-
if (
|
|
9679
|
+
if (Dt(e.options.mutationKey) !== Dt(i))
|
|
9680
9680
|
return !1;
|
|
9681
|
-
} else if (!
|
|
9681
|
+
} else if (!Ct(e.options.mutationKey, i))
|
|
9682
9682
|
return !1;
|
|
9683
9683
|
}
|
|
9684
9684
|
return !(r && e.state.status !== r || s && !s(e));
|
|
9685
9685
|
}
|
|
9686
9686
|
function er(t, e) {
|
|
9687
|
-
return ((e == null ? void 0 : e.queryKeyHashFn) ||
|
|
9687
|
+
return ((e == null ? void 0 : e.queryKeyHashFn) || Dt)(t);
|
|
9688
9688
|
}
|
|
9689
|
-
function
|
|
9689
|
+
function Dt(t) {
|
|
9690
9690
|
return JSON.stringify(
|
|
9691
9691
|
t,
|
|
9692
|
-
(e, n) =>
|
|
9692
|
+
(e, n) => Fn(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
|
|
9693
9693
|
);
|
|
9694
9694
|
}
|
|
9695
|
-
function
|
|
9696
|
-
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) =>
|
|
9695
|
+
function Ct(t, e) {
|
|
9696
|
+
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) => Ct(t[n], e[n])) : !1;
|
|
9697
9697
|
}
|
|
9698
9698
|
var OA = Object.prototype.hasOwnProperty;
|
|
9699
|
-
function
|
|
9699
|
+
function xn(t, e, n = 0) {
|
|
9700
9700
|
if (t === e)
|
|
9701
9701
|
return t;
|
|
9702
9702
|
if (n > 500) return e;
|
|
9703
9703
|
const r = Rr(t) && Rr(e);
|
|
9704
|
-
if (!r && !(
|
|
9704
|
+
if (!r && !(Fn(t) && Fn(e))) return e;
|
|
9705
9705
|
const i = (r ? t : Object.keys(t)).length, a = r ? e : Object.keys(e), c = a.length, l = r ? new Array(c) : {};
|
|
9706
9706
|
let A = 0;
|
|
9707
|
-
for (let
|
|
9708
|
-
const p = r ?
|
|
9709
|
-
if (B ===
|
|
9710
|
-
l[p] = B, (r ?
|
|
9707
|
+
for (let f = 0; f < c; f++) {
|
|
9708
|
+
const p = r ? f : a[f], B = t[p], w = e[p];
|
|
9709
|
+
if (B === w) {
|
|
9710
|
+
l[p] = B, (r ? f < i : OA.call(t, p)) && A++;
|
|
9711
9711
|
continue;
|
|
9712
9712
|
}
|
|
9713
|
-
if (B === null ||
|
|
9714
|
-
l[p] =
|
|
9713
|
+
if (B === null || w === null || typeof B != "object" || typeof w != "object") {
|
|
9714
|
+
l[p] = w;
|
|
9715
9715
|
continue;
|
|
9716
9716
|
}
|
|
9717
|
-
const O =
|
|
9717
|
+
const O = xn(B, w, n + 1);
|
|
9718
9718
|
l[p] = O, O === B && A++;
|
|
9719
9719
|
}
|
|
9720
9720
|
return i === c && A === i ? t : l;
|
|
9721
9721
|
}
|
|
9722
|
-
function
|
|
9722
|
+
function Ad(t, e) {
|
|
9723
9723
|
if (!e || Object.keys(t).length !== Object.keys(e).length)
|
|
9724
9724
|
return !1;
|
|
9725
9725
|
for (const n in t)
|
|
@@ -9730,7 +9730,7 @@ function ld(t, e) {
|
|
|
9730
9730
|
function Rr(t) {
|
|
9731
9731
|
return Array.isArray(t) && t.length === Object.keys(t).length;
|
|
9732
9732
|
}
|
|
9733
|
-
function
|
|
9733
|
+
function Fn(t) {
|
|
9734
9734
|
if (!qr(t))
|
|
9735
9735
|
return !1;
|
|
9736
9736
|
const e = t.constructor;
|
|
@@ -9744,7 +9744,7 @@ function qr(t) {
|
|
|
9744
9744
|
}
|
|
9745
9745
|
function TA(t) {
|
|
9746
9746
|
return new Promise((e) => {
|
|
9747
|
-
|
|
9747
|
+
Yn.setTimeout(e, t);
|
|
9748
9748
|
});
|
|
9749
9749
|
}
|
|
9750
9750
|
function GA(t, e, n) {
|
|
@@ -9753,17 +9753,17 @@ function GA(t, e, n) {
|
|
|
9753
9753
|
if (n.structuralSharing !== !1) {
|
|
9754
9754
|
if (process.env.NODE_ENV !== "production")
|
|
9755
9755
|
try {
|
|
9756
|
-
return
|
|
9756
|
+
return xn(t, e);
|
|
9757
9757
|
} catch (r) {
|
|
9758
9758
|
throw console.error(
|
|
9759
9759
|
`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`
|
|
9760
9760
|
), r;
|
|
9761
9761
|
}
|
|
9762
|
-
return
|
|
9762
|
+
return xn(t, e);
|
|
9763
9763
|
}
|
|
9764
9764
|
return e;
|
|
9765
9765
|
}
|
|
9766
|
-
function
|
|
9766
|
+
function dd(t) {
|
|
9767
9767
|
return t;
|
|
9768
9768
|
}
|
|
9769
9769
|
function jA(t, e, n = 0) {
|
|
@@ -9780,7 +9780,7 @@ function Ii(t, e) {
|
|
|
9780
9780
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
|
|
9781
9781
|
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === $t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
9782
9782
|
}
|
|
9783
|
-
function
|
|
9783
|
+
function hd(t, e) {
|
|
9784
9784
|
return typeof t == "function" ? t(...e) : !!t;
|
|
9785
9785
|
}
|
|
9786
9786
|
function VA(t, e, n) {
|
|
@@ -9889,7 +9889,7 @@ function kA() {
|
|
|
9889
9889
|
}
|
|
9890
9890
|
};
|
|
9891
9891
|
}
|
|
9892
|
-
var L = kA(), st, je, it, Ur, RA = (Ur = class extends
|
|
9892
|
+
var L = kA(), st, je, it, Ur, RA = (Ur = class extends un {
|
|
9893
9893
|
constructor() {
|
|
9894
9894
|
super();
|
|
9895
9895
|
G(this, st, !0);
|
|
@@ -9930,7 +9930,7 @@ function qA(t) {
|
|
|
9930
9930
|
function Oi(t) {
|
|
9931
9931
|
return (t ?? "online") === "online" ? en.isOnline() : !0;
|
|
9932
9932
|
}
|
|
9933
|
-
var
|
|
9933
|
+
var kn = class extends Error {
|
|
9934
9934
|
constructor(t) {
|
|
9935
9935
|
super("CancelledError"), this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
|
|
9936
9936
|
}
|
|
@@ -9940,18 +9940,18 @@ function Ti(t) {
|
|
|
9940
9940
|
const s = xA(), i = () => s.status !== "pending", a = (I) => {
|
|
9941
9941
|
var V;
|
|
9942
9942
|
if (!i()) {
|
|
9943
|
-
const R = new
|
|
9943
|
+
const R = new kn(I);
|
|
9944
9944
|
B(R), (V = t.onCancel) == null || V.call(t, R);
|
|
9945
9945
|
}
|
|
9946
9946
|
}, c = () => {
|
|
9947
9947
|
e = !0;
|
|
9948
9948
|
}, l = () => {
|
|
9949
9949
|
e = !1;
|
|
9950
|
-
}, A = () => Mi.isFocused() && (t.networkMode === "always" || en.isOnline()) && t.canRun(),
|
|
9950
|
+
}, A = () => Mi.isFocused() && (t.networkMode === "always" || en.isOnline()) && t.canRun(), f = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
|
|
9951
9951
|
i() || (r == null || r(), s.resolve(I));
|
|
9952
9952
|
}, B = (I) => {
|
|
9953
9953
|
i() || (r == null || r(), s.reject(I));
|
|
9954
|
-
},
|
|
9954
|
+
}, w = () => new Promise((I) => {
|
|
9955
9955
|
var V;
|
|
9956
9956
|
r = (R) => {
|
|
9957
9957
|
(i() || A()) && I(R);
|
|
@@ -9973,12 +9973,12 @@ function Ti(t) {
|
|
|
9973
9973
|
var U;
|
|
9974
9974
|
if (i())
|
|
9975
9975
|
return;
|
|
9976
|
-
const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA,
|
|
9976
|
+
const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA, v = typeof Y == "function" ? Y(n, R) : Y, H = Q === !0 || typeof Q == "number" && n < Q || typeof Q == "function" && Q(n, R);
|
|
9977
9977
|
if (e || !H) {
|
|
9978
9978
|
B(R);
|
|
9979
9979
|
return;
|
|
9980
9980
|
}
|
|
9981
|
-
n++, (U = t.onFail) == null || U.call(t, n, R), TA(
|
|
9981
|
+
n++, (U = t.onFail) == null || U.call(t, n, R), TA(v).then(() => A() ? void 0 : w()).then(() => {
|
|
9982
9982
|
e ? B(R) : O();
|
|
9983
9983
|
});
|
|
9984
9984
|
});
|
|
@@ -9990,8 +9990,8 @@ function Ti(t) {
|
|
|
9990
9990
|
continue: () => (r == null || r(), s),
|
|
9991
9991
|
cancelRetry: c,
|
|
9992
9992
|
continueRetry: l,
|
|
9993
|
-
canStart:
|
|
9994
|
-
start: () => (
|
|
9993
|
+
canStart: f,
|
|
9994
|
+
start: () => (f() ? O() : w().then(O), s)
|
|
9995
9995
|
};
|
|
9996
9996
|
}
|
|
9997
9997
|
var Xe, Wr, Gi = (Wr = class {
|
|
@@ -10002,7 +10002,7 @@ var Xe, Wr, Gi = (Wr = class {
|
|
|
10002
10002
|
this.clearGcTimeout();
|
|
10003
10003
|
}
|
|
10004
10004
|
scheduleGc() {
|
|
10005
|
-
this.clearGcTimeout(), MA(this.gcTime) && D(this, Xe,
|
|
10005
|
+
this.clearGcTimeout(), MA(this.gcTime) && D(this, Xe, Yn.setTimeout(() => {
|
|
10006
10006
|
this.optionalRemove();
|
|
10007
10007
|
}, this.gcTime));
|
|
10008
10008
|
}
|
|
@@ -10013,14 +10013,14 @@ var Xe, Wr, Gi = (Wr = class {
|
|
|
10013
10013
|
);
|
|
10014
10014
|
}
|
|
10015
10015
|
clearGcTimeout() {
|
|
10016
|
-
h(this, Xe) !== void 0 && (
|
|
10016
|
+
h(this, Xe) !== void 0 && (Yn.clearTimeout(h(this, Xe)), D(this, Xe, void 0));
|
|
10017
10017
|
}
|
|
10018
10018
|
}, Xe = new WeakMap(), Wr);
|
|
10019
10019
|
function NA(t) {
|
|
10020
10020
|
return {
|
|
10021
10021
|
onFetch: (e, n) => {
|
|
10022
|
-
var
|
|
10023
|
-
const r = e.options, s = (B = (p = (
|
|
10022
|
+
var f, p, B, w, O;
|
|
10023
|
+
const r = e.options, s = (B = (p = (f = e.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : p.fetchMore) == null ? void 0 : B.direction, i = ((w = e.state.data) == null ? void 0 : w.pages) || [], a = ((O = e.state.data) == null ? void 0 : O.pageParams) || [];
|
|
10024
10024
|
let c = { pages: [], pageParams: [] }, l = 0;
|
|
10025
10025
|
const A = async () => {
|
|
10026
10026
|
let I = !1;
|
|
@@ -10030,39 +10030,39 @@ function NA(t) {
|
|
|
10030
10030
|
() => e.signal,
|
|
10031
10031
|
() => I = !0
|
|
10032
10032
|
);
|
|
10033
|
-
}, R = Ii(e.options, e.fetchOptions), Q = async (Y,
|
|
10033
|
+
}, R = Ii(e.options, e.fetchOptions), Q = async (Y, v, H) => {
|
|
10034
10034
|
if (I)
|
|
10035
10035
|
return Promise.reject(e.signal.reason);
|
|
10036
|
-
if (
|
|
10036
|
+
if (v == null && Y.pages.length)
|
|
10037
10037
|
return Promise.resolve(Y);
|
|
10038
10038
|
const ee = (() => {
|
|
10039
10039
|
const g = {
|
|
10040
10040
|
client: e.client,
|
|
10041
10041
|
queryKey: e.queryKey,
|
|
10042
|
-
pageParam:
|
|
10042
|
+
pageParam: v,
|
|
10043
10043
|
direction: H ? "backward" : "forward",
|
|
10044
10044
|
meta: e.options.meta
|
|
10045
10045
|
};
|
|
10046
10046
|
return V(g), g;
|
|
10047
|
-
})(), q = await R(ee), { maxPages: u } = e.options,
|
|
10047
|
+
})(), q = await R(ee), { maxPages: u } = e.options, m = H ? YA : jA;
|
|
10048
10048
|
return {
|
|
10049
|
-
pages:
|
|
10050
|
-
pageParams:
|
|
10049
|
+
pages: m(Y.pages, q, u),
|
|
10050
|
+
pageParams: m(Y.pageParams, v, u)
|
|
10051
10051
|
};
|
|
10052
10052
|
};
|
|
10053
10053
|
if (s && i.length) {
|
|
10054
|
-
const Y = s === "backward",
|
|
10054
|
+
const Y = s === "backward", v = Y ? HA : Nr, H = {
|
|
10055
10055
|
pages: i,
|
|
10056
10056
|
pageParams: a
|
|
10057
|
-
}, U =
|
|
10057
|
+
}, U = v(r, H);
|
|
10058
10058
|
c = await Q(H, U, Y);
|
|
10059
10059
|
} else {
|
|
10060
10060
|
const Y = t ?? i.length;
|
|
10061
10061
|
do {
|
|
10062
|
-
const
|
|
10063
|
-
if (l > 0 &&
|
|
10062
|
+
const v = l === 0 ? a[0] ?? r.initialPageParam : Nr(r, c);
|
|
10063
|
+
if (l > 0 && v == null)
|
|
10064
10064
|
break;
|
|
10065
|
-
c = await Q(c,
|
|
10065
|
+
c = await Q(c, v), l++;
|
|
10066
10066
|
} while (l < Y);
|
|
10067
10067
|
}
|
|
10068
10068
|
return c;
|
|
@@ -10097,7 +10097,7 @@ function HA(t, { pages: e, pageParams: n }) {
|
|
|
10097
10097
|
var r;
|
|
10098
10098
|
return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, n[0], n) : void 0;
|
|
10099
10099
|
}
|
|
10100
|
-
var at, Se, ot, re, Ue, S,
|
|
10100
|
+
var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
10101
10101
|
constructor(e) {
|
|
10102
10102
|
super();
|
|
10103
10103
|
G(this, ne);
|
|
@@ -10107,9 +10107,9 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10107
10107
|
G(this, re);
|
|
10108
10108
|
G(this, Ue);
|
|
10109
10109
|
G(this, S);
|
|
10110
|
-
G(this,
|
|
10110
|
+
G(this, Et);
|
|
10111
10111
|
G(this, We);
|
|
10112
|
-
D(this, We, !1), D(this,
|
|
10112
|
+
D(this, We, !1), D(this, Et, e.defaultOptions), this.setOptions(e.options), this.observers = [], D(this, Ue, e.client), D(this, re, h(this, Ue).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, D(this, Se, Qr(this.options)), this.state = e.state ?? h(this, Se), this.scheduleGc();
|
|
10113
10113
|
}
|
|
10114
10114
|
get meta() {
|
|
10115
10115
|
return this.options.meta;
|
|
@@ -10122,7 +10122,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10122
10122
|
return (e = h(this, S)) == null ? void 0 : e.promise;
|
|
10123
10123
|
}
|
|
10124
10124
|
setOptions(e) {
|
|
10125
|
-
if (this.options = { ...h(this,
|
|
10125
|
+
if (this.options = { ...h(this, Et), ...e }, e != null && e._type && D(this, at, e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
10126
10126
|
const n = Qr(this.options);
|
|
10127
10127
|
n.data !== void 0 && (this.setState(
|
|
10128
10128
|
Hr(n.data, n.dataUpdatedAt)
|
|
@@ -10134,7 +10134,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10134
10134
|
}
|
|
10135
10135
|
setData(e, n) {
|
|
10136
10136
|
const r = GA(this.state.data, e, this.options);
|
|
10137
|
-
return z(this, ne,
|
|
10137
|
+
return z(this, ne, me).call(this, {
|
|
10138
10138
|
data: r,
|
|
10139
10139
|
type: "success",
|
|
10140
10140
|
dataUpdatedAt: n == null ? void 0 : n.updatedAt,
|
|
@@ -10142,7 +10142,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10142
10142
|
}), r;
|
|
10143
10143
|
}
|
|
10144
10144
|
setState(e) {
|
|
10145
|
-
z(this, ne,
|
|
10145
|
+
z(this, ne, me).call(this, { type: "setState", state: e });
|
|
10146
10146
|
}
|
|
10147
10147
|
cancel(e) {
|
|
10148
10148
|
var r, s;
|
|
@@ -10171,7 +10171,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10171
10171
|
}
|
|
10172
10172
|
isStatic() {
|
|
10173
10173
|
return this.getObserversCount() > 0 ? this.observers.some(
|
|
10174
|
-
(e) =>
|
|
10174
|
+
(e) => Vn(e.options.staleTime, this) === "static"
|
|
10175
10175
|
) : !1;
|
|
10176
10176
|
}
|
|
10177
10177
|
isStale() {
|
|
@@ -10202,10 +10202,10 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10202
10202
|
return this.observers.length;
|
|
10203
10203
|
}
|
|
10204
10204
|
invalidate() {
|
|
10205
|
-
this.state.isInvalidated || z(this, ne,
|
|
10205
|
+
this.state.isInvalidated || z(this, ne, me).call(this, { type: "invalidate" });
|
|
10206
10206
|
}
|
|
10207
10207
|
async fetch(e, n) {
|
|
10208
|
-
var A,
|
|
10208
|
+
var A, f, p, B, w, O, I, V, R, Q, Y;
|
|
10209
10209
|
if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
|
|
10210
10210
|
// re-start the fetch; there is a chance that the query is still in a
|
|
10211
10211
|
// pending state when that happens
|
|
@@ -10216,19 +10216,19 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10216
10216
|
return h(this, S).continueRetry(), h(this, S).promise;
|
|
10217
10217
|
}
|
|
10218
10218
|
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
10219
|
-
const
|
|
10220
|
-
|
|
10219
|
+
const v = this.observers.find((H) => H.options.queryFn);
|
|
10220
|
+
v && this.setOptions(v.options);
|
|
10221
10221
|
}
|
|
10222
10222
|
process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
|
|
10223
10223
|
"As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"
|
|
10224
10224
|
));
|
|
10225
|
-
const r = new AbortController(), s = (
|
|
10226
|
-
Object.defineProperty(
|
|
10225
|
+
const r = new AbortController(), s = (v) => {
|
|
10226
|
+
Object.defineProperty(v, "signal", {
|
|
10227
10227
|
enumerable: !0,
|
|
10228
10228
|
get: () => (D(this, We, !0), r.signal)
|
|
10229
10229
|
});
|
|
10230
10230
|
}, i = () => {
|
|
10231
|
-
const
|
|
10231
|
+
const v = Ii(this.options, n), U = (() => {
|
|
10232
10232
|
const ee = {
|
|
10233
10233
|
client: h(this, Ue),
|
|
10234
10234
|
queryKey: this.queryKey,
|
|
@@ -10237,12 +10237,12 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10237
10237
|
return s(ee), ee;
|
|
10238
10238
|
})();
|
|
10239
10239
|
return D(this, We, !1), this.options.persister ? this.options.persister(
|
|
10240
|
-
|
|
10240
|
+
v,
|
|
10241
10241
|
U,
|
|
10242
10242
|
this
|
|
10243
|
-
) :
|
|
10243
|
+
) : v(U);
|
|
10244
10244
|
}, c = (() => {
|
|
10245
|
-
const
|
|
10245
|
+
const v = {
|
|
10246
10246
|
fetchOptions: n,
|
|
10247
10247
|
options: this.options,
|
|
10248
10248
|
queryKey: this.queryKey,
|
|
@@ -10250,27 +10250,27 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10250
10250
|
state: this.state,
|
|
10251
10251
|
fetchFn: i
|
|
10252
10252
|
};
|
|
10253
|
-
return s(
|
|
10253
|
+
return s(v), v;
|
|
10254
10254
|
})(), l = h(this, at) === "infinite" ? NA(
|
|
10255
10255
|
this.options.pages
|
|
10256
10256
|
) : this.options.behavior;
|
|
10257
|
-
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 !== ((f = c.fetchOptions) == null ? void 0 : f.meta)) && z(this, ne, me).call(this, { type: "fetch", meta: (p = c.fetchOptions) == null ? void 0 : p.meta }), D(this, S, Ti({
|
|
10258
10258
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
10259
10259
|
fn: c.fetchFn,
|
|
10260
|
-
onCancel: (
|
|
10261
|
-
|
|
10260
|
+
onCancel: (v) => {
|
|
10261
|
+
v instanceof kn && v.revert && this.setState({
|
|
10262
10262
|
...h(this, ot),
|
|
10263
10263
|
fetchStatus: "idle"
|
|
10264
10264
|
}), r.abort();
|
|
10265
10265
|
},
|
|
10266
|
-
onFail: (
|
|
10267
|
-
z(this, ne,
|
|
10266
|
+
onFail: (v, H) => {
|
|
10267
|
+
z(this, ne, me).call(this, { type: "failed", failureCount: v, error: H });
|
|
10268
10268
|
},
|
|
10269
10269
|
onPause: () => {
|
|
10270
|
-
z(this, ne,
|
|
10270
|
+
z(this, ne, me).call(this, { type: "pause" });
|
|
10271
10271
|
},
|
|
10272
10272
|
onContinue: () => {
|
|
10273
|
-
z(this, ne,
|
|
10273
|
+
z(this, ne, me).call(this, { type: "continue" });
|
|
10274
10274
|
},
|
|
10275
10275
|
retry: c.options.retry,
|
|
10276
10276
|
retryDelay: c.options.retryDelay,
|
|
@@ -10278,47 +10278,47 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10278
10278
|
canRun: () => !0
|
|
10279
10279
|
}));
|
|
10280
10280
|
try {
|
|
10281
|
-
const
|
|
10282
|
-
if (
|
|
10281
|
+
const v = await h(this, S).start();
|
|
10282
|
+
if (v === void 0)
|
|
10283
10283
|
throw process.env.NODE_ENV !== "production" && console.error(
|
|
10284
10284
|
`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
|
|
10285
10285
|
), new Error(`${this.queryHash} data is undefined`);
|
|
10286
|
-
return this.setData(
|
|
10286
|
+
return this.setData(v), (w = (B = h(this, re).config).onSuccess) == null || w.call(B, v, this), (I = (O = h(this, re).config).onSettled) == null || I.call(
|
|
10287
10287
|
O,
|
|
10288
|
-
|
|
10288
|
+
v,
|
|
10289
10289
|
this.state.error,
|
|
10290
10290
|
this
|
|
10291
|
-
),
|
|
10292
|
-
} catch (
|
|
10293
|
-
if (
|
|
10294
|
-
if (
|
|
10291
|
+
), v;
|
|
10292
|
+
} catch (v) {
|
|
10293
|
+
if (v instanceof kn) {
|
|
10294
|
+
if (v.silent)
|
|
10295
10295
|
return h(this, S).promise;
|
|
10296
|
-
if (
|
|
10296
|
+
if (v.revert) {
|
|
10297
10297
|
if (this.state.data === void 0)
|
|
10298
|
-
throw
|
|
10298
|
+
throw v;
|
|
10299
10299
|
return this.state.data;
|
|
10300
10300
|
}
|
|
10301
10301
|
}
|
|
10302
|
-
throw z(this, ne,
|
|
10302
|
+
throw z(this, ne, me).call(this, {
|
|
10303
10303
|
type: "error",
|
|
10304
|
-
error:
|
|
10304
|
+
error: v
|
|
10305
10305
|
}), (R = (V = h(this, re).config).onError) == null || R.call(
|
|
10306
10306
|
V,
|
|
10307
|
-
|
|
10307
|
+
v,
|
|
10308
10308
|
this
|
|
10309
10309
|
), (Y = (Q = h(this, re).config).onSettled) == null || Y.call(
|
|
10310
10310
|
Q,
|
|
10311
10311
|
this.state.data,
|
|
10312
|
-
|
|
10312
|
+
v,
|
|
10313
10313
|
this
|
|
10314
|
-
),
|
|
10314
|
+
), v;
|
|
10315
10315
|
} finally {
|
|
10316
10316
|
this.scheduleGc();
|
|
10317
10317
|
}
|
|
10318
10318
|
}
|
|
10319
|
-
}, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(),
|
|
10319
|
+
}, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(), Et = new WeakMap(), We = new WeakMap(), ne = new WeakSet(), ji = function() {
|
|
10320
10320
|
return this.state.fetchStatus === "paused" && this.state.status === "pending";
|
|
10321
|
-
},
|
|
10321
|
+
}, me = function(e) {
|
|
10322
10322
|
const n = (r) => {
|
|
10323
10323
|
switch (e.type) {
|
|
10324
10324
|
case "failed":
|
|
@@ -10425,15 +10425,15 @@ function Qr(t) {
|
|
|
10425
10425
|
fetchStatus: "idle"
|
|
10426
10426
|
};
|
|
10427
10427
|
}
|
|
10428
|
-
var
|
|
10428
|
+
var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
10429
10429
|
constructor(e) {
|
|
10430
10430
|
super();
|
|
10431
10431
|
G(this, ue);
|
|
10432
|
-
G(this,
|
|
10432
|
+
G(this, Mt);
|
|
10433
10433
|
G(this, ce);
|
|
10434
10434
|
G(this, Z);
|
|
10435
10435
|
G(this, ze);
|
|
10436
|
-
D(this,
|
|
10436
|
+
D(this, Mt, e.client), this.mutationId = e.mutationId, D(this, Z, e.mutationCache), D(this, ce, []), this.state = e.state || UA(), this.setOptions(e.options), this.scheduleGc();
|
|
10437
10437
|
}
|
|
10438
10438
|
setOptions(e) {
|
|
10439
10439
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -10464,11 +10464,11 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10464
10464
|
this.execute(this.state.variables);
|
|
10465
10465
|
}
|
|
10466
10466
|
async execute(e) {
|
|
10467
|
-
var a, c, l, A,
|
|
10467
|
+
var a, c, l, A, f, p, B, w, O, I, V, R, Q, Y, v, H, U, ee;
|
|
10468
10468
|
const n = () => {
|
|
10469
10469
|
z(this, ue, Me).call(this, { type: "continue" });
|
|
10470
10470
|
}, r = {
|
|
10471
|
-
client: h(this,
|
|
10471
|
+
client: h(this, Mt),
|
|
10472
10472
|
meta: this.options.meta,
|
|
10473
10473
|
mutationKey: this.options.mutationKey
|
|
10474
10474
|
};
|
|
@@ -10516,13 +10516,13 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10516
10516
|
this.state.context,
|
|
10517
10517
|
this,
|
|
10518
10518
|
r
|
|
10519
|
-
)), await ((p = (
|
|
10520
|
-
|
|
10519
|
+
)), await ((p = (f = this.options).onSuccess) == null ? void 0 : p.call(
|
|
10520
|
+
f,
|
|
10521
10521
|
q,
|
|
10522
10522
|
e,
|
|
10523
10523
|
this.state.context,
|
|
10524
10524
|
r
|
|
10525
|
-
)), await ((
|
|
10525
|
+
)), await ((w = (B = h(this, Z).config).onSettled) == null ? void 0 : w.call(
|
|
10526
10526
|
B,
|
|
10527
10527
|
q,
|
|
10528
10528
|
null,
|
|
@@ -10563,8 +10563,8 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10563
10563
|
Promise.reject(u);
|
|
10564
10564
|
}
|
|
10565
10565
|
try {
|
|
10566
|
-
await ((H = (
|
|
10567
|
-
|
|
10566
|
+
await ((H = (v = h(this, Z).config).onSettled) == null ? void 0 : H.call(
|
|
10567
|
+
v,
|
|
10568
10568
|
void 0,
|
|
10569
10569
|
q,
|
|
10570
10570
|
this.state.variables,
|
|
@@ -10592,7 +10592,7 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10592
10592
|
h(this, Z).runNext(this);
|
|
10593
10593
|
}
|
|
10594
10594
|
}
|
|
10595
|
-
},
|
|
10595
|
+
}, Mt = new WeakMap(), ce = new WeakMap(), Z = new WeakMap(), ze = new WeakMap(), ue = new WeakSet(), Me = function(e) {
|
|
10596
10596
|
const n = (r) => {
|
|
10597
10597
|
switch (e.type) {
|
|
10598
10598
|
case "failed":
|
|
@@ -10669,27 +10669,27 @@ function UA() {
|
|
|
10669
10669
|
submittedAt: 0
|
|
10670
10670
|
};
|
|
10671
10671
|
}
|
|
10672
|
-
var
|
|
10672
|
+
var fe, ae, It, Lr, Yi = (Lr = class extends un {
|
|
10673
10673
|
constructor(n = {}) {
|
|
10674
10674
|
super();
|
|
10675
|
-
G(this,
|
|
10675
|
+
G(this, fe);
|
|
10676
10676
|
G(this, ae);
|
|
10677
|
-
G(this,
|
|
10678
|
-
this.config = n, D(this,
|
|
10677
|
+
G(this, It);
|
|
10678
|
+
this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, It, 0);
|
|
10679
10679
|
}
|
|
10680
10680
|
build(n, r, s) {
|
|
10681
10681
|
const i = new SA({
|
|
10682
10682
|
client: n,
|
|
10683
10683
|
mutationCache: this,
|
|
10684
|
-
mutationId: ++
|
|
10684
|
+
mutationId: ++xt(this, It)._,
|
|
10685
10685
|
options: n.defaultMutationOptions(r),
|
|
10686
10686
|
state: s
|
|
10687
10687
|
});
|
|
10688
10688
|
return this.add(i), i;
|
|
10689
10689
|
}
|
|
10690
10690
|
add(n) {
|
|
10691
|
-
h(this,
|
|
10692
|
-
const r =
|
|
10691
|
+
h(this, fe).add(n);
|
|
10692
|
+
const r = Rt(n);
|
|
10693
10693
|
if (typeof r == "string") {
|
|
10694
10694
|
const s = h(this, ae).get(r);
|
|
10695
10695
|
s ? s.push(n) : h(this, ae).set(r, [n]);
|
|
@@ -10697,8 +10697,8 @@ var me, ae, Mt, Lr, Yi = (Lr = class extends cn {
|
|
|
10697
10697
|
this.notify({ type: "added", mutation: n });
|
|
10698
10698
|
}
|
|
10699
10699
|
remove(n) {
|
|
10700
|
-
if (h(this,
|
|
10701
|
-
const r =
|
|
10700
|
+
if (h(this, fe).delete(n)) {
|
|
10701
|
+
const r = Rt(n);
|
|
10702
10702
|
if (typeof r == "string") {
|
|
10703
10703
|
const s = h(this, ae).get(r);
|
|
10704
10704
|
if (s)
|
|
@@ -10711,7 +10711,7 @@ var me, ae, Mt, Lr, Yi = (Lr = class extends cn {
|
|
|
10711
10711
|
this.notify({ type: "removed", mutation: n });
|
|
10712
10712
|
}
|
|
10713
10713
|
canRun(n) {
|
|
10714
|
-
const r =
|
|
10714
|
+
const r = Rt(n);
|
|
10715
10715
|
if (typeof r == "string") {
|
|
10716
10716
|
const s = h(this, ae).get(r), i = s == null ? void 0 : s.find(
|
|
10717
10717
|
(a) => a.state.status === "pending"
|
|
@@ -10722,7 +10722,7 @@ var me, ae, Mt, Lr, Yi = (Lr = class extends cn {
|
|
|
10722
10722
|
}
|
|
10723
10723
|
runNext(n) {
|
|
10724
10724
|
var s;
|
|
10725
|
-
const r =
|
|
10725
|
+
const r = Rt(n);
|
|
10726
10726
|
if (typeof r == "string") {
|
|
10727
10727
|
const i = (s = h(this, ae).get(r)) == null ? void 0 : s.find((a) => a !== n && a.state.isPaused);
|
|
10728
10728
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
@@ -10731,13 +10731,13 @@ var me, ae, Mt, Lr, Yi = (Lr = class extends cn {
|
|
|
10731
10731
|
}
|
|
10732
10732
|
clear() {
|
|
10733
10733
|
L.batch(() => {
|
|
10734
|
-
h(this,
|
|
10734
|
+
h(this, fe).forEach((n) => {
|
|
10735
10735
|
this.notify({ type: "removed", mutation: n });
|
|
10736
|
-
}), h(this,
|
|
10736
|
+
}), h(this, fe).clear(), h(this, ae).clear();
|
|
10737
10737
|
});
|
|
10738
10738
|
}
|
|
10739
10739
|
getAll() {
|
|
10740
|
-
return Array.from(h(this,
|
|
10740
|
+
return Array.from(h(this, fe));
|
|
10741
10741
|
}
|
|
10742
10742
|
find(n) {
|
|
10743
10743
|
const r = { exact: !0, ...n };
|
|
@@ -10763,12 +10763,12 @@ var me, ae, Mt, Lr, Yi = (Lr = class extends cn {
|
|
|
10763
10763
|
)
|
|
10764
10764
|
);
|
|
10765
10765
|
}
|
|
10766
|
-
},
|
|
10767
|
-
function
|
|
10766
|
+
}, fe = new WeakMap(), ae = new WeakMap(), It = new WeakMap(), Lr);
|
|
10767
|
+
function Rt(t) {
|
|
10768
10768
|
var e;
|
|
10769
10769
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
10770
10770
|
}
|
|
10771
|
-
var le, Kr, Vi = (Kr = class extends
|
|
10771
|
+
var le, Kr, Vi = (Kr = class extends un {
|
|
10772
10772
|
constructor(n = {}) {
|
|
10773
10773
|
super();
|
|
10774
10774
|
G(this, le);
|
|
@@ -10853,7 +10853,7 @@ var le, Kr, Vi = (Kr = class extends cn {
|
|
|
10853
10853
|
D(this, N, e.queryCache || new Vi()), D(this, Ye, e.mutationCache || new Yi()), D(this, Ve, e.defaultOptions || {}), D(this, ct, /* @__PURE__ */ new Map()), D(this, ut, /* @__PURE__ */ new Map()), D(this, xe, 0);
|
|
10854
10854
|
}
|
|
10855
10855
|
mount() {
|
|
10856
|
-
|
|
10856
|
+
xt(this, xe)._++, h(this, xe) === 1 && (D(this, lt, Mi.subscribe(async (e) => {
|
|
10857
10857
|
e && (await this.resumePausedMutations(), h(this, N).onFocus());
|
|
10858
10858
|
})), D(this, At, en.subscribe(async (e) => {
|
|
10859
10859
|
e && (await this.resumePausedMutations(), h(this, N).onOnline());
|
|
@@ -10861,7 +10861,7 @@ var le, Kr, Vi = (Kr = class extends cn {
|
|
|
10861
10861
|
}
|
|
10862
10862
|
unmount() {
|
|
10863
10863
|
var e, n;
|
|
10864
|
-
|
|
10864
|
+
xt(this, xe)._--, h(this, xe) === 0 && ((e = h(this, lt)) == null || e.call(this), D(this, lt, void 0), (n = h(this, At)) == null || n.call(this), D(this, At, void 0));
|
|
10865
10865
|
}
|
|
10866
10866
|
isFetching(e) {
|
|
10867
10867
|
return h(this, N).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -10883,7 +10883,7 @@ var le, Kr, Vi = (Kr = class extends cn {
|
|
|
10883
10883
|
}
|
|
10884
10884
|
ensureQueryData(e) {
|
|
10885
10885
|
const n = this.defaultQueryOptions(e), r = h(this, N).build(this, n), s = r.state.data;
|
|
10886
|
-
return s === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(
|
|
10886
|
+
return s === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(Vn(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(s));
|
|
10887
10887
|
}
|
|
10888
10888
|
getQueriesData(e) {
|
|
10889
10889
|
return h(this, N).findAll(e).map(({ queryKey: n, state: r }) => {
|
|
@@ -10967,7 +10967,7 @@ var le, Kr, Vi = (Kr = class extends cn {
|
|
|
10967
10967
|
n.retry === void 0 && (n.retry = !1);
|
|
10968
10968
|
const r = h(this, N).build(this, n);
|
|
10969
10969
|
return r.isStaleByTime(
|
|
10970
|
-
|
|
10970
|
+
Vn(n.staleTime, r)
|
|
10971
10971
|
) ? r.fetch(n) : Promise.resolve(r.state.data);
|
|
10972
10972
|
}
|
|
10973
10973
|
prefetchQuery(e) {
|
|
@@ -10998,7 +10998,7 @@ var le, Kr, Vi = (Kr = class extends cn {
|
|
|
10998
10998
|
D(this, Ve, e);
|
|
10999
10999
|
}
|
|
11000
11000
|
setQueryDefaults(e, n) {
|
|
11001
|
-
h(this, ct).set(
|
|
11001
|
+
h(this, ct).set(Dt(e), {
|
|
11002
11002
|
queryKey: e,
|
|
11003
11003
|
defaultOptions: n
|
|
11004
11004
|
});
|
|
@@ -11006,11 +11006,11 @@ var le, Kr, Vi = (Kr = class extends cn {
|
|
|
11006
11006
|
getQueryDefaults(e) {
|
|
11007
11007
|
const n = [...h(this, ct).values()], r = {};
|
|
11008
11008
|
return n.forEach((s) => {
|
|
11009
|
-
|
|
11009
|
+
Ct(e, s.queryKey) && Object.assign(r, s.defaultOptions);
|
|
11010
11010
|
}), r;
|
|
11011
11011
|
}
|
|
11012
11012
|
setMutationDefaults(e, n) {
|
|
11013
|
-
h(this, ut).set(
|
|
11013
|
+
h(this, ut).set(Dt(e), {
|
|
11014
11014
|
mutationKey: e,
|
|
11015
11015
|
defaultOptions: n
|
|
11016
11016
|
});
|
|
@@ -11018,7 +11018,7 @@ var le, Kr, Vi = (Kr = class extends cn {
|
|
|
11018
11018
|
getMutationDefaults(e) {
|
|
11019
11019
|
const n = [...h(this, ut).values()], r = {};
|
|
11020
11020
|
return n.forEach((s) => {
|
|
11021
|
-
|
|
11021
|
+
Ct(e, s.mutationKey) && Object.assign(r, s.defaultOptions);
|
|
11022
11022
|
}), r;
|
|
11023
11023
|
}
|
|
11024
11024
|
defaultQueryOptions(e) {
|
|
@@ -11047,36 +11047,36 @@ var le, Kr, Vi = (Kr = class extends cn {
|
|
|
11047
11047
|
h(this, N).clear(), h(this, Ye).clear();
|
|
11048
11048
|
}
|
|
11049
11049
|
}, N = new WeakMap(), Ye = new WeakMap(), Ve = new WeakMap(), ct = new WeakMap(), ut = new WeakMap(), xe = new WeakMap(), lt = new WeakMap(), At = new WeakMap(), Jr), xi = "VUE_QUERY_CLIENT";
|
|
11050
|
-
function
|
|
11050
|
+
function pd(t) {
|
|
11051
11051
|
const e = t ? `:${t}` : "";
|
|
11052
11052
|
return `${xi}${e}`;
|
|
11053
11053
|
}
|
|
11054
|
-
function
|
|
11054
|
+
function yd(t, e) {
|
|
11055
11055
|
Object.keys(t).forEach((n) => {
|
|
11056
11056
|
t[n] = e[n];
|
|
11057
11057
|
});
|
|
11058
11058
|
}
|
|
11059
|
-
function
|
|
11059
|
+
function Rn(t, e, n = "", r = 0) {
|
|
11060
11060
|
if (e) {
|
|
11061
11061
|
const s = e(t, n, r);
|
|
11062
|
-
if (s === void 0 &&
|
|
11062
|
+
if (s === void 0 && qn(t) || s !== void 0)
|
|
11063
11063
|
return s;
|
|
11064
11064
|
}
|
|
11065
11065
|
if (Array.isArray(t))
|
|
11066
11066
|
return t.map(
|
|
11067
|
-
(s, i) =>
|
|
11067
|
+
(s, i) => Rn(s, e, String(i), r + 1)
|
|
11068
11068
|
);
|
|
11069
11069
|
if (typeof t == "object" && ZA(t)) {
|
|
11070
11070
|
const s = Object.entries(t).map(([i, a]) => [
|
|
11071
11071
|
i,
|
|
11072
|
-
|
|
11072
|
+
Rn(a, e, i, r + 1)
|
|
11073
11073
|
]);
|
|
11074
11074
|
return Object.fromEntries(s);
|
|
11075
11075
|
}
|
|
11076
11076
|
return t;
|
|
11077
11077
|
}
|
|
11078
11078
|
function zA(t, e) {
|
|
11079
|
-
return
|
|
11079
|
+
return Rn(t, e);
|
|
11080
11080
|
}
|
|
11081
11081
|
function T(t, e = !1) {
|
|
11082
11082
|
return zA(t, (n, r, s) => {
|
|
@@ -11084,7 +11084,7 @@ function T(t, e = !1) {
|
|
|
11084
11084
|
return T(n, !0);
|
|
11085
11085
|
if (e && LA(n))
|
|
11086
11086
|
return T(n(), e);
|
|
11087
|
-
if (
|
|
11087
|
+
if (qn(n))
|
|
11088
11088
|
return T(ge(n), e);
|
|
11089
11089
|
});
|
|
11090
11090
|
}
|
|
@@ -11118,7 +11118,7 @@ var KA = class extends Vi {
|
|
|
11118
11118
|
queryCache: t.queryCache || new KA(),
|
|
11119
11119
|
mutationCache: t.mutationCache || new JA()
|
|
11120
11120
|
};
|
|
11121
|
-
super(e), this.isRestoring =
|
|
11121
|
+
super(e), this.isRestoring = St(!1);
|
|
11122
11122
|
}
|
|
11123
11123
|
isFetching(t = {}) {
|
|
11124
11124
|
return super.isFetching(T(t));
|
|
@@ -11215,9 +11215,9 @@ var KA = class extends Vi {
|
|
|
11215
11215
|
return super.getMutationDefaults(T(t));
|
|
11216
11216
|
}
|
|
11217
11217
|
};
|
|
11218
|
-
Ki({
|
|
11218
|
+
const $A = Ki({
|
|
11219
11219
|
history: Ji(),
|
|
11220
|
-
routes: [...
|
|
11220
|
+
routes: [...bt, ...pt].map((t) => ({
|
|
11221
11221
|
...t,
|
|
11222
11222
|
component: os(
|
|
11223
11223
|
_r({
|
|
@@ -11226,32 +11226,47 @@ Ki({
|
|
|
11226
11226
|
)
|
|
11227
11227
|
}))
|
|
11228
11228
|
});
|
|
11229
|
-
|
|
11229
|
+
$A.beforeEach((t) => {
|
|
11230
|
+
var r;
|
|
11231
|
+
const { currentCountry: e } = rn(), n = e.value;
|
|
11232
|
+
if (!n) return !0;
|
|
11233
|
+
if ((r = t.meta) != null && r.region && !t.meta.region[n]) {
|
|
11234
|
+
const s = bt.find(
|
|
11235
|
+
(i) => {
|
|
11236
|
+
var a;
|
|
11237
|
+
return ((a = i.meta) == null ? void 0 : a.sidebarDisplay) && (!i.meta.region || i.meta.region[n]);
|
|
11238
|
+
}
|
|
11239
|
+
);
|
|
11240
|
+
return s != null && s.name ? { name: s.name } : !0;
|
|
11241
|
+
}
|
|
11242
|
+
return !0;
|
|
11243
|
+
});
|
|
11244
|
+
const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */ tn({
|
|
11230
11245
|
__name: "AppSidebar",
|
|
11231
11246
|
setup(t) {
|
|
11232
|
-
const e =
|
|
11247
|
+
const e = rn(), n = _i(), { t: r } = ns(), s = St(n.currentRoute.value.name);
|
|
11233
11248
|
$r(n.currentRoute, () => {
|
|
11234
11249
|
let A = n.currentRoute.value.name;
|
|
11235
11250
|
n.currentRoute.value.meta.parent && (A = n.currentRoute.value.meta.parent), s.value = A;
|
|
11236
11251
|
});
|
|
11237
|
-
const i =
|
|
11238
|
-
var B,
|
|
11239
|
-
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((
|
|
11252
|
+
const i = bt.map((A) => {
|
|
11253
|
+
var B, w;
|
|
11254
|
+
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((w = A.meta.region) != null && w[e.currentCountry.value]) || A.meta.section)
|
|
11240
11255
|
return;
|
|
11241
|
-
const
|
|
11242
|
-
label:
|
|
11256
|
+
const f = A.meta.sidebarDisplay, p = {
|
|
11257
|
+
label: f.startsWith("i18n:") ? r(f.replaceAll("i18n:", "")) : f,
|
|
11243
11258
|
value: A.name,
|
|
11244
11259
|
action: () => {
|
|
11245
11260
|
if (n.currentRoute.value.name !== A.name)
|
|
11246
11261
|
return n.push({ name: A.name });
|
|
11247
11262
|
}
|
|
11248
11263
|
};
|
|
11249
|
-
return A.meta.sidebarNew && (p.badge = () =>
|
|
11264
|
+
return A.meta.sidebarNew && (p.badge = () => vn(ea.FmPill, { label: "New" })), p;
|
|
11250
11265
|
}).filter((A) => !!A);
|
|
11251
|
-
function a(A,
|
|
11266
|
+
function a(A, f) {
|
|
11252
11267
|
return A.map((p) => {
|
|
11253
|
-
var B,
|
|
11254
|
-
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [],
|
|
11268
|
+
var B, w;
|
|
11269
|
+
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (w = p.meta) != null && w.sidebarDisplay ? p.meta.section !== f ? [] : [
|
|
11255
11270
|
{
|
|
11256
11271
|
label: p.meta.sidebarDisplay.startsWith("i18n:") ? r(p.meta.sidebarDisplay.replaceAll("i18n:", "")) : p.meta.sidebarDisplay,
|
|
11257
11272
|
value: p.name,
|
|
@@ -11264,8 +11279,8 @@ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ *
|
|
|
11264
11279
|
}).flat().filter((p) => !!p);
|
|
11265
11280
|
}
|
|
11266
11281
|
const c = pt.map((A) => {
|
|
11267
|
-
var
|
|
11268
|
-
if ((
|
|
11282
|
+
var f;
|
|
11283
|
+
if ((f = A.meta) != null && f.sidebarDisplay && !A.meta.section)
|
|
11269
11284
|
return {
|
|
11270
11285
|
label: A.meta.sidebarDisplay.startsWith("i18n:") ? r(A.meta.sidebarDisplay.replaceAll("i18n:", "")) : A.meta.sidebarDisplay,
|
|
11271
11286
|
value: A.name,
|
|
@@ -11274,7 +11289,7 @@ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ *
|
|
|
11274
11289
|
return n.push({ name: A.name });
|
|
11275
11290
|
}
|
|
11276
11291
|
};
|
|
11277
|
-
}).filter((A) => !!A), l =
|
|
11292
|
+
}).filter((A) => !!A), l = Nn(() => {
|
|
11278
11293
|
const A = [...i];
|
|
11279
11294
|
return A.push({
|
|
11280
11295
|
label: "",
|
|
@@ -11285,7 +11300,7 @@ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ *
|
|
|
11285
11300
|
icon: "credit_score",
|
|
11286
11301
|
value: "divider",
|
|
11287
11302
|
disabled: !0
|
|
11288
|
-
}), A.push(...a(
|
|
11303
|
+
}), A.push(...a(bt, "financing")), ed(e.sessionUser.value) && (A.push({
|
|
11289
11304
|
label: "",
|
|
11290
11305
|
value: "divider",
|
|
11291
11306
|
disabled: !0
|
|
@@ -11314,24 +11329,24 @@ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ *
|
|
|
11314
11329
|
disabled: !0
|
|
11315
11330
|
}), A.push(...c)), A;
|
|
11316
11331
|
});
|
|
11317
|
-
return (A,
|
|
11332
|
+
return (A, f) => {
|
|
11318
11333
|
const p = es("FmCollapsibleTabs");
|
|
11319
|
-
return nn(),
|
|
11334
|
+
return nn(), Hn(p, {
|
|
11320
11335
|
modelValue: s.value,
|
|
11321
|
-
"onUpdate:modelValue":
|
|
11336
|
+
"onUpdate:modelValue": f[0] || (f[0] = (B) => s.value = B),
|
|
11322
11337
|
items: l.value,
|
|
11323
11338
|
class: "py-16 px-8 w-[240px]"
|
|
11324
11339
|
}, null, 8, ["modelValue", "items"]);
|
|
11325
11340
|
};
|
|
11326
11341
|
}
|
|
11327
11342
|
});
|
|
11328
|
-
var
|
|
11329
|
-
const
|
|
11343
|
+
var nd = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" } };
|
|
11344
|
+
const bd = /* @__PURE__ */ tn({
|
|
11330
11345
|
__name: "App",
|
|
11331
11346
|
setup(t) {
|
|
11332
|
-
const { state: e } = Qo(), n =
|
|
11347
|
+
const { state: e } = Qo(), n = rn(), r = ts(), s = new _A();
|
|
11333
11348
|
Wi(xi, s);
|
|
11334
|
-
const i = Ss(
|
|
11349
|
+
const i = Ss(nd.firebase);
|
|
11335
11350
|
async function a() {
|
|
11336
11351
|
const c = n.sessionUser.value;
|
|
11337
11352
|
if (!c || !c.token) return;
|
|
@@ -11341,17 +11356,17 @@ const yd = /* @__PURE__ */ tn({
|
|
|
11341
11356
|
return a(), $r(n.sessionUser, a), zi(() => {
|
|
11342
11357
|
e.isIframe && parent.postMessage({ event: "ready" }, "*"), s.mount();
|
|
11343
11358
|
}), Zi(() => {
|
|
11344
|
-
n.registerSidebarComponent(
|
|
11359
|
+
n.registerSidebarComponent(td);
|
|
11345
11360
|
}), Li(() => {
|
|
11346
11361
|
s.unmount();
|
|
11347
11362
|
}), (c, l) => {
|
|
11348
11363
|
const A = es("RouterView");
|
|
11349
|
-
return nn(),
|
|
11364
|
+
return nn(), Hn(A, {
|
|
11350
11365
|
key: ge(r).path
|
|
11351
11366
|
});
|
|
11352
11367
|
};
|
|
11353
11368
|
}
|
|
11354
|
-
}),
|
|
11369
|
+
}), vd = () => {
|
|
11355
11370
|
const t = [
|
|
11356
11371
|
{ "en-US": na, "th-TH": sa, "zh-CN": aa },
|
|
11357
11372
|
qi
|
|
@@ -11368,7 +11383,7 @@ const yd = /* @__PURE__ */ tn({
|
|
|
11368
11383
|
},
|
|
11369
11384
|
{}
|
|
11370
11385
|
);
|
|
11371
|
-
}, wd = [...pt, ...
|
|
11386
|
+
}, wd = [...pt, ...bt].map((t) => ({
|
|
11372
11387
|
...t,
|
|
11373
11388
|
component: os(
|
|
11374
11389
|
_r({ loader: t.component })
|
|
@@ -11377,32 +11392,32 @@ const yd = /* @__PURE__ */ tn({
|
|
|
11377
11392
|
export {
|
|
11378
11393
|
xa as A,
|
|
11379
11394
|
wd as B,
|
|
11380
|
-
|
|
11395
|
+
un as S,
|
|
11381
11396
|
yr as _,
|
|
11382
|
-
|
|
11383
|
-
|
|
11397
|
+
Vn as a,
|
|
11398
|
+
Yn as b,
|
|
11384
11399
|
XA as c,
|
|
11385
11400
|
GA as d,
|
|
11386
11401
|
Pi as e,
|
|
11387
11402
|
Mi as f,
|
|
11388
11403
|
L as g,
|
|
11389
|
-
|
|
11404
|
+
ed as h,
|
|
11390
11405
|
MA as i,
|
|
11391
|
-
|
|
11392
|
-
|
|
11406
|
+
pd as j,
|
|
11407
|
+
dd as k,
|
|
11393
11408
|
T as l,
|
|
11394
|
-
|
|
11409
|
+
hd as m,
|
|
11395
11410
|
ie as n,
|
|
11396
11411
|
o,
|
|
11397
11412
|
xA as p,
|
|
11398
11413
|
d as q,
|
|
11399
11414
|
PA as r,
|
|
11400
|
-
|
|
11415
|
+
Ad as s,
|
|
11401
11416
|
IA as t,
|
|
11402
|
-
|
|
11417
|
+
yd as u,
|
|
11403
11418
|
la as v,
|
|
11404
11419
|
ua as w,
|
|
11405
|
-
|
|
11406
|
-
|
|
11407
|
-
|
|
11420
|
+
ld as x,
|
|
11421
|
+
bd as y,
|
|
11422
|
+
vd as z
|
|
11408
11423
|
};
|