@feedmepos/mf-payment 1.0.28 → 1.1.0-beta.2
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/{PDFViewer-xrBtzrlR.js → PDFViewer-BQfgFexr.js} +2 -1
- package/dist/{PayoutAccount-QybE7meK.js → PayoutAccount-BpMu58oE.js} +5 -5
- package/dist/{PayoutAccount-C53rv89t.js → PayoutAccount-z-gdodfR.js} +361 -360
- package/dist/PayoutAccountSetting-jZJu4WWL.js +723 -0
- package/dist/{Restaurant-B1ed_oVp.js → Restaurant-DfBX5uPS.js} +56 -54
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-hJAJYKmE.js +33 -0
- package/dist/{RestaurantSetting-CKG5jn2J.js → RestaurantSetting-KPtRoif-.js} +3 -3
- package/dist/{Settlement-Fh86ozFD.js → Settlement-DbMQAA0_.js} +9 -8
- package/dist/Settlement-smC2PDKA.js +445 -0
- package/dist/{SettlementTransactions-BSF2Jw-L.js → SettlementTransactions-Bs8Il-GO.js} +14 -14
- package/dist/SettlementTransactions-Cw9DnODr.js +291 -0
- package/dist/{Terminal-BUBkiYYw.js → Terminal-HLOGtr0x.js} +323 -342
- package/dist/{TerminalSetting-CfCa-6pK.js → TerminalSetting-DraCszpQ.js} +27 -27
- package/dist/Transaction-B8cHQbbP.js +250 -0
- package/dist/{Transaction-DWzZ31qR.js → Transaction-_CB4VTT9.js} +123 -105
- package/dist/TransactionOld-BhzUSu5h.js +99 -0
- package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-UcnQKwQ5.js +304 -0
- package/dist/api/payout/index.d.ts +5 -1
- package/dist/api/terminal/index.d.ts +6 -10
- package/dist/api/transaction/index.d.ts +12 -11
- package/dist/{app-DC4HbItX.js → app-DWRPKvx2.js} +1115 -780
- package/dist/app.d.ts +278 -0
- package/dist/app.js +4 -3
- package/dist/{assets-BySnqkmr.js → assets-BImh8bhR.js} +208 -56
- package/dist/components/SourceSelector.vue.d.ts +12 -0
- package/dist/{grafana-b2ht7XmY.js → grafana-CPOGSE20.js} +2 -2
- package/dist/{index-d3nubgyT.js → index-8eCaI4jI.js} +1 -1
- package/dist/{index-iiG_kivD.js → index-CNZFZxie.js} +8163 -8081
- package/dist/{index-DXV5GQaF.js → index-D5DlMaeB.js} +1 -1
- package/dist/index-DtT3I2PI.js +45 -0
- package/dist/index-DuSw-EaU.js +66 -0
- package/dist/{index-CvJ2nft4.js → index-eznEOmAe.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Du3twb8U.js → index.vue_vue_type_script_setup_true_lang-DNXWZt8k.js} +8 -7
- package/dist/model/payout-account.d.ts +1 -1
- package/dist/model/transaction.d.ts +13 -5
- package/dist/package.json +9 -8
- package/dist/{payout-account-DPdwKVTr.js → payout-account-CjDkY3wf.js} +2 -2
- package/dist/router/index.d.ts +1 -0
- package/dist/stores/payoutAccount.d.ts +4 -4
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +133 -0
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +133 -0
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/cell/Actions.vue.d.ts +8 -0
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +10 -23
- package/dist/views/admin/{terminal-transaction/TerminalTransaction.vue.d.ts → payout-account/tabs/gateway/MacauPassGateway.vue.d.ts} +1 -1
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/Terminal.vue.d.ts +4 -1
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +2 -2
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +2 -0
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +16 -16
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +8 -8
- package/dist/views/{admin/terminal-transaction → transaction}/cell/Actions.vue.d.ts +3 -3
- package/package.json +9 -8
- package/dist/PayoutAccountSetting-Zhkm_GN8.js +0 -426
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-p4qddIbp.js +0 -33
- package/dist/Settlement-SeGVEdZj.js +0 -444
- package/dist/SettlementTransactions-CHRsIcoh.js +0 -291
- package/dist/TerminalTransaction-DIM7WO_C.js +0 -589
- package/dist/TerminalTransaction-DQZnx7dy.js +0 -333
- package/dist/Transaction-DRYwBnHK.js +0 -247
- package/dist/TransactionOld-Pj412ujb.js +0 -99
- package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-B3FGhKjA.js +0 -159
- package/dist/components/PayoutAccountSelector.vue.d.ts +0 -23
- package/dist/index-BJpE0YhF.js +0 -52
- package/dist/index-BqzuW2qa.js +0 -40
- package/dist/index-Dwv1hbHU.js +0 -77
- package/dist/transaction-CzLoSCVe.js +0 -136
- package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +0 -50
- package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +0 -52
- package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +0 -7
- package/dist/views/admin/terminal-transaction/cell/Method.vue.d.ts +0 -7
- package/dist/views/admin/terminal-transaction/cell/Status.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +0 -2
- package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/cell/Method.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/cell/Status.vue.d.ts +0 -7
@@ -1,16 +1,289 @@
|
|
1
|
-
import { createRouter as Ln, createWebHistory as Un, useRouter as Bn } from "vue-router";
|
2
|
-
import { computed as Lt, watch as
|
3
|
-
import { useCoreStore as
|
4
|
-
import { defineStore as
|
5
|
-
import { components as
|
6
|
-
const
|
1
|
+
import { createRouter as Ln, createWebHistory as Un, useRouter as Bn, useRoute as Fn } from "vue-router";
|
2
|
+
import { computed as Lt, watch as $, defineComponent as Ut, ref as xn, resolveComponent as Bt, openBlock as Ft, createBlock as xt, h as jn, onMounted as Hn, onBeforeMount as Vn, unref as Gn } from "vue";
|
3
|
+
import { useCoreStore as Ge } from "@feedmepos/mf-common";
|
4
|
+
import { defineStore as Wn } from "pinia";
|
5
|
+
import { components as zn } from "@feedmepos/ui-library";
|
6
|
+
const Zn = {
|
7
|
+
select: "Select filter entity",
|
8
|
+
restaurant: "Restaurant",
|
9
|
+
device: "Device",
|
10
|
+
payout_account: "Payout Account"
|
11
|
+
}, $n = {
|
12
|
+
title: "Settlements",
|
13
|
+
description: "Settlements are the finalization of financial transactions, transferring funds to complete payments.",
|
14
|
+
export: "Export",
|
15
|
+
table: {
|
16
|
+
id: "Settlement ID",
|
17
|
+
bank: "Bank",
|
18
|
+
account: "Account No",
|
19
|
+
created_at: "Created At",
|
20
|
+
sales_amount: "Sales Amount",
|
21
|
+
fee: "Fee",
|
22
|
+
settlement_amount: "Settlement Amount"
|
23
|
+
},
|
24
|
+
dialog: {
|
25
|
+
title: "Settlements Transactions",
|
26
|
+
search: "Search Transactions ...",
|
27
|
+
info: {
|
28
|
+
transaction: {
|
29
|
+
title: "Transaction Info",
|
30
|
+
for: "For",
|
31
|
+
reference: "Reference",
|
32
|
+
count: "Transaction"
|
33
|
+
},
|
34
|
+
bank: {
|
35
|
+
title: "Bank Info",
|
36
|
+
for: "Bank",
|
37
|
+
name: "Name",
|
38
|
+
number: "Number"
|
39
|
+
},
|
40
|
+
payout: {
|
41
|
+
title: "Payout Info",
|
42
|
+
amount: "Amount",
|
43
|
+
fee: "Fee",
|
44
|
+
payout: "Payout"
|
45
|
+
}
|
46
|
+
},
|
47
|
+
fiuu: {
|
48
|
+
id: "Transaction ID",
|
49
|
+
type: "Type",
|
50
|
+
transaction_at: "Transaction At",
|
51
|
+
sales_amount: "Sales Amount",
|
52
|
+
fee: "Fee",
|
53
|
+
settlement_amount: "Settlement Amount"
|
54
|
+
},
|
55
|
+
feedme: {
|
56
|
+
id: "Transaction ID",
|
57
|
+
pay_id: "Pay ID",
|
58
|
+
gateway: "Gateway",
|
59
|
+
method: "Method",
|
60
|
+
status: "Status",
|
61
|
+
type: "Type",
|
62
|
+
transaction_at: "Transaction At",
|
63
|
+
sales_amount: "Sales Amount",
|
64
|
+
fee: "Fee",
|
65
|
+
settlement_amount: "Settlement Amount"
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}, Jn = {
|
69
|
+
title: "Transactions",
|
70
|
+
description: "Transactions are purchases or payments made over the internet using electronic methods like cards or digital wallets.",
|
71
|
+
restaurant: "Restaurant",
|
72
|
+
status: "Status",
|
73
|
+
search: {
|
74
|
+
title: "Search",
|
75
|
+
placeholder: "Search Transactions ..."
|
76
|
+
},
|
77
|
+
button: {
|
78
|
+
export: "Export"
|
79
|
+
},
|
80
|
+
table: {
|
81
|
+
id: "Transaction ID",
|
82
|
+
pay_id: "Pay ID",
|
83
|
+
bill_seq: "Bill Seq No",
|
84
|
+
gateway: "Gateway",
|
85
|
+
method: "Method",
|
86
|
+
type: "Type",
|
87
|
+
status: "Status",
|
88
|
+
transaction_at: "Transaction At",
|
89
|
+
sales_amount: "Sales Amount",
|
90
|
+
actions: "Actions"
|
91
|
+
}
|
92
|
+
}, Xn = {
|
93
|
+
title: "Payout Account",
|
94
|
+
description: "A Payout Account is an account used to receive payments or disbursements, such as earnings or refunds, typically linked to a bank.",
|
95
|
+
button: {
|
96
|
+
apply: "Apply"
|
97
|
+
},
|
98
|
+
table: {
|
99
|
+
type: "Type",
|
100
|
+
name: "Name",
|
101
|
+
status: "Status",
|
102
|
+
active: "Active?",
|
103
|
+
bank: "Bank Details",
|
104
|
+
pic: "Person In-Charge (PIC)"
|
105
|
+
},
|
106
|
+
dialog: {
|
107
|
+
view_title: " View Payout Account",
|
108
|
+
title: "Apply Payout Account",
|
109
|
+
button: {
|
110
|
+
remove: "Remove",
|
111
|
+
submit: "Submit"
|
112
|
+
},
|
113
|
+
fields: {
|
114
|
+
type: "Type",
|
115
|
+
for: "For",
|
116
|
+
for_placeholder: "Select store",
|
117
|
+
name: "Name",
|
118
|
+
phone: "Phone No",
|
119
|
+
email: "Email",
|
120
|
+
bank: "Bank",
|
121
|
+
bank_type: "Type",
|
122
|
+
bank_account: "Account Number",
|
123
|
+
bank_holder: "Holder Name"
|
124
|
+
},
|
125
|
+
document: {
|
126
|
+
ssm: "SSM Certificate ( Form D )",
|
127
|
+
bank: "Bank Statement w/ Holder Name",
|
128
|
+
exterior: "Exterior Photo"
|
129
|
+
},
|
130
|
+
section: {
|
131
|
+
account: "Account",
|
132
|
+
bank: "Bank Info",
|
133
|
+
pic: "Key Person",
|
134
|
+
document: "Legal Documents"
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}, Yn = {
|
138
|
+
components: Zn,
|
139
|
+
settlements: $n,
|
140
|
+
transactions: Jn,
|
141
|
+
payout_account: Xn
|
142
|
+
}, Kn = {
|
143
|
+
select: "选择筛选对象",
|
144
|
+
restaurant: "餐厅",
|
145
|
+
device: "设备",
|
146
|
+
payout_account: "结算账户"
|
147
|
+
}, qn = {
|
148
|
+
title: "交易结算",
|
149
|
+
description: "交易结算是金融交易的最终处理,交易流水的详细,完成付款的资金转移。",
|
150
|
+
export: "导出",
|
151
|
+
table: {
|
152
|
+
id: "结算ID",
|
153
|
+
bank: "银行",
|
154
|
+
account: "账户号码",
|
155
|
+
created_at: "结算时间",
|
156
|
+
sales_amount: "营业金额",
|
157
|
+
fee: "服务费用",
|
158
|
+
settlement_amount: "结算金额"
|
159
|
+
},
|
160
|
+
dialog: {
|
161
|
+
title: "结算订单详细",
|
162
|
+
search: "查询订单 ...",
|
163
|
+
info: {
|
164
|
+
transaction: {
|
165
|
+
title: "交易详细",
|
166
|
+
for: "于",
|
167
|
+
reference: "相关",
|
168
|
+
count: "数量"
|
169
|
+
},
|
170
|
+
bank: {
|
171
|
+
title: "银行详细",
|
172
|
+
for: "银行",
|
173
|
+
name: "名称",
|
174
|
+
number: "号码"
|
175
|
+
},
|
176
|
+
payout: {
|
177
|
+
title: "结算详细",
|
178
|
+
amount: "营业金额",
|
179
|
+
fee: "服务费",
|
180
|
+
payout: "结算金额"
|
181
|
+
}
|
182
|
+
},
|
183
|
+
fiuu: {
|
184
|
+
id: "交易ID",
|
185
|
+
type: "类型",
|
186
|
+
transaction_at: "交易时间",
|
187
|
+
sales_amount: "营业金额",
|
188
|
+
fee: "服务费",
|
189
|
+
settlement_amount: "结算金额"
|
190
|
+
},
|
191
|
+
feedme: {
|
192
|
+
id: "交易ID",
|
193
|
+
pay_id: "订单ID",
|
194
|
+
gateway: "支付网关",
|
195
|
+
method: "支付方法",
|
196
|
+
status: "状态",
|
197
|
+
type: "类型",
|
198
|
+
transaction_at: "交易时间",
|
199
|
+
sales_amount: "营业金额",
|
200
|
+
fee: "服务费",
|
201
|
+
settlement_amount: "结算金额"
|
202
|
+
}
|
203
|
+
}
|
204
|
+
}, Qn = {
|
205
|
+
title: "交易订单",
|
206
|
+
description: "交易订单是使用卡或数字钱包等电子方式通过互联网进行的购买或付款。",
|
207
|
+
restaurant: "餐厅",
|
208
|
+
status: "状态",
|
209
|
+
search: {
|
210
|
+
title: "查询",
|
211
|
+
placeholder: "查询订单 ..."
|
212
|
+
},
|
213
|
+
button: {
|
214
|
+
export: "导出"
|
215
|
+
},
|
216
|
+
table: {
|
217
|
+
id: "交易ID",
|
218
|
+
pay_id: "支付ID",
|
219
|
+
bill_seq: "订单序列号",
|
220
|
+
gateway: "支付网关",
|
221
|
+
method: "支付方法",
|
222
|
+
type: "支付类型",
|
223
|
+
status: "状态",
|
224
|
+
transaction_at: "交易时间",
|
225
|
+
sales_amount: "交易金额",
|
226
|
+
actions: "操作"
|
227
|
+
}
|
228
|
+
}, er = {
|
229
|
+
title: "结算账户",
|
230
|
+
description: "结算账户是用于接收付款或支出的账户,例如收入或退款,通常与银行关联。",
|
231
|
+
button: {
|
232
|
+
apply: "申请"
|
233
|
+
},
|
234
|
+
table: {
|
235
|
+
type: "类型",
|
236
|
+
name: "名称",
|
237
|
+
status: "状态",
|
238
|
+
active: "活跃?",
|
239
|
+
bank: "银行详情",
|
240
|
+
pic: "负责人 (PIC)"
|
241
|
+
},
|
242
|
+
dialog: {
|
243
|
+
view_title: " 查看结算账户",
|
244
|
+
title: "申请结算账户",
|
245
|
+
button: {
|
246
|
+
remove: "删除",
|
247
|
+
submit: "提交"
|
248
|
+
},
|
249
|
+
fields: {
|
250
|
+
type: "类型",
|
251
|
+
for: "于",
|
252
|
+
for_placeholder: "选择商户/餐厅",
|
253
|
+
name: "名称",
|
254
|
+
phone: "电话号码",
|
255
|
+
email: "电子邮箱",
|
256
|
+
bank: "银行",
|
257
|
+
bank_type: "账户类型",
|
258
|
+
bank_account: "账户号码",
|
259
|
+
bank_holder: "持有人名称"
|
260
|
+
},
|
261
|
+
document: {
|
262
|
+
ssm: "SSM营业证书(Form D)",
|
263
|
+
bank: "银行对账单(含持有人姓名)",
|
264
|
+
exterior: "营业户外照片"
|
265
|
+
},
|
266
|
+
section: {
|
267
|
+
account: "账户讯息",
|
268
|
+
bank: "银行讯息",
|
269
|
+
pic: "负责人讯息",
|
270
|
+
document: "法律文件"
|
271
|
+
}
|
272
|
+
}
|
273
|
+
}, tr = {
|
274
|
+
components: Kn,
|
275
|
+
settlements: qn,
|
276
|
+
transactions: Qn,
|
277
|
+
payout_account: er
|
278
|
+
}, le = [
|
7
279
|
{
|
8
280
|
path: "/admin/restaurants",
|
9
281
|
name: "mf-payment-admin.restaurant",
|
10
282
|
meta: {
|
11
|
-
sidebarDisplay: "Restaurants"
|
283
|
+
sidebarDisplay: "Restaurants",
|
284
|
+
section: "payment-gateway"
|
12
285
|
},
|
13
|
-
component: () => import("./Restaurant-
|
286
|
+
component: () => import("./Restaurant-DfBX5uPS.js")
|
14
287
|
},
|
15
288
|
{
|
16
289
|
path: "/admin/restaurants/:restaurantId",
|
@@ -19,15 +292,16 @@ const je = [
|
|
19
292
|
meta: {
|
20
293
|
parent: "mf-payment-admin.restaurant"
|
21
294
|
},
|
22
|
-
component: () => import("./RestaurantSetting-
|
295
|
+
component: () => import("./RestaurantSetting-KPtRoif-.js")
|
23
296
|
},
|
24
297
|
{
|
25
298
|
path: "/admin/payout-accounts",
|
26
299
|
name: "mf-payment-admin.payout-account",
|
27
300
|
meta: {
|
28
|
-
sidebarDisplay: "Payout Accounts"
|
301
|
+
sidebarDisplay: "Payout Accounts",
|
302
|
+
section: "payment-gateway"
|
29
303
|
},
|
30
|
-
component: () => import("./PayoutAccount-
|
304
|
+
component: () => import("./PayoutAccount-BpMu58oE.js")
|
31
305
|
},
|
32
306
|
{
|
33
307
|
path: "/admin/payout-accounts/:accountId",
|
@@ -36,40 +310,78 @@ const je = [
|
|
36
310
|
meta: {
|
37
311
|
parent: "mf-payment-admin.payout-account"
|
38
312
|
},
|
39
|
-
component: () => import("./PayoutAccountSetting-
|
313
|
+
component: () => import("./PayoutAccountSetting-jZJu4WWL.js")
|
40
314
|
},
|
41
315
|
{
|
42
|
-
path: "/admin/terminal",
|
316
|
+
path: "/admin/terminal/pos",
|
317
|
+
name: "mf-payment-admin.pos",
|
318
|
+
meta: {
|
319
|
+
sidebarDisplay: "POS",
|
320
|
+
section: "device"
|
321
|
+
},
|
322
|
+
component: () => import("./Terminal-HLOGtr0x.js"),
|
323
|
+
props: {
|
324
|
+
type: "POS"
|
325
|
+
}
|
326
|
+
},
|
327
|
+
{
|
328
|
+
path: "/admin/terminal/kiosk",
|
329
|
+
name: "mf-payment-admin.kiosk",
|
330
|
+
meta: {
|
331
|
+
sidebarDisplay: "Kiosks",
|
332
|
+
section: "device"
|
333
|
+
},
|
334
|
+
component: () => import("./Terminal-HLOGtr0x.js"),
|
335
|
+
props: {
|
336
|
+
type: "KIOSK"
|
337
|
+
}
|
338
|
+
},
|
339
|
+
{
|
340
|
+
path: "/admin/terminal/terminal",
|
43
341
|
name: "mf-payment-admin.terminal",
|
44
342
|
meta: {
|
45
|
-
sidebarDisplay: "Terminals"
|
343
|
+
sidebarDisplay: "Terminals",
|
344
|
+
section: "device"
|
46
345
|
},
|
47
|
-
component: () => import("./Terminal-
|
346
|
+
component: () => import("./Terminal-HLOGtr0x.js"),
|
347
|
+
props: {
|
348
|
+
type: "TERMINAL"
|
349
|
+
}
|
48
350
|
},
|
49
351
|
{
|
50
|
-
path: "/admin/terminal/:terminalId",
|
51
|
-
name: "mf-payment-admin.
|
352
|
+
path: "/admin/terminal/pos/:terminalId",
|
353
|
+
name: "mf-payment-admin.pos-setting",
|
52
354
|
props: !0,
|
53
355
|
meta: {
|
54
|
-
parent: "mf-payment-admin.
|
356
|
+
parent: "mf-payment-admin.pos"
|
55
357
|
},
|
56
|
-
component: () => import("./TerminalSetting-
|
358
|
+
component: () => import("./TerminalSetting-DraCszpQ.js")
|
57
359
|
},
|
58
360
|
{
|
59
|
-
path: "/admin/terminal
|
60
|
-
name: "mf-payment-admin.
|
361
|
+
path: "/admin/terminal/kiosk/:terminalId",
|
362
|
+
name: "mf-payment-admin.kiosk-setting",
|
363
|
+
props: !0,
|
364
|
+
meta: {
|
365
|
+
parent: "mf-payment-admin.kiosk"
|
366
|
+
},
|
367
|
+
component: () => import("./TerminalSetting-DraCszpQ.js")
|
368
|
+
},
|
369
|
+
{
|
370
|
+
path: "/admin/terminal/terminal/:terminalId",
|
371
|
+
name: "mf-payment-admin.terminal-setting",
|
372
|
+
props: !0,
|
61
373
|
meta: {
|
62
|
-
|
374
|
+
parent: "mf-payment-admin.terminal"
|
63
375
|
},
|
64
|
-
component: () => import("./
|
376
|
+
component: () => import("./TerminalSetting-DraCszpQ.js")
|
65
377
|
},
|
66
378
|
{
|
67
379
|
path: "/admin/transaction",
|
68
380
|
name: "mf-payment-admin.transaction",
|
69
381
|
meta: {
|
70
|
-
sidebarDisplay: "
|
382
|
+
sidebarDisplay: "Transactions"
|
71
383
|
},
|
72
|
-
component: () => import("./Transaction-
|
384
|
+
component: () => import("./Transaction-_CB4VTT9.js")
|
73
385
|
},
|
74
386
|
{
|
75
387
|
path: "/admin/settlement",
|
@@ -77,7 +389,7 @@ const je = [
|
|
77
389
|
meta: {
|
78
390
|
sidebarDisplay: "Settlements"
|
79
391
|
},
|
80
|
-
component: () => import("./Settlement-
|
392
|
+
component: () => import("./Settlement-DbMQAA0_.js")
|
81
393
|
},
|
82
394
|
{
|
83
395
|
path: "/admin/settlement/:settlementId",
|
@@ -86,9 +398,9 @@ const je = [
|
|
86
398
|
meta: {
|
87
399
|
parent: "mf-payment-admin.settlement"
|
88
400
|
},
|
89
|
-
component: () => import("./SettlementTransactions-
|
401
|
+
component: () => import("./SettlementTransactions-Bs8Il-GO.js")
|
90
402
|
}
|
91
|
-
],
|
403
|
+
], We = [
|
92
404
|
{
|
93
405
|
path: "",
|
94
406
|
redirect: { name: "mf-payment-payout-account" }
|
@@ -96,7 +408,7 @@ const je = [
|
|
96
408
|
{
|
97
409
|
path: "/payout-account",
|
98
410
|
name: "mf-payment-payout-account",
|
99
|
-
component: () => import("./PayoutAccount-
|
411
|
+
component: () => import("./PayoutAccount-z-gdodfR.js"),
|
100
412
|
meta: {
|
101
413
|
sidebarDisplay: "Payout Accounts"
|
102
414
|
}
|
@@ -104,33 +416,24 @@ const je = [
|
|
104
416
|
{
|
105
417
|
path: "/transaction-old",
|
106
418
|
name: "mf-payment-old-transaction",
|
107
|
-
component: () => import("./TransactionOld-
|
419
|
+
component: () => import("./TransactionOld-BhzUSu5h.js"),
|
108
420
|
meta: {
|
109
421
|
sidebarDisplay: "Transactions"
|
110
422
|
}
|
111
423
|
},
|
112
|
-
{
|
113
|
-
path: "/terminal-tranasction",
|
114
|
-
name: "mf-payment-terminal-transaction",
|
115
|
-
meta: {
|
116
|
-
sidebarDisplay: "Terminal Transactions",
|
117
|
-
sidebarNew: !0
|
118
|
-
},
|
119
|
-
component: () => import("./TerminalTransaction-DQZnx7dy.js")
|
120
|
-
},
|
121
424
|
{
|
122
425
|
path: "/transaction",
|
123
426
|
name: "mf-payment-transaction",
|
124
|
-
component: () => import("./Transaction-
|
427
|
+
component: () => import("./Transaction-B8cHQbbP.js"),
|
125
428
|
meta: {
|
126
|
-
sidebarDisplay: "
|
429
|
+
sidebarDisplay: "Transactions",
|
127
430
|
sidebarNew: !0
|
128
431
|
}
|
129
432
|
},
|
130
433
|
{
|
131
434
|
path: "/settlement",
|
132
435
|
name: "mf-payment-settlement",
|
133
|
-
component: () => import("./Settlement-
|
436
|
+
component: () => import("./Settlement-smC2PDKA.js"),
|
134
437
|
meta: {
|
135
438
|
sidebarDisplay: "Settlements"
|
136
439
|
}
|
@@ -139,12 +442,12 @@ const je = [
|
|
139
442
|
path: "/settlement/:settlementId",
|
140
443
|
name: "mf-payment-settlement-transaction",
|
141
444
|
props: !0,
|
142
|
-
component: () => import("./SettlementTransactions-
|
445
|
+
component: () => import("./SettlementTransactions-Cw9DnODr.js"),
|
143
446
|
meta: {
|
144
447
|
parent: "mf-payment-settlement"
|
145
448
|
}
|
146
449
|
}
|
147
|
-
],
|
450
|
+
], nr = Wn("mf-payment-iframe", () => {
|
148
451
|
const n = {
|
149
452
|
isIframe: !1
|
150
453
|
}, e = Lt(() => n);
|
@@ -156,7 +459,7 @@ const je = [
|
|
156
459
|
init: t
|
157
460
|
};
|
158
461
|
});
|
159
|
-
var at = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_6a8d4127-5745-4e17-bd52-458211776bcf", npm_package_devDependencies_ts_node: "^10.9.1", npm_package_dependencies_zod: "^3.23.8", npm_package_dependencies_dinero_js: "^1.9.1", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies_jest: "^29.6.3", npm_package_dependencies_vue_pdf_embed: "^2.1.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v22.14.0 linux x64", npm_config_always_auth: "", CI: "true", npm_package_dependencies_vue: "^3.2.25", npm_config_bin_links: "true", npm_config_wrap_output: "", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_6a8d4127-5745-4e17-bd52-458211776bcf", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", npm_package_devDependencies_vite: "^5.2.11", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_config_init_version: "1.0.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "ghs_IRBh4cWmTf69EJVpilfYtAExvah2DF2vDNXF", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies_sass: "1.32.12", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_dependencies_jspdf: "^2.5.1", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies_change_case: "^4.1.2", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.13", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_package_dependencies__feedmepos_mf_common: "^1.8.21", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.5", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "709", npm_package_dependencies_moment: "^2.29.4", npm_package_dependencies_dotenv: "^16.0.3", npm_package_dependencies__feedmepos_ui_library: "^1.3.9", npm_package_scripts_postinstall: "yarn --cwd .. && yarn --cwd ../package/common && yarn --cwd ../package/entity", npm_config_feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: 'Development always based on production and add "-beta.version" in behind. Every deployment from development to production will increment based on semantic versioninig.', npm_package_devDependencies_typescript: "~5.4.0", npm_package_devDependencies_tailwindcss: "^3.4.14", npm_package_dependencies_i18next: "^21.8.8", npm_package_dependencies__casl_ability: "^3.2.0", npm_package_scripts_build_only_dev: "yarn build:mf:dev && yarn build:dts && yarn build-types && cp package.json ./dist", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_vue_tsc: "^2.0.11", npm_package_devDependencies__babel_preset_env: "^7.22.10", npm_package_dependencies_xlsx: "^0.18.5", npm_package_dependencies_google_maps: "^4.3.3", npm_package_scripts_build_only_prod: "yarn build:mf:prod && yarn build:dts && yarn build-types && cp package.json ./dist", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250302.1.0", npm_package_dependencies_i18next_vue: "^2.0.0-beta.0", npm_package_scripts_dev: "vite --mode dev", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_scripts_prod: "vite --mode prod", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.6/x64", JOURNAL_STREAM: "8:6677", GITHUB_WORKFLOW: "payment-mf-portal-prod", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_autoprefixer: "^10.4.20", npm_package_devDependencies__types_jest: "^29.5.4", npm_package_dependencies_i18next_browser_languagedetector: "^6.1.4", npm_package_module: "./dist/app.js", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^8.3.4", npm_package_scripts_lint: "eslint --ext .ts,vue --ignore-path .gitignore . --fix", npm_config_registry: "https://registry.yarnpkg.com", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13755889568", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "1dae7fedd8a001a16e7e8a126686b34d407e371d", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_exports___import: "./dist/app.js", npm_config_ignore_scripts: "", GITHUB_WORKFLOW_REF: "feedmepos/payment-service/.github/workflows/payment-mf-portal-prod.yaml@refs/heads/main", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ikh5cTROQVRBanNucUM3bWRydEFoaHJDUjJfUSJ9.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6NGJlOTYyOWEtOGY0MC00YjlkLThiOTktZjg2NWI3MDAwYzgyOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMjc3IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46NGJlOTYyOWEtOGY0MC00YjlkLThiOTktZjg2NWI3MDAwYzgyOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMjc3IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiOTA3NGE1MTktZGQzYS00MDU3LWJiNTEtZTVhZmZlMjE4NmNkIiwic2lkIjoiZGEyNTk3MzQtMmE1OC00ZTQ3LWFkNmEtN2EwZTk5NjEzZjFiIiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjN9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwic2hhXCI6XCIxZGFlN2ZlZGQ4YTAwMWExNmU3ZThhMTI2Njg2YjM0ZDQwN2UzNzFkXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJydW5faWRcIjpcIjEzNzU1ODg5NTY4XCIsXCJydW5fbnVtYmVyXCI6XCIzNVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLXByb2RcIixcImhlYWRfcmVmXCI6XCJcIixcImJhc2VfcmVmXCI6XCJcIixcImV2ZW50X25hbWVcIjpcInB1c2hcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcGF5bWVudC1tZi1wb3J0YWwtcHJvZC55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwid29ya2Zsb3dfc2hhXCI6XCIxZGFlN2ZlZGQ4YTAwMWExNmU3ZThhMTI2Njg2YjM0ZDQwN2UzNzFkXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLXByb2QueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcIjFkYWU3ZmVkZDhhMDAxYTE2ZTdlOGExMjY2ODZiMzRkNDA3ZTM3MWRcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL21haW4iLCJvcmNoaWQiOiI0YmU5NjI5YS04ZjQwLTRiOWQtOGI5OS1mODY1YjcwMDBjODIuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDE1NzUwNTcsImV4cCI6MTc0MTU5Nzg1N30.WO2qYcH6Kvgivh37GrBQoM5Bdx_EMLotNFQqmRle8C7zVQlW_6NS4YhY4Q0R_GQ_-HEr2B9PTc58_UtLksNIS5nNkmRgOnB9Fpa2-omLOAT21xbb0ESXZD8nsqIdZ9pLUmSVCzUD1JRT6Ka7RHWo7Ny0KPK-Ka9RRMa80zUniU2PRc1_f9BqyXu38bX8CWwisOZVH2EvbFY5kwjgsPGQgMAHO7Pu-0-aDfjo41PsyznfiYM-ifFpcOgYytwtgzgJrPFqiTO2IypbCBgX3MLTtROkQ8gcGyd7mnLx5Y8l6_rkjlcVJ7Bg1eyT5xQBw2e1fYGQSdpjPc9Do8EdGQgQMg", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1741575711492-0.5506468694480524:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1741575711335-0.8551803500222142:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1741575711178-0.936011109601893:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_589e2f63-8947-490e-a49a-c7df60f44b1e", INVOCATION_ID: "c93cdd995a5f48b7826be66f8c1eb9c6", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_devDependencies__types_qrcode: "^1.5.0", npm_package_devDependencies__types_jsurl: "^0.1.2", npm_package_dependencies_file_saver: "^2.0.5", npm_package_scripts_deploy_dev: "yarn build-only:dev && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_name: "@feedmepos/mf-payment", GITHUB_ACTION: "__run", GITHUB_RUN_NUMBER: "35", GITHUB_TRIGGERING_ACTOR: "Oskang09", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_package_scripts_deploy_prod: "yarn build-only:prod && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_dependencies_vue_advanced_cropper: "^2.8.6", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.17.0", npm_package_devDependencies__vue_test_utils: "^2.4.1", npm_package_devDependencies__vue_eslint_config_typescript: "^10.0.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 63", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/payment-service", STATS_D_D: "false", npm_lifecycle_script: "vite build --mode fmmf:prod", npm_package_dependencies__feedmepos_core: "^2.6.0", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^2.2.3", npm_package_scripts_test: "jest", npm_config_version_git_message: "v%s", GITHUB_REPOSITORY_ID: "690979260", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:mf:prod", npm_package_devDependencies_jest_transform_stub: "^2.0.0", npm_package_devDependencies_jest_environment_jsdom: "^29.4.1", npm_package_devDependencies__rushstack_eslint_patch: "^1.1.3", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_version: "1.0.28", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","deploy:prod"],"original":["deploy:prod"]}', npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_dependencies_uuid: "^9.0.0", npm_package_dependencies_buffer: "^6.0.3", npm_config__feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_WORKSPACE: "/home/runner/work/payment-service/payment-service", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", GITHUB_SHA: "1dae7fedd8a001a16e7e8a126686b34d407e371d", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_dependencies_vue_router: "^4.2.5", npm_package_exports___style: "./dist/style.css", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "Oskang09", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_config_strict_ssl: "true", npm_package_devDependencies_path: "^0.12.7", npm_package_dependencies_jszip: "^3.10.1", npm_package_dependencies_jsurl: "^0.1.5", npm_package_dependencies_firebase: "^10.14.0", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_6a8d4127-5745-4e17-bd52-458211776bcf", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/payment-service/payment-service/mf-portal", GITHUB_ACTOR_ID: "15674107", RUNNER_WORKSPACE: "/home/runner/work/payment-service", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://pipelinesghubeus11.actions.githubusercontent.com/uhMzCspeMtZD05BczWutTDpLRkQb1I4q0fwG0tss4R7H4Wpw9s/00000000-0000-0000-0000-000000000000/_apis/distributedtask/hubs/Actions/plans/4be9629a-8f40-4b9d-8b99-f865b7000c82/jobs/e07742bd-189a-5079-918b-43f8b2f94b89/idtoken?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_6a8d4127-5745-4e17-bd52-458211776bcf", npm_package_dependencies_qrcode_vue: "^3.6.0", npm_package_exports___types: "./dist/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_devDependencies_postcss: "^8.4.47", npm_package_devDependencies_eslint_plugin_vue: "^9.1.0", npm_package_devDependencies__vue_vue3_jest: "^29.2.5", npm_package_devDependencies__pinia_testing: "^0.1.3", npm_config_save_prefix: "^", npm_config_ignore_optional: "", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_devDependencies_cd: "^0.3.3", npm_package_dependencies_rasterizehtml: "^1.3.1", npm_package_dependencies_i18next_http_backend: "^1.4.1", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", INIT_CWD: "/home/runner/work/payment-service/payment-service/mf-portal", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_6a8d4127-5745-4e17-bd52-458211776bcf", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.0.16", NODE_ENV: "production", ENVIRONMENT: "production", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-253402", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MESSAGING_SENDER_ID: "128512026847", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", ASSET_STORAGE_BUCKET: "static.feedme.cc", GOOGLE_MAP_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", AUTH_CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476" };
|
462
|
+
var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_87b15eec-8de8-4c91-819c-f9fbabc7691f", npm_package_devDependencies_ts_node: "^10.9.1", npm_package_dependencies_zod: "^3.23.8", npm_package_dependencies_dinero_js: "^1.9.1", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies_jest: "^29.6.3", npm_package_dependencies_vue_pdf_embed: "^2.1.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v22.14.0 linux x64", npm_config_always_auth: "", CI: "true", npm_package_dependencies_vue: "^3.2.25", npm_config_bin_links: "true", npm_config_wrap_output: "", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_87b15eec-8de8-4c91-819c-f9fbabc7691f", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", npm_package_devDependencies_vite: "^5.2.11", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_config_init_version: "1.0.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "ghs_AfQtBhC9yphVOmKZeH0pJdxjLcHRqc1bc4es", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies_sass: "1.32.12", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_dependencies_jspdf: "^2.5.1", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies_change_case: "^4.1.2", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.13", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_package_dependencies__feedmepos_mf_common: "^1.11.6", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.5", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "714", npm_package_dependencies_moment: "^2.29.4", npm_package_dependencies_dotenv: "^16.0.3", npm_package_dependencies__feedmepos_ui_library: "^1.3.9", npm_package_scripts_postinstall: "yarn --cwd .. && yarn --cwd ../package/common && yarn --cwd ../package/entity", npm_config_feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: 'Development always based on production and add "-beta.version" in behind. Every deployment from development to production will increment based on semantic versioninig.', npm_package_devDependencies_typescript: "~5.4.0", npm_package_devDependencies_tailwindcss: "^3.4.14", npm_package_dependencies_i18next: "^21.8.8", npm_package_dependencies__casl_ability: "^3.2.0", npm_package_scripts_build_only_dev: "yarn build:mf:dev && yarn build:dts && yarn build-types && cp package.json ./dist", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_vue_tsc: "^2.0.11", npm_package_devDependencies__babel_preset_env: "^7.22.10", npm_package_dependencies_xlsx: "^0.18.5", npm_package_dependencies_google_maps: "^4.3.3", npm_package_scripts_build_only_prod: "yarn build:mf:prod && yarn build:dts && yarn build-types && cp package.json ./dist", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250309.1.0", npm_package_dependencies_i18next_vue: "^2.0.0-beta.0", npm_package_scripts_dev: "vite --mode dev", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_scripts_prod: "vite --mode prod", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.7/x64", JOURNAL_STREAM: "8:6138", GITHUB_WORKFLOW: "payment-mf-portal-dev", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_autoprefixer: "^10.4.20", npm_package_devDependencies__types_jest: "^29.5.4", npm_package_dependencies_i18next_browser_languagedetector: "^6.1.4", npm_package_module: "./dist/app.js", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^8.3.4", npm_package_scripts_lint: "eslint --ext .ts,vue --ignore-path .gitignore . --fix", npm_config_registry: "https://registry.yarnpkg.com", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13922172776", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "767e7afb433e255e9404dd55eccc04cc9f009b48", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_exports___import: "./dist/app.js", npm_config_ignore_scripts: "", GITHUB_WORKFLOW_REF: "feedmepos/payment-service/.github/workflows/payment-mf-portal-dev.yaml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ikh5cTROQVRBanNucUM3bWRydEFoaHJDUjJfUSJ9.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6N2YwMDhiMzQtZjBjYi00ZDg1LTgzNjctMzEyZjgxODg5MzE2OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzI5IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46N2YwMDhiMzQtZjBjYi00ZDg1LTgzNjctMzEyZjgxODg5MzE2OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzI5IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiNmVjYmIwZjktMWE2Yy00NDU1LWFjOGUtNGMwNDc0NDg5ODRhIiwic2lkIjoiN2FlYmIzODUtNzgzZi00ZmJlLThmOWEtZjIzOTZhNzc1MWI2IiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcIjc2N2U3YWZiNDMzZTI1NWU5NDA0ZGQ1NWVjY2MwNGNjOWYwMDliNDhcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTM5MjIxNzI3NzZcIixcInJ1bl9udW1iZXJcIjpcIjE0NlwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCI3NjdlN2FmYjQzM2UyNTVlOTQwNGRkNTVlY2NjMDRjYzlmMDA5YjQ4XCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCI3NjdlN2FmYjQzM2UyNTVlOTQwNGRkNTVlY2NjMDRjYzlmMDA5YjQ4XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiI3ZjAwOGIzNC1mMGNiLTRkODUtODM2Ny0zMTJmODE4ODkzMTYuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDIyOTY5NzcsImV4cCI6MTc0MjMxOTc3N30.OOKMNsFraeUCJlpmZD3gTAxTdf9lHCZlfj_HEtzA2tRA4bGdidLdMlsXmORBZ5j06lB4MVjBv-ZQQOVCMvu5wx5lqBPUMiYUxzTGKG20liT23NW58a8CGKaEjv_Vq4w3YZVIniaP9PS2qHvzBmvwofdmUh_eVv4-LQhMOw7JWCArqDWgwsSa2C63A1xIS-ZFUuPlsX60sypeQ7_0jhRnLG3xKVyLAgQyTHcZY0nheUx2MXCmaeA26Uy8uMxdTLqHzAQHwciBp1TzHob7PEqFlLJauiQzxUf6v6TfaSJEx2rRk9OV4kAZNHeYLPGECI_q8Hhod2L9zDBWDr6tZ4YjtQ", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1742297629522-0.3002916058976224:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1742297629366-0.5060425940480151:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1742297629205-0.3115261064996848:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_df4fcce8-fcd8-4515-9a1f-056ea32ebc67", INVOCATION_ID: "a2f68627a15c4711a18929f7f7a1ad40", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_devDependencies__types_qrcode: "^1.5.0", npm_package_devDependencies__types_jsurl: "^0.1.2", npm_package_dependencies_file_saver: "^2.0.5", npm_package_scripts_deploy_dev: "yarn build-only:dev && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_name: "@feedmepos/mf-payment", GITHUB_ACTION: "__run", GITHUB_RUN_NUMBER: "146", GITHUB_TRIGGERING_ACTOR: "Oskang09", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_package_scripts_deploy_prod: "yarn build-only:prod && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_dependencies_vue_advanced_cropper: "^2.8.6", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.17.0", npm_package_devDependencies__vue_test_utils: "^2.4.1", npm_package_devDependencies__vue_eslint_config_typescript: "^10.0.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 39", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/payment-service", STATS_D_D: "false", npm_lifecycle_script: "vite build --mode fmmf:dev", npm_package_dependencies__feedmepos_core: "^2.6.0", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^2.2.3", npm_package_scripts_test: "jest", npm_config_version_git_message: "v%s", GITHUB_REPOSITORY_ID: "690979260", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:mf:dev", npm_package_devDependencies_jest_transform_stub: "^2.0.0", npm_package_devDependencies_jest_environment_jsdom: "^29.4.1", npm_package_devDependencies__rushstack_eslint_patch: "^1.1.3", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_version: "1.1.0-beta.2", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","deploy:dev"],"original":["deploy:dev"]}', npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_dependencies_uuid: "^9.0.0", npm_package_dependencies_buffer: "^6.0.3", npm_package_dependencies_vue_i18n: "10.0.5", npm_config__feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_WORKSPACE: "/home/runner/work/payment-service/payment-service", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", GITHUB_SHA: "767e7afb433e255e9404dd55eccc04cc9f009b48", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_dependencies_vue_router: "^4.2.5", npm_package_exports___style: "./dist/style.css", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "Oskang09", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_config_strict_ssl: "true", npm_package_devDependencies_path: "^0.12.7", npm_package_dependencies_jszip: "^3.10.1", npm_package_dependencies_jsurl: "^0.1.5", npm_package_dependencies_firebase: "^10.14.0", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_87b15eec-8de8-4c91-819c-f9fbabc7691f", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/payment-service/payment-service/mf-portal", GITHUB_ACTOR_ID: "15674107", RUNNER_WORKSPACE: "/home/runner/work/payment-service", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://pipelinesghubeus11.actions.githubusercontent.com/uhMzCspeMtZD05BczWutTDpLRkQb1I4q0fwG0tss4R7H4Wpw9s/00000000-0000-0000-0000-000000000000/_apis/distributedtask/hubs/Actions/plans/7f008b34-f0cb-4d85-8367-312f81889316/jobs/e07742bd-189a-5079-918b-43f8b2f94b89/idtoken?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_87b15eec-8de8-4c91-819c-f9fbabc7691f", npm_package_dependencies_qrcode_vue: "^3.6.0", npm_package_exports___types: "./dist/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_devDependencies_postcss: "^8.4.47", npm_package_devDependencies_eslint_plugin_vue: "^9.1.0", npm_package_devDependencies__vue_vue3_jest: "^29.2.5", npm_package_devDependencies__pinia_testing: "^0.1.3", npm_config_save_prefix: "^", npm_config_ignore_optional: "", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_devDependencies_cd: "^0.3.3", npm_package_dependencies_i18next_http_backend: "^1.4.1", npm_package_dependencies_rasterizehtml: "^1.3.1", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", INIT_CWD: "/home/runner/work/payment-service/payment-service/mf-portal", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_87b15eec-8de8-4c91-819c-f9fbabc7691f", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.0.23", NODE_ENV: "production", ENVIRONMENT: "development", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", FIREBASE_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", FIREBASE_MESSAGING_SENDER_ID: "458797803788", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", ASSET_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", GOOGLE_MAP_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", AUTH_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4" };
|
160
463
|
/**
|
161
464
|
* @license
|
162
465
|
* Copyright 2017 Google LLC
|
@@ -173,7 +476,7 @@ var at = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_sta
|
|
173
476
|
* See the License for the specific language governing permissions and
|
174
477
|
* limitations under the License.
|
175
478
|
*/
|
176
|
-
const
|
479
|
+
const jt = function(n) {
|
177
480
|
const e = [];
|
178
481
|
let t = 0;
|
179
482
|
for (let r = 0; r < n.length; r++) {
|
@@ -181,7 +484,7 @@ const Ht = function(n) {
|
|
181
484
|
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);
|
182
485
|
}
|
183
486
|
return e;
|
184
|
-
},
|
487
|
+
}, rr = function(n) {
|
185
488
|
const e = [];
|
186
489
|
let t = 0, r = 0;
|
187
490
|
for (; t < n.length; ) {
|
@@ -192,15 +495,15 @@ const Ht = function(n) {
|
|
192
495
|
const s = n[t++];
|
193
496
|
e[r++] = String.fromCharCode((i & 31) << 6 | s & 63);
|
194
497
|
} else if (i > 239 && i < 365) {
|
195
|
-
const s = n[t++],
|
196
|
-
e[r++] = String.fromCharCode(55296 + (
|
498
|
+
const s = n[t++], a = n[t++], c = n[t++], o = ((i & 7) << 18 | (s & 63) << 12 | (a & 63) << 6 | c & 63) - 65536;
|
499
|
+
e[r++] = String.fromCharCode(55296 + (o >> 10)), e[r++] = String.fromCharCode(56320 + (o & 1023));
|
197
500
|
} else {
|
198
|
-
const s = n[t++],
|
199
|
-
e[r++] = String.fromCharCode((i & 15) << 12 | (s & 63) << 6 |
|
501
|
+
const s = n[t++], a = n[t++];
|
502
|
+
e[r++] = String.fromCharCode((i & 15) << 12 | (s & 63) << 6 | a & 63);
|
200
503
|
}
|
201
504
|
}
|
202
505
|
return e.join("");
|
203
|
-
},
|
506
|
+
}, Ht = {
|
204
507
|
/**
|
205
508
|
* Maps bytes to characters.
|
206
509
|
*/
|
@@ -259,9 +562,9 @@ const Ht = function(n) {
|
|
259
562
|
this.init_();
|
260
563
|
const t = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
261
564
|
for (let i = 0; i < n.length; i += 3) {
|
262
|
-
const s = n[i],
|
263
|
-
let m = (
|
264
|
-
|
565
|
+
const s = n[i], a = i + 1 < n.length, c = a ? n[i + 1] : 0, o = i + 2 < n.length, l = o ? n[i + 2] : 0, u = s >> 2, p = (s & 3) << 4 | c >> 4;
|
566
|
+
let m = (c & 15) << 2 | l >> 6, v = l & 63;
|
567
|
+
o || (v = 64, a || (m = 64)), r.push(t[u], t[p], t[m], t[v]);
|
265
568
|
}
|
266
569
|
return r.join("");
|
267
570
|
},
|
@@ -274,7 +577,7 @@ const Ht = function(n) {
|
|
274
577
|
* @return The base64 encoded string.
|
275
578
|
*/
|
276
579
|
encodeString(n, e) {
|
277
|
-
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(
|
580
|
+
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(jt(n), e);
|
278
581
|
},
|
279
582
|
/**
|
280
583
|
* Base64-decode a string.
|
@@ -285,7 +588,7 @@ const Ht = function(n) {
|
|
285
588
|
* @return string representing the decoded value.
|
286
589
|
*/
|
287
590
|
decodeString(n, e) {
|
288
|
-
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) :
|
591
|
+
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : rr(this.decodeStringToByteArray(n, e));
|
289
592
|
},
|
290
593
|
/**
|
291
594
|
* Base64-decode a string.
|
@@ -306,16 +609,16 @@ const Ht = function(n) {
|
|
306
609
|
this.init_();
|
307
610
|
const t = e ? this.charToByteMapWebSafe_ : this.charToByteMap_, r = [];
|
308
611
|
for (let i = 0; i < n.length; ) {
|
309
|
-
const s = t[n.charAt(i++)],
|
612
|
+
const s = t[n.charAt(i++)], c = i < n.length ? t[n.charAt(i)] : 0;
|
310
613
|
++i;
|
311
614
|
const l = i < n.length ? t[n.charAt(i)] : 64;
|
312
615
|
++i;
|
313
616
|
const p = i < n.length ? t[n.charAt(i)] : 64;
|
314
|
-
if (++i, s == null ||
|
315
|
-
throw new
|
316
|
-
const m = s << 2 |
|
617
|
+
if (++i, s == null || c == null || l == null || p == null)
|
618
|
+
throw new ir();
|
619
|
+
const m = s << 2 | c >> 4;
|
317
620
|
if (r.push(m), l !== 64) {
|
318
|
-
const v =
|
621
|
+
const v = c << 4 & 240 | l >> 2;
|
319
622
|
if (r.push(v), p !== 64) {
|
320
623
|
const F = l << 6 & 192 | p;
|
321
624
|
r.push(F);
|
@@ -337,19 +640,19 @@ const Ht = function(n) {
|
|
337
640
|
}
|
338
641
|
}
|
339
642
|
};
|
340
|
-
class
|
643
|
+
class ir extends Error {
|
341
644
|
constructor() {
|
342
645
|
super(...arguments), this.name = "DecodeBase64StringError";
|
343
646
|
}
|
344
647
|
}
|
345
|
-
const
|
346
|
-
const e =
|
347
|
-
return
|
348
|
-
},
|
349
|
-
return
|
648
|
+
const sr = function(n) {
|
649
|
+
const e = jt(n);
|
650
|
+
return Ht.encodeByteArray(e, !0);
|
651
|
+
}, de = function(n) {
|
652
|
+
return sr(n).replace(/\./g, "");
|
350
653
|
}, Vt = function(n) {
|
351
654
|
try {
|
352
|
-
return
|
655
|
+
return Ht.decodeString(n, !0);
|
353
656
|
} catch (e) {
|
354
657
|
console.error("base64Decode failed: ", e);
|
355
658
|
}
|
@@ -371,7 +674,7 @@ const Zn = function(n) {
|
|
371
674
|
* See the License for the specific language governing permissions and
|
372
675
|
* limitations under the License.
|
373
676
|
*/
|
374
|
-
function
|
677
|
+
function ar() {
|
375
678
|
if (typeof self < "u")
|
376
679
|
return self;
|
377
680
|
if (typeof window < "u")
|
@@ -396,13 +699,13 @@ function Jn() {
|
|
396
699
|
* See the License for the specific language governing permissions and
|
397
700
|
* limitations under the License.
|
398
701
|
*/
|
399
|
-
const
|
400
|
-
if (typeof process > "u" || typeof
|
702
|
+
const or = () => ar().__FIREBASE_DEFAULTS__, cr = () => {
|
703
|
+
if (typeof process > "u" || typeof ot > "u")
|
401
704
|
return;
|
402
|
-
const n =
|
705
|
+
const n = ot.__FIREBASE_DEFAULTS__;
|
403
706
|
if (n)
|
404
707
|
return JSON.parse(n);
|
405
|
-
},
|
708
|
+
}, lr = () => {
|
406
709
|
if (typeof document > "u")
|
407
710
|
return;
|
408
711
|
let n;
|
@@ -415,16 +718,16 @@ const Xn = () => Jn().__FIREBASE_DEFAULTS__, Yn = () => {
|
|
415
718
|
return e && JSON.parse(e);
|
416
719
|
}, ze = () => {
|
417
720
|
try {
|
418
|
-
return
|
721
|
+
return or() || cr() || lr();
|
419
722
|
} catch (n) {
|
420
723
|
console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
|
421
724
|
return;
|
422
725
|
}
|
423
|
-
},
|
726
|
+
}, Gt = (n) => {
|
424
727
|
var e, t;
|
425
728
|
return (t = (e = ze()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
|
426
|
-
},
|
427
|
-
const e =
|
729
|
+
}, Ha = (n) => {
|
730
|
+
const e = Gt(n);
|
428
731
|
if (!e)
|
429
732
|
return;
|
430
733
|
const t = e.lastIndexOf(":");
|
@@ -432,7 +735,7 @@ const Xn = () => Jn().__FIREBASE_DEFAULTS__, Yn = () => {
|
|
432
735
|
throw new Error(`Invalid host ${e} with no separate hostname and port!`);
|
433
736
|
const r = parseInt(e.substring(t + 1), 10);
|
434
737
|
return e[0] === "[" ? [e.substring(1, t - 1), r] : [e.substring(0, t), r];
|
435
|
-
},
|
738
|
+
}, Wt = () => {
|
436
739
|
var n;
|
437
740
|
return (n = ze()) === null || n === void 0 ? void 0 : n.config;
|
438
741
|
}, zt = (n) => {
|
@@ -455,7 +758,7 @@ const Xn = () => Jn().__FIREBASE_DEFAULTS__, Yn = () => {
|
|
455
758
|
* See the License for the specific language governing permissions and
|
456
759
|
* limitations under the License.
|
457
760
|
*/
|
458
|
-
class
|
761
|
+
class dr {
|
459
762
|
constructor() {
|
460
763
|
this.reject = () => {
|
461
764
|
}, this.resolve = () => {
|
@@ -491,7 +794,7 @@ class qn {
|
|
491
794
|
* See the License for the specific language governing permissions and
|
492
795
|
* limitations under the License.
|
493
796
|
*/
|
494
|
-
function
|
797
|
+
function Va(n, e) {
|
495
798
|
if (n.uid)
|
496
799
|
throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
|
497
800
|
const t = {
|
@@ -500,7 +803,7 @@ function No(n, e) {
|
|
500
803
|
}, r = e || "demo-project", i = n.iat || 0, s = n.sub || n.user_id;
|
501
804
|
if (!s)
|
502
805
|
throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");
|
503
|
-
const
|
806
|
+
const a = Object.assign({
|
504
807
|
// Set all required fields to decent defaults
|
505
808
|
iss: `https://securetoken.google.com/${r}`,
|
506
809
|
aud: r,
|
@@ -515,8 +818,8 @@ function No(n, e) {
|
|
515
818
|
}
|
516
819
|
}, n);
|
517
820
|
return [
|
518
|
-
|
519
|
-
|
821
|
+
de(JSON.stringify(t)),
|
822
|
+
de(JSON.stringify(a)),
|
520
823
|
""
|
521
824
|
].join(".");
|
522
825
|
}
|
@@ -539,33 +842,33 @@ function No(n, e) {
|
|
539
842
|
function f() {
|
540
843
|
return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
|
541
844
|
}
|
542
|
-
function
|
845
|
+
function ur() {
|
543
846
|
return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
|
544
847
|
// just to deal with this case would probably be a bad idea.
|
545
848
|
!!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(f());
|
546
849
|
}
|
547
|
-
function
|
850
|
+
function hr() {
|
548
851
|
return typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers";
|
549
852
|
}
|
550
|
-
function
|
853
|
+
function pr() {
|
551
854
|
const n = typeof chrome == "object" ? chrome.runtime : typeof browser == "object" ? browser.runtime : void 0;
|
552
855
|
return typeof n == "object" && n.id !== void 0;
|
553
856
|
}
|
554
|
-
function
|
857
|
+
function fr() {
|
555
858
|
return typeof navigator == "object" && navigator.product === "ReactNative";
|
556
859
|
}
|
557
|
-
function
|
860
|
+
function mr() {
|
558
861
|
const n = f();
|
559
862
|
return n.indexOf("MSIE ") >= 0 || n.indexOf("Trident/") >= 0;
|
560
863
|
}
|
561
|
-
function
|
864
|
+
function _r() {
|
562
865
|
try {
|
563
866
|
return typeof indexedDB == "object";
|
564
867
|
} catch {
|
565
868
|
return !1;
|
566
869
|
}
|
567
870
|
}
|
568
|
-
function
|
871
|
+
function gr() {
|
569
872
|
return new Promise((n, e) => {
|
570
873
|
try {
|
571
874
|
let t = !0;
|
@@ -599,10 +902,10 @@ function sr() {
|
|
599
902
|
* See the License for the specific language governing permissions and
|
600
903
|
* limitations under the License.
|
601
904
|
*/
|
602
|
-
const
|
905
|
+
const vr = "FirebaseError";
|
603
906
|
class M extends Error {
|
604
907
|
constructor(e, t, r) {
|
605
|
-
super(t), this.code = e, this.customData = r, this.name =
|
908
|
+
super(t), this.code = e, this.customData = r, this.name = vr, Object.setPrototypeOf(this, M.prototype), Error.captureStackTrace && Error.captureStackTrace(this, q.prototype.create);
|
606
909
|
}
|
607
910
|
}
|
608
911
|
class q {
|
@@ -610,35 +913,35 @@ class q {
|
|
610
913
|
this.service = e, this.serviceName = t, this.errors = r;
|
611
914
|
}
|
612
915
|
create(e, ...t) {
|
613
|
-
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e],
|
614
|
-
return new M(i,
|
916
|
+
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? Ir(s, r) : "Error", c = `${this.serviceName}: ${a} (${i}).`;
|
917
|
+
return new M(i, c, r);
|
615
918
|
}
|
616
919
|
}
|
617
|
-
function
|
618
|
-
return n.replace(
|
920
|
+
function Ir(n, e) {
|
921
|
+
return n.replace(br, (t, r) => {
|
619
922
|
const i = e[r];
|
620
923
|
return i != null ? String(i) : `<${r}?>`;
|
621
924
|
});
|
622
925
|
}
|
623
|
-
const
|
624
|
-
function
|
926
|
+
const br = /\{\$([^}]+)}/g;
|
927
|
+
function yr(n) {
|
625
928
|
for (const e in n)
|
626
929
|
if (Object.prototype.hasOwnProperty.call(n, e))
|
627
930
|
return !1;
|
628
931
|
return !0;
|
629
932
|
}
|
630
|
-
function
|
933
|
+
function ue(n, e) {
|
631
934
|
if (n === e)
|
632
935
|
return !0;
|
633
936
|
const t = Object.keys(n), r = Object.keys(e);
|
634
937
|
for (const i of t) {
|
635
938
|
if (!r.includes(i))
|
636
939
|
return !1;
|
637
|
-
const s = n[i],
|
638
|
-
if (ct(s) && ct(
|
639
|
-
if (!
|
940
|
+
const s = n[i], a = e[i];
|
941
|
+
if (ct(s) && ct(a)) {
|
942
|
+
if (!ue(s, a))
|
640
943
|
return !1;
|
641
|
-
} else if (s !==
|
944
|
+
} else if (s !== a)
|
642
945
|
return !1;
|
643
946
|
}
|
644
947
|
for (const i of r)
|
@@ -673,11 +976,11 @@ function Q(n) {
|
|
673
976
|
}) : e.push(encodeURIComponent(t) + "=" + encodeURIComponent(r));
|
674
977
|
return e.length ? "&" + e.join("&") : "";
|
675
978
|
}
|
676
|
-
function
|
677
|
-
const t = new
|
979
|
+
function Er(n, e) {
|
980
|
+
const t = new Tr(n, e);
|
678
981
|
return t.subscribe.bind(t);
|
679
982
|
}
|
680
|
-
class
|
983
|
+
class Tr {
|
681
984
|
/**
|
682
985
|
* @param executor Function which can make calls to a single Observer
|
683
986
|
* as a proxy.
|
@@ -715,7 +1018,7 @@ class ur {
|
|
715
1018
|
let i;
|
716
1019
|
if (e === void 0 && t === void 0 && r === void 0)
|
717
1020
|
throw new Error("Missing Observer.");
|
718
|
-
|
1021
|
+
wr(e, [
|
719
1022
|
"next",
|
720
1023
|
"error",
|
721
1024
|
"complete"
|
@@ -723,7 +1026,7 @@ class ur {
|
|
723
1026
|
next: e,
|
724
1027
|
error: t,
|
725
1028
|
complete: r
|
726
|
-
}, i.next === void 0 && (i.next =
|
1029
|
+
}, i.next === void 0 && (i.next = ke), i.error === void 0 && (i.error = ke), i.complete === void 0 && (i.complete = ke);
|
727
1030
|
const s = this.unsubscribeOne.bind(this, this.observers.length);
|
728
1031
|
return this.finalized && this.task.then(() => {
|
729
1032
|
try {
|
@@ -761,7 +1064,7 @@ class ur {
|
|
761
1064
|
}));
|
762
1065
|
}
|
763
1066
|
}
|
764
|
-
function
|
1067
|
+
function wr(n, e) {
|
765
1068
|
if (typeof n != "object" || n === null)
|
766
1069
|
return !1;
|
767
1070
|
for (const t of e)
|
@@ -769,7 +1072,7 @@ function hr(n, e) {
|
|
769
1072
|
return !0;
|
770
1073
|
return !1;
|
771
1074
|
}
|
772
|
-
function
|
1075
|
+
function ke() {
|
773
1076
|
}
|
774
1077
|
/**
|
775
1078
|
* @license
|
@@ -790,7 +1093,7 @@ function Re() {
|
|
790
1093
|
function z(n) {
|
791
1094
|
return n && n._delegate ? n._delegate : n;
|
792
1095
|
}
|
793
|
-
class
|
1096
|
+
class W {
|
794
1097
|
/**
|
795
1098
|
*
|
796
1099
|
* @param name The public service name, e.g. app, auth, firestore, database
|
@@ -846,7 +1149,7 @@ const L = "[DEFAULT]";
|
|
846
1149
|
* See the License for the specific language governing permissions and
|
847
1150
|
* limitations under the License.
|
848
1151
|
*/
|
849
|
-
class
|
1152
|
+
class Rr {
|
850
1153
|
constructor(e, t) {
|
851
1154
|
this.name = e, this.container = t, this.component = null, this.instances = /* @__PURE__ */ new Map(), this.instancesDeferred = /* @__PURE__ */ new Map(), this.instancesOptions = /* @__PURE__ */ new Map(), this.onInitCallbacks = /* @__PURE__ */ new Map();
|
852
1155
|
}
|
@@ -857,7 +1160,7 @@ class pr {
|
|
857
1160
|
get(e) {
|
858
1161
|
const t = this.normalizeInstanceIdentifier(e);
|
859
1162
|
if (!this.instancesDeferred.has(t)) {
|
860
|
-
const r = new
|
1163
|
+
const r = new dr();
|
861
1164
|
if (this.instancesDeferred.set(t, r), this.isInitialized(t) || this.shouldAutoInitialize())
|
862
1165
|
try {
|
863
1166
|
const i = this.getOrInitializeService({
|
@@ -897,7 +1200,7 @@ class pr {
|
|
897
1200
|
if (this.component)
|
898
1201
|
throw Error(`Component for ${this.name} has already been provided`);
|
899
1202
|
if (this.component = e, !!this.shouldAutoInitialize()) {
|
900
|
-
if (
|
1203
|
+
if (Sr(e))
|
901
1204
|
try {
|
902
1205
|
this.getOrInitializeService({ instanceIdentifier: L });
|
903
1206
|
} catch {
|
@@ -945,9 +1248,9 @@ class pr {
|
|
945
1248
|
instanceIdentifier: r,
|
946
1249
|
options: t
|
947
1250
|
});
|
948
|
-
for (const [s,
|
949
|
-
const
|
950
|
-
r ===
|
1251
|
+
for (const [s, a] of this.instancesDeferred.entries()) {
|
1252
|
+
const c = this.normalizeInstanceIdentifier(s);
|
1253
|
+
r === c && a.resolve(i);
|
951
1254
|
}
|
952
1255
|
return i;
|
953
1256
|
}
|
@@ -963,8 +1266,8 @@ class pr {
|
|
963
1266
|
var r;
|
964
1267
|
const i = this.normalizeInstanceIdentifier(t), s = (r = this.onInitCallbacks.get(i)) !== null && r !== void 0 ? r : /* @__PURE__ */ new Set();
|
965
1268
|
s.add(e), this.onInitCallbacks.set(i, s);
|
966
|
-
const
|
967
|
-
return
|
1269
|
+
const a = this.instances.get(i);
|
1270
|
+
return a && e(a, i), () => {
|
968
1271
|
s.delete(e);
|
969
1272
|
};
|
970
1273
|
}
|
@@ -984,7 +1287,7 @@ class pr {
|
|
984
1287
|
getOrInitializeService({ instanceIdentifier: e, options: t = {} }) {
|
985
1288
|
let r = this.instances.get(e);
|
986
1289
|
if (!r && this.component && (r = this.component.instanceFactory(this.container, {
|
987
|
-
instanceIdentifier:
|
1290
|
+
instanceIdentifier: kr(e),
|
988
1291
|
options: t
|
989
1292
|
}), this.instances.set(e, r), this.instancesOptions.set(e, t), this.invokeOnInitCallbacks(r, e), this.component.onInstanceCreated))
|
990
1293
|
try {
|
@@ -1000,10 +1303,10 @@ class pr {
|
|
1000
1303
|
return !!this.component && this.component.instantiationMode !== "EXPLICIT";
|
1001
1304
|
}
|
1002
1305
|
}
|
1003
|
-
function
|
1306
|
+
function kr(n) {
|
1004
1307
|
return n === L ? void 0 : n;
|
1005
1308
|
}
|
1006
|
-
function
|
1309
|
+
function Sr(n) {
|
1007
1310
|
return n.instantiationMode === "EAGER";
|
1008
1311
|
}
|
1009
1312
|
/**
|
@@ -1022,7 +1325,7 @@ function mr(n) {
|
|
1022
1325
|
* See the License for the specific language governing permissions and
|
1023
1326
|
* limitations under the License.
|
1024
1327
|
*/
|
1025
|
-
class
|
1328
|
+
class Ar {
|
1026
1329
|
constructor(e) {
|
1027
1330
|
this.name = e, this.providers = /* @__PURE__ */ new Map();
|
1028
1331
|
}
|
@@ -1054,7 +1357,7 @@ class _r {
|
|
1054
1357
|
getProvider(e) {
|
1055
1358
|
if (this.providers.has(e))
|
1056
1359
|
return this.providers.get(e);
|
1057
|
-
const t = new
|
1360
|
+
const t = new Rr(e, this);
|
1058
1361
|
return this.providers.set(e, t), t;
|
1059
1362
|
}
|
1060
1363
|
getProviders() {
|
@@ -1081,29 +1384,29 @@ var h;
|
|
1081
1384
|
(function(n) {
|
1082
1385
|
n[n.DEBUG = 0] = "DEBUG", n[n.VERBOSE = 1] = "VERBOSE", n[n.INFO = 2] = "INFO", n[n.WARN = 3] = "WARN", n[n.ERROR = 4] = "ERROR", n[n.SILENT = 5] = "SILENT";
|
1083
1386
|
})(h || (h = {}));
|
1084
|
-
const
|
1387
|
+
const Or = {
|
1085
1388
|
debug: h.DEBUG,
|
1086
1389
|
verbose: h.VERBOSE,
|
1087
1390
|
info: h.INFO,
|
1088
1391
|
warn: h.WARN,
|
1089
1392
|
error: h.ERROR,
|
1090
1393
|
silent: h.SILENT
|
1091
|
-
},
|
1394
|
+
}, Nr = h.INFO, Cr = {
|
1092
1395
|
[h.DEBUG]: "log",
|
1093
1396
|
[h.VERBOSE]: "log",
|
1094
1397
|
[h.INFO]: "info",
|
1095
1398
|
[h.WARN]: "warn",
|
1096
1399
|
[h.ERROR]: "error"
|
1097
|
-
},
|
1400
|
+
}, Dr = (n, e, ...t) => {
|
1098
1401
|
if (e < n.logLevel)
|
1099
1402
|
return;
|
1100
|
-
const r = (/* @__PURE__ */ new Date()).toISOString(), i =
|
1403
|
+
const r = (/* @__PURE__ */ new Date()).toISOString(), i = Cr[e];
|
1101
1404
|
if (i)
|
1102
1405
|
console[i](`[${r}] ${n.name}:`, ...t);
|
1103
1406
|
else
|
1104
1407
|
throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
|
1105
1408
|
};
|
1106
|
-
class
|
1409
|
+
class Zt {
|
1107
1410
|
/**
|
1108
1411
|
* Gives you an instance of a Logger to capture messages according to
|
1109
1412
|
* Firebase's logging scheme.
|
@@ -1111,7 +1414,7 @@ class $t {
|
|
1111
1414
|
* @param name The name that the logs will be associated with
|
1112
1415
|
*/
|
1113
1416
|
constructor(e) {
|
1114
|
-
this.name = e, this._logLevel =
|
1417
|
+
this.name = e, this._logLevel = Nr, this._logHandler = Dr, this._userLogHandler = null;
|
1115
1418
|
}
|
1116
1419
|
get logLevel() {
|
1117
1420
|
return this._logLevel;
|
@@ -1123,7 +1426,7 @@ class $t {
|
|
1123
1426
|
}
|
1124
1427
|
// Workaround for setter/getter having to be the same type.
|
1125
1428
|
setLogLevel(e) {
|
1126
|
-
this._logLevel = typeof e == "string" ?
|
1429
|
+
this._logLevel = typeof e == "string" ? Or[e] : e;
|
1127
1430
|
}
|
1128
1431
|
get logHandler() {
|
1129
1432
|
return this._logHandler;
|
@@ -1158,9 +1461,9 @@ class $t {
|
|
1158
1461
|
this._userLogHandler && this._userLogHandler(this, h.ERROR, ...e), this._logHandler(this, h.ERROR, ...e);
|
1159
1462
|
}
|
1160
1463
|
}
|
1161
|
-
const
|
1464
|
+
const Pr = (n, e) => e.some((t) => n instanceof t);
|
1162
1465
|
let lt, dt;
|
1163
|
-
function
|
1466
|
+
function Mr() {
|
1164
1467
|
return lt || (lt = [
|
1165
1468
|
IDBDatabase,
|
1166
1469
|
IDBObjectStore,
|
@@ -1169,56 +1472,56 @@ function Er() {
|
|
1169
1472
|
IDBTransaction
|
1170
1473
|
]);
|
1171
1474
|
}
|
1172
|
-
function
|
1475
|
+
function Lr() {
|
1173
1476
|
return dt || (dt = [
|
1174
1477
|
IDBCursor.prototype.advance,
|
1175
1478
|
IDBCursor.prototype.continue,
|
1176
1479
|
IDBCursor.prototype.continuePrimaryKey
|
1177
1480
|
]);
|
1178
1481
|
}
|
1179
|
-
const
|
1180
|
-
function
|
1482
|
+
const $t = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap();
|
1483
|
+
function Ur(n) {
|
1181
1484
|
const e = new Promise((t, r) => {
|
1182
1485
|
const i = () => {
|
1183
|
-
n.removeEventListener("success", s), n.removeEventListener("error",
|
1486
|
+
n.removeEventListener("success", s), n.removeEventListener("error", a);
|
1184
1487
|
}, s = () => {
|
1185
|
-
t(
|
1186
|
-
},
|
1488
|
+
t(C(n.result)), i();
|
1489
|
+
}, a = () => {
|
1187
1490
|
r(n.error), i();
|
1188
1491
|
};
|
1189
|
-
n.addEventListener("success", s), n.addEventListener("error",
|
1492
|
+
n.addEventListener("success", s), n.addEventListener("error", a);
|
1190
1493
|
});
|
1191
1494
|
return e.then((t) => {
|
1192
|
-
t instanceof IDBCursor &&
|
1495
|
+
t instanceof IDBCursor && $t.set(t, n);
|
1193
1496
|
}).catch(() => {
|
1194
|
-
}),
|
1497
|
+
}), Ze.set(e, n), e;
|
1195
1498
|
}
|
1196
|
-
function
|
1197
|
-
if (
|
1499
|
+
function Br(n) {
|
1500
|
+
if (Le.has(n))
|
1198
1501
|
return;
|
1199
1502
|
const e = new Promise((t, r) => {
|
1200
1503
|
const i = () => {
|
1201
|
-
n.removeEventListener("complete", s), n.removeEventListener("error",
|
1504
|
+
n.removeEventListener("complete", s), n.removeEventListener("error", a), n.removeEventListener("abort", a);
|
1202
1505
|
}, s = () => {
|
1203
1506
|
t(), i();
|
1204
|
-
},
|
1507
|
+
}, a = () => {
|
1205
1508
|
r(n.error || new DOMException("AbortError", "AbortError")), i();
|
1206
1509
|
};
|
1207
|
-
n.addEventListener("complete", s), n.addEventListener("error",
|
1510
|
+
n.addEventListener("complete", s), n.addEventListener("error", a), n.addEventListener("abort", a);
|
1208
1511
|
});
|
1209
|
-
|
1512
|
+
Le.set(n, e);
|
1210
1513
|
}
|
1211
|
-
let
|
1514
|
+
let Ue = {
|
1212
1515
|
get(n, e, t) {
|
1213
1516
|
if (n instanceof IDBTransaction) {
|
1214
1517
|
if (e === "done")
|
1215
|
-
return
|
1518
|
+
return Le.get(n);
|
1216
1519
|
if (e === "objectStoreNames")
|
1217
1520
|
return n.objectStoreNames || Jt.get(n);
|
1218
1521
|
if (e === "store")
|
1219
1522
|
return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
|
1220
1523
|
}
|
1221
|
-
return
|
1524
|
+
return C(n[e]);
|
1222
1525
|
},
|
1223
1526
|
set(n, e, t) {
|
1224
1527
|
return n[e] = t, !0;
|
@@ -1227,68 +1530,68 @@ let Le = {
|
|
1227
1530
|
return n instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in n;
|
1228
1531
|
}
|
1229
1532
|
};
|
1230
|
-
function
|
1231
|
-
|
1533
|
+
function Fr(n) {
|
1534
|
+
Ue = n(Ue);
|
1232
1535
|
}
|
1233
|
-
function
|
1536
|
+
function xr(n) {
|
1234
1537
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
1235
|
-
const r = n.call(
|
1236
|
-
return Jt.set(r, e.sort ? e.sort() : [e]),
|
1237
|
-
} :
|
1238
|
-
return n.apply(
|
1538
|
+
const r = n.call(Ae(this), e, ...t);
|
1539
|
+
return Jt.set(r, e.sort ? e.sort() : [e]), C(r);
|
1540
|
+
} : Lr().includes(n) ? function(...e) {
|
1541
|
+
return n.apply(Ae(this), e), C($t.get(this));
|
1239
1542
|
} : function(...e) {
|
1240
|
-
return
|
1543
|
+
return C(n.apply(Ae(this), e));
|
1241
1544
|
};
|
1242
1545
|
}
|
1243
|
-
function
|
1244
|
-
return typeof n == "function" ?
|
1546
|
+
function jr(n) {
|
1547
|
+
return typeof n == "function" ? xr(n) : (n instanceof IDBTransaction && Br(n), Pr(n, Mr()) ? new Proxy(n, Ue) : n);
|
1245
1548
|
}
|
1246
|
-
function
|
1549
|
+
function C(n) {
|
1247
1550
|
if (n instanceof IDBRequest)
|
1248
|
-
return
|
1249
|
-
if (
|
1250
|
-
return
|
1251
|
-
const e =
|
1252
|
-
return e !== n && (
|
1253
|
-
}
|
1254
|
-
const
|
1255
|
-
function
|
1256
|
-
const
|
1257
|
-
return r &&
|
1258
|
-
r(
|
1259
|
-
}), t &&
|
1551
|
+
return Ur(n);
|
1552
|
+
if (Se.has(n))
|
1553
|
+
return Se.get(n);
|
1554
|
+
const e = jr(n);
|
1555
|
+
return e !== n && (Se.set(n, e), Ze.set(e, n)), e;
|
1556
|
+
}
|
1557
|
+
const Ae = (n) => Ze.get(n);
|
1558
|
+
function Hr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
1559
|
+
const a = indexedDB.open(n, e), c = C(a);
|
1560
|
+
return r && a.addEventListener("upgradeneeded", (o) => {
|
1561
|
+
r(C(a.result), o.oldVersion, o.newVersion, C(a.transaction), o);
|
1562
|
+
}), t && a.addEventListener("blocked", (o) => t(
|
1260
1563
|
// Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
)),
|
1265
|
-
s &&
|
1564
|
+
o.oldVersion,
|
1565
|
+
o.newVersion,
|
1566
|
+
o
|
1567
|
+
)), c.then((o) => {
|
1568
|
+
s && o.addEventListener("close", () => s()), i && o.addEventListener("versionchange", (l) => i(l.oldVersion, l.newVersion, l));
|
1266
1569
|
}).catch(() => {
|
1267
|
-
}),
|
1570
|
+
}), c;
|
1268
1571
|
}
|
1269
|
-
const
|
1572
|
+
const Vr = ["get", "getKey", "getAll", "getAllKeys", "count"], Gr = ["put", "add", "delete", "clear"], Oe = /* @__PURE__ */ new Map();
|
1270
1573
|
function ut(n, e) {
|
1271
1574
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
1272
1575
|
return;
|
1273
|
-
if (
|
1274
|
-
return
|
1275
|
-
const t = e.replace(/FromIndex$/, ""), r = e !== t, i =
|
1576
|
+
if (Oe.get(e))
|
1577
|
+
return Oe.get(e);
|
1578
|
+
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = Gr.includes(t);
|
1276
1579
|
if (
|
1277
1580
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
1278
|
-
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i ||
|
1581
|
+
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || Vr.includes(t))
|
1279
1582
|
)
|
1280
1583
|
return;
|
1281
|
-
const s = async function(
|
1282
|
-
const
|
1283
|
-
let l =
|
1284
|
-
return r && (l = l.index(
|
1285
|
-
l[t](...
|
1286
|
-
i &&
|
1584
|
+
const s = async function(a, ...c) {
|
1585
|
+
const o = this.transaction(a, i ? "readwrite" : "readonly");
|
1586
|
+
let l = o.store;
|
1587
|
+
return r && (l = l.index(c.shift())), (await Promise.all([
|
1588
|
+
l[t](...c),
|
1589
|
+
i && o.done
|
1287
1590
|
]))[0];
|
1288
1591
|
};
|
1289
|
-
return
|
1592
|
+
return Oe.set(e, s), s;
|
1290
1593
|
}
|
1291
|
-
|
1594
|
+
Fr((n) => ({
|
1292
1595
|
...n,
|
1293
1596
|
get: (e, t, r) => ut(e, t) || n.get(e, t, r),
|
1294
1597
|
has: (e, t) => !!ut(e, t) || n.has(e, t)
|
@@ -1309,7 +1612,7 @@ kr((n) => ({
|
|
1309
1612
|
* See the License for the specific language governing permissions and
|
1310
1613
|
* limitations under the License.
|
1311
1614
|
*/
|
1312
|
-
class
|
1615
|
+
class Wr {
|
1313
1616
|
constructor(e) {
|
1314
1617
|
this.container = e;
|
1315
1618
|
}
|
@@ -1317,7 +1620,7 @@ class Dr {
|
|
1317
1620
|
// auth token refresh, and installations will send this string.
|
1318
1621
|
getPlatformInfoString() {
|
1319
1622
|
return this.container.getProviders().map((t) => {
|
1320
|
-
if (
|
1623
|
+
if (zr(t)) {
|
1321
1624
|
const r = t.getImmediate();
|
1322
1625
|
return `${r.library}/${r.version}`;
|
1323
1626
|
} else
|
@@ -1325,11 +1628,11 @@ class Dr {
|
|
1325
1628
|
}).filter((t) => t).join(" ");
|
1326
1629
|
}
|
1327
1630
|
}
|
1328
|
-
function
|
1631
|
+
function zr(n) {
|
1329
1632
|
const e = n.getComponent();
|
1330
1633
|
return (e == null ? void 0 : e.type) === "VERSION";
|
1331
1634
|
}
|
1332
|
-
const
|
1635
|
+
const Be = "@firebase/app", ht = "0.10.13";
|
1333
1636
|
/**
|
1334
1637
|
* @license
|
1335
1638
|
* Copyright 2019 Google LLC
|
@@ -1346,7 +1649,7 @@ const Ue = "@firebase/app", ht = "0.10.13";
|
|
1346
1649
|
* See the License for the specific language governing permissions and
|
1347
1650
|
* limitations under the License.
|
1348
1651
|
*/
|
1349
|
-
const T = new
|
1652
|
+
const T = new Zt("@firebase/app"), Zr = "@firebase/app-compat", $r = "@firebase/analytics-compat", Jr = "@firebase/analytics", Xr = "@firebase/app-check-compat", Yr = "@firebase/app-check", Kr = "@firebase/auth", qr = "@firebase/auth-compat", Qr = "@firebase/database", ei = "@firebase/data-connect", ti = "@firebase/database-compat", ni = "@firebase/functions", ri = "@firebase/functions-compat", ii = "@firebase/installations", si = "@firebase/installations-compat", ai = "@firebase/messaging", oi = "@firebase/messaging-compat", ci = "@firebase/performance", li = "@firebase/performance-compat", di = "@firebase/remote-config", ui = "@firebase/remote-config-compat", hi = "@firebase/storage", pi = "@firebase/storage-compat", fi = "@firebase/firestore", mi = "@firebase/vertexai-preview", _i = "@firebase/firestore-compat", gi = "firebase", vi = "10.14.1";
|
1350
1653
|
/**
|
1351
1654
|
* @license
|
1352
1655
|
* Copyright 2019 Google LLC
|
@@ -1363,35 +1666,35 @@ const T = new $t("@firebase/app"), Mr = "@firebase/app-compat", Lr = "@firebase/
|
|
1363
1666
|
* See the License for the specific language governing permissions and
|
1364
1667
|
* limitations under the License.
|
1365
1668
|
*/
|
1366
|
-
const
|
1367
|
-
[
|
1368
|
-
[
|
1369
|
-
[
|
1370
|
-
[
|
1371
|
-
[
|
1372
|
-
[
|
1373
|
-
[
|
1374
|
-
[
|
1375
|
-
[
|
1376
|
-
[
|
1377
|
-
[
|
1378
|
-
[
|
1379
|
-
[
|
1380
|
-
[
|
1381
|
-
[
|
1382
|
-
[
|
1383
|
-
[
|
1384
|
-
[
|
1385
|
-
[
|
1386
|
-
[
|
1387
|
-
[
|
1388
|
-
[
|
1389
|
-
[
|
1390
|
-
[
|
1391
|
-
[
|
1392
|
-
[
|
1669
|
+
const Fe = "[DEFAULT]", Ii = {
|
1670
|
+
[Be]: "fire-core",
|
1671
|
+
[Zr]: "fire-core-compat",
|
1672
|
+
[Jr]: "fire-analytics",
|
1673
|
+
[$r]: "fire-analytics-compat",
|
1674
|
+
[Yr]: "fire-app-check",
|
1675
|
+
[Xr]: "fire-app-check-compat",
|
1676
|
+
[Kr]: "fire-auth",
|
1677
|
+
[qr]: "fire-auth-compat",
|
1678
|
+
[Qr]: "fire-rtdb",
|
1679
|
+
[ei]: "fire-data-connect",
|
1680
|
+
[ti]: "fire-rtdb-compat",
|
1681
|
+
[ni]: "fire-fn",
|
1682
|
+
[ri]: "fire-fn-compat",
|
1683
|
+
[ii]: "fire-iid",
|
1684
|
+
[si]: "fire-iid-compat",
|
1685
|
+
[ai]: "fire-fcm",
|
1686
|
+
[oi]: "fire-fcm-compat",
|
1687
|
+
[ci]: "fire-perf",
|
1688
|
+
[li]: "fire-perf-compat",
|
1689
|
+
[di]: "fire-rc",
|
1690
|
+
[ui]: "fire-rc-compat",
|
1691
|
+
[hi]: "fire-gcs",
|
1692
|
+
[pi]: "fire-gcs-compat",
|
1693
|
+
[fi]: "fire-fst",
|
1694
|
+
[_i]: "fire-fst-compat",
|
1695
|
+
[mi]: "fire-vertex",
|
1393
1696
|
"fire-js": "fire-js",
|
1394
|
-
[
|
1697
|
+
[gi]: "fire-js-all"
|
1395
1698
|
};
|
1396
1699
|
/**
|
1397
1700
|
* @license
|
@@ -1409,7 +1712,7 @@ const Be = "[DEFAULT]", ai = {
|
|
1409
1712
|
* See the License for the specific language governing permissions and
|
1410
1713
|
* limitations under the License.
|
1411
1714
|
*/
|
1412
|
-
const
|
1715
|
+
const he = /* @__PURE__ */ new Map(), bi = /* @__PURE__ */ new Map(), xe = /* @__PURE__ */ new Map();
|
1413
1716
|
function pt(n, e) {
|
1414
1717
|
try {
|
1415
1718
|
n.container.addComponent(e);
|
@@ -1419,12 +1722,12 @@ function pt(n, e) {
|
|
1419
1722
|
}
|
1420
1723
|
function X(n) {
|
1421
1724
|
const e = n.name;
|
1422
|
-
if (
|
1725
|
+
if (xe.has(e))
|
1423
1726
|
return T.debug(`There were multiple attempts to register component ${e}.`), !1;
|
1424
|
-
|
1425
|
-
for (const t of
|
1727
|
+
xe.set(e, n);
|
1728
|
+
for (const t of he.values())
|
1426
1729
|
pt(t, n);
|
1427
|
-
for (const t of
|
1730
|
+
for (const t of bi.values())
|
1428
1731
|
pt(t, n);
|
1429
1732
|
return !0;
|
1430
1733
|
}
|
@@ -1451,7 +1754,7 @@ function I(n) {
|
|
1451
1754
|
* See the License for the specific language governing permissions and
|
1452
1755
|
* limitations under the License.
|
1453
1756
|
*/
|
1454
|
-
const
|
1757
|
+
const yi = {
|
1455
1758
|
"no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
|
1456
1759
|
"bad-app-name": "Illegal App name: '{$appName}'",
|
1457
1760
|
"duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
|
@@ -1466,7 +1769,7 @@ const li = {
|
|
1466
1769
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
1467
1770
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
1468
1771
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
1469
|
-
}, D = new q("app", "Firebase",
|
1772
|
+
}, D = new q("app", "Firebase", yi);
|
1470
1773
|
/**
|
1471
1774
|
* @license
|
1472
1775
|
* Copyright 2019 Google LLC
|
@@ -1483,9 +1786,9 @@ const li = {
|
|
1483
1786
|
* See the License for the specific language governing permissions and
|
1484
1787
|
* limitations under the License.
|
1485
1788
|
*/
|
1486
|
-
class
|
1789
|
+
class Ei {
|
1487
1790
|
constructor(e, t, r) {
|
1488
|
-
this._isDeleted = !1, this._options = Object.assign({}, e), this._config = Object.assign({}, t), this._name = t.name, this._automaticDataCollectionEnabled = t.automaticDataCollectionEnabled, this._container = r, this.container.addComponent(new
|
1791
|
+
this._isDeleted = !1, this._options = Object.assign({}, e), this._config = Object.assign({}, t), this._name = t.name, this._automaticDataCollectionEnabled = t.automaticDataCollectionEnabled, this._container = r, this.container.addComponent(new W(
|
1489
1792
|
"app",
|
1490
1793
|
() => this,
|
1491
1794
|
"PUBLIC"
|
@@ -1541,53 +1844,53 @@ class di {
|
|
1541
1844
|
* See the License for the specific language governing permissions and
|
1542
1845
|
* limitations under the License.
|
1543
1846
|
*/
|
1544
|
-
const ee =
|
1847
|
+
const ee = vi;
|
1545
1848
|
function Yt(n, e = {}) {
|
1546
1849
|
let t = n;
|
1547
1850
|
typeof e != "object" && (e = { name: e });
|
1548
|
-
const r = Object.assign({ name:
|
1851
|
+
const r = Object.assign({ name: Fe, automaticDataCollectionEnabled: !1 }, e), i = r.name;
|
1549
1852
|
if (typeof i != "string" || !i)
|
1550
1853
|
throw D.create("bad-app-name", {
|
1551
1854
|
appName: String(i)
|
1552
1855
|
});
|
1553
|
-
if (t || (t =
|
1856
|
+
if (t || (t = Wt()), !t)
|
1554
1857
|
throw D.create(
|
1555
1858
|
"no-options"
|
1556
1859
|
/* AppError.NO_OPTIONS */
|
1557
1860
|
);
|
1558
|
-
const s =
|
1861
|
+
const s = he.get(i);
|
1559
1862
|
if (s) {
|
1560
|
-
if (
|
1863
|
+
if (ue(t, s.options) && ue(r, s.config))
|
1561
1864
|
return s;
|
1562
1865
|
throw D.create("duplicate-app", { appName: i });
|
1563
1866
|
}
|
1564
|
-
const
|
1565
|
-
for (const
|
1566
|
-
|
1567
|
-
const
|
1568
|
-
return
|
1867
|
+
const a = new Ar(i);
|
1868
|
+
for (const o of xe.values())
|
1869
|
+
a.addComponent(o);
|
1870
|
+
const c = new Ei(t, r, a);
|
1871
|
+
return he.set(i, c), c;
|
1569
1872
|
}
|
1570
|
-
function
|
1571
|
-
const e =
|
1572
|
-
if (!e && n ===
|
1873
|
+
function Ti(n = Fe) {
|
1874
|
+
const e = he.get(n);
|
1875
|
+
if (!e && n === Fe && Wt())
|
1573
1876
|
return Yt();
|
1574
1877
|
if (!e)
|
1575
1878
|
throw D.create("no-app", { appName: n });
|
1576
1879
|
return e;
|
1577
1880
|
}
|
1578
|
-
function
|
1881
|
+
function j(n, e, t) {
|
1579
1882
|
var r;
|
1580
|
-
let i = (r =
|
1883
|
+
let i = (r = Ii[n]) !== null && r !== void 0 ? r : n;
|
1581
1884
|
t && (i += `-${t}`);
|
1582
|
-
const s = i.match(/\s|\//),
|
1583
|
-
if (s ||
|
1584
|
-
const
|
1885
|
+
const s = i.match(/\s|\//), a = e.match(/\s|\//);
|
1886
|
+
if (s || a) {
|
1887
|
+
const c = [
|
1585
1888
|
`Unable to register library "${i}" with version "${e}":`
|
1586
1889
|
];
|
1587
|
-
s &&
|
1890
|
+
s && c.push(`library name "${i}" contains illegal characters (whitespace or "/")`), s && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), T.warn(c.join(" "));
|
1588
1891
|
return;
|
1589
1892
|
}
|
1590
|
-
X(new
|
1893
|
+
X(new W(
|
1591
1894
|
`${i}-version`,
|
1592
1895
|
() => ({ library: i, version: e }),
|
1593
1896
|
"VERSION"
|
@@ -1610,10 +1913,10 @@ function H(n, e, t) {
|
|
1610
1913
|
* See the License for the specific language governing permissions and
|
1611
1914
|
* limitations under the License.
|
1612
1915
|
*/
|
1613
|
-
const
|
1614
|
-
let
|
1916
|
+
const wi = "firebase-heartbeat-database", Ri = 1, Y = "firebase-heartbeat-store";
|
1917
|
+
let Ne = null;
|
1615
1918
|
function Kt() {
|
1616
|
-
return
|
1919
|
+
return Ne || (Ne = Hr(wi, Ri, {
|
1617
1920
|
upgrade: (n, e) => {
|
1618
1921
|
switch (e) {
|
1619
1922
|
case 0:
|
@@ -1628,9 +1931,9 @@ function Kt() {
|
|
1628
1931
|
throw D.create("idb-open", {
|
1629
1932
|
originalErrorMessage: n.message
|
1630
1933
|
});
|
1631
|
-
})),
|
1934
|
+
})), Ne;
|
1632
1935
|
}
|
1633
|
-
async function
|
1936
|
+
async function ki(n) {
|
1634
1937
|
try {
|
1635
1938
|
const t = (await Kt()).transaction(Y), r = await t.objectStore(Y).get(qt(n));
|
1636
1939
|
return await t.done, r;
|
@@ -1679,12 +1982,12 @@ function qt(n) {
|
|
1679
1982
|
* See the License for the specific language governing permissions and
|
1680
1983
|
* limitations under the License.
|
1681
1984
|
*/
|
1682
|
-
const
|
1683
|
-
class
|
1985
|
+
const Si = 1024, Ai = 30 * 24 * 60 * 60 * 1e3;
|
1986
|
+
class Oi {
|
1684
1987
|
constructor(e) {
|
1685
1988
|
this.container = e, this._heartbeatsCache = null;
|
1686
1989
|
const t = this.container.getProvider("app").getImmediate();
|
1687
|
-
this._storage = new
|
1990
|
+
this._storage = new Ci(t), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
|
1688
1991
|
}
|
1689
1992
|
/**
|
1690
1993
|
* Called to report a heartbeat. The function will generate
|
@@ -1697,9 +2000,9 @@ class gi {
|
|
1697
2000
|
var e, t;
|
1698
2001
|
try {
|
1699
2002
|
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s = mt();
|
1700
|
-
return ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((t = this._heartbeatsCache) === null || t === void 0 ? void 0 : t.heartbeats) == null) || this._heartbeatsCache.lastSentHeartbeatDate === s || this._heartbeatsCache.heartbeats.some((
|
1701
|
-
const
|
1702
|
-
return Date.now() -
|
2003
|
+
return ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((t = this._heartbeatsCache) === null || t === void 0 ? void 0 : t.heartbeats) == null) || this._heartbeatsCache.lastSentHeartbeatDate === s || this._heartbeatsCache.heartbeats.some((a) => a.date === s) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: s, agent: i }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((a) => {
|
2004
|
+
const c = new Date(a.date).valueOf();
|
2005
|
+
return Date.now() - c <= Ai;
|
1703
2006
|
}), this._storage.overwrite(this._heartbeatsCache));
|
1704
2007
|
} catch (r) {
|
1705
2008
|
T.warn(r);
|
@@ -1717,7 +2020,7 @@ class gi {
|
|
1717
2020
|
try {
|
1718
2021
|
if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
|
1719
2022
|
return "";
|
1720
|
-
const t = mt(), { heartbeatsToSend: r, unsentEntries: i } =
|
2023
|
+
const t = mt(), { heartbeatsToSend: r, unsentEntries: i } = Ni(this._heartbeatsCache.heartbeats), s = de(JSON.stringify({ version: 2, heartbeats: r }));
|
1721
2024
|
return this._heartbeatsCache.lastSentHeartbeatDate = t, i.length > 0 ? (this._heartbeatsCache.heartbeats = i, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), s;
|
1722
2025
|
} catch (t) {
|
1723
2026
|
return T.warn(t), "";
|
@@ -1727,11 +2030,11 @@ class gi {
|
|
1727
2030
|
function mt() {
|
1728
2031
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
1729
2032
|
}
|
1730
|
-
function
|
2033
|
+
function Ni(n, e = Si) {
|
1731
2034
|
const t = [];
|
1732
2035
|
let r = n.slice();
|
1733
2036
|
for (const i of n) {
|
1734
|
-
const s = t.find((
|
2037
|
+
const s = t.find((a) => a.agent === i.agent);
|
1735
2038
|
if (s) {
|
1736
2039
|
if (s.dates.push(i.date), _t(t) > e) {
|
1737
2040
|
s.dates.pop();
|
@@ -1751,19 +2054,19 @@ function vi(n, e = mi) {
|
|
1751
2054
|
unsentEntries: r
|
1752
2055
|
};
|
1753
2056
|
}
|
1754
|
-
class
|
2057
|
+
class Ci {
|
1755
2058
|
constructor(e) {
|
1756
2059
|
this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
|
1757
2060
|
}
|
1758
2061
|
async runIndexedDBEnvironmentCheck() {
|
1759
|
-
return
|
2062
|
+
return _r() ? gr().then(() => !0).catch(() => !1) : !1;
|
1760
2063
|
}
|
1761
2064
|
/**
|
1762
2065
|
* Read all heartbeats.
|
1763
2066
|
*/
|
1764
2067
|
async read() {
|
1765
2068
|
if (await this._canUseIndexedDBPromise) {
|
1766
|
-
const t = await
|
2069
|
+
const t = await ki(this.app);
|
1767
2070
|
return t != null && t.heartbeats ? t : { heartbeats: [] };
|
1768
2071
|
} else
|
1769
2072
|
return { heartbeats: [] };
|
@@ -1797,7 +2100,7 @@ class Ii {
|
|
1797
2100
|
}
|
1798
2101
|
}
|
1799
2102
|
function _t(n) {
|
1800
|
-
return
|
2103
|
+
return de(
|
1801
2104
|
// heartbeatsCache wrapper properties
|
1802
2105
|
JSON.stringify({ version: 2, heartbeats: n })
|
1803
2106
|
).length;
|
@@ -1818,21 +2121,21 @@ function _t(n) {
|
|
1818
2121
|
* See the License for the specific language governing permissions and
|
1819
2122
|
* limitations under the License.
|
1820
2123
|
*/
|
1821
|
-
function
|
1822
|
-
X(new
|
2124
|
+
function Di(n) {
|
2125
|
+
X(new W(
|
1823
2126
|
"platform-logger",
|
1824
|
-
(e) => new
|
2127
|
+
(e) => new Wr(e),
|
1825
2128
|
"PRIVATE"
|
1826
2129
|
/* ComponentType.PRIVATE */
|
1827
|
-
)), X(new
|
2130
|
+
)), X(new W(
|
1828
2131
|
"heartbeat",
|
1829
|
-
(e) => new
|
2132
|
+
(e) => new Oi(e),
|
1830
2133
|
"PRIVATE"
|
1831
2134
|
/* ComponentType.PRIVATE */
|
1832
|
-
)),
|
2135
|
+
)), j(Be, ht, n), j(Be, ht, "esm2017"), j("fire-js", "");
|
1833
2136
|
}
|
1834
|
-
|
1835
|
-
var
|
2137
|
+
Di("");
|
2138
|
+
var Pi = "firebase", Mi = "10.14.1";
|
1836
2139
|
/**
|
1837
2140
|
* @license
|
1838
2141
|
* Copyright 2020 Google LLC
|
@@ -1849,7 +2152,7 @@ var yi = "firebase", Ei = "10.14.1";
|
|
1849
2152
|
* See the License for the specific language governing permissions and
|
1850
2153
|
* limitations under the License.
|
1851
2154
|
*/
|
1852
|
-
|
2155
|
+
j(Pi, Mi, "app");
|
1853
2156
|
var gt = function() {
|
1854
2157
|
return gt = Object.assign || function(e) {
|
1855
2158
|
for (var t, r = 1, i = arguments.length; r < i; r++) {
|
@@ -1859,7 +2162,7 @@ var gt = function() {
|
|
1859
2162
|
return e;
|
1860
2163
|
}, gt.apply(this, arguments);
|
1861
2164
|
};
|
1862
|
-
function
|
2165
|
+
function $e(n, e) {
|
1863
2166
|
var t = {};
|
1864
2167
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
|
1865
2168
|
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -1872,7 +2175,7 @@ function Qt() {
|
|
1872
2175
|
"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."
|
1873
2176
|
};
|
1874
2177
|
}
|
1875
|
-
const
|
2178
|
+
const Li = Qt, en = new q("auth", "Firebase", Qt());
|
1876
2179
|
/**
|
1877
2180
|
* @license
|
1878
2181
|
* Copyright 2020 Google LLC
|
@@ -1889,12 +2192,12 @@ const Ti = Qt, en = new q("auth", "Firebase", Qt());
|
|
1889
2192
|
* See the License for the specific language governing permissions and
|
1890
2193
|
* limitations under the License.
|
1891
2194
|
*/
|
1892
|
-
const
|
1893
|
-
function
|
1894
|
-
|
2195
|
+
const pe = new Zt("@firebase/auth");
|
2196
|
+
function Ui(n, ...e) {
|
2197
|
+
pe.logLevel <= h.WARN && pe.warn(`Auth (${ee}): ${n}`, ...e);
|
1895
2198
|
}
|
1896
2199
|
function se(n, ...e) {
|
1897
|
-
|
2200
|
+
pe.logLevel <= h.ERROR && pe.error(`Auth (${ee}): ${n}`, ...e);
|
1898
2201
|
}
|
1899
2202
|
/**
|
1900
2203
|
* @license
|
@@ -1919,7 +2222,7 @@ function _(n, ...e) {
|
|
1919
2222
|
return Je(n, ...e);
|
1920
2223
|
}
|
1921
2224
|
function tn(n, e, t) {
|
1922
|
-
const r = Object.assign(Object.assign({},
|
2225
|
+
const r = Object.assign(Object.assign({}, Li()), { [e]: t });
|
1923
2226
|
return new q("auth", "Firebase", r).create(e, {
|
1924
2227
|
appName: n.name
|
1925
2228
|
});
|
@@ -1961,11 +2264,11 @@ function R(n, e) {
|
|
1961
2264
|
* See the License for the specific language governing permissions and
|
1962
2265
|
* limitations under the License.
|
1963
2266
|
*/
|
1964
|
-
function
|
2267
|
+
function je() {
|
1965
2268
|
var n;
|
1966
2269
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
1967
2270
|
}
|
1968
|
-
function
|
2271
|
+
function Bi() {
|
1969
2272
|
return vt() === "http:" || vt() === "https:";
|
1970
2273
|
}
|
1971
2274
|
function vt() {
|
@@ -1988,15 +2291,15 @@ function vt() {
|
|
1988
2291
|
* See the License for the specific language governing permissions and
|
1989
2292
|
* limitations under the License.
|
1990
2293
|
*/
|
1991
|
-
function
|
2294
|
+
function Fi() {
|
1992
2295
|
return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
|
1993
2296
|
// This is especially true for Cordova apps which have unreliable
|
1994
2297
|
// navigator.onLine behavior unless cordova-plugin-network-information is
|
1995
2298
|
// installed which overwrites the native navigator.onLine value and
|
1996
2299
|
// defines navigator.connection.
|
1997
|
-
(
|
2300
|
+
(Bi() || pr() || "connection" in navigator) ? navigator.onLine : !0;
|
1998
2301
|
}
|
1999
|
-
function
|
2302
|
+
function xi() {
|
2000
2303
|
if (typeof navigator > "u")
|
2001
2304
|
return null;
|
2002
2305
|
const n = navigator;
|
@@ -2026,10 +2329,10 @@ function Si() {
|
|
2026
2329
|
*/
|
2027
2330
|
class te {
|
2028
2331
|
constructor(e, t) {
|
2029
|
-
this.shortDelay = e, this.longDelay = t, R(t > e, "Short delay should be less than long delay!"), this.isMobile =
|
2332
|
+
this.shortDelay = e, this.longDelay = t, R(t > e, "Short delay should be less than long delay!"), this.isMobile = ur() || fr();
|
2030
2333
|
}
|
2031
2334
|
get() {
|
2032
|
-
return
|
2335
|
+
return Fi() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
2033
2336
|
}
|
2034
2337
|
}
|
2035
2338
|
/**
|
@@ -2123,7 +2426,7 @@ class nn {
|
|
2123
2426
|
* See the License for the specific language governing permissions and
|
2124
2427
|
* limitations under the License.
|
2125
2428
|
*/
|
2126
|
-
const
|
2429
|
+
const ji = {
|
2127
2430
|
// Custom token errors.
|
2128
2431
|
CREDENTIAL_MISMATCH: "custom-token-mismatch",
|
2129
2432
|
// This can only happen if the SDK sends a bad request.
|
@@ -2214,54 +2517,54 @@ const Ai = {
|
|
2214
2517
|
* See the License for the specific language governing permissions and
|
2215
2518
|
* limitations under the License.
|
2216
2519
|
*/
|
2217
|
-
const
|
2218
|
-
function
|
2520
|
+
const Hi = new te(3e4, 6e4);
|
2521
|
+
function ve(n, e) {
|
2219
2522
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
2220
2523
|
}
|
2221
|
-
async function
|
2524
|
+
async function Z(n, e, t, r, i = {}) {
|
2222
2525
|
return rn(n, i, async () => {
|
2223
|
-
let s = {},
|
2224
|
-
r && (e === "GET" ?
|
2526
|
+
let s = {}, a = {};
|
2527
|
+
r && (e === "GET" ? a = r : s = {
|
2225
2528
|
body: JSON.stringify(r)
|
2226
2529
|
});
|
2227
|
-
const
|
2228
|
-
|
2530
|
+
const c = Q(Object.assign({ key: n.config.apiKey }, a)).slice(1), o = await n._getAdditionalHeaders();
|
2531
|
+
o[
|
2229
2532
|
"Content-Type"
|
2230
2533
|
/* HttpHeader.CONTENT_TYPE */
|
2231
|
-
] = "application/json", n.languageCode && (
|
2534
|
+
] = "application/json", n.languageCode && (o[
|
2232
2535
|
"X-Firebase-Locale"
|
2233
2536
|
/* HttpHeader.X_FIREBASE_LOCALE */
|
2234
2537
|
] = n.languageCode);
|
2235
2538
|
const l = Object.assign({
|
2236
2539
|
method: e,
|
2237
|
-
headers:
|
2540
|
+
headers: o
|
2238
2541
|
}, s);
|
2239
|
-
return
|
2542
|
+
return hr() || (l.referrerPolicy = "no-referrer"), nn.fetch()(an(n, n.config.apiHost, t, c), l);
|
2240
2543
|
});
|
2241
2544
|
}
|
2242
2545
|
async function rn(n, e, t) {
|
2243
2546
|
n._canInitEmulator = !1;
|
2244
|
-
const r = Object.assign(Object.assign({},
|
2547
|
+
const r = Object.assign(Object.assign({}, ji), e);
|
2245
2548
|
try {
|
2246
|
-
const i = new
|
2549
|
+
const i = new Vi(n), s = await Promise.race([
|
2247
2550
|
t(),
|
2248
2551
|
i.promise
|
2249
2552
|
]);
|
2250
2553
|
i.clearNetworkTimeout();
|
2251
|
-
const
|
2252
|
-
if ("needConfirmation" in
|
2253
|
-
throw ie(n, "account-exists-with-different-credential",
|
2254
|
-
if (s.ok && !("errorMessage" in
|
2255
|
-
return
|
2554
|
+
const a = await s.json();
|
2555
|
+
if ("needConfirmation" in a)
|
2556
|
+
throw ie(n, "account-exists-with-different-credential", a);
|
2557
|
+
if (s.ok && !("errorMessage" in a))
|
2558
|
+
return a;
|
2256
2559
|
{
|
2257
|
-
const
|
2258
|
-
if (
|
2259
|
-
throw ie(n, "credential-already-in-use",
|
2260
|
-
if (
|
2261
|
-
throw ie(n, "email-already-in-use",
|
2262
|
-
if (
|
2263
|
-
throw ie(n, "user-disabled",
|
2264
|
-
const u = r[
|
2560
|
+
const c = s.ok ? a.errorMessage : a.error.message, [o, l] = c.split(" : ");
|
2561
|
+
if (o === "FEDERATED_USER_ID_ALREADY_LINKED")
|
2562
|
+
throw ie(n, "credential-already-in-use", a);
|
2563
|
+
if (o === "EMAIL_EXISTS")
|
2564
|
+
throw ie(n, "email-already-in-use", a);
|
2565
|
+
if (o === "USER_DISABLED")
|
2566
|
+
throw ie(n, "user-disabled", a);
|
2567
|
+
const u = r[o] || o.toLowerCase().replace(/[_\s]+/g, "-");
|
2265
2568
|
if (l)
|
2266
2569
|
throw tn(n, u, l);
|
2267
2570
|
w(n, u);
|
@@ -2273,23 +2576,23 @@ async function rn(n, e, t) {
|
|
2273
2576
|
}
|
2274
2577
|
}
|
2275
2578
|
async function sn(n, e, t, r, i = {}) {
|
2276
|
-
const s = await
|
2579
|
+
const s = await Z(n, e, t, r, i);
|
2277
2580
|
return "mfaPendingCredential" in s && w(n, "multi-factor-auth-required", {
|
2278
2581
|
_serverResponse: s
|
2279
2582
|
}), s;
|
2280
2583
|
}
|
2281
|
-
function
|
2584
|
+
function an(n, e, t, r) {
|
2282
2585
|
const i = `${e}${t}?${r}`;
|
2283
2586
|
return n.config.emulator ? Xe(n.config, i) : `${n.config.apiScheme}://${i}`;
|
2284
2587
|
}
|
2285
|
-
class
|
2588
|
+
class Vi {
|
2286
2589
|
constructor(e) {
|
2287
2590
|
this.auth = e, this.timer = null, this.promise = new Promise((t, r) => {
|
2288
2591
|
this.timer = setTimeout(() => r(_(
|
2289
2592
|
this.auth,
|
2290
2593
|
"network-request-failed"
|
2291
2594
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
2292
|
-
)),
|
2595
|
+
)), Hi.get());
|
2293
2596
|
});
|
2294
2597
|
}
|
2295
2598
|
clearNetworkTimeout() {
|
@@ -2320,11 +2623,11 @@ function ie(n, e, t) {
|
|
2320
2623
|
* See the License for the specific language governing permissions and
|
2321
2624
|
* limitations under the License.
|
2322
2625
|
*/
|
2323
|
-
async function
|
2324
|
-
return
|
2626
|
+
async function Gi(n, e) {
|
2627
|
+
return Z(n, "POST", "/v1/accounts:delete", e);
|
2325
2628
|
}
|
2326
|
-
async function
|
2327
|
-
return
|
2629
|
+
async function on(n, e) {
|
2630
|
+
return Z(n, "POST", "/v1/accounts:lookup", e);
|
2328
2631
|
}
|
2329
2632
|
/**
|
2330
2633
|
* @license
|
@@ -2351,7 +2654,7 @@ function J(n) {
|
|
2351
2654
|
} catch {
|
2352
2655
|
}
|
2353
2656
|
}
|
2354
|
-
async function
|
2657
|
+
async function Wi(n, e = !1) {
|
2355
2658
|
const t = z(n), r = await t.getIdToken(e), i = Ye(r);
|
2356
2659
|
d(
|
2357
2660
|
i && i.exp && i.auth_time && i.iat,
|
@@ -2359,14 +2662,14 @@ async function Di(n, e = !1) {
|
|
2359
2662
|
"internal-error"
|
2360
2663
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2361
2664
|
);
|
2362
|
-
const s = typeof i.firebase == "object" ? i.firebase : void 0,
|
2665
|
+
const s = typeof i.firebase == "object" ? i.firebase : void 0, a = s == null ? void 0 : s.sign_in_provider;
|
2363
2666
|
return {
|
2364
2667
|
claims: i,
|
2365
2668
|
token: r,
|
2366
2669
|
authTime: J(Ce(i.auth_time)),
|
2367
2670
|
issuedAtTime: J(Ce(i.iat)),
|
2368
2671
|
expirationTime: J(Ce(i.exp)),
|
2369
|
-
signInProvider:
|
2672
|
+
signInProvider: a || null,
|
2370
2673
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
2371
2674
|
};
|
2372
2675
|
}
|
@@ -2422,10 +2725,10 @@ async function K(n, e, t = !1) {
|
|
2422
2725
|
try {
|
2423
2726
|
return await e;
|
2424
2727
|
} catch (r) {
|
2425
|
-
throw r instanceof M &&
|
2728
|
+
throw r instanceof M && zi(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
|
2426
2729
|
}
|
2427
2730
|
}
|
2428
|
-
function
|
2731
|
+
function zi({ code: n }) {
|
2429
2732
|
return n === "auth/user-disabled" || n === "auth/user-token-expired";
|
2430
2733
|
}
|
2431
2734
|
/**
|
@@ -2444,7 +2747,7 @@ function Pi({ code: n }) {
|
|
2444
2747
|
* See the License for the specific language governing permissions and
|
2445
2748
|
* limitations under the License.
|
2446
2749
|
*/
|
2447
|
-
class
|
2750
|
+
class Zi {
|
2448
2751
|
constructor(e) {
|
2449
2752
|
this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
|
2450
2753
|
}
|
@@ -2539,9 +2842,9 @@ class He {
|
|
2539
2842
|
* See the License for the specific language governing permissions and
|
2540
2843
|
* limitations under the License.
|
2541
2844
|
*/
|
2542
|
-
async function
|
2845
|
+
async function fe(n) {
|
2543
2846
|
var e;
|
2544
|
-
const t = n.auth, r = await n.getIdToken(), i = await K(n,
|
2847
|
+
const t = n.auth, r = await n.getIdToken(), i = await K(n, on(t, { idToken: r }));
|
2545
2848
|
d(
|
2546
2849
|
i == null ? void 0 : i.users.length,
|
2547
2850
|
t,
|
@@ -2550,7 +2853,7 @@ async function pe(n) {
|
|
2550
2853
|
);
|
2551
2854
|
const s = i.users[0];
|
2552
2855
|
n._notifyReloadListener(s);
|
2553
|
-
const
|
2856
|
+
const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? cn(s.providerUserInfo) : [], c = Ji(n.providerData, a), o = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), u = o ? l : !1, p = {
|
2554
2857
|
uid: s.localId,
|
2555
2858
|
displayName: s.displayName || null,
|
2556
2859
|
photoURL: s.photoUrl || null,
|
@@ -2558,22 +2861,22 @@ async function pe(n) {
|
|
2558
2861
|
emailVerified: s.emailVerified || !1,
|
2559
2862
|
phoneNumber: s.phoneNumber || null,
|
2560
2863
|
tenantId: s.tenantId || null,
|
2561
|
-
providerData:
|
2864
|
+
providerData: c,
|
2562
2865
|
metadata: new He(s.createdAt, s.lastLoginAt),
|
2563
2866
|
isAnonymous: u
|
2564
2867
|
};
|
2565
2868
|
Object.assign(n, p);
|
2566
2869
|
}
|
2567
|
-
async function
|
2870
|
+
async function $i(n) {
|
2568
2871
|
const e = z(n);
|
2569
|
-
await
|
2872
|
+
await fe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
2570
2873
|
}
|
2571
|
-
function
|
2874
|
+
function Ji(n, e) {
|
2572
2875
|
return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
|
2573
2876
|
}
|
2574
2877
|
function cn(n) {
|
2575
2878
|
return n.map((e) => {
|
2576
|
-
var { providerId: t } = e, r =
|
2879
|
+
var { providerId: t } = e, r = $e(e, ["providerId"]);
|
2577
2880
|
return {
|
2578
2881
|
providerId: t,
|
2579
2882
|
uid: r.rawId || "",
|
@@ -2600,18 +2903,18 @@ function cn(n) {
|
|
2600
2903
|
* See the License for the specific language governing permissions and
|
2601
2904
|
* limitations under the License.
|
2602
2905
|
*/
|
2603
|
-
async function
|
2906
|
+
async function Xi(n, e) {
|
2604
2907
|
const t = await rn(n, {}, async () => {
|
2605
2908
|
const r = Q({
|
2606
2909
|
grant_type: "refresh_token",
|
2607
2910
|
refresh_token: e
|
2608
|
-
}).slice(1), { tokenApiHost: i, apiKey: s } = n.config,
|
2609
|
-
return
|
2911
|
+
}).slice(1), { tokenApiHost: i, apiKey: s } = n.config, a = an(n, i, "/v1/token", `key=${s}`), c = await n._getAdditionalHeaders();
|
2912
|
+
return c[
|
2610
2913
|
"Content-Type"
|
2611
2914
|
/* HttpHeader.CONTENT_TYPE */
|
2612
|
-
] = "application/x-www-form-urlencoded", nn.fetch()(
|
2915
|
+
] = "application/x-www-form-urlencoded", nn.fetch()(a, {
|
2613
2916
|
method: "POST",
|
2614
|
-
headers:
|
2917
|
+
headers: c,
|
2615
2918
|
body: r
|
2616
2919
|
});
|
2617
2920
|
});
|
@@ -2621,8 +2924,8 @@ async function Bi(n, e) {
|
|
2621
2924
|
refreshToken: t.refresh_token
|
2622
2925
|
};
|
2623
2926
|
}
|
2624
|
-
async function
|
2625
|
-
return
|
2927
|
+
async function Yi(n, e) {
|
2928
|
+
return Z(n, "POST", "/v2/accounts:revokeToken", ve(n, e));
|
2626
2929
|
}
|
2627
2930
|
/**
|
2628
2931
|
* @license
|
@@ -2640,7 +2943,7 @@ async function Fi(n, e) {
|
|
2640
2943
|
* See the License for the specific language governing permissions and
|
2641
2944
|
* limitations under the License.
|
2642
2945
|
*/
|
2643
|
-
class
|
2946
|
+
class H {
|
2644
2947
|
constructor() {
|
2645
2948
|
this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
|
2646
2949
|
}
|
@@ -2685,21 +2988,21 @@ class W {
|
|
2685
2988
|
this.refreshToken = null;
|
2686
2989
|
}
|
2687
2990
|
async refresh(e, t) {
|
2688
|
-
const { accessToken: r, refreshToken: i, expiresIn: s } = await
|
2991
|
+
const { accessToken: r, refreshToken: i, expiresIn: s } = await Xi(e, t);
|
2689
2992
|
this.updateTokensAndExpiration(r, i, Number(s));
|
2690
2993
|
}
|
2691
2994
|
updateTokensAndExpiration(e, t, r) {
|
2692
2995
|
this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + r * 1e3;
|
2693
2996
|
}
|
2694
2997
|
static fromJSON(e, t) {
|
2695
|
-
const { refreshToken: r, accessToken: i, expirationTime: s } = t,
|
2998
|
+
const { refreshToken: r, accessToken: i, expirationTime: s } = t, a = new H();
|
2696
2999
|
return r && (d(typeof r == "string", "internal-error", {
|
2697
3000
|
appName: e
|
2698
|
-
}),
|
3001
|
+
}), a.refreshToken = r), i && (d(typeof i == "string", "internal-error", {
|
2699
3002
|
appName: e
|
2700
|
-
}),
|
3003
|
+
}), a.accessToken = i), s && (d(typeof s == "number", "internal-error", {
|
2701
3004
|
appName: e
|
2702
|
-
}),
|
3005
|
+
}), a.expirationTime = s), a;
|
2703
3006
|
}
|
2704
3007
|
toJSON() {
|
2705
3008
|
return {
|
@@ -2712,7 +3015,7 @@ class W {
|
|
2712
3015
|
this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
|
2713
3016
|
}
|
2714
3017
|
_clone() {
|
2715
|
-
return Object.assign(new
|
3018
|
+
return Object.assign(new H(), this.toJSON());
|
2716
3019
|
}
|
2717
3020
|
_performRefresh() {
|
2718
3021
|
return b("not implemented");
|
@@ -2739,8 +3042,8 @@ function k(n, e) {
|
|
2739
3042
|
}
|
2740
3043
|
class y {
|
2741
3044
|
constructor(e) {
|
2742
|
-
var { uid: t, auth: r, stsTokenManager: i } = e, s =
|
2743
|
-
this.providerId = "firebase", this.proactiveRefresh = new
|
3045
|
+
var { uid: t, auth: r, stsTokenManager: i } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
|
3046
|
+
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 He(s.createdAt || void 0, s.lastLoginAt || void 0);
|
2744
3047
|
}
|
2745
3048
|
async getIdToken(e) {
|
2746
3049
|
const t = await K(this, this.stsTokenManager.getToken(this.auth, e));
|
@@ -2752,10 +3055,10 @@ class y {
|
|
2752
3055
|
), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
|
2753
3056
|
}
|
2754
3057
|
getIdTokenResult(e) {
|
2755
|
-
return
|
3058
|
+
return Wi(this, e);
|
2756
3059
|
}
|
2757
3060
|
reload() {
|
2758
|
-
return
|
3061
|
+
return $i(this);
|
2759
3062
|
}
|
2760
3063
|
_assign(e) {
|
2761
3064
|
this !== e && (d(
|
@@ -2788,13 +3091,13 @@ class y {
|
|
2788
3091
|
}
|
2789
3092
|
async _updateTokensIfNecessary(e, t = !1) {
|
2790
3093
|
let r = !1;
|
2791
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await
|
3094
|
+
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);
|
2792
3095
|
}
|
2793
3096
|
async delete() {
|
2794
3097
|
if (I(this.auth.app))
|
2795
3098
|
return Promise.reject(P(this.auth));
|
2796
3099
|
const e = await this.getIdToken();
|
2797
|
-
return await K(this,
|
3100
|
+
return await K(this, Gi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
2798
3101
|
}
|
2799
3102
|
toJSON() {
|
2800
3103
|
return Object.assign(Object.assign({
|
@@ -2821,17 +3124,17 @@ class y {
|
|
2821
3124
|
return this.stsTokenManager.refreshToken || "";
|
2822
3125
|
}
|
2823
3126
|
static _fromJSON(e, t) {
|
2824
|
-
var r, i, s,
|
2825
|
-
const p = (r = t.displayName) !== null && r !== void 0 ? r : void 0, m = (i = t.email) !== null && i !== void 0 ? i : void 0, v = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, F = (
|
3127
|
+
var r, i, s, a, c, o, l, u;
|
3128
|
+
const p = (r = t.displayName) !== null && r !== void 0 ? r : void 0, m = (i = t.email) !== null && i !== void 0 ? i : void 0, v = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, F = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, tt = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, Ee = (o = t._redirectEventId) !== null && o !== void 0 ? o : void 0, nt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, rt = (u = t.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: Te, emailVerified: it, isAnonymous: st, providerData: we, stsTokenManager: at } = t;
|
2826
3129
|
d(
|
2827
|
-
|
3130
|
+
Te && at,
|
2828
3131
|
e,
|
2829
3132
|
"internal-error"
|
2830
3133
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2831
3134
|
);
|
2832
|
-
const Pn =
|
3135
|
+
const Pn = H.fromJSON(this.name, at);
|
2833
3136
|
d(
|
2834
|
-
typeof
|
3137
|
+
typeof Te == "string",
|
2835
3138
|
e,
|
2836
3139
|
"internal-error"
|
2837
3140
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -2845,9 +3148,9 @@ class y {
|
|
2845
3148
|
e,
|
2846
3149
|
"internal-error"
|
2847
3150
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2848
|
-
), k(v, e.name), k(F, e.name), k(tt, e.name), k(
|
2849
|
-
const
|
2850
|
-
uid:
|
3151
|
+
), k(v, e.name), k(F, e.name), k(tt, e.name), k(Ee, e.name), k(nt, e.name), k(rt, e.name);
|
3152
|
+
const Re = new y({
|
3153
|
+
uid: Te,
|
2851
3154
|
auth: e,
|
2852
3155
|
email: m,
|
2853
3156
|
emailVerified: it,
|
@@ -2860,7 +3163,7 @@ class y {
|
|
2860
3163
|
createdAt: nt,
|
2861
3164
|
lastLoginAt: rt
|
2862
3165
|
});
|
2863
|
-
return
|
3166
|
+
return we && Array.isArray(we) && (Re.providerData = we.map((Mn) => Object.assign({}, Mn))), Ee && (Re._redirectEventId = Ee), Re;
|
2864
3167
|
}
|
2865
3168
|
/**
|
2866
3169
|
* Initialize a User from an idToken server response
|
@@ -2868,7 +3171,7 @@ class y {
|
|
2868
3171
|
* @param idTokenResponse
|
2869
3172
|
*/
|
2870
3173
|
static async _fromIdTokenResponse(e, t, r = !1) {
|
2871
|
-
const i = new
|
3174
|
+
const i = new H();
|
2872
3175
|
i.updateFromServerResponse(t);
|
2873
3176
|
const s = new y({
|
2874
3177
|
uid: t.localId,
|
@@ -2876,7 +3179,7 @@ class y {
|
|
2876
3179
|
stsTokenManager: i,
|
2877
3180
|
isAnonymous: r
|
2878
3181
|
});
|
2879
|
-
return await
|
3182
|
+
return await fe(s), s;
|
2880
3183
|
}
|
2881
3184
|
/**
|
2882
3185
|
* Initialize a User from an idToken server response
|
@@ -2890,13 +3193,13 @@ class y {
|
|
2890
3193
|
"internal-error"
|
2891
3194
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2892
3195
|
);
|
2893
|
-
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [],
|
2894
|
-
|
2895
|
-
const
|
3196
|
+
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), c = new H();
|
3197
|
+
c.updateFromIdToken(r);
|
3198
|
+
const o = new y({
|
2896
3199
|
uid: i.localId,
|
2897
3200
|
auth: e,
|
2898
|
-
stsTokenManager:
|
2899
|
-
isAnonymous:
|
3201
|
+
stsTokenManager: c,
|
3202
|
+
isAnonymous: a
|
2900
3203
|
}), l = {
|
2901
3204
|
uid: i.localId,
|
2902
3205
|
displayName: i.displayName || null,
|
@@ -2909,7 +3212,7 @@ class y {
|
|
2909
3212
|
metadata: new He(i.createdAt, i.lastLoginAt),
|
2910
3213
|
isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
|
2911
3214
|
};
|
2912
|
-
return Object.assign(
|
3215
|
+
return Object.assign(o, l), o;
|
2913
3216
|
}
|
2914
3217
|
}
|
2915
3218
|
/**
|
@@ -2990,14 +3293,14 @@ const yt = ln;
|
|
2990
3293
|
* See the License for the specific language governing permissions and
|
2991
3294
|
* limitations under the License.
|
2992
3295
|
*/
|
2993
|
-
function
|
3296
|
+
function ae(n, e, t) {
|
2994
3297
|
return `firebase:${n}:${e}:${t}`;
|
2995
3298
|
}
|
2996
3299
|
class V {
|
2997
3300
|
constructor(e, t, r) {
|
2998
3301
|
this.persistence = e, this.auth = t, this.userKey = r;
|
2999
3302
|
const { config: i, name: s } = this.auth;
|
3000
|
-
this.fullUserKey =
|
3303
|
+
this.fullUserKey = ae(this.userKey, i.apiKey, s), this.fullPersistenceKey = ae("persistence", i.apiKey, s), this.boundEventHandler = t._onStorageEvent.bind(t), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
|
3001
3304
|
}
|
3002
3305
|
setCurrentUser(e) {
|
3003
3306
|
return this.persistence._set(this.fullUserKey, e.toJSON());
|
@@ -3030,23 +3333,23 @@ class V {
|
|
3030
3333
|
return l;
|
3031
3334
|
}))).filter((l) => l);
|
3032
3335
|
let s = i[0] || E(yt);
|
3033
|
-
const
|
3034
|
-
let
|
3336
|
+
const a = ae(r, e.config.apiKey, e.name);
|
3337
|
+
let c = null;
|
3035
3338
|
for (const l of t)
|
3036
3339
|
try {
|
3037
|
-
const u = await l._get(
|
3340
|
+
const u = await l._get(a);
|
3038
3341
|
if (u) {
|
3039
3342
|
const p = y._fromJSON(e, u);
|
3040
|
-
l !== s && (
|
3343
|
+
l !== s && (c = p), s = l;
|
3041
3344
|
break;
|
3042
3345
|
}
|
3043
3346
|
} catch {
|
3044
3347
|
}
|
3045
|
-
const
|
3046
|
-
return !s._shouldAllowMigration || !
|
3348
|
+
const o = i.filter((l) => l._shouldAllowMigration);
|
3349
|
+
return !s._shouldAllowMigration || !o.length ? new V(s, e, r) : (s = o[0], c && await s._set(a, c.toJSON()), await Promise.all(t.map(async (l) => {
|
3047
3350
|
if (l !== s)
|
3048
3351
|
try {
|
3049
|
-
await l._remove(
|
3352
|
+
await l._remove(a);
|
3050
3353
|
} catch {
|
3051
3354
|
}
|
3052
3355
|
})), new V(s, e, r));
|
@@ -3124,12 +3427,12 @@ function _n(n = f()) {
|
|
3124
3427
|
function Ke(n = f()) {
|
3125
3428
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
3126
3429
|
}
|
3127
|
-
function
|
3430
|
+
function Ki(n = f()) {
|
3128
3431
|
var e;
|
3129
3432
|
return Ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
3130
3433
|
}
|
3131
|
-
function
|
3132
|
-
return
|
3434
|
+
function qi() {
|
3435
|
+
return mr() && document.documentMode === 10;
|
3133
3436
|
}
|
3134
3437
|
function gn(n = f()) {
|
3135
3438
|
return Ke(n) || fn(n) || _n(n) || mn(n) || /windows phone/i.test(n) || pn(n);
|
@@ -3181,17 +3484,17 @@ function vn(n, e = []) {
|
|
3181
3484
|
* See the License for the specific language governing permissions and
|
3182
3485
|
* limitations under the License.
|
3183
3486
|
*/
|
3184
|
-
class
|
3487
|
+
class Qi {
|
3185
3488
|
constructor(e) {
|
3186
3489
|
this.auth = e, this.queue = [];
|
3187
3490
|
}
|
3188
3491
|
pushCallback(e, t) {
|
3189
|
-
const r = (s) => new Promise((
|
3492
|
+
const r = (s) => new Promise((a, c) => {
|
3190
3493
|
try {
|
3191
|
-
const
|
3192
|
-
o
|
3193
|
-
} catch (
|
3194
|
-
|
3494
|
+
const o = e(s);
|
3495
|
+
a(o);
|
3496
|
+
} catch (o) {
|
3497
|
+
c(o);
|
3195
3498
|
}
|
3196
3499
|
});
|
3197
3500
|
r.onAbort = t, this.queue.push(r);
|
@@ -3236,8 +3539,8 @@ class Wi {
|
|
3236
3539
|
* See the License for the specific language governing permissions and
|
3237
3540
|
* limitations under the License.
|
3238
3541
|
*/
|
3239
|
-
async function
|
3240
|
-
return
|
3542
|
+
async function es(n, e = {}) {
|
3543
|
+
return Z(n, "GET", "/v2/passwordPolicy", ve(n, e));
|
3241
3544
|
}
|
3242
3545
|
/**
|
3243
3546
|
* @license
|
@@ -3255,20 +3558,20 @@ async function Vi(n, e = {}) {
|
|
3255
3558
|
* See the License for the specific language governing permissions and
|
3256
3559
|
* limitations under the License.
|
3257
3560
|
*/
|
3258
|
-
const
|
3259
|
-
class
|
3561
|
+
const ts = 6;
|
3562
|
+
class ns {
|
3260
3563
|
constructor(e) {
|
3261
3564
|
var t, r, i, s;
|
3262
|
-
const
|
3263
|
-
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t =
|
3565
|
+
const a = e.customStrengthOptions;
|
3566
|
+
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = a.minPasswordLength) !== null && t !== void 0 ? t : ts, a.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = a.maxPasswordLength), a.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = a.containsLowercaseCharacter), a.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = a.containsUppercaseCharacter), a.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = a.containsNumericCharacter), a.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = a.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (i = (r = e.allowedNonAlphanumericCharacters) === null || r === void 0 ? void 0 : r.join("")) !== null && i !== void 0 ? i : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
|
3264
3567
|
}
|
3265
3568
|
validatePassword(e) {
|
3266
|
-
var t, r, i, s,
|
3267
|
-
const
|
3569
|
+
var t, r, i, s, a, c;
|
3570
|
+
const o = {
|
3268
3571
|
isValid: !0,
|
3269
3572
|
passwordPolicy: this
|
3270
3573
|
};
|
3271
|
-
return this.validatePasswordLengthOptions(e,
|
3574
|
+
return this.validatePasswordLengthOptions(e, o), this.validatePasswordCharacterOptions(e, o), o.isValid && (o.isValid = (t = o.meetsMinPasswordLength) !== null && t !== void 0 ? t : !0), o.isValid && (o.isValid = (r = o.meetsMaxPasswordLength) !== null && r !== void 0 ? r : !0), o.isValid && (o.isValid = (i = o.containsLowercaseLetter) !== null && i !== void 0 ? i : !0), o.isValid && (o.isValid = (s = o.containsUppercaseLetter) !== null && s !== void 0 ? s : !0), o.isValid && (o.isValid = (a = o.containsNumericCharacter) !== null && a !== void 0 ? a : !0), o.isValid && (o.isValid = (c = o.containsNonAlphanumericCharacter) !== null && c !== void 0 ? c : !0), o;
|
3272
3575
|
}
|
3273
3576
|
/**
|
3274
3577
|
* Validates that the password meets the length options for the policy.
|
@@ -3343,9 +3646,9 @@ class Gi {
|
|
3343
3646
|
* See the License for the specific language governing permissions and
|
3344
3647
|
* limitations under the License.
|
3345
3648
|
*/
|
3346
|
-
class
|
3649
|
+
class rs {
|
3347
3650
|
constructor(e, t, r, i) {
|
3348
|
-
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 Tt(this), this.idTokenSubscription = new Tt(this), this.beforeStateQueue = new
|
3651
|
+
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 Tt(this), this.idTokenSubscription = new Tt(this), this.beforeStateQueue = new Qi(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = en, 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;
|
3349
3652
|
}
|
3350
3653
|
_initializeWithPersistence(e, t) {
|
3351
3654
|
return t && (this._popupRedirectResolver = E(t)), this._initializationPromise = this.queue(async () => {
|
@@ -3381,7 +3684,7 @@ class zi {
|
|
3381
3684
|
}
|
3382
3685
|
async initializeCurrentUserFromIdToken(e) {
|
3383
3686
|
try {
|
3384
|
-
const t = await
|
3687
|
+
const t = await on(this, { idToken: e }), r = await y._fromGetAccountInfoResponse(this, t, e);
|
3385
3688
|
await this.directlySetCurrentUser(r);
|
3386
3689
|
} catch (t) {
|
3387
3690
|
console.warn("FirebaseServerApp could not login user with provided authIdToken: ", t), await this.directlySetCurrentUser(null);
|
@@ -3390,17 +3693,17 @@ class zi {
|
|
3390
3693
|
async initializeCurrentUser(e) {
|
3391
3694
|
var t;
|
3392
3695
|
if (I(this.app)) {
|
3393
|
-
const
|
3394
|
-
return
|
3395
|
-
setTimeout(() => this.initializeCurrentUserFromIdToken(
|
3696
|
+
const a = this.app.settings.authIdToken;
|
3697
|
+
return a ? new Promise((c) => {
|
3698
|
+
setTimeout(() => this.initializeCurrentUserFromIdToken(a).then(c, c));
|
3396
3699
|
}) : this.directlySetCurrentUser(null);
|
3397
3700
|
}
|
3398
3701
|
const r = await this.assertedPersistence.getCurrentUser();
|
3399
3702
|
let i = r, s = !1;
|
3400
3703
|
if (e && this.config.authDomain) {
|
3401
3704
|
await this.getOrInitRedirectPersistenceManager();
|
3402
|
-
const
|
3403
|
-
(!
|
3705
|
+
const a = (t = this.redirectUser) === null || t === void 0 ? void 0 : t._redirectEventId, c = i == null ? void 0 : i._redirectEventId, o = await this.tryRedirectSignIn(e);
|
3706
|
+
(!a || a === c) && (o != null && o.user) && (i = o.user, s = !0);
|
3404
3707
|
}
|
3405
3708
|
if (!i)
|
3406
3709
|
return this.directlySetCurrentUser(null);
|
@@ -3408,8 +3711,8 @@ class zi {
|
|
3408
3711
|
if (s)
|
3409
3712
|
try {
|
3410
3713
|
await this.beforeStateQueue.runMiddleware(i);
|
3411
|
-
} catch (
|
3412
|
-
i = r, this._popupRedirectResolver._overrideRedirectResult(this, () => Promise.reject(
|
3714
|
+
} catch (a) {
|
3715
|
+
i = r, this._popupRedirectResolver._overrideRedirectResult(this, () => Promise.reject(a));
|
3413
3716
|
}
|
3414
3717
|
return i ? this.reloadAndSetCurrentUserOrClear(i) : this.directlySetCurrentUser(null);
|
3415
3718
|
}
|
@@ -3431,7 +3734,7 @@ class zi {
|
|
3431
3734
|
}
|
3432
3735
|
async reloadAndSetCurrentUserOrClear(e) {
|
3433
3736
|
try {
|
3434
|
-
await
|
3737
|
+
await fe(e);
|
3435
3738
|
} catch (t) {
|
3436
3739
|
if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
|
3437
3740
|
return this.directlySetCurrentUser(null);
|
@@ -3439,7 +3742,7 @@ class zi {
|
|
3439
3742
|
return this.directlySetCurrentUser(e);
|
3440
3743
|
}
|
3441
3744
|
useDeviceLanguage() {
|
3442
|
-
this.languageCode =
|
3745
|
+
this.languageCode = xi();
|
3443
3746
|
}
|
3444
3747
|
async _delete() {
|
3445
3748
|
this._deleted = !0;
|
@@ -3490,7 +3793,7 @@ class zi {
|
|
3490
3793
|
return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
|
3491
3794
|
}
|
3492
3795
|
async _updatePasswordPolicy() {
|
3493
|
-
const e = await
|
3796
|
+
const e = await es(this), t = new ns(e);
|
3494
3797
|
this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
|
3495
3798
|
}
|
3496
3799
|
_getPersistence() {
|
@@ -3530,7 +3833,7 @@ class zi {
|
|
3530
3833
|
token: e,
|
3531
3834
|
idToken: t
|
3532
3835
|
};
|
3533
|
-
this.tenantId != null && (r.tenantId = this.tenantId), await
|
3836
|
+
this.tenantId != null && (r.tenantId = this.tenantId), await Yi(this, r);
|
3534
3837
|
}
|
3535
3838
|
}
|
3536
3839
|
toJSON() {
|
@@ -3602,24 +3905,24 @@ class zi {
|
|
3602
3905
|
return () => {
|
3603
3906
|
};
|
3604
3907
|
const s = typeof t == "function" ? t : t.next.bind(t);
|
3605
|
-
let
|
3606
|
-
const
|
3908
|
+
let a = !1;
|
3909
|
+
const c = this._isInitialized ? Promise.resolve() : this._initializationPromise;
|
3607
3910
|
if (d(
|
3608
|
-
|
3911
|
+
c,
|
3609
3912
|
this,
|
3610
3913
|
"internal-error"
|
3611
3914
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3612
|
-
),
|
3613
|
-
|
3915
|
+
), c.then(() => {
|
3916
|
+
a || s(this.currentUser);
|
3614
3917
|
}), typeof t == "function") {
|
3615
|
-
const
|
3918
|
+
const o = e.addObserver(t, r, i);
|
3616
3919
|
return () => {
|
3617
|
-
|
3920
|
+
a = !0, o();
|
3618
3921
|
};
|
3619
3922
|
} else {
|
3620
|
-
const
|
3923
|
+
const o = e.addObserver(t);
|
3621
3924
|
return () => {
|
3622
|
-
|
3925
|
+
a = !0, o();
|
3623
3926
|
};
|
3624
3927
|
}
|
3625
3928
|
}
|
@@ -3673,15 +3976,15 @@ class zi {
|
|
3673
3976
|
async _getAppCheckToken() {
|
3674
3977
|
var e;
|
3675
3978
|
const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
|
3676
|
-
return t != null && t.error &&
|
3979
|
+
return t != null && t.error && Ui(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
3677
3980
|
}
|
3678
3981
|
}
|
3679
|
-
function
|
3982
|
+
function Ie(n) {
|
3680
3983
|
return z(n);
|
3681
3984
|
}
|
3682
3985
|
class Tt {
|
3683
3986
|
constructor(e) {
|
3684
|
-
this.auth = e, this.observer = null, this.addObserver =
|
3987
|
+
this.auth = e, this.observer = null, this.addObserver = Er((t) => this.observer = t);
|
3685
3988
|
}
|
3686
3989
|
get next() {
|
3687
3990
|
return d(
|
@@ -3716,16 +4019,16 @@ let qe = {
|
|
3716
4019
|
recaptchaEnterpriseScript: "",
|
3717
4020
|
gapiScript: ""
|
3718
4021
|
};
|
3719
|
-
function
|
4022
|
+
function is(n) {
|
3720
4023
|
qe = n;
|
3721
4024
|
}
|
3722
|
-
function
|
4025
|
+
function ss(n) {
|
3723
4026
|
return qe.loadJS(n);
|
3724
4027
|
}
|
3725
|
-
function
|
4028
|
+
function as() {
|
3726
4029
|
return qe.gapiScript;
|
3727
4030
|
}
|
3728
|
-
function
|
4031
|
+
function os(n) {
|
3729
4032
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
3730
4033
|
}
|
3731
4034
|
/**
|
@@ -3744,11 +4047,11 @@ function Xi(n) {
|
|
3744
4047
|
* See the License for the specific language governing permissions and
|
3745
4048
|
* limitations under the License.
|
3746
4049
|
*/
|
3747
|
-
function
|
4050
|
+
function cs(n, e) {
|
3748
4051
|
const t = Xt(n, "auth");
|
3749
4052
|
if (t.isInitialized()) {
|
3750
4053
|
const i = t.getImmediate(), s = t.getOptions();
|
3751
|
-
if (
|
4054
|
+
if (ue(s, e ?? {}))
|
3752
4055
|
return i;
|
3753
4056
|
w(
|
3754
4057
|
i,
|
@@ -3758,12 +4061,12 @@ function Yi(n, e) {
|
|
3758
4061
|
}
|
3759
4062
|
return t.initialize({ options: e });
|
3760
4063
|
}
|
3761
|
-
function
|
4064
|
+
function ls(n, e) {
|
3762
4065
|
const t = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(t) ? t : [t]).map(E);
|
3763
4066
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
3764
4067
|
}
|
3765
|
-
function
|
3766
|
-
const r =
|
4068
|
+
function ds(n, e, t) {
|
4069
|
+
const r = Ie(n);
|
3767
4070
|
d(
|
3768
4071
|
r._canInitEmulator,
|
3769
4072
|
r,
|
@@ -3775,19 +4078,19 @@ function qi(n, e, t) {
|
|
3775
4078
|
"invalid-emulator-scheme"
|
3776
4079
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
3777
4080
|
);
|
3778
|
-
const i = !1, s = In(e), { host:
|
3779
|
-
r.config.emulator = { url: `${s}//${
|
3780
|
-
host:
|
3781
|
-
port:
|
4081
|
+
const i = !1, s = In(e), { host: a, port: c } = us(e), o = c === null ? "" : `:${c}`;
|
4082
|
+
r.config.emulator = { url: `${s}//${a}${o}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
|
4083
|
+
host: a,
|
4084
|
+
port: c,
|
3782
4085
|
protocol: s.replace(":", ""),
|
3783
4086
|
options: Object.freeze({ disableWarnings: i })
|
3784
|
-
}),
|
4087
|
+
}), hs();
|
3785
4088
|
}
|
3786
4089
|
function In(n) {
|
3787
4090
|
const e = n.indexOf(":");
|
3788
4091
|
return e < 0 ? "" : n.substr(0, e + 1);
|
3789
4092
|
}
|
3790
|
-
function
|
4093
|
+
function us(n) {
|
3791
4094
|
const e = In(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
3792
4095
|
if (!t)
|
3793
4096
|
return { host: "", port: null };
|
@@ -3796,8 +4099,8 @@ function Qi(n) {
|
|
3796
4099
|
const s = i[1];
|
3797
4100
|
return { host: s, port: wt(r.substr(s.length + 1)) };
|
3798
4101
|
} else {
|
3799
|
-
const [s,
|
3800
|
-
return { host: s, port: wt(
|
4102
|
+
const [s, a] = r.split(":");
|
4103
|
+
return { host: s, port: wt(a) };
|
3801
4104
|
}
|
3802
4105
|
}
|
3803
4106
|
function wt(n) {
|
@@ -3806,7 +4109,7 @@ function wt(n) {
|
|
3806
4109
|
const e = Number(n);
|
3807
4110
|
return isNaN(e) ? null : e;
|
3808
4111
|
}
|
3809
|
-
function
|
4112
|
+
function hs() {
|
3810
4113
|
function n() {
|
3811
4114
|
const e = document.createElement("p"), t = e.style;
|
3812
4115
|
e.innerText = "Running in emulator mode. Do not use with production credentials.", t.position = "fixed", t.width = "100%", t.backgroundColor = "#ffffff", t.border = ".1em solid #000000", t.color = "#b50000", t.bottom = "0px", t.left = "0px", t.margin = "0px", t.zIndex = "10000", t.textAlign = "center", e.classList.add("firebase-emulator-warning"), document.body.appendChild(e);
|
@@ -3871,8 +4174,8 @@ class bn {
|
|
3871
4174
|
* See the License for the specific language governing permissions and
|
3872
4175
|
* limitations under the License.
|
3873
4176
|
*/
|
3874
|
-
async function
|
3875
|
-
return sn(n, "POST", "/v1/accounts:signInWithIdp",
|
4177
|
+
async function G(n, e) {
|
4178
|
+
return sn(n, "POST", "/v1/accounts:signInWithIdp", ve(n, e));
|
3876
4179
|
}
|
3877
4180
|
/**
|
3878
4181
|
* @license
|
@@ -3890,7 +4193,7 @@ async function j(n, e) {
|
|
3890
4193
|
* See the License for the specific language governing permissions and
|
3891
4194
|
* limitations under the License.
|
3892
4195
|
*/
|
3893
|
-
const
|
4196
|
+
const ps = "http://localhost";
|
3894
4197
|
class U extends bn {
|
3895
4198
|
constructor() {
|
3896
4199
|
super(...arguments), this.pendingToken = null;
|
@@ -3925,30 +4228,30 @@ class U extends bn {
|
|
3925
4228
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
3926
4229
|
*/
|
3927
4230
|
static fromJSON(e) {
|
3928
|
-
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s =
|
4231
|
+
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = $e(t, ["providerId", "signInMethod"]);
|
3929
4232
|
if (!r || !i)
|
3930
4233
|
return null;
|
3931
|
-
const
|
3932
|
-
return
|
4234
|
+
const a = new U(r, i);
|
4235
|
+
return a.idToken = s.idToken || void 0, a.accessToken = s.accessToken || void 0, a.secret = s.secret, a.nonce = s.nonce, a.pendingToken = s.pendingToken || null, a;
|
3933
4236
|
}
|
3934
4237
|
/** @internal */
|
3935
4238
|
_getIdTokenResponse(e) {
|
3936
4239
|
const t = this.buildRequest();
|
3937
|
-
return
|
4240
|
+
return G(e, t);
|
3938
4241
|
}
|
3939
4242
|
/** @internal */
|
3940
4243
|
_linkToIdToken(e, t) {
|
3941
4244
|
const r = this.buildRequest();
|
3942
|
-
return r.idToken = t,
|
4245
|
+
return r.idToken = t, G(e, r);
|
3943
4246
|
}
|
3944
4247
|
/** @internal */
|
3945
4248
|
_getReauthenticationResolver(e) {
|
3946
4249
|
const t = this.buildRequest();
|
3947
|
-
return t.autoCreate = !1,
|
4250
|
+
return t.autoCreate = !1, G(e, t);
|
3948
4251
|
}
|
3949
4252
|
buildRequest() {
|
3950
4253
|
const e = {
|
3951
|
-
requestUri:
|
4254
|
+
requestUri: ps,
|
3952
4255
|
returnSecureToken: !0
|
3953
4256
|
};
|
3954
4257
|
if (this.pendingToken)
|
@@ -4275,7 +4578,7 @@ O.PROVIDER_ID = "github.com";
|
|
4275
4578
|
* See the License for the specific language governing permissions and
|
4276
4579
|
* limitations under the License.
|
4277
4580
|
*/
|
4278
|
-
class
|
4581
|
+
class N extends ne {
|
4279
4582
|
constructor() {
|
4280
4583
|
super(
|
4281
4584
|
"twitter.com"
|
@@ -4290,8 +4593,8 @@ class C extends ne {
|
|
4290
4593
|
*/
|
4291
4594
|
static credential(e, t) {
|
4292
4595
|
return U._fromParams({
|
4293
|
-
providerId:
|
4294
|
-
signInMethod:
|
4596
|
+
providerId: N.PROVIDER_ID,
|
4597
|
+
signInMethod: N.TWITTER_SIGN_IN_METHOD,
|
4295
4598
|
oauthToken: e,
|
4296
4599
|
oauthTokenSecret: t
|
4297
4600
|
});
|
@@ -4302,7 +4605,7 @@ class C extends ne {
|
|
4302
4605
|
* @param userCredential - The user credential.
|
4303
4606
|
*/
|
4304
4607
|
static credentialFromResult(e) {
|
4305
|
-
return
|
4608
|
+
return N.credentialFromTaggedObject(e);
|
4306
4609
|
}
|
4307
4610
|
/**
|
4308
4611
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
@@ -4311,7 +4614,7 @@ class C extends ne {
|
|
4311
4614
|
* @param userCredential - The user credential.
|
4312
4615
|
*/
|
4313
4616
|
static credentialFromError(e) {
|
4314
|
-
return
|
4617
|
+
return N.credentialFromTaggedObject(e.customData || {});
|
4315
4618
|
}
|
4316
4619
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
4317
4620
|
if (!e)
|
@@ -4320,14 +4623,14 @@ class C extends ne {
|
|
4320
4623
|
if (!t || !r)
|
4321
4624
|
return null;
|
4322
4625
|
try {
|
4323
|
-
return
|
4626
|
+
return N.credential(t, r);
|
4324
4627
|
} catch {
|
4325
4628
|
return null;
|
4326
4629
|
}
|
4327
4630
|
}
|
4328
4631
|
}
|
4329
|
-
|
4330
|
-
|
4632
|
+
N.TWITTER_SIGN_IN_METHOD = "twitter.com";
|
4633
|
+
N.PROVIDER_ID = "twitter.com";
|
4331
4634
|
/**
|
4332
4635
|
* @license
|
4333
4636
|
* Copyright 2020 Google LLC
|
@@ -4349,10 +4652,10 @@ class B {
|
|
4349
4652
|
this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
|
4350
4653
|
}
|
4351
4654
|
static async _fromIdTokenResponse(e, t, r, i = !1) {
|
4352
|
-
const s = await y._fromIdTokenResponse(e, r, i),
|
4655
|
+
const s = await y._fromIdTokenResponse(e, r, i), a = Rt(r);
|
4353
4656
|
return new B({
|
4354
4657
|
user: s,
|
4355
|
-
providerId:
|
4658
|
+
providerId: a,
|
4356
4659
|
_tokenResponse: r,
|
4357
4660
|
operationType: t
|
4358
4661
|
});
|
@@ -4391,10 +4694,10 @@ function Rt(n) {
|
|
4391
4694
|
* See the License for the specific language governing permissions and
|
4392
4695
|
* limitations under the License.
|
4393
4696
|
*/
|
4394
|
-
class
|
4697
|
+
class me extends M {
|
4395
4698
|
constructor(e, t, r, i) {
|
4396
4699
|
var s;
|
4397
|
-
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this,
|
4700
|
+
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, me.prototype), this.customData = {
|
4398
4701
|
appName: e.name,
|
4399
4702
|
tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
|
4400
4703
|
_serverResponse: t.customData._serverResponse,
|
@@ -4402,15 +4705,15 @@ class fe extends M {
|
|
4402
4705
|
};
|
4403
4706
|
}
|
4404
4707
|
static _fromErrorAndOperation(e, t, r, i) {
|
4405
|
-
return new
|
4708
|
+
return new me(e, t, r, i);
|
4406
4709
|
}
|
4407
4710
|
}
|
4408
4711
|
function En(n, e, t, r) {
|
4409
4712
|
return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
|
4410
|
-
throw s.code === "auth/multi-factor-auth-required" ?
|
4713
|
+
throw s.code === "auth/multi-factor-auth-required" ? me._fromErrorAndOperation(n, s, e, r) : s;
|
4411
4714
|
});
|
4412
4715
|
}
|
4413
|
-
async function
|
4716
|
+
async function fs(n, e, t = !1) {
|
4414
4717
|
const r = await K(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
|
4415
4718
|
return B._forOperation(n, "link", r);
|
4416
4719
|
}
|
@@ -4430,7 +4733,7 @@ async function ns(n, e, t = !1) {
|
|
4430
4733
|
* See the License for the specific language governing permissions and
|
4431
4734
|
* limitations under the License.
|
4432
4735
|
*/
|
4433
|
-
async function
|
4736
|
+
async function ms(n, e, t = !1) {
|
4434
4737
|
const { auth: r } = n;
|
4435
4738
|
if (I(r.app))
|
4436
4739
|
return Promise.reject(P(r));
|
@@ -4443,16 +4746,16 @@ async function rs(n, e, t = !1) {
|
|
4443
4746
|
"internal-error"
|
4444
4747
|
/* AuthErrorCode.INTERNAL_ERROR */
|
4445
4748
|
);
|
4446
|
-
const
|
4749
|
+
const a = Ye(s.idToken);
|
4447
4750
|
d(
|
4448
|
-
|
4751
|
+
a,
|
4449
4752
|
r,
|
4450
4753
|
"internal-error"
|
4451
4754
|
/* AuthErrorCode.INTERNAL_ERROR */
|
4452
4755
|
);
|
4453
|
-
const { sub:
|
4756
|
+
const { sub: c } = a;
|
4454
4757
|
return d(
|
4455
|
-
n.uid ===
|
4758
|
+
n.uid === c,
|
4456
4759
|
r,
|
4457
4760
|
"user-mismatch"
|
4458
4761
|
/* AuthErrorCode.USER_MISMATCH */
|
@@ -4481,7 +4784,7 @@ async function rs(n, e, t = !1) {
|
|
4481
4784
|
* See the License for the specific language governing permissions and
|
4482
4785
|
* limitations under the License.
|
4483
4786
|
*/
|
4484
|
-
async function
|
4787
|
+
async function _s(n, e, t = !1) {
|
4485
4788
|
if (I(n.app))
|
4486
4789
|
return Promise.reject(P(n));
|
4487
4790
|
const r = "signIn", i = await En(n, r, e), s = await B._fromIdTokenResponse(n, r, i);
|
@@ -4503,8 +4806,8 @@ async function is(n, e, t = !1) {
|
|
4503
4806
|
* See the License for the specific language governing permissions and
|
4504
4807
|
* limitations under the License.
|
4505
4808
|
*/
|
4506
|
-
async function
|
4507
|
-
return sn(n, "POST", "/v1/accounts:signInWithCustomToken",
|
4809
|
+
async function gs(n, e) {
|
4810
|
+
return sn(n, "POST", "/v1/accounts:signInWithCustomToken", ve(n, e));
|
4508
4811
|
}
|
4509
4812
|
/**
|
4510
4813
|
* @license
|
@@ -4522,22 +4825,22 @@ async function ss(n, e) {
|
|
4522
4825
|
* See the License for the specific language governing permissions and
|
4523
4826
|
* limitations under the License.
|
4524
4827
|
*/
|
4525
|
-
async function
|
4828
|
+
async function vs(n, e) {
|
4526
4829
|
if (I(n.app))
|
4527
4830
|
return Promise.reject(P(n));
|
4528
|
-
const t =
|
4831
|
+
const t = Ie(n), r = await gs(t, {
|
4529
4832
|
token: e,
|
4530
4833
|
returnSecureToken: !0
|
4531
4834
|
}), i = await B._fromIdTokenResponse(t, "signIn", r);
|
4532
4835
|
return await t._updateCurrentUser(i.user), i;
|
4533
4836
|
}
|
4534
|
-
function
|
4837
|
+
function Is(n, e, t, r) {
|
4535
4838
|
return z(n).onIdTokenChanged(e, t, r);
|
4536
4839
|
}
|
4537
|
-
function
|
4840
|
+
function bs(n, e, t) {
|
4538
4841
|
return z(n).beforeAuthStateChanged(e, t);
|
4539
4842
|
}
|
4540
|
-
const
|
4843
|
+
const _e = "__sak";
|
4541
4844
|
/**
|
4542
4845
|
* @license
|
4543
4846
|
* Copyright 2019 Google LLC
|
@@ -4560,7 +4863,7 @@ class Tn {
|
|
4560
4863
|
}
|
4561
4864
|
_isAvailable() {
|
4562
4865
|
try {
|
4563
|
-
return this.storage ? (this.storage.setItem(
|
4866
|
+
return this.storage ? (this.storage.setItem(_e, "1"), this.storage.removeItem(_e), Promise.resolve(!0)) : Promise.resolve(!1);
|
4564
4867
|
} catch {
|
4565
4868
|
return Promise.resolve(!1);
|
4566
4869
|
}
|
@@ -4595,7 +4898,7 @@ class Tn {
|
|
4595
4898
|
* See the License for the specific language governing permissions and
|
4596
4899
|
* limitations under the License.
|
4597
4900
|
*/
|
4598
|
-
const
|
4901
|
+
const ys = 1e3, Es = 10;
|
4599
4902
|
class wn extends Tn {
|
4600
4903
|
constructor() {
|
4601
4904
|
super(
|
@@ -4612,18 +4915,18 @@ class wn extends Tn {
|
|
4612
4915
|
}
|
4613
4916
|
onStorageEvent(e, t = !1) {
|
4614
4917
|
if (!e.key) {
|
4615
|
-
this.forAllChangedKeys((
|
4616
|
-
this.notifyListeners(
|
4918
|
+
this.forAllChangedKeys((a, c, o) => {
|
4919
|
+
this.notifyListeners(a, o);
|
4617
4920
|
});
|
4618
4921
|
return;
|
4619
4922
|
}
|
4620
4923
|
const r = e.key;
|
4621
4924
|
t ? this.detachListener() : this.stopPolling();
|
4622
4925
|
const i = () => {
|
4623
|
-
const
|
4624
|
-
!t && this.localCache[r] ===
|
4926
|
+
const a = this.storage.getItem(r);
|
4927
|
+
!t && this.localCache[r] === a || this.notifyListeners(r, a);
|
4625
4928
|
}, s = this.storage.getItem(r);
|
4626
|
-
|
4929
|
+
qi() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, Es) : i();
|
4627
4930
|
}
|
4628
4931
|
notifyListeners(e, t) {
|
4629
4932
|
this.localCache[e] = t;
|
@@ -4645,7 +4948,7 @@ class wn extends Tn {
|
|
4645
4948
|
!0
|
4646
4949
|
);
|
4647
4950
|
});
|
4648
|
-
},
|
4951
|
+
}, ys);
|
4649
4952
|
}
|
4650
4953
|
stopPolling() {
|
4651
4954
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
@@ -4675,7 +4978,7 @@ class wn extends Tn {
|
|
4675
4978
|
}
|
4676
4979
|
}
|
4677
4980
|
wn.type = "LOCAL";
|
4678
|
-
const
|
4981
|
+
const Ts = wn;
|
4679
4982
|
/**
|
4680
4983
|
* @license
|
4681
4984
|
* Copyright 2020 Google LLC
|
@@ -4723,7 +5026,7 @@ const kn = Rn;
|
|
4723
5026
|
* See the License for the specific language governing permissions and
|
4724
5027
|
* limitations under the License.
|
4725
5028
|
*/
|
4726
|
-
function
|
5029
|
+
function ws(n) {
|
4727
5030
|
return Promise.all(n.map(async (e) => {
|
4728
5031
|
try {
|
4729
5032
|
return {
|
@@ -4754,7 +5057,7 @@ function hs(n) {
|
|
4754
5057
|
* See the License for the specific language governing permissions and
|
4755
5058
|
* limitations under the License.
|
4756
5059
|
*/
|
4757
|
-
class
|
5060
|
+
class be {
|
4758
5061
|
constructor(e) {
|
4759
5062
|
this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
|
4760
5063
|
}
|
@@ -4768,7 +5071,7 @@ class Ie {
|
|
4768
5071
|
const t = this.receivers.find((i) => i.isListeningto(e));
|
4769
5072
|
if (t)
|
4770
5073
|
return t;
|
4771
|
-
const r = new
|
5074
|
+
const r = new be(e);
|
4772
5075
|
return this.receivers.push(r), r;
|
4773
5076
|
}
|
4774
5077
|
isListeningto(e) {
|
@@ -4785,20 +5088,20 @@ class Ie {
|
|
4785
5088
|
*
|
4786
5089
|
*/
|
4787
5090
|
async handleEvent(e) {
|
4788
|
-
const t = e, { eventId: r, eventType: i, data: s } = t.data,
|
4789
|
-
if (!(
|
5091
|
+
const t = e, { eventId: r, eventType: i, data: s } = t.data, a = this.handlersMap[i];
|
5092
|
+
if (!(a != null && a.size))
|
4790
5093
|
return;
|
4791
5094
|
t.ports[0].postMessage({
|
4792
5095
|
status: "ack",
|
4793
5096
|
eventId: r,
|
4794
5097
|
eventType: i
|
4795
5098
|
});
|
4796
|
-
const
|
5099
|
+
const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await ws(c);
|
4797
5100
|
t.ports[0].postMessage({
|
4798
5101
|
status: "done",
|
4799
5102
|
eventId: r,
|
4800
5103
|
eventType: i,
|
4801
|
-
response:
|
5104
|
+
response: o
|
4802
5105
|
});
|
4803
5106
|
}
|
4804
5107
|
/**
|
@@ -4822,7 +5125,7 @@ class Ie {
|
|
4822
5125
|
this.handlersMap[e] && t && this.handlersMap[e].delete(t), (!t || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
|
4823
5126
|
}
|
4824
5127
|
}
|
4825
|
-
|
5128
|
+
be.receivers = [];
|
4826
5129
|
/**
|
4827
5130
|
* @license
|
4828
5131
|
* Copyright 2020 Google LLC
|
@@ -4861,7 +5164,7 @@ function Qe(n = "", e = 10) {
|
|
4861
5164
|
* See the License for the specific language governing permissions and
|
4862
5165
|
* limitations under the License.
|
4863
5166
|
*/
|
4864
|
-
class
|
5167
|
+
class Rs {
|
4865
5168
|
constructor(e) {
|
4866
5169
|
this.target = e, this.handlers = /* @__PURE__ */ new Set();
|
4867
5170
|
}
|
@@ -4893,17 +5196,17 @@ class ps {
|
|
4893
5196
|
"connection_unavailable"
|
4894
5197
|
/* _MessageError.CONNECTION_UNAVAILABLE */
|
4895
5198
|
);
|
4896
|
-
let s,
|
4897
|
-
return new Promise((
|
5199
|
+
let s, a;
|
5200
|
+
return new Promise((c, o) => {
|
4898
5201
|
const l = Qe("", 20);
|
4899
5202
|
i.port1.start();
|
4900
5203
|
const u = setTimeout(() => {
|
4901
|
-
|
5204
|
+
o(new Error(
|
4902
5205
|
"unsupported_event"
|
4903
5206
|
/* _MessageError.UNSUPPORTED_EVENT */
|
4904
5207
|
));
|
4905
5208
|
}, r);
|
4906
|
-
|
5209
|
+
a = {
|
4907
5210
|
messageChannel: i,
|
4908
5211
|
onMessage(p) {
|
4909
5212
|
const m = p;
|
@@ -4912,7 +5215,7 @@ class ps {
|
|
4912
5215
|
case "ack":
|
4913
5216
|
clearTimeout(u), s = setTimeout(
|
4914
5217
|
() => {
|
4915
|
-
|
5218
|
+
o(new Error(
|
4916
5219
|
"timeout"
|
4917
5220
|
/* _MessageError.TIMEOUT */
|
4918
5221
|
));
|
@@ -4922,23 +5225,23 @@ class ps {
|
|
4922
5225
|
);
|
4923
5226
|
break;
|
4924
5227
|
case "done":
|
4925
|
-
clearTimeout(s),
|
5228
|
+
clearTimeout(s), c(m.data.response);
|
4926
5229
|
break;
|
4927
5230
|
default:
|
4928
|
-
clearTimeout(u), clearTimeout(s),
|
5231
|
+
clearTimeout(u), clearTimeout(s), o(new Error(
|
4929
5232
|
"invalid_response"
|
4930
5233
|
/* _MessageError.INVALID_RESPONSE */
|
4931
5234
|
));
|
4932
5235
|
break;
|
4933
5236
|
}
|
4934
5237
|
}
|
4935
|
-
}, this.handlers.add(
|
5238
|
+
}, this.handlers.add(a), i.port1.addEventListener("message", a.onMessage), this.target.postMessage({
|
4936
5239
|
eventType: e,
|
4937
5240
|
eventId: l,
|
4938
5241
|
data: t
|
4939
5242
|
}, [i.port2]);
|
4940
5243
|
}).finally(() => {
|
4941
|
-
|
5244
|
+
a && this.removeMessageHandler(a);
|
4942
5245
|
});
|
4943
5246
|
}
|
4944
5247
|
}
|
@@ -4961,7 +5264,7 @@ class ps {
|
|
4961
5264
|
function g() {
|
4962
5265
|
return window;
|
4963
5266
|
}
|
4964
|
-
function
|
5267
|
+
function ks(n) {
|
4965
5268
|
g().location.href = n;
|
4966
5269
|
}
|
4967
5270
|
/**
|
@@ -4983,7 +5286,7 @@ function fs(n) {
|
|
4983
5286
|
function Sn() {
|
4984
5287
|
return typeof g().WorkerGlobalScope < "u" && typeof g().importScripts == "function";
|
4985
5288
|
}
|
4986
|
-
async function
|
5289
|
+
async function Ss() {
|
4987
5290
|
if (!(navigator != null && navigator.serviceWorker))
|
4988
5291
|
return null;
|
4989
5292
|
try {
|
@@ -4992,11 +5295,11 @@ async function ms() {
|
|
4992
5295
|
return null;
|
4993
5296
|
}
|
4994
5297
|
}
|
4995
|
-
function
|
5298
|
+
function As() {
|
4996
5299
|
var n;
|
4997
5300
|
return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
|
4998
5301
|
}
|
4999
|
-
function
|
5302
|
+
function Os() {
|
5000
5303
|
return Sn() ? self : null;
|
5001
5304
|
}
|
5002
5305
|
/**
|
@@ -5015,7 +5318,7 @@ function gs() {
|
|
5015
5318
|
* See the License for the specific language governing permissions and
|
5016
5319
|
* limitations under the License.
|
5017
5320
|
*/
|
5018
|
-
const An = "firebaseLocalStorageDb",
|
5321
|
+
const An = "firebaseLocalStorageDb", Ns = 1, ge = "firebaseLocalStorage", On = "fbase_key";
|
5019
5322
|
class re {
|
5020
5323
|
constructor(e) {
|
5021
5324
|
this.request = e;
|
@@ -5030,55 +5333,55 @@ class re {
|
|
5030
5333
|
});
|
5031
5334
|
}
|
5032
5335
|
}
|
5033
|
-
function
|
5034
|
-
return n.transaction([
|
5336
|
+
function ye(n, e) {
|
5337
|
+
return n.transaction([ge], e ? "readwrite" : "readonly").objectStore(ge);
|
5035
5338
|
}
|
5036
|
-
function
|
5339
|
+
function Cs() {
|
5037
5340
|
const n = indexedDB.deleteDatabase(An);
|
5038
5341
|
return new re(n).toPromise();
|
5039
5342
|
}
|
5040
|
-
function
|
5041
|
-
const n = indexedDB.open(An,
|
5343
|
+
function Ve() {
|
5344
|
+
const n = indexedDB.open(An, Ns);
|
5042
5345
|
return new Promise((e, t) => {
|
5043
5346
|
n.addEventListener("error", () => {
|
5044
5347
|
t(n.error);
|
5045
5348
|
}), n.addEventListener("upgradeneeded", () => {
|
5046
5349
|
const r = n.result;
|
5047
5350
|
try {
|
5048
|
-
r.createObjectStore(
|
5351
|
+
r.createObjectStore(ge, { keyPath: On });
|
5049
5352
|
} catch (i) {
|
5050
5353
|
t(i);
|
5051
5354
|
}
|
5052
5355
|
}), n.addEventListener("success", async () => {
|
5053
5356
|
const r = n.result;
|
5054
|
-
r.objectStoreNames.contains(
|
5357
|
+
r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await Cs(), e(await Ve()));
|
5055
5358
|
});
|
5056
5359
|
});
|
5057
5360
|
}
|
5058
5361
|
async function kt(n, e, t) {
|
5059
|
-
const r =
|
5362
|
+
const r = ye(n, !0).put({
|
5060
5363
|
[On]: e,
|
5061
5364
|
value: t
|
5062
5365
|
});
|
5063
5366
|
return new re(r).toPromise();
|
5064
5367
|
}
|
5065
|
-
async function
|
5066
|
-
const t =
|
5368
|
+
async function Ds(n, e) {
|
5369
|
+
const t = ye(n, !1).get(e), r = await new re(t).toPromise();
|
5067
5370
|
return r === void 0 ? null : r.value;
|
5068
5371
|
}
|
5069
5372
|
function St(n, e) {
|
5070
|
-
const t =
|
5373
|
+
const t = ye(n, !0).delete(e);
|
5071
5374
|
return new re(t).toPromise();
|
5072
5375
|
}
|
5073
|
-
const
|
5074
|
-
class
|
5376
|
+
const Ps = 800, Ms = 3;
|
5377
|
+
class Nn {
|
5075
5378
|
constructor() {
|
5076
5379
|
this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
|
5077
5380
|
}, () => {
|
5078
5381
|
});
|
5079
5382
|
}
|
5080
5383
|
async _openDb() {
|
5081
|
-
return this.db ? this.db : (this.db = await
|
5384
|
+
return this.db ? this.db : (this.db = await Ve(), this.db);
|
5082
5385
|
}
|
5083
5386
|
async _withRetries(e) {
|
5084
5387
|
let t = 0;
|
@@ -5087,7 +5390,7 @@ class Cn {
|
|
5087
5390
|
const r = await this._openDb();
|
5088
5391
|
return await e(r);
|
5089
5392
|
} catch (r) {
|
5090
|
-
if (t++ >
|
5393
|
+
if (t++ > Ms)
|
5091
5394
|
throw r;
|
5092
5395
|
this.db && (this.db.close(), this.db = void 0);
|
5093
5396
|
}
|
@@ -5103,7 +5406,7 @@ class Cn {
|
|
5103
5406
|
* As the worker we should listen to events from the main window.
|
5104
5407
|
*/
|
5105
5408
|
async initializeReceiver() {
|
5106
|
-
this.receiver =
|
5409
|
+
this.receiver = be._getInstance(Os()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
5107
5410
|
keyProcessed: (await this._poll()).includes(t.key)
|
5108
5411
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
5109
5412
|
"keyChanged"
|
@@ -5119,9 +5422,9 @@ class Cn {
|
|
5119
5422
|
*/
|
5120
5423
|
async initializeSender() {
|
5121
5424
|
var e, t;
|
5122
|
-
if (this.activeServiceWorker = await
|
5425
|
+
if (this.activeServiceWorker = await Ss(), !this.activeServiceWorker)
|
5123
5426
|
return;
|
5124
|
-
this.sender = new
|
5427
|
+
this.sender = new Rs(this.activeServiceWorker);
|
5125
5428
|
const r = await this.sender._send(
|
5126
5429
|
"ping",
|
5127
5430
|
{},
|
@@ -5143,7 +5446,7 @@ class Cn {
|
|
5143
5446
|
* @param key - Storage key which changed.
|
5144
5447
|
*/
|
5145
5448
|
async notifyServiceWorker(e) {
|
5146
|
-
if (!(!this.sender || !this.activeServiceWorker ||
|
5449
|
+
if (!(!this.sender || !this.activeServiceWorker || As() !== this.activeServiceWorker))
|
5147
5450
|
try {
|
5148
5451
|
await this.sender._send(
|
5149
5452
|
"keyChanged",
|
@@ -5159,8 +5462,8 @@ class Cn {
|
|
5159
5462
|
try {
|
5160
5463
|
if (!indexedDB)
|
5161
5464
|
return !1;
|
5162
|
-
const e = await
|
5163
|
-
return await kt(e,
|
5465
|
+
const e = await Ve();
|
5466
|
+
return await kt(e, _e, "1"), await St(e, _e), !0;
|
5164
5467
|
} catch {
|
5165
5468
|
}
|
5166
5469
|
return !1;
|
@@ -5177,7 +5480,7 @@ class Cn {
|
|
5177
5480
|
return this._withPendingWrite(async () => (await this._withRetries((r) => kt(r, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
|
5178
5481
|
}
|
5179
5482
|
async _get(e) {
|
5180
|
-
const t = await this._withRetries((r) =>
|
5483
|
+
const t = await this._withRetries((r) => Ds(r, e));
|
5181
5484
|
return this.localCache[e] = t, t;
|
5182
5485
|
}
|
5183
5486
|
async _remove(e) {
|
@@ -5185,7 +5488,7 @@ class Cn {
|
|
5185
5488
|
}
|
5186
5489
|
async _poll() {
|
5187
5490
|
const e = await this._withRetries((i) => {
|
5188
|
-
const s =
|
5491
|
+
const s = ye(i, !1).getAll();
|
5189
5492
|
return new re(s).toPromise();
|
5190
5493
|
});
|
5191
5494
|
if (!e)
|
@@ -5208,7 +5511,7 @@ class Cn {
|
|
5208
5511
|
i(t);
|
5209
5512
|
}
|
5210
5513
|
startPolling() {
|
5211
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
5514
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), Ps);
|
5212
5515
|
}
|
5213
5516
|
stopPolling() {
|
5214
5517
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
@@ -5220,8 +5523,8 @@ class Cn {
|
|
5220
5523
|
this.listeners[e] && (this.listeners[e].delete(t), this.listeners[e].size === 0 && delete this.listeners[e]), Object.keys(this.listeners).length === 0 && this.stopPolling();
|
5221
5524
|
}
|
5222
5525
|
}
|
5223
|
-
|
5224
|
-
const
|
5526
|
+
Nn.type = "LOCAL";
|
5527
|
+
const Ls = Nn;
|
5225
5528
|
new te(3e4, 6e4);
|
5226
5529
|
/**
|
5227
5530
|
* @license
|
@@ -5239,7 +5542,7 @@ new te(3e4, 6e4);
|
|
5239
5542
|
* See the License for the specific language governing permissions and
|
5240
5543
|
* limitations under the License.
|
5241
5544
|
*/
|
5242
|
-
function
|
5545
|
+
function Us(n, e) {
|
5243
5546
|
return e ? E(e) : (d(
|
5244
5547
|
n._popupRedirectResolver,
|
5245
5548
|
n,
|
@@ -5272,13 +5575,13 @@ class et extends bn {
|
|
5272
5575
|
), this.params = e;
|
5273
5576
|
}
|
5274
5577
|
_getIdTokenResponse(e) {
|
5275
|
-
return
|
5578
|
+
return G(e, this._buildIdpRequest());
|
5276
5579
|
}
|
5277
5580
|
_linkToIdToken(e, t) {
|
5278
|
-
return
|
5581
|
+
return G(e, this._buildIdpRequest(t));
|
5279
5582
|
}
|
5280
5583
|
_getReauthenticationResolver(e) {
|
5281
|
-
return
|
5584
|
+
return G(e, this._buildIdpRequest());
|
5282
5585
|
}
|
5283
5586
|
_buildIdpRequest(e) {
|
5284
5587
|
const t = {
|
@@ -5293,26 +5596,26 @@ class et extends bn {
|
|
5293
5596
|
return e && (t.idToken = e), t;
|
5294
5597
|
}
|
5295
5598
|
}
|
5296
|
-
function
|
5297
|
-
return
|
5599
|
+
function Bs(n) {
|
5600
|
+
return _s(n.auth, new et(n), n.bypassAuthState);
|
5298
5601
|
}
|
5299
|
-
function
|
5602
|
+
function Fs(n) {
|
5300
5603
|
const { auth: e, user: t } = n;
|
5301
5604
|
return d(
|
5302
5605
|
t,
|
5303
5606
|
e,
|
5304
5607
|
"internal-error"
|
5305
5608
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5306
|
-
),
|
5609
|
+
), ms(t, new et(n), n.bypassAuthState);
|
5307
5610
|
}
|
5308
|
-
async function
|
5611
|
+
async function xs(n) {
|
5309
5612
|
const { auth: e, user: t } = n;
|
5310
5613
|
return d(
|
5311
5614
|
t,
|
5312
5615
|
e,
|
5313
5616
|
"internal-error"
|
5314
5617
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5315
|
-
),
|
5618
|
+
), fs(t, new et(n), n.bypassAuthState);
|
5316
5619
|
}
|
5317
5620
|
/**
|
5318
5621
|
* @license
|
@@ -5330,7 +5633,7 @@ async function Ss(n) {
|
|
5330
5633
|
* See the License for the specific language governing permissions and
|
5331
5634
|
* limitations under the License.
|
5332
5635
|
*/
|
5333
|
-
class
|
5636
|
+
class Cn {
|
5334
5637
|
constructor(e, t, r, i, s = !1) {
|
5335
5638
|
this.auth = e, this.resolver = r, this.user = i, this.bypassAuthState = s, this.pendingPromise = null, this.eventManager = null, this.filter = Array.isArray(t) ? t : [t];
|
5336
5639
|
}
|
@@ -5345,12 +5648,12 @@ class Nn {
|
|
5345
5648
|
});
|
5346
5649
|
}
|
5347
5650
|
async onAuthEvent(e) {
|
5348
|
-
const { urlResponse: t, sessionId: r, postBody: i, tenantId: s, error:
|
5349
|
-
if (
|
5350
|
-
this.reject(
|
5651
|
+
const { urlResponse: t, sessionId: r, postBody: i, tenantId: s, error: a, type: c } = e;
|
5652
|
+
if (a) {
|
5653
|
+
this.reject(a);
|
5351
5654
|
return;
|
5352
5655
|
}
|
5353
|
-
const
|
5656
|
+
const o = {
|
5354
5657
|
auth: this.auth,
|
5355
5658
|
requestUri: t,
|
5356
5659
|
sessionId: r,
|
@@ -5360,7 +5663,7 @@ class Nn {
|
|
5360
5663
|
bypassAuthState: this.bypassAuthState
|
5361
5664
|
};
|
5362
5665
|
try {
|
5363
|
-
this.resolve(await this.getIdpTask(
|
5666
|
+
this.resolve(await this.getIdpTask(c)(o));
|
5364
5667
|
} catch (l) {
|
5365
5668
|
this.reject(l);
|
5366
5669
|
}
|
@@ -5372,13 +5675,13 @@ class Nn {
|
|
5372
5675
|
switch (e) {
|
5373
5676
|
case "signInViaPopup":
|
5374
5677
|
case "signInViaRedirect":
|
5375
|
-
return
|
5678
|
+
return Bs;
|
5376
5679
|
case "linkViaPopup":
|
5377
5680
|
case "linkViaRedirect":
|
5378
|
-
return
|
5681
|
+
return xs;
|
5379
5682
|
case "reauthViaPopup":
|
5380
5683
|
case "reauthViaRedirect":
|
5381
|
-
return
|
5684
|
+
return Fs;
|
5382
5685
|
default:
|
5383
5686
|
w(
|
5384
5687
|
this.auth,
|
@@ -5413,8 +5716,8 @@ class Nn {
|
|
5413
5716
|
* See the License for the specific language governing permissions and
|
5414
5717
|
* limitations under the License.
|
5415
5718
|
*/
|
5416
|
-
const
|
5417
|
-
class x extends
|
5719
|
+
const js = new te(2e3, 1e4);
|
5720
|
+
class x extends Cn {
|
5418
5721
|
constructor(e, t, r, i, s) {
|
5419
5722
|
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, x.currentPopupAction && x.currentPopupAction.cancel(), x.currentPopupAction = this;
|
5420
5723
|
}
|
@@ -5477,7 +5780,7 @@ class x extends Nn {
|
|
5477
5780
|
);
|
5478
5781
|
return;
|
5479
5782
|
}
|
5480
|
-
this.pollId = window.setTimeout(e,
|
5783
|
+
this.pollId = window.setTimeout(e, js.get());
|
5481
5784
|
};
|
5482
5785
|
e();
|
5483
5786
|
}
|
@@ -5499,8 +5802,8 @@ x.currentPopupAction = null;
|
|
5499
5802
|
* See the License for the specific language governing permissions and
|
5500
5803
|
* limitations under the License.
|
5501
5804
|
*/
|
5502
|
-
const
|
5503
|
-
class
|
5805
|
+
const Hs = "pendingRedirect", oe = /* @__PURE__ */ new Map();
|
5806
|
+
class Vs extends Cn {
|
5504
5807
|
constructor(e, t, r = !1) {
|
5505
5808
|
super(e, [
|
5506
5809
|
"signInViaRedirect",
|
@@ -5515,17 +5818,17 @@ class Cs extends Nn {
|
|
5515
5818
|
* just return it.
|
5516
5819
|
*/
|
5517
5820
|
async execute() {
|
5518
|
-
let e =
|
5821
|
+
let e = oe.get(this.auth._key());
|
5519
5822
|
if (!e) {
|
5520
5823
|
try {
|
5521
|
-
const r = await
|
5824
|
+
const r = await Gs(this.resolver, this.auth) ? await super.execute() : null;
|
5522
5825
|
e = () => Promise.resolve(r);
|
5523
5826
|
} catch (t) {
|
5524
5827
|
e = () => Promise.reject(t);
|
5525
5828
|
}
|
5526
|
-
|
5829
|
+
oe.set(this.auth._key(), e);
|
5527
5830
|
}
|
5528
|
-
return this.bypassAuthState ||
|
5831
|
+
return this.bypassAuthState || oe.set(this.auth._key(), () => Promise.resolve(null)), e();
|
5529
5832
|
}
|
5530
5833
|
async onAuthEvent(e) {
|
5531
5834
|
if (e.type === "signInViaRedirect")
|
@@ -5546,27 +5849,27 @@ class Cs extends Nn {
|
|
5546
5849
|
cleanUp() {
|
5547
5850
|
}
|
5548
5851
|
}
|
5549
|
-
async function
|
5550
|
-
const t =
|
5852
|
+
async function Gs(n, e) {
|
5853
|
+
const t = Zs(e), r = zs(n);
|
5551
5854
|
if (!await r._isAvailable())
|
5552
5855
|
return !1;
|
5553
5856
|
const i = await r._get(t) === "true";
|
5554
5857
|
return await r._remove(t), i;
|
5555
5858
|
}
|
5556
|
-
function
|
5557
|
-
|
5859
|
+
function Ws(n, e) {
|
5860
|
+
oe.set(n._key(), e);
|
5558
5861
|
}
|
5559
|
-
function
|
5862
|
+
function zs(n) {
|
5560
5863
|
return E(n._redirectPersistence);
|
5561
5864
|
}
|
5562
|
-
function
|
5563
|
-
return
|
5865
|
+
function Zs(n) {
|
5866
|
+
return ae(Hs, n.config.apiKey, n.name);
|
5564
5867
|
}
|
5565
|
-
async function
|
5868
|
+
async function $s(n, e, t = !1) {
|
5566
5869
|
if (I(n.app))
|
5567
5870
|
return Promise.reject(P(n));
|
5568
|
-
const r =
|
5569
|
-
return
|
5871
|
+
const r = Ie(n), i = Us(r, e), a = await new Vs(r, i, t).execute();
|
5872
|
+
return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
5570
5873
|
}
|
5571
5874
|
/**
|
5572
5875
|
* @license
|
@@ -5584,8 +5887,8 @@ async function Ls(n, e, t = !1) {
|
|
5584
5887
|
* See the License for the specific language governing permissions and
|
5585
5888
|
* limitations under the License.
|
5586
5889
|
*/
|
5587
|
-
const
|
5588
|
-
class
|
5890
|
+
const Js = 10 * 60 * 1e3;
|
5891
|
+
class Xs {
|
5589
5892
|
constructor(e) {
|
5590
5893
|
this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
|
5591
5894
|
}
|
@@ -5601,7 +5904,7 @@ class Bs {
|
|
5601
5904
|
let t = !1;
|
5602
5905
|
return this.consumers.forEach((r) => {
|
5603
5906
|
this.isEventForConsumer(e, r) && (t = !0, this.sendToConsumer(e, r), this.saveEventToCache(e));
|
5604
|
-
}), this.hasHandledPotentialRedirect || !
|
5907
|
+
}), this.hasHandledPotentialRedirect || !Ys(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
|
5605
5908
|
}
|
5606
5909
|
sendToConsumer(e, t) {
|
5607
5910
|
var r;
|
@@ -5616,7 +5919,7 @@ class Bs {
|
|
5616
5919
|
return t.filter.includes(e.type) && r;
|
5617
5920
|
}
|
5618
5921
|
hasEventBeenHandled(e) {
|
5619
|
-
return Date.now() - this.lastProcessedEventTime >=
|
5922
|
+
return Date.now() - this.lastProcessedEventTime >= Js && this.cachedEventUids.clear(), this.cachedEventUids.has(At(e));
|
5620
5923
|
}
|
5621
5924
|
saveEventToCache(e) {
|
5622
5925
|
this.cachedEventUids.add(At(e)), this.lastProcessedEventTime = Date.now();
|
@@ -5628,7 +5931,7 @@ function At(n) {
|
|
5628
5931
|
function Dn({ type: n, error: e }) {
|
5629
5932
|
return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
|
5630
5933
|
}
|
5631
|
-
function
|
5934
|
+
function Ys(n) {
|
5632
5935
|
switch (n.type) {
|
5633
5936
|
case "signInViaRedirect":
|
5634
5937
|
case "linkViaRedirect":
|
@@ -5656,8 +5959,8 @@ function Fs(n) {
|
|
5656
5959
|
* See the License for the specific language governing permissions and
|
5657
5960
|
* limitations under the License.
|
5658
5961
|
*/
|
5659
|
-
async function
|
5660
|
-
return
|
5962
|
+
async function Ks(n, e = {}) {
|
5963
|
+
return Z(n, "GET", "/v1/projects", e);
|
5661
5964
|
}
|
5662
5965
|
/**
|
5663
5966
|
* @license
|
@@ -5675,14 +5978,14 @@ async function xs(n, e = {}) {
|
|
5675
5978
|
* See the License for the specific language governing permissions and
|
5676
5979
|
* limitations under the License.
|
5677
5980
|
*/
|
5678
|
-
const
|
5679
|
-
async function
|
5981
|
+
const qs = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Qs = /^https?/;
|
5982
|
+
async function ea(n) {
|
5680
5983
|
if (n.config.emulator)
|
5681
5984
|
return;
|
5682
|
-
const { authorizedDomains: e } = await
|
5985
|
+
const { authorizedDomains: e } = await Ks(n);
|
5683
5986
|
for (const t of e)
|
5684
5987
|
try {
|
5685
|
-
if (
|
5988
|
+
if (ta(t))
|
5686
5989
|
return;
|
5687
5990
|
} catch {
|
5688
5991
|
}
|
@@ -5692,15 +5995,15 @@ async function Vs(n) {
|
|
5692
5995
|
/* AuthErrorCode.INVALID_ORIGIN */
|
5693
5996
|
);
|
5694
5997
|
}
|
5695
|
-
function
|
5696
|
-
const e =
|
5998
|
+
function ta(n) {
|
5999
|
+
const e = je(), { protocol: t, hostname: r } = new URL(e);
|
5697
6000
|
if (n.startsWith("chrome-extension://")) {
|
5698
|
-
const
|
5699
|
-
return
|
6001
|
+
const a = new URL(n);
|
6002
|
+
return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
|
5700
6003
|
}
|
5701
|
-
if (!
|
6004
|
+
if (!Qs.test(t))
|
5702
6005
|
return !1;
|
5703
|
-
if (
|
6006
|
+
if (qs.test(n))
|
5704
6007
|
return r === n;
|
5705
6008
|
const i = n.replace(/\./g, "\\.");
|
5706
6009
|
return new RegExp("^(.+\\." + i + "|" + i + ")$", "i").test(r);
|
@@ -5721,7 +6024,7 @@ function js(n) {
|
|
5721
6024
|
* See the License for the specific language governing permissions and
|
5722
6025
|
* limitations under the License.
|
5723
6026
|
*/
|
5724
|
-
const
|
6027
|
+
const na = new te(3e4, 6e4);
|
5725
6028
|
function Ot() {
|
5726
6029
|
const n = g().___jsl;
|
5727
6030
|
if (n != null && n.H) {
|
@@ -5731,10 +6034,10 @@ function Ot() {
|
|
5731
6034
|
n.CP[t] = null;
|
5732
6035
|
}
|
5733
6036
|
}
|
5734
|
-
function
|
6037
|
+
function ra(n) {
|
5735
6038
|
return new Promise((e, t) => {
|
5736
6039
|
var r, i, s;
|
5737
|
-
function
|
6040
|
+
function a() {
|
5738
6041
|
Ot(), gapi.load("gapi.iframes", {
|
5739
6042
|
callback: () => {
|
5740
6043
|
e(gapi.iframes.getContext());
|
@@ -5746,30 +6049,30 @@ function zs(n) {
|
|
5746
6049
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5747
6050
|
));
|
5748
6051
|
},
|
5749
|
-
timeout:
|
6052
|
+
timeout: na.get()
|
5750
6053
|
});
|
5751
6054
|
}
|
5752
6055
|
if (!((i = (r = g().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
|
5753
6056
|
e(gapi.iframes.getContext());
|
5754
6057
|
else if (!((s = g().gapi) === null || s === void 0) && s.load)
|
5755
|
-
|
6058
|
+
a();
|
5756
6059
|
else {
|
5757
|
-
const
|
5758
|
-
return g()[
|
5759
|
-
gapi.load ?
|
6060
|
+
const c = os("iframefcb");
|
6061
|
+
return g()[c] = () => {
|
6062
|
+
gapi.load ? a() : t(_(
|
5760
6063
|
n,
|
5761
6064
|
"network-request-failed"
|
5762
6065
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5763
6066
|
));
|
5764
|
-
},
|
6067
|
+
}, ss(`${as()}?onload=${c}`).catch((o) => t(o));
|
5765
6068
|
}
|
5766
6069
|
}).catch((e) => {
|
5767
6070
|
throw ce = null, e;
|
5768
6071
|
});
|
5769
6072
|
}
|
5770
6073
|
let ce = null;
|
5771
|
-
function
|
5772
|
-
return ce = ce ||
|
6074
|
+
function ia(n) {
|
6075
|
+
return ce = ce || ra(n), ce;
|
5773
6076
|
}
|
5774
6077
|
/**
|
5775
6078
|
* @license
|
@@ -5787,7 +6090,7 @@ function $s(n) {
|
|
5787
6090
|
* See the License for the specific language governing permissions and
|
5788
6091
|
* limitations under the License.
|
5789
6092
|
*/
|
5790
|
-
const
|
6093
|
+
const sa = new te(5e3, 15e3), aa = "__/auth/iframe", oa = "emulator/auth/iframe", ca = {
|
5791
6094
|
style: {
|
5792
6095
|
position: "absolute",
|
5793
6096
|
top: "-100px",
|
@@ -5796,13 +6099,13 @@ const Zs = new te(5e3, 15e3), Js = "__/auth/iframe", Xs = "emulator/auth/iframe"
|
|
5796
6099
|
},
|
5797
6100
|
"aria-hidden": "true",
|
5798
6101
|
tabindex: "-1"
|
5799
|
-
},
|
6102
|
+
}, la = /* @__PURE__ */ new Map([
|
5800
6103
|
["identitytoolkit.googleapis.com", "p"],
|
5801
6104
|
["staging-identitytoolkit.sandbox.googleapis.com", "s"],
|
5802
6105
|
["test-identitytoolkit.sandbox.googleapis.com", "t"]
|
5803
6106
|
// test
|
5804
6107
|
]);
|
5805
|
-
function
|
6108
|
+
function da(n) {
|
5806
6109
|
const e = n.config;
|
5807
6110
|
d(
|
5808
6111
|
e.authDomain,
|
@@ -5810,17 +6113,17 @@ function qs(n) {
|
|
5810
6113
|
"auth-domain-config-required"
|
5811
6114
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
5812
6115
|
);
|
5813
|
-
const t = e.emulator ? Xe(e,
|
6116
|
+
const t = e.emulator ? Xe(e, oa) : `https://${n.config.authDomain}/${aa}`, r = {
|
5814
6117
|
apiKey: e.apiKey,
|
5815
6118
|
appName: n.name,
|
5816
6119
|
v: ee
|
5817
|
-
}, i =
|
6120
|
+
}, i = la.get(n.config.apiHost);
|
5818
6121
|
i && (r.eid = i);
|
5819
6122
|
const s = n._getFrameworks();
|
5820
6123
|
return s.length && (r.fw = s.join(",")), `${t}?${Q(r).slice(1)}`;
|
5821
6124
|
}
|
5822
|
-
async function
|
5823
|
-
const e = await
|
6125
|
+
async function ua(n) {
|
6126
|
+
const e = await ia(n), t = g().gapi;
|
5824
6127
|
return d(
|
5825
6128
|
t,
|
5826
6129
|
n,
|
@@ -5828,27 +6131,27 @@ async function Qs(n) {
|
|
5828
6131
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5829
6132
|
), e.open({
|
5830
6133
|
where: document.body,
|
5831
|
-
url:
|
6134
|
+
url: da(n),
|
5832
6135
|
messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
|
5833
|
-
attributes:
|
6136
|
+
attributes: ca,
|
5834
6137
|
dontclear: !0
|
5835
6138
|
}, (r) => new Promise(async (i, s) => {
|
5836
6139
|
await r.restyle({
|
5837
6140
|
// Prevent iframe from closing on mouse out.
|
5838
6141
|
setHideOnLeave: !1
|
5839
6142
|
});
|
5840
|
-
const
|
6143
|
+
const a = _(
|
5841
6144
|
n,
|
5842
6145
|
"network-request-failed"
|
5843
6146
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5844
|
-
),
|
5845
|
-
s(
|
5846
|
-
},
|
5847
|
-
function
|
5848
|
-
g().clearTimeout(
|
6147
|
+
), c = g().setTimeout(() => {
|
6148
|
+
s(a);
|
6149
|
+
}, sa.get());
|
6150
|
+
function o() {
|
6151
|
+
g().clearTimeout(c), i(r);
|
5849
6152
|
}
|
5850
|
-
r.ping(
|
5851
|
-
s(
|
6153
|
+
r.ping(o).then(o, () => {
|
6154
|
+
s(a);
|
5852
6155
|
});
|
5853
6156
|
}));
|
5854
6157
|
}
|
@@ -5868,13 +6171,13 @@ async function Qs(n) {
|
|
5868
6171
|
* See the License for the specific language governing permissions and
|
5869
6172
|
* limitations under the License.
|
5870
6173
|
*/
|
5871
|
-
const
|
6174
|
+
const ha = {
|
5872
6175
|
location: "yes",
|
5873
6176
|
resizable: "yes",
|
5874
6177
|
statusbar: "yes",
|
5875
6178
|
toolbar: "no"
|
5876
|
-
},
|
5877
|
-
class
|
6179
|
+
}, pa = 500, fa = 600, ma = "_blank", _a = "http://localhost";
|
6180
|
+
class Nt {
|
5878
6181
|
constructor(e) {
|
5879
6182
|
this.window = e, this.associatedEvent = null;
|
5880
6183
|
}
|
@@ -5886,20 +6189,20 @@ class Ct {
|
|
5886
6189
|
}
|
5887
6190
|
}
|
5888
6191
|
}
|
5889
|
-
function
|
5890
|
-
const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(),
|
5891
|
-
let
|
5892
|
-
const
|
6192
|
+
function ga(n, e, t, r = pa, i = fa) {
|
6193
|
+
const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), a = Math.max((window.screen.availWidth - r) / 2, 0).toString();
|
6194
|
+
let c = "";
|
6195
|
+
const o = Object.assign(Object.assign({}, ha), {
|
5893
6196
|
width: r.toString(),
|
5894
6197
|
height: i.toString(),
|
5895
6198
|
top: s,
|
5896
|
-
left:
|
6199
|
+
left: a
|
5897
6200
|
}), l = f().toLowerCase();
|
5898
|
-
t && (
|
5899
|
-
const u = Object.entries(
|
5900
|
-
if (
|
5901
|
-
return
|
5902
|
-
const p = window.open(e || "",
|
6201
|
+
t && (c = hn(l) ? ma : t), dn(l) && (e = e || _a, o.scrollbars = "yes");
|
6202
|
+
const u = Object.entries(o).reduce((m, [v, F]) => `${m}${v}=${F},`, "");
|
6203
|
+
if (Ki(l) && c !== "_self")
|
6204
|
+
return va(e || "", c), new Nt(null);
|
6205
|
+
const p = window.open(e || "", c, u);
|
5903
6206
|
d(
|
5904
6207
|
p,
|
5905
6208
|
n,
|
@@ -5910,9 +6213,9 @@ function so(n, e, t, r = to, i = no) {
|
|
5910
6213
|
p.focus();
|
5911
6214
|
} catch {
|
5912
6215
|
}
|
5913
|
-
return new
|
6216
|
+
return new Nt(p);
|
5914
6217
|
}
|
5915
|
-
function
|
6218
|
+
function va(n, e) {
|
5916
6219
|
const t = document.createElement("a");
|
5917
6220
|
t.href = n, t.target = e;
|
5918
6221
|
const r = document.createEvent("MouseEvent");
|
@@ -5934,8 +6237,8 @@ function oo(n, e) {
|
|
5934
6237
|
* See the License for the specific language governing permissions and
|
5935
6238
|
* limitations under the License.
|
5936
6239
|
*/
|
5937
|
-
const
|
5938
|
-
async function
|
6240
|
+
const Ia = "__/auth/handler", ba = "emulator/auth/handler", ya = encodeURIComponent("fac");
|
6241
|
+
async function Ct(n, e, t, r, i, s) {
|
5939
6242
|
d(
|
5940
6243
|
n.config.authDomain,
|
5941
6244
|
n,
|
@@ -5947,7 +6250,7 @@ async function Nt(n, e, t, r, i, s) {
|
|
5947
6250
|
"invalid-api-key"
|
5948
6251
|
/* AuthErrorCode.INVALID_API_KEY */
|
5949
6252
|
);
|
5950
|
-
const
|
6253
|
+
const a = {
|
5951
6254
|
apiKey: n.config.apiKey,
|
5952
6255
|
appName: n.name,
|
5953
6256
|
authType: t,
|
@@ -5956,23 +6259,23 @@ async function Nt(n, e, t, r, i, s) {
|
|
5956
6259
|
eventId: i
|
5957
6260
|
};
|
5958
6261
|
if (e instanceof yn) {
|
5959
|
-
e.setDefaultLanguage(n.languageCode),
|
6262
|
+
e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", yr(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
|
5960
6263
|
for (const [u, p] of Object.entries({}))
|
5961
|
-
|
6264
|
+
a[u] = p;
|
5962
6265
|
}
|
5963
6266
|
if (e instanceof ne) {
|
5964
6267
|
const u = e.getScopes().filter((p) => p !== "");
|
5965
|
-
u.length > 0 && (
|
6268
|
+
u.length > 0 && (a.scopes = u.join(","));
|
5966
6269
|
}
|
5967
|
-
n.tenantId && (
|
5968
|
-
const
|
5969
|
-
for (const u of Object.keys(
|
5970
|
-
|
5971
|
-
const
|
5972
|
-
return `${
|
6270
|
+
n.tenantId && (a.tid = n.tenantId);
|
6271
|
+
const c = a;
|
6272
|
+
for (const u of Object.keys(c))
|
6273
|
+
c[u] === void 0 && delete c[u];
|
6274
|
+
const o = await n._getAppCheckToken(), l = o ? `#${ya}=${encodeURIComponent(o)}` : "";
|
6275
|
+
return `${Ea(n)}?${Q(c).slice(1)}${l}`;
|
5973
6276
|
}
|
5974
|
-
function
|
5975
|
-
return n.emulator ? Xe(n,
|
6277
|
+
function Ea({ config: n }) {
|
6278
|
+
return n.emulator ? Xe(n, ba) : `https://${n.authDomain}/${Ia}`;
|
5976
6279
|
}
|
5977
6280
|
/**
|
5978
6281
|
* @license
|
@@ -5990,23 +6293,23 @@ function uo({ config: n }) {
|
|
5990
6293
|
* See the License for the specific language governing permissions and
|
5991
6294
|
* limitations under the License.
|
5992
6295
|
*/
|
5993
|
-
const
|
5994
|
-
class
|
6296
|
+
const De = "webStorageSupport";
|
6297
|
+
class Ta {
|
5995
6298
|
constructor() {
|
5996
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn =
|
6299
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn = $s, this._overrideRedirectResult = Ws;
|
5997
6300
|
}
|
5998
6301
|
// Wrapping in async even though we don't await anywhere in order
|
5999
6302
|
// to make sure errors are raised as promise rejections
|
6000
6303
|
async _openPopup(e, t, r, i) {
|
6001
6304
|
var s;
|
6002
6305
|
R((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
6003
|
-
const
|
6004
|
-
return
|
6306
|
+
const a = await Ct(e, t, r, je(), i);
|
6307
|
+
return ga(e, a, Qe());
|
6005
6308
|
}
|
6006
6309
|
async _openRedirect(e, t, r, i) {
|
6007
6310
|
await this._originValidation(e);
|
6008
|
-
const s = await
|
6009
|
-
return
|
6311
|
+
const s = await Ct(e, t, r, je(), i);
|
6312
|
+
return ks(s), new Promise(() => {
|
6010
6313
|
});
|
6011
6314
|
}
|
6012
6315
|
_initialize(e) {
|
@@ -6021,7 +6324,7 @@ class ho {
|
|
6021
6324
|
}), r;
|
6022
6325
|
}
|
6023
6326
|
async initAndGetManager(e) {
|
6024
|
-
const t = await
|
6327
|
+
const t = await ua(e), r = new Xs(e);
|
6025
6328
|
return t.register("authEvent", (i) => (d(
|
6026
6329
|
i == null ? void 0 : i.authEvent,
|
6027
6330
|
e,
|
@@ -6033,10 +6336,10 @@ class ho {
|
|
6033
6336
|
}), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
|
6034
6337
|
}
|
6035
6338
|
_isIframeWebStorageSupported(e, t) {
|
6036
|
-
this.iframes[e._key()].send(
|
6339
|
+
this.iframes[e._key()].send(De, { type: De }, (i) => {
|
6037
6340
|
var s;
|
6038
|
-
const
|
6039
|
-
|
6341
|
+
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[De];
|
6342
|
+
a !== void 0 && t(!!a), w(
|
6040
6343
|
e,
|
6041
6344
|
"internal-error"
|
6042
6345
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -6045,13 +6348,13 @@ class ho {
|
|
6045
6348
|
}
|
6046
6349
|
_originValidation(e) {
|
6047
6350
|
const t = e._key();
|
6048
|
-
return this.originValidationPromises[t] || (this.originValidationPromises[t] =
|
6351
|
+
return this.originValidationPromises[t] || (this.originValidationPromises[t] = ea(e)), this.originValidationPromises[t];
|
6049
6352
|
}
|
6050
6353
|
get _shouldInitProactively() {
|
6051
6354
|
return gn() || un() || Ke();
|
6052
6355
|
}
|
6053
6356
|
}
|
6054
|
-
const
|
6357
|
+
const wa = Ta;
|
6055
6358
|
var Dt = "@firebase/auth", Pt = "1.7.9";
|
6056
6359
|
/**
|
6057
6360
|
* @license
|
@@ -6069,7 +6372,7 @@ var Dt = "@firebase/auth", Pt = "1.7.9";
|
|
6069
6372
|
* See the License for the specific language governing permissions and
|
6070
6373
|
* limitations under the License.
|
6071
6374
|
*/
|
6072
|
-
class
|
6375
|
+
class Ra {
|
6073
6376
|
constructor(e) {
|
6074
6377
|
this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
|
6075
6378
|
}
|
@@ -6120,7 +6423,7 @@ class fo {
|
|
6120
6423
|
* See the License for the specific language governing permissions and
|
6121
6424
|
* limitations under the License.
|
6122
6425
|
*/
|
6123
|
-
function
|
6426
|
+
function ka(n) {
|
6124
6427
|
switch (n) {
|
6125
6428
|
case "Node":
|
6126
6429
|
return "node";
|
@@ -6136,22 +6439,22 @@ function mo(n) {
|
|
6136
6439
|
return;
|
6137
6440
|
}
|
6138
6441
|
}
|
6139
|
-
function
|
6140
|
-
X(new
|
6442
|
+
function Sa(n) {
|
6443
|
+
X(new W(
|
6141
6444
|
"auth",
|
6142
6445
|
(e, { options: t }) => {
|
6143
|
-
const r = e.getProvider("app").getImmediate(), i = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey:
|
6144
|
-
d(
|
6145
|
-
const
|
6146
|
-
apiKey:
|
6147
|
-
authDomain:
|
6446
|
+
const r = e.getProvider("app").getImmediate(), i = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
|
6447
|
+
d(a && !a.includes(":"), "invalid-api-key", { appName: r.name });
|
6448
|
+
const o = {
|
6449
|
+
apiKey: a,
|
6450
|
+
authDomain: c,
|
6148
6451
|
clientPlatform: n,
|
6149
6452
|
apiHost: "identitytoolkit.googleapis.com",
|
6150
6453
|
tokenApiHost: "securetoken.googleapis.com",
|
6151
6454
|
apiScheme: "https",
|
6152
6455
|
sdkClientVersion: vn(n)
|
6153
|
-
}, l = new
|
6154
|
-
return
|
6456
|
+
}, l = new rs(r, i, s, o);
|
6457
|
+
return ls(l, t), l;
|
6155
6458
|
},
|
6156
6459
|
"PUBLIC"
|
6157
6460
|
/* ComponentType.PUBLIC */
|
@@ -6163,21 +6466,21 @@ function _o(n) {
|
|
6163
6466
|
"auth-internal"
|
6164
6467
|
/* _ComponentName.AUTH_INTERNAL */
|
6165
6468
|
).initialize();
|
6166
|
-
})), X(new
|
6469
|
+
})), X(new W(
|
6167
6470
|
"auth-internal",
|
6168
6471
|
(e) => {
|
6169
|
-
const t =
|
6472
|
+
const t = Ie(e.getProvider(
|
6170
6473
|
"auth"
|
6171
6474
|
/* _ComponentName.AUTH */
|
6172
6475
|
).getImmediate());
|
6173
|
-
return ((r) => new
|
6476
|
+
return ((r) => new Ra(r))(t);
|
6174
6477
|
},
|
6175
6478
|
"PRIVATE"
|
6176
6479
|
/* ComponentType.PRIVATE */
|
6177
6480
|
).setInstantiationMode(
|
6178
6481
|
"EXPLICIT"
|
6179
6482
|
/* InstantiationMode.EXPLICIT */
|
6180
|
-
)),
|
6483
|
+
)), j(Dt, Pt, ka(n)), j(Dt, Pt, "esm2017");
|
6181
6484
|
}
|
6182
6485
|
/**
|
6183
6486
|
* @license
|
@@ -6195,11 +6498,11 @@ function _o(n) {
|
|
6195
6498
|
* See the License for the specific language governing permissions and
|
6196
6499
|
* limitations under the License.
|
6197
6500
|
*/
|
6198
|
-
const
|
6501
|
+
const Aa = 5 * 60, Oa = zt("authIdTokenMaxAge") || Aa;
|
6199
6502
|
let Mt = null;
|
6200
|
-
const
|
6503
|
+
const Na = (n) => async (e) => {
|
6201
6504
|
const t = e && await e.getIdTokenResult(), r = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
|
6202
|
-
if (r && r >
|
6505
|
+
if (r && r > Oa)
|
6203
6506
|
return;
|
6204
6507
|
const i = t == null ? void 0 : t.token;
|
6205
6508
|
Mt !== i && (Mt = i, await fetch(n, {
|
@@ -6209,33 +6512,33 @@ const Io = (n) => async (e) => {
|
|
6209
6512
|
} : {}
|
6210
6513
|
}));
|
6211
6514
|
};
|
6212
|
-
function
|
6515
|
+
function Ca(n = Ti()) {
|
6213
6516
|
const e = Xt(n, "auth");
|
6214
6517
|
if (e.isInitialized())
|
6215
6518
|
return e.getImmediate();
|
6216
|
-
const t =
|
6217
|
-
popupRedirectResolver:
|
6519
|
+
const t = cs(n, {
|
6520
|
+
popupRedirectResolver: wa,
|
6218
6521
|
persistence: [
|
6522
|
+
Ls,
|
6219
6523
|
Ts,
|
6220
|
-
us,
|
6221
6524
|
kn
|
6222
6525
|
]
|
6223
6526
|
}), r = zt("authTokenSyncURL");
|
6224
6527
|
if (r && typeof isSecureContext == "boolean" && isSecureContext) {
|
6225
6528
|
const s = new URL(r, location.origin);
|
6226
6529
|
if (location.origin === s.origin) {
|
6227
|
-
const
|
6228
|
-
|
6530
|
+
const a = Na(s.toString());
|
6531
|
+
bs(t, a, () => a(t.currentUser)), Is(t, (c) => a(c));
|
6229
6532
|
}
|
6230
6533
|
}
|
6231
|
-
const i =
|
6232
|
-
return i &&
|
6534
|
+
const i = Gt("auth");
|
6535
|
+
return i && ds(t, `http://${i}`), t;
|
6233
6536
|
}
|
6234
|
-
function
|
6537
|
+
function Da() {
|
6235
6538
|
var n, e;
|
6236
6539
|
return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
|
6237
6540
|
}
|
6238
|
-
|
6541
|
+
is({
|
6239
6542
|
loadJS(n) {
|
6240
6543
|
return new Promise((e, t) => {
|
6241
6544
|
const r = document.createElement("script");
|
@@ -6245,142 +6548,174 @@ $i({
|
|
6245
6548
|
/* AuthErrorCode.INTERNAL_ERROR */
|
6246
6549
|
);
|
6247
6550
|
s.customData = i, t(s);
|
6248
|
-
}, r.type = "text/javascript", r.charset = "UTF-8",
|
6551
|
+
}, r.type = "text/javascript", r.charset = "UTF-8", Da().appendChild(r);
|
6249
6552
|
});
|
6250
6553
|
},
|
6251
6554
|
gapiScript: "https://apis.google.com/js/api.js",
|
6252
6555
|
recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
|
6253
6556
|
recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
|
6254
6557
|
});
|
6255
|
-
|
6558
|
+
Sa(
|
6256
6559
|
"Browser"
|
6257
6560
|
/* ClientPlatform.BROWSER */
|
6258
6561
|
);
|
6259
|
-
const
|
6562
|
+
const Pa = Ln({
|
6260
6563
|
history: Un(),
|
6261
|
-
routes: [...
|
6564
|
+
routes: [...We, ...le]
|
6262
6565
|
});
|
6263
|
-
let
|
6264
|
-
|
6566
|
+
let Pe, Me;
|
6567
|
+
Pa.beforeEach(async (n) => {
|
6265
6568
|
const {
|
6266
6569
|
sessionUser: e,
|
6267
6570
|
currentRestaurant: t,
|
6268
6571
|
currentBusiness: r,
|
6269
6572
|
readRestaurants: i,
|
6270
6573
|
changeRestaurant: s
|
6271
|
-
} =
|
6272
|
-
return n.name.startsWith("mf-payment-admin") ? e.value ? !0 : (
|
6273
|
-
const
|
6574
|
+
} = Ge();
|
6575
|
+
return n.name.startsWith("mf-payment-admin") ? e.value ? !0 : (Pe || (Pe = new Promise((a) => {
|
6576
|
+
const c = $(e, (o) => {
|
6274
6577
|
var l;
|
6275
|
-
|
6578
|
+
o && (c(), a(((l = e.value) == null ? void 0 : l.isInternal) ?? !1));
|
6276
6579
|
});
|
6277
|
-
})),
|
6278
|
-
new Promise(async (
|
6279
|
-
const
|
6280
|
-
|
6580
|
+
})), Pe) : !r.value || !t.value ? (Me || (Me = Promise.all([
|
6581
|
+
new Promise(async (a) => {
|
6582
|
+
const c = $(r, (o) => {
|
6583
|
+
o && (c(), a(!0));
|
6281
6584
|
});
|
6282
6585
|
}),
|
6283
|
-
new Promise(async (
|
6284
|
-
const
|
6285
|
-
l && (
|
6286
|
-
}),
|
6287
|
-
await s(
|
6586
|
+
new Promise(async (a) => {
|
6587
|
+
const c = $(t, (l) => {
|
6588
|
+
l && (c(), a(!0));
|
6589
|
+
}), o = await i();
|
6590
|
+
await s(o == null ? void 0 : o.at(0));
|
6288
6591
|
})
|
6289
|
-
]).then((
|
6592
|
+
]).then((a) => !0)), Me) : !0;
|
6290
6593
|
});
|
6291
|
-
const
|
6594
|
+
const Ma = /* @__PURE__ */ Ut({
|
6292
6595
|
__name: "AppSidebar",
|
6293
6596
|
setup(n) {
|
6294
|
-
const e =
|
6295
|
-
|
6296
|
-
let
|
6297
|
-
t.currentRoute.value.meta.parent && (
|
6597
|
+
const e = Ge(), t = Bn(), r = xn(t.currentRoute.value.name);
|
6598
|
+
$(t.currentRoute, () => {
|
6599
|
+
let o = t.currentRoute.value.name;
|
6600
|
+
t.currentRoute.value.meta.parent && (o = t.currentRoute.value.meta.parent), r.value = o;
|
6298
6601
|
});
|
6299
|
-
const i =
|
6300
|
-
var
|
6301
|
-
if (!((
|
6602
|
+
const i = We.map((o) => {
|
6603
|
+
var u;
|
6604
|
+
if (!((u = o.meta) != null && u.sidebarDisplay))
|
6302
6605
|
return;
|
6303
|
-
const
|
6304
|
-
label:
|
6305
|
-
value:
|
6606
|
+
const l = {
|
6607
|
+
label: o.meta.sidebarDisplay,
|
6608
|
+
value: o.name,
|
6306
6609
|
action: () => {
|
6307
|
-
if (t.currentRoute.value.name !==
|
6308
|
-
return t.push({ name:
|
6610
|
+
if (t.currentRoute.value.name !== o.name)
|
6611
|
+
return t.push({ name: o.name });
|
6309
6612
|
}
|
6310
6613
|
};
|
6311
|
-
return
|
6312
|
-
}).filter((
|
6313
|
-
var
|
6314
|
-
if ((
|
6614
|
+
return o.meta.sidebarNew && (l.badge = () => jn(zn.FmPill, { label: "New" })), l;
|
6615
|
+
}).filter((o) => !!o), s = le.map((o) => {
|
6616
|
+
var l;
|
6617
|
+
if ((l = o.meta) != null && l.sidebarDisplay && !o.meta.section)
|
6618
|
+
return {
|
6619
|
+
label: o.meta.sidebarDisplay,
|
6620
|
+
value: o.name,
|
6621
|
+
action: () => {
|
6622
|
+
if (t.currentRoute.value.name !== o.name)
|
6623
|
+
return t.push({ name: o.name });
|
6624
|
+
}
|
6625
|
+
};
|
6626
|
+
}).filter((o) => !!o), a = (o) => le.map((l) => {
|
6627
|
+
var u;
|
6628
|
+
if ((u = l.meta) != null && u.sidebarDisplay && l.meta.section === o)
|
6315
6629
|
return {
|
6316
|
-
label:
|
6317
|
-
value:
|
6630
|
+
label: l.meta.sidebarDisplay,
|
6631
|
+
value: l.name,
|
6318
6632
|
action: () => {
|
6319
|
-
if (t.currentRoute.value.name !==
|
6320
|
-
return t.push({ name:
|
6633
|
+
if (t.currentRoute.value.name !== l.name)
|
6634
|
+
return t.push({ name: l.name });
|
6321
6635
|
}
|
6322
6636
|
};
|
6323
|
-
}).filter((
|
6324
|
-
var
|
6325
|
-
const
|
6326
|
-
return (
|
6637
|
+
}).filter((l) => !!l), c = Lt(() => {
|
6638
|
+
var l;
|
6639
|
+
const o = [...i];
|
6640
|
+
return (l = e.sessionUser.value) != null && l.isInternal && (o.push({
|
6641
|
+
label: "",
|
6642
|
+
value: "divider",
|
6643
|
+
disabled: !0
|
6644
|
+
}), o.push({
|
6645
|
+
label: "Devices",
|
6646
|
+
icon: "desktop_windows",
|
6647
|
+
value: "divider",
|
6648
|
+
disabled: !0
|
6649
|
+
}), o.push(...a("device")), o.push({
|
6327
6650
|
label: "",
|
6328
6651
|
value: "divider",
|
6329
6652
|
disabled: !0
|
6330
|
-
}),
|
6331
|
-
label: "
|
6653
|
+
}), o.push({
|
6654
|
+
label: "Payment Gateway",
|
6655
|
+
icon: "account_balance",
|
6656
|
+
value: "divider",
|
6657
|
+
disabled: !0
|
6658
|
+
}), o.push(...a("payment-gateway")), o.push({
|
6659
|
+
label: "",
|
6660
|
+
value: "divider",
|
6661
|
+
disabled: !0
|
6662
|
+
}), o.push({
|
6663
|
+
label: "General",
|
6332
6664
|
icon: "admin_panel_settings",
|
6333
6665
|
value: "divider",
|
6334
6666
|
disabled: !0
|
6335
|
-
}),
|
6667
|
+
}), o.push(...s)), o;
|
6336
6668
|
});
|
6337
|
-
return (
|
6338
|
-
const
|
6339
|
-
return Ft(), xt(
|
6669
|
+
return (o, l) => {
|
6670
|
+
const u = Bt("FmCollapsibleTabs");
|
6671
|
+
return Ft(), xt(u, {
|
6340
6672
|
modelValue: r.value,
|
6341
|
-
"onUpdate:modelValue":
|
6342
|
-
items:
|
6673
|
+
"onUpdate:modelValue": l[0] || (l[0] = (p) => r.value = p),
|
6674
|
+
items: c.value,
|
6343
6675
|
class: "py-16 px-8 w-[240px]"
|
6344
6676
|
}, null, 8, ["modelValue", "items"]);
|
6345
6677
|
};
|
6346
6678
|
}
|
6347
6679
|
});
|
6348
|
-
var
|
6349
|
-
const
|
6680
|
+
var La = { authClientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, assetBucketUrl: "feedme-dev-4c3ef.appspot.com" };
|
6681
|
+
const Ga = /* @__PURE__ */ Ut({
|
6350
6682
|
__name: "App",
|
6351
6683
|
setup(n) {
|
6352
|
-
const { state: e } =
|
6353
|
-
async function
|
6354
|
-
const
|
6355
|
-
if (!
|
6356
|
-
const
|
6357
|
-
await
|
6684
|
+
const { state: e } = nr(), t = Ge(), r = Fn(), i = Yt(La.firebase);
|
6685
|
+
async function s() {
|
6686
|
+
const a = t.sessionUser.value;
|
6687
|
+
if (!a || !a.token) return;
|
6688
|
+
const c = await a.getCustomToken(), o = Ca(i);
|
6689
|
+
await vs(o, c);
|
6358
6690
|
}
|
6359
|
-
return
|
6691
|
+
return s(), $(t.sessionUser, s), Hn(() => {
|
6360
6692
|
e.isIframe && parent.postMessage({ event: "ready" }, "*");
|
6361
|
-
}),
|
6362
|
-
t.registerSidebarComponent(
|
6363
|
-
}), (
|
6364
|
-
const
|
6365
|
-
return Ft(), xt(
|
6693
|
+
}), Vn(() => {
|
6694
|
+
t.registerSidebarComponent(Ma);
|
6695
|
+
}), (a, c) => {
|
6696
|
+
const o = Bt("RouterView");
|
6697
|
+
return Ft(), xt(o, {
|
6698
|
+
key: Gn(r).path
|
6699
|
+
});
|
6366
6700
|
};
|
6367
6701
|
}
|
6368
|
-
}),
|
6369
|
-
|
6370
|
-
|
6371
|
-
];
|
6702
|
+
}), Wa = {
|
6703
|
+
"en-US": Yn,
|
6704
|
+
"zh-CN": tr
|
6705
|
+
}, za = [...le, ...We];
|
6372
6706
|
export {
|
6373
|
-
|
6707
|
+
W as C,
|
6374
6708
|
M as F,
|
6375
6709
|
ee as S,
|
6376
6710
|
X as _,
|
6377
6711
|
Xt as a,
|
6378
|
-
|
6379
|
-
|
6380
|
-
|
6712
|
+
Ha as b,
|
6713
|
+
Ti as c,
|
6714
|
+
Va as d,
|
6381
6715
|
gt as e,
|
6382
|
-
|
6716
|
+
za as f,
|
6383
6717
|
z as g,
|
6384
|
-
|
6385
|
-
|
6718
|
+
Ga as h,
|
6719
|
+
Wa as i,
|
6720
|
+
j as r
|
6386
6721
|
};
|