@feedmepos/mf-payment 1.5.75-dev → 1.5.76-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Actions.vue_vue_type_script_setup_true_lang-Clq0gK8F.js → Actions.vue_vue_type_script_setup_true_lang-BBWoxxpE.js} +1 -1
- package/dist/{Chargeback-B0NVPvX4.js → Chargeback-7jLLq3BR.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DzWdVh1k.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DTcwQ5Qj.js} +1 -1
- package/dist/{OnboardForm-CLixHoAD.js → OnboardForm-BN0ILsGU.js} +5 -5
- package/dist/{OnboardForm--EzInjiZ.js → OnboardForm-D_FIXmPB.js} +5 -5
- package/dist/{OnboardSubmission-C13NgJ_c.js → OnboardSubmission-CjObMzjr.js} +5 -5
- package/dist/{OnboardSubmission-Vrq1v0BQ.js → OnboardSubmission-hDMAGRnx.js} +2 -2
- package/dist/{PayoutAccount-D8-JYW4l.js → PayoutAccount-BdfuqSaf.js} +5 -5
- package/dist/{PayoutAccount-C_NgECbv.js → PayoutAccount-BpSQ2zQk.js} +5 -5
- package/dist/{PayoutAccountSetting-uv82IM9I.js → PayoutAccountSetting-Bj3ayBnW.js} +4 -4
- package/dist/{Restaurant-CeLGtOhN.js → Restaurant-BeasTCBN.js} +4 -4
- package/dist/{RestaurantSetting-CokkKQf1.js → RestaurantSetting-DwRraruD.js} +3 -3
- package/dist/{Settlement-BaVdCbhk.js → Settlement-CDQ4mC52.js} +3 -3
- package/dist/{Settlement-IzzxWS1Y.js → Settlement-CFfl02X_.js} +4 -4
- package/dist/{SettlementTransactions-BBiA4hjd.js → SettlementTransactions-BXeYz_iy.js} +4 -4
- package/dist/{SettlementTransactions-ClWROLAZ.js → SettlementTransactions-Bt_v-aI6.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-CMK3yXwC.js → Status.vue_vue_type_script_setup_true_lang-Cq8LBhUh.js} +1 -1
- package/dist/{Terminal-BFi2UmMt.js → Terminal-Bdra-49r.js} +5 -5
- package/dist/{TerminalSetting-AMhDLMFF.js → TerminalSetting-CzjDu4A_.js} +4 -4
- package/dist/{Transaction-6wkXIJe6.js → Transaction-BG3RCxYv.js} +6 -6
- package/dist/{Transaction-ajQzNDfS.js → Transaction-C3Le6Ig-.js} +10 -10
- package/dist/{TransactionOld--JDqFNem.js → TransactionOld-BXbn3NQy.js} +7 -7
- package/dist/{app-BWWQuKIi.js → app-DEJ_hAvw.js} +347 -344
- package/dist/app.d.ts +10 -5
- package/dist/app.js +1 -1
- package/dist/{assets-DPrEWC9w.js → assets-DhWdwOH7.js} +1 -1
- package/dist/{grafana-C0ylC9Dp.js → grafana-DJDzzJ9q.js} +1 -1
- package/dist/{index-YMOHOygz.js → index-BL_cPUhX.js} +2 -2
- package/dist/{index-Bd57_1iM.js → index-BbaDzW6B.js} +1 -1
- package/dist/{index-B9ASzUdx.js → index-BpwmbLR4.js} +1 -1
- package/dist/{index-BTy0uOXW.js → index-C2X36PPH.js} +1 -1
- package/dist/{index-Cj2vufH8.js → index-DbCpzLPM.js} +1 -1
- package/dist/{index-Co2hdn_t.js → index-DgtoLJuf.js} +1 -1
- package/dist/{index-Bm1sygad.js → index-DqBHy3Py.js} +1 -1
- package/dist/{index-HHaDD7PZ.js → index-DugLDgA_.js} +1 -1
- package/dist/{index-BbyGIYO2.js → index-RripfGVB.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dtwo4sVt.js → index.vue_vue_type_script_setup_true_lang-Bl9xUvgx.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-sqOaU3lp.js → payout-account-C0AWMnuX.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1229,7 +1229,7 @@ function cs(t, e, n) {
|
|
|
1229
1229
|
lazy: s = !1,
|
|
1230
1230
|
evaluating: a = void 0,
|
|
1231
1231
|
shallow: i = !0,
|
|
1232
|
-
onError:
|
|
1232
|
+
onError: l = os
|
|
1233
1233
|
} = r, A = bt(!s), u = i ? Qr(e) : bt(e);
|
|
1234
1234
|
let f = 0;
|
|
1235
1235
|
return Ur(async (p) => {
|
|
@@ -1249,7 +1249,7 @@ function cs(t, e, n) {
|
|
|
1249
1249
|
});
|
|
1250
1250
|
E === f && (u.value = M);
|
|
1251
1251
|
} catch (M) {
|
|
1252
|
-
|
|
1252
|
+
l(M);
|
|
1253
1253
|
} finally {
|
|
1254
1254
|
a && E === f && (a.value = !1), C = !0;
|
|
1255
1255
|
}
|
|
@@ -1290,23 +1290,23 @@ var Tn = { exports: {} };
|
|
|
1290
1290
|
var i = r[a] = { i: a, l: !1, exports: {} };
|
|
1291
1291
|
return n[a].call(i.exports, i, i.exports, s), i.l = !0, i.exports;
|
|
1292
1292
|
}
|
|
1293
|
-
return s.m = n, s.c = r, s.d = function(a, i,
|
|
1294
|
-
s.o(a, i) || Object.defineProperty(a, i, { enumerable: !0, get:
|
|
1293
|
+
return s.m = n, s.c = r, s.d = function(a, i, l) {
|
|
1294
|
+
s.o(a, i) || Object.defineProperty(a, i, { enumerable: !0, get: l });
|
|
1295
1295
|
}, s.r = function(a) {
|
|
1296
1296
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(a, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(a, "__esModule", { value: !0 });
|
|
1297
1297
|
}, s.t = function(a, i) {
|
|
1298
1298
|
if (1 & i && (a = s(a)), 8 & i || 4 & i && typeof a == "object" && a && a.__esModule) return a;
|
|
1299
|
-
var
|
|
1300
|
-
if (s.r(
|
|
1299
|
+
var l = /* @__PURE__ */ Object.create(null);
|
|
1300
|
+
if (s.r(l), Object.defineProperty(l, "default", { enumerable: !0, value: a }), 2 & i && typeof a != "string")
|
|
1301
1301
|
for (var A in a)
|
|
1302
1302
|
s.d(
|
|
1303
|
-
|
|
1303
|
+
l,
|
|
1304
1304
|
A,
|
|
1305
1305
|
(function(u) {
|
|
1306
1306
|
return a[u];
|
|
1307
1307
|
}).bind(null, A)
|
|
1308
1308
|
);
|
|
1309
|
-
return
|
|
1309
|
+
return l;
|
|
1310
1310
|
}, s.n = function(a) {
|
|
1311
1311
|
var i = a && a.__esModule ? function() {
|
|
1312
1312
|
return a.default;
|
|
@@ -1331,8 +1331,8 @@ var Tn = { exports: {} };
|
|
|
1331
1331
|
}
|
|
1332
1332
|
function i(o) {
|
|
1333
1333
|
var d = "[object " + o + "]";
|
|
1334
|
-
return function(
|
|
1335
|
-
return Object.prototype.toString.call(
|
|
1334
|
+
return function(h) {
|
|
1335
|
+
return Object.prototype.toString.call(h) === d;
|
|
1336
1336
|
};
|
|
1337
1337
|
}
|
|
1338
1338
|
s.r(r), s.d(r, "default", function() {
|
|
@@ -1342,28 +1342,28 @@ var Tn = { exports: {} };
|
|
|
1342
1342
|
}), s.d(r, "comparable", function() {
|
|
1343
1343
|
return ve;
|
|
1344
1344
|
});
|
|
1345
|
-
var
|
|
1345
|
+
var l = i("Array"), A = i("Object"), u = i("Function");
|
|
1346
1346
|
function f(o, d) {
|
|
1347
1347
|
return u(o.get) ? o.get(d) : o[d];
|
|
1348
1348
|
}
|
|
1349
1349
|
function p(o) {
|
|
1350
|
-
return function(d,
|
|
1351
|
-
if (!
|
|
1352
|
-
for (var m = 0, b =
|
|
1353
|
-
if (o(d, f(
|
|
1350
|
+
return function(d, h) {
|
|
1351
|
+
if (!l(h) || !h.length) return o(d, h);
|
|
1352
|
+
for (var m = 0, b = h.length; m < b; m++)
|
|
1353
|
+
if (o(d, f(h, m))) return !0;
|
|
1354
1354
|
return !1;
|
|
1355
1355
|
};
|
|
1356
1356
|
}
|
|
1357
1357
|
function E(o) {
|
|
1358
|
-
return function(d,
|
|
1359
|
-
if (!
|
|
1360
|
-
for (var m = 0, b =
|
|
1361
|
-
if (!o(d, f(
|
|
1358
|
+
return function(d, h) {
|
|
1359
|
+
if (!l(h) || !h.length) return o(d, h);
|
|
1360
|
+
for (var m = 0, b = h.length; m < b; m++)
|
|
1361
|
+
if (!o(d, f(h, m))) return !1;
|
|
1362
1362
|
return !0;
|
|
1363
1363
|
};
|
|
1364
1364
|
}
|
|
1365
|
-
function C(o, d,
|
|
1366
|
-
return o.validate(o.options, d,
|
|
1365
|
+
function C(o, d, h, m) {
|
|
1366
|
+
return o.validate(o.options, d, h, m);
|
|
1367
1367
|
}
|
|
1368
1368
|
var M = {
|
|
1369
1369
|
$eq: p(function(o, d) {
|
|
@@ -1393,54 +1393,54 @@ var Tn = { exports: {} };
|
|
|
1393
1393
|
$nin: function(o, d) {
|
|
1394
1394
|
return o(d);
|
|
1395
1395
|
},
|
|
1396
|
-
$not: function(o, d,
|
|
1397
|
-
return o(d,
|
|
1396
|
+
$not: function(o, d, h, m) {
|
|
1397
|
+
return o(d, h, m);
|
|
1398
1398
|
},
|
|
1399
1399
|
$type: function(o, d) {
|
|
1400
1400
|
return o(d);
|
|
1401
1401
|
},
|
|
1402
|
-
$all: function(o, d,
|
|
1403
|
-
return M.$and(o, d,
|
|
1402
|
+
$all: function(o, d, h, m) {
|
|
1403
|
+
return M.$and(o, d, h, m);
|
|
1404
1404
|
},
|
|
1405
1405
|
$size: function(o, d) {
|
|
1406
1406
|
return !!d && o === d.length;
|
|
1407
1407
|
},
|
|
1408
|
-
$or: function(o, d,
|
|
1408
|
+
$or: function(o, d, h, m) {
|
|
1409
1409
|
for (var b = 0, B = o.length; b < B; b++)
|
|
1410
|
-
if (C(f(o, b), d,
|
|
1410
|
+
if (C(f(o, b), d, h, m)) return !0;
|
|
1411
1411
|
return !1;
|
|
1412
1412
|
},
|
|
1413
|
-
$nor: function(o, d,
|
|
1414
|
-
return !M.$or(o, d,
|
|
1413
|
+
$nor: function(o, d, h, m) {
|
|
1414
|
+
return !M.$or(o, d, h, m);
|
|
1415
1415
|
},
|
|
1416
|
-
$and: function(o, d,
|
|
1416
|
+
$and: function(o, d, h, m) {
|
|
1417
1417
|
for (var b = 0, B = o.length; b < B; b++)
|
|
1418
|
-
if (!C(f(o, b), d,
|
|
1418
|
+
if (!C(f(o, b), d, h, m)) return !1;
|
|
1419
1419
|
return !0;
|
|
1420
1420
|
},
|
|
1421
1421
|
$regex: p(function(o, d) {
|
|
1422
1422
|
return typeof d == "string" && o.test(d);
|
|
1423
1423
|
}),
|
|
1424
|
-
$where: function(o, d,
|
|
1425
|
-
return o.call(d, d,
|
|
1424
|
+
$where: function(o, d, h, m) {
|
|
1425
|
+
return o.call(d, d, h, m);
|
|
1426
1426
|
},
|
|
1427
|
-
$elemMatch: function(o, d,
|
|
1428
|
-
return
|
|
1427
|
+
$elemMatch: function(o, d, h, m) {
|
|
1428
|
+
return l(d) ? !!~function(b, B) {
|
|
1429
1429
|
for (var y = 0; y < b.length; y++)
|
|
1430
1430
|
if (f(b, y), C(B, f(b, y))) return y;
|
|
1431
1431
|
return -1;
|
|
1432
|
-
}(d, o) : C(o, d,
|
|
1432
|
+
}(d, o) : C(o, d, h, m);
|
|
1433
1433
|
},
|
|
1434
|
-
$exists: function(o, d,
|
|
1435
|
-
return m.hasOwnProperty(
|
|
1434
|
+
$exists: function(o, d, h, m) {
|
|
1435
|
+
return m.hasOwnProperty(h) === o;
|
|
1436
1436
|
}
|
|
1437
1437
|
}, T = {
|
|
1438
|
-
$eq: function(o, d,
|
|
1439
|
-
var m =
|
|
1438
|
+
$eq: function(o, d, h) {
|
|
1439
|
+
var m = h.comparable, b = h.compare;
|
|
1440
1440
|
return o instanceof RegExp ? p(function(B) {
|
|
1441
1441
|
return typeof B == "string" && o.test(B);
|
|
1442
|
-
}) : o instanceof Function ? p(o) :
|
|
1443
|
-
return
|
|
1442
|
+
}) : o instanceof Function ? p(o) : l(o) && !o.length ? p(function(B) {
|
|
1443
|
+
return l(B) && !B.length;
|
|
1444
1444
|
}) : p(
|
|
1445
1445
|
o === null ? function(B) {
|
|
1446
1446
|
return B == null;
|
|
@@ -1449,32 +1449,32 @@ var Tn = { exports: {} };
|
|
|
1449
1449
|
}
|
|
1450
1450
|
);
|
|
1451
1451
|
},
|
|
1452
|
-
$gt: function(o, d,
|
|
1453
|
-
var m =
|
|
1452
|
+
$gt: function(o, d, h) {
|
|
1453
|
+
var m = h.comparable, b = h.compare;
|
|
1454
1454
|
return function(B) {
|
|
1455
1455
|
return b(m(B), m(o)) > 0;
|
|
1456
1456
|
};
|
|
1457
1457
|
},
|
|
1458
|
-
$gte: function(o, d,
|
|
1459
|
-
var m =
|
|
1458
|
+
$gte: function(o, d, h) {
|
|
1459
|
+
var m = h.comparable, b = h.compare;
|
|
1460
1460
|
return function(B) {
|
|
1461
1461
|
return b(m(B), m(o)) >= 0;
|
|
1462
1462
|
};
|
|
1463
1463
|
},
|
|
1464
|
-
$lt: function(o, d,
|
|
1465
|
-
var m =
|
|
1464
|
+
$lt: function(o, d, h) {
|
|
1465
|
+
var m = h.comparable, b = h.compare;
|
|
1466
1466
|
return function(B) {
|
|
1467
1467
|
return b(m(B), m(o)) < 0;
|
|
1468
1468
|
};
|
|
1469
1469
|
},
|
|
1470
|
-
$lte: function(o, d,
|
|
1471
|
-
var m =
|
|
1470
|
+
$lte: function(o, d, h) {
|
|
1471
|
+
var m = h.comparable, b = h.compare;
|
|
1472
1472
|
return function(B) {
|
|
1473
1473
|
return b(m(B), m(o)) <= 0;
|
|
1474
1474
|
};
|
|
1475
1475
|
},
|
|
1476
|
-
$in: function(o, d,
|
|
1477
|
-
var m =
|
|
1476
|
+
$in: function(o, d, h) {
|
|
1477
|
+
var m = h.comparable;
|
|
1478
1478
|
return function(b) {
|
|
1479
1479
|
if (!(b instanceof Array)) {
|
|
1480
1480
|
var B = m(b);
|
|
@@ -1487,7 +1487,7 @@ var Tn = { exports: {} };
|
|
|
1487
1487
|
for (D = o.length; D--; ) if (o[D] == null) return !0;
|
|
1488
1488
|
}
|
|
1489
1489
|
for (D = o.length; D--; ) {
|
|
1490
|
-
var y = C(be(f(o, D),
|
|
1490
|
+
var y = C(be(f(o, D), h), B, D, o);
|
|
1491
1491
|
if (y && String(y) !== "[object Object]" && String(B) !== "[object Object]")
|
|
1492
1492
|
return !0;
|
|
1493
1493
|
}
|
|
@@ -1498,8 +1498,8 @@ var Tn = { exports: {} };
|
|
|
1498
1498
|
return !1;
|
|
1499
1499
|
};
|
|
1500
1500
|
},
|
|
1501
|
-
$nin: function(o, d,
|
|
1502
|
-
var m = T.$in(o, d,
|
|
1501
|
+
$nin: function(o, d, h) {
|
|
1502
|
+
var m = T.$in(o, d, h);
|
|
1503
1503
|
return function(b, B, y, D) {
|
|
1504
1504
|
return !m(b, B, y, D);
|
|
1505
1505
|
};
|
|
@@ -1509,32 +1509,32 @@ var Tn = { exports: {} };
|
|
|
1509
1509
|
return d % o[0] == o[1];
|
|
1510
1510
|
};
|
|
1511
1511
|
},
|
|
1512
|
-
$ne: function(o, d,
|
|
1513
|
-
var m = T.$eq(o, d,
|
|
1512
|
+
$ne: function(o, d, h) {
|
|
1513
|
+
var m = T.$eq(o, d, h);
|
|
1514
1514
|
return E(function(b, B, y, D) {
|
|
1515
1515
|
return !m(b, B, y, D);
|
|
1516
1516
|
});
|
|
1517
1517
|
},
|
|
1518
|
-
$and: function(o, d,
|
|
1519
|
-
return o.map(k(
|
|
1518
|
+
$and: function(o, d, h) {
|
|
1519
|
+
return o.map(k(h));
|
|
1520
1520
|
},
|
|
1521
|
-
$all: function(o, d,
|
|
1522
|
-
return T.$and(o, d,
|
|
1521
|
+
$all: function(o, d, h) {
|
|
1522
|
+
return T.$and(o, d, h);
|
|
1523
1523
|
},
|
|
1524
|
-
$or: function(o, d,
|
|
1525
|
-
return o.map(k(
|
|
1524
|
+
$or: function(o, d, h) {
|
|
1525
|
+
return o.map(k(h));
|
|
1526
1526
|
},
|
|
1527
|
-
$nor: function(o, d,
|
|
1528
|
-
return o.map(k(
|
|
1527
|
+
$nor: function(o, d, h) {
|
|
1528
|
+
return o.map(k(h));
|
|
1529
1529
|
},
|
|
1530
|
-
$not: function(o, d,
|
|
1531
|
-
var m = k(
|
|
1530
|
+
$not: function(o, d, h) {
|
|
1531
|
+
var m = k(h)(o);
|
|
1532
1532
|
return function(b, B, y) {
|
|
1533
1533
|
return !C(m, b, B, y);
|
|
1534
1534
|
};
|
|
1535
1535
|
},
|
|
1536
1536
|
$type: function(o) {
|
|
1537
|
-
return function(d,
|
|
1537
|
+
return function(d, h, m) {
|
|
1538
1538
|
return d != null && (d instanceof o || d.constructor == o);
|
|
1539
1539
|
};
|
|
1540
1540
|
},
|
|
@@ -1547,8 +1547,8 @@ var Tn = { exports: {} };
|
|
|
1547
1547
|
'In CSP mode, sift does not support strings in "$where" condition'
|
|
1548
1548
|
);
|
|
1549
1549
|
},
|
|
1550
|
-
$elemMatch: function(o, d,
|
|
1551
|
-
return k(
|
|
1550
|
+
$elemMatch: function(o, d, h) {
|
|
1551
|
+
return k(h)(o);
|
|
1552
1552
|
},
|
|
1553
1553
|
$exists: function(o) {
|
|
1554
1554
|
return !!o;
|
|
@@ -1558,15 +1558,15 @@ var Tn = { exports: {} };
|
|
|
1558
1558
|
return { options: o, validate: d };
|
|
1559
1559
|
}
|
|
1560
1560
|
function ke(o, d) {
|
|
1561
|
-
var
|
|
1561
|
+
var h = o.keyPath, m = o.child, b = o.query, B = [];
|
|
1562
1562
|
if (function St(S, ye, De, Rr, ct) {
|
|
1563
1563
|
if (De === ye.length || S == null)
|
|
1564
1564
|
return void ct.push([S, ye[De - 1], Rr]);
|
|
1565
1565
|
var Zt = f(ye, De);
|
|
1566
|
-
if (
|
|
1566
|
+
if (l(S) && isNaN(Number(Zt)))
|
|
1567
1567
|
for (var lt = 0, Nr = S.length; lt < Nr; lt++) St(f(S, lt), ye, De, S, ct);
|
|
1568
1568
|
else St(f(S, Zt), ye, De + 1, S, ct);
|
|
1569
|
-
}(d,
|
|
1569
|
+
}(d, h, 0, d, B), B.length === 1) {
|
|
1570
1570
|
var y = B[0];
|
|
1571
1571
|
return C(m, y[0], y[1], y[2]);
|
|
1572
1572
|
}
|
|
@@ -1576,11 +1576,11 @@ var Tn = { exports: {} };
|
|
|
1576
1576
|
}
|
|
1577
1577
|
return G;
|
|
1578
1578
|
}
|
|
1579
|
-
function Re(o, d,
|
|
1580
|
-
return x({ keyPath: o, child: d, query:
|
|
1579
|
+
function Re(o, d, h) {
|
|
1580
|
+
return x({ keyPath: o, child: d, query: h }, ke);
|
|
1581
1581
|
}
|
|
1582
1582
|
function k(o) {
|
|
1583
|
-
var d = o.comparable,
|
|
1583
|
+
var d = o.comparable, h = o.expressions, m = function(y) {
|
|
1584
1584
|
var D;
|
|
1585
1585
|
return (!y || !(D = y) || D.constructor !== Object && D.constructor !== Array && D.constructor.toString() !== "function Object() { [native code] }" && D.constructor.toString() !== "function Array() { [native code] }" || D.toJSON) && (y = { $eq: y }), y;
|
|
1586
1586
|
}, b = function(y) {
|
|
@@ -1589,7 +1589,7 @@ var Tn = { exports: {} };
|
|
|
1589
1589
|
for (var G in y) {
|
|
1590
1590
|
var O = y[G];
|
|
1591
1591
|
if (G !== "$options") {
|
|
1592
|
-
var F = M[G] || o &&
|
|
1592
|
+
var F = M[G] || o && h && h[G];
|
|
1593
1593
|
if (F) T[G] && (O = T[G](O, y, o)), D.push(x(d(O), F));
|
|
1594
1594
|
else {
|
|
1595
1595
|
if (G.charCodeAt(0) === 36)
|
|
@@ -1616,10 +1616,10 @@ var Tn = { exports: {} };
|
|
|
1616
1616
|
return !1;
|
|
1617
1617
|
if (A(o)) {
|
|
1618
1618
|
if (Object.keys(o).length !== Object.keys(d).length) return !1;
|
|
1619
|
-
for (var
|
|
1619
|
+
for (var h in o) if (!se(o[h], d[h])) return !1;
|
|
1620
1620
|
return !0;
|
|
1621
1621
|
}
|
|
1622
|
-
if (
|
|
1622
|
+
if (l(o)) {
|
|
1623
1623
|
if (o.length !== d.length) return !1;
|
|
1624
1624
|
for (var m = 0, b = o.length; m < b; m++)
|
|
1625
1625
|
if (!se(o[m], d[m])) return !1;
|
|
@@ -1628,18 +1628,18 @@ var Tn = { exports: {} };
|
|
|
1628
1628
|
return o === d;
|
|
1629
1629
|
}
|
|
1630
1630
|
function be(o, d) {
|
|
1631
|
-
var
|
|
1632
|
-
return d && d.select && (
|
|
1633
|
-
options:
|
|
1631
|
+
var h = k(d)(o);
|
|
1632
|
+
return d && d.select && (h = {
|
|
1633
|
+
options: h,
|
|
1634
1634
|
validate: function(m, b, B, y) {
|
|
1635
1635
|
return C(m, b && d.select(b), B, y);
|
|
1636
1636
|
}
|
|
1637
|
-
}),
|
|
1637
|
+
}), h;
|
|
1638
1638
|
}
|
|
1639
1639
|
function we(o, d) {
|
|
1640
|
-
var
|
|
1640
|
+
var h = be(o, d = Object.assign({ compare: Be, comparable: ve }, d));
|
|
1641
1641
|
return function(m, b, B) {
|
|
1642
|
-
return C(
|
|
1642
|
+
return C(h, m, b, B);
|
|
1643
1643
|
};
|
|
1644
1644
|
}
|
|
1645
1645
|
function Be(o, d) {
|
|
@@ -1650,7 +1650,7 @@ var Tn = { exports: {} };
|
|
|
1650
1650
|
}
|
|
1651
1651
|
}
|
|
1652
1652
|
function ve(o) {
|
|
1653
|
-
return o instanceof Date ? o.getTime() :
|
|
1653
|
+
return o instanceof Date ? o.getTime() : l(o) ? o.map(ve) : o && typeof o.toJSON == "function" ? o.toJSON() : o;
|
|
1654
1654
|
}
|
|
1655
1655
|
}
|
|
1656
1656
|
]);
|
|
@@ -1692,9 +1692,9 @@ function ms() {
|
|
|
1692
1692
|
}
|
|
1693
1693
|
function Xe(t, e, n) {
|
|
1694
1694
|
return ms() ? Xe = Reflect.construct : Xe = function(s, a, i) {
|
|
1695
|
-
var
|
|
1696
|
-
|
|
1697
|
-
var A = Function.bind.apply(s,
|
|
1695
|
+
var l = [null];
|
|
1696
|
+
l.push.apply(l, a);
|
|
1697
|
+
var A = Function.bind.apply(s, l), u = new A();
|
|
1698
1698
|
return i && Se(u, i.prototype), u;
|
|
1699
1699
|
}, Xe.apply(null, arguments);
|
|
1700
1700
|
}
|
|
@@ -1752,15 +1752,15 @@ var On = function(e) {
|
|
|
1752
1752
|
}, n.throwUnlessCan = function(s, a, i) {
|
|
1753
1753
|
if (!this.ability)
|
|
1754
1754
|
throw new ReferenceError("Cannot throw FordiddenError without respective ability instance");
|
|
1755
|
-
var
|
|
1756
|
-
if (!(
|
|
1755
|
+
var l = this.ability.relevantRuleFor(s, a, i);
|
|
1756
|
+
if (!(l && !l.inverted)) {
|
|
1757
1757
|
this._setMetadata({
|
|
1758
1758
|
action: s,
|
|
1759
1759
|
subject: a,
|
|
1760
1760
|
field: i,
|
|
1761
1761
|
subjectName: this.ability.subjectName(a)
|
|
1762
1762
|
});
|
|
1763
|
-
var A =
|
|
1763
|
+
var A = l ? l.reason : "";
|
|
1764
1764
|
throw this.message = this._customMessage || A || Fe(this), this;
|
|
1765
1765
|
}
|
|
1766
1766
|
}, n._setMetadata = function(s) {
|
|
@@ -1849,9 +1849,9 @@ var Gs = /* @__PURE__ */ function() {
|
|
|
1849
1849
|
var a = this.buildIndexFor(r);
|
|
1850
1850
|
return process.env.NODE_ENV !== "production" && a.isAllInverted && r.length && console.warn("[casl]: Ability contains only inverted rules. That means user will not be able to do any actions. This will be changed to Error throw in the next major version"), this[j].indexedRules = a.rules, this[j].hasPerFieldRules = a.hasPerFieldRules, this.emit("updated", s), this;
|
|
1851
1851
|
}, e.buildIndexFor = function(r) {
|
|
1852
|
-
for (var s = /* @__PURE__ */ Object.create(null), a = this[j].RuleType, i = !0,
|
|
1852
|
+
for (var s = /* @__PURE__ */ Object.create(null), a = this[j].RuleType, i = !0, l = !1, A = 0; A < r.length; A++) {
|
|
1853
1853
|
var u = new a(r[A]), f = this.expandActions(u.actions), p = yt(u.subject), E = r.length - A - 1;
|
|
1854
|
-
i = !!(i && u.inverted), !
|
|
1854
|
+
i = !!(i && u.inverted), !l && u.fields && (l = !0);
|
|
1855
1855
|
for (var C = 0; C < p.length; C++) {
|
|
1856
1856
|
var M = p[C];
|
|
1857
1857
|
s[M] = s[M] || /* @__PURE__ */ Object.create(null);
|
|
@@ -1863,13 +1863,13 @@ var Gs = /* @__PURE__ */ function() {
|
|
|
1863
1863
|
}
|
|
1864
1864
|
return {
|
|
1865
1865
|
isAllInverted: i,
|
|
1866
|
-
hasPerFieldRules:
|
|
1866
|
+
hasPerFieldRules: l,
|
|
1867
1867
|
rules: s
|
|
1868
1868
|
};
|
|
1869
1869
|
}, e.expandActions = function(r) {
|
|
1870
1870
|
for (var s = this[j].aliases, a = yt(r), i = 0; i < a.length; ) {
|
|
1871
|
-
var
|
|
1872
|
-
s.hasOwnProperty(
|
|
1871
|
+
var l = a[i++];
|
|
1872
|
+
s.hasOwnProperty(l) && (a = a.concat(s[l]));
|
|
1873
1873
|
}
|
|
1874
1874
|
return a;
|
|
1875
1875
|
}, e.can = function(r, s, a) {
|
|
@@ -1878,23 +1878,23 @@ var Gs = /* @__PURE__ */ function() {
|
|
|
1878
1878
|
var i = this.relevantRuleFor(r, s, a);
|
|
1879
1879
|
return !!i && !i.inverted;
|
|
1880
1880
|
}, e.relevantRuleFor = function(r, s, a) {
|
|
1881
|
-
for (var i = this.rulesFor(r, s, a),
|
|
1882
|
-
if (i[
|
|
1883
|
-
return i[
|
|
1881
|
+
for (var i = this.rulesFor(r, s, a), l = 0; l < i.length; l++)
|
|
1882
|
+
if (i[l].matches(s))
|
|
1883
|
+
return i[l];
|
|
1884
1884
|
return null;
|
|
1885
1885
|
}, e.possibleRulesFor = function(r, s) {
|
|
1886
|
-
var a = this.subjectName(s), i = this[j].mergedRules,
|
|
1887
|
-
return i[
|
|
1886
|
+
var a = this.subjectName(s), i = this[j].mergedRules, l = a + "_" + r;
|
|
1887
|
+
return i[l] || (i[l] = this.mergeRulesFor(r, a)), i[l];
|
|
1888
1888
|
}, e.mergeRulesFor = function(r, s) {
|
|
1889
|
-
var a = this[j].indexedRules, i = [s, "all"].reduce(function(
|
|
1889
|
+
var a = this[j].indexedRules, i = [s, "all"].reduce(function(l, A) {
|
|
1890
1890
|
var u = a[A];
|
|
1891
|
-
return u ? Object.assign(
|
|
1891
|
+
return u ? Object.assign(l, u[r], u.manage) : l;
|
|
1892
1892
|
}, []);
|
|
1893
1893
|
return i.filter(Boolean);
|
|
1894
1894
|
}, e.rulesFor = function(r, s, a) {
|
|
1895
1895
|
var i = this.possibleRulesFor(r, s);
|
|
1896
|
-
return this[j].hasPerFieldRules ? i.filter(function(
|
|
1897
|
-
return
|
|
1896
|
+
return this[j].hasPerFieldRules ? i.filter(function(l) {
|
|
1897
|
+
return l.isRelevantFor(s, a);
|
|
1898
1898
|
}) : i;
|
|
1899
1899
|
}, e.cannot = function() {
|
|
1900
1900
|
return !this.can.apply(this, arguments);
|
|
@@ -1908,8 +1908,8 @@ var Gs = /* @__PURE__ */ function() {
|
|
|
1908
1908
|
var a = this[j].events, i = !0;
|
|
1909
1909
|
return a[r] || (a[r] = []), a[r].push(s), function() {
|
|
1910
1910
|
if (i) {
|
|
1911
|
-
var
|
|
1912
|
-
a[r].splice(
|
|
1911
|
+
var l = a[r].indexOf(s);
|
|
1912
|
+
a[r].splice(l, 1), i = !1;
|
|
1913
1913
|
}
|
|
1914
1914
|
};
|
|
1915
1915
|
}, e.emit = function(r, s) {
|
|
@@ -1923,25 +1923,25 @@ var Gs = /* @__PURE__ */ function() {
|
|
|
1923
1923
|
return this[j].originalRules;
|
|
1924
1924
|
}
|
|
1925
1925
|
}]), t;
|
|
1926
|
-
}(),
|
|
1926
|
+
}(), c = /* @__PURE__ */ ((t) => (t.manage = "manage", t.create = "create", t.read = "read", t.update = "update", t.delete = "delete", t))(c || {}), Ge = /* @__PURE__ */ ((t) => (t.all = "all", t.restaurant = "restaurant", t.business = "business", t.delivery = "delivery", t.agent = "agent", t))(Ge || {}), jn = /* @__PURE__ */ ((t) => (t.quota = "quota", t.owner = "owner", t))(jn || {}), g = /* @__PURE__ */ ((t) => (t.crm = "business::crm", t.crm_promotion = "business::crm::promotion", t.crm_voucher = "business::crm::voucher", t.crm_membership = "business::crm::membership", t.payment = "business::payment", t.payment_payoutAccount = "business::payment::payoutAccount", t.payment_paymentOnboarding = "business::payment::paymentOnboarding", t.payment_transactions = "business::payment::transactions", t.payment_settlements = "business::payment::settlements", t.inventory_stock = "business::inventory::stock", t.inventory_stockBalance = "business::inventory::stockBalance", t.inventory_stockAdjustment = "business::inventory::stockAdjustment", t.inventory_unitCostHistory = "business::inventory::unitCostHistory", t.inventory_wastageTemplate = "business::inventory::wastageTemplate", t.inventory_closingHistory = "business::inventory::closingHistory", t.inventory_closingTemplate = "business::inventory::closingTemplate", t.inventory_closingDraft = "business::inventory::closingDraft", t.inventory_ingredient = "business::inventory::ingredient", t.inventory_ingredientGroup = "business::inventory::ingredientGroup", t.inventory_recipe = "business::inventory::recipe", t.inventory_unit = "business::inventory::unit", t.inventory_purchaseTransfer = "business::inventory::purchaseTransfer", t.inventory_orderDraftApproval = "business::inventory::orderDraftApproval", t.inventory_transferOut = "business::inventory::transferOut", t.inventory_surcharge = "business::inventory::surcharge", t.inventory_orderTemplate = "business::inventory::orderTemplate", t.inventory_supplier = "business::inventory::supplier", t.inventory_warehouse = "business::inventory::warehouse", t.inventory_publish = "business::inventory::publish", t.inventory_import = "business::inventory::import", t.inventory_integration = "business::inventory::integration", t.hrm = "business::hrm", t.hrm_employee = "business::hrm::employee", t.hrm_teamMember = "business::hrm::teamMember", t.hrm_auditLog = "business::hrm::auditLog", t.menu = "business::menu", t.restaurant = "business::restaurant", t.role = "business::role", t.profile = "business::profile", t.report_createReport = "business::report::createReport", t.report_accessInsight = "business::report::accessInsight", t.report_accessSetting = "business::report::accessSetting", t.report_accessIntegration = "business::report::accessIntegration", t.report_accessOverview = "business::report::accessOverview", t.report_reports_allDefaultReports = "business::report::allDefaultReports", t.report_reports_allCustomReports = "business::report::allCustomReports", t))(g || {}), P = /* @__PURE__ */ ((t) => (t.profile = "business::profile", t.restaurant = "business::restaurant", t.menu = "business::menu", t.promotion = "business::promotion", t.voucher = "business::voucher", t.membership = "business::membership", t.stock = "business::stock", t.permission = "business::permission", t.role = "business::role", t.wastageTemplate = "business::wastageTemplate", t.closingTemplate = "business::closingTemplate", t.orderTemplate = "business::orderTemplate", t.ingredient = "business::ingredient", t.recipe = "business::recipe", t.unit = "business::unit", t.supplier = "business::supplier", t.warehouse = "business::warehouse", t.publish = "business::publish", t.integration = "business::integration", t.orderDraft = "business::orderDraft", t.unitCostHistory = "business::unitCostHistory", t))(P || {});
|
|
1927
1927
|
const Ys = "access-denied", Vs = {
|
|
1928
|
-
[P.permission]:
|
|
1929
|
-
[P.promotion]:
|
|
1930
|
-
[P.voucher]:
|
|
1931
|
-
[P.membership]:
|
|
1932
|
-
[P.stock]:
|
|
1933
|
-
[P.wastageTemplate]:
|
|
1934
|
-
[P.closingTemplate]:
|
|
1935
|
-
[P.orderTemplate]:
|
|
1936
|
-
[P.ingredient]:
|
|
1937
|
-
[P.recipe]:
|
|
1938
|
-
[P.unit]:
|
|
1939
|
-
[P.supplier]:
|
|
1940
|
-
[P.warehouse]:
|
|
1941
|
-
[P.publish]:
|
|
1942
|
-
[P.integration]:
|
|
1943
|
-
[P.orderDraft]:
|
|
1944
|
-
[P.unitCostHistory]:
|
|
1928
|
+
[P.permission]: g.hrm_teamMember,
|
|
1929
|
+
[P.promotion]: g.crm_promotion,
|
|
1930
|
+
[P.voucher]: g.crm_voucher,
|
|
1931
|
+
[P.membership]: g.crm_membership,
|
|
1932
|
+
[P.stock]: g.inventory_stock,
|
|
1933
|
+
[P.wastageTemplate]: g.inventory_wastageTemplate,
|
|
1934
|
+
[P.closingTemplate]: g.inventory_closingTemplate,
|
|
1935
|
+
[P.orderTemplate]: g.inventory_orderTemplate,
|
|
1936
|
+
[P.ingredient]: g.inventory_ingredient,
|
|
1937
|
+
[P.recipe]: g.inventory_recipe,
|
|
1938
|
+
[P.unit]: g.inventory_unit,
|
|
1939
|
+
[P.supplier]: g.inventory_supplier,
|
|
1940
|
+
[P.warehouse]: g.inventory_warehouse,
|
|
1941
|
+
[P.publish]: g.inventory_publish,
|
|
1942
|
+
[P.integration]: g.inventory_integration,
|
|
1943
|
+
[P.orderDraft]: g.inventory_orderDraftApproval,
|
|
1944
|
+
[P.unitCostHistory]: g.inventory_unitCostHistory
|
|
1945
1945
|
};
|
|
1946
1946
|
function Ts(t) {
|
|
1947
1947
|
return Vs[t] ?? t;
|
|
@@ -1957,16 +1957,16 @@ function js(t) {
|
|
|
1957
1957
|
return new Gs(Os(t));
|
|
1958
1958
|
}
|
|
1959
1959
|
function xn(t, e, n) {
|
|
1960
|
-
const r = Array.isArray(t) ? t : [t], s = js(e), a = (f) => f.subject, i = (f) => s.can(f.action, a(f), f.field) ? !0 : f.coverSubject !== void 0 ? s.can(f.action, f.coverSubject, f.field) : !1,
|
|
1961
|
-
if (
|
|
1960
|
+
const r = Array.isArray(t) ? t : [t], s = js(e), a = (f) => f.subject, i = (f) => s.can(f.action, a(f), f.field) ? !0 : f.coverSubject !== void 0 ? s.can(f.action, f.coverSubject, f.field) : !1, l = r.find((f) => !i(f));
|
|
1961
|
+
if (l) {
|
|
1962
1962
|
const f = s.relevantRuleFor(
|
|
1963
|
-
|
|
1964
|
-
a(
|
|
1965
|
-
|
|
1963
|
+
l.action,
|
|
1964
|
+
a(l),
|
|
1965
|
+
l.field
|
|
1966
1966
|
);
|
|
1967
1967
|
return {
|
|
1968
1968
|
granted: !1,
|
|
1969
|
-
decisivePermission:
|
|
1969
|
+
decisivePermission: l,
|
|
1970
1970
|
decisiveRule: f ?? null
|
|
1971
1971
|
};
|
|
1972
1972
|
}
|
|
@@ -2091,52 +2091,55 @@ const Ns = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
2091
2091
|
});
|
|
2092
2092
|
function kn(t) {
|
|
2093
2093
|
return {
|
|
2094
|
-
|
|
2094
|
+
inheritAttrs: !1,
|
|
2095
|
+
setup(e, { attrs: n }) {
|
|
2096
|
+
return () => wt(ea, {}, { default: () => wt(t, n) });
|
|
2097
|
+
}
|
|
2095
2098
|
};
|
|
2096
2099
|
}
|
|
2097
|
-
|
|
2100
|
+
g.restaurant, c.manage, g.menu, c.manage, g.inventory_stockBalance, c.manage, g.inventory_stockAdjustment, c.manage, g.inventory_unitCostHistory, c.manage, g.inventory_wastageTemplate, c.manage, g.inventory_closingHistory, c.manage, g.inventory_closingTemplate, c.manage, g.inventory_closingDraft, c.manage, g.inventory_ingredient, c.manage, g.inventory_ingredientGroup, c.manage, g.inventory_recipe, c.manage, g.inventory_unit, c.manage, g.inventory_purchaseTransfer, c.manage, g.inventory_orderDraftApproval, c.manage, g.inventory_transferOut, c.manage, g.inventory_surcharge, c.manage, g.inventory_orderTemplate, c.manage, g.inventory_supplier, c.manage, g.inventory_warehouse, c.manage, g.inventory_publish, c.manage, g.inventory_import, c.manage, g.inventory_integration, c.manage, g.crm_promotion, c.manage, g.crm_voucher, c.manage, g.crm_membership, c.manage, g.payment_payoutAccount, c.manage, g.payment_paymentOnboarding, c.manage, g.payment_transactions, c.manage, g.payment_settlements, c.manage, g.hrm_teamMember, c.manage, g.hrm_employee, c.manage, g.hrm_auditLog, c.manage, g.report_createReport, c.manage, g.report_accessOverview, c.manage, g.report_accessInsight, c.manage, g.report_accessSetting, c.manage, g.report_accessIntegration, c.manage, g.report_reports_allDefaultReports, c.manage, c.read, c.create, g.report_reports_allCustomReports, c.manage, c.read, c.create, c.update, c.delete;
|
|
2098
2101
|
var w = /* @__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))(w || {});
|
|
2099
2102
|
const V = [
|
|
2100
2103
|
{
|
|
2101
2104
|
label: "Inventory",
|
|
2102
2105
|
subject: w.inventory,
|
|
2103
|
-
actions: [
|
|
2106
|
+
actions: [c.read]
|
|
2104
2107
|
}
|
|
2105
2108
|
], xt = [
|
|
2106
2109
|
...V,
|
|
2107
2110
|
{
|
|
2108
2111
|
label: "Stock",
|
|
2109
2112
|
subject: w.inventory_stock,
|
|
2110
|
-
actions: [
|
|
2113
|
+
actions: [c.read, c.create, c.update]
|
|
2111
2114
|
},
|
|
2112
2115
|
{
|
|
2113
2116
|
label: "Stock Adjustment",
|
|
2114
2117
|
subject: w.inventory_stockAdjustment,
|
|
2115
|
-
actions: [
|
|
2118
|
+
actions: [c.read, c.update]
|
|
2116
2119
|
},
|
|
2117
2120
|
{
|
|
2118
2121
|
label: "Stock Recalculation",
|
|
2119
2122
|
subject: w.inventory_stockRecalculation,
|
|
2120
|
-
actions: [
|
|
2123
|
+
actions: [c.update]
|
|
2121
2124
|
},
|
|
2122
2125
|
{
|
|
2123
2126
|
label: "Unit Cost History",
|
|
2124
2127
|
subject: w.inventory_unitCostHistory,
|
|
2125
|
-
actions: [
|
|
2128
|
+
actions: [c.read]
|
|
2126
2129
|
}
|
|
2127
2130
|
], ta = [
|
|
2128
2131
|
...V,
|
|
2129
2132
|
{
|
|
2130
2133
|
label: "Stock Adjustment",
|
|
2131
2134
|
subject: w.inventory_stockAdjustment,
|
|
2132
|
-
actions: [
|
|
2135
|
+
actions: [c.update]
|
|
2133
2136
|
}
|
|
2134
2137
|
], Rn = [
|
|
2135
2138
|
...V,
|
|
2136
2139
|
{
|
|
2137
2140
|
label: "Unit Cost History",
|
|
2138
2141
|
subject: w.inventory_unitCostHistory,
|
|
2139
|
-
actions: [
|
|
2142
|
+
actions: [c.read, c.update]
|
|
2140
2143
|
}
|
|
2141
2144
|
], Nn = [
|
|
2142
2145
|
...V,
|
|
@@ -2144,10 +2147,10 @@ const V = [
|
|
|
2144
2147
|
label: "Wastage Template",
|
|
2145
2148
|
subject: w.inventory_wastageTemplate,
|
|
2146
2149
|
actions: [
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2150
|
+
c.read,
|
|
2151
|
+
c.create,
|
|
2152
|
+
c.update,
|
|
2153
|
+
c.delete
|
|
2151
2154
|
]
|
|
2152
2155
|
}
|
|
2153
2156
|
];
|
|
@@ -2161,44 +2164,44 @@ const kt = [
|
|
|
2161
2164
|
{
|
|
2162
2165
|
label: "Closing",
|
|
2163
2166
|
subject: w.inventory_closing,
|
|
2164
|
-
actions: [
|
|
2167
|
+
actions: [c.read, c.create]
|
|
2165
2168
|
},
|
|
2166
2169
|
{
|
|
2167
2170
|
label: "Stock Recalculation",
|
|
2168
2171
|
subject: w.inventory_stockRecalculation,
|
|
2169
|
-
actions: [
|
|
2172
|
+
actions: [c.read, c.update]
|
|
2170
2173
|
},
|
|
2171
2174
|
{
|
|
2172
2175
|
label: "Closing Draft",
|
|
2173
2176
|
subject: w.inventory_closingDraft,
|
|
2174
|
-
actions: [
|
|
2177
|
+
actions: [c.read]
|
|
2175
2178
|
}
|
|
2176
2179
|
], Fn = [
|
|
2177
2180
|
...V,
|
|
2178
2181
|
{
|
|
2179
2182
|
label: "Closing Draft",
|
|
2180
2183
|
subject: w.inventory_closingDraft,
|
|
2181
|
-
actions: [
|
|
2184
|
+
actions: [c.read, c.create, c.update]
|
|
2182
2185
|
},
|
|
2183
2186
|
{
|
|
2184
2187
|
label: "Closing",
|
|
2185
2188
|
subject: w.inventory_closing,
|
|
2186
|
-
actions: [
|
|
2189
|
+
actions: [c.read]
|
|
2187
2190
|
},
|
|
2188
2191
|
{
|
|
2189
2192
|
label: "Stock Recalculation",
|
|
2190
2193
|
subject: w.inventory_stockRecalculation,
|
|
2191
|
-
actions: [
|
|
2194
|
+
actions: [c.read, c.update]
|
|
2192
2195
|
},
|
|
2193
2196
|
{
|
|
2194
2197
|
label: "Stock",
|
|
2195
2198
|
subject: w.inventory_stock,
|
|
2196
|
-
actions: [
|
|
2199
|
+
actions: [c.read]
|
|
2197
2200
|
},
|
|
2198
2201
|
{
|
|
2199
2202
|
label: "Stock Adjustment",
|
|
2200
2203
|
subject: w.inventory_stockAdjustment,
|
|
2201
|
-
actions: [
|
|
2204
|
+
actions: [c.read]
|
|
2202
2205
|
}
|
|
2203
2206
|
], Hn = [
|
|
2204
2207
|
...V,
|
|
@@ -2206,16 +2209,16 @@ const kt = [
|
|
|
2206
2209
|
label: "Closing Template",
|
|
2207
2210
|
subject: w.inventory_closingTemplate,
|
|
2208
2211
|
actions: [
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2212
|
+
c.read,
|
|
2213
|
+
c.create,
|
|
2214
|
+
c.update,
|
|
2215
|
+
c.delete
|
|
2213
2216
|
]
|
|
2214
2217
|
},
|
|
2215
2218
|
{
|
|
2216
2219
|
label: "Closing",
|
|
2217
2220
|
subject: w.inventory_closing,
|
|
2218
|
-
actions: [
|
|
2221
|
+
actions: [c.read]
|
|
2219
2222
|
}
|
|
2220
2223
|
];
|
|
2221
2224
|
[
|
|
@@ -2227,102 +2230,102 @@ const na = [
|
|
|
2227
2230
|
{
|
|
2228
2231
|
label: "Inventory",
|
|
2229
2232
|
subject: w.inventory,
|
|
2230
|
-
actions: [
|
|
2233
|
+
actions: [c.read, c.update]
|
|
2231
2234
|
},
|
|
2232
2235
|
{
|
|
2233
2236
|
label: "Order Template",
|
|
2234
2237
|
subject: w.inventory_orderTemplate,
|
|
2235
|
-
actions: [
|
|
2238
|
+
actions: [c.read, c.update]
|
|
2236
2239
|
},
|
|
2237
2240
|
{
|
|
2238
2241
|
label: "Wastage Template",
|
|
2239
2242
|
subject: w.inventory_wastageTemplate,
|
|
2240
|
-
actions: [
|
|
2243
|
+
actions: [c.read, c.update]
|
|
2241
2244
|
},
|
|
2242
2245
|
{
|
|
2243
2246
|
label: "Closing Template",
|
|
2244
2247
|
subject: w.inventory_closingTemplate,
|
|
2245
|
-
actions: [
|
|
2248
|
+
actions: [c.read, c.update]
|
|
2246
2249
|
}
|
|
2247
2250
|
], ra = [
|
|
2248
2251
|
{
|
|
2249
2252
|
label: "Inventory",
|
|
2250
2253
|
subject: w.inventory,
|
|
2251
|
-
actions: [
|
|
2254
|
+
actions: [c.read, c.update]
|
|
2252
2255
|
}
|
|
2253
2256
|
], sa = [
|
|
2254
2257
|
{
|
|
2255
2258
|
label: "Inventory",
|
|
2256
2259
|
subject: w.inventory,
|
|
2257
|
-
actions: [
|
|
2260
|
+
actions: [c.read, c.update]
|
|
2258
2261
|
}
|
|
2259
2262
|
], aa = [
|
|
2260
2263
|
{
|
|
2261
2264
|
label: "Inventory",
|
|
2262
2265
|
subject: w.inventory,
|
|
2263
|
-
actions: [
|
|
2266
|
+
actions: [c.read, c.update]
|
|
2264
2267
|
}
|
|
2265
2268
|
], qn = [
|
|
2266
2269
|
{
|
|
2267
2270
|
label: "Purchase Order",
|
|
2268
2271
|
subject: w.inventory_purchaseOrder,
|
|
2269
|
-
actions: [
|
|
2272
|
+
actions: [c.read, c.create, c.update]
|
|
2270
2273
|
},
|
|
2271
2274
|
{
|
|
2272
2275
|
label: "Inventory",
|
|
2273
2276
|
subject: w.inventory,
|
|
2274
|
-
actions: [
|
|
2277
|
+
actions: [c.read, c.create, c.update]
|
|
2275
2278
|
},
|
|
2276
2279
|
{
|
|
2277
2280
|
label: "Closing",
|
|
2278
2281
|
subject: w.inventory_closing,
|
|
2279
|
-
actions: [
|
|
2282
|
+
actions: [c.read]
|
|
2280
2283
|
},
|
|
2281
2284
|
{
|
|
2282
2285
|
label: "Order Template",
|
|
2283
2286
|
subject: w.inventory_orderTemplate,
|
|
2284
|
-
actions: [
|
|
2287
|
+
actions: [c.read]
|
|
2285
2288
|
},
|
|
2286
2289
|
{
|
|
2287
2290
|
label: "Supplier",
|
|
2288
2291
|
subject: w.inventory_supplier,
|
|
2289
|
-
actions: [
|
|
2292
|
+
actions: [c.read]
|
|
2290
2293
|
},
|
|
2291
2294
|
{
|
|
2292
2295
|
label: "Surcharge",
|
|
2293
2296
|
subject: w.inventory_surcharge,
|
|
2294
|
-
actions: [
|
|
2297
|
+
actions: [c.read]
|
|
2295
2298
|
},
|
|
2296
2299
|
{
|
|
2297
2300
|
label: "Delivery Order",
|
|
2298
2301
|
subject: w.inventory_deliveryOrder,
|
|
2299
|
-
actions: [
|
|
2302
|
+
actions: [c.read, c.create, c.update]
|
|
2300
2303
|
},
|
|
2301
2304
|
{
|
|
2302
2305
|
label: "Shipment",
|
|
2303
2306
|
subject: w.inventory_shipment,
|
|
2304
|
-
actions: [
|
|
2307
|
+
actions: [c.read, c.update]
|
|
2305
2308
|
}
|
|
2306
2309
|
], Xn = [
|
|
2307
2310
|
{
|
|
2308
2311
|
label: "Purchase Order",
|
|
2309
2312
|
subject: w.inventory_purchaseOrder,
|
|
2310
|
-
actions: [
|
|
2313
|
+
actions: [c.read, c.update]
|
|
2311
2314
|
},
|
|
2312
2315
|
{
|
|
2313
2316
|
label: "Inventory",
|
|
2314
2317
|
subject: w.inventory,
|
|
2315
|
-
actions: [
|
|
2318
|
+
actions: [c.read, c.create, c.update]
|
|
2316
2319
|
},
|
|
2317
2320
|
{
|
|
2318
2321
|
label: "Delivery Order",
|
|
2319
2322
|
subject: w.inventory_deliveryOrder,
|
|
2320
|
-
actions: [
|
|
2323
|
+
actions: [c.read, c.create, c.update]
|
|
2321
2324
|
},
|
|
2322
2325
|
{
|
|
2323
2326
|
label: "Shipment",
|
|
2324
2327
|
subject: w.inventory_shipment,
|
|
2325
|
-
actions: [
|
|
2328
|
+
actions: [c.read, c.update]
|
|
2326
2329
|
}
|
|
2327
2330
|
], Qn = [
|
|
2328
2331
|
...V,
|
|
@@ -2330,16 +2333,16 @@ const na = [
|
|
|
2330
2333
|
label: "Surcharge",
|
|
2331
2334
|
subject: w.inventory_surcharge,
|
|
2332
2335
|
actions: [
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2336
|
+
c.read,
|
|
2337
|
+
c.create,
|
|
2338
|
+
c.update,
|
|
2339
|
+
c.delete
|
|
2337
2340
|
]
|
|
2338
2341
|
},
|
|
2339
2342
|
{
|
|
2340
2343
|
label: "Supplier",
|
|
2341
2344
|
subject: w.inventory_supplier,
|
|
2342
|
-
actions: [
|
|
2345
|
+
actions: [c.read]
|
|
2343
2346
|
}
|
|
2344
2347
|
], Un = [
|
|
2345
2348
|
...V,
|
|
@@ -2347,28 +2350,28 @@ const na = [
|
|
|
2347
2350
|
label: "Order Template",
|
|
2348
2351
|
subject: w.inventory_orderTemplate,
|
|
2349
2352
|
actions: [
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2353
|
+
c.read,
|
|
2354
|
+
c.create,
|
|
2355
|
+
c.update,
|
|
2356
|
+
c.delete
|
|
2354
2357
|
]
|
|
2355
2358
|
},
|
|
2356
2359
|
{
|
|
2357
2360
|
label: "Supplier",
|
|
2358
2361
|
subject: w.inventory_supplier,
|
|
2359
|
-
actions: [
|
|
2362
|
+
actions: [c.read]
|
|
2360
2363
|
},
|
|
2361
2364
|
{
|
|
2362
2365
|
label: "Shipment",
|
|
2363
2366
|
subject: w.inventory_shipment,
|
|
2364
|
-
actions: [
|
|
2367
|
+
actions: [c.read, c.update]
|
|
2365
2368
|
}
|
|
2366
2369
|
], ia = [
|
|
2367
2370
|
...V,
|
|
2368
2371
|
{
|
|
2369
2372
|
label: "Order Draft Approval",
|
|
2370
2373
|
subject: w.inventory_orderDraftApproval,
|
|
2371
|
-
actions: [
|
|
2374
|
+
actions: [c.update]
|
|
2372
2375
|
}
|
|
2373
2376
|
];
|
|
2374
2377
|
[
|
|
@@ -2383,16 +2386,16 @@ const oa = [
|
|
|
2383
2386
|
label: "Supplier",
|
|
2384
2387
|
subject: w.inventory_supplier,
|
|
2385
2388
|
actions: [
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2389
|
+
c.read,
|
|
2390
|
+
c.create,
|
|
2391
|
+
c.update,
|
|
2392
|
+
c.delete
|
|
2390
2393
|
]
|
|
2391
2394
|
},
|
|
2392
2395
|
{
|
|
2393
2396
|
label: "Order Template",
|
|
2394
2397
|
subject: w.inventory_orderTemplate,
|
|
2395
|
-
actions: [
|
|
2398
|
+
actions: [c.read, c.update]
|
|
2396
2399
|
}
|
|
2397
2400
|
], ca = [
|
|
2398
2401
|
...V,
|
|
@@ -2400,31 +2403,31 @@ const oa = [
|
|
|
2400
2403
|
label: "Warehouse",
|
|
2401
2404
|
subject: w.inventory_warehouse,
|
|
2402
2405
|
actions: [
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2406
|
+
c.read,
|
|
2407
|
+
c.create,
|
|
2408
|
+
c.update,
|
|
2409
|
+
c.delete
|
|
2407
2410
|
]
|
|
2408
2411
|
}
|
|
2409
2412
|
], la = [
|
|
2410
2413
|
{
|
|
2411
2414
|
label: "Inventory",
|
|
2412
2415
|
subject: w.inventory,
|
|
2413
|
-
actions: [
|
|
2416
|
+
actions: [c.read, c.update]
|
|
2414
2417
|
}
|
|
2415
2418
|
], Aa = [
|
|
2416
2419
|
...V,
|
|
2417
2420
|
{
|
|
2418
2421
|
label: "Inventory",
|
|
2419
2422
|
subject: w.inventory,
|
|
2420
|
-
actions: [
|
|
2423
|
+
actions: [c.update]
|
|
2421
2424
|
}
|
|
2422
2425
|
], ua = [
|
|
2423
2426
|
...V,
|
|
2424
2427
|
{
|
|
2425
2428
|
label: "Integration",
|
|
2426
2429
|
subject: w.inventory_integration,
|
|
2427
|
-
actions: [
|
|
2430
|
+
actions: [c.read, c.create, c.update]
|
|
2428
2431
|
}
|
|
2429
2432
|
];
|
|
2430
2433
|
[
|
|
@@ -2433,107 +2436,107 @@ const oa = [
|
|
|
2433
2436
|
...kt
|
|
2434
2437
|
];
|
|
2435
2438
|
const da = {
|
|
2436
|
-
[`set_${
|
|
2439
|
+
[`set_${g.inventory_stockBalance}`]: {
|
|
2437
2440
|
key: "sys:inventory:stock_balance",
|
|
2438
2441
|
name: "Stock Balance",
|
|
2439
2442
|
permissions: xt
|
|
2440
2443
|
},
|
|
2441
|
-
[`set_${
|
|
2444
|
+
[`set_${g.inventory_stockAdjustment}`]: {
|
|
2442
2445
|
key: "sys:inventory:stock_adjustment",
|
|
2443
2446
|
name: "Stock Adjustment",
|
|
2444
2447
|
permissions: ta
|
|
2445
2448
|
},
|
|
2446
|
-
[`set_${
|
|
2449
|
+
[`set_${g.inventory_unitCostHistory}`]: {
|
|
2447
2450
|
key: "sys:inventory:unit_cost_history",
|
|
2448
2451
|
name: "Unit Cost History",
|
|
2449
2452
|
permissions: Rn
|
|
2450
2453
|
},
|
|
2451
|
-
[`set_${
|
|
2454
|
+
[`set_${g.inventory_wastageTemplate}`]: {
|
|
2452
2455
|
key: "sys:inventory:wastage_template",
|
|
2453
2456
|
name: "Wastage Template",
|
|
2454
2457
|
permissions: Nn
|
|
2455
2458
|
},
|
|
2456
|
-
[`set_${
|
|
2459
|
+
[`set_${g.inventory_closingHistory}`]: {
|
|
2457
2460
|
key: "sys:inventory:closing_history",
|
|
2458
2461
|
name: "Closing History",
|
|
2459
2462
|
permissions: kt
|
|
2460
2463
|
},
|
|
2461
|
-
[`set_${
|
|
2464
|
+
[`set_${g.inventory_closingTemplate}`]: {
|
|
2462
2465
|
key: "sys:inventory:closing_template",
|
|
2463
2466
|
name: "Closing Template",
|
|
2464
2467
|
permissions: Hn
|
|
2465
2468
|
},
|
|
2466
|
-
[`set_${
|
|
2469
|
+
[`set_${g.inventory_closingDraft}`]: {
|
|
2467
2470
|
key: "sys:inventory:closing_draft",
|
|
2468
2471
|
name: "Closing Draft",
|
|
2469
2472
|
permissions: Fn
|
|
2470
2473
|
},
|
|
2471
|
-
[`set_${
|
|
2474
|
+
[`set_${g.inventory_ingredient}`]: {
|
|
2472
2475
|
key: "sys:inventory:ingredient",
|
|
2473
2476
|
name: "Ingredient",
|
|
2474
2477
|
permissions: na
|
|
2475
2478
|
},
|
|
2476
|
-
[`set_${
|
|
2479
|
+
[`set_${g.inventory_ingredientGroup}`]: {
|
|
2477
2480
|
key: "sys:inventory:ingredient_group",
|
|
2478
2481
|
name: "Ingredient Group",
|
|
2479
2482
|
permissions: ra
|
|
2480
2483
|
},
|
|
2481
|
-
[`set_${
|
|
2484
|
+
[`set_${g.inventory_recipe}`]: {
|
|
2482
2485
|
key: "sys:inventory:recipe",
|
|
2483
2486
|
name: "Recipe",
|
|
2484
2487
|
permissions: sa
|
|
2485
2488
|
},
|
|
2486
|
-
[`set_${
|
|
2489
|
+
[`set_${g.inventory_unit}`]: {
|
|
2487
2490
|
key: "sys:inventory:unit",
|
|
2488
2491
|
name: "Unit",
|
|
2489
2492
|
permissions: aa
|
|
2490
2493
|
},
|
|
2491
|
-
[`set_${
|
|
2494
|
+
[`set_${g.inventory_purchaseTransfer}`]: {
|
|
2492
2495
|
key: "sys:inventory:purchase_transfer",
|
|
2493
2496
|
name: "Purchase Transfer",
|
|
2494
2497
|
permissions: qn
|
|
2495
2498
|
},
|
|
2496
|
-
[`set_${
|
|
2499
|
+
[`set_${g.inventory_orderDraftApproval}`]: {
|
|
2497
2500
|
key: "sys:inventory:order_draft_approval",
|
|
2498
2501
|
name: "Order Draft Approval",
|
|
2499
2502
|
permissions: ia
|
|
2500
2503
|
},
|
|
2501
|
-
[`set_${
|
|
2504
|
+
[`set_${g.inventory_transferOut}`]: {
|
|
2502
2505
|
key: "sys:inventory:transfer_out",
|
|
2503
2506
|
name: "Transfer Out",
|
|
2504
2507
|
permissions: Xn
|
|
2505
2508
|
},
|
|
2506
|
-
[`set_${
|
|
2509
|
+
[`set_${g.inventory_surcharge}`]: {
|
|
2507
2510
|
key: "sys:inventory:surcharge",
|
|
2508
2511
|
name: "Surcharge",
|
|
2509
2512
|
permissions: Qn
|
|
2510
2513
|
},
|
|
2511
|
-
[`set_${
|
|
2514
|
+
[`set_${g.inventory_orderTemplate}`]: {
|
|
2512
2515
|
key: "sys:inventory:order_template",
|
|
2513
2516
|
name: "Order Template",
|
|
2514
2517
|
permissions: Un
|
|
2515
2518
|
},
|
|
2516
|
-
[`set_${
|
|
2519
|
+
[`set_${g.inventory_supplier}`]: {
|
|
2517
2520
|
key: "sys:inventory:supplier",
|
|
2518
2521
|
name: "Supplier",
|
|
2519
2522
|
permissions: oa
|
|
2520
2523
|
},
|
|
2521
|
-
[`set_${
|
|
2524
|
+
[`set_${g.inventory_warehouse}`]: {
|
|
2522
2525
|
key: "sys:inventory:warehouse",
|
|
2523
2526
|
name: "Warehouse",
|
|
2524
2527
|
permissions: ca
|
|
2525
2528
|
},
|
|
2526
|
-
[`set_${
|
|
2529
|
+
[`set_${g.inventory_publish}`]: {
|
|
2527
2530
|
key: "sys:inventory:publish",
|
|
2528
2531
|
name: "Publish",
|
|
2529
2532
|
permissions: la
|
|
2530
2533
|
},
|
|
2531
|
-
[`set_${
|
|
2534
|
+
[`set_${g.inventory_import}`]: {
|
|
2532
2535
|
key: "sys:inventory:import",
|
|
2533
2536
|
name: "Import",
|
|
2534
2537
|
permissions: Aa
|
|
2535
2538
|
},
|
|
2536
|
-
[`set_${
|
|
2539
|
+
[`set_${g.inventory_integration}`]: {
|
|
2537
2540
|
key: "sys:inventory:integration",
|
|
2538
2541
|
name: "Integration",
|
|
2539
2542
|
permissions: ua
|
|
@@ -2546,24 +2549,24 @@ const ga = {
|
|
|
2546
2549
|
* Injects: team member list read + pos role read
|
|
2547
2550
|
* Users who can manage team members need to see the team member list and assign POS roles.
|
|
2548
2551
|
*/
|
|
2549
|
-
[`set_${
|
|
2552
|
+
[`set_${g.hrm_teamMember}`]: {
|
|
2550
2553
|
key: "sys:team_member_access",
|
|
2551
2554
|
name: "Team Member Access",
|
|
2552
2555
|
permissions: [
|
|
2553
2556
|
{
|
|
2554
2557
|
label: "Portal Users",
|
|
2555
2558
|
subject: le.hrm_portalUsers,
|
|
2556
|
-
actions: [
|
|
2559
|
+
actions: [c.manage]
|
|
2557
2560
|
},
|
|
2558
2561
|
{
|
|
2559
2562
|
label: "Role resource",
|
|
2560
|
-
subject:
|
|
2561
|
-
actions: [
|
|
2563
|
+
subject: g.role,
|
|
2564
|
+
actions: [c.read, c.update]
|
|
2562
2565
|
},
|
|
2563
2566
|
{
|
|
2564
2567
|
label: "Pos Role",
|
|
2565
2568
|
subject: le.hrm_posRole,
|
|
2566
|
-
actions: [
|
|
2569
|
+
actions: [c.read]
|
|
2567
2570
|
}
|
|
2568
2571
|
]
|
|
2569
2572
|
},
|
|
@@ -2571,24 +2574,24 @@ const ga = {
|
|
|
2571
2574
|
* Triggered by: hrm_employee:manage (portal toggle)
|
|
2572
2575
|
* Injects: pos role read + restaurant manage (cross-level: needed for employee–restaurant linking)
|
|
2573
2576
|
*/
|
|
2574
|
-
[`set_${
|
|
2577
|
+
[`set_${g.hrm_employee}`]: {
|
|
2575
2578
|
key: "sys:employee_access",
|
|
2576
2579
|
name: "Employee Access",
|
|
2577
2580
|
permissions: [
|
|
2578
2581
|
{
|
|
2579
2582
|
label: "Portal Users",
|
|
2580
2583
|
subject: le.hrm_portalUsers,
|
|
2581
|
-
actions: [
|
|
2584
|
+
actions: [c.read]
|
|
2582
2585
|
},
|
|
2583
2586
|
{
|
|
2584
2587
|
label: "Restaurant resource",
|
|
2585
|
-
subject:
|
|
2586
|
-
actions: [
|
|
2588
|
+
subject: g.restaurant,
|
|
2589
|
+
actions: [c.read]
|
|
2587
2590
|
},
|
|
2588
2591
|
{
|
|
2589
2592
|
label: "Pos Role",
|
|
2590
2593
|
subject: le.hrm_posRole,
|
|
2591
|
-
actions: [
|
|
2594
|
+
actions: [c.manage]
|
|
2592
2595
|
}
|
|
2593
2596
|
]
|
|
2594
2597
|
},
|
|
@@ -2598,14 +2601,14 @@ const ga = {
|
|
|
2598
2601
|
* Uses HrmResource.hrm_portalUsers (not the module subject hrm_teamMember) to avoid
|
|
2599
2602
|
* conflating the audit-log read dependency with the full team-management module grant.
|
|
2600
2603
|
*/
|
|
2601
|
-
[`set_${
|
|
2604
|
+
[`set_${g.hrm_auditLog}`]: {
|
|
2602
2605
|
key: "sys:audit_log_access",
|
|
2603
2606
|
name: "Audit Log Access",
|
|
2604
2607
|
permissions: [
|
|
2605
2608
|
{
|
|
2606
2609
|
label: "Portal Users",
|
|
2607
2610
|
subject: le.hrm_portalUsers,
|
|
2608
|
-
actions: [
|
|
2611
|
+
actions: [c.read]
|
|
2609
2612
|
}
|
|
2610
2613
|
]
|
|
2611
2614
|
}
|
|
@@ -2627,7 +2630,7 @@ const fa = () => ({
|
|
|
2627
2630
|
requiredCaslPermissions: [
|
|
2628
2631
|
{
|
|
2629
2632
|
subject: Ge.all,
|
|
2630
|
-
action:
|
|
2633
|
+
action: c.manage
|
|
2631
2634
|
}
|
|
2632
2635
|
]
|
|
2633
2636
|
}
|
|
@@ -2639,7 +2642,7 @@ const fa = () => ({
|
|
|
2639
2642
|
sidebarDisplay: "Restaurants",
|
|
2640
2643
|
section: "payment-gateway"
|
|
2641
2644
|
},
|
|
2642
|
-
component: () => import("./Restaurant-
|
|
2645
|
+
component: () => import("./Restaurant-BeasTCBN.js")
|
|
2643
2646
|
},
|
|
2644
2647
|
{
|
|
2645
2648
|
path: "/admin/restaurants/:restaurantId",
|
|
@@ -2648,7 +2651,7 @@ const fa = () => ({
|
|
|
2648
2651
|
meta: {
|
|
2649
2652
|
parent: "mf-payment-admin.restaurant"
|
|
2650
2653
|
},
|
|
2651
|
-
component: () => import("./RestaurantSetting-
|
|
2654
|
+
component: () => import("./RestaurantSetting-DwRraruD.js")
|
|
2652
2655
|
},
|
|
2653
2656
|
{
|
|
2654
2657
|
path: "/admin/payout-accounts",
|
|
@@ -2657,7 +2660,7 @@ const fa = () => ({
|
|
|
2657
2660
|
sidebarDisplay: "Payout Accounts",
|
|
2658
2661
|
section: "payment-gateway"
|
|
2659
2662
|
},
|
|
2660
|
-
component: () => import("./PayoutAccount-
|
|
2663
|
+
component: () => import("./PayoutAccount-BdfuqSaf.js")
|
|
2661
2664
|
},
|
|
2662
2665
|
{
|
|
2663
2666
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -2666,7 +2669,7 @@ const fa = () => ({
|
|
|
2666
2669
|
meta: {
|
|
2667
2670
|
parent: "mf-payment-admin.payout-account"
|
|
2668
2671
|
},
|
|
2669
|
-
component: () => import("./PayoutAccountSetting-
|
|
2672
|
+
component: () => import("./PayoutAccountSetting-Bj3ayBnW.js")
|
|
2670
2673
|
},
|
|
2671
2674
|
{
|
|
2672
2675
|
path: "/admin/onboarding",
|
|
@@ -2675,7 +2678,7 @@ const fa = () => ({
|
|
|
2675
2678
|
sidebarDisplay: "Payment Onboarding",
|
|
2676
2679
|
section: "payment-gateway"
|
|
2677
2680
|
},
|
|
2678
|
-
component: () => import("./OnboardSubmission-
|
|
2681
|
+
component: () => import("./OnboardSubmission-CjObMzjr.js")
|
|
2679
2682
|
},
|
|
2680
2683
|
{
|
|
2681
2684
|
path: "/admin/onboarding/:submissionId",
|
|
@@ -2684,7 +2687,7 @@ const fa = () => ({
|
|
|
2684
2687
|
meta: {
|
|
2685
2688
|
parent: "mf-payment-admin.onboard-submission"
|
|
2686
2689
|
},
|
|
2687
|
-
component: () => import("./OnboardForm-
|
|
2690
|
+
component: () => import("./OnboardForm-BN0ILsGU.js")
|
|
2688
2691
|
},
|
|
2689
2692
|
{
|
|
2690
2693
|
path: "/admin/terminal/pos",
|
|
@@ -2693,7 +2696,7 @@ const fa = () => ({
|
|
|
2693
2696
|
sidebarDisplay: "POS",
|
|
2694
2697
|
section: "device"
|
|
2695
2698
|
},
|
|
2696
|
-
component: () => import("./Terminal-
|
|
2699
|
+
component: () => import("./Terminal-Bdra-49r.js"),
|
|
2697
2700
|
props: {
|
|
2698
2701
|
type: "POS"
|
|
2699
2702
|
}
|
|
@@ -2705,7 +2708,7 @@ const fa = () => ({
|
|
|
2705
2708
|
sidebarDisplay: "Kiosks",
|
|
2706
2709
|
section: "device"
|
|
2707
2710
|
},
|
|
2708
|
-
component: () => import("./Terminal-
|
|
2711
|
+
component: () => import("./Terminal-Bdra-49r.js"),
|
|
2709
2712
|
props: {
|
|
2710
2713
|
type: "KIOSK"
|
|
2711
2714
|
}
|
|
@@ -2717,7 +2720,7 @@ const fa = () => ({
|
|
|
2717
2720
|
sidebarDisplay: "Terminals",
|
|
2718
2721
|
section: "device"
|
|
2719
2722
|
},
|
|
2720
|
-
component: () => import("./Terminal-
|
|
2723
|
+
component: () => import("./Terminal-Bdra-49r.js"),
|
|
2721
2724
|
props: {
|
|
2722
2725
|
type: "TERMINAL"
|
|
2723
2726
|
}
|
|
@@ -2729,7 +2732,7 @@ const fa = () => ({
|
|
|
2729
2732
|
meta: {
|
|
2730
2733
|
parent: "mf-payment-admin.pos"
|
|
2731
2734
|
},
|
|
2732
|
-
component: () => import("./TerminalSetting-
|
|
2735
|
+
component: () => import("./TerminalSetting-CzjDu4A_.js")
|
|
2733
2736
|
},
|
|
2734
2737
|
{
|
|
2735
2738
|
path: "/admin/terminal/kiosk/:terminalId",
|
|
@@ -2738,7 +2741,7 @@ const fa = () => ({
|
|
|
2738
2741
|
meta: {
|
|
2739
2742
|
parent: "mf-payment-admin.kiosk"
|
|
2740
2743
|
},
|
|
2741
|
-
component: () => import("./TerminalSetting-
|
|
2744
|
+
component: () => import("./TerminalSetting-CzjDu4A_.js")
|
|
2742
2745
|
},
|
|
2743
2746
|
{
|
|
2744
2747
|
path: "/admin/terminal/terminal/:terminalId",
|
|
@@ -2747,7 +2750,7 @@ const fa = () => ({
|
|
|
2747
2750
|
meta: {
|
|
2748
2751
|
parent: "mf-payment-admin.terminal"
|
|
2749
2752
|
},
|
|
2750
|
-
component: () => import("./TerminalSetting-
|
|
2753
|
+
component: () => import("./TerminalSetting-CzjDu4A_.js")
|
|
2751
2754
|
},
|
|
2752
2755
|
{
|
|
2753
2756
|
path: "/admin/transaction",
|
|
@@ -2755,7 +2758,7 @@ const fa = () => ({
|
|
|
2755
2758
|
meta: {
|
|
2756
2759
|
sidebarDisplay: "Transactions"
|
|
2757
2760
|
},
|
|
2758
|
-
component: () => import("./Transaction-
|
|
2761
|
+
component: () => import("./Transaction-BG3RCxYv.js")
|
|
2759
2762
|
},
|
|
2760
2763
|
{
|
|
2761
2764
|
path: "/admin/chargeback",
|
|
@@ -2763,7 +2766,7 @@ const fa = () => ({
|
|
|
2763
2766
|
meta: {
|
|
2764
2767
|
sidebarDisplay: "Chargebacks"
|
|
2765
2768
|
},
|
|
2766
|
-
component: () => import("./Chargeback-
|
|
2769
|
+
component: () => import("./Chargeback-7jLLq3BR.js")
|
|
2767
2770
|
},
|
|
2768
2771
|
{
|
|
2769
2772
|
path: "/admin/settlement",
|
|
@@ -2771,7 +2774,7 @@ const fa = () => ({
|
|
|
2771
2774
|
meta: {
|
|
2772
2775
|
sidebarDisplay: "Settlements"
|
|
2773
2776
|
},
|
|
2774
|
-
component: () => import("./Settlement-
|
|
2777
|
+
component: () => import("./Settlement-CDQ4mC52.js")
|
|
2775
2778
|
},
|
|
2776
2779
|
{
|
|
2777
2780
|
path: "/admin/settlement/:settlementId",
|
|
@@ -2780,7 +2783,7 @@ const fa = () => ({
|
|
|
2780
2783
|
meta: {
|
|
2781
2784
|
parent: "mf-payment-admin.settlement"
|
|
2782
2785
|
},
|
|
2783
|
-
component: () => import("./SettlementTransactions-
|
|
2786
|
+
component: () => import("./SettlementTransactions-Bt_v-aI6.js")
|
|
2784
2787
|
}
|
|
2785
2788
|
].map((t) => ({
|
|
2786
2789
|
...t,
|
|
@@ -2793,7 +2796,7 @@ const fa = () => ({
|
|
|
2793
2796
|
requiredCaslPermissions: [
|
|
2794
2797
|
{
|
|
2795
2798
|
subject: jn.owner,
|
|
2796
|
-
action:
|
|
2799
|
+
action: c.manage
|
|
2797
2800
|
}
|
|
2798
2801
|
]
|
|
2799
2802
|
}
|
|
@@ -2802,7 +2805,7 @@ const fa = () => ({
|
|
|
2802
2805
|
requiredCaslPermissions: [
|
|
2803
2806
|
{
|
|
2804
2807
|
subject: Ge.business,
|
|
2805
|
-
action:
|
|
2808
|
+
action: c.manage
|
|
2806
2809
|
}
|
|
2807
2810
|
]
|
|
2808
2811
|
}
|
|
@@ -2811,7 +2814,7 @@ const fa = () => ({
|
|
|
2811
2814
|
requiredCaslPermissions: [
|
|
2812
2815
|
{
|
|
2813
2816
|
subject: Ge.restaurant,
|
|
2814
|
-
action:
|
|
2817
|
+
action: c.manage
|
|
2815
2818
|
}
|
|
2816
2819
|
]
|
|
2817
2820
|
}
|
|
@@ -2823,7 +2826,7 @@ const fa = () => ({
|
|
|
2823
2826
|
{
|
|
2824
2827
|
path: "/payout-account",
|
|
2825
2828
|
name: "mf-payment-payout-account",
|
|
2826
|
-
component: () => import("./PayoutAccount-
|
|
2829
|
+
component: () => import("./PayoutAccount-BpSQ2zQk.js"),
|
|
2827
2830
|
meta: {
|
|
2828
2831
|
sidebarDisplay: "i18n:payment.routes.payout_account",
|
|
2829
2832
|
...At()
|
|
@@ -2832,7 +2835,7 @@ const fa = () => ({
|
|
|
2832
2835
|
{
|
|
2833
2836
|
path: "/onboard-submission",
|
|
2834
2837
|
name: "mf-payment-onboard-submission",
|
|
2835
|
-
component: () => import("./OnboardSubmission-
|
|
2838
|
+
component: () => import("./OnboardSubmission-hDMAGRnx.js"),
|
|
2836
2839
|
meta: {
|
|
2837
2840
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
2838
2841
|
region: { MY: !0, TH: !0, AU: !0 },
|
|
@@ -2843,7 +2846,7 @@ const fa = () => ({
|
|
|
2843
2846
|
path: "/onboard-submission/:type/:submission?",
|
|
2844
2847
|
name: "mf-payment-onboard-submission-form",
|
|
2845
2848
|
props: !0,
|
|
2846
|
-
component: () => import("./OnboardForm
|
|
2849
|
+
component: () => import("./OnboardForm-D_FIXmPB.js"),
|
|
2847
2850
|
meta: {
|
|
2848
2851
|
parent: "mf-payment-onboard-submission",
|
|
2849
2852
|
...At()
|
|
@@ -2852,7 +2855,7 @@ const fa = () => ({
|
|
|
2852
2855
|
{
|
|
2853
2856
|
path: "/transaction-old",
|
|
2854
2857
|
name: "mf-payment-old-transaction",
|
|
2855
|
-
component: () => import("./TransactionOld
|
|
2858
|
+
component: () => import("./TransactionOld-BXbn3NQy.js"),
|
|
2856
2859
|
meta: {
|
|
2857
2860
|
sidebarDisplay: "i18n:payment.routes.transaction",
|
|
2858
2861
|
...He()
|
|
@@ -2861,7 +2864,7 @@ const fa = () => ({
|
|
|
2861
2864
|
{
|
|
2862
2865
|
path: "/transaction",
|
|
2863
2866
|
name: "mf-payment-transaction",
|
|
2864
|
-
component: () => import("./Transaction-
|
|
2867
|
+
component: () => import("./Transaction-C3Le6Ig-.js"),
|
|
2865
2868
|
meta: {
|
|
2866
2869
|
sidebarDisplay: "i18n:payment.routes.transaction_new",
|
|
2867
2870
|
sidebarNew: !0,
|
|
@@ -2871,7 +2874,7 @@ const fa = () => ({
|
|
|
2871
2874
|
{
|
|
2872
2875
|
path: "/settlement",
|
|
2873
2876
|
name: "mf-payment-settlement",
|
|
2874
|
-
component: () => import("./Settlement-
|
|
2877
|
+
component: () => import("./Settlement-CFfl02X_.js"),
|
|
2875
2878
|
meta: {
|
|
2876
2879
|
sidebarDisplay: "i18n:payment.routes.settlement",
|
|
2877
2880
|
region: { MY: !0, SG: !0 },
|
|
@@ -2882,7 +2885,7 @@ const fa = () => ({
|
|
|
2882
2885
|
path: "/settlement/:settlementId",
|
|
2883
2886
|
name: "mf-payment-settlement-transaction",
|
|
2884
2887
|
props: !0,
|
|
2885
|
-
component: () => import("./SettlementTransactions-
|
|
2888
|
+
component: () => import("./SettlementTransactions-BXeYz_iy.js"),
|
|
2886
2889
|
meta: {
|
|
2887
2890
|
parent: "mf-payment-settlement",
|
|
2888
2891
|
...He()
|
|
@@ -2968,7 +2971,7 @@ const Wn = function(t) {
|
|
|
2968
2971
|
const a = t[n++];
|
|
2969
2972
|
e[r++] = String.fromCharCode((s & 31) << 6 | a & 63);
|
|
2970
2973
|
} else if (s > 239 && s < 365) {
|
|
2971
|
-
const a = t[n++], i = t[n++],
|
|
2974
|
+
const a = t[n++], i = t[n++], l = t[n++], A = ((s & 7) << 18 | (a & 63) << 12 | (i & 63) << 6 | l & 63) - 65536;
|
|
2972
2975
|
e[r++] = String.fromCharCode(55296 + (A >> 10)), e[r++] = String.fromCharCode(56320 + (A & 1023));
|
|
2973
2976
|
} else {
|
|
2974
2977
|
const a = t[n++], i = t[n++];
|
|
@@ -3035,8 +3038,8 @@ const Wn = function(t) {
|
|
|
3035
3038
|
this.init_();
|
|
3036
3039
|
const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
|
3037
3040
|
for (let s = 0; s < t.length; s += 3) {
|
|
3038
|
-
const a = t[s], i = s + 1 < t.length,
|
|
3039
|
-
let E = (
|
|
3041
|
+
const a = t[s], i = s + 1 < t.length, l = i ? t[s + 1] : 0, A = s + 2 < t.length, u = A ? t[s + 2] : 0, f = a >> 2, p = (a & 3) << 4 | l >> 4;
|
|
3042
|
+
let E = (l & 15) << 2 | u >> 6, C = u & 63;
|
|
3040
3043
|
A || (C = 64, i || (E = 64)), r.push(n[f], n[p], n[E], n[C]);
|
|
3041
3044
|
}
|
|
3042
3045
|
return r.join("");
|
|
@@ -3082,16 +3085,16 @@ const Wn = function(t) {
|
|
|
3082
3085
|
this.init_();
|
|
3083
3086
|
const n = e ? this.charToByteMapWebSafe_ : this.charToByteMap_, r = [];
|
|
3084
3087
|
for (let s = 0; s < t.length; ) {
|
|
3085
|
-
const a = n[t.charAt(s++)],
|
|
3088
|
+
const a = n[t.charAt(s++)], l = s < t.length ? n[t.charAt(s)] : 0;
|
|
3086
3089
|
++s;
|
|
3087
3090
|
const u = s < t.length ? n[t.charAt(s)] : 64;
|
|
3088
3091
|
++s;
|
|
3089
3092
|
const p = s < t.length ? n[t.charAt(s)] : 64;
|
|
3090
|
-
if (++s, a == null ||
|
|
3093
|
+
if (++s, a == null || l == null || u == null || p == null)
|
|
3091
3094
|
throw new wa();
|
|
3092
|
-
const E = a << 2 |
|
|
3095
|
+
const E = a << 2 | l >> 4;
|
|
3093
3096
|
if (r.push(E), u !== 64) {
|
|
3094
|
-
const C =
|
|
3097
|
+
const C = l << 4 & 240 | u >> 2;
|
|
3095
3098
|
if (r.push(C), p !== 64) {
|
|
3096
3099
|
const M = u << 6 & 192 | p;
|
|
3097
3100
|
r.push(M);
|
|
@@ -3332,8 +3335,8 @@ class Ye {
|
|
|
3332
3335
|
this.service = e, this.serviceName = n, this.errors = r;
|
|
3333
3336
|
}
|
|
3334
3337
|
create(e, ...n) {
|
|
3335
|
-
const r = n[0] || {}, s = `${this.service}/${e}`, a = this.errors[e], i = a ? xa(a, r) : "Error",
|
|
3336
|
-
return new re(s,
|
|
3338
|
+
const r = n[0] || {}, s = `${this.service}/${e}`, a = this.errors[e], i = a ? xa(a, r) : "Error", l = `${this.serviceName}: ${i} (${s}).`;
|
|
3339
|
+
return new re(s, l, r);
|
|
3337
3340
|
}
|
|
3338
3341
|
}
|
|
3339
3342
|
function xa(t, e) {
|
|
@@ -3668,8 +3671,8 @@ class qa {
|
|
|
3668
3671
|
options: n
|
|
3669
3672
|
});
|
|
3670
3673
|
for (const [a, i] of this.instancesDeferred.entries()) {
|
|
3671
|
-
const
|
|
3672
|
-
r ===
|
|
3674
|
+
const l = this.normalizeInstanceIdentifier(a);
|
|
3675
|
+
r === l && i.resolve(s);
|
|
3673
3676
|
}
|
|
3674
3677
|
return s;
|
|
3675
3678
|
}
|
|
@@ -3975,7 +3978,7 @@ function ee(t) {
|
|
|
3975
3978
|
}
|
|
3976
3979
|
const gt = (t) => Nt.get(t);
|
|
3977
3980
|
function ri(t, e, { blocked: n, upgrade: r, blocking: s, terminated: a } = {}) {
|
|
3978
|
-
const i = indexedDB.open(t, e),
|
|
3981
|
+
const i = indexedDB.open(t, e), l = ee(i);
|
|
3979
3982
|
return r && i.addEventListener("upgradeneeded", (A) => {
|
|
3980
3983
|
r(ee(i.result), A.oldVersion, A.newVersion, ee(i.transaction), A);
|
|
3981
3984
|
}), n && i.addEventListener("blocked", (A) => n(
|
|
@@ -3983,10 +3986,10 @@ function ri(t, e, { blocked: n, upgrade: r, blocking: s, terminated: a } = {}) {
|
|
|
3983
3986
|
A.oldVersion,
|
|
3984
3987
|
A.newVersion,
|
|
3985
3988
|
A
|
|
3986
|
-
)),
|
|
3989
|
+
)), l.then((A) => {
|
|
3987
3990
|
a && A.addEventListener("close", () => a()), s && A.addEventListener("versionchange", (u) => s(u.oldVersion, u.newVersion, u));
|
|
3988
3991
|
}).catch(() => {
|
|
3989
|
-
}),
|
|
3992
|
+
}), l;
|
|
3990
3993
|
}
|
|
3991
3994
|
const si = ["get", "getKey", "getAll", "getAllKeys", "count"], ai = ["put", "add", "delete", "clear"], ht = /* @__PURE__ */ new Map();
|
|
3992
3995
|
function nn(t, e) {
|
|
@@ -4000,11 +4003,11 @@ function nn(t, e) {
|
|
|
4000
4003
|
!(n in (r ? IDBIndex : IDBObjectStore).prototype) || !(s || si.includes(n))
|
|
4001
4004
|
)
|
|
4002
4005
|
return;
|
|
4003
|
-
const a = async function(i, ...
|
|
4006
|
+
const a = async function(i, ...l) {
|
|
4004
4007
|
const A = this.transaction(i, s ? "readwrite" : "readonly");
|
|
4005
4008
|
let u = A.store;
|
|
4006
|
-
return r && (u = u.index(
|
|
4007
|
-
u[n](...
|
|
4009
|
+
return r && (u = u.index(l.shift())), (await Promise.all([
|
|
4010
|
+
u[n](...l),
|
|
4008
4011
|
s && A.done
|
|
4009
4012
|
]))[0];
|
|
4010
4013
|
};
|
|
@@ -4286,8 +4289,8 @@ function tr(t, e = {}) {
|
|
|
4286
4289
|
const i = new Ua(s);
|
|
4287
4290
|
for (const A of Pt.values())
|
|
4288
4291
|
i.addComponent(A);
|
|
4289
|
-
const
|
|
4290
|
-
return Ke.set(s,
|
|
4292
|
+
const l = new Ni(n, r, i);
|
|
4293
|
+
return Ke.set(s, l), l;
|
|
4291
4294
|
}
|
|
4292
4295
|
function Fi(t = Mt) {
|
|
4293
4296
|
const e = Ke.get(t);
|
|
@@ -4303,10 +4306,10 @@ function ue(t, e, n) {
|
|
|
4303
4306
|
n && (s += `-${n}`);
|
|
4304
4307
|
const a = s.match(/\s|\//), i = e.match(/\s|\//);
|
|
4305
4308
|
if (a || i) {
|
|
4306
|
-
const
|
|
4309
|
+
const l = [
|
|
4307
4310
|
`Unable to register library "${s}" with version "${e}":`
|
|
4308
4311
|
];
|
|
4309
|
-
a &&
|
|
4312
|
+
a && l.push(`library name "${s}" contains illegal characters (whitespace or "/")`), a && i && l.push("and"), i && l.push(`version name "${e}" contains illegal characters (whitespace or "/")`), U.warn(l.join(" "));
|
|
4310
4313
|
return;
|
|
4311
4314
|
}
|
|
4312
4315
|
Ie(new fe(
|
|
@@ -4420,8 +4423,8 @@ class Wi {
|
|
|
4420
4423
|
try {
|
|
4421
4424
|
const s = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), a = on();
|
|
4422
4425
|
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 === a || this._heartbeatsCache.heartbeats.some((i) => i.date === a) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: a, agent: s }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((i) => {
|
|
4423
|
-
const
|
|
4424
|
-
return Date.now() -
|
|
4426
|
+
const l = new Date(i.date).valueOf();
|
|
4427
|
+
return Date.now() - l <= Ui;
|
|
4425
4428
|
}), this._storage.overwrite(this._heartbeatsCache));
|
|
4426
4429
|
} catch (r) {
|
|
4427
4430
|
U.warn(r);
|
|
@@ -4946,7 +4949,7 @@ async function pe(t, e, n, r, s = {}) {
|
|
|
4946
4949
|
r && (e === "GET" ? i = r : a = {
|
|
4947
4950
|
body: JSON.stringify(r)
|
|
4948
4951
|
});
|
|
4949
|
-
const
|
|
4952
|
+
const l = Ve(Object.assign({ key: t.config.apiKey }, i)).slice(1), A = await t._getAdditionalHeaders();
|
|
4950
4953
|
A[
|
|
4951
4954
|
"Content-Type"
|
|
4952
4955
|
/* HttpHeader.CONTENT_TYPE */
|
|
@@ -4958,7 +4961,7 @@ async function pe(t, e, n, r, s = {}) {
|
|
|
4958
4961
|
method: e,
|
|
4959
4962
|
headers: A
|
|
4960
4963
|
}, a);
|
|
4961
|
-
return Pa() || (u.referrerPolicy = "no-referrer"), or.fetch()(Ar(t, t.config.apiHost, n,
|
|
4964
|
+
return Pa() || (u.referrerPolicy = "no-referrer"), or.fetch()(Ar(t, t.config.apiHost, n, l), u);
|
|
4962
4965
|
});
|
|
4963
4966
|
}
|
|
4964
4967
|
async function cr(t, e, n) {
|
|
@@ -4976,7 +4979,7 @@ async function cr(t, e, n) {
|
|
|
4976
4979
|
if (a.ok && !("errorMessage" in i))
|
|
4977
4980
|
return i;
|
|
4978
4981
|
{
|
|
4979
|
-
const
|
|
4982
|
+
const l = a.ok ? i.errorMessage : i.error.message, [A, u] = l.split(" : ");
|
|
4980
4983
|
if (A === "FEDERATED_USER_ID_ALREADY_LINKED")
|
|
4981
4984
|
throw qe(t, "credential-already-in-use", i);
|
|
4982
4985
|
if (A === "EMAIL_EXISTS")
|
|
@@ -5272,7 +5275,7 @@ async function _e(t) {
|
|
|
5272
5275
|
);
|
|
5273
5276
|
const a = s.users[0];
|
|
5274
5277
|
t._notifyReloadListener(a);
|
|
5275
|
-
const i = !((e = a.providerUserInfo) === null || e === void 0) && e.length ? dr(a.providerUserInfo) : [],
|
|
5278
|
+
const i = !((e = a.providerUserInfo) === null || e === void 0) && e.length ? dr(a.providerUserInfo) : [], l = Ao(t.providerData, i), A = t.isAnonymous, u = !(t.email && a.passwordHash) && !(l != null && l.length), f = A ? u : !1, p = {
|
|
5276
5279
|
uid: a.localId,
|
|
5277
5280
|
displayName: a.displayName || null,
|
|
5278
5281
|
photoURL: a.photoUrl || null,
|
|
@@ -5280,7 +5283,7 @@ async function _e(t) {
|
|
|
5280
5283
|
emailVerified: a.emailVerified || !1,
|
|
5281
5284
|
phoneNumber: a.phoneNumber || null,
|
|
5282
5285
|
tenantId: a.tenantId || null,
|
|
5283
|
-
providerData:
|
|
5286
|
+
providerData: l,
|
|
5284
5287
|
metadata: new Yt(a.createdAt, a.lastLoginAt),
|
|
5285
5288
|
isAnonymous: f
|
|
5286
5289
|
};
|
|
@@ -5327,13 +5330,13 @@ async function uo(t, e) {
|
|
|
5327
5330
|
const r = Ve({
|
|
5328
5331
|
grant_type: "refresh_token",
|
|
5329
5332
|
refresh_token: e
|
|
5330
|
-
}).slice(1), { tokenApiHost: s, apiKey: a } = t.config, i = Ar(t, s, "/v1/token", `key=${a}`),
|
|
5331
|
-
return
|
|
5333
|
+
}).slice(1), { tokenApiHost: s, apiKey: a } = t.config, i = Ar(t, s, "/v1/token", `key=${a}`), l = await t._getAdditionalHeaders();
|
|
5334
|
+
return l[
|
|
5332
5335
|
"Content-Type"
|
|
5333
5336
|
/* HttpHeader.CONTENT_TYPE */
|
|
5334
5337
|
] = "application/x-www-form-urlencoded", or.fetch()(i, {
|
|
5335
5338
|
method: "POST",
|
|
5336
|
-
headers:
|
|
5339
|
+
headers: l,
|
|
5337
5340
|
body: r
|
|
5338
5341
|
});
|
|
5339
5342
|
});
|
|
@@ -5543,8 +5546,8 @@ class X {
|
|
|
5543
5546
|
return this.stsTokenManager.refreshToken || "";
|
|
5544
5547
|
}
|
|
5545
5548
|
static _fromJSON(e, n) {
|
|
5546
|
-
var r, s, a, i,
|
|
5547
|
-
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, E = (s = n.email) !== null && s !== void 0 ? s : void 0, C = (a = n.phoneNumber) !== null && a !== void 0 ? a : void 0, M = (i = n.photoURL) !== null && i !== void 0 ? i : void 0, T = (
|
|
5549
|
+
var r, s, a, i, l, A, u, f;
|
|
5550
|
+
const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, E = (s = n.email) !== null && s !== void 0 ? s : void 0, C = (a = n.phoneNumber) !== null && a !== void 0 ? a : void 0, M = (i = n.photoURL) !== null && i !== void 0 ? i : void 0, T = (l = n.tenantId) !== null && l !== void 0 ? l : void 0, x = (A = n._redirectEventId) !== null && A !== void 0 ? A : void 0, ke = (u = n.createdAt) !== null && u !== void 0 ? u : void 0, Re = (f = n.lastLoginAt) !== null && f !== void 0 ? f : void 0, { uid: k, emailVerified: se, isAnonymous: be, providerData: we, stsTokenManager: Be } = n;
|
|
5548
5551
|
v(
|
|
5549
5552
|
k && Be,
|
|
5550
5553
|
e,
|
|
@@ -5612,12 +5615,12 @@ class X {
|
|
|
5612
5615
|
"internal-error"
|
|
5613
5616
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5614
5617
|
);
|
|
5615
|
-
const a = s.providerUserInfo !== void 0 ? dr(s.providerUserInfo) : [], i = !(s.email && s.passwordHash) && !(a != null && a.length),
|
|
5616
|
-
|
|
5618
|
+
const a = s.providerUserInfo !== void 0 ? dr(s.providerUserInfo) : [], i = !(s.email && s.passwordHash) && !(a != null && a.length), l = new de();
|
|
5619
|
+
l.updateFromIdToken(r);
|
|
5617
5620
|
const A = new X({
|
|
5618
5621
|
uid: s.localId,
|
|
5619
5622
|
auth: e,
|
|
5620
|
-
stsTokenManager:
|
|
5623
|
+
stsTokenManager: l,
|
|
5621
5624
|
isAnonymous: i
|
|
5622
5625
|
}), u = {
|
|
5623
5626
|
uid: s.localId,
|
|
@@ -5753,19 +5756,19 @@ class ge {
|
|
|
5753
5756
|
}))).filter((u) => u);
|
|
5754
5757
|
let a = s[0] || Q(gn);
|
|
5755
5758
|
const i = Ue(r, e.config.apiKey, e.name);
|
|
5756
|
-
let
|
|
5759
|
+
let l = null;
|
|
5757
5760
|
for (const u of n)
|
|
5758
5761
|
try {
|
|
5759
5762
|
const f = await u._get(i);
|
|
5760
5763
|
if (f) {
|
|
5761
5764
|
const p = X._fromJSON(e, f);
|
|
5762
|
-
u !== a && (
|
|
5765
|
+
u !== a && (l = p), a = u;
|
|
5763
5766
|
break;
|
|
5764
5767
|
}
|
|
5765
5768
|
} catch {
|
|
5766
5769
|
}
|
|
5767
5770
|
const A = s.filter((u) => u._shouldAllowMigration);
|
|
5768
|
-
return !a._shouldAllowMigration || !A.length ? new ge(a, e, r) : (a = A[0],
|
|
5771
|
+
return !a._shouldAllowMigration || !A.length ? new ge(a, e, r) : (a = A[0], l && await a._set(i, l.toJSON()), await Promise.all(n.map(async (u) => {
|
|
5769
5772
|
if (u !== a)
|
|
5770
5773
|
try {
|
|
5771
5774
|
await u._remove(i);
|
|
@@ -5908,12 +5911,12 @@ class mo {
|
|
|
5908
5911
|
this.auth = e, this.queue = [];
|
|
5909
5912
|
}
|
|
5910
5913
|
pushCallback(e, n) {
|
|
5911
|
-
const r = (a) => new Promise((i,
|
|
5914
|
+
const r = (a) => new Promise((i, l) => {
|
|
5912
5915
|
try {
|
|
5913
5916
|
const A = e(a);
|
|
5914
5917
|
i(A);
|
|
5915
5918
|
} catch (A) {
|
|
5916
|
-
|
|
5919
|
+
l(A);
|
|
5917
5920
|
}
|
|
5918
5921
|
});
|
|
5919
5922
|
r.onAbort = n, this.queue.push(r);
|
|
@@ -5985,12 +5988,12 @@ class wo {
|
|
|
5985
5988
|
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (n = i.minPasswordLength) !== null && n !== void 0 ? n : bo, i.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = i.maxPasswordLength), i.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = i.containsLowercaseCharacter), i.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = i.containsUppercaseCharacter), i.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = i.containsNumericCharacter), i.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = i.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (s = (r = e.allowedNonAlphanumericCharacters) === null || r === void 0 ? void 0 : r.join("")) !== null && s !== void 0 ? s : "", this.forceUpgradeOnSignin = (a = e.forceUpgradeOnSignin) !== null && a !== void 0 ? a : !1, this.schemaVersion = e.schemaVersion;
|
|
5986
5989
|
}
|
|
5987
5990
|
validatePassword(e) {
|
|
5988
|
-
var n, r, s, a, i,
|
|
5991
|
+
var n, r, s, a, i, l;
|
|
5989
5992
|
const A = {
|
|
5990
5993
|
isValid: !0,
|
|
5991
5994
|
passwordPolicy: this
|
|
5992
5995
|
};
|
|
5993
|
-
return this.validatePasswordLengthOptions(e, A), this.validatePasswordCharacterOptions(e, A), A.isValid && (A.isValid = (n = A.meetsMinPasswordLength) !== null && n !== void 0 ? n : !0), A.isValid && (A.isValid = (r = A.meetsMaxPasswordLength) !== null && r !== void 0 ? r : !0), A.isValid && (A.isValid = (s = A.containsLowercaseLetter) !== null && s !== void 0 ? s : !0), A.isValid && (A.isValid = (a = A.containsUppercaseLetter) !== null && a !== void 0 ? a : !0), A.isValid && (A.isValid = (i = A.containsNumericCharacter) !== null && i !== void 0 ? i : !0), A.isValid && (A.isValid = (
|
|
5996
|
+
return this.validatePasswordLengthOptions(e, A), this.validatePasswordCharacterOptions(e, A), A.isValid && (A.isValid = (n = A.meetsMinPasswordLength) !== null && n !== void 0 ? n : !0), A.isValid && (A.isValid = (r = A.meetsMaxPasswordLength) !== null && r !== void 0 ? r : !0), A.isValid && (A.isValid = (s = A.containsLowercaseLetter) !== null && s !== void 0 ? s : !0), A.isValid && (A.isValid = (a = A.containsUppercaseLetter) !== null && a !== void 0 ? a : !0), A.isValid && (A.isValid = (i = A.containsNumericCharacter) !== null && i !== void 0 ? i : !0), A.isValid && (A.isValid = (l = A.containsNonAlphanumericCharacter) !== null && l !== void 0 ? l : !0), A;
|
|
5994
5997
|
}
|
|
5995
5998
|
/**
|
|
5996
5999
|
* Validates that the password meets the length options for the policy.
|
|
@@ -6113,16 +6116,16 @@ class Bo {
|
|
|
6113
6116
|
var n;
|
|
6114
6117
|
if (H(this.app)) {
|
|
6115
6118
|
const i = this.app.settings.authIdToken;
|
|
6116
|
-
return i ? new Promise((
|
|
6117
|
-
setTimeout(() => this.initializeCurrentUserFromIdToken(i).then(
|
|
6119
|
+
return i ? new Promise((l) => {
|
|
6120
|
+
setTimeout(() => this.initializeCurrentUserFromIdToken(i).then(l, l));
|
|
6118
6121
|
}) : this.directlySetCurrentUser(null);
|
|
6119
6122
|
}
|
|
6120
6123
|
const r = await this.assertedPersistence.getCurrentUser();
|
|
6121
6124
|
let s = r, a = !1;
|
|
6122
6125
|
if (e && this.config.authDomain) {
|
|
6123
6126
|
await this.getOrInitRedirectPersistenceManager();
|
|
6124
|
-
const i = (n = this.redirectUser) === null || n === void 0 ? void 0 : n._redirectEventId,
|
|
6125
|
-
(!i || i ===
|
|
6127
|
+
const i = (n = this.redirectUser) === null || n === void 0 ? void 0 : n._redirectEventId, l = s == null ? void 0 : s._redirectEventId, A = await this.tryRedirectSignIn(e);
|
|
6128
|
+
(!i || i === l) && (A != null && A.user) && (s = A.user, a = !0);
|
|
6126
6129
|
}
|
|
6127
6130
|
if (!s)
|
|
6128
6131
|
return this.directlySetCurrentUser(null);
|
|
@@ -6325,13 +6328,13 @@ class Bo {
|
|
|
6325
6328
|
};
|
|
6326
6329
|
const a = typeof n == "function" ? n : n.next.bind(n);
|
|
6327
6330
|
let i = !1;
|
|
6328
|
-
const
|
|
6331
|
+
const l = this._isInitialized ? Promise.resolve() : this._initializationPromise;
|
|
6329
6332
|
if (v(
|
|
6330
|
-
|
|
6333
|
+
l,
|
|
6331
6334
|
this,
|
|
6332
6335
|
"internal-error"
|
|
6333
6336
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6334
|
-
),
|
|
6337
|
+
), l.then(() => {
|
|
6335
6338
|
i || a(this.currentUser);
|
|
6336
6339
|
}), typeof n == "function") {
|
|
6337
6340
|
const A = e.addObserver(n, r, s);
|
|
@@ -6497,10 +6500,10 @@ function Mo(t, e, n) {
|
|
|
6497
6500
|
"invalid-emulator-scheme"
|
|
6498
6501
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
|
6499
6502
|
);
|
|
6500
|
-
const s = !1, a = Dr(e), { host: i, port:
|
|
6503
|
+
const s = !1, a = Dr(e), { host: i, port: l } = Po(e), A = l === null ? "" : `:${l}`;
|
|
6501
6504
|
r.config.emulator = { url: `${a}//${i}${A}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
|
|
6502
6505
|
host: i,
|
|
6503
|
-
port:
|
|
6506
|
+
port: l,
|
|
6504
6507
|
protocol: a.replace(":", ""),
|
|
6505
6508
|
options: Object.freeze({ disableWarnings: s })
|
|
6506
6509
|
}), Go();
|
|
@@ -7172,9 +7175,9 @@ async function To(t, e, n = !1) {
|
|
|
7172
7175
|
"internal-error"
|
|
7173
7176
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
7174
7177
|
);
|
|
7175
|
-
const { sub:
|
|
7178
|
+
const { sub: l } = i;
|
|
7176
7179
|
return v(
|
|
7177
|
-
t.uid ===
|
|
7180
|
+
t.uid === l,
|
|
7178
7181
|
r,
|
|
7179
7182
|
"user-mismatch"
|
|
7180
7183
|
/* AuthErrorCode.USER_MISMATCH */
|
|
@@ -7334,7 +7337,7 @@ class Pr extends Mr {
|
|
|
7334
7337
|
}
|
|
7335
7338
|
onStorageEvent(e, n = !1) {
|
|
7336
7339
|
if (!e.key) {
|
|
7337
|
-
this.forAllChangedKeys((i,
|
|
7340
|
+
this.forAllChangedKeys((i, l, A) => {
|
|
7338
7341
|
this.notifyListeners(i, A);
|
|
7339
7342
|
});
|
|
7340
7343
|
return;
|
|
@@ -7515,7 +7518,7 @@ class it {
|
|
|
7515
7518
|
eventId: r,
|
|
7516
7519
|
eventType: s
|
|
7517
7520
|
});
|
|
7518
|
-
const
|
|
7521
|
+
const l = Array.from(i).map(async (u) => u(n.origin, a)), A = await qo(l);
|
|
7519
7522
|
n.ports[0].postMessage({
|
|
7520
7523
|
status: "done",
|
|
7521
7524
|
eventId: r,
|
|
@@ -7616,7 +7619,7 @@ class Xo {
|
|
|
7616
7619
|
/* _MessageError.CONNECTION_UNAVAILABLE */
|
|
7617
7620
|
);
|
|
7618
7621
|
let a, i;
|
|
7619
|
-
return new Promise((
|
|
7622
|
+
return new Promise((l, A) => {
|
|
7620
7623
|
const u = Wt("", 20);
|
|
7621
7624
|
s.port1.start();
|
|
7622
7625
|
const f = setTimeout(() => {
|
|
@@ -7644,7 +7647,7 @@ class Xo {
|
|
|
7644
7647
|
);
|
|
7645
7648
|
break;
|
|
7646
7649
|
case "done":
|
|
7647
|
-
clearTimeout(a),
|
|
7650
|
+
clearTimeout(a), l(E.data.response);
|
|
7648
7651
|
break;
|
|
7649
7652
|
default:
|
|
7650
7653
|
clearTimeout(f), clearTimeout(a), A(new Error(
|
|
@@ -8067,7 +8070,7 @@ class xr {
|
|
|
8067
8070
|
});
|
|
8068
8071
|
}
|
|
8069
8072
|
async onAuthEvent(e) {
|
|
8070
|
-
const { urlResponse: n, sessionId: r, postBody: s, tenantId: a, error: i, type:
|
|
8073
|
+
const { urlResponse: n, sessionId: r, postBody: s, tenantId: a, error: i, type: l } = e;
|
|
8071
8074
|
if (i) {
|
|
8072
8075
|
this.reject(i);
|
|
8073
8076
|
return;
|
|
@@ -8082,7 +8085,7 @@ class xr {
|
|
|
8082
8085
|
bypassAuthState: this.bypassAuthState
|
|
8083
8086
|
};
|
|
8084
8087
|
try {
|
|
8085
|
-
this.resolve(await this.getIdpTask(
|
|
8088
|
+
this.resolve(await this.getIdpTask(l)(A));
|
|
8086
8089
|
} catch (u) {
|
|
8087
8090
|
this.reject(u);
|
|
8088
8091
|
}
|
|
@@ -8476,14 +8479,14 @@ function Bc(t) {
|
|
|
8476
8479
|
else if (!((a = N().gapi) === null || a === void 0) && a.load)
|
|
8477
8480
|
i();
|
|
8478
8481
|
else {
|
|
8479
|
-
const
|
|
8480
|
-
return N()[
|
|
8482
|
+
const l = Co("iframefcb");
|
|
8483
|
+
return N()[l] = () => {
|
|
8481
8484
|
gapi.load ? i() : n(R(
|
|
8482
8485
|
t,
|
|
8483
8486
|
"network-request-failed"
|
|
8484
8487
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
8485
8488
|
));
|
|
8486
|
-
}, yo(`${Do()}?onload=${
|
|
8489
|
+
}, yo(`${Do()}?onload=${l}`).catch((A) => n(A));
|
|
8487
8490
|
}
|
|
8488
8491
|
}).catch((e) => {
|
|
8489
8492
|
throw ze = null, e;
|
|
@@ -8563,11 +8566,11 @@ async function Pc(t) {
|
|
|
8563
8566
|
t,
|
|
8564
8567
|
"network-request-failed"
|
|
8565
8568
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
8566
|
-
),
|
|
8569
|
+
), l = N().setTimeout(() => {
|
|
8567
8570
|
a(i);
|
|
8568
8571
|
}, yc.get());
|
|
8569
8572
|
function A() {
|
|
8570
|
-
N().clearTimeout(
|
|
8573
|
+
N().clearTimeout(l), s(r);
|
|
8571
8574
|
}
|
|
8572
8575
|
r.ping(A).then(A, () => {
|
|
8573
8576
|
a(i);
|
|
@@ -8610,18 +8613,18 @@ class yn {
|
|
|
8610
8613
|
}
|
|
8611
8614
|
function jc(t, e, n, r = Yc, s = Vc) {
|
|
8612
8615
|
const a = Math.max((window.screen.availHeight - s) / 2, 0).toString(), i = Math.max((window.screen.availWidth - r) / 2, 0).toString();
|
|
8613
|
-
let
|
|
8616
|
+
let l = "";
|
|
8614
8617
|
const A = Object.assign(Object.assign({}, Gc), {
|
|
8615
8618
|
width: r.toString(),
|
|
8616
8619
|
height: s.toString(),
|
|
8617
8620
|
top: a,
|
|
8618
8621
|
left: i
|
|
8619
8622
|
}), u = Y().toLowerCase();
|
|
8620
|
-
n && (
|
|
8623
|
+
n && (l = mr(u) ? Tc : n), hr(u) && (e = e || Oc, A.scrollbars = "yes");
|
|
8621
8624
|
const f = Object.entries(A).reduce((E, [C, M]) => `${E}${C}=${M},`, "");
|
|
8622
|
-
if (ho(u) &&
|
|
8623
|
-
return xc(e || "",
|
|
8624
|
-
const p = window.open(e || "",
|
|
8625
|
+
if (ho(u) && l !== "_self")
|
|
8626
|
+
return xc(e || "", l), new yn(null);
|
|
8627
|
+
const p = window.open(e || "", l, f);
|
|
8625
8628
|
v(
|
|
8626
8629
|
p,
|
|
8627
8630
|
t,
|
|
@@ -8687,11 +8690,11 @@ async function Dn(t, e, n, r, s, a) {
|
|
|
8687
8690
|
f.length > 0 && (i.scopes = f.join(","));
|
|
8688
8691
|
}
|
|
8689
8692
|
t.tenantId && (i.tid = t.tenantId);
|
|
8690
|
-
const
|
|
8691
|
-
for (const f of Object.keys(
|
|
8692
|
-
|
|
8693
|
+
const l = i;
|
|
8694
|
+
for (const f of Object.keys(l))
|
|
8695
|
+
l[f] === void 0 && delete l[f];
|
|
8693
8696
|
const A = await t._getAppCheckToken(), u = A ? `#${Nc}=${encodeURIComponent(A)}` : "";
|
|
8694
|
-
return `${Fc(t)}?${Ve(
|
|
8697
|
+
return `${Fc(t)}?${Ve(l).slice(1)}${u}`;
|
|
8695
8698
|
}
|
|
8696
8699
|
function Fc({ config: t }) {
|
|
8697
8700
|
return t.emulator ? qt(t, Rc) : `https://${t.authDomain}/${kc}`;
|
|
@@ -8862,11 +8865,11 @@ function Uc(t) {
|
|
|
8862
8865
|
Ie(new fe(
|
|
8863
8866
|
"auth",
|
|
8864
8867
|
(e, { options: n }) => {
|
|
8865
|
-
const r = e.getProvider("app").getImmediate(), s = e.getProvider("heartbeat"), a = e.getProvider("app-check-internal"), { apiKey: i, authDomain:
|
|
8868
|
+
const r = e.getProvider("app").getImmediate(), s = e.getProvider("heartbeat"), a = e.getProvider("app-check-internal"), { apiKey: i, authDomain: l } = r.options;
|
|
8866
8869
|
v(i && !i.includes(":"), "invalid-api-key", { appName: r.name });
|
|
8867
8870
|
const A = {
|
|
8868
8871
|
apiKey: i,
|
|
8869
|
-
authDomain:
|
|
8872
|
+
authDomain: l,
|
|
8870
8873
|
clientPlatform: t,
|
|
8871
8874
|
apiHost: "identitytoolkit.googleapis.com",
|
|
8872
8875
|
tokenApiHost: "securetoken.googleapis.com",
|
|
@@ -8947,7 +8950,7 @@ function Zc(t = Fi()) {
|
|
|
8947
8950
|
const a = new URL(r, location.origin);
|
|
8948
8951
|
if (location.origin === a.origin) {
|
|
8949
8952
|
const i = Sc(a.toString());
|
|
8950
|
-
Ro(n, i, () => i(n.currentUser)), ko(n, (
|
|
8953
|
+
Ro(n, i, () => i(n.currentUser)), ko(n, (l) => i(l));
|
|
8951
8954
|
}
|
|
8952
8955
|
}
|
|
8953
8956
|
const s = Ea("auth");
|
|
@@ -8993,7 +8996,7 @@ const Kc = (t) => t ? xn(
|
|
|
8993
8996
|
[
|
|
8994
8997
|
{
|
|
8995
8998
|
subject: Ge.all,
|
|
8996
|
-
action:
|
|
8999
|
+
action: c.manage
|
|
8997
9000
|
}
|
|
8998
9001
|
],
|
|
8999
9002
|
t.permissions || []
|
|
@@ -9034,7 +9037,7 @@ const Kc = (t) => t ? xn(
|
|
|
9034
9037
|
] : [];
|
|
9035
9038
|
}).flat().filter((p) => !!p);
|
|
9036
9039
|
}
|
|
9037
|
-
const
|
|
9040
|
+
const l = Ce.map((u) => {
|
|
9038
9041
|
var f;
|
|
9039
9042
|
if ((f = u.meta) != null && f.sidebarDisplay && !u.meta.section)
|
|
9040
9043
|
return {
|
|
@@ -9083,7 +9086,7 @@ const Kc = (t) => t ? xn(
|
|
|
9083
9086
|
icon: "admin_panel_settings",
|
|
9084
9087
|
value: "divider",
|
|
9085
9088
|
disabled: !0
|
|
9086
|
-
}), u.push(...
|
|
9089
|
+
}), u.push(...l)), u;
|
|
9087
9090
|
});
|
|
9088
9091
|
return (u, f) => {
|
|
9089
9092
|
const p = Gn("FmCollapsibleTabs");
|
|
@@ -9104,14 +9107,14 @@ const il = /* @__PURE__ */ nt({
|
|
|
9104
9107
|
async function a() {
|
|
9105
9108
|
const i = n.sessionUser.value;
|
|
9106
9109
|
if (!i || !i.token) return;
|
|
9107
|
-
const
|
|
9108
|
-
await xo(A,
|
|
9110
|
+
const l = await i.getCustomToken(), A = Zc(s);
|
|
9111
|
+
await xo(A, l);
|
|
9109
9112
|
}
|
|
9110
9113
|
return a(), Pn(n.sessionUser, a), Zr(() => {
|
|
9111
9114
|
e.isIframe && parent.postMessage({ event: "ready" }, "*");
|
|
9112
9115
|
}), Lr(() => {
|
|
9113
9116
|
n.registerSidebarComponent(Jc);
|
|
9114
|
-
}), (i,
|
|
9117
|
+
}), (i, l) => {
|
|
9115
9118
|
const A = Gn("RouterView");
|
|
9116
9119
|
return rt(), Ot(A, {
|
|
9117
9120
|
key: $(r).path
|