@feedmepos/mf-payment 1.6.30-dev → 1.6.30
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-DnYxawNz.js → Actions.vue_vue_type_script_setup_true_lang-CReFUvXP.js} +1 -1
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-C09Zc2yY.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BW-kIzrr.js} +2 -2
- package/dist/{Chargeback-4dVzZbFZ.js → Chargeback-D-1shCEc.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-Dxrni9eN.js → DocumentViewer.vue_vue_type_script_setup_true_lang-CQCPlLlW.js} +1 -1
- package/dist/{OnboardForm-Dk9ZECLJ.js → OnboardForm-BTmf0Q57.js} +5 -5
- package/dist/{OnboardForm-CjEjpYxz.js → OnboardForm-CoM_9V9O.js} +5 -5
- package/dist/{OnboardSubmission-DdoEUtf-.js → OnboardSubmission-CnqRhpLP.js} +2 -2
- package/dist/{OnboardSubmission-CYtyPlF1.js → OnboardSubmission-CuXzPfZW.js} +5 -5
- package/dist/{PayoutAccount-BBoQdjnL.js → PayoutAccount-CcvLfFvm.js} +5 -5
- package/dist/{PayoutAccount-CdNFCi5z.js → PayoutAccount-DTsomWZN.js} +5 -5
- package/dist/{PayoutAccountSetting-67hgm--k.js → PayoutAccountSetting-yGR9xN6A.js} +6 -6
- package/dist/{Restaurant-BJWKGoep.js → Restaurant-yQZ4g8Rd.js} +4 -4
- package/dist/{RestaurantSetting-D_Q7cyky.js → RestaurantSetting-DAJ94ttS.js} +3 -3
- package/dist/{Settlement-D4Vyx5cd.js → Settlement-C5SQzTL7.js} +4 -4
- package/dist/{Settlement-IG78kruB.js → Settlement-CCLPP12V.js} +3 -3
- package/dist/{SettlementTransactions-DKa4Jrl4.js → SettlementTransactions-aXZS4MSd.js} +4 -4
- package/dist/{SettlementTransactions-ewxoUcu0.js → SettlementTransactions-gonII7cV.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-DwOlx2Fk.js → Status.vue_vue_type_script_setup_true_lang-DUfg8gqj.js} +1 -1
- package/dist/{Terminal-CNGQgmjZ.js → Terminal-CPjNWxK4.js} +5 -5
- package/dist/{TerminalSetting-CxZY9PJo.js → TerminalSetting-B-8Tfbk9.js} +4 -4
- package/dist/{Transaction-BbWjLqro.js → Transaction-BnuSy__A.js} +9 -9
- package/dist/{Transaction-B2tcvJEe.js → Transaction-YCrPQ4lU.js} +10 -10
- package/dist/{TransactionOld-DG_4Vovo.js → TransactionOld-CSpSjwoB.js} +7 -7
- package/dist/{app-gnD_lgDE.js → app-JCviXoxR.js} +442 -451
- package/dist/app.js +1 -1
- package/dist/{assets-CmfoPIpc.js → assets-lxJ38liW.js} +1 -1
- package/dist/{grafana-VxUrxdE4.js → grafana-LZXZH1NC.js} +1 -1
- package/dist/{index-Bhk7RTSe.js → index-B6udqJ7N.js} +1 -1
- package/dist/{index-s3O4Ulnc.js → index-BEMHQA9W.js} +1 -1
- package/dist/{index-SxK1831p.js → index-CIoiU_cn.js} +1 -1
- package/dist/{index-23n8-7UD.js → index-CaCIHYcl.js} +1 -1
- package/dist/{index-DYd8CSWb.js → index-CiTGroUP.js} +1 -1
- package/dist/{index-DVfiTUAz.js → index-DvaB_DBS.js} +1 -1
- package/dist/{index-CNmzvdir.js → index-ZkExxH5u.js} +2 -2
- package/dist/{index-MWfVxwUN.js → index-nfDq-G0W.js} +1 -1
- package/dist/{index-CN3QMYWB.js → index-xea-_IPr.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-0P7yv8du.js → index.vue_vue_type_script_setup_true_lang-D4xzJCnm.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-DlHoX0DD.js → payout-account-DaOSQs3Q.js} +3 -3
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var rr = (t) => {
|
|
2
2
|
throw TypeError(t);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var h = (t, e, n) => (
|
|
4
|
+
var ln = (t, e, n) => e.has(t) || rr("Cannot " + n);
|
|
5
|
+
var h = (t, e, n) => (ln(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) => (ln(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), z = (t, e, n) => (ln(t, e, "access private method"), n);
|
|
6
6
|
var Vt = (t, e, n, r) => ({
|
|
7
7
|
set _(s) {
|
|
8
8
|
D(t, e, s, n);
|
|
@@ -12,9 +12,9 @@ var Vt = (t, e, n, r) => ({
|
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
import { routes as Ri, i18nMessages as qi } from "@feedmepos/mf-financing";
|
|
15
|
-
import { isRef as
|
|
15
|
+
import { isRef as kn, ref as Xt, shallowRef as Ni, watchEffect as Hi, computed as Rn, h as yn, defineComponent as en, unref as ge, openBlock as tn, createBlock as qn, renderSlot as Qi, createCommentVNode as Xi, createElementBlock as Si, createElementVNode as Ke, toDisplayString as sr, nextTick as Ui, defineAsyncComponent as _r, watch as $r, resolveComponent as es, provide as Wi, onMounted as zi, onBeforeMount as Zi, onUnmounted as Li } from "vue";
|
|
16
16
|
import { useRoute as ts, createRouter as Ki, createWebHistory as Ji, useRouter as _i } from "vue-router";
|
|
17
|
-
import { useCoreStore as
|
|
17
|
+
import { useCoreStore as Nn, useI18n as ns } from "@feedmepos/mf-common";
|
|
18
18
|
import { defineStore as $i } from "pinia";
|
|
19
19
|
import { components as ea } from "@feedmepos/ui-library";
|
|
20
20
|
const ta = {
|
|
@@ -1238,7 +1238,7 @@ const oa = () => {
|
|
|
1238
1238
|
};
|
|
1239
1239
|
function ca(t, e, n) {
|
|
1240
1240
|
let r;
|
|
1241
|
-
|
|
1241
|
+
kn(n) ? r = {
|
|
1242
1242
|
evaluating: n
|
|
1243
1243
|
} : r = {};
|
|
1244
1244
|
const {
|
|
@@ -1247,12 +1247,12 @@ function ca(t, e, n) {
|
|
|
1247
1247
|
shallow: a = !0,
|
|
1248
1248
|
onError: c = oa
|
|
1249
1249
|
} = r, l = Xt(!s), A = a ? Ni(e) : Xt(e);
|
|
1250
|
-
let
|
|
1250
|
+
let f = 0;
|
|
1251
1251
|
return Hi(async (p) => {
|
|
1252
1252
|
if (!l.value)
|
|
1253
1253
|
return;
|
|
1254
|
-
|
|
1255
|
-
const B =
|
|
1254
|
+
f++;
|
|
1255
|
+
const B = f;
|
|
1256
1256
|
let v = !1;
|
|
1257
1257
|
i && Promise.resolve().then(() => {
|
|
1258
1258
|
i.value = !0;
|
|
@@ -1263,13 +1263,13 @@ function ca(t, e, n) {
|
|
|
1263
1263
|
i && (i.value = !1), v || I();
|
|
1264
1264
|
});
|
|
1265
1265
|
});
|
|
1266
|
-
B ===
|
|
1266
|
+
B === 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), v = !0;
|
|
1271
1271
|
}
|
|
1272
|
-
}), s ?
|
|
1272
|
+
}), s ? Rn(() => (l.value = !0, A.value)) : A;
|
|
1273
1273
|
}
|
|
1274
1274
|
var ua = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1275
1275
|
function la(t) {
|
|
@@ -1339,16 +1339,16 @@ var rs = { exports: {} };
|
|
|
1339
1339
|
},
|
|
1340
1340
|
function(n, r, s) {
|
|
1341
1341
|
function i(u) {
|
|
1342
|
-
return (i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
1343
|
-
return typeof
|
|
1344
|
-
} : function(
|
|
1345
|
-
return
|
|
1342
|
+
return (i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(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 v(u,
|
|
1382
|
-
return u.validate(u.options,
|
|
1381
|
+
function v(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 (v(
|
|
1426
|
+
if (v(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 (!v(
|
|
1434
|
+
if (!v(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), v(E, f(b, P))) return P;
|
|
1447
1447
|
return -1;
|
|
1448
|
-
}(
|
|
1448
|
+
}(m, u) : v(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 = v(H(
|
|
1506
|
+
var P = v(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
1549
|
return !v(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,26 +1563,26 @@ var rs = { exports: {} };
|
|
|
1563
1563
|
'In CSP mode, sift does not support strings in "$where" condition'
|
|
1564
1564
|
);
|
|
1565
1565
|
},
|
|
1566
|
-
$elemMatch: function(u,
|
|
1566
|
+
$elemMatch: function(u, 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, cn) {
|
|
1579
|
+
if (gt === ft.length || Ce == null)
|
|
1580
|
+
return void cn.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 un = 0, ki = Ce.length; un < ki; un++) tr(f(Ce, un), ft, gt, Ce, cn);
|
|
1584
|
+
else tr(f(Ce, nr), ft, gt + 1, Ce, cn);
|
|
1585
|
+
}(m, g, 0, m, E), E.length === 1) {
|
|
1586
1586
|
var P = E[0];
|
|
1587
1587
|
return v(y, P[0], P[1], P[2]);
|
|
1588
1588
|
}
|
|
@@ -1592,21 +1592,21 @@ var rs = { exports: {} };
|
|
|
1592
1592
|
}
|
|
1593
1593
|
return W;
|
|
1594
1594
|
}
|
|
1595
|
-
function Q(u,
|
|
1596
|
-
return V({ keyPath: u, child:
|
|
1595
|
+
function Q(u, 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);
|
|
@@ -1627,42 +1627,42 @@ var rs = { exports: {} };
|
|
|
1627
1627
|
return b(y(P));
|
|
1628
1628
|
};
|
|
1629
1629
|
}
|
|
1630
|
-
function w(u,
|
|
1631
|
-
if (Object.prototype.toString.call(u) !== Object.prototype.toString.call(
|
|
1630
|
+
function w(u, 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 (!w(u[g],
|
|
1634
|
+
if (Object.keys(u).length !== Object.keys(m).length) return !1;
|
|
1635
|
+
for (var g in u) if (!w(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 (!w(u[y],
|
|
1641
|
+
if (!w(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 v(y, b &&
|
|
1651
|
+
return v(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
1658
|
return v(g, y, b, E);
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
|
-
function ee(u,
|
|
1662
|
-
if (w(u,
|
|
1663
|
-
if (i(u) === i(
|
|
1664
|
-
if (u >
|
|
1665
|
-
if (u <
|
|
1661
|
+
function ee(u, m) {
|
|
1662
|
+
if (w(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,16 +1680,16 @@ function ha(t, e) {
|
|
|
1680
1680
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
1681
1681
|
}
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function 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
|
-
function
|
|
1690
|
-
return
|
|
1689
|
+
function bn(t) {
|
|
1690
|
+
return bn = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
|
|
1691
1691
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
1692
|
-
},
|
|
1692
|
+
}, bn(t);
|
|
1693
1693
|
}
|
|
1694
1694
|
function St(t, e) {
|
|
1695
1695
|
return St = Object.setPrototypeOf || function(r, s) {
|
|
@@ -1717,9 +1717,9 @@ function Rt(t, e, n) {
|
|
|
1717
1717
|
function pa(t) {
|
|
1718
1718
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
1719
1719
|
}
|
|
1720
|
-
function
|
|
1720
|
+
function wn(t) {
|
|
1721
1721
|
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
1722
|
-
return
|
|
1722
|
+
return wn = 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 Rt(r, arguments,
|
|
1731
|
+
return Rt(r, arguments, bn(this).constructor);
|
|
1732
1732
|
}
|
|
1733
1733
|
return s.prototype = Object.create(r.prototype, {
|
|
1734
1734
|
constructor: {
|
|
@@ -1738,7 +1738,7 @@ function vn(t) {
|
|
|
1738
1738
|
configurable: !0
|
|
1739
1739
|
}
|
|
1740
1740
|
}), St(s, r);
|
|
1741
|
-
},
|
|
1741
|
+
}, wn(t);
|
|
1742
1742
|
}
|
|
1743
1743
|
function ir(t) {
|
|
1744
1744
|
if (t === void 0)
|
|
@@ -1748,7 +1748,7 @@ function ir(t) {
|
|
|
1748
1748
|
var ss = function(e) {
|
|
1749
1749
|
return 'Cannot execute "' + e.action + '" on "' + e.subjectName + '"';
|
|
1750
1750
|
}, xt = ss, ya = /* @__PURE__ */ function(t) {
|
|
1751
|
-
|
|
1751
|
+
fa(e, t), e.setDefaultMessage = function(s) {
|
|
1752
1752
|
s === null ? xt = ss : xt = typeof s == "string" ? function() {
|
|
1753
1753
|
return s;
|
|
1754
1754
|
} : s;
|
|
@@ -1782,8 +1782,8 @@ var ss = function(e) {
|
|
|
1782
1782
|
}, n._setMetadata = function(s) {
|
|
1783
1783
|
this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
|
|
1784
1784
|
}, e;
|
|
1785
|
-
}(
|
|
1786
|
-
function
|
|
1785
|
+
}(wn(Error));
|
|
1786
|
+
function vn(t) {
|
|
1787
1787
|
return Array.isArray(t) ? t : [t];
|
|
1788
1788
|
}
|
|
1789
1789
|
function ba(t) {
|
|
@@ -1811,7 +1811,7 @@ function Ia(t) {
|
|
|
1811
1811
|
}
|
|
1812
1812
|
var Pa = /* @__PURE__ */ function() {
|
|
1813
1813
|
function t(n) {
|
|
1814
|
-
this.actions = n.actions || n.action, this.subject = n.subject, this.fields = !n.fields || n.fields.length === 0 ? void 0 :
|
|
1814
|
+
this.actions = n.actions || n.action, this.subject = n.subject, this.fields = !n.fields || n.fields.length === 0 ? void 0 : vn(n.fields), Object.defineProperty(this, "_fieldsPattern", {
|
|
1815
1815
|
writable: !0
|
|
1816
1816
|
}), this.inverted = !!n.inverted, this.conditions = n.conditions, Object.defineProperty(this, "_matches", {
|
|
1817
1817
|
writable: !0,
|
|
@@ -1866,13 +1866,13 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
1866
1866
|
return process.env.NODE_ENV !== "production" && i.isAllInverted && r.length && console.warn("[casl]: Ability contains only inverted rules. That means user will not be able to do any actions. This will be changed to Error throw in the next major version"), this[te].indexedRules = i.rules, this[te].hasPerFieldRules = i.hasPerFieldRules, this.emit("updated", s), this;
|
|
1867
1867
|
}, e.buildIndexFor = function(r) {
|
|
1868
1868
|
for (var s = /* @__PURE__ */ Object.create(null), i = this[te].RuleType, a = !0, c = !1, l = 0; l < r.length; l++) {
|
|
1869
|
-
var A = new i(r[l]),
|
|
1869
|
+
var A = new i(r[l]), f = this.expandActions(A.actions), p = vn(A.subject), B = r.length - l - 1;
|
|
1870
1870
|
a = !!(a && A.inverted), !c && A.fields && (c = !0);
|
|
1871
1871
|
for (var v = 0; v < p.length; v++) {
|
|
1872
1872
|
var O = p[v];
|
|
1873
1873
|
s[O] = s[O] || /* @__PURE__ */ Object.create(null);
|
|
1874
|
-
for (var I = 0; I <
|
|
1875
|
-
var V =
|
|
1874
|
+
for (var I = 0; I < 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 = vn(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 Bn = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Bn || {});
|
|
2035
2035
|
function Ra() {
|
|
2036
|
-
const t = ts(), { sessionUser: e } =
|
|
2036
|
+
const t = ts(), { sessionUser: e } = Nn();
|
|
2037
2037
|
return ca(
|
|
2038
2038
|
async () => {
|
|
2039
2039
|
t.matched;
|
|
@@ -2072,7 +2072,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2072
2072
|
subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
|
|
2073
2073
|
}, za = {
|
|
2074
2074
|
noPermission: Wa
|
|
2075
|
-
}, Za = { class: "w-full h-full flex justify-center items-center" }, La = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Ka = { class: "w-[300px] h-[300px]" }, Ja = ["src"], _a = { class: "text-2xl" }, $a = { class: "text-xl" }, eo = /* @__PURE__ */
|
|
2075
|
+
}, Za = { class: "w-full h-full flex justify-center items-center" }, La = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Ka = { class: "w-[300px] h-[300px]" }, Ja = ["src"], _a = { class: "text-2xl" }, $a = { class: "text-xl" }, eo = /* @__PURE__ */ en({
|
|
2076
2076
|
__name: "NoPermission",
|
|
2077
2077
|
setup(t) {
|
|
2078
2078
|
const { t: e } = ns({
|
|
@@ -2083,7 +2083,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2083
2083
|
"th-TH": za
|
|
2084
2084
|
}
|
|
2085
2085
|
});
|
|
2086
|
-
return (n, r) => (
|
|
2086
|
+
return (n, r) => (tn(), Si("div", Za, [
|
|
2087
2087
|
Ke("div", La, [
|
|
2088
2088
|
Ke("div", Ka, [
|
|
2089
2089
|
Ke("img", {
|
|
@@ -2098,18 +2098,18 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2098
2098
|
])
|
|
2099
2099
|
]));
|
|
2100
2100
|
}
|
|
2101
|
-
}), to = /* @__PURE__ */
|
|
2101
|
+
}), to = /* @__PURE__ */ en({
|
|
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(Bn).Denied ? (tn(), qn(eo, { key: 0 })) : ge(e) === ge(Bn).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 () => yn(to, {}, { default: () => yn(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",
|
|
@@ -2408,10 +2408,10 @@ const k = [
|
|
|
2408
2408
|
ho
|
|
2409
2409
|
), ws = $(
|
|
2410
2410
|
se,
|
|
2411
|
-
|
|
2411
|
+
mo
|
|
2412
2412
|
), vs = $(
|
|
2413
2413
|
se,
|
|
2414
|
-
|
|
2414
|
+
fo
|
|
2415
2415
|
), Bs = $(
|
|
2416
2416
|
se,
|
|
2417
2417
|
go
|
|
@@ -2468,8 +2468,8 @@ const k = [
|
|
|
2468
2468
|
Ds,
|
|
2469
2469
|
ds,
|
|
2470
2470
|
hs,
|
|
2471
|
-
|
|
2472
|
-
|
|
2471
|
+
ms,
|
|
2472
|
+
fs
|
|
2473
2473
|
), Bo = $(
|
|
2474
2474
|
se,
|
|
2475
2475
|
ls,
|
|
@@ -2556,7 +2556,7 @@ const k = [
|
|
|
2556
2556
|
[`set_${d.crm_loyaltyCard}`]: {
|
|
2557
2557
|
key: "sys:crm:loyaltyCard",
|
|
2558
2558
|
name: "CRM Loyalty Card",
|
|
2559
|
-
permissions:
|
|
2559
|
+
permissions: 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 || {});
|
|
@@ -2591,7 +2591,7 @@ const J = [
|
|
|
2591
2591
|
subject: C.inventory,
|
|
2592
2592
|
actions: [o.read]
|
|
2593
2593
|
}
|
|
2594
|
-
],
|
|
2594
|
+
], Hn = [
|
|
2595
2595
|
...J,
|
|
2596
2596
|
{
|
|
2597
2597
|
label: "Stock",
|
|
@@ -2641,11 +2641,11 @@ const J = [
|
|
|
2641
2641
|
}
|
|
2642
2642
|
];
|
|
2643
2643
|
[
|
|
2644
|
-
...
|
|
2644
|
+
...Hn,
|
|
2645
2645
|
...Es,
|
|
2646
2646
|
...Ms
|
|
2647
2647
|
];
|
|
2648
|
-
const
|
|
2648
|
+
const Qn = [
|
|
2649
2649
|
...J,
|
|
2650
2650
|
{
|
|
2651
2651
|
label: "Closing",
|
|
@@ -2708,7 +2708,7 @@ const Xn = [
|
|
|
2708
2708
|
}
|
|
2709
2709
|
];
|
|
2710
2710
|
[
|
|
2711
|
-
...
|
|
2711
|
+
...Qn,
|
|
2712
2712
|
...Is,
|
|
2713
2713
|
...Ps
|
|
2714
2714
|
];
|
|
@@ -2918,14 +2918,14 @@ const jo = [
|
|
|
2918
2918
|
];
|
|
2919
2919
|
[
|
|
2920
2920
|
...J,
|
|
2921
|
-
...
|
|
2922
|
-
...
|
|
2921
|
+
...Hn,
|
|
2922
|
+
...Qn
|
|
2923
2923
|
];
|
|
2924
2924
|
const ko = {
|
|
2925
2925
|
[`set_${d.inventory_stockBalance}`]: {
|
|
2926
2926
|
key: "sys:inventory:stock_balance",
|
|
2927
2927
|
name: "Stock Balance",
|
|
2928
|
-
permissions:
|
|
2928
|
+
permissions: Hn
|
|
2929
2929
|
},
|
|
2930
2930
|
[`set_${d.inventory_stockAdjustment}`]: {
|
|
2931
2931
|
key: "sys:inventory:stock_adjustment",
|
|
@@ -2945,7 +2945,7 @@ const ko = {
|
|
|
2945
2945
|
[`set_${d.inventory_closingHistory}`]: {
|
|
2946
2946
|
key: "sys:inventory:closing_history",
|
|
2947
2947
|
name: "Closing History",
|
|
2948
|
-
permissions:
|
|
2948
|
+
permissions: Qn
|
|
2949
2949
|
},
|
|
2950
2950
|
[`set_${d.inventory_closingTemplate}`]: {
|
|
2951
2951
|
key: "sys:inventory:closing_template",
|
|
@@ -3154,7 +3154,7 @@ const Ho = () => ({
|
|
|
3154
3154
|
sidebarDisplay: "Restaurants",
|
|
3155
3155
|
section: "payment-gateway"
|
|
3156
3156
|
},
|
|
3157
|
-
component: () => import("./Restaurant-
|
|
3157
|
+
component: () => import("./Restaurant-yQZ4g8Rd.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-DAJ94ttS.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-CcvLfFvm.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-yGR9xN6A.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-CuXzPfZW.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-CoM_9V9O.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-CPjNWxK4.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-CPjNWxK4.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-CPjNWxK4.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-B-8Tfbk9.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-B-8Tfbk9.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-B-8Tfbk9.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-BnuSy__A.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-D-1shCEc.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-CCLPP12V.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-gonII7cV.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
|
+
})), Xn = [
|
|
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-DTsomWZN.js"),
|
|
3315
3315
|
meta: {
|
|
3316
3316
|
sidebarDisplay: "i18n:payment.routes.payout_account",
|
|
3317
3317
|
validationManifest: {
|
|
@@ -3327,7 +3327,7 @@ const Ho = () => ({
|
|
|
3327
3327
|
{
|
|
3328
3328
|
path: "/onboard-submission",
|
|
3329
3329
|
name: "mf-payment-onboard-submission",
|
|
3330
|
-
component: () => import("./OnboardSubmission-
|
|
3330
|
+
component: () => import("./OnboardSubmission-CnqRhpLP.js"),
|
|
3331
3331
|
meta: {
|
|
3332
3332
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
3333
3333
|
region: { MY: !0, TH: !0, AU: !0 },
|
|
@@ -3345,7 +3345,7 @@ const Ho = () => ({
|
|
|
3345
3345
|
path: "/onboard-submission/restaurant/:restaurantId/:type/:submission?",
|
|
3346
3346
|
name: "mf-payment-onboard-submission-form",
|
|
3347
3347
|
props: !0,
|
|
3348
|
-
component: () => import("./OnboardForm-
|
|
3348
|
+
component: () => import("./OnboardForm-BTmf0Q57.js"),
|
|
3349
3349
|
meta: {
|
|
3350
3350
|
parent: "mf-payment-onboard-submission",
|
|
3351
3351
|
validationManifest: {
|
|
@@ -3361,7 +3361,7 @@ const Ho = () => ({
|
|
|
3361
3361
|
{
|
|
3362
3362
|
path: "/transaction-old",
|
|
3363
3363
|
name: "mf-payment-old-transaction",
|
|
3364
|
-
component: () => import("./TransactionOld-
|
|
3364
|
+
component: () => import("./TransactionOld-CSpSjwoB.js"),
|
|
3365
3365
|
meta: {
|
|
3366
3366
|
sidebarDisplay: "i18n:payment.routes.transaction",
|
|
3367
3367
|
validationManifest: {
|
|
@@ -3377,7 +3377,7 @@ const Ho = () => ({
|
|
|
3377
3377
|
{
|
|
3378
3378
|
path: "/transaction",
|
|
3379
3379
|
name: "mf-payment-transaction",
|
|
3380
|
-
component: () => import("./Transaction-
|
|
3380
|
+
component: () => import("./Transaction-YCrPQ4lU.js"),
|
|
3381
3381
|
meta: {
|
|
3382
3382
|
sidebarDisplay: "i18n:payment.routes.transaction_new",
|
|
3383
3383
|
sidebarNew: !0,
|
|
@@ -3394,7 +3394,7 @@ const Ho = () => ({
|
|
|
3394
3394
|
{
|
|
3395
3395
|
path: "/settlement",
|
|
3396
3396
|
name: "mf-payment-settlement",
|
|
3397
|
-
component: () => import("./Settlement-
|
|
3397
|
+
component: () => import("./Settlement-C5SQzTL7.js"),
|
|
3398
3398
|
meta: {
|
|
3399
3399
|
sidebarDisplay: "i18n:payment.routes.settlement",
|
|
3400
3400
|
region: { MY: !0, SG: !0 },
|
|
@@ -3412,7 +3412,7 @@ const Ho = () => ({
|
|
|
3412
3412
|
path: "/settlement/:settlementId",
|
|
3413
3413
|
name: "mf-payment-settlement-transaction",
|
|
3414
3414
|
props: !0,
|
|
3415
|
-
component: () => import("./SettlementTransactions-
|
|
3415
|
+
component: () => import("./SettlementTransactions-aXZS4MSd.js"),
|
|
3416
3416
|
meta: {
|
|
3417
3417
|
parent: "mf-payment-settlement",
|
|
3418
3418
|
validationManifest: {
|
|
@@ -3452,7 +3452,7 @@ const Ho = () => ({
|
|
|
3452
3452
|
], Qo = $i("mf-payment-iframe", () => {
|
|
3453
3453
|
const t = {
|
|
3454
3454
|
isIframe: !1
|
|
3455
|
-
}, e =
|
|
3455
|
+
}, e = Rn(() => t);
|
|
3456
3456
|
function n(r) {
|
|
3457
3457
|
t.isIframe = r;
|
|
3458
3458
|
}
|
|
@@ -3579,9 +3579,9 @@ const Vs = function(t) {
|
|
|
3579
3579
|
this.init_();
|
|
3580
3580
|
const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
|
3581
3581
|
for (let s = 0; s < t.length; s += 3) {
|
|
3582
|
-
const i = t[s], a = s + 1 < t.length, c = a ? t[s + 1] : 0, l = s + 2 < t.length, A = l ? t[s + 2] : 0,
|
|
3582
|
+
const i = t[s], a = s + 1 < t.length, c = a ? t[s + 1] : 0, l = s + 2 < t.length, A = l ? t[s + 2] : 0, f = i >> 2, p = (i & 3) << 4 | c >> 4;
|
|
3583
3583
|
let B = (c & 15) << 2 | A >> 6, v = A & 63;
|
|
3584
|
-
l || (v = 64, a || (B = 64)), r.push(n[
|
|
3584
|
+
l || (v = 64, a || (B = 64)), r.push(n[f], n[p], n[B], n[v]);
|
|
3585
3585
|
}
|
|
3586
3586
|
return r.join("");
|
|
3587
3587
|
},
|
|
@@ -3893,7 +3893,7 @@ function cc(t) {
|
|
|
3893
3893
|
return !1;
|
|
3894
3894
|
return !0;
|
|
3895
3895
|
}
|
|
3896
|
-
function
|
|
3896
|
+
function Ut(t, e) {
|
|
3897
3897
|
if (t === e)
|
|
3898
3898
|
return !0;
|
|
3899
3899
|
const n = Object.keys(t), r = Object.keys(e);
|
|
@@ -3902,7 +3902,7 @@ function Wt(t, e) {
|
|
|
3902
3902
|
return !1;
|
|
3903
3903
|
const i = t[s], a = e[s];
|
|
3904
3904
|
if (ur(i) && ur(a)) {
|
|
3905
|
-
if (!
|
|
3905
|
+
if (!Ut(i, a))
|
|
3906
3906
|
return !1;
|
|
3907
3907
|
} else if (i !== a)
|
|
3908
3908
|
return !1;
|
|
@@ -3989,7 +3989,7 @@ class lc {
|
|
|
3989
3989
|
next: e,
|
|
3990
3990
|
error: n,
|
|
3991
3991
|
complete: r
|
|
3992
|
-
}, s.next === void 0 && (s.next =
|
|
3992
|
+
}, s.next === void 0 && (s.next = An), s.error === void 0 && (s.error = An), s.complete === void 0 && (s.complete = An);
|
|
3993
3993
|
const i = this.unsubscribeOne.bind(this, this.observers.length);
|
|
3994
3994
|
return this.finalized && this.task.then(() => {
|
|
3995
3995
|
try {
|
|
@@ -4035,7 +4035,7 @@ function Ac(t, e) {
|
|
|
4035
4035
|
return !0;
|
|
4036
4036
|
return !1;
|
|
4037
4037
|
}
|
|
4038
|
-
function
|
|
4038
|
+
function An() {
|
|
4039
4039
|
}
|
|
4040
4040
|
/**
|
|
4041
4041
|
* @license
|
|
@@ -4163,7 +4163,7 @@ class dc {
|
|
|
4163
4163
|
if (this.component)
|
|
4164
4164
|
throw Error(`Component for ${this.name} has already been provided`);
|
|
4165
4165
|
if (this.component = e, !!this.shouldAutoInitialize()) {
|
|
4166
|
-
if (
|
|
4166
|
+
if (mc(e))
|
|
4167
4167
|
try {
|
|
4168
4168
|
this.getOrInitializeService({ instanceIdentifier: Ne });
|
|
4169
4169
|
} catch {
|
|
@@ -4269,7 +4269,7 @@ class dc {
|
|
|
4269
4269
|
function hc(t) {
|
|
4270
4270
|
return t === Ne ? void 0 : t;
|
|
4271
4271
|
}
|
|
4272
|
-
function
|
|
4272
|
+
function mc(t) {
|
|
4273
4273
|
return t.instantiationMode === "EAGER";
|
|
4274
4274
|
}
|
|
4275
4275
|
/**
|
|
@@ -4288,7 +4288,7 @@ function fc(t) {
|
|
|
4288
4288
|
* See the License for the specific language governing permissions and
|
|
4289
4289
|
* limitations under the License.
|
|
4290
4290
|
*/
|
|
4291
|
-
class
|
|
4291
|
+
class fc {
|
|
4292
4292
|
constructor(e) {
|
|
4293
4293
|
this.name = e, this.providers = /* @__PURE__ */ new Map();
|
|
4294
4294
|
}
|
|
@@ -4442,7 +4442,7 @@ function Bc() {
|
|
|
4442
4442
|
IDBCursor.prototype.continuePrimaryKey
|
|
4443
4443
|
]);
|
|
4444
4444
|
}
|
|
4445
|
-
const Hs = /* @__PURE__ */ new WeakMap(),
|
|
4445
|
+
const Hs = /* @__PURE__ */ new WeakMap(), Dn = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), dn = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap();
|
|
4446
4446
|
function Dc(t) {
|
|
4447
4447
|
const e = new Promise((n, r) => {
|
|
4448
4448
|
const s = () => {
|
|
@@ -4460,7 +4460,7 @@ function Dc(t) {
|
|
|
4460
4460
|
}), Un.set(e, t), e;
|
|
4461
4461
|
}
|
|
4462
4462
|
function Cc(t) {
|
|
4463
|
-
if (
|
|
4463
|
+
if (Dn.has(t))
|
|
4464
4464
|
return;
|
|
4465
4465
|
const e = new Promise((n, r) => {
|
|
4466
4466
|
const s = () => {
|
|
@@ -4472,13 +4472,13 @@ function Cc(t) {
|
|
|
4472
4472
|
};
|
|
4473
4473
|
t.addEventListener("complete", i), t.addEventListener("error", a), t.addEventListener("abort", a);
|
|
4474
4474
|
});
|
|
4475
|
-
|
|
4475
|
+
Dn.set(t, e);
|
|
4476
4476
|
}
|
|
4477
|
-
let
|
|
4477
|
+
let Cn = {
|
|
4478
4478
|
get(t, e, n) {
|
|
4479
4479
|
if (t instanceof IDBTransaction) {
|
|
4480
4480
|
if (e === "done")
|
|
4481
|
-
return
|
|
4481
|
+
return Dn.get(t);
|
|
4482
4482
|
if (e === "objectStoreNames")
|
|
4483
4483
|
return t.objectStoreNames || Qs.get(t);
|
|
4484
4484
|
if (e === "store")
|
|
@@ -4494,30 +4494,30 @@ let En = {
|
|
|
4494
4494
|
}
|
|
4495
4495
|
};
|
|
4496
4496
|
function Ec(t) {
|
|
4497
|
-
|
|
4497
|
+
Cn = t(Cn);
|
|
4498
4498
|
}
|
|
4499
4499
|
function Mc(t) {
|
|
4500
4500
|
return t === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...n) {
|
|
4501
|
-
const r = t.call(
|
|
4501
|
+
const r = t.call(hn(this), e, ...n);
|
|
4502
4502
|
return Qs.set(r, e.sort ? e.sort() : [e]), Fe(r);
|
|
4503
4503
|
} : Bc().includes(t) ? function(...e) {
|
|
4504
|
-
return t.apply(
|
|
4504
|
+
return t.apply(hn(this), e), Fe(Hs.get(this));
|
|
4505
4505
|
} : function(...e) {
|
|
4506
|
-
return Fe(t.apply(
|
|
4506
|
+
return Fe(t.apply(hn(this), e));
|
|
4507
4507
|
};
|
|
4508
4508
|
}
|
|
4509
4509
|
function Ic(t) {
|
|
4510
|
-
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), wc(t, vc()) ? new Proxy(t,
|
|
4510
|
+
return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), wc(t, vc()) ? new Proxy(t, Cn) : t);
|
|
4511
4511
|
}
|
|
4512
4512
|
function Fe(t) {
|
|
4513
4513
|
if (t instanceof IDBRequest)
|
|
4514
4514
|
return Dc(t);
|
|
4515
|
-
if (
|
|
4516
|
-
return
|
|
4515
|
+
if (dn.has(t))
|
|
4516
|
+
return dn.get(t);
|
|
4517
4517
|
const e = Ic(t);
|
|
4518
|
-
return e !== t && (
|
|
4518
|
+
return e !== t && (dn.set(t, e), Un.set(e, t)), e;
|
|
4519
4519
|
}
|
|
4520
|
-
const
|
|
4520
|
+
const hn = (t) => Un.get(t);
|
|
4521
4521
|
function Pc(t, e, { blocked: n, upgrade: r, blocking: s, terminated: i } = {}) {
|
|
4522
4522
|
const a = indexedDB.open(t, e), c = Fe(a);
|
|
4523
4523
|
return r && a.addEventListener("upgradeneeded", (l) => {
|
|
@@ -4595,7 +4595,7 @@ function jc(t) {
|
|
|
4595
4595
|
const e = t.getComponent();
|
|
4596
4596
|
return (e == null ? void 0 : e.type) === "VERSION";
|
|
4597
4597
|
}
|
|
4598
|
-
const
|
|
4598
|
+
const En = "@firebase/app", hr = "0.10.13";
|
|
4599
4599
|
/**
|
|
4600
4600
|
* @license
|
|
4601
4601
|
* Copyright 2019 Google LLC
|
|
@@ -4629,8 +4629,8 @@ const ve = new Ns("@firebase/app"), Yc = "@firebase/app-compat", Vc = "@firebase
|
|
|
4629
4629
|
* See the License for the specific language governing permissions and
|
|
4630
4630
|
* limitations under the License.
|
|
4631
4631
|
*/
|
|
4632
|
-
const
|
|
4633
|
-
[
|
|
4632
|
+
const Mn = "[DEFAULT]", au = {
|
|
4633
|
+
[En]: "fire-core",
|
|
4634
4634
|
[Yc]: "fire-core-compat",
|
|
4635
4635
|
[xc]: "fire-analytics",
|
|
4636
4636
|
[Vc]: "fire-analytics-compat",
|
|
@@ -4675,8 +4675,8 @@ const In = "[DEFAULT]", au = {
|
|
|
4675
4675
|
* See the License for the specific language governing permissions and
|
|
4676
4676
|
* limitations under the License.
|
|
4677
4677
|
*/
|
|
4678
|
-
const
|
|
4679
|
-
function
|
|
4678
|
+
const Wt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), In = /* @__PURE__ */ new Map();
|
|
4679
|
+
function mr(t, e) {
|
|
4680
4680
|
try {
|
|
4681
4681
|
t.container.addComponent(e);
|
|
4682
4682
|
} catch (n) {
|
|
@@ -4685,13 +4685,13 @@ function fr(t, e) {
|
|
|
4685
4685
|
}
|
|
4686
4686
|
function bt(t) {
|
|
4687
4687
|
const e = t.name;
|
|
4688
|
-
if (
|
|
4688
|
+
if (In.has(e))
|
|
4689
4689
|
return ve.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
4690
|
-
|
|
4691
|
-
for (const n of
|
|
4692
|
-
|
|
4690
|
+
In.set(e, t);
|
|
4691
|
+
for (const n of Wt.values())
|
|
4692
|
+
mr(n, t);
|
|
4693
4693
|
for (const n of ou.values())
|
|
4694
|
-
|
|
4694
|
+
mr(n, t);
|
|
4695
4695
|
return !0;
|
|
4696
4696
|
}
|
|
4697
4697
|
function Xs(t, e) {
|
|
@@ -4811,7 +4811,7 @@ const Ot = iu;
|
|
|
4811
4811
|
function Ss(t, e = {}) {
|
|
4812
4812
|
let n = t;
|
|
4813
4813
|
typeof e != "object" && (e = { name: e });
|
|
4814
|
-
const r = Object.assign({ name:
|
|
4814
|
+
const r = Object.assign({ name: Mn, automaticDataCollectionEnabled: !1 }, e), s = r.name;
|
|
4815
4815
|
if (typeof s != "string" || !s)
|
|
4816
4816
|
throw ke.create("bad-app-name", {
|
|
4817
4817
|
appName: String(s)
|
|
@@ -4821,21 +4821,21 @@ function Ss(t, e = {}) {
|
|
|
4821
4821
|
"no-options"
|
|
4822
4822
|
/* AppError.NO_OPTIONS */
|
|
4823
4823
|
);
|
|
4824
|
-
const i =
|
|
4824
|
+
const i = Wt.get(s);
|
|
4825
4825
|
if (i) {
|
|
4826
|
-
if (
|
|
4826
|
+
if (Ut(n, i.options) && Ut(r, i.config))
|
|
4827
4827
|
return i;
|
|
4828
4828
|
throw ke.create("duplicate-app", { appName: s });
|
|
4829
4829
|
}
|
|
4830
|
-
const a = new
|
|
4831
|
-
for (const l of
|
|
4830
|
+
const a = new fc(s);
|
|
4831
|
+
for (const l of In.values())
|
|
4832
4832
|
a.addComponent(l);
|
|
4833
4833
|
const c = new uu(n, r, a);
|
|
4834
|
-
return
|
|
4834
|
+
return Wt.set(s, c), c;
|
|
4835
4835
|
}
|
|
4836
|
-
function lu(t =
|
|
4837
|
-
const e =
|
|
4838
|
-
if (!e && t ===
|
|
4836
|
+
function lu(t = Mn) {
|
|
4837
|
+
const e = Wt.get(t);
|
|
4838
|
+
if (!e && t === Mn && Rs())
|
|
4839
4839
|
return Ss();
|
|
4840
4840
|
if (!e)
|
|
4841
4841
|
throw ke.create("no-app", { appName: t });
|
|
@@ -4877,9 +4877,9 @@ function $e(t, e, n) {
|
|
|
4877
4877
|
* limitations under the License.
|
|
4878
4878
|
*/
|
|
4879
4879
|
const Au = "firebase-heartbeat-database", du = 1, wt = "firebase-heartbeat-store";
|
|
4880
|
-
let
|
|
4880
|
+
let fn = null;
|
|
4881
4881
|
function Us() {
|
|
4882
|
-
return
|
|
4882
|
+
return fn || (fn = Pc(Au, du, {
|
|
4883
4883
|
upgrade: (t, e) => {
|
|
4884
4884
|
switch (e) {
|
|
4885
4885
|
case 0:
|
|
@@ -4894,7 +4894,7 @@ function Us() {
|
|
|
4894
4894
|
throw ke.create("idb-open", {
|
|
4895
4895
|
originalErrorMessage: t.message
|
|
4896
4896
|
});
|
|
4897
|
-
})),
|
|
4897
|
+
})), fn;
|
|
4898
4898
|
}
|
|
4899
4899
|
async function hu(t) {
|
|
4900
4900
|
try {
|
|
@@ -4911,7 +4911,7 @@ async function hu(t) {
|
|
|
4911
4911
|
}
|
|
4912
4912
|
}
|
|
4913
4913
|
}
|
|
4914
|
-
async function
|
|
4914
|
+
async function fr(t, e) {
|
|
4915
4915
|
try {
|
|
4916
4916
|
const r = (await Us()).transaction(wt, "readwrite");
|
|
4917
4917
|
await r.objectStore(wt).put(e, Ws(t)), await r.done;
|
|
@@ -4945,7 +4945,7 @@ function Ws(t) {
|
|
|
4945
4945
|
* See the License for the specific language governing permissions and
|
|
4946
4946
|
* limitations under the License.
|
|
4947
4947
|
*/
|
|
4948
|
-
const
|
|
4948
|
+
const mu = 1024, fu = 30 * 24 * 60 * 60 * 1e3;
|
|
4949
4949
|
class gu {
|
|
4950
4950
|
constructor(e) {
|
|
4951
4951
|
this.container = e, this._heartbeatsCache = null;
|
|
@@ -4965,7 +4965,7 @@ class gu {
|
|
|
4965
4965
|
const s = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), i = gr();
|
|
4966
4966
|
return ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((n = this._heartbeatsCache) === null || n === void 0 ? void 0 : n.heartbeats) == null) || this._heartbeatsCache.lastSentHeartbeatDate === i || this._heartbeatsCache.heartbeats.some((a) => a.date === i) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: i, agent: s }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((a) => {
|
|
4967
4967
|
const c = new Date(a.date).valueOf();
|
|
4968
|
-
return Date.now() - c <=
|
|
4968
|
+
return Date.now() - c <= fu;
|
|
4969
4969
|
}), this._storage.overwrite(this._heartbeatsCache));
|
|
4970
4970
|
} catch (r) {
|
|
4971
4971
|
ve.warn(r);
|
|
@@ -4993,7 +4993,7 @@ class gu {
|
|
|
4993
4993
|
function gr() {
|
|
4994
4994
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
|
4995
4995
|
}
|
|
4996
|
-
function pu(t, e =
|
|
4996
|
+
function pu(t, e = mu) {
|
|
4997
4997
|
const n = [];
|
|
4998
4998
|
let r = t.slice();
|
|
4999
4999
|
for (const s of t) {
|
|
@@ -5039,7 +5039,7 @@ class yu {
|
|
|
5039
5039
|
var n;
|
|
5040
5040
|
if (await this._canUseIndexedDBPromise) {
|
|
5041
5041
|
const s = await this.read();
|
|
5042
|
-
return
|
|
5042
|
+
return fr(this.app, {
|
|
5043
5043
|
lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
|
|
5044
5044
|
heartbeats: e.heartbeats
|
|
5045
5045
|
});
|
|
@@ -5051,7 +5051,7 @@ class yu {
|
|
|
5051
5051
|
var n;
|
|
5052
5052
|
if (await this._canUseIndexedDBPromise) {
|
|
5053
5053
|
const s = await this.read();
|
|
5054
|
-
return
|
|
5054
|
+
return fr(this.app, {
|
|
5055
5055
|
lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
|
|
5056
5056
|
heartbeats: [
|
|
5057
5057
|
...s.heartbeats,
|
|
@@ -5095,7 +5095,7 @@ function bu(t) {
|
|
|
5095
5095
|
(e) => new gu(e),
|
|
5096
5096
|
"PRIVATE"
|
|
5097
5097
|
/* ComponentType.PRIVATE */
|
|
5098
|
-
)), $e(
|
|
5098
|
+
)), $e(En, hr, t), $e(En, hr, "esm2017"), $e("fire-js", "");
|
|
5099
5099
|
}
|
|
5100
5100
|
bu("");
|
|
5101
5101
|
var wu = "firebase", vu = "10.14.1";
|
|
@@ -5155,12 +5155,12 @@ const Bu = zs, Zs = new It("auth", "Firebase", zs());
|
|
|
5155
5155
|
* See the License for the specific language governing permissions and
|
|
5156
5156
|
* limitations under the License.
|
|
5157
5157
|
*/
|
|
5158
|
-
const
|
|
5158
|
+
const zt = new Ns("@firebase/auth");
|
|
5159
5159
|
function Du(t, ...e) {
|
|
5160
|
-
|
|
5160
|
+
zt.logLevel <= F.WARN && zt.warn(`Auth (${Ot}): ${t}`, ...e);
|
|
5161
5161
|
}
|
|
5162
5162
|
function qt(t, ...e) {
|
|
5163
|
-
|
|
5163
|
+
zt.logLevel <= F.ERROR && zt.error(`Auth (${Ot}): ${t}`, ...e);
|
|
5164
5164
|
}
|
|
5165
5165
|
/**
|
|
5166
5166
|
* @license
|
|
@@ -5227,7 +5227,7 @@ function De(t, e) {
|
|
|
5227
5227
|
* See the License for the specific language governing permissions and
|
|
5228
5228
|
* limitations under the License.
|
|
5229
5229
|
*/
|
|
5230
|
-
function
|
|
5230
|
+
function Pn() {
|
|
5231
5231
|
var t;
|
|
5232
5232
|
return typeof self < "u" && ((t = self.location) === null || t === void 0 ? void 0 : t.href) || "";
|
|
5233
5233
|
}
|
|
@@ -5481,10 +5481,10 @@ const Iu = {
|
|
|
5481
5481
|
* limitations under the License.
|
|
5482
5482
|
*/
|
|
5483
5483
|
const Pu = new Tt(3e4, 6e4);
|
|
5484
|
-
function
|
|
5484
|
+
function nn(t, e) {
|
|
5485
5485
|
return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
|
|
5486
5486
|
}
|
|
5487
|
-
async function
|
|
5487
|
+
async function mt(t, e, n, r, s = {}) {
|
|
5488
5488
|
return Js(t, s, async () => {
|
|
5489
5489
|
let i = {}, a = {};
|
|
5490
5490
|
r && (e === "GET" ? a = r : i = {
|
|
@@ -5527,10 +5527,10 @@ async function Js(t, e, n) {
|
|
|
5527
5527
|
throw Ft(t, "email-already-in-use", a);
|
|
5528
5528
|
if (l === "USER_DISABLED")
|
|
5529
5529
|
throw Ft(t, "user-disabled", a);
|
|
5530
|
-
const
|
|
5530
|
+
const f = r[l] || l.toLowerCase().replace(/[_\s]+/g, "-");
|
|
5531
5531
|
if (A)
|
|
5532
|
-
throw Ls(t,
|
|
5533
|
-
Be(t,
|
|
5532
|
+
throw Ls(t, f, A);
|
|
5533
|
+
Be(t, f);
|
|
5534
5534
|
}
|
|
5535
5535
|
} catch (s) {
|
|
5536
5536
|
if (s instanceof qe)
|
|
@@ -5539,7 +5539,7 @@ async function Js(t, e, n) {
|
|
|
5539
5539
|
}
|
|
5540
5540
|
}
|
|
5541
5541
|
async function _s(t, e, n, r, s = {}) {
|
|
5542
|
-
const i = await
|
|
5542
|
+
const i = await mt(t, e, n, r, s);
|
|
5543
5543
|
return "mfaPendingCredential" in i && Be(t, "multi-factor-auth-required", {
|
|
5544
5544
|
_serverResponse: i
|
|
5545
5545
|
}), i;
|
|
@@ -5587,10 +5587,10 @@ function Ft(t, e, n) {
|
|
|
5587
5587
|
* limitations under the License.
|
|
5588
5588
|
*/
|
|
5589
5589
|
async function Tu(t, e) {
|
|
5590
|
-
return
|
|
5590
|
+
return mt(t, "POST", "/v1/accounts:delete", e);
|
|
5591
5591
|
}
|
|
5592
5592
|
async function ei(t, e) {
|
|
5593
|
-
return
|
|
5593
|
+
return mt(t, "POST", "/v1/accounts:lookup", e);
|
|
5594
5594
|
}
|
|
5595
5595
|
/**
|
|
5596
5596
|
* @license
|
|
@@ -5629,14 +5629,14 @@ async function Gu(t, e = !1) {
|
|
|
5629
5629
|
return {
|
|
5630
5630
|
claims: s,
|
|
5631
5631
|
token: r,
|
|
5632
|
-
authTime: yt(
|
|
5633
|
-
issuedAtTime: yt(
|
|
5634
|
-
expirationTime: yt(
|
|
5632
|
+
authTime: yt(gn(s.auth_time)),
|
|
5633
|
+
issuedAtTime: yt(gn(s.iat)),
|
|
5634
|
+
expirationTime: yt(gn(s.exp)),
|
|
5635
5635
|
signInProvider: a || null,
|
|
5636
5636
|
signInSecondFactor: (i == null ? void 0 : i.sign_in_second_factor) || null
|
|
5637
5637
|
};
|
|
5638
5638
|
}
|
|
5639
|
-
function
|
|
5639
|
+
function gn(t) {
|
|
5640
5640
|
return Number(t) * 1e3;
|
|
5641
5641
|
}
|
|
5642
5642
|
function Ln(t) {
|
|
@@ -5772,7 +5772,7 @@ class Yu {
|
|
|
5772
5772
|
* See the License for the specific language governing permissions and
|
|
5773
5773
|
* limitations under the License.
|
|
5774
5774
|
*/
|
|
5775
|
-
class
|
|
5775
|
+
class On {
|
|
5776
5776
|
constructor(e, n) {
|
|
5777
5777
|
this.createdAt = e, this.lastLoginAt = n, this._initializeTime();
|
|
5778
5778
|
}
|
|
@@ -5805,7 +5805,7 @@ class Tn {
|
|
|
5805
5805
|
* See the License for the specific language governing permissions and
|
|
5806
5806
|
* limitations under the License.
|
|
5807
5807
|
*/
|
|
5808
|
-
async function
|
|
5808
|
+
async function Zt(t) {
|
|
5809
5809
|
var e;
|
|
5810
5810
|
const n = t.auth, r = await t.getIdToken(), s = await vt(t, ei(n, { idToken: r }));
|
|
5811
5811
|
M(
|
|
@@ -5816,7 +5816,7 @@ async function Lt(t) {
|
|
|
5816
5816
|
);
|
|
5817
5817
|
const i = s.users[0];
|
|
5818
5818
|
t._notifyReloadListener(i);
|
|
5819
|
-
const a = !((e = i.providerUserInfo) === null || e === void 0) && e.length ? ti(i.providerUserInfo) : [], c = xu(t.providerData, a), l = t.isAnonymous, A = !(t.email && i.passwordHash) && !(c != null && c.length),
|
|
5819
|
+
const a = !((e = i.providerUserInfo) === null || e === void 0) && e.length ? ti(i.providerUserInfo) : [], c = xu(t.providerData, a), l = t.isAnonymous, A = !(t.email && i.passwordHash) && !(c != null && c.length), f = l ? A : !1, p = {
|
|
5820
5820
|
uid: i.localId,
|
|
5821
5821
|
displayName: i.displayName || null,
|
|
5822
5822
|
photoURL: i.photoUrl || null,
|
|
@@ -5825,14 +5825,14 @@ async function Lt(t) {
|
|
|
5825
5825
|
phoneNumber: i.phoneNumber || null,
|
|
5826
5826
|
tenantId: i.tenantId || null,
|
|
5827
5827
|
providerData: c,
|
|
5828
|
-
metadata: new
|
|
5829
|
-
isAnonymous:
|
|
5828
|
+
metadata: new On(i.createdAt, i.lastLoginAt),
|
|
5829
|
+
isAnonymous: f
|
|
5830
5830
|
};
|
|
5831
5831
|
Object.assign(t, p);
|
|
5832
5832
|
}
|
|
5833
5833
|
async function Vu(t) {
|
|
5834
5834
|
const e = ht(t);
|
|
5835
|
-
await
|
|
5835
|
+
await Zt(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
5836
5836
|
}
|
|
5837
5837
|
function xu(t, e) {
|
|
5838
5838
|
return [...t.filter((r) => !e.some((s) => s.providerId === r.providerId)), ...e];
|
|
@@ -5888,7 +5888,7 @@ async function Fu(t, e) {
|
|
|
5888
5888
|
};
|
|
5889
5889
|
}
|
|
5890
5890
|
async function ku(t, e) {
|
|
5891
|
-
return
|
|
5891
|
+
return mt(t, "POST", "/v2/accounts:revokeToken", nn(t, e));
|
|
5892
5892
|
}
|
|
5893
5893
|
/**
|
|
5894
5894
|
* @license
|
|
@@ -6006,7 +6006,7 @@ function Ee(t, e) {
|
|
|
6006
6006
|
class be {
|
|
6007
6007
|
constructor(e) {
|
|
6008
6008
|
var { uid: n, auth: r, stsTokenManager: s } = e, i = Wn(e, ["uid", "auth", "stsTokenManager"]);
|
|
6009
|
-
this.providerId = "firebase", this.proactiveRefresh = new Yu(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = s, this.accessToken = s.accessToken, this.displayName = i.displayName || null, this.email = i.email || null, this.emailVerified = i.emailVerified || !1, this.phoneNumber = i.phoneNumber || null, this.photoURL = i.photoURL || null, this.isAnonymous = i.isAnonymous || !1, this.tenantId = i.tenantId || null, this.providerData = i.providerData ? [...i.providerData] : [], this.metadata = new
|
|
6009
|
+
this.providerId = "firebase", this.proactiveRefresh = new Yu(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = s, this.accessToken = s.accessToken, this.displayName = i.displayName || null, this.email = i.email || null, this.emailVerified = i.emailVerified || !1, this.phoneNumber = i.phoneNumber || null, this.photoURL = i.photoURL || null, this.isAnonymous = i.isAnonymous || !1, this.tenantId = i.tenantId || null, this.providerData = i.providerData ? [...i.providerData] : [], this.metadata = new On(i.createdAt || void 0, i.lastLoginAt || void 0);
|
|
6010
6010
|
}
|
|
6011
6011
|
async getIdToken(e) {
|
|
6012
6012
|
const n = await vt(this, this.stsTokenManager.getToken(this.auth, e));
|
|
@@ -6054,7 +6054,7 @@ class be {
|
|
|
6054
6054
|
}
|
|
6055
6055
|
async _updateTokensIfNecessary(e, n = !1) {
|
|
6056
6056
|
let r = !1;
|
|
6057
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await
|
|
6057
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await Zt(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
|
6058
6058
|
}
|
|
6059
6059
|
async delete() {
|
|
6060
6060
|
if (pe(this.auth.app))
|
|
@@ -6087,8 +6087,8 @@ class be {
|
|
|
6087
6087
|
return this.stsTokenManager.refreshToken || "";
|
|
6088
6088
|
}
|
|
6089
6089
|
static _fromJSON(e, n) {
|
|
6090
|
-
var r, s, i, a, c, l, A,
|
|
6091
|
-
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0, v = (i = n.phoneNumber) !== null && i !== void 0 ? i : void 0, O = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, I = (c = n.tenantId) !== null && c !== void 0 ? c : void 0, V = (l = n._redirectEventId) !== null && l !== void 0 ? l : void 0, R = (A = n.createdAt) !== null && A !== void 0 ? A : void 0, Q = (
|
|
6090
|
+
var r, s, i, a, c, l, A, f;
|
|
6091
|
+
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0, v = (i = n.phoneNumber) !== null && i !== void 0 ? i : void 0, O = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, I = (c = n.tenantId) !== null && c !== void 0 ? c : void 0, V = (l = n._redirectEventId) !== null && l !== void 0 ? l : void 0, R = (A = n.createdAt) !== null && A !== void 0 ? A : void 0, Q = (f = n.lastLoginAt) !== null && f !== void 0 ? f : void 0, { uid: Y, emailVerified: w, isAnonymous: H, providerData: U, stsTokenManager: ee } = n;
|
|
6092
6092
|
M(
|
|
6093
6093
|
Y && ee,
|
|
6094
6094
|
e,
|
|
@@ -6126,7 +6126,7 @@ class be {
|
|
|
6126
6126
|
createdAt: R,
|
|
6127
6127
|
lastLoginAt: Q
|
|
6128
6128
|
});
|
|
6129
|
-
return U && Array.isArray(U) && (u.providerData = U.map((
|
|
6129
|
+
return U && Array.isArray(U) && (u.providerData = U.map((m) => Object.assign({}, m))), V && (u._redirectEventId = V), u;
|
|
6130
6130
|
}
|
|
6131
6131
|
/**
|
|
6132
6132
|
* Initialize a User from an idToken server response
|
|
@@ -6142,7 +6142,7 @@ class be {
|
|
|
6142
6142
|
stsTokenManager: s,
|
|
6143
6143
|
isAnonymous: r
|
|
6144
6144
|
});
|
|
6145
|
-
return await
|
|
6145
|
+
return await Zt(i), i;
|
|
6146
6146
|
}
|
|
6147
6147
|
/**
|
|
6148
6148
|
* Initialize a User from an idToken server response
|
|
@@ -6172,7 +6172,7 @@ class be {
|
|
|
6172
6172
|
phoneNumber: s.phoneNumber || null,
|
|
6173
6173
|
tenantId: s.tenantId || null,
|
|
6174
6174
|
providerData: i,
|
|
6175
|
-
metadata: new
|
|
6175
|
+
metadata: new On(s.createdAt, s.lastLoginAt),
|
|
6176
6176
|
isAnonymous: !(s.email && s.passwordHash) && !(i != null && i.length)
|
|
6177
6177
|
};
|
|
6178
6178
|
return Object.assign(l, A), l;
|
|
@@ -6300,9 +6300,9 @@ class tt {
|
|
|
6300
6300
|
let c = null;
|
|
6301
6301
|
for (const A of n)
|
|
6302
6302
|
try {
|
|
6303
|
-
const
|
|
6304
|
-
if (
|
|
6305
|
-
const p = be._fromJSON(e,
|
|
6303
|
+
const f = await A._get(a);
|
|
6304
|
+
if (f) {
|
|
6305
|
+
const p = be._fromJSON(e, f);
|
|
6306
6306
|
A !== i && (c = p), i = A;
|
|
6307
6307
|
break;
|
|
6308
6308
|
}
|
|
@@ -6503,7 +6503,7 @@ class Nu {
|
|
|
6503
6503
|
* limitations under the License.
|
|
6504
6504
|
*/
|
|
6505
6505
|
async function Hu(t, e = {}) {
|
|
6506
|
-
return
|
|
6506
|
+
return mt(t, "GET", "/v2/passwordPolicy", nn(t, e));
|
|
6507
6507
|
}
|
|
6508
6508
|
/**
|
|
6509
6509
|
* @license
|
|
@@ -6697,7 +6697,7 @@ class Su {
|
|
|
6697
6697
|
}
|
|
6698
6698
|
async reloadAndSetCurrentUserOrClear(e) {
|
|
6699
6699
|
try {
|
|
6700
|
-
await
|
|
6700
|
+
await Zt(e);
|
|
6701
6701
|
} catch (n) {
|
|
6702
6702
|
if ((n == null ? void 0 : n.code) !== "auth/network-request-failed")
|
|
6703
6703
|
return this.directlySetCurrentUser(null);
|
|
@@ -6942,7 +6942,7 @@ class Su {
|
|
|
6942
6942
|
return n != null && n.error && Du(`Error while retrieving App Check token: ${n.error}`), n == null ? void 0 : n.token;
|
|
6943
6943
|
}
|
|
6944
6944
|
}
|
|
6945
|
-
function
|
|
6945
|
+
function rn(t) {
|
|
6946
6946
|
return ht(t);
|
|
6947
6947
|
}
|
|
6948
6948
|
class Cr {
|
|
@@ -7014,7 +7014,7 @@ function Lu(t, e) {
|
|
|
7014
7014
|
const n = Xs(t, "auth");
|
|
7015
7015
|
if (n.isInitialized()) {
|
|
7016
7016
|
const s = n.getImmediate(), i = n.getOptions();
|
|
7017
|
-
if (
|
|
7017
|
+
if (Ut(i, e ?? {}))
|
|
7018
7018
|
return s;
|
|
7019
7019
|
Be(
|
|
7020
7020
|
s,
|
|
@@ -7029,7 +7029,7 @@ function Ku(t, e) {
|
|
|
7029
7029
|
e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
7030
7030
|
}
|
|
7031
7031
|
function Ju(t, e, n) {
|
|
7032
|
-
const r =
|
|
7032
|
+
const r = rn(t);
|
|
7033
7033
|
M(
|
|
7034
7034
|
r._canInitEmulator,
|
|
7035
7035
|
r,
|
|
@@ -7138,7 +7138,7 @@ class hi {
|
|
|
7138
7138
|
* limitations under the License.
|
|
7139
7139
|
*/
|
|
7140
7140
|
async function nt(t, e) {
|
|
7141
|
-
return _s(t, "POST", "/v1/accounts:signInWithIdp",
|
|
7141
|
+
return _s(t, "POST", "/v1/accounts:signInWithIdp", nn(t, e));
|
|
7142
7142
|
}
|
|
7143
7143
|
/**
|
|
7144
7144
|
* @license
|
|
@@ -7242,7 +7242,7 @@ class Ze extends hi {
|
|
|
7242
7242
|
* See the License for the specific language governing permissions and
|
|
7243
7243
|
* limitations under the License.
|
|
7244
7244
|
*/
|
|
7245
|
-
class
|
|
7245
|
+
class mi {
|
|
7246
7246
|
/**
|
|
7247
7247
|
* Constructor for generic OAuth providers.
|
|
7248
7248
|
*
|
|
@@ -7295,7 +7295,7 @@ class fi {
|
|
|
7295
7295
|
* See the License for the specific language governing permissions and
|
|
7296
7296
|
* limitations under the License.
|
|
7297
7297
|
*/
|
|
7298
|
-
class Gt extends
|
|
7298
|
+
class Gt extends mi {
|
|
7299
7299
|
constructor() {
|
|
7300
7300
|
super(...arguments), this.scopes = [];
|
|
7301
7301
|
}
|
|
@@ -7657,10 +7657,10 @@ function Mr(t) {
|
|
|
7657
7657
|
* See the License for the specific language governing permissions and
|
|
7658
7658
|
* limitations under the License.
|
|
7659
7659
|
*/
|
|
7660
|
-
class
|
|
7660
|
+
class Lt extends qe {
|
|
7661
7661
|
constructor(e, n, r, s) {
|
|
7662
7662
|
var i;
|
|
7663
|
-
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this,
|
|
7663
|
+
super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, Lt.prototype), this.customData = {
|
|
7664
7664
|
appName: e.name,
|
|
7665
7665
|
tenantId: (i = e.tenantId) !== null && i !== void 0 ? i : void 0,
|
|
7666
7666
|
_serverResponse: n.customData._serverResponse,
|
|
@@ -7668,12 +7668,12 @@ class Kt extends qe {
|
|
|
7668
7668
|
};
|
|
7669
7669
|
}
|
|
7670
7670
|
static _fromErrorAndOperation(e, n, r, s) {
|
|
7671
|
-
return new
|
|
7671
|
+
return new Lt(e, n, r, s);
|
|
7672
7672
|
}
|
|
7673
7673
|
}
|
|
7674
|
-
function
|
|
7674
|
+
function fi(t, e, n, r) {
|
|
7675
7675
|
return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((i) => {
|
|
7676
|
-
throw i.code === "auth/multi-factor-auth-required" ?
|
|
7676
|
+
throw i.code === "auth/multi-factor-auth-required" ? Lt._fromErrorAndOperation(t, i, e, r) : i;
|
|
7677
7677
|
});
|
|
7678
7678
|
}
|
|
7679
7679
|
async function tl(t, e, n = !1) {
|
|
@@ -7702,7 +7702,7 @@ async function nl(t, e, n = !1) {
|
|
|
7702
7702
|
return Promise.reject(Re(r));
|
|
7703
7703
|
const s = "reauthenticate";
|
|
7704
7704
|
try {
|
|
7705
|
-
const i = await vt(t,
|
|
7705
|
+
const i = await vt(t, fi(r, s, e, t), n);
|
|
7706
7706
|
M(
|
|
7707
7707
|
i.idToken,
|
|
7708
7708
|
r,
|
|
@@ -7750,7 +7750,7 @@ async function nl(t, e, n = !1) {
|
|
|
7750
7750
|
async function rl(t, e, n = !1) {
|
|
7751
7751
|
if (pe(t.app))
|
|
7752
7752
|
return Promise.reject(Re(t));
|
|
7753
|
-
const r = "signIn", s = await
|
|
7753
|
+
const r = "signIn", s = await fi(t, r, e), i = await Le._fromIdTokenResponse(t, r, s);
|
|
7754
7754
|
return n || await t._updateCurrentUser(i.user), i;
|
|
7755
7755
|
}
|
|
7756
7756
|
/**
|
|
@@ -7770,7 +7770,7 @@ async function rl(t, e, n = !1) {
|
|
|
7770
7770
|
* limitations under the License.
|
|
7771
7771
|
*/
|
|
7772
7772
|
async function sl(t, e) {
|
|
7773
|
-
return _s(t, "POST", "/v1/accounts:signInWithCustomToken",
|
|
7773
|
+
return _s(t, "POST", "/v1/accounts:signInWithCustomToken", nn(t, e));
|
|
7774
7774
|
}
|
|
7775
7775
|
/**
|
|
7776
7776
|
* @license
|
|
@@ -7791,7 +7791,7 @@ async function sl(t, e) {
|
|
|
7791
7791
|
async function il(t, e) {
|
|
7792
7792
|
if (pe(t.app))
|
|
7793
7793
|
return Promise.reject(Re(t));
|
|
7794
|
-
const n =
|
|
7794
|
+
const n = rn(t), r = await sl(n, {
|
|
7795
7795
|
token: e,
|
|
7796
7796
|
returnSecureToken: !0
|
|
7797
7797
|
}), s = await Le._fromIdTokenResponse(n, "signIn", r);
|
|
@@ -7803,7 +7803,7 @@ function al(t, e, n, r) {
|
|
|
7803
7803
|
function ol(t, e, n) {
|
|
7804
7804
|
return ht(t).beforeAuthStateChanged(e, n);
|
|
7805
7805
|
}
|
|
7806
|
-
const
|
|
7806
|
+
const Kt = "__sak";
|
|
7807
7807
|
/**
|
|
7808
7808
|
* @license
|
|
7809
7809
|
* Copyright 2019 Google LLC
|
|
@@ -7826,7 +7826,7 @@ class gi {
|
|
|
7826
7826
|
}
|
|
7827
7827
|
_isAvailable() {
|
|
7828
7828
|
try {
|
|
7829
|
-
return this.storage ? (this.storage.setItem(
|
|
7829
|
+
return this.storage ? (this.storage.setItem(Kt, "1"), this.storage.removeItem(Kt), Promise.resolve(!0)) : Promise.resolve(!1);
|
|
7830
7830
|
} catch {
|
|
7831
7831
|
return Promise.resolve(!1);
|
|
7832
7832
|
}
|
|
@@ -8020,7 +8020,7 @@ function Al(t) {
|
|
|
8020
8020
|
* See the License for the specific language governing permissions and
|
|
8021
8021
|
* limitations under the License.
|
|
8022
8022
|
*/
|
|
8023
|
-
class
|
|
8023
|
+
class sn {
|
|
8024
8024
|
constructor(e) {
|
|
8025
8025
|
this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
|
|
8026
8026
|
}
|
|
@@ -8034,7 +8034,7 @@ class an {
|
|
|
8034
8034
|
const n = this.receivers.find((s) => s.isListeningto(e));
|
|
8035
8035
|
if (n)
|
|
8036
8036
|
return n;
|
|
8037
|
-
const r = new
|
|
8037
|
+
const r = new sn(e);
|
|
8038
8038
|
return this.receivers.push(r), r;
|
|
8039
8039
|
}
|
|
8040
8040
|
isListeningto(e) {
|
|
@@ -8088,7 +8088,7 @@ class an {
|
|
|
8088
8088
|
this.handlersMap[e] && n && this.handlersMap[e].delete(n), (!n || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
|
|
8089
8089
|
}
|
|
8090
8090
|
}
|
|
8091
|
-
|
|
8091
|
+
sn.receivers = [];
|
|
8092
8092
|
/**
|
|
8093
8093
|
* @license
|
|
8094
8094
|
* Copyright 2020 Google LLC
|
|
@@ -8163,7 +8163,7 @@ class dl {
|
|
|
8163
8163
|
return new Promise((c, l) => {
|
|
8164
8164
|
const A = _n("", 20);
|
|
8165
8165
|
s.port1.start();
|
|
8166
|
-
const
|
|
8166
|
+
const f = setTimeout(() => {
|
|
8167
8167
|
l(new Error(
|
|
8168
8168
|
"unsupported_event"
|
|
8169
8169
|
/* _MessageError.UNSUPPORTED_EVENT */
|
|
@@ -8176,7 +8176,7 @@ class dl {
|
|
|
8176
8176
|
if (B.data.eventId === A)
|
|
8177
8177
|
switch (B.data.status) {
|
|
8178
8178
|
case "ack":
|
|
8179
|
-
clearTimeout(
|
|
8179
|
+
clearTimeout(f), i = setTimeout(
|
|
8180
8180
|
() => {
|
|
8181
8181
|
l(new Error(
|
|
8182
8182
|
"timeout"
|
|
@@ -8191,7 +8191,7 @@ class dl {
|
|
|
8191
8191
|
clearTimeout(i), c(B.data.response);
|
|
8192
8192
|
break;
|
|
8193
8193
|
default:
|
|
8194
|
-
clearTimeout(
|
|
8194
|
+
clearTimeout(f), clearTimeout(i), l(new Error(
|
|
8195
8195
|
"invalid_response"
|
|
8196
8196
|
/* _MessageError.INVALID_RESPONSE */
|
|
8197
8197
|
));
|
|
@@ -8249,7 +8249,7 @@ function hl(t) {
|
|
|
8249
8249
|
function wi() {
|
|
8250
8250
|
return typeof de().WorkerGlobalScope < "u" && typeof de().importScripts == "function";
|
|
8251
8251
|
}
|
|
8252
|
-
async function
|
|
8252
|
+
async function ml() {
|
|
8253
8253
|
if (!(navigator != null && navigator.serviceWorker))
|
|
8254
8254
|
return null;
|
|
8255
8255
|
try {
|
|
@@ -8258,7 +8258,7 @@ async function fl() {
|
|
|
8258
8258
|
return null;
|
|
8259
8259
|
}
|
|
8260
8260
|
}
|
|
8261
|
-
function
|
|
8261
|
+
function fl() {
|
|
8262
8262
|
var t;
|
|
8263
8263
|
return ((t = navigator == null ? void 0 : navigator.serviceWorker) === null || t === void 0 ? void 0 : t.controller) || null;
|
|
8264
8264
|
}
|
|
@@ -8281,7 +8281,7 @@ function gl() {
|
|
|
8281
8281
|
* See the License for the specific language governing permissions and
|
|
8282
8282
|
* limitations under the License.
|
|
8283
8283
|
*/
|
|
8284
|
-
const vi = "firebaseLocalStorageDb", pl = 1,
|
|
8284
|
+
const vi = "firebaseLocalStorageDb", pl = 1, Jt = "firebaseLocalStorage", Bi = "fbase_key";
|
|
8285
8285
|
class jt {
|
|
8286
8286
|
constructor(e) {
|
|
8287
8287
|
this.request = e;
|
|
@@ -8296,14 +8296,14 @@ class jt {
|
|
|
8296
8296
|
});
|
|
8297
8297
|
}
|
|
8298
8298
|
}
|
|
8299
|
-
function
|
|
8300
|
-
return t.transaction([
|
|
8299
|
+
function an(t, e) {
|
|
8300
|
+
return t.transaction([Jt], e ? "readwrite" : "readonly").objectStore(Jt);
|
|
8301
8301
|
}
|
|
8302
8302
|
function yl() {
|
|
8303
8303
|
const t = indexedDB.deleteDatabase(vi);
|
|
8304
8304
|
return new jt(t).toPromise();
|
|
8305
8305
|
}
|
|
8306
|
-
function
|
|
8306
|
+
function Tn() {
|
|
8307
8307
|
const t = indexedDB.open(vi, pl);
|
|
8308
8308
|
return new Promise((e, n) => {
|
|
8309
8309
|
t.addEventListener("error", () => {
|
|
@@ -8311,29 +8311,29 @@ function Gn() {
|
|
|
8311
8311
|
}), t.addEventListener("upgradeneeded", () => {
|
|
8312
8312
|
const r = t.result;
|
|
8313
8313
|
try {
|
|
8314
|
-
r.createObjectStore(
|
|
8314
|
+
r.createObjectStore(Jt, { keyPath: Bi });
|
|
8315
8315
|
} catch (s) {
|
|
8316
8316
|
n(s);
|
|
8317
8317
|
}
|
|
8318
8318
|
}), t.addEventListener("success", async () => {
|
|
8319
8319
|
const r = t.result;
|
|
8320
|
-
r.objectStoreNames.contains(
|
|
8320
|
+
r.objectStoreNames.contains(Jt) ? e(r) : (r.close(), await yl(), e(await Tn()));
|
|
8321
8321
|
});
|
|
8322
8322
|
});
|
|
8323
8323
|
}
|
|
8324
8324
|
async function Ir(t, e, n) {
|
|
8325
|
-
const r =
|
|
8325
|
+
const r = an(t, !0).put({
|
|
8326
8326
|
[Bi]: e,
|
|
8327
8327
|
value: n
|
|
8328
8328
|
});
|
|
8329
8329
|
return new jt(r).toPromise();
|
|
8330
8330
|
}
|
|
8331
8331
|
async function bl(t, e) {
|
|
8332
|
-
const n =
|
|
8332
|
+
const n = an(t, !1).get(e), r = await new jt(n).toPromise();
|
|
8333
8333
|
return r === void 0 ? null : r.value;
|
|
8334
8334
|
}
|
|
8335
8335
|
function Pr(t, e) {
|
|
8336
|
-
const n =
|
|
8336
|
+
const n = an(t, !0).delete(e);
|
|
8337
8337
|
return new jt(n).toPromise();
|
|
8338
8338
|
}
|
|
8339
8339
|
const wl = 800, vl = 3;
|
|
@@ -8344,7 +8344,7 @@ class Di {
|
|
|
8344
8344
|
});
|
|
8345
8345
|
}
|
|
8346
8346
|
async _openDb() {
|
|
8347
|
-
return this.db ? this.db : (this.db = await
|
|
8347
|
+
return this.db ? this.db : (this.db = await Tn(), this.db);
|
|
8348
8348
|
}
|
|
8349
8349
|
async _withRetries(e) {
|
|
8350
8350
|
let n = 0;
|
|
@@ -8369,7 +8369,7 @@ class Di {
|
|
|
8369
8369
|
* As the worker we should listen to events from the main window.
|
|
8370
8370
|
*/
|
|
8371
8371
|
async initializeReceiver() {
|
|
8372
|
-
this.receiver =
|
|
8372
|
+
this.receiver = sn._getInstance(gl()), this.receiver._subscribe("keyChanged", async (e, n) => ({
|
|
8373
8373
|
keyProcessed: (await this._poll()).includes(n.key)
|
|
8374
8374
|
})), this.receiver._subscribe("ping", async (e, n) => [
|
|
8375
8375
|
"keyChanged"
|
|
@@ -8385,7 +8385,7 @@ class Di {
|
|
|
8385
8385
|
*/
|
|
8386
8386
|
async initializeSender() {
|
|
8387
8387
|
var e, n;
|
|
8388
|
-
if (this.activeServiceWorker = await
|
|
8388
|
+
if (this.activeServiceWorker = await ml(), !this.activeServiceWorker)
|
|
8389
8389
|
return;
|
|
8390
8390
|
this.sender = new dl(this.activeServiceWorker);
|
|
8391
8391
|
const r = await this.sender._send(
|
|
@@ -8409,7 +8409,7 @@ class Di {
|
|
|
8409
8409
|
* @param key - Storage key which changed.
|
|
8410
8410
|
*/
|
|
8411
8411
|
async notifyServiceWorker(e) {
|
|
8412
|
-
if (!(!this.sender || !this.activeServiceWorker ||
|
|
8412
|
+
if (!(!this.sender || !this.activeServiceWorker || fl() !== this.activeServiceWorker))
|
|
8413
8413
|
try {
|
|
8414
8414
|
await this.sender._send(
|
|
8415
8415
|
"keyChanged",
|
|
@@ -8425,8 +8425,8 @@ class Di {
|
|
|
8425
8425
|
try {
|
|
8426
8426
|
if (!indexedDB)
|
|
8427
8427
|
return !1;
|
|
8428
|
-
const e = await
|
|
8429
|
-
return await Ir(e,
|
|
8428
|
+
const e = await Tn();
|
|
8429
|
+
return await Ir(e, Kt, "1"), await Pr(e, Kt), !0;
|
|
8430
8430
|
} catch {
|
|
8431
8431
|
}
|
|
8432
8432
|
return !1;
|
|
@@ -8451,7 +8451,7 @@ class Di {
|
|
|
8451
8451
|
}
|
|
8452
8452
|
async _poll() {
|
|
8453
8453
|
const e = await this._withRetries((s) => {
|
|
8454
|
-
const i =
|
|
8454
|
+
const i = an(s, !1).getAll();
|
|
8455
8455
|
return new jt(i).toPromise();
|
|
8456
8456
|
});
|
|
8457
8457
|
if (!e)
|
|
@@ -8831,7 +8831,7 @@ function Yl(t) {
|
|
|
8831
8831
|
async function Vl(t, e, n = !1) {
|
|
8832
8832
|
if (pe(t.app))
|
|
8833
8833
|
return Promise.reject(Re(t));
|
|
8834
|
-
const r =
|
|
8834
|
+
const r = rn(t), s = Dl(r, e), a = await new Ol(r, s, n).execute();
|
|
8835
8835
|
return a && !n && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
|
8836
8836
|
}
|
|
8837
8837
|
/**
|
|
@@ -8923,7 +8923,7 @@ function kl(t) {
|
|
|
8923
8923
|
* limitations under the License.
|
|
8924
8924
|
*/
|
|
8925
8925
|
async function Rl(t, e = {}) {
|
|
8926
|
-
return
|
|
8926
|
+
return mt(t, "GET", "/v1/projects", e);
|
|
8927
8927
|
}
|
|
8928
8928
|
/**
|
|
8929
8929
|
* @license
|
|
@@ -8959,7 +8959,7 @@ async function Hl(t) {
|
|
|
8959
8959
|
);
|
|
8960
8960
|
}
|
|
8961
8961
|
function Ql(t) {
|
|
8962
|
-
const e =
|
|
8962
|
+
const e = Pn(), { protocol: n, hostname: r } = new URL(e);
|
|
8963
8963
|
if (t.startsWith("chrome-extension://")) {
|
|
8964
8964
|
const a = new URL(t);
|
|
8965
8965
|
return a.hostname === "" && r === "" ? n === "chrome-extension:" && t.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : n === "chrome-extension:" && a.hostname === r;
|
|
@@ -9162,10 +9162,10 @@ function sA(t, e, n, r = eA, s = tA) {
|
|
|
9162
9162
|
left: a
|
|
9163
9163
|
}), A = K().toLowerCase();
|
|
9164
9164
|
n && (c = ii(A) ? nA : n), ri(A) && (e = e || rA, l.scrollbars = "yes");
|
|
9165
|
-
const
|
|
9165
|
+
const f = Object.entries(l).reduce((B, [v, O]) => `${B}${v}=${O},`, "");
|
|
9166
9166
|
if (Ru(A) && c !== "_self")
|
|
9167
9167
|
return iA(e || "", c), new Gr(null);
|
|
9168
|
-
const p = window.open(e || "", c,
|
|
9168
|
+
const p = window.open(e || "", c, f);
|
|
9169
9169
|
M(
|
|
9170
9170
|
p,
|
|
9171
9171
|
t,
|
|
@@ -9221,19 +9221,19 @@ async function jr(t, e, n, r, s, i) {
|
|
|
9221
9221
|
v: Ot,
|
|
9222
9222
|
eventId: s
|
|
9223
9223
|
};
|
|
9224
|
-
if (e instanceof
|
|
9224
|
+
if (e instanceof mi) {
|
|
9225
9225
|
e.setDefaultLanguage(t.languageCode), a.providerId = e.providerId || "", cc(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
|
|
9226
|
-
for (const [
|
|
9227
|
-
a[
|
|
9226
|
+
for (const [f, p] of Object.entries({}))
|
|
9227
|
+
a[f] = p;
|
|
9228
9228
|
}
|
|
9229
9229
|
if (e instanceof Gt) {
|
|
9230
|
-
const
|
|
9231
|
-
|
|
9230
|
+
const f = e.getScopes().filter((p) => p !== "");
|
|
9231
|
+
f.length > 0 && (a.scopes = f.join(","));
|
|
9232
9232
|
}
|
|
9233
9233
|
t.tenantId && (a.tid = t.tenantId);
|
|
9234
9234
|
const c = a;
|
|
9235
|
-
for (const
|
|
9236
|
-
c[
|
|
9235
|
+
for (const f of Object.keys(c))
|
|
9236
|
+
c[f] === void 0 && delete c[f];
|
|
9237
9237
|
const l = await t._getAppCheckToken(), A = l ? `#${cA}=${encodeURIComponent(l)}` : "";
|
|
9238
9238
|
return `${uA(t)}?${Pt(c).slice(1)}${A}`;
|
|
9239
9239
|
}
|
|
@@ -9256,7 +9256,7 @@ function uA({ config: t }) {
|
|
|
9256
9256
|
* See the License for the specific language governing permissions and
|
|
9257
9257
|
* limitations under the License.
|
|
9258
9258
|
*/
|
|
9259
|
-
const
|
|
9259
|
+
const pn = "webStorageSupport";
|
|
9260
9260
|
class lA {
|
|
9261
9261
|
constructor() {
|
|
9262
9262
|
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = bi, this._completeRedirectFn = Vl, this._overrideRedirectResult = Gl;
|
|
@@ -9266,12 +9266,12 @@ class lA {
|
|
|
9266
9266
|
async _openPopup(e, n, r, s) {
|
|
9267
9267
|
var i;
|
|
9268
9268
|
De((i = this.eventManagers[e._key()]) === null || i === void 0 ? void 0 : i.manager, "_initialize() not called before _openPopup()");
|
|
9269
|
-
const a = await jr(e, n, r,
|
|
9269
|
+
const a = await jr(e, n, r, Pn(), s);
|
|
9270
9270
|
return sA(e, a, _n());
|
|
9271
9271
|
}
|
|
9272
9272
|
async _openRedirect(e, n, r, s) {
|
|
9273
9273
|
await this._originValidation(e);
|
|
9274
|
-
const i = await jr(e, n, r,
|
|
9274
|
+
const i = await jr(e, n, r, Pn(), s);
|
|
9275
9275
|
return hl(i), new Promise(() => {
|
|
9276
9276
|
});
|
|
9277
9277
|
}
|
|
@@ -9299,9 +9299,9 @@ class lA {
|
|
|
9299
9299
|
}), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = n, r;
|
|
9300
9300
|
}
|
|
9301
9301
|
_isIframeWebStorageSupported(e, n) {
|
|
9302
|
-
this.iframes[e._key()].send(
|
|
9302
|
+
this.iframes[e._key()].send(pn, { type: pn }, (s) => {
|
|
9303
9303
|
var i;
|
|
9304
|
-
const a = (i = s == null ? void 0 : s[0]) === null || i === void 0 ? void 0 : i[
|
|
9304
|
+
const a = (i = s == null ? void 0 : s[0]) === null || i === void 0 ? void 0 : i[pn];
|
|
9305
9305
|
a !== void 0 && n(!!a), Be(
|
|
9306
9306
|
e,
|
|
9307
9307
|
"internal-error"
|
|
@@ -9402,7 +9402,7 @@ function hA(t) {
|
|
|
9402
9402
|
return;
|
|
9403
9403
|
}
|
|
9404
9404
|
}
|
|
9405
|
-
function
|
|
9405
|
+
function mA(t) {
|
|
9406
9406
|
bt(new dt(
|
|
9407
9407
|
"auth",
|
|
9408
9408
|
(e, { options: n }) => {
|
|
@@ -9432,7 +9432,7 @@ function fA(t) {
|
|
|
9432
9432
|
})), bt(new dt(
|
|
9433
9433
|
"auth-internal",
|
|
9434
9434
|
(e) => {
|
|
9435
|
-
const n =
|
|
9435
|
+
const n = rn(e.getProvider(
|
|
9436
9436
|
"auth"
|
|
9437
9437
|
/* _ComponentName.AUTH */
|
|
9438
9438
|
).getImmediate());
|
|
@@ -9461,7 +9461,7 @@ function fA(t) {
|
|
|
9461
9461
|
* See the License for the specific language governing permissions and
|
|
9462
9462
|
* limitations under the License.
|
|
9463
9463
|
*/
|
|
9464
|
-
const
|
|
9464
|
+
const fA = 5 * 60, gA = qs("authIdTokenMaxAge") || fA;
|
|
9465
9465
|
let xr = null;
|
|
9466
9466
|
const pA = (t) => async (e) => {
|
|
9467
9467
|
const n = e && await e.getIdTokenResult(), r = n && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(n.issuedAtTime)) / 1e3;
|
|
@@ -9518,11 +9518,11 @@ Uu({
|
|
|
9518
9518
|
recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
|
|
9519
9519
|
recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
|
|
9520
9520
|
});
|
|
9521
|
-
|
|
9521
|
+
mA(
|
|
9522
9522
|
"Browser"
|
|
9523
9523
|
/* ClientPlatform.BROWSER */
|
|
9524
9524
|
);
|
|
9525
|
-
var
|
|
9525
|
+
var on = class {
|
|
9526
9526
|
constructor() {
|
|
9527
9527
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
9528
9528
|
}
|
|
@@ -9538,7 +9538,7 @@ var cn = class {
|
|
|
9538
9538
|
}
|
|
9539
9539
|
onUnsubscribe() {
|
|
9540
9540
|
}
|
|
9541
|
-
}, He, Ge, rt, Xr, wA = (Xr = class extends
|
|
9541
|
+
}, He, Ge, rt, Xr, wA = (Xr = class extends on {
|
|
9542
9542
|
constructor() {
|
|
9543
9543
|
super();
|
|
9544
9544
|
G(this, He);
|
|
@@ -9624,7 +9624,7 @@ var cn = class {
|
|
|
9624
9624
|
clearInterval(t) {
|
|
9625
9625
|
h(this, oe).clearInterval(t);
|
|
9626
9626
|
}
|
|
9627
|
-
}, oe = new WeakMap(), Qe = new WeakMap(), Sr),
|
|
9627
|
+
}, oe = new WeakMap(), Qe = new WeakMap(), Sr), Gn = new BA();
|
|
9628
9628
|
function DA(t) {
|
|
9629
9629
|
setTimeout(t, 0);
|
|
9630
9630
|
}
|
|
@@ -9640,7 +9640,7 @@ function MA(t) {
|
|
|
9640
9640
|
function IA(t, e) {
|
|
9641
9641
|
return Math.max(t + (e || 0) - Date.now(), 0);
|
|
9642
9642
|
}
|
|
9643
|
-
function
|
|
9643
|
+
function jn(t, e) {
|
|
9644
9644
|
return typeof t == "function" ? t(e) : t;
|
|
9645
9645
|
}
|
|
9646
9646
|
function PA(t, e) {
|
|
@@ -9688,32 +9688,32 @@ function er(t, e) {
|
|
|
9688
9688
|
function Bt(t) {
|
|
9689
9689
|
return JSON.stringify(
|
|
9690
9690
|
t,
|
|
9691
|
-
(e, n) =>
|
|
9691
|
+
(e, n) => Vn(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
|
|
9692
9692
|
);
|
|
9693
9693
|
}
|
|
9694
9694
|
function Dt(t, e) {
|
|
9695
9695
|
return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) => Dt(t[n], e[n])) : !1;
|
|
9696
9696
|
}
|
|
9697
9697
|
var OA = Object.prototype.hasOwnProperty;
|
|
9698
|
-
function
|
|
9698
|
+
function Yn(t, e, n = 0) {
|
|
9699
9699
|
if (t === e)
|
|
9700
9700
|
return t;
|
|
9701
9701
|
if (n > 500) return e;
|
|
9702
9702
|
const r = Rr(t) && Rr(e);
|
|
9703
|
-
if (!r && !(
|
|
9703
|
+
if (!r && !(Vn(t) && Vn(e))) return e;
|
|
9704
9704
|
const i = (r ? t : Object.keys(t)).length, a = r ? e : Object.keys(e), c = a.length, l = r ? new Array(c) : {};
|
|
9705
9705
|
let A = 0;
|
|
9706
|
-
for (let
|
|
9707
|
-
const p = r ?
|
|
9706
|
+
for (let f = 0; f < c; f++) {
|
|
9707
|
+
const p = r ? f : a[f], B = t[p], v = e[p];
|
|
9708
9708
|
if (B === v) {
|
|
9709
|
-
l[p] = B, (r ?
|
|
9709
|
+
l[p] = B, (r ? f < i : OA.call(t, p)) && A++;
|
|
9710
9710
|
continue;
|
|
9711
9711
|
}
|
|
9712
9712
|
if (B === null || v === null || typeof B != "object" || typeof v != "object") {
|
|
9713
9713
|
l[p] = v;
|
|
9714
9714
|
continue;
|
|
9715
9715
|
}
|
|
9716
|
-
const O =
|
|
9716
|
+
const O = Yn(B, v, n + 1);
|
|
9717
9717
|
l[p] = O, O === B && A++;
|
|
9718
9718
|
}
|
|
9719
9719
|
return i === c && A === i ? t : l;
|
|
@@ -9729,7 +9729,7 @@ function ld(t, e) {
|
|
|
9729
9729
|
function Rr(t) {
|
|
9730
9730
|
return Array.isArray(t) && t.length === Object.keys(t).length;
|
|
9731
9731
|
}
|
|
9732
|
-
function
|
|
9732
|
+
function Vn(t) {
|
|
9733
9733
|
if (!qr(t))
|
|
9734
9734
|
return !1;
|
|
9735
9735
|
const e = t.constructor;
|
|
@@ -9743,7 +9743,7 @@ function qr(t) {
|
|
|
9743
9743
|
}
|
|
9744
9744
|
function TA(t) {
|
|
9745
9745
|
return new Promise((e) => {
|
|
9746
|
-
|
|
9746
|
+
Gn.setTimeout(e, t);
|
|
9747
9747
|
});
|
|
9748
9748
|
}
|
|
9749
9749
|
function GA(t, e, n) {
|
|
@@ -9752,13 +9752,13 @@ function GA(t, e, n) {
|
|
|
9752
9752
|
if (n.structuralSharing !== !1) {
|
|
9753
9753
|
if (process.env.NODE_ENV !== "production")
|
|
9754
9754
|
try {
|
|
9755
|
-
return
|
|
9755
|
+
return Yn(t, e);
|
|
9756
9756
|
} catch (r) {
|
|
9757
9757
|
throw console.error(
|
|
9758
9758
|
`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`
|
|
9759
9759
|
), r;
|
|
9760
9760
|
}
|
|
9761
|
-
return
|
|
9761
|
+
return Yn(t, e);
|
|
9762
9762
|
}
|
|
9763
9763
|
return e;
|
|
9764
9764
|
}
|
|
@@ -9773,11 +9773,11 @@ function YA(t, e, n = 0) {
|
|
|
9773
9773
|
const r = [e, ...t];
|
|
9774
9774
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
9775
9775
|
}
|
|
9776
|
-
var
|
|
9776
|
+
var _t = /* @__PURE__ */ Symbol();
|
|
9777
9777
|
function Ii(t, e) {
|
|
9778
|
-
return process.env.NODE_ENV !== "production" && t.queryFn ===
|
|
9778
|
+
return process.env.NODE_ENV !== "production" && t.queryFn === _t && console.error(
|
|
9779
9779
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
|
|
9780
|
-
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn ===
|
|
9780
|
+
), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === _t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
|
|
9781
9781
|
}
|
|
9782
9782
|
function dd(t, e) {
|
|
9783
9783
|
return typeof t == "function" ? t(...e) : !!t;
|
|
@@ -9888,7 +9888,7 @@ function kA() {
|
|
|
9888
9888
|
}
|
|
9889
9889
|
};
|
|
9890
9890
|
}
|
|
9891
|
-
var L = kA(), st, je, it, Ur, RA = (Ur = class extends
|
|
9891
|
+
var L = kA(), st, je, it, Ur, RA = (Ur = class extends on {
|
|
9892
9892
|
constructor() {
|
|
9893
9893
|
super();
|
|
9894
9894
|
G(this, st, !0);
|
|
@@ -9922,14 +9922,14 @@ var L = kA(), st, je, it, Ur, RA = (Ur = class extends cn {
|
|
|
9922
9922
|
isOnline() {
|
|
9923
9923
|
return h(this, st);
|
|
9924
9924
|
}
|
|
9925
|
-
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur),
|
|
9925
|
+
}, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur), $t = new RA();
|
|
9926
9926
|
function qA(t) {
|
|
9927
9927
|
return Math.min(1e3 * 2 ** t, 3e4);
|
|
9928
9928
|
}
|
|
9929
9929
|
function Oi(t) {
|
|
9930
|
-
return (t ?? "online") === "online" ?
|
|
9930
|
+
return (t ?? "online") === "online" ? $t.isOnline() : !0;
|
|
9931
9931
|
}
|
|
9932
|
-
var
|
|
9932
|
+
var xn = class extends Error {
|
|
9933
9933
|
constructor(t) {
|
|
9934
9934
|
super("CancelledError"), this.revert = t == null ? void 0 : t.revert, this.silent = t == null ? void 0 : t.silent;
|
|
9935
9935
|
}
|
|
@@ -9939,14 +9939,14 @@ function Ti(t) {
|
|
|
9939
9939
|
const s = xA(), i = () => s.status !== "pending", a = (I) => {
|
|
9940
9940
|
var V;
|
|
9941
9941
|
if (!i()) {
|
|
9942
|
-
const R = new
|
|
9942
|
+
const R = new xn(I);
|
|
9943
9943
|
B(R), (V = t.onCancel) == null || V.call(t, R);
|
|
9944
9944
|
}
|
|
9945
9945
|
}, c = () => {
|
|
9946
9946
|
e = !0;
|
|
9947
9947
|
}, l = () => {
|
|
9948
9948
|
e = !1;
|
|
9949
|
-
}, A = () => Mi.isFocused() && (t.networkMode === "always" ||
|
|
9949
|
+
}, A = () => Mi.isFocused() && (t.networkMode === "always" || $t.isOnline()) && t.canRun(), f = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
|
|
9950
9950
|
i() || (r == null || r(), s.resolve(I));
|
|
9951
9951
|
}, B = (I) => {
|
|
9952
9952
|
i() || (r == null || r(), s.reject(I));
|
|
@@ -9989,8 +9989,8 @@ function Ti(t) {
|
|
|
9989
9989
|
continue: () => (r == null || r(), s),
|
|
9990
9990
|
cancelRetry: c,
|
|
9991
9991
|
continueRetry: l,
|
|
9992
|
-
canStart:
|
|
9993
|
-
start: () => (
|
|
9992
|
+
canStart: f,
|
|
9993
|
+
start: () => (f() ? O() : v().then(O), s)
|
|
9994
9994
|
};
|
|
9995
9995
|
}
|
|
9996
9996
|
var Xe, Wr, Gi = (Wr = class {
|
|
@@ -10001,7 +10001,7 @@ var Xe, Wr, Gi = (Wr = class {
|
|
|
10001
10001
|
this.clearGcTimeout();
|
|
10002
10002
|
}
|
|
10003
10003
|
scheduleGc() {
|
|
10004
|
-
this.clearGcTimeout(), MA(this.gcTime) && D(this, Xe,
|
|
10004
|
+
this.clearGcTimeout(), MA(this.gcTime) && D(this, Xe, Gn.setTimeout(() => {
|
|
10005
10005
|
this.optionalRemove();
|
|
10006
10006
|
}, this.gcTime));
|
|
10007
10007
|
}
|
|
@@ -10012,14 +10012,14 @@ var Xe, Wr, Gi = (Wr = class {
|
|
|
10012
10012
|
);
|
|
10013
10013
|
}
|
|
10014
10014
|
clearGcTimeout() {
|
|
10015
|
-
h(this, Xe) !== void 0 && (
|
|
10015
|
+
h(this, Xe) !== void 0 && (Gn.clearTimeout(h(this, Xe)), D(this, Xe, void 0));
|
|
10016
10016
|
}
|
|
10017
10017
|
}, Xe = new WeakMap(), Wr);
|
|
10018
10018
|
function NA(t) {
|
|
10019
10019
|
return {
|
|
10020
10020
|
onFetch: (e, n) => {
|
|
10021
|
-
var
|
|
10022
|
-
const r = e.options, s = (B = (p = (
|
|
10021
|
+
var f, p, B, v, O;
|
|
10022
|
+
const r = e.options, s = (B = (p = (f = e.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : p.fetchMore) == null ? void 0 : B.direction, i = ((v = e.state.data) == null ? void 0 : v.pages) || [], a = ((O = e.state.data) == null ? void 0 : O.pageParams) || [];
|
|
10023
10023
|
let c = { pages: [], pageParams: [] }, l = 0;
|
|
10024
10024
|
const A = async () => {
|
|
10025
10025
|
let I = !1;
|
|
@@ -10043,10 +10043,10 @@ function NA(t) {
|
|
|
10043
10043
|
meta: e.options.meta
|
|
10044
10044
|
};
|
|
10045
10045
|
return V(g), g;
|
|
10046
|
-
})(), q = await R(ee), { maxPages: u } = e.options,
|
|
10046
|
+
})(), q = await R(ee), { maxPages: u } = e.options, m = H ? YA : jA;
|
|
10047
10047
|
return {
|
|
10048
|
-
pages:
|
|
10049
|
-
pageParams:
|
|
10048
|
+
pages: m(Y.pages, q, u),
|
|
10049
|
+
pageParams: m(Y.pageParams, w, u)
|
|
10050
10050
|
};
|
|
10051
10051
|
};
|
|
10052
10052
|
if (s && i.length) {
|
|
@@ -10096,7 +10096,7 @@ function HA(t, { pages: e, pageParams: n }) {
|
|
|
10096
10096
|
var r;
|
|
10097
10097
|
return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, n[0], n) : void 0;
|
|
10098
10098
|
}
|
|
10099
|
-
var at, Se, ot, re, Ue, S, Ct, We, ne, ji,
|
|
10099
|
+
var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
|
|
10100
10100
|
constructor(e) {
|
|
10101
10101
|
super();
|
|
10102
10102
|
G(this, ne);
|
|
@@ -10133,7 +10133,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10133
10133
|
}
|
|
10134
10134
|
setData(e, n) {
|
|
10135
10135
|
const r = GA(this.state.data, e, this.options);
|
|
10136
|
-
return z(this, ne,
|
|
10136
|
+
return z(this, ne, me).call(this, {
|
|
10137
10137
|
data: r,
|
|
10138
10138
|
type: "success",
|
|
10139
10139
|
dataUpdatedAt: n == null ? void 0 : n.updatedAt,
|
|
@@ -10141,7 +10141,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10141
10141
|
}), r;
|
|
10142
10142
|
}
|
|
10143
10143
|
setState(e) {
|
|
10144
|
-
z(this, ne,
|
|
10144
|
+
z(this, ne, me).call(this, { type: "setState", state: e });
|
|
10145
10145
|
}
|
|
10146
10146
|
cancel(e) {
|
|
10147
10147
|
var r, s;
|
|
@@ -10163,14 +10163,14 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10163
10163
|
);
|
|
10164
10164
|
}
|
|
10165
10165
|
isDisabled() {
|
|
10166
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
10166
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === _t || !this.isFetched();
|
|
10167
10167
|
}
|
|
10168
10168
|
isFetched() {
|
|
10169
10169
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
10170
10170
|
}
|
|
10171
10171
|
isStatic() {
|
|
10172
10172
|
return this.getObserversCount() > 0 ? this.observers.some(
|
|
10173
|
-
(e) =>
|
|
10173
|
+
(e) => jn(e.options.staleTime, this) === "static"
|
|
10174
10174
|
) : !1;
|
|
10175
10175
|
}
|
|
10176
10176
|
isStale() {
|
|
@@ -10201,10 +10201,10 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10201
10201
|
return this.observers.length;
|
|
10202
10202
|
}
|
|
10203
10203
|
invalidate() {
|
|
10204
|
-
this.state.isInvalidated || z(this, ne,
|
|
10204
|
+
this.state.isInvalidated || z(this, ne, me).call(this, { type: "invalidate" });
|
|
10205
10205
|
}
|
|
10206
10206
|
async fetch(e, n) {
|
|
10207
|
-
var A,
|
|
10207
|
+
var A, f, p, B, v, O, I, V, R, Q, Y;
|
|
10208
10208
|
if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
|
|
10209
10209
|
// re-start the fetch; there is a chance that the query is still in a
|
|
10210
10210
|
// pending state when that happens
|
|
@@ -10253,23 +10253,23 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10253
10253
|
})(), l = h(this, at) === "infinite" ? NA(
|
|
10254
10254
|
this.options.pages
|
|
10255
10255
|
) : this.options.behavior;
|
|
10256
|
-
l == null || l.onFetch(c, this), D(this, ot, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((
|
|
10256
|
+
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({
|
|
10257
10257
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
10258
10258
|
fn: c.fetchFn,
|
|
10259
10259
|
onCancel: (w) => {
|
|
10260
|
-
w instanceof
|
|
10260
|
+
w instanceof xn && w.revert && this.setState({
|
|
10261
10261
|
...h(this, ot),
|
|
10262
10262
|
fetchStatus: "idle"
|
|
10263
10263
|
}), r.abort();
|
|
10264
10264
|
},
|
|
10265
10265
|
onFail: (w, H) => {
|
|
10266
|
-
z(this, ne,
|
|
10266
|
+
z(this, ne, me).call(this, { type: "failed", failureCount: w, error: H });
|
|
10267
10267
|
},
|
|
10268
10268
|
onPause: () => {
|
|
10269
|
-
z(this, ne,
|
|
10269
|
+
z(this, ne, me).call(this, { type: "pause" });
|
|
10270
10270
|
},
|
|
10271
10271
|
onContinue: () => {
|
|
10272
|
-
z(this, ne,
|
|
10272
|
+
z(this, ne, me).call(this, { type: "continue" });
|
|
10273
10273
|
},
|
|
10274
10274
|
retry: c.options.retry,
|
|
10275
10275
|
retryDelay: c.options.retryDelay,
|
|
@@ -10289,7 +10289,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10289
10289
|
this
|
|
10290
10290
|
), w;
|
|
10291
10291
|
} catch (w) {
|
|
10292
|
-
if (w instanceof
|
|
10292
|
+
if (w instanceof xn) {
|
|
10293
10293
|
if (w.silent)
|
|
10294
10294
|
return h(this, S).promise;
|
|
10295
10295
|
if (w.revert) {
|
|
@@ -10298,7 +10298,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10298
10298
|
return this.state.data;
|
|
10299
10299
|
}
|
|
10300
10300
|
}
|
|
10301
|
-
throw z(this, ne,
|
|
10301
|
+
throw z(this, ne, me).call(this, {
|
|
10302
10302
|
type: "error",
|
|
10303
10303
|
error: w
|
|
10304
10304
|
}), (R = (V = h(this, re).config).onError) == null || R.call(
|
|
@@ -10317,7 +10317,7 @@ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, fe, zr, QA = (zr = class extends Gi {
|
|
|
10317
10317
|
}
|
|
10318
10318
|
}, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(), Ct = new WeakMap(), We = new WeakMap(), ne = new WeakSet(), ji = function() {
|
|
10319
10319
|
return this.state.fetchStatus === "paused" && this.state.status === "pending";
|
|
10320
|
-
},
|
|
10320
|
+
}, me = function(e) {
|
|
10321
10321
|
const n = (r) => {
|
|
10322
10322
|
switch (e.type) {
|
|
10323
10323
|
case "failed":
|
|
@@ -10463,7 +10463,7 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10463
10463
|
this.execute(this.state.variables);
|
|
10464
10464
|
}
|
|
10465
10465
|
async execute(e) {
|
|
10466
|
-
var a, c, l, A,
|
|
10466
|
+
var a, c, l, A, f, p, B, v, O, I, V, R, Q, Y, w, H, U, ee;
|
|
10467
10467
|
const n = () => {
|
|
10468
10468
|
z(this, ue, Me).call(this, { type: "continue" });
|
|
10469
10469
|
}, r = {
|
|
@@ -10515,8 +10515,8 @@ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
|
|
|
10515
10515
|
this.state.context,
|
|
10516
10516
|
this,
|
|
10517
10517
|
r
|
|
10518
|
-
)), await ((p = (
|
|
10519
|
-
|
|
10518
|
+
)), await ((p = (f = this.options).onSuccess) == null ? void 0 : p.call(
|
|
10519
|
+
f,
|
|
10520
10520
|
q,
|
|
10521
10521
|
e,
|
|
10522
10522
|
this.state.context,
|
|
@@ -10668,13 +10668,13 @@ function UA() {
|
|
|
10668
10668
|
submittedAt: 0
|
|
10669
10669
|
};
|
|
10670
10670
|
}
|
|
10671
|
-
var
|
|
10671
|
+
var fe, ae, Mt, Lr, Yi = (Lr = class extends on {
|
|
10672
10672
|
constructor(n = {}) {
|
|
10673
10673
|
super();
|
|
10674
|
-
G(this,
|
|
10674
|
+
G(this, fe);
|
|
10675
10675
|
G(this, ae);
|
|
10676
10676
|
G(this, Mt);
|
|
10677
|
-
this.config = n, D(this,
|
|
10677
|
+
this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, Mt, 0);
|
|
10678
10678
|
}
|
|
10679
10679
|
build(n, r, s) {
|
|
10680
10680
|
const i = new SA({
|
|
@@ -10687,7 +10687,7 @@ var me, ae, Mt, Lr, Yi = (Lr = class extends cn {
|
|
|
10687
10687
|
return this.add(i), i;
|
|
10688
10688
|
}
|
|
10689
10689
|
add(n) {
|
|
10690
|
-
h(this,
|
|
10690
|
+
h(this, fe).add(n);
|
|
10691
10691
|
const r = kt(n);
|
|
10692
10692
|
if (typeof r == "string") {
|
|
10693
10693
|
const s = h(this, ae).get(r);
|
|
@@ -10696,7 +10696,7 @@ var me, ae, Mt, Lr, Yi = (Lr = class extends cn {
|
|
|
10696
10696
|
this.notify({ type: "added", mutation: n });
|
|
10697
10697
|
}
|
|
10698
10698
|
remove(n) {
|
|
10699
|
-
if (h(this,
|
|
10699
|
+
if (h(this, fe).delete(n)) {
|
|
10700
10700
|
const r = kt(n);
|
|
10701
10701
|
if (typeof r == "string") {
|
|
10702
10702
|
const s = h(this, ae).get(r);
|
|
@@ -10730,13 +10730,13 @@ var me, ae, Mt, Lr, Yi = (Lr = class extends cn {
|
|
|
10730
10730
|
}
|
|
10731
10731
|
clear() {
|
|
10732
10732
|
L.batch(() => {
|
|
10733
|
-
h(this,
|
|
10733
|
+
h(this, fe).forEach((n) => {
|
|
10734
10734
|
this.notify({ type: "removed", mutation: n });
|
|
10735
|
-
}), h(this,
|
|
10735
|
+
}), h(this, fe).clear(), h(this, ae).clear();
|
|
10736
10736
|
});
|
|
10737
10737
|
}
|
|
10738
10738
|
getAll() {
|
|
10739
|
-
return Array.from(h(this,
|
|
10739
|
+
return Array.from(h(this, fe));
|
|
10740
10740
|
}
|
|
10741
10741
|
find(n) {
|
|
10742
10742
|
const r = { exact: !0, ...n };
|
|
@@ -10762,12 +10762,12 @@ var me, ae, Mt, Lr, Yi = (Lr = class extends cn {
|
|
|
10762
10762
|
)
|
|
10763
10763
|
);
|
|
10764
10764
|
}
|
|
10765
|
-
},
|
|
10765
|
+
}, fe = new WeakMap(), ae = new WeakMap(), Mt = new WeakMap(), Lr);
|
|
10766
10766
|
function kt(t) {
|
|
10767
10767
|
var e;
|
|
10768
10768
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
10769
10769
|
}
|
|
10770
|
-
var le, Kr, Vi = (Kr = class extends
|
|
10770
|
+
var le, Kr, Vi = (Kr = class extends on {
|
|
10771
10771
|
constructor(n = {}) {
|
|
10772
10772
|
super();
|
|
10773
10773
|
G(this, le);
|
|
@@ -10854,7 +10854,7 @@ var le, Kr, Vi = (Kr = class extends cn {
|
|
|
10854
10854
|
mount() {
|
|
10855
10855
|
Vt(this, xe)._++, h(this, xe) === 1 && (D(this, lt, Mi.subscribe(async (e) => {
|
|
10856
10856
|
e && (await this.resumePausedMutations(), h(this, N).onFocus());
|
|
10857
|
-
})), D(this, At,
|
|
10857
|
+
})), D(this, At, $t.subscribe(async (e) => {
|
|
10858
10858
|
e && (await this.resumePausedMutations(), h(this, N).onOnline());
|
|
10859
10859
|
})));
|
|
10860
10860
|
}
|
|
@@ -10882,7 +10882,7 @@ var le, Kr, Vi = (Kr = class extends cn {
|
|
|
10882
10882
|
}
|
|
10883
10883
|
ensureQueryData(e) {
|
|
10884
10884
|
const n = this.defaultQueryOptions(e), r = h(this, N).build(this, n), s = r.state.data;
|
|
10885
|
-
return s === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(
|
|
10885
|
+
return s === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(jn(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(s));
|
|
10886
10886
|
}
|
|
10887
10887
|
getQueriesData(e) {
|
|
10888
10888
|
return h(this, N).findAll(e).map(({ queryKey: n, state: r }) => {
|
|
@@ -10966,7 +10966,7 @@ var le, Kr, Vi = (Kr = class extends cn {
|
|
|
10966
10966
|
n.retry === void 0 && (n.retry = !1);
|
|
10967
10967
|
const r = h(this, N).build(this, n);
|
|
10968
10968
|
return r.isStaleByTime(
|
|
10969
|
-
|
|
10969
|
+
jn(n.staleTime, r)
|
|
10970
10970
|
) ? r.fetch(n) : Promise.resolve(r.state.data);
|
|
10971
10971
|
}
|
|
10972
10972
|
prefetchQuery(e) {
|
|
@@ -10982,7 +10982,7 @@ var le, Kr, Vi = (Kr = class extends cn {
|
|
|
10982
10982
|
return e._type = "infinite", this.ensureQueryData(e);
|
|
10983
10983
|
}
|
|
10984
10984
|
resumePausedMutations() {
|
|
10985
|
-
return
|
|
10985
|
+
return $t.isOnline() ? h(this, Ye).resumePausedMutations() : Promise.resolve();
|
|
10986
10986
|
}
|
|
10987
10987
|
getQueryCache() {
|
|
10988
10988
|
return h(this, N);
|
|
@@ -11032,7 +11032,7 @@ var le, Kr, Vi = (Kr = class extends cn {
|
|
|
11032
11032
|
return n.queryHash || (n.queryHash = er(
|
|
11033
11033
|
n.queryKey,
|
|
11034
11034
|
n
|
|
11035
|
-
)), n.refetchOnReconnect === void 0 && (n.refetchOnReconnect = n.networkMode !== "always"), n.throwOnError === void 0 && (n.throwOnError = !!n.suspense), !n.networkMode && n.persister && (n.networkMode = "offlineFirst"), n.queryFn ===
|
|
11035
|
+
)), n.refetchOnReconnect === void 0 && (n.refetchOnReconnect = n.networkMode !== "always"), n.throwOnError === void 0 && (n.throwOnError = !!n.suspense), !n.networkMode && n.persister && (n.networkMode = "offlineFirst"), n.queryFn === _t && (n.enabled = !1), n;
|
|
11036
11036
|
}
|
|
11037
11037
|
defaultMutationOptions(e) {
|
|
11038
11038
|
return e != null && e._defaulted ? e : {
|
|
@@ -11055,27 +11055,27 @@ function pd(t, e) {
|
|
|
11055
11055
|
t[n] = e[n];
|
|
11056
11056
|
});
|
|
11057
11057
|
}
|
|
11058
|
-
function
|
|
11058
|
+
function Fn(t, e, n = "", r = 0) {
|
|
11059
11059
|
if (e) {
|
|
11060
11060
|
const s = e(t, n, r);
|
|
11061
|
-
if (s === void 0 &&
|
|
11061
|
+
if (s === void 0 && kn(t) || s !== void 0)
|
|
11062
11062
|
return s;
|
|
11063
11063
|
}
|
|
11064
11064
|
if (Array.isArray(t))
|
|
11065
11065
|
return t.map(
|
|
11066
|
-
(s, i) =>
|
|
11066
|
+
(s, i) => Fn(s, e, String(i), r + 1)
|
|
11067
11067
|
);
|
|
11068
11068
|
if (typeof t == "object" && ZA(t)) {
|
|
11069
11069
|
const s = Object.entries(t).map(([i, a]) => [
|
|
11070
11070
|
i,
|
|
11071
|
-
|
|
11071
|
+
Fn(a, e, i, r + 1)
|
|
11072
11072
|
]);
|
|
11073
11073
|
return Object.fromEntries(s);
|
|
11074
11074
|
}
|
|
11075
11075
|
return t;
|
|
11076
11076
|
}
|
|
11077
11077
|
function zA(t, e) {
|
|
11078
|
-
return
|
|
11078
|
+
return Fn(t, e);
|
|
11079
11079
|
}
|
|
11080
11080
|
function T(t, e = !1) {
|
|
11081
11081
|
return zA(t, (n, r, s) => {
|
|
@@ -11083,7 +11083,7 @@ function T(t, e = !1) {
|
|
|
11083
11083
|
return T(n, !0);
|
|
11084
11084
|
if (e && LA(n))
|
|
11085
11085
|
return T(n(), e);
|
|
11086
|
-
if (
|
|
11086
|
+
if (kn(n))
|
|
11087
11087
|
return T(ge(n), e);
|
|
11088
11088
|
});
|
|
11089
11089
|
}
|
|
@@ -11216,7 +11216,7 @@ var KA = class extends Vi {
|
|
|
11216
11216
|
};
|
|
11217
11217
|
Ki({
|
|
11218
11218
|
history: Ji(),
|
|
11219
|
-
routes: [...
|
|
11219
|
+
routes: [...Xn, ...pt].map((t) => ({
|
|
11220
11220
|
...t,
|
|
11221
11221
|
component: os(
|
|
11222
11222
|
_r({
|
|
@@ -11225,32 +11225,32 @@ Ki({
|
|
|
11225
11225
|
)
|
|
11226
11226
|
}))
|
|
11227
11227
|
});
|
|
11228
|
-
const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ */
|
|
11228
|
+
const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ */ en({
|
|
11229
11229
|
__name: "AppSidebar",
|
|
11230
11230
|
setup(t) {
|
|
11231
|
-
const e =
|
|
11231
|
+
const e = Nn(), n = _i(), { t: r } = ns(), s = Xt(n.currentRoute.value.name);
|
|
11232
11232
|
$r(n.currentRoute, () => {
|
|
11233
11233
|
let A = n.currentRoute.value.name;
|
|
11234
11234
|
n.currentRoute.value.meta.parent && (A = n.currentRoute.value.meta.parent), s.value = A;
|
|
11235
11235
|
});
|
|
11236
|
-
const i =
|
|
11236
|
+
const i = Xn.map((A) => {
|
|
11237
11237
|
var B, v;
|
|
11238
11238
|
if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((v = A.meta.region) != null && v[e.currentCountry.value]) || A.meta.section)
|
|
11239
11239
|
return;
|
|
11240
|
-
const
|
|
11241
|
-
label:
|
|
11240
|
+
const f = A.meta.sidebarDisplay, p = {
|
|
11241
|
+
label: f.startsWith("i18n:") ? r(f.replaceAll("i18n:", "")) : f,
|
|
11242
11242
|
value: A.name,
|
|
11243
11243
|
action: () => {
|
|
11244
11244
|
if (n.currentRoute.value.name !== A.name)
|
|
11245
11245
|
return n.push({ name: A.name });
|
|
11246
11246
|
}
|
|
11247
11247
|
};
|
|
11248
|
-
return A.meta.sidebarNew && (p.badge = () =>
|
|
11248
|
+
return A.meta.sidebarNew && (p.badge = () => yn(ea.FmPill, { label: "New" })), p;
|
|
11249
11249
|
}).filter((A) => !!A);
|
|
11250
|
-
function a(A,
|
|
11250
|
+
function a(A, f) {
|
|
11251
11251
|
return A.map((p) => {
|
|
11252
11252
|
var B, v;
|
|
11253
|
-
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [],
|
|
11253
|
+
return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (v = p.meta) != null && v.sidebarDisplay ? p.meta.section !== f ? [] : [
|
|
11254
11254
|
{
|
|
11255
11255
|
label: p.meta.sidebarDisplay.startsWith("i18n:") ? r(p.meta.sidebarDisplay.replaceAll("i18n:", "")) : p.meta.sidebarDisplay,
|
|
11256
11256
|
value: p.name,
|
|
@@ -11263,8 +11263,8 @@ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ *
|
|
|
11263
11263
|
}).flat().filter((p) => !!p);
|
|
11264
11264
|
}
|
|
11265
11265
|
const c = pt.map((A) => {
|
|
11266
|
-
var
|
|
11267
|
-
if ((
|
|
11266
|
+
var f;
|
|
11267
|
+
if ((f = A.meta) != null && f.sidebarDisplay && !A.meta.section)
|
|
11268
11268
|
return {
|
|
11269
11269
|
label: A.meta.sidebarDisplay.startsWith("i18n:") ? r(A.meta.sidebarDisplay.replaceAll("i18n:", "")) : A.meta.sidebarDisplay,
|
|
11270
11270
|
value: A.name,
|
|
@@ -11273,18 +11273,9 @@ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ *
|
|
|
11273
11273
|
return n.push({ name: A.name });
|
|
11274
11274
|
}
|
|
11275
11275
|
};
|
|
11276
|
-
}).filter((A) => !!A), l =
|
|
11276
|
+
}).filter((A) => !!A), l = Rn(() => {
|
|
11277
11277
|
const A = [...i];
|
|
11278
|
-
return A.push({
|
|
11279
|
-
label: "",
|
|
11280
|
-
value: "divider",
|
|
11281
|
-
disabled: !0
|
|
11282
|
-
}), A.push({
|
|
11283
|
-
label: r("financing.title"),
|
|
11284
|
-
icon: "credit_score",
|
|
11285
|
-
value: "divider",
|
|
11286
|
-
disabled: !0
|
|
11287
|
-
}), A.push(...a(Ut, "financing")), $A(e.sessionUser.value) && (A.push({
|
|
11278
|
+
return $A(e.sessionUser.value) && (A.push({
|
|
11288
11279
|
label: "",
|
|
11289
11280
|
value: "divider",
|
|
11290
11281
|
disabled: !0
|
|
@@ -11313,22 +11304,22 @@ const $A = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, ed = /* @__PURE__ *
|
|
|
11313
11304
|
disabled: !0
|
|
11314
11305
|
}), A.push(...c)), A;
|
|
11315
11306
|
});
|
|
11316
|
-
return (A,
|
|
11307
|
+
return (A, f) => {
|
|
11317
11308
|
const p = es("FmCollapsibleTabs");
|
|
11318
|
-
return
|
|
11309
|
+
return tn(), qn(p, {
|
|
11319
11310
|
modelValue: s.value,
|
|
11320
|
-
"onUpdate:modelValue":
|
|
11311
|
+
"onUpdate:modelValue": f[0] || (f[0] = (B) => s.value = B),
|
|
11321
11312
|
items: l.value,
|
|
11322
11313
|
class: "py-16 px-8 w-[240px]"
|
|
11323
11314
|
}, null, 8, ["modelValue", "items"]);
|
|
11324
11315
|
};
|
|
11325
11316
|
}
|
|
11326
11317
|
});
|
|
11327
|
-
var td = { firebase: { apiKey: "
|
|
11328
|
-
const yd = /* @__PURE__ */
|
|
11318
|
+
var td = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" } };
|
|
11319
|
+
const yd = /* @__PURE__ */ en({
|
|
11329
11320
|
__name: "App",
|
|
11330
11321
|
setup(t) {
|
|
11331
|
-
const { state: e } = Qo(), n =
|
|
11322
|
+
const { state: e } = Qo(), n = Nn(), r = ts(), s = new _A();
|
|
11332
11323
|
Wi(xi, s);
|
|
11333
11324
|
const i = Ss(td.firebase);
|
|
11334
11325
|
async function a() {
|
|
@@ -11345,7 +11336,7 @@ const yd = /* @__PURE__ */ tn({
|
|
|
11345
11336
|
s.unmount();
|
|
11346
11337
|
}), (c, l) => {
|
|
11347
11338
|
const A = es("RouterView");
|
|
11348
|
-
return
|
|
11339
|
+
return tn(), qn(A, {
|
|
11349
11340
|
key: ge(r).path
|
|
11350
11341
|
});
|
|
11351
11342
|
};
|
|
@@ -11367,7 +11358,7 @@ const yd = /* @__PURE__ */ tn({
|
|
|
11367
11358
|
},
|
|
11368
11359
|
{}
|
|
11369
11360
|
);
|
|
11370
|
-
}, wd = [...pt, ...
|
|
11361
|
+
}, wd = [...pt, ...Xn].map((t) => ({
|
|
11371
11362
|
...t,
|
|
11372
11363
|
component: os(
|
|
11373
11364
|
_r({ loader: t.component })
|
|
@@ -11376,10 +11367,10 @@ const yd = /* @__PURE__ */ tn({
|
|
|
11376
11367
|
export {
|
|
11377
11368
|
xa as A,
|
|
11378
11369
|
wd as B,
|
|
11379
|
-
|
|
11370
|
+
on as S,
|
|
11380
11371
|
yr as _,
|
|
11381
|
-
|
|
11382
|
-
|
|
11372
|
+
jn as a,
|
|
11373
|
+
Gn as b,
|
|
11383
11374
|
XA as c,
|
|
11384
11375
|
GA as d,
|
|
11385
11376
|
Pi as e,
|