@feedmepos/mf-connect 0.1.119-dev → 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/dist/{App-z-u6skb5.js → App-BN2LKM3u.js} +135 -147
- package/dist/{Bin-Dh9RAgYi.js → Bin-DpQ1atb7.js} +8 -8
- package/dist/{Broadcast-Dg6azPS8.js → Broadcast-c1ZyYClI.js} +21 -22
- package/dist/{CampaignAnalytic-CVB4dstO.js → CampaignAnalytic-w1hIlc2r.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DYgBeT23.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D7U6evm1.js} +9 -8
- package/dist/{Card-CY736Ul0.js → Card-De53Xgbe.js} +22 -22
- package/dist/{Collections-CdTKWkZZ.js → Collections-BL2RD3FU.js} +185 -197
- package/dist/{Credit-CUhEKlMI.js → Credit-2KvFFcwR.js} +20 -21
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CBwgeTXh.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CKSs2nYE.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BXb7v7wc.js +3493 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-D5-EKqG9.js → EffectSheet.vue_vue_type_style_index_0_lang-Jy7HkK5Z.js} +30 -30
- package/dist/{Experience-CMp09U-6.js → Experience-Cb0jHtVo.js} +31 -32
- package/dist/{FileSaver.min-Bq5McdmK.js → FileSaver.min-UDgZF_Cv.js} +1 -1
- package/dist/{Game-Dv5NvG-q.js → Game-BnysxSMs.js} +18 -19
- package/dist/{GiftCardSetup-SO2Tk5In.js → GiftCardSetup-s1OR6xQq.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-CgG5vHCp.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-D108r20x.js} +7 -7
- package/dist/{Goals-BEwQP4cY.js → Goals-BAieLPzR.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BDGEqsWE.js → ImageInput.vue_vue_type_script_setup_true_lang-B9Jgq5Bp.js} +1 -1
- package/dist/{Index-8F2LOWng.js → Index-DnX16GAE.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BwAjki7Y.js → LocationPicker.vue_vue_type_script_setup_true_lang-DeM-WG6m.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DK4C0Y9j.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BAN69FOS.js} +1 -1
- package/dist/{LoyaltyDashboard-rWm0b8cm.js → LoyaltyDashboard-D8g6OSbC.js} +15 -15
- package/dist/{MainLayout-ezbgp2IQ.js → MainLayout-DWABjpQn.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-1QY5-U5y.js → MainLayout.vue_vue_type_script_setup_true_lang-COp7iulq.js} +3 -3
- package/dist/{Marketing-DcWF4xVc.js → Marketing-Dagatr0y.js} +4 -4
- package/dist/{MarketingMaterialEdit-C1bXj_hU.js → MarketingMaterialEdit-DYVzNDpM.js} +211 -214
- package/dist/{Member-CgDZqGsV.js → Member-DAxdEF_Z.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dh1_j06F.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-nBg7Hckj.js} +47 -39
- package/dist/{MemberImportHistory-DT3QJ5se.js → MemberImportHistory-2gx6FnLh.js} +7 -7
- package/dist/{MemberList-Bm05jnbk.js → MemberList-By_gGl-J.js} +105 -103
- package/dist/{MemberTransactions-D90tTpdC.js → MemberTransactions-BEF-4ZNp.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-jvgjOXXA.js → MessageInput.vue_vue_type_script_setup_true_lang-Bs8wKx9B.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CxL-Nh6i.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DN3mWfKj.js} +1 -1
- package/dist/{Mission-D_l2eJI3.js → Mission-jg15lBxo.js} +21 -22
- package/dist/{Overview-BOZBnorP.js → Overview-BFKLTAk1.js} +144 -145
- package/dist/{Overview-1AYfTeMD.js → Overview-C7WfdzfV.js} +20 -20
- package/dist/{Point-Cqy4XzeG.js → Point-dv9WgWTQ.js} +21 -22
- package/dist/{Promotion-9RDNbCgB.js → Promotion-mFPF_8jO.js} +131 -137
- package/dist/{Queue-D2Eie_np.js → Queue-BQoR_M5H.js} +45 -45
- package/dist/{Record-e4B--FD8.js → Record-1JZ1N5iX.js} +9 -9
- package/dist/{Review-DcUpSvc-.js → Review-B52AxCeT.js} +2 -2
- package/dist/ReviewFacebookCallback-ihTdiI8V.js +238 -0
- package/dist/{ReviewGoogleCallback-JPkamgo2.js → ReviewGoogleCallback-DO6SVFIC.js} +5 -5
- package/dist/{Reward-BQJw-R8V.js → Reward-Cp4jPAB0.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-D_DSQ8q2.js → RewardGroup.vue_vue_type_script_setup_true_lang-DLD6X13Z.js} +13 -13
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-pdHRjCt8.js +1884 -0
- package/dist/{Segment-Cjdqsqqg.js → Segment-DaKw0YXF.js} +306 -303
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-g-CJUZBF.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Bj3OQ_JJ.js} +14 -14
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-lbH0b170.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B1Otak97.js} +4 -4
- package/dist/{Setting-B3HK4mtx.js → Setting-DveUrt8J.js} +148 -159
- package/dist/{SettingAdvertisements-BQFJpdIm.js → SettingAdvertisements-QRXOMNnM.js} +12 -12
- package/dist/Settings-D9D-mkBa.js +179 -0
- package/dist/{Store-mp1LyXwr.js → Store-DjdXRw3V.js} +28 -28
- package/dist/{StoreRewards-DiSB6d7_.js → StoreRewards-CjlGrc9E.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DnwMpqzf.js +1265 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-I5-5BV4h.js +142 -0
- package/dist/{Tier-CxaXh96q.js → Tier-D74Oh2np.js} +687 -2575
- package/dist/{Title-Byz0TGpi.js → Title-CeeviOW8.js} +94 -95
- package/dist/{Transaction-CNXulI3o.js → Transaction-CWdw0ITl.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-C0bfVZf8.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B9nf-9s0.js} +26 -26
- package/dist/{Voucher-CVw3E8Y4.js → Voucher-C0nNXMtv.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-C0d3ktXA.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DxZLsQq9.js} +12 -12
- package/dist/{WhatsappAccount-5vLzjaIV.js → WhatsappAccount-CoLSjCQ2.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CwGBRX-Q.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DkHPlGgT.js} +1 -1
- package/dist/{WhatsappBot-BWJbD7Gk.js → WhatsappBot-kLb3kUav.js} +6 -6
- package/dist/{WhatsappBotLogs-C8gpmZyC.js → WhatsappBotLogs-jcYaHs0t.js} +6 -6
- package/dist/{WhatsappBotSettings-BvPnKHz-.js → WhatsappBotSettings-B6jJD61h.js} +4 -4
- package/dist/{WhatsappLayout-DJXhXeXf.js → WhatsappLayout-C24bIjI2.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BxUYjrWQ.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-9a_grP76.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CkjzVKif.js → ZodTextField.vue_vue_type_script_setup_true_lang-i8Wc2mCr.js} +2 -2
- package/dist/{app-BF1vds2J.js → app-C06bAZj3.js} +10806 -11561
- package/dist/app.js +3 -4
- package/dist/{base.export-B7FU8J4P.js → base.export-CgNRhKu8.js} +2 -2
- package/dist/{business-DkUMhys1.js → business-D23Dt1x4.js} +1 -1
- package/dist/{campaign-C9cVkGMF.js → campaign-DfEvGigm.js} +94 -121
- package/dist/{campaign-0AgQP43B.js → campaign-FVcbXtrP.js} +28 -34
- package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BqekIiiN.js} +1 -2
- package/dist/campaign.fn-0MNUj1fZ.js +776 -0
- package/dist/{collection.fn-B_QnW0e3.js → collection.fn-DC1AMI9o.js} +2 -2
- package/dist/{currency-XQmondpC.js → currency-Bra2RJK4.js} +1 -1
- package/dist/{effect-Mwn1x6qN.js → effect-EL4V3pAu.js} +1 -1
- package/dist/{email-addresses-DQQAi6-l.js → email-addresses-Ddtf1x_y.js} +2 -2
- package/dist/{feature-flag-B1VMMZMd.js → feature-flag-umACX47C.js} +70 -70
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-D1R8vyjc.js → helper-DqDOnLCf.js} +1 -1
- package/dist/{index-Rs75lw-x.js → index-B2lqC_hH.js} +1 -1
- package/dist/{index-C9Nbb7wc.js → index-B3U3KZl0.js} +2 -2
- package/dist/{index-CRAuAyO3.js → index-BTjhdlN_.js} +1 -1
- package/dist/{index-Bm43wR8L.js → index-B_BmgKrh.js} +2613 -2699
- package/dist/{index-DMfCzjiA.js → index-BkKu2G2c.js} +2 -2
- package/dist/{index-ug7pxPAX.js → index-BroF2fC8.js} +251 -608
- package/dist/{index-P8DDRVa3.js → index-Bvk61_w_.js} +1 -1
- package/dist/{index-DQnCdGWe.js → index-ByVPdKdB.js} +581 -682
- package/dist/{index-Bym-ZIcv.js → index-BzwwXWpZ.js} +1 -1
- package/dist/{index-DaUhJ6xV.js → index-C3hAzzS2.js} +15 -29
- package/dist/{index-CzE9ZPDV.js → index-C3lk4GHF.js} +4 -4
- package/dist/{index-CLlGMbnP.js → index-C6p9Lsvf.js} +1 -1
- package/dist/{index-eR9mqPPV.js → index-CEh6ryp2.js} +6 -19
- package/dist/{index-mOGrVzUV.js → index-DK9zxpDu.js} +3 -3
- package/dist/{index-ytSMcSMt.js → index-DuCJtx1m.js} +1 -1
- package/dist/{index-ZYrey0SM.js → index-LjoAs_nX.js} +10 -10
- package/dist/{index-BU6CU5MP.js → index-TDCPGtW3.js} +232 -389
- package/dist/{index-CPB7j8Wn.js → index-iVbjwKxc.js} +10 -10
- package/dist/{index-Cg8Z5eYT.js → index-pfmx-Gor.js} +2 -2
- package/dist/{index-D5BwAYuA.js → index-rcfcslIC.js} +197 -197
- package/dist/{index.esm2017-Gkctw9Mb.js → index.esm2017-DCuQPCX2.js} +111 -111
- package/dist/{loading-kUQqT44G.js → loading-CQm1DKWE.js} +1 -1
- package/dist/{lodash-B4AjV7YZ.js → lodash-C2wVbAap.js} +1 -1
- package/dist/{member-import-CwDUG5mj.js → member-import-BLEmTRso.js} +1 -1
- package/dist/{membership-BI6U8-eM.js → membership-XycnxPEW.js} +2 -2
- package/dist/{money-Bum-AbB7.js → money-DY_QGzd1.js} +1 -1
- package/dist/{number-uAoNqG-N.js → number-BHthf4qF.js} +1 -1
- package/dist/objectid-CPCAqIiC.js +145 -0
- package/dist/{onboarding-wtYzQipv.js → onboarding-BOJw54Fn.js} +36 -36
- package/dist/{onboardingSetup-DlYM-oqd.js → onboardingSetup-Cf2u1tXu.js} +2 -2
- package/dist/{plugins-BGyTPNfc.js → plugins-DKQeoL_e.js} +3 -3
- package/dist/{reward-D0xtG-bp.js → reward-D4RIYSpl.js} +1 -1
- package/dist/{rule-BAA5-vRj.js → rule-Ba-s0L_w.js} +492 -572
- package/dist/rule-builder-D0B0DPao.js +102 -0
- package/dist/style.css +1 -1
- package/dist/template-B40I16Yg.js +236 -0
- package/dist/{timezone-Bbw2OeEP.js → timezone-CAc8xi1h.js} +1 -1
- package/dist/{transaction.fn-DZdNjP_E.js → transaction.fn-Cp2hnhyU.js} +2 -2
- package/dist/{trigger-BpotFb7G.js → trigger-3ebhNBX7.js} +9 -9
- package/dist/{useMarketingMaterialActions-CQ1M0N9c.js → useMarketingMaterialActions-6URv8neP.js} +4 -4
- package/dist/{usePagination-qALFI_Td.js → usePagination-C-fyMmiy.js} +1 -1
- package/dist/{user-X_94TRIK.js → user-T-iXTrYV.js} +1 -1
- package/dist/vue-i18n-DzsxJorb.js +2365 -0
- package/dist/{xlsx-DW48eXDT.js → xlsx-B8OqaJfb.js} +224 -224
- package/dist/{zod-BAP9II5C.js → zod-DZkNj425.js} +1 -1
- package/package.json +3 -8
- package/dist/AuditLogs-J0UJ3HJW.js +0 -2016
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BC4jTtVY.js +0 -4439
- package/dist/Grab-npbL7p7S.js +0 -301
- package/dist/ReviewFacebookCallback-BhHdYb4X.js +0 -225
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DfWjXTx3.js +0 -1923
- package/dist/Settings-DKWkiRuA.js +0 -286
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BAYKqf-Y.js +0 -1319
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-be7ksTJw.js +0 -7007
- package/dist/Upselling-Dto64bmE.js +0 -1013
- package/dist/campaign.fn-N6rJeDUx.js +0 -776
- package/dist/duplicateCampaign-CvQRWP-Z.js +0 -51
- package/dist/google-BQK68wbe.js +0 -5
- package/dist/objectid-CPTCMH2h.js +0 -145
- package/dist/template-DKgW9ul3.js +0 -188
- package/dist/vue-i18n-CRFpVnMa.js +0 -2365
|
@@ -1,144 +1,132 @@
|
|
|
1
|
-
import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as Y, watch as ie, resolveComponent as ee, openBlock as
|
|
1
|
+
import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as Y, watch as ie, resolveComponent as ee, openBlock as W, createElementBlock as me, createVNode as S, unref as _, createElementVNode as I, toDisplayString as R, createBlock as Oe, withCtx as Z, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Pe, nextTick as dn } from "vue";
|
|
2
2
|
import { useRouter as yt, useRoute as wt, RouterView as hn } from "vue-router";
|
|
3
3
|
import { useCoreStore as ge, FeedMeAuth as fn } from "@feedmepos/mf-common";
|
|
4
4
|
import { u as pn } from "./app-wDQR6dpb.js";
|
|
5
|
-
import { u as mn } from "./business-
|
|
6
|
-
import { 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
|
|
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
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-
|
|
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 Fn } from "./index-
|
|
17
|
+
import { S as tt, c as Fn } from "./index-iVbjwKxc.js";
|
|
18
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
21
|
const { t: e, locale: t } = Tt(), i = wn(), r = gn(), s = te(), o = [
|
|
22
22
|
{
|
|
23
23
|
label: e("connect.navigation.analytic"),
|
|
24
|
-
value:
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
label: e("connect.navigation.upselling"),
|
|
28
|
-
value: f["$connect-UPSELLING"]
|
|
24
|
+
value: p["$connect-ANALYTIC"]
|
|
29
25
|
},
|
|
30
26
|
{
|
|
31
27
|
label: e("connect.navigation.campaign"),
|
|
32
|
-
value:
|
|
28
|
+
value: p["$connect-CAMPAIGN"],
|
|
33
29
|
children: [
|
|
34
30
|
{
|
|
35
31
|
label: e("connect.navigation.promotion"),
|
|
36
|
-
value:
|
|
32
|
+
value: p["$connect-CAMPAIGN_PROMOTION"]
|
|
37
33
|
},
|
|
38
34
|
{
|
|
39
35
|
label: e("connect.navigation.voucher"),
|
|
40
|
-
value:
|
|
36
|
+
value: p["$connect-CAMPAIGN_VOUCHER"]
|
|
41
37
|
},
|
|
42
38
|
{
|
|
43
39
|
label: e("connect.navigation.broadcast"),
|
|
44
|
-
value:
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
label: e("connect.navigation.grab"),
|
|
48
|
-
value: f["$connect-CAMPAIGN_GRAB"]
|
|
40
|
+
value: p["$connect-CAMPAIGN_BROADCAST"]
|
|
49
41
|
}
|
|
50
42
|
]
|
|
51
43
|
},
|
|
52
44
|
{
|
|
53
45
|
label: e("connect.navigation.program"),
|
|
54
|
-
value:
|
|
46
|
+
value: p["$connect-PROGRAM"],
|
|
55
47
|
children: [
|
|
56
48
|
{
|
|
57
49
|
label: e("connect.navigation.tier"),
|
|
58
|
-
value:
|
|
50
|
+
value: p["$connect-PROGRAM_TIER"]
|
|
59
51
|
},
|
|
60
52
|
{
|
|
61
53
|
label: e("connect.navigation.title"),
|
|
62
|
-
value:
|
|
54
|
+
value: p["$connect-PROGRAM_TITLE"]
|
|
63
55
|
},
|
|
64
56
|
{
|
|
65
57
|
label: e("connect.navigation.experience"),
|
|
66
|
-
value:
|
|
58
|
+
value: p["$connect-PROGRAM_EXPERIENCE"]
|
|
67
59
|
},
|
|
68
60
|
{
|
|
69
61
|
label: e("connect.navigation.point"),
|
|
70
|
-
value:
|
|
71
|
-
badge: () => U(
|
|
62
|
+
value: p["$connect-PROGRAM_POINT"],
|
|
63
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
72
64
|
},
|
|
73
65
|
{
|
|
74
66
|
label: e("connect.navigation.credit"),
|
|
75
|
-
value:
|
|
67
|
+
value: p["$connect-PROGRAM_CREDIT"]
|
|
76
68
|
},
|
|
77
69
|
{
|
|
78
70
|
label: e("connect.navigation.game"),
|
|
79
|
-
value:
|
|
80
|
-
badge: () => U(
|
|
71
|
+
value: p["$connect-PROGRAM_GAME"],
|
|
72
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
81
73
|
},
|
|
82
74
|
{
|
|
83
75
|
label: "Mission",
|
|
84
|
-
value:
|
|
76
|
+
value: p["$connect-PROGRAM_MISSION"]
|
|
85
77
|
}
|
|
86
78
|
]
|
|
87
79
|
},
|
|
88
80
|
{
|
|
89
81
|
label: e("connect.navigation.loyalty"),
|
|
90
|
-
value:
|
|
82
|
+
value: p["$connect-LOYALTY"],
|
|
91
83
|
children: [
|
|
92
84
|
{
|
|
93
85
|
label: e("connect.navigation.member"),
|
|
94
|
-
value:
|
|
86
|
+
value: p["$connect-LOYALTY_MEMBER_LIST"]
|
|
95
87
|
},
|
|
96
88
|
{
|
|
97
89
|
label: e("connect.navigation.segments"),
|
|
98
|
-
value:
|
|
99
|
-
badge: () => U(
|
|
90
|
+
value: p["$connect-LOYALTY_SEGMENT"],
|
|
91
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
100
92
|
},
|
|
101
93
|
{
|
|
102
94
|
label: e("connect.navigation.card"),
|
|
103
|
-
value:
|
|
104
|
-
badge: () => U(
|
|
95
|
+
value: p["$connect-LOYALTY_CARD"],
|
|
96
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
105
97
|
}
|
|
106
98
|
]
|
|
107
99
|
},
|
|
108
100
|
{
|
|
109
101
|
label: e("connect.navigation.whatsappBot"),
|
|
110
|
-
value:
|
|
111
|
-
badge: () => U(
|
|
102
|
+
value: p["$connect-WHATSAPP"],
|
|
103
|
+
badge: () => U(j.FmPill, { variant: "beta" })
|
|
112
104
|
},
|
|
113
105
|
{
|
|
114
106
|
label: e("connect.navigation.referral"),
|
|
115
|
-
value:
|
|
116
|
-
badge: () => U(
|
|
107
|
+
value: p["$connect-REFERRAL"],
|
|
108
|
+
badge: () => U(j.FmPill, { variant: "premium" })
|
|
117
109
|
},
|
|
118
110
|
{
|
|
119
111
|
label: e("connect.navigation.store"),
|
|
120
|
-
value:
|
|
112
|
+
value: p["$connect-STORE"]
|
|
121
113
|
},
|
|
122
114
|
{
|
|
123
115
|
label: e("connect.navigation.transaction"),
|
|
124
|
-
value:
|
|
116
|
+
value: p["$connect-TRANSACTION"]
|
|
125
117
|
},
|
|
126
118
|
{
|
|
127
119
|
label: e("connect.navigation.marketingMaterials"),
|
|
128
|
-
value:
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
label: e("connect.navigation.auditLogs"),
|
|
132
|
-
value: f["$connect-AUDIT_LOGS"]
|
|
120
|
+
value: p["$connect-MARKETING"]
|
|
133
121
|
},
|
|
134
122
|
{
|
|
135
123
|
label: e("connect.navigation.review"),
|
|
136
|
-
value:
|
|
124
|
+
value: p["$connect-REVIEW"]
|
|
137
125
|
},
|
|
138
126
|
{
|
|
139
127
|
label: e("connect.navigation.goals"),
|
|
140
|
-
value:
|
|
141
|
-
badge: () => i.goalsRemaining > 0 ? U(
|
|
128
|
+
value: p["$connect-GOALS"],
|
|
129
|
+
badge: () => i.goalsRemaining > 0 ? U(j.FmBadge, {
|
|
142
130
|
variant: "numeric",
|
|
143
131
|
inline: !0,
|
|
144
132
|
value: i.goalsRemaining
|
|
@@ -146,17 +134,17 @@ const Vn = { class: "flex flex-col h-full justify-between py-16" }, $n = { class
|
|
|
146
134
|
},
|
|
147
135
|
{
|
|
148
136
|
label: e("connect.navigation.setting"),
|
|
149
|
-
value:
|
|
137
|
+
value: p["$connect-SETTING"]
|
|
150
138
|
},
|
|
151
139
|
{
|
|
152
140
|
label: e("connect.navigation.bin"),
|
|
153
|
-
value:
|
|
141
|
+
value: p["$connect-BIN"]
|
|
154
142
|
}
|
|
155
143
|
], c = Y(
|
|
156
144
|
() => o.filter(
|
|
157
|
-
(h) =>
|
|
145
|
+
(h) => h.value !== p["$connect-WHATSAPP"] || r() === "on"
|
|
158
146
|
)
|
|
159
|
-
), a = yt(), l = wt(), d = o.reduce((h,
|
|
147
|
+
), a = yt(), l = wt(), d = o.reduce((h, f) => [...(f.children ?? []).map((g) => g.value), ...h, f.value], []), m = ge(), y = Y(() => {
|
|
160
148
|
const h = m.currentCountry.value || "MY";
|
|
161
149
|
return console.log(`[MF] Timezone set to: ${Xe[h]}`), Xe[h];
|
|
162
150
|
});
|
|
@@ -183,10 +171,10 @@ const Vn = { class: "flex flex-col h-full justify-between py-16" }, $n = { class
|
|
|
183
171
|
async function T(h) {
|
|
184
172
|
await a.push({ name: h });
|
|
185
173
|
}
|
|
186
|
-
return (h,
|
|
174
|
+
return (h, f) => {
|
|
187
175
|
var v;
|
|
188
176
|
const g = ee("FmCollapsibleTabs");
|
|
189
|
-
return
|
|
177
|
+
return W(), me("div", Vn, [
|
|
190
178
|
S(g, {
|
|
191
179
|
class: "border-fm-color-neutral-gray-100 border-r px-4",
|
|
192
180
|
"model-value": (v = _(s)) == null ? void 0 : v.toString(),
|
|
@@ -201,20 +189,20 @@ const Vn = { class: "flex flex-col h-full justify-between py-16" }, $n = { class
|
|
|
201
189
|
};
|
|
202
190
|
}
|
|
203
191
|
}), St = "feedme_connect_marketing_promo_hidden";
|
|
204
|
-
function
|
|
192
|
+
function jn() {
|
|
205
193
|
try {
|
|
206
194
|
return localStorage.getItem(St) !== null;
|
|
207
195
|
} catch {
|
|
208
196
|
return !1;
|
|
209
197
|
}
|
|
210
198
|
}
|
|
211
|
-
function
|
|
199
|
+
function Wn() {
|
|
212
200
|
try {
|
|
213
201
|
localStorage.setItem(St, (/* @__PURE__ */ new Date()).toISOString());
|
|
214
202
|
} catch {
|
|
215
203
|
}
|
|
216
204
|
}
|
|
217
|
-
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({
|
|
218
206
|
__name: "AiMarketingPromoDialog",
|
|
219
207
|
setup(n) {
|
|
220
208
|
let e = !1;
|
|
@@ -241,19 +229,19 @@ const Gn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xx
|
|
|
241
229
|
ie(
|
|
242
230
|
l,
|
|
243
231
|
(T) => {
|
|
244
|
-
d || !T || (d = !0, !(
|
|
232
|
+
d || !T || (d = !0, !(jn() || e) && (e = !0, o.value = !0));
|
|
245
233
|
},
|
|
246
234
|
{ immediate: !0 }
|
|
247
235
|
);
|
|
248
236
|
async function m() {
|
|
249
|
-
o.value = !1, await i.push({ name:
|
|
237
|
+
o.value = !1, await i.push({ name: p["$connect-MARKETING"] });
|
|
250
238
|
}
|
|
251
239
|
function y() {
|
|
252
|
-
|
|
240
|
+
Wn(), o.value = !1;
|
|
253
241
|
}
|
|
254
242
|
return (T, h) => {
|
|
255
|
-
const
|
|
256
|
-
return
|
|
243
|
+
const f = ee("FmIcon"), g = ee("FmCard"), v = ee("FmButton"), M = ee("FmDialog");
|
|
244
|
+
return W(), Oe(M, {
|
|
257
245
|
modelValue: o.value,
|
|
258
246
|
"onUpdate:modelValue": h[0] || (h[0] = (k) => o.value = k),
|
|
259
247
|
"min-width": "min(500px, calc(100% - 48px))",
|
|
@@ -262,9 +250,9 @@ const Gn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xx
|
|
|
262
250
|
"dismiss-away": ""
|
|
263
251
|
}, {
|
|
264
252
|
"dialog-header": Z(() => [
|
|
265
|
-
I("div",
|
|
266
|
-
I("div",
|
|
267
|
-
S(
|
|
253
|
+
I("div", Bn, [
|
|
254
|
+
I("div", Gn, [
|
|
255
|
+
S(f, {
|
|
268
256
|
name: "auto_awesome",
|
|
269
257
|
size: "sm",
|
|
270
258
|
color: "primary"
|
|
@@ -298,14 +286,14 @@ const Gn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xx
|
|
|
298
286
|
default: Z(() => [
|
|
299
287
|
I("div", Jn, [
|
|
300
288
|
I("div", Yn, [
|
|
301
|
-
(
|
|
289
|
+
(W(), me(It, null, ln(c, (k) => S(g, {
|
|
302
290
|
key: k.key,
|
|
303
291
|
variant: "outlined",
|
|
304
292
|
class: "!h-full flex flex-col gap-8 p-16"
|
|
305
293
|
}, {
|
|
306
294
|
default: Z(() => [
|
|
307
295
|
I("div", Xn, [
|
|
308
|
-
S(
|
|
296
|
+
S(f, {
|
|
309
297
|
name: k.icon,
|
|
310
298
|
size: "md",
|
|
311
299
|
color: "primary"
|
|
@@ -325,7 +313,7 @@ const Gn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xx
|
|
|
325
313
|
}, {
|
|
326
314
|
default: Z(() => [
|
|
327
315
|
I("div", ei, [
|
|
328
|
-
S(
|
|
316
|
+
S(f, {
|
|
329
317
|
name: "lightbulb",
|
|
330
318
|
size: "md",
|
|
331
319
|
color: "primary"
|
|
@@ -541,7 +529,7 @@ class ae {
|
|
|
541
529
|
* See the License for the specific language governing permissions and
|
|
542
530
|
* limitations under the License.
|
|
543
531
|
*/
|
|
544
|
-
function
|
|
532
|
+
function je(n, e) {
|
|
545
533
|
L(n.emulator, "Emulator should always be set here");
|
|
546
534
|
const { url: t } = n.emulator;
|
|
547
535
|
return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
|
|
@@ -772,7 +760,7 @@ async function Ot(n, e, t, i, r = {}) {
|
|
|
772
760
|
}
|
|
773
761
|
function Lt(n, e, t, i) {
|
|
774
762
|
const r = `${e}${t}?${i}`;
|
|
775
|
-
return n.config.emulator ?
|
|
763
|
+
return n.config.emulator ? je(n.config, r) : `${n.config.apiScheme}://${r}`;
|
|
776
764
|
}
|
|
777
765
|
class mi {
|
|
778
766
|
constructor(e) {
|
|
@@ -844,7 +832,7 @@ function ne(n) {
|
|
|
844
832
|
}
|
|
845
833
|
}
|
|
846
834
|
async function _i(n, e = !1) {
|
|
847
|
-
const t = X(n), i = await t.getIdToken(e), r =
|
|
835
|
+
const t = X(n), i = await t.getIdToken(e), r = We(i);
|
|
848
836
|
u(
|
|
849
837
|
r && r.exp && r.auth_time && r.iat,
|
|
850
838
|
t.auth,
|
|
@@ -865,7 +853,7 @@ async function _i(n, e = !1) {
|
|
|
865
853
|
function Ce(n) {
|
|
866
854
|
return Number(n) * 1e3;
|
|
867
855
|
}
|
|
868
|
-
function
|
|
856
|
+
function We(n) {
|
|
869
857
|
const [e, t, i] = n.split(".");
|
|
870
858
|
if (e === void 0 || t === void 0 || i === void 0)
|
|
871
859
|
return de("JWT malformed, contained fewer than 3 sections"), null;
|
|
@@ -877,7 +865,7 @@ function je(n) {
|
|
|
877
865
|
}
|
|
878
866
|
}
|
|
879
867
|
function it(n) {
|
|
880
|
-
const e =
|
|
868
|
+
const e = We(n);
|
|
881
869
|
return u(
|
|
882
870
|
e,
|
|
883
871
|
"internal-error"
|
|
@@ -1314,7 +1302,7 @@ class C {
|
|
|
1314
1302
|
}
|
|
1315
1303
|
static _fromJSON(e, t) {
|
|
1316
1304
|
var i, r, s, o, c, a, l, d;
|
|
1317
|
-
const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, y = (r = t.email) !== null && r !== void 0 ? r : void 0, T = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, h = (o = t.photoURL) !== null && o !== void 0 ? o : void 0,
|
|
1305
|
+
const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, y = (r = t.email) !== null && r !== void 0 ? r : void 0, T = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, h = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, f = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, g = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, v = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
|
|
1318
1306
|
u(
|
|
1319
1307
|
k && Ye,
|
|
1320
1308
|
e,
|
|
@@ -1337,7 +1325,7 @@ class C {
|
|
|
1337
1325
|
e,
|
|
1338
1326
|
"internal-error"
|
|
1339
1327
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1340
|
-
), D(T, e.name), D(h, e.name), D(
|
|
1328
|
+
), D(T, e.name), D(h, e.name), D(f, e.name), D(g, e.name), D(v, e.name), D(M, e.name);
|
|
1341
1329
|
const Ae = new C({
|
|
1342
1330
|
uid: k,
|
|
1343
1331
|
auth: e,
|
|
@@ -1347,7 +1335,7 @@ class C {
|
|
|
1347
1335
|
isAnonymous: Je,
|
|
1348
1336
|
photoURL: h,
|
|
1349
1337
|
phoneNumber: T,
|
|
1350
|
-
tenantId:
|
|
1338
|
+
tenantId: f,
|
|
1351
1339
|
stsTokenManager: on,
|
|
1352
1340
|
createdAt: v,
|
|
1353
1341
|
lastLoginAt: M
|
|
@@ -1576,9 +1564,9 @@ function ot(n) {
|
|
|
1576
1564
|
return "Silk";
|
|
1577
1565
|
if (Ht(e))
|
|
1578
1566
|
return "Blackberry";
|
|
1579
|
-
if (
|
|
1567
|
+
if (jt(e))
|
|
1580
1568
|
return "Webos";
|
|
1581
|
-
if (
|
|
1569
|
+
if (Be(e))
|
|
1582
1570
|
return "Safari";
|
|
1583
1571
|
if ((e.includes("chrome/") || Ft(e)) && !e.includes("edge/"))
|
|
1584
1572
|
return "Chrome";
|
|
@@ -1594,7 +1582,7 @@ function ot(n) {
|
|
|
1594
1582
|
function xt(n = w()) {
|
|
1595
1583
|
return /firefox\//i.test(n);
|
|
1596
1584
|
}
|
|
1597
|
-
function
|
|
1585
|
+
function Be(n = w()) {
|
|
1598
1586
|
const e = n.toLowerCase();
|
|
1599
1587
|
return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
|
|
1600
1588
|
}
|
|
@@ -1610,7 +1598,7 @@ function $t(n = w()) {
|
|
|
1610
1598
|
function Ht(n = w()) {
|
|
1611
1599
|
return /blackberry/i.test(n);
|
|
1612
1600
|
}
|
|
1613
|
-
function
|
|
1601
|
+
function jt(n = w()) {
|
|
1614
1602
|
return /webos/i.test(n);
|
|
1615
1603
|
}
|
|
1616
1604
|
function ke(n = w()) {
|
|
@@ -1623,8 +1611,8 @@ function bi(n = w()) {
|
|
|
1623
1611
|
function Ei() {
|
|
1624
1612
|
return Ln() && document.documentMode === 10;
|
|
1625
1613
|
}
|
|
1626
|
-
function
|
|
1627
|
-
return ke(n) || $t(n) ||
|
|
1614
|
+
function Wt(n = w()) {
|
|
1615
|
+
return ke(n) || $t(n) || jt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
|
|
1628
1616
|
}
|
|
1629
1617
|
function Si() {
|
|
1630
1618
|
try {
|
|
@@ -1649,7 +1637,7 @@ function Si() {
|
|
|
1649
1637
|
* See the License for the specific language governing permissions and
|
|
1650
1638
|
* limitations under the License.
|
|
1651
1639
|
*/
|
|
1652
|
-
function
|
|
1640
|
+
function Bt(n, e = []) {
|
|
1653
1641
|
let t;
|
|
1654
1642
|
switch (n) {
|
|
1655
1643
|
case "Browser":
|
|
@@ -2142,7 +2130,7 @@ class Ni {
|
|
|
2142
2130
|
), this.persistenceManager;
|
|
2143
2131
|
}
|
|
2144
2132
|
_logFramework(e) {
|
|
2145
|
-
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion =
|
|
2133
|
+
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Bt(this.config.clientPlatform, this._getFrameworks()));
|
|
2146
2134
|
}
|
|
2147
2135
|
_getFrameworks() {
|
|
2148
2136
|
return this.frameworks;
|
|
@@ -2207,7 +2195,7 @@ class at {
|
|
|
2207
2195
|
* See the License for the specific language governing permissions and
|
|
2208
2196
|
* limitations under the License.
|
|
2209
2197
|
*/
|
|
2210
|
-
let
|
|
2198
|
+
let Ge = {
|
|
2211
2199
|
async loadJS() {
|
|
2212
2200
|
throw new Error("Unable to load external scripts");
|
|
2213
2201
|
},
|
|
@@ -2216,13 +2204,13 @@ let Be = {
|
|
|
2216
2204
|
gapiScript: ""
|
|
2217
2205
|
};
|
|
2218
2206
|
function Oi(n) {
|
|
2219
|
-
|
|
2207
|
+
Ge = n;
|
|
2220
2208
|
}
|
|
2221
2209
|
function Li(n) {
|
|
2222
|
-
return
|
|
2210
|
+
return Ge.loadJS(n);
|
|
2223
2211
|
}
|
|
2224
2212
|
function Mi() {
|
|
2225
|
-
return
|
|
2213
|
+
return Ge.gapiScript;
|
|
2226
2214
|
}
|
|
2227
2215
|
function Ui(n) {
|
|
2228
2216
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
|
@@ -2274,7 +2262,7 @@ function Fi(n, e, t) {
|
|
|
2274
2262
|
"invalid-emulator-scheme"
|
|
2275
2263
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
|
2276
2264
|
);
|
|
2277
|
-
const r = !1, s =
|
|
2265
|
+
const r = !1, s = Gt(e), { host: o, port: c } = Vi(e), a = c === null ? "" : `:${c}`;
|
|
2278
2266
|
i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
|
|
2279
2267
|
host: o,
|
|
2280
2268
|
port: c,
|
|
@@ -2282,12 +2270,12 @@ function Fi(n, e, t) {
|
|
|
2282
2270
|
options: Object.freeze({ disableWarnings: r })
|
|
2283
2271
|
}), $i();
|
|
2284
2272
|
}
|
|
2285
|
-
function
|
|
2273
|
+
function Gt(n) {
|
|
2286
2274
|
const e = n.indexOf(":");
|
|
2287
2275
|
return e < 0 ? "" : n.substr(0, e + 1);
|
|
2288
2276
|
}
|
|
2289
2277
|
function Vi(n) {
|
|
2290
|
-
const e =
|
|
2278
|
+
const e = Gt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
|
2291
2279
|
if (!t)
|
|
2292
2280
|
return { host: "", port: null };
|
|
2293
2281
|
const i = t[2].split("@").pop() || "", r = /^(\[[^\]]+\])(:|$)/.exec(i);
|
|
@@ -2390,13 +2378,13 @@ async function J(n, e) {
|
|
|
2390
2378
|
* limitations under the License.
|
|
2391
2379
|
*/
|
|
2392
2380
|
const Hi = "http://localhost";
|
|
2393
|
-
class
|
|
2381
|
+
class B extends zt {
|
|
2394
2382
|
constructor() {
|
|
2395
2383
|
super(...arguments), this.pendingToken = null;
|
|
2396
2384
|
}
|
|
2397
2385
|
/** @internal */
|
|
2398
2386
|
static _fromParams(e) {
|
|
2399
|
-
const t = new
|
|
2387
|
+
const t = new B(e.providerId, e.signInMethod);
|
|
2400
2388
|
return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : O(
|
|
2401
2389
|
"argument-error"
|
|
2402
2390
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
@@ -2427,7 +2415,7 @@ class G extends zt {
|
|
|
2427
2415
|
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = $e(t, ["providerId", "signInMethod"]);
|
|
2428
2416
|
if (!i || !r)
|
|
2429
2417
|
return null;
|
|
2430
|
-
const o = new
|
|
2418
|
+
const o = new B(i, r);
|
|
2431
2419
|
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;
|
|
2432
2420
|
}
|
|
2433
2421
|
/** @internal */
|
|
@@ -2583,7 +2571,7 @@ class x extends ce {
|
|
|
2583
2571
|
* @param accessToken - Facebook access token.
|
|
2584
2572
|
*/
|
|
2585
2573
|
static credential(e) {
|
|
2586
|
-
return
|
|
2574
|
+
return B._fromParams({
|
|
2587
2575
|
providerId: x.PROVIDER_ID,
|
|
2588
2576
|
signInMethod: x.FACEBOOK_SIGN_IN_METHOD,
|
|
2589
2577
|
accessToken: e
|
|
@@ -2655,7 +2643,7 @@ class F extends ce {
|
|
|
2655
2643
|
* @param accessToken - Google access token.
|
|
2656
2644
|
*/
|
|
2657
2645
|
static credential(e, t) {
|
|
2658
|
-
return
|
|
2646
|
+
return B._fromParams({
|
|
2659
2647
|
providerId: F.PROVIDER_ID,
|
|
2660
2648
|
signInMethod: F.GOOGLE_SIGN_IN_METHOD,
|
|
2661
2649
|
idToken: e,
|
|
@@ -2723,7 +2711,7 @@ class V extends ce {
|
|
|
2723
2711
|
* @param accessToken - Github access token.
|
|
2724
2712
|
*/
|
|
2725
2713
|
static credential(e) {
|
|
2726
|
-
return
|
|
2714
|
+
return B._fromParams({
|
|
2727
2715
|
providerId: V.PROVIDER_ID,
|
|
2728
2716
|
signInMethod: V.GITHUB_SIGN_IN_METHOD,
|
|
2729
2717
|
accessToken: e
|
|
@@ -2788,7 +2776,7 @@ class $ extends ce {
|
|
|
2788
2776
|
* @param secret - Twitter secret.
|
|
2789
2777
|
*/
|
|
2790
2778
|
static credential(e, t) {
|
|
2791
|
-
return
|
|
2779
|
+
return B._fromParams({
|
|
2792
2780
|
providerId: $.PROVIDER_ID,
|
|
2793
2781
|
signInMethod: $.TWITTER_SIGN_IN_METHOD,
|
|
2794
2782
|
oauthToken: e,
|
|
@@ -2843,13 +2831,13 @@ $.PROVIDER_ID = "twitter.com";
|
|
|
2843
2831
|
* See the License for the specific language governing permissions and
|
|
2844
2832
|
* limitations under the License.
|
|
2845
2833
|
*/
|
|
2846
|
-
class
|
|
2834
|
+
class G {
|
|
2847
2835
|
constructor(e) {
|
|
2848
2836
|
this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
|
|
2849
2837
|
}
|
|
2850
2838
|
static async _fromIdTokenResponse(e, t, i, r = !1) {
|
|
2851
2839
|
const s = await C._fromIdTokenResponse(e, i, r), o = lt(i);
|
|
2852
|
-
return new
|
|
2840
|
+
return new G({
|
|
2853
2841
|
user: s,
|
|
2854
2842
|
providerId: o,
|
|
2855
2843
|
_tokenResponse: i,
|
|
@@ -2863,7 +2851,7 @@ class B {
|
|
|
2863
2851
|
!0
|
|
2864
2852
|
);
|
|
2865
2853
|
const r = lt(i);
|
|
2866
|
-
return new
|
|
2854
|
+
return new G({
|
|
2867
2855
|
user: e,
|
|
2868
2856
|
providerId: r,
|
|
2869
2857
|
_tokenResponse: i,
|
|
@@ -2909,9 +2897,9 @@ function Kt(n, e, t, i) {
|
|
|
2909
2897
|
throw s.code === "auth/multi-factor-auth-required" ? Ie._fromErrorAndOperation(n, s, e, i) : s;
|
|
2910
2898
|
});
|
|
2911
2899
|
}
|
|
2912
|
-
async function
|
|
2900
|
+
async function ji(n, e, t = !1) {
|
|
2913
2901
|
const i = await re(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
|
|
2914
|
-
return
|
|
2902
|
+
return G._forOperation(n, "link", i);
|
|
2915
2903
|
}
|
|
2916
2904
|
/**
|
|
2917
2905
|
* @license
|
|
@@ -2929,7 +2917,7 @@ async function Wi(n, e, t = !1) {
|
|
|
2929
2917
|
* See the License for the specific language governing permissions and
|
|
2930
2918
|
* limitations under the License.
|
|
2931
2919
|
*/
|
|
2932
|
-
async function
|
|
2920
|
+
async function Wi(n, e, t = !1) {
|
|
2933
2921
|
const { auth: i } = n;
|
|
2934
2922
|
if (A(i.app))
|
|
2935
2923
|
return Promise.reject(H(i));
|
|
@@ -2942,7 +2930,7 @@ async function ji(n, e, t = !1) {
|
|
|
2942
2930
|
"internal-error"
|
|
2943
2931
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
2944
2932
|
);
|
|
2945
|
-
const o =
|
|
2933
|
+
const o = We(s.idToken);
|
|
2946
2934
|
u(
|
|
2947
2935
|
o,
|
|
2948
2936
|
i,
|
|
@@ -2955,7 +2943,7 @@ async function ji(n, e, t = !1) {
|
|
|
2955
2943
|
i,
|
|
2956
2944
|
"user-mismatch"
|
|
2957
2945
|
/* AuthErrorCode.USER_MISMATCH */
|
|
2958
|
-
),
|
|
2946
|
+
), G._forOperation(n, r, s);
|
|
2959
2947
|
} catch (s) {
|
|
2960
2948
|
throw (s == null ? void 0 : s.code) === "auth/user-not-found" && O(
|
|
2961
2949
|
i,
|
|
@@ -2980,10 +2968,10 @@ async function ji(n, e, t = !1) {
|
|
|
2980
2968
|
* See the License for the specific language governing permissions and
|
|
2981
2969
|
* limitations under the License.
|
|
2982
2970
|
*/
|
|
2983
|
-
async function
|
|
2971
|
+
async function Bi(n, e, t = !1) {
|
|
2984
2972
|
if (A(n.app))
|
|
2985
2973
|
return Promise.reject(H(n));
|
|
2986
|
-
const i = "signIn", r = await Kt(n, i, e), s = await
|
|
2974
|
+
const i = "signIn", r = await Kt(n, i, e), s = await G._fromIdTokenResponse(n, i, r);
|
|
2987
2975
|
return t || await n._updateCurrentUser(s.user), s;
|
|
2988
2976
|
}
|
|
2989
2977
|
/**
|
|
@@ -3002,7 +2990,7 @@ async function Gi(n, e, t = !1) {
|
|
|
3002
2990
|
* See the License for the specific language governing permissions and
|
|
3003
2991
|
* limitations under the License.
|
|
3004
2992
|
*/
|
|
3005
|
-
async function
|
|
2993
|
+
async function Gi(n, e) {
|
|
3006
2994
|
return Ot(n, "POST", "/v1/accounts:signInWithCustomToken", Te(n, e));
|
|
3007
2995
|
}
|
|
3008
2996
|
/**
|
|
@@ -3024,10 +3012,10 @@ async function Bi(n, e) {
|
|
|
3024
3012
|
async function zi(n, e) {
|
|
3025
3013
|
if (A(n.app))
|
|
3026
3014
|
return Promise.reject(H(n));
|
|
3027
|
-
const t = be(n), i = await
|
|
3015
|
+
const t = be(n), i = await Gi(t, {
|
|
3028
3016
|
token: e,
|
|
3029
3017
|
returnSecureToken: !0
|
|
3030
|
-
}), r = await
|
|
3018
|
+
}), r = await G._fromIdTokenResponse(t, "signIn", i);
|
|
3031
3019
|
return await t._updateCurrentUser(r.user), r;
|
|
3032
3020
|
}
|
|
3033
3021
|
function qi(n, e, t, i) {
|
|
@@ -3096,7 +3084,7 @@ class Jt {
|
|
|
3096
3084
|
*/
|
|
3097
3085
|
function Ji() {
|
|
3098
3086
|
const n = w();
|
|
3099
|
-
return
|
|
3087
|
+
return Be(n) || ke(n);
|
|
3100
3088
|
}
|
|
3101
3089
|
const Yi = 1e3, Xi = 10;
|
|
3102
3090
|
class Yt extends Jt {
|
|
@@ -3105,7 +3093,7 @@ class Yt extends Jt {
|
|
|
3105
3093
|
() => window.localStorage,
|
|
3106
3094
|
"LOCAL"
|
|
3107
3095
|
/* PersistenceType.LOCAL */
|
|
3108
|
-
), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Ji() && Si(), this.fallbackToPolling =
|
|
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;
|
|
3109
3097
|
}
|
|
3110
3098
|
forAllChangedKeys(e) {
|
|
3111
3099
|
for (const t of Object.keys(this.listeners)) {
|
|
@@ -3803,7 +3791,7 @@ class qe extends zt {
|
|
|
3803
3791
|
}
|
|
3804
3792
|
}
|
|
3805
3793
|
function hr(n) {
|
|
3806
|
-
return
|
|
3794
|
+
return Bi(n.auth, new qe(n), n.bypassAuthState);
|
|
3807
3795
|
}
|
|
3808
3796
|
function fr(n) {
|
|
3809
3797
|
const { auth: e, user: t } = n;
|
|
@@ -3812,7 +3800,7 @@ function fr(n) {
|
|
|
3812
3800
|
e,
|
|
3813
3801
|
"internal-error"
|
|
3814
3802
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3815
|
-
),
|
|
3803
|
+
), Wi(t, new qe(n), n.bypassAuthState);
|
|
3816
3804
|
}
|
|
3817
3805
|
async function pr(n) {
|
|
3818
3806
|
const { auth: e, user: t } = n;
|
|
@@ -3821,7 +3809,7 @@ async function pr(n) {
|
|
|
3821
3809
|
e,
|
|
3822
3810
|
"internal-error"
|
|
3823
3811
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3824
|
-
),
|
|
3812
|
+
), ji(t, new qe(n), n.bypassAuthState);
|
|
3825
3813
|
}
|
|
3826
3814
|
/**
|
|
3827
3815
|
* @license
|
|
@@ -4319,7 +4307,7 @@ function Vr(n) {
|
|
|
4319
4307
|
"auth-domain-config-required"
|
|
4320
4308
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
4321
4309
|
);
|
|
4322
|
-
const t = e.emulator ?
|
|
4310
|
+
const t = e.emulator ? je(e, Dr) : `https://${n.config.authDomain}/${Ur}`, i = {
|
|
4323
4311
|
apiKey: e.apiKey,
|
|
4324
4312
|
appName: n.name,
|
|
4325
4313
|
v: se
|
|
@@ -4382,7 +4370,7 @@ const Hr = {
|
|
|
4382
4370
|
resizable: "yes",
|
|
4383
4371
|
statusbar: "yes",
|
|
4384
4372
|
toolbar: "no"
|
|
4385
|
-
},
|
|
4373
|
+
}, jr = 500, Wr = 600, Br = "_blank", Gr = "http://localhost";
|
|
4386
4374
|
class pt {
|
|
4387
4375
|
constructor(e) {
|
|
4388
4376
|
this.window = e, this.associatedEvent = null;
|
|
@@ -4395,7 +4383,7 @@ class pt {
|
|
|
4395
4383
|
}
|
|
4396
4384
|
}
|
|
4397
4385
|
}
|
|
4398
|
-
function zr(n, e, t, i =
|
|
4386
|
+
function zr(n, e, t, i = jr, r = Wr) {
|
|
4399
4387
|
const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
|
|
4400
4388
|
let c = "";
|
|
4401
4389
|
const a = Object.assign(Object.assign({}, Hr), {
|
|
@@ -4404,7 +4392,7 @@ function zr(n, e, t, i = Wr, r = jr) {
|
|
|
4404
4392
|
top: s,
|
|
4405
4393
|
left: o
|
|
4406
4394
|
}), l = w().toLowerCase();
|
|
4407
|
-
t && (c = Ft(l) ?
|
|
4395
|
+
t && (c = Ft(l) ? Br : t), xt(l) && (e = e || Gr, a.scrollbars = "yes");
|
|
4408
4396
|
const d = Object.entries(a).reduce((y, [T, h]) => `${y}${T}=${h},`, "");
|
|
4409
4397
|
if (bi(l) && c !== "_self")
|
|
4410
4398
|
return qr(e || "", c), new pt(null);
|
|
@@ -4481,7 +4469,7 @@ async function mt(n, e, t, i, r, s) {
|
|
|
4481
4469
|
return `${Xr(n)}?${oe(c).slice(1)}${l}`;
|
|
4482
4470
|
}
|
|
4483
4471
|
function Xr({ config: n }) {
|
|
4484
|
-
return n.emulator ?
|
|
4472
|
+
return n.emulator ? je(n, Jr) : `https://${n.authDomain}/${Kr}`;
|
|
4485
4473
|
}
|
|
4486
4474
|
/**
|
|
4487
4475
|
* @license
|
|
@@ -4557,7 +4545,7 @@ class Qr {
|
|
|
4557
4545
|
return this.originValidationPromises[t] || (this.originValidationPromises[t] = Pr(e)), this.originValidationPromises[t];
|
|
4558
4546
|
}
|
|
4559
4547
|
get _shouldInitProactively() {
|
|
4560
|
-
return
|
|
4548
|
+
return Wt() || Be() || ke();
|
|
4561
4549
|
}
|
|
4562
4550
|
}
|
|
4563
4551
|
const Zr = Qr;
|
|
@@ -4658,7 +4646,7 @@ function ns(n) {
|
|
|
4658
4646
|
apiHost: "identitytoolkit.googleapis.com",
|
|
4659
4647
|
tokenApiHost: "securetoken.googleapis.com",
|
|
4660
4648
|
apiScheme: "https",
|
|
4661
|
-
sdkClientVersion:
|
|
4649
|
+
sdkClientVersion: Bt(n)
|
|
4662
4650
|
}, l = new Ni(i, r, s, a);
|
|
4663
4651
|
return xi(l, t), l;
|
|
4664
4652
|
},
|
|
@@ -4765,7 +4753,7 @@ ns(
|
|
|
4765
4753
|
"Browser"
|
|
4766
4754
|
/* ClientPlatform.BROWSER */
|
|
4767
4755
|
);
|
|
4768
|
-
var cs = { firebase: { apiKey: "
|
|
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/" };
|
|
4769
4757
|
const us = {
|
|
4770
4758
|
key: 2,
|
|
4771
4759
|
class: "h-full w-full"
|
|
@@ -4775,44 +4763,44 @@ const us = {
|
|
|
4775
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();
|
|
4776
4764
|
ie(
|
|
4777
4765
|
() => {
|
|
4778
|
-
var
|
|
4779
|
-
return (
|
|
4766
|
+
var f;
|
|
4767
|
+
return (f = l.value) == null ? void 0 : f._id;
|
|
4780
4768
|
},
|
|
4781
|
-
(
|
|
4782
|
-
|
|
4769
|
+
(f) => {
|
|
4770
|
+
f && _n(f);
|
|
4783
4771
|
},
|
|
4784
4772
|
{ immediate: !0 }
|
|
4785
4773
|
);
|
|
4786
4774
|
const d = te(!1), m = Y(() => i.version), y = Y(() => {
|
|
4787
|
-
const
|
|
4788
|
-
return `${ls.marketingV1Portal}/b/${v}/marketing/overview?showHeader=false&country=${
|
|
4775
|
+
const f = e.currentCountry.value || "MY", g = tt.getIdToken(), v = l.value._id;
|
|
4776
|
+
return `${ls.marketingV1Portal}/b/${v}/marketing/overview?showHeader=false&country=${f}&token=${g}`;
|
|
4789
4777
|
});
|
|
4790
4778
|
async function T() {
|
|
4791
4779
|
if (Un().length) {
|
|
4792
4780
|
console.warn("CONNECT: initFirebase: Firebase already initialized");
|
|
4793
4781
|
return;
|
|
4794
4782
|
}
|
|
4795
|
-
const
|
|
4796
|
-
await zi(v, g), xn(
|
|
4783
|
+
const f = Dn(cs.firebase), g = await fn.getCustomToken(), v = os();
|
|
4784
|
+
await zi(v, g), xn(f), console.log("initFirebase", f);
|
|
4797
4785
|
}
|
|
4798
4786
|
const h = async () => {
|
|
4799
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;
|
|
4800
4788
|
};
|
|
4801
4789
|
return un(() => {
|
|
4802
4790
|
if (Fn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
|
|
4803
|
-
const
|
|
4804
|
-
|
|
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
|
+
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);
|
|
4805
4793
|
}
|
|
4806
4794
|
l.value != null && (console.log("App mounted, forceRerender"), h());
|
|
4807
4795
|
}), ie(
|
|
4808
4796
|
() => e.currentBusiness.value,
|
|
4809
|
-
async (
|
|
4810
|
-
console.log("Current business changed"),
|
|
4797
|
+
async (f, g) => {
|
|
4798
|
+
console.log("Current business changed"), f != null && f._id != g._id && (console.log("forceRerender when business changes", f, g), h());
|
|
4811
4799
|
}
|
|
4812
|
-
), (
|
|
4813
|
-
_(d) && _(m) === "v2" ? (
|
|
4814
|
-
_(d) && _(m) === "v2" && _(c) ? (
|
|
4815
|
-
_(d) && _(m) !== "v2" ? (
|
|
4800
|
+
), (f, g) => (W(), me(It, null, [
|
|
4801
|
+
_(d) && _(m) === "v2" ? (W(), Oe(_(hn), { key: 0 })) : Pe("", !0),
|
|
4802
|
+
_(d) && _(m) === "v2" && _(c) ? (W(), Oe(si, { key: 1 })) : Pe("", !0),
|
|
4803
|
+
_(d) && _(m) !== "v2" ? (W(), me("div", us, [
|
|
4816
4804
|
S(kn, {
|
|
4817
4805
|
json: { url: _(y) }
|
|
4818
4806
|
}, null, 8, ["json"]),
|