@feedmepos/mf-financing 0.0.9 → 0.0.20-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/README.md +2 -0
- package/dist/{Application-B68oXsb4.js → Application-BvrkS3zh.js} +3773 -14676
- package/dist/Submission-BvbhttQO.js +24228 -0
- package/dist/api/financing/index.d.ts +18 -0
- package/dist/app-CowUDzjt.js +7944 -0
- package/dist/app.d.ts +74 -74
- package/dist/app.js +191 -191
- package/dist/components/AdminLayout.vue.d.ts +3 -3
- package/dist/components/AutoCopyCell.vue.d.ts +1 -1
- package/dist/components/DocumentPreview.vue.d.ts +14 -0
- package/dist/components/ImagePreview.vue.d.ts +3 -3
- package/dist/components/Layout.vue.d.ts +3 -3
- package/dist/components/PDFViewer.vue.d.ts +4 -4
- package/dist/components/RestaurantSelector.vue.d.ts +1 -1
- package/dist/components/RouteCell.vue.d.ts +1 -1
- package/dist/package.json +9 -3
- package/dist/stores/app.d.ts +6 -6
- package/dist/style.css +1 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/components/FinancingDashboard.vue.d.ts +1 -1
- package/dist/views/components/cell/SignatureBoard.vue.d.ts +13 -0
- package/dist/views/components/cell/UploadButton.vue.d.ts +14 -0
- package/package.json +22 -16
- package/dist/Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js +0 -45
- package/dist/Submission-BdBXosJD.js +0 -164
package/dist/app.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRouter as bn, createWebHistory as wn, useRoute as En } from "vue-router";
|
|
2
|
-
import { computed as Tn, defineComponent as Sn, watch as An, onMounted as
|
|
2
|
+
import { computed as Tn, defineComponent as Sn, watch as An, onMounted as kn, resolveComponent as Cn, openBlock as Rn, createBlock as Pn, unref as On } from "vue";
|
|
3
3
|
import { defineStore as Nn } from "pinia";
|
|
4
4
|
import { useCoreStore as Dn } from "@feedmepos/mf-common";
|
|
5
5
|
const Ln = {
|
|
@@ -8,13 +8,8 @@ const Ln = {
|
|
|
8
8
|
application: "Application"
|
|
9
9
|
},
|
|
10
10
|
components: {
|
|
11
|
-
restaurant: "Restaurant",
|
|
12
11
|
select: "Select"
|
|
13
12
|
},
|
|
14
|
-
infoCard: {
|
|
15
|
-
title: "Apply for financing for your pos system",
|
|
16
|
-
description: "Upgrade your business operations today without draining your vital cash reserves. By financing your Point of Sale system, you transform a heavy upfront cost into manageable, predictable monthly payments, allowing you to keep your working capital free for inventory, marketing, and unexpected expenses. This smart investment strategy gives you immediate access to top-tier technology that streamlines efficiency and drives sales, effectively letting the system pay for itself through the growth it generates."
|
|
17
|
-
},
|
|
18
13
|
stepper: {
|
|
19
14
|
title: "POS Financing Pre-requisites",
|
|
20
15
|
description: "Complete the steps below to get your POS financing ready.",
|
|
@@ -49,26 +44,19 @@ const Ln = {
|
|
|
49
44
|
}
|
|
50
45
|
},
|
|
51
46
|
dashboard: {
|
|
52
|
-
totalLoan: "Total Loan Amount",
|
|
53
|
-
totalPaid: "Total Paid",
|
|
54
|
-
remainingBalance: "Remaining Balance",
|
|
55
|
-
repaymentProgress: "Repayment Progress",
|
|
56
47
|
payments: "Payments",
|
|
57
|
-
completed: "Completed",
|
|
58
|
-
upcomingPayments: "Upcoming Payments",
|
|
59
|
-
dueDate: "Due Date",
|
|
60
|
-
allPaid: "Congratulations! All payments completed.",
|
|
61
|
-
paymentHistory: "Payment History",
|
|
62
48
|
table: {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
49
|
+
date: "Date",
|
|
50
|
+
referenceId: "Reference ID",
|
|
51
|
+
type: "Type",
|
|
52
|
+
amount: "Amount"
|
|
67
53
|
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
54
|
+
transactionType: {
|
|
55
|
+
deposit: "Wallet: Manual Deposit",
|
|
56
|
+
repaymentBalance: "Repayment: Wallet",
|
|
57
|
+
arrearsRepaymentBalance: "Arrears Payback: Wallet",
|
|
58
|
+
repaymentSales: "Repayment: Sales",
|
|
59
|
+
arrearsRepaymentSales: "Arrears Payback: Sales"
|
|
72
60
|
},
|
|
73
61
|
principalLoan: "Principal Loan",
|
|
74
62
|
paidAmount: "Paid Amount",
|
|
@@ -76,41 +64,42 @@ const Ln = {
|
|
|
76
64
|
lastUpdated: "Last Updated"
|
|
77
65
|
},
|
|
78
66
|
apply: {
|
|
79
|
-
title: "
|
|
67
|
+
title: "Financing application form",
|
|
80
68
|
description: "Fill in the details below to apply for financing.",
|
|
81
69
|
sections: {
|
|
82
70
|
business: "Business Information",
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
71
|
+
businessDocument: "Business Document",
|
|
72
|
+
documents: "Bank Statements",
|
|
73
|
+
signature: "Declaration & Signature"
|
|
86
74
|
},
|
|
87
75
|
fields: {
|
|
88
76
|
businessName: "Business Name",
|
|
89
77
|
businessNamePlaceholder: "Enter your business name",
|
|
90
78
|
registrationNumber: "Business Registration Number",
|
|
91
|
-
registrationNumberPlaceholder: "Enter registration number",
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
loanPurposePlaceholder: "Describe the purpose of the loan",
|
|
102
|
-
ssmCertificate: "SSM Certificate",
|
|
103
|
-
bankStatement: "Bank Statement (Last 3 months)",
|
|
104
|
-
financialStatement: "Financial Statement"
|
|
79
|
+
registrationNumberPlaceholder: "Enter registration number (e.g. 202001012345)",
|
|
80
|
+
businessAddress: "Business Address",
|
|
81
|
+
businessAddressPlaceholder: "Enter your full business address",
|
|
82
|
+
taxIdentificationNo: "Tax Identification No. (TIN)",
|
|
83
|
+
taxIdentificationNoPlaceholder: "Enter your TIN number",
|
|
84
|
+
businessRegistration: "Business Registration",
|
|
85
|
+
bankStatement: "Bank Statement",
|
|
86
|
+
signature: "Signature",
|
|
87
|
+
signatoryName: "Signatory Name",
|
|
88
|
+
signatoryPosition: "Signatory Position"
|
|
105
89
|
},
|
|
90
|
+
success: "Application submitted successfully",
|
|
106
91
|
errors: {
|
|
107
92
|
required: "This field is required",
|
|
108
|
-
|
|
109
|
-
|
|
93
|
+
businessRegistrationRequired: "Please upload your business registration document",
|
|
94
|
+
bankStatementRequired: "Please upload at least one bank statement",
|
|
95
|
+
signatureRequired: "Please provide your signature",
|
|
96
|
+
submissionFailed: "Failed to submit application. Please try again.",
|
|
97
|
+
noRestaurant: "No restaurant selected. Please select a restaurant first."
|
|
110
98
|
},
|
|
111
99
|
buttons: {
|
|
112
100
|
cancel: "Cancel",
|
|
113
|
-
submit: "Submit Application"
|
|
101
|
+
submit: "Submit Application",
|
|
102
|
+
addBankStatement: "Add Another Bank Statement"
|
|
114
103
|
},
|
|
115
104
|
confirm: {
|
|
116
105
|
title: "Confirm Submission",
|
|
@@ -118,6 +107,17 @@ const Ln = {
|
|
|
118
107
|
cancel: "Cancel",
|
|
119
108
|
confirm: "Submit"
|
|
120
109
|
}
|
|
110
|
+
},
|
|
111
|
+
upload: {
|
|
112
|
+
preview: "Preview"
|
|
113
|
+
},
|
|
114
|
+
signature: {
|
|
115
|
+
clearSignature: "Clear Signature",
|
|
116
|
+
clickToAdd: "Click to add signature",
|
|
117
|
+
dialogTitle: "Signature",
|
|
118
|
+
saveBefore: "Please save your signature before closing",
|
|
119
|
+
clear: "Clear",
|
|
120
|
+
saveSignature: "Save Signature"
|
|
121
121
|
}
|
|
122
122
|
}, Mn = {
|
|
123
123
|
financing: Ln
|
|
@@ -127,13 +127,8 @@ const Ln = {
|
|
|
127
127
|
application: "申请"
|
|
128
128
|
},
|
|
129
129
|
components: {
|
|
130
|
-
restaurant: "餐厅",
|
|
131
130
|
select: "选择"
|
|
132
131
|
},
|
|
133
|
-
infoCard: {
|
|
134
|
-
title: "为您的POS系统申请融资",
|
|
135
|
-
description: "立即升级您的业务运营,而不会耗尽您的重要现金储备。通过为您的销售点系统融资,您可以将沉重的预付成本转化为可管理的、可预测的每月付款,让您的工作资本可以自由用于库存、营销和意外支出。这种明智的投资策略让您立即获得简化效率并推动销售的顶级技术,有效地让系统通过其产生的增长来支付自身。"
|
|
136
|
-
},
|
|
137
132
|
stepper: {
|
|
138
133
|
title: "POS融资先决条件",
|
|
139
134
|
description: "完成以下步骤以准备好您的POS融资。",
|
|
@@ -153,7 +148,7 @@ const Ln = {
|
|
|
153
148
|
description: "验证您的收款账户和支付网关"
|
|
154
149
|
},
|
|
155
150
|
apply: {
|
|
156
|
-
title: "
|
|
151
|
+
title: "融资申请提交",
|
|
157
152
|
description: "提交您的申请",
|
|
158
153
|
button: "提交申请"
|
|
159
154
|
},
|
|
@@ -168,26 +163,19 @@ const Ln = {
|
|
|
168
163
|
}
|
|
169
164
|
},
|
|
170
165
|
dashboard: {
|
|
171
|
-
totalLoan: "贷款总额",
|
|
172
|
-
totalPaid: "已支付总额",
|
|
173
|
-
remainingBalance: "剩余余额",
|
|
174
|
-
repaymentProgress: "还款进度",
|
|
175
166
|
payments: "期数",
|
|
176
|
-
completed: "已完成",
|
|
177
|
-
upcomingPayments: "即将到期的付款",
|
|
178
|
-
dueDate: "到期日",
|
|
179
|
-
allPaid: "恭喜!所有付款已完成。",
|
|
180
|
-
paymentHistory: "付款历史",
|
|
181
167
|
table: {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
168
|
+
date: "日期",
|
|
169
|
+
referenceId: "参考编号",
|
|
170
|
+
type: "类型",
|
|
171
|
+
amount: "金额"
|
|
186
172
|
},
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
173
|
+
transactionType: {
|
|
174
|
+
deposit: "钱包:手动存款",
|
|
175
|
+
repaymentBalance: "还款:钱包",
|
|
176
|
+
arrearsRepaymentBalance: "欠款偿还:钱包",
|
|
177
|
+
repaymentSales: "还款:销售",
|
|
178
|
+
arrearsRepaymentSales: "欠款偿还:销售"
|
|
191
179
|
},
|
|
192
180
|
principalLoan: "本金贷款",
|
|
193
181
|
paidAmount: "已付金额",
|
|
@@ -195,41 +183,42 @@ const Ln = {
|
|
|
195
183
|
lastUpdated: "最后更新"
|
|
196
184
|
},
|
|
197
185
|
apply: {
|
|
198
|
-
title: "
|
|
186
|
+
title: "融资申请表",
|
|
199
187
|
description: "填写以下详情以申请融资。",
|
|
200
188
|
sections: {
|
|
201
189
|
business: "商业信息",
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
190
|
+
businessDocument: "商业文件",
|
|
191
|
+
documents: "银行对账单",
|
|
192
|
+
signature: "声明与签名"
|
|
205
193
|
},
|
|
206
194
|
fields: {
|
|
207
195
|
businessName: "商业名称",
|
|
208
196
|
businessNamePlaceholder: "输入您的商业名称",
|
|
209
197
|
registrationNumber: "商业注册号码",
|
|
210
|
-
registrationNumberPlaceholder: "
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
loanPurposePlaceholder: "描述贷款用途",
|
|
221
|
-
ssmCertificate: "SSM证书",
|
|
222
|
-
bankStatement: "银行对账单(最近3个月)",
|
|
223
|
-
financialStatement: "财务报表"
|
|
198
|
+
registrationNumberPlaceholder: "输入注册号码(例如:202001012345)",
|
|
199
|
+
businessAddress: "商业地址",
|
|
200
|
+
businessAddressPlaceholder: "输入您的完整商业地址",
|
|
201
|
+
taxIdentificationNo: "税务识别号 (TIN)",
|
|
202
|
+
taxIdentificationNoPlaceholder: "输入您的税务识别号",
|
|
203
|
+
businessRegistration: "商业注册文件",
|
|
204
|
+
bankStatement: "银行对账单",
|
|
205
|
+
signature: "签名",
|
|
206
|
+
signatoryName: "签署人姓名",
|
|
207
|
+
signatoryPosition: "签署人职位"
|
|
224
208
|
},
|
|
209
|
+
success: "申请提交成功",
|
|
225
210
|
errors: {
|
|
226
211
|
required: "此字段为必填项",
|
|
227
|
-
|
|
228
|
-
|
|
212
|
+
businessRegistrationRequired: "请上传您的商业注册文件",
|
|
213
|
+
bankStatementRequired: "请上传至少一份银行对账单",
|
|
214
|
+
signatureRequired: "请提供您的签名",
|
|
215
|
+
submissionFailed: "提交申请失败。请重试。",
|
|
216
|
+
noRestaurant: "未选择餐厅。请先选择一个餐厅。"
|
|
229
217
|
},
|
|
230
218
|
buttons: {
|
|
231
219
|
cancel: "取消",
|
|
232
|
-
submit: "提交申请"
|
|
220
|
+
submit: "提交申请",
|
|
221
|
+
addBankStatement: "添加另一份银行对账单"
|
|
233
222
|
},
|
|
234
223
|
confirm: {
|
|
235
224
|
title: "确认提交",
|
|
@@ -237,6 +226,17 @@ const Ln = {
|
|
|
237
226
|
cancel: "取消",
|
|
238
227
|
confirm: "提交"
|
|
239
228
|
}
|
|
229
|
+
},
|
|
230
|
+
upload: {
|
|
231
|
+
preview: "预览"
|
|
232
|
+
},
|
|
233
|
+
signature: {
|
|
234
|
+
clearSignature: "清除签名",
|
|
235
|
+
clickToAdd: "点击添加签名",
|
|
236
|
+
dialogTitle: "签名",
|
|
237
|
+
saveBefore: "请在关闭前保存您的签名",
|
|
238
|
+
clear: "清除",
|
|
239
|
+
saveSignature: "保存签名"
|
|
240
240
|
}
|
|
241
241
|
}, xn = {
|
|
242
242
|
financing: Un
|
|
@@ -248,7 +248,7 @@ const Ln = {
|
|
|
248
248
|
{
|
|
249
249
|
path: "/application",
|
|
250
250
|
name: "mf-financing-application",
|
|
251
|
-
component: () => import("./Application-
|
|
251
|
+
component: () => import("./Application-BvrkS3zh.js"),
|
|
252
252
|
meta: {
|
|
253
253
|
sidebarDisplay: "i18n:financing.routes.application"
|
|
254
254
|
}
|
|
@@ -256,7 +256,7 @@ const Ln = {
|
|
|
256
256
|
{
|
|
257
257
|
path: "/application/submission",
|
|
258
258
|
name: "mf-financing-application-submission",
|
|
259
|
-
component: () => import("./Submission-
|
|
259
|
+
component: () => import("./Submission-BvbhttQO.js")
|
|
260
260
|
}
|
|
261
261
|
];
|
|
262
262
|
bn({
|
|
@@ -315,7 +315,7 @@ const At = function(n) {
|
|
|
315
315
|
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);
|
|
316
316
|
}
|
|
317
317
|
return e;
|
|
318
|
-
},
|
|
318
|
+
}, $n = function(n) {
|
|
319
319
|
const e = [];
|
|
320
320
|
let t = 0, r = 0;
|
|
321
321
|
for (; t < n.length; ) {
|
|
@@ -334,7 +334,7 @@ const At = function(n) {
|
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
return e.join("");
|
|
337
|
-
},
|
|
337
|
+
}, kt = {
|
|
338
338
|
/**
|
|
339
339
|
* Maps bytes to characters.
|
|
340
340
|
*/
|
|
@@ -419,7 +419,7 @@ const At = function(n) {
|
|
|
419
419
|
* @return string representing the decoded value.
|
|
420
420
|
*/
|
|
421
421
|
decodeString(n, e) {
|
|
422
|
-
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) :
|
|
422
|
+
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : $n(this.decodeStringToByteArray(n, e));
|
|
423
423
|
},
|
|
424
424
|
/**
|
|
425
425
|
* Base64-decode a string.
|
|
@@ -446,7 +446,7 @@ const At = function(n) {
|
|
|
446
446
|
++i;
|
|
447
447
|
const f = i < n.length ? t[n.charAt(i)] : 64;
|
|
448
448
|
if (++i, s == null || c == null || l == null || f == null)
|
|
449
|
-
throw new
|
|
449
|
+
throw new Hn();
|
|
450
450
|
const m = s << 2 | c >> 4;
|
|
451
451
|
if (r.push(m), l !== 64) {
|
|
452
452
|
const v = c << 4 & 240 | l >> 2;
|
|
@@ -471,19 +471,19 @@ const At = function(n) {
|
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
};
|
|
474
|
-
class
|
|
474
|
+
class Hn extends Error {
|
|
475
475
|
constructor() {
|
|
476
476
|
super(...arguments), this.name = "DecodeBase64StringError";
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
const Vn = function(n) {
|
|
480
480
|
const e = At(n);
|
|
481
|
-
return
|
|
481
|
+
return kt.encodeByteArray(e, !0);
|
|
482
482
|
}, Ct = function(n) {
|
|
483
483
|
return Vn(n).replace(/\./g, "");
|
|
484
|
-
},
|
|
484
|
+
}, Rt = function(n) {
|
|
485
485
|
try {
|
|
486
|
-
return
|
|
486
|
+
return kt.decodeString(n, !0);
|
|
487
487
|
} catch (e) {
|
|
488
488
|
console.error("base64Decode failed: ", e);
|
|
489
489
|
}
|
|
@@ -545,7 +545,7 @@ const Wn = () => jn().__FIREBASE_DEFAULTS__, zn = () => {
|
|
|
545
545
|
} catch {
|
|
546
546
|
return;
|
|
547
547
|
}
|
|
548
|
-
const e = n &&
|
|
548
|
+
const e = n && Rt(n[1]);
|
|
549
549
|
return e && JSON.parse(e);
|
|
550
550
|
}, Be = () => {
|
|
551
551
|
try {
|
|
@@ -557,7 +557,7 @@ const Wn = () => jn().__FIREBASE_DEFAULTS__, zn = () => {
|
|
|
557
557
|
}, qn = (n) => {
|
|
558
558
|
var e, t;
|
|
559
559
|
return (t = (e = Be()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
|
|
560
|
-
},
|
|
560
|
+
}, Pt = () => {
|
|
561
561
|
var n;
|
|
562
562
|
return (n = Be()) === null || n === void 0 ? void 0 : n.config;
|
|
563
563
|
}, Ot = (n) => {
|
|
@@ -1256,7 +1256,7 @@ function yr() {
|
|
|
1256
1256
|
IDBCursor.prototype.continuePrimaryKey
|
|
1257
1257
|
]);
|
|
1258
1258
|
}
|
|
1259
|
-
const Dt = /* @__PURE__ */ new WeakMap(),
|
|
1259
|
+
const Dt = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap();
|
|
1260
1260
|
function Ir(n) {
|
|
1261
1261
|
const e = new Promise((t, r) => {
|
|
1262
1262
|
const i = () => {
|
|
@@ -1274,7 +1274,7 @@ function Ir(n) {
|
|
|
1274
1274
|
}), Fe.set(e, n), e;
|
|
1275
1275
|
}
|
|
1276
1276
|
function br(n) {
|
|
1277
|
-
if (
|
|
1277
|
+
if (Pe.has(n))
|
|
1278
1278
|
return;
|
|
1279
1279
|
const e = new Promise((t, r) => {
|
|
1280
1280
|
const i = () => {
|
|
@@ -1286,13 +1286,13 @@ function br(n) {
|
|
|
1286
1286
|
};
|
|
1287
1287
|
n.addEventListener("complete", s), n.addEventListener("error", o), n.addEventListener("abort", o);
|
|
1288
1288
|
});
|
|
1289
|
-
|
|
1289
|
+
Pe.set(n, e);
|
|
1290
1290
|
}
|
|
1291
1291
|
let Oe = {
|
|
1292
1292
|
get(n, e, t) {
|
|
1293
1293
|
if (n instanceof IDBTransaction) {
|
|
1294
1294
|
if (e === "done")
|
|
1295
|
-
return
|
|
1295
|
+
return Pe.get(n);
|
|
1296
1296
|
if (e === "objectStoreNames")
|
|
1297
1297
|
return n.objectStoreNames || Lt.get(n);
|
|
1298
1298
|
if (e === "store")
|
|
@@ -1346,13 +1346,13 @@ function Sr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
|
1346
1346
|
}).catch(() => {
|
|
1347
1347
|
}), c;
|
|
1348
1348
|
}
|
|
1349
|
-
const Ar = ["get", "getKey", "getAll", "getAllKeys", "count"],
|
|
1349
|
+
const Ar = ["get", "getKey", "getAll", "getAllKeys", "count"], kr = ["put", "add", "delete", "clear"], Ae = /* @__PURE__ */ new Map();
|
|
1350
1350
|
function rt(n, e) {
|
|
1351
1351
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
|
1352
1352
|
return;
|
|
1353
1353
|
if (Ae.get(e))
|
|
1354
1354
|
return Ae.get(e);
|
|
1355
|
-
const t = e.replace(/FromIndex$/, ""), r = e !== t, i =
|
|
1355
|
+
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = kr.includes(t);
|
|
1356
1356
|
if (
|
|
1357
1357
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
1358
1358
|
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || Ar.includes(t))
|
|
@@ -1397,7 +1397,7 @@ class Cr {
|
|
|
1397
1397
|
// auth token refresh, and installations will send this string.
|
|
1398
1398
|
getPlatformInfoString() {
|
|
1399
1399
|
return this.container.getProviders().map((t) => {
|
|
1400
|
-
if (
|
|
1400
|
+
if (Rr(t)) {
|
|
1401
1401
|
const r = t.getImmediate();
|
|
1402
1402
|
return `${r.library}/${r.version}`;
|
|
1403
1403
|
} else
|
|
@@ -1405,7 +1405,7 @@ class Cr {
|
|
|
1405
1405
|
}).filter((t) => t).join(" ");
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function Rr(n) {
|
|
1409
1409
|
const e = n.getComponent();
|
|
1410
1410
|
return (e == null ? void 0 : e.type) === "VERSION";
|
|
1411
1411
|
}
|
|
@@ -1426,7 +1426,7 @@ const Ne = "@firebase/app", it = "0.10.13";
|
|
|
1426
1426
|
* See the License for the specific language governing permissions and
|
|
1427
1427
|
* limitations under the License.
|
|
1428
1428
|
*/
|
|
1429
|
-
const E = new Nt("@firebase/app"),
|
|
1429
|
+
const E = new Nt("@firebase/app"), Pr = "@firebase/app-compat", Or = "@firebase/analytics-compat", Nr = "@firebase/analytics", Dr = "@firebase/app-check-compat", Lr = "@firebase/app-check", Mr = "@firebase/auth", Ur = "@firebase/auth-compat", xr = "@firebase/database", Br = "@firebase/data-connect", Fr = "@firebase/database-compat", $r = "@firebase/functions", Hr = "@firebase/functions-compat", Vr = "@firebase/installations", jr = "@firebase/installations-compat", Wr = "@firebase/messaging", zr = "@firebase/messaging-compat", Gr = "@firebase/performance", qr = "@firebase/performance-compat", Kr = "@firebase/remote-config", Jr = "@firebase/remote-config-compat", Yr = "@firebase/storage", Xr = "@firebase/storage-compat", Qr = "@firebase/firestore", Zr = "@firebase/vertexai-preview", ei = "@firebase/firestore-compat", ti = "firebase", ni = "10.14.1";
|
|
1430
1430
|
/**
|
|
1431
1431
|
* @license
|
|
1432
1432
|
* Copyright 2019 Google LLC
|
|
@@ -1445,7 +1445,7 @@ const E = new Nt("@firebase/app"), Rr = "@firebase/app-compat", Or = "@firebase/
|
|
|
1445
1445
|
*/
|
|
1446
1446
|
const De = "[DEFAULT]", ri = {
|
|
1447
1447
|
[Ne]: "fire-core",
|
|
1448
|
-
[
|
|
1448
|
+
[Pr]: "fire-core-compat",
|
|
1449
1449
|
[Nr]: "fire-analytics",
|
|
1450
1450
|
[Or]: "fire-analytics-compat",
|
|
1451
1451
|
[Lr]: "fire-app-check",
|
|
@@ -1455,8 +1455,8 @@ const De = "[DEFAULT]", ri = {
|
|
|
1455
1455
|
[xr]: "fire-rtdb",
|
|
1456
1456
|
[Br]: "fire-data-connect",
|
|
1457
1457
|
[Fr]: "fire-rtdb-compat",
|
|
1458
|
-
[
|
|
1459
|
-
[
|
|
1458
|
+
[$r]: "fire-fn",
|
|
1459
|
+
[Hr]: "fire-fn-compat",
|
|
1460
1460
|
[Vr]: "fire-iid",
|
|
1461
1461
|
[jr]: "fire-iid-compat",
|
|
1462
1462
|
[Wr]: "fire-fcm",
|
|
@@ -1630,7 +1630,7 @@ function Ut(n, e = {}) {
|
|
|
1630
1630
|
throw N.create("bad-app-name", {
|
|
1631
1631
|
appName: String(i)
|
|
1632
1632
|
});
|
|
1633
|
-
if (t || (t =
|
|
1633
|
+
if (t || (t = Pt()), !t)
|
|
1634
1634
|
throw N.create(
|
|
1635
1635
|
"no-options"
|
|
1636
1636
|
/* AppError.NO_OPTIONS */
|
|
@@ -1649,13 +1649,13 @@ function Ut(n, e = {}) {
|
|
|
1649
1649
|
}
|
|
1650
1650
|
function ai(n = De) {
|
|
1651
1651
|
const e = le.get(n);
|
|
1652
|
-
if (!e && n === De &&
|
|
1652
|
+
if (!e && n === De && Pt())
|
|
1653
1653
|
return Ut();
|
|
1654
1654
|
if (!e)
|
|
1655
1655
|
throw N.create("no-app", { appName: n });
|
|
1656
1656
|
return e;
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1658
|
+
function $(n, e, t) {
|
|
1659
1659
|
var r;
|
|
1660
1660
|
let i = (r = ri[n]) !== null && r !== void 0 ? r : n;
|
|
1661
1661
|
t && (i += `-${t}`);
|
|
@@ -1691,9 +1691,9 @@ function H(n, e, t) {
|
|
|
1691
1691
|
* limitations under the License.
|
|
1692
1692
|
*/
|
|
1693
1693
|
const ci = "firebase-heartbeat-database", li = 1, J = "firebase-heartbeat-store";
|
|
1694
|
-
let
|
|
1694
|
+
let ke = null;
|
|
1695
1695
|
function xt() {
|
|
1696
|
-
return
|
|
1696
|
+
return ke || (ke = Sr(ci, li, {
|
|
1697
1697
|
upgrade: (n, e) => {
|
|
1698
1698
|
switch (e) {
|
|
1699
1699
|
case 0:
|
|
@@ -1708,7 +1708,7 @@ function xt() {
|
|
|
1708
1708
|
throw N.create("idb-open", {
|
|
1709
1709
|
originalErrorMessage: n.message
|
|
1710
1710
|
});
|
|
1711
|
-
})),
|
|
1711
|
+
})), ke;
|
|
1712
1712
|
}
|
|
1713
1713
|
async function ui(n) {
|
|
1714
1714
|
try {
|
|
@@ -1909,7 +1909,7 @@ function gi(n) {
|
|
|
1909
1909
|
(e) => new fi(e),
|
|
1910
1910
|
"PRIVATE"
|
|
1911
1911
|
/* ComponentType.PRIVATE */
|
|
1912
|
-
)),
|
|
1912
|
+
)), $(Ne, it, n), $(Ne, it, "esm2017"), $("fire-js", "");
|
|
1913
1913
|
}
|
|
1914
1914
|
gi("");
|
|
1915
1915
|
var _i = "firebase", vi = "10.14.1";
|
|
@@ -1929,8 +1929,8 @@ var _i = "firebase", vi = "10.14.1";
|
|
|
1929
1929
|
* See the License for the specific language governing permissions and
|
|
1930
1930
|
* limitations under the License.
|
|
1931
1931
|
*/
|
|
1932
|
-
|
|
1933
|
-
function
|
|
1932
|
+
$(_i, vi, "app");
|
|
1933
|
+
function $e(n, e) {
|
|
1934
1934
|
var t = {};
|
|
1935
1935
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
|
|
1936
1936
|
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -1943,7 +1943,7 @@ function Ft() {
|
|
|
1943
1943
|
"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."
|
|
1944
1944
|
};
|
|
1945
1945
|
}
|
|
1946
|
-
const yi = Ft,
|
|
1946
|
+
const yi = Ft, $t = new X("auth", "Firebase", Ft());
|
|
1947
1947
|
/**
|
|
1948
1948
|
* @license
|
|
1949
1949
|
* Copyright 2020 Google LLC
|
|
@@ -1984,30 +1984,30 @@ function ie(n, ...e) {
|
|
|
1984
1984
|
* limitations under the License.
|
|
1985
1985
|
*/
|
|
1986
1986
|
function T(n, ...e) {
|
|
1987
|
-
throw
|
|
1987
|
+
throw He(n, ...e);
|
|
1988
1988
|
}
|
|
1989
1989
|
function g(n, ...e) {
|
|
1990
|
-
return
|
|
1990
|
+
return He(n, ...e);
|
|
1991
1991
|
}
|
|
1992
|
-
function
|
|
1992
|
+
function Ht(n, e, t) {
|
|
1993
1993
|
const r = Object.assign(Object.assign({}, yi()), { [e]: t });
|
|
1994
1994
|
return new X("auth", "Firebase", r).create(e, {
|
|
1995
1995
|
appName: n.name
|
|
1996
1996
|
});
|
|
1997
1997
|
}
|
|
1998
1998
|
function D(n) {
|
|
1999
|
-
return
|
|
1999
|
+
return Ht(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2001
|
+
function He(n, ...e) {
|
|
2002
2002
|
if (typeof n != "string") {
|
|
2003
2003
|
const t = e[0], r = [...e.slice(1)];
|
|
2004
2004
|
return r[0] && (r[0].appName = n.name), n._errorFactory.create(t, ...r);
|
|
2005
2005
|
}
|
|
2006
|
-
return
|
|
2006
|
+
return $t.create(n, ...e);
|
|
2007
2007
|
}
|
|
2008
2008
|
function u(n, e, ...t) {
|
|
2009
2009
|
if (!n)
|
|
2010
|
-
throw
|
|
2010
|
+
throw He(e, ...t);
|
|
2011
2011
|
}
|
|
2012
2012
|
function I(n) {
|
|
2013
2013
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
|
@@ -2334,7 +2334,7 @@ async function jt(n, e, t) {
|
|
|
2334
2334
|
throw re(n, "user-disabled", o);
|
|
2335
2335
|
const d = r[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
|
|
2336
2336
|
if (l)
|
|
2337
|
-
throw
|
|
2337
|
+
throw Ht(n, d, l);
|
|
2338
2338
|
T(n, d);
|
|
2339
2339
|
}
|
|
2340
2340
|
} catch (i) {
|
|
@@ -2391,7 +2391,7 @@ function re(n, e, t) {
|
|
|
2391
2391
|
* See the License for the specific language governing permissions and
|
|
2392
2392
|
* limitations under the License.
|
|
2393
2393
|
*/
|
|
2394
|
-
async function
|
|
2394
|
+
async function ki(n, e) {
|
|
2395
2395
|
return G(n, "POST", "/v1/accounts:delete", e);
|
|
2396
2396
|
}
|
|
2397
2397
|
async function Gt(n, e) {
|
|
@@ -2449,7 +2449,7 @@ function je(n) {
|
|
|
2449
2449
|
if (e === void 0 || t === void 0 || r === void 0)
|
|
2450
2450
|
return ie("JWT malformed, contained fewer than 3 sections"), null;
|
|
2451
2451
|
try {
|
|
2452
|
-
const i =
|
|
2452
|
+
const i = Rt(t);
|
|
2453
2453
|
return i ? JSON.parse(i) : (ie("Failed to decode base64 JWT payload"), null);
|
|
2454
2454
|
} catch (i) {
|
|
2455
2455
|
return ie("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
|
|
@@ -2493,10 +2493,10 @@ async function Y(n, e, t = !1) {
|
|
|
2493
2493
|
try {
|
|
2494
2494
|
return await e;
|
|
2495
2495
|
} catch (r) {
|
|
2496
|
-
throw r instanceof L &&
|
|
2496
|
+
throw r instanceof L && Ri(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
|
|
2497
2497
|
}
|
|
2498
2498
|
}
|
|
2499
|
-
function
|
|
2499
|
+
function Ri({ code: n }) {
|
|
2500
2500
|
return n === "auth/user-disabled" || n === "auth/user-token-expired";
|
|
2501
2501
|
}
|
|
2502
2502
|
/**
|
|
@@ -2515,7 +2515,7 @@ function ki({ code: n }) {
|
|
|
2515
2515
|
* See the License for the specific language governing permissions and
|
|
2516
2516
|
* limitations under the License.
|
|
2517
2517
|
*/
|
|
2518
|
-
class
|
|
2518
|
+
class Pi {
|
|
2519
2519
|
constructor(e) {
|
|
2520
2520
|
this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
|
|
2521
2521
|
}
|
|
@@ -2644,7 +2644,7 @@ function Ni(n, e) {
|
|
|
2644
2644
|
}
|
|
2645
2645
|
function qt(n) {
|
|
2646
2646
|
return n.map((e) => {
|
|
2647
|
-
var { providerId: t } = e, r =
|
|
2647
|
+
var { providerId: t } = e, r = $e(e, ["providerId"]);
|
|
2648
2648
|
return {
|
|
2649
2649
|
providerId: t,
|
|
2650
2650
|
uid: r.rawId || "",
|
|
@@ -2711,7 +2711,7 @@ async function Li(n, e) {
|
|
|
2711
2711
|
* See the License for the specific language governing permissions and
|
|
2712
2712
|
* limitations under the License.
|
|
2713
2713
|
*/
|
|
2714
|
-
class
|
|
2714
|
+
class H {
|
|
2715
2715
|
constructor() {
|
|
2716
2716
|
this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
|
|
2717
2717
|
}
|
|
@@ -2763,7 +2763,7 @@ class $ {
|
|
|
2763
2763
|
this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + r * 1e3;
|
|
2764
2764
|
}
|
|
2765
2765
|
static fromJSON(e, t) {
|
|
2766
|
-
const { refreshToken: r, accessToken: i, expirationTime: s } = t, o = new
|
|
2766
|
+
const { refreshToken: r, accessToken: i, expirationTime: s } = t, o = new H();
|
|
2767
2767
|
return r && (u(typeof r == "string", "internal-error", {
|
|
2768
2768
|
appName: e
|
|
2769
2769
|
}), o.refreshToken = r), i && (u(typeof i == "string", "internal-error", {
|
|
@@ -2783,7 +2783,7 @@ class $ {
|
|
|
2783
2783
|
this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
|
|
2784
2784
|
}
|
|
2785
2785
|
_clone() {
|
|
2786
|
-
return Object.assign(new
|
|
2786
|
+
return Object.assign(new H(), this.toJSON());
|
|
2787
2787
|
}
|
|
2788
2788
|
_performRefresh() {
|
|
2789
2789
|
return I("not implemented");
|
|
@@ -2810,8 +2810,8 @@ function A(n, e) {
|
|
|
2810
2810
|
}
|
|
2811
2811
|
class b {
|
|
2812
2812
|
constructor(e) {
|
|
2813
|
-
var { uid: t, auth: r, stsTokenManager: i } = e, s =
|
|
2814
|
-
this.providerId = "firebase", this.proactiveRefresh = new
|
|
2813
|
+
var { uid: t, auth: r, stsTokenManager: i } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
|
|
2814
|
+
this.providerId = "firebase", this.proactiveRefresh = new Pi(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 Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
|
|
2815
2815
|
}
|
|
2816
2816
|
async getIdToken(e) {
|
|
2817
2817
|
const t = await Y(this, this.stsTokenManager.getToken(this.auth, e));
|
|
@@ -2865,7 +2865,7 @@ class b {
|
|
|
2865
2865
|
if (y(this.auth.app))
|
|
2866
2866
|
return Promise.reject(D(this.auth));
|
|
2867
2867
|
const e = await this.getIdToken();
|
|
2868
|
-
return await Y(this,
|
|
2868
|
+
return await Y(this, ki(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
2869
2869
|
}
|
|
2870
2870
|
toJSON() {
|
|
2871
2871
|
return Object.assign(Object.assign({
|
|
@@ -2900,7 +2900,7 @@ class b {
|
|
|
2900
2900
|
"internal-error"
|
|
2901
2901
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
2902
2902
|
);
|
|
2903
|
-
const yn =
|
|
2903
|
+
const yn = H.fromJSON(this.name, Ze);
|
|
2904
2904
|
u(
|
|
2905
2905
|
typeof Ie == "string",
|
|
2906
2906
|
e,
|
|
@@ -2939,7 +2939,7 @@ class b {
|
|
|
2939
2939
|
* @param idTokenResponse
|
|
2940
2940
|
*/
|
|
2941
2941
|
static async _fromIdTokenResponse(e, t, r = !1) {
|
|
2942
|
-
const i = new
|
|
2942
|
+
const i = new H();
|
|
2943
2943
|
i.updateFromServerResponse(t);
|
|
2944
2944
|
const s = new b({
|
|
2945
2945
|
uid: t.localId,
|
|
@@ -2961,7 +2961,7 @@ class b {
|
|
|
2961
2961
|
"internal-error"
|
|
2962
2962
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
2963
2963
|
);
|
|
2964
|
-
const s = i.providerUserInfo !== void 0 ? qt(i.providerUserInfo) : [], o = !(i.email && i.passwordHash) && !(s != null && s.length), c = new
|
|
2964
|
+
const s = i.providerUserInfo !== void 0 ? qt(i.providerUserInfo) : [], o = !(i.email && i.passwordHash) && !(s != null && s.length), c = new H();
|
|
2965
2965
|
c.updateFromIdToken(r);
|
|
2966
2966
|
const a = new b({
|
|
2967
2967
|
uid: i.localId,
|
|
@@ -3327,7 +3327,7 @@ async function Bi(n, e = {}) {
|
|
|
3327
3327
|
* limitations under the License.
|
|
3328
3328
|
*/
|
|
3329
3329
|
const Fi = 6;
|
|
3330
|
-
class
|
|
3330
|
+
class $i {
|
|
3331
3331
|
constructor(e) {
|
|
3332
3332
|
var t, r, i, s;
|
|
3333
3333
|
const o = e.customStrengthOptions;
|
|
@@ -3414,9 +3414,9 @@ class Hi {
|
|
|
3414
3414
|
* See the License for the specific language governing permissions and
|
|
3415
3415
|
* limitations under the License.
|
|
3416
3416
|
*/
|
|
3417
|
-
class
|
|
3417
|
+
class Hi {
|
|
3418
3418
|
constructor(e, t, r, i) {
|
|
3419
|
-
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 pt(this), this.idTokenSubscription = new pt(this), this.beforeStateQueue = new xi(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 =
|
|
3419
|
+
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 pt(this), this.idTokenSubscription = new pt(this), this.beforeStateQueue = new xi(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 = $t, 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;
|
|
3420
3420
|
}
|
|
3421
3421
|
_initializeWithPersistence(e, t) {
|
|
3422
3422
|
return t && (this._popupRedirectResolver = w(t)), this._initializationPromise = this.queue(async () => {
|
|
@@ -3561,7 +3561,7 @@ class $i {
|
|
|
3561
3561
|
return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
|
|
3562
3562
|
}
|
|
3563
3563
|
async _updatePasswordPolicy() {
|
|
3564
|
-
const e = await Bi(this), t = new
|
|
3564
|
+
const e = await Bi(this), t = new $i(e);
|
|
3565
3565
|
this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
|
|
3566
3566
|
}
|
|
3567
3567
|
_getPersistence() {
|
|
@@ -3996,7 +3996,7 @@ class U extends on {
|
|
|
3996
3996
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
|
3997
3997
|
*/
|
|
3998
3998
|
static fromJSON(e) {
|
|
3999
|
-
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s =
|
|
3999
|
+
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = $e(t, ["providerId", "signInMethod"]);
|
|
4000
4000
|
if (!r || !i)
|
|
4001
4001
|
return null;
|
|
4002
4002
|
const o = new U(r, i);
|
|
@@ -4135,7 +4135,7 @@ class te extends an {
|
|
|
4135
4135
|
* See the License for the specific language governing permissions and
|
|
4136
4136
|
* limitations under the License.
|
|
4137
4137
|
*/
|
|
4138
|
-
class
|
|
4138
|
+
class k extends te {
|
|
4139
4139
|
constructor() {
|
|
4140
4140
|
super(
|
|
4141
4141
|
"facebook.com"
|
|
@@ -4156,8 +4156,8 @@ class P extends te {
|
|
|
4156
4156
|
*/
|
|
4157
4157
|
static credential(e) {
|
|
4158
4158
|
return U._fromParams({
|
|
4159
|
-
providerId:
|
|
4160
|
-
signInMethod:
|
|
4159
|
+
providerId: k.PROVIDER_ID,
|
|
4160
|
+
signInMethod: k.FACEBOOK_SIGN_IN_METHOD,
|
|
4161
4161
|
accessToken: e
|
|
4162
4162
|
});
|
|
4163
4163
|
}
|
|
@@ -4167,7 +4167,7 @@ class P extends te {
|
|
|
4167
4167
|
* @param userCredential - The user credential.
|
|
4168
4168
|
*/
|
|
4169
4169
|
static credentialFromResult(e) {
|
|
4170
|
-
return
|
|
4170
|
+
return k.credentialFromTaggedObject(e);
|
|
4171
4171
|
}
|
|
4172
4172
|
/**
|
|
4173
4173
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -4176,20 +4176,20 @@ class P extends te {
|
|
|
4176
4176
|
* @param userCredential - The user credential.
|
|
4177
4177
|
*/
|
|
4178
4178
|
static credentialFromError(e) {
|
|
4179
|
-
return
|
|
4179
|
+
return k.credentialFromTaggedObject(e.customData || {});
|
|
4180
4180
|
}
|
|
4181
4181
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
|
4182
4182
|
if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
|
|
4183
4183
|
return null;
|
|
4184
4184
|
try {
|
|
4185
|
-
return
|
|
4185
|
+
return k.credential(e.oauthAccessToken);
|
|
4186
4186
|
} catch {
|
|
4187
4187
|
return null;
|
|
4188
4188
|
}
|
|
4189
4189
|
}
|
|
4190
4190
|
}
|
|
4191
|
-
|
|
4192
|
-
|
|
4191
|
+
k.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
|
|
4192
|
+
k.PROVIDER_ID = "facebook.com";
|
|
4193
4193
|
/**
|
|
4194
4194
|
* @license
|
|
4195
4195
|
* Copyright 2020 Google LLC
|
|
@@ -4282,7 +4282,7 @@ C.PROVIDER_ID = "google.com";
|
|
|
4282
4282
|
* See the License for the specific language governing permissions and
|
|
4283
4283
|
* limitations under the License.
|
|
4284
4284
|
*/
|
|
4285
|
-
class
|
|
4285
|
+
class R extends te {
|
|
4286
4286
|
constructor() {
|
|
4287
4287
|
super(
|
|
4288
4288
|
"github.com"
|
|
@@ -4296,8 +4296,8 @@ class k extends te {
|
|
|
4296
4296
|
*/
|
|
4297
4297
|
static credential(e) {
|
|
4298
4298
|
return U._fromParams({
|
|
4299
|
-
providerId:
|
|
4300
|
-
signInMethod:
|
|
4299
|
+
providerId: R.PROVIDER_ID,
|
|
4300
|
+
signInMethod: R.GITHUB_SIGN_IN_METHOD,
|
|
4301
4301
|
accessToken: e
|
|
4302
4302
|
});
|
|
4303
4303
|
}
|
|
@@ -4307,7 +4307,7 @@ class k extends te {
|
|
|
4307
4307
|
* @param userCredential - The user credential.
|
|
4308
4308
|
*/
|
|
4309
4309
|
static credentialFromResult(e) {
|
|
4310
|
-
return
|
|
4310
|
+
return R.credentialFromTaggedObject(e);
|
|
4311
4311
|
}
|
|
4312
4312
|
/**
|
|
4313
4313
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -4316,20 +4316,20 @@ class k extends te {
|
|
|
4316
4316
|
* @param userCredential - The user credential.
|
|
4317
4317
|
*/
|
|
4318
4318
|
static credentialFromError(e) {
|
|
4319
|
-
return
|
|
4319
|
+
return R.credentialFromTaggedObject(e.customData || {});
|
|
4320
4320
|
}
|
|
4321
4321
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
|
4322
4322
|
if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
|
|
4323
4323
|
return null;
|
|
4324
4324
|
try {
|
|
4325
|
-
return
|
|
4325
|
+
return R.credential(e.oauthAccessToken);
|
|
4326
4326
|
} catch {
|
|
4327
4327
|
return null;
|
|
4328
4328
|
}
|
|
4329
4329
|
}
|
|
4330
4330
|
}
|
|
4331
|
-
|
|
4332
|
-
|
|
4331
|
+
R.GITHUB_SIGN_IN_METHOD = "github.com";
|
|
4332
|
+
R.PROVIDER_ID = "github.com";
|
|
4333
4333
|
/**
|
|
4334
4334
|
* @license
|
|
4335
4335
|
* Copyright 2020 Google LLC
|
|
@@ -4346,7 +4346,7 @@ k.PROVIDER_ID = "github.com";
|
|
|
4346
4346
|
* See the License for the specific language governing permissions and
|
|
4347
4347
|
* limitations under the License.
|
|
4348
4348
|
*/
|
|
4349
|
-
class
|
|
4349
|
+
class P extends te {
|
|
4350
4350
|
constructor() {
|
|
4351
4351
|
super(
|
|
4352
4352
|
"twitter.com"
|
|
@@ -4361,8 +4361,8 @@ class R extends te {
|
|
|
4361
4361
|
*/
|
|
4362
4362
|
static credential(e, t) {
|
|
4363
4363
|
return U._fromParams({
|
|
4364
|
-
providerId:
|
|
4365
|
-
signInMethod:
|
|
4364
|
+
providerId: P.PROVIDER_ID,
|
|
4365
|
+
signInMethod: P.TWITTER_SIGN_IN_METHOD,
|
|
4366
4366
|
oauthToken: e,
|
|
4367
4367
|
oauthTokenSecret: t
|
|
4368
4368
|
});
|
|
@@ -4373,7 +4373,7 @@ class R extends te {
|
|
|
4373
4373
|
* @param userCredential - The user credential.
|
|
4374
4374
|
*/
|
|
4375
4375
|
static credentialFromResult(e) {
|
|
4376
|
-
return
|
|
4376
|
+
return P.credentialFromTaggedObject(e);
|
|
4377
4377
|
}
|
|
4378
4378
|
/**
|
|
4379
4379
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -4382,7 +4382,7 @@ class R extends te {
|
|
|
4382
4382
|
* @param userCredential - The user credential.
|
|
4383
4383
|
*/
|
|
4384
4384
|
static credentialFromError(e) {
|
|
4385
|
-
return
|
|
4385
|
+
return P.credentialFromTaggedObject(e.customData || {});
|
|
4386
4386
|
}
|
|
4387
4387
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
|
4388
4388
|
if (!e)
|
|
@@ -4391,14 +4391,14 @@ class R extends te {
|
|
|
4391
4391
|
if (!t || !r)
|
|
4392
4392
|
return null;
|
|
4393
4393
|
try {
|
|
4394
|
-
return
|
|
4394
|
+
return P.credential(t, r);
|
|
4395
4395
|
} catch {
|
|
4396
4396
|
return null;
|
|
4397
4397
|
}
|
|
4398
4398
|
}
|
|
4399
4399
|
}
|
|
4400
|
-
|
|
4401
|
-
|
|
4400
|
+
P.TWITTER_SIGN_IN_METHOD = "twitter.com";
|
|
4401
|
+
P.PROVIDER_ID = "twitter.com";
|
|
4402
4402
|
/**
|
|
4403
4403
|
* @license
|
|
4404
4404
|
* Copyright 2020 Google LLC
|
|
@@ -5589,7 +5589,7 @@ class As extends _n {
|
|
|
5589
5589
|
let e = oe.get(this.auth._key());
|
|
5590
5590
|
if (!e) {
|
|
5591
5591
|
try {
|
|
5592
|
-
const r = await
|
|
5592
|
+
const r = await ks(this.resolver, this.auth) ? await super.execute() : null;
|
|
5593
5593
|
e = () => Promise.resolve(r);
|
|
5594
5594
|
} catch (t) {
|
|
5595
5595
|
e = () => Promise.reject(t);
|
|
@@ -5617,8 +5617,8 @@ class As extends _n {
|
|
|
5617
5617
|
cleanUp() {
|
|
5618
5618
|
}
|
|
5619
5619
|
}
|
|
5620
|
-
async function
|
|
5621
|
-
const t =
|
|
5620
|
+
async function ks(n, e) {
|
|
5621
|
+
const t = Ps(e), r = Rs(n);
|
|
5622
5622
|
if (!await r._isAvailable())
|
|
5623
5623
|
return !1;
|
|
5624
5624
|
const i = await r._get(t) === "true";
|
|
@@ -5627,10 +5627,10 @@ async function Ps(n, e) {
|
|
|
5627
5627
|
function Cs(n, e) {
|
|
5628
5628
|
oe.set(n._key(), e);
|
|
5629
5629
|
}
|
|
5630
|
-
function
|
|
5630
|
+
function Rs(n) {
|
|
5631
5631
|
return w(n._redirectPersistence);
|
|
5632
5632
|
}
|
|
5633
|
-
function
|
|
5633
|
+
function Ps(n) {
|
|
5634
5634
|
return se(Ss, n.config.apiKey, n.name);
|
|
5635
5635
|
}
|
|
5636
5636
|
async function Os(n, e, t = !1) {
|
|
@@ -5792,7 +5792,7 @@ function Fs(n) {
|
|
|
5792
5792
|
* See the License for the specific language governing permissions and
|
|
5793
5793
|
* limitations under the License.
|
|
5794
5794
|
*/
|
|
5795
|
-
const
|
|
5795
|
+
const $s = new ee(3e4, 6e4);
|
|
5796
5796
|
function It() {
|
|
5797
5797
|
const n = _().___jsl;
|
|
5798
5798
|
if (n != null && n.H) {
|
|
@@ -5802,7 +5802,7 @@ function It() {
|
|
|
5802
5802
|
n.CP[t] = null;
|
|
5803
5803
|
}
|
|
5804
5804
|
}
|
|
5805
|
-
function
|
|
5805
|
+
function Hs(n) {
|
|
5806
5806
|
return new Promise((e, t) => {
|
|
5807
5807
|
var r, i, s;
|
|
5808
5808
|
function o() {
|
|
@@ -5817,7 +5817,7 @@ function $s(n) {
|
|
|
5817
5817
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
5818
5818
|
));
|
|
5819
5819
|
},
|
|
5820
|
-
timeout:
|
|
5820
|
+
timeout: $s.get()
|
|
5821
5821
|
});
|
|
5822
5822
|
}
|
|
5823
5823
|
if (!((i = (r = _().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
|
|
@@ -5840,7 +5840,7 @@ function $s(n) {
|
|
|
5840
5840
|
}
|
|
5841
5841
|
let ae = null;
|
|
5842
5842
|
function Vs(n) {
|
|
5843
|
-
return ae = ae ||
|
|
5843
|
+
return ae = ae || Hs(n), ae;
|
|
5844
5844
|
}
|
|
5845
5845
|
/**
|
|
5846
5846
|
* @license
|
|
@@ -6061,7 +6061,7 @@ function oo({ config: n }) {
|
|
|
6061
6061
|
* See the License for the specific language governing permissions and
|
|
6062
6062
|
* limitations under the License.
|
|
6063
6063
|
*/
|
|
6064
|
-
const
|
|
6064
|
+
const Re = "webStorageSupport";
|
|
6065
6065
|
class ao {
|
|
6066
6066
|
constructor() {
|
|
6067
6067
|
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = hn, this._completeRedirectFn = Os, this._overrideRedirectResult = Cs;
|
|
@@ -6104,9 +6104,9 @@ class ao {
|
|
|
6104
6104
|
}), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
|
|
6105
6105
|
}
|
|
6106
6106
|
_isIframeWebStorageSupported(e, t) {
|
|
6107
|
-
this.iframes[e._key()].send(
|
|
6107
|
+
this.iframes[e._key()].send(Re, { type: Re }, (i) => {
|
|
6108
6108
|
var s;
|
|
6109
|
-
const o = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[
|
|
6109
|
+
const o = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Re];
|
|
6110
6110
|
o !== void 0 && t(!!o), T(
|
|
6111
6111
|
e,
|
|
6112
6112
|
"internal-error"
|
|
@@ -6221,7 +6221,7 @@ function ho(n) {
|
|
|
6221
6221
|
tokenApiHost: "securetoken.googleapis.com",
|
|
6222
6222
|
apiScheme: "https",
|
|
6223
6223
|
sdkClientVersion: rn(n)
|
|
6224
|
-
}, l = new
|
|
6224
|
+
}, l = new Hi(r, i, s, a);
|
|
6225
6225
|
return qi(l, t), l;
|
|
6226
6226
|
},
|
|
6227
6227
|
"PUBLIC"
|
|
@@ -6248,7 +6248,7 @@ function ho(n) {
|
|
|
6248
6248
|
).setInstantiationMode(
|
|
6249
6249
|
"EXPLICIT"
|
|
6250
6250
|
/* InstantiationMode.EXPLICIT */
|
|
6251
|
-
)),
|
|
6251
|
+
)), $(Et, Tt, uo(n)), $(Et, Tt, "esm2017");
|
|
6252
6252
|
}
|
|
6253
6253
|
/**
|
|
6254
6254
|
* @license
|
|
@@ -6327,7 +6327,7 @@ ho(
|
|
|
6327
6327
|
"Browser"
|
|
6328
6328
|
/* ClientPlatform.BROWSER */
|
|
6329
6329
|
);
|
|
6330
|
-
var vo = {
|
|
6330
|
+
var vo = { 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" } };
|
|
6331
6331
|
const Eo = /* @__PURE__ */ Sn({
|
|
6332
6332
|
__name: "App",
|
|
6333
6333
|
setup(n) {
|
|
@@ -6338,11 +6338,11 @@ const Eo = /* @__PURE__ */ Sn({
|
|
|
6338
6338
|
const c = await o.getCustomToken(), a = go(i);
|
|
6339
6339
|
await ns(a, c);
|
|
6340
6340
|
}
|
|
6341
|
-
return s(), An(e.sessionUser, s),
|
|
6341
|
+
return s(), An(e.sessionUser, s), kn(() => {
|
|
6342
6342
|
t.isIframe && parent.postMessage({ event: "ready" }, "*");
|
|
6343
6343
|
}), (o, c) => {
|
|
6344
6344
|
const a = Cn("RouterView");
|
|
6345
|
-
return
|
|
6345
|
+
return Rn(), Pn(a, {
|
|
6346
6346
|
key: On(r).path
|
|
6347
6347
|
});
|
|
6348
6348
|
};
|