@feedmepos/mf-payment 1.5.58-dev → 1.5.59-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/{OnboardForm-DvRA8ZFe.js → OnboardForm-JVgZ181b.js} +553 -481
- package/dist/{OnboardForm-D-wyJQY9.js → OnboardForm-zsULkQrh.js} +2 -2
- package/dist/{OnboardSubmission-DvWwQFy6.js → OnboardSubmission-BvUrpOC3.js} +336 -121
- package/dist/{OnboardSubmission-C2BYK2p1.js → OnboardSubmission-CR6o2zIK.js} +25 -25
- package/dist/{PayoutAccount-CFlQtAoG.js → PayoutAccount-3zLhh0ti.js} +1 -1
- package/dist/{PayoutAccount-NlE9-0J7.js → PayoutAccount-B42ffsVM.js} +1 -1
- package/dist/{Terminal-Sfe6Nf9j.js → Terminal-DqSu2QTe.js} +1 -1
- package/dist/TerminalSetting-BCVX0Jdf.js +2102 -0
- package/dist/{Transaction-hVVgSn4x.js → Transaction-Cuh4qbT0.js} +1 -1
- package/dist/api/onboard-submission/index.d.ts +13 -0
- package/dist/api/terminal/index.d.ts +1 -0
- package/dist/{app-C5xqFDpA.js → app-B9xMyKhl.js} +187 -137
- package/dist/app.js +1 -1
- package/dist/composable/async-poller/index.d.ts +22 -0
- package/dist/index-BteYHCd3.js +63 -0
- package/dist/{index-CnN_MV2-.js → index-CQI_8W1T.js} +23 -8
- package/dist/index-MdV54cWO.js +58 -0
- package/dist/package.json +1 -1
- package/dist/{payout-account-CrHhzFPk.js → payout-account-BkGj6HJy.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +81 -0
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/useTyroSoftposGateway.d.ts +10 -0
- package/dist/views/onboard-submission/tyro-submission-polling.d.ts +27 -0
- package/package.json +1 -1
- package/dist/TerminalSetting-KjacSx_V.js +0 -1958
- package/dist/index-XTdSN6CV.js +0 -60
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FmApp as Dn, routes as Ln, i18nMessages as Mn } from "@feedmepos/mf-financing";
|
|
2
2
|
import { createRouter as Bn, createWebHistory as Un, useRouter as xn, useRoute as Fn } from "vue-router";
|
|
3
3
|
import { computed as Dt, watch as G, defineComponent as Lt, ref as Hn, resolveComponent as Mt, openBlock as Bt, createBlock as Ut, h as qn, onMounted as $n, onBeforeMount as Vn, unref as jn } from "vue";
|
|
4
|
-
import { useCoreStore as Ve, useI18n as
|
|
5
|
-
import { defineStore as
|
|
4
|
+
import { useCoreStore as Ve, useI18n as zn } from "@feedmepos/mf-common";
|
|
5
|
+
import { defineStore as Wn } from "pinia";
|
|
6
6
|
import { components as Gn } from "@feedmepos/ui-library";
|
|
7
7
|
const Kn = {
|
|
8
8
|
components: {
|
|
@@ -389,7 +389,23 @@ const Kn = {
|
|
|
389
389
|
name: "Tyro Embedded Payments",
|
|
390
390
|
description: "Connect Tyro Tap to Pay for in-store card payments in Australia.",
|
|
391
391
|
service1: "Tap to Pay on compatible devices",
|
|
392
|
-
service2: "Portal-led Tyro authorisation"
|
|
392
|
+
service2: "Portal-led Tyro authorisation",
|
|
393
|
+
location: {
|
|
394
|
+
description: "Select a Tyro location to finish setup.",
|
|
395
|
+
merchantId: "Tyro Merchant ID",
|
|
396
|
+
posReference: "Tyro POS Reference",
|
|
397
|
+
label: "Tyro Location",
|
|
398
|
+
bind: "Bind Location"
|
|
399
|
+
},
|
|
400
|
+
toast: {
|
|
401
|
+
authorizationStartFailedTitle: "Unable to start Tyro authorisation",
|
|
402
|
+
authorizationApproved: "Tyro authorisation approved. Select a location to finish setup.",
|
|
403
|
+
authorizationPopupBlocked: "Your browser blocked the authorisation popup. Please allow popups and try again.",
|
|
404
|
+
authorizationRejected: "Tyro authorisation was rejected.",
|
|
405
|
+
authorizationTimeout: "Tyro authorisation is still pending. Please refresh after completing authorisation.",
|
|
406
|
+
locationRequired: "Tyro location is required.",
|
|
407
|
+
locationBindSuccess: "Tyro location bound successfully."
|
|
408
|
+
}
|
|
393
409
|
}
|
|
394
410
|
}
|
|
395
411
|
}, Jn = {
|
|
@@ -773,6 +789,26 @@ const Kn = {
|
|
|
773
789
|
updateFailed: "อัปเดตคำขอไม่สำเร็จ"
|
|
774
790
|
}
|
|
775
791
|
}
|
|
792
|
+
},
|
|
793
|
+
tyro: {
|
|
794
|
+
name: "Tyro Embedded Payments",
|
|
795
|
+
description: "เชื่อมต่อ Tyro Tap to Pay สำหรับการชำระเงินด้วยบัตรที่หน้าร้านในออสเตรเลีย",
|
|
796
|
+
service1: "Tap to Pay บนอุปกรณ์ที่รองรับ",
|
|
797
|
+
service2: "อนุญาต Tyro ผ่านพอร์ทัล",
|
|
798
|
+
location: {
|
|
799
|
+
description: "เลือกตำแหน่ง Tyro เพื่อดำเนินการตั้งค่าให้เสร็จสิ้น",
|
|
800
|
+
merchantId: "Tyro Merchant ID",
|
|
801
|
+
posReference: "Tyro POS Reference",
|
|
802
|
+
label: "ตำแหน่ง Tyro",
|
|
803
|
+
bind: "ผูกตำแหน่ง"
|
|
804
|
+
},
|
|
805
|
+
toast: {
|
|
806
|
+
authorizationApproved: "อนุญาต Tyro แล้ว เลือกตำแหน่งเพื่อดำเนินการตั้งค่าให้เสร็จสิ้น",
|
|
807
|
+
authorizationRejected: "การอนุญาต Tyro ถูกปฏิเสธ",
|
|
808
|
+
authorizationTimeout: "การอนุญาต Tyro ยังอยู่ระหว่างรอดำเนินการ กรุณารีเฟรชหลังจากอนุญาตเสร็จแล้ว",
|
|
809
|
+
locationRequired: "กรุณาเลือกตำแหน่ง Tyro",
|
|
810
|
+
locationBindSuccess: "ผูกตำแหน่ง Tyro เรียบร้อยแล้ว"
|
|
811
|
+
}
|
|
776
812
|
}
|
|
777
813
|
}
|
|
778
814
|
}, Xn = {
|
|
@@ -1161,7 +1197,21 @@ const Kn = {
|
|
|
1161
1197
|
name: "Tyro Embedded Payments",
|
|
1162
1198
|
description: "在澳大利亚接入 Tyro Tap to Pay 店内银行卡支付。",
|
|
1163
1199
|
service1: "在兼容设备上启用 Tap to Pay",
|
|
1164
|
-
service2: "通过门户完成 Tyro 授权"
|
|
1200
|
+
service2: "通过门户完成 Tyro 授权",
|
|
1201
|
+
location: {
|
|
1202
|
+
description: "请选择 Tyro 位置以完成设置。",
|
|
1203
|
+
merchantId: "Tyro 商户 ID",
|
|
1204
|
+
posReference: "Tyro POS 参考",
|
|
1205
|
+
label: "Tyro 位置",
|
|
1206
|
+
bind: "绑定位置"
|
|
1207
|
+
},
|
|
1208
|
+
toast: {
|
|
1209
|
+
authorizationApproved: "Tyro 授权已通过。请选择位置以完成设置。",
|
|
1210
|
+
authorizationRejected: "Tyro 授权被拒绝。",
|
|
1211
|
+
authorizationTimeout: "Tyro 授权仍在等待中。完成授权后请刷新页面。",
|
|
1212
|
+
locationRequired: "请选择 Tyro 位置。",
|
|
1213
|
+
locationBindSuccess: "Tyro 位置绑定成功。"
|
|
1214
|
+
}
|
|
1165
1215
|
}
|
|
1166
1216
|
}
|
|
1167
1217
|
}, Zn = {
|
|
@@ -1192,7 +1242,7 @@ const Kn = {
|
|
|
1192
1242
|
sidebarDisplay: "Payout Accounts",
|
|
1193
1243
|
section: "payment-gateway"
|
|
1194
1244
|
},
|
|
1195
|
-
component: () => import("./PayoutAccount-
|
|
1245
|
+
component: () => import("./PayoutAccount-3zLhh0ti.js")
|
|
1196
1246
|
},
|
|
1197
1247
|
{
|
|
1198
1248
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -1210,7 +1260,7 @@ const Kn = {
|
|
|
1210
1260
|
sidebarDisplay: "Payment Onboarding",
|
|
1211
1261
|
section: "payment-gateway"
|
|
1212
1262
|
},
|
|
1213
|
-
component: () => import("./OnboardSubmission-
|
|
1263
|
+
component: () => import("./OnboardSubmission-CR6o2zIK.js")
|
|
1214
1264
|
},
|
|
1215
1265
|
{
|
|
1216
1266
|
path: "/admin/onboarding/:submissionId",
|
|
@@ -1219,7 +1269,7 @@ const Kn = {
|
|
|
1219
1269
|
meta: {
|
|
1220
1270
|
parent: "mf-payment-admin.onboard-submission"
|
|
1221
1271
|
},
|
|
1222
|
-
component: () => import("./OnboardForm-
|
|
1272
|
+
component: () => import("./OnboardForm-JVgZ181b.js")
|
|
1223
1273
|
},
|
|
1224
1274
|
{
|
|
1225
1275
|
path: "/admin/terminal/pos",
|
|
@@ -1228,7 +1278,7 @@ const Kn = {
|
|
|
1228
1278
|
sidebarDisplay: "POS",
|
|
1229
1279
|
section: "device"
|
|
1230
1280
|
},
|
|
1231
|
-
component: () => import("./Terminal-
|
|
1281
|
+
component: () => import("./Terminal-DqSu2QTe.js"),
|
|
1232
1282
|
props: {
|
|
1233
1283
|
type: "POS"
|
|
1234
1284
|
}
|
|
@@ -1240,7 +1290,7 @@ const Kn = {
|
|
|
1240
1290
|
sidebarDisplay: "Kiosks",
|
|
1241
1291
|
section: "device"
|
|
1242
1292
|
},
|
|
1243
|
-
component: () => import("./Terminal-
|
|
1293
|
+
component: () => import("./Terminal-DqSu2QTe.js"),
|
|
1244
1294
|
props: {
|
|
1245
1295
|
type: "KIOSK"
|
|
1246
1296
|
}
|
|
@@ -1252,7 +1302,7 @@ const Kn = {
|
|
|
1252
1302
|
sidebarDisplay: "Terminals",
|
|
1253
1303
|
section: "device"
|
|
1254
1304
|
},
|
|
1255
|
-
component: () => import("./Terminal-
|
|
1305
|
+
component: () => import("./Terminal-DqSu2QTe.js"),
|
|
1256
1306
|
props: {
|
|
1257
1307
|
type: "TERMINAL"
|
|
1258
1308
|
}
|
|
@@ -1264,7 +1314,7 @@ const Kn = {
|
|
|
1264
1314
|
meta: {
|
|
1265
1315
|
parent: "mf-payment-admin.pos"
|
|
1266
1316
|
},
|
|
1267
|
-
component: () => import("./TerminalSetting-
|
|
1317
|
+
component: () => import("./TerminalSetting-BCVX0Jdf.js")
|
|
1268
1318
|
},
|
|
1269
1319
|
{
|
|
1270
1320
|
path: "/admin/terminal/kiosk/:terminalId",
|
|
@@ -1273,7 +1323,7 @@ const Kn = {
|
|
|
1273
1323
|
meta: {
|
|
1274
1324
|
parent: "mf-payment-admin.kiosk"
|
|
1275
1325
|
},
|
|
1276
|
-
component: () => import("./TerminalSetting-
|
|
1326
|
+
component: () => import("./TerminalSetting-BCVX0Jdf.js")
|
|
1277
1327
|
},
|
|
1278
1328
|
{
|
|
1279
1329
|
path: "/admin/terminal/terminal/:terminalId",
|
|
@@ -1282,7 +1332,7 @@ const Kn = {
|
|
|
1282
1332
|
meta: {
|
|
1283
1333
|
parent: "mf-payment-admin.terminal"
|
|
1284
1334
|
},
|
|
1285
|
-
component: () => import("./TerminalSetting-
|
|
1335
|
+
component: () => import("./TerminalSetting-BCVX0Jdf.js")
|
|
1286
1336
|
},
|
|
1287
1337
|
{
|
|
1288
1338
|
path: "/admin/transaction",
|
|
@@ -1325,7 +1375,7 @@ const Kn = {
|
|
|
1325
1375
|
{
|
|
1326
1376
|
path: "/payout-account",
|
|
1327
1377
|
name: "mf-payment-payout-account",
|
|
1328
|
-
component: () => import("./PayoutAccount-
|
|
1378
|
+
component: () => import("./PayoutAccount-B42ffsVM.js"),
|
|
1329
1379
|
meta: {
|
|
1330
1380
|
sidebarDisplay: "i18n:payment.routes.payout_account"
|
|
1331
1381
|
}
|
|
@@ -1333,7 +1383,7 @@ const Kn = {
|
|
|
1333
1383
|
{
|
|
1334
1384
|
path: "/onboard-submission",
|
|
1335
1385
|
name: "mf-payment-onboard-submission",
|
|
1336
|
-
component: () => import("./OnboardSubmission-
|
|
1386
|
+
component: () => import("./OnboardSubmission-BvUrpOC3.js"),
|
|
1337
1387
|
meta: {
|
|
1338
1388
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
1339
1389
|
region: { MY: !0, TH: !0, AU: !0 }
|
|
@@ -1343,7 +1393,7 @@ const Kn = {
|
|
|
1343
1393
|
path: "/onboard-submission/:type/:submission?",
|
|
1344
1394
|
name: "mf-payment-onboard-submission-form",
|
|
1345
1395
|
props: !0,
|
|
1346
|
-
component: () => import("./OnboardForm-
|
|
1396
|
+
component: () => import("./OnboardForm-zsULkQrh.js"),
|
|
1347
1397
|
meta: {
|
|
1348
1398
|
parent: "mf-payment-onboard-submission"
|
|
1349
1399
|
}
|
|
@@ -1359,7 +1409,7 @@ const Kn = {
|
|
|
1359
1409
|
{
|
|
1360
1410
|
path: "/transaction",
|
|
1361
1411
|
name: "mf-payment-transaction",
|
|
1362
|
-
component: () => import("./Transaction-
|
|
1412
|
+
component: () => import("./Transaction-Cuh4qbT0.js"),
|
|
1363
1413
|
meta: {
|
|
1364
1414
|
sidebarDisplay: "i18n:payment.routes.transaction_new",
|
|
1365
1415
|
sidebarNew: !0
|
|
@@ -1399,7 +1449,7 @@ const Kn = {
|
|
|
1399
1449
|
path: `/financing${n.path}`
|
|
1400
1450
|
}))
|
|
1401
1451
|
}
|
|
1402
|
-
], er =
|
|
1452
|
+
], er = Wn("mf-payment-iframe", () => {
|
|
1403
1453
|
const n = {
|
|
1404
1454
|
isIframe: !1
|
|
1405
1455
|
}, e = Dt(() => n);
|
|
@@ -1815,10 +1865,10 @@ function gr() {
|
|
|
1815
1865
|
* See the License for the specific language governing permissions and
|
|
1816
1866
|
* limitations under the License.
|
|
1817
1867
|
*/
|
|
1818
|
-
const
|
|
1868
|
+
const yr = "FirebaseError";
|
|
1819
1869
|
class L extends Error {
|
|
1820
1870
|
constructor(e, t, r) {
|
|
1821
|
-
super(t), this.code = e, this.customData = r, this.name =
|
|
1871
|
+
super(t), this.code = e, this.customData = r, this.name = yr, Object.setPrototypeOf(this, L.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Z.prototype.create);
|
|
1822
1872
|
}
|
|
1823
1873
|
}
|
|
1824
1874
|
class Z {
|
|
@@ -1826,17 +1876,17 @@ class Z {
|
|
|
1826
1876
|
this.service = e, this.serviceName = t, this.errors = r;
|
|
1827
1877
|
}
|
|
1828
1878
|
create(e, ...t) {
|
|
1829
|
-
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ?
|
|
1879
|
+
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? _r(s, r) : "Error", c = `${this.serviceName}: ${a} (${i}).`;
|
|
1830
1880
|
return new L(i, c, r);
|
|
1831
1881
|
}
|
|
1832
1882
|
}
|
|
1833
|
-
function
|
|
1834
|
-
return n.replace(
|
|
1883
|
+
function _r(n, e) {
|
|
1884
|
+
return n.replace(br, (t, r) => {
|
|
1835
1885
|
const i = e[r];
|
|
1836
1886
|
return i != null ? String(i) : `<${r}?>`;
|
|
1837
1887
|
});
|
|
1838
1888
|
}
|
|
1839
|
-
const
|
|
1889
|
+
const br = /\{\$([^}]+)}/g;
|
|
1840
1890
|
function vr(n) {
|
|
1841
1891
|
for (const e in n)
|
|
1842
1892
|
if (Object.prototype.hasOwnProperty.call(n, e))
|
|
@@ -2003,7 +2053,7 @@ function Se() {
|
|
|
2003
2053
|
* See the License for the specific language governing permissions and
|
|
2004
2054
|
* limitations under the License.
|
|
2005
2055
|
*/
|
|
2006
|
-
function
|
|
2056
|
+
function z(n) {
|
|
2007
2057
|
return n && n._delegate ? n._delegate : n;
|
|
2008
2058
|
}
|
|
2009
2059
|
class j {
|
|
@@ -2392,7 +2442,7 @@ function Lr() {
|
|
|
2392
2442
|
IDBCursor.prototype.continuePrimaryKey
|
|
2393
2443
|
]);
|
|
2394
2444
|
}
|
|
2395
|
-
const
|
|
2445
|
+
const zt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap();
|
|
2396
2446
|
function Mr(n) {
|
|
2397
2447
|
const e = new Promise((t, r) => {
|
|
2398
2448
|
const i = () => {
|
|
@@ -2405,9 +2455,9 @@ function Mr(n) {
|
|
|
2405
2455
|
n.addEventListener("success", s), n.addEventListener("error", a);
|
|
2406
2456
|
});
|
|
2407
2457
|
return e.then((t) => {
|
|
2408
|
-
t instanceof IDBCursor &&
|
|
2458
|
+
t instanceof IDBCursor && zt.set(t, n);
|
|
2409
2459
|
}).catch(() => {
|
|
2410
|
-
}),
|
|
2460
|
+
}), ze.set(e, n), e;
|
|
2411
2461
|
}
|
|
2412
2462
|
function Br(n) {
|
|
2413
2463
|
if (Me.has(n))
|
|
@@ -2430,7 +2480,7 @@ let Be = {
|
|
|
2430
2480
|
if (e === "done")
|
|
2431
2481
|
return Me.get(n);
|
|
2432
2482
|
if (e === "objectStoreNames")
|
|
2433
|
-
return n.objectStoreNames ||
|
|
2483
|
+
return n.objectStoreNames || Wt.get(n);
|
|
2434
2484
|
if (e === "store")
|
|
2435
2485
|
return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
|
|
2436
2486
|
}
|
|
@@ -2449,9 +2499,9 @@ function Ur(n) {
|
|
|
2449
2499
|
function xr(n) {
|
|
2450
2500
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
|
2451
2501
|
const r = n.call(Ce(this), e, ...t);
|
|
2452
|
-
return
|
|
2502
|
+
return Wt.set(r, e.sort ? e.sort() : [e]), N(r);
|
|
2453
2503
|
} : Lr().includes(n) ? function(...e) {
|
|
2454
|
-
return n.apply(Ce(this), e), N(
|
|
2504
|
+
return n.apply(Ce(this), e), N(zt.get(this));
|
|
2455
2505
|
} : function(...e) {
|
|
2456
2506
|
return N(n.apply(Ce(this), e));
|
|
2457
2507
|
};
|
|
@@ -2465,9 +2515,9 @@ function N(n) {
|
|
|
2465
2515
|
if (Re.has(n))
|
|
2466
2516
|
return Re.get(n);
|
|
2467
2517
|
const e = Fr(n);
|
|
2468
|
-
return e !== n && (Re.set(n, e),
|
|
2518
|
+
return e !== n && (Re.set(n, e), ze.set(e, n)), e;
|
|
2469
2519
|
}
|
|
2470
|
-
const Ce = (n) =>
|
|
2520
|
+
const Ce = (n) => ze.get(n);
|
|
2471
2521
|
function Hr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
2472
2522
|
const a = indexedDB.open(n, e), c = N(a);
|
|
2473
2523
|
return r && a.addEventListener("upgradeneeded", (o) => {
|
|
@@ -2562,7 +2612,7 @@ const Ue = "@firebase/app", ut = "0.10.13";
|
|
|
2562
2612
|
* See the License for the specific language governing permissions and
|
|
2563
2613
|
* limitations under the License.
|
|
2564
2614
|
*/
|
|
2565
|
-
const T = new jt("@firebase/app"),
|
|
2615
|
+
const T = new jt("@firebase/app"), zr = "@firebase/app-compat", Wr = "@firebase/analytics-compat", Gr = "@firebase/analytics", Kr = "@firebase/app-check-compat", Jr = "@firebase/app-check", Yr = "@firebase/auth", Xr = "@firebase/auth-compat", Qr = "@firebase/database", Zr = "@firebase/data-connect", ei = "@firebase/database-compat", ti = "@firebase/functions", ni = "@firebase/functions-compat", ri = "@firebase/installations", ii = "@firebase/installations-compat", si = "@firebase/messaging", ai = "@firebase/messaging-compat", oi = "@firebase/performance", ci = "@firebase/performance-compat", li = "@firebase/remote-config", ui = "@firebase/remote-config-compat", di = "@firebase/storage", hi = "@firebase/storage-compat", pi = "@firebase/firestore", fi = "@firebase/vertexai-preview", mi = "@firebase/firestore-compat", gi = "firebase", yi = "10.14.1";
|
|
2566
2616
|
/**
|
|
2567
2617
|
* @license
|
|
2568
2618
|
* Copyright 2019 Google LLC
|
|
@@ -2579,11 +2629,11 @@ const T = new jt("@firebase/app"), Wr = "@firebase/app-compat", zr = "@firebase/
|
|
|
2579
2629
|
* See the License for the specific language governing permissions and
|
|
2580
2630
|
* limitations under the License.
|
|
2581
2631
|
*/
|
|
2582
|
-
const xe = "[DEFAULT]",
|
|
2632
|
+
const xe = "[DEFAULT]", _i = {
|
|
2583
2633
|
[Ue]: "fire-core",
|
|
2584
|
-
[
|
|
2634
|
+
[zr]: "fire-core-compat",
|
|
2585
2635
|
[Gr]: "fire-analytics",
|
|
2586
|
-
[
|
|
2636
|
+
[Wr]: "fire-analytics-compat",
|
|
2587
2637
|
[Jr]: "fire-app-check",
|
|
2588
2638
|
[Kr]: "fire-app-check-compat",
|
|
2589
2639
|
[Yr]: "fire-auth",
|
|
@@ -2625,7 +2675,7 @@ const xe = "[DEFAULT]", bi = {
|
|
|
2625
2675
|
* See the License for the specific language governing permissions and
|
|
2626
2676
|
* limitations under the License.
|
|
2627
2677
|
*/
|
|
2628
|
-
const he = /* @__PURE__ */ new Map(),
|
|
2678
|
+
const he = /* @__PURE__ */ new Map(), bi = /* @__PURE__ */ new Map(), Fe = /* @__PURE__ */ new Map();
|
|
2629
2679
|
function dt(n, e) {
|
|
2630
2680
|
try {
|
|
2631
2681
|
n.container.addComponent(e);
|
|
@@ -2640,7 +2690,7 @@ function Y(n) {
|
|
|
2640
2690
|
Fe.set(e, n);
|
|
2641
2691
|
for (const t of he.values())
|
|
2642
2692
|
dt(t, n);
|
|
2643
|
-
for (const t of
|
|
2693
|
+
for (const t of bi.values())
|
|
2644
2694
|
dt(t, n);
|
|
2645
2695
|
return !0;
|
|
2646
2696
|
}
|
|
@@ -2648,7 +2698,7 @@ function Gt(n, e) {
|
|
|
2648
2698
|
const t = n.container.getProvider("heartbeat").getImmediate({ optional: !0 });
|
|
2649
2699
|
return t && t.triggerHeartbeat(), n.container.getProvider(e);
|
|
2650
2700
|
}
|
|
2651
|
-
function
|
|
2701
|
+
function b(n) {
|
|
2652
2702
|
return n.settings !== void 0;
|
|
2653
2703
|
}
|
|
2654
2704
|
/**
|
|
@@ -2757,7 +2807,7 @@ class Ii {
|
|
|
2757
2807
|
* See the License for the specific language governing permissions and
|
|
2758
2808
|
* limitations under the License.
|
|
2759
2809
|
*/
|
|
2760
|
-
const te =
|
|
2810
|
+
const te = yi;
|
|
2761
2811
|
function Kt(n, e = {}) {
|
|
2762
2812
|
let t = n;
|
|
2763
2813
|
typeof e != "object" && (e = { name: e });
|
|
@@ -2793,7 +2843,7 @@ function wi(n = xe) {
|
|
|
2793
2843
|
}
|
|
2794
2844
|
function H(n, e, t) {
|
|
2795
2845
|
var r;
|
|
2796
|
-
let i = (r =
|
|
2846
|
+
let i = (r = _i[n]) !== null && r !== void 0 ? r : n;
|
|
2797
2847
|
t && (i += `-${t}`);
|
|
2798
2848
|
const s = i.match(/\s|\//), a = e.match(/\s|\//);
|
|
2799
2849
|
if (s || a) {
|
|
@@ -3075,7 +3125,7 @@ var mt = function() {
|
|
|
3075
3125
|
return e;
|
|
3076
3126
|
}, mt.apply(this, arguments);
|
|
3077
3127
|
};
|
|
3078
|
-
function
|
|
3128
|
+
function We(n, e) {
|
|
3079
3129
|
var t = {};
|
|
3080
3130
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
|
|
3081
3131
|
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -3131,7 +3181,7 @@ function ae(n, ...e) {
|
|
|
3131
3181
|
function k(n, ...e) {
|
|
3132
3182
|
throw Ge(n, ...e);
|
|
3133
3183
|
}
|
|
3134
|
-
function
|
|
3184
|
+
function y(n, ...e) {
|
|
3135
3185
|
return Ge(n, ...e);
|
|
3136
3186
|
}
|
|
3137
3187
|
function Zt(n, e, t) {
|
|
@@ -3431,10 +3481,10 @@ const Fi = {
|
|
|
3431
3481
|
* limitations under the License.
|
|
3432
3482
|
*/
|
|
3433
3483
|
const Hi = new ne(3e4, 6e4);
|
|
3434
|
-
function
|
|
3484
|
+
function _e(n, e) {
|
|
3435
3485
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
|
3436
3486
|
}
|
|
3437
|
-
async function
|
|
3487
|
+
async function W(n, e, t, r, i = {}) {
|
|
3438
3488
|
return tn(n, i, async () => {
|
|
3439
3489
|
let s = {}, a = {};
|
|
3440
3490
|
r && (e === "GET" ? a = r : s = {
|
|
@@ -3489,7 +3539,7 @@ async function tn(n, e, t) {
|
|
|
3489
3539
|
}
|
|
3490
3540
|
}
|
|
3491
3541
|
async function nn(n, e, t, r, i = {}) {
|
|
3492
|
-
const s = await
|
|
3542
|
+
const s = await W(n, e, t, r, i);
|
|
3493
3543
|
return "mfaPendingCredential" in s && k(n, "multi-factor-auth-required", {
|
|
3494
3544
|
_serverResponse: s
|
|
3495
3545
|
}), s;
|
|
@@ -3501,7 +3551,7 @@ function rn(n, e, t, r) {
|
|
|
3501
3551
|
class qi {
|
|
3502
3552
|
constructor(e) {
|
|
3503
3553
|
this.auth = e, this.timer = null, this.promise = new Promise((t, r) => {
|
|
3504
|
-
this.timer = setTimeout(() => r(
|
|
3554
|
+
this.timer = setTimeout(() => r(y(
|
|
3505
3555
|
this.auth,
|
|
3506
3556
|
"network-request-failed"
|
|
3507
3557
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -3517,7 +3567,7 @@ function se(n, e, t) {
|
|
|
3517
3567
|
appName: n.name
|
|
3518
3568
|
};
|
|
3519
3569
|
t.email && (r.email = t.email), t.phoneNumber && (r.phoneNumber = t.phoneNumber);
|
|
3520
|
-
const i =
|
|
3570
|
+
const i = y(n, e, r);
|
|
3521
3571
|
return i.customData._tokenResponse = t, i;
|
|
3522
3572
|
}
|
|
3523
3573
|
/**
|
|
@@ -3537,10 +3587,10 @@ function se(n, e, t) {
|
|
|
3537
3587
|
* limitations under the License.
|
|
3538
3588
|
*/
|
|
3539
3589
|
async function $i(n, e) {
|
|
3540
|
-
return
|
|
3590
|
+
return W(n, "POST", "/v1/accounts:delete", e);
|
|
3541
3591
|
}
|
|
3542
3592
|
async function sn(n, e) {
|
|
3543
|
-
return
|
|
3593
|
+
return W(n, "POST", "/v1/accounts:lookup", e);
|
|
3544
3594
|
}
|
|
3545
3595
|
/**
|
|
3546
3596
|
* @license
|
|
@@ -3568,7 +3618,7 @@ function J(n) {
|
|
|
3568
3618
|
}
|
|
3569
3619
|
}
|
|
3570
3620
|
async function Vi(n, e = !1) {
|
|
3571
|
-
const t =
|
|
3621
|
+
const t = z(n), r = await t.getIdToken(e), i = Je(r);
|
|
3572
3622
|
h(
|
|
3573
3623
|
i && i.exp && i.auth_time && i.iat,
|
|
3574
3624
|
t.auth,
|
|
@@ -3600,7 +3650,7 @@ function Je(n) {
|
|
|
3600
3650
|
return ae("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
|
|
3601
3651
|
}
|
|
3602
3652
|
}
|
|
3603
|
-
function
|
|
3653
|
+
function yt(n) {
|
|
3604
3654
|
const e = Je(n);
|
|
3605
3655
|
return h(
|
|
3606
3656
|
e,
|
|
@@ -3660,7 +3710,7 @@ function ji({ code: n }) {
|
|
|
3660
3710
|
* See the License for the specific language governing permissions and
|
|
3661
3711
|
* limitations under the License.
|
|
3662
3712
|
*/
|
|
3663
|
-
class
|
|
3713
|
+
class zi {
|
|
3664
3714
|
constructor(e) {
|
|
3665
3715
|
this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
|
|
3666
3716
|
}
|
|
@@ -3780,8 +3830,8 @@ async function fe(n) {
|
|
|
3780
3830
|
};
|
|
3781
3831
|
Object.assign(n, d);
|
|
3782
3832
|
}
|
|
3783
|
-
async function
|
|
3784
|
-
const e =
|
|
3833
|
+
async function Wi(n) {
|
|
3834
|
+
const e = z(n);
|
|
3785
3835
|
await fe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
3786
3836
|
}
|
|
3787
3837
|
function Gi(n, e) {
|
|
@@ -3789,7 +3839,7 @@ function Gi(n, e) {
|
|
|
3789
3839
|
}
|
|
3790
3840
|
function an(n) {
|
|
3791
3841
|
return n.map((e) => {
|
|
3792
|
-
var { providerId: t } = e, r =
|
|
3842
|
+
var { providerId: t } = e, r = We(e, ["providerId"]);
|
|
3793
3843
|
return {
|
|
3794
3844
|
providerId: t,
|
|
3795
3845
|
uid: r.rawId || "",
|
|
@@ -3838,7 +3888,7 @@ async function Ki(n, e) {
|
|
|
3838
3888
|
};
|
|
3839
3889
|
}
|
|
3840
3890
|
async function Ji(n, e) {
|
|
3841
|
-
return
|
|
3891
|
+
return W(n, "POST", "/v2/accounts:revokeToken", _e(n, e));
|
|
3842
3892
|
}
|
|
3843
3893
|
/**
|
|
3844
3894
|
* @license
|
|
@@ -3877,7 +3927,7 @@ class q {
|
|
|
3877
3927
|
"internal-error"
|
|
3878
3928
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3879
3929
|
);
|
|
3880
|
-
const t = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) :
|
|
3930
|
+
const t = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : yt(e.idToken);
|
|
3881
3931
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, t);
|
|
3882
3932
|
}
|
|
3883
3933
|
updateFromIdToken(e) {
|
|
@@ -3886,7 +3936,7 @@ class q {
|
|
|
3886
3936
|
"internal-error"
|
|
3887
3937
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3888
3938
|
);
|
|
3889
|
-
const t =
|
|
3939
|
+
const t = yt(e);
|
|
3890
3940
|
this.updateTokensAndExpiration(e, null, t);
|
|
3891
3941
|
}
|
|
3892
3942
|
async getToken(e, t = !1) {
|
|
@@ -3955,8 +4005,8 @@ function S(n, e) {
|
|
|
3955
4005
|
}
|
|
3956
4006
|
class I {
|
|
3957
4007
|
constructor(e) {
|
|
3958
|
-
var { uid: t, auth: r, stsTokenManager: i } = e, s =
|
|
3959
|
-
this.providerId = "firebase", this.proactiveRefresh = new
|
|
4008
|
+
var { uid: t, auth: r, stsTokenManager: i } = e, s = We(e, ["uid", "auth", "stsTokenManager"]);
|
|
4009
|
+
this.providerId = "firebase", this.proactiveRefresh = new zi(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 qe(s.createdAt || void 0, s.lastLoginAt || void 0);
|
|
3960
4010
|
}
|
|
3961
4011
|
async getIdToken(e) {
|
|
3962
4012
|
const t = await Q(this, this.stsTokenManager.getToken(this.auth, e));
|
|
@@ -3971,7 +4021,7 @@ class I {
|
|
|
3971
4021
|
return Vi(this, e);
|
|
3972
4022
|
}
|
|
3973
4023
|
reload() {
|
|
3974
|
-
return
|
|
4024
|
+
return Wi(this);
|
|
3975
4025
|
}
|
|
3976
4026
|
_assign(e) {
|
|
3977
4027
|
this !== e && (h(
|
|
@@ -4007,7 +4057,7 @@ class I {
|
|
|
4007
4057
|
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await fe(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
|
4008
4058
|
}
|
|
4009
4059
|
async delete() {
|
|
4010
|
-
if (
|
|
4060
|
+
if (b(this.auth.app))
|
|
4011
4061
|
return Promise.reject(D(this.auth));
|
|
4012
4062
|
const e = await this.getIdToken();
|
|
4013
4063
|
return await Q(this, $i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
@@ -4144,11 +4194,11 @@ class I {
|
|
|
4144
4194
|
* See the License for the specific language governing permissions and
|
|
4145
4195
|
* limitations under the License.
|
|
4146
4196
|
*/
|
|
4147
|
-
const
|
|
4197
|
+
const _t = /* @__PURE__ */ new Map();
|
|
4148
4198
|
function w(n) {
|
|
4149
4199
|
E(n instanceof Function, "Expected a class definition");
|
|
4150
|
-
let e =
|
|
4151
|
-
return e ? (E(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(),
|
|
4200
|
+
let e = _t.get(n);
|
|
4201
|
+
return e ? (E(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), _t.set(n, e), e);
|
|
4152
4202
|
}
|
|
4153
4203
|
/**
|
|
4154
4204
|
* @license
|
|
@@ -4189,7 +4239,7 @@ class on {
|
|
|
4189
4239
|
}
|
|
4190
4240
|
}
|
|
4191
4241
|
on.type = "NONE";
|
|
4192
|
-
const
|
|
4242
|
+
const bt = on;
|
|
4193
4243
|
/**
|
|
4194
4244
|
* @license
|
|
4195
4245
|
* Copyright 2019 Google LLC
|
|
@@ -4240,12 +4290,12 @@ class $ {
|
|
|
4240
4290
|
}
|
|
4241
4291
|
static async create(e, t, r = "authUser") {
|
|
4242
4292
|
if (!t.length)
|
|
4243
|
-
return new $(w(
|
|
4293
|
+
return new $(w(bt), e, r);
|
|
4244
4294
|
const i = (await Promise.all(t.map(async (l) => {
|
|
4245
4295
|
if (await l._isAvailable())
|
|
4246
4296
|
return l;
|
|
4247
4297
|
}))).filter((l) => l);
|
|
4248
|
-
let s = i[0] || w(
|
|
4298
|
+
let s = i[0] || w(bt);
|
|
4249
4299
|
const a = oe(r, e.config.apiKey, e.name);
|
|
4250
4300
|
let c = null;
|
|
4251
4301
|
for (const l of t)
|
|
@@ -4453,7 +4503,7 @@ class Qi {
|
|
|
4453
4503
|
* limitations under the License.
|
|
4454
4504
|
*/
|
|
4455
4505
|
async function Zi(n, e = {}) {
|
|
4456
|
-
return
|
|
4506
|
+
return W(n, "GET", "/v2/passwordPolicy", _e(n, e));
|
|
4457
4507
|
}
|
|
4458
4508
|
/**
|
|
4459
4509
|
* @license
|
|
@@ -4605,7 +4655,7 @@ class ns {
|
|
|
4605
4655
|
}
|
|
4606
4656
|
async initializeCurrentUser(e) {
|
|
4607
4657
|
var t;
|
|
4608
|
-
if (
|
|
4658
|
+
if (b(this.app)) {
|
|
4609
4659
|
const a = this.app.settings.authIdToken;
|
|
4610
4660
|
return a ? new Promise((c) => {
|
|
4611
4661
|
setTimeout(() => this.initializeCurrentUserFromIdToken(a).then(c, c));
|
|
@@ -4661,9 +4711,9 @@ class ns {
|
|
|
4661
4711
|
this._deleted = !0;
|
|
4662
4712
|
}
|
|
4663
4713
|
async updateCurrentUser(e) {
|
|
4664
|
-
if (
|
|
4714
|
+
if (b(this.app))
|
|
4665
4715
|
return Promise.reject(D(this));
|
|
4666
|
-
const t = e ?
|
|
4716
|
+
const t = e ? z(e) : null;
|
|
4667
4717
|
return t && h(
|
|
4668
4718
|
t.auth.config.apiKey === this.config.apiKey,
|
|
4669
4719
|
this,
|
|
@@ -4683,14 +4733,14 @@ class ns {
|
|
|
4683
4733
|
});
|
|
4684
4734
|
}
|
|
4685
4735
|
async signOut() {
|
|
4686
|
-
return
|
|
4736
|
+
return b(this.app) ? Promise.reject(D(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
|
|
4687
4737
|
null,
|
|
4688
4738
|
/* skipBeforeStateCallbacks */
|
|
4689
4739
|
!0
|
|
4690
4740
|
));
|
|
4691
4741
|
}
|
|
4692
4742
|
setPersistence(e) {
|
|
4693
|
-
return
|
|
4743
|
+
return b(this.app) ? Promise.reject(D(this)) : this.queue(async () => {
|
|
4694
4744
|
await this.assertedPersistence.setPersistence(w(e));
|
|
4695
4745
|
});
|
|
4696
4746
|
}
|
|
@@ -4892,8 +4942,8 @@ class ns {
|
|
|
4892
4942
|
return t != null && t.error && Mi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
|
4893
4943
|
}
|
|
4894
4944
|
}
|
|
4895
|
-
function
|
|
4896
|
-
return
|
|
4945
|
+
function be(n) {
|
|
4946
|
+
return z(n);
|
|
4897
4947
|
}
|
|
4898
4948
|
class It {
|
|
4899
4949
|
constructor(e) {
|
|
@@ -4979,7 +5029,7 @@ function cs(n, e) {
|
|
|
4979
5029
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
4980
5030
|
}
|
|
4981
5031
|
function ls(n, e, t) {
|
|
4982
|
-
const r =
|
|
5032
|
+
const r = be(n);
|
|
4983
5033
|
h(
|
|
4984
5034
|
r._canInitEmulator,
|
|
4985
5035
|
r,
|
|
@@ -4991,7 +5041,7 @@ function ls(n, e, t) {
|
|
|
4991
5041
|
"invalid-emulator-scheme"
|
|
4992
5042
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
|
4993
5043
|
);
|
|
4994
|
-
const i = !1, s =
|
|
5044
|
+
const i = !1, s = yn(e), { host: a, port: c } = us(e), o = c === null ? "" : `:${c}`;
|
|
4995
5045
|
r.config.emulator = { url: `${s}//${a}${o}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
|
|
4996
5046
|
host: a,
|
|
4997
5047
|
port: c,
|
|
@@ -4999,12 +5049,12 @@ function ls(n, e, t) {
|
|
|
4999
5049
|
options: Object.freeze({ disableWarnings: i })
|
|
5000
5050
|
}), ds();
|
|
5001
5051
|
}
|
|
5002
|
-
function
|
|
5052
|
+
function yn(n) {
|
|
5003
5053
|
const e = n.indexOf(":");
|
|
5004
5054
|
return e < 0 ? "" : n.substr(0, e + 1);
|
|
5005
5055
|
}
|
|
5006
5056
|
function us(n) {
|
|
5007
|
-
const e =
|
|
5057
|
+
const e = yn(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
|
5008
5058
|
if (!t)
|
|
5009
5059
|
return { host: "", port: null };
|
|
5010
5060
|
const r = t[2].split("@").pop() || "", i = /^(\[[^\]]+\])(:|$)/.exec(r);
|
|
@@ -5045,7 +5095,7 @@ function ds() {
|
|
|
5045
5095
|
* See the License for the specific language governing permissions and
|
|
5046
5096
|
* limitations under the License.
|
|
5047
5097
|
*/
|
|
5048
|
-
class
|
|
5098
|
+
class _n {
|
|
5049
5099
|
/** @internal */
|
|
5050
5100
|
constructor(e, t) {
|
|
5051
5101
|
this.providerId = e, this.signInMethod = t;
|
|
@@ -5088,7 +5138,7 @@ class bn {
|
|
|
5088
5138
|
* limitations under the License.
|
|
5089
5139
|
*/
|
|
5090
5140
|
async function V(n, e) {
|
|
5091
|
-
return nn(n, "POST", "/v1/accounts:signInWithIdp",
|
|
5141
|
+
return nn(n, "POST", "/v1/accounts:signInWithIdp", _e(n, e));
|
|
5092
5142
|
}
|
|
5093
5143
|
/**
|
|
5094
5144
|
* @license
|
|
@@ -5107,7 +5157,7 @@ async function V(n, e) {
|
|
|
5107
5157
|
* limitations under the License.
|
|
5108
5158
|
*/
|
|
5109
5159
|
const hs = "http://localhost";
|
|
5110
|
-
class B extends
|
|
5160
|
+
class B extends _n {
|
|
5111
5161
|
constructor() {
|
|
5112
5162
|
super(...arguments), this.pendingToken = null;
|
|
5113
5163
|
}
|
|
@@ -5141,7 +5191,7 @@ class B extends bn {
|
|
|
5141
5191
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
|
5142
5192
|
*/
|
|
5143
5193
|
static fromJSON(e) {
|
|
5144
|
-
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s =
|
|
5194
|
+
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = We(t, ["providerId", "signInMethod"]);
|
|
5145
5195
|
if (!r || !i)
|
|
5146
5196
|
return null;
|
|
5147
5197
|
const a = new B(r, i);
|
|
@@ -5192,7 +5242,7 @@ class B extends bn {
|
|
|
5192
5242
|
* See the License for the specific language governing permissions and
|
|
5193
5243
|
* limitations under the License.
|
|
5194
5244
|
*/
|
|
5195
|
-
class
|
|
5245
|
+
class bn {
|
|
5196
5246
|
/**
|
|
5197
5247
|
* Constructor for generic OAuth providers.
|
|
5198
5248
|
*
|
|
@@ -5245,7 +5295,7 @@ class yn {
|
|
|
5245
5295
|
* See the License for the specific language governing permissions and
|
|
5246
5296
|
* limitations under the License.
|
|
5247
5297
|
*/
|
|
5248
|
-
class re extends
|
|
5298
|
+
class re extends bn {
|
|
5249
5299
|
constructor() {
|
|
5250
5300
|
super(...arguments), this.scopes = [];
|
|
5251
5301
|
}
|
|
@@ -5648,7 +5698,7 @@ async function ps(n, e, t = !1) {
|
|
|
5648
5698
|
*/
|
|
5649
5699
|
async function fs(n, e, t = !1) {
|
|
5650
5700
|
const { auth: r } = n;
|
|
5651
|
-
if (
|
|
5701
|
+
if (b(r.app))
|
|
5652
5702
|
return Promise.reject(D(r));
|
|
5653
5703
|
const i = "reauthenticate";
|
|
5654
5704
|
try {
|
|
@@ -5698,7 +5748,7 @@ async function fs(n, e, t = !1) {
|
|
|
5698
5748
|
* limitations under the License.
|
|
5699
5749
|
*/
|
|
5700
5750
|
async function ms(n, e, t = !1) {
|
|
5701
|
-
if (
|
|
5751
|
+
if (b(n.app))
|
|
5702
5752
|
return Promise.reject(D(n));
|
|
5703
5753
|
const r = "signIn", i = await vn(n, r, e), s = await U._fromIdTokenResponse(n, r, i);
|
|
5704
5754
|
return t || await n._updateCurrentUser(s.user), s;
|
|
@@ -5720,7 +5770,7 @@ async function ms(n, e, t = !1) {
|
|
|
5720
5770
|
* limitations under the License.
|
|
5721
5771
|
*/
|
|
5722
5772
|
async function gs(n, e) {
|
|
5723
|
-
return nn(n, "POST", "/v1/accounts:signInWithCustomToken",
|
|
5773
|
+
return nn(n, "POST", "/v1/accounts:signInWithCustomToken", _e(n, e));
|
|
5724
5774
|
}
|
|
5725
5775
|
/**
|
|
5726
5776
|
* @license
|
|
@@ -5738,20 +5788,20 @@ async function gs(n, e) {
|
|
|
5738
5788
|
* See the License for the specific language governing permissions and
|
|
5739
5789
|
* limitations under the License.
|
|
5740
5790
|
*/
|
|
5741
|
-
async function
|
|
5742
|
-
if (
|
|
5791
|
+
async function ys(n, e) {
|
|
5792
|
+
if (b(n.app))
|
|
5743
5793
|
return Promise.reject(D(n));
|
|
5744
|
-
const t =
|
|
5794
|
+
const t = be(n), r = await gs(t, {
|
|
5745
5795
|
token: e,
|
|
5746
5796
|
returnSecureToken: !0
|
|
5747
5797
|
}), i = await U._fromIdTokenResponse(t, "signIn", r);
|
|
5748
5798
|
return await t._updateCurrentUser(i.user), i;
|
|
5749
5799
|
}
|
|
5750
|
-
function
|
|
5751
|
-
return
|
|
5800
|
+
function _s(n, e, t, r) {
|
|
5801
|
+
return z(n).onIdTokenChanged(e, t, r);
|
|
5752
5802
|
}
|
|
5753
|
-
function
|
|
5754
|
-
return
|
|
5803
|
+
function bs(n, e, t) {
|
|
5804
|
+
return z(n).beforeAuthStateChanged(e, t);
|
|
5755
5805
|
}
|
|
5756
5806
|
const ge = "__sak";
|
|
5757
5807
|
/**
|
|
@@ -6174,11 +6224,11 @@ class ks {
|
|
|
6174
6224
|
* See the License for the specific language governing permissions and
|
|
6175
6225
|
* limitations under the License.
|
|
6176
6226
|
*/
|
|
6177
|
-
function
|
|
6227
|
+
function _() {
|
|
6178
6228
|
return window;
|
|
6179
6229
|
}
|
|
6180
6230
|
function Es(n) {
|
|
6181
|
-
|
|
6231
|
+
_().location.href = n;
|
|
6182
6232
|
}
|
|
6183
6233
|
/**
|
|
6184
6234
|
* @license
|
|
@@ -6197,7 +6247,7 @@ function Es(n) {
|
|
|
6197
6247
|
* limitations under the License.
|
|
6198
6248
|
*/
|
|
6199
6249
|
function En() {
|
|
6200
|
-
return typeof
|
|
6250
|
+
return typeof _().WorkerGlobalScope < "u" && typeof _().importScripts == "function";
|
|
6201
6251
|
}
|
|
6202
6252
|
async function Ss() {
|
|
6203
6253
|
if (!(navigator != null && navigator.serviceWorker))
|
|
@@ -6231,7 +6281,7 @@ function Cs() {
|
|
|
6231
6281
|
* See the License for the specific language governing permissions and
|
|
6232
6282
|
* limitations under the License.
|
|
6233
6283
|
*/
|
|
6234
|
-
const Sn = "firebaseLocalStorageDb", As = 1,
|
|
6284
|
+
const Sn = "firebaseLocalStorageDb", As = 1, ye = "firebaseLocalStorage", Rn = "fbase_key";
|
|
6235
6285
|
class ie {
|
|
6236
6286
|
constructor(e) {
|
|
6237
6287
|
this.request = e;
|
|
@@ -6247,7 +6297,7 @@ class ie {
|
|
|
6247
6297
|
}
|
|
6248
6298
|
}
|
|
6249
6299
|
function Ie(n, e) {
|
|
6250
|
-
return n.transaction([
|
|
6300
|
+
return n.transaction([ye], e ? "readwrite" : "readonly").objectStore(ye);
|
|
6251
6301
|
}
|
|
6252
6302
|
function Ps() {
|
|
6253
6303
|
const n = indexedDB.deleteDatabase(Sn);
|
|
@@ -6261,13 +6311,13 @@ function $e() {
|
|
|
6261
6311
|
}), n.addEventListener("upgradeneeded", () => {
|
|
6262
6312
|
const r = n.result;
|
|
6263
6313
|
try {
|
|
6264
|
-
r.createObjectStore(
|
|
6314
|
+
r.createObjectStore(ye, { keyPath: Rn });
|
|
6265
6315
|
} catch (i) {
|
|
6266
6316
|
t(i);
|
|
6267
6317
|
}
|
|
6268
6318
|
}), n.addEventListener("success", async () => {
|
|
6269
6319
|
const r = n.result;
|
|
6270
|
-
r.objectStoreNames.contains(
|
|
6320
|
+
r.objectStoreNames.contains(ye) ? e(r) : (r.close(), await Ps(), e(await $e()));
|
|
6271
6321
|
});
|
|
6272
6322
|
});
|
|
6273
6323
|
}
|
|
@@ -6479,7 +6529,7 @@ function Ms(n, e) {
|
|
|
6479
6529
|
* See the License for the specific language governing permissions and
|
|
6480
6530
|
* limitations under the License.
|
|
6481
6531
|
*/
|
|
6482
|
-
class Ze extends
|
|
6532
|
+
class Ze extends _n {
|
|
6483
6533
|
constructor(e) {
|
|
6484
6534
|
super(
|
|
6485
6535
|
"custom",
|
|
@@ -6655,7 +6705,7 @@ class F extends An {
|
|
|
6655
6705
|
), this.authWindow.associatedEvent = e, this.resolver._originValidation(this.auth).catch((t) => {
|
|
6656
6706
|
this.reject(t);
|
|
6657
6707
|
}), this.resolver._isIframeWebStorageSupported(this.auth, (t) => {
|
|
6658
|
-
t || this.reject(
|
|
6708
|
+
t || this.reject(y(
|
|
6659
6709
|
this.auth,
|
|
6660
6710
|
"web-storage-unsupported"
|
|
6661
6711
|
/* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
|
|
@@ -6667,7 +6717,7 @@ class F extends An {
|
|
|
6667
6717
|
return ((e = this.authWindow) === null || e === void 0 ? void 0 : e.associatedEvent) || null;
|
|
6668
6718
|
}
|
|
6669
6719
|
cancel() {
|
|
6670
|
-
this.reject(
|
|
6720
|
+
this.reject(y(
|
|
6671
6721
|
this.auth,
|
|
6672
6722
|
"cancelled-popup-request"
|
|
6673
6723
|
/* AuthErrorCode.EXPIRED_POPUP_REQUEST */
|
|
@@ -6682,7 +6732,7 @@ class F extends An {
|
|
|
6682
6732
|
if (!((r = (t = this.authWindow) === null || t === void 0 ? void 0 : t.window) === null || r === void 0) && r.closed) {
|
|
6683
6733
|
this.pollId = window.setTimeout(
|
|
6684
6734
|
() => {
|
|
6685
|
-
this.pollId = null, this.reject(
|
|
6735
|
+
this.pollId = null, this.reject(y(
|
|
6686
6736
|
this.auth,
|
|
6687
6737
|
"popup-closed-by-user"
|
|
6688
6738
|
/* AuthErrorCode.POPUP_CLOSED_BY_USER */
|
|
@@ -6763,7 +6813,7 @@ class qs extends An {
|
|
|
6763
6813
|
}
|
|
6764
6814
|
}
|
|
6765
6815
|
async function $s(n, e) {
|
|
6766
|
-
const t =
|
|
6816
|
+
const t = zs(e), r = js(n);
|
|
6767
6817
|
if (!await r._isAvailable())
|
|
6768
6818
|
return !1;
|
|
6769
6819
|
const i = await r._get(t) === "true";
|
|
@@ -6775,13 +6825,13 @@ function Vs(n, e) {
|
|
|
6775
6825
|
function js(n) {
|
|
6776
6826
|
return w(n._redirectPersistence);
|
|
6777
6827
|
}
|
|
6778
|
-
function
|
|
6828
|
+
function zs(n) {
|
|
6779
6829
|
return oe(Hs, n.config.apiKey, n.name);
|
|
6780
6830
|
}
|
|
6781
|
-
async function
|
|
6782
|
-
if (
|
|
6831
|
+
async function Ws(n, e, t = !1) {
|
|
6832
|
+
if (b(n.app))
|
|
6783
6833
|
return Promise.reject(D(n));
|
|
6784
|
-
const r =
|
|
6834
|
+
const r = be(n), i = Ms(r, e), a = await new qs(r, i, t).execute();
|
|
6785
6835
|
return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
|
6786
6836
|
}
|
|
6787
6837
|
/**
|
|
@@ -6823,7 +6873,7 @@ class Ks {
|
|
|
6823
6873
|
var r;
|
|
6824
6874
|
if (e.error && !Pn(e)) {
|
|
6825
6875
|
const i = ((r = e.error.code) === null || r === void 0 ? void 0 : r.split("auth/")[1]) || "internal-error";
|
|
6826
|
-
t.onError(
|
|
6876
|
+
t.onError(y(this.auth, i));
|
|
6827
6877
|
} else
|
|
6828
6878
|
t.onAuthEvent(e);
|
|
6829
6879
|
}
|
|
@@ -6873,7 +6923,7 @@ function Js(n) {
|
|
|
6873
6923
|
* limitations under the License.
|
|
6874
6924
|
*/
|
|
6875
6925
|
async function Ys(n, e = {}) {
|
|
6876
|
-
return
|
|
6926
|
+
return W(n, "GET", "/v1/projects", e);
|
|
6877
6927
|
}
|
|
6878
6928
|
/**
|
|
6879
6929
|
* @license
|
|
@@ -6939,7 +6989,7 @@ function ea(n) {
|
|
|
6939
6989
|
*/
|
|
6940
6990
|
const ta = new ne(3e4, 6e4);
|
|
6941
6991
|
function Rt() {
|
|
6942
|
-
const n =
|
|
6992
|
+
const n = _().___jsl;
|
|
6943
6993
|
if (n != null && n.H) {
|
|
6944
6994
|
for (const e of Object.keys(n.H))
|
|
6945
6995
|
if (n.H[e].r = n.H[e].r || [], n.H[e].L = n.H[e].L || [], n.H[e].r = [...n.H[e].L], n.CP)
|
|
@@ -6956,7 +7006,7 @@ function na(n) {
|
|
|
6956
7006
|
e(gapi.iframes.getContext());
|
|
6957
7007
|
},
|
|
6958
7008
|
ontimeout: () => {
|
|
6959
|
-
Rt(), t(
|
|
7009
|
+
Rt(), t(y(
|
|
6960
7010
|
n,
|
|
6961
7011
|
"network-request-failed"
|
|
6962
7012
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -6965,14 +7015,14 @@ function na(n) {
|
|
|
6965
7015
|
timeout: ta.get()
|
|
6966
7016
|
});
|
|
6967
7017
|
}
|
|
6968
|
-
if (!((i = (r =
|
|
7018
|
+
if (!((i = (r = _().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
|
|
6969
7019
|
e(gapi.iframes.getContext());
|
|
6970
|
-
else if (!((s =
|
|
7020
|
+
else if (!((s = _().gapi) === null || s === void 0) && s.load)
|
|
6971
7021
|
a();
|
|
6972
7022
|
else {
|
|
6973
7023
|
const c = as("iframefcb");
|
|
6974
|
-
return
|
|
6975
|
-
gapi.load ? a() : t(
|
|
7024
|
+
return _()[c] = () => {
|
|
7025
|
+
gapi.load ? a() : t(y(
|
|
6976
7026
|
n,
|
|
6977
7027
|
"network-request-failed"
|
|
6978
7028
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -7036,7 +7086,7 @@ function la(n) {
|
|
|
7036
7086
|
return s.length && (r.fw = s.join(",")), `${t}?${ee(r).slice(1)}`;
|
|
7037
7087
|
}
|
|
7038
7088
|
async function ua(n) {
|
|
7039
|
-
const e = await ra(n), t =
|
|
7089
|
+
const e = await ra(n), t = _().gapi;
|
|
7040
7090
|
return h(
|
|
7041
7091
|
t,
|
|
7042
7092
|
n,
|
|
@@ -7053,15 +7103,15 @@ async function ua(n) {
|
|
|
7053
7103
|
// Prevent iframe from closing on mouse out.
|
|
7054
7104
|
setHideOnLeave: !1
|
|
7055
7105
|
});
|
|
7056
|
-
const a =
|
|
7106
|
+
const a = y(
|
|
7057
7107
|
n,
|
|
7058
7108
|
"network-request-failed"
|
|
7059
7109
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
7060
|
-
), c =
|
|
7110
|
+
), c = _().setTimeout(() => {
|
|
7061
7111
|
s(a);
|
|
7062
7112
|
}, ia.get());
|
|
7063
7113
|
function o() {
|
|
7064
|
-
|
|
7114
|
+
_().clearTimeout(c), i(r);
|
|
7065
7115
|
}
|
|
7066
7116
|
r.ping(o).then(o, () => {
|
|
7067
7117
|
s(a);
|
|
@@ -7114,7 +7164,7 @@ function ga(n, e, t, r = ha, i = pa) {
|
|
|
7114
7164
|
t && (c = un(l) ? fa : t), cn(l) && (e = e || ma, o.scrollbars = "yes");
|
|
7115
7165
|
const u = Object.entries(o).reduce((f, [m, x]) => `${f}${m}=${x},`, "");
|
|
7116
7166
|
if (Yi(l) && c !== "_self")
|
|
7117
|
-
return
|
|
7167
|
+
return ya(e || "", c), new Ct(null);
|
|
7118
7168
|
const d = window.open(e || "", c, u);
|
|
7119
7169
|
h(
|
|
7120
7170
|
d,
|
|
@@ -7128,7 +7178,7 @@ function ga(n, e, t, r = ha, i = pa) {
|
|
|
7128
7178
|
}
|
|
7129
7179
|
return new Ct(d);
|
|
7130
7180
|
}
|
|
7131
|
-
function
|
|
7181
|
+
function ya(n, e) {
|
|
7132
7182
|
const t = document.createElement("a");
|
|
7133
7183
|
t.href = n, t.target = e;
|
|
7134
7184
|
const r = document.createEvent("MouseEvent");
|
|
@@ -7150,7 +7200,7 @@ function _a(n, e) {
|
|
|
7150
7200
|
* See the License for the specific language governing permissions and
|
|
7151
7201
|
* limitations under the License.
|
|
7152
7202
|
*/
|
|
7153
|
-
const
|
|
7203
|
+
const _a = "__/auth/handler", ba = "emulator/auth/handler", va = encodeURIComponent("fac");
|
|
7154
7204
|
async function At(n, e, t, r, i, s) {
|
|
7155
7205
|
h(
|
|
7156
7206
|
n.config.authDomain,
|
|
@@ -7171,7 +7221,7 @@ async function At(n, e, t, r, i, s) {
|
|
|
7171
7221
|
v: te,
|
|
7172
7222
|
eventId: i
|
|
7173
7223
|
};
|
|
7174
|
-
if (e instanceof
|
|
7224
|
+
if (e instanceof bn) {
|
|
7175
7225
|
e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", vr(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
|
|
7176
7226
|
for (const [u, d] of Object.entries({}))
|
|
7177
7227
|
a[u] = d;
|
|
@@ -7188,7 +7238,7 @@ async function At(n, e, t, r, i, s) {
|
|
|
7188
7238
|
return `${Ia(n)}?${ee(c).slice(1)}${l}`;
|
|
7189
7239
|
}
|
|
7190
7240
|
function Ia({ config: n }) {
|
|
7191
|
-
return n.emulator ? Ke(n,
|
|
7241
|
+
return n.emulator ? Ke(n, ba) : `https://${n.authDomain}/${_a}`;
|
|
7192
7242
|
}
|
|
7193
7243
|
/**
|
|
7194
7244
|
* @license
|
|
@@ -7209,7 +7259,7 @@ function Ia({ config: n }) {
|
|
|
7209
7259
|
const Oe = "webStorageSupport";
|
|
7210
7260
|
class wa {
|
|
7211
7261
|
constructor() {
|
|
7212
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn =
|
|
7262
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn = Ws, this._overrideRedirectResult = Vs;
|
|
7213
7263
|
}
|
|
7214
7264
|
// Wrapping in async even though we don't await anywhere in order
|
|
7215
7265
|
// to make sure errors are raised as promise rejections
|
|
@@ -7382,7 +7432,7 @@ function Sa(n) {
|
|
|
7382
7432
|
})), Y(new j(
|
|
7383
7433
|
"auth-internal",
|
|
7384
7434
|
(e) => {
|
|
7385
|
-
const t =
|
|
7435
|
+
const t = be(e.getProvider(
|
|
7386
7436
|
"auth"
|
|
7387
7437
|
/* _ComponentName.AUTH */
|
|
7388
7438
|
).getImmediate());
|
|
@@ -7441,7 +7491,7 @@ function Pa(n = wi()) {
|
|
|
7441
7491
|
const s = new URL(r, location.origin);
|
|
7442
7492
|
if (location.origin === s.origin) {
|
|
7443
7493
|
const a = Aa(s.toString());
|
|
7444
|
-
|
|
7494
|
+
bs(t, a, () => a(t.currentUser)), _s(t, (c) => a(c));
|
|
7445
7495
|
}
|
|
7446
7496
|
}
|
|
7447
7497
|
const i = cr("auth");
|
|
@@ -7456,7 +7506,7 @@ rs({
|
|
|
7456
7506
|
return new Promise((e, t) => {
|
|
7457
7507
|
const r = document.createElement("script");
|
|
7458
7508
|
r.setAttribute("src", n), r.onload = e, r.onerror = (i) => {
|
|
7459
|
-
const s =
|
|
7509
|
+
const s = y(
|
|
7460
7510
|
"internal-error"
|
|
7461
7511
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
7462
7512
|
);
|
|
@@ -7525,7 +7575,7 @@ Oa.beforeEach(async (n) => {
|
|
|
7525
7575
|
const Da = /* @__PURE__ */ Lt({
|
|
7526
7576
|
__name: "AppSidebar",
|
|
7527
7577
|
setup(n) {
|
|
7528
|
-
const e = Ve(), t = xn(), { t: r } =
|
|
7578
|
+
const e = Ve(), t = xn(), { t: r } = zn(), i = Hn(t.currentRoute.value.name);
|
|
7529
7579
|
G(t.currentRoute, () => {
|
|
7530
7580
|
let l = t.currentRoute.value.name;
|
|
7531
7581
|
t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
|
|
@@ -7631,7 +7681,7 @@ const qa = /* @__PURE__ */ Lt({
|
|
|
7631
7681
|
const a = t.sessionUser.value;
|
|
7632
7682
|
if (!a || !a.token) return;
|
|
7633
7683
|
const c = await a.getCustomToken(), o = Pa(i);
|
|
7634
|
-
await
|
|
7684
|
+
await ys(o, c);
|
|
7635
7685
|
}
|
|
7636
7686
|
return s(), G(t.sessionUser, s), $n(() => {
|
|
7637
7687
|
e.isIframe && parent.postMessage({ event: "ready" }, "*");
|