@feedmepos/mf-payment 1.2.24 → 1.2.27
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/{PayoutAccount-BqU7JimC.js → PayoutAccount-DI5YpzGm.js} +10 -11
- package/dist/{PayoutAccount-DhOFhZWz.js → PayoutAccount-mlaDc7_i.js} +41 -42
- package/dist/{PayoutAccountSetting-4rChUUC2.js → PayoutAccountSetting-IgBRFN0A.js} +305 -298
- package/dist/{Restaurant-BdX8Zvgf.js → Restaurant-CIGhOFvk.js} +4 -4
- package/dist/{RestaurantSetting-GwZG2qIM.js → RestaurantSetting-0CbusLcz.js} +3 -3
- package/dist/{Settlement-BxgrIFl0.js → Settlement-CUmpNHMN.js} +3 -3
- package/dist/{Settlement-C1Cnjbfa.js → Settlement-DmG5-VSP.js} +3 -3
- package/dist/{SettlementTransactions-DJSO-CHK.js → SettlementTransactions-CcMUINyi.js} +3 -3
- package/dist/{SettlementTransactions-BCXpOllL.js → SettlementTransactions-DhjGSAg4.js} +3 -3
- package/dist/{Terminal-DgtrqIDu.js → Terminal-KE_9M2jr.js} +5 -5
- package/dist/{TerminalSetting-BDfDUo4z.js → TerminalSetting-DdJl_9JJ.js} +3 -3
- package/dist/{Transaction-DudH8wYy.js → Transaction-CA9RQ8qT.js} +5 -5
- package/dist/{Transaction-CRhYNPh0.js → Transaction-E9_hSpx4.js} +27 -28
- package/dist/{TransactionOld-RjXR9GsJ.js → TransactionOld-lPUiTl8n.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-8unyvpBs.js → TransactionTable.vue_vue_type_script_setup_true_lang-B03g8Jum.js} +3 -3
- package/dist/api/payout/index.d.ts +1 -1
- package/dist/api/transaction/index.d.ts +1 -1
- package/dist/{app-DhROxvFc.js → app-BohCgZld.js} +143 -143
- package/dist/app.js +1 -1
- package/dist/{assets-B3_vL33P.js → assets-Dttfej_E.js} +20 -20
- package/dist/{grafana-gGem10RX.js → grafana-DCGA3gMb.js} +1 -1
- package/dist/helpers/assets.d.ts +1 -1
- package/dist/{index-Bu7KNcy0.js → index-BOwfUR6x.js} +1 -1
- package/dist/{index-BO20Q-JI.js → index-BQtW6X1l.js} +1 -1
- package/dist/{index-C46w44Pn.js → index-BYLzp2JB.js} +1 -1
- package/dist/{index-B-qY0UqE.js → index-CZKvrBM7.js} +1 -1
- package/dist/{index-C5KhoncH.js → index-JCMXdVSJ.js} +3 -4
- package/dist/{index-DuTkLd3Q.js → index-tCobqIDD.js} +1730 -1728
- package/dist/{index.vue_vue_type_script_setup_true_lang-DlPKXE4R.js → index.vue_vue_type_script_setup_true_lang-DpAWcXVU.js} +56 -54
- package/dist/package.json +2 -2
- package/dist/{payout-account-BV6hCywT.js → payout-account-rJmG1Gi5.js} +4 -5
- package/dist/stores/payoutAccount.d.ts +22 -20
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +22 -20
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +26 -24
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +26 -24
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +22 -20
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +22 -20
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +26 -24
- package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -0
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +8 -8
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +6 -6
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +44 -40
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +24 -24
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +12 -12
- package/dist/views/settlement/SettlementTable.vue.d.ts +8 -8
- package/package.json +2 -2
- package/dist/index-uquYA8M1.js +0 -162
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRouter as Ln, createWebHistory as Mn, useRouter as Un, useRoute as xn } from "vue-router";
|
2
|
-
import { computed as Lt, watch as
|
2
|
+
import { computed as Lt, watch as q, defineComponent as Mt, ref as Fn, resolveComponent as Ut, openBlock as xt, createBlock as Ft, h as Bn, onMounted as $n, onBeforeMount as Hn, unref as Vn } from "vue";
|
3
3
|
import { useCoreStore as je, useI18n as jn } from "@feedmepos/mf-common";
|
4
4
|
import { defineStore as Wn } from "pinia";
|
5
5
|
import { components as zn } from "@feedmepos/ui-library";
|
@@ -150,9 +150,9 @@ const Gn = {
|
|
150
150
|
}
|
151
151
|
}
|
152
152
|
}
|
153
|
-
}, Kn = {
|
154
|
-
payment: Gn
|
155
153
|
}, qn = {
|
154
|
+
payment: Gn
|
155
|
+
}, Kn = {
|
156
156
|
components: {
|
157
157
|
select: "选择筛选对象",
|
158
158
|
restaurant: "餐厅",
|
@@ -300,7 +300,7 @@ const Gn = {
|
|
300
300
|
}
|
301
301
|
}
|
302
302
|
}, Jn = {
|
303
|
-
payment:
|
303
|
+
payment: Kn
|
304
304
|
}, le = [
|
305
305
|
{
|
306
306
|
path: "/admin/restaurants",
|
@@ -309,7 +309,7 @@ const Gn = {
|
|
309
309
|
sidebarDisplay: "Restaurants",
|
310
310
|
section: "payment-gateway"
|
311
311
|
},
|
312
|
-
component: () => import("./Restaurant-
|
312
|
+
component: () => import("./Restaurant-CIGhOFvk.js")
|
313
313
|
},
|
314
314
|
{
|
315
315
|
path: "/admin/restaurants/:restaurantId",
|
@@ -318,7 +318,7 @@ const Gn = {
|
|
318
318
|
meta: {
|
319
319
|
parent: "mf-payment-admin.restaurant"
|
320
320
|
},
|
321
|
-
component: () => import("./RestaurantSetting-
|
321
|
+
component: () => import("./RestaurantSetting-0CbusLcz.js")
|
322
322
|
},
|
323
323
|
{
|
324
324
|
path: "/admin/payout-accounts",
|
@@ -327,7 +327,7 @@ const Gn = {
|
|
327
327
|
sidebarDisplay: "Payout Accounts",
|
328
328
|
section: "payment-gateway"
|
329
329
|
},
|
330
|
-
component: () => import("./PayoutAccount-
|
330
|
+
component: () => import("./PayoutAccount-DI5YpzGm.js")
|
331
331
|
},
|
332
332
|
{
|
333
333
|
path: "/admin/payout-accounts/:accountId",
|
@@ -336,7 +336,7 @@ const Gn = {
|
|
336
336
|
meta: {
|
337
337
|
parent: "mf-payment-admin.payout-account"
|
338
338
|
},
|
339
|
-
component: () => import("./PayoutAccountSetting-
|
339
|
+
component: () => import("./PayoutAccountSetting-IgBRFN0A.js")
|
340
340
|
},
|
341
341
|
{
|
342
342
|
path: "/admin/terminal/pos",
|
@@ -345,7 +345,7 @@ const Gn = {
|
|
345
345
|
sidebarDisplay: "POS",
|
346
346
|
section: "device"
|
347
347
|
},
|
348
|
-
component: () => import("./Terminal-
|
348
|
+
component: () => import("./Terminal-KE_9M2jr.js"),
|
349
349
|
props: {
|
350
350
|
type: "POS"
|
351
351
|
}
|
@@ -357,7 +357,7 @@ const Gn = {
|
|
357
357
|
sidebarDisplay: "Kiosks",
|
358
358
|
section: "device"
|
359
359
|
},
|
360
|
-
component: () => import("./Terminal-
|
360
|
+
component: () => import("./Terminal-KE_9M2jr.js"),
|
361
361
|
props: {
|
362
362
|
type: "KIOSK"
|
363
363
|
}
|
@@ -369,7 +369,7 @@ const Gn = {
|
|
369
369
|
sidebarDisplay: "Terminals",
|
370
370
|
section: "device"
|
371
371
|
},
|
372
|
-
component: () => import("./Terminal-
|
372
|
+
component: () => import("./Terminal-KE_9M2jr.js"),
|
373
373
|
props: {
|
374
374
|
type: "TERMINAL"
|
375
375
|
}
|
@@ -381,7 +381,7 @@ const Gn = {
|
|
381
381
|
meta: {
|
382
382
|
parent: "mf-payment-admin.pos"
|
383
383
|
},
|
384
|
-
component: () => import("./TerminalSetting-
|
384
|
+
component: () => import("./TerminalSetting-DdJl_9JJ.js")
|
385
385
|
},
|
386
386
|
{
|
387
387
|
path: "/admin/terminal/kiosk/:terminalId",
|
@@ -390,7 +390,7 @@ const Gn = {
|
|
390
390
|
meta: {
|
391
391
|
parent: "mf-payment-admin.kiosk"
|
392
392
|
},
|
393
|
-
component: () => import("./TerminalSetting-
|
393
|
+
component: () => import("./TerminalSetting-DdJl_9JJ.js")
|
394
394
|
},
|
395
395
|
{
|
396
396
|
path: "/admin/terminal/terminal/:terminalId",
|
@@ -399,7 +399,7 @@ const Gn = {
|
|
399
399
|
meta: {
|
400
400
|
parent: "mf-payment-admin.terminal"
|
401
401
|
},
|
402
|
-
component: () => import("./TerminalSetting-
|
402
|
+
component: () => import("./TerminalSetting-DdJl_9JJ.js")
|
403
403
|
},
|
404
404
|
{
|
405
405
|
path: "/admin/transaction",
|
@@ -407,7 +407,7 @@ const Gn = {
|
|
407
407
|
meta: {
|
408
408
|
sidebarDisplay: "Transactions"
|
409
409
|
},
|
410
|
-
component: () => import("./Transaction-
|
410
|
+
component: () => import("./Transaction-CA9RQ8qT.js")
|
411
411
|
},
|
412
412
|
{
|
413
413
|
path: "/admin/settlement",
|
@@ -415,7 +415,7 @@ const Gn = {
|
|
415
415
|
meta: {
|
416
416
|
sidebarDisplay: "Settlements"
|
417
417
|
},
|
418
|
-
component: () => import("./Settlement-
|
418
|
+
component: () => import("./Settlement-CUmpNHMN.js")
|
419
419
|
},
|
420
420
|
{
|
421
421
|
path: "/admin/settlement/:settlementId",
|
@@ -424,7 +424,7 @@ const Gn = {
|
|
424
424
|
meta: {
|
425
425
|
parent: "mf-payment-admin.settlement"
|
426
426
|
},
|
427
|
-
component: () => import("./SettlementTransactions-
|
427
|
+
component: () => import("./SettlementTransactions-DhjGSAg4.js")
|
428
428
|
}
|
429
429
|
], We = [
|
430
430
|
{
|
@@ -434,7 +434,7 @@ const Gn = {
|
|
434
434
|
{
|
435
435
|
path: "/payout-account",
|
436
436
|
name: "mf-payment-payout-account",
|
437
|
-
component: () => import("./PayoutAccount-
|
437
|
+
component: () => import("./PayoutAccount-mlaDc7_i.js"),
|
438
438
|
meta: {
|
439
439
|
sidebarDisplay: "i18n:payment.routes.payout_account"
|
440
440
|
}
|
@@ -442,7 +442,7 @@ const Gn = {
|
|
442
442
|
{
|
443
443
|
path: "/transaction-old",
|
444
444
|
name: "mf-payment-old-transaction",
|
445
|
-
component: () => import("./TransactionOld-
|
445
|
+
component: () => import("./TransactionOld-lPUiTl8n.js"),
|
446
446
|
meta: {
|
447
447
|
sidebarDisplay: "i18n:payment.routes.transaction"
|
448
448
|
}
|
@@ -450,7 +450,7 @@ const Gn = {
|
|
450
450
|
{
|
451
451
|
path: "/transaction",
|
452
452
|
name: "mf-payment-transaction",
|
453
|
-
component: () => import("./Transaction-
|
453
|
+
component: () => import("./Transaction-E9_hSpx4.js"),
|
454
454
|
meta: {
|
455
455
|
sidebarDisplay: "i18n:payment.routes.transaction-new",
|
456
456
|
sidebarNew: !0
|
@@ -459,7 +459,7 @@ const Gn = {
|
|
459
459
|
{
|
460
460
|
path: "/settlement",
|
461
461
|
name: "mf-payment-settlement",
|
462
|
-
component: () => import("./Settlement-
|
462
|
+
component: () => import("./Settlement-DmG5-VSP.js"),
|
463
463
|
meta: {
|
464
464
|
sidebarDisplay: "i18n:payment.routes.settlement"
|
465
465
|
}
|
@@ -468,12 +468,12 @@ const Gn = {
|
|
468
468
|
path: "/settlement/:settlementId",
|
469
469
|
name: "mf-payment-settlement-transaction",
|
470
470
|
props: !0,
|
471
|
-
component: () => import("./SettlementTransactions-
|
471
|
+
component: () => import("./SettlementTransactions-CcMUINyi.js"),
|
472
472
|
meta: {
|
473
473
|
parent: "mf-payment-settlement"
|
474
474
|
}
|
475
475
|
}
|
476
|
-
],
|
476
|
+
], Yn = Wn("mf-payment-iframe", () => {
|
477
477
|
const n = {
|
478
478
|
isIframe: !1
|
479
479
|
}, e = Lt(() => n);
|
@@ -525,7 +525,7 @@ const Bt = function(n) {
|
|
525
525
|
i < 128 ? e[t++] = i : i < 2048 ? (e[t++] = i >> 6 | 192, e[t++] = i & 63 | 128) : (i & 64512) === 55296 && r + 1 < n.length && (n.charCodeAt(r + 1) & 64512) === 56320 ? (i = 65536 + ((i & 1023) << 10) + (n.charCodeAt(++r) & 1023), e[t++] = i >> 18 | 240, e[t++] = i >> 12 & 63 | 128, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128) : (e[t++] = i >> 12 | 224, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128);
|
526
526
|
}
|
527
527
|
return e;
|
528
|
-
},
|
528
|
+
}, Xn = function(n) {
|
529
529
|
const e = [];
|
530
530
|
let t = 0, r = 0;
|
531
531
|
for (; t < n.length; ) {
|
@@ -629,7 +629,7 @@ const Bt = function(n) {
|
|
629
629
|
* @return string representing the decoded value.
|
630
630
|
*/
|
631
631
|
decodeString(n, e) {
|
632
|
-
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) :
|
632
|
+
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : Xn(this.decodeStringToByteArray(n, e));
|
633
633
|
},
|
634
634
|
/**
|
635
635
|
* Base64-decode a string.
|
@@ -1504,7 +1504,7 @@ class zt {
|
|
1504
1504
|
}
|
1505
1505
|
const Ar = (n, e) => e.some((t) => n instanceof t);
|
1506
1506
|
let ct, lt;
|
1507
|
-
function
|
1507
|
+
function Cr() {
|
1508
1508
|
return ct || (ct = [
|
1509
1509
|
IDBDatabase,
|
1510
1510
|
IDBObjectStore,
|
@@ -1513,14 +1513,14 @@ function Rr() {
|
|
1513
1513
|
IDBTransaction
|
1514
1514
|
]);
|
1515
1515
|
}
|
1516
|
-
function
|
1516
|
+
function Rr() {
|
1517
1517
|
return lt || (lt = [
|
1518
1518
|
IDBCursor.prototype.advance,
|
1519
1519
|
IDBCursor.prototype.continue,
|
1520
1520
|
IDBCursor.prototype.continuePrimaryKey
|
1521
1521
|
]);
|
1522
1522
|
}
|
1523
|
-
const Gt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(),
|
1523
|
+
const Gt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap();
|
1524
1524
|
function Pr(n) {
|
1525
1525
|
const e = new Promise((t, r) => {
|
1526
1526
|
const i = () => {
|
@@ -1558,7 +1558,7 @@ let Ue = {
|
|
1558
1558
|
if (e === "done")
|
1559
1559
|
return Me.get(n);
|
1560
1560
|
if (e === "objectStoreNames")
|
1561
|
-
return n.objectStoreNames ||
|
1561
|
+
return n.objectStoreNames || qt.get(n);
|
1562
1562
|
if (e === "store")
|
1563
1563
|
return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
|
1564
1564
|
}
|
@@ -1576,16 +1576,16 @@ function Dr(n) {
|
|
1576
1576
|
}
|
1577
1577
|
function Nr(n) {
|
1578
1578
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
1579
|
-
const r = n.call(
|
1580
|
-
return
|
1581
|
-
} :
|
1582
|
-
return n.apply(
|
1579
|
+
const r = n.call(Ce(this), e, ...t);
|
1580
|
+
return qt.set(r, e.sort ? e.sort() : [e]), O(r);
|
1581
|
+
} : Rr().includes(n) ? function(...e) {
|
1582
|
+
return n.apply(Ce(this), e), O(Gt.get(this));
|
1583
1583
|
} : function(...e) {
|
1584
|
-
return O(n.apply(
|
1584
|
+
return O(n.apply(Ce(this), e));
|
1585
1585
|
};
|
1586
1586
|
}
|
1587
1587
|
function Lr(n) {
|
1588
|
-
return typeof n == "function" ? Nr(n) : (n instanceof IDBTransaction && Or(n), Ar(n,
|
1588
|
+
return typeof n == "function" ? Nr(n) : (n instanceof IDBTransaction && Or(n), Ar(n, Cr()) ? new Proxy(n, Ue) : n);
|
1589
1589
|
}
|
1590
1590
|
function O(n) {
|
1591
1591
|
if (n instanceof IDBRequest)
|
@@ -1595,7 +1595,7 @@ function O(n) {
|
|
1595
1595
|
const e = Lr(n);
|
1596
1596
|
return e !== n && (Ae.set(n, e), Ge.set(e, n)), e;
|
1597
1597
|
}
|
1598
|
-
const
|
1598
|
+
const Ce = (n) => Ge.get(n);
|
1599
1599
|
function Mr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
1600
1600
|
const a = indexedDB.open(n, e), c = O(a);
|
1601
1601
|
return r && a.addEventListener("upgradeneeded", (o) => {
|
@@ -1610,12 +1610,12 @@ function Mr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
1610
1610
|
}).catch(() => {
|
1611
1611
|
}), c;
|
1612
1612
|
}
|
1613
|
-
const Ur = ["get", "getKey", "getAll", "getAllKeys", "count"], xr = ["put", "add", "delete", "clear"],
|
1613
|
+
const Ur = ["get", "getKey", "getAll", "getAllKeys", "count"], xr = ["put", "add", "delete", "clear"], Re = /* @__PURE__ */ new Map();
|
1614
1614
|
function ut(n, e) {
|
1615
1615
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
1616
1616
|
return;
|
1617
|
-
if (
|
1618
|
-
return
|
1617
|
+
if (Re.get(e))
|
1618
|
+
return Re.get(e);
|
1619
1619
|
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = xr.includes(t);
|
1620
1620
|
if (
|
1621
1621
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
@@ -1630,7 +1630,7 @@ function ut(n, e) {
|
|
1630
1630
|
i && o.done
|
1631
1631
|
]))[0];
|
1632
1632
|
};
|
1633
|
-
return
|
1633
|
+
return Re.set(e, s), s;
|
1634
1634
|
}
|
1635
1635
|
Dr((n) => ({
|
1636
1636
|
...n,
|
@@ -1690,7 +1690,7 @@ const xe = "@firebase/app", dt = "0.10.13";
|
|
1690
1690
|
* See the License for the specific language governing permissions and
|
1691
1691
|
* limitations under the License.
|
1692
1692
|
*/
|
1693
|
-
const E = new zt("@firebase/app"), $r = "@firebase/app-compat", Hr = "@firebase/analytics-compat", Vr = "@firebase/analytics", jr = "@firebase/app-check-compat", Wr = "@firebase/app-check", zr = "@firebase/auth", Gr = "@firebase/auth-compat",
|
1693
|
+
const E = new zt("@firebase/app"), $r = "@firebase/app-compat", Hr = "@firebase/analytics-compat", Vr = "@firebase/analytics", jr = "@firebase/app-check-compat", Wr = "@firebase/app-check", zr = "@firebase/auth", Gr = "@firebase/auth-compat", qr = "@firebase/database", Kr = "@firebase/data-connect", Jr = "@firebase/database-compat", Yr = "@firebase/functions", Xr = "@firebase/functions-compat", Qr = "@firebase/installations", Zr = "@firebase/installations-compat", ei = "@firebase/messaging", ti = "@firebase/messaging-compat", ni = "@firebase/performance", ri = "@firebase/performance-compat", ii = "@firebase/remote-config", si = "@firebase/remote-config-compat", ai = "@firebase/storage", oi = "@firebase/storage-compat", ci = "@firebase/firestore", li = "@firebase/vertexai-preview", ui = "@firebase/firestore-compat", di = "firebase", hi = "10.14.1";
|
1694
1694
|
/**
|
1695
1695
|
* @license
|
1696
1696
|
* Copyright 2019 Google LLC
|
@@ -1716,11 +1716,11 @@ const Fe = "[DEFAULT]", fi = {
|
|
1716
1716
|
[jr]: "fire-app-check-compat",
|
1717
1717
|
[zr]: "fire-auth",
|
1718
1718
|
[Gr]: "fire-auth-compat",
|
1719
|
-
[
|
1720
|
-
[
|
1719
|
+
[qr]: "fire-rtdb",
|
1720
|
+
[Kr]: "fire-data-connect",
|
1721
1721
|
[Jr]: "fire-rtdb-compat",
|
1722
|
-
[
|
1723
|
-
[
|
1722
|
+
[Yr]: "fire-fn",
|
1723
|
+
[Xr]: "fire-fn-compat",
|
1724
1724
|
[Qr]: "fire-iid",
|
1725
1725
|
[Zr]: "fire-iid-compat",
|
1726
1726
|
[ei]: "fire-fcm",
|
@@ -1772,7 +1772,7 @@ function J(n) {
|
|
1772
1772
|
ht(t, n);
|
1773
1773
|
return !0;
|
1774
1774
|
}
|
1775
|
-
function
|
1775
|
+
function Kt(n, e) {
|
1776
1776
|
const t = n.container.getProvider("heartbeat").getImmediate({ optional: !0 });
|
1777
1777
|
return t && t.triggerHeartbeat(), n.container.getProvider(e);
|
1778
1778
|
}
|
@@ -1954,15 +1954,15 @@ function $(n, e, t) {
|
|
1954
1954
|
* See the License for the specific language governing permissions and
|
1955
1955
|
* limitations under the License.
|
1956
1956
|
*/
|
1957
|
-
const vi = "firebase-heartbeat-database", yi = 1,
|
1957
|
+
const vi = "firebase-heartbeat-database", yi = 1, Y = "firebase-heartbeat-store";
|
1958
1958
|
let Pe = null;
|
1959
|
-
function
|
1959
|
+
function Yt() {
|
1960
1960
|
return Pe || (Pe = Mr(vi, yi, {
|
1961
1961
|
upgrade: (n, e) => {
|
1962
1962
|
switch (e) {
|
1963
1963
|
case 0:
|
1964
1964
|
try {
|
1965
|
-
n.createObjectStore(
|
1965
|
+
n.createObjectStore(Y);
|
1966
1966
|
} catch (t) {
|
1967
1967
|
console.warn(t);
|
1968
1968
|
}
|
@@ -1976,7 +1976,7 @@ function Xt() {
|
|
1976
1976
|
}
|
1977
1977
|
async function Ii(n) {
|
1978
1978
|
try {
|
1979
|
-
const t = (await
|
1979
|
+
const t = (await Yt()).transaction(Y), r = await t.objectStore(Y).get(Xt(n));
|
1980
1980
|
return await t.done, r;
|
1981
1981
|
} catch (e) {
|
1982
1982
|
if (e instanceof L)
|
@@ -1991,8 +1991,8 @@ async function Ii(n) {
|
|
1991
1991
|
}
|
1992
1992
|
async function ft(n, e) {
|
1993
1993
|
try {
|
1994
|
-
const r = (await
|
1995
|
-
await r.objectStore(
|
1994
|
+
const r = (await Yt()).transaction(Y, "readwrite");
|
1995
|
+
await r.objectStore(Y).put(e, Xt(n)), await r.done;
|
1996
1996
|
} catch (t) {
|
1997
1997
|
if (t instanceof L)
|
1998
1998
|
E.warn(t.message);
|
@@ -2004,7 +2004,7 @@ async function ft(n, e) {
|
|
2004
2004
|
}
|
2005
2005
|
}
|
2006
2006
|
}
|
2007
|
-
function
|
2007
|
+
function Xt(n) {
|
2008
2008
|
return `${n.name}!${n.options.appId}`;
|
2009
2009
|
}
|
2010
2010
|
/**
|
@@ -2176,7 +2176,7 @@ function ki(n) {
|
|
2176
2176
|
)), $(xe, dt, n), $(xe, dt, "esm2017"), $("fire-js", "");
|
2177
2177
|
}
|
2178
2178
|
ki("");
|
2179
|
-
var Ai = "firebase",
|
2179
|
+
var Ai = "firebase", Ci = "10.14.1";
|
2180
2180
|
/**
|
2181
2181
|
* @license
|
2182
2182
|
* Copyright 2020 Google LLC
|
@@ -2193,7 +2193,7 @@ var Ai = "firebase", Ri = "10.14.1";
|
|
2193
2193
|
* See the License for the specific language governing permissions and
|
2194
2194
|
* limitations under the License.
|
2195
2195
|
*/
|
2196
|
-
$(Ai,
|
2196
|
+
$(Ai, Ci, "app");
|
2197
2197
|
var gt = function() {
|
2198
2198
|
return gt = Object.assign || function(e) {
|
2199
2199
|
for (var t, r = 1, i = arguments.length; r < i; r++) {
|
@@ -2203,7 +2203,7 @@ var gt = function() {
|
|
2203
2203
|
return e;
|
2204
2204
|
}, gt.apply(this, arguments);
|
2205
2205
|
};
|
2206
|
-
function
|
2206
|
+
function qe(n, e) {
|
2207
2207
|
var t = {};
|
2208
2208
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
|
2209
2209
|
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -2216,7 +2216,7 @@ function Qt() {
|
|
2216
2216
|
"dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
|
2217
2217
|
};
|
2218
2218
|
}
|
2219
|
-
const
|
2219
|
+
const Ri = Qt, Zt = new Q("auth", "Firebase", Qt());
|
2220
2220
|
/**
|
2221
2221
|
* @license
|
2222
2222
|
* Copyright 2020 Google LLC
|
@@ -2257,13 +2257,13 @@ function se(n, ...e) {
|
|
2257
2257
|
* limitations under the License.
|
2258
2258
|
*/
|
2259
2259
|
function T(n, ...e) {
|
2260
|
-
throw
|
2260
|
+
throw Ke(n, ...e);
|
2261
2261
|
}
|
2262
2262
|
function g(n, ...e) {
|
2263
|
-
return
|
2263
|
+
return Ke(n, ...e);
|
2264
2264
|
}
|
2265
2265
|
function en(n, e, t) {
|
2266
|
-
const r = Object.assign(Object.assign({},
|
2266
|
+
const r = Object.assign(Object.assign({}, Ri()), { [e]: t });
|
2267
2267
|
return new Q("auth", "Firebase", r).create(e, {
|
2268
2268
|
appName: n.name
|
2269
2269
|
});
|
@@ -2271,7 +2271,7 @@ function en(n, e, t) {
|
|
2271
2271
|
function N(n) {
|
2272
2272
|
return en(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
|
2273
2273
|
}
|
2274
|
-
function
|
2274
|
+
function Ke(n, ...e) {
|
2275
2275
|
if (typeof n != "string") {
|
2276
2276
|
const t = e[0], r = [...e.slice(1)];
|
2277
2277
|
return r[0] && (r[0].appName = n.name), n._errorFactory.create(t, ...r);
|
@@ -2280,7 +2280,7 @@ function qe(n, ...e) {
|
|
2280
2280
|
}
|
2281
2281
|
function d(n, e, ...t) {
|
2282
2282
|
if (!n)
|
2283
|
-
throw
|
2283
|
+
throw Ke(e, ...t);
|
2284
2284
|
}
|
2285
2285
|
function I(n) {
|
2286
2286
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
@@ -2686,7 +2686,7 @@ async function an(n, e) {
|
|
2686
2686
|
* See the License for the specific language governing permissions and
|
2687
2687
|
* limitations under the License.
|
2688
2688
|
*/
|
2689
|
-
function
|
2689
|
+
function K(n) {
|
2690
2690
|
if (n)
|
2691
2691
|
try {
|
2692
2692
|
const e = new Date(Number(n));
|
@@ -2696,7 +2696,7 @@ function q(n) {
|
|
2696
2696
|
}
|
2697
2697
|
}
|
2698
2698
|
async function Fi(n, e = !1) {
|
2699
|
-
const t = z(n), r = await t.getIdToken(e), i =
|
2699
|
+
const t = z(n), r = await t.getIdToken(e), i = Ye(r);
|
2700
2700
|
d(
|
2701
2701
|
i && i.exp && i.auth_time && i.iat,
|
2702
2702
|
t.auth,
|
@@ -2707,9 +2707,9 @@ async function Fi(n, e = !1) {
|
|
2707
2707
|
return {
|
2708
2708
|
claims: i,
|
2709
2709
|
token: r,
|
2710
|
-
authTime:
|
2711
|
-
issuedAtTime:
|
2712
|
-
expirationTime:
|
2710
|
+
authTime: K(Oe(i.auth_time)),
|
2711
|
+
issuedAtTime: K(Oe(i.iat)),
|
2712
|
+
expirationTime: K(Oe(i.exp)),
|
2713
2713
|
signInProvider: a || null,
|
2714
2714
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
2715
2715
|
};
|
@@ -2717,7 +2717,7 @@ async function Fi(n, e = !1) {
|
|
2717
2717
|
function Oe(n) {
|
2718
2718
|
return Number(n) * 1e3;
|
2719
2719
|
}
|
2720
|
-
function
|
2720
|
+
function Ye(n) {
|
2721
2721
|
const [e, t, r] = n.split(".");
|
2722
2722
|
if (e === void 0 || t === void 0 || r === void 0)
|
2723
2723
|
return se("JWT malformed, contained fewer than 3 sections"), null;
|
@@ -2729,7 +2729,7 @@ function Xe(n) {
|
|
2729
2729
|
}
|
2730
2730
|
}
|
2731
2731
|
function vt(n) {
|
2732
|
-
const e =
|
2732
|
+
const e = Ye(n);
|
2733
2733
|
return d(
|
2734
2734
|
e,
|
2735
2735
|
"internal-error"
|
@@ -2760,7 +2760,7 @@ function vt(n) {
|
|
2760
2760
|
* See the License for the specific language governing permissions and
|
2761
2761
|
* limitations under the License.
|
2762
2762
|
*/
|
2763
|
-
async function
|
2763
|
+
async function X(n, e, t = !1) {
|
2764
2764
|
if (t)
|
2765
2765
|
return e;
|
2766
2766
|
try {
|
@@ -2855,7 +2855,7 @@ class He {
|
|
2855
2855
|
this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
|
2856
2856
|
}
|
2857
2857
|
_initializeTime() {
|
2858
|
-
this.lastSignInTime =
|
2858
|
+
this.lastSignInTime = K(this.lastLoginAt), this.creationTime = K(this.createdAt);
|
2859
2859
|
}
|
2860
2860
|
_copy(e) {
|
2861
2861
|
this.createdAt = e.createdAt, this.lastLoginAt = e.lastLoginAt, this._initializeTime();
|
@@ -2885,7 +2885,7 @@ class He {
|
|
2885
2885
|
*/
|
2886
2886
|
async function pe(n) {
|
2887
2887
|
var e;
|
2888
|
-
const t = n.auth, r = await n.getIdToken(), i = await
|
2888
|
+
const t = n.auth, r = await n.getIdToken(), i = await X(n, an(t, { idToken: r }));
|
2889
2889
|
d(
|
2890
2890
|
i == null ? void 0 : i.users.length,
|
2891
2891
|
t,
|
@@ -2917,7 +2917,7 @@ function Vi(n, e) {
|
|
2917
2917
|
}
|
2918
2918
|
function on(n) {
|
2919
2919
|
return n.map((e) => {
|
2920
|
-
var { providerId: t } = e, r =
|
2920
|
+
var { providerId: t } = e, r = qe(e, ["providerId"]);
|
2921
2921
|
return {
|
2922
2922
|
providerId: t,
|
2923
2923
|
uid: r.rawId || "",
|
@@ -3083,11 +3083,11 @@ function k(n, e) {
|
|
3083
3083
|
}
|
3084
3084
|
class b {
|
3085
3085
|
constructor(e) {
|
3086
|
-
var { uid: t, auth: r, stsTokenManager: i } = e, s =
|
3086
|
+
var { uid: t, auth: r, stsTokenManager: i } = e, s = qe(e, ["uid", "auth", "stsTokenManager"]);
|
3087
3087
|
this.providerId = "firebase", this.proactiveRefresh = new $i(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new He(s.createdAt || void 0, s.lastLoginAt || void 0);
|
3088
3088
|
}
|
3089
3089
|
async getIdToken(e) {
|
3090
|
-
const t = await
|
3090
|
+
const t = await X(this, this.stsTokenManager.getToken(this.auth, e));
|
3091
3091
|
return d(
|
3092
3092
|
t,
|
3093
3093
|
this.auth,
|
@@ -3138,7 +3138,7 @@ class b {
|
|
3138
3138
|
if (y(this.auth.app))
|
3139
3139
|
return Promise.reject(N(this.auth));
|
3140
3140
|
const e = await this.getIdToken();
|
3141
|
-
return await
|
3141
|
+
return await X(this, xi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
3142
3142
|
}
|
3143
3143
|
toJSON() {
|
3144
3144
|
return Object.assign(Object.assign({
|
@@ -3465,18 +3465,18 @@ function pn(n = m()) {
|
|
3465
3465
|
function mn(n = m()) {
|
3466
3466
|
return /webos/i.test(n);
|
3467
3467
|
}
|
3468
|
-
function
|
3468
|
+
function Xe(n = m()) {
|
3469
3469
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
3470
3470
|
}
|
3471
3471
|
function zi(n = m()) {
|
3472
3472
|
var e;
|
3473
|
-
return
|
3473
|
+
return Xe(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
3474
3474
|
}
|
3475
3475
|
function Gi() {
|
3476
3476
|
return lr() && document.documentMode === 10;
|
3477
3477
|
}
|
3478
3478
|
function gn(n = m()) {
|
3479
|
-
return
|
3479
|
+
return Xe(n) || fn(n) || mn(n) || pn(n) || /windows phone/i.test(n) || hn(n);
|
3480
3480
|
}
|
3481
3481
|
/**
|
3482
3482
|
* @license
|
@@ -3525,7 +3525,7 @@ function _n(n, e = []) {
|
|
3525
3525
|
* See the License for the specific language governing permissions and
|
3526
3526
|
* limitations under the License.
|
3527
3527
|
*/
|
3528
|
-
class
|
3528
|
+
class qi {
|
3529
3529
|
constructor(e) {
|
3530
3530
|
this.auth = e, this.queue = [];
|
3531
3531
|
}
|
@@ -3580,7 +3580,7 @@ class Ki {
|
|
3580
3580
|
* See the License for the specific language governing permissions and
|
3581
3581
|
* limitations under the License.
|
3582
3582
|
*/
|
3583
|
-
async function
|
3583
|
+
async function Ki(n, e = {}) {
|
3584
3584
|
return G(n, "GET", "/v2/passwordPolicy", ve(n, e));
|
3585
3585
|
}
|
3586
3586
|
/**
|
@@ -3600,7 +3600,7 @@ async function qi(n, e = {}) {
|
|
3600
3600
|
* limitations under the License.
|
3601
3601
|
*/
|
3602
3602
|
const Ji = 6;
|
3603
|
-
class
|
3603
|
+
class Yi {
|
3604
3604
|
constructor(e) {
|
3605
3605
|
var t, r, i, s;
|
3606
3606
|
const a = e.customStrengthOptions;
|
@@ -3687,9 +3687,9 @@ class Xi {
|
|
3687
3687
|
* See the License for the specific language governing permissions and
|
3688
3688
|
* limitations under the License.
|
3689
3689
|
*/
|
3690
|
-
class
|
3690
|
+
class Xi {
|
3691
3691
|
constructor(e, t, r, i) {
|
3692
|
-
this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new wt(this), this.idTokenSubscription = new wt(this), this.beforeStateQueue = new
|
3692
|
+
this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new wt(this), this.idTokenSubscription = new wt(this), this.beforeStateQueue = new qi(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Zt, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = i.sdkClientVersion;
|
3693
3693
|
}
|
3694
3694
|
_initializeWithPersistence(e, t) {
|
3695
3695
|
return t && (this._popupRedirectResolver = w(t)), this._initializationPromise = this.queue(async () => {
|
@@ -3834,7 +3834,7 @@ class Yi {
|
|
3834
3834
|
return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
|
3835
3835
|
}
|
3836
3836
|
async _updatePasswordPolicy() {
|
3837
|
-
const e = await
|
3837
|
+
const e = await Ki(this), t = new Yi(e);
|
3838
3838
|
this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
|
3839
3839
|
}
|
3840
3840
|
_getPersistence() {
|
@@ -4089,7 +4089,7 @@ function ts(n) {
|
|
4089
4089
|
* limitations under the License.
|
4090
4090
|
*/
|
4091
4091
|
function ns(n, e) {
|
4092
|
-
const t =
|
4092
|
+
const t = Kt(n, "auth");
|
4093
4093
|
if (t.isInitialized()) {
|
4094
4094
|
const i = t.getImmediate(), s = t.getOptions();
|
4095
4095
|
if (de(s, e ?? {}))
|
@@ -4269,7 +4269,7 @@ class U extends yn {
|
|
4269
4269
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
4270
4270
|
*/
|
4271
4271
|
static fromJSON(e) {
|
4272
|
-
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s =
|
4272
|
+
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = qe(t, ["providerId", "signInMethod"]);
|
4273
4273
|
if (!r || !i)
|
4274
4274
|
return null;
|
4275
4275
|
const a = new U(r, i);
|
@@ -4479,7 +4479,7 @@ A.PROVIDER_ID = "facebook.com";
|
|
4479
4479
|
* See the License for the specific language governing permissions and
|
4480
4480
|
* limitations under the License.
|
4481
4481
|
*/
|
4482
|
-
class
|
4482
|
+
class C extends ne {
|
4483
4483
|
constructor() {
|
4484
4484
|
super(
|
4485
4485
|
"google.com"
|
@@ -4501,8 +4501,8 @@ class R extends ne {
|
|
4501
4501
|
*/
|
4502
4502
|
static credential(e, t) {
|
4503
4503
|
return U._fromParams({
|
4504
|
-
providerId:
|
4505
|
-
signInMethod:
|
4504
|
+
providerId: C.PROVIDER_ID,
|
4505
|
+
signInMethod: C.GOOGLE_SIGN_IN_METHOD,
|
4506
4506
|
idToken: e,
|
4507
4507
|
accessToken: t
|
4508
4508
|
});
|
@@ -4513,7 +4513,7 @@ class R extends ne {
|
|
4513
4513
|
* @param userCredential - The user credential.
|
4514
4514
|
*/
|
4515
4515
|
static credentialFromResult(e) {
|
4516
|
-
return
|
4516
|
+
return C.credentialFromTaggedObject(e);
|
4517
4517
|
}
|
4518
4518
|
/**
|
4519
4519
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
@@ -4522,7 +4522,7 @@ class R extends ne {
|
|
4522
4522
|
* @param userCredential - The user credential.
|
4523
4523
|
*/
|
4524
4524
|
static credentialFromError(e) {
|
4525
|
-
return
|
4525
|
+
return C.credentialFromTaggedObject(e.customData || {});
|
4526
4526
|
}
|
4527
4527
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
4528
4528
|
if (!e)
|
@@ -4531,14 +4531,14 @@ class R extends ne {
|
|
4531
4531
|
if (!t && !r)
|
4532
4532
|
return null;
|
4533
4533
|
try {
|
4534
|
-
return
|
4534
|
+
return C.credential(t, r);
|
4535
4535
|
} catch {
|
4536
4536
|
return null;
|
4537
4537
|
}
|
4538
4538
|
}
|
4539
4539
|
}
|
4540
|
-
|
4541
|
-
|
4540
|
+
C.GOOGLE_SIGN_IN_METHOD = "google.com";
|
4541
|
+
C.PROVIDER_ID = "google.com";
|
4542
4542
|
/**
|
4543
4543
|
* @license
|
4544
4544
|
* Copyright 2020 Google LLC
|
@@ -4555,7 +4555,7 @@ R.PROVIDER_ID = "google.com";
|
|
4555
4555
|
* See the License for the specific language governing permissions and
|
4556
4556
|
* limitations under the License.
|
4557
4557
|
*/
|
4558
|
-
class
|
4558
|
+
class R extends ne {
|
4559
4559
|
constructor() {
|
4560
4560
|
super(
|
4561
4561
|
"github.com"
|
@@ -4569,8 +4569,8 @@ class C extends ne {
|
|
4569
4569
|
*/
|
4570
4570
|
static credential(e) {
|
4571
4571
|
return U._fromParams({
|
4572
|
-
providerId:
|
4573
|
-
signInMethod:
|
4572
|
+
providerId: R.PROVIDER_ID,
|
4573
|
+
signInMethod: R.GITHUB_SIGN_IN_METHOD,
|
4574
4574
|
accessToken: e
|
4575
4575
|
});
|
4576
4576
|
}
|
@@ -4580,7 +4580,7 @@ class C extends ne {
|
|
4580
4580
|
* @param userCredential - The user credential.
|
4581
4581
|
*/
|
4582
4582
|
static credentialFromResult(e) {
|
4583
|
-
return
|
4583
|
+
return R.credentialFromTaggedObject(e);
|
4584
4584
|
}
|
4585
4585
|
/**
|
4586
4586
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
@@ -4589,20 +4589,20 @@ class C extends ne {
|
|
4589
4589
|
* @param userCredential - The user credential.
|
4590
4590
|
*/
|
4591
4591
|
static credentialFromError(e) {
|
4592
|
-
return
|
4592
|
+
return R.credentialFromTaggedObject(e.customData || {});
|
4593
4593
|
}
|
4594
4594
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
4595
4595
|
if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
|
4596
4596
|
return null;
|
4597
4597
|
try {
|
4598
|
-
return
|
4598
|
+
return R.credential(e.oauthAccessToken);
|
4599
4599
|
} catch {
|
4600
4600
|
return null;
|
4601
4601
|
}
|
4602
4602
|
}
|
4603
4603
|
}
|
4604
|
-
|
4605
|
-
|
4604
|
+
R.GITHUB_SIGN_IN_METHOD = "github.com";
|
4605
|
+
R.PROVIDER_ID = "github.com";
|
4606
4606
|
/**
|
4607
4607
|
* @license
|
4608
4608
|
* Copyright 2020 Google LLC
|
@@ -4755,7 +4755,7 @@ function bn(n, e, t, r) {
|
|
4755
4755
|
});
|
4756
4756
|
}
|
4757
4757
|
async function cs(n, e, t = !1) {
|
4758
|
-
const r = await
|
4758
|
+
const r = await X(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
|
4759
4759
|
return x._forOperation(n, "link", r);
|
4760
4760
|
}
|
4761
4761
|
/**
|
@@ -4780,14 +4780,14 @@ async function ls(n, e, t = !1) {
|
|
4780
4780
|
return Promise.reject(N(r));
|
4781
4781
|
const i = "reauthenticate";
|
4782
4782
|
try {
|
4783
|
-
const s = await
|
4783
|
+
const s = await X(n, bn(r, i, e, n), t);
|
4784
4784
|
d(
|
4785
4785
|
s.idToken,
|
4786
4786
|
r,
|
4787
4787
|
"internal-error"
|
4788
4788
|
/* AuthErrorCode.INTERNAL_ERROR */
|
4789
4789
|
);
|
4790
|
-
const a =
|
4790
|
+
const a = Ye(s.idToken);
|
4791
4791
|
d(
|
4792
4792
|
a,
|
4793
4793
|
r,
|
@@ -5359,7 +5359,7 @@ function Es() {
|
|
5359
5359
|
* See the License for the specific language governing permissions and
|
5360
5360
|
* limitations under the License.
|
5361
5361
|
*/
|
5362
|
-
const An = "firebaseLocalStorageDb", Ts = 1, _e = "firebaseLocalStorage",
|
5362
|
+
const An = "firebaseLocalStorageDb", Ts = 1, _e = "firebaseLocalStorage", Cn = "fbase_key";
|
5363
5363
|
class re {
|
5364
5364
|
constructor(e) {
|
5365
5365
|
this.request = e;
|
@@ -5389,7 +5389,7 @@ function Ve() {
|
|
5389
5389
|
}), n.addEventListener("upgradeneeded", () => {
|
5390
5390
|
const r = n.result;
|
5391
5391
|
try {
|
5392
|
-
r.createObjectStore(_e, { keyPath:
|
5392
|
+
r.createObjectStore(_e, { keyPath: Cn });
|
5393
5393
|
} catch (i) {
|
5394
5394
|
t(i);
|
5395
5395
|
}
|
@@ -5401,7 +5401,7 @@ function Ve() {
|
|
5401
5401
|
}
|
5402
5402
|
async function St(n, e, t) {
|
5403
5403
|
const r = be(n, !0).put({
|
5404
|
-
[
|
5404
|
+
[Cn]: e,
|
5405
5405
|
value: t
|
5406
5406
|
});
|
5407
5407
|
return new re(r).toPromise();
|
@@ -5414,8 +5414,8 @@ function kt(n, e) {
|
|
5414
5414
|
const t = be(n, !0).delete(e);
|
5415
5415
|
return new re(t).toPromise();
|
5416
5416
|
}
|
5417
|
-
const As = 800,
|
5418
|
-
class
|
5417
|
+
const As = 800, Cs = 3;
|
5418
|
+
class Rn {
|
5419
5419
|
constructor() {
|
5420
5420
|
this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
|
5421
5421
|
}, () => {
|
@@ -5431,7 +5431,7 @@ class Cn {
|
|
5431
5431
|
const r = await this._openDb();
|
5432
5432
|
return await e(r);
|
5433
5433
|
} catch (r) {
|
5434
|
-
if (t++ >
|
5434
|
+
if (t++ > Cs)
|
5435
5435
|
throw r;
|
5436
5436
|
this.db && (this.db.close(), this.db = void 0);
|
5437
5437
|
}
|
@@ -5564,8 +5564,8 @@ class Cn {
|
|
5564
5564
|
this.listeners[e] && (this.listeners[e].delete(t), this.listeners[e].size === 0 && delete this.listeners[e]), Object.keys(this.listeners).length === 0 && this.stopPolling();
|
5565
5565
|
}
|
5566
5566
|
}
|
5567
|
-
|
5568
|
-
const
|
5567
|
+
Rn.type = "LOCAL";
|
5568
|
+
const Rs = Rn;
|
5569
5569
|
new te(3e4, 6e4);
|
5570
5570
|
/**
|
5571
5571
|
* @license
|
@@ -6019,8 +6019,8 @@ async function zs(n, e = {}) {
|
|
6019
6019
|
* See the License for the specific language governing permissions and
|
6020
6020
|
* limitations under the License.
|
6021
6021
|
*/
|
6022
|
-
const Gs = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,
|
6023
|
-
async function
|
6022
|
+
const Gs = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, qs = /^https?/;
|
6023
|
+
async function Ks(n) {
|
6024
6024
|
if (n.config.emulator)
|
6025
6025
|
return;
|
6026
6026
|
const { authorizedDomains: e } = await zs(n);
|
@@ -6042,7 +6042,7 @@ function Js(n) {
|
|
6042
6042
|
const a = new URL(n);
|
6043
6043
|
return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
|
6044
6044
|
}
|
6045
|
-
if (!
|
6045
|
+
if (!qs.test(t))
|
6046
6046
|
return !1;
|
6047
6047
|
if (Gs.test(n))
|
6048
6048
|
return r === n;
|
@@ -6065,8 +6065,8 @@ function Js(n) {
|
|
6065
6065
|
* See the License for the specific language governing permissions and
|
6066
6066
|
* limitations under the License.
|
6067
6067
|
*/
|
6068
|
-
const
|
6069
|
-
function
|
6068
|
+
const Ys = new te(3e4, 6e4);
|
6069
|
+
function Ct() {
|
6070
6070
|
const n = _().___jsl;
|
6071
6071
|
if (n != null && n.H) {
|
6072
6072
|
for (const e of Object.keys(n.H))
|
@@ -6075,22 +6075,22 @@ function Rt() {
|
|
6075
6075
|
n.CP[t] = null;
|
6076
6076
|
}
|
6077
6077
|
}
|
6078
|
-
function
|
6078
|
+
function Xs(n) {
|
6079
6079
|
return new Promise((e, t) => {
|
6080
6080
|
var r, i, s;
|
6081
6081
|
function a() {
|
6082
|
-
|
6082
|
+
Ct(), gapi.load("gapi.iframes", {
|
6083
6083
|
callback: () => {
|
6084
6084
|
e(gapi.iframes.getContext());
|
6085
6085
|
},
|
6086
6086
|
ontimeout: () => {
|
6087
|
-
|
6087
|
+
Ct(), t(g(
|
6088
6088
|
n,
|
6089
6089
|
"network-request-failed"
|
6090
6090
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
6091
6091
|
));
|
6092
6092
|
},
|
6093
|
-
timeout:
|
6093
|
+
timeout: Ys.get()
|
6094
6094
|
});
|
6095
6095
|
}
|
6096
6096
|
if (!((i = (r = _().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
|
@@ -6113,7 +6113,7 @@ function Ys(n) {
|
|
6113
6113
|
}
|
6114
6114
|
let ce = null;
|
6115
6115
|
function Qs(n) {
|
6116
|
-
return ce = ce ||
|
6116
|
+
return ce = ce || Xs(n), ce;
|
6117
6117
|
}
|
6118
6118
|
/**
|
6119
6119
|
* @license
|
@@ -6218,7 +6218,7 @@ const aa = {
|
|
6218
6218
|
statusbar: "yes",
|
6219
6219
|
toolbar: "no"
|
6220
6220
|
}, oa = 500, ca = 600, la = "_blank", ua = "http://localhost";
|
6221
|
-
class
|
6221
|
+
class Rt {
|
6222
6222
|
constructor(e) {
|
6223
6223
|
this.window = e, this.associatedEvent = null;
|
6224
6224
|
}
|
@@ -6242,7 +6242,7 @@ function da(n, e, t, r = oa, i = ca) {
|
|
6242
6242
|
t && (c = dn(l) ? la : t), ln(l) && (e = e || ua, o.scrollbars = "yes");
|
6243
6243
|
const u = Object.entries(o).reduce((p, [v, F]) => `${p}${v}=${F},`, "");
|
6244
6244
|
if (zi(l) && c !== "_self")
|
6245
|
-
return ha(e || "", c), new
|
6245
|
+
return ha(e || "", c), new Rt(null);
|
6246
6246
|
const h = window.open(e || "", c, u);
|
6247
6247
|
d(
|
6248
6248
|
h,
|
@@ -6254,7 +6254,7 @@ function da(n, e, t, r = oa, i = ca) {
|
|
6254
6254
|
h.focus();
|
6255
6255
|
} catch {
|
6256
6256
|
}
|
6257
|
-
return new
|
6257
|
+
return new Rt(h);
|
6258
6258
|
}
|
6259
6259
|
function ha(n, e) {
|
6260
6260
|
const t = document.createElement("a");
|
@@ -6389,10 +6389,10 @@ class _a {
|
|
6389
6389
|
}
|
6390
6390
|
_originValidation(e) {
|
6391
6391
|
const t = e._key();
|
6392
|
-
return this.originValidationPromises[t] || (this.originValidationPromises[t] =
|
6392
|
+
return this.originValidationPromises[t] || (this.originValidationPromises[t] = Ks(e)), this.originValidationPromises[t];
|
6393
6393
|
}
|
6394
6394
|
get _shouldInitProactively() {
|
6395
|
-
return gn() || un() ||
|
6395
|
+
return gn() || un() || Xe();
|
6396
6396
|
}
|
6397
6397
|
}
|
6398
6398
|
const va = _a;
|
@@ -6494,7 +6494,7 @@ function ba(n) {
|
|
6494
6494
|
tokenApiHost: "securetoken.googleapis.com",
|
6495
6495
|
apiScheme: "https",
|
6496
6496
|
sdkClientVersion: _n(n)
|
6497
|
-
}, l = new
|
6497
|
+
}, l = new Xi(r, i, s, o);
|
6498
6498
|
return rs(l, t), l;
|
6499
6499
|
},
|
6500
6500
|
"PUBLIC"
|
@@ -6554,13 +6554,13 @@ const Ta = (n) => async (e) => {
|
|
6554
6554
|
}));
|
6555
6555
|
};
|
6556
6556
|
function Sa(n = _i()) {
|
6557
|
-
const e =
|
6557
|
+
const e = Kt(n, "auth");
|
6558
6558
|
if (e.isInitialized())
|
6559
6559
|
return e.getImmediate();
|
6560
6560
|
const t = ns(n, {
|
6561
6561
|
popupRedirectResolver: va,
|
6562
6562
|
persistence: [
|
6563
|
-
|
6563
|
+
Rs,
|
6564
6564
|
_s,
|
6565
6565
|
Sn
|
6566
6566
|
]
|
@@ -6624,7 +6624,7 @@ Aa.beforeEach(async (n) => {
|
|
6624
6624
|
if (n.name.startsWith("mf-payment-admin")) {
|
6625
6625
|
if (!e.value) {
|
6626
6626
|
Ne || (Ne = new Promise((c) => {
|
6627
|
-
const o =
|
6627
|
+
const o = q(e, (l) => {
|
6628
6628
|
var u, h;
|
6629
6629
|
l && (o(), c(
|
6630
6630
|
(((u = e.value) == null ? void 0 : u.role.isStaff) || ((h = e.value) == null ? void 0 : h.role.isAdmin)) ?? !1
|
@@ -6638,23 +6638,23 @@ Aa.beforeEach(async (n) => {
|
|
6638
6638
|
}
|
6639
6639
|
return !r.value || !t.value ? (Le || (Le = Promise.all([
|
6640
6640
|
new Promise(async (a) => {
|
6641
|
-
const c =
|
6641
|
+
const c = q(r, (o) => {
|
6642
6642
|
o && (c(), a(!0));
|
6643
6643
|
});
|
6644
6644
|
}),
|
6645
6645
|
new Promise(async (a) => {
|
6646
|
-
const c =
|
6646
|
+
const c = q(t, (l) => {
|
6647
6647
|
l && (c(), a(!0));
|
6648
6648
|
}), o = await i();
|
6649
6649
|
await s(o == null ? void 0 : o.at(0));
|
6650
6650
|
})
|
6651
6651
|
]).then((a) => !0)), Le) : !0;
|
6652
6652
|
});
|
6653
|
-
const
|
6653
|
+
const Ca = /* @__PURE__ */ Mt({
|
6654
6654
|
__name: "AppSidebar",
|
6655
6655
|
setup(n) {
|
6656
6656
|
const e = je(), t = Un(), { t: r } = jn(), i = Fn(t.currentRoute.value.name);
|
6657
|
-
|
6657
|
+
q(t.currentRoute, () => {
|
6658
6658
|
let l = t.currentRoute.value.name;
|
6659
6659
|
t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
|
6660
6660
|
});
|
@@ -6736,21 +6736,21 @@ const Ra = /* @__PURE__ */ Mt({
|
|
6736
6736
|
};
|
6737
6737
|
}
|
6738
6738
|
});
|
6739
|
-
var
|
6739
|
+
var Ra = { authClientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, assetBucketUrl: "feedme-dev-4c3ef.appspot.com" };
|
6740
6740
|
const xa = /* @__PURE__ */ Mt({
|
6741
6741
|
__name: "App",
|
6742
6742
|
setup(n) {
|
6743
|
-
const { state: e } =
|
6743
|
+
const { state: e } = Yn(), t = je(), r = xn(), i = Jt(Ra.firebase);
|
6744
6744
|
async function s() {
|
6745
6745
|
const a = t.sessionUser.value;
|
6746
6746
|
if (!a || !a.token) return;
|
6747
6747
|
const c = await a.getCustomToken(), o = Sa(i);
|
6748
6748
|
await hs(o, c);
|
6749
6749
|
}
|
6750
|
-
return s(),
|
6750
|
+
return s(), q(t.sessionUser, s), $n(() => {
|
6751
6751
|
e.isIframe && parent.postMessage({ event: "ready" }, "*");
|
6752
6752
|
}), Hn(() => {
|
6753
|
-
t.registerSidebarComponent(
|
6753
|
+
t.registerSidebarComponent(Ca);
|
6754
6754
|
}), (a, c) => {
|
6755
6755
|
const o = Ut("RouterView");
|
6756
6756
|
return xt(), Ft(o, {
|
@@ -6759,7 +6759,7 @@ const xa = /* @__PURE__ */ Mt({
|
|
6759
6759
|
};
|
6760
6760
|
}
|
6761
6761
|
}), Fa = {
|
6762
|
-
"en-US":
|
6762
|
+
"en-US": qn,
|
6763
6763
|
"zh-CN": Jn
|
6764
6764
|
}, Ba = [...le, ...We];
|
6765
6765
|
export {
|
@@ -6767,7 +6767,7 @@ export {
|
|
6767
6767
|
L as F,
|
6768
6768
|
ee as S,
|
6769
6769
|
J as _,
|
6770
|
-
|
6770
|
+
Kt as a,
|
6771
6771
|
Ma as b,
|
6772
6772
|
_i as c,
|
6773
6773
|
Ua as d,
|