@feedmepos/mf-connect 0.1.118-prod → 0.1.119-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -8
- package/dist/{App-BHcTqLff.js → App-BN2LKM3u.js} +251 -251
- package/dist/{Bin-DWhXJmHo.js → Bin-DpQ1atb7.js} +8 -8
- package/dist/{Broadcast-Ct1DL8Pd.js → Broadcast-c1ZyYClI.js} +11 -11
- package/dist/{CampaignAnalytic-BSEKCM-4.js → CampaignAnalytic-w1hIlc2r.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BxRg2Wu8.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D7U6evm1.js} +9 -9
- package/dist/{Card-B7DwrAPH.js → Card-De53Xgbe.js} +22 -22
- package/dist/{Collections-BJw4JJq_.js → Collections-BL2RD3FU.js} +9 -9
- package/dist/{Credit-BteIGXkp.js → Credit-2KvFFcwR.js} +11 -11
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CSFwIzOS.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CKSs2nYE.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJotVIKM.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BXb7v7wc.js} +736 -739
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BDZ21UHA.js → EffectSheet.vue_vue_type_style_index_0_lang-Jy7HkK5Z.js} +6 -6
- package/dist/{Experience-C_VQVfJX.js → Experience-Cb0jHtVo.js} +12 -12
- package/dist/{FileSaver.min-CMiQUZQE.js → FileSaver.min-UDgZF_Cv.js} +1 -1
- package/dist/{Game-BiHMrMBF.js → Game-BnysxSMs.js} +12 -12
- package/dist/{GiftCardSetup-DtJIm6oI.js → GiftCardSetup-s1OR6xQq.js} +10 -10
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-BKGnPAEj.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-D108r20x.js} +7 -7
- package/dist/{Goals-B7VjLMDT.js → Goals-BAieLPzR.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-C9ecPgpJ.js → ImageInput.vue_vue_type_script_setup_true_lang-B9Jgq5Bp.js} +1 -1
- package/dist/{Index-D_DIHKZG.js → Index-DnX16GAE.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DSwB0Ubn.js → LocationPicker.vue_vue_type_script_setup_true_lang-DeM-WG6m.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-dk8_eVwd.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BAN69FOS.js} +1 -1
- package/dist/{LoyaltyDashboard-DOgHeJdK.js → LoyaltyDashboard-D8g6OSbC.js} +15 -15
- package/dist/{MainLayout-CfYgoXLS.js → MainLayout-DWABjpQn.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-Bz2LGHUd.js → MainLayout.vue_vue_type_script_setup_true_lang-COp7iulq.js} +3 -3
- package/dist/{Marketing-B6TCrwaR.js → Marketing-Dagatr0y.js} +4 -4
- package/dist/{MarketingMaterialEdit-Bu3a9NGj.js → MarketingMaterialEdit-DYVzNDpM.js} +6 -6
- package/dist/{Member-X51KrYXV.js → Member-DAxdEF_Z.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-CYU21JaO.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-nBg7Hckj.js} +23 -23
- package/dist/{MemberImportHistory-CHd9fx7E.js → MemberImportHistory-2gx6FnLh.js} +7 -7
- package/dist/{MemberList-D4L3bSlw.js → MemberList-By_gGl-J.js} +14 -14
- package/dist/{MemberTransactions-CEgjfhnX.js → MemberTransactions-BEF-4ZNp.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-zsaig_yK.js → MessageInput.vue_vue_type_script_setup_true_lang-Bs8wKx9B.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-YZQkKG66.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DN3mWfKj.js} +1 -1
- package/dist/{Mission-BEVtvY0-.js → Mission-jg15lBxo.js} +13 -13
- package/dist/{Overview-4QRkldza.js → Overview-BFKLTAk1.js} +4 -4
- package/dist/{Overview-DVoXXZ16.js → Overview-C7WfdzfV.js} +20 -20
- package/dist/{Point-BJmebaL9.js → Point-dv9WgWTQ.js} +13 -13
- package/dist/{Promotion-DWZZBofu.js → Promotion-mFPF_8jO.js} +13 -13
- package/dist/{Queue-DLdsyhCT.js → Queue-BQoR_M5H.js} +12 -12
- package/dist/{Record-QOD3XELf.js → Record-1JZ1N5iX.js} +9 -9
- package/dist/{Review-CKmhyuqj.js → Review-B52AxCeT.js} +2 -2
- package/dist/{ReviewFacebookCallback-C6DlaJ_j.js → ReviewFacebookCallback-ihTdiI8V.js} +5 -5
- package/dist/{ReviewGoogleCallback-CDriVQPZ.js → ReviewGoogleCallback-DO6SVFIC.js} +5 -5
- package/dist/Reward-Cp4jPAB0.js +444 -0
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-ZgYX2QwC.js → RewardGroup.vue_vue_type_script_setup_true_lang-DLD6X13Z.js} +13 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DHmBwLNP.js → RuleGroup.vue_vue_type_script_setup_true_lang-pdHRjCt8.js} +15 -15
- package/dist/{Segment-URdB0lnl.js → Segment-DaKw0YXF.js} +26 -26
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DmI2LAsz.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Bj3OQ_JJ.js} +14 -14
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCEgZzA4.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B1Otak97.js} +4 -4
- package/dist/{Setting-BDIHH2Wk.js → Setting-DveUrt8J.js} +14 -14
- package/dist/{SettingAdvertisements-CkJYZnIN.js → SettingAdvertisements-QRXOMNnM.js} +12 -12
- package/dist/{Settings-9gaegvYJ.js → Settings-D9D-mkBa.js} +5 -5
- package/dist/{Store-CV0kYncl.js → Store-DjdXRw3V.js} +26 -26
- package/dist/{StoreRewards-30kSkAZ_.js → StoreRewards-CjlGrc9E.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Dgwyk3NA.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DnwMpqzf.js} +24 -24
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CDUhH6wp.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-I5-5BV4h.js} +2 -2
- package/dist/{Tier-DiQSC3iv.js → Tier-D74Oh2np.js} +25 -25
- package/dist/{Title-DixxpjAg.js → Title-CeeviOW8.js} +23 -23
- package/dist/{Transaction-DQK4LUGD.js → Transaction-CWdw0ITl.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CL-GKkuD.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B9nf-9s0.js} +6 -6
- package/dist/{Voucher-CSVlk_Hr.js → Voucher-C0nNXMtv.js} +18 -18
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CiSoy0Ky.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DxZLsQq9.js} +12 -12
- package/dist/{WhatsappAccount-CQYbv2Ew.js → WhatsappAccount-CoLSjCQ2.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DjgRo9iA.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DkHPlGgT.js} +1 -1
- package/dist/{WhatsappBot-DdO9Bfvh.js → WhatsappBot-kLb3kUav.js} +6 -6
- package/dist/{WhatsappBotLogs-CjjWJGND.js → WhatsappBotLogs-jcYaHs0t.js} +6 -6
- package/dist/{WhatsappBotSettings-DYGx-kRr.js → WhatsappBotSettings-B6jJD61h.js} +4 -4
- package/dist/WhatsappLayout-C24bIjI2.js +21 -0
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DTUytfe5.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-9a_grP76.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DdCUr_Zm.js → ZodTextField.vue_vue_type_script_setup_true_lang-i8Wc2mCr.js} +2 -2
- package/dist/{app-CqQeNnGq.js → app-C06bAZj3.js} +165 -165
- package/dist/app.js +1 -1
- package/dist/{base.export-Dls5LQeu.js → base.export-CgNRhKu8.js} +2 -2
- package/dist/{business-gvLSQklz.js → business-D23Dt1x4.js} +1 -1
- package/dist/{campaign-BqazvOUj.js → campaign-DfEvGigm.js} +8 -8
- package/dist/{campaign-Cd6GmA4U.js → campaign-FVcbXtrP.js} +2 -2
- package/dist/{campaign.fn-C0oMb1fs.js → campaign.fn-0MNUj1fZ.js} +39 -39
- package/dist/{collection.fn-CERMsFPh.js → collection.fn-DC1AMI9o.js} +2 -2
- package/dist/{currency-IkiKiNg1.js → currency-Bra2RJK4.js} +1 -1
- package/dist/{effect-j_T62HBN.js → effect-EL4V3pAu.js} +1 -1
- package/dist/{email-addresses-CN1kPlEj.js → email-addresses-Ddtf1x_y.js} +2 -2
- package/dist/{feature-flag-DDfyOLsv.js → feature-flag-umACX47C.js} +155 -155
- package/dist/{helper-DVUe13eh.js → helper-DqDOnLCf.js} +1 -1
- package/dist/{index-C_SaKemI.js → index-B2lqC_hH.js} +1 -1
- package/dist/{index-BvoOJdfc.js → index-B3U3KZl0.js} +2 -2
- package/dist/{index-COuLtOaw.js → index-BTjhdlN_.js} +1 -1
- package/dist/{index-DALsfLV7.js → index-B_BmgKrh.js} +2 -2
- package/dist/{index-ep_Kxxid.js → index-BkKu2G2c.js} +2 -2
- package/dist/{index-lzQ6ehOk.js → index-BroF2fC8.js} +8 -8
- package/dist/{index-9RBtEPPj.js → index-Bvk61_w_.js} +1 -1
- package/dist/{index-DMiaWY0s.js → index-ByVPdKdB.js} +4 -4
- package/dist/{index-jS16KX9p.js → index-BzwwXWpZ.js} +1 -1
- package/dist/{index-D_1pnadB.js → index-C3hAzzS2.js} +1 -1
- package/dist/{index-CPyK4a5J.js → index-C3lk4GHF.js} +1 -1
- package/dist/{index-UJHdDEG1.js → index-C6p9Lsvf.js} +1 -1
- package/dist/{index-CWGbeg5X.js → index-CEh6ryp2.js} +1 -1
- package/dist/{index-BmIfGArh.js → index-DK9zxpDu.js} +3 -3
- package/dist/{index-DzbVgUEP.js → index-DuCJtx1m.js} +1 -1
- package/dist/{index-C-IajuP1.js → index-LjoAs_nX.js} +8 -8
- package/dist/{index-fNYUguDQ.js → index-TDCPGtW3.js} +4 -4
- package/dist/{index-BvkqHehI.js → index-iVbjwKxc.js} +2 -2
- package/dist/{index-k7FFxt_M.js → index-pfmx-Gor.js} +2 -2
- package/dist/{index-Cjy0SXCn.js → index-rcfcslIC.js} +3 -3
- package/dist/{index.esm2017-vJKhLfdu.js → index.esm2017-DCuQPCX2.js} +1 -1
- package/dist/{loading-jZV2Dm--.js → loading-CQm1DKWE.js} +1 -1
- package/dist/{lodash-C2pLek0l.js → lodash-C2wVbAap.js} +1 -1
- package/dist/{member-import-BKI7soRD.js → member-import-BLEmTRso.js} +1 -1
- package/dist/{membership-smdlFpPr.js → membership-XycnxPEW.js} +2 -2
- package/dist/{money-5XyTnYwW.js → money-DY_QGzd1.js} +1 -1
- package/dist/{number-DHU9qJJQ.js → number-BHthf4qF.js} +1 -1
- package/dist/{objectid-jT5g6pGt.js → objectid-CPCAqIiC.js} +8 -8
- package/dist/{onboarding-C_5pyGx-.js → onboarding-BOJw54Fn.js} +3 -3
- package/dist/{onboardingSetup-Bd1V-Ipy.js → onboardingSetup-Cf2u1tXu.js} +2 -2
- package/dist/{plugins-D1Ru-da5.js → plugins-DKQeoL_e.js} +3 -3
- package/dist/{reward-BqPl68Xk.js → reward-D4RIYSpl.js} +1 -1
- package/dist/{rule-WBrRXwL-.js → rule-Ba-s0L_w.js} +3 -3
- package/dist/{rule-builder-DAlSbaWh.js → rule-builder-D0B0DPao.js} +1 -1
- package/dist/{template-DDquG4Xc.js → template-B40I16Yg.js} +7 -7
- package/dist/{timezone-O4qrCDcK.js → timezone-CAc8xi1h.js} +1 -1
- package/dist/{transaction.fn-CY_F8Nb8.js → transaction.fn-Cp2hnhyU.js} +2 -2
- package/dist/{trigger-D-vySeIB.js → trigger-3ebhNBX7.js} +5 -5
- package/dist/{useMarketingMaterialActions-kA6SLHy_.js → useMarketingMaterialActions-6URv8neP.js} +4 -4
- package/dist/{usePagination-AYE_RJH2.js → usePagination-C-fyMmiy.js} +1 -1
- package/dist/{user-DJcMkYXP.js → user-T-iXTrYV.js} +1 -1
- package/dist/{vue-i18n-kXHiDb_1.js → vue-i18n-DzsxJorb.js} +361 -361
- package/dist/{xlsx--s3hBdDk.js → xlsx-B8OqaJfb.js} +1 -1
- package/dist/{zod-IpHRbxaJ.js → zod-DZkNj425.js} +1 -1
- package/package.json +1 -1
- package/dist/Reward-DftoZfPN.js +0 -442
- package/dist/WhatsappLayout-B6k_79Kl.js +0 -21
|
@@ -2,23 +2,23 @@ import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as Y,
|
|
|
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 {
|
|
7
|
-
import "./index-
|
|
8
|
-
import { components as j, useSnackbar as
|
|
9
|
-
import { u as Tt } from "./vue-i18n-
|
|
10
|
-
import { m as
|
|
11
|
-
import { C as Xe } from "./timezone-
|
|
12
|
-
import { u as
|
|
13
|
-
import { R as p, A as
|
|
14
|
-
import { J as
|
|
15
|
-
import { r as Le, L as
|
|
5
|
+
import { u as mn } from "./business-D23Dt1x4.js";
|
|
6
|
+
import { u as gn, l as _n } from "./feature-flag-umACX47C.js";
|
|
7
|
+
import "./index-BzwwXWpZ.js";
|
|
8
|
+
import { components as j, useSnackbar as vn, useDialog as In } from "@feedmepos/ui-library";
|
|
9
|
+
import { u as Tt } from "./vue-i18n-DzsxJorb.js";
|
|
10
|
+
import { m as yn } from "./index-DuCJtx1m.js";
|
|
11
|
+
import { C as Xe } from "./timezone-CAc8xi1h.js";
|
|
12
|
+
import { u as wn } from "./onboarding-BOJw54Fn.js";
|
|
13
|
+
import { R as p, A as Tn, a as Qe } from "./app-C06bAZj3.js";
|
|
14
|
+
import { J as kn } from "./JsonViewer-v8_C7l5N.js";
|
|
15
|
+
import { r as Le, L as bn, g as kt, i as En, a as Sn, _ as Ze, C as et, b as Rn, S as se, c as A, d as X, E as Fe, e as An, f as bt, h as Pn, j as Cn, k as Et, l as w, m as Nn, F as Ve, n as On, q as oe, o as Ln, p as Mn, s as Un, t as Dn, u as xn } from "./index.esm2017-DCuQPCX2.js";
|
|
16
16
|
import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
|
|
17
|
-
import { S as tt, c as
|
|
18
|
-
const
|
|
17
|
+
import { S as tt, c as Fn } from "./index-iVbjwKxc.js";
|
|
18
|
+
const Vn = { class: "flex flex-col h-full justify-between py-16" }, $n = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Hn = /* @__PURE__ */ xe({
|
|
19
19
|
__name: "NavigationTab",
|
|
20
20
|
setup(n) {
|
|
21
|
-
const { t: e, locale: t } = Tt(), i =
|
|
21
|
+
const { t: e, locale: t } = Tt(), i = wn(), r = gn(), s = te(), o = [
|
|
22
22
|
{
|
|
23
23
|
label: e("connect.navigation.analytic"),
|
|
24
24
|
value: p["$connect-ANALYTIC"]
|
|
@@ -142,7 +142,7 @@ const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class
|
|
|
142
142
|
}
|
|
143
143
|
], c = Y(
|
|
144
144
|
() => o.filter(
|
|
145
|
-
(h) => h.value !== p["$connect-WHATSAPP"] || r(
|
|
145
|
+
(h) => h.value !== p["$connect-WHATSAPP"] || r() === "on"
|
|
146
146
|
)
|
|
147
147
|
), a = yt(), l = wt(), d = o.reduce((h, f) => [...(f.children ?? []).map((g) => g.value), ...h, f.value], []), m = ge(), y = Y(() => {
|
|
148
148
|
const h = m.currentCountry.value || "MY";
|
|
@@ -174,35 +174,35 @@ const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class
|
|
|
174
174
|
return (h, f) => {
|
|
175
175
|
var v;
|
|
176
176
|
const g = ee("FmCollapsibleTabs");
|
|
177
|
-
return W(), me("div",
|
|
177
|
+
return W(), me("div", Vn, [
|
|
178
178
|
S(g, {
|
|
179
179
|
class: "border-fm-color-neutral-gray-100 border-r px-4",
|
|
180
180
|
"model-value": (v = _(s)) == null ? void 0 : v.toString(),
|
|
181
181
|
items: _(c),
|
|
182
182
|
"onUpdate:modelValue": T
|
|
183
183
|
}, null, 8, ["model-value", "items"]),
|
|
184
|
-
I("div",
|
|
184
|
+
I("div", $n, [
|
|
185
185
|
I("div", null, "Timezone: " + R(_(y).split("/")[1].replace("_", " ")), 1),
|
|
186
|
-
I("div", null, "(UTC" + R(_(
|
|
186
|
+
I("div", null, "(UTC" + R(_(yn).tz(_(y)).format("Z")) + ")", 1)
|
|
187
187
|
])
|
|
188
188
|
]);
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
191
|
}), St = "feedme_connect_marketing_promo_hidden";
|
|
192
|
-
function
|
|
192
|
+
function jn() {
|
|
193
193
|
try {
|
|
194
194
|
return localStorage.getItem(St) !== null;
|
|
195
195
|
} catch {
|
|
196
196
|
return !1;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function Wn() {
|
|
200
200
|
try {
|
|
201
201
|
localStorage.setItem(St, (/* @__PURE__ */ new Date()).toISOString());
|
|
202
202
|
} catch {
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
const
|
|
205
|
+
const Bn = { class: "flex flex-col gap-12" }, Gn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, zn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, qn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, Kn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Jn = { class: "flex flex-col gap-24 pb-8" }, Yn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Xn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Qn = { class: "fm-typo-en-body-lg-600" }, Zn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ei = { class: "shrink-0" }, ti = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ni = { class: "flex w-full flex-col gap-12 px-[16px]" }, ii = { class: "flex flex-wrap items-center gap-12" }, ri = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, si = /* @__PURE__ */ xe({
|
|
206
206
|
__name: "AiMarketingPromoDialog",
|
|
207
207
|
setup(n) {
|
|
208
208
|
let e = !1;
|
|
@@ -213,7 +213,7 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
|
|
|
213
213
|
], a = Y(() => {
|
|
214
214
|
var h;
|
|
215
215
|
const T = ((h = r.value) == null ? void 0 : h.permissions) ?? [];
|
|
216
|
-
return
|
|
216
|
+
return Tn(
|
|
217
217
|
[
|
|
218
218
|
{
|
|
219
219
|
action: Qe.Action.manage,
|
|
@@ -229,7 +229,7 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
|
|
|
229
229
|
ie(
|
|
230
230
|
l,
|
|
231
231
|
(T) => {
|
|
232
|
-
d || !T || (d = !0, !(
|
|
232
|
+
d || !T || (d = !0, !(jn() || e) && (e = !0, o.value = !0));
|
|
233
233
|
},
|
|
234
234
|
{ immediate: !0 }
|
|
235
235
|
);
|
|
@@ -237,7 +237,7 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
|
|
|
237
237
|
o.value = !1, await i.push({ name: p["$connect-MARKETING"] });
|
|
238
238
|
}
|
|
239
239
|
function y() {
|
|
240
|
-
|
|
240
|
+
Wn(), o.value = !1;
|
|
241
241
|
}
|
|
242
242
|
return (T, h) => {
|
|
243
243
|
const f = ee("FmIcon"), g = ee("FmCard"), v = ee("FmButton"), M = ee("FmDialog");
|
|
@@ -250,22 +250,22 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
|
|
|
250
250
|
"dismiss-away": ""
|
|
251
251
|
}, {
|
|
252
252
|
"dialog-header": Z(() => [
|
|
253
|
-
I("div",
|
|
254
|
-
I("div",
|
|
253
|
+
I("div", Bn, [
|
|
254
|
+
I("div", Gn, [
|
|
255
255
|
S(f, {
|
|
256
256
|
name: "auto_awesome",
|
|
257
257
|
size: "sm",
|
|
258
258
|
color: "primary"
|
|
259
259
|
}),
|
|
260
|
-
I("span",
|
|
260
|
+
I("span", zn, R(_(t)("connect.marketing.whatsNew.badge")), 1)
|
|
261
261
|
]),
|
|
262
|
-
I("h1",
|
|
263
|
-
I("p",
|
|
262
|
+
I("h1", qn, R(_(t)("connect.marketing.whatsNew.title")), 1),
|
|
263
|
+
I("p", Kn, R(_(t)("connect.marketing.whatsNew.subtitle")), 1)
|
|
264
264
|
])
|
|
265
265
|
]),
|
|
266
266
|
"dialog-footer": Z(() => [
|
|
267
|
-
I("div",
|
|
268
|
-
I("div",
|
|
267
|
+
I("div", ni, [
|
|
268
|
+
I("div", ii, [
|
|
269
269
|
S(v, {
|
|
270
270
|
variant: "primary",
|
|
271
271
|
size: "lg",
|
|
@@ -280,27 +280,27 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
|
|
|
280
280
|
onClick: y
|
|
281
281
|
}, null, 8, ["label"])
|
|
282
282
|
]),
|
|
283
|
-
I("div",
|
|
283
|
+
I("div", ri, R(_(t)("connect.marketing.whatsNew.footnote")), 1)
|
|
284
284
|
])
|
|
285
285
|
]),
|
|
286
286
|
default: Z(() => [
|
|
287
|
-
I("div",
|
|
288
|
-
I("div",
|
|
287
|
+
I("div", Jn, [
|
|
288
|
+
I("div", Yn, [
|
|
289
289
|
(W(), me(It, null, ln(c, (k) => S(g, {
|
|
290
290
|
key: k.key,
|
|
291
291
|
variant: "outlined",
|
|
292
292
|
class: "!h-full flex flex-col gap-8 p-16"
|
|
293
293
|
}, {
|
|
294
294
|
default: Z(() => [
|
|
295
|
-
I("div",
|
|
295
|
+
I("div", Xn, [
|
|
296
296
|
S(f, {
|
|
297
297
|
name: k.icon,
|
|
298
298
|
size: "md",
|
|
299
299
|
color: "primary"
|
|
300
300
|
}, null, 8, ["name"])
|
|
301
301
|
]),
|
|
302
|
-
I("div",
|
|
303
|
-
I("div",
|
|
302
|
+
I("div", Qn, R(_(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
|
|
303
|
+
I("div", Zn, R(_(t)(
|
|
304
304
|
`connect.marketing.whatsNew.benefits.${k.key}.description`
|
|
305
305
|
)), 1)
|
|
306
306
|
]),
|
|
@@ -312,14 +312,14 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
|
|
|
312
312
|
class: "flex items-start gap-12 p-16"
|
|
313
313
|
}, {
|
|
314
314
|
default: Z(() => [
|
|
315
|
-
I("div",
|
|
315
|
+
I("div", ei, [
|
|
316
316
|
S(f, {
|
|
317
317
|
name: "lightbulb",
|
|
318
318
|
size: "md",
|
|
319
319
|
color: "primary"
|
|
320
320
|
})
|
|
321
321
|
]),
|
|
322
|
-
I("p",
|
|
322
|
+
I("p", ti, R(_(t)("connect.marketing.whatsNew.callout")), 1)
|
|
323
323
|
]),
|
|
324
324
|
_: 1
|
|
325
325
|
})
|
|
@@ -330,7 +330,7 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
|
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
|
-
var
|
|
333
|
+
var oi = "firebase", ai = "10.12.4";
|
|
334
334
|
/**
|
|
335
335
|
* @license
|
|
336
336
|
* Copyright 2020 Google LLC
|
|
@@ -347,13 +347,13 @@ var ai = "firebase", ci = "10.12.4";
|
|
|
347
347
|
* See the License for the specific language governing permissions and
|
|
348
348
|
* limitations under the License.
|
|
349
349
|
*/
|
|
350
|
-
Le(
|
|
350
|
+
Le(oi, ai, "app");
|
|
351
351
|
function Rt() {
|
|
352
352
|
return {
|
|
353
353
|
"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."
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
const
|
|
356
|
+
const ci = Rt, At = new Fe("auth", "Firebase", Rt());
|
|
357
357
|
/**
|
|
358
358
|
* @license
|
|
359
359
|
* Copyright 2020 Google LLC
|
|
@@ -370,8 +370,8 @@ const li = Rt, At = new Fe("auth", "Firebase", Rt());
|
|
|
370
370
|
* See the License for the specific language governing permissions and
|
|
371
371
|
* limitations under the License.
|
|
372
372
|
*/
|
|
373
|
-
const _e = new
|
|
374
|
-
function
|
|
373
|
+
const _e = new bn("@firebase/auth");
|
|
374
|
+
function li(n, ...e) {
|
|
375
375
|
_e.logLevel <= Et.WARN && _e.warn(`Auth (${se}): ${n}`, ...e);
|
|
376
376
|
}
|
|
377
377
|
function de(n, ...e) {
|
|
@@ -400,7 +400,7 @@ function b(n, ...e) {
|
|
|
400
400
|
return He(n, ...e);
|
|
401
401
|
}
|
|
402
402
|
function Pt(n, e, t) {
|
|
403
|
-
const i = Object.assign(Object.assign({},
|
|
403
|
+
const i = Object.assign(Object.assign({}, ci()), { [e]: t });
|
|
404
404
|
return new Fe("auth", "Firebase", i).create(e, {
|
|
405
405
|
appName: n.name
|
|
406
406
|
});
|
|
@@ -446,7 +446,7 @@ function Me() {
|
|
|
446
446
|
var n;
|
|
447
447
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function ui() {
|
|
450
450
|
return nt() === "http:" || nt() === "https:";
|
|
451
451
|
}
|
|
452
452
|
function nt() {
|
|
@@ -469,15 +469,15 @@ function nt() {
|
|
|
469
469
|
* See the License for the specific language governing permissions and
|
|
470
470
|
* limitations under the License.
|
|
471
471
|
*/
|
|
472
|
-
function
|
|
472
|
+
function di() {
|
|
473
473
|
return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
|
|
474
474
|
// This is especially true for Cordova apps which have unreliable
|
|
475
475
|
// navigator.onLine behavior unless cordova-plugin-network-information is
|
|
476
476
|
// installed which overwrites the native navigator.onLine value and
|
|
477
477
|
// defines navigator.connection.
|
|
478
|
-
(
|
|
478
|
+
(ui() || Rn() || "connection" in navigator) ? navigator.onLine : !0;
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function hi() {
|
|
481
481
|
if (typeof navigator > "u")
|
|
482
482
|
return null;
|
|
483
483
|
const n = navigator;
|
|
@@ -507,10 +507,10 @@ function fi() {
|
|
|
507
507
|
*/
|
|
508
508
|
class ae {
|
|
509
509
|
constructor(e, t) {
|
|
510
|
-
this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile =
|
|
510
|
+
this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = En() || Sn();
|
|
511
511
|
}
|
|
512
512
|
get() {
|
|
513
|
-
return
|
|
513
|
+
return di() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
/**
|
|
@@ -604,7 +604,7 @@ class Ct {
|
|
|
604
604
|
* See the License for the specific language governing permissions and
|
|
605
605
|
* limitations under the License.
|
|
606
606
|
*/
|
|
607
|
-
const
|
|
607
|
+
const fi = {
|
|
608
608
|
// Custom token errors.
|
|
609
609
|
CREDENTIAL_MISMATCH: "custom-token-mismatch",
|
|
610
610
|
// This can only happen if the SDK sends a bad request.
|
|
@@ -695,7 +695,7 @@ const pi = {
|
|
|
695
695
|
* See the License for the specific language governing permissions and
|
|
696
696
|
* limitations under the License.
|
|
697
697
|
*/
|
|
698
|
-
const
|
|
698
|
+
const pi = new ae(3e4, 6e4);
|
|
699
699
|
function Te(n, e) {
|
|
700
700
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
|
701
701
|
}
|
|
@@ -721,9 +721,9 @@ async function Q(n, e, t, i, r = {}) {
|
|
|
721
721
|
}
|
|
722
722
|
async function Nt(n, e, t) {
|
|
723
723
|
n._canInitEmulator = !1;
|
|
724
|
-
const i = Object.assign(Object.assign({},
|
|
724
|
+
const i = Object.assign(Object.assign({}, fi), e);
|
|
725
725
|
try {
|
|
726
|
-
const r = new
|
|
726
|
+
const r = new mi(n), s = await Promise.race([
|
|
727
727
|
t(),
|
|
728
728
|
r.promise
|
|
729
729
|
]);
|
|
@@ -762,14 +762,14 @@ function Lt(n, e, t, i) {
|
|
|
762
762
|
const r = `${e}${t}?${i}`;
|
|
763
763
|
return n.config.emulator ? je(n.config, r) : `${n.config.apiScheme}://${r}`;
|
|
764
764
|
}
|
|
765
|
-
class
|
|
765
|
+
class mi {
|
|
766
766
|
constructor(e) {
|
|
767
767
|
this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
|
|
768
768
|
this.timer = setTimeout(() => i(b(
|
|
769
769
|
this.auth,
|
|
770
770
|
"network-request-failed"
|
|
771
771
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
772
|
-
)),
|
|
772
|
+
)), pi.get());
|
|
773
773
|
});
|
|
774
774
|
}
|
|
775
775
|
clearNetworkTimeout() {
|
|
@@ -800,7 +800,7 @@ function ue(n, e, t) {
|
|
|
800
800
|
* See the License for the specific language governing permissions and
|
|
801
801
|
* limitations under the License.
|
|
802
802
|
*/
|
|
803
|
-
async function
|
|
803
|
+
async function gi(n, e) {
|
|
804
804
|
return Q(n, "POST", "/v1/accounts:delete", e);
|
|
805
805
|
}
|
|
806
806
|
async function Mt(n, e) {
|
|
@@ -831,7 +831,7 @@ function ne(n) {
|
|
|
831
831
|
} catch {
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
|
-
async function
|
|
834
|
+
async function _i(n, e = !1) {
|
|
835
835
|
const t = X(n), i = await t.getIdToken(e), r = We(i);
|
|
836
836
|
u(
|
|
837
837
|
r && r.exp && r.auth_time && r.iat,
|
|
@@ -858,7 +858,7 @@ function We(n) {
|
|
|
858
858
|
if (e === void 0 || t === void 0 || i === void 0)
|
|
859
859
|
return de("JWT malformed, contained fewer than 3 sections"), null;
|
|
860
860
|
try {
|
|
861
|
-
const r =
|
|
861
|
+
const r = On(t);
|
|
862
862
|
return r ? JSON.parse(r) : (de("Failed to decode base64 JWT payload"), null);
|
|
863
863
|
} catch (r) {
|
|
864
864
|
return de("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
|
|
@@ -902,10 +902,10 @@ async function re(n, e, t = !1) {
|
|
|
902
902
|
try {
|
|
903
903
|
return await e;
|
|
904
904
|
} catch (i) {
|
|
905
|
-
throw i instanceof Ve &&
|
|
905
|
+
throw i instanceof Ve && vi(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function vi({ code: n }) {
|
|
909
909
|
return n === "auth/user-disabled" || n === "auth/user-token-expired";
|
|
910
910
|
}
|
|
911
911
|
/**
|
|
@@ -924,7 +924,7 @@ function Ii({ code: n }) {
|
|
|
924
924
|
* See the License for the specific language governing permissions and
|
|
925
925
|
* limitations under the License.
|
|
926
926
|
*/
|
|
927
|
-
class
|
|
927
|
+
class Ii {
|
|
928
928
|
constructor(e) {
|
|
929
929
|
this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
|
|
930
930
|
}
|
|
@@ -1030,7 +1030,7 @@ async function ve(n) {
|
|
|
1030
1030
|
);
|
|
1031
1031
|
const s = r.users[0];
|
|
1032
1032
|
n._notifyReloadListener(s);
|
|
1033
|
-
const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c =
|
|
1033
|
+
const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = wi(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
|
|
1034
1034
|
uid: s.localId,
|
|
1035
1035
|
displayName: s.displayName || null,
|
|
1036
1036
|
photoURL: s.photoUrl || null,
|
|
@@ -1044,11 +1044,11 @@ async function ve(n) {
|
|
|
1044
1044
|
};
|
|
1045
1045
|
Object.assign(n, m);
|
|
1046
1046
|
}
|
|
1047
|
-
async function
|
|
1047
|
+
async function yi(n) {
|
|
1048
1048
|
const e = X(n);
|
|
1049
1049
|
await ve(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function wi(n, e) {
|
|
1052
1052
|
return [...n.filter((i) => !e.some((r) => r.providerId === i.providerId)), ...e];
|
|
1053
1053
|
}
|
|
1054
1054
|
function Ut(n) {
|
|
@@ -1080,7 +1080,7 @@ function Ut(n) {
|
|
|
1080
1080
|
* See the License for the specific language governing permissions and
|
|
1081
1081
|
* limitations under the License.
|
|
1082
1082
|
*/
|
|
1083
|
-
async function
|
|
1083
|
+
async function Ti(n, e) {
|
|
1084
1084
|
const t = await Nt(n, {}, async () => {
|
|
1085
1085
|
const i = oe({
|
|
1086
1086
|
grant_type: "refresh_token",
|
|
@@ -1101,7 +1101,7 @@ async function ki(n, e) {
|
|
|
1101
1101
|
refreshToken: t.refresh_token
|
|
1102
1102
|
};
|
|
1103
1103
|
}
|
|
1104
|
-
async function
|
|
1104
|
+
async function ki(n, e) {
|
|
1105
1105
|
return Q(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
|
|
1106
1106
|
}
|
|
1107
1107
|
/**
|
|
@@ -1165,7 +1165,7 @@ class q {
|
|
|
1165
1165
|
this.refreshToken = null;
|
|
1166
1166
|
}
|
|
1167
1167
|
async refresh(e, t) {
|
|
1168
|
-
const { accessToken: i, refreshToken: r, expiresIn: s } = await
|
|
1168
|
+
const { accessToken: i, refreshToken: r, expiresIn: s } = await Ti(e, t);
|
|
1169
1169
|
this.updateTokensAndExpiration(i, r, Number(s));
|
|
1170
1170
|
}
|
|
1171
1171
|
updateTokensAndExpiration(e, t, i) {
|
|
@@ -1220,7 +1220,7 @@ function D(n, e) {
|
|
|
1220
1220
|
class C {
|
|
1221
1221
|
constructor(e) {
|
|
1222
1222
|
var { uid: t, auth: i, stsTokenManager: r } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
|
|
1223
|
-
this.providerId = "firebase", this.proactiveRefresh = new
|
|
1223
|
+
this.providerId = "firebase", this.proactiveRefresh = new Ii(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);
|
|
1224
1224
|
}
|
|
1225
1225
|
async getIdToken(e) {
|
|
1226
1226
|
const t = await re(this, this.stsTokenManager.getToken(this.auth, e));
|
|
@@ -1232,10 +1232,10 @@ class C {
|
|
|
1232
1232
|
), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
|
|
1233
1233
|
}
|
|
1234
1234
|
getIdTokenResult(e) {
|
|
1235
|
-
return
|
|
1235
|
+
return _i(this, e);
|
|
1236
1236
|
}
|
|
1237
1237
|
reload() {
|
|
1238
|
-
return
|
|
1238
|
+
return yi(this);
|
|
1239
1239
|
}
|
|
1240
1240
|
_assign(e) {
|
|
1241
1241
|
this !== e && (u(
|
|
@@ -1274,7 +1274,7 @@ class C {
|
|
|
1274
1274
|
if (A(this.auth.app))
|
|
1275
1275
|
return Promise.reject(H(this.auth));
|
|
1276
1276
|
const e = await this.getIdToken();
|
|
1277
|
-
return await re(this,
|
|
1277
|
+
return await re(this, gi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
1278
1278
|
}
|
|
1279
1279
|
toJSON() {
|
|
1280
1280
|
return Object.assign(Object.assign({
|
|
@@ -1604,17 +1604,17 @@ function jt(n = w()) {
|
|
|
1604
1604
|
function ke(n = w()) {
|
|
1605
1605
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1607
|
+
function bi(n = w()) {
|
|
1608
1608
|
var e;
|
|
1609
1609
|
return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1612
|
-
return
|
|
1611
|
+
function Ei() {
|
|
1612
|
+
return Ln() && document.documentMode === 10;
|
|
1613
1613
|
}
|
|
1614
1614
|
function Wt(n = w()) {
|
|
1615
1615
|
return ke(n) || $t(n) || jt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function Si() {
|
|
1618
1618
|
try {
|
|
1619
1619
|
return !!(window && window !== window.top);
|
|
1620
1620
|
} catch {
|
|
@@ -1668,7 +1668,7 @@ function Bt(n, e = []) {
|
|
|
1668
1668
|
* See the License for the specific language governing permissions and
|
|
1669
1669
|
* limitations under the License.
|
|
1670
1670
|
*/
|
|
1671
|
-
class
|
|
1671
|
+
class Ri {
|
|
1672
1672
|
constructor(e) {
|
|
1673
1673
|
this.auth = e, this.queue = [];
|
|
1674
1674
|
}
|
|
@@ -1723,7 +1723,7 @@ class Ai {
|
|
|
1723
1723
|
* See the License for the specific language governing permissions and
|
|
1724
1724
|
* limitations under the License.
|
|
1725
1725
|
*/
|
|
1726
|
-
async function
|
|
1726
|
+
async function Ai(n, e = {}) {
|
|
1727
1727
|
return Q(n, "GET", "/v2/passwordPolicy", Te(n, e));
|
|
1728
1728
|
}
|
|
1729
1729
|
/**
|
|
@@ -1742,12 +1742,12 @@ async function Pi(n, e = {}) {
|
|
|
1742
1742
|
* See the License for the specific language governing permissions and
|
|
1743
1743
|
* limitations under the License.
|
|
1744
1744
|
*/
|
|
1745
|
-
const
|
|
1746
|
-
class
|
|
1745
|
+
const Pi = 6;
|
|
1746
|
+
class Ci {
|
|
1747
1747
|
constructor(e) {
|
|
1748
1748
|
var t, i, r, s;
|
|
1749
1749
|
const o = e.customStrengthOptions;
|
|
1750
|
-
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t :
|
|
1750
|
+
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Pi, 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;
|
|
1751
1751
|
}
|
|
1752
1752
|
validatePassword(e) {
|
|
1753
1753
|
var t, i, r, s, o, c;
|
|
@@ -1830,9 +1830,9 @@ class Ni {
|
|
|
1830
1830
|
* See the License for the specific language governing permissions and
|
|
1831
1831
|
* limitations under the License.
|
|
1832
1832
|
*/
|
|
1833
|
-
class
|
|
1833
|
+
class Ni {
|
|
1834
1834
|
constructor(e, t, i, r) {
|
|
1835
|
-
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
|
|
1835
|
+
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 Ri(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;
|
|
1836
1836
|
}
|
|
1837
1837
|
_initializeWithPersistence(e, t) {
|
|
1838
1838
|
return t && (this._popupRedirectResolver = N(t)), this._initializationPromise = this.queue(async () => {
|
|
@@ -1926,7 +1926,7 @@ class Oi {
|
|
|
1926
1926
|
return this.directlySetCurrentUser(e);
|
|
1927
1927
|
}
|
|
1928
1928
|
useDeviceLanguage() {
|
|
1929
|
-
this.languageCode =
|
|
1929
|
+
this.languageCode = hi();
|
|
1930
1930
|
}
|
|
1931
1931
|
async _delete() {
|
|
1932
1932
|
this._deleted = !0;
|
|
@@ -1977,7 +1977,7 @@ class Oi {
|
|
|
1977
1977
|
return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
|
|
1978
1978
|
}
|
|
1979
1979
|
async _updatePasswordPolicy() {
|
|
1980
|
-
const e = await
|
|
1980
|
+
const e = await Ai(this), t = new Ci(e);
|
|
1981
1981
|
this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
|
|
1982
1982
|
}
|
|
1983
1983
|
_getPersistence() {
|
|
@@ -2017,7 +2017,7 @@ class Oi {
|
|
|
2017
2017
|
token: e,
|
|
2018
2018
|
idToken: t
|
|
2019
2019
|
};
|
|
2020
|
-
this.tenantId != null && (i.tenantId = this.tenantId), await
|
|
2020
|
+
this.tenantId != null && (i.tenantId = this.tenantId), await ki(this, i);
|
|
2021
2021
|
}
|
|
2022
2022
|
}
|
|
2023
2023
|
toJSON() {
|
|
@@ -2160,7 +2160,7 @@ class Oi {
|
|
|
2160
2160
|
async _getAppCheckToken() {
|
|
2161
2161
|
var e;
|
|
2162
2162
|
const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
|
|
2163
|
-
return t != null && t.error &&
|
|
2163
|
+
return t != null && t.error && li(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
|
2164
2164
|
}
|
|
2165
2165
|
}
|
|
2166
2166
|
function be(n) {
|
|
@@ -2168,7 +2168,7 @@ function be(n) {
|
|
|
2168
2168
|
}
|
|
2169
2169
|
class at {
|
|
2170
2170
|
constructor(e) {
|
|
2171
|
-
this.auth = e, this.observer = null, this.addObserver =
|
|
2171
|
+
this.auth = e, this.observer = null, this.addObserver = An((t) => this.observer = t);
|
|
2172
2172
|
}
|
|
2173
2173
|
get next() {
|
|
2174
2174
|
return u(
|
|
@@ -2203,16 +2203,16 @@ let Ge = {
|
|
|
2203
2203
|
recaptchaEnterpriseScript: "",
|
|
2204
2204
|
gapiScript: ""
|
|
2205
2205
|
};
|
|
2206
|
-
function
|
|
2206
|
+
function Oi(n) {
|
|
2207
2207
|
Ge = n;
|
|
2208
2208
|
}
|
|
2209
|
-
function
|
|
2209
|
+
function Li(n) {
|
|
2210
2210
|
return Ge.loadJS(n);
|
|
2211
2211
|
}
|
|
2212
|
-
function
|
|
2212
|
+
function Mi() {
|
|
2213
2213
|
return Ge.gapiScript;
|
|
2214
2214
|
}
|
|
2215
|
-
function
|
|
2215
|
+
function Ui(n) {
|
|
2216
2216
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
|
2217
2217
|
}
|
|
2218
2218
|
/**
|
|
@@ -2231,11 +2231,11 @@ function Di(n) {
|
|
|
2231
2231
|
* See the License for the specific language governing permissions and
|
|
2232
2232
|
* limitations under the License.
|
|
2233
2233
|
*/
|
|
2234
|
-
function
|
|
2234
|
+
function Di(n, e) {
|
|
2235
2235
|
const t = bt(n, "auth");
|
|
2236
2236
|
if (t.isInitialized()) {
|
|
2237
2237
|
const r = t.getImmediate(), s = t.getOptions();
|
|
2238
|
-
if (
|
|
2238
|
+
if (Nn(s, e ?? {}))
|
|
2239
2239
|
return r;
|
|
2240
2240
|
O(
|
|
2241
2241
|
r,
|
|
@@ -2245,11 +2245,11 @@ function xi(n, e) {
|
|
|
2245
2245
|
}
|
|
2246
2246
|
return t.initialize({ options: e });
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2248
|
+
function xi(n, e) {
|
|
2249
2249
|
const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(N);
|
|
2250
2250
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
|
|
2251
2251
|
}
|
|
2252
|
-
function
|
|
2252
|
+
function Fi(n, e, t) {
|
|
2253
2253
|
const i = be(n);
|
|
2254
2254
|
u(
|
|
2255
2255
|
i._canInitEmulator,
|
|
@@ -2262,19 +2262,19 @@ function Vi(n, e, t) {
|
|
|
2262
2262
|
"invalid-emulator-scheme"
|
|
2263
2263
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
|
2264
2264
|
);
|
|
2265
|
-
const r = !1, s = Gt(e), { host: o, port: c } =
|
|
2265
|
+
const r = !1, s = Gt(e), { host: o, port: c } = Vi(e), a = c === null ? "" : `:${c}`;
|
|
2266
2266
|
i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
|
|
2267
2267
|
host: o,
|
|
2268
2268
|
port: c,
|
|
2269
2269
|
protocol: s.replace(":", ""),
|
|
2270
2270
|
options: Object.freeze({ disableWarnings: r })
|
|
2271
|
-
}),
|
|
2271
|
+
}), $i();
|
|
2272
2272
|
}
|
|
2273
2273
|
function Gt(n) {
|
|
2274
2274
|
const e = n.indexOf(":");
|
|
2275
2275
|
return e < 0 ? "" : n.substr(0, e + 1);
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2277
|
+
function Vi(n) {
|
|
2278
2278
|
const e = Gt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
|
2279
2279
|
if (!t)
|
|
2280
2280
|
return { host: "", port: null };
|
|
@@ -2293,7 +2293,7 @@ function ct(n) {
|
|
|
2293
2293
|
const e = Number(n);
|
|
2294
2294
|
return isNaN(e) ? null : e;
|
|
2295
2295
|
}
|
|
2296
|
-
function
|
|
2296
|
+
function $i() {
|
|
2297
2297
|
function n() {
|
|
2298
2298
|
const e = document.createElement("p"), t = e.style;
|
|
2299
2299
|
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);
|
|
@@ -2377,7 +2377,7 @@ async function J(n, e) {
|
|
|
2377
2377
|
* See the License for the specific language governing permissions and
|
|
2378
2378
|
* limitations under the License.
|
|
2379
2379
|
*/
|
|
2380
|
-
const
|
|
2380
|
+
const Hi = "http://localhost";
|
|
2381
2381
|
class B extends zt {
|
|
2382
2382
|
constructor() {
|
|
2383
2383
|
super(...arguments), this.pendingToken = null;
|
|
@@ -2435,7 +2435,7 @@ class B extends zt {
|
|
|
2435
2435
|
}
|
|
2436
2436
|
buildRequest() {
|
|
2437
2437
|
const e = {
|
|
2438
|
-
requestUri:
|
|
2438
|
+
requestUri: Hi,
|
|
2439
2439
|
returnSecureToken: !0
|
|
2440
2440
|
};
|
|
2441
2441
|
if (this.pendingToken)
|
|
@@ -2897,7 +2897,7 @@ function Kt(n, e, t, i) {
|
|
|
2897
2897
|
throw s.code === "auth/multi-factor-auth-required" ? Ie._fromErrorAndOperation(n, s, e, i) : s;
|
|
2898
2898
|
});
|
|
2899
2899
|
}
|
|
2900
|
-
async function
|
|
2900
|
+
async function ji(n, e, t = !1) {
|
|
2901
2901
|
const i = await re(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
|
|
2902
2902
|
return G._forOperation(n, "link", i);
|
|
2903
2903
|
}
|
|
@@ -2917,7 +2917,7 @@ async function Wi(n, e, t = !1) {
|
|
|
2917
2917
|
* See the License for the specific language governing permissions and
|
|
2918
2918
|
* limitations under the License.
|
|
2919
2919
|
*/
|
|
2920
|
-
async function
|
|
2920
|
+
async function Wi(n, e, t = !1) {
|
|
2921
2921
|
const { auth: i } = n;
|
|
2922
2922
|
if (A(i.app))
|
|
2923
2923
|
return Promise.reject(H(i));
|
|
@@ -2968,7 +2968,7 @@ async function Bi(n, e, t = !1) {
|
|
|
2968
2968
|
* See the License for the specific language governing permissions and
|
|
2969
2969
|
* limitations under the License.
|
|
2970
2970
|
*/
|
|
2971
|
-
async function
|
|
2971
|
+
async function Bi(n, e, t = !1) {
|
|
2972
2972
|
if (A(n.app))
|
|
2973
2973
|
return Promise.reject(H(n));
|
|
2974
2974
|
const i = "signIn", r = await Kt(n, i, e), s = await G._fromIdTokenResponse(n, i, r);
|
|
@@ -2990,7 +2990,7 @@ async function Gi(n, e, t = !1) {
|
|
|
2990
2990
|
* See the License for the specific language governing permissions and
|
|
2991
2991
|
* limitations under the License.
|
|
2992
2992
|
*/
|
|
2993
|
-
async function
|
|
2993
|
+
async function Gi(n, e) {
|
|
2994
2994
|
return Ot(n, "POST", "/v1/accounts:signInWithCustomToken", Te(n, e));
|
|
2995
2995
|
}
|
|
2996
2996
|
/**
|
|
@@ -3009,19 +3009,19 @@ async function zi(n, e) {
|
|
|
3009
3009
|
* See the License for the specific language governing permissions and
|
|
3010
3010
|
* limitations under the License.
|
|
3011
3011
|
*/
|
|
3012
|
-
async function
|
|
3012
|
+
async function zi(n, e) {
|
|
3013
3013
|
if (A(n.app))
|
|
3014
3014
|
return Promise.reject(H(n));
|
|
3015
|
-
const t = be(n), i = await
|
|
3015
|
+
const t = be(n), i = await Gi(t, {
|
|
3016
3016
|
token: e,
|
|
3017
3017
|
returnSecureToken: !0
|
|
3018
3018
|
}), r = await G._fromIdTokenResponse(t, "signIn", i);
|
|
3019
3019
|
return await t._updateCurrentUser(r.user), r;
|
|
3020
3020
|
}
|
|
3021
|
-
function
|
|
3021
|
+
function qi(n, e, t, i) {
|
|
3022
3022
|
return X(n).onIdTokenChanged(e, t, i);
|
|
3023
3023
|
}
|
|
3024
|
-
function
|
|
3024
|
+
function Ki(n, e, t) {
|
|
3025
3025
|
return X(n).beforeAuthStateChanged(e, t);
|
|
3026
3026
|
}
|
|
3027
3027
|
const ye = "__sak";
|
|
@@ -3082,18 +3082,18 @@ class Jt {
|
|
|
3082
3082
|
* See the License for the specific language governing permissions and
|
|
3083
3083
|
* limitations under the License.
|
|
3084
3084
|
*/
|
|
3085
|
-
function
|
|
3085
|
+
function Ji() {
|
|
3086
3086
|
const n = w();
|
|
3087
3087
|
return Be(n) || ke(n);
|
|
3088
3088
|
}
|
|
3089
|
-
const
|
|
3089
|
+
const Yi = 1e3, Xi = 10;
|
|
3090
3090
|
class Yt extends Jt {
|
|
3091
3091
|
constructor() {
|
|
3092
3092
|
super(
|
|
3093
3093
|
() => window.localStorage,
|
|
3094
3094
|
"LOCAL"
|
|
3095
3095
|
/* PersistenceType.LOCAL */
|
|
3096
|
-
), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced =
|
|
3096
|
+
), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Ji() && Si(), this.fallbackToPolling = Wt(), this._shouldAllowMigration = !0;
|
|
3097
3097
|
}
|
|
3098
3098
|
forAllChangedKeys(e) {
|
|
3099
3099
|
for (const t of Object.keys(this.listeners)) {
|
|
@@ -3120,7 +3120,7 @@ class Yt extends Jt {
|
|
|
3120
3120
|
const o = this.storage.getItem(i);
|
|
3121
3121
|
!t && this.localCache[i] === o || this.notifyListeners(i, o);
|
|
3122
3122
|
}, s = this.storage.getItem(i);
|
|
3123
|
-
|
|
3123
|
+
Ei() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Xi) : r();
|
|
3124
3124
|
}
|
|
3125
3125
|
notifyListeners(e, t) {
|
|
3126
3126
|
this.localCache[e] = t;
|
|
@@ -3142,7 +3142,7 @@ class Yt extends Jt {
|
|
|
3142
3142
|
!0
|
|
3143
3143
|
);
|
|
3144
3144
|
});
|
|
3145
|
-
},
|
|
3145
|
+
}, Yi);
|
|
3146
3146
|
}
|
|
3147
3147
|
stopPolling() {
|
|
3148
3148
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -3172,7 +3172,7 @@ class Yt extends Jt {
|
|
|
3172
3172
|
}
|
|
3173
3173
|
}
|
|
3174
3174
|
Yt.type = "LOCAL";
|
|
3175
|
-
const
|
|
3175
|
+
const Qi = Yt;
|
|
3176
3176
|
/**
|
|
3177
3177
|
* @license
|
|
3178
3178
|
* Copyright 2020 Google LLC
|
|
@@ -3220,7 +3220,7 @@ const Qt = Xt;
|
|
|
3220
3220
|
* See the License for the specific language governing permissions and
|
|
3221
3221
|
* limitations under the License.
|
|
3222
3222
|
*/
|
|
3223
|
-
function
|
|
3223
|
+
function Zi(n) {
|
|
3224
3224
|
return Promise.all(n.map(async (e) => {
|
|
3225
3225
|
try {
|
|
3226
3226
|
return {
|
|
@@ -3290,7 +3290,7 @@ class Ee {
|
|
|
3290
3290
|
eventId: i,
|
|
3291
3291
|
eventType: r
|
|
3292
3292
|
});
|
|
3293
|
-
const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await
|
|
3293
|
+
const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Zi(c);
|
|
3294
3294
|
t.ports[0].postMessage({
|
|
3295
3295
|
status: "done",
|
|
3296
3296
|
eventId: i,
|
|
@@ -3358,7 +3358,7 @@ function ze(n = "", e = 10) {
|
|
|
3358
3358
|
* See the License for the specific language governing permissions and
|
|
3359
3359
|
* limitations under the License.
|
|
3360
3360
|
*/
|
|
3361
|
-
class
|
|
3361
|
+
class er {
|
|
3362
3362
|
constructor(e) {
|
|
3363
3363
|
this.target = e, this.handlers = /* @__PURE__ */ new Set();
|
|
3364
3364
|
}
|
|
@@ -3458,7 +3458,7 @@ class tr {
|
|
|
3458
3458
|
function E() {
|
|
3459
3459
|
return window;
|
|
3460
3460
|
}
|
|
3461
|
-
function
|
|
3461
|
+
function tr(n) {
|
|
3462
3462
|
E().location.href = n;
|
|
3463
3463
|
}
|
|
3464
3464
|
/**
|
|
@@ -3480,7 +3480,7 @@ function nr(n) {
|
|
|
3480
3480
|
function Zt() {
|
|
3481
3481
|
return typeof E().WorkerGlobalScope < "u" && typeof E().importScripts == "function";
|
|
3482
3482
|
}
|
|
3483
|
-
async function
|
|
3483
|
+
async function nr() {
|
|
3484
3484
|
if (!(navigator != null && navigator.serviceWorker))
|
|
3485
3485
|
return null;
|
|
3486
3486
|
try {
|
|
@@ -3489,11 +3489,11 @@ async function ir() {
|
|
|
3489
3489
|
return null;
|
|
3490
3490
|
}
|
|
3491
3491
|
}
|
|
3492
|
-
function
|
|
3492
|
+
function ir() {
|
|
3493
3493
|
var n;
|
|
3494
3494
|
return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
|
|
3495
3495
|
}
|
|
3496
|
-
function
|
|
3496
|
+
function rr() {
|
|
3497
3497
|
return Zt() ? self : null;
|
|
3498
3498
|
}
|
|
3499
3499
|
/**
|
|
@@ -3512,7 +3512,7 @@ function sr() {
|
|
|
3512
3512
|
* See the License for the specific language governing permissions and
|
|
3513
3513
|
* limitations under the License.
|
|
3514
3514
|
*/
|
|
3515
|
-
const en = "firebaseLocalStorageDb",
|
|
3515
|
+
const en = "firebaseLocalStorageDb", sr = 1, we = "firebaseLocalStorage", tn = "fbase_key";
|
|
3516
3516
|
class le {
|
|
3517
3517
|
constructor(e) {
|
|
3518
3518
|
this.request = e;
|
|
@@ -3530,12 +3530,12 @@ class le {
|
|
|
3530
3530
|
function Se(n, e) {
|
|
3531
3531
|
return n.transaction([we], e ? "readwrite" : "readonly").objectStore(we);
|
|
3532
3532
|
}
|
|
3533
|
-
function
|
|
3533
|
+
function or() {
|
|
3534
3534
|
const n = indexedDB.deleteDatabase(en);
|
|
3535
3535
|
return new le(n).toPromise();
|
|
3536
3536
|
}
|
|
3537
3537
|
function De() {
|
|
3538
|
-
const n = indexedDB.open(en,
|
|
3538
|
+
const n = indexedDB.open(en, sr);
|
|
3539
3539
|
return new Promise((e, t) => {
|
|
3540
3540
|
n.addEventListener("error", () => {
|
|
3541
3541
|
t(n.error);
|
|
@@ -3548,7 +3548,7 @@ function De() {
|
|
|
3548
3548
|
}
|
|
3549
3549
|
}), n.addEventListener("success", async () => {
|
|
3550
3550
|
const i = n.result;
|
|
3551
|
-
i.objectStoreNames.contains(we) ? e(i) : (i.close(), await
|
|
3551
|
+
i.objectStoreNames.contains(we) ? e(i) : (i.close(), await or(), e(await De()));
|
|
3552
3552
|
});
|
|
3553
3553
|
});
|
|
3554
3554
|
}
|
|
@@ -3559,7 +3559,7 @@ async function ut(n, e, t) {
|
|
|
3559
3559
|
});
|
|
3560
3560
|
return new le(i).toPromise();
|
|
3561
3561
|
}
|
|
3562
|
-
async function
|
|
3562
|
+
async function ar(n, e) {
|
|
3563
3563
|
const t = Se(n, !1).get(e), i = await new le(t).toPromise();
|
|
3564
3564
|
return i === void 0 ? null : i.value;
|
|
3565
3565
|
}
|
|
@@ -3567,7 +3567,7 @@ function dt(n, e) {
|
|
|
3567
3567
|
const t = Se(n, !0).delete(e);
|
|
3568
3568
|
return new le(t).toPromise();
|
|
3569
3569
|
}
|
|
3570
|
-
const
|
|
3570
|
+
const cr = 800, lr = 3;
|
|
3571
3571
|
class nn {
|
|
3572
3572
|
constructor() {
|
|
3573
3573
|
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(() => {
|
|
@@ -3584,7 +3584,7 @@ class nn {
|
|
|
3584
3584
|
const i = await this._openDb();
|
|
3585
3585
|
return await e(i);
|
|
3586
3586
|
} catch (i) {
|
|
3587
|
-
if (t++ >
|
|
3587
|
+
if (t++ > lr)
|
|
3588
3588
|
throw i;
|
|
3589
3589
|
this.db && (this.db.close(), this.db = void 0);
|
|
3590
3590
|
}
|
|
@@ -3600,7 +3600,7 @@ class nn {
|
|
|
3600
3600
|
* As the worker we should listen to events from the main window.
|
|
3601
3601
|
*/
|
|
3602
3602
|
async initializeReceiver() {
|
|
3603
|
-
this.receiver = Ee._getInstance(
|
|
3603
|
+
this.receiver = Ee._getInstance(rr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
|
3604
3604
|
keyProcessed: (await this._poll()).includes(t.key)
|
|
3605
3605
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
|
3606
3606
|
"keyChanged"
|
|
@@ -3616,9 +3616,9 @@ class nn {
|
|
|
3616
3616
|
*/
|
|
3617
3617
|
async initializeSender() {
|
|
3618
3618
|
var e, t;
|
|
3619
|
-
if (this.activeServiceWorker = await
|
|
3619
|
+
if (this.activeServiceWorker = await nr(), !this.activeServiceWorker)
|
|
3620
3620
|
return;
|
|
3621
|
-
this.sender = new
|
|
3621
|
+
this.sender = new er(this.activeServiceWorker);
|
|
3622
3622
|
const i = await this.sender._send(
|
|
3623
3623
|
"ping",
|
|
3624
3624
|
{},
|
|
@@ -3640,7 +3640,7 @@ class nn {
|
|
|
3640
3640
|
* @param key - Storage key which changed.
|
|
3641
3641
|
*/
|
|
3642
3642
|
async notifyServiceWorker(e) {
|
|
3643
|
-
if (!(!this.sender || !this.activeServiceWorker ||
|
|
3643
|
+
if (!(!this.sender || !this.activeServiceWorker || ir() !== this.activeServiceWorker))
|
|
3644
3644
|
try {
|
|
3645
3645
|
await this.sender._send(
|
|
3646
3646
|
"keyChanged",
|
|
@@ -3674,7 +3674,7 @@ class nn {
|
|
|
3674
3674
|
return this._withPendingWrite(async () => (await this._withRetries((i) => ut(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
|
|
3675
3675
|
}
|
|
3676
3676
|
async _get(e) {
|
|
3677
|
-
const t = await this._withRetries((i) =>
|
|
3677
|
+
const t = await this._withRetries((i) => ar(i, e));
|
|
3678
3678
|
return this.localCache[e] = t, t;
|
|
3679
3679
|
}
|
|
3680
3680
|
async _remove(e) {
|
|
@@ -3705,7 +3705,7 @@ class nn {
|
|
|
3705
3705
|
r(t);
|
|
3706
3706
|
}
|
|
3707
3707
|
startPolling() {
|
|
3708
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
|
3708
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), cr);
|
|
3709
3709
|
}
|
|
3710
3710
|
stopPolling() {
|
|
3711
3711
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -3718,7 +3718,7 @@ class nn {
|
|
|
3718
3718
|
}
|
|
3719
3719
|
}
|
|
3720
3720
|
nn.type = "LOCAL";
|
|
3721
|
-
const
|
|
3721
|
+
const ur = nn;
|
|
3722
3722
|
new ae(3e4, 6e4);
|
|
3723
3723
|
/**
|
|
3724
3724
|
* @license
|
|
@@ -3736,7 +3736,7 @@ new ae(3e4, 6e4);
|
|
|
3736
3736
|
* See the License for the specific language governing permissions and
|
|
3737
3737
|
* limitations under the License.
|
|
3738
3738
|
*/
|
|
3739
|
-
function
|
|
3739
|
+
function dr(n, e) {
|
|
3740
3740
|
return e ? N(e) : (u(
|
|
3741
3741
|
n._popupRedirectResolver,
|
|
3742
3742
|
n,
|
|
@@ -3790,26 +3790,26 @@ class qe extends zt {
|
|
|
3790
3790
|
return e && (t.idToken = e), t;
|
|
3791
3791
|
}
|
|
3792
3792
|
}
|
|
3793
|
-
function
|
|
3794
|
-
return
|
|
3793
|
+
function hr(n) {
|
|
3794
|
+
return Bi(n.auth, new qe(n), n.bypassAuthState);
|
|
3795
3795
|
}
|
|
3796
|
-
function
|
|
3796
|
+
function fr(n) {
|
|
3797
3797
|
const { auth: e, user: t } = n;
|
|
3798
3798
|
return u(
|
|
3799
3799
|
t,
|
|
3800
3800
|
e,
|
|
3801
3801
|
"internal-error"
|
|
3802
3802
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3803
|
-
),
|
|
3803
|
+
), Wi(t, new qe(n), n.bypassAuthState);
|
|
3804
3804
|
}
|
|
3805
|
-
async function
|
|
3805
|
+
async function pr(n) {
|
|
3806
3806
|
const { auth: e, user: t } = n;
|
|
3807
3807
|
return u(
|
|
3808
3808
|
t,
|
|
3809
3809
|
e,
|
|
3810
3810
|
"internal-error"
|
|
3811
3811
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3812
|
-
),
|
|
3812
|
+
), ji(t, new qe(n), n.bypassAuthState);
|
|
3813
3813
|
}
|
|
3814
3814
|
/**
|
|
3815
3815
|
* @license
|
|
@@ -3869,13 +3869,13 @@ class rn {
|
|
|
3869
3869
|
switch (e) {
|
|
3870
3870
|
case "signInViaPopup":
|
|
3871
3871
|
case "signInViaRedirect":
|
|
3872
|
-
return
|
|
3872
|
+
return hr;
|
|
3873
3873
|
case "linkViaPopup":
|
|
3874
3874
|
case "linkViaRedirect":
|
|
3875
|
-
return
|
|
3875
|
+
return pr;
|
|
3876
3876
|
case "reauthViaPopup":
|
|
3877
3877
|
case "reauthViaRedirect":
|
|
3878
|
-
return
|
|
3878
|
+
return fr;
|
|
3879
3879
|
default:
|
|
3880
3880
|
O(
|
|
3881
3881
|
this.auth,
|
|
@@ -3910,7 +3910,7 @@ class rn {
|
|
|
3910
3910
|
* See the License for the specific language governing permissions and
|
|
3911
3911
|
* limitations under the License.
|
|
3912
3912
|
*/
|
|
3913
|
-
const
|
|
3913
|
+
const mr = new ae(2e3, 1e4);
|
|
3914
3914
|
class z extends rn {
|
|
3915
3915
|
constructor(e, t, i, r, s) {
|
|
3916
3916
|
super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, z.currentPopupAction && z.currentPopupAction.cancel(), z.currentPopupAction = this;
|
|
@@ -3974,7 +3974,7 @@ class z extends rn {
|
|
|
3974
3974
|
);
|
|
3975
3975
|
return;
|
|
3976
3976
|
}
|
|
3977
|
-
this.pollId = window.setTimeout(e,
|
|
3977
|
+
this.pollId = window.setTimeout(e, mr.get());
|
|
3978
3978
|
};
|
|
3979
3979
|
e();
|
|
3980
3980
|
}
|
|
@@ -3996,8 +3996,8 @@ z.currentPopupAction = null;
|
|
|
3996
3996
|
* See the License for the specific language governing permissions and
|
|
3997
3997
|
* limitations under the License.
|
|
3998
3998
|
*/
|
|
3999
|
-
const
|
|
4000
|
-
class
|
|
3999
|
+
const gr = "pendingRedirect", fe = /* @__PURE__ */ new Map();
|
|
4000
|
+
class _r extends rn {
|
|
4001
4001
|
constructor(e, t, i = !1) {
|
|
4002
4002
|
super(e, [
|
|
4003
4003
|
"signInViaRedirect",
|
|
@@ -4015,7 +4015,7 @@ class vr extends rn {
|
|
|
4015
4015
|
let e = fe.get(this.auth._key());
|
|
4016
4016
|
if (!e) {
|
|
4017
4017
|
try {
|
|
4018
|
-
const i = await
|
|
4018
|
+
const i = await vr(this.resolver, this.auth) ? await super.execute() : null;
|
|
4019
4019
|
e = () => Promise.resolve(i);
|
|
4020
4020
|
} catch (t) {
|
|
4021
4021
|
e = () => Promise.reject(t);
|
|
@@ -4043,26 +4043,26 @@ class vr extends rn {
|
|
|
4043
4043
|
cleanUp() {
|
|
4044
4044
|
}
|
|
4045
4045
|
}
|
|
4046
|
-
async function
|
|
4047
|
-
const t =
|
|
4046
|
+
async function vr(n, e) {
|
|
4047
|
+
const t = wr(e), i = yr(n);
|
|
4048
4048
|
if (!await i._isAvailable())
|
|
4049
4049
|
return !1;
|
|
4050
4050
|
const r = await i._get(t) === "true";
|
|
4051
4051
|
return await i._remove(t), r;
|
|
4052
4052
|
}
|
|
4053
|
-
function
|
|
4053
|
+
function Ir(n, e) {
|
|
4054
4054
|
fe.set(n._key(), e);
|
|
4055
4055
|
}
|
|
4056
|
-
function
|
|
4056
|
+
function yr(n) {
|
|
4057
4057
|
return N(n._redirectPersistence);
|
|
4058
4058
|
}
|
|
4059
|
-
function
|
|
4060
|
-
return he(
|
|
4059
|
+
function wr(n) {
|
|
4060
|
+
return he(gr, n.config.apiKey, n.name);
|
|
4061
4061
|
}
|
|
4062
|
-
async function
|
|
4062
|
+
async function Tr(n, e, t = !1) {
|
|
4063
4063
|
if (A(n.app))
|
|
4064
4064
|
return Promise.reject(H(n));
|
|
4065
|
-
const i = be(n), r =
|
|
4065
|
+
const i = be(n), r = dr(i, e), o = await new _r(i, r, t).execute();
|
|
4066
4066
|
return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
|
|
4067
4067
|
}
|
|
4068
4068
|
/**
|
|
@@ -4081,8 +4081,8 @@ async function kr(n, e, t = !1) {
|
|
|
4081
4081
|
* See the License for the specific language governing permissions and
|
|
4082
4082
|
* limitations under the License.
|
|
4083
4083
|
*/
|
|
4084
|
-
const
|
|
4085
|
-
class
|
|
4084
|
+
const kr = 10 * 60 * 1e3;
|
|
4085
|
+
class br {
|
|
4086
4086
|
constructor(e) {
|
|
4087
4087
|
this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
|
|
4088
4088
|
}
|
|
@@ -4098,7 +4098,7 @@ class Er {
|
|
|
4098
4098
|
let t = !1;
|
|
4099
4099
|
return this.consumers.forEach((i) => {
|
|
4100
4100
|
this.isEventForConsumer(e, i) && (t = !0, this.sendToConsumer(e, i), this.saveEventToCache(e));
|
|
4101
|
-
}), this.hasHandledPotentialRedirect || !
|
|
4101
|
+
}), this.hasHandledPotentialRedirect || !Er(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
|
|
4102
4102
|
}
|
|
4103
4103
|
sendToConsumer(e, t) {
|
|
4104
4104
|
var i;
|
|
@@ -4113,7 +4113,7 @@ class Er {
|
|
|
4113
4113
|
return t.filter.includes(e.type) && i;
|
|
4114
4114
|
}
|
|
4115
4115
|
hasEventBeenHandled(e) {
|
|
4116
|
-
return Date.now() - this.lastProcessedEventTime >=
|
|
4116
|
+
return Date.now() - this.lastProcessedEventTime >= kr && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
|
|
4117
4117
|
}
|
|
4118
4118
|
saveEventToCache(e) {
|
|
4119
4119
|
this.cachedEventUids.add(ht(e)), this.lastProcessedEventTime = Date.now();
|
|
@@ -4125,7 +4125,7 @@ function ht(n) {
|
|
|
4125
4125
|
function sn({ type: n, error: e }) {
|
|
4126
4126
|
return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
|
|
4127
4127
|
}
|
|
4128
|
-
function
|
|
4128
|
+
function Er(n) {
|
|
4129
4129
|
switch (n.type) {
|
|
4130
4130
|
case "signInViaRedirect":
|
|
4131
4131
|
case "linkViaRedirect":
|
|
@@ -4153,7 +4153,7 @@ function Sr(n) {
|
|
|
4153
4153
|
* See the License for the specific language governing permissions and
|
|
4154
4154
|
* limitations under the License.
|
|
4155
4155
|
*/
|
|
4156
|
-
async function
|
|
4156
|
+
async function Sr(n, e = {}) {
|
|
4157
4157
|
return Q(n, "GET", "/v1/projects", e);
|
|
4158
4158
|
}
|
|
4159
4159
|
/**
|
|
@@ -4172,14 +4172,14 @@ async function Rr(n, e = {}) {
|
|
|
4172
4172
|
* See the License for the specific language governing permissions and
|
|
4173
4173
|
* limitations under the License.
|
|
4174
4174
|
*/
|
|
4175
|
-
const
|
|
4176
|
-
async function
|
|
4175
|
+
const Rr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ar = /^https?/;
|
|
4176
|
+
async function Pr(n) {
|
|
4177
4177
|
if (n.config.emulator)
|
|
4178
4178
|
return;
|
|
4179
|
-
const { authorizedDomains: e } = await
|
|
4179
|
+
const { authorizedDomains: e } = await Sr(n);
|
|
4180
4180
|
for (const t of e)
|
|
4181
4181
|
try {
|
|
4182
|
-
if (
|
|
4182
|
+
if (Cr(t))
|
|
4183
4183
|
return;
|
|
4184
4184
|
} catch {
|
|
4185
4185
|
}
|
|
@@ -4189,15 +4189,15 @@ async function Cr(n) {
|
|
|
4189
4189
|
/* AuthErrorCode.INVALID_ORIGIN */
|
|
4190
4190
|
);
|
|
4191
4191
|
}
|
|
4192
|
-
function
|
|
4192
|
+
function Cr(n) {
|
|
4193
4193
|
const e = Me(), { protocol: t, hostname: i } = new URL(e);
|
|
4194
4194
|
if (n.startsWith("chrome-extension://")) {
|
|
4195
4195
|
const o = new URL(n);
|
|
4196
4196
|
return o.hostname === "" && i === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === i;
|
|
4197
4197
|
}
|
|
4198
|
-
if (!
|
|
4198
|
+
if (!Ar.test(t))
|
|
4199
4199
|
return !1;
|
|
4200
|
-
if (
|
|
4200
|
+
if (Rr.test(n))
|
|
4201
4201
|
return i === n;
|
|
4202
4202
|
const r = n.replace(/\./g, "\\.");
|
|
4203
4203
|
return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
|
|
@@ -4218,7 +4218,7 @@ function Nr(n) {
|
|
|
4218
4218
|
* See the License for the specific language governing permissions and
|
|
4219
4219
|
* limitations under the License.
|
|
4220
4220
|
*/
|
|
4221
|
-
const
|
|
4221
|
+
const Nr = new ae(3e4, 6e4);
|
|
4222
4222
|
function ft() {
|
|
4223
4223
|
const n = E().___jsl;
|
|
4224
4224
|
if (n != null && n.H) {
|
|
@@ -4228,7 +4228,7 @@ function ft() {
|
|
|
4228
4228
|
n.CP[t] = null;
|
|
4229
4229
|
}
|
|
4230
4230
|
}
|
|
4231
|
-
function
|
|
4231
|
+
function Or(n) {
|
|
4232
4232
|
return new Promise((e, t) => {
|
|
4233
4233
|
var i, r, s;
|
|
4234
4234
|
function o() {
|
|
@@ -4243,7 +4243,7 @@ function Lr(n) {
|
|
|
4243
4243
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
4244
4244
|
));
|
|
4245
4245
|
},
|
|
4246
|
-
timeout:
|
|
4246
|
+
timeout: Nr.get()
|
|
4247
4247
|
});
|
|
4248
4248
|
}
|
|
4249
4249
|
if (!((r = (i = E().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
|
|
@@ -4251,22 +4251,22 @@ function Lr(n) {
|
|
|
4251
4251
|
else if (!((s = E().gapi) === null || s === void 0) && s.load)
|
|
4252
4252
|
o();
|
|
4253
4253
|
else {
|
|
4254
|
-
const c =
|
|
4254
|
+
const c = Ui("iframefcb");
|
|
4255
4255
|
return E()[c] = () => {
|
|
4256
4256
|
gapi.load ? o() : t(b(
|
|
4257
4257
|
n,
|
|
4258
4258
|
"network-request-failed"
|
|
4259
4259
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
4260
4260
|
));
|
|
4261
|
-
},
|
|
4261
|
+
}, Li(`${Mi()}?onload=${c}`).catch((a) => t(a));
|
|
4262
4262
|
}
|
|
4263
4263
|
}).catch((e) => {
|
|
4264
4264
|
throw pe = null, e;
|
|
4265
4265
|
});
|
|
4266
4266
|
}
|
|
4267
4267
|
let pe = null;
|
|
4268
|
-
function
|
|
4269
|
-
return pe = pe ||
|
|
4268
|
+
function Lr(n) {
|
|
4269
|
+
return pe = pe || Or(n), pe;
|
|
4270
4270
|
}
|
|
4271
4271
|
/**
|
|
4272
4272
|
* @license
|
|
@@ -4284,7 +4284,7 @@ function Mr(n) {
|
|
|
4284
4284
|
* See the License for the specific language governing permissions and
|
|
4285
4285
|
* limitations under the License.
|
|
4286
4286
|
*/
|
|
4287
|
-
const
|
|
4287
|
+
const Mr = new ae(5e3, 15e3), Ur = "__/auth/iframe", Dr = "emulator/auth/iframe", xr = {
|
|
4288
4288
|
style: {
|
|
4289
4289
|
position: "absolute",
|
|
4290
4290
|
top: "-100px",
|
|
@@ -4293,13 +4293,13 @@ const Ur = new ae(5e3, 15e3), Dr = "__/auth/iframe", xr = "emulator/auth/iframe"
|
|
|
4293
4293
|
},
|
|
4294
4294
|
"aria-hidden": "true",
|
|
4295
4295
|
tabindex: "-1"
|
|
4296
|
-
},
|
|
4296
|
+
}, Fr = /* @__PURE__ */ new Map([
|
|
4297
4297
|
["identitytoolkit.googleapis.com", "p"],
|
|
4298
4298
|
["staging-identitytoolkit.sandbox.googleapis.com", "s"],
|
|
4299
4299
|
["test-identitytoolkit.sandbox.googleapis.com", "t"]
|
|
4300
4300
|
// test
|
|
4301
4301
|
]);
|
|
4302
|
-
function
|
|
4302
|
+
function Vr(n) {
|
|
4303
4303
|
const e = n.config;
|
|
4304
4304
|
u(
|
|
4305
4305
|
e.authDomain,
|
|
@@ -4307,17 +4307,17 @@ function $r(n) {
|
|
|
4307
4307
|
"auth-domain-config-required"
|
|
4308
4308
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
4309
4309
|
);
|
|
4310
|
-
const t = e.emulator ? je(e,
|
|
4310
|
+
const t = e.emulator ? je(e, Dr) : `https://${n.config.authDomain}/${Ur}`, i = {
|
|
4311
4311
|
apiKey: e.apiKey,
|
|
4312
4312
|
appName: n.name,
|
|
4313
4313
|
v: se
|
|
4314
|
-
}, r =
|
|
4314
|
+
}, r = Fr.get(n.config.apiHost);
|
|
4315
4315
|
r && (i.eid = r);
|
|
4316
4316
|
const s = n._getFrameworks();
|
|
4317
4317
|
return s.length && (i.fw = s.join(",")), `${t}?${oe(i).slice(1)}`;
|
|
4318
4318
|
}
|
|
4319
|
-
async function
|
|
4320
|
-
const e = await
|
|
4319
|
+
async function $r(n) {
|
|
4320
|
+
const e = await Lr(n), t = E().gapi;
|
|
4321
4321
|
return u(
|
|
4322
4322
|
t,
|
|
4323
4323
|
n,
|
|
@@ -4325,9 +4325,9 @@ async function Hr(n) {
|
|
|
4325
4325
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
4326
4326
|
), e.open({
|
|
4327
4327
|
where: document.body,
|
|
4328
|
-
url:
|
|
4328
|
+
url: Vr(n),
|
|
4329
4329
|
messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
|
|
4330
|
-
attributes:
|
|
4330
|
+
attributes: xr,
|
|
4331
4331
|
dontclear: !0
|
|
4332
4332
|
}, (i) => new Promise(async (r, s) => {
|
|
4333
4333
|
await i.restyle({
|
|
@@ -4340,7 +4340,7 @@ async function Hr(n) {
|
|
|
4340
4340
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
4341
4341
|
), c = E().setTimeout(() => {
|
|
4342
4342
|
s(o);
|
|
4343
|
-
},
|
|
4343
|
+
}, Mr.get());
|
|
4344
4344
|
function a() {
|
|
4345
4345
|
E().clearTimeout(c), r(i);
|
|
4346
4346
|
}
|
|
@@ -4365,12 +4365,12 @@ async function Hr(n) {
|
|
|
4365
4365
|
* See the License for the specific language governing permissions and
|
|
4366
4366
|
* limitations under the License.
|
|
4367
4367
|
*/
|
|
4368
|
-
const
|
|
4368
|
+
const Hr = {
|
|
4369
4369
|
location: "yes",
|
|
4370
4370
|
resizable: "yes",
|
|
4371
4371
|
statusbar: "yes",
|
|
4372
4372
|
toolbar: "no"
|
|
4373
|
-
},
|
|
4373
|
+
}, jr = 500, Wr = 600, Br = "_blank", Gr = "http://localhost";
|
|
4374
4374
|
class pt {
|
|
4375
4375
|
constructor(e) {
|
|
4376
4376
|
this.window = e, this.associatedEvent = null;
|
|
@@ -4383,19 +4383,19 @@ class pt {
|
|
|
4383
4383
|
}
|
|
4384
4384
|
}
|
|
4385
4385
|
}
|
|
4386
|
-
function
|
|
4386
|
+
function zr(n, e, t, i = jr, r = Wr) {
|
|
4387
4387
|
const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
|
|
4388
4388
|
let c = "";
|
|
4389
|
-
const a = Object.assign(Object.assign({},
|
|
4389
|
+
const a = Object.assign(Object.assign({}, Hr), {
|
|
4390
4390
|
width: i.toString(),
|
|
4391
4391
|
height: r.toString(),
|
|
4392
4392
|
top: s,
|
|
4393
4393
|
left: o
|
|
4394
4394
|
}), l = w().toLowerCase();
|
|
4395
|
-
t && (c = Ft(l) ?
|
|
4395
|
+
t && (c = Ft(l) ? Br : t), xt(l) && (e = e || Gr, a.scrollbars = "yes");
|
|
4396
4396
|
const d = Object.entries(a).reduce((y, [T, h]) => `${y}${T}=${h},`, "");
|
|
4397
|
-
if (
|
|
4398
|
-
return
|
|
4397
|
+
if (bi(l) && c !== "_self")
|
|
4398
|
+
return qr(e || "", c), new pt(null);
|
|
4399
4399
|
const m = window.open(e || "", c, d);
|
|
4400
4400
|
u(
|
|
4401
4401
|
m,
|
|
@@ -4409,7 +4409,7 @@ function qr(n, e, t, i = Wr, r = Br) {
|
|
|
4409
4409
|
}
|
|
4410
4410
|
return new pt(m);
|
|
4411
4411
|
}
|
|
4412
|
-
function
|
|
4412
|
+
function qr(n, e) {
|
|
4413
4413
|
const t = document.createElement("a");
|
|
4414
4414
|
t.href = n, t.target = e;
|
|
4415
4415
|
const i = document.createEvent("MouseEvent");
|
|
@@ -4431,7 +4431,7 @@ function Kr(n, e) {
|
|
|
4431
4431
|
* See the License for the specific language governing permissions and
|
|
4432
4432
|
* limitations under the License.
|
|
4433
4433
|
*/
|
|
4434
|
-
const
|
|
4434
|
+
const Kr = "__/auth/handler", Jr = "emulator/auth/handler", Yr = encodeURIComponent("fac");
|
|
4435
4435
|
async function mt(n, e, t, i, r, s) {
|
|
4436
4436
|
u(
|
|
4437
4437
|
n.config.authDomain,
|
|
@@ -4453,7 +4453,7 @@ async function mt(n, e, t, i, r, s) {
|
|
|
4453
4453
|
eventId: r
|
|
4454
4454
|
};
|
|
4455
4455
|
if (e instanceof qt) {
|
|
4456
|
-
e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "",
|
|
4456
|
+
e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Mn(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
|
|
4457
4457
|
for (const [d, m] of Object.entries({}))
|
|
4458
4458
|
o[d] = m;
|
|
4459
4459
|
}
|
|
@@ -4465,11 +4465,11 @@ async function mt(n, e, t, i, r, s) {
|
|
|
4465
4465
|
const c = o;
|
|
4466
4466
|
for (const d of Object.keys(c))
|
|
4467
4467
|
c[d] === void 0 && delete c[d];
|
|
4468
|
-
const a = await n._getAppCheckToken(), l = a ? `#${
|
|
4469
|
-
return `${
|
|
4468
|
+
const a = await n._getAppCheckToken(), l = a ? `#${Yr}=${encodeURIComponent(a)}` : "";
|
|
4469
|
+
return `${Xr(n)}?${oe(c).slice(1)}${l}`;
|
|
4470
4470
|
}
|
|
4471
|
-
function
|
|
4472
|
-
return n.emulator ? je(n,
|
|
4471
|
+
function Xr({ config: n }) {
|
|
4472
|
+
return n.emulator ? je(n, Jr) : `https://${n.authDomain}/${Kr}`;
|
|
4473
4473
|
}
|
|
4474
4474
|
/**
|
|
4475
4475
|
* @license
|
|
@@ -4488,9 +4488,9 @@ function Qr({ config: n }) {
|
|
|
4488
4488
|
* limitations under the License.
|
|
4489
4489
|
*/
|
|
4490
4490
|
const Ne = "webStorageSupport";
|
|
4491
|
-
class
|
|
4491
|
+
class Qr {
|
|
4492
4492
|
constructor() {
|
|
4493
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn =
|
|
4493
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = Tr, this._overrideRedirectResult = Ir;
|
|
4494
4494
|
}
|
|
4495
4495
|
// Wrapping in async even though we don't await anywhere in order
|
|
4496
4496
|
// to make sure errors are raised as promise rejections
|
|
@@ -4498,12 +4498,12 @@ class Zr {
|
|
|
4498
4498
|
var s;
|
|
4499
4499
|
L((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
|
4500
4500
|
const o = await mt(e, t, i, Me(), r);
|
|
4501
|
-
return
|
|
4501
|
+
return zr(e, o, ze());
|
|
4502
4502
|
}
|
|
4503
4503
|
async _openRedirect(e, t, i, r) {
|
|
4504
4504
|
await this._originValidation(e);
|
|
4505
4505
|
const s = await mt(e, t, i, Me(), r);
|
|
4506
|
-
return
|
|
4506
|
+
return tr(s), new Promise(() => {
|
|
4507
4507
|
});
|
|
4508
4508
|
}
|
|
4509
4509
|
_initialize(e) {
|
|
@@ -4518,7 +4518,7 @@ class Zr {
|
|
|
4518
4518
|
}), i;
|
|
4519
4519
|
}
|
|
4520
4520
|
async initAndGetManager(e) {
|
|
4521
|
-
const t = await
|
|
4521
|
+
const t = await $r(e), i = new br(e);
|
|
4522
4522
|
return t.register("authEvent", (r) => (u(
|
|
4523
4523
|
r == null ? void 0 : r.authEvent,
|
|
4524
4524
|
e,
|
|
@@ -4542,13 +4542,13 @@ class Zr {
|
|
|
4542
4542
|
}
|
|
4543
4543
|
_originValidation(e) {
|
|
4544
4544
|
const t = e._key();
|
|
4545
|
-
return this.originValidationPromises[t] || (this.originValidationPromises[t] =
|
|
4545
|
+
return this.originValidationPromises[t] || (this.originValidationPromises[t] = Pr(e)), this.originValidationPromises[t];
|
|
4546
4546
|
}
|
|
4547
4547
|
get _shouldInitProactively() {
|
|
4548
4548
|
return Wt() || Be() || ke();
|
|
4549
4549
|
}
|
|
4550
4550
|
}
|
|
4551
|
-
const
|
|
4551
|
+
const Zr = Qr;
|
|
4552
4552
|
var gt = "@firebase/auth", _t = "1.7.5";
|
|
4553
4553
|
/**
|
|
4554
4554
|
* @license
|
|
@@ -4566,7 +4566,7 @@ var gt = "@firebase/auth", _t = "1.7.5";
|
|
|
4566
4566
|
* See the License for the specific language governing permissions and
|
|
4567
4567
|
* limitations under the License.
|
|
4568
4568
|
*/
|
|
4569
|
-
class
|
|
4569
|
+
class es {
|
|
4570
4570
|
constructor(e) {
|
|
4571
4571
|
this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
|
|
4572
4572
|
}
|
|
@@ -4617,7 +4617,7 @@ class ts {
|
|
|
4617
4617
|
* See the License for the specific language governing permissions and
|
|
4618
4618
|
* limitations under the License.
|
|
4619
4619
|
*/
|
|
4620
|
-
function
|
|
4620
|
+
function ts(n) {
|
|
4621
4621
|
switch (n) {
|
|
4622
4622
|
case "Node":
|
|
4623
4623
|
return "node";
|
|
@@ -4633,7 +4633,7 @@ function ns(n) {
|
|
|
4633
4633
|
return;
|
|
4634
4634
|
}
|
|
4635
4635
|
}
|
|
4636
|
-
function
|
|
4636
|
+
function ns(n) {
|
|
4637
4637
|
Ze(new et(
|
|
4638
4638
|
"auth",
|
|
4639
4639
|
(e, { options: t }) => {
|
|
@@ -4647,8 +4647,8 @@ function is(n) {
|
|
|
4647
4647
|
tokenApiHost: "securetoken.googleapis.com",
|
|
4648
4648
|
apiScheme: "https",
|
|
4649
4649
|
sdkClientVersion: Bt(n)
|
|
4650
|
-
}, l = new
|
|
4651
|
-
return
|
|
4650
|
+
}, l = new Ni(i, r, s, a);
|
|
4651
|
+
return xi(l, t), l;
|
|
4652
4652
|
},
|
|
4653
4653
|
"PUBLIC"
|
|
4654
4654
|
/* ComponentType.PUBLIC */
|
|
@@ -4667,14 +4667,14 @@ function is(n) {
|
|
|
4667
4667
|
"auth"
|
|
4668
4668
|
/* _ComponentName.AUTH */
|
|
4669
4669
|
).getImmediate());
|
|
4670
|
-
return ((i) => new
|
|
4670
|
+
return ((i) => new es(i))(t);
|
|
4671
4671
|
},
|
|
4672
4672
|
"PRIVATE"
|
|
4673
4673
|
/* ComponentType.PRIVATE */
|
|
4674
4674
|
).setInstantiationMode(
|
|
4675
4675
|
"EXPLICIT"
|
|
4676
4676
|
/* InstantiationMode.EXPLICIT */
|
|
4677
|
-
)), Le(gt, _t,
|
|
4677
|
+
)), Le(gt, _t, ts(n)), Le(gt, _t, "esm2017");
|
|
4678
4678
|
}
|
|
4679
4679
|
/**
|
|
4680
4680
|
* @license
|
|
@@ -4692,11 +4692,11 @@ function is(n) {
|
|
|
4692
4692
|
* See the License for the specific language governing permissions and
|
|
4693
4693
|
* limitations under the License.
|
|
4694
4694
|
*/
|
|
4695
|
-
const
|
|
4695
|
+
const is = 5 * 60, rs = kt("authIdTokenMaxAge") || is;
|
|
4696
4696
|
let vt = null;
|
|
4697
|
-
const
|
|
4697
|
+
const ss = (n) => async (e) => {
|
|
4698
4698
|
const t = e && await e.getIdTokenResult(), i = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
|
|
4699
|
-
if (i && i >
|
|
4699
|
+
if (i && i > rs)
|
|
4700
4700
|
return;
|
|
4701
4701
|
const r = t == null ? void 0 : t.token;
|
|
4702
4702
|
vt !== r && (vt = r, await fetch(n, {
|
|
@@ -4706,33 +4706,33 @@ const os = (n) => async (e) => {
|
|
|
4706
4706
|
} : {}
|
|
4707
4707
|
}));
|
|
4708
4708
|
};
|
|
4709
|
-
function
|
|
4709
|
+
function os(n = Cn()) {
|
|
4710
4710
|
const e = bt(n, "auth");
|
|
4711
4711
|
if (e.isInitialized())
|
|
4712
4712
|
return e.getImmediate();
|
|
4713
|
-
const t =
|
|
4714
|
-
popupRedirectResolver:
|
|
4713
|
+
const t = Di(n, {
|
|
4714
|
+
popupRedirectResolver: Zr,
|
|
4715
4715
|
persistence: [
|
|
4716
|
-
|
|
4717
|
-
|
|
4716
|
+
ur,
|
|
4717
|
+
Qi,
|
|
4718
4718
|
Qt
|
|
4719
4719
|
]
|
|
4720
4720
|
}), i = kt("authTokenSyncURL");
|
|
4721
4721
|
if (i && typeof isSecureContext == "boolean" && isSecureContext) {
|
|
4722
4722
|
const s = new URL(i, location.origin);
|
|
4723
4723
|
if (location.origin === s.origin) {
|
|
4724
|
-
const o =
|
|
4725
|
-
|
|
4724
|
+
const o = ss(s.toString());
|
|
4725
|
+
Ki(t, o, () => o(t.currentUser)), qi(t, (c) => o(c));
|
|
4726
4726
|
}
|
|
4727
4727
|
}
|
|
4728
|
-
const r =
|
|
4729
|
-
return r &&
|
|
4728
|
+
const r = Pn("auth");
|
|
4729
|
+
return r && Fi(t, `http://${r}`), t;
|
|
4730
4730
|
}
|
|
4731
|
-
function
|
|
4731
|
+
function as() {
|
|
4732
4732
|
var n, e;
|
|
4733
4733
|
return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
|
|
4734
4734
|
}
|
|
4735
|
-
|
|
4735
|
+
Oi({
|
|
4736
4736
|
loadJS(n) {
|
|
4737
4737
|
return new Promise((e, t) => {
|
|
4738
4738
|
const i = document.createElement("script");
|
|
@@ -4742,52 +4742,52 @@ Li({
|
|
|
4742
4742
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
4743
4743
|
);
|
|
4744
4744
|
s.customData = r, t(s);
|
|
4745
|
-
}, i.type = "text/javascript", i.charset = "UTF-8",
|
|
4745
|
+
}, i.type = "text/javascript", i.charset = "UTF-8", as().appendChild(i);
|
|
4746
4746
|
});
|
|
4747
4747
|
},
|
|
4748
4748
|
gapiScript: "https://apis.google.com/js/api.js",
|
|
4749
4749
|
recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
|
|
4750
4750
|
recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
|
|
4751
4751
|
});
|
|
4752
|
-
|
|
4752
|
+
ns(
|
|
4753
4753
|
"Browser"
|
|
4754
4754
|
/* ClientPlatform.BROWSER */
|
|
4755
4755
|
);
|
|
4756
|
-
var
|
|
4757
|
-
const
|
|
4756
|
+
var cs = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, assetBucketUrl: "static.feedme.cc", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", featureFlagApiKey: "6GhcttsJ9Rj9cTevcdrpin" }, ls = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc", voucherAppUrl: "https://voucher.feedme.cc/" };
|
|
4757
|
+
const us = {
|
|
4758
4758
|
key: 2,
|
|
4759
4759
|
class: "h-full w-full"
|
|
4760
|
-
},
|
|
4760
|
+
}, ds = ["src"], Ps = /* @__PURE__ */ xe({
|
|
4761
4761
|
__name: "App",
|
|
4762
4762
|
setup(n) {
|
|
4763
|
-
const e = ge(), t = pn(), i = mn(), r =
|
|
4763
|
+
const e = ge(), t = pn(), i = mn(), r = vn(), s = In(), o = wt(), c = te(o.query.showHeader !== "false"), a = te(!1), { currentBusiness: l } = ge();
|
|
4764
4764
|
ie(
|
|
4765
4765
|
() => {
|
|
4766
4766
|
var f;
|
|
4767
4767
|
return (f = l.value) == null ? void 0 : f._id;
|
|
4768
4768
|
},
|
|
4769
4769
|
(f) => {
|
|
4770
|
-
f &&
|
|
4770
|
+
f && _n(f);
|
|
4771
4771
|
},
|
|
4772
4772
|
{ immediate: !0 }
|
|
4773
4773
|
);
|
|
4774
4774
|
const d = te(!1), m = Y(() => i.version), y = Y(() => {
|
|
4775
4775
|
const f = e.currentCountry.value || "MY", g = tt.getIdToken(), v = l.value._id;
|
|
4776
|
-
return `${
|
|
4776
|
+
return `${ls.marketingV1Portal}/b/${v}/marketing/overview?showHeader=false&country=${f}&token=${g}`;
|
|
4777
4777
|
});
|
|
4778
4778
|
async function T() {
|
|
4779
|
-
if (
|
|
4779
|
+
if (Un().length) {
|
|
4780
4780
|
console.warn("CONNECT: initFirebase: Firebase already initialized");
|
|
4781
4781
|
return;
|
|
4782
4782
|
}
|
|
4783
|
-
const f =
|
|
4784
|
-
await
|
|
4783
|
+
const f = Dn(cs.firebase), g = await fn.getCustomToken(), v = os();
|
|
4784
|
+
await zi(v, g), xn(f), console.log("initFirebase", f);
|
|
4785
4785
|
}
|
|
4786
4786
|
const h = async () => {
|
|
4787
|
-
d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent(
|
|
4787
|
+
d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent(Hn) : e.hideSidebarToggle(!0), await T(), a.value = !0, d.value = !0;
|
|
4788
4788
|
};
|
|
4789
4789
|
return un(() => {
|
|
4790
|
-
if (
|
|
4790
|
+
if (Fn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
|
|
4791
4791
|
const f = document.getElementsByClassName("app-header")[0], g = document.getElementsByClassName("app-sidebar")[0], v = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
|
|
4792
4792
|
f == null || f.classList.add("!hidden"), g == null || g.classList.add("!pt-0"), v == null || v.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
|
|
4793
4793
|
}
|
|
@@ -4799,9 +4799,9 @@ const ds = {
|
|
|
4799
4799
|
}
|
|
4800
4800
|
), (f, g) => (W(), me(It, null, [
|
|
4801
4801
|
_(d) && _(m) === "v2" ? (W(), Oe(_(hn), { key: 0 })) : Pe("", !0),
|
|
4802
|
-
_(d) && _(m) === "v2" && _(c) ? (W(), Oe(
|
|
4803
|
-
_(d) && _(m) !== "v2" ? (W(), me("div",
|
|
4804
|
-
S(
|
|
4802
|
+
_(d) && _(m) === "v2" && _(c) ? (W(), Oe(si, { key: 1 })) : Pe("", !0),
|
|
4803
|
+
_(d) && _(m) !== "v2" ? (W(), me("div", us, [
|
|
4804
|
+
S(kn, {
|
|
4805
4805
|
json: { url: _(y) }
|
|
4806
4806
|
}, null, 8, ["json"]),
|
|
4807
4807
|
I("iframe", {
|
|
@@ -4810,11 +4810,11 @@ const ds = {
|
|
|
4810
4810
|
height: "100%",
|
|
4811
4811
|
width: "100%",
|
|
4812
4812
|
src: _(y)
|
|
4813
|
-
}, null, 8,
|
|
4813
|
+
}, null, 8, ds)
|
|
4814
4814
|
])) : Pe("", !0)
|
|
4815
4815
|
], 64));
|
|
4816
4816
|
}
|
|
4817
4817
|
});
|
|
4818
4818
|
export {
|
|
4819
|
-
|
|
4819
|
+
Ps as default
|
|
4820
4820
|
};
|