@feedmepos/mf-connect 0.1.121-dev → 0.1.121-prod
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/{App-DwtaLO6F.js → App-C4T5UWGw.js} +493 -502
- package/dist/{Bin-BBaVggZI.js → Bin-ude598pY.js} +8 -8
- package/dist/{Broadcast-CqAQ3EmE.js → Broadcast-BtJbmDzX.js} +21 -22
- package/dist/{CampaignAnalytic-34bfP8iY.js → CampaignAnalytic-DxC_sgPy.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BvAAxE3a.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CBy6cXYx.js} +9 -8
- package/dist/{Card-8hlnKnhk.js → Card-B6Qt_KqI.js} +22 -22
- package/dist/{Collections-BJ0-UjKf.js → Collections-BCsbhQJM.js} +185 -197
- package/dist/{Credit-DJNc__yp.js → Credit-CCl-UjVj.js} +20 -21
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BvilcyyB.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DE_JYKS8.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CReXb9gY.js +3493 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DFzVuuEy.js → EffectSheet.vue_vue_type_style_index_0_lang-D_wHxBmj.js} +16 -16
- package/dist/{Experience-D-cUhjWc.js → Experience-BZfx679t.js} +31 -32
- package/dist/{FileSaver.min-DKYYse6A.js → FileSaver.min-aAU7_riE.js} +1 -1
- package/dist/{Game-DdFV90Kp.js → Game-L-RmEmNY.js} +18 -19
- package/dist/{GiftCardSetup-Dz0AN159.js → GiftCardSetup-BA_I83wm.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-GCp3IFaC.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CtiPxBgn.js} +7 -7
- package/dist/{Goals-Dg_kAezl.js → Goals-Dur5LKYk.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-B_H1Bgy1.js → ImageInput.vue_vue_type_script_setup_true_lang-ALdW6e1t.js} +1 -1
- package/dist/{Index-ZSup3I7J.js → Index-_sUu1gDp.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DisF-jcd.js → LocationPicker.vue_vue_type_script_setup_true_lang-BgweoLh2.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BHhjZOYi.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BjvB1fab.js} +1 -1
- package/dist/{LoyaltyDashboard-D8BhHsaw.js → LoyaltyDashboard-DgLAdZiP.js} +15 -15
- package/dist/{MainLayout-BBnhRxyR.js → MainLayout-DOXx217V.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-DFrPlj5u.js → MainLayout.vue_vue_type_script_setup_true_lang-BwT0vGID.js} +3 -3
- package/dist/{Marketing-5F9LLn91.js → Marketing-CoBYtHdr.js} +4 -4
- package/dist/{MarketingMaterialEdit-C7dD4Bzw.js → MarketingMaterialEdit-R2jgDJKr.js} +211 -214
- package/dist/{Member-Dk4JeGru.js → Member-CQicHGEK.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-ISolD_Qg.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-BY57N2OM.js} +47 -39
- package/dist/{MemberImportHistory-C0Ep8L2q.js → MemberImportHistory-C_xDFYQh.js} +7 -7
- package/dist/{MemberList-BsuPfBgk.js → MemberList-DaOsohKg.js} +105 -103
- package/dist/{MemberTransactions-mZ3fHw5O.js → MemberTransactions-DOCrHQ2s.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-1weyRM8c.js → MessageInput.vue_vue_type_script_setup_true_lang-ep7Yqi5n.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-caED3JRW.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CTorzIeM.js} +1 -1
- package/dist/{Mission-C7DqUOJz.js → Mission-BeNYiQ9K.js} +21 -22
- package/dist/{Overview-U201nBVO.js → Overview-8QoQ_gHU.js} +20 -20
- package/dist/{Overview-VABLg36G.js → Overview-BMXpAv-n.js} +144 -145
- package/dist/{Point-DU6Ndv35.js → Point-Dyq5SXT2.js} +21 -22
- package/dist/{Promotion-9UhZXNPb.js → Promotion-BLAsz0mu.js} +131 -137
- package/dist/{Queue-CUxMedbd.js → Queue-qmf3ymVp.js} +45 -45
- package/dist/{Record-BIftCQzV.js → Record-DMqhKlIc.js} +9 -9
- package/dist/{Review-lyVgTfsP.js → Review-DDGtAXxX.js} +2 -2
- package/dist/ReviewFacebookCallback-jCP7vNJ3.js +238 -0
- package/dist/{ReviewGoogleCallback-B41PXfsj.js → ReviewGoogleCallback-kIu4wO-x.js} +5 -5
- package/dist/{Reward-BMun_Rs4.js → Reward-B9eyzyk7.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-3TONrUQu.js → RewardGroup.vue_vue_type_script_setup_true_lang-B5oNDez7.js} +13 -13
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Cyo98lN8.js +1884 -0
- package/dist/{Segment-1VS7ycXi.js → Segment-CSenE8-8.js} +306 -303
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-C5iJSlxi.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-gUmEIxLj.js} +14 -14
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CXY9Wyk9.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-5m7qY393.js} +4 -4
- package/dist/{Setting-BdtzvKjt.js → Setting-CshEhFJ0.js} +148 -159
- package/dist/{SettingAdvertisements-BO2l3HBT.js → SettingAdvertisements-B7NU1mTE.js} +12 -12
- package/dist/Settings-CSeRLtGl.js +179 -0
- package/dist/{Store-DWQz-MgY.js → Store-BouP_m9K.js} +28 -28
- package/dist/{StoreRewards-Bfwuqxf-.js → StoreRewards-NX24LqS_.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B2zDGFAw.js +1265 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-IGh7Kiot.js +142 -0
- package/dist/{Tier-CKn-l-wY.js → Tier-Cg5KAErk.js} +687 -2575
- package/dist/{Title-BXDk69uL.js → Title-BcziCAh4.js} +94 -95
- package/dist/{Transaction-D4HQO4i9.js → Transaction-DK0Splad.js} +2 -2
- package/dist/Upselling-1RSD_l_k.js +200 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-um124o4t.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C-mg8LqR.js} +26 -26
- package/dist/{Voucher-BGIyw4jq.js → Voucher-DX6-GX17.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BKyZj5SP.js → VoucherEditor.vue_vue_type_script_setup_true_lang-7KZNW6gS.js} +12 -12
- package/dist/{WhatsappAccount-Cd82g_xj.js → WhatsappAccount-qbnBp7mv.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DWy8kS66.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BAw8wUAu.js} +1 -1
- package/dist/{WhatsappBot-auQhO8zk.js → WhatsappBot-Dkx24HI7.js} +6 -6
- package/dist/{WhatsappBotLogs-CWuJzK9W.js → WhatsappBotLogs-CR9RPc-1.js} +6 -6
- package/dist/{WhatsappBotSettings-B8KXMpIF.js → WhatsappBotSettings-DF97RSSV.js} +4 -4
- package/dist/{WhatsappLayout-DxooAkkL.js → WhatsappLayout-JAye9JZI.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CYHmgQ2v.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-toCNd_Ip.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DilxQM_z.js → ZodTextField.vue_vue_type_script_setup_true_lang-DvMdQKET.js} +2 -2
- package/dist/{app-BG-zK89d.js → app-O2-Xtjxu.js} +15017 -14861
- package/dist/app.js +3 -4
- package/dist/{base.export-BcMuREGH.js → base.export-0NAAWE2x.js} +2 -2
- package/dist/{business-9_NOI2V9.js → business-DO-6gAei.js} +1 -1
- package/dist/{campaign-DjBTRZyA.js → campaign-CKpTYx8r.js} +94 -121
- package/dist/{campaign-8y_9SvKP.js → campaign-CjtbytTA.js} +28 -34
- package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BqekIiiN.js} +1 -2
- package/dist/campaign.fn-DNva0Lzi.js +776 -0
- package/dist/{collection.fn-yXurU9iv.js → collection.fn-DgVYvv2u.js} +2 -2
- package/dist/{currency-YzyBFtDU.js → currency-RCSoljIc.js} +1 -1
- package/dist/{effect-bMGarJZ6.js → effect-Cic-yJ5a.js} +1 -1
- package/dist/{email-addresses-Ciu83j_3.js → email-addresses-Cz7nxyM7.js} +25 -25
- package/dist/{feature-flag-H5D1Cob5.js → feature-flag-BHFUKA3S.js} +70 -70
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-BH9HMikb.js → helper-H_gC1vRi.js} +1 -1
- package/dist/{index-CH-KHkm5.js → index-B-RKMcrS.js} +1 -1
- package/dist/{index-DkMy7WpU.js → index-BEFoWcsk.js} +2 -2
- package/dist/{index-DbxiG50D.js → index-BFxCHHSQ.js} +2 -2
- package/dist/{index-Cyf05z_2.js → index-BU-CbflW.js} +2 -2
- package/dist/{index-CIOidYvo.js → index-C-vDa3pL.js} +1 -1
- package/dist/{index-MWNnMT2T.js → index-CSNMZuv4.js} +4 -4
- package/dist/{index-RvJ5cq__.js → index-CTDzF7d_.js} +3 -3
- package/dist/{index-BaTnDV-T.js → index-D5_gAcWw.js} +2613 -2699
- package/dist/{index-BHO82_Ix.js → index-DRuHmNoi.js} +1 -1
- package/dist/{index-DYu7ZdQt.js → index-DVIKJ8Fi.js} +1 -1
- package/dist/{index-_giqGuYM.js → index-DVt628Qh.js} +1 -1
- package/dist/{index-pnM5q4c_.js → index-DZBbFrO4.js} +232 -389
- package/dist/{index-BxwJfT08.js → index-DlRDCDW-.js} +197 -197
- package/dist/{index-BvKJM3M2.js → index-Dw5ikwFR.js} +15 -29
- package/dist/{index-CooParq-.js → index-G8S_j3nj.js} +581 -682
- package/dist/{index-taPHgOqE.js → index-GJRqAxuJ.js} +251 -608
- package/dist/{index-Ye3qFt34.js → index-bMAgU-Xo.js} +10 -10
- package/dist/{index-DpkoCl4z.js → index-ka7lQ9t1.js} +10 -10
- package/dist/{index-B7-Uvnfn.js → index-rQ30JRKa.js} +6 -19
- package/dist/{index-CJAFz9Nn.js → index-zsTY_sDR.js} +1 -1
- package/dist/{index.esm2017-CLxZor1Y.js → index.esm2017-Cf5e9e4I.js} +104 -104
- package/dist/{loading-CsOSUWBd.js → loading-Q15eugE9.js} +1 -1
- package/dist/{lodash-CshibTzh.js → lodash-B9y2Z6FT.js} +1 -1
- package/dist/{member-import-BdaGAjjt.js → member-import-B7-pNlAu.js} +1 -1
- package/dist/{membership-C5JWO1FM.js → membership-FjTQN8-W.js} +2 -2
- package/dist/{money-Blt5EM43.js → money-DpnjYb20.js} +1 -1
- package/dist/{number-COm3MiH8.js → number-DQpgkGJp.js} +1 -1
- package/dist/objectid-DDT17fUp.js +145 -0
- package/dist/{onboarding-BbQDJOOS.js → onboarding-j-EtZDu5.js} +36 -36
- package/dist/{onboardingSetup-BLISY52M.js → onboardingSetup-B4yc4Acp.js} +2 -2
- package/dist/{plugins-De_chCYU.js → plugins-TZdigPwR.js} +3 -3
- package/dist/{reward-Dl8Zoxe_.js → reward-BpRIHbOy.js} +1 -1
- package/dist/{rule-D6_iss3O.js → rule-PjQfvtJP.js} +492 -572
- package/dist/rule-builder-Vloq9R4R.js +102 -0
- package/dist/style.css +1 -1
- package/dist/template-CeZkljlm.js +275 -0
- package/dist/{timezone-CA5FwOyy.js → timezone-BmgCN50d.js} +1 -1
- package/dist/{transaction.fn-DI_NeGQb.js → transaction.fn-C9wUfIRo.js} +2 -2
- package/dist/{trigger-CuymoMM-.js → trigger-D9XVMrkP.js} +9 -9
- package/dist/{useMarketingMaterialActions-Bz0Kgvgd.js → useMarketingMaterialActions-2_HeLxeK.js} +4 -4
- package/dist/{usePagination-yb1rupwa.js → usePagination-Do3Rw4mx.js} +1 -1
- package/dist/{user-QSKyFaMI.js → user-CJpvF5mn.js} +1 -1
- package/dist/vue-i18n-CJsKXxJX.js +2365 -0
- package/dist/{xlsx--RjkGa9A.js → xlsx-CaTmMdcM.js} +440 -440
- package/dist/{zod-CmPMd-h0.js → zod-BcPs1As4.js} +1 -1
- package/package.json +3 -7
- package/dist/AuditLogs-s572aHLw.js +0 -2016
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CSjOHBhA.js +0 -4439
- package/dist/Grab-BSQt4deB.js +0 -301
- package/dist/ReviewFacebookCallback-Da5G19bE.js +0 -225
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DHzFgr4h.js +0 -1923
- package/dist/Settings-CvYawDU5.js +0 -286
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CBwmDKAw.js +0 -1319
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CHzFjo24.js +0 -7007
- package/dist/Upselling-CikWzKq7.js +0 -1032
- package/dist/campaign.fn-COkPH1QE.js +0 -776
- package/dist/duplicateCampaign-dRWioann.js +0 -51
- package/dist/google-BQK68wbe.js +0 -5
- package/dist/objectid-DQTx3-ee.js +0 -145
- package/dist/template-Cw6j1cLX.js +0 -224
- package/dist/vue-i18n-B_qtODCw.js +0 -2365
|
@@ -1,144 +1,133 @@
|
|
|
1
|
-
import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as
|
|
1
|
+
import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as B, watch as ie, resolveComponent as ee, openBlock as W, createElementBlock as me, createVNode as R, unref as g, createElementVNode as I, toDisplayString as P, createBlock as Oe, withCtx as Z, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Ae, nextTick as dn } from "vue";
|
|
2
2
|
import { useRouter as yt, useRoute as wt, RouterView as hn } from "vue-router";
|
|
3
3
|
import { useCoreStore as ge, FeedMeAuth as fn } from "@feedmepos/mf-common";
|
|
4
4
|
import { u as pn } from "./app-wDQR6dpb.js";
|
|
5
|
-
import { u as mn } from "./business-
|
|
6
|
-
import { u as gn, l as _n } from "./feature-flag-
|
|
7
|
-
import "./index-
|
|
8
|
-
import { components as
|
|
9
|
-
import { u as Tt } from "./vue-i18n-
|
|
10
|
-
import { m as yn } from "./index-
|
|
11
|
-
import { C as Xe } from "./timezone-
|
|
12
|
-
import { u as wn } from "./onboarding-
|
|
13
|
-
import { R as
|
|
14
|
-
import { J as
|
|
15
|
-
import { r as Le, L as
|
|
5
|
+
import { u as mn } from "./business-DO-6gAei.js";
|
|
6
|
+
import { u as gn, l as _n } from "./feature-flag-BHFUKA3S.js";
|
|
7
|
+
import "./index-zsTY_sDR.js";
|
|
8
|
+
import { components as j, useSnackbar as vn, useDialog as In } from "@feedmepos/ui-library";
|
|
9
|
+
import { u as Tt } from "./vue-i18n-CJsKXxJX.js";
|
|
10
|
+
import { m as yn } from "./index-DRuHmNoi.js";
|
|
11
|
+
import { C as Xe } from "./timezone-BmgCN50d.js";
|
|
12
|
+
import { u as wn } from "./onboarding-j-EtZDu5.js";
|
|
13
|
+
import { R as p, g as Tn, A as kn, a as Qe } from "./app-O2-Xtjxu.js";
|
|
14
|
+
import { J as bn } from "./JsonViewer-v8_C7l5N.js";
|
|
15
|
+
import { r as Le, L as En, g as kt, i as Sn, a as Rn, _ as Ze, C as et, b as Pn, S as se, c as A, d as X, E as Fe, e as An, f as bt, h as Cn, j as Nn, k as Et, l as k, m as On, F as Ve, n as Ln, q as oe, o as Mn, p as Un, s as Dn, t as xn, u as Fn } from "./index.esm2017-Cf5e9e4I.js";
|
|
16
16
|
import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
|
|
17
|
-
import { S as tt, c as
|
|
18
|
-
const
|
|
17
|
+
import { S as tt, c as Vn } from "./index-bMAgU-Xo.js";
|
|
18
|
+
const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, jn = /* @__PURE__ */ xe({
|
|
19
19
|
__name: "NavigationTab",
|
|
20
20
|
setup(n) {
|
|
21
21
|
const { t: e, locale: t } = Tt(), i = wn(), r = gn(), s = te(), o = [
|
|
22
22
|
{
|
|
23
23
|
label: e("connect.navigation.analytic"),
|
|
24
|
-
value:
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
label: e("connect.navigation.upselling"),
|
|
28
|
-
value: f["$connect-UPSELLING"]
|
|
24
|
+
value: p["$connect-ANALYTIC"]
|
|
29
25
|
},
|
|
26
|
+
{ label: "Upselling", value: p["$connect-UPSELLING"] },
|
|
30
27
|
{
|
|
31
28
|
label: e("connect.navigation.campaign"),
|
|
32
|
-
value:
|
|
29
|
+
value: p["$connect-CAMPAIGN"],
|
|
33
30
|
children: [
|
|
34
31
|
{
|
|
35
32
|
label: e("connect.navigation.promotion"),
|
|
36
|
-
value:
|
|
33
|
+
value: p["$connect-CAMPAIGN_PROMOTION"]
|
|
37
34
|
},
|
|
38
35
|
{
|
|
39
36
|
label: e("connect.navigation.voucher"),
|
|
40
|
-
value:
|
|
37
|
+
value: p["$connect-CAMPAIGN_VOUCHER"]
|
|
41
38
|
},
|
|
42
39
|
{
|
|
43
40
|
label: e("connect.navigation.broadcast"),
|
|
44
|
-
value:
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
label: e("connect.navigation.grab"),
|
|
48
|
-
value: f["$connect-CAMPAIGN_GRAB"]
|
|
41
|
+
value: p["$connect-CAMPAIGN_BROADCAST"]
|
|
49
42
|
}
|
|
50
43
|
]
|
|
51
44
|
},
|
|
52
45
|
{
|
|
53
46
|
label: e("connect.navigation.program"),
|
|
54
|
-
value:
|
|
47
|
+
value: p["$connect-PROGRAM"],
|
|
55
48
|
children: [
|
|
56
49
|
{
|
|
57
50
|
label: e("connect.navigation.tier"),
|
|
58
|
-
value:
|
|
51
|
+
value: p["$connect-PROGRAM_TIER"]
|
|
59
52
|
},
|
|
60
53
|
{
|
|
61
54
|
label: e("connect.navigation.title"),
|
|
62
|
-
value:
|
|
55
|
+
value: p["$connect-PROGRAM_TITLE"]
|
|
63
56
|
},
|
|
64
57
|
{
|
|
65
58
|
label: e("connect.navigation.experience"),
|
|
66
|
-
value:
|
|
59
|
+
value: p["$connect-PROGRAM_EXPERIENCE"]
|
|
67
60
|
},
|
|
68
61
|
{
|
|
69
62
|
label: e("connect.navigation.point"),
|
|
70
|
-
value:
|
|
71
|
-
badge: () => U(
|
|
63
|
+
value: p["$connect-PROGRAM_POINT"],
|
|
64
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
72
65
|
},
|
|
73
66
|
{
|
|
74
67
|
label: e("connect.navigation.credit"),
|
|
75
|
-
value:
|
|
68
|
+
value: p["$connect-PROGRAM_CREDIT"]
|
|
76
69
|
},
|
|
77
70
|
{
|
|
78
71
|
label: e("connect.navigation.game"),
|
|
79
|
-
value:
|
|
80
|
-
badge: () => U(
|
|
72
|
+
value: p["$connect-PROGRAM_GAME"],
|
|
73
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
81
74
|
},
|
|
82
75
|
{
|
|
83
76
|
label: "Mission",
|
|
84
|
-
value:
|
|
77
|
+
value: p["$connect-PROGRAM_MISSION"]
|
|
85
78
|
}
|
|
86
79
|
]
|
|
87
80
|
},
|
|
88
81
|
{
|
|
89
82
|
label: e("connect.navigation.loyalty"),
|
|
90
|
-
value:
|
|
83
|
+
value: p["$connect-LOYALTY"],
|
|
91
84
|
children: [
|
|
92
85
|
{
|
|
93
86
|
label: e("connect.navigation.member"),
|
|
94
|
-
value:
|
|
87
|
+
value: p["$connect-LOYALTY_MEMBER_LIST"]
|
|
95
88
|
},
|
|
96
89
|
{
|
|
97
90
|
label: e("connect.navigation.segments"),
|
|
98
|
-
value:
|
|
99
|
-
badge: () => U(
|
|
91
|
+
value: p["$connect-LOYALTY_SEGMENT"],
|
|
92
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
100
93
|
},
|
|
101
94
|
{
|
|
102
95
|
label: e("connect.navigation.card"),
|
|
103
|
-
value:
|
|
104
|
-
badge: () => U(
|
|
96
|
+
value: p["$connect-LOYALTY_CARD"],
|
|
97
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
105
98
|
}
|
|
106
99
|
]
|
|
107
100
|
},
|
|
108
101
|
{
|
|
109
102
|
label: e("connect.navigation.whatsappBot"),
|
|
110
|
-
value:
|
|
111
|
-
badge: () => U(
|
|
103
|
+
value: p["$connect-WHATSAPP"],
|
|
104
|
+
badge: () => U(j.FmPill, { variant: "beta" })
|
|
112
105
|
},
|
|
113
106
|
{
|
|
114
107
|
label: e("connect.navigation.referral"),
|
|
115
|
-
value:
|
|
116
|
-
badge: () => U(
|
|
108
|
+
value: p["$connect-REFERRAL"],
|
|
109
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
117
110
|
},
|
|
118
111
|
{
|
|
119
112
|
label: e("connect.navigation.store"),
|
|
120
|
-
value:
|
|
113
|
+
value: p["$connect-STORE"]
|
|
121
114
|
},
|
|
122
115
|
{
|
|
123
116
|
label: e("connect.navigation.transaction"),
|
|
124
|
-
value:
|
|
117
|
+
value: p["$connect-TRANSACTION"]
|
|
125
118
|
},
|
|
126
119
|
{
|
|
127
120
|
label: e("connect.navigation.marketingMaterials"),
|
|
128
|
-
value:
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
label: e("connect.navigation.auditLogs"),
|
|
132
|
-
value: f["$connect-AUDIT_LOGS"]
|
|
121
|
+
value: p["$connect-MARKETING"]
|
|
133
122
|
},
|
|
134
123
|
{
|
|
135
124
|
label: e("connect.navigation.review"),
|
|
136
|
-
value:
|
|
125
|
+
value: p["$connect-REVIEW"]
|
|
137
126
|
},
|
|
138
127
|
{
|
|
139
128
|
label: e("connect.navigation.goals"),
|
|
140
|
-
value:
|
|
141
|
-
badge: () => i.goalsRemaining > 0 ? U(
|
|
129
|
+
value: p["$connect-GOALS"],
|
|
130
|
+
badge: () => i.goalsRemaining > 0 ? U(j.FmBadge, {
|
|
142
131
|
variant: "numeric",
|
|
143
132
|
inline: !0,
|
|
144
133
|
value: i.goalsRemaining
|
|
@@ -146,56 +135,56 @@ const Vn = { class: "flex flex-col h-full justify-between py-16" }, $n = { class
|
|
|
146
135
|
},
|
|
147
136
|
{
|
|
148
137
|
label: e("connect.navigation.setting"),
|
|
149
|
-
value:
|
|
138
|
+
value: p["$connect-SETTING"]
|
|
150
139
|
},
|
|
151
140
|
{
|
|
152
141
|
label: e("connect.navigation.bin"),
|
|
153
|
-
value:
|
|
142
|
+
value: p["$connect-BIN"]
|
|
154
143
|
}
|
|
155
|
-
], c =
|
|
144
|
+
], c = B(
|
|
156
145
|
() => o.filter(
|
|
157
|
-
(
|
|
146
|
+
(f) => (f.value !== p["$connect-WHATSAPP"] || r() === "on") && (f.value !== p["$connect-UPSELLING"] || Tn() !== void 0)
|
|
158
147
|
)
|
|
159
|
-
), a = yt(), l = wt(), d = o.reduce((
|
|
160
|
-
const
|
|
161
|
-
return console.log(`[MF] Timezone set to: ${Xe[
|
|
148
|
+
), a = yt(), l = wt(), d = o.reduce((f, w) => [...(w.children ?? []).map((h) => h.value), ...f, w.value], []), m = ge(), v = B(() => {
|
|
149
|
+
const f = m.currentCountry.value || "MY";
|
|
150
|
+
return console.log(`[MF] Timezone set to: ${Xe[f]}`), Xe[f];
|
|
162
151
|
});
|
|
163
152
|
ie(
|
|
164
153
|
// Watch `route.matched`, not `route`: `useRoute()` returns a reactive object
|
|
165
154
|
// whose identity never changes, so watching it directly fired once via
|
|
166
155
|
// `immediate` and the highlight then stayed on whatever page loaded first.
|
|
167
156
|
() => l.matched,
|
|
168
|
-
(
|
|
169
|
-
const
|
|
170
|
-
|
|
157
|
+
(f) => {
|
|
158
|
+
const h = f.map((_) => _.name).reverse().find((_) => d.includes(_));
|
|
159
|
+
h && (s.value = h);
|
|
171
160
|
},
|
|
172
161
|
{ immediate: !0 }
|
|
173
162
|
), ie(
|
|
174
163
|
[() => {
|
|
175
|
-
var
|
|
176
|
-
return (
|
|
164
|
+
var f;
|
|
165
|
+
return (f = m.currentBusiness.value) == null ? void 0 : f._id;
|
|
177
166
|
}, () => l.name, t],
|
|
178
|
-
([
|
|
179
|
-
|
|
167
|
+
([f]) => {
|
|
168
|
+
f && i.read(t.value, f);
|
|
180
169
|
},
|
|
181
170
|
{ immediate: !0 }
|
|
182
171
|
);
|
|
183
|
-
async function
|
|
184
|
-
await a.push({ name:
|
|
172
|
+
async function y(f) {
|
|
173
|
+
await a.push({ name: f });
|
|
185
174
|
}
|
|
186
|
-
return (
|
|
187
|
-
var
|
|
188
|
-
const
|
|
189
|
-
return
|
|
190
|
-
|
|
175
|
+
return (f, w) => {
|
|
176
|
+
var _;
|
|
177
|
+
const h = ee("FmCollapsibleTabs");
|
|
178
|
+
return W(), me("div", $n, [
|
|
179
|
+
R(h, {
|
|
191
180
|
class: "border-fm-color-neutral-gray-100 border-r px-4",
|
|
192
|
-
"model-value": (
|
|
193
|
-
items:
|
|
194
|
-
"onUpdate:modelValue":
|
|
181
|
+
"model-value": (_ = g(s)) == null ? void 0 : _.toString(),
|
|
182
|
+
items: g(c),
|
|
183
|
+
"onUpdate:modelValue": y
|
|
195
184
|
}, null, 8, ["model-value", "items"]),
|
|
196
|
-
I("div",
|
|
197
|
-
I("div", null, "Timezone: " +
|
|
198
|
-
I("div", null, "(UTC" +
|
|
185
|
+
I("div", Hn, [
|
|
186
|
+
I("div", null, "Timezone: " + P(g(v).split("/")[1].replace("_", " ")), 1),
|
|
187
|
+
I("div", null, "(UTC" + P(g(yn).tz(g(v)).format("Z")) + ")", 1)
|
|
199
188
|
])
|
|
200
189
|
]);
|
|
201
190
|
};
|
|
@@ -208,13 +197,13 @@ function Wn() {
|
|
|
208
197
|
return !1;
|
|
209
198
|
}
|
|
210
199
|
}
|
|
211
|
-
function
|
|
200
|
+
function Bn() {
|
|
212
201
|
try {
|
|
213
202
|
localStorage.setItem(St, (/* @__PURE__ */ new Date()).toISOString());
|
|
214
203
|
} catch {
|
|
215
204
|
}
|
|
216
205
|
}
|
|
217
|
-
const Gn = { class: "flex flex-col gap-12" },
|
|
206
|
+
const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, qn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, Kn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, Jn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Yn = { class: "flex flex-col gap-24 pb-8" }, Xn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Qn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Zn = { class: "fm-typo-en-body-lg-600" }, ei = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ti = { class: "shrink-0" }, ni = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ii = { class: "flex w-full flex-col gap-12 px-[16px]" }, ri = { class: "flex flex-wrap items-center gap-12" }, si = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, oi = /* @__PURE__ */ xe({
|
|
218
207
|
__name: "AiMarketingPromoDialog",
|
|
219
208
|
setup(n) {
|
|
220
209
|
let e = !1;
|
|
@@ -222,40 +211,40 @@ const Gn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xx
|
|
|
222
211
|
{ key: "completeContent", icon: "layers" },
|
|
223
212
|
{ key: "realContext", icon: "storefront" },
|
|
224
213
|
{ key: "socialFormat", icon: "aspect_ratio" }
|
|
225
|
-
], a =
|
|
226
|
-
var
|
|
227
|
-
const
|
|
228
|
-
return
|
|
214
|
+
], a = B(() => {
|
|
215
|
+
var f;
|
|
216
|
+
const y = ((f = r.value) == null ? void 0 : f.permissions) ?? [];
|
|
217
|
+
return kn(
|
|
229
218
|
[
|
|
230
219
|
{
|
|
231
220
|
action: Qe.Action.manage,
|
|
232
221
|
subject: Qe.Subject.Business.crm_marketingMaterial
|
|
233
222
|
}
|
|
234
223
|
],
|
|
235
|
-
|
|
224
|
+
y
|
|
236
225
|
).granted;
|
|
237
|
-
}), l =
|
|
226
|
+
}), l = B(
|
|
238
227
|
() => s.value === "MY" && a.value
|
|
239
228
|
);
|
|
240
229
|
let d = !1;
|
|
241
230
|
ie(
|
|
242
231
|
l,
|
|
243
|
-
(
|
|
244
|
-
d || !
|
|
232
|
+
(y) => {
|
|
233
|
+
d || !y || (d = !0, !(Wn() || e) && (e = !0, o.value = !0));
|
|
245
234
|
},
|
|
246
235
|
{ immediate: !0 }
|
|
247
236
|
);
|
|
248
237
|
async function m() {
|
|
249
|
-
o.value = !1, await i.push({ name:
|
|
238
|
+
o.value = !1, await i.push({ name: p["$connect-MARKETING"] });
|
|
250
239
|
}
|
|
251
|
-
function
|
|
252
|
-
|
|
240
|
+
function v() {
|
|
241
|
+
Bn(), o.value = !1;
|
|
253
242
|
}
|
|
254
|
-
return (
|
|
255
|
-
const
|
|
256
|
-
return
|
|
243
|
+
return (y, f) => {
|
|
244
|
+
const w = ee("FmIcon"), h = ee("FmCard"), _ = ee("FmButton"), b = ee("FmDialog");
|
|
245
|
+
return W(), Oe(b, {
|
|
257
246
|
modelValue: o.value,
|
|
258
|
-
"onUpdate:modelValue":
|
|
247
|
+
"onUpdate:modelValue": f[0] || (f[0] = (T) => o.value = T),
|
|
259
248
|
"min-width": "min(500px, calc(100% - 48px))",
|
|
260
249
|
"max-width": "min(860px, calc(100% - 48px))",
|
|
261
250
|
"max-height": "90vh",
|
|
@@ -263,75 +252,75 @@ const Gn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xx
|
|
|
263
252
|
}, {
|
|
264
253
|
"dialog-header": Z(() => [
|
|
265
254
|
I("div", Gn, [
|
|
266
|
-
I("div",
|
|
267
|
-
|
|
255
|
+
I("div", zn, [
|
|
256
|
+
R(w, {
|
|
268
257
|
name: "auto_awesome",
|
|
269
258
|
size: "sm",
|
|
270
259
|
color: "primary"
|
|
271
260
|
}),
|
|
272
|
-
I("span",
|
|
261
|
+
I("span", qn, P(g(t)("connect.marketing.whatsNew.badge")), 1)
|
|
273
262
|
]),
|
|
274
|
-
I("h1",
|
|
275
|
-
I("p",
|
|
263
|
+
I("h1", Kn, P(g(t)("connect.marketing.whatsNew.title")), 1),
|
|
264
|
+
I("p", Jn, P(g(t)("connect.marketing.whatsNew.subtitle")), 1)
|
|
276
265
|
])
|
|
277
266
|
]),
|
|
278
267
|
"dialog-footer": Z(() => [
|
|
279
|
-
I("div",
|
|
280
|
-
I("div",
|
|
281
|
-
|
|
268
|
+
I("div", ii, [
|
|
269
|
+
I("div", ri, [
|
|
270
|
+
R(_, {
|
|
282
271
|
variant: "primary",
|
|
283
272
|
size: "lg",
|
|
284
|
-
label:
|
|
273
|
+
label: g(t)("connect.marketing.whatsNew.cta"),
|
|
285
274
|
"append-icon": "arrow_forward",
|
|
286
275
|
onClick: m
|
|
287
276
|
}, null, 8, ["label"]),
|
|
288
|
-
|
|
277
|
+
R(_, {
|
|
289
278
|
variant: "tertiary",
|
|
290
279
|
size: "lg",
|
|
291
|
-
label:
|
|
292
|
-
onClick:
|
|
280
|
+
label: g(t)("connect.marketing.whatsNew.dismiss"),
|
|
281
|
+
onClick: v
|
|
293
282
|
}, null, 8, ["label"])
|
|
294
283
|
]),
|
|
295
|
-
I("div",
|
|
284
|
+
I("div", si, P(g(t)("connect.marketing.whatsNew.footnote")), 1)
|
|
296
285
|
])
|
|
297
286
|
]),
|
|
298
287
|
default: Z(() => [
|
|
299
|
-
I("div",
|
|
300
|
-
I("div",
|
|
301
|
-
(
|
|
302
|
-
key:
|
|
288
|
+
I("div", Yn, [
|
|
289
|
+
I("div", Xn, [
|
|
290
|
+
(W(), me(It, null, ln(c, (T) => R(h, {
|
|
291
|
+
key: T.key,
|
|
303
292
|
variant: "outlined",
|
|
304
293
|
class: "!h-full flex flex-col gap-8 p-16"
|
|
305
294
|
}, {
|
|
306
295
|
default: Z(() => [
|
|
307
|
-
I("div",
|
|
308
|
-
|
|
309
|
-
name:
|
|
296
|
+
I("div", Qn, [
|
|
297
|
+
R(w, {
|
|
298
|
+
name: T.icon,
|
|
310
299
|
size: "md",
|
|
311
300
|
color: "primary"
|
|
312
301
|
}, null, 8, ["name"])
|
|
313
302
|
]),
|
|
314
|
-
I("div",
|
|
315
|
-
I("div",
|
|
316
|
-
`connect.marketing.whatsNew.benefits.${
|
|
303
|
+
I("div", Zn, P(g(t)(`connect.marketing.whatsNew.benefits.${T.key}.title`)), 1),
|
|
304
|
+
I("div", ei, P(g(t)(
|
|
305
|
+
`connect.marketing.whatsNew.benefits.${T.key}.description`
|
|
317
306
|
)), 1)
|
|
318
307
|
]),
|
|
319
308
|
_: 2
|
|
320
309
|
}, 1024)), 64))
|
|
321
310
|
]),
|
|
322
|
-
|
|
311
|
+
R(h, {
|
|
323
312
|
variant: "outlined",
|
|
324
313
|
class: "flex items-start gap-12 p-16"
|
|
325
314
|
}, {
|
|
326
315
|
default: Z(() => [
|
|
327
|
-
I("div",
|
|
328
|
-
|
|
316
|
+
I("div", ti, [
|
|
317
|
+
R(w, {
|
|
329
318
|
name: "lightbulb",
|
|
330
319
|
size: "md",
|
|
331
320
|
color: "primary"
|
|
332
321
|
})
|
|
333
322
|
]),
|
|
334
|
-
I("p",
|
|
323
|
+
I("p", ni, P(g(t)("connect.marketing.whatsNew.callout")), 1)
|
|
335
324
|
]),
|
|
336
325
|
_: 1
|
|
337
326
|
})
|
|
@@ -342,7 +331,7 @@ const Gn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xx
|
|
|
342
331
|
};
|
|
343
332
|
}
|
|
344
333
|
});
|
|
345
|
-
var
|
|
334
|
+
var ai = "firebase", ci = "10.12.4";
|
|
346
335
|
/**
|
|
347
336
|
* @license
|
|
348
337
|
* Copyright 2020 Google LLC
|
|
@@ -359,13 +348,13 @@ var oi = "firebase", ai = "10.12.4";
|
|
|
359
348
|
* See the License for the specific language governing permissions and
|
|
360
349
|
* limitations under the License.
|
|
361
350
|
*/
|
|
362
|
-
Le(
|
|
351
|
+
Le(ai, ci, "app");
|
|
363
352
|
function Rt() {
|
|
364
353
|
return {
|
|
365
354
|
"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."
|
|
366
355
|
};
|
|
367
356
|
}
|
|
368
|
-
const
|
|
357
|
+
const li = Rt, Pt = new Fe("auth", "Firebase", Rt());
|
|
369
358
|
/**
|
|
370
359
|
* @license
|
|
371
360
|
* Copyright 2020 Google LLC
|
|
@@ -382,8 +371,8 @@ const ci = Rt, At = new Fe("auth", "Firebase", Rt());
|
|
|
382
371
|
* See the License for the specific language governing permissions and
|
|
383
372
|
* limitations under the License.
|
|
384
373
|
*/
|
|
385
|
-
const _e = new
|
|
386
|
-
function
|
|
374
|
+
const _e = new En("@firebase/auth");
|
|
375
|
+
function ui(n, ...e) {
|
|
387
376
|
_e.logLevel <= Et.WARN && _e.warn(`Auth (${se}): ${n}`, ...e);
|
|
388
377
|
}
|
|
389
378
|
function de(n, ...e) {
|
|
@@ -405,38 +394,38 @@ function de(n, ...e) {
|
|
|
405
394
|
* See the License for the specific language governing permissions and
|
|
406
395
|
* limitations under the License.
|
|
407
396
|
*/
|
|
408
|
-
function
|
|
397
|
+
function L(n, ...e) {
|
|
409
398
|
throw He(n, ...e);
|
|
410
399
|
}
|
|
411
|
-
function
|
|
400
|
+
function E(n, ...e) {
|
|
412
401
|
return He(n, ...e);
|
|
413
402
|
}
|
|
414
|
-
function
|
|
415
|
-
const i = Object.assign(Object.assign({},
|
|
403
|
+
function At(n, e, t) {
|
|
404
|
+
const i = Object.assign(Object.assign({}, li()), { [e]: t });
|
|
416
405
|
return new Fe("auth", "Firebase", i).create(e, {
|
|
417
406
|
appName: n.name
|
|
418
407
|
});
|
|
419
408
|
}
|
|
420
409
|
function H(n) {
|
|
421
|
-
return
|
|
410
|
+
return At(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
|
|
422
411
|
}
|
|
423
412
|
function He(n, ...e) {
|
|
424
413
|
if (typeof n != "string") {
|
|
425
414
|
const t = e[0], i = [...e.slice(1)];
|
|
426
415
|
return i[0] && (i[0].appName = n.name), n._errorFactory.create(t, ...i);
|
|
427
416
|
}
|
|
428
|
-
return
|
|
417
|
+
return Pt.create(n, ...e);
|
|
429
418
|
}
|
|
430
419
|
function u(n, e, ...t) {
|
|
431
420
|
if (!n)
|
|
432
421
|
throw He(e, ...t);
|
|
433
422
|
}
|
|
434
|
-
function
|
|
423
|
+
function C(n) {
|
|
435
424
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
|
436
425
|
throw de(e), new Error(e);
|
|
437
426
|
}
|
|
438
|
-
function
|
|
439
|
-
n ||
|
|
427
|
+
function M(n, e) {
|
|
428
|
+
n || C(e);
|
|
440
429
|
}
|
|
441
430
|
/**
|
|
442
431
|
* @license
|
|
@@ -458,7 +447,7 @@ function Me() {
|
|
|
458
447
|
var n;
|
|
459
448
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
|
460
449
|
}
|
|
461
|
-
function
|
|
450
|
+
function di() {
|
|
462
451
|
return nt() === "http:" || nt() === "https:";
|
|
463
452
|
}
|
|
464
453
|
function nt() {
|
|
@@ -481,15 +470,15 @@ function nt() {
|
|
|
481
470
|
* See the License for the specific language governing permissions and
|
|
482
471
|
* limitations under the License.
|
|
483
472
|
*/
|
|
484
|
-
function
|
|
473
|
+
function hi() {
|
|
485
474
|
return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
|
|
486
475
|
// This is especially true for Cordova apps which have unreliable
|
|
487
476
|
// navigator.onLine behavior unless cordova-plugin-network-information is
|
|
488
477
|
// installed which overwrites the native navigator.onLine value and
|
|
489
478
|
// defines navigator.connection.
|
|
490
|
-
(
|
|
479
|
+
(di() || Pn() || "connection" in navigator) ? navigator.onLine : !0;
|
|
491
480
|
}
|
|
492
|
-
function
|
|
481
|
+
function fi() {
|
|
493
482
|
if (typeof navigator > "u")
|
|
494
483
|
return null;
|
|
495
484
|
const n = navigator;
|
|
@@ -519,10 +508,10 @@ function hi() {
|
|
|
519
508
|
*/
|
|
520
509
|
class ae {
|
|
521
510
|
constructor(e, t) {
|
|
522
|
-
this.shortDelay = e, this.longDelay = t,
|
|
511
|
+
this.shortDelay = e, this.longDelay = t, M(t > e, "Short delay should be less than long delay!"), this.isMobile = Sn() || Rn();
|
|
523
512
|
}
|
|
524
513
|
get() {
|
|
525
|
-
return
|
|
514
|
+
return hi() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
|
526
515
|
}
|
|
527
516
|
}
|
|
528
517
|
/**
|
|
@@ -541,8 +530,8 @@ class ae {
|
|
|
541
530
|
* See the License for the specific language governing permissions and
|
|
542
531
|
* limitations under the License.
|
|
543
532
|
*/
|
|
544
|
-
function
|
|
545
|
-
|
|
533
|
+
function je(n, e) {
|
|
534
|
+
M(n.emulator, "Emulator should always be set here");
|
|
546
535
|
const { url: t } = n.emulator;
|
|
547
536
|
return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
|
|
548
537
|
}
|
|
@@ -575,7 +564,7 @@ class Ct {
|
|
|
575
564
|
return globalThis.fetch;
|
|
576
565
|
if (typeof fetch < "u")
|
|
577
566
|
return fetch;
|
|
578
|
-
|
|
567
|
+
C("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
579
568
|
}
|
|
580
569
|
static headers() {
|
|
581
570
|
if (this.headersImpl)
|
|
@@ -586,7 +575,7 @@ class Ct {
|
|
|
586
575
|
return globalThis.Headers;
|
|
587
576
|
if (typeof Headers < "u")
|
|
588
577
|
return Headers;
|
|
589
|
-
|
|
578
|
+
C("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
590
579
|
}
|
|
591
580
|
static response() {
|
|
592
581
|
if (this.responseImpl)
|
|
@@ -597,7 +586,7 @@ class Ct {
|
|
|
597
586
|
return globalThis.Response;
|
|
598
587
|
if (typeof Response < "u")
|
|
599
588
|
return Response;
|
|
600
|
-
|
|
589
|
+
C("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
|
601
590
|
}
|
|
602
591
|
}
|
|
603
592
|
/**
|
|
@@ -616,7 +605,7 @@ class Ct {
|
|
|
616
605
|
* See the License for the specific language governing permissions and
|
|
617
606
|
* limitations under the License.
|
|
618
607
|
*/
|
|
619
|
-
const
|
|
608
|
+
const pi = {
|
|
620
609
|
// Custom token errors.
|
|
621
610
|
CREDENTIAL_MISMATCH: "custom-token-mismatch",
|
|
622
611
|
// This can only happen if the SDK sends a bad request.
|
|
@@ -707,7 +696,7 @@ const fi = {
|
|
|
707
696
|
* See the License for the specific language governing permissions and
|
|
708
697
|
* limitations under the License.
|
|
709
698
|
*/
|
|
710
|
-
const
|
|
699
|
+
const mi = new ae(3e4, 6e4);
|
|
711
700
|
function Te(n, e) {
|
|
712
701
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
|
713
702
|
}
|
|
@@ -733,9 +722,9 @@ async function Q(n, e, t, i, r = {}) {
|
|
|
733
722
|
}
|
|
734
723
|
async function Nt(n, e, t) {
|
|
735
724
|
n._canInitEmulator = !1;
|
|
736
|
-
const i = Object.assign(Object.assign({},
|
|
725
|
+
const i = Object.assign(Object.assign({}, pi), e);
|
|
737
726
|
try {
|
|
738
|
-
const r = new
|
|
727
|
+
const r = new gi(n), s = await Promise.race([
|
|
739
728
|
t(),
|
|
740
729
|
r.promise
|
|
741
730
|
]);
|
|
@@ -755,33 +744,33 @@ async function Nt(n, e, t) {
|
|
|
755
744
|
throw ue(n, "user-disabled", o);
|
|
756
745
|
const d = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
|
|
757
746
|
if (l)
|
|
758
|
-
throw
|
|
759
|
-
|
|
747
|
+
throw At(n, d, l);
|
|
748
|
+
L(n, d);
|
|
760
749
|
}
|
|
761
750
|
} catch (r) {
|
|
762
751
|
if (r instanceof Ve)
|
|
763
752
|
throw r;
|
|
764
|
-
|
|
753
|
+
L(n, "network-request-failed", { message: String(r) });
|
|
765
754
|
}
|
|
766
755
|
}
|
|
767
756
|
async function Ot(n, e, t, i, r = {}) {
|
|
768
757
|
const s = await Q(n, e, t, i, r);
|
|
769
|
-
return "mfaPendingCredential" in s &&
|
|
758
|
+
return "mfaPendingCredential" in s && L(n, "multi-factor-auth-required", {
|
|
770
759
|
_serverResponse: s
|
|
771
760
|
}), s;
|
|
772
761
|
}
|
|
773
762
|
function Lt(n, e, t, i) {
|
|
774
763
|
const r = `${e}${t}?${i}`;
|
|
775
|
-
return n.config.emulator ?
|
|
764
|
+
return n.config.emulator ? je(n.config, r) : `${n.config.apiScheme}://${r}`;
|
|
776
765
|
}
|
|
777
|
-
class
|
|
766
|
+
class gi {
|
|
778
767
|
constructor(e) {
|
|
779
768
|
this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
|
|
780
|
-
this.timer = setTimeout(() => i(
|
|
769
|
+
this.timer = setTimeout(() => i(E(
|
|
781
770
|
this.auth,
|
|
782
771
|
"network-request-failed"
|
|
783
772
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
784
|
-
)),
|
|
773
|
+
)), mi.get());
|
|
785
774
|
});
|
|
786
775
|
}
|
|
787
776
|
clearNetworkTimeout() {
|
|
@@ -793,7 +782,7 @@ function ue(n, e, t) {
|
|
|
793
782
|
appName: n.name
|
|
794
783
|
};
|
|
795
784
|
t.email && (i.email = t.email), t.phoneNumber && (i.phoneNumber = t.phoneNumber);
|
|
796
|
-
const r =
|
|
785
|
+
const r = E(n, e, i);
|
|
797
786
|
return r.customData._tokenResponse = t, r;
|
|
798
787
|
}
|
|
799
788
|
/**
|
|
@@ -812,7 +801,7 @@ function ue(n, e, t) {
|
|
|
812
801
|
* See the License for the specific language governing permissions and
|
|
813
802
|
* limitations under the License.
|
|
814
803
|
*/
|
|
815
|
-
async function
|
|
804
|
+
async function _i(n, e) {
|
|
816
805
|
return Q(n, "POST", "/v1/accounts:delete", e);
|
|
817
806
|
}
|
|
818
807
|
async function Mt(n, e) {
|
|
@@ -843,8 +832,8 @@ function ne(n) {
|
|
|
843
832
|
} catch {
|
|
844
833
|
}
|
|
845
834
|
}
|
|
846
|
-
async function
|
|
847
|
-
const t = X(n), i = await t.getIdToken(e), r =
|
|
835
|
+
async function vi(n, e = !1) {
|
|
836
|
+
const t = X(n), i = await t.getIdToken(e), r = We(i);
|
|
848
837
|
u(
|
|
849
838
|
r && r.exp && r.auth_time && r.iat,
|
|
850
839
|
t.auth,
|
|
@@ -865,19 +854,19 @@ async function _i(n, e = !1) {
|
|
|
865
854
|
function Ce(n) {
|
|
866
855
|
return Number(n) * 1e3;
|
|
867
856
|
}
|
|
868
|
-
function
|
|
857
|
+
function We(n) {
|
|
869
858
|
const [e, t, i] = n.split(".");
|
|
870
859
|
if (e === void 0 || t === void 0 || i === void 0)
|
|
871
860
|
return de("JWT malformed, contained fewer than 3 sections"), null;
|
|
872
861
|
try {
|
|
873
|
-
const r =
|
|
862
|
+
const r = Ln(t);
|
|
874
863
|
return r ? JSON.parse(r) : (de("Failed to decode base64 JWT payload"), null);
|
|
875
864
|
} catch (r) {
|
|
876
865
|
return de("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
|
|
877
866
|
}
|
|
878
867
|
}
|
|
879
868
|
function it(n) {
|
|
880
|
-
const e =
|
|
869
|
+
const e = We(n);
|
|
881
870
|
return u(
|
|
882
871
|
e,
|
|
883
872
|
"internal-error"
|
|
@@ -914,10 +903,10 @@ async function re(n, e, t = !1) {
|
|
|
914
903
|
try {
|
|
915
904
|
return await e;
|
|
916
905
|
} catch (i) {
|
|
917
|
-
throw i instanceof Ve &&
|
|
906
|
+
throw i instanceof Ve && Ii(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
|
|
918
907
|
}
|
|
919
908
|
}
|
|
920
|
-
function
|
|
909
|
+
function Ii({ code: n }) {
|
|
921
910
|
return n === "auth/user-disabled" || n === "auth/user-token-expired";
|
|
922
911
|
}
|
|
923
912
|
/**
|
|
@@ -936,7 +925,7 @@ function vi({ code: n }) {
|
|
|
936
925
|
* See the License for the specific language governing permissions and
|
|
937
926
|
* limitations under the License.
|
|
938
927
|
*/
|
|
939
|
-
class
|
|
928
|
+
class yi {
|
|
940
929
|
constructor(e) {
|
|
941
930
|
this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
|
|
942
931
|
}
|
|
@@ -1042,7 +1031,7 @@ async function ve(n) {
|
|
|
1042
1031
|
);
|
|
1043
1032
|
const s = r.users[0];
|
|
1044
1033
|
n._notifyReloadListener(s);
|
|
1045
|
-
const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c =
|
|
1034
|
+
const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = Ti(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
|
|
1046
1035
|
uid: s.localId,
|
|
1047
1036
|
displayName: s.displayName || null,
|
|
1048
1037
|
photoURL: s.photoUrl || null,
|
|
@@ -1056,11 +1045,11 @@ async function ve(n) {
|
|
|
1056
1045
|
};
|
|
1057
1046
|
Object.assign(n, m);
|
|
1058
1047
|
}
|
|
1059
|
-
async function
|
|
1048
|
+
async function wi(n) {
|
|
1060
1049
|
const e = X(n);
|
|
1061
1050
|
await ve(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
1062
1051
|
}
|
|
1063
|
-
function
|
|
1052
|
+
function Ti(n, e) {
|
|
1064
1053
|
return [...n.filter((i) => !e.some((r) => r.providerId === i.providerId)), ...e];
|
|
1065
1054
|
}
|
|
1066
1055
|
function Ut(n) {
|
|
@@ -1092,7 +1081,7 @@ function Ut(n) {
|
|
|
1092
1081
|
* See the License for the specific language governing permissions and
|
|
1093
1082
|
* limitations under the License.
|
|
1094
1083
|
*/
|
|
1095
|
-
async function
|
|
1084
|
+
async function ki(n, e) {
|
|
1096
1085
|
const t = await Nt(n, {}, async () => {
|
|
1097
1086
|
const i = oe({
|
|
1098
1087
|
grant_type: "refresh_token",
|
|
@@ -1113,7 +1102,7 @@ async function Ti(n, e) {
|
|
|
1113
1102
|
refreshToken: t.refresh_token
|
|
1114
1103
|
};
|
|
1115
1104
|
}
|
|
1116
|
-
async function
|
|
1105
|
+
async function bi(n, e) {
|
|
1117
1106
|
return Q(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
|
|
1118
1107
|
}
|
|
1119
1108
|
/**
|
|
@@ -1132,7 +1121,7 @@ async function ki(n, e) {
|
|
|
1132
1121
|
* See the License for the specific language governing permissions and
|
|
1133
1122
|
* limitations under the License.
|
|
1134
1123
|
*/
|
|
1135
|
-
class
|
|
1124
|
+
class K {
|
|
1136
1125
|
constructor() {
|
|
1137
1126
|
this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
|
|
1138
1127
|
}
|
|
@@ -1177,14 +1166,14 @@ class q {
|
|
|
1177
1166
|
this.refreshToken = null;
|
|
1178
1167
|
}
|
|
1179
1168
|
async refresh(e, t) {
|
|
1180
|
-
const { accessToken: i, refreshToken: r, expiresIn: s } = await
|
|
1169
|
+
const { accessToken: i, refreshToken: r, expiresIn: s } = await ki(e, t);
|
|
1181
1170
|
this.updateTokensAndExpiration(i, r, Number(s));
|
|
1182
1171
|
}
|
|
1183
1172
|
updateTokensAndExpiration(e, t, i) {
|
|
1184
1173
|
this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + i * 1e3;
|
|
1185
1174
|
}
|
|
1186
1175
|
static fromJSON(e, t) {
|
|
1187
|
-
const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new
|
|
1176
|
+
const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new K();
|
|
1188
1177
|
return i && (u(typeof i == "string", "internal-error", {
|
|
1189
1178
|
appName: e
|
|
1190
1179
|
}), o.refreshToken = i), r && (u(typeof r == "string", "internal-error", {
|
|
@@ -1204,10 +1193,10 @@ class q {
|
|
|
1204
1193
|
this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
|
|
1205
1194
|
}
|
|
1206
1195
|
_clone() {
|
|
1207
|
-
return Object.assign(new
|
|
1196
|
+
return Object.assign(new K(), this.toJSON());
|
|
1208
1197
|
}
|
|
1209
1198
|
_performRefresh() {
|
|
1210
|
-
return
|
|
1199
|
+
return C("not implemented");
|
|
1211
1200
|
}
|
|
1212
1201
|
}
|
|
1213
1202
|
/**
|
|
@@ -1229,10 +1218,10 @@ class q {
|
|
|
1229
1218
|
function D(n, e) {
|
|
1230
1219
|
u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
|
|
1231
1220
|
}
|
|
1232
|
-
class
|
|
1221
|
+
class N {
|
|
1233
1222
|
constructor(e) {
|
|
1234
1223
|
var { uid: t, auth: i, stsTokenManager: r } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
|
|
1235
|
-
this.providerId = "firebase", this.proactiveRefresh = new
|
|
1224
|
+
this.providerId = "firebase", this.proactiveRefresh = new yi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
|
|
1236
1225
|
}
|
|
1237
1226
|
async getIdToken(e) {
|
|
1238
1227
|
const t = await re(this, this.stsTokenManager.getToken(this.auth, e));
|
|
@@ -1244,10 +1233,10 @@ class C {
|
|
|
1244
1233
|
), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
|
|
1245
1234
|
}
|
|
1246
1235
|
getIdTokenResult(e) {
|
|
1247
|
-
return
|
|
1236
|
+
return vi(this, e);
|
|
1248
1237
|
}
|
|
1249
1238
|
reload() {
|
|
1250
|
-
return
|
|
1239
|
+
return wi(this);
|
|
1251
1240
|
}
|
|
1252
1241
|
_assign(e) {
|
|
1253
1242
|
this !== e && (u(
|
|
@@ -1258,7 +1247,7 @@ class C {
|
|
|
1258
1247
|
), this.displayName = e.displayName, this.photoURL = e.photoURL, this.email = e.email, this.emailVerified = e.emailVerified, this.phoneNumber = e.phoneNumber, this.isAnonymous = e.isAnonymous, this.tenantId = e.tenantId, this.providerData = e.providerData.map((t) => Object.assign({}, t)), this.metadata._copy(e.metadata), this.stsTokenManager._assign(e.stsTokenManager));
|
|
1259
1248
|
}
|
|
1260
1249
|
_clone(e) {
|
|
1261
|
-
const t = new
|
|
1250
|
+
const t = new N(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
|
|
1262
1251
|
return t.metadata._copy(this.metadata), t;
|
|
1263
1252
|
}
|
|
1264
1253
|
_onReload(e) {
|
|
@@ -1286,7 +1275,7 @@ class C {
|
|
|
1286
1275
|
if (A(this.auth.app))
|
|
1287
1276
|
return Promise.reject(H(this.auth));
|
|
1288
1277
|
const e = await this.getIdToken();
|
|
1289
|
-
return await re(this,
|
|
1278
|
+
return await re(this, _i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
1290
1279
|
}
|
|
1291
1280
|
toJSON() {
|
|
1292
1281
|
return Object.assign(Object.assign({
|
|
@@ -1314,20 +1303,20 @@ class C {
|
|
|
1314
1303
|
}
|
|
1315
1304
|
static _fromJSON(e, t) {
|
|
1316
1305
|
var i, r, s, o, c, a, l, d;
|
|
1317
|
-
const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0,
|
|
1306
|
+
const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, v = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, f = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, w = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, h = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, _ = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, b = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: T, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
|
|
1318
1307
|
u(
|
|
1319
|
-
|
|
1308
|
+
T && Ye,
|
|
1320
1309
|
e,
|
|
1321
1310
|
"internal-error"
|
|
1322
1311
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1323
1312
|
);
|
|
1324
|
-
const on =
|
|
1313
|
+
const on = K.fromJSON(this.name, Ye);
|
|
1325
1314
|
u(
|
|
1326
|
-
typeof
|
|
1315
|
+
typeof T == "string",
|
|
1327
1316
|
e,
|
|
1328
1317
|
"internal-error"
|
|
1329
1318
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1330
|
-
), D(m, e.name), D(
|
|
1319
|
+
), D(m, e.name), D(v, e.name), u(
|
|
1331
1320
|
typeof Ke == "boolean",
|
|
1332
1321
|
e,
|
|
1333
1322
|
"internal-error"
|
|
@@ -1337,22 +1326,22 @@ class C {
|
|
|
1337
1326
|
e,
|
|
1338
1327
|
"internal-error"
|
|
1339
1328
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1340
|
-
), D(
|
|
1341
|
-
const
|
|
1342
|
-
uid:
|
|
1329
|
+
), D(y, e.name), D(f, e.name), D(w, e.name), D(h, e.name), D(_, e.name), D(b, e.name);
|
|
1330
|
+
const Pe = new N({
|
|
1331
|
+
uid: T,
|
|
1343
1332
|
auth: e,
|
|
1344
|
-
email:
|
|
1333
|
+
email: v,
|
|
1345
1334
|
emailVerified: Ke,
|
|
1346
1335
|
displayName: m,
|
|
1347
1336
|
isAnonymous: Je,
|
|
1348
|
-
photoURL:
|
|
1349
|
-
phoneNumber:
|
|
1350
|
-
tenantId:
|
|
1337
|
+
photoURL: f,
|
|
1338
|
+
phoneNumber: y,
|
|
1339
|
+
tenantId: w,
|
|
1351
1340
|
stsTokenManager: on,
|
|
1352
|
-
createdAt:
|
|
1353
|
-
lastLoginAt:
|
|
1341
|
+
createdAt: _,
|
|
1342
|
+
lastLoginAt: b
|
|
1354
1343
|
});
|
|
1355
|
-
return Re && Array.isArray(Re) && (
|
|
1344
|
+
return Re && Array.isArray(Re) && (Pe.providerData = Re.map((an) => Object.assign({}, an))), h && (Pe._redirectEventId = h), Pe;
|
|
1356
1345
|
}
|
|
1357
1346
|
/**
|
|
1358
1347
|
* Initialize a User from an idToken server response
|
|
@@ -1360,9 +1349,9 @@ class C {
|
|
|
1360
1349
|
* @param idTokenResponse
|
|
1361
1350
|
*/
|
|
1362
1351
|
static async _fromIdTokenResponse(e, t, i = !1) {
|
|
1363
|
-
const r = new
|
|
1352
|
+
const r = new K();
|
|
1364
1353
|
r.updateFromServerResponse(t);
|
|
1365
|
-
const s = new
|
|
1354
|
+
const s = new N({
|
|
1366
1355
|
uid: t.localId,
|
|
1367
1356
|
auth: e,
|
|
1368
1357
|
stsTokenManager: r,
|
|
@@ -1382,9 +1371,9 @@ class C {
|
|
|
1382
1371
|
"internal-error"
|
|
1383
1372
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1384
1373
|
);
|
|
1385
|
-
const s = r.providerUserInfo !== void 0 ? Ut(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new
|
|
1374
|
+
const s = r.providerUserInfo !== void 0 ? Ut(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new K();
|
|
1386
1375
|
c.updateFromIdToken(i);
|
|
1387
|
-
const a = new
|
|
1376
|
+
const a = new N({
|
|
1388
1377
|
uid: r.localId,
|
|
1389
1378
|
auth: e,
|
|
1390
1379
|
stsTokenManager: c,
|
|
@@ -1421,10 +1410,10 @@ class C {
|
|
|
1421
1410
|
* limitations under the License.
|
|
1422
1411
|
*/
|
|
1423
1412
|
const rt = /* @__PURE__ */ new Map();
|
|
1424
|
-
function
|
|
1425
|
-
|
|
1413
|
+
function O(n) {
|
|
1414
|
+
M(n instanceof Function, "Expected a class definition");
|
|
1426
1415
|
let e = rt.get(n);
|
|
1427
|
-
return e ? (
|
|
1416
|
+
return e ? (M(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), rt.set(n, e), e);
|
|
1428
1417
|
}
|
|
1429
1418
|
/**
|
|
1430
1419
|
* @license
|
|
@@ -1485,7 +1474,7 @@ const st = Dt;
|
|
|
1485
1474
|
function he(n, e, t) {
|
|
1486
1475
|
return `firebase:${n}:${e}:${t}`;
|
|
1487
1476
|
}
|
|
1488
|
-
class
|
|
1477
|
+
class J {
|
|
1489
1478
|
constructor(e, t, i) {
|
|
1490
1479
|
this.persistence = e, this.auth = t, this.userKey = i;
|
|
1491
1480
|
const { config: r, name: s } = this.auth;
|
|
@@ -1496,7 +1485,7 @@ class K {
|
|
|
1496
1485
|
}
|
|
1497
1486
|
async getCurrentUser() {
|
|
1498
1487
|
const e = await this.persistence._get(this.fullUserKey);
|
|
1499
|
-
return e ?
|
|
1488
|
+
return e ? N._fromJSON(this.auth, e) : null;
|
|
1500
1489
|
}
|
|
1501
1490
|
removeCurrentUser() {
|
|
1502
1491
|
return this.persistence._remove(this.fullUserKey);
|
|
@@ -1516,32 +1505,32 @@ class K {
|
|
|
1516
1505
|
}
|
|
1517
1506
|
static async create(e, t, i = "authUser") {
|
|
1518
1507
|
if (!t.length)
|
|
1519
|
-
return new
|
|
1508
|
+
return new J(O(st), e, i);
|
|
1520
1509
|
const r = (await Promise.all(t.map(async (l) => {
|
|
1521
1510
|
if (await l._isAvailable())
|
|
1522
1511
|
return l;
|
|
1523
1512
|
}))).filter((l) => l);
|
|
1524
|
-
let s = r[0] ||
|
|
1513
|
+
let s = r[0] || O(st);
|
|
1525
1514
|
const o = he(i, e.config.apiKey, e.name);
|
|
1526
1515
|
let c = null;
|
|
1527
1516
|
for (const l of t)
|
|
1528
1517
|
try {
|
|
1529
1518
|
const d = await l._get(o);
|
|
1530
1519
|
if (d) {
|
|
1531
|
-
const m =
|
|
1520
|
+
const m = N._fromJSON(e, d);
|
|
1532
1521
|
l !== s && (c = m), s = l;
|
|
1533
1522
|
break;
|
|
1534
1523
|
}
|
|
1535
1524
|
} catch {
|
|
1536
1525
|
}
|
|
1537
1526
|
const a = r.filter((l) => l._shouldAllowMigration);
|
|
1538
|
-
return !s._shouldAllowMigration || !a.length ? new
|
|
1527
|
+
return !s._shouldAllowMigration || !a.length ? new J(s, e, i) : (s = a[0], c && await s._set(o, c.toJSON()), await Promise.all(t.map(async (l) => {
|
|
1539
1528
|
if (l !== s)
|
|
1540
1529
|
try {
|
|
1541
1530
|
await l._remove(o);
|
|
1542
1531
|
} catch {
|
|
1543
1532
|
}
|
|
1544
|
-
})), new
|
|
1533
|
+
})), new J(s, e, i));
|
|
1545
1534
|
}
|
|
1546
1535
|
}
|
|
1547
1536
|
/**
|
|
@@ -1576,9 +1565,9 @@ function ot(n) {
|
|
|
1576
1565
|
return "Silk";
|
|
1577
1566
|
if (Ht(e))
|
|
1578
1567
|
return "Blackberry";
|
|
1579
|
-
if (
|
|
1568
|
+
if (jt(e))
|
|
1580
1569
|
return "Webos";
|
|
1581
|
-
if (
|
|
1570
|
+
if (Be(e))
|
|
1582
1571
|
return "Safari";
|
|
1583
1572
|
if ((e.includes("chrome/") || Ft(e)) && !e.includes("edge/"))
|
|
1584
1573
|
return "Chrome";
|
|
@@ -1591,42 +1580,42 @@ function ot(n) {
|
|
|
1591
1580
|
}
|
|
1592
1581
|
return "Other";
|
|
1593
1582
|
}
|
|
1594
|
-
function xt(n =
|
|
1583
|
+
function xt(n = k()) {
|
|
1595
1584
|
return /firefox\//i.test(n);
|
|
1596
1585
|
}
|
|
1597
|
-
function
|
|
1586
|
+
function Be(n = k()) {
|
|
1598
1587
|
const e = n.toLowerCase();
|
|
1599
1588
|
return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
|
|
1600
1589
|
}
|
|
1601
|
-
function Ft(n =
|
|
1590
|
+
function Ft(n = k()) {
|
|
1602
1591
|
return /crios\//i.test(n);
|
|
1603
1592
|
}
|
|
1604
|
-
function Vt(n =
|
|
1593
|
+
function Vt(n = k()) {
|
|
1605
1594
|
return /iemobile/i.test(n);
|
|
1606
1595
|
}
|
|
1607
|
-
function $t(n =
|
|
1596
|
+
function $t(n = k()) {
|
|
1608
1597
|
return /android/i.test(n);
|
|
1609
1598
|
}
|
|
1610
|
-
function Ht(n =
|
|
1599
|
+
function Ht(n = k()) {
|
|
1611
1600
|
return /blackberry/i.test(n);
|
|
1612
1601
|
}
|
|
1613
|
-
function
|
|
1602
|
+
function jt(n = k()) {
|
|
1614
1603
|
return /webos/i.test(n);
|
|
1615
1604
|
}
|
|
1616
|
-
function ke(n =
|
|
1605
|
+
function ke(n = k()) {
|
|
1617
1606
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
|
1618
1607
|
}
|
|
1619
|
-
function
|
|
1608
|
+
function Ei(n = k()) {
|
|
1620
1609
|
var e;
|
|
1621
1610
|
return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
|
1622
1611
|
}
|
|
1623
|
-
function
|
|
1624
|
-
return
|
|
1612
|
+
function Si() {
|
|
1613
|
+
return Mn() && document.documentMode === 10;
|
|
1625
1614
|
}
|
|
1626
|
-
function
|
|
1627
|
-
return ke(n) || $t(n) ||
|
|
1615
|
+
function Wt(n = k()) {
|
|
1616
|
+
return ke(n) || $t(n) || jt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
|
|
1628
1617
|
}
|
|
1629
|
-
function
|
|
1618
|
+
function Ri() {
|
|
1630
1619
|
try {
|
|
1631
1620
|
return !!(window && window !== window.top);
|
|
1632
1621
|
} catch {
|
|
@@ -1649,14 +1638,14 @@ function Si() {
|
|
|
1649
1638
|
* See the License for the specific language governing permissions and
|
|
1650
1639
|
* limitations under the License.
|
|
1651
1640
|
*/
|
|
1652
|
-
function
|
|
1641
|
+
function Bt(n, e = []) {
|
|
1653
1642
|
let t;
|
|
1654
1643
|
switch (n) {
|
|
1655
1644
|
case "Browser":
|
|
1656
|
-
t = ot(
|
|
1645
|
+
t = ot(k());
|
|
1657
1646
|
break;
|
|
1658
1647
|
case "Worker":
|
|
1659
|
-
t = `${ot(
|
|
1648
|
+
t = `${ot(k())}-${n}`;
|
|
1660
1649
|
break;
|
|
1661
1650
|
default:
|
|
1662
1651
|
t = n;
|
|
@@ -1680,7 +1669,7 @@ function Gt(n, e = []) {
|
|
|
1680
1669
|
* See the License for the specific language governing permissions and
|
|
1681
1670
|
* limitations under the License.
|
|
1682
1671
|
*/
|
|
1683
|
-
class
|
|
1672
|
+
class Pi {
|
|
1684
1673
|
constructor(e) {
|
|
1685
1674
|
this.auth = e, this.queue = [];
|
|
1686
1675
|
}
|
|
@@ -1754,12 +1743,12 @@ async function Ai(n, e = {}) {
|
|
|
1754
1743
|
* See the License for the specific language governing permissions and
|
|
1755
1744
|
* limitations under the License.
|
|
1756
1745
|
*/
|
|
1757
|
-
const
|
|
1758
|
-
class
|
|
1746
|
+
const Ci = 6;
|
|
1747
|
+
class Ni {
|
|
1759
1748
|
constructor(e) {
|
|
1760
1749
|
var t, i, r, s;
|
|
1761
1750
|
const o = e.customStrengthOptions;
|
|
1762
|
-
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t :
|
|
1751
|
+
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Ci, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (r = (i = e.allowedNonAlphanumericCharacters) === null || i === void 0 ? void 0 : i.join("")) !== null && r !== void 0 ? r : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
|
|
1763
1752
|
}
|
|
1764
1753
|
validatePassword(e) {
|
|
1765
1754
|
var t, i, r, s, o, c;
|
|
@@ -1842,14 +1831,14 @@ class Ci {
|
|
|
1842
1831
|
* See the License for the specific language governing permissions and
|
|
1843
1832
|
* limitations under the License.
|
|
1844
1833
|
*/
|
|
1845
|
-
class
|
|
1834
|
+
class Oi {
|
|
1846
1835
|
constructor(e, t, i, r) {
|
|
1847
|
-
this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new
|
|
1836
|
+
this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new Pi(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 = Pt, 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 = r.sdkClientVersion;
|
|
1848
1837
|
}
|
|
1849
1838
|
_initializeWithPersistence(e, t) {
|
|
1850
|
-
return t && (this._popupRedirectResolver =
|
|
1839
|
+
return t && (this._popupRedirectResolver = O(t)), this._initializationPromise = this.queue(async () => {
|
|
1851
1840
|
var i, r;
|
|
1852
|
-
if (!this._deleted && (this.persistenceManager = await
|
|
1841
|
+
if (!this._deleted && (this.persistenceManager = await J.create(this, e), !this._deleted)) {
|
|
1853
1842
|
if (!((i = this._popupRedirectResolver) === null || i === void 0) && i._shouldInitProactively)
|
|
1854
1843
|
try {
|
|
1855
1844
|
await this._popupRedirectResolver._initialize(this);
|
|
@@ -1880,7 +1869,7 @@ class Ni {
|
|
|
1880
1869
|
}
|
|
1881
1870
|
async initializeCurrentUserFromIdToken(e) {
|
|
1882
1871
|
try {
|
|
1883
|
-
const t = await Mt(this, { idToken: e }), i = await
|
|
1872
|
+
const t = await Mt(this, { idToken: e }), i = await N._fromGetAccountInfoResponse(this, t, e);
|
|
1884
1873
|
await this.directlySetCurrentUser(i);
|
|
1885
1874
|
} catch (t) {
|
|
1886
1875
|
console.warn("FirebaseServerApp could not login user with provided authIdToken: ", t), await this.directlySetCurrentUser(null);
|
|
@@ -1938,7 +1927,7 @@ class Ni {
|
|
|
1938
1927
|
return this.directlySetCurrentUser(e);
|
|
1939
1928
|
}
|
|
1940
1929
|
useDeviceLanguage() {
|
|
1941
|
-
this.languageCode =
|
|
1930
|
+
this.languageCode = fi();
|
|
1942
1931
|
}
|
|
1943
1932
|
async _delete() {
|
|
1944
1933
|
this._deleted = !0;
|
|
@@ -1974,7 +1963,7 @@ class Ni {
|
|
|
1974
1963
|
}
|
|
1975
1964
|
setPersistence(e) {
|
|
1976
1965
|
return A(this.app) ? Promise.reject(H(this)) : this.queue(async () => {
|
|
1977
|
-
await this.assertedPersistence.setPersistence(
|
|
1966
|
+
await this.assertedPersistence.setPersistence(O(e));
|
|
1978
1967
|
});
|
|
1979
1968
|
}
|
|
1980
1969
|
_getRecaptchaConfig() {
|
|
@@ -1989,7 +1978,7 @@ class Ni {
|
|
|
1989
1978
|
return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
|
|
1990
1979
|
}
|
|
1991
1980
|
async _updatePasswordPolicy() {
|
|
1992
|
-
const e = await Ai(this), t = new
|
|
1981
|
+
const e = await Ai(this), t = new Ni(e);
|
|
1993
1982
|
this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
|
|
1994
1983
|
}
|
|
1995
1984
|
_getPersistence() {
|
|
@@ -2029,7 +2018,7 @@ class Ni {
|
|
|
2029
2018
|
token: e,
|
|
2030
2019
|
idToken: t
|
|
2031
2020
|
};
|
|
2032
|
-
this.tenantId != null && (i.tenantId = this.tenantId), await
|
|
2021
|
+
this.tenantId != null && (i.tenantId = this.tenantId), await bi(this, i);
|
|
2033
2022
|
}
|
|
2034
2023
|
}
|
|
2035
2024
|
toJSON() {
|
|
@@ -2047,15 +2036,15 @@ class Ni {
|
|
|
2047
2036
|
}
|
|
2048
2037
|
async getOrInitRedirectPersistenceManager(e) {
|
|
2049
2038
|
if (!this.redirectPersistenceManager) {
|
|
2050
|
-
const t = e &&
|
|
2039
|
+
const t = e && O(e) || this._popupRedirectResolver;
|
|
2051
2040
|
u(
|
|
2052
2041
|
t,
|
|
2053
2042
|
this,
|
|
2054
2043
|
"argument-error"
|
|
2055
2044
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
2056
|
-
), this.redirectPersistenceManager = await
|
|
2045
|
+
), this.redirectPersistenceManager = await J.create(
|
|
2057
2046
|
this,
|
|
2058
|
-
[
|
|
2047
|
+
[O(t._redirectPersistence)],
|
|
2059
2048
|
"redirectUser"
|
|
2060
2049
|
/* KeyName.REDIRECT_USER */
|
|
2061
2050
|
), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
|
|
@@ -2142,7 +2131,7 @@ class Ni {
|
|
|
2142
2131
|
), this.persistenceManager;
|
|
2143
2132
|
}
|
|
2144
2133
|
_logFramework(e) {
|
|
2145
|
-
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion =
|
|
2134
|
+
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Bt(this.config.clientPlatform, this._getFrameworks()));
|
|
2146
2135
|
}
|
|
2147
2136
|
_getFrameworks() {
|
|
2148
2137
|
return this.frameworks;
|
|
@@ -2172,7 +2161,7 @@ class Ni {
|
|
|
2172
2161
|
async _getAppCheckToken() {
|
|
2173
2162
|
var e;
|
|
2174
2163
|
const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
|
|
2175
|
-
return t != null && t.error &&
|
|
2164
|
+
return t != null && t.error && ui(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
|
2176
2165
|
}
|
|
2177
2166
|
}
|
|
2178
2167
|
function be(n) {
|
|
@@ -2207,7 +2196,7 @@ class at {
|
|
|
2207
2196
|
* See the License for the specific language governing permissions and
|
|
2208
2197
|
* limitations under the License.
|
|
2209
2198
|
*/
|
|
2210
|
-
let
|
|
2199
|
+
let Ge = {
|
|
2211
2200
|
async loadJS() {
|
|
2212
2201
|
throw new Error("Unable to load external scripts");
|
|
2213
2202
|
},
|
|
@@ -2215,16 +2204,16 @@ let Be = {
|
|
|
2215
2204
|
recaptchaEnterpriseScript: "",
|
|
2216
2205
|
gapiScript: ""
|
|
2217
2206
|
};
|
|
2218
|
-
function Oi(n) {
|
|
2219
|
-
Be = n;
|
|
2220
|
-
}
|
|
2221
2207
|
function Li(n) {
|
|
2222
|
-
|
|
2208
|
+
Ge = n;
|
|
2223
2209
|
}
|
|
2224
|
-
function Mi() {
|
|
2225
|
-
return
|
|
2210
|
+
function Mi(n) {
|
|
2211
|
+
return Ge.loadJS(n);
|
|
2226
2212
|
}
|
|
2227
|
-
function Ui(
|
|
2213
|
+
function Ui() {
|
|
2214
|
+
return Ge.gapiScript;
|
|
2215
|
+
}
|
|
2216
|
+
function Di(n) {
|
|
2228
2217
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
|
2229
2218
|
}
|
|
2230
2219
|
/**
|
|
@@ -2243,13 +2232,13 @@ function Ui(n) {
|
|
|
2243
2232
|
* See the License for the specific language governing permissions and
|
|
2244
2233
|
* limitations under the License.
|
|
2245
2234
|
*/
|
|
2246
|
-
function
|
|
2235
|
+
function xi(n, e) {
|
|
2247
2236
|
const t = bt(n, "auth");
|
|
2248
2237
|
if (t.isInitialized()) {
|
|
2249
2238
|
const r = t.getImmediate(), s = t.getOptions();
|
|
2250
|
-
if (
|
|
2239
|
+
if (On(s, e ?? {}))
|
|
2251
2240
|
return r;
|
|
2252
|
-
|
|
2241
|
+
L(
|
|
2253
2242
|
r,
|
|
2254
2243
|
"already-initialized"
|
|
2255
2244
|
/* AuthErrorCode.ALREADY_INITIALIZED */
|
|
@@ -2257,11 +2246,11 @@ function Di(n, e) {
|
|
|
2257
2246
|
}
|
|
2258
2247
|
return t.initialize({ options: e });
|
|
2259
2248
|
}
|
|
2260
|
-
function
|
|
2261
|
-
const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(
|
|
2249
|
+
function Fi(n, e) {
|
|
2250
|
+
const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(O);
|
|
2262
2251
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
|
|
2263
2252
|
}
|
|
2264
|
-
function
|
|
2253
|
+
function Vi(n, e, t) {
|
|
2265
2254
|
const i = be(n);
|
|
2266
2255
|
u(
|
|
2267
2256
|
i._canInitEmulator,
|
|
@@ -2274,20 +2263,20 @@ function Fi(n, e, t) {
|
|
|
2274
2263
|
"invalid-emulator-scheme"
|
|
2275
2264
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
|
2276
2265
|
);
|
|
2277
|
-
const r = !1, s =
|
|
2266
|
+
const r = !1, s = Gt(e), { host: o, port: c } = $i(e), a = c === null ? "" : `:${c}`;
|
|
2278
2267
|
i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
|
|
2279
2268
|
host: o,
|
|
2280
2269
|
port: c,
|
|
2281
2270
|
protocol: s.replace(":", ""),
|
|
2282
2271
|
options: Object.freeze({ disableWarnings: r })
|
|
2283
|
-
}),
|
|
2272
|
+
}), Hi();
|
|
2284
2273
|
}
|
|
2285
|
-
function
|
|
2274
|
+
function Gt(n) {
|
|
2286
2275
|
const e = n.indexOf(":");
|
|
2287
2276
|
return e < 0 ? "" : n.substr(0, e + 1);
|
|
2288
2277
|
}
|
|
2289
|
-
function
|
|
2290
|
-
const e =
|
|
2278
|
+
function $i(n) {
|
|
2279
|
+
const e = Gt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
|
2291
2280
|
if (!t)
|
|
2292
2281
|
return { host: "", port: null };
|
|
2293
2282
|
const i = t[2].split("@").pop() || "", r = /^(\[[^\]]+\])(:|$)/.exec(i);
|
|
@@ -2305,7 +2294,7 @@ function ct(n) {
|
|
|
2305
2294
|
const e = Number(n);
|
|
2306
2295
|
return isNaN(e) ? null : e;
|
|
2307
2296
|
}
|
|
2308
|
-
function
|
|
2297
|
+
function Hi() {
|
|
2309
2298
|
function n() {
|
|
2310
2299
|
const e = document.createElement("p"), t = e.style;
|
|
2311
2300
|
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);
|
|
@@ -2339,19 +2328,19 @@ class zt {
|
|
|
2339
2328
|
* @returns a JSON-serializable representation of this object.
|
|
2340
2329
|
*/
|
|
2341
2330
|
toJSON() {
|
|
2342
|
-
return
|
|
2331
|
+
return C("not implemented");
|
|
2343
2332
|
}
|
|
2344
2333
|
/** @internal */
|
|
2345
2334
|
_getIdTokenResponse(e) {
|
|
2346
|
-
return
|
|
2335
|
+
return C("not implemented");
|
|
2347
2336
|
}
|
|
2348
2337
|
/** @internal */
|
|
2349
2338
|
_linkToIdToken(e, t) {
|
|
2350
|
-
return
|
|
2339
|
+
return C("not implemented");
|
|
2351
2340
|
}
|
|
2352
2341
|
/** @internal */
|
|
2353
2342
|
_getReauthenticationResolver(e) {
|
|
2354
|
-
return
|
|
2343
|
+
return C("not implemented");
|
|
2355
2344
|
}
|
|
2356
2345
|
}
|
|
2357
2346
|
/**
|
|
@@ -2370,7 +2359,7 @@ class zt {
|
|
|
2370
2359
|
* See the License for the specific language governing permissions and
|
|
2371
2360
|
* limitations under the License.
|
|
2372
2361
|
*/
|
|
2373
|
-
async function
|
|
2362
|
+
async function Y(n, e) {
|
|
2374
2363
|
return Ot(n, "POST", "/v1/accounts:signInWithIdp", Te(n, e));
|
|
2375
2364
|
}
|
|
2376
2365
|
/**
|
|
@@ -2389,7 +2378,7 @@ async function J(n, e) {
|
|
|
2389
2378
|
* See the License for the specific language governing permissions and
|
|
2390
2379
|
* limitations under the License.
|
|
2391
2380
|
*/
|
|
2392
|
-
const
|
|
2381
|
+
const ji = "http://localhost";
|
|
2393
2382
|
class G extends zt {
|
|
2394
2383
|
constructor() {
|
|
2395
2384
|
super(...arguments), this.pendingToken = null;
|
|
@@ -2397,7 +2386,7 @@ class G extends zt {
|
|
|
2397
2386
|
/** @internal */
|
|
2398
2387
|
static _fromParams(e) {
|
|
2399
2388
|
const t = new G(e.providerId, e.signInMethod);
|
|
2400
|
-
return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) :
|
|
2389
|
+
return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : L(
|
|
2401
2390
|
"argument-error"
|
|
2402
2391
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
2403
2392
|
), t;
|
|
@@ -2433,21 +2422,21 @@ class G extends zt {
|
|
|
2433
2422
|
/** @internal */
|
|
2434
2423
|
_getIdTokenResponse(e) {
|
|
2435
2424
|
const t = this.buildRequest();
|
|
2436
|
-
return
|
|
2425
|
+
return Y(e, t);
|
|
2437
2426
|
}
|
|
2438
2427
|
/** @internal */
|
|
2439
2428
|
_linkToIdToken(e, t) {
|
|
2440
2429
|
const i = this.buildRequest();
|
|
2441
|
-
return i.idToken = t,
|
|
2430
|
+
return i.idToken = t, Y(e, i);
|
|
2442
2431
|
}
|
|
2443
2432
|
/** @internal */
|
|
2444
2433
|
_getReauthenticationResolver(e) {
|
|
2445
2434
|
const t = this.buildRequest();
|
|
2446
|
-
return t.autoCreate = !1,
|
|
2435
|
+
return t.autoCreate = !1, Y(e, t);
|
|
2447
2436
|
}
|
|
2448
2437
|
buildRequest() {
|
|
2449
2438
|
const e = {
|
|
2450
|
-
requestUri:
|
|
2439
|
+
requestUri: ji,
|
|
2451
2440
|
returnSecureToken: !0
|
|
2452
2441
|
};
|
|
2453
2442
|
if (this.pendingToken)
|
|
@@ -2843,13 +2832,13 @@ $.PROVIDER_ID = "twitter.com";
|
|
|
2843
2832
|
* See the License for the specific language governing permissions and
|
|
2844
2833
|
* limitations under the License.
|
|
2845
2834
|
*/
|
|
2846
|
-
class
|
|
2835
|
+
class z {
|
|
2847
2836
|
constructor(e) {
|
|
2848
2837
|
this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
|
|
2849
2838
|
}
|
|
2850
2839
|
static async _fromIdTokenResponse(e, t, i, r = !1) {
|
|
2851
|
-
const s = await
|
|
2852
|
-
return new
|
|
2840
|
+
const s = await N._fromIdTokenResponse(e, i, r), o = lt(i);
|
|
2841
|
+
return new z({
|
|
2853
2842
|
user: s,
|
|
2854
2843
|
providerId: o,
|
|
2855
2844
|
_tokenResponse: i,
|
|
@@ -2863,7 +2852,7 @@ class B {
|
|
|
2863
2852
|
!0
|
|
2864
2853
|
);
|
|
2865
2854
|
const r = lt(i);
|
|
2866
|
-
return new
|
|
2855
|
+
return new z({
|
|
2867
2856
|
user: e,
|
|
2868
2857
|
providerId: r,
|
|
2869
2858
|
_tokenResponse: i,
|
|
@@ -2911,7 +2900,7 @@ function Kt(n, e, t, i) {
|
|
|
2911
2900
|
}
|
|
2912
2901
|
async function Wi(n, e, t = !1) {
|
|
2913
2902
|
const i = await re(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
|
|
2914
|
-
return
|
|
2903
|
+
return z._forOperation(n, "link", i);
|
|
2915
2904
|
}
|
|
2916
2905
|
/**
|
|
2917
2906
|
* @license
|
|
@@ -2929,7 +2918,7 @@ async function Wi(n, e, t = !1) {
|
|
|
2929
2918
|
* See the License for the specific language governing permissions and
|
|
2930
2919
|
* limitations under the License.
|
|
2931
2920
|
*/
|
|
2932
|
-
async function
|
|
2921
|
+
async function Bi(n, e, t = !1) {
|
|
2933
2922
|
const { auth: i } = n;
|
|
2934
2923
|
if (A(i.app))
|
|
2935
2924
|
return Promise.reject(H(i));
|
|
@@ -2942,7 +2931,7 @@ async function ji(n, e, t = !1) {
|
|
|
2942
2931
|
"internal-error"
|
|
2943
2932
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
2944
2933
|
);
|
|
2945
|
-
const o =
|
|
2934
|
+
const o = We(s.idToken);
|
|
2946
2935
|
u(
|
|
2947
2936
|
o,
|
|
2948
2937
|
i,
|
|
@@ -2955,9 +2944,9 @@ async function ji(n, e, t = !1) {
|
|
|
2955
2944
|
i,
|
|
2956
2945
|
"user-mismatch"
|
|
2957
2946
|
/* AuthErrorCode.USER_MISMATCH */
|
|
2958
|
-
),
|
|
2947
|
+
), z._forOperation(n, r, s);
|
|
2959
2948
|
} catch (s) {
|
|
2960
|
-
throw (s == null ? void 0 : s.code) === "auth/user-not-found" &&
|
|
2949
|
+
throw (s == null ? void 0 : s.code) === "auth/user-not-found" && L(
|
|
2961
2950
|
i,
|
|
2962
2951
|
"user-mismatch"
|
|
2963
2952
|
/* AuthErrorCode.USER_MISMATCH */
|
|
@@ -2983,7 +2972,7 @@ async function ji(n, e, t = !1) {
|
|
|
2983
2972
|
async function Gi(n, e, t = !1) {
|
|
2984
2973
|
if (A(n.app))
|
|
2985
2974
|
return Promise.reject(H(n));
|
|
2986
|
-
const i = "signIn", r = await Kt(n, i, e), s = await
|
|
2975
|
+
const i = "signIn", r = await Kt(n, i, e), s = await z._fromIdTokenResponse(n, i, r);
|
|
2987
2976
|
return t || await n._updateCurrentUser(s.user), s;
|
|
2988
2977
|
}
|
|
2989
2978
|
/**
|
|
@@ -3002,7 +2991,7 @@ async function Gi(n, e, t = !1) {
|
|
|
3002
2991
|
* See the License for the specific language governing permissions and
|
|
3003
2992
|
* limitations under the License.
|
|
3004
2993
|
*/
|
|
3005
|
-
async function
|
|
2994
|
+
async function zi(n, e) {
|
|
3006
2995
|
return Ot(n, "POST", "/v1/accounts:signInWithCustomToken", Te(n, e));
|
|
3007
2996
|
}
|
|
3008
2997
|
/**
|
|
@@ -3021,19 +3010,19 @@ async function Bi(n, e) {
|
|
|
3021
3010
|
* See the License for the specific language governing permissions and
|
|
3022
3011
|
* limitations under the License.
|
|
3023
3012
|
*/
|
|
3024
|
-
async function
|
|
3013
|
+
async function qi(n, e) {
|
|
3025
3014
|
if (A(n.app))
|
|
3026
3015
|
return Promise.reject(H(n));
|
|
3027
|
-
const t = be(n), i = await
|
|
3016
|
+
const t = be(n), i = await zi(t, {
|
|
3028
3017
|
token: e,
|
|
3029
3018
|
returnSecureToken: !0
|
|
3030
|
-
}), r = await
|
|
3019
|
+
}), r = await z._fromIdTokenResponse(t, "signIn", i);
|
|
3031
3020
|
return await t._updateCurrentUser(r.user), r;
|
|
3032
3021
|
}
|
|
3033
|
-
function
|
|
3022
|
+
function Ki(n, e, t, i) {
|
|
3034
3023
|
return X(n).onIdTokenChanged(e, t, i);
|
|
3035
3024
|
}
|
|
3036
|
-
function
|
|
3025
|
+
function Ji(n, e, t) {
|
|
3037
3026
|
return X(n).beforeAuthStateChanged(e, t);
|
|
3038
3027
|
}
|
|
3039
3028
|
const ye = "__sak";
|
|
@@ -3094,18 +3083,18 @@ class Jt {
|
|
|
3094
3083
|
* See the License for the specific language governing permissions and
|
|
3095
3084
|
* limitations under the License.
|
|
3096
3085
|
*/
|
|
3097
|
-
function
|
|
3098
|
-
const n =
|
|
3099
|
-
return
|
|
3086
|
+
function Yi() {
|
|
3087
|
+
const n = k();
|
|
3088
|
+
return Be(n) || ke(n);
|
|
3100
3089
|
}
|
|
3101
|
-
const
|
|
3090
|
+
const Xi = 1e3, Qi = 10;
|
|
3102
3091
|
class Yt extends Jt {
|
|
3103
3092
|
constructor() {
|
|
3104
3093
|
super(
|
|
3105
3094
|
() => window.localStorage,
|
|
3106
3095
|
"LOCAL"
|
|
3107
3096
|
/* PersistenceType.LOCAL */
|
|
3108
|
-
), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced =
|
|
3097
|
+
), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Yi() && Ri(), this.fallbackToPolling = Wt(), this._shouldAllowMigration = !0;
|
|
3109
3098
|
}
|
|
3110
3099
|
forAllChangedKeys(e) {
|
|
3111
3100
|
for (const t of Object.keys(this.listeners)) {
|
|
@@ -3132,7 +3121,7 @@ class Yt extends Jt {
|
|
|
3132
3121
|
const o = this.storage.getItem(i);
|
|
3133
3122
|
!t && this.localCache[i] === o || this.notifyListeners(i, o);
|
|
3134
3123
|
}, s = this.storage.getItem(i);
|
|
3135
|
-
|
|
3124
|
+
Si() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Qi) : r();
|
|
3136
3125
|
}
|
|
3137
3126
|
notifyListeners(e, t) {
|
|
3138
3127
|
this.localCache[e] = t;
|
|
@@ -3154,7 +3143,7 @@ class Yt extends Jt {
|
|
|
3154
3143
|
!0
|
|
3155
3144
|
);
|
|
3156
3145
|
});
|
|
3157
|
-
},
|
|
3146
|
+
}, Xi);
|
|
3158
3147
|
}
|
|
3159
3148
|
stopPolling() {
|
|
3160
3149
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -3184,7 +3173,7 @@ class Yt extends Jt {
|
|
|
3184
3173
|
}
|
|
3185
3174
|
}
|
|
3186
3175
|
Yt.type = "LOCAL";
|
|
3187
|
-
const
|
|
3176
|
+
const Zi = Yt;
|
|
3188
3177
|
/**
|
|
3189
3178
|
* @license
|
|
3190
3179
|
* Copyright 2020 Google LLC
|
|
@@ -3232,7 +3221,7 @@ const Qt = Xt;
|
|
|
3232
3221
|
* See the License for the specific language governing permissions and
|
|
3233
3222
|
* limitations under the License.
|
|
3234
3223
|
*/
|
|
3235
|
-
function
|
|
3224
|
+
function er(n) {
|
|
3236
3225
|
return Promise.all(n.map(async (e) => {
|
|
3237
3226
|
try {
|
|
3238
3227
|
return {
|
|
@@ -3302,7 +3291,7 @@ class Ee {
|
|
|
3302
3291
|
eventId: i,
|
|
3303
3292
|
eventType: r
|
|
3304
3293
|
});
|
|
3305
|
-
const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await
|
|
3294
|
+
const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await er(c);
|
|
3306
3295
|
t.ports[0].postMessage({
|
|
3307
3296
|
status: "done",
|
|
3308
3297
|
eventId: i,
|
|
@@ -3370,7 +3359,7 @@ function ze(n = "", e = 10) {
|
|
|
3370
3359
|
* See the License for the specific language governing permissions and
|
|
3371
3360
|
* limitations under the License.
|
|
3372
3361
|
*/
|
|
3373
|
-
class
|
|
3362
|
+
class tr {
|
|
3374
3363
|
constructor(e) {
|
|
3375
3364
|
this.target = e, this.handlers = /* @__PURE__ */ new Set();
|
|
3376
3365
|
}
|
|
@@ -3415,9 +3404,9 @@ class er {
|
|
|
3415
3404
|
o = {
|
|
3416
3405
|
messageChannel: r,
|
|
3417
3406
|
onMessage(m) {
|
|
3418
|
-
const
|
|
3419
|
-
if (
|
|
3420
|
-
switch (
|
|
3407
|
+
const v = m;
|
|
3408
|
+
if (v.data.eventId === l)
|
|
3409
|
+
switch (v.data.status) {
|
|
3421
3410
|
case "ack":
|
|
3422
3411
|
clearTimeout(d), s = setTimeout(
|
|
3423
3412
|
() => {
|
|
@@ -3431,7 +3420,7 @@ class er {
|
|
|
3431
3420
|
);
|
|
3432
3421
|
break;
|
|
3433
3422
|
case "done":
|
|
3434
|
-
clearTimeout(s), c(
|
|
3423
|
+
clearTimeout(s), c(v.data.response);
|
|
3435
3424
|
break;
|
|
3436
3425
|
default:
|
|
3437
3426
|
clearTimeout(d), clearTimeout(s), a(new Error(
|
|
@@ -3467,11 +3456,11 @@ class er {
|
|
|
3467
3456
|
* See the License for the specific language governing permissions and
|
|
3468
3457
|
* limitations under the License.
|
|
3469
3458
|
*/
|
|
3470
|
-
function
|
|
3459
|
+
function S() {
|
|
3471
3460
|
return window;
|
|
3472
3461
|
}
|
|
3473
|
-
function
|
|
3474
|
-
|
|
3462
|
+
function nr(n) {
|
|
3463
|
+
S().location.href = n;
|
|
3475
3464
|
}
|
|
3476
3465
|
/**
|
|
3477
3466
|
* @license
|
|
@@ -3490,9 +3479,9 @@ function tr(n) {
|
|
|
3490
3479
|
* limitations under the License.
|
|
3491
3480
|
*/
|
|
3492
3481
|
function Zt() {
|
|
3493
|
-
return typeof
|
|
3482
|
+
return typeof S().WorkerGlobalScope < "u" && typeof S().importScripts == "function";
|
|
3494
3483
|
}
|
|
3495
|
-
async function
|
|
3484
|
+
async function ir() {
|
|
3496
3485
|
if (!(navigator != null && navigator.serviceWorker))
|
|
3497
3486
|
return null;
|
|
3498
3487
|
try {
|
|
@@ -3501,11 +3490,11 @@ async function nr() {
|
|
|
3501
3490
|
return null;
|
|
3502
3491
|
}
|
|
3503
3492
|
}
|
|
3504
|
-
function
|
|
3493
|
+
function rr() {
|
|
3505
3494
|
var n;
|
|
3506
3495
|
return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
|
|
3507
3496
|
}
|
|
3508
|
-
function
|
|
3497
|
+
function sr() {
|
|
3509
3498
|
return Zt() ? self : null;
|
|
3510
3499
|
}
|
|
3511
3500
|
/**
|
|
@@ -3524,7 +3513,7 @@ function rr() {
|
|
|
3524
3513
|
* See the License for the specific language governing permissions and
|
|
3525
3514
|
* limitations under the License.
|
|
3526
3515
|
*/
|
|
3527
|
-
const en = "firebaseLocalStorageDb",
|
|
3516
|
+
const en = "firebaseLocalStorageDb", or = 1, we = "firebaseLocalStorage", tn = "fbase_key";
|
|
3528
3517
|
class le {
|
|
3529
3518
|
constructor(e) {
|
|
3530
3519
|
this.request = e;
|
|
@@ -3542,12 +3531,12 @@ class le {
|
|
|
3542
3531
|
function Se(n, e) {
|
|
3543
3532
|
return n.transaction([we], e ? "readwrite" : "readonly").objectStore(we);
|
|
3544
3533
|
}
|
|
3545
|
-
function
|
|
3534
|
+
function ar() {
|
|
3546
3535
|
const n = indexedDB.deleteDatabase(en);
|
|
3547
3536
|
return new le(n).toPromise();
|
|
3548
3537
|
}
|
|
3549
3538
|
function De() {
|
|
3550
|
-
const n = indexedDB.open(en,
|
|
3539
|
+
const n = indexedDB.open(en, or);
|
|
3551
3540
|
return new Promise((e, t) => {
|
|
3552
3541
|
n.addEventListener("error", () => {
|
|
3553
3542
|
t(n.error);
|
|
@@ -3560,7 +3549,7 @@ function De() {
|
|
|
3560
3549
|
}
|
|
3561
3550
|
}), n.addEventListener("success", async () => {
|
|
3562
3551
|
const i = n.result;
|
|
3563
|
-
i.objectStoreNames.contains(we) ? e(i) : (i.close(), await
|
|
3552
|
+
i.objectStoreNames.contains(we) ? e(i) : (i.close(), await ar(), e(await De()));
|
|
3564
3553
|
});
|
|
3565
3554
|
});
|
|
3566
3555
|
}
|
|
@@ -3571,7 +3560,7 @@ async function ut(n, e, t) {
|
|
|
3571
3560
|
});
|
|
3572
3561
|
return new le(i).toPromise();
|
|
3573
3562
|
}
|
|
3574
|
-
async function
|
|
3563
|
+
async function cr(n, e) {
|
|
3575
3564
|
const t = Se(n, !1).get(e), i = await new le(t).toPromise();
|
|
3576
3565
|
return i === void 0 ? null : i.value;
|
|
3577
3566
|
}
|
|
@@ -3579,7 +3568,7 @@ function dt(n, e) {
|
|
|
3579
3568
|
const t = Se(n, !0).delete(e);
|
|
3580
3569
|
return new le(t).toPromise();
|
|
3581
3570
|
}
|
|
3582
|
-
const
|
|
3571
|
+
const lr = 800, ur = 3;
|
|
3583
3572
|
class nn {
|
|
3584
3573
|
constructor() {
|
|
3585
3574
|
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(() => {
|
|
@@ -3596,7 +3585,7 @@ class nn {
|
|
|
3596
3585
|
const i = await this._openDb();
|
|
3597
3586
|
return await e(i);
|
|
3598
3587
|
} catch (i) {
|
|
3599
|
-
if (t++ >
|
|
3588
|
+
if (t++ > ur)
|
|
3600
3589
|
throw i;
|
|
3601
3590
|
this.db && (this.db.close(), this.db = void 0);
|
|
3602
3591
|
}
|
|
@@ -3612,7 +3601,7 @@ class nn {
|
|
|
3612
3601
|
* As the worker we should listen to events from the main window.
|
|
3613
3602
|
*/
|
|
3614
3603
|
async initializeReceiver() {
|
|
3615
|
-
this.receiver = Ee._getInstance(
|
|
3604
|
+
this.receiver = Ee._getInstance(sr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
|
3616
3605
|
keyProcessed: (await this._poll()).includes(t.key)
|
|
3617
3606
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
|
3618
3607
|
"keyChanged"
|
|
@@ -3628,9 +3617,9 @@ class nn {
|
|
|
3628
3617
|
*/
|
|
3629
3618
|
async initializeSender() {
|
|
3630
3619
|
var e, t;
|
|
3631
|
-
if (this.activeServiceWorker = await
|
|
3620
|
+
if (this.activeServiceWorker = await ir(), !this.activeServiceWorker)
|
|
3632
3621
|
return;
|
|
3633
|
-
this.sender = new
|
|
3622
|
+
this.sender = new tr(this.activeServiceWorker);
|
|
3634
3623
|
const i = await this.sender._send(
|
|
3635
3624
|
"ping",
|
|
3636
3625
|
{},
|
|
@@ -3652,7 +3641,7 @@ class nn {
|
|
|
3652
3641
|
* @param key - Storage key which changed.
|
|
3653
3642
|
*/
|
|
3654
3643
|
async notifyServiceWorker(e) {
|
|
3655
|
-
if (!(!this.sender || !this.activeServiceWorker ||
|
|
3644
|
+
if (!(!this.sender || !this.activeServiceWorker || rr() !== this.activeServiceWorker))
|
|
3656
3645
|
try {
|
|
3657
3646
|
await this.sender._send(
|
|
3658
3647
|
"keyChanged",
|
|
@@ -3686,7 +3675,7 @@ class nn {
|
|
|
3686
3675
|
return this._withPendingWrite(async () => (await this._withRetries((i) => ut(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
|
|
3687
3676
|
}
|
|
3688
3677
|
async _get(e) {
|
|
3689
|
-
const t = await this._withRetries((i) =>
|
|
3678
|
+
const t = await this._withRetries((i) => cr(i, e));
|
|
3690
3679
|
return this.localCache[e] = t, t;
|
|
3691
3680
|
}
|
|
3692
3681
|
async _remove(e) {
|
|
@@ -3717,7 +3706,7 @@ class nn {
|
|
|
3717
3706
|
r(t);
|
|
3718
3707
|
}
|
|
3719
3708
|
startPolling() {
|
|
3720
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
|
3709
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), lr);
|
|
3721
3710
|
}
|
|
3722
3711
|
stopPolling() {
|
|
3723
3712
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -3730,7 +3719,7 @@ class nn {
|
|
|
3730
3719
|
}
|
|
3731
3720
|
}
|
|
3732
3721
|
nn.type = "LOCAL";
|
|
3733
|
-
const
|
|
3722
|
+
const dr = nn;
|
|
3734
3723
|
new ae(3e4, 6e4);
|
|
3735
3724
|
/**
|
|
3736
3725
|
* @license
|
|
@@ -3748,8 +3737,8 @@ new ae(3e4, 6e4);
|
|
|
3748
3737
|
* See the License for the specific language governing permissions and
|
|
3749
3738
|
* limitations under the License.
|
|
3750
3739
|
*/
|
|
3751
|
-
function
|
|
3752
|
-
return e ?
|
|
3740
|
+
function hr(n, e) {
|
|
3741
|
+
return e ? O(e) : (u(
|
|
3753
3742
|
n._popupRedirectResolver,
|
|
3754
3743
|
n,
|
|
3755
3744
|
"argument-error"
|
|
@@ -3781,13 +3770,13 @@ class qe extends zt {
|
|
|
3781
3770
|
), this.params = e;
|
|
3782
3771
|
}
|
|
3783
3772
|
_getIdTokenResponse(e) {
|
|
3784
|
-
return
|
|
3773
|
+
return Y(e, this._buildIdpRequest());
|
|
3785
3774
|
}
|
|
3786
3775
|
_linkToIdToken(e, t) {
|
|
3787
|
-
return
|
|
3776
|
+
return Y(e, this._buildIdpRequest(t));
|
|
3788
3777
|
}
|
|
3789
3778
|
_getReauthenticationResolver(e) {
|
|
3790
|
-
return
|
|
3779
|
+
return Y(e, this._buildIdpRequest());
|
|
3791
3780
|
}
|
|
3792
3781
|
_buildIdpRequest(e) {
|
|
3793
3782
|
const t = {
|
|
@@ -3802,19 +3791,19 @@ class qe extends zt {
|
|
|
3802
3791
|
return e && (t.idToken = e), t;
|
|
3803
3792
|
}
|
|
3804
3793
|
}
|
|
3805
|
-
function
|
|
3794
|
+
function fr(n) {
|
|
3806
3795
|
return Gi(n.auth, new qe(n), n.bypassAuthState);
|
|
3807
3796
|
}
|
|
3808
|
-
function
|
|
3797
|
+
function pr(n) {
|
|
3809
3798
|
const { auth: e, user: t } = n;
|
|
3810
3799
|
return u(
|
|
3811
3800
|
t,
|
|
3812
3801
|
e,
|
|
3813
3802
|
"internal-error"
|
|
3814
3803
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3815
|
-
),
|
|
3804
|
+
), Bi(t, new qe(n), n.bypassAuthState);
|
|
3816
3805
|
}
|
|
3817
|
-
async function
|
|
3806
|
+
async function mr(n) {
|
|
3818
3807
|
const { auth: e, user: t } = n;
|
|
3819
3808
|
return u(
|
|
3820
3809
|
t,
|
|
@@ -3881,15 +3870,15 @@ class rn {
|
|
|
3881
3870
|
switch (e) {
|
|
3882
3871
|
case "signInViaPopup":
|
|
3883
3872
|
case "signInViaRedirect":
|
|
3884
|
-
return
|
|
3873
|
+
return fr;
|
|
3885
3874
|
case "linkViaPopup":
|
|
3886
3875
|
case "linkViaRedirect":
|
|
3887
|
-
return
|
|
3876
|
+
return mr;
|
|
3888
3877
|
case "reauthViaPopup":
|
|
3889
3878
|
case "reauthViaRedirect":
|
|
3890
|
-
return
|
|
3879
|
+
return pr;
|
|
3891
3880
|
default:
|
|
3892
|
-
|
|
3881
|
+
L(
|
|
3893
3882
|
this.auth,
|
|
3894
3883
|
"internal-error"
|
|
3895
3884
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -3897,10 +3886,10 @@ class rn {
|
|
|
3897
3886
|
}
|
|
3898
3887
|
}
|
|
3899
3888
|
resolve(e) {
|
|
3900
|
-
|
|
3889
|
+
M(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
|
|
3901
3890
|
}
|
|
3902
3891
|
reject(e) {
|
|
3903
|
-
|
|
3892
|
+
M(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
|
|
3904
3893
|
}
|
|
3905
3894
|
unregisterAndCleanUp() {
|
|
3906
3895
|
this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
|
|
@@ -3922,10 +3911,10 @@ class rn {
|
|
|
3922
3911
|
* See the License for the specific language governing permissions and
|
|
3923
3912
|
* limitations under the License.
|
|
3924
3913
|
*/
|
|
3925
|
-
const
|
|
3926
|
-
class
|
|
3914
|
+
const gr = new ae(2e3, 1e4);
|
|
3915
|
+
class q extends rn {
|
|
3927
3916
|
constructor(e, t, i, r, s) {
|
|
3928
|
-
super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null,
|
|
3917
|
+
super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, q.currentPopupAction && q.currentPopupAction.cancel(), q.currentPopupAction = this;
|
|
3929
3918
|
}
|
|
3930
3919
|
async executeNotNull() {
|
|
3931
3920
|
const e = await this.execute();
|
|
@@ -3937,7 +3926,7 @@ class z extends rn {
|
|
|
3937
3926
|
), e;
|
|
3938
3927
|
}
|
|
3939
3928
|
async onExecution() {
|
|
3940
|
-
|
|
3929
|
+
M(this.filter.length === 1, "Popup operations only handle one event");
|
|
3941
3930
|
const e = ze();
|
|
3942
3931
|
this.authWindow = await this.resolver._openPopup(
|
|
3943
3932
|
this.auth,
|
|
@@ -3948,7 +3937,7 @@ class z extends rn {
|
|
|
3948
3937
|
), this.authWindow.associatedEvent = e, this.resolver._originValidation(this.auth).catch((t) => {
|
|
3949
3938
|
this.reject(t);
|
|
3950
3939
|
}), this.resolver._isIframeWebStorageSupported(this.auth, (t) => {
|
|
3951
|
-
t || this.reject(
|
|
3940
|
+
t || this.reject(E(
|
|
3952
3941
|
this.auth,
|
|
3953
3942
|
"web-storage-unsupported"
|
|
3954
3943
|
/* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
|
|
@@ -3960,14 +3949,14 @@ class z extends rn {
|
|
|
3960
3949
|
return ((e = this.authWindow) === null || e === void 0 ? void 0 : e.associatedEvent) || null;
|
|
3961
3950
|
}
|
|
3962
3951
|
cancel() {
|
|
3963
|
-
this.reject(
|
|
3952
|
+
this.reject(E(
|
|
3964
3953
|
this.auth,
|
|
3965
3954
|
"cancelled-popup-request"
|
|
3966
3955
|
/* AuthErrorCode.EXPIRED_POPUP_REQUEST */
|
|
3967
3956
|
));
|
|
3968
3957
|
}
|
|
3969
3958
|
cleanUp() {
|
|
3970
|
-
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null,
|
|
3959
|
+
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, q.currentPopupAction = null;
|
|
3971
3960
|
}
|
|
3972
3961
|
pollUserCancellation() {
|
|
3973
3962
|
const e = () => {
|
|
@@ -3975,7 +3964,7 @@ class z extends rn {
|
|
|
3975
3964
|
if (!((i = (t = this.authWindow) === null || t === void 0 ? void 0 : t.window) === null || i === void 0) && i.closed) {
|
|
3976
3965
|
this.pollId = window.setTimeout(
|
|
3977
3966
|
() => {
|
|
3978
|
-
this.pollId = null, this.reject(
|
|
3967
|
+
this.pollId = null, this.reject(E(
|
|
3979
3968
|
this.auth,
|
|
3980
3969
|
"popup-closed-by-user"
|
|
3981
3970
|
/* AuthErrorCode.POPUP_CLOSED_BY_USER */
|
|
@@ -3986,12 +3975,12 @@ class z extends rn {
|
|
|
3986
3975
|
);
|
|
3987
3976
|
return;
|
|
3988
3977
|
}
|
|
3989
|
-
this.pollId = window.setTimeout(e,
|
|
3978
|
+
this.pollId = window.setTimeout(e, gr.get());
|
|
3990
3979
|
};
|
|
3991
3980
|
e();
|
|
3992
3981
|
}
|
|
3993
3982
|
}
|
|
3994
|
-
|
|
3983
|
+
q.currentPopupAction = null;
|
|
3995
3984
|
/**
|
|
3996
3985
|
* @license
|
|
3997
3986
|
* Copyright 2020 Google LLC
|
|
@@ -4008,8 +3997,8 @@ z.currentPopupAction = null;
|
|
|
4008
3997
|
* See the License for the specific language governing permissions and
|
|
4009
3998
|
* limitations under the License.
|
|
4010
3999
|
*/
|
|
4011
|
-
const
|
|
4012
|
-
class
|
|
4000
|
+
const _r = "pendingRedirect", fe = /* @__PURE__ */ new Map();
|
|
4001
|
+
class vr extends rn {
|
|
4013
4002
|
constructor(e, t, i = !1) {
|
|
4014
4003
|
super(e, [
|
|
4015
4004
|
"signInViaRedirect",
|
|
@@ -4027,7 +4016,7 @@ class _r extends rn {
|
|
|
4027
4016
|
let e = fe.get(this.auth._key());
|
|
4028
4017
|
if (!e) {
|
|
4029
4018
|
try {
|
|
4030
|
-
const i = await
|
|
4019
|
+
const i = await Ir(this.resolver, this.auth) ? await super.execute() : null;
|
|
4031
4020
|
e = () => Promise.resolve(i);
|
|
4032
4021
|
} catch (t) {
|
|
4033
4022
|
e = () => Promise.reject(t);
|
|
@@ -4055,26 +4044,26 @@ class _r extends rn {
|
|
|
4055
4044
|
cleanUp() {
|
|
4056
4045
|
}
|
|
4057
4046
|
}
|
|
4058
|
-
async function
|
|
4059
|
-
const t =
|
|
4047
|
+
async function Ir(n, e) {
|
|
4048
|
+
const t = Tr(e), i = wr(n);
|
|
4060
4049
|
if (!await i._isAvailable())
|
|
4061
4050
|
return !1;
|
|
4062
4051
|
const r = await i._get(t) === "true";
|
|
4063
4052
|
return await i._remove(t), r;
|
|
4064
4053
|
}
|
|
4065
|
-
function
|
|
4054
|
+
function yr(n, e) {
|
|
4066
4055
|
fe.set(n._key(), e);
|
|
4067
4056
|
}
|
|
4068
|
-
function yr(n) {
|
|
4069
|
-
return N(n._redirectPersistence);
|
|
4070
|
-
}
|
|
4071
4057
|
function wr(n) {
|
|
4072
|
-
return
|
|
4058
|
+
return O(n._redirectPersistence);
|
|
4073
4059
|
}
|
|
4074
|
-
|
|
4060
|
+
function Tr(n) {
|
|
4061
|
+
return he(_r, n.config.apiKey, n.name);
|
|
4062
|
+
}
|
|
4063
|
+
async function kr(n, e, t = !1) {
|
|
4075
4064
|
if (A(n.app))
|
|
4076
4065
|
return Promise.reject(H(n));
|
|
4077
|
-
const i = be(n), r =
|
|
4066
|
+
const i = be(n), r = hr(i, e), o = await new vr(i, r, t).execute();
|
|
4078
4067
|
return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
|
|
4079
4068
|
}
|
|
4080
4069
|
/**
|
|
@@ -4093,8 +4082,8 @@ async function Tr(n, e, t = !1) {
|
|
|
4093
4082
|
* See the License for the specific language governing permissions and
|
|
4094
4083
|
* limitations under the License.
|
|
4095
4084
|
*/
|
|
4096
|
-
const
|
|
4097
|
-
class
|
|
4085
|
+
const br = 10 * 60 * 1e3;
|
|
4086
|
+
class Er {
|
|
4098
4087
|
constructor(e) {
|
|
4099
4088
|
this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
|
|
4100
4089
|
}
|
|
@@ -4110,13 +4099,13 @@ class br {
|
|
|
4110
4099
|
let t = !1;
|
|
4111
4100
|
return this.consumers.forEach((i) => {
|
|
4112
4101
|
this.isEventForConsumer(e, i) && (t = !0, this.sendToConsumer(e, i), this.saveEventToCache(e));
|
|
4113
|
-
}), this.hasHandledPotentialRedirect || !
|
|
4102
|
+
}), this.hasHandledPotentialRedirect || !Sr(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
|
|
4114
4103
|
}
|
|
4115
4104
|
sendToConsumer(e, t) {
|
|
4116
4105
|
var i;
|
|
4117
4106
|
if (e.error && !sn(e)) {
|
|
4118
4107
|
const r = ((i = e.error.code) === null || i === void 0 ? void 0 : i.split("auth/")[1]) || "internal-error";
|
|
4119
|
-
t.onError(
|
|
4108
|
+
t.onError(E(this.auth, r));
|
|
4120
4109
|
} else
|
|
4121
4110
|
t.onAuthEvent(e);
|
|
4122
4111
|
}
|
|
@@ -4125,7 +4114,7 @@ class br {
|
|
|
4125
4114
|
return t.filter.includes(e.type) && i;
|
|
4126
4115
|
}
|
|
4127
4116
|
hasEventBeenHandled(e) {
|
|
4128
|
-
return Date.now() - this.lastProcessedEventTime >=
|
|
4117
|
+
return Date.now() - this.lastProcessedEventTime >= br && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
|
|
4129
4118
|
}
|
|
4130
4119
|
saveEventToCache(e) {
|
|
4131
4120
|
this.cachedEventUids.add(ht(e)), this.lastProcessedEventTime = Date.now();
|
|
@@ -4137,7 +4126,7 @@ function ht(n) {
|
|
|
4137
4126
|
function sn({ type: n, error: e }) {
|
|
4138
4127
|
return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
|
|
4139
4128
|
}
|
|
4140
|
-
function
|
|
4129
|
+
function Sr(n) {
|
|
4141
4130
|
switch (n.type) {
|
|
4142
4131
|
case "signInViaRedirect":
|
|
4143
4132
|
case "linkViaRedirect":
|
|
@@ -4165,7 +4154,7 @@ function Er(n) {
|
|
|
4165
4154
|
* See the License for the specific language governing permissions and
|
|
4166
4155
|
* limitations under the License.
|
|
4167
4156
|
*/
|
|
4168
|
-
async function
|
|
4157
|
+
async function Rr(n, e = {}) {
|
|
4169
4158
|
return Q(n, "GET", "/v1/projects", e);
|
|
4170
4159
|
}
|
|
4171
4160
|
/**
|
|
@@ -4184,24 +4173,24 @@ async function Sr(n, e = {}) {
|
|
|
4184
4173
|
* See the License for the specific language governing permissions and
|
|
4185
4174
|
* limitations under the License.
|
|
4186
4175
|
*/
|
|
4187
|
-
const
|
|
4188
|
-
async function
|
|
4176
|
+
const Pr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ar = /^https?/;
|
|
4177
|
+
async function Cr(n) {
|
|
4189
4178
|
if (n.config.emulator)
|
|
4190
4179
|
return;
|
|
4191
|
-
const { authorizedDomains: e } = await
|
|
4180
|
+
const { authorizedDomains: e } = await Rr(n);
|
|
4192
4181
|
for (const t of e)
|
|
4193
4182
|
try {
|
|
4194
|
-
if (
|
|
4183
|
+
if (Nr(t))
|
|
4195
4184
|
return;
|
|
4196
4185
|
} catch {
|
|
4197
4186
|
}
|
|
4198
|
-
|
|
4187
|
+
L(
|
|
4199
4188
|
n,
|
|
4200
4189
|
"unauthorized-domain"
|
|
4201
4190
|
/* AuthErrorCode.INVALID_ORIGIN */
|
|
4202
4191
|
);
|
|
4203
4192
|
}
|
|
4204
|
-
function
|
|
4193
|
+
function Nr(n) {
|
|
4205
4194
|
const e = Me(), { protocol: t, hostname: i } = new URL(e);
|
|
4206
4195
|
if (n.startsWith("chrome-extension://")) {
|
|
4207
4196
|
const o = new URL(n);
|
|
@@ -4209,7 +4198,7 @@ function Cr(n) {
|
|
|
4209
4198
|
}
|
|
4210
4199
|
if (!Ar.test(t))
|
|
4211
4200
|
return !1;
|
|
4212
|
-
if (
|
|
4201
|
+
if (Pr.test(n))
|
|
4213
4202
|
return i === n;
|
|
4214
4203
|
const r = n.replace(/\./g, "\\.");
|
|
4215
4204
|
return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
|
|
@@ -4230,9 +4219,9 @@ function Cr(n) {
|
|
|
4230
4219
|
* See the License for the specific language governing permissions and
|
|
4231
4220
|
* limitations under the License.
|
|
4232
4221
|
*/
|
|
4233
|
-
const
|
|
4222
|
+
const Or = new ae(3e4, 6e4);
|
|
4234
4223
|
function ft() {
|
|
4235
|
-
const n =
|
|
4224
|
+
const n = S().___jsl;
|
|
4236
4225
|
if (n != null && n.H) {
|
|
4237
4226
|
for (const e of Object.keys(n.H))
|
|
4238
4227
|
if (n.H[e].r = n.H[e].r || [], n.H[e].L = n.H[e].L || [], n.H[e].r = [...n.H[e].L], n.CP)
|
|
@@ -4240,7 +4229,7 @@ function ft() {
|
|
|
4240
4229
|
n.CP[t] = null;
|
|
4241
4230
|
}
|
|
4242
4231
|
}
|
|
4243
|
-
function
|
|
4232
|
+
function Lr(n) {
|
|
4244
4233
|
return new Promise((e, t) => {
|
|
4245
4234
|
var i, r, s;
|
|
4246
4235
|
function o() {
|
|
@@ -4249,36 +4238,36 @@ function Or(n) {
|
|
|
4249
4238
|
e(gapi.iframes.getContext());
|
|
4250
4239
|
},
|
|
4251
4240
|
ontimeout: () => {
|
|
4252
|
-
ft(), t(
|
|
4241
|
+
ft(), t(E(
|
|
4253
4242
|
n,
|
|
4254
4243
|
"network-request-failed"
|
|
4255
4244
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
4256
4245
|
));
|
|
4257
4246
|
},
|
|
4258
|
-
timeout:
|
|
4247
|
+
timeout: Or.get()
|
|
4259
4248
|
});
|
|
4260
4249
|
}
|
|
4261
|
-
if (!((r = (i =
|
|
4250
|
+
if (!((r = (i = S().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
|
|
4262
4251
|
e(gapi.iframes.getContext());
|
|
4263
|
-
else if (!((s =
|
|
4252
|
+
else if (!((s = S().gapi) === null || s === void 0) && s.load)
|
|
4264
4253
|
o();
|
|
4265
4254
|
else {
|
|
4266
|
-
const c =
|
|
4267
|
-
return
|
|
4268
|
-
gapi.load ? o() : t(
|
|
4255
|
+
const c = Di("iframefcb");
|
|
4256
|
+
return S()[c] = () => {
|
|
4257
|
+
gapi.load ? o() : t(E(
|
|
4269
4258
|
n,
|
|
4270
4259
|
"network-request-failed"
|
|
4271
4260
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
4272
4261
|
));
|
|
4273
|
-
},
|
|
4262
|
+
}, Mi(`${Ui()}?onload=${c}`).catch((a) => t(a));
|
|
4274
4263
|
}
|
|
4275
4264
|
}).catch((e) => {
|
|
4276
4265
|
throw pe = null, e;
|
|
4277
4266
|
});
|
|
4278
4267
|
}
|
|
4279
4268
|
let pe = null;
|
|
4280
|
-
function
|
|
4281
|
-
return pe = pe ||
|
|
4269
|
+
function Mr(n) {
|
|
4270
|
+
return pe = pe || Lr(n), pe;
|
|
4282
4271
|
}
|
|
4283
4272
|
/**
|
|
4284
4273
|
* @license
|
|
@@ -4296,7 +4285,7 @@ function Lr(n) {
|
|
|
4296
4285
|
* See the License for the specific language governing permissions and
|
|
4297
4286
|
* limitations under the License.
|
|
4298
4287
|
*/
|
|
4299
|
-
const
|
|
4288
|
+
const Ur = new ae(5e3, 15e3), Dr = "__/auth/iframe", xr = "emulator/auth/iframe", Fr = {
|
|
4300
4289
|
style: {
|
|
4301
4290
|
position: "absolute",
|
|
4302
4291
|
top: "-100px",
|
|
@@ -4305,13 +4294,13 @@ const Mr = new ae(5e3, 15e3), Ur = "__/auth/iframe", Dr = "emulator/auth/iframe"
|
|
|
4305
4294
|
},
|
|
4306
4295
|
"aria-hidden": "true",
|
|
4307
4296
|
tabindex: "-1"
|
|
4308
|
-
},
|
|
4297
|
+
}, Vr = /* @__PURE__ */ new Map([
|
|
4309
4298
|
["identitytoolkit.googleapis.com", "p"],
|
|
4310
4299
|
["staging-identitytoolkit.sandbox.googleapis.com", "s"],
|
|
4311
4300
|
["test-identitytoolkit.sandbox.googleapis.com", "t"]
|
|
4312
4301
|
// test
|
|
4313
4302
|
]);
|
|
4314
|
-
function
|
|
4303
|
+
function $r(n) {
|
|
4315
4304
|
const e = n.config;
|
|
4316
4305
|
u(
|
|
4317
4306
|
e.authDomain,
|
|
@@ -4319,17 +4308,17 @@ function Vr(n) {
|
|
|
4319
4308
|
"auth-domain-config-required"
|
|
4320
4309
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
4321
4310
|
);
|
|
4322
|
-
const t = e.emulator ?
|
|
4311
|
+
const t = e.emulator ? je(e, xr) : `https://${n.config.authDomain}/${Dr}`, i = {
|
|
4323
4312
|
apiKey: e.apiKey,
|
|
4324
4313
|
appName: n.name,
|
|
4325
4314
|
v: se
|
|
4326
|
-
}, r =
|
|
4315
|
+
}, r = Vr.get(n.config.apiHost);
|
|
4327
4316
|
r && (i.eid = r);
|
|
4328
4317
|
const s = n._getFrameworks();
|
|
4329
4318
|
return s.length && (i.fw = s.join(",")), `${t}?${oe(i).slice(1)}`;
|
|
4330
4319
|
}
|
|
4331
|
-
async function
|
|
4332
|
-
const e = await
|
|
4320
|
+
async function Hr(n) {
|
|
4321
|
+
const e = await Mr(n), t = S().gapi;
|
|
4333
4322
|
return u(
|
|
4334
4323
|
t,
|
|
4335
4324
|
n,
|
|
@@ -4337,24 +4326,24 @@ async function $r(n) {
|
|
|
4337
4326
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
4338
4327
|
), e.open({
|
|
4339
4328
|
where: document.body,
|
|
4340
|
-
url:
|
|
4329
|
+
url: $r(n),
|
|
4341
4330
|
messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
|
|
4342
|
-
attributes:
|
|
4331
|
+
attributes: Fr,
|
|
4343
4332
|
dontclear: !0
|
|
4344
4333
|
}, (i) => new Promise(async (r, s) => {
|
|
4345
4334
|
await i.restyle({
|
|
4346
4335
|
// Prevent iframe from closing on mouse out.
|
|
4347
4336
|
setHideOnLeave: !1
|
|
4348
4337
|
});
|
|
4349
|
-
const o =
|
|
4338
|
+
const o = E(
|
|
4350
4339
|
n,
|
|
4351
4340
|
"network-request-failed"
|
|
4352
4341
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
4353
|
-
), c =
|
|
4342
|
+
), c = S().setTimeout(() => {
|
|
4354
4343
|
s(o);
|
|
4355
|
-
},
|
|
4344
|
+
}, Ur.get());
|
|
4356
4345
|
function a() {
|
|
4357
|
-
|
|
4346
|
+
S().clearTimeout(c), r(i);
|
|
4358
4347
|
}
|
|
4359
4348
|
i.ping(a).then(a, () => {
|
|
4360
4349
|
s(o);
|
|
@@ -4377,12 +4366,12 @@ async function $r(n) {
|
|
|
4377
4366
|
* See the License for the specific language governing permissions and
|
|
4378
4367
|
* limitations under the License.
|
|
4379
4368
|
*/
|
|
4380
|
-
const
|
|
4369
|
+
const jr = {
|
|
4381
4370
|
location: "yes",
|
|
4382
4371
|
resizable: "yes",
|
|
4383
4372
|
statusbar: "yes",
|
|
4384
4373
|
toolbar: "no"
|
|
4385
|
-
}, Wr = 500,
|
|
4374
|
+
}, Wr = 500, Br = 600, Gr = "_blank", zr = "http://localhost";
|
|
4386
4375
|
class pt {
|
|
4387
4376
|
constructor(e) {
|
|
4388
4377
|
this.window = e, this.associatedEvent = null;
|
|
@@ -4395,19 +4384,19 @@ class pt {
|
|
|
4395
4384
|
}
|
|
4396
4385
|
}
|
|
4397
4386
|
}
|
|
4398
|
-
function
|
|
4387
|
+
function qr(n, e, t, i = Wr, r = Br) {
|
|
4399
4388
|
const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
|
|
4400
4389
|
let c = "";
|
|
4401
|
-
const a = Object.assign(Object.assign({},
|
|
4390
|
+
const a = Object.assign(Object.assign({}, jr), {
|
|
4402
4391
|
width: i.toString(),
|
|
4403
4392
|
height: r.toString(),
|
|
4404
4393
|
top: s,
|
|
4405
4394
|
left: o
|
|
4406
|
-
}), l =
|
|
4407
|
-
t && (c = Ft(l) ? Gr : t), xt(l) && (e = e ||
|
|
4408
|
-
const d = Object.entries(a).reduce((
|
|
4409
|
-
if (
|
|
4410
|
-
return
|
|
4395
|
+
}), l = k().toLowerCase();
|
|
4396
|
+
t && (c = Ft(l) ? Gr : t), xt(l) && (e = e || zr, a.scrollbars = "yes");
|
|
4397
|
+
const d = Object.entries(a).reduce((v, [y, f]) => `${v}${y}=${f},`, "");
|
|
4398
|
+
if (Ei(l) && c !== "_self")
|
|
4399
|
+
return Kr(e || "", c), new pt(null);
|
|
4411
4400
|
const m = window.open(e || "", c, d);
|
|
4412
4401
|
u(
|
|
4413
4402
|
m,
|
|
@@ -4421,7 +4410,7 @@ function zr(n, e, t, i = Wr, r = jr) {
|
|
|
4421
4410
|
}
|
|
4422
4411
|
return new pt(m);
|
|
4423
4412
|
}
|
|
4424
|
-
function
|
|
4413
|
+
function Kr(n, e) {
|
|
4425
4414
|
const t = document.createElement("a");
|
|
4426
4415
|
t.href = n, t.target = e;
|
|
4427
4416
|
const i = document.createEvent("MouseEvent");
|
|
@@ -4443,7 +4432,7 @@ function qr(n, e) {
|
|
|
4443
4432
|
* See the License for the specific language governing permissions and
|
|
4444
4433
|
* limitations under the License.
|
|
4445
4434
|
*/
|
|
4446
|
-
const
|
|
4435
|
+
const Jr = "__/auth/handler", Yr = "emulator/auth/handler", Xr = encodeURIComponent("fac");
|
|
4447
4436
|
async function mt(n, e, t, i, r, s) {
|
|
4448
4437
|
u(
|
|
4449
4438
|
n.config.authDomain,
|
|
@@ -4465,7 +4454,7 @@ async function mt(n, e, t, i, r, s) {
|
|
|
4465
4454
|
eventId: r
|
|
4466
4455
|
};
|
|
4467
4456
|
if (e instanceof qt) {
|
|
4468
|
-
e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "",
|
|
4457
|
+
e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Un(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
|
|
4469
4458
|
for (const [d, m] of Object.entries({}))
|
|
4470
4459
|
o[d] = m;
|
|
4471
4460
|
}
|
|
@@ -4477,11 +4466,11 @@ async function mt(n, e, t, i, r, s) {
|
|
|
4477
4466
|
const c = o;
|
|
4478
4467
|
for (const d of Object.keys(c))
|
|
4479
4468
|
c[d] === void 0 && delete c[d];
|
|
4480
|
-
const a = await n._getAppCheckToken(), l = a ? `#${
|
|
4481
|
-
return `${
|
|
4469
|
+
const a = await n._getAppCheckToken(), l = a ? `#${Xr}=${encodeURIComponent(a)}` : "";
|
|
4470
|
+
return `${Qr(n)}?${oe(c).slice(1)}${l}`;
|
|
4482
4471
|
}
|
|
4483
|
-
function
|
|
4484
|
-
return n.emulator ?
|
|
4472
|
+
function Qr({ config: n }) {
|
|
4473
|
+
return n.emulator ? je(n, Yr) : `https://${n.authDomain}/${Jr}`;
|
|
4485
4474
|
}
|
|
4486
4475
|
/**
|
|
4487
4476
|
* @license
|
|
@@ -4500,29 +4489,29 @@ function Xr({ config: n }) {
|
|
|
4500
4489
|
* limitations under the License.
|
|
4501
4490
|
*/
|
|
4502
4491
|
const Ne = "webStorageSupport";
|
|
4503
|
-
class
|
|
4492
|
+
class Zr {
|
|
4504
4493
|
constructor() {
|
|
4505
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn =
|
|
4494
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = kr, this._overrideRedirectResult = yr;
|
|
4506
4495
|
}
|
|
4507
4496
|
// Wrapping in async even though we don't await anywhere in order
|
|
4508
4497
|
// to make sure errors are raised as promise rejections
|
|
4509
4498
|
async _openPopup(e, t, i, r) {
|
|
4510
4499
|
var s;
|
|
4511
|
-
|
|
4500
|
+
M((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
|
4512
4501
|
const o = await mt(e, t, i, Me(), r);
|
|
4513
|
-
return
|
|
4502
|
+
return qr(e, o, ze());
|
|
4514
4503
|
}
|
|
4515
4504
|
async _openRedirect(e, t, i, r) {
|
|
4516
4505
|
await this._originValidation(e);
|
|
4517
4506
|
const s = await mt(e, t, i, Me(), r);
|
|
4518
|
-
return
|
|
4507
|
+
return nr(s), new Promise(() => {
|
|
4519
4508
|
});
|
|
4520
4509
|
}
|
|
4521
4510
|
_initialize(e) {
|
|
4522
4511
|
const t = e._key();
|
|
4523
4512
|
if (this.eventManagers[t]) {
|
|
4524
4513
|
const { manager: r, promise: s } = this.eventManagers[t];
|
|
4525
|
-
return r ? Promise.resolve(r) : (
|
|
4514
|
+
return r ? Promise.resolve(r) : (M(s, "If manager is not set, promise should be"), s);
|
|
4526
4515
|
}
|
|
4527
4516
|
const i = this.initAndGetManager(e);
|
|
4528
4517
|
return this.eventManagers[t] = { promise: i }, i.catch(() => {
|
|
@@ -4530,7 +4519,7 @@ class Qr {
|
|
|
4530
4519
|
}), i;
|
|
4531
4520
|
}
|
|
4532
4521
|
async initAndGetManager(e) {
|
|
4533
|
-
const t = await
|
|
4522
|
+
const t = await Hr(e), i = new Er(e);
|
|
4534
4523
|
return t.register("authEvent", (r) => (u(
|
|
4535
4524
|
r == null ? void 0 : r.authEvent,
|
|
4536
4525
|
e,
|
|
@@ -4545,7 +4534,7 @@ class Qr {
|
|
|
4545
4534
|
this.iframes[e._key()].send(Ne, { type: Ne }, (r) => {
|
|
4546
4535
|
var s;
|
|
4547
4536
|
const o = (s = r == null ? void 0 : r[0]) === null || s === void 0 ? void 0 : s[Ne];
|
|
4548
|
-
o !== void 0 && t(!!o),
|
|
4537
|
+
o !== void 0 && t(!!o), L(
|
|
4549
4538
|
e,
|
|
4550
4539
|
"internal-error"
|
|
4551
4540
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
@@ -4554,13 +4543,13 @@ class Qr {
|
|
|
4554
4543
|
}
|
|
4555
4544
|
_originValidation(e) {
|
|
4556
4545
|
const t = e._key();
|
|
4557
|
-
return this.originValidationPromises[t] || (this.originValidationPromises[t] =
|
|
4546
|
+
return this.originValidationPromises[t] || (this.originValidationPromises[t] = Cr(e)), this.originValidationPromises[t];
|
|
4558
4547
|
}
|
|
4559
4548
|
get _shouldInitProactively() {
|
|
4560
|
-
return
|
|
4549
|
+
return Wt() || Be() || ke();
|
|
4561
4550
|
}
|
|
4562
4551
|
}
|
|
4563
|
-
const
|
|
4552
|
+
const es = Zr;
|
|
4564
4553
|
var gt = "@firebase/auth", _t = "1.7.5";
|
|
4565
4554
|
/**
|
|
4566
4555
|
* @license
|
|
@@ -4578,7 +4567,7 @@ var gt = "@firebase/auth", _t = "1.7.5";
|
|
|
4578
4567
|
* See the License for the specific language governing permissions and
|
|
4579
4568
|
* limitations under the License.
|
|
4580
4569
|
*/
|
|
4581
|
-
class
|
|
4570
|
+
class ts {
|
|
4582
4571
|
constructor(e) {
|
|
4583
4572
|
this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
|
|
4584
4573
|
}
|
|
@@ -4629,7 +4618,7 @@ class es {
|
|
|
4629
4618
|
* See the License for the specific language governing permissions and
|
|
4630
4619
|
* limitations under the License.
|
|
4631
4620
|
*/
|
|
4632
|
-
function
|
|
4621
|
+
function ns(n) {
|
|
4633
4622
|
switch (n) {
|
|
4634
4623
|
case "Node":
|
|
4635
4624
|
return "node";
|
|
@@ -4645,7 +4634,7 @@ function ts(n) {
|
|
|
4645
4634
|
return;
|
|
4646
4635
|
}
|
|
4647
4636
|
}
|
|
4648
|
-
function
|
|
4637
|
+
function is(n) {
|
|
4649
4638
|
Ze(new et(
|
|
4650
4639
|
"auth",
|
|
4651
4640
|
(e, { options: t }) => {
|
|
@@ -4658,9 +4647,9 @@ function ns(n) {
|
|
|
4658
4647
|
apiHost: "identitytoolkit.googleapis.com",
|
|
4659
4648
|
tokenApiHost: "securetoken.googleapis.com",
|
|
4660
4649
|
apiScheme: "https",
|
|
4661
|
-
sdkClientVersion:
|
|
4662
|
-
}, l = new
|
|
4663
|
-
return
|
|
4650
|
+
sdkClientVersion: Bt(n)
|
|
4651
|
+
}, l = new Oi(i, r, s, a);
|
|
4652
|
+
return Fi(l, t), l;
|
|
4664
4653
|
},
|
|
4665
4654
|
"PUBLIC"
|
|
4666
4655
|
/* ComponentType.PUBLIC */
|
|
@@ -4679,14 +4668,14 @@ function ns(n) {
|
|
|
4679
4668
|
"auth"
|
|
4680
4669
|
/* _ComponentName.AUTH */
|
|
4681
4670
|
).getImmediate());
|
|
4682
|
-
return ((i) => new
|
|
4671
|
+
return ((i) => new ts(i))(t);
|
|
4683
4672
|
},
|
|
4684
4673
|
"PRIVATE"
|
|
4685
4674
|
/* ComponentType.PRIVATE */
|
|
4686
4675
|
).setInstantiationMode(
|
|
4687
4676
|
"EXPLICIT"
|
|
4688
4677
|
/* InstantiationMode.EXPLICIT */
|
|
4689
|
-
)), Le(gt, _t,
|
|
4678
|
+
)), Le(gt, _t, ns(n)), Le(gt, _t, "esm2017");
|
|
4690
4679
|
}
|
|
4691
4680
|
/**
|
|
4692
4681
|
* @license
|
|
@@ -4704,11 +4693,11 @@ function ns(n) {
|
|
|
4704
4693
|
* See the License for the specific language governing permissions and
|
|
4705
4694
|
* limitations under the License.
|
|
4706
4695
|
*/
|
|
4707
|
-
const
|
|
4696
|
+
const rs = 5 * 60, ss = kt("authIdTokenMaxAge") || rs;
|
|
4708
4697
|
let vt = null;
|
|
4709
|
-
const
|
|
4698
|
+
const os = (n) => async (e) => {
|
|
4710
4699
|
const t = e && await e.getIdTokenResult(), i = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
|
|
4711
|
-
if (i && i >
|
|
4700
|
+
if (i && i > ss)
|
|
4712
4701
|
return;
|
|
4713
4702
|
const r = t == null ? void 0 : t.token;
|
|
4714
4703
|
vt !== r && (vt = r, await fetch(n, {
|
|
@@ -4718,115 +4707,117 @@ const ss = (n) => async (e) => {
|
|
|
4718
4707
|
} : {}
|
|
4719
4708
|
}));
|
|
4720
4709
|
};
|
|
4721
|
-
function
|
|
4710
|
+
function as(n = Nn()) {
|
|
4722
4711
|
const e = bt(n, "auth");
|
|
4723
4712
|
if (e.isInitialized())
|
|
4724
4713
|
return e.getImmediate();
|
|
4725
|
-
const t =
|
|
4726
|
-
popupRedirectResolver:
|
|
4714
|
+
const t = xi(n, {
|
|
4715
|
+
popupRedirectResolver: es,
|
|
4727
4716
|
persistence: [
|
|
4728
|
-
|
|
4729
|
-
|
|
4717
|
+
dr,
|
|
4718
|
+
Zi,
|
|
4730
4719
|
Qt
|
|
4731
4720
|
]
|
|
4732
4721
|
}), i = kt("authTokenSyncURL");
|
|
4733
4722
|
if (i && typeof isSecureContext == "boolean" && isSecureContext) {
|
|
4734
4723
|
const s = new URL(i, location.origin);
|
|
4735
4724
|
if (location.origin === s.origin) {
|
|
4736
|
-
const o =
|
|
4737
|
-
|
|
4725
|
+
const o = os(s.toString());
|
|
4726
|
+
Ji(t, o, () => o(t.currentUser)), Ki(t, (c) => o(c));
|
|
4738
4727
|
}
|
|
4739
4728
|
}
|
|
4740
|
-
const r =
|
|
4741
|
-
return r &&
|
|
4729
|
+
const r = Cn("auth");
|
|
4730
|
+
return r && Vi(t, `http://${r}`), t;
|
|
4742
4731
|
}
|
|
4743
|
-
function
|
|
4732
|
+
function cs() {
|
|
4744
4733
|
var n, e;
|
|
4745
4734
|
return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
|
|
4746
4735
|
}
|
|
4747
|
-
|
|
4736
|
+
Li({
|
|
4748
4737
|
loadJS(n) {
|
|
4749
4738
|
return new Promise((e, t) => {
|
|
4750
4739
|
const i = document.createElement("script");
|
|
4751
4740
|
i.setAttribute("src", n), i.onload = e, i.onerror = (r) => {
|
|
4752
|
-
const s =
|
|
4741
|
+
const s = E(
|
|
4753
4742
|
"internal-error"
|
|
4754
4743
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
4755
4744
|
);
|
|
4756
4745
|
s.customData = r, t(s);
|
|
4757
|
-
}, i.type = "text/javascript", i.charset = "UTF-8",
|
|
4746
|
+
}, i.type = "text/javascript", i.charset = "UTF-8", cs().appendChild(i);
|
|
4758
4747
|
});
|
|
4759
4748
|
},
|
|
4760
4749
|
gapiScript: "https://apis.google.com/js/api.js",
|
|
4761
4750
|
recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
|
|
4762
4751
|
recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
|
|
4763
4752
|
});
|
|
4764
|
-
|
|
4753
|
+
is(
|
|
4765
4754
|
"Browser"
|
|
4766
4755
|
/* ClientPlatform.BROWSER */
|
|
4767
4756
|
);
|
|
4768
|
-
var
|
|
4769
|
-
const
|
|
4757
|
+
var ls = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, assetBucketUrl: "static.feedme.cc", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", featureFlagApiKey: "6GhcttsJ9Rj9cTevcdrpin" }, us = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc", voucherAppUrl: "https://voucher.feedme.cc/" };
|
|
4758
|
+
const ds = {
|
|
4770
4759
|
key: 2,
|
|
4771
4760
|
class: "h-full w-full"
|
|
4772
|
-
},
|
|
4761
|
+
}, hs = ["src"], Cs = /* @__PURE__ */ xe({
|
|
4773
4762
|
__name: "App",
|
|
4774
4763
|
setup(n) {
|
|
4775
|
-
const e = ge(), t = pn(), i = mn(), r = vn(), s = In(), o = wt(), c =
|
|
4764
|
+
const e = ge(), t = pn(), i = mn(), r = vn(), s = In(), o = wt(), c = B(
|
|
4765
|
+
() => o.name === p["$connect-UPSELLING"]
|
|
4766
|
+
), a = te(o.query.showHeader !== "false"), l = te(!1), { currentBusiness: d } = ge();
|
|
4776
4767
|
ie(
|
|
4777
4768
|
() => {
|
|
4778
|
-
var
|
|
4779
|
-
return (
|
|
4769
|
+
var h;
|
|
4770
|
+
return (h = d.value) == null ? void 0 : h._id;
|
|
4780
4771
|
},
|
|
4781
|
-
(
|
|
4782
|
-
|
|
4772
|
+
(h) => {
|
|
4773
|
+
h && _n(h);
|
|
4783
4774
|
},
|
|
4784
4775
|
{ immediate: !0 }
|
|
4785
4776
|
);
|
|
4786
|
-
const
|
|
4787
|
-
const
|
|
4788
|
-
return `${
|
|
4777
|
+
const m = te(!1), v = B(() => i.version), y = B(() => {
|
|
4778
|
+
const h = e.currentCountry.value || "MY", _ = tt.getIdToken(), b = d.value._id;
|
|
4779
|
+
return `${us.marketingV1Portal}/b/${b}/marketing/overview?showHeader=false&country=${h}&token=${_}`;
|
|
4789
4780
|
});
|
|
4790
|
-
async function
|
|
4791
|
-
if (
|
|
4781
|
+
async function f() {
|
|
4782
|
+
if (Dn().length) {
|
|
4792
4783
|
console.warn("CONNECT: initFirebase: Firebase already initialized");
|
|
4793
4784
|
return;
|
|
4794
4785
|
}
|
|
4795
|
-
const
|
|
4796
|
-
await
|
|
4786
|
+
const h = xn(ls.firebase), _ = await fn.getCustomToken(), b = as();
|
|
4787
|
+
await qi(b, _), Fn(h), console.log("initFirebase", h);
|
|
4797
4788
|
}
|
|
4798
|
-
const
|
|
4799
|
-
|
|
4789
|
+
const w = async () => {
|
|
4790
|
+
m.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(d.value._id), await i.readPremium(), !l.value && v.value === "v2" ? e.registerSidebarComponent(jn) : e.hideSidebarToggle(!0), await f(), l.value = !0, m.value = !0;
|
|
4800
4791
|
};
|
|
4801
4792
|
return un(() => {
|
|
4802
|
-
if (
|
|
4803
|
-
const
|
|
4804
|
-
|
|
4793
|
+
if (Vn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !a.value) {
|
|
4794
|
+
const h = document.getElementsByClassName("app-header")[0], _ = document.getElementsByClassName("app-sidebar")[0], b = document.getElementsByClassName("app-container")[0], T = document.getElementsByTagName("main")[0];
|
|
4795
|
+
h == null || h.classList.add("!hidden"), _ == null || _.classList.add("!pt-0"), b == null || b.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), e.hideSidebarToggle(!0);
|
|
4805
4796
|
}
|
|
4806
|
-
|
|
4797
|
+
d.value != null && (console.log("App mounted, forceRerender"), w());
|
|
4807
4798
|
}), ie(
|
|
4808
4799
|
() => e.currentBusiness.value,
|
|
4809
|
-
async (
|
|
4810
|
-
console.log("Current business changed"),
|
|
4800
|
+
async (h, _) => {
|
|
4801
|
+
console.log("Current business changed"), h != null && h._id != _._id && (console.log("forceRerender when business changes", h, _), w());
|
|
4811
4802
|
}
|
|
4812
|
-
), (
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
json: { url:
|
|
4803
|
+
), (h, _) => (W(), me(It, null, [
|
|
4804
|
+
g(m) && (g(v) === "v2" || g(c)) ? (W(), Oe(g(hn), { key: 0 })) : Ae("", !0),
|
|
4805
|
+
g(m) && g(v) === "v2" && g(a) ? (W(), Oe(oi, { key: 1 })) : Ae("", !0),
|
|
4806
|
+
g(m) && g(v) !== "v2" && !g(c) ? (W(), me("div", ds, [
|
|
4807
|
+
R(bn, {
|
|
4808
|
+
json: { url: g(y) }
|
|
4818
4809
|
}, null, 8, ["json"]),
|
|
4819
4810
|
I("iframe", {
|
|
4820
4811
|
allow: "clipboard-read; clipboard-write",
|
|
4821
4812
|
frameBorder: "0",
|
|
4822
4813
|
height: "100%",
|
|
4823
4814
|
width: "100%",
|
|
4824
|
-
src:
|
|
4825
|
-
}, null, 8,
|
|
4826
|
-
])) :
|
|
4815
|
+
src: g(y)
|
|
4816
|
+
}, null, 8, hs)
|
|
4817
|
+
])) : Ae("", !0)
|
|
4827
4818
|
], 64));
|
|
4828
4819
|
}
|
|
4829
4820
|
});
|
|
4830
4821
|
export {
|
|
4831
|
-
|
|
4822
|
+
Cs as default
|
|
4832
4823
|
};
|