@feedmepos/mf-connect 0.1.124-prod → 0.1.125-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-DMh2xABv.js → App-lOnYYWzx.js} +224 -216
- package/dist/AuditLogs-C5aMzrhF.js +2016 -0
- package/dist/{Bin-C_pkPgIo.js → Bin-Dk0rAESN.js} +8 -8
- package/dist/{Broadcast-6ZJzdY0b.js → Broadcast-BBNpuceo.js} +22 -21
- package/dist/{CampaignAnalytic-CLd5ecQe.js → CampaignAnalytic-BgROt0Yu.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C4OWhhAx.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CrgCuB45.js} +9 -10
- package/dist/{Card-CkS8F43U.js → Card-fSEJaQmL.js} +23 -23
- package/dist/{Collections-BA9I-dDz.js → Collections-DVM1dOOo.js} +197 -185
- package/dist/{Credit-CXm0A-qe.js → Credit-CNDYRDiK.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-DzsHTlrN.js → DateRangeChip.vue_vue_type_script_setup_true_lang-Cup-EvR6.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CJ90EwzB.js +4439 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-zSPUBUSz.js → EffectSheet.vue_vue_type_style_index_0_lang-JQmGeS__.js} +33 -33
- package/dist/{Experience-Bq4ykqTJ.js → Experience-Bqfx1Gjq.js} +32 -31
- package/dist/{FileSaver.min-BtBxrIBi.js → FileSaver.min-B4Jv2-PR.js} +1 -1
- package/dist/{Game-DpLFmP-G.js → Game-DmbJYYaC.js} +19 -18
- package/dist/{GiftCardSetup-BqOqEUim.js → GiftCardSetup-DHxDI5hU.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-B06xj5q7.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BfrjE7gE.js} +7 -7
- package/dist/{Goals-DMlNeiUc.js → Goals-B-3PoUlx.js} +4 -4
- package/dist/Grab-BRfVvqAr.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DPWRgxG_.js → ImageInput.vue_vue_type_script_setup_true_lang-TUlgTblc.js} +1 -1
- package/dist/{Index-Cw07jj0k.js → Index-vfYiu7G1.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CLjjquVP.js → LocationPicker.vue_vue_type_script_setup_true_lang-BKdq7bw2.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DHOShJQp.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DUAKzHgZ.js} +1 -1
- package/dist/{LoyaltyDashboard-DzSiK6M7.js → LoyaltyDashboard-CHEIpAHw.js} +15 -15
- package/dist/{MainLayout-1EF680_j.js → MainLayout-Cf1lEoHL.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-Df9pBgH9.js → MainLayout.vue_vue_type_script_setup_true_lang-DwNxuVHy.js} +3 -3
- package/dist/{Marketing-T-epFsvG.js → Marketing-BBF8mHSo.js} +4 -4
- package/dist/{MarketingMaterialEdit-CVhPfyEp.js → MarketingMaterialEdit-COTHaH08.js} +214 -211
- package/dist/{Member-BUZOPyQR.js → Member-BEyxcsNI.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-zURjtl1z.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DLSsOeLt.js} +40 -48
- package/dist/{MemberImportHistory-DGz9i6L7.js → MemberImportHistory-zs8VJsoI.js} +7 -7
- package/dist/{MemberList-CNdSrzBa.js → MemberList-2-qKmm5p.js} +103 -105
- package/dist/{MemberTransactions-CdQMuQsd.js → MemberTransactions-DOsMBs30.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CWKVXeCa.js → MessageInput.vue_vue_type_script_setup_true_lang-DBl4cf8X.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-xZitIoXE.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CtqBL-Ky.js} +1 -1
- package/dist/{Mission-CYxgMBPt.js → Mission-Bo7tuR13.js} +22 -21
- package/dist/{Overview-DSm8AfDB.js → Overview-BrGVMqE1.js} +21 -21
- package/dist/{Overview-qZ1KKw9D.js → Overview-CnoidK6U.js} +145 -144
- package/dist/{Point-BGlbT9OK.js → Point-DJ2-HEmx.js} +22 -21
- package/dist/{Promotion-CtlrUFa8.js → Promotion-D7Q3EY3d.js} +137 -131
- package/dist/{Queue-Dc_z9MKc.js → Queue-CLXhXQeU.js} +46 -46
- package/dist/{Record-DVKrhFwJ.js → Record-CCF7K-pJ.js} +9 -9
- package/dist/{Review-Bh8Tw_QU.js → Review-BZH_tGDe.js} +2 -2
- package/dist/ReviewFacebookCallback-Bs-oiDMC.js +225 -0
- package/dist/{ReviewGoogleCallback-CsSCz_C5.js → ReviewGoogleCallback-eHLJko2f.js} +5 -5
- package/dist/{Reward-DY1Q3m1w.js → Reward-ea05o2qi.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-4A91EkSW.js → RewardGroup.vue_vue_type_script_setup_true_lang-Csa8UPMS.js} +14 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DW3NDgHq.js +1923 -0
- package/dist/{Segment-D6LchJFl.js → Segment-z3BAGTqr.js} +304 -307
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CSAtkMnJ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-D4H86p3o.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Co1MQoVq.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-x8dMt8PF.js} +4 -4
- package/dist/{Setting-UkdSKiUb.js → Setting-D0nKTgej.js} +17 -17
- package/dist/{SettingAdvertisements-DK97gcus.js → SettingAdvertisements-BUGsMAdi.js} +12 -12
- package/dist/Settings-C2loJXla.js +286 -0
- package/dist/{Store-2VVStL5_.js → Store-CbhAyr1j.js} +29 -29
- package/dist/{StoreRewards-f3Pyb9hu.js → StoreRewards-DHt64JEN.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BmnyPSVT.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CQ7I8Zli.js} +25 -25
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-ylUyqix_.js +7007 -0
- package/dist/{Tier-D4Of9P17.js → Tier-CH5DwMYW.js} +2583 -688
- package/dist/{Title-Cg6X9UkB.js → Title-DNLw_rOp.js} +96 -95
- package/dist/{Transaction-LJbjQnj_.js → Transaction-DCuU6B7G.js} +2 -2
- package/dist/{Upselling-B-VwbtjT.js → Upselling-DBsfEEvV.js} +3 -3
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DqH6Upx-.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-f-j87AZA.js} +26 -26
- package/dist/{Voucher-BJG6VKXt.js → Voucher-BVztDyI0.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-7kYeJthi.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CrYrxFVi.js} +12 -12
- package/dist/{WhatsappAccount-Dc1fJWWj.js → WhatsappAccount-CobyTNkp.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BV0Bsl7a.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-C-pbY0Zv.js} +1 -1
- package/dist/{WhatsappBot-Coq1WP96.js → WhatsappBot-xc4QD061.js} +6 -6
- package/dist/WhatsappBotLogs-eiDWJkN7.js +509 -0
- package/dist/{WhatsappBotSettings-fNRFecJX.js → WhatsappBotSettings-D4cMFn3z.js} +65 -65
- package/dist/{WhatsappLayout-x9Ovpu6e.js → WhatsappLayout-C8DejCWo.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DZlT0uLW.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CZNpggfQ.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DSJncfI_.js → ZodTextField.vue_vue_type_script_setup_true_lang-C6TJ4hxh.js} +2 -2
- package/dist/{app-BMFxxLUm.js → app-Bik4hlr7.js} +4310 -3520
- package/dist/app.js +4 -3
- package/dist/{base.export-LmQ51u5f.js → base.export-BRw8QzdM.js} +2 -2
- package/dist/{business-DZWViiMC.js → business-Dv2S3X12.js} +1 -1
- package/dist/{campaign-C9xvGyrL.js → campaign-CNDBsfeQ.js} +31 -25
- package/dist/{campaign-DZDGbR4W.js → campaign-witQNfmZ.js} +121 -94
- package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Dx-Zo68Q.js} +2 -1
- package/dist/{campaign.fn-OVkj0QLu.js → campaign.fn-Dr4w5BrO.js} +105 -105
- package/dist/{collection.fn-DrNrla0B.js → collection.fn-C0Dx5_1j.js} +2 -2
- package/dist/{currency-BZv2gSlF.js → currency-lP50Csky.js} +1 -1
- package/dist/duplicateCampaign-BfLxdQWg.js +51 -0
- package/dist/{effect-CvumfBMY.js → effect-6bi20cxS.js} +1 -1
- package/dist/{email-addresses-79tPeI4j.js → email-addresses-BmujKG-l.js} +2 -2
- package/dist/{feature-flag-CYXnrECh.js → feature-flag-DdxBiP1p.js} +84 -84
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-DFjsyjri.js → helper-DSmzzBjW.js} +1 -1
- package/dist/{index-Bnane9cm.js → index-2JiR1s6M.js} +1 -1
- package/dist/{index-CNzQ3FLi.js → index-373LDTQ7.js} +1 -1
- package/dist/{index-C6Rx7pjc.js → index-83SeIfhc.js} +608 -251
- package/dist/{index-CA7oIW_T.js → index-B0Ddw1na.js} +197 -197
- package/dist/index-BD3HIAoL.js +86 -0
- package/dist/{index-C43KoLej.js → index-BNdhRCyN.js} +4 -4
- package/dist/{index-CcCiEG6N.js → index-BTud0ICl.js} +1 -1
- package/dist/{index-B_8PAyia.js → index-BYlnybS9.js} +2 -2
- package/dist/{index-_-nCOZ1D.js → index-CCVnmv0l.js} +19 -6
- package/dist/{index-BiPRZRyE.js → index-CEscBR6G.js} +2699 -2613
- package/dist/{index-DZrX13oF.js → index-CFhazRum.js} +1314 -1242
- package/dist/{index-I9lmcd2w.js → index-CH-uRaZH.js} +56 -53
- package/dist/{index-Bt-n8QuD.js → index-CH1MpmvS.js} +9 -9
- package/dist/{index-CAWnce4u.js → index-CRd8uD-d.js} +1 -1
- package/dist/{index-DWZzsJHU.js → index-CdQGmMRo.js} +2 -2
- package/dist/{index-Ba1t5vQv.js → index-Cei8qPkg.js} +380 -234
- package/dist/{index-C6ZTa-eq.js → index-D-Ln1G1Y.js} +1 -1
- package/dist/{index-MhAbTpBy.js → index-DGctCMca.js} +23 -23
- package/dist/{index-CW4rNV1_.js → index-DGz2Y25B.js} +2 -2
- package/dist/{index-C5bC2n8X.js → index-DMT5xoCz.js} +3 -3
- package/dist/{index-CBd91xYU.js → index-DjlmY7Od.js} +7 -7
- package/dist/{index.esm2017-DtTjnHHc.js → index.esm2017-BcULj0z4.js} +57 -57
- package/dist/{loading-DkqEFbrR.js → loading-DmCJ1FiL.js} +1 -1
- package/dist/{lodash-BxU_5gPB.js → lodash-FEhiisF1.js} +1 -1
- package/dist/{member-import-B3NBqSF6.js → member-import-BLxPVKon.js} +22 -13
- package/dist/{membership-Dr5BxoL-.js → membership-Dq3LSd35.js} +2 -2
- package/dist/{money-D58xuACG.js → money-D2RIG9zm.js} +1 -1
- package/dist/{number-C9CiD5ci.js → number-D87ngEVu.js} +1 -1
- package/dist/objectid-CuPXVpKE.js +145 -0
- package/dist/{onboarding-BssUSfGQ.js → onboarding-YlSAcar0.js} +25 -25
- package/dist/{onboardingSetup-Dc_lD-K8.js → onboardingSetup-qgS6ktSi.js} +2 -2
- package/dist/{plugins-D7Xjefvk.js → plugins-B3B_2EiB.js} +3 -3
- package/dist/{reward-CACqYkQp.js → reward-BtEe_1ZU.js} +1 -1
- package/dist/{rule-BRaTrwKz.js → rule-PmdBF8Cb.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-D6wO9_aV.js +227 -0
- package/dist/{timezone-CgVEOC5i.js → timezone-DPnmvzUK.js} +1 -1
- package/dist/{transaction.fn-C64l_ja_.js → transaction.fn-BavSYDYI.js} +2 -2
- package/dist/{trigger-d2RIqXLt.js → trigger-CsIScoNI.js} +9 -9
- package/dist/{useMarketingMaterialActions-Drf2MY9h.js → useMarketingMaterialActions-CHBfA7iR.js} +4 -4
- package/dist/{usePagination-IUw34YLE.js → usePagination-DXPBbII4.js} +1 -1
- package/dist/{user-ClGyYHyS.js → user-B8js0aIx.js} +1 -1
- package/dist/vue-i18n-R6DAeTzc.js +2365 -0
- package/dist/{xlsx-HvtVSofi.js → xlsx-CYugHPG9.js} +1 -1
- package/dist/{zod-IPdjFU_b.js → zod-BEFViLGC.js} +1 -1
- package/package.json +6 -2
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C5INV6R7.js +0 -3493
- package/dist/ReviewFacebookCallback-ZZ0pxplM.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-JA0XIgqb.js +0 -1884
- package/dist/Settings-BFcVswDS.js +0 -179
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CCWNzg4p.js +0 -142
- package/dist/WhatsappBotLogs-EH9PQVn9.js +0 -372
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/index-C-pVo6PI.js +0 -74
- package/dist/objectid-CgTtbB6Q.js +0 -145
- package/dist/rule-builder-DZOASGFD.js +0 -102
- package/dist/template-DdeVPIBt.js +0 -275
- package/dist/vue-i18n-Cby9s0nj.js +0 -2365
|
@@ -1,133 +1,141 @@
|
|
|
1
|
-
import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as
|
|
1
|
+
import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as G, watch as ie, resolveComponent as ee, openBlock as j, createElementBlock as me, createVNode as R, unref as g, createElementVNode as I, toDisplayString as A, 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 { u as gn, l as _n } from "./feature-flag-
|
|
7
|
-
import "./index-
|
|
8
|
-
import { components as
|
|
9
|
-
import { u as Tt } from "./vue-i18n-
|
|
10
|
-
import { m as yn } from "./index-
|
|
11
|
-
import { C as Xe } from "./timezone-
|
|
12
|
-
import { u as wn } from "./onboarding-
|
|
13
|
-
import { R as
|
|
14
|
-
import { J as
|
|
15
|
-
import { r as Le, L as
|
|
5
|
+
import { u as mn } from "./business-Dv2S3X12.js";
|
|
6
|
+
import { u as gn, l as _n } from "./feature-flag-DdxBiP1p.js";
|
|
7
|
+
import "./index-2JiR1s6M.js";
|
|
8
|
+
import { components as W, useSnackbar as vn, useDialog as In } from "@feedmepos/ui-library";
|
|
9
|
+
import { u as Tt } from "./vue-i18n-R6DAeTzc.js";
|
|
10
|
+
import { m as yn } from "./index-373LDTQ7.js";
|
|
11
|
+
import { C as Xe } from "./timezone-DPnmvzUK.js";
|
|
12
|
+
import { u as wn } from "./onboarding-YlSAcar0.js";
|
|
13
|
+
import { R as f, g as Tn, A as kn, a as Qe } from "./app-Bik4hlr7.js";
|
|
14
|
+
import { J as En } from "./JsonViewer-v8_C7l5N.js";
|
|
15
|
+
import { r as Le, L as bn, g as kt, i as Sn, a as Rn, _ as Ze, C as et, b as An, S as se, c as P, d as X, E as Fe, e as Pn, f as Et, h as Cn, j as Nn, k as bt, l as k, m as On, F as Ve, n as Ln, q as oe, o as Mn, p as Un, s as Dn, t as xn, u as Fn } from "./index.esm2017-BcULj0z4.js";
|
|
16
16
|
import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
|
|
17
|
-
import { S as tt, c as Vn } from "./index-
|
|
18
|
-
const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" },
|
|
17
|
+
import { S as tt, c as Vn } from "./index-DjlmY7Od.js";
|
|
18
|
+
const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Wn = /* @__PURE__ */ xe({
|
|
19
19
|
__name: "NavigationTab",
|
|
20
20
|
setup(n) {
|
|
21
21
|
const { t: e, locale: t } = Tt(), i = wn(), r = gn(), s = te(), o = [
|
|
22
22
|
{
|
|
23
23
|
label: e("connect.navigation.analytic"),
|
|
24
|
-
value:
|
|
24
|
+
value: f["$connect-ANALYTIC"]
|
|
25
25
|
},
|
|
26
|
-
{ label: "Upselling", value:
|
|
26
|
+
{ label: "Upselling", value: f["$connect-UPSELLING"] },
|
|
27
27
|
{
|
|
28
28
|
label: e("connect.navigation.campaign"),
|
|
29
|
-
value:
|
|
29
|
+
value: f["$connect-CAMPAIGN"],
|
|
30
30
|
children: [
|
|
31
31
|
{
|
|
32
32
|
label: e("connect.navigation.promotion"),
|
|
33
|
-
value:
|
|
33
|
+
value: f["$connect-CAMPAIGN_PROMOTION"]
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
label: e("connect.navigation.voucher"),
|
|
37
|
-
value:
|
|
37
|
+
value: f["$connect-CAMPAIGN_VOUCHER"]
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
label: e("connect.navigation.broadcast"),
|
|
41
|
-
value:
|
|
41
|
+
value: f["$connect-CAMPAIGN_BROADCAST"]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: e("connect.navigation.grab"),
|
|
45
|
+
value: f["$connect-CAMPAIGN_GRAB"]
|
|
42
46
|
}
|
|
43
47
|
]
|
|
44
48
|
},
|
|
45
49
|
{
|
|
46
50
|
label: e("connect.navigation.program"),
|
|
47
|
-
value:
|
|
51
|
+
value: f["$connect-PROGRAM"],
|
|
48
52
|
children: [
|
|
49
53
|
{
|
|
50
54
|
label: e("connect.navigation.tier"),
|
|
51
|
-
value:
|
|
55
|
+
value: f["$connect-PROGRAM_TIER"]
|
|
52
56
|
},
|
|
53
57
|
{
|
|
54
58
|
label: e("connect.navigation.title"),
|
|
55
|
-
value:
|
|
59
|
+
value: f["$connect-PROGRAM_TITLE"]
|
|
56
60
|
},
|
|
57
61
|
{
|
|
58
62
|
label: e("connect.navigation.experience"),
|
|
59
|
-
value:
|
|
63
|
+
value: f["$connect-PROGRAM_EXPERIENCE"]
|
|
60
64
|
},
|
|
61
65
|
{
|
|
62
66
|
label: e("connect.navigation.point"),
|
|
63
|
-
value:
|
|
64
|
-
badge: () => U(
|
|
67
|
+
value: f["$connect-PROGRAM_POINT"],
|
|
68
|
+
badge: () => U(W.FmPill, { variant: "premium" })
|
|
65
69
|
},
|
|
66
70
|
{
|
|
67
71
|
label: e("connect.navigation.credit"),
|
|
68
|
-
value:
|
|
72
|
+
value: f["$connect-PROGRAM_CREDIT"]
|
|
69
73
|
},
|
|
70
74
|
{
|
|
71
75
|
label: e("connect.navigation.game"),
|
|
72
|
-
value:
|
|
73
|
-
badge: () => U(
|
|
76
|
+
value: f["$connect-PROGRAM_GAME"],
|
|
77
|
+
badge: () => U(W.FmPill, { variant: "premium" })
|
|
74
78
|
},
|
|
75
79
|
{
|
|
76
80
|
label: "Mission",
|
|
77
|
-
value:
|
|
81
|
+
value: f["$connect-PROGRAM_MISSION"]
|
|
78
82
|
}
|
|
79
83
|
]
|
|
80
84
|
},
|
|
81
85
|
{
|
|
82
86
|
label: e("connect.navigation.loyalty"),
|
|
83
|
-
value:
|
|
87
|
+
value: f["$connect-LOYALTY"],
|
|
84
88
|
children: [
|
|
85
89
|
{
|
|
86
90
|
label: e("connect.navigation.member"),
|
|
87
|
-
value:
|
|
91
|
+
value: f["$connect-LOYALTY_MEMBER_LIST"]
|
|
88
92
|
},
|
|
89
93
|
{
|
|
90
94
|
label: e("connect.navigation.segments"),
|
|
91
|
-
value:
|
|
92
|
-
badge: () => U(
|
|
95
|
+
value: f["$connect-LOYALTY_SEGMENT"],
|
|
96
|
+
badge: () => U(W.FmPill, { variant: "premium" })
|
|
93
97
|
},
|
|
94
98
|
{
|
|
95
99
|
label: e("connect.navigation.card"),
|
|
96
|
-
value:
|
|
97
|
-
badge: () => U(
|
|
100
|
+
value: f["$connect-LOYALTY_CARD"],
|
|
101
|
+
badge: () => U(W.FmPill, { variant: "premium" })
|
|
98
102
|
}
|
|
99
103
|
]
|
|
100
104
|
},
|
|
101
105
|
{
|
|
102
106
|
label: e("connect.navigation.whatsappBot"),
|
|
103
|
-
value:
|
|
104
|
-
badge: () => U(
|
|
107
|
+
value: f["$connect-WHATSAPP"],
|
|
108
|
+
badge: () => U(W.FmPill, { variant: "beta" })
|
|
105
109
|
},
|
|
106
110
|
{
|
|
107
111
|
label: e("connect.navigation.referral"),
|
|
108
|
-
value:
|
|
109
|
-
badge: () => U(
|
|
112
|
+
value: f["$connect-REFERRAL"],
|
|
113
|
+
badge: () => U(W.FmPill, { variant: "premium" })
|
|
110
114
|
},
|
|
111
115
|
{
|
|
112
116
|
label: e("connect.navigation.store"),
|
|
113
|
-
value:
|
|
117
|
+
value: f["$connect-STORE"]
|
|
114
118
|
},
|
|
115
119
|
{
|
|
116
120
|
label: e("connect.navigation.transaction"),
|
|
117
|
-
value:
|
|
121
|
+
value: f["$connect-TRANSACTION"]
|
|
118
122
|
},
|
|
119
123
|
{
|
|
120
124
|
label: e("connect.navigation.marketingMaterials"),
|
|
121
|
-
value:
|
|
125
|
+
value: f["$connect-MARKETING"]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
label: e("connect.navigation.auditLogs"),
|
|
129
|
+
value: f["$connect-AUDIT_LOGS"]
|
|
122
130
|
},
|
|
123
131
|
{
|
|
124
132
|
label: e("connect.navigation.review"),
|
|
125
|
-
value:
|
|
133
|
+
value: f["$connect-REVIEW"]
|
|
126
134
|
},
|
|
127
135
|
{
|
|
128
136
|
label: e("connect.navigation.goals"),
|
|
129
|
-
value:
|
|
130
|
-
badge: () => i.goalsRemaining > 0 ? U(
|
|
137
|
+
value: f["$connect-GOALS"],
|
|
138
|
+
badge: () => i.goalsRemaining > 0 ? U(W.FmBadge, {
|
|
131
139
|
variant: "numeric",
|
|
132
140
|
inline: !0,
|
|
133
141
|
value: i.goalsRemaining
|
|
@@ -135,47 +143,47 @@ const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class
|
|
|
135
143
|
},
|
|
136
144
|
{
|
|
137
145
|
label: e("connect.navigation.setting"),
|
|
138
|
-
value:
|
|
146
|
+
value: f["$connect-SETTING"]
|
|
139
147
|
},
|
|
140
148
|
{
|
|
141
149
|
label: e("connect.navigation.bin"),
|
|
142
|
-
value:
|
|
150
|
+
value: f["$connect-BIN"]
|
|
143
151
|
}
|
|
144
|
-
], c =
|
|
152
|
+
], c = G(
|
|
145
153
|
() => o.filter(
|
|
146
|
-
(
|
|
154
|
+
(p) => (p.value !== f["$connect-WHATSAPP"] || r() === "on") && (p.value !== f["$connect-UPSELLING"] || Tn() !== void 0)
|
|
147
155
|
)
|
|
148
|
-
), a = yt(), l = wt(), d = o.reduce((
|
|
149
|
-
const
|
|
150
|
-
return console.log(`[MF] Timezone set to: ${Xe[
|
|
156
|
+
), a = yt(), l = wt(), d = o.reduce((p, w) => [...(w.children ?? []).map((h) => h.value), ...p, w.value], []), m = ge(), v = G(() => {
|
|
157
|
+
const p = m.currentCountry.value || "MY";
|
|
158
|
+
return console.log(`[MF] Timezone set to: ${Xe[p]}`), Xe[p];
|
|
151
159
|
});
|
|
152
160
|
ie(
|
|
153
161
|
// Watch `route.matched`, not `route`: `useRoute()` returns a reactive object
|
|
154
162
|
// whose identity never changes, so watching it directly fired once via
|
|
155
163
|
// `immediate` and the highlight then stayed on whatever page loaded first.
|
|
156
164
|
() => l.matched,
|
|
157
|
-
(
|
|
158
|
-
const h =
|
|
165
|
+
(p) => {
|
|
166
|
+
const h = p.map((_) => _.name).reverse().find((_) => d.includes(_));
|
|
159
167
|
h && (s.value = h);
|
|
160
168
|
},
|
|
161
169
|
{ immediate: !0 }
|
|
162
170
|
), ie(
|
|
163
171
|
[() => {
|
|
164
|
-
var
|
|
165
|
-
return (
|
|
172
|
+
var p;
|
|
173
|
+
return (p = m.currentBusiness.value) == null ? void 0 : p._id;
|
|
166
174
|
}, () => l.name, t],
|
|
167
|
-
([
|
|
168
|
-
|
|
175
|
+
([p]) => {
|
|
176
|
+
p && i.read(t.value, p);
|
|
169
177
|
},
|
|
170
178
|
{ immediate: !0 }
|
|
171
179
|
);
|
|
172
|
-
async function y(
|
|
173
|
-
await a.push({ name:
|
|
180
|
+
async function y(p) {
|
|
181
|
+
await a.push({ name: p });
|
|
174
182
|
}
|
|
175
|
-
return (
|
|
183
|
+
return (p, w) => {
|
|
176
184
|
var _;
|
|
177
185
|
const h = ee("FmCollapsibleTabs");
|
|
178
|
-
return
|
|
186
|
+
return j(), me("div", $n, [
|
|
179
187
|
R(h, {
|
|
180
188
|
class: "border-fm-color-neutral-gray-100 border-r px-4",
|
|
181
189
|
"model-value": (_ = g(s)) == null ? void 0 : _.toString(),
|
|
@@ -183,27 +191,27 @@ const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class
|
|
|
183
191
|
"onUpdate:modelValue": y
|
|
184
192
|
}, null, 8, ["model-value", "items"]),
|
|
185
193
|
I("div", Hn, [
|
|
186
|
-
I("div", null, "Timezone: " +
|
|
187
|
-
I("div", null, "(UTC" +
|
|
194
|
+
I("div", null, "Timezone: " + A(g(v).split("/")[1].replace("_", " ")), 1),
|
|
195
|
+
I("div", null, "(UTC" + A(g(yn).tz(g(v)).format("Z")) + ")", 1)
|
|
188
196
|
])
|
|
189
197
|
]);
|
|
190
198
|
};
|
|
191
199
|
}
|
|
192
200
|
}), St = "feedme_connect_marketing_promo_hidden";
|
|
193
|
-
function
|
|
201
|
+
function jn() {
|
|
194
202
|
try {
|
|
195
203
|
return localStorage.getItem(St) !== null;
|
|
196
204
|
} catch {
|
|
197
205
|
return !1;
|
|
198
206
|
}
|
|
199
207
|
}
|
|
200
|
-
function
|
|
208
|
+
function Gn() {
|
|
201
209
|
try {
|
|
202
210
|
localStorage.setItem(St, (/* @__PURE__ */ new Date()).toISOString());
|
|
203
211
|
} catch {
|
|
204
212
|
}
|
|
205
213
|
}
|
|
206
|
-
const
|
|
214
|
+
const Bn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, qn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, Kn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, Jn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Yn = { class: "flex flex-col gap-24 pb-8" }, Xn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Qn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Zn = { class: "fm-typo-en-body-lg-600" }, ei = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ti = { class: "shrink-0" }, ni = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ii = { class: "flex w-full flex-col gap-12 px-[16px]" }, ri = { class: "flex flex-wrap items-center gap-12" }, si = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, oi = /* @__PURE__ */ xe({
|
|
207
215
|
__name: "AiMarketingPromoDialog",
|
|
208
216
|
setup(n) {
|
|
209
217
|
let e = !1;
|
|
@@ -211,9 +219,9 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
|
|
|
211
219
|
{ key: "completeContent", icon: "layers" },
|
|
212
220
|
{ key: "realContext", icon: "storefront" },
|
|
213
221
|
{ key: "socialFormat", icon: "aspect_ratio" }
|
|
214
|
-
], a =
|
|
215
|
-
var
|
|
216
|
-
const y = ((
|
|
222
|
+
], a = G(() => {
|
|
223
|
+
var p;
|
|
224
|
+
const y = ((p = r.value) == null ? void 0 : p.permissions) ?? [];
|
|
217
225
|
return kn(
|
|
218
226
|
[
|
|
219
227
|
{
|
|
@@ -223,45 +231,45 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
|
|
|
223
231
|
],
|
|
224
232
|
y
|
|
225
233
|
).granted;
|
|
226
|
-
}), l =
|
|
234
|
+
}), l = G(
|
|
227
235
|
() => s.value === "MY" && a.value
|
|
228
236
|
);
|
|
229
237
|
let d = !1;
|
|
230
238
|
ie(
|
|
231
239
|
l,
|
|
232
240
|
(y) => {
|
|
233
|
-
d || !y || (d = !0, !(
|
|
241
|
+
d || !y || (d = !0, !(jn() || e) && (e = !0, o.value = !0));
|
|
234
242
|
},
|
|
235
243
|
{ immediate: !0 }
|
|
236
244
|
);
|
|
237
245
|
async function m() {
|
|
238
|
-
o.value = !1, await i.push({ name:
|
|
246
|
+
o.value = !1, await i.push({ name: f["$connect-MARKETING"] });
|
|
239
247
|
}
|
|
240
248
|
function v() {
|
|
241
|
-
|
|
249
|
+
Gn(), o.value = !1;
|
|
242
250
|
}
|
|
243
|
-
return (y,
|
|
244
|
-
const w = ee("FmIcon"), h = ee("FmCard"), _ = ee("FmButton"),
|
|
245
|
-
return
|
|
251
|
+
return (y, p) => {
|
|
252
|
+
const w = ee("FmIcon"), h = ee("FmCard"), _ = ee("FmButton"), E = ee("FmDialog");
|
|
253
|
+
return j(), Oe(E, {
|
|
246
254
|
modelValue: o.value,
|
|
247
|
-
"onUpdate:modelValue":
|
|
255
|
+
"onUpdate:modelValue": p[0] || (p[0] = (T) => o.value = T),
|
|
248
256
|
"min-width": "min(500px, calc(100% - 48px))",
|
|
249
257
|
"max-width": "min(860px, calc(100% - 48px))",
|
|
250
258
|
"max-height": "90vh",
|
|
251
259
|
"dismiss-away": ""
|
|
252
260
|
}, {
|
|
253
261
|
"dialog-header": Z(() => [
|
|
254
|
-
I("div",
|
|
262
|
+
I("div", Bn, [
|
|
255
263
|
I("div", zn, [
|
|
256
264
|
R(w, {
|
|
257
265
|
name: "auto_awesome",
|
|
258
266
|
size: "sm",
|
|
259
267
|
color: "primary"
|
|
260
268
|
}),
|
|
261
|
-
I("span", qn,
|
|
269
|
+
I("span", qn, A(g(t)("connect.marketing.whatsNew.badge")), 1)
|
|
262
270
|
]),
|
|
263
|
-
I("h1", Kn,
|
|
264
|
-
I("p", Jn,
|
|
271
|
+
I("h1", Kn, A(g(t)("connect.marketing.whatsNew.title")), 1),
|
|
272
|
+
I("p", Jn, A(g(t)("connect.marketing.whatsNew.subtitle")), 1)
|
|
265
273
|
])
|
|
266
274
|
]),
|
|
267
275
|
"dialog-footer": Z(() => [
|
|
@@ -281,13 +289,13 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
|
|
|
281
289
|
onClick: v
|
|
282
290
|
}, null, 8, ["label"])
|
|
283
291
|
]),
|
|
284
|
-
I("div", si,
|
|
292
|
+
I("div", si, A(g(t)("connect.marketing.whatsNew.footnote")), 1)
|
|
285
293
|
])
|
|
286
294
|
]),
|
|
287
295
|
default: Z(() => [
|
|
288
296
|
I("div", Yn, [
|
|
289
297
|
I("div", Xn, [
|
|
290
|
-
(
|
|
298
|
+
(j(), me(It, null, ln(c, (T) => R(h, {
|
|
291
299
|
key: T.key,
|
|
292
300
|
variant: "outlined",
|
|
293
301
|
class: "!h-full flex flex-col gap-8 p-16"
|
|
@@ -300,8 +308,8 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
|
|
|
300
308
|
color: "primary"
|
|
301
309
|
}, null, 8, ["name"])
|
|
302
310
|
]),
|
|
303
|
-
I("div", Zn,
|
|
304
|
-
I("div", ei,
|
|
311
|
+
I("div", Zn, A(g(t)(`connect.marketing.whatsNew.benefits.${T.key}.title`)), 1),
|
|
312
|
+
I("div", ei, A(g(t)(
|
|
305
313
|
`connect.marketing.whatsNew.benefits.${T.key}.description`
|
|
306
314
|
)), 1)
|
|
307
315
|
]),
|
|
@@ -320,7 +328,7 @@ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xx
|
|
|
320
328
|
color: "primary"
|
|
321
329
|
})
|
|
322
330
|
]),
|
|
323
|
-
I("p", ni,
|
|
331
|
+
I("p", ni, A(g(t)("connect.marketing.whatsNew.callout")), 1)
|
|
324
332
|
]),
|
|
325
333
|
_: 1
|
|
326
334
|
})
|
|
@@ -354,7 +362,7 @@ function Rt() {
|
|
|
354
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."
|
|
355
363
|
};
|
|
356
364
|
}
|
|
357
|
-
const li = Rt,
|
|
365
|
+
const li = Rt, At = new Fe("auth", "Firebase", Rt());
|
|
358
366
|
/**
|
|
359
367
|
* @license
|
|
360
368
|
* Copyright 2020 Google LLC
|
|
@@ -371,12 +379,12 @@ const li = Rt, Pt = new Fe("auth", "Firebase", Rt());
|
|
|
371
379
|
* See the License for the specific language governing permissions and
|
|
372
380
|
* limitations under the License.
|
|
373
381
|
*/
|
|
374
|
-
const _e = new
|
|
382
|
+
const _e = new bn("@firebase/auth");
|
|
375
383
|
function ui(n, ...e) {
|
|
376
|
-
_e.logLevel <=
|
|
384
|
+
_e.logLevel <= bt.WARN && _e.warn(`Auth (${se}): ${n}`, ...e);
|
|
377
385
|
}
|
|
378
386
|
function de(n, ...e) {
|
|
379
|
-
_e.logLevel <=
|
|
387
|
+
_e.logLevel <= bt.ERROR && _e.error(`Auth (${se}): ${n}`, ...e);
|
|
380
388
|
}
|
|
381
389
|
/**
|
|
382
390
|
* @license
|
|
@@ -397,24 +405,24 @@ function de(n, ...e) {
|
|
|
397
405
|
function L(n, ...e) {
|
|
398
406
|
throw He(n, ...e);
|
|
399
407
|
}
|
|
400
|
-
function
|
|
408
|
+
function b(n, ...e) {
|
|
401
409
|
return He(n, ...e);
|
|
402
410
|
}
|
|
403
|
-
function
|
|
411
|
+
function Pt(n, e, t) {
|
|
404
412
|
const i = Object.assign(Object.assign({}, li()), { [e]: t });
|
|
405
413
|
return new Fe("auth", "Firebase", i).create(e, {
|
|
406
414
|
appName: n.name
|
|
407
415
|
});
|
|
408
416
|
}
|
|
409
417
|
function H(n) {
|
|
410
|
-
return
|
|
418
|
+
return Pt(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
|
|
411
419
|
}
|
|
412
420
|
function He(n, ...e) {
|
|
413
421
|
if (typeof n != "string") {
|
|
414
422
|
const t = e[0], i = [...e.slice(1)];
|
|
415
423
|
return i[0] && (i[0].appName = n.name), n._errorFactory.create(t, ...i);
|
|
416
424
|
}
|
|
417
|
-
return
|
|
425
|
+
return At.create(n, ...e);
|
|
418
426
|
}
|
|
419
427
|
function u(n, e, ...t) {
|
|
420
428
|
if (!n)
|
|
@@ -476,7 +484,7 @@ function hi() {
|
|
|
476
484
|
// navigator.onLine behavior unless cordova-plugin-network-information is
|
|
477
485
|
// installed which overwrites the native navigator.onLine value and
|
|
478
486
|
// defines navigator.connection.
|
|
479
|
-
(di() ||
|
|
487
|
+
(di() || An() || "connection" in navigator) ? navigator.onLine : !0;
|
|
480
488
|
}
|
|
481
489
|
function fi() {
|
|
482
490
|
if (typeof navigator > "u")
|
|
@@ -530,7 +538,7 @@ class ae {
|
|
|
530
538
|
* See the License for the specific language governing permissions and
|
|
531
539
|
* limitations under the License.
|
|
532
540
|
*/
|
|
533
|
-
function
|
|
541
|
+
function We(n, e) {
|
|
534
542
|
M(n.emulator, "Emulator should always be set here");
|
|
535
543
|
const { url: t } = n.emulator;
|
|
536
544
|
return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
|
|
@@ -744,7 +752,7 @@ async function Nt(n, e, t) {
|
|
|
744
752
|
throw ue(n, "user-disabled", o);
|
|
745
753
|
const d = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
|
|
746
754
|
if (l)
|
|
747
|
-
throw
|
|
755
|
+
throw Pt(n, d, l);
|
|
748
756
|
L(n, d);
|
|
749
757
|
}
|
|
750
758
|
} catch (r) {
|
|
@@ -761,12 +769,12 @@ async function Ot(n, e, t, i, r = {}) {
|
|
|
761
769
|
}
|
|
762
770
|
function Lt(n, e, t, i) {
|
|
763
771
|
const r = `${e}${t}?${i}`;
|
|
764
|
-
return n.config.emulator ?
|
|
772
|
+
return n.config.emulator ? We(n.config, r) : `${n.config.apiScheme}://${r}`;
|
|
765
773
|
}
|
|
766
774
|
class gi {
|
|
767
775
|
constructor(e) {
|
|
768
776
|
this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
|
|
769
|
-
this.timer = setTimeout(() => i(
|
|
777
|
+
this.timer = setTimeout(() => i(b(
|
|
770
778
|
this.auth,
|
|
771
779
|
"network-request-failed"
|
|
772
780
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -782,7 +790,7 @@ function ue(n, e, t) {
|
|
|
782
790
|
appName: n.name
|
|
783
791
|
};
|
|
784
792
|
t.email && (i.email = t.email), t.phoneNumber && (i.phoneNumber = t.phoneNumber);
|
|
785
|
-
const r =
|
|
793
|
+
const r = b(n, e, i);
|
|
786
794
|
return r.customData._tokenResponse = t, r;
|
|
787
795
|
}
|
|
788
796
|
/**
|
|
@@ -833,7 +841,7 @@ function ne(n) {
|
|
|
833
841
|
}
|
|
834
842
|
}
|
|
835
843
|
async function vi(n, e = !1) {
|
|
836
|
-
const t = X(n), i = await t.getIdToken(e), r =
|
|
844
|
+
const t = X(n), i = await t.getIdToken(e), r = je(i);
|
|
837
845
|
u(
|
|
838
846
|
r && r.exp && r.auth_time && r.iat,
|
|
839
847
|
t.auth,
|
|
@@ -854,7 +862,7 @@ async function vi(n, e = !1) {
|
|
|
854
862
|
function Ce(n) {
|
|
855
863
|
return Number(n) * 1e3;
|
|
856
864
|
}
|
|
857
|
-
function
|
|
865
|
+
function je(n) {
|
|
858
866
|
const [e, t, i] = n.split(".");
|
|
859
867
|
if (e === void 0 || t === void 0 || i === void 0)
|
|
860
868
|
return de("JWT malformed, contained fewer than 3 sections"), null;
|
|
@@ -866,7 +874,7 @@ function We(n) {
|
|
|
866
874
|
}
|
|
867
875
|
}
|
|
868
876
|
function it(n) {
|
|
869
|
-
const e =
|
|
877
|
+
const e = je(n);
|
|
870
878
|
return u(
|
|
871
879
|
e,
|
|
872
880
|
"internal-error"
|
|
@@ -1102,7 +1110,7 @@ async function ki(n, e) {
|
|
|
1102
1110
|
refreshToken: t.refresh_token
|
|
1103
1111
|
};
|
|
1104
1112
|
}
|
|
1105
|
-
async function
|
|
1113
|
+
async function Ei(n, e) {
|
|
1106
1114
|
return Q(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
|
|
1107
1115
|
}
|
|
1108
1116
|
/**
|
|
@@ -1272,7 +1280,7 @@ class N {
|
|
|
1272
1280
|
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), i = !0), t && await ve(this), await this.auth._persistUserIfCurrent(this), i && this.auth._notifyListenersIfCurrent(this);
|
|
1273
1281
|
}
|
|
1274
1282
|
async delete() {
|
|
1275
|
-
if (
|
|
1283
|
+
if (P(this.auth.app))
|
|
1276
1284
|
return Promise.reject(H(this.auth));
|
|
1277
1285
|
const e = await this.getIdToken();
|
|
1278
1286
|
return await re(this, _i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
@@ -1303,7 +1311,7 @@ class N {
|
|
|
1303
1311
|
}
|
|
1304
1312
|
static _fromJSON(e, t) {
|
|
1305
1313
|
var i, r, s, o, c, a, l, d;
|
|
1306
|
-
const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, v = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0,
|
|
1314
|
+
const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, v = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, p = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, w = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, h = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, _ = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, E = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: T, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
|
|
1307
1315
|
u(
|
|
1308
1316
|
T && Ye,
|
|
1309
1317
|
e,
|
|
@@ -1326,22 +1334,22 @@ class N {
|
|
|
1326
1334
|
e,
|
|
1327
1335
|
"internal-error"
|
|
1328
1336
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1329
|
-
), D(y, e.name), D(
|
|
1330
|
-
const
|
|
1337
|
+
), D(y, e.name), D(p, e.name), D(w, e.name), D(h, e.name), D(_, e.name), D(E, e.name);
|
|
1338
|
+
const Ae = new N({
|
|
1331
1339
|
uid: T,
|
|
1332
1340
|
auth: e,
|
|
1333
1341
|
email: v,
|
|
1334
1342
|
emailVerified: Ke,
|
|
1335
1343
|
displayName: m,
|
|
1336
1344
|
isAnonymous: Je,
|
|
1337
|
-
photoURL:
|
|
1345
|
+
photoURL: p,
|
|
1338
1346
|
phoneNumber: y,
|
|
1339
1347
|
tenantId: w,
|
|
1340
1348
|
stsTokenManager: on,
|
|
1341
1349
|
createdAt: _,
|
|
1342
|
-
lastLoginAt:
|
|
1350
|
+
lastLoginAt: E
|
|
1343
1351
|
});
|
|
1344
|
-
return Re && Array.isArray(Re) && (
|
|
1352
|
+
return Re && Array.isArray(Re) && (Ae.providerData = Re.map((an) => Object.assign({}, an))), h && (Ae._redirectEventId = h), Ae;
|
|
1345
1353
|
}
|
|
1346
1354
|
/**
|
|
1347
1355
|
* Initialize a User from an idToken server response
|
|
@@ -1565,9 +1573,9 @@ function ot(n) {
|
|
|
1565
1573
|
return "Silk";
|
|
1566
1574
|
if (Ht(e))
|
|
1567
1575
|
return "Blackberry";
|
|
1568
|
-
if (
|
|
1576
|
+
if (Wt(e))
|
|
1569
1577
|
return "Webos";
|
|
1570
|
-
if (
|
|
1578
|
+
if (Ge(e))
|
|
1571
1579
|
return "Safari";
|
|
1572
1580
|
if ((e.includes("chrome/") || Ft(e)) && !e.includes("edge/"))
|
|
1573
1581
|
return "Chrome";
|
|
@@ -1583,7 +1591,7 @@ function ot(n) {
|
|
|
1583
1591
|
function xt(n = k()) {
|
|
1584
1592
|
return /firefox\//i.test(n);
|
|
1585
1593
|
}
|
|
1586
|
-
function
|
|
1594
|
+
function Ge(n = k()) {
|
|
1587
1595
|
const e = n.toLowerCase();
|
|
1588
1596
|
return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
|
|
1589
1597
|
}
|
|
@@ -1599,21 +1607,21 @@ function $t(n = k()) {
|
|
|
1599
1607
|
function Ht(n = k()) {
|
|
1600
1608
|
return /blackberry/i.test(n);
|
|
1601
1609
|
}
|
|
1602
|
-
function
|
|
1610
|
+
function Wt(n = k()) {
|
|
1603
1611
|
return /webos/i.test(n);
|
|
1604
1612
|
}
|
|
1605
1613
|
function ke(n = k()) {
|
|
1606
1614
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
|
1607
1615
|
}
|
|
1608
|
-
function
|
|
1616
|
+
function bi(n = k()) {
|
|
1609
1617
|
var e;
|
|
1610
1618
|
return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
|
1611
1619
|
}
|
|
1612
1620
|
function Si() {
|
|
1613
1621
|
return Mn() && document.documentMode === 10;
|
|
1614
1622
|
}
|
|
1615
|
-
function
|
|
1616
|
-
return ke(n) || $t(n) ||
|
|
1623
|
+
function jt(n = k()) {
|
|
1624
|
+
return ke(n) || $t(n) || Wt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
|
|
1617
1625
|
}
|
|
1618
1626
|
function Ri() {
|
|
1619
1627
|
try {
|
|
@@ -1638,7 +1646,7 @@ function Ri() {
|
|
|
1638
1646
|
* See the License for the specific language governing permissions and
|
|
1639
1647
|
* limitations under the License.
|
|
1640
1648
|
*/
|
|
1641
|
-
function
|
|
1649
|
+
function Gt(n, e = []) {
|
|
1642
1650
|
let t;
|
|
1643
1651
|
switch (n) {
|
|
1644
1652
|
case "Browser":
|
|
@@ -1669,7 +1677,7 @@ function Bt(n, e = []) {
|
|
|
1669
1677
|
* See the License for the specific language governing permissions and
|
|
1670
1678
|
* limitations under the License.
|
|
1671
1679
|
*/
|
|
1672
|
-
class
|
|
1680
|
+
class Ai {
|
|
1673
1681
|
constructor(e) {
|
|
1674
1682
|
this.auth = e, this.queue = [];
|
|
1675
1683
|
}
|
|
@@ -1724,7 +1732,7 @@ class Pi {
|
|
|
1724
1732
|
* See the License for the specific language governing permissions and
|
|
1725
1733
|
* limitations under the License.
|
|
1726
1734
|
*/
|
|
1727
|
-
async function
|
|
1735
|
+
async function Pi(n, e = {}) {
|
|
1728
1736
|
return Q(n, "GET", "/v2/passwordPolicy", Te(n, e));
|
|
1729
1737
|
}
|
|
1730
1738
|
/**
|
|
@@ -1833,7 +1841,7 @@ class Ni {
|
|
|
1833
1841
|
*/
|
|
1834
1842
|
class Oi {
|
|
1835
1843
|
constructor(e, t, i, r) {
|
|
1836
|
-
this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new
|
|
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 Ai(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;
|
|
1837
1845
|
}
|
|
1838
1846
|
_initializeWithPersistence(e, t) {
|
|
1839
1847
|
return t && (this._popupRedirectResolver = O(t)), this._initializationPromise = this.queue(async () => {
|
|
@@ -1877,7 +1885,7 @@ class Oi {
|
|
|
1877
1885
|
}
|
|
1878
1886
|
async initializeCurrentUser(e) {
|
|
1879
1887
|
var t;
|
|
1880
|
-
if (
|
|
1888
|
+
if (P(this.app)) {
|
|
1881
1889
|
const o = this.app.settings.authIdToken;
|
|
1882
1890
|
return o ? new Promise((c) => {
|
|
1883
1891
|
setTimeout(() => this.initializeCurrentUserFromIdToken(o).then(c, c));
|
|
@@ -1933,7 +1941,7 @@ class Oi {
|
|
|
1933
1941
|
this._deleted = !0;
|
|
1934
1942
|
}
|
|
1935
1943
|
async updateCurrentUser(e) {
|
|
1936
|
-
if (
|
|
1944
|
+
if (P(this.app))
|
|
1937
1945
|
return Promise.reject(H(this));
|
|
1938
1946
|
const t = e ? X(e) : null;
|
|
1939
1947
|
return t && u(
|
|
@@ -1955,14 +1963,14 @@ class Oi {
|
|
|
1955
1963
|
});
|
|
1956
1964
|
}
|
|
1957
1965
|
async signOut() {
|
|
1958
|
-
return
|
|
1966
|
+
return P(this.app) ? Promise.reject(H(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
|
|
1959
1967
|
null,
|
|
1960
1968
|
/* skipBeforeStateCallbacks */
|
|
1961
1969
|
!0
|
|
1962
1970
|
));
|
|
1963
1971
|
}
|
|
1964
1972
|
setPersistence(e) {
|
|
1965
|
-
return
|
|
1973
|
+
return P(this.app) ? Promise.reject(H(this)) : this.queue(async () => {
|
|
1966
1974
|
await this.assertedPersistence.setPersistence(O(e));
|
|
1967
1975
|
});
|
|
1968
1976
|
}
|
|
@@ -1978,7 +1986,7 @@ class Oi {
|
|
|
1978
1986
|
return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
|
|
1979
1987
|
}
|
|
1980
1988
|
async _updatePasswordPolicy() {
|
|
1981
|
-
const e = await
|
|
1989
|
+
const e = await Pi(this), t = new Ni(e);
|
|
1982
1990
|
this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
|
|
1983
1991
|
}
|
|
1984
1992
|
_getPersistence() {
|
|
@@ -2018,7 +2026,7 @@ class Oi {
|
|
|
2018
2026
|
token: e,
|
|
2019
2027
|
idToken: t
|
|
2020
2028
|
};
|
|
2021
|
-
this.tenantId != null && (i.tenantId = this.tenantId), await
|
|
2029
|
+
this.tenantId != null && (i.tenantId = this.tenantId), await Ei(this, i);
|
|
2022
2030
|
}
|
|
2023
2031
|
}
|
|
2024
2032
|
toJSON() {
|
|
@@ -2131,7 +2139,7 @@ class Oi {
|
|
|
2131
2139
|
), this.persistenceManager;
|
|
2132
2140
|
}
|
|
2133
2141
|
_logFramework(e) {
|
|
2134
|
-
!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 = Gt(this.config.clientPlatform, this._getFrameworks()));
|
|
2135
2143
|
}
|
|
2136
2144
|
_getFrameworks() {
|
|
2137
2145
|
return this.frameworks;
|
|
@@ -2164,12 +2172,12 @@ class Oi {
|
|
|
2164
2172
|
return t != null && t.error && ui(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
|
2165
2173
|
}
|
|
2166
2174
|
}
|
|
2167
|
-
function
|
|
2175
|
+
function Ee(n) {
|
|
2168
2176
|
return X(n);
|
|
2169
2177
|
}
|
|
2170
2178
|
class at {
|
|
2171
2179
|
constructor(e) {
|
|
2172
|
-
this.auth = e, this.observer = null, this.addObserver =
|
|
2180
|
+
this.auth = e, this.observer = null, this.addObserver = Pn((t) => this.observer = t);
|
|
2173
2181
|
}
|
|
2174
2182
|
get next() {
|
|
2175
2183
|
return u(
|
|
@@ -2196,7 +2204,7 @@ class at {
|
|
|
2196
2204
|
* See the License for the specific language governing permissions and
|
|
2197
2205
|
* limitations under the License.
|
|
2198
2206
|
*/
|
|
2199
|
-
let
|
|
2207
|
+
let Be = {
|
|
2200
2208
|
async loadJS() {
|
|
2201
2209
|
throw new Error("Unable to load external scripts");
|
|
2202
2210
|
},
|
|
@@ -2205,13 +2213,13 @@ let Ge = {
|
|
|
2205
2213
|
gapiScript: ""
|
|
2206
2214
|
};
|
|
2207
2215
|
function Li(n) {
|
|
2208
|
-
|
|
2216
|
+
Be = n;
|
|
2209
2217
|
}
|
|
2210
2218
|
function Mi(n) {
|
|
2211
|
-
return
|
|
2219
|
+
return Be.loadJS(n);
|
|
2212
2220
|
}
|
|
2213
2221
|
function Ui() {
|
|
2214
|
-
return
|
|
2222
|
+
return Be.gapiScript;
|
|
2215
2223
|
}
|
|
2216
2224
|
function Di(n) {
|
|
2217
2225
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
|
@@ -2233,7 +2241,7 @@ function Di(n) {
|
|
|
2233
2241
|
* limitations under the License.
|
|
2234
2242
|
*/
|
|
2235
2243
|
function xi(n, e) {
|
|
2236
|
-
const t =
|
|
2244
|
+
const t = Et(n, "auth");
|
|
2237
2245
|
if (t.isInitialized()) {
|
|
2238
2246
|
const r = t.getImmediate(), s = t.getOptions();
|
|
2239
2247
|
if (On(s, e ?? {}))
|
|
@@ -2251,7 +2259,7 @@ function Fi(n, e) {
|
|
|
2251
2259
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
|
|
2252
2260
|
}
|
|
2253
2261
|
function Vi(n, e, t) {
|
|
2254
|
-
const i =
|
|
2262
|
+
const i = Ee(n);
|
|
2255
2263
|
u(
|
|
2256
2264
|
i._canInitEmulator,
|
|
2257
2265
|
i,
|
|
@@ -2263,7 +2271,7 @@ function Vi(n, e, t) {
|
|
|
2263
2271
|
"invalid-emulator-scheme"
|
|
2264
2272
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
|
2265
2273
|
);
|
|
2266
|
-
const r = !1, s =
|
|
2274
|
+
const r = !1, s = Bt(e), { host: o, port: c } = $i(e), a = c === null ? "" : `:${c}`;
|
|
2267
2275
|
i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
|
|
2268
2276
|
host: o,
|
|
2269
2277
|
port: c,
|
|
@@ -2271,12 +2279,12 @@ function Vi(n, e, t) {
|
|
|
2271
2279
|
options: Object.freeze({ disableWarnings: r })
|
|
2272
2280
|
}), Hi();
|
|
2273
2281
|
}
|
|
2274
|
-
function
|
|
2282
|
+
function Bt(n) {
|
|
2275
2283
|
const e = n.indexOf(":");
|
|
2276
2284
|
return e < 0 ? "" : n.substr(0, e + 1);
|
|
2277
2285
|
}
|
|
2278
2286
|
function $i(n) {
|
|
2279
|
-
const e =
|
|
2287
|
+
const e = Bt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
|
2280
2288
|
if (!t)
|
|
2281
2289
|
return { host: "", port: null };
|
|
2282
2290
|
const i = t[2].split("@").pop() || "", r = /^(\[[^\]]+\])(:|$)/.exec(i);
|
|
@@ -2378,14 +2386,14 @@ async function Y(n, e) {
|
|
|
2378
2386
|
* See the License for the specific language governing permissions and
|
|
2379
2387
|
* limitations under the License.
|
|
2380
2388
|
*/
|
|
2381
|
-
const
|
|
2382
|
-
class
|
|
2389
|
+
const Wi = "http://localhost";
|
|
2390
|
+
class B extends zt {
|
|
2383
2391
|
constructor() {
|
|
2384
2392
|
super(...arguments), this.pendingToken = null;
|
|
2385
2393
|
}
|
|
2386
2394
|
/** @internal */
|
|
2387
2395
|
static _fromParams(e) {
|
|
2388
|
-
const t = new
|
|
2396
|
+
const t = new B(e.providerId, e.signInMethod);
|
|
2389
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) : L(
|
|
2390
2398
|
"argument-error"
|
|
2391
2399
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
@@ -2416,7 +2424,7 @@ class G extends zt {
|
|
|
2416
2424
|
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = $e(t, ["providerId", "signInMethod"]);
|
|
2417
2425
|
if (!i || !r)
|
|
2418
2426
|
return null;
|
|
2419
|
-
const o = new
|
|
2427
|
+
const o = new B(i, r);
|
|
2420
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;
|
|
2421
2429
|
}
|
|
2422
2430
|
/** @internal */
|
|
@@ -2436,7 +2444,7 @@ class G extends zt {
|
|
|
2436
2444
|
}
|
|
2437
2445
|
buildRequest() {
|
|
2438
2446
|
const e = {
|
|
2439
|
-
requestUri:
|
|
2447
|
+
requestUri: Wi,
|
|
2440
2448
|
returnSecureToken: !0
|
|
2441
2449
|
};
|
|
2442
2450
|
if (this.pendingToken)
|
|
@@ -2572,7 +2580,7 @@ class x extends ce {
|
|
|
2572
2580
|
* @param accessToken - Facebook access token.
|
|
2573
2581
|
*/
|
|
2574
2582
|
static credential(e) {
|
|
2575
|
-
return
|
|
2583
|
+
return B._fromParams({
|
|
2576
2584
|
providerId: x.PROVIDER_ID,
|
|
2577
2585
|
signInMethod: x.FACEBOOK_SIGN_IN_METHOD,
|
|
2578
2586
|
accessToken: e
|
|
@@ -2644,7 +2652,7 @@ class F extends ce {
|
|
|
2644
2652
|
* @param accessToken - Google access token.
|
|
2645
2653
|
*/
|
|
2646
2654
|
static credential(e, t) {
|
|
2647
|
-
return
|
|
2655
|
+
return B._fromParams({
|
|
2648
2656
|
providerId: F.PROVIDER_ID,
|
|
2649
2657
|
signInMethod: F.GOOGLE_SIGN_IN_METHOD,
|
|
2650
2658
|
idToken: e,
|
|
@@ -2712,7 +2720,7 @@ class V extends ce {
|
|
|
2712
2720
|
* @param accessToken - Github access token.
|
|
2713
2721
|
*/
|
|
2714
2722
|
static credential(e) {
|
|
2715
|
-
return
|
|
2723
|
+
return B._fromParams({
|
|
2716
2724
|
providerId: V.PROVIDER_ID,
|
|
2717
2725
|
signInMethod: V.GITHUB_SIGN_IN_METHOD,
|
|
2718
2726
|
accessToken: e
|
|
@@ -2777,7 +2785,7 @@ class $ extends ce {
|
|
|
2777
2785
|
* @param secret - Twitter secret.
|
|
2778
2786
|
*/
|
|
2779
2787
|
static credential(e, t) {
|
|
2780
|
-
return
|
|
2788
|
+
return B._fromParams({
|
|
2781
2789
|
providerId: $.PROVIDER_ID,
|
|
2782
2790
|
signInMethod: $.TWITTER_SIGN_IN_METHOD,
|
|
2783
2791
|
oauthToken: e,
|
|
@@ -2898,7 +2906,7 @@ function Kt(n, e, t, i) {
|
|
|
2898
2906
|
throw s.code === "auth/multi-factor-auth-required" ? Ie._fromErrorAndOperation(n, s, e, i) : s;
|
|
2899
2907
|
});
|
|
2900
2908
|
}
|
|
2901
|
-
async function
|
|
2909
|
+
async function ji(n, e, t = !1) {
|
|
2902
2910
|
const i = await re(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
|
|
2903
2911
|
return z._forOperation(n, "link", i);
|
|
2904
2912
|
}
|
|
@@ -2918,9 +2926,9 @@ async function Wi(n, e, t = !1) {
|
|
|
2918
2926
|
* See the License for the specific language governing permissions and
|
|
2919
2927
|
* limitations under the License.
|
|
2920
2928
|
*/
|
|
2921
|
-
async function
|
|
2929
|
+
async function Gi(n, e, t = !1) {
|
|
2922
2930
|
const { auth: i } = n;
|
|
2923
|
-
if (
|
|
2931
|
+
if (P(i.app))
|
|
2924
2932
|
return Promise.reject(H(i));
|
|
2925
2933
|
const r = "reauthenticate";
|
|
2926
2934
|
try {
|
|
@@ -2931,7 +2939,7 @@ async function Bi(n, e, t = !1) {
|
|
|
2931
2939
|
"internal-error"
|
|
2932
2940
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
2933
2941
|
);
|
|
2934
|
-
const o =
|
|
2942
|
+
const o = je(s.idToken);
|
|
2935
2943
|
u(
|
|
2936
2944
|
o,
|
|
2937
2945
|
i,
|
|
@@ -2969,8 +2977,8 @@ async function Bi(n, e, t = !1) {
|
|
|
2969
2977
|
* See the License for the specific language governing permissions and
|
|
2970
2978
|
* limitations under the License.
|
|
2971
2979
|
*/
|
|
2972
|
-
async function
|
|
2973
|
-
if (
|
|
2980
|
+
async function Bi(n, e, t = !1) {
|
|
2981
|
+
if (P(n.app))
|
|
2974
2982
|
return Promise.reject(H(n));
|
|
2975
2983
|
const i = "signIn", r = await Kt(n, i, e), s = await z._fromIdTokenResponse(n, i, r);
|
|
2976
2984
|
return t || await n._updateCurrentUser(s.user), s;
|
|
@@ -3011,9 +3019,9 @@ async function zi(n, e) {
|
|
|
3011
3019
|
* limitations under the License.
|
|
3012
3020
|
*/
|
|
3013
3021
|
async function qi(n, e) {
|
|
3014
|
-
if (
|
|
3022
|
+
if (P(n.app))
|
|
3015
3023
|
return Promise.reject(H(n));
|
|
3016
|
-
const t =
|
|
3024
|
+
const t = Ee(n), i = await zi(t, {
|
|
3017
3025
|
token: e,
|
|
3018
3026
|
returnSecureToken: !0
|
|
3019
3027
|
}), r = await z._fromIdTokenResponse(t, "signIn", i);
|
|
@@ -3085,7 +3093,7 @@ class Jt {
|
|
|
3085
3093
|
*/
|
|
3086
3094
|
function Yi() {
|
|
3087
3095
|
const n = k();
|
|
3088
|
-
return
|
|
3096
|
+
return Ge(n) || ke(n);
|
|
3089
3097
|
}
|
|
3090
3098
|
const Xi = 1e3, Qi = 10;
|
|
3091
3099
|
class Yt extends Jt {
|
|
@@ -3094,7 +3102,7 @@ class Yt extends Jt {
|
|
|
3094
3102
|
() => window.localStorage,
|
|
3095
3103
|
"LOCAL"
|
|
3096
3104
|
/* PersistenceType.LOCAL */
|
|
3097
|
-
), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Yi() && Ri(), this.fallbackToPolling =
|
|
3105
|
+
), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Yi() && Ri(), this.fallbackToPolling = jt(), this._shouldAllowMigration = !0;
|
|
3098
3106
|
}
|
|
3099
3107
|
forAllChangedKeys(e) {
|
|
3100
3108
|
for (const t of Object.keys(this.listeners)) {
|
|
@@ -3252,7 +3260,7 @@ function er(n) {
|
|
|
3252
3260
|
* See the License for the specific language governing permissions and
|
|
3253
3261
|
* limitations under the License.
|
|
3254
3262
|
*/
|
|
3255
|
-
class
|
|
3263
|
+
class be {
|
|
3256
3264
|
constructor(e) {
|
|
3257
3265
|
this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
|
|
3258
3266
|
}
|
|
@@ -3266,7 +3274,7 @@ class Ee {
|
|
|
3266
3274
|
const t = this.receivers.find((r) => r.isListeningto(e));
|
|
3267
3275
|
if (t)
|
|
3268
3276
|
return t;
|
|
3269
|
-
const i = new
|
|
3277
|
+
const i = new be(e);
|
|
3270
3278
|
return this.receivers.push(i), i;
|
|
3271
3279
|
}
|
|
3272
3280
|
isListeningto(e) {
|
|
@@ -3320,7 +3328,7 @@ class Ee {
|
|
|
3320
3328
|
this.handlersMap[e] && t && this.handlersMap[e].delete(t), (!t || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
|
|
3321
3329
|
}
|
|
3322
3330
|
}
|
|
3323
|
-
|
|
3331
|
+
be.receivers = [];
|
|
3324
3332
|
/**
|
|
3325
3333
|
* @license
|
|
3326
3334
|
* Copyright 2020 Google LLC
|
|
@@ -3601,7 +3609,7 @@ class nn {
|
|
|
3601
3609
|
* As the worker we should listen to events from the main window.
|
|
3602
3610
|
*/
|
|
3603
3611
|
async initializeReceiver() {
|
|
3604
|
-
this.receiver =
|
|
3612
|
+
this.receiver = be._getInstance(sr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
|
3605
3613
|
keyProcessed: (await this._poll()).includes(t.key)
|
|
3606
3614
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
|
3607
3615
|
"keyChanged"
|
|
@@ -3792,7 +3800,7 @@ class qe extends zt {
|
|
|
3792
3800
|
}
|
|
3793
3801
|
}
|
|
3794
3802
|
function fr(n) {
|
|
3795
|
-
return
|
|
3803
|
+
return Bi(n.auth, new qe(n), n.bypassAuthState);
|
|
3796
3804
|
}
|
|
3797
3805
|
function pr(n) {
|
|
3798
3806
|
const { auth: e, user: t } = n;
|
|
@@ -3801,7 +3809,7 @@ function pr(n) {
|
|
|
3801
3809
|
e,
|
|
3802
3810
|
"internal-error"
|
|
3803
3811
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3804
|
-
),
|
|
3812
|
+
), Gi(t, new qe(n), n.bypassAuthState);
|
|
3805
3813
|
}
|
|
3806
3814
|
async function mr(n) {
|
|
3807
3815
|
const { auth: e, user: t } = n;
|
|
@@ -3810,7 +3818,7 @@ async function mr(n) {
|
|
|
3810
3818
|
e,
|
|
3811
3819
|
"internal-error"
|
|
3812
3820
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3813
|
-
),
|
|
3821
|
+
), ji(t, new qe(n), n.bypassAuthState);
|
|
3814
3822
|
}
|
|
3815
3823
|
/**
|
|
3816
3824
|
* @license
|
|
@@ -3937,7 +3945,7 @@ class q extends rn {
|
|
|
3937
3945
|
), this.authWindow.associatedEvent = e, this.resolver._originValidation(this.auth).catch((t) => {
|
|
3938
3946
|
this.reject(t);
|
|
3939
3947
|
}), this.resolver._isIframeWebStorageSupported(this.auth, (t) => {
|
|
3940
|
-
t || this.reject(
|
|
3948
|
+
t || this.reject(b(
|
|
3941
3949
|
this.auth,
|
|
3942
3950
|
"web-storage-unsupported"
|
|
3943
3951
|
/* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
|
|
@@ -3949,7 +3957,7 @@ class q extends rn {
|
|
|
3949
3957
|
return ((e = this.authWindow) === null || e === void 0 ? void 0 : e.associatedEvent) || null;
|
|
3950
3958
|
}
|
|
3951
3959
|
cancel() {
|
|
3952
|
-
this.reject(
|
|
3960
|
+
this.reject(b(
|
|
3953
3961
|
this.auth,
|
|
3954
3962
|
"cancelled-popup-request"
|
|
3955
3963
|
/* AuthErrorCode.EXPIRED_POPUP_REQUEST */
|
|
@@ -3964,7 +3972,7 @@ class q extends rn {
|
|
|
3964
3972
|
if (!((i = (t = this.authWindow) === null || t === void 0 ? void 0 : t.window) === null || i === void 0) && i.closed) {
|
|
3965
3973
|
this.pollId = window.setTimeout(
|
|
3966
3974
|
() => {
|
|
3967
|
-
this.pollId = null, this.reject(
|
|
3975
|
+
this.pollId = null, this.reject(b(
|
|
3968
3976
|
this.auth,
|
|
3969
3977
|
"popup-closed-by-user"
|
|
3970
3978
|
/* AuthErrorCode.POPUP_CLOSED_BY_USER */
|
|
@@ -4061,9 +4069,9 @@ function Tr(n) {
|
|
|
4061
4069
|
return he(_r, n.config.apiKey, n.name);
|
|
4062
4070
|
}
|
|
4063
4071
|
async function kr(n, e, t = !1) {
|
|
4064
|
-
if (
|
|
4072
|
+
if (P(n.app))
|
|
4065
4073
|
return Promise.reject(H(n));
|
|
4066
|
-
const i =
|
|
4074
|
+
const i = Ee(n), r = hr(i, e), o = await new vr(i, r, t).execute();
|
|
4067
4075
|
return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
|
|
4068
4076
|
}
|
|
4069
4077
|
/**
|
|
@@ -4082,8 +4090,8 @@ async function kr(n, e, t = !1) {
|
|
|
4082
4090
|
* See the License for the specific language governing permissions and
|
|
4083
4091
|
* limitations under the License.
|
|
4084
4092
|
*/
|
|
4085
|
-
const
|
|
4086
|
-
class
|
|
4093
|
+
const Er = 10 * 60 * 1e3;
|
|
4094
|
+
class br {
|
|
4087
4095
|
constructor(e) {
|
|
4088
4096
|
this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
|
|
4089
4097
|
}
|
|
@@ -4105,7 +4113,7 @@ class Er {
|
|
|
4105
4113
|
var i;
|
|
4106
4114
|
if (e.error && !sn(e)) {
|
|
4107
4115
|
const r = ((i = e.error.code) === null || i === void 0 ? void 0 : i.split("auth/")[1]) || "internal-error";
|
|
4108
|
-
t.onError(
|
|
4116
|
+
t.onError(b(this.auth, r));
|
|
4109
4117
|
} else
|
|
4110
4118
|
t.onAuthEvent(e);
|
|
4111
4119
|
}
|
|
@@ -4114,7 +4122,7 @@ class Er {
|
|
|
4114
4122
|
return t.filter.includes(e.type) && i;
|
|
4115
4123
|
}
|
|
4116
4124
|
hasEventBeenHandled(e) {
|
|
4117
|
-
return Date.now() - this.lastProcessedEventTime >=
|
|
4125
|
+
return Date.now() - this.lastProcessedEventTime >= Er && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
|
|
4118
4126
|
}
|
|
4119
4127
|
saveEventToCache(e) {
|
|
4120
4128
|
this.cachedEventUids.add(ht(e)), this.lastProcessedEventTime = Date.now();
|
|
@@ -4173,7 +4181,7 @@ async function Rr(n, e = {}) {
|
|
|
4173
4181
|
* See the License for the specific language governing permissions and
|
|
4174
4182
|
* limitations under the License.
|
|
4175
4183
|
*/
|
|
4176
|
-
const
|
|
4184
|
+
const Ar = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Pr = /^https?/;
|
|
4177
4185
|
async function Cr(n) {
|
|
4178
4186
|
if (n.config.emulator)
|
|
4179
4187
|
return;
|
|
@@ -4196,9 +4204,9 @@ function Nr(n) {
|
|
|
4196
4204
|
const o = new URL(n);
|
|
4197
4205
|
return o.hostname === "" && i === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === i;
|
|
4198
4206
|
}
|
|
4199
|
-
if (!
|
|
4207
|
+
if (!Pr.test(t))
|
|
4200
4208
|
return !1;
|
|
4201
|
-
if (
|
|
4209
|
+
if (Ar.test(n))
|
|
4202
4210
|
return i === n;
|
|
4203
4211
|
const r = n.replace(/\./g, "\\.");
|
|
4204
4212
|
return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
|
|
@@ -4238,7 +4246,7 @@ function Lr(n) {
|
|
|
4238
4246
|
e(gapi.iframes.getContext());
|
|
4239
4247
|
},
|
|
4240
4248
|
ontimeout: () => {
|
|
4241
|
-
ft(), t(
|
|
4249
|
+
ft(), t(b(
|
|
4242
4250
|
n,
|
|
4243
4251
|
"network-request-failed"
|
|
4244
4252
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -4254,7 +4262,7 @@ function Lr(n) {
|
|
|
4254
4262
|
else {
|
|
4255
4263
|
const c = Di("iframefcb");
|
|
4256
4264
|
return S()[c] = () => {
|
|
4257
|
-
gapi.load ? o() : t(
|
|
4265
|
+
gapi.load ? o() : t(b(
|
|
4258
4266
|
n,
|
|
4259
4267
|
"network-request-failed"
|
|
4260
4268
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -4308,7 +4316,7 @@ function $r(n) {
|
|
|
4308
4316
|
"auth-domain-config-required"
|
|
4309
4317
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
4310
4318
|
);
|
|
4311
|
-
const t = e.emulator ?
|
|
4319
|
+
const t = e.emulator ? We(e, xr) : `https://${n.config.authDomain}/${Dr}`, i = {
|
|
4312
4320
|
apiKey: e.apiKey,
|
|
4313
4321
|
appName: n.name,
|
|
4314
4322
|
v: se
|
|
@@ -4335,7 +4343,7 @@ async function Hr(n) {
|
|
|
4335
4343
|
// Prevent iframe from closing on mouse out.
|
|
4336
4344
|
setHideOnLeave: !1
|
|
4337
4345
|
});
|
|
4338
|
-
const o =
|
|
4346
|
+
const o = b(
|
|
4339
4347
|
n,
|
|
4340
4348
|
"network-request-failed"
|
|
4341
4349
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
@@ -4366,12 +4374,12 @@ async function Hr(n) {
|
|
|
4366
4374
|
* See the License for the specific language governing permissions and
|
|
4367
4375
|
* limitations under the License.
|
|
4368
4376
|
*/
|
|
4369
|
-
const
|
|
4377
|
+
const Wr = {
|
|
4370
4378
|
location: "yes",
|
|
4371
4379
|
resizable: "yes",
|
|
4372
4380
|
statusbar: "yes",
|
|
4373
4381
|
toolbar: "no"
|
|
4374
|
-
},
|
|
4382
|
+
}, jr = 500, Gr = 600, Br = "_blank", zr = "http://localhost";
|
|
4375
4383
|
class pt {
|
|
4376
4384
|
constructor(e) {
|
|
4377
4385
|
this.window = e, this.associatedEvent = null;
|
|
@@ -4384,18 +4392,18 @@ class pt {
|
|
|
4384
4392
|
}
|
|
4385
4393
|
}
|
|
4386
4394
|
}
|
|
4387
|
-
function qr(n, e, t, i =
|
|
4395
|
+
function qr(n, e, t, i = jr, r = Gr) {
|
|
4388
4396
|
const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
|
|
4389
4397
|
let c = "";
|
|
4390
|
-
const a = Object.assign(Object.assign({},
|
|
4398
|
+
const a = Object.assign(Object.assign({}, Wr), {
|
|
4391
4399
|
width: i.toString(),
|
|
4392
4400
|
height: r.toString(),
|
|
4393
4401
|
top: s,
|
|
4394
4402
|
left: o
|
|
4395
4403
|
}), l = k().toLowerCase();
|
|
4396
|
-
t && (c = Ft(l) ?
|
|
4397
|
-
const d = Object.entries(a).reduce((v, [y,
|
|
4398
|
-
if (
|
|
4404
|
+
t && (c = Ft(l) ? Br : t), xt(l) && (e = e || zr, a.scrollbars = "yes");
|
|
4405
|
+
const d = Object.entries(a).reduce((v, [y, p]) => `${v}${y}=${p},`, "");
|
|
4406
|
+
if (bi(l) && c !== "_self")
|
|
4399
4407
|
return Kr(e || "", c), new pt(null);
|
|
4400
4408
|
const m = window.open(e || "", c, d);
|
|
4401
4409
|
u(
|
|
@@ -4470,7 +4478,7 @@ async function mt(n, e, t, i, r, s) {
|
|
|
4470
4478
|
return `${Qr(n)}?${oe(c).slice(1)}${l}`;
|
|
4471
4479
|
}
|
|
4472
4480
|
function Qr({ config: n }) {
|
|
4473
|
-
return n.emulator ?
|
|
4481
|
+
return n.emulator ? We(n, Yr) : `https://${n.authDomain}/${Jr}`;
|
|
4474
4482
|
}
|
|
4475
4483
|
/**
|
|
4476
4484
|
* @license
|
|
@@ -4519,7 +4527,7 @@ class Zr {
|
|
|
4519
4527
|
}), i;
|
|
4520
4528
|
}
|
|
4521
4529
|
async initAndGetManager(e) {
|
|
4522
|
-
const t = await Hr(e), i = new
|
|
4530
|
+
const t = await Hr(e), i = new br(e);
|
|
4523
4531
|
return t.register("authEvent", (r) => (u(
|
|
4524
4532
|
r == null ? void 0 : r.authEvent,
|
|
4525
4533
|
e,
|
|
@@ -4546,7 +4554,7 @@ class Zr {
|
|
|
4546
4554
|
return this.originValidationPromises[t] || (this.originValidationPromises[t] = Cr(e)), this.originValidationPromises[t];
|
|
4547
4555
|
}
|
|
4548
4556
|
get _shouldInitProactively() {
|
|
4549
|
-
return
|
|
4557
|
+
return jt() || Ge() || ke();
|
|
4550
4558
|
}
|
|
4551
4559
|
}
|
|
4552
4560
|
const es = Zr;
|
|
@@ -4647,7 +4655,7 @@ function is(n) {
|
|
|
4647
4655
|
apiHost: "identitytoolkit.googleapis.com",
|
|
4648
4656
|
tokenApiHost: "securetoken.googleapis.com",
|
|
4649
4657
|
apiScheme: "https",
|
|
4650
|
-
sdkClientVersion:
|
|
4658
|
+
sdkClientVersion: Gt(n)
|
|
4651
4659
|
}, l = new Oi(i, r, s, a);
|
|
4652
4660
|
return Fi(l, t), l;
|
|
4653
4661
|
},
|
|
@@ -4664,7 +4672,7 @@ function is(n) {
|
|
|
4664
4672
|
})), Ze(new et(
|
|
4665
4673
|
"auth-internal",
|
|
4666
4674
|
(e) => {
|
|
4667
|
-
const t =
|
|
4675
|
+
const t = Ee(e.getProvider(
|
|
4668
4676
|
"auth"
|
|
4669
4677
|
/* _ComponentName.AUTH */
|
|
4670
4678
|
).getImmediate());
|
|
@@ -4708,7 +4716,7 @@ const os = (n) => async (e) => {
|
|
|
4708
4716
|
}));
|
|
4709
4717
|
};
|
|
4710
4718
|
function as(n = Nn()) {
|
|
4711
|
-
const e =
|
|
4719
|
+
const e = Et(n, "auth");
|
|
4712
4720
|
if (e.isInitialized())
|
|
4713
4721
|
return e.getImmediate();
|
|
4714
4722
|
const t = xi(n, {
|
|
@@ -4738,7 +4746,7 @@ Li({
|
|
|
4738
4746
|
return new Promise((e, t) => {
|
|
4739
4747
|
const i = document.createElement("script");
|
|
4740
4748
|
i.setAttribute("src", n), i.onload = e, i.onerror = (r) => {
|
|
4741
|
-
const s =
|
|
4749
|
+
const s = b(
|
|
4742
4750
|
"internal-error"
|
|
4743
4751
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
4744
4752
|
);
|
|
@@ -4754,15 +4762,15 @@ is(
|
|
|
4754
4762
|
"Browser"
|
|
4755
4763
|
/* ClientPlatform.BROWSER */
|
|
4756
4764
|
);
|
|
4757
|
-
var ls = { firebase: { apiKey: "
|
|
4765
|
+
var ls = { 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", featureFlagApiKey: "MaGoXrEWuEJNpWgKTqseee" }, us = { 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/" };
|
|
4758
4766
|
const ds = {
|
|
4759
4767
|
key: 2,
|
|
4760
4768
|
class: "h-full w-full"
|
|
4761
4769
|
}, hs = ["src"], Cs = /* @__PURE__ */ xe({
|
|
4762
4770
|
__name: "App",
|
|
4763
4771
|
setup(n) {
|
|
4764
|
-
const e = ge(), t = pn(), i = mn(), r = vn(), s = In(), o = wt(), c =
|
|
4765
|
-
() => o.name ===
|
|
4772
|
+
const e = ge(), t = pn(), i = mn(), r = vn(), s = In(), o = wt(), c = G(
|
|
4773
|
+
() => o.name === f["$connect-UPSELLING"]
|
|
4766
4774
|
), a = te(o.query.showHeader !== "false"), l = te(!1), { currentBusiness: d } = ge();
|
|
4767
4775
|
ie(
|
|
4768
4776
|
() => {
|
|
@@ -4774,25 +4782,25 @@ const ds = {
|
|
|
4774
4782
|
},
|
|
4775
4783
|
{ immediate: !0 }
|
|
4776
4784
|
);
|
|
4777
|
-
const m = te(!1), v =
|
|
4778
|
-
const h = e.currentCountry.value || "MY", _ = tt.getIdToken(),
|
|
4779
|
-
return `${us.marketingV1Portal}/b/${
|
|
4785
|
+
const m = te(!1), v = G(() => i.version), y = G(() => {
|
|
4786
|
+
const h = e.currentCountry.value || "MY", _ = tt.getIdToken(), E = d.value._id;
|
|
4787
|
+
return `${us.marketingV1Portal}/b/${E}/marketing/overview?showHeader=false&country=${h}&token=${_}`;
|
|
4780
4788
|
});
|
|
4781
|
-
async function
|
|
4789
|
+
async function p() {
|
|
4782
4790
|
if (Dn().length) {
|
|
4783
4791
|
console.warn("CONNECT: initFirebase: Firebase already initialized");
|
|
4784
4792
|
return;
|
|
4785
4793
|
}
|
|
4786
|
-
const h = xn(ls.firebase), _ = await fn.getCustomToken(),
|
|
4787
|
-
await qi(
|
|
4794
|
+
const h = xn(ls.firebase), _ = await fn.getCustomToken(), E = as();
|
|
4795
|
+
await qi(E, _), Fn(h), console.log("initFirebase", h);
|
|
4788
4796
|
}
|
|
4789
4797
|
const w = async () => {
|
|
4790
|
-
m.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(d.value._id), await i.readPremium(), !l.value && v.value === "v2" ? e.registerSidebarComponent(
|
|
4798
|
+
m.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(d.value._id), await i.readPremium(), !l.value && v.value === "v2" ? e.registerSidebarComponent(Wn) : e.hideSidebarToggle(!0), await p(), l.value = !0, m.value = !0;
|
|
4791
4799
|
};
|
|
4792
4800
|
return un(() => {
|
|
4793
4801
|
if (Vn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !a.value) {
|
|
4794
|
-
const h = document.getElementsByClassName("app-header")[0], _ = document.getElementsByClassName("app-sidebar")[0],
|
|
4795
|
-
h == null || h.classList.add("!hidden"), _ == null || _.classList.add("!pt-0"),
|
|
4802
|
+
const h = document.getElementsByClassName("app-header")[0], _ = document.getElementsByClassName("app-sidebar")[0], E = document.getElementsByClassName("app-container")[0], T = document.getElementsByTagName("main")[0];
|
|
4803
|
+
h == null || h.classList.add("!hidden"), _ == null || _.classList.add("!pt-0"), E == null || E.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), e.hideSidebarToggle(!0);
|
|
4796
4804
|
}
|
|
4797
4805
|
d.value != null && (console.log("App mounted, forceRerender"), w());
|
|
4798
4806
|
}), ie(
|
|
@@ -4800,11 +4808,11 @@ const ds = {
|
|
|
4800
4808
|
async (h, _) => {
|
|
4801
4809
|
console.log("Current business changed"), h != null && h._id != _._id && (console.log("forceRerender when business changes", h, _), w());
|
|
4802
4810
|
}
|
|
4803
|
-
), (h, _) => (
|
|
4804
|
-
g(m) && (g(v) === "v2" || g(c)) ? (
|
|
4805
|
-
g(m) && g(v) === "v2" && g(a) ? (
|
|
4806
|
-
g(m) && g(v) !== "v2" && !g(c) ? (
|
|
4807
|
-
R(
|
|
4811
|
+
), (h, _) => (j(), me(It, null, [
|
|
4812
|
+
g(m) && (g(v) === "v2" || g(c)) ? (j(), Oe(g(hn), { key: 0 })) : Pe("", !0),
|
|
4813
|
+
g(m) && g(v) === "v2" && g(a) ? (j(), Oe(oi, { key: 1 })) : Pe("", !0),
|
|
4814
|
+
g(m) && g(v) !== "v2" && !g(c) ? (j(), me("div", ds, [
|
|
4815
|
+
R(En, {
|
|
4808
4816
|
json: { url: g(y) }
|
|
4809
4817
|
}, null, 8, ["json"]),
|
|
4810
4818
|
I("iframe", {
|
|
@@ -4814,7 +4822,7 @@ const ds = {
|
|
|
4814
4822
|
width: "100%",
|
|
4815
4823
|
src: g(y)
|
|
4816
4824
|
}, null, 8, hs)
|
|
4817
|
-
])) :
|
|
4825
|
+
])) : Pe("", !0)
|
|
4818
4826
|
], 64));
|
|
4819
4827
|
}
|
|
4820
4828
|
});
|