@feedmepos/mf-connect 0.1.98-beta.83 → 0.1.98-beta.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/dist/{App-DoYDNru4.js → App-BxA547CP.js} +409 -403
- package/dist/{AuditLogs-qHYp6lM4.js → AuditLogs-DjsuO-ou.js} +13 -13
- package/dist/{Bin-CJvPHkvE.js → Bin-Cp1JuoPV.js} +8 -8
- package/dist/{Broadcast-D6ECVLby.js → Broadcast-C-dZ7I7J.js} +12 -12
- package/dist/{CampaignAnalytic-DbAO0BOB.js → CampaignAnalytic-CeJrlblr.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-UnagFqxE.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DNshyt4k.js} +8 -8
- package/dist/{Card-DbQcw0mC.js → Card-BRkDbHgP.js} +23 -23
- package/dist/{Collections-BFStwoAg.js → Collections-KGkn4jVg.js} +8 -8
- package/dist/{Credit-BVFgG__U.js → Credit-CYtdA8LR.js} +12 -12
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-DXrDsiLw.js → DateRangeChip.vue_vue_type_script_setup_true_lang-B_GGXmKj.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BBTJuWd_.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CC84YrQj.js} +36 -35
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BCWbz73-.js → EffectSheet.vue_vue_type_style_index_0_lang-Y8euxc9u.js} +6 -6
- package/dist/{Experience-CK_YnT2w.js → Experience-DyCWhTIc.js} +13 -13
- package/dist/{FileSaver.min-CawPE0hc.js → FileSaver.min-sifwJvOC.js} +1 -1
- package/dist/{Game-DrYm5UCq.js → Game-D2dtBGMx.js} +13 -13
- package/dist/{GiftCardSetup-CeB4uHzh.js → GiftCardSetup-4_wPeuGx.js} +73 -61
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-DRyzcwuk.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-DaXZiLCz.js} +7 -7
- package/dist/{Goals-DDssCeP8.js → Goals-BZriqe6a.js} +4 -4
- package/dist/{Grab-BruNklz5.js → Grab-DE43gcBH.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-JIeTaPKV.js → ImageInput.vue_vue_type_script_setup_true_lang-BSmoRIp3.js} +1 -1
- package/dist/{Index-Qk1esxkY.js → Index-3-__a-F8.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Dblb8rtE.js → LocationPicker.vue_vue_type_script_setup_true_lang-DMFmuJHS.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-XepGx2h_.js → LottieAnimation.vue_vue_type_script_setup_true_lang-aCBsAVgf.js} +1 -1
- package/dist/{LoyaltyDashboard-VxKYWHoz.js → LoyaltyDashboard-BxqVkHWZ.js} +24 -23
- package/dist/MainLayout-VDwSL1-n.js +4 -0
- package/dist/{MainLayout-P6XTHUGB.js → MainLayout.vue_vue_type_script_setup_true_lang-DKwbltBD.js} +4 -4
- package/dist/{Marketing-CTYdcJfZ.js → Marketing-BkTXd2kV.js} +4 -4
- package/dist/{MarketingMaterialEdit-D-1tqOR_.js → MarketingMaterialEdit-DCmGVhn1.js} +6 -6
- package/dist/{Member-Dxuq4ZCO.js → Member-BZ-cZyCC.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-vIdcxago.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DeRvNRsk.js} +24 -24
- package/dist/{MemberImportHistory-DcofsjnB.js → MemberImportHistory-CunTfazI.js} +7 -7
- package/dist/{MemberList-DQ7MGqA_.js → MemberList-H8H9xzMg.js} +14 -14
- package/dist/{MemberTransactions--5lBgWBw.js → MemberTransactions-B1GTs17R.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DHst8mwG.js → MessageInput.vue_vue_type_script_setup_true_lang-C2K_acoB.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Bb-tOtHg.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BCRSJoq7.js} +1 -1
- package/dist/{Mission-C77jQ0ak.js → Mission-CNXUBVI4.js} +14 -14
- package/dist/{Overview-B4G2MVEP.js → Overview-CiIMyx-_.js} +21 -21
- package/dist/{Overview-BTDsp_z4.js → Overview-CwoDIRXD.js} +4 -4
- package/dist/{Point-CcU9cSwd.js → Point-BpFvqe5M.js} +14 -14
- package/dist/{Promotion-BWUpBOOf.js → Promotion-DwcxXXS3.js} +14 -14
- package/dist/{Queue-BrMy2YTd.js → Queue-CI9PtRqs.js} +13 -13
- package/dist/{Record-CeK0K1Yl.js → Record-Cl73WIoN.js} +9 -9
- package/dist/{Review-C3rRbudC.js → Review-BQL9TzxZ.js} +2 -2
- package/dist/{ReviewFacebookCallback-DrDIi4eL.js → ReviewFacebookCallback-BVcW6zNJ.js} +5 -5
- package/dist/{ReviewGoogleCallback-BXQeRqiH.js → ReviewGoogleCallback-peKv_-nP.js} +5 -5
- package/dist/{Reward-nBH1xNNR.js → Reward-6rLOoOkv.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-uBaqphhg.js → RewardGroup.vue_vue_type_script_setup_true_lang-CZ2OWRik.js} +14 -14
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DmPpapkp.js → RuleGroup.vue_vue_type_script_setup_true_lang-B7GKzELx.js} +15 -15
- package/dist/{Segment-B3pAFkuH.js → Segment-DnrCf_-F.js} +26 -26
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Bz13JYlQ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DyYWf2RR.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Ct8y-moB.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-C-GxdVOH.js} +4 -4
- package/dist/{Setting-NGYZe9J1.js → Setting-BlU3XioB.js} +14 -14
- package/dist/{SettingAdvertisements-9N8x4lIo.js → SettingAdvertisements-CW9KUQAk.js} +12 -12
- package/dist/{Settings-BKJBdYbG.js → Settings-DfKCItWN.js} +5 -5
- package/dist/{Store-CnMsvn0G.js → Store-Dh90RjUg.js} +780 -771
- package/dist/{StoreRewards-B0DPGAEq.js → StoreRewards-BmEJZR1O.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-D__oi--Z.js → StoreTransactions.vue_vue_type_script_setup_true_lang-C-Efc4SV.js} +25 -25
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BRJIcmLs.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Bv0_e1wk.js} +2 -2
- package/dist/{Tier-DFn6wpLy.js → Tier-C7EiLGJW.js} +27 -27
- package/dist/{Title-BeM9d4fj.js → Title-DPf-0vrF.js} +23 -23
- package/dist/{Transaction-DXIDbCJV.js → Transaction-DsAk9Gb9.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CcoMCIWr.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Csojc1fI.js} +6 -6
- package/dist/{Voucher-D18h9vy8.js → Voucher-BKp9CMMe.js} +18 -18
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Dyzo3qNu.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Cpn8legF.js} +12 -12
- package/dist/WhatsappAccount-DjAL89Re.js +342 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-D25DVRXA.js +97 -0
- package/dist/WhatsappBot-CSy_Z1bz.js +581 -0
- package/dist/{WhatsappBotSettings-DPBqHZXW.js → WhatsappBotSettings-CxcuCZ-V.js} +4 -4
- package/dist/WhatsappBotTickets-DS7_jaE3.js +162 -0
- package/dist/WhatsappLayout-Db3329On.js +21 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DL7rIl_N.js → ZodTextField.vue_vue_type_script_setup_true_lang-D6Z-3QOR.js} +2 -2
- package/dist/{app-DqMmw6WJ.js → app-BiUEivOU.js} +74 -69
- package/dist/app.js +1 -1
- package/dist/{base.export-BoqiarPy.js → base.export-Bvf3GR9p.js} +2 -2
- package/dist/{business-CcxL-gF3.js → business-DgmJwclv.js} +5 -5
- package/dist/{campaign-BE2lgjRF.js → campaign-C9TU71PO.js} +8 -8
- package/dist/{campaign-MBz26iMH.js → campaign-DxjYod5y.js} +2 -2
- package/dist/{campaign.fn-D5LT2U39.js → campaign.fn-BGdwcW0r.js} +116 -116
- package/dist/{collection.fn-CpJyr6Y_.js → collection.fn-B9t79SwE.js} +2 -2
- package/dist/{currency-kViea7ZW.js → currency-K9kgZvJm.js} +1 -1
- package/dist/{duplicateCampaign-DwFhnGNW.js → duplicateCampaign-CLeVibNm.js} +2 -2
- package/dist/{effect-OEQJ_NOd.js → effect-Bj5p3FOF.js} +1 -1
- package/dist/{email-addresses-BiqNmeSY.js → email-addresses-CUpmh5j3.js} +2 -2
- package/dist/feature-flag-Dfon0BoK.js +18 -0
- package/dist/{helper-qe6OtfMQ.js → helper-iVOlqZr5.js} +1 -1
- package/dist/{index-C4tRz5aW.js → index-BIqP1bQh.js} +2 -2
- package/dist/{index-DNLDqugg.js → index-BRk5I8NE.js} +1 -1
- package/dist/{index-BCVOoMJ1.js → index-C57WFxg7.js} +2 -2
- package/dist/{index-CDL5im4n.js → index-C641kFzY.js} +1 -1
- package/dist/{index-DWW4rV5u.js → index-CGctGLsw.js} +1 -1
- package/dist/{index-BjJnzBgb.js → index-COB25nai.js} +583 -576
- package/dist/{index-IdvPib7v.js → index-CedoUPYn.js} +2 -2
- package/dist/index-Cfr0vxa5.js +1775 -0
- package/dist/{index-BCXUZHQr.js → index-Cq0kWJ_W.js} +2 -2
- package/dist/{index-uxpFoeBR.js → index-D6CbkBm6.js} +3 -3
- package/dist/{index-B2JXMepI.js → index-DAcwqenP.js} +7 -7
- package/dist/{index-B6mE0q8e.js → index-DJQVYP1Z.js} +1 -1
- package/dist/{index-CM0g-9-V.js → index-DUr59xHS.js} +2 -2
- package/dist/{index-CnHeoO9f.js → index-DXNB9FHg.js} +2 -2
- package/dist/{index-DopAV1p0.js → index-DgkRREfK.js} +18 -14
- package/dist/{index-C01w59Sf.js → index-Dhd9eEjz.js} +1 -1
- package/dist/{index-DCO-4L0t.js → index-FcdiLtUc.js} +9 -9
- package/dist/{index-B5-ebn1k.js → index-HctLGyyi.js} +4 -4
- package/dist/{index-DSkhLfAT.js → index-MVfpQsRI.js} +4 -3
- package/dist/{index-DZIBSUS_.js → index-YV22ZWWA.js} +2 -2
- package/dist/{index-BivO-FMW.js → index-dEfSQ43r.js} +1 -1
- package/dist/{index-CXafRDRN.js → index-onmieavP.js} +5975 -7746
- package/dist/{index.esm2017-JBUZVF0b.js → index.esm2017-BUZxOBD5.js} +1 -1
- package/dist/{loading-BWIBiviO.js → loading-D3jN17Xy.js} +1 -1
- package/dist/{lodash-BzPqU7SK.js → lodash-DvKbipfn.js} +1 -1
- package/dist/{member-import-Bf5_v2rw.js → member-import-BuytQk0w.js} +1 -1
- package/dist/{membership-D_wss7NM.js → membership-Beh_I5Kj.js} +2 -2
- package/dist/{money-Bh3-N1sf.js → money-C3v95tda.js} +1 -1
- package/dist/{number-BbQ0fzK1.js → number-Cc7Yq2nP.js} +1 -1
- package/dist/{objectid-DXuwIDWq.js → objectid-fKMrrct7.js} +9 -9
- package/dist/{onboarding-DspO-Me0.js → onboarding-DJgY8HJr.js} +3 -3
- package/dist/{onboardingSetup-MufLiFPA.js → onboardingSetup-DJJLdr11.js} +2 -2
- package/dist/{plugins-JFwonds1.js → plugins-CcGeLF_l.js} +3 -3
- package/dist/{reward-DgsTibBz.js → reward-4aAVrRc8.js} +1 -1
- package/dist/{rule-C9wt-ChP.js → rule-D6x2GyGw.js} +10 -10
- package/dist/style.css +1 -1
- package/dist/{template-DelWr_nw.js → template-Dafdx5YI.js} +6 -6
- package/dist/{timezone-tn-KM65h.js → timezone-BDIlVTOp.js} +1 -1
- package/dist/{transaction.fn-n9smufaW.js → transaction.fn-CBVylmzu.js} +2 -2
- package/dist/{trigger-C26nxLCh.js → trigger-ChNg0oG9.js} +5 -5
- package/dist/{useMarketingMaterialActions-IM2MsMTk.js → useMarketingMaterialActions-LSsbTrFn.js} +3 -3
- package/dist/{usePagination-Dtz2hc5n.js → usePagination-CqPRf6q3.js} +1 -1
- package/dist/{user-BkwDIIp3.js → user-6kqmEFbR.js} +1 -1
- package/dist/{vue-i18n-Dnb3kew0.js → vue-i18n-BJ_ZHWvK.js} +314 -314
- package/dist/{xlsx-be-7IH2e.js → xlsx-CWXvmWqg.js} +1 -1
- package/dist/{zod-CAhiOJ1R.js → zod-DBefBbjY.js} +1 -1
- package/package.json +1 -1
- package/dist/WhatsappAccount-Be38M23T.js +0 -325
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DBS9_rbY.js +0 -80
- package/dist/WhatsappBot-lyaORqV6.js +0 -561
- package/dist/WhatsappBotTickets-D_3v1pKU.js +0 -153
|
@@ -1,139 +1,141 @@
|
|
|
1
|
-
import { defineComponent as xe, ref as
|
|
1
|
+
import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as Y, watch as pe, resolveComponent as ee, openBlock as j, createElementBlock as me, createVNode as S, unref as _, createElementVNode as v, toDisplayString as R, createBlock as Oe, withCtx as Z, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Pe, 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 "./index-
|
|
7
|
-
import { components as
|
|
8
|
-
import { u as Tt } from "./vue-i18n-
|
|
9
|
-
import { m as vn } from "./index-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
5
|
+
import { u as mn } from "./business-DgmJwclv.js";
|
|
6
|
+
import "./index-C641kFzY.js";
|
|
7
|
+
import { components as W, useSnackbar as gn, useDialog as _n } from "@feedmepos/ui-library";
|
|
8
|
+
import { u as Tt } from "./vue-i18n-BJ_ZHWvK.js";
|
|
9
|
+
import { m as vn } from "./index-BRk5I8NE.js";
|
|
10
|
+
import { i as In } from "./feature-flag-Dfon0BoK.js";
|
|
11
|
+
import { C as Xe } from "./timezone-BDIlVTOp.js";
|
|
12
|
+
import { u as yn } from "./onboarding-DJgY8HJr.js";
|
|
13
|
+
import { R as h, A as wn, a as Qe } from "./app-BiUEivOU.js";
|
|
14
|
+
import { J as Tn } from "./JsonViewer-v8_C7l5N.js";
|
|
15
|
+
import { r as Le, L as kn, g as kt, i as bn, a as En, _ as Ze, C as et, b as Sn, S as re, c as A, d as X, E as Fe, e as Rn, f as bt, h as An, j as Pn, k as Et, l as w, m as Cn, F as Ve, n as Nn, q as se, o as On, p as Ln, s as Mn, t as Un, u as Dn } from "./index.esm2017-BUZxOBD5.js";
|
|
15
16
|
import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
|
|
16
|
-
import {
|
|
17
|
-
|
|
17
|
+
import { c as xn } from "./index-onmieavP.js";
|
|
18
|
+
import { S as tt } from "./index-Cfr0vxa5.js";
|
|
19
|
+
const Fn = { class: "flex flex-col h-full justify-between py-16" }, Vn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, $n = /* @__PURE__ */ xe({
|
|
18
20
|
__name: "NavigationTab",
|
|
19
21
|
setup(n) {
|
|
20
|
-
const { t: e, locale: t } = Tt(), i =
|
|
22
|
+
const { t: e, locale: t } = Tt(), i = yn(), r = te(), s = [
|
|
21
23
|
{
|
|
22
24
|
label: e("connect.navigation.analytic"),
|
|
23
|
-
value:
|
|
25
|
+
value: h["$connect-ANALYTIC"]
|
|
24
26
|
},
|
|
25
27
|
{
|
|
26
28
|
label: e("connect.navigation.campaign"),
|
|
27
|
-
value:
|
|
29
|
+
value: h["$connect-CAMPAIGN"],
|
|
28
30
|
children: [
|
|
29
31
|
{
|
|
30
32
|
label: e("connect.navigation.promotion"),
|
|
31
|
-
value:
|
|
33
|
+
value: h["$connect-CAMPAIGN_PROMOTION"]
|
|
32
34
|
},
|
|
33
35
|
{
|
|
34
36
|
label: e("connect.navigation.voucher"),
|
|
35
|
-
value:
|
|
37
|
+
value: h["$connect-CAMPAIGN_VOUCHER"]
|
|
36
38
|
},
|
|
37
39
|
{
|
|
38
40
|
label: e("connect.navigation.broadcast"),
|
|
39
|
-
value:
|
|
41
|
+
value: h["$connect-CAMPAIGN_BROADCAST"]
|
|
40
42
|
},
|
|
41
43
|
{
|
|
42
44
|
label: e("connect.navigation.grab"),
|
|
43
|
-
value:
|
|
45
|
+
value: h["$connect-CAMPAIGN_GRAB"]
|
|
44
46
|
}
|
|
45
47
|
]
|
|
46
48
|
},
|
|
47
49
|
{
|
|
48
50
|
label: e("connect.navigation.program"),
|
|
49
|
-
value:
|
|
51
|
+
value: h["$connect-PROGRAM"],
|
|
50
52
|
children: [
|
|
51
53
|
{
|
|
52
54
|
label: e("connect.navigation.tier"),
|
|
53
|
-
value:
|
|
55
|
+
value: h["$connect-PROGRAM_TIER"]
|
|
54
56
|
},
|
|
55
57
|
{
|
|
56
58
|
label: e("connect.navigation.title"),
|
|
57
|
-
value:
|
|
59
|
+
value: h["$connect-PROGRAM_TITLE"]
|
|
58
60
|
},
|
|
59
61
|
{
|
|
60
62
|
label: e("connect.navigation.experience"),
|
|
61
|
-
value:
|
|
63
|
+
value: h["$connect-PROGRAM_EXPERIENCE"]
|
|
62
64
|
},
|
|
63
65
|
{
|
|
64
66
|
label: e("connect.navigation.point"),
|
|
65
|
-
value:
|
|
66
|
-
badge: () => U(
|
|
67
|
+
value: h["$connect-PROGRAM_POINT"],
|
|
68
|
+
badge: () => U(W.FmPill, { variant: "premium" })
|
|
67
69
|
},
|
|
68
70
|
{
|
|
69
71
|
label: e("connect.navigation.credit"),
|
|
70
|
-
value:
|
|
72
|
+
value: h["$connect-PROGRAM_CREDIT"]
|
|
71
73
|
},
|
|
72
74
|
{
|
|
73
75
|
label: e("connect.navigation.game"),
|
|
74
|
-
value:
|
|
75
|
-
badge: () => U(
|
|
76
|
+
value: h["$connect-PROGRAM_GAME"],
|
|
77
|
+
badge: () => U(W.FmPill, { variant: "premium" })
|
|
76
78
|
},
|
|
77
79
|
{
|
|
78
80
|
label: "Mission",
|
|
79
|
-
value:
|
|
81
|
+
value: h["$connect-PROGRAM_MISSION"]
|
|
80
82
|
}
|
|
81
83
|
]
|
|
82
84
|
},
|
|
83
85
|
{
|
|
84
86
|
label: e("connect.navigation.loyalty"),
|
|
85
|
-
value:
|
|
87
|
+
value: h["$connect-LOYALTY"],
|
|
86
88
|
children: [
|
|
87
89
|
{
|
|
88
90
|
label: e("connect.navigation.member"),
|
|
89
|
-
value:
|
|
91
|
+
value: h["$connect-LOYALTY_MEMBER_LIST"]
|
|
90
92
|
},
|
|
91
93
|
{
|
|
92
94
|
label: e("connect.navigation.segments"),
|
|
93
|
-
value:
|
|
94
|
-
badge: () => U(
|
|
95
|
+
value: h["$connect-LOYALTY_SEGMENT"],
|
|
96
|
+
badge: () => U(W.FmPill, { variant: "premium" })
|
|
95
97
|
},
|
|
96
98
|
{
|
|
97
99
|
label: e("connect.navigation.card"),
|
|
98
|
-
value:
|
|
99
|
-
badge: () => U(
|
|
100
|
+
value: h["$connect-LOYALTY_CARD"],
|
|
101
|
+
badge: () => U(W.FmPill, { variant: "premium" })
|
|
100
102
|
}
|
|
101
103
|
]
|
|
102
104
|
},
|
|
103
105
|
{
|
|
104
106
|
label: e("connect.navigation.whatsappBot"),
|
|
105
|
-
value:
|
|
106
|
-
badge: () => U(
|
|
107
|
+
value: h["$connect-WHATSAPP"],
|
|
108
|
+
badge: () => U(W.FmPill, { variant: "beta" })
|
|
107
109
|
},
|
|
108
110
|
{
|
|
109
111
|
label: e("connect.navigation.referral"),
|
|
110
|
-
value:
|
|
111
|
-
badge: () => U(
|
|
112
|
+
value: h["$connect-REFERRAL"],
|
|
113
|
+
badge: () => U(W.FmPill, { variant: "premium" })
|
|
112
114
|
},
|
|
113
115
|
{
|
|
114
116
|
label: e("connect.navigation.store"),
|
|
115
|
-
value:
|
|
117
|
+
value: h["$connect-STORE"]
|
|
116
118
|
},
|
|
117
119
|
{
|
|
118
120
|
label: e("connect.navigation.transaction"),
|
|
119
|
-
value:
|
|
121
|
+
value: h["$connect-TRANSACTION"]
|
|
120
122
|
},
|
|
121
123
|
{
|
|
122
124
|
label: e("connect.navigation.marketingMaterials"),
|
|
123
|
-
value:
|
|
125
|
+
value: h["$connect-MARKETING"]
|
|
124
126
|
},
|
|
125
127
|
{
|
|
126
128
|
label: e("connect.navigation.auditLogs"),
|
|
127
|
-
value:
|
|
129
|
+
value: h["$connect-AUDIT_LOGS"]
|
|
128
130
|
},
|
|
129
131
|
{
|
|
130
132
|
label: e("connect.navigation.review"),
|
|
131
|
-
value:
|
|
133
|
+
value: h["$connect-REVIEW"]
|
|
132
134
|
},
|
|
133
135
|
{
|
|
134
136
|
label: e("connect.navigation.goals"),
|
|
135
|
-
value:
|
|
136
|
-
badge: () => i.goalsRemaining > 0 ? U(
|
|
137
|
+
value: h["$connect-GOALS"],
|
|
138
|
+
badge: () => i.goalsRemaining > 0 ? U(W.FmBadge, {
|
|
137
139
|
variant: "numeric",
|
|
138
140
|
inline: !0,
|
|
139
141
|
value: i.goalsRemaining
|
|
@@ -141,188 +143,192 @@ const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class
|
|
|
141
143
|
},
|
|
142
144
|
{
|
|
143
145
|
label: e("connect.navigation.setting"),
|
|
144
|
-
value:
|
|
146
|
+
value: h["$connect-SETTING"]
|
|
145
147
|
},
|
|
146
148
|
{
|
|
147
149
|
label: e("connect.navigation.bin"),
|
|
148
|
-
value:
|
|
150
|
+
value: h["$connect-BIN"]
|
|
149
151
|
}
|
|
150
|
-
], o =
|
|
151
|
-
|
|
152
|
-
|
|
152
|
+
], o = Y(
|
|
153
|
+
() => s.filter(
|
|
154
|
+
(f) => f.value !== h["$connect-WHATSAPP"] || In()
|
|
155
|
+
)
|
|
156
|
+
), c = yt(), a = wt(), l = s.reduce((f, I) => [...(I.children ?? []).map((p) => p.value), ...f, I.value], []), d = ge(), m = Y(() => {
|
|
157
|
+
const f = d.currentCountry.value || "MY";
|
|
158
|
+
return console.log(`[MF] Timezone set to: ${Xe[f]}`), Xe[f];
|
|
153
159
|
});
|
|
154
160
|
pe(
|
|
155
161
|
// Watch `route.matched`, not `route`: `useRoute()` returns a reactive object
|
|
156
162
|
// whose identity never changes, so watching it directly fired once via
|
|
157
163
|
// `immediate` and the highlight then stayed on whatever page loaded first.
|
|
158
|
-
() =>
|
|
159
|
-
(
|
|
160
|
-
const
|
|
161
|
-
|
|
164
|
+
() => a.matched,
|
|
165
|
+
(f) => {
|
|
166
|
+
const p = f.map((g) => g.name).reverse().find((g) => l.includes(g));
|
|
167
|
+
p && (r.value = p);
|
|
162
168
|
},
|
|
163
169
|
{ immediate: !0 }
|
|
164
170
|
), pe(
|
|
165
171
|
[() => {
|
|
166
|
-
var
|
|
167
|
-
return (
|
|
168
|
-
}, () =>
|
|
169
|
-
([
|
|
170
|
-
|
|
172
|
+
var f;
|
|
173
|
+
return (f = d.currentBusiness.value) == null ? void 0 : f._id;
|
|
174
|
+
}, () => a.name, t],
|
|
175
|
+
([f]) => {
|
|
176
|
+
f && i.read(t.value, f);
|
|
171
177
|
},
|
|
172
178
|
{ immediate: !0 }
|
|
173
179
|
);
|
|
174
|
-
async function
|
|
175
|
-
await
|
|
180
|
+
async function y(f) {
|
|
181
|
+
await c.push({ name: f });
|
|
176
182
|
}
|
|
177
|
-
return (
|
|
178
|
-
var
|
|
179
|
-
const
|
|
180
|
-
return
|
|
181
|
-
S(
|
|
183
|
+
return (f, I) => {
|
|
184
|
+
var g;
|
|
185
|
+
const p = ee("FmCollapsibleTabs");
|
|
186
|
+
return j(), me("div", Fn, [
|
|
187
|
+
S(p, {
|
|
182
188
|
class: "border-fm-color-neutral-gray-100 border-r px-4",
|
|
183
|
-
"model-value": (
|
|
184
|
-
items:
|
|
185
|
-
"onUpdate:modelValue":
|
|
186
|
-
}, null, 8, ["model-value"]),
|
|
187
|
-
v("div",
|
|
188
|
-
v("div", null, "Timezone: " + R(
|
|
189
|
-
v("div", null, "(UTC" + R(
|
|
189
|
+
"model-value": (g = _(r)) == null ? void 0 : g.toString(),
|
|
190
|
+
items: _(o),
|
|
191
|
+
"onUpdate:modelValue": y
|
|
192
|
+
}, null, 8, ["model-value", "items"]),
|
|
193
|
+
v("div", Vn, [
|
|
194
|
+
v("div", null, "Timezone: " + R(_(m).split("/")[1].replace("_", " ")), 1),
|
|
195
|
+
v("div", null, "(UTC" + R(_(vn).tz(_(m)).format("Z")) + ")", 1)
|
|
190
196
|
])
|
|
191
197
|
]);
|
|
192
198
|
};
|
|
193
199
|
}
|
|
194
200
|
}), St = "feedme_connect_marketing_promo_hidden";
|
|
195
|
-
function
|
|
201
|
+
function Hn() {
|
|
196
202
|
try {
|
|
197
203
|
return localStorage.getItem(St) !== null;
|
|
198
204
|
} catch {
|
|
199
205
|
return !1;
|
|
200
206
|
}
|
|
201
207
|
}
|
|
202
|
-
function
|
|
208
|
+
function Wn() {
|
|
203
209
|
try {
|
|
204
210
|
localStorage.setItem(St, (/* @__PURE__ */ new Date()).toISOString());
|
|
205
211
|
} catch {
|
|
206
212
|
}
|
|
207
213
|
}
|
|
208
|
-
const jn = { class: "flex flex-col gap-12" },
|
|
214
|
+
const jn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, Gn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, zn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, qn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Kn = { class: "flex flex-col gap-24 pb-8" }, Jn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Yn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Xn = { class: "fm-typo-en-body-lg-600" }, Qn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Zn = { class: "shrink-0" }, ei = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ti = { class: "flex w-full flex-col gap-12 px-[16px]" }, ni = { class: "flex flex-wrap items-center gap-12" }, ii = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, ri = /* @__PURE__ */ xe({
|
|
209
215
|
__name: "AiMarketingPromoDialog",
|
|
210
216
|
setup(n) {
|
|
211
217
|
let e = !1;
|
|
212
|
-
const { t } = Tt(), i = yt(), { sessionUser: r, currentCountry: s } = ge(), o =
|
|
218
|
+
const { t } = Tt(), i = yt(), { sessionUser: r, currentCountry: s } = ge(), o = te(!1), c = [
|
|
213
219
|
{ key: "completeContent", icon: "layers" },
|
|
214
220
|
{ key: "realContext", icon: "storefront" },
|
|
215
221
|
{ key: "socialFormat", icon: "aspect_ratio" }
|
|
216
|
-
], a =
|
|
217
|
-
var
|
|
218
|
-
const
|
|
219
|
-
return
|
|
222
|
+
], a = Y(() => {
|
|
223
|
+
var I;
|
|
224
|
+
const f = ((I = r.value) == null ? void 0 : I.permissions) ?? [];
|
|
225
|
+
return wn(
|
|
220
226
|
[
|
|
221
227
|
{
|
|
222
228
|
action: Qe.Action.manage,
|
|
223
229
|
subject: Qe.Subject.Business.crm_marketingMaterial
|
|
224
230
|
}
|
|
225
231
|
],
|
|
226
|
-
|
|
232
|
+
f
|
|
227
233
|
).granted;
|
|
228
|
-
}), l =
|
|
234
|
+
}), l = Y(
|
|
229
235
|
() => s.value === "MY" && a.value
|
|
230
236
|
);
|
|
231
237
|
let d = !1;
|
|
232
238
|
pe(
|
|
233
239
|
l,
|
|
234
|
-
(
|
|
235
|
-
d || !
|
|
240
|
+
(f) => {
|
|
241
|
+
d || !f || (d = !0, !(Hn() || e) && (e = !0, o.value = !0));
|
|
236
242
|
},
|
|
237
243
|
{ immediate: !0 }
|
|
238
244
|
);
|
|
239
245
|
async function m() {
|
|
240
|
-
o.value = !1, await i.push({ name:
|
|
246
|
+
o.value = !1, await i.push({ name: h["$connect-MARKETING"] });
|
|
241
247
|
}
|
|
242
|
-
function
|
|
243
|
-
|
|
248
|
+
function y() {
|
|
249
|
+
Wn(), o.value = !1;
|
|
244
250
|
}
|
|
245
|
-
return (
|
|
246
|
-
const p =
|
|
247
|
-
return
|
|
251
|
+
return (f, I) => {
|
|
252
|
+
const p = ee("FmIcon"), g = ee("FmCard"), T = ee("FmButton"), M = ee("FmDialog");
|
|
253
|
+
return j(), Oe(M, {
|
|
248
254
|
modelValue: o.value,
|
|
249
|
-
"onUpdate:modelValue":
|
|
255
|
+
"onUpdate:modelValue": I[0] || (I[0] = (k) => o.value = k),
|
|
250
256
|
"min-width": "min(500px, calc(100% - 48px))",
|
|
251
257
|
"max-width": "min(860px, calc(100% - 48px))",
|
|
252
258
|
"max-height": "90vh",
|
|
253
259
|
"dismiss-away": ""
|
|
254
260
|
}, {
|
|
255
|
-
"dialog-header":
|
|
261
|
+
"dialog-header": Z(() => [
|
|
256
262
|
v("div", jn, [
|
|
257
|
-
v("div",
|
|
263
|
+
v("div", Bn, [
|
|
258
264
|
S(p, {
|
|
259
265
|
name: "auto_awesome",
|
|
260
266
|
size: "sm",
|
|
261
267
|
color: "primary"
|
|
262
268
|
}),
|
|
263
|
-
v("span", Gn, R(
|
|
269
|
+
v("span", Gn, R(_(t)("connect.marketing.whatsNew.badge")), 1)
|
|
264
270
|
]),
|
|
265
|
-
v("h1",
|
|
266
|
-
v("p",
|
|
271
|
+
v("h1", zn, R(_(t)("connect.marketing.whatsNew.title")), 1),
|
|
272
|
+
v("p", qn, R(_(t)("connect.marketing.whatsNew.subtitle")), 1)
|
|
267
273
|
])
|
|
268
274
|
]),
|
|
269
|
-
"dialog-footer":
|
|
270
|
-
v("div",
|
|
271
|
-
v("div",
|
|
275
|
+
"dialog-footer": Z(() => [
|
|
276
|
+
v("div", ti, [
|
|
277
|
+
v("div", ni, [
|
|
272
278
|
S(T, {
|
|
273
279
|
variant: "primary",
|
|
274
280
|
size: "lg",
|
|
275
|
-
label:
|
|
281
|
+
label: _(t)("connect.marketing.whatsNew.cta"),
|
|
276
282
|
"append-icon": "arrow_forward",
|
|
277
283
|
onClick: m
|
|
278
284
|
}, null, 8, ["label"]),
|
|
279
285
|
S(T, {
|
|
280
286
|
variant: "tertiary",
|
|
281
287
|
size: "lg",
|
|
282
|
-
label:
|
|
283
|
-
onClick:
|
|
288
|
+
label: _(t)("connect.marketing.whatsNew.dismiss"),
|
|
289
|
+
onClick: y
|
|
284
290
|
}, null, 8, ["label"])
|
|
285
291
|
]),
|
|
286
|
-
v("div",
|
|
292
|
+
v("div", ii, R(_(t)("connect.marketing.whatsNew.footnote")), 1)
|
|
287
293
|
])
|
|
288
294
|
]),
|
|
289
|
-
default:
|
|
290
|
-
v("div",
|
|
291
|
-
v("div",
|
|
292
|
-
(
|
|
295
|
+
default: Z(() => [
|
|
296
|
+
v("div", Kn, [
|
|
297
|
+
v("div", Jn, [
|
|
298
|
+
(j(), me(It, null, ln(c, (k) => S(g, {
|
|
293
299
|
key: k.key,
|
|
294
300
|
variant: "outlined",
|
|
295
301
|
class: "!h-full flex flex-col gap-8 p-16"
|
|
296
302
|
}, {
|
|
297
|
-
default:
|
|
298
|
-
v("div",
|
|
303
|
+
default: Z(() => [
|
|
304
|
+
v("div", Yn, [
|
|
299
305
|
S(p, {
|
|
300
306
|
name: k.icon,
|
|
301
307
|
size: "md",
|
|
302
308
|
color: "primary"
|
|
303
309
|
}, null, 8, ["name"])
|
|
304
310
|
]),
|
|
305
|
-
v("div",
|
|
306
|
-
v("div",
|
|
311
|
+
v("div", Xn, R(_(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
|
|
312
|
+
v("div", Qn, R(_(t)(
|
|
307
313
|
`connect.marketing.whatsNew.benefits.${k.key}.description`
|
|
308
314
|
)), 1)
|
|
309
315
|
]),
|
|
310
316
|
_: 2
|
|
311
317
|
}, 1024)), 64))
|
|
312
318
|
]),
|
|
313
|
-
S(
|
|
319
|
+
S(g, {
|
|
314
320
|
variant: "outlined",
|
|
315
321
|
class: "flex items-start gap-12 p-16"
|
|
316
322
|
}, {
|
|
317
|
-
default:
|
|
318
|
-
v("div",
|
|
323
|
+
default: Z(() => [
|
|
324
|
+
v("div", Zn, [
|
|
319
325
|
S(p, {
|
|
320
326
|
name: "lightbulb",
|
|
321
327
|
size: "md",
|
|
322
328
|
color: "primary"
|
|
323
329
|
})
|
|
324
330
|
]),
|
|
325
|
-
v("p",
|
|
331
|
+
v("p", ei, R(_(t)("connect.marketing.whatsNew.callout")), 1)
|
|
326
332
|
]),
|
|
327
333
|
_: 1
|
|
328
334
|
})
|
|
@@ -333,7 +339,7 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
|
|
|
333
339
|
};
|
|
334
340
|
}
|
|
335
341
|
});
|
|
336
|
-
var
|
|
342
|
+
var si = "firebase", oi = "10.12.4";
|
|
337
343
|
/**
|
|
338
344
|
* @license
|
|
339
345
|
* Copyright 2020 Google LLC
|
|
@@ -350,13 +356,13 @@ var ri = "firebase", si = "10.12.4";
|
|
|
350
356
|
* See the License for the specific language governing permissions and
|
|
351
357
|
* limitations under the License.
|
|
352
358
|
*/
|
|
353
|
-
Le(
|
|
359
|
+
Le(si, oi, "app");
|
|
354
360
|
function Rt() {
|
|
355
361
|
return {
|
|
356
362
|
"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."
|
|
357
363
|
};
|
|
358
364
|
}
|
|
359
|
-
const
|
|
365
|
+
const ai = Rt, At = new Fe("auth", "Firebase", Rt());
|
|
360
366
|
/**
|
|
361
367
|
* @license
|
|
362
368
|
* Copyright 2020 Google LLC
|
|
@@ -373,8 +379,8 @@ const oi = Rt, At = new Fe("auth", "Firebase", Rt());
|
|
|
373
379
|
* See the License for the specific language governing permissions and
|
|
374
380
|
* limitations under the License.
|
|
375
381
|
*/
|
|
376
|
-
const _e = new
|
|
377
|
-
function
|
|
382
|
+
const _e = new kn("@firebase/auth");
|
|
383
|
+
function ci(n, ...e) {
|
|
378
384
|
_e.logLevel <= Et.WARN && _e.warn(`Auth (${re}): ${n}`, ...e);
|
|
379
385
|
}
|
|
380
386
|
function ue(n, ...e) {
|
|
@@ -403,7 +409,7 @@ function b(n, ...e) {
|
|
|
403
409
|
return He(n, ...e);
|
|
404
410
|
}
|
|
405
411
|
function Pt(n, e, t) {
|
|
406
|
-
const i = Object.assign(Object.assign({},
|
|
412
|
+
const i = Object.assign(Object.assign({}, ai()), { [e]: t });
|
|
407
413
|
return new Fe("auth", "Firebase", i).create(e, {
|
|
408
414
|
appName: n.name
|
|
409
415
|
});
|
|
@@ -449,7 +455,7 @@ function Me() {
|
|
|
449
455
|
var n;
|
|
450
456
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
|
451
457
|
}
|
|
452
|
-
function
|
|
458
|
+
function li() {
|
|
453
459
|
return nt() === "http:" || nt() === "https:";
|
|
454
460
|
}
|
|
455
461
|
function nt() {
|
|
@@ -472,15 +478,15 @@ function nt() {
|
|
|
472
478
|
* See the License for the specific language governing permissions and
|
|
473
479
|
* limitations under the License.
|
|
474
480
|
*/
|
|
475
|
-
function
|
|
481
|
+
function ui() {
|
|
476
482
|
return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
|
|
477
483
|
// This is especially true for Cordova apps which have unreliable
|
|
478
484
|
// navigator.onLine behavior unless cordova-plugin-network-information is
|
|
479
485
|
// installed which overwrites the native navigator.onLine value and
|
|
480
486
|
// defines navigator.connection.
|
|
481
|
-
(
|
|
487
|
+
(li() || Sn() || "connection" in navigator) ? navigator.onLine : !0;
|
|
482
488
|
}
|
|
483
|
-
function
|
|
489
|
+
function di() {
|
|
484
490
|
if (typeof navigator > "u")
|
|
485
491
|
return null;
|
|
486
492
|
const n = navigator;
|
|
@@ -510,10 +516,10 @@ function ui() {
|
|
|
510
516
|
*/
|
|
511
517
|
class oe {
|
|
512
518
|
constructor(e, t) {
|
|
513
|
-
this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile =
|
|
519
|
+
this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = bn() || En();
|
|
514
520
|
}
|
|
515
521
|
get() {
|
|
516
|
-
return
|
|
522
|
+
return ui() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
|
517
523
|
}
|
|
518
524
|
}
|
|
519
525
|
/**
|
|
@@ -532,7 +538,7 @@ class oe {
|
|
|
532
538
|
* See the License for the specific language governing permissions and
|
|
533
539
|
* limitations under the License.
|
|
534
540
|
*/
|
|
535
|
-
function
|
|
541
|
+
function We(n, e) {
|
|
536
542
|
L(n.emulator, "Emulator should always be set here");
|
|
537
543
|
const { url: t } = n.emulator;
|
|
538
544
|
return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
|
|
@@ -607,7 +613,7 @@ class Ct {
|
|
|
607
613
|
* See the License for the specific language governing permissions and
|
|
608
614
|
* limitations under the License.
|
|
609
615
|
*/
|
|
610
|
-
const
|
|
616
|
+
const hi = {
|
|
611
617
|
// Custom token errors.
|
|
612
618
|
CREDENTIAL_MISMATCH: "custom-token-mismatch",
|
|
613
619
|
// This can only happen if the SDK sends a bad request.
|
|
@@ -698,11 +704,11 @@ const di = {
|
|
|
698
704
|
* See the License for the specific language governing permissions and
|
|
699
705
|
* limitations under the License.
|
|
700
706
|
*/
|
|
701
|
-
const
|
|
707
|
+
const fi = new oe(3e4, 6e4);
|
|
702
708
|
function Te(n, e) {
|
|
703
709
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
|
704
710
|
}
|
|
705
|
-
async function
|
|
711
|
+
async function Q(n, e, t, i, r = {}) {
|
|
706
712
|
return Nt(n, r, async () => {
|
|
707
713
|
let s = {}, o = {};
|
|
708
714
|
i && (e === "GET" ? o = i : s = {
|
|
@@ -724,9 +730,9 @@ async function X(n, e, t, i, r = {}) {
|
|
|
724
730
|
}
|
|
725
731
|
async function Nt(n, e, t) {
|
|
726
732
|
n._canInitEmulator = !1;
|
|
727
|
-
const i = Object.assign(Object.assign({},
|
|
733
|
+
const i = Object.assign(Object.assign({}, hi), e);
|
|
728
734
|
try {
|
|
729
|
-
const r = new
|
|
735
|
+
const r = new pi(n), s = await Promise.race([
|
|
730
736
|
t(),
|
|
731
737
|
r.promise
|
|
732
738
|
]);
|
|
@@ -756,23 +762,23 @@ async function Nt(n, e, t) {
|
|
|
756
762
|
}
|
|
757
763
|
}
|
|
758
764
|
async function Ot(n, e, t, i, r = {}) {
|
|
759
|
-
const s = await
|
|
765
|
+
const s = await Q(n, e, t, i, r);
|
|
760
766
|
return "mfaPendingCredential" in s && O(n, "multi-factor-auth-required", {
|
|
761
767
|
_serverResponse: s
|
|
762
768
|
}), s;
|
|
763
769
|
}
|
|
764
770
|
function Lt(n, e, t, i) {
|
|
765
771
|
const r = `${e}${t}?${i}`;
|
|
766
|
-
return n.config.emulator ?
|
|
772
|
+
return n.config.emulator ? We(n.config, r) : `${n.config.apiScheme}://${r}`;
|
|
767
773
|
}
|
|
768
|
-
class
|
|
774
|
+
class pi {
|
|
769
775
|
constructor(e) {
|
|
770
776
|
this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
|
|
771
777
|
this.timer = setTimeout(() => i(b(
|
|
772
778
|
this.auth,
|
|
773
779
|
"network-request-failed"
|
|
774
780
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
775
|
-
)),
|
|
781
|
+
)), fi.get());
|
|
776
782
|
});
|
|
777
783
|
}
|
|
778
784
|
clearNetworkTimeout() {
|
|
@@ -803,11 +809,11 @@ function le(n, e, t) {
|
|
|
803
809
|
* See the License for the specific language governing permissions and
|
|
804
810
|
* limitations under the License.
|
|
805
811
|
*/
|
|
806
|
-
async function
|
|
807
|
-
return
|
|
812
|
+
async function mi(n, e) {
|
|
813
|
+
return Q(n, "POST", "/v1/accounts:delete", e);
|
|
808
814
|
}
|
|
809
815
|
async function Mt(n, e) {
|
|
810
|
-
return
|
|
816
|
+
return Q(n, "POST", "/v1/accounts:lookup", e);
|
|
811
817
|
}
|
|
812
818
|
/**
|
|
813
819
|
* @license
|
|
@@ -825,7 +831,7 @@ async function Mt(n, e) {
|
|
|
825
831
|
* See the License for the specific language governing permissions and
|
|
826
832
|
* limitations under the License.
|
|
827
833
|
*/
|
|
828
|
-
function
|
|
834
|
+
function ne(n) {
|
|
829
835
|
if (n)
|
|
830
836
|
try {
|
|
831
837
|
const e = new Date(Number(n));
|
|
@@ -834,8 +840,8 @@ function te(n) {
|
|
|
834
840
|
} catch {
|
|
835
841
|
}
|
|
836
842
|
}
|
|
837
|
-
async function
|
|
838
|
-
const t =
|
|
843
|
+
async function gi(n, e = !1) {
|
|
844
|
+
const t = X(n), i = await t.getIdToken(e), r = je(i);
|
|
839
845
|
u(
|
|
840
846
|
r && r.exp && r.auth_time && r.iat,
|
|
841
847
|
t.auth,
|
|
@@ -846,9 +852,9 @@ async function mi(n, e = !1) {
|
|
|
846
852
|
return {
|
|
847
853
|
claims: r,
|
|
848
854
|
token: i,
|
|
849
|
-
authTime:
|
|
850
|
-
issuedAtTime:
|
|
851
|
-
expirationTime:
|
|
855
|
+
authTime: ne(Ce(r.auth_time)),
|
|
856
|
+
issuedAtTime: ne(Ce(r.iat)),
|
|
857
|
+
expirationTime: ne(Ce(r.exp)),
|
|
852
858
|
signInProvider: o || null,
|
|
853
859
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
|
854
860
|
};
|
|
@@ -856,19 +862,19 @@ async function mi(n, e = !1) {
|
|
|
856
862
|
function Ce(n) {
|
|
857
863
|
return Number(n) * 1e3;
|
|
858
864
|
}
|
|
859
|
-
function
|
|
865
|
+
function je(n) {
|
|
860
866
|
const [e, t, i] = n.split(".");
|
|
861
867
|
if (e === void 0 || t === void 0 || i === void 0)
|
|
862
868
|
return ue("JWT malformed, contained fewer than 3 sections"), null;
|
|
863
869
|
try {
|
|
864
|
-
const r =
|
|
870
|
+
const r = Nn(t);
|
|
865
871
|
return r ? JSON.parse(r) : (ue("Failed to decode base64 JWT payload"), null);
|
|
866
872
|
} catch (r) {
|
|
867
873
|
return ue("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
|
|
868
874
|
}
|
|
869
875
|
}
|
|
870
876
|
function it(n) {
|
|
871
|
-
const e =
|
|
877
|
+
const e = je(n);
|
|
872
878
|
return u(
|
|
873
879
|
e,
|
|
874
880
|
"internal-error"
|
|
@@ -905,10 +911,10 @@ async function ie(n, e, t = !1) {
|
|
|
905
911
|
try {
|
|
906
912
|
return await e;
|
|
907
913
|
} catch (i) {
|
|
908
|
-
throw i instanceof Ve &&
|
|
914
|
+
throw i instanceof Ve && _i(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
|
|
909
915
|
}
|
|
910
916
|
}
|
|
911
|
-
function
|
|
917
|
+
function _i({ code: n }) {
|
|
912
918
|
return n === "auth/user-disabled" || n === "auth/user-token-expired";
|
|
913
919
|
}
|
|
914
920
|
/**
|
|
@@ -927,7 +933,7 @@ function gi({ code: n }) {
|
|
|
927
933
|
* See the License for the specific language governing permissions and
|
|
928
934
|
* limitations under the License.
|
|
929
935
|
*/
|
|
930
|
-
class
|
|
936
|
+
class vi {
|
|
931
937
|
constructor(e) {
|
|
932
938
|
this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
|
|
933
939
|
}
|
|
@@ -994,7 +1000,7 @@ class Ue {
|
|
|
994
1000
|
this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
|
|
995
1001
|
}
|
|
996
1002
|
_initializeTime() {
|
|
997
|
-
this.lastSignInTime =
|
|
1003
|
+
this.lastSignInTime = ne(this.lastLoginAt), this.creationTime = ne(this.createdAt);
|
|
998
1004
|
}
|
|
999
1005
|
_copy(e) {
|
|
1000
1006
|
this.createdAt = e.createdAt, this.lastLoginAt = e.lastLoginAt, this._initializeTime();
|
|
@@ -1033,7 +1039,7 @@ async function ve(n) {
|
|
|
1033
1039
|
);
|
|
1034
1040
|
const s = r.users[0];
|
|
1035
1041
|
n._notifyReloadListener(s);
|
|
1036
|
-
const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c =
|
|
1042
|
+
const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = yi(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
|
|
1037
1043
|
uid: s.localId,
|
|
1038
1044
|
displayName: s.displayName || null,
|
|
1039
1045
|
photoURL: s.photoUrl || null,
|
|
@@ -1047,11 +1053,11 @@ async function ve(n) {
|
|
|
1047
1053
|
};
|
|
1048
1054
|
Object.assign(n, m);
|
|
1049
1055
|
}
|
|
1050
|
-
async function
|
|
1051
|
-
const e =
|
|
1056
|
+
async function Ii(n) {
|
|
1057
|
+
const e = X(n);
|
|
1052
1058
|
await ve(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
1053
1059
|
}
|
|
1054
|
-
function
|
|
1060
|
+
function yi(n, e) {
|
|
1055
1061
|
return [...n.filter((i) => !e.some((r) => r.providerId === i.providerId)), ...e];
|
|
1056
1062
|
}
|
|
1057
1063
|
function Ut(n) {
|
|
@@ -1083,7 +1089,7 @@ function Ut(n) {
|
|
|
1083
1089
|
* See the License for the specific language governing permissions and
|
|
1084
1090
|
* limitations under the License.
|
|
1085
1091
|
*/
|
|
1086
|
-
async function
|
|
1092
|
+
async function wi(n, e) {
|
|
1087
1093
|
const t = await Nt(n, {}, async () => {
|
|
1088
1094
|
const i = se({
|
|
1089
1095
|
grant_type: "refresh_token",
|
|
@@ -1104,8 +1110,8 @@ async function yi(n, e) {
|
|
|
1104
1110
|
refreshToken: t.refresh_token
|
|
1105
1111
|
};
|
|
1106
1112
|
}
|
|
1107
|
-
async function
|
|
1108
|
-
return
|
|
1113
|
+
async function Ti(n, e) {
|
|
1114
|
+
return Q(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
|
|
1109
1115
|
}
|
|
1110
1116
|
/**
|
|
1111
1117
|
* @license
|
|
@@ -1168,7 +1174,7 @@ class q {
|
|
|
1168
1174
|
this.refreshToken = null;
|
|
1169
1175
|
}
|
|
1170
1176
|
async refresh(e, t) {
|
|
1171
|
-
const { accessToken: i, refreshToken: r, expiresIn: s } = await
|
|
1177
|
+
const { accessToken: i, refreshToken: r, expiresIn: s } = await wi(e, t);
|
|
1172
1178
|
this.updateTokensAndExpiration(i, r, Number(s));
|
|
1173
1179
|
}
|
|
1174
1180
|
updateTokensAndExpiration(e, t, i) {
|
|
@@ -1223,7 +1229,7 @@ function D(n, e) {
|
|
|
1223
1229
|
class C {
|
|
1224
1230
|
constructor(e) {
|
|
1225
1231
|
var { uid: t, auth: i, stsTokenManager: r } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
|
|
1226
|
-
this.providerId = "firebase", this.proactiveRefresh = new
|
|
1232
|
+
this.providerId = "firebase", this.proactiveRefresh = new vi(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);
|
|
1227
1233
|
}
|
|
1228
1234
|
async getIdToken(e) {
|
|
1229
1235
|
const t = await ie(this, this.stsTokenManager.getToken(this.auth, e));
|
|
@@ -1235,10 +1241,10 @@ class C {
|
|
|
1235
1241
|
), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
|
|
1236
1242
|
}
|
|
1237
1243
|
getIdTokenResult(e) {
|
|
1238
|
-
return
|
|
1244
|
+
return gi(this, e);
|
|
1239
1245
|
}
|
|
1240
1246
|
reload() {
|
|
1241
|
-
return
|
|
1247
|
+
return Ii(this);
|
|
1242
1248
|
}
|
|
1243
1249
|
_assign(e) {
|
|
1244
1250
|
this !== e && (u(
|
|
@@ -1277,7 +1283,7 @@ class C {
|
|
|
1277
1283
|
if (A(this.auth.app))
|
|
1278
1284
|
return Promise.reject(H(this.auth));
|
|
1279
1285
|
const e = await this.getIdToken();
|
|
1280
|
-
return await ie(this,
|
|
1286
|
+
return await ie(this, mi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
1281
1287
|
}
|
|
1282
1288
|
toJSON() {
|
|
1283
1289
|
return Object.assign(Object.assign({
|
|
@@ -1305,7 +1311,7 @@ class C {
|
|
|
1305
1311
|
}
|
|
1306
1312
|
static _fromJSON(e, t) {
|
|
1307
1313
|
var i, r, s, o, c, a, l, d;
|
|
1308
|
-
const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0,
|
|
1314
|
+
const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, y = (r = t.email) !== null && r !== void 0 ? r : void 0, f = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, I = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, p = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, g = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, T = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
|
|
1309
1315
|
u(
|
|
1310
1316
|
k && Ye,
|
|
1311
1317
|
e,
|
|
@@ -1318,7 +1324,7 @@ class C {
|
|
|
1318
1324
|
e,
|
|
1319
1325
|
"internal-error"
|
|
1320
1326
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1321
|
-
), D(m, e.name), D(
|
|
1327
|
+
), D(m, e.name), D(y, e.name), u(
|
|
1322
1328
|
typeof Ke == "boolean",
|
|
1323
1329
|
e,
|
|
1324
1330
|
"internal-error"
|
|
@@ -1328,22 +1334,22 @@ class C {
|
|
|
1328
1334
|
e,
|
|
1329
1335
|
"internal-error"
|
|
1330
1336
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1331
|
-
), D(
|
|
1337
|
+
), D(f, e.name), D(I, e.name), D(p, e.name), D(g, e.name), D(T, e.name), D(M, e.name);
|
|
1332
1338
|
const Ae = new C({
|
|
1333
1339
|
uid: k,
|
|
1334
1340
|
auth: e,
|
|
1335
|
-
email:
|
|
1341
|
+
email: y,
|
|
1336
1342
|
emailVerified: Ke,
|
|
1337
1343
|
displayName: m,
|
|
1338
1344
|
isAnonymous: Je,
|
|
1339
|
-
photoURL:
|
|
1340
|
-
phoneNumber:
|
|
1345
|
+
photoURL: I,
|
|
1346
|
+
phoneNumber: f,
|
|
1341
1347
|
tenantId: p,
|
|
1342
1348
|
stsTokenManager: on,
|
|
1343
1349
|
createdAt: T,
|
|
1344
1350
|
lastLoginAt: M
|
|
1345
1351
|
});
|
|
1346
|
-
return Re && Array.isArray(Re) && (Ae.providerData = Re.map((an) => Object.assign({}, an))),
|
|
1352
|
+
return Re && Array.isArray(Re) && (Ae.providerData = Re.map((an) => Object.assign({}, an))), g && (Ae._redirectEventId = g), Ae;
|
|
1347
1353
|
}
|
|
1348
1354
|
/**
|
|
1349
1355
|
* Initialize a User from an idToken server response
|
|
@@ -1567,9 +1573,9 @@ function ot(n) {
|
|
|
1567
1573
|
return "Silk";
|
|
1568
1574
|
if (Ht(e))
|
|
1569
1575
|
return "Blackberry";
|
|
1570
|
-
if (
|
|
1576
|
+
if (Wt(e))
|
|
1571
1577
|
return "Webos";
|
|
1572
|
-
if (
|
|
1578
|
+
if (Be(e))
|
|
1573
1579
|
return "Safari";
|
|
1574
1580
|
if ((e.includes("chrome/") || Ft(e)) && !e.includes("edge/"))
|
|
1575
1581
|
return "Chrome";
|
|
@@ -1585,7 +1591,7 @@ function ot(n) {
|
|
|
1585
1591
|
function xt(n = w()) {
|
|
1586
1592
|
return /firefox\//i.test(n);
|
|
1587
1593
|
}
|
|
1588
|
-
function
|
|
1594
|
+
function Be(n = w()) {
|
|
1589
1595
|
const e = n.toLowerCase();
|
|
1590
1596
|
return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
|
|
1591
1597
|
}
|
|
@@ -1601,23 +1607,23 @@ function $t(n = w()) {
|
|
|
1601
1607
|
function Ht(n = w()) {
|
|
1602
1608
|
return /blackberry/i.test(n);
|
|
1603
1609
|
}
|
|
1604
|
-
function
|
|
1610
|
+
function Wt(n = w()) {
|
|
1605
1611
|
return /webos/i.test(n);
|
|
1606
1612
|
}
|
|
1607
1613
|
function ke(n = w()) {
|
|
1608
1614
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
|
1609
1615
|
}
|
|
1610
|
-
function
|
|
1616
|
+
function ki(n = w()) {
|
|
1611
1617
|
var e;
|
|
1612
1618
|
return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
|
1613
1619
|
}
|
|
1614
|
-
function
|
|
1615
|
-
return
|
|
1620
|
+
function bi() {
|
|
1621
|
+
return On() && document.documentMode === 10;
|
|
1616
1622
|
}
|
|
1617
|
-
function
|
|
1618
|
-
return ke(n) || $t(n) ||
|
|
1623
|
+
function jt(n = w()) {
|
|
1624
|
+
return ke(n) || $t(n) || Wt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
|
|
1619
1625
|
}
|
|
1620
|
-
function
|
|
1626
|
+
function Ei() {
|
|
1621
1627
|
try {
|
|
1622
1628
|
return !!(window && window !== window.top);
|
|
1623
1629
|
} catch {
|
|
@@ -1640,7 +1646,7 @@ function bi() {
|
|
|
1640
1646
|
* See the License for the specific language governing permissions and
|
|
1641
1647
|
* limitations under the License.
|
|
1642
1648
|
*/
|
|
1643
|
-
function
|
|
1649
|
+
function Bt(n, e = []) {
|
|
1644
1650
|
let t;
|
|
1645
1651
|
switch (n) {
|
|
1646
1652
|
case "Browser":
|
|
@@ -1671,7 +1677,7 @@ function Gt(n, e = []) {
|
|
|
1671
1677
|
* See the License for the specific language governing permissions and
|
|
1672
1678
|
* limitations under the License.
|
|
1673
1679
|
*/
|
|
1674
|
-
class
|
|
1680
|
+
class Si {
|
|
1675
1681
|
constructor(e) {
|
|
1676
1682
|
this.auth = e, this.queue = [];
|
|
1677
1683
|
}
|
|
@@ -1726,8 +1732,8 @@ class Ei {
|
|
|
1726
1732
|
* See the License for the specific language governing permissions and
|
|
1727
1733
|
* limitations under the License.
|
|
1728
1734
|
*/
|
|
1729
|
-
async function
|
|
1730
|
-
return
|
|
1735
|
+
async function Ri(n, e = {}) {
|
|
1736
|
+
return Q(n, "GET", "/v2/passwordPolicy", Te(n, e));
|
|
1731
1737
|
}
|
|
1732
1738
|
/**
|
|
1733
1739
|
* @license
|
|
@@ -1745,12 +1751,12 @@ async function Si(n, e = {}) {
|
|
|
1745
1751
|
* See the License for the specific language governing permissions and
|
|
1746
1752
|
* limitations under the License.
|
|
1747
1753
|
*/
|
|
1748
|
-
const
|
|
1749
|
-
class
|
|
1754
|
+
const Ai = 6;
|
|
1755
|
+
class Pi {
|
|
1750
1756
|
constructor(e) {
|
|
1751
1757
|
var t, i, r, s;
|
|
1752
1758
|
const o = e.customStrengthOptions;
|
|
1753
|
-
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t :
|
|
1759
|
+
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Ai, 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;
|
|
1754
1760
|
}
|
|
1755
1761
|
validatePassword(e) {
|
|
1756
1762
|
var t, i, r, s, o, c;
|
|
@@ -1833,9 +1839,9 @@ class Ai {
|
|
|
1833
1839
|
* See the License for the specific language governing permissions and
|
|
1834
1840
|
* limitations under the License.
|
|
1835
1841
|
*/
|
|
1836
|
-
class
|
|
1842
|
+
class Ci {
|
|
1837
1843
|
constructor(e, t, i, r) {
|
|
1838
|
-
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
|
|
1844
|
+
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 Si(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 = At, 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;
|
|
1839
1845
|
}
|
|
1840
1846
|
_initializeWithPersistence(e, t) {
|
|
1841
1847
|
return t && (this._popupRedirectResolver = N(t)), this._initializationPromise = this.queue(async () => {
|
|
@@ -1929,7 +1935,7 @@ class Pi {
|
|
|
1929
1935
|
return this.directlySetCurrentUser(e);
|
|
1930
1936
|
}
|
|
1931
1937
|
useDeviceLanguage() {
|
|
1932
|
-
this.languageCode =
|
|
1938
|
+
this.languageCode = di();
|
|
1933
1939
|
}
|
|
1934
1940
|
async _delete() {
|
|
1935
1941
|
this._deleted = !0;
|
|
@@ -1937,7 +1943,7 @@ class Pi {
|
|
|
1937
1943
|
async updateCurrentUser(e) {
|
|
1938
1944
|
if (A(this.app))
|
|
1939
1945
|
return Promise.reject(H(this));
|
|
1940
|
-
const t = e ?
|
|
1946
|
+
const t = e ? X(e) : null;
|
|
1941
1947
|
return t && u(
|
|
1942
1948
|
t.auth.config.apiKey === this.config.apiKey,
|
|
1943
1949
|
this,
|
|
@@ -1980,7 +1986,7 @@ class Pi {
|
|
|
1980
1986
|
return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
|
|
1981
1987
|
}
|
|
1982
1988
|
async _updatePasswordPolicy() {
|
|
1983
|
-
const e = await
|
|
1989
|
+
const e = await Ri(this), t = new Pi(e);
|
|
1984
1990
|
this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
|
|
1985
1991
|
}
|
|
1986
1992
|
_getPersistence() {
|
|
@@ -2020,7 +2026,7 @@ class Pi {
|
|
|
2020
2026
|
token: e,
|
|
2021
2027
|
idToken: t
|
|
2022
2028
|
};
|
|
2023
|
-
this.tenantId != null && (i.tenantId = this.tenantId), await
|
|
2029
|
+
this.tenantId != null && (i.tenantId = this.tenantId), await Ti(this, i);
|
|
2024
2030
|
}
|
|
2025
2031
|
}
|
|
2026
2032
|
toJSON() {
|
|
@@ -2133,7 +2139,7 @@ class Pi {
|
|
|
2133
2139
|
), this.persistenceManager;
|
|
2134
2140
|
}
|
|
2135
2141
|
_logFramework(e) {
|
|
2136
|
-
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion =
|
|
2142
|
+
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Bt(this.config.clientPlatform, this._getFrameworks()));
|
|
2137
2143
|
}
|
|
2138
2144
|
_getFrameworks() {
|
|
2139
2145
|
return this.frameworks;
|
|
@@ -2163,15 +2169,15 @@ class Pi {
|
|
|
2163
2169
|
async _getAppCheckToken() {
|
|
2164
2170
|
var e;
|
|
2165
2171
|
const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
|
|
2166
|
-
return t != null && t.error &&
|
|
2172
|
+
return t != null && t.error && ci(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
|
2167
2173
|
}
|
|
2168
2174
|
}
|
|
2169
2175
|
function be(n) {
|
|
2170
|
-
return
|
|
2176
|
+
return X(n);
|
|
2171
2177
|
}
|
|
2172
2178
|
class at {
|
|
2173
2179
|
constructor(e) {
|
|
2174
|
-
this.auth = e, this.observer = null, this.addObserver =
|
|
2180
|
+
this.auth = e, this.observer = null, this.addObserver = Rn((t) => this.observer = t);
|
|
2175
2181
|
}
|
|
2176
2182
|
get next() {
|
|
2177
2183
|
return u(
|
|
@@ -2198,7 +2204,7 @@ class at {
|
|
|
2198
2204
|
* See the License for the specific language governing permissions and
|
|
2199
2205
|
* limitations under the License.
|
|
2200
2206
|
*/
|
|
2201
|
-
let
|
|
2207
|
+
let Ge = {
|
|
2202
2208
|
async loadJS() {
|
|
2203
2209
|
throw new Error("Unable to load external scripts");
|
|
2204
2210
|
},
|
|
@@ -2206,16 +2212,16 @@ let Be = {
|
|
|
2206
2212
|
recaptchaEnterpriseScript: "",
|
|
2207
2213
|
gapiScript: ""
|
|
2208
2214
|
};
|
|
2209
|
-
function Ci(n) {
|
|
2210
|
-
Be = n;
|
|
2211
|
-
}
|
|
2212
2215
|
function Ni(n) {
|
|
2213
|
-
|
|
2216
|
+
Ge = n;
|
|
2214
2217
|
}
|
|
2215
|
-
function Oi() {
|
|
2216
|
-
return
|
|
2218
|
+
function Oi(n) {
|
|
2219
|
+
return Ge.loadJS(n);
|
|
2217
2220
|
}
|
|
2218
|
-
function Li(
|
|
2221
|
+
function Li() {
|
|
2222
|
+
return Ge.gapiScript;
|
|
2223
|
+
}
|
|
2224
|
+
function Mi(n) {
|
|
2219
2225
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
|
2220
2226
|
}
|
|
2221
2227
|
/**
|
|
@@ -2234,11 +2240,11 @@ function Li(n) {
|
|
|
2234
2240
|
* See the License for the specific language governing permissions and
|
|
2235
2241
|
* limitations under the License.
|
|
2236
2242
|
*/
|
|
2237
|
-
function
|
|
2243
|
+
function Ui(n, e) {
|
|
2238
2244
|
const t = bt(n, "auth");
|
|
2239
2245
|
if (t.isInitialized()) {
|
|
2240
2246
|
const r = t.getImmediate(), s = t.getOptions();
|
|
2241
|
-
if (
|
|
2247
|
+
if (Cn(s, e ?? {}))
|
|
2242
2248
|
return r;
|
|
2243
2249
|
O(
|
|
2244
2250
|
r,
|
|
@@ -2248,11 +2254,11 @@ function Mi(n, e) {
|
|
|
2248
2254
|
}
|
|
2249
2255
|
return t.initialize({ options: e });
|
|
2250
2256
|
}
|
|
2251
|
-
function
|
|
2257
|
+
function Di(n, e) {
|
|
2252
2258
|
const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(N);
|
|
2253
2259
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
|
|
2254
2260
|
}
|
|
2255
|
-
function
|
|
2261
|
+
function xi(n, e, t) {
|
|
2256
2262
|
const i = be(n);
|
|
2257
2263
|
u(
|
|
2258
2264
|
i._canInitEmulator,
|
|
@@ -2265,20 +2271,20 @@ function Di(n, e, t) {
|
|
|
2265
2271
|
"invalid-emulator-scheme"
|
|
2266
2272
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
|
2267
2273
|
);
|
|
2268
|
-
const r = !1, s =
|
|
2274
|
+
const r = !1, s = Gt(e), { host: o, port: c } = Fi(e), a = c === null ? "" : `:${c}`;
|
|
2269
2275
|
i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
|
|
2270
2276
|
host: o,
|
|
2271
2277
|
port: c,
|
|
2272
2278
|
protocol: s.replace(":", ""),
|
|
2273
2279
|
options: Object.freeze({ disableWarnings: r })
|
|
2274
|
-
}),
|
|
2280
|
+
}), Vi();
|
|
2275
2281
|
}
|
|
2276
|
-
function
|
|
2282
|
+
function Gt(n) {
|
|
2277
2283
|
const e = n.indexOf(":");
|
|
2278
2284
|
return e < 0 ? "" : n.substr(0, e + 1);
|
|
2279
2285
|
}
|
|
2280
|
-
function
|
|
2281
|
-
const e =
|
|
2286
|
+
function Fi(n) {
|
|
2287
|
+
const e = Gt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
|
2282
2288
|
if (!t)
|
|
2283
2289
|
return { host: "", port: null };
|
|
2284
2290
|
const i = t[2].split("@").pop() || "", r = /^(\[[^\]]+\])(:|$)/.exec(i);
|
|
@@ -2296,7 +2302,7 @@ function ct(n) {
|
|
|
2296
2302
|
const e = Number(n);
|
|
2297
2303
|
return isNaN(e) ? null : e;
|
|
2298
2304
|
}
|
|
2299
|
-
function
|
|
2305
|
+
function Vi() {
|
|
2300
2306
|
function n() {
|
|
2301
2307
|
const e = document.createElement("p"), t = e.style;
|
|
2302
2308
|
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);
|
|
@@ -2380,14 +2386,14 @@ async function J(n, e) {
|
|
|
2380
2386
|
* See the License for the specific language governing permissions and
|
|
2381
2387
|
* limitations under the License.
|
|
2382
2388
|
*/
|
|
2383
|
-
const
|
|
2384
|
-
class
|
|
2389
|
+
const $i = "http://localhost";
|
|
2390
|
+
class B extends zt {
|
|
2385
2391
|
constructor() {
|
|
2386
2392
|
super(...arguments), this.pendingToken = null;
|
|
2387
2393
|
}
|
|
2388
2394
|
/** @internal */
|
|
2389
2395
|
static _fromParams(e) {
|
|
2390
|
-
const t = new
|
|
2396
|
+
const t = new B(e.providerId, e.signInMethod);
|
|
2391
2397
|
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) : O(
|
|
2392
2398
|
"argument-error"
|
|
2393
2399
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
@@ -2418,7 +2424,7 @@ class G extends zt {
|
|
|
2418
2424
|
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = $e(t, ["providerId", "signInMethod"]);
|
|
2419
2425
|
if (!i || !r)
|
|
2420
2426
|
return null;
|
|
2421
|
-
const o = new
|
|
2427
|
+
const o = new B(i, r);
|
|
2422
2428
|
return o.idToken = s.idToken || void 0, o.accessToken = s.accessToken || void 0, o.secret = s.secret, o.nonce = s.nonce, o.pendingToken = s.pendingToken || null, o;
|
|
2423
2429
|
}
|
|
2424
2430
|
/** @internal */
|
|
@@ -2438,7 +2444,7 @@ class G extends zt {
|
|
|
2438
2444
|
}
|
|
2439
2445
|
buildRequest() {
|
|
2440
2446
|
const e = {
|
|
2441
|
-
requestUri:
|
|
2447
|
+
requestUri: $i,
|
|
2442
2448
|
returnSecureToken: !0
|
|
2443
2449
|
};
|
|
2444
2450
|
if (this.pendingToken)
|
|
@@ -2574,7 +2580,7 @@ class x extends ae {
|
|
|
2574
2580
|
* @param accessToken - Facebook access token.
|
|
2575
2581
|
*/
|
|
2576
2582
|
static credential(e) {
|
|
2577
|
-
return
|
|
2583
|
+
return B._fromParams({
|
|
2578
2584
|
providerId: x.PROVIDER_ID,
|
|
2579
2585
|
signInMethod: x.FACEBOOK_SIGN_IN_METHOD,
|
|
2580
2586
|
accessToken: e
|
|
@@ -2646,7 +2652,7 @@ class F extends ae {
|
|
|
2646
2652
|
* @param accessToken - Google access token.
|
|
2647
2653
|
*/
|
|
2648
2654
|
static credential(e, t) {
|
|
2649
|
-
return
|
|
2655
|
+
return B._fromParams({
|
|
2650
2656
|
providerId: F.PROVIDER_ID,
|
|
2651
2657
|
signInMethod: F.GOOGLE_SIGN_IN_METHOD,
|
|
2652
2658
|
idToken: e,
|
|
@@ -2714,7 +2720,7 @@ class V extends ae {
|
|
|
2714
2720
|
* @param accessToken - Github access token.
|
|
2715
2721
|
*/
|
|
2716
2722
|
static credential(e) {
|
|
2717
|
-
return
|
|
2723
|
+
return B._fromParams({
|
|
2718
2724
|
providerId: V.PROVIDER_ID,
|
|
2719
2725
|
signInMethod: V.GITHUB_SIGN_IN_METHOD,
|
|
2720
2726
|
accessToken: e
|
|
@@ -2779,7 +2785,7 @@ class $ extends ae {
|
|
|
2779
2785
|
* @param secret - Twitter secret.
|
|
2780
2786
|
*/
|
|
2781
2787
|
static credential(e, t) {
|
|
2782
|
-
return
|
|
2788
|
+
return B._fromParams({
|
|
2783
2789
|
providerId: $.PROVIDER_ID,
|
|
2784
2790
|
signInMethod: $.TWITTER_SIGN_IN_METHOD,
|
|
2785
2791
|
oauthToken: e,
|
|
@@ -2834,13 +2840,13 @@ $.PROVIDER_ID = "twitter.com";
|
|
|
2834
2840
|
* See the License for the specific language governing permissions and
|
|
2835
2841
|
* limitations under the License.
|
|
2836
2842
|
*/
|
|
2837
|
-
class
|
|
2843
|
+
class G {
|
|
2838
2844
|
constructor(e) {
|
|
2839
2845
|
this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
|
|
2840
2846
|
}
|
|
2841
2847
|
static async _fromIdTokenResponse(e, t, i, r = !1) {
|
|
2842
2848
|
const s = await C._fromIdTokenResponse(e, i, r), o = lt(i);
|
|
2843
|
-
return new
|
|
2849
|
+
return new G({
|
|
2844
2850
|
user: s,
|
|
2845
2851
|
providerId: o,
|
|
2846
2852
|
_tokenResponse: i,
|
|
@@ -2854,7 +2860,7 @@ class B {
|
|
|
2854
2860
|
!0
|
|
2855
2861
|
);
|
|
2856
2862
|
const r = lt(i);
|
|
2857
|
-
return new
|
|
2863
|
+
return new G({
|
|
2858
2864
|
user: e,
|
|
2859
2865
|
providerId: r,
|
|
2860
2866
|
_tokenResponse: i,
|
|
@@ -2900,9 +2906,9 @@ function Kt(n, e, t, i) {
|
|
|
2900
2906
|
throw s.code === "auth/multi-factor-auth-required" ? Ie._fromErrorAndOperation(n, s, e, i) : s;
|
|
2901
2907
|
});
|
|
2902
2908
|
}
|
|
2903
|
-
async function
|
|
2909
|
+
async function Hi(n, e, t = !1) {
|
|
2904
2910
|
const i = await ie(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
|
|
2905
|
-
return
|
|
2911
|
+
return G._forOperation(n, "link", i);
|
|
2906
2912
|
}
|
|
2907
2913
|
/**
|
|
2908
2914
|
* @license
|
|
@@ -2920,7 +2926,7 @@ async function $i(n, e, t = !1) {
|
|
|
2920
2926
|
* See the License for the specific language governing permissions and
|
|
2921
2927
|
* limitations under the License.
|
|
2922
2928
|
*/
|
|
2923
|
-
async function
|
|
2929
|
+
async function Wi(n, e, t = !1) {
|
|
2924
2930
|
const { auth: i } = n;
|
|
2925
2931
|
if (A(i.app))
|
|
2926
2932
|
return Promise.reject(H(i));
|
|
@@ -2933,7 +2939,7 @@ async function Hi(n, e, t = !1) {
|
|
|
2933
2939
|
"internal-error"
|
|
2934
2940
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
2935
2941
|
);
|
|
2936
|
-
const o =
|
|
2942
|
+
const o = je(s.idToken);
|
|
2937
2943
|
u(
|
|
2938
2944
|
o,
|
|
2939
2945
|
i,
|
|
@@ -2946,7 +2952,7 @@ async function Hi(n, e, t = !1) {
|
|
|
2946
2952
|
i,
|
|
2947
2953
|
"user-mismatch"
|
|
2948
2954
|
/* AuthErrorCode.USER_MISMATCH */
|
|
2949
|
-
),
|
|
2955
|
+
), G._forOperation(n, r, s);
|
|
2950
2956
|
} catch (s) {
|
|
2951
2957
|
throw (s == null ? void 0 : s.code) === "auth/user-not-found" && O(
|
|
2952
2958
|
i,
|
|
@@ -2974,7 +2980,7 @@ async function Hi(n, e, t = !1) {
|
|
|
2974
2980
|
async function ji(n, e, t = !1) {
|
|
2975
2981
|
if (A(n.app))
|
|
2976
2982
|
return Promise.reject(H(n));
|
|
2977
|
-
const i = "signIn", r = await Kt(n, i, e), s = await
|
|
2983
|
+
const i = "signIn", r = await Kt(n, i, e), s = await G._fromIdTokenResponse(n, i, r);
|
|
2978
2984
|
return t || await n._updateCurrentUser(s.user), s;
|
|
2979
2985
|
}
|
|
2980
2986
|
/**
|
|
@@ -2993,7 +2999,7 @@ async function ji(n, e, t = !1) {
|
|
|
2993
2999
|
* See the License for the specific language governing permissions and
|
|
2994
3000
|
* limitations under the License.
|
|
2995
3001
|
*/
|
|
2996
|
-
async function
|
|
3002
|
+
async function Bi(n, e) {
|
|
2997
3003
|
return Ot(n, "POST", "/v1/accounts:signInWithCustomToken", Te(n, e));
|
|
2998
3004
|
}
|
|
2999
3005
|
/**
|
|
@@ -3015,17 +3021,17 @@ async function Wi(n, e) {
|
|
|
3015
3021
|
async function Gi(n, e) {
|
|
3016
3022
|
if (A(n.app))
|
|
3017
3023
|
return Promise.reject(H(n));
|
|
3018
|
-
const t = be(n), i = await
|
|
3024
|
+
const t = be(n), i = await Bi(t, {
|
|
3019
3025
|
token: e,
|
|
3020
3026
|
returnSecureToken: !0
|
|
3021
|
-
}), r = await
|
|
3027
|
+
}), r = await G._fromIdTokenResponse(t, "signIn", i);
|
|
3022
3028
|
return await t._updateCurrentUser(r.user), r;
|
|
3023
3029
|
}
|
|
3024
|
-
function
|
|
3025
|
-
return
|
|
3030
|
+
function zi(n, e, t, i) {
|
|
3031
|
+
return X(n).onIdTokenChanged(e, t, i);
|
|
3026
3032
|
}
|
|
3027
|
-
function
|
|
3028
|
-
return
|
|
3033
|
+
function qi(n, e, t) {
|
|
3034
|
+
return X(n).beforeAuthStateChanged(e, t);
|
|
3029
3035
|
}
|
|
3030
3036
|
const ye = "__sak";
|
|
3031
3037
|
/**
|
|
@@ -3085,18 +3091,18 @@ class Jt {
|
|
|
3085
3091
|
* See the License for the specific language governing permissions and
|
|
3086
3092
|
* limitations under the License.
|
|
3087
3093
|
*/
|
|
3088
|
-
function
|
|
3094
|
+
function Ki() {
|
|
3089
3095
|
const n = w();
|
|
3090
|
-
return
|
|
3096
|
+
return Be(n) || ke(n);
|
|
3091
3097
|
}
|
|
3092
|
-
const
|
|
3098
|
+
const Ji = 1e3, Yi = 10;
|
|
3093
3099
|
class Yt extends Jt {
|
|
3094
3100
|
constructor() {
|
|
3095
3101
|
super(
|
|
3096
3102
|
() => window.localStorage,
|
|
3097
3103
|
"LOCAL"
|
|
3098
3104
|
/* PersistenceType.LOCAL */
|
|
3099
|
-
), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced =
|
|
3105
|
+
), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Ki() && Ei(), this.fallbackToPolling = jt(), this._shouldAllowMigration = !0;
|
|
3100
3106
|
}
|
|
3101
3107
|
forAllChangedKeys(e) {
|
|
3102
3108
|
for (const t of Object.keys(this.listeners)) {
|
|
@@ -3123,7 +3129,7 @@ class Yt extends Jt {
|
|
|
3123
3129
|
const o = this.storage.getItem(i);
|
|
3124
3130
|
!t && this.localCache[i] === o || this.notifyListeners(i, o);
|
|
3125
3131
|
}, s = this.storage.getItem(i);
|
|
3126
|
-
|
|
3132
|
+
bi() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Yi) : r();
|
|
3127
3133
|
}
|
|
3128
3134
|
notifyListeners(e, t) {
|
|
3129
3135
|
this.localCache[e] = t;
|
|
@@ -3145,7 +3151,7 @@ class Yt extends Jt {
|
|
|
3145
3151
|
!0
|
|
3146
3152
|
);
|
|
3147
3153
|
});
|
|
3148
|
-
},
|
|
3154
|
+
}, Ji);
|
|
3149
3155
|
}
|
|
3150
3156
|
stopPolling() {
|
|
3151
3157
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -3175,7 +3181,7 @@ class Yt extends Jt {
|
|
|
3175
3181
|
}
|
|
3176
3182
|
}
|
|
3177
3183
|
Yt.type = "LOCAL";
|
|
3178
|
-
const
|
|
3184
|
+
const Xi = Yt;
|
|
3179
3185
|
/**
|
|
3180
3186
|
* @license
|
|
3181
3187
|
* Copyright 2020 Google LLC
|
|
@@ -3223,7 +3229,7 @@ const Qt = Xt;
|
|
|
3223
3229
|
* See the License for the specific language governing permissions and
|
|
3224
3230
|
* limitations under the License.
|
|
3225
3231
|
*/
|
|
3226
|
-
function
|
|
3232
|
+
function Qi(n) {
|
|
3227
3233
|
return Promise.all(n.map(async (e) => {
|
|
3228
3234
|
try {
|
|
3229
3235
|
return {
|
|
@@ -3293,7 +3299,7 @@ class Ee {
|
|
|
3293
3299
|
eventId: i,
|
|
3294
3300
|
eventType: r
|
|
3295
3301
|
});
|
|
3296
|
-
const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await
|
|
3302
|
+
const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Qi(c);
|
|
3297
3303
|
t.ports[0].postMessage({
|
|
3298
3304
|
status: "done",
|
|
3299
3305
|
eventId: i,
|
|
@@ -3361,7 +3367,7 @@ function ze(n = "", e = 10) {
|
|
|
3361
3367
|
* See the License for the specific language governing permissions and
|
|
3362
3368
|
* limitations under the License.
|
|
3363
3369
|
*/
|
|
3364
|
-
class
|
|
3370
|
+
class Zi {
|
|
3365
3371
|
constructor(e) {
|
|
3366
3372
|
this.target = e, this.handlers = /* @__PURE__ */ new Set();
|
|
3367
3373
|
}
|
|
@@ -3406,9 +3412,9 @@ class Qi {
|
|
|
3406
3412
|
o = {
|
|
3407
3413
|
messageChannel: r,
|
|
3408
3414
|
onMessage(m) {
|
|
3409
|
-
const
|
|
3410
|
-
if (
|
|
3411
|
-
switch (
|
|
3415
|
+
const y = m;
|
|
3416
|
+
if (y.data.eventId === l)
|
|
3417
|
+
switch (y.data.status) {
|
|
3412
3418
|
case "ack":
|
|
3413
3419
|
clearTimeout(d), s = setTimeout(
|
|
3414
3420
|
() => {
|
|
@@ -3422,7 +3428,7 @@ class Qi {
|
|
|
3422
3428
|
);
|
|
3423
3429
|
break;
|
|
3424
3430
|
case "done":
|
|
3425
|
-
clearTimeout(s), c(
|
|
3431
|
+
clearTimeout(s), c(y.data.response);
|
|
3426
3432
|
break;
|
|
3427
3433
|
default:
|
|
3428
3434
|
clearTimeout(d), clearTimeout(s), a(new Error(
|
|
@@ -3461,7 +3467,7 @@ class Qi {
|
|
|
3461
3467
|
function E() {
|
|
3462
3468
|
return window;
|
|
3463
3469
|
}
|
|
3464
|
-
function
|
|
3470
|
+
function er(n) {
|
|
3465
3471
|
E().location.href = n;
|
|
3466
3472
|
}
|
|
3467
3473
|
/**
|
|
@@ -3483,7 +3489,7 @@ function Zi(n) {
|
|
|
3483
3489
|
function Zt() {
|
|
3484
3490
|
return typeof E().WorkerGlobalScope < "u" && typeof E().importScripts == "function";
|
|
3485
3491
|
}
|
|
3486
|
-
async function
|
|
3492
|
+
async function tr() {
|
|
3487
3493
|
if (!(navigator != null && navigator.serviceWorker))
|
|
3488
3494
|
return null;
|
|
3489
3495
|
try {
|
|
@@ -3492,11 +3498,11 @@ async function er() {
|
|
|
3492
3498
|
return null;
|
|
3493
3499
|
}
|
|
3494
3500
|
}
|
|
3495
|
-
function
|
|
3501
|
+
function nr() {
|
|
3496
3502
|
var n;
|
|
3497
3503
|
return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
|
|
3498
3504
|
}
|
|
3499
|
-
function
|
|
3505
|
+
function ir() {
|
|
3500
3506
|
return Zt() ? self : null;
|
|
3501
3507
|
}
|
|
3502
3508
|
/**
|
|
@@ -3515,7 +3521,7 @@ function nr() {
|
|
|
3515
3521
|
* See the License for the specific language governing permissions and
|
|
3516
3522
|
* limitations under the License.
|
|
3517
3523
|
*/
|
|
3518
|
-
const en = "firebaseLocalStorageDb",
|
|
3524
|
+
const en = "firebaseLocalStorageDb", rr = 1, we = "firebaseLocalStorage", tn = "fbase_key";
|
|
3519
3525
|
class ce {
|
|
3520
3526
|
constructor(e) {
|
|
3521
3527
|
this.request = e;
|
|
@@ -3533,12 +3539,12 @@ class ce {
|
|
|
3533
3539
|
function Se(n, e) {
|
|
3534
3540
|
return n.transaction([we], e ? "readwrite" : "readonly").objectStore(we);
|
|
3535
3541
|
}
|
|
3536
|
-
function
|
|
3542
|
+
function sr() {
|
|
3537
3543
|
const n = indexedDB.deleteDatabase(en);
|
|
3538
3544
|
return new ce(n).toPromise();
|
|
3539
3545
|
}
|
|
3540
3546
|
function De() {
|
|
3541
|
-
const n = indexedDB.open(en,
|
|
3547
|
+
const n = indexedDB.open(en, rr);
|
|
3542
3548
|
return new Promise((e, t) => {
|
|
3543
3549
|
n.addEventListener("error", () => {
|
|
3544
3550
|
t(n.error);
|
|
@@ -3551,7 +3557,7 @@ function De() {
|
|
|
3551
3557
|
}
|
|
3552
3558
|
}), n.addEventListener("success", async () => {
|
|
3553
3559
|
const i = n.result;
|
|
3554
|
-
i.objectStoreNames.contains(we) ? e(i) : (i.close(), await
|
|
3560
|
+
i.objectStoreNames.contains(we) ? e(i) : (i.close(), await sr(), e(await De()));
|
|
3555
3561
|
});
|
|
3556
3562
|
});
|
|
3557
3563
|
}
|
|
@@ -3562,7 +3568,7 @@ async function ut(n, e, t) {
|
|
|
3562
3568
|
});
|
|
3563
3569
|
return new ce(i).toPromise();
|
|
3564
3570
|
}
|
|
3565
|
-
async function
|
|
3571
|
+
async function or(n, e) {
|
|
3566
3572
|
const t = Se(n, !1).get(e), i = await new ce(t).toPromise();
|
|
3567
3573
|
return i === void 0 ? null : i.value;
|
|
3568
3574
|
}
|
|
@@ -3570,7 +3576,7 @@ function dt(n, e) {
|
|
|
3570
3576
|
const t = Se(n, !0).delete(e);
|
|
3571
3577
|
return new ce(t).toPromise();
|
|
3572
3578
|
}
|
|
3573
|
-
const
|
|
3579
|
+
const ar = 800, cr = 3;
|
|
3574
3580
|
class nn {
|
|
3575
3581
|
constructor() {
|
|
3576
3582
|
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(() => {
|
|
@@ -3587,7 +3593,7 @@ class nn {
|
|
|
3587
3593
|
const i = await this._openDb();
|
|
3588
3594
|
return await e(i);
|
|
3589
3595
|
} catch (i) {
|
|
3590
|
-
if (t++ >
|
|
3596
|
+
if (t++ > cr)
|
|
3591
3597
|
throw i;
|
|
3592
3598
|
this.db && (this.db.close(), this.db = void 0);
|
|
3593
3599
|
}
|
|
@@ -3603,7 +3609,7 @@ class nn {
|
|
|
3603
3609
|
* As the worker we should listen to events from the main window.
|
|
3604
3610
|
*/
|
|
3605
3611
|
async initializeReceiver() {
|
|
3606
|
-
this.receiver = Ee._getInstance(
|
|
3612
|
+
this.receiver = Ee._getInstance(ir()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
|
3607
3613
|
keyProcessed: (await this._poll()).includes(t.key)
|
|
3608
3614
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
|
3609
3615
|
"keyChanged"
|
|
@@ -3619,9 +3625,9 @@ class nn {
|
|
|
3619
3625
|
*/
|
|
3620
3626
|
async initializeSender() {
|
|
3621
3627
|
var e, t;
|
|
3622
|
-
if (this.activeServiceWorker = await
|
|
3628
|
+
if (this.activeServiceWorker = await tr(), !this.activeServiceWorker)
|
|
3623
3629
|
return;
|
|
3624
|
-
this.sender = new
|
|
3630
|
+
this.sender = new Zi(this.activeServiceWorker);
|
|
3625
3631
|
const i = await this.sender._send(
|
|
3626
3632
|
"ping",
|
|
3627
3633
|
{},
|
|
@@ -3643,7 +3649,7 @@ class nn {
|
|
|
3643
3649
|
* @param key - Storage key which changed.
|
|
3644
3650
|
*/
|
|
3645
3651
|
async notifyServiceWorker(e) {
|
|
3646
|
-
if (!(!this.sender || !this.activeServiceWorker ||
|
|
3652
|
+
if (!(!this.sender || !this.activeServiceWorker || nr() !== this.activeServiceWorker))
|
|
3647
3653
|
try {
|
|
3648
3654
|
await this.sender._send(
|
|
3649
3655
|
"keyChanged",
|
|
@@ -3677,7 +3683,7 @@ class nn {
|
|
|
3677
3683
|
return this._withPendingWrite(async () => (await this._withRetries((i) => ut(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
|
|
3678
3684
|
}
|
|
3679
3685
|
async _get(e) {
|
|
3680
|
-
const t = await this._withRetries((i) =>
|
|
3686
|
+
const t = await this._withRetries((i) => or(i, e));
|
|
3681
3687
|
return this.localCache[e] = t, t;
|
|
3682
3688
|
}
|
|
3683
3689
|
async _remove(e) {
|
|
@@ -3708,7 +3714,7 @@ class nn {
|
|
|
3708
3714
|
r(t);
|
|
3709
3715
|
}
|
|
3710
3716
|
startPolling() {
|
|
3711
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
|
3717
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), ar);
|
|
3712
3718
|
}
|
|
3713
3719
|
stopPolling() {
|
|
3714
3720
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -3721,7 +3727,7 @@ class nn {
|
|
|
3721
3727
|
}
|
|
3722
3728
|
}
|
|
3723
3729
|
nn.type = "LOCAL";
|
|
3724
|
-
const
|
|
3730
|
+
const lr = nn;
|
|
3725
3731
|
new oe(3e4, 6e4);
|
|
3726
3732
|
/**
|
|
3727
3733
|
* @license
|
|
@@ -3739,7 +3745,7 @@ new oe(3e4, 6e4);
|
|
|
3739
3745
|
* See the License for the specific language governing permissions and
|
|
3740
3746
|
* limitations under the License.
|
|
3741
3747
|
*/
|
|
3742
|
-
function
|
|
3748
|
+
function ur(n, e) {
|
|
3743
3749
|
return e ? N(e) : (u(
|
|
3744
3750
|
n._popupRedirectResolver,
|
|
3745
3751
|
n,
|
|
@@ -3793,26 +3799,26 @@ class qe extends zt {
|
|
|
3793
3799
|
return e && (t.idToken = e), t;
|
|
3794
3800
|
}
|
|
3795
3801
|
}
|
|
3796
|
-
function
|
|
3802
|
+
function dr(n) {
|
|
3797
3803
|
return ji(n.auth, new qe(n), n.bypassAuthState);
|
|
3798
3804
|
}
|
|
3799
|
-
function
|
|
3805
|
+
function hr(n) {
|
|
3800
3806
|
const { auth: e, user: t } = n;
|
|
3801
3807
|
return u(
|
|
3802
3808
|
t,
|
|
3803
3809
|
e,
|
|
3804
3810
|
"internal-error"
|
|
3805
3811
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3806
|
-
),
|
|
3812
|
+
), Wi(t, new qe(n), n.bypassAuthState);
|
|
3807
3813
|
}
|
|
3808
|
-
async function
|
|
3814
|
+
async function fr(n) {
|
|
3809
3815
|
const { auth: e, user: t } = n;
|
|
3810
3816
|
return u(
|
|
3811
3817
|
t,
|
|
3812
3818
|
e,
|
|
3813
3819
|
"internal-error"
|
|
3814
3820
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3815
|
-
),
|
|
3821
|
+
), Hi(t, new qe(n), n.bypassAuthState);
|
|
3816
3822
|
}
|
|
3817
3823
|
/**
|
|
3818
3824
|
* @license
|
|
@@ -3872,13 +3878,13 @@ class rn {
|
|
|
3872
3878
|
switch (e) {
|
|
3873
3879
|
case "signInViaPopup":
|
|
3874
3880
|
case "signInViaRedirect":
|
|
3875
|
-
return
|
|
3881
|
+
return dr;
|
|
3876
3882
|
case "linkViaPopup":
|
|
3877
3883
|
case "linkViaRedirect":
|
|
3878
|
-
return
|
|
3884
|
+
return fr;
|
|
3879
3885
|
case "reauthViaPopup":
|
|
3880
3886
|
case "reauthViaRedirect":
|
|
3881
|
-
return
|
|
3887
|
+
return hr;
|
|
3882
3888
|
default:
|
|
3883
3889
|
O(
|
|
3884
3890
|
this.auth,
|
|
@@ -3913,7 +3919,7 @@ class rn {
|
|
|
3913
3919
|
* See the License for the specific language governing permissions and
|
|
3914
3920
|
* limitations under the License.
|
|
3915
3921
|
*/
|
|
3916
|
-
const
|
|
3922
|
+
const pr = new oe(2e3, 1e4);
|
|
3917
3923
|
class z extends rn {
|
|
3918
3924
|
constructor(e, t, i, r, s) {
|
|
3919
3925
|
super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, z.currentPopupAction && z.currentPopupAction.cancel(), z.currentPopupAction = this;
|
|
@@ -3977,7 +3983,7 @@ class z extends rn {
|
|
|
3977
3983
|
);
|
|
3978
3984
|
return;
|
|
3979
3985
|
}
|
|
3980
|
-
this.pollId = window.setTimeout(e,
|
|
3986
|
+
this.pollId = window.setTimeout(e, pr.get());
|
|
3981
3987
|
};
|
|
3982
3988
|
e();
|
|
3983
3989
|
}
|
|
@@ -3999,8 +4005,8 @@ z.currentPopupAction = null;
|
|
|
3999
4005
|
* See the License for the specific language governing permissions and
|
|
4000
4006
|
* limitations under the License.
|
|
4001
4007
|
*/
|
|
4002
|
-
const
|
|
4003
|
-
class
|
|
4008
|
+
const mr = "pendingRedirect", he = /* @__PURE__ */ new Map();
|
|
4009
|
+
class gr extends rn {
|
|
4004
4010
|
constructor(e, t, i = !1) {
|
|
4005
4011
|
super(e, [
|
|
4006
4012
|
"signInViaRedirect",
|
|
@@ -4018,7 +4024,7 @@ class mr extends rn {
|
|
|
4018
4024
|
let e = he.get(this.auth._key());
|
|
4019
4025
|
if (!e) {
|
|
4020
4026
|
try {
|
|
4021
|
-
const i = await
|
|
4027
|
+
const i = await _r(this.resolver, this.auth) ? await super.execute() : null;
|
|
4022
4028
|
e = () => Promise.resolve(i);
|
|
4023
4029
|
} catch (t) {
|
|
4024
4030
|
e = () => Promise.reject(t);
|
|
@@ -4046,26 +4052,26 @@ class mr extends rn {
|
|
|
4046
4052
|
cleanUp() {
|
|
4047
4053
|
}
|
|
4048
4054
|
}
|
|
4049
|
-
async function
|
|
4050
|
-
const t =
|
|
4055
|
+
async function _r(n, e) {
|
|
4056
|
+
const t = yr(e), i = Ir(n);
|
|
4051
4057
|
if (!await i._isAvailable())
|
|
4052
4058
|
return !1;
|
|
4053
4059
|
const r = await i._get(t) === "true";
|
|
4054
4060
|
return await i._remove(t), r;
|
|
4055
4061
|
}
|
|
4056
|
-
function
|
|
4062
|
+
function vr(n, e) {
|
|
4057
4063
|
he.set(n._key(), e);
|
|
4058
4064
|
}
|
|
4059
|
-
function
|
|
4065
|
+
function Ir(n) {
|
|
4060
4066
|
return N(n._redirectPersistence);
|
|
4061
4067
|
}
|
|
4062
|
-
function
|
|
4063
|
-
return de(
|
|
4068
|
+
function yr(n) {
|
|
4069
|
+
return de(mr, n.config.apiKey, n.name);
|
|
4064
4070
|
}
|
|
4065
|
-
async function
|
|
4071
|
+
async function wr(n, e, t = !1) {
|
|
4066
4072
|
if (A(n.app))
|
|
4067
4073
|
return Promise.reject(H(n));
|
|
4068
|
-
const i = be(n), r =
|
|
4074
|
+
const i = be(n), r = ur(i, e), o = await new gr(i, r, t).execute();
|
|
4069
4075
|
return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
|
|
4070
4076
|
}
|
|
4071
4077
|
/**
|
|
@@ -4084,8 +4090,8 @@ async function yr(n, e, t = !1) {
|
|
|
4084
4090
|
* See the License for the specific language governing permissions and
|
|
4085
4091
|
* limitations under the License.
|
|
4086
4092
|
*/
|
|
4087
|
-
const
|
|
4088
|
-
class
|
|
4093
|
+
const Tr = 10 * 60 * 1e3;
|
|
4094
|
+
class kr {
|
|
4089
4095
|
constructor(e) {
|
|
4090
4096
|
this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
|
|
4091
4097
|
}
|
|
@@ -4101,7 +4107,7 @@ class Tr {
|
|
|
4101
4107
|
let t = !1;
|
|
4102
4108
|
return this.consumers.forEach((i) => {
|
|
4103
4109
|
this.isEventForConsumer(e, i) && (t = !0, this.sendToConsumer(e, i), this.saveEventToCache(e));
|
|
4104
|
-
}), this.hasHandledPotentialRedirect || !
|
|
4110
|
+
}), this.hasHandledPotentialRedirect || !br(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
|
|
4105
4111
|
}
|
|
4106
4112
|
sendToConsumer(e, t) {
|
|
4107
4113
|
var i;
|
|
@@ -4116,7 +4122,7 @@ class Tr {
|
|
|
4116
4122
|
return t.filter.includes(e.type) && i;
|
|
4117
4123
|
}
|
|
4118
4124
|
hasEventBeenHandled(e) {
|
|
4119
|
-
return Date.now() - this.lastProcessedEventTime >=
|
|
4125
|
+
return Date.now() - this.lastProcessedEventTime >= Tr && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
|
|
4120
4126
|
}
|
|
4121
4127
|
saveEventToCache(e) {
|
|
4122
4128
|
this.cachedEventUids.add(ht(e)), this.lastProcessedEventTime = Date.now();
|
|
@@ -4128,7 +4134,7 @@ function ht(n) {
|
|
|
4128
4134
|
function sn({ type: n, error: e }) {
|
|
4129
4135
|
return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
|
|
4130
4136
|
}
|
|
4131
|
-
function
|
|
4137
|
+
function br(n) {
|
|
4132
4138
|
switch (n.type) {
|
|
4133
4139
|
case "signInViaRedirect":
|
|
4134
4140
|
case "linkViaRedirect":
|
|
@@ -4156,8 +4162,8 @@ function kr(n) {
|
|
|
4156
4162
|
* See the License for the specific language governing permissions and
|
|
4157
4163
|
* limitations under the License.
|
|
4158
4164
|
*/
|
|
4159
|
-
async function
|
|
4160
|
-
return
|
|
4165
|
+
async function Er(n, e = {}) {
|
|
4166
|
+
return Q(n, "GET", "/v1/projects", e);
|
|
4161
4167
|
}
|
|
4162
4168
|
/**
|
|
4163
4169
|
* @license
|
|
@@ -4175,14 +4181,14 @@ async function br(n, e = {}) {
|
|
|
4175
4181
|
* See the License for the specific language governing permissions and
|
|
4176
4182
|
* limitations under the License.
|
|
4177
4183
|
*/
|
|
4178
|
-
const
|
|
4179
|
-
async function
|
|
4184
|
+
const Sr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Rr = /^https?/;
|
|
4185
|
+
async function Ar(n) {
|
|
4180
4186
|
if (n.config.emulator)
|
|
4181
4187
|
return;
|
|
4182
|
-
const { authorizedDomains: e } = await
|
|
4188
|
+
const { authorizedDomains: e } = await Er(n);
|
|
4183
4189
|
for (const t of e)
|
|
4184
4190
|
try {
|
|
4185
|
-
if (
|
|
4191
|
+
if (Pr(t))
|
|
4186
4192
|
return;
|
|
4187
4193
|
} catch {
|
|
4188
4194
|
}
|
|
@@ -4192,15 +4198,15 @@ async function Rr(n) {
|
|
|
4192
4198
|
/* AuthErrorCode.INVALID_ORIGIN */
|
|
4193
4199
|
);
|
|
4194
4200
|
}
|
|
4195
|
-
function
|
|
4201
|
+
function Pr(n) {
|
|
4196
4202
|
const e = Me(), { protocol: t, hostname: i } = new URL(e);
|
|
4197
4203
|
if (n.startsWith("chrome-extension://")) {
|
|
4198
4204
|
const o = new URL(n);
|
|
4199
4205
|
return o.hostname === "" && i === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === i;
|
|
4200
4206
|
}
|
|
4201
|
-
if (!
|
|
4207
|
+
if (!Rr.test(t))
|
|
4202
4208
|
return !1;
|
|
4203
|
-
if (
|
|
4209
|
+
if (Sr.test(n))
|
|
4204
4210
|
return i === n;
|
|
4205
4211
|
const r = n.replace(/\./g, "\\.");
|
|
4206
4212
|
return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
|
|
@@ -4221,7 +4227,7 @@ function Ar(n) {
|
|
|
4221
4227
|
* See the License for the specific language governing permissions and
|
|
4222
4228
|
* limitations under the License.
|
|
4223
4229
|
*/
|
|
4224
|
-
const
|
|
4230
|
+
const Cr = new oe(3e4, 6e4);
|
|
4225
4231
|
function ft() {
|
|
4226
4232
|
const n = E().___jsl;
|
|
4227
4233
|
if (n != null && n.H) {
|
|
@@ -4231,7 +4237,7 @@ function ft() {
|
|
|
4231
4237
|
n.CP[t] = null;
|
|
4232
4238
|
}
|
|
4233
4239
|
}
|
|
4234
|
-
function
|
|
4240
|
+
function Nr(n) {
|
|
4235
4241
|
return new Promise((e, t) => {
|
|
4236
4242
|
var i, r, s;
|
|
4237
4243
|
function o() {
|
|
@@ -4246,7 +4252,7 @@ function Cr(n) {
|
|
|
4246
4252
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
4247
4253
|
));
|
|
4248
4254
|
},
|
|
4249
|
-
timeout:
|
|
4255
|
+
timeout: Cr.get()
|
|
4250
4256
|
});
|
|
4251
4257
|
}
|
|
4252
4258
|
if (!((r = (i = E().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
|
|
@@ -4254,22 +4260,22 @@ function Cr(n) {
|
|
|
4254
4260
|
else if (!((s = E().gapi) === null || s === void 0) && s.load)
|
|
4255
4261
|
o();
|
|
4256
4262
|
else {
|
|
4257
|
-
const c =
|
|
4263
|
+
const c = Mi("iframefcb");
|
|
4258
4264
|
return E()[c] = () => {
|
|
4259
4265
|
gapi.load ? o() : t(b(
|
|
4260
4266
|
n,
|
|
4261
4267
|
"network-request-failed"
|
|
4262
4268
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
4263
4269
|
));
|
|
4264
|
-
},
|
|
4270
|
+
}, Oi(`${Li()}?onload=${c}`).catch((a) => t(a));
|
|
4265
4271
|
}
|
|
4266
4272
|
}).catch((e) => {
|
|
4267
4273
|
throw fe = null, e;
|
|
4268
4274
|
});
|
|
4269
4275
|
}
|
|
4270
4276
|
let fe = null;
|
|
4271
|
-
function
|
|
4272
|
-
return fe = fe ||
|
|
4277
|
+
function Or(n) {
|
|
4278
|
+
return fe = fe || Nr(n), fe;
|
|
4273
4279
|
}
|
|
4274
4280
|
/**
|
|
4275
4281
|
* @license
|
|
@@ -4287,7 +4293,7 @@ function Nr(n) {
|
|
|
4287
4293
|
* See the License for the specific language governing permissions and
|
|
4288
4294
|
* limitations under the License.
|
|
4289
4295
|
*/
|
|
4290
|
-
const
|
|
4296
|
+
const Lr = new oe(5e3, 15e3), Mr = "__/auth/iframe", Ur = "emulator/auth/iframe", Dr = {
|
|
4291
4297
|
style: {
|
|
4292
4298
|
position: "absolute",
|
|
4293
4299
|
top: "-100px",
|
|
@@ -4296,13 +4302,13 @@ const Or = new oe(5e3, 15e3), Lr = "__/auth/iframe", Mr = "emulator/auth/iframe"
|
|
|
4296
4302
|
},
|
|
4297
4303
|
"aria-hidden": "true",
|
|
4298
4304
|
tabindex: "-1"
|
|
4299
|
-
},
|
|
4305
|
+
}, xr = /* @__PURE__ */ new Map([
|
|
4300
4306
|
["identitytoolkit.googleapis.com", "p"],
|
|
4301
4307
|
["staging-identitytoolkit.sandbox.googleapis.com", "s"],
|
|
4302
4308
|
["test-identitytoolkit.sandbox.googleapis.com", "t"]
|
|
4303
4309
|
// test
|
|
4304
4310
|
]);
|
|
4305
|
-
function
|
|
4311
|
+
function Fr(n) {
|
|
4306
4312
|
const e = n.config;
|
|
4307
4313
|
u(
|
|
4308
4314
|
e.authDomain,
|
|
@@ -4310,17 +4316,17 @@ function xr(n) {
|
|
|
4310
4316
|
"auth-domain-config-required"
|
|
4311
4317
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
4312
4318
|
);
|
|
4313
|
-
const t = e.emulator ?
|
|
4319
|
+
const t = e.emulator ? We(e, Ur) : `https://${n.config.authDomain}/${Mr}`, i = {
|
|
4314
4320
|
apiKey: e.apiKey,
|
|
4315
4321
|
appName: n.name,
|
|
4316
4322
|
v: re
|
|
4317
|
-
}, r =
|
|
4323
|
+
}, r = xr.get(n.config.apiHost);
|
|
4318
4324
|
r && (i.eid = r);
|
|
4319
4325
|
const s = n._getFrameworks();
|
|
4320
4326
|
return s.length && (i.fw = s.join(",")), `${t}?${se(i).slice(1)}`;
|
|
4321
4327
|
}
|
|
4322
|
-
async function
|
|
4323
|
-
const e = await
|
|
4328
|
+
async function Vr(n) {
|
|
4329
|
+
const e = await Or(n), t = E().gapi;
|
|
4324
4330
|
return u(
|
|
4325
4331
|
t,
|
|
4326
4332
|
n,
|
|
@@ -4328,9 +4334,9 @@ async function Fr(n) {
|
|
|
4328
4334
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
4329
4335
|
), e.open({
|
|
4330
4336
|
where: document.body,
|
|
4331
|
-
url:
|
|
4337
|
+
url: Fr(n),
|
|
4332
4338
|
messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
|
|
4333
|
-
attributes:
|
|
4339
|
+
attributes: Dr,
|
|
4334
4340
|
dontclear: !0
|
|
4335
4341
|
}, (i) => new Promise(async (r, s) => {
|
|
4336
4342
|
await i.restyle({
|
|
@@ -4343,7 +4349,7 @@ async function Fr(n) {
|
|
|
4343
4349
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
4344
4350
|
), c = E().setTimeout(() => {
|
|
4345
4351
|
s(o);
|
|
4346
|
-
},
|
|
4352
|
+
}, Lr.get());
|
|
4347
4353
|
function a() {
|
|
4348
4354
|
E().clearTimeout(c), r(i);
|
|
4349
4355
|
}
|
|
@@ -4368,12 +4374,12 @@ async function Fr(n) {
|
|
|
4368
4374
|
* See the License for the specific language governing permissions and
|
|
4369
4375
|
* limitations under the License.
|
|
4370
4376
|
*/
|
|
4371
|
-
const
|
|
4377
|
+
const $r = {
|
|
4372
4378
|
location: "yes",
|
|
4373
4379
|
resizable: "yes",
|
|
4374
4380
|
statusbar: "yes",
|
|
4375
4381
|
toolbar: "no"
|
|
4376
|
-
},
|
|
4382
|
+
}, Hr = 500, Wr = 600, jr = "_blank", Br = "http://localhost";
|
|
4377
4383
|
class pt {
|
|
4378
4384
|
constructor(e) {
|
|
4379
4385
|
this.window = e, this.associatedEvent = null;
|
|
@@ -4386,19 +4392,19 @@ class pt {
|
|
|
4386
4392
|
}
|
|
4387
4393
|
}
|
|
4388
4394
|
}
|
|
4389
|
-
function Gr(n, e, t, i =
|
|
4395
|
+
function Gr(n, e, t, i = Hr, r = Wr) {
|
|
4390
4396
|
const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
|
|
4391
4397
|
let c = "";
|
|
4392
|
-
const a = Object.assign(Object.assign({},
|
|
4398
|
+
const a = Object.assign(Object.assign({}, $r), {
|
|
4393
4399
|
width: i.toString(),
|
|
4394
4400
|
height: r.toString(),
|
|
4395
4401
|
top: s,
|
|
4396
4402
|
left: o
|
|
4397
4403
|
}), l = w().toLowerCase();
|
|
4398
|
-
t && (c = Ft(l) ? jr : t), xt(l) && (e = e ||
|
|
4399
|
-
const d = Object.entries(a).reduce((
|
|
4400
|
-
if (
|
|
4401
|
-
return
|
|
4404
|
+
t && (c = Ft(l) ? jr : t), xt(l) && (e = e || Br, a.scrollbars = "yes");
|
|
4405
|
+
const d = Object.entries(a).reduce((y, [f, I]) => `${y}${f}=${I},`, "");
|
|
4406
|
+
if (ki(l) && c !== "_self")
|
|
4407
|
+
return zr(e || "", c), new pt(null);
|
|
4402
4408
|
const m = window.open(e || "", c, d);
|
|
4403
4409
|
u(
|
|
4404
4410
|
m,
|
|
@@ -4412,7 +4418,7 @@ function Gr(n, e, t, i = $r, r = Hr) {
|
|
|
4412
4418
|
}
|
|
4413
4419
|
return new pt(m);
|
|
4414
4420
|
}
|
|
4415
|
-
function
|
|
4421
|
+
function zr(n, e) {
|
|
4416
4422
|
const t = document.createElement("a");
|
|
4417
4423
|
t.href = n, t.target = e;
|
|
4418
4424
|
const i = document.createEvent("MouseEvent");
|
|
@@ -4434,7 +4440,7 @@ function Br(n, e) {
|
|
|
4434
4440
|
* See the License for the specific language governing permissions and
|
|
4435
4441
|
* limitations under the License.
|
|
4436
4442
|
*/
|
|
4437
|
-
const
|
|
4443
|
+
const qr = "__/auth/handler", Kr = "emulator/auth/handler", Jr = encodeURIComponent("fac");
|
|
4438
4444
|
async function mt(n, e, t, i, r, s) {
|
|
4439
4445
|
u(
|
|
4440
4446
|
n.config.authDomain,
|
|
@@ -4456,7 +4462,7 @@ async function mt(n, e, t, i, r, s) {
|
|
|
4456
4462
|
eventId: r
|
|
4457
4463
|
};
|
|
4458
4464
|
if (e instanceof qt) {
|
|
4459
|
-
e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "",
|
|
4465
|
+
e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Ln(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
|
|
4460
4466
|
for (const [d, m] of Object.entries({}))
|
|
4461
4467
|
o[d] = m;
|
|
4462
4468
|
}
|
|
@@ -4468,11 +4474,11 @@ async function mt(n, e, t, i, r, s) {
|
|
|
4468
4474
|
const c = o;
|
|
4469
4475
|
for (const d of Object.keys(c))
|
|
4470
4476
|
c[d] === void 0 && delete c[d];
|
|
4471
|
-
const a = await n._getAppCheckToken(), l = a ? `#${
|
|
4472
|
-
return `${
|
|
4477
|
+
const a = await n._getAppCheckToken(), l = a ? `#${Jr}=${encodeURIComponent(a)}` : "";
|
|
4478
|
+
return `${Yr(n)}?${se(c).slice(1)}${l}`;
|
|
4473
4479
|
}
|
|
4474
|
-
function
|
|
4475
|
-
return n.emulator ?
|
|
4480
|
+
function Yr({ config: n }) {
|
|
4481
|
+
return n.emulator ? We(n, Kr) : `https://${n.authDomain}/${qr}`;
|
|
4476
4482
|
}
|
|
4477
4483
|
/**
|
|
4478
4484
|
* @license
|
|
@@ -4491,9 +4497,9 @@ function Jr({ config: n }) {
|
|
|
4491
4497
|
* limitations under the License.
|
|
4492
4498
|
*/
|
|
4493
4499
|
const Ne = "webStorageSupport";
|
|
4494
|
-
class
|
|
4500
|
+
class Xr {
|
|
4495
4501
|
constructor() {
|
|
4496
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn =
|
|
4502
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = wr, this._overrideRedirectResult = vr;
|
|
4497
4503
|
}
|
|
4498
4504
|
// Wrapping in async even though we don't await anywhere in order
|
|
4499
4505
|
// to make sure errors are raised as promise rejections
|
|
@@ -4506,7 +4512,7 @@ class Yr {
|
|
|
4506
4512
|
async _openRedirect(e, t, i, r) {
|
|
4507
4513
|
await this._originValidation(e);
|
|
4508
4514
|
const s = await mt(e, t, i, Me(), r);
|
|
4509
|
-
return
|
|
4515
|
+
return er(s), new Promise(() => {
|
|
4510
4516
|
});
|
|
4511
4517
|
}
|
|
4512
4518
|
_initialize(e) {
|
|
@@ -4521,7 +4527,7 @@ class Yr {
|
|
|
4521
4527
|
}), i;
|
|
4522
4528
|
}
|
|
4523
4529
|
async initAndGetManager(e) {
|
|
4524
|
-
const t = await
|
|
4530
|
+
const t = await Vr(e), i = new kr(e);
|
|
4525
4531
|
return t.register("authEvent", (r) => (u(
|
|
4526
4532
|
r == null ? void 0 : r.authEvent,
|
|
4527
4533
|
e,
|
|
@@ -4545,13 +4551,13 @@ class Yr {
|
|
|
4545
4551
|
}
|
|
4546
4552
|
_originValidation(e) {
|
|
4547
4553
|
const t = e._key();
|
|
4548
|
-
return this.originValidationPromises[t] || (this.originValidationPromises[t] =
|
|
4554
|
+
return this.originValidationPromises[t] || (this.originValidationPromises[t] = Ar(e)), this.originValidationPromises[t];
|
|
4549
4555
|
}
|
|
4550
4556
|
get _shouldInitProactively() {
|
|
4551
|
-
return
|
|
4557
|
+
return jt() || Be() || ke();
|
|
4552
4558
|
}
|
|
4553
4559
|
}
|
|
4554
|
-
const
|
|
4560
|
+
const Qr = Xr;
|
|
4555
4561
|
var gt = "@firebase/auth", _t = "1.7.5";
|
|
4556
4562
|
/**
|
|
4557
4563
|
* @license
|
|
@@ -4569,7 +4575,7 @@ var gt = "@firebase/auth", _t = "1.7.5";
|
|
|
4569
4575
|
* See the License for the specific language governing permissions and
|
|
4570
4576
|
* limitations under the License.
|
|
4571
4577
|
*/
|
|
4572
|
-
class
|
|
4578
|
+
class Zr {
|
|
4573
4579
|
constructor(e) {
|
|
4574
4580
|
this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
|
|
4575
4581
|
}
|
|
@@ -4620,7 +4626,7 @@ class Qr {
|
|
|
4620
4626
|
* See the License for the specific language governing permissions and
|
|
4621
4627
|
* limitations under the License.
|
|
4622
4628
|
*/
|
|
4623
|
-
function
|
|
4629
|
+
function es(n) {
|
|
4624
4630
|
switch (n) {
|
|
4625
4631
|
case "Node":
|
|
4626
4632
|
return "node";
|
|
@@ -4636,7 +4642,7 @@ function Zr(n) {
|
|
|
4636
4642
|
return;
|
|
4637
4643
|
}
|
|
4638
4644
|
}
|
|
4639
|
-
function
|
|
4645
|
+
function ts(n) {
|
|
4640
4646
|
Ze(new et(
|
|
4641
4647
|
"auth",
|
|
4642
4648
|
(e, { options: t }) => {
|
|
@@ -4649,9 +4655,9 @@ function es(n) {
|
|
|
4649
4655
|
apiHost: "identitytoolkit.googleapis.com",
|
|
4650
4656
|
tokenApiHost: "securetoken.googleapis.com",
|
|
4651
4657
|
apiScheme: "https",
|
|
4652
|
-
sdkClientVersion:
|
|
4653
|
-
}, l = new
|
|
4654
|
-
return
|
|
4658
|
+
sdkClientVersion: Bt(n)
|
|
4659
|
+
}, l = new Ci(i, r, s, a);
|
|
4660
|
+
return Di(l, t), l;
|
|
4655
4661
|
},
|
|
4656
4662
|
"PUBLIC"
|
|
4657
4663
|
/* ComponentType.PUBLIC */
|
|
@@ -4670,14 +4676,14 @@ function es(n) {
|
|
|
4670
4676
|
"auth"
|
|
4671
4677
|
/* _ComponentName.AUTH */
|
|
4672
4678
|
).getImmediate());
|
|
4673
|
-
return ((i) => new
|
|
4679
|
+
return ((i) => new Zr(i))(t);
|
|
4674
4680
|
},
|
|
4675
4681
|
"PRIVATE"
|
|
4676
4682
|
/* ComponentType.PRIVATE */
|
|
4677
4683
|
).setInstantiationMode(
|
|
4678
4684
|
"EXPLICIT"
|
|
4679
4685
|
/* InstantiationMode.EXPLICIT */
|
|
4680
|
-
)), Le(gt, _t,
|
|
4686
|
+
)), Le(gt, _t, es(n)), Le(gt, _t, "esm2017");
|
|
4681
4687
|
}
|
|
4682
4688
|
/**
|
|
4683
4689
|
* @license
|
|
@@ -4695,11 +4701,11 @@ function es(n) {
|
|
|
4695
4701
|
* See the License for the specific language governing permissions and
|
|
4696
4702
|
* limitations under the License.
|
|
4697
4703
|
*/
|
|
4698
|
-
const
|
|
4704
|
+
const ns = 5 * 60, is = kt("authIdTokenMaxAge") || ns;
|
|
4699
4705
|
let vt = null;
|
|
4700
|
-
const
|
|
4706
|
+
const rs = (n) => async (e) => {
|
|
4701
4707
|
const t = e && await e.getIdTokenResult(), i = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
|
|
4702
|
-
if (i && i >
|
|
4708
|
+
if (i && i > is)
|
|
4703
4709
|
return;
|
|
4704
4710
|
const r = t == null ? void 0 : t.token;
|
|
4705
4711
|
vt !== r && (vt = r, await fetch(n, {
|
|
@@ -4709,33 +4715,33 @@ const is = (n) => async (e) => {
|
|
|
4709
4715
|
} : {}
|
|
4710
4716
|
}));
|
|
4711
4717
|
};
|
|
4712
|
-
function
|
|
4718
|
+
function ss(n = Pn()) {
|
|
4713
4719
|
const e = bt(n, "auth");
|
|
4714
4720
|
if (e.isInitialized())
|
|
4715
4721
|
return e.getImmediate();
|
|
4716
|
-
const t =
|
|
4717
|
-
popupRedirectResolver:
|
|
4722
|
+
const t = Ui(n, {
|
|
4723
|
+
popupRedirectResolver: Qr,
|
|
4718
4724
|
persistence: [
|
|
4719
|
-
|
|
4720
|
-
|
|
4725
|
+
lr,
|
|
4726
|
+
Xi,
|
|
4721
4727
|
Qt
|
|
4722
4728
|
]
|
|
4723
4729
|
}), i = kt("authTokenSyncURL");
|
|
4724
4730
|
if (i && typeof isSecureContext == "boolean" && isSecureContext) {
|
|
4725
4731
|
const s = new URL(i, location.origin);
|
|
4726
4732
|
if (location.origin === s.origin) {
|
|
4727
|
-
const o =
|
|
4728
|
-
|
|
4733
|
+
const o = rs(s.toString());
|
|
4734
|
+
qi(t, o, () => o(t.currentUser)), zi(t, (c) => o(c));
|
|
4729
4735
|
}
|
|
4730
4736
|
}
|
|
4731
|
-
const r =
|
|
4732
|
-
return r &&
|
|
4737
|
+
const r = An("auth");
|
|
4738
|
+
return r && xi(t, `http://${r}`), t;
|
|
4733
4739
|
}
|
|
4734
|
-
function
|
|
4740
|
+
function os() {
|
|
4735
4741
|
var n, e;
|
|
4736
4742
|
return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
|
|
4737
4743
|
}
|
|
4738
|
-
|
|
4744
|
+
Ni({
|
|
4739
4745
|
loadJS(n) {
|
|
4740
4746
|
return new Promise((e, t) => {
|
|
4741
4747
|
const i = document.createElement("script");
|
|
@@ -4745,68 +4751,68 @@ Ci({
|
|
|
4745
4751
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
4746
4752
|
);
|
|
4747
4753
|
s.customData = r, t(s);
|
|
4748
|
-
}, i.type = "text/javascript", i.charset = "UTF-8",
|
|
4754
|
+
}, i.type = "text/javascript", i.charset = "UTF-8", os().appendChild(i);
|
|
4749
4755
|
});
|
|
4750
4756
|
},
|
|
4751
4757
|
gapiScript: "https://apis.google.com/js/api.js",
|
|
4752
4758
|
recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
|
|
4753
4759
|
recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
|
|
4754
4760
|
});
|
|
4755
|
-
|
|
4761
|
+
ts(
|
|
4756
4762
|
"Browser"
|
|
4757
4763
|
/* ClientPlatform.BROWSER */
|
|
4758
4764
|
);
|
|
4759
|
-
var
|
|
4760
|
-
const
|
|
4765
|
+
var as = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, assetBucketUrl: "feedme-dev-4c3ef.appspot.com", importFilesBucketUrl: "feedme-dev-4c3ef.appspot.com", clientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4" }, cs = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
|
|
4766
|
+
const ls = {
|
|
4761
4767
|
key: 2,
|
|
4762
4768
|
class: "h-full w-full"
|
|
4763
|
-
},
|
|
4769
|
+
}, us = ["src"], Ps = /* @__PURE__ */ xe({
|
|
4764
4770
|
__name: "App",
|
|
4765
4771
|
setup(n) {
|
|
4766
|
-
const e = ge(), t = pn(), i = mn(), r = gn(), s = _n(), o = wt(), c =
|
|
4767
|
-
const p = e.currentCountry.value || "MY",
|
|
4768
|
-
return `${
|
|
4772
|
+
const e = ge(), t = pn(), i = mn(), r = gn(), s = _n(), o = wt(), c = te(o.query.showHeader !== "false"), a = te(!1), { currentBusiness: l } = ge(), d = te(!1), m = Y(() => i.version), y = Y(() => {
|
|
4773
|
+
const p = e.currentCountry.value || "MY", g = tt.getIdToken(), T = l.value._id;
|
|
4774
|
+
return `${cs.marketingV1Portal}/b/${T}/marketing/overview?showHeader=false&country=${p}&token=${g}`;
|
|
4769
4775
|
});
|
|
4770
|
-
async function
|
|
4771
|
-
if (
|
|
4776
|
+
async function f() {
|
|
4777
|
+
if (Mn().length) {
|
|
4772
4778
|
console.warn("CONNECT: initFirebase: Firebase already initialized");
|
|
4773
4779
|
return;
|
|
4774
4780
|
}
|
|
4775
|
-
const p =
|
|
4776
|
-
await Gi(T,
|
|
4781
|
+
const p = Un(as.firebase), g = await fn.getCustomToken(), T = ss();
|
|
4782
|
+
await Gi(T, g), Dn(p), console.log("initFirebase", p);
|
|
4777
4783
|
}
|
|
4778
|
-
const
|
|
4779
|
-
d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent(
|
|
4784
|
+
const I = async () => {
|
|
4785
|
+
d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent($n) : e.hideSidebarToggle(!0), await f(), a.value = !0, d.value = !0;
|
|
4780
4786
|
};
|
|
4781
4787
|
return un(() => {
|
|
4782
|
-
if (
|
|
4783
|
-
const p = document.getElementsByClassName("app-header")[0],
|
|
4784
|
-
p == null || p.classList.add("!hidden"),
|
|
4788
|
+
if (xn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
|
|
4789
|
+
const p = document.getElementsByClassName("app-header")[0], g = document.getElementsByClassName("app-sidebar")[0], T = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
|
|
4790
|
+
p == null || p.classList.add("!hidden"), g == null || g.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
|
|
4785
4791
|
}
|
|
4786
|
-
l.value != null && (console.log("App mounted, forceRerender"),
|
|
4792
|
+
l.value != null && (console.log("App mounted, forceRerender"), I());
|
|
4787
4793
|
}), pe(
|
|
4788
4794
|
() => e.currentBusiness.value,
|
|
4789
|
-
async (p,
|
|
4790
|
-
console.log("Current business changed"), p != null && p._id !=
|
|
4795
|
+
async (p, g) => {
|
|
4796
|
+
console.log("Current business changed"), p != null && p._id != g._id && (console.log("forceRerender when business changes", p, g), I());
|
|
4791
4797
|
}
|
|
4792
|
-
), (p,
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
S(
|
|
4797
|
-
json: { url:
|
|
4798
|
+
), (p, g) => (j(), me(It, null, [
|
|
4799
|
+
_(d) && _(m) === "v2" ? (j(), Oe(_(hn), { key: 0 })) : Pe("", !0),
|
|
4800
|
+
_(d) && _(m) === "v2" && _(c) ? (j(), Oe(ri, { key: 1 })) : Pe("", !0),
|
|
4801
|
+
_(d) && _(m) !== "v2" ? (j(), me("div", ls, [
|
|
4802
|
+
S(Tn, {
|
|
4803
|
+
json: { url: _(y) }
|
|
4798
4804
|
}, null, 8, ["json"]),
|
|
4799
4805
|
v("iframe", {
|
|
4800
4806
|
allow: "clipboard-read; clipboard-write",
|
|
4801
4807
|
frameBorder: "0",
|
|
4802
4808
|
height: "100%",
|
|
4803
4809
|
width: "100%",
|
|
4804
|
-
src:
|
|
4805
|
-
}, null, 8,
|
|
4810
|
+
src: _(y)
|
|
4811
|
+
}, null, 8, us)
|
|
4806
4812
|
])) : Pe("", !0)
|
|
4807
4813
|
], 64));
|
|
4808
4814
|
}
|
|
4809
4815
|
});
|
|
4810
4816
|
export {
|
|
4811
|
-
|
|
4817
|
+
Ps as default
|
|
4812
4818
|
};
|