@feedmepos/mf-connect 0.1.111-prod → 0.1.113-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-D3pYl3WL.js → App-2J4yDonr.js} +83 -80
- package/dist/{Bin-DOZqpbYH.js → Bin-BU_hVuxJ.js} +8 -8
- package/dist/{Broadcast-DZ4SP99P.js → Broadcast-CoirZUyr.js} +11 -11
- package/dist/{CampaignAnalytic-cFKvCgxX.js → CampaignAnalytic-DUUmFMvy.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B0eVEubS.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BZirReIy.js} +49 -32
- package/dist/Card-DS2K_LFv.js +1085 -0
- package/dist/{Collections-9QK5hbLo.js → Collections-BFdRdPHR.js} +9 -9
- package/dist/{Credit-8Ouy4O9a.js → Credit-CODfiox3.js} +11 -11
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CJA-yunY.js → DateRangeChip.vue_vue_type_script_setup_true_lang-B2T5G1hZ.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYxswo-Z.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DyIOw_HH.js} +34 -33
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Dv0q3B8m.js → EffectSheet.vue_vue_type_style_index_0_lang-KvZebiOu.js} +6 -6
- package/dist/{Experience-DMh4hR1S.js → Experience-BGBWc8Ep.js} +12 -12
- package/dist/{FileSaver.min-Bx9mdUgJ.js → FileSaver.min-DJAN3Eu0.js} +1 -1
- package/dist/{Game-CL0TZvg1.js → Game-6yyn0uAd.js} +12 -12
- package/dist/GiftCardSetup-B096bTm0.js +748 -0
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Bz5kIfoM.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-ChvUXdF-.js} +7 -7
- package/dist/{Goals-Dz5Vp-lj.js → Goals-Db2mwbRo.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CaPDI3vY.js → ImageInput.vue_vue_type_script_setup_true_lang-xdEzwMcS.js} +1 -1
- package/dist/{Index-kH8aAegB.js → Index-580WNkG2.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CFrgC3Ka.js → LocationPicker.vue_vue_type_script_setup_true_lang-BkAQXKNJ.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DPIFLdBc.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CR6sSnx4.js} +1 -1
- package/dist/{LoyaltyDashboard-BBxEoWol.js → LoyaltyDashboard-Clr2aiUP.js} +15 -15
- package/dist/{MainLayout-2BLwDyHQ.js → MainLayout-_iCyT5mw.js} +3 -3
- package/dist/{Marketing-C4OnSV-c.js → Marketing-fq1wxANq.js} +4 -4
- package/dist/{MarketingMaterialEdit-DFhpsI2-.js → MarketingMaterialEdit-0h7E0n5e.js} +6 -6
- package/dist/{Member-CT9WwxP0.js → Member-BfRy196y.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-C7yznkUn.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-BAR44Qcp.js} +26 -25
- package/dist/{MemberImportHistory-B__BFID7.js → MemberImportHistory-C4622Ivs.js} +7 -7
- package/dist/{MemberList-DgLI4wty.js → MemberList-DqtsMN_N.js} +14 -14
- package/dist/{MemberTransactions-UFx_DZYe.js → MemberTransactions-DsUoFg3z.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BFjZA8Y6.js → MessageInput.vue_vue_type_script_setup_true_lang-CzFMUgXM.js} +3369 -3290
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Df9bxbUl.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CVQYcuQ6.js} +1 -1
- package/dist/{Mission-CawzGzDu.js → Mission-B0GO4LiM.js} +13 -13
- package/dist/{Overview-D19oSo24.js → Overview-CVITimwN.js} +57 -56
- package/dist/{Overview-CAtTlEVa.js → Overview-XpJJmHqs.js} +4 -4
- package/dist/{Point-BPAGmKAj.js → Point-B7aCrMkI.js} +13 -13
- package/dist/{Promotion-B0Uf9vjL.js → Promotion-DfVcuXHy.js} +13 -13
- package/dist/{Queue-CJEAFss_.js → Queue-BT7O2cvj.js} +20 -19
- package/dist/{Record-s6hSQG2P.js → Record-CAc030dz.js} +9 -9
- package/dist/{Review-DhNCbAOm.js → Review-CyXo4GTY.js} +2 -2
- package/dist/{ReviewFacebookCallback-DeZqcpJo.js → ReviewFacebookCallback--IcyheQA.js} +5 -5
- package/dist/{ReviewGoogleCallback-D8ENWii2.js → ReviewGoogleCallback-BxiFOl0B.js} +5 -5
- package/dist/{Reward-BT00QsXL.js → Reward-ChfNtdwX.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DaZDGhbm.js → RewardGroup.vue_vue_type_script_setup_true_lang-CpQu_QBQ.js} +25 -24
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BvxbKSkB.js → RuleGroup.vue_vue_type_script_setup_true_lang--5K-qagY.js} +17 -16
- package/dist/{Segment-BuGhX9zg.js → Segment-H2zBDZeh.js} +32 -31
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DB718_4P.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-B0jCJ-Xq.js} +24 -23
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CkgXxy0C.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DW_ViNZM.js} +4 -4
- package/dist/{Setting-BOWPp05N.js → Setting-D4XOHSHT.js} +56 -56
- package/dist/{SettingAdvertisements-aqFErKAr.js → SettingAdvertisements-DPQHP3-B.js} +12 -12
- package/dist/{Settings-DekXvE-R.js → Settings-Dt_oLoGl.js} +5 -5
- package/dist/Store-B2f5HVQc.js +2622 -0
- package/dist/{StoreRewards-D2pTL2oA.js → StoreRewards-QxfaEt9f.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Db2cd6ny.js +1264 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C-C3RSeW.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-D9L-AayN.js} +2 -2
- package/dist/{Tier-OyE8oH2r.js → Tier-BSk4rBm8.js} +104 -103
- package/dist/{Title-DAl7CKL_.js → Title-CIzpB8TT.js} +34 -33
- package/dist/Transaction-BjxxNEHa.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-C0yHxQVr.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BMutYxOU.js} +6 -6
- package/dist/{Voucher-D2QGWSxs.js → Voucher-B2lFq21Y.js} +18 -18
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Bt2YB745.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BWV631It.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BzCL64Jo.js → ZodTextField.vue_vue_type_script_setup_true_lang-BCoB0Fsa.js} +2 -2
- package/dist/{app-QxosLNkH.js → app-DgFVWdhA.js} +5693 -4883
- package/dist/app.js +1 -1
- package/dist/base.export-B6Rojjek.js +75 -0
- package/dist/{business-CbqG6NXr.js → business-C6ID0exl.js} +1 -1
- package/dist/{campaign-Rj7oDBnN.js → campaign-BgSJXWdU.js} +2 -2
- package/dist/{campaign-Co4Lq-Wz.js → campaign-DDfFBFye.js} +8 -8
- package/dist/{campaign.enum-B7vdNYKd.js → campaign.enum-CVvm0LMm.js} +1 -1
- package/dist/{campaign.fn-DolD3lYJ.js → campaign.fn-DRabv93K.js} +164 -164
- package/dist/{collectible.enum-BsQseg7-.js → collectible.enum-DGQVW464.js} +1 -1
- package/dist/{collection.fn-EbUIyB1X.js → collection.fn-dV4F8R-j.js} +2 -2
- package/dist/currency-DlHi_3WN.js +7 -0
- package/dist/{effect-B_91OlcX.js → effect-BJgmiWY4.js} +1 -1
- package/dist/{email-addresses-DXnYZG-e.js → email-addresses-3GTx_xTh.js} +2 -2
- package/dist/{helper-_uhiXya1.js → helper-BX0JQP06.js} +1 -1
- package/dist/{index-BWgc2-Qz.js → index-2xed2K8D.js} +1 -1
- package/dist/index-BHT6cvWA.js +738 -0
- package/dist/{index-CWUmrVo_.js → index-BIpAzktM.js} +795 -789
- package/dist/{index-DlQJZNwD.js → index-BeCKw7Y3.js} +4 -1
- package/dist/{index-xuFTeVrb.js → index-Bl5aHABH.js} +10 -9
- package/dist/{index-Cp7oHMm3.js → index-CNULhBPM.js} +17 -16
- package/dist/{index-DzBzClHP.js → index-CiFReW-F.js} +1 -1
- package/dist/{index-aCuOvuEC.js → index-CmhDYsk6.js} +20 -14
- package/dist/index-Cnw0B8Lc.js +53 -0
- package/dist/{index-Df4l6y-S.js → index-CtBLnWVG.js} +1805 -2128
- package/dist/{index-BZ2b0Pk6.js → index-DRNdJ_KC.js} +3 -3
- package/dist/{index-uuNGb1nv.js → index-DdMVrWZy.js} +4 -3
- package/dist/{index-CDm0BWa3.js → index-DeNbsrQx.js} +1 -1
- package/dist/{index-BBihP1s2.js → index-QaWLGgEC.js} +2 -2
- package/dist/{index-tbo0pMIu.js → index-R0qlOO6J.js} +1 -1
- package/dist/{index-CzYxnDWP.js → index-Y2Pu1YkB.js} +11 -6
- package/dist/{index-C_1iqF1Q.js → index-nmw7_9ZE.js} +1 -1
- package/dist/{index-DuhRCI0L.js → index-o2OQljHs.js} +1 -1
- package/dist/{index-DlGnYR5y.js → index-uXgPJlic.js} +3 -3
- package/dist/{index.esm2017-B72iWwk_.js → index.esm2017-Dum0onrS.js} +1 -1
- package/dist/{loading-rIhCiB_S.js → loading-B2mSdkfy.js} +1 -1
- package/dist/{lodash-B6fOjfjd.js → lodash-DtOypaKt.js} +1 -1
- package/dist/{member-import-CbHn7zss.js → member-import-C2pLnh44.js} +1 -1
- package/dist/{membership-DkJN7jyQ.js → membership-BWyBGF4n.js} +3 -3
- package/dist/{money-ChbDx6Nq.js → money-3lCCVCeP.js} +1 -1
- package/dist/{number-9TEd27Ku.js → number-zlqy2MLG.js} +1 -1
- package/dist/objectid-b2KGvMA7.js +145 -0
- package/dist/{onboarding-BN3MKVRs.js → onboarding-BqD3B4M1.js} +3 -3
- package/dist/{onboardingSetup-D9xhdgS3.js → onboardingSetup-CCQ90jg7.js} +2 -2
- package/dist/{plugins-CCibSJZa.js → plugins-Bj3npYnL.js} +3 -3
- package/dist/{reward-DjasF-NL.js → reward-5dDuZEb7.js} +1 -1
- package/dist/{rule-DqeChj0e.js → rule-NqLeSyoO.js} +3 -3
- package/dist/{rule-builder-DT854ycI.js → rule-builder-BzYwbbj4.js} +1 -1
- package/dist/{template-BeCVA0-N.js → template-fjUz6xrU.js} +7 -7
- package/dist/{timezone-D0nC1LDx.js → timezone-B0lkgvh-.js} +1 -1
- package/dist/{transaction.fn-BkF4Ad2z.js → transaction.fn-CACuVUBe.js} +2 -2
- package/dist/{trigger-CxpXoQJO.js → trigger-BKJwKTJx.js} +14 -14
- package/dist/{useMarketingMaterialActions-p0-fyMkm.js → useMarketingMaterialActions-DERvOmen.js} +3 -3
- package/dist/{usePagination-CrC-1v4L.js → usePagination-FkjroUq2.js} +1 -1
- package/dist/{user-CrylHgF1.js → user-H9MnsLbu.js} +1 -1
- package/dist/{vue-i18n-BjtkXdmG.js → vue-i18n-DbJO6sZW.js} +356 -356
- package/dist/{xlsx-CJNYF7-l.js → xlsx-BVmtIl_i.js} +166 -166
- package/dist/{zod-Dzn9S95S.js → zod-DI7OBdxu.js} +1 -1
- package/package.json +1 -1
- package/dist/Card-B5ni027Q.js +0 -911
- package/dist/Store-DpVlMuau.js +0 -1998
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CNDv6eiZ.js +0 -1009
- package/dist/Transaction-mvKzTgLx.js +0 -39
- package/dist/export-D0hWZSfH.js +0 -97
- package/dist/objectid-CGol1NeA.js +0 -145
|
@@ -2,124 +2,124 @@ import { defineComponent as xe, ref as ee, h as H, Comment as cn, computed as ne
|
|
|
2
2
|
import { useRouter as yt, useRoute as wt, RouterView as hn } from "vue-router";
|
|
3
3
|
import { useCoreStore as ge, FeedMeAuth as fn } from "@feedmepos/mf-common";
|
|
4
4
|
import { u as pn } from "./app-wDQR6dpb.js";
|
|
5
|
-
import { u as mn } from "./business-
|
|
6
|
-
import "./index-
|
|
5
|
+
import { u as mn } from "./business-C6ID0exl.js";
|
|
6
|
+
import "./index-DeNbsrQx.js";
|
|
7
7
|
import { components as G, useSnackbar as gn, useDialog as _n } from "@feedmepos/ui-library";
|
|
8
|
-
import { u as Tt } from "./vue-i18n-
|
|
9
|
-
import { m as vn } from "./index-
|
|
10
|
-
import { C as Xe } from "./timezone-
|
|
11
|
-
import { u as In } from "./onboarding-
|
|
12
|
-
import { R as
|
|
8
|
+
import { u as Tt } from "./vue-i18n-DbJO6sZW.js";
|
|
9
|
+
import { m as vn } from "./index-CiFReW-F.js";
|
|
10
|
+
import { C as Xe } from "./timezone-B0lkgvh-.js";
|
|
11
|
+
import { u as In } from "./onboarding-BqD3B4M1.js";
|
|
12
|
+
import { R as p, A as yn, a as Qe } from "./app-DgFVWdhA.js";
|
|
13
13
|
import { J as wn } from "./JsonViewer-v8_C7l5N.js";
|
|
14
|
-
import { r as Le, L as Tn, g as kt, i as kn, a as bn, _ as Ze, C as et, b as En, S as re, c as A, d as Y, E as Fe, e as Sn, f as bt, h as Rn, j as An, k as Et, l as w, m as Pn, F as Ve, n as Cn, q as se, o as Nn, p as On, s as Ln, t as Mn, u as Un } from "./index.esm2017-
|
|
14
|
+
import { r as Le, L as Tn, g as kt, i as kn, a as bn, _ as Ze, C as et, b as En, S as re, c as A, d as Y, E as Fe, e as Sn, f as bt, h as Rn, j as An, k as Et, l as w, m as Pn, F as Ve, n as Cn, q as se, o as Nn, p as On, s as Ln, t as Mn, u as Un } from "./index.esm2017-Dum0onrS.js";
|
|
15
15
|
import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
|
|
16
|
-
import { S as tt, c as Dn } from "./index-
|
|
16
|
+
import { S as tt, c as Dn } from "./index-BIpAzktM.js";
|
|
17
17
|
const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Vn = /* @__PURE__ */ xe({
|
|
18
18
|
__name: "NavigationTab",
|
|
19
19
|
setup(n) {
|
|
20
20
|
const { t: e, locale: t } = Tt(), i = In(), r = ee(), s = [
|
|
21
21
|
{
|
|
22
22
|
label: e("connect.navigation.analytic"),
|
|
23
|
-
value:
|
|
23
|
+
value: p["$connect-ANALYTIC"]
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
label: e("connect.navigation.campaign"),
|
|
27
|
-
value:
|
|
27
|
+
value: p["$connect-CAMPAIGN"],
|
|
28
28
|
children: [
|
|
29
29
|
{
|
|
30
30
|
label: e("connect.navigation.promotion"),
|
|
31
|
-
value:
|
|
31
|
+
value: p["$connect-CAMPAIGN_PROMOTION"]
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
label: e("connect.navigation.voucher"),
|
|
35
|
-
value:
|
|
35
|
+
value: p["$connect-CAMPAIGN_VOUCHER"]
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
label: e("connect.navigation.broadcast"),
|
|
39
|
-
value:
|
|
39
|
+
value: p["$connect-CAMPAIGN_BROADCAST"]
|
|
40
40
|
}
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
label: e("connect.navigation.program"),
|
|
45
|
-
value:
|
|
45
|
+
value: p["$connect-PROGRAM"],
|
|
46
46
|
children: [
|
|
47
47
|
{
|
|
48
48
|
label: e("connect.navigation.tier"),
|
|
49
|
-
value:
|
|
49
|
+
value: p["$connect-PROGRAM_TIER"]
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
label: e("connect.navigation.title"),
|
|
53
|
-
value:
|
|
53
|
+
value: p["$connect-PROGRAM_TITLE"]
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
label: e("connect.navigation.experience"),
|
|
57
|
-
value:
|
|
57
|
+
value: p["$connect-PROGRAM_EXPERIENCE"]
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
label: e("connect.navigation.point"),
|
|
61
|
-
value:
|
|
61
|
+
value: p["$connect-PROGRAM_POINT"],
|
|
62
62
|
badge: () => H(G.FmPill, { variant: "premium" })
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
label: e("connect.navigation.credit"),
|
|
66
|
-
value:
|
|
66
|
+
value: p["$connect-PROGRAM_CREDIT"]
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
label: e("connect.navigation.game"),
|
|
70
|
-
value:
|
|
70
|
+
value: p["$connect-PROGRAM_GAME"],
|
|
71
71
|
badge: () => H(G.FmPill, { variant: "premium" })
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
label: "Mission",
|
|
75
|
-
value:
|
|
75
|
+
value: p["$connect-PROGRAM_MISSION"]
|
|
76
76
|
}
|
|
77
77
|
]
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
label: e("connect.navigation.loyalty"),
|
|
81
|
-
value:
|
|
81
|
+
value: p["$connect-LOYALTY"],
|
|
82
82
|
children: [
|
|
83
83
|
{
|
|
84
84
|
label: e("connect.navigation.member"),
|
|
85
|
-
value:
|
|
85
|
+
value: p["$connect-LOYALTY_MEMBER_LIST"]
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
label: e("connect.navigation.segments"),
|
|
89
|
-
value:
|
|
89
|
+
value: p["$connect-LOYALTY_SEGMENT"],
|
|
90
90
|
badge: () => H(G.FmPill, { variant: "premium" })
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
label: e("connect.navigation.card"),
|
|
94
|
-
value:
|
|
94
|
+
value: p["$connect-LOYALTY_CARD"],
|
|
95
95
|
badge: () => H(G.FmPill, { variant: "premium" })
|
|
96
96
|
}
|
|
97
97
|
]
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
label: e("connect.navigation.referral"),
|
|
101
|
-
value:
|
|
101
|
+
value: p["$connect-REFERRAL"],
|
|
102
102
|
badge: () => H(G.FmPill, { variant: "premium" })
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
label: e("connect.navigation.store"),
|
|
106
|
-
value:
|
|
106
|
+
value: p["$connect-STORE"]
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
label: e("connect.navigation.transaction"),
|
|
110
|
-
value:
|
|
110
|
+
value: p["$connect-TRANSACTION"]
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
label: e("connect.navigation.marketingMaterials"),
|
|
114
|
-
value:
|
|
114
|
+
value: p["$connect-MARKETING"]
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
label: e("connect.navigation.review"),
|
|
118
|
-
value:
|
|
118
|
+
value: p["$connect-REVIEW"]
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
121
|
label: e("connect.navigation.goals"),
|
|
122
|
-
value:
|
|
122
|
+
value: p["$connect-GOALS"],
|
|
123
123
|
badge: () => i.goalsRemaining > 0 ? H(G.FmBadge, {
|
|
124
124
|
variant: "numeric",
|
|
125
125
|
inline: !0,
|
|
@@ -128,21 +128,24 @@ const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class
|
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
label: e("connect.navigation.setting"),
|
|
131
|
-
value:
|
|
131
|
+
value: p["$connect-SETTING"]
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
label: e("connect.navigation.bin"),
|
|
135
|
-
value:
|
|
135
|
+
value: p["$connect-BIN"]
|
|
136
136
|
}
|
|
137
137
|
], o = yt(), c = wt(), a = s.reduce((h, y) => [...(y.children ?? []).map((_) => _.value), ...h, y.value], []), l = ge(), d = ne(() => {
|
|
138
138
|
const h = l.currentCountry.value || "MY";
|
|
139
139
|
return console.log(`[MF] Timezone set to: ${Xe[h]}`), Xe[h];
|
|
140
140
|
});
|
|
141
141
|
pe(
|
|
142
|
-
()
|
|
142
|
+
// Watch `route.matched`, not `route`: `useRoute()` returns a reactive object
|
|
143
|
+
// whose identity never changes, so watching it directly fired once via
|
|
144
|
+
// `immediate` and the highlight then stayed on whatever page loaded first.
|
|
145
|
+
() => c.matched,
|
|
143
146
|
(h) => {
|
|
144
|
-
const
|
|
145
|
-
r.value =
|
|
147
|
+
const _ = h.map((f) => f.name).reverse().find((f) => a.includes(f));
|
|
148
|
+
_ && (r.value = _);
|
|
146
149
|
},
|
|
147
150
|
{ immediate: !0 }
|
|
148
151
|
), pe(
|
|
@@ -155,18 +158,18 @@ const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class
|
|
|
155
158
|
},
|
|
156
159
|
{ immediate: !0 }
|
|
157
160
|
);
|
|
158
|
-
async function
|
|
161
|
+
async function m(h) {
|
|
159
162
|
await o.push({ name: h });
|
|
160
163
|
}
|
|
161
164
|
return (h, y) => {
|
|
162
|
-
var
|
|
165
|
+
var f;
|
|
163
166
|
const _ = Z("FmCollapsibleTabs");
|
|
164
167
|
return j(), me("div", xn, [
|
|
165
168
|
S(_, {
|
|
166
169
|
class: "border-fm-color-neutral-gray-100 border-r px-4",
|
|
167
|
-
"model-value": (
|
|
170
|
+
"model-value": (f = g(r)) == null ? void 0 : f.toString(),
|
|
168
171
|
items: s,
|
|
169
|
-
"onUpdate:modelValue":
|
|
172
|
+
"onUpdate:modelValue": m
|
|
170
173
|
}, null, 8, ["model-value"]),
|
|
171
174
|
v("div", Fn, [
|
|
172
175
|
v("div", null, "Timezone: " + R(g(d).split("/")[1].replace("_", " ")), 1),
|
|
@@ -220,14 +223,14 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
|
|
|
220
223
|
},
|
|
221
224
|
{ immediate: !0 }
|
|
222
225
|
);
|
|
223
|
-
async function
|
|
224
|
-
o.value = !1, await i.push({ name:
|
|
226
|
+
async function m() {
|
|
227
|
+
o.value = !1, await i.push({ name: p["$connect-MARKETING"] });
|
|
225
228
|
}
|
|
226
229
|
function h() {
|
|
227
230
|
Hn(), o.value = !1;
|
|
228
231
|
}
|
|
229
232
|
return (y, _) => {
|
|
230
|
-
const
|
|
233
|
+
const f = Z("FmIcon"), I = Z("FmCard"), T = Z("FmButton"), M = Z("FmDialog");
|
|
231
234
|
return j(), Oe(M, {
|
|
232
235
|
modelValue: o.value,
|
|
233
236
|
"onUpdate:modelValue": _[0] || (_[0] = (k) => o.value = k),
|
|
@@ -239,7 +242,7 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
|
|
|
239
242
|
"dialog-header": Q(() => [
|
|
240
243
|
v("div", jn, [
|
|
241
244
|
v("div", Wn, [
|
|
242
|
-
S(
|
|
245
|
+
S(f, {
|
|
243
246
|
name: "auto_awesome",
|
|
244
247
|
size: "sm",
|
|
245
248
|
color: "primary"
|
|
@@ -258,7 +261,7 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
|
|
|
258
261
|
size: "lg",
|
|
259
262
|
label: g(t)("connect.marketing.whatsNew.cta"),
|
|
260
263
|
"append-icon": "arrow_forward",
|
|
261
|
-
onClick:
|
|
264
|
+
onClick: m
|
|
262
265
|
}, null, 8, ["label"]),
|
|
263
266
|
S(T, {
|
|
264
267
|
variant: "tertiary",
|
|
@@ -280,7 +283,7 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
|
|
|
280
283
|
}, {
|
|
281
284
|
default: Q(() => [
|
|
282
285
|
v("div", Jn, [
|
|
283
|
-
S(
|
|
286
|
+
S(f, {
|
|
284
287
|
name: k.icon,
|
|
285
288
|
size: "md",
|
|
286
289
|
color: "primary"
|
|
@@ -300,7 +303,7 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
|
|
|
300
303
|
}, {
|
|
301
304
|
default: Q(() => [
|
|
302
305
|
v("div", Qn, [
|
|
303
|
-
S(
|
|
306
|
+
S(f, {
|
|
304
307
|
name: "lightbulb",
|
|
305
308
|
size: "md",
|
|
306
309
|
color: "primary"
|
|
@@ -1017,7 +1020,7 @@ async function ve(n) {
|
|
|
1017
1020
|
);
|
|
1018
1021
|
const s = r.users[0];
|
|
1019
1022
|
n._notifyReloadListener(s);
|
|
1020
|
-
const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = Ii(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1,
|
|
1023
|
+
const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = Ii(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
|
|
1021
1024
|
uid: s.localId,
|
|
1022
1025
|
displayName: s.displayName || null,
|
|
1023
1026
|
photoURL: s.photoUrl || null,
|
|
@@ -1029,7 +1032,7 @@ async function ve(n) {
|
|
|
1029
1032
|
metadata: new Ue(s.createdAt, s.lastLoginAt),
|
|
1030
1033
|
isAnonymous: d
|
|
1031
1034
|
};
|
|
1032
|
-
Object.assign(n,
|
|
1035
|
+
Object.assign(n, m);
|
|
1033
1036
|
}
|
|
1034
1037
|
async function vi(n) {
|
|
1035
1038
|
const e = Y(n);
|
|
@@ -1289,7 +1292,7 @@ class C {
|
|
|
1289
1292
|
}
|
|
1290
1293
|
static _fromJSON(e, t) {
|
|
1291
1294
|
var i, r, s, o, c, a, l, d;
|
|
1292
|
-
const
|
|
1295
|
+
const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, h = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, _ = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, f = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, I = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, T = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
|
|
1293
1296
|
u(
|
|
1294
1297
|
k && Ye,
|
|
1295
1298
|
e,
|
|
@@ -1302,7 +1305,7 @@ class C {
|
|
|
1302
1305
|
e,
|
|
1303
1306
|
"internal-error"
|
|
1304
1307
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1305
|
-
), U(
|
|
1308
|
+
), U(m, e.name), U(h, e.name), u(
|
|
1306
1309
|
typeof Ke == "boolean",
|
|
1307
1310
|
e,
|
|
1308
1311
|
"internal-error"
|
|
@@ -1312,17 +1315,17 @@ class C {
|
|
|
1312
1315
|
e,
|
|
1313
1316
|
"internal-error"
|
|
1314
1317
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
1315
|
-
), U(y, e.name), U(_, e.name), U(
|
|
1318
|
+
), U(y, e.name), U(_, e.name), U(f, e.name), U(I, e.name), U(T, e.name), U(M, e.name);
|
|
1316
1319
|
const Ae = new C({
|
|
1317
1320
|
uid: k,
|
|
1318
1321
|
auth: e,
|
|
1319
1322
|
email: h,
|
|
1320
1323
|
emailVerified: Ke,
|
|
1321
|
-
displayName:
|
|
1324
|
+
displayName: m,
|
|
1322
1325
|
isAnonymous: Je,
|
|
1323
1326
|
photoURL: _,
|
|
1324
1327
|
phoneNumber: y,
|
|
1325
|
-
tenantId:
|
|
1328
|
+
tenantId: f,
|
|
1326
1329
|
stsTokenManager: on,
|
|
1327
1330
|
createdAt: T,
|
|
1328
1331
|
lastLoginAt: M
|
|
@@ -1503,8 +1506,8 @@ class K {
|
|
|
1503
1506
|
try {
|
|
1504
1507
|
const d = await l._get(o);
|
|
1505
1508
|
if (d) {
|
|
1506
|
-
const
|
|
1507
|
-
l !== s && (c =
|
|
1509
|
+
const m = C._fromJSON(e, d);
|
|
1510
|
+
l !== s && (c = m), s = l;
|
|
1508
1511
|
break;
|
|
1509
1512
|
}
|
|
1510
1513
|
} catch {
|
|
@@ -3389,8 +3392,8 @@ class Qi {
|
|
|
3389
3392
|
}, i);
|
|
3390
3393
|
o = {
|
|
3391
3394
|
messageChannel: r,
|
|
3392
|
-
onMessage(
|
|
3393
|
-
const h =
|
|
3395
|
+
onMessage(m) {
|
|
3396
|
+
const h = m;
|
|
3394
3397
|
if (h.data.eventId === l)
|
|
3395
3398
|
switch (h.data.status) {
|
|
3396
3399
|
case "ack":
|
|
@@ -4383,18 +4386,18 @@ function Br(n, e, t, i = $r, r = Hr) {
|
|
|
4383
4386
|
const d = Object.entries(a).reduce((h, [y, _]) => `${h}${y}=${_},`, "");
|
|
4384
4387
|
if (Ti(l) && c !== "_self")
|
|
4385
4388
|
return Gr(e || "", c), new pt(null);
|
|
4386
|
-
const
|
|
4389
|
+
const m = window.open(e || "", c, d);
|
|
4387
4390
|
u(
|
|
4388
|
-
|
|
4391
|
+
m,
|
|
4389
4392
|
n,
|
|
4390
4393
|
"popup-blocked"
|
|
4391
4394
|
/* AuthErrorCode.POPUP_BLOCKED */
|
|
4392
4395
|
);
|
|
4393
4396
|
try {
|
|
4394
|
-
|
|
4397
|
+
m.focus();
|
|
4395
4398
|
} catch {
|
|
4396
4399
|
}
|
|
4397
|
-
return new pt(
|
|
4400
|
+
return new pt(m);
|
|
4398
4401
|
}
|
|
4399
4402
|
function Gr(n, e) {
|
|
4400
4403
|
const t = document.createElement("a");
|
|
@@ -4441,11 +4444,11 @@ async function mt(n, e, t, i, r, s) {
|
|
|
4441
4444
|
};
|
|
4442
4445
|
if (e instanceof qt) {
|
|
4443
4446
|
e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", On(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
|
|
4444
|
-
for (const [d,
|
|
4445
|
-
o[d] =
|
|
4447
|
+
for (const [d, m] of Object.entries({}))
|
|
4448
|
+
o[d] = m;
|
|
4446
4449
|
}
|
|
4447
4450
|
if (e instanceof ae) {
|
|
4448
|
-
const d = e.getScopes().filter((
|
|
4451
|
+
const d = e.getScopes().filter((m) => m !== "");
|
|
4449
4452
|
d.length > 0 && (o.scopes = d.join(","));
|
|
4450
4453
|
}
|
|
4451
4454
|
n.tenantId && (o.tid = n.tenantId);
|
|
@@ -4747,36 +4750,36 @@ const cs = {
|
|
|
4747
4750
|
}, ls = ["src"], Ss = /* @__PURE__ */ xe({
|
|
4748
4751
|
__name: "App",
|
|
4749
4752
|
setup(n) {
|
|
4750
|
-
const e = ge(), t = pn(), i = mn(), r = gn(), s = _n(), o = wt(), c = ee(o.query.showHeader !== "false"), a = ee(!1), { currentBusiness: l } = ge(), d = ee(!1),
|
|
4751
|
-
const
|
|
4752
|
-
return `${as.marketingV1Portal}/b/${T}/marketing/overview?showHeader=false&country=${
|
|
4753
|
+
const e = ge(), t = pn(), i = mn(), r = gn(), s = _n(), o = wt(), c = ee(o.query.showHeader !== "false"), a = ee(!1), { currentBusiness: l } = ge(), d = ee(!1), m = ne(() => i.version), h = ne(() => {
|
|
4754
|
+
const f = e.currentCountry.value || "MY", I = tt.getIdToken(), T = l.value._id;
|
|
4755
|
+
return `${as.marketingV1Portal}/b/${T}/marketing/overview?showHeader=false&country=${f}&token=${I}`;
|
|
4753
4756
|
});
|
|
4754
4757
|
async function y() {
|
|
4755
4758
|
if (Ln().length) {
|
|
4756
4759
|
console.warn("CONNECT: initFirebase: Firebase already initialized");
|
|
4757
4760
|
return;
|
|
4758
4761
|
}
|
|
4759
|
-
const
|
|
4760
|
-
await Bi(T, I), Un(
|
|
4762
|
+
const f = Mn(os.firebase), I = await fn.getCustomToken(), T = rs();
|
|
4763
|
+
await Bi(T, I), Un(f), console.log("initFirebase", f);
|
|
4761
4764
|
}
|
|
4762
4765
|
const _ = async () => {
|
|
4763
|
-
d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value &&
|
|
4766
|
+
d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent(Vn) : e.hideSidebarToggle(!0), await y(), a.value = !0, d.value = !0;
|
|
4764
4767
|
};
|
|
4765
4768
|
return un(() => {
|
|
4766
4769
|
if (Dn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
|
|
4767
|
-
const
|
|
4768
|
-
|
|
4770
|
+
const f = document.getElementsByClassName("app-header")[0], I = document.getElementsByClassName("app-sidebar")[0], T = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
|
|
4771
|
+
f == null || f.classList.add("!hidden"), I == null || I.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
|
|
4769
4772
|
}
|
|
4770
4773
|
l.value != null && (console.log("App mounted, forceRerender"), _());
|
|
4771
4774
|
}), pe(
|
|
4772
4775
|
() => e.currentBusiness.value,
|
|
4773
|
-
async (
|
|
4774
|
-
console.log("Current business changed"),
|
|
4776
|
+
async (f, I) => {
|
|
4777
|
+
console.log("Current business changed"), f != null && f._id != I._id && (console.log("forceRerender when business changes", f, I), _());
|
|
4775
4778
|
}
|
|
4776
|
-
), (
|
|
4777
|
-
g(d) && g(
|
|
4778
|
-
g(d) && g(
|
|
4779
|
-
g(d) && g(
|
|
4779
|
+
), (f, I) => (j(), me(It, null, [
|
|
4780
|
+
g(d) && g(m) === "v2" ? (j(), Oe(g(hn), { key: 0 })) : Pe("", !0),
|
|
4781
|
+
g(d) && g(m) === "v2" && g(c) ? (j(), Oe(ii, { key: 1 })) : Pe("", !0),
|
|
4782
|
+
g(d) && g(m) !== "v2" ? (j(), me("div", cs, [
|
|
4780
4783
|
S(wn, {
|
|
4781
4784
|
json: { url: g(h) }
|
|
4782
4785
|
}, null, 8, ["json"]),
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as C, ref as c, h as s, onMounted as x, resolveComponent as d, openBlock as S, createElementBlock as B, Fragment as M, createVNode as l, unref as o, createElementVNode as u } from "vue";
|
|
2
2
|
import { components as p } from "@feedmepos/ui-library";
|
|
3
|
-
import { u as K } from "./loading-
|
|
4
|
-
import { u as R } from "./business-
|
|
5
|
-
import { C as A } from "./campaign-
|
|
6
|
-
import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { u as K } from "./loading-B2mSdkfy.js";
|
|
4
|
+
import { u as R } from "./business-C6ID0exl.js";
|
|
5
|
+
import { C as A } from "./campaign-DDfFBFye.js";
|
|
6
|
+
import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DyIOw_HH.js";
|
|
7
7
|
import { _ as U } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
8
|
-
import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as D } from "./vue-i18n-
|
|
8
|
+
import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-DW_ViNZM.js";
|
|
9
|
+
import { u as D } from "./vue-i18n-DbJO6sZW.js";
|
|
10
10
|
import { h as E } from "./moment-D7p2TMB-.js";
|
|
11
|
-
import { p as I } from "./plugins-
|
|
12
|
-
import { c as g } from "./index-
|
|
11
|
+
import { p as I } from "./plugins-Bj3npYnL.js";
|
|
12
|
+
import { c as g } from "./index-Y2Pu1YkB.js";
|
|
13
13
|
const T = { class: "px-24 flex flex-col gap-y-16" }, $ = { class: "flex items-center justify-between w-full" }, j = { class: "flex gap-8 overflow-x-auto" }, oe = /* @__PURE__ */ C({
|
|
14
14
|
__name: "Bin",
|
|
15
15
|
setup(H) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineComponent as q, ref as C, computed as z, onMounted as G, resolveComponent as m, openBlock as d, createElementBlock as w, Fragment as v, createVNode as i, unref as a, createElementVNode as n, withCtx as S, renderList as J, createBlock as x, resolveDynamicComponent as Q, toDisplayString as u, createCommentVNode as W, h as k } from "vue";
|
|
2
2
|
import { _ as X } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as Y, components as R } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as Z } from "./plugins-
|
|
5
|
-
import { u as ee } from "./loading-
|
|
6
|
-
import { u as te } from "./business-
|
|
7
|
-
import { u as ae } from "./campaign-
|
|
8
|
-
import { a as L, b as O, g as oe } from "./campaign-
|
|
9
|
-
import { u as ne, c as se, p as ce } from "./template-
|
|
10
|
-
import { u as ie } from "./vue-i18n-
|
|
4
|
+
import { p as Z } from "./plugins-Bj3npYnL.js";
|
|
5
|
+
import { u as ee } from "./loading-B2mSdkfy.js";
|
|
6
|
+
import { u as te } from "./business-C6ID0exl.js";
|
|
7
|
+
import { u as ae } from "./campaign-BgSJXWdU.js";
|
|
8
|
+
import { a as L, b as O, g as oe } from "./campaign-DDfFBFye.js";
|
|
9
|
+
import { u as ne, c as se, p as ce } from "./template-fjUz6xrU.js";
|
|
10
|
+
import { u as ie } from "./vue-i18n-DbJO6sZW.js";
|
|
11
11
|
import { _ as re } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
12
|
-
import { _ as le } from "./MessageInput.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { _ as me } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { u as de } from "./onboardingSetup-
|
|
15
|
-
import { c as f } from "./index-
|
|
12
|
+
import { _ as le } from "./MessageInput.vue_vue_type_script_setup_true_lang-CzFMUgXM.js";
|
|
13
|
+
import { _ as me } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DyIOw_HH.js";
|
|
14
|
+
import { u as de } from "./onboardingSetup-CCQ90jg7.js";
|
|
15
|
+
import { c as f } from "./index-Y2Pu1YkB.js";
|
|
16
16
|
const pe = { class: "px-24 flex flex-col gap-y-16" }, ue = { class: "flex items-center justify-between w-full" }, fe = { class: "flex gap-8 overflow-x-auto" }, ge = { class: "space-y-8" }, ye = { class: "flex w-full gap-4 items-center" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, he = { class: "space-y-4" }, we = { class: "fm-typo-en-body-lg-600" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ce = { class: "flex items-center gap-8" }, ve = { key: 0 }, Se = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, xe = { class: "flex flex-col gap-16 text-center" }, ke = { class: "fm-typo-en-title-sm-800" }, Ae = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ee = /* @__PURE__ */ q({
|
|
17
17
|
__name: "Broadcast",
|
|
18
18
|
setup(Be) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as z, computed as P, resolveComponent as S, openBlock as r, createBlock as x, withCtx as D, createElementBlock as d, createCommentVNode as v, createElementVNode as s, toDisplayString as u, normalizeClass as K, unref as o, Fragment as L, normalizeStyle as ye, createTextVNode as xe, renderList as ee, createVNode as $, ref as Q, onMounted as ke } from "vue";
|
|
2
|
-
import { u as he } from "./vue-i18n-
|
|
2
|
+
import { u as he } from "./vue-i18n-DbJO6sZW.js";
|
|
3
3
|
import { useCoreStore as we } from "@feedmepos/mf-common";
|
|
4
|
-
import { c as U } from "./index-
|
|
5
|
-
import { u as Re } from "./loading-
|
|
6
|
-
import { s as Me, g as _e } from "./campaign-
|
|
7
|
-
import { C as be } from "./timezone-
|
|
4
|
+
import { c as U } from "./index-Y2Pu1YkB.js";
|
|
5
|
+
import { u as Re } from "./loading-B2mSdkfy.js";
|
|
6
|
+
import { s as Me, g as _e } from "./campaign-DDfFBFye.js";
|
|
7
|
+
import { C as be } from "./timezone-B0lkgvh-.js";
|
|
8
8
|
import { h as Se } from "./moment-D7p2TMB-.js";
|
|
9
9
|
import { s as Ce } from "./index-CuvNtC_M.js";
|
|
10
|
-
import { T as Ie } from "./transaction.fn-
|
|
11
|
-
import { _ as te } from "./MetricInfoTooltip.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { T as Ie } from "./transaction.fn-CACuVUBe.js";
|
|
11
|
+
import { _ as te } from "./MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CVQYcuQ6.js";
|
|
12
12
|
import { useRoute as $e, useRouter as Pe } from "vue-router";
|
|
13
13
|
const Oe = {
|
|
14
14
|
state: "populated",
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { R as RuleOperator, _ } from "./index-
|
|
2
|
-
import { i as isRuleGroup } from "./rule-builder-
|
|
3
|
-
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, createVNode, toDisplayString } from "vue";
|
|
1
|
+
import { R as RuleOperator, _ } from "./index-uXgPJlic.js";
|
|
2
|
+
import { i as isRuleGroup } from "./rule-builder-BzYwbbj4.js";
|
|
3
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, unref, createVNode, toDisplayString, createCommentVNode } from "vue";
|
|
4
4
|
import { useDialog } from "@feedmepos/ui-library";
|
|
5
|
-
import
|
|
6
|
-
import "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
5
|
+
import "./index-CtBLnWVG.js";
|
|
6
|
+
import "./index-DdMVrWZy.js";
|
|
7
|
+
import { F as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-BHT6cvWA.js";
|
|
8
|
+
import "./index-CNULhBPM.js";
|
|
9
|
+
import "./index-DRNdJ_KC.js";
|
|
10
|
+
import "./index-2xed2K8D.js";
|
|
11
|
+
import { u as useBusinessStore } from "./business-C6ID0exl.js";
|
|
10
12
|
function validateRule(data, r, date) {
|
|
11
13
|
const rules = new RuleOperator(date ?? /* @__PURE__ */ new Date());
|
|
12
14
|
function meetConditions(e) {
|
|
@@ -21,11 +23,11 @@ function validateRule(data, r, date) {
|
|
|
21
23
|
equator: t
|
|
22
24
|
// raw: data,
|
|
23
25
|
}), o;
|
|
24
|
-
const
|
|
26
|
+
const a = rules[n](
|
|
25
27
|
l,
|
|
26
28
|
t
|
|
27
29
|
);
|
|
28
|
-
return o &&
|
|
30
|
+
return o && a;
|
|
29
31
|
},
|
|
30
32
|
!0
|
|
31
33
|
);
|
|
@@ -44,7 +46,7 @@ function validateRule(data, r, date) {
|
|
|
44
46
|
}
|
|
45
47
|
return isRuleGroup(r) ? evaluateRuleResult(getRuleResults(r), r.logic) : meetConditions(r);
|
|
46
48
|
}
|
|
47
|
-
const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = { class: "fm-typo-en-title-sm-600" },
|
|
49
|
+
const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = ["disabled", "onClick"], _hoisted_3 = { class: "flex items-center gap-8" }, _hoisted_4 = { class: "fm-typo-en-title-sm-600" }, _hoisted_5 = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
48
50
|
__name: "CampaignTypeDialog",
|
|
49
51
|
props: {
|
|
50
52
|
onSelect: {
|
|
@@ -53,7 +55,7 @@ const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = {
|
|
|
53
55
|
}
|
|
54
56
|
},
|
|
55
57
|
setup(e) {
|
|
56
|
-
const o = e, n = useDialog(), t = [
|
|
58
|
+
const o = e, n = useDialog(), t = useBusinessStore(), l = [
|
|
57
59
|
{
|
|
58
60
|
title: "Promotion",
|
|
59
61
|
description: "Special offers or deals made available for a limited time",
|
|
@@ -72,12 +74,14 @@ const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = {
|
|
|
72
74
|
{
|
|
73
75
|
title: "Point",
|
|
74
76
|
description: "Points allow customers to purchase bundle items.",
|
|
75
|
-
value: F_RUNNABLE_CAMPAIGN_TYPE.enum.COIN
|
|
77
|
+
value: F_RUNNABLE_CAMPAIGN_TYPE.enum.COIN,
|
|
78
|
+
premium: !0
|
|
76
79
|
},
|
|
77
80
|
{
|
|
78
81
|
title: "Game",
|
|
79
82
|
description: "The game feature adds a fun and encourage customers to engage more.",
|
|
80
|
-
value: F_RUNNABLE_CAMPAIGN_TYPE.enum.GAME
|
|
83
|
+
value: F_RUNNABLE_CAMPAIGN_TYPE.enum.GAME,
|
|
84
|
+
premium: !0
|
|
81
85
|
},
|
|
82
86
|
{
|
|
83
87
|
title: "Credit",
|
|
@@ -85,30 +89,43 @@ const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = {
|
|
|
85
89
|
value: F_RUNNABLE_CAMPAIGN_TYPE.enum.CREDIT
|
|
86
90
|
}
|
|
87
91
|
];
|
|
88
|
-
function
|
|
89
|
-
|
|
92
|
+
function a(u) {
|
|
93
|
+
var s;
|
|
94
|
+
(s = l.find((c) => c.value === u)) != null && s.premium && !t.isPremium || (n.close(), o.onSelect(u));
|
|
90
95
|
}
|
|
91
|
-
return (
|
|
92
|
-
const c = resolveComponent("FmCard");
|
|
93
|
-
return openBlock(), createBlock(
|
|
96
|
+
return (u, s) => {
|
|
97
|
+
const c = resolveComponent("FmPill"), m = resolveComponent("FmCard");
|
|
98
|
+
return openBlock(), createBlock(m, { class: "p-24 space-y-16" }, {
|
|
94
99
|
default: withCtx(() => [
|
|
95
|
-
|
|
100
|
+
s[0] || (s[0] = createElementVNode("div", { class: "" }, [
|
|
96
101
|
createElementVNode("div", { class: "fm-typo-en-title-sm-800" }, "Add benefit"),
|
|
97
102
|
createElementVNode("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Select the benefit type that you want to reward the selected tier. ")
|
|
98
103
|
], -1)),
|
|
99
104
|
createElementVNode("div", _hoisted_1, [
|
|
100
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
105
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(l, (i) => createElementVNode("button", {
|
|
106
|
+
key: i.value,
|
|
107
|
+
type: "button",
|
|
108
|
+
disabled: i.premium && !unref(t).isPremium,
|
|
109
|
+
onClick: (d) => a(i.value),
|
|
110
|
+
class: "w-full text-left disabled:cursor-not-allowed disabled:opacity-50"
|
|
111
|
+
}, [
|
|
112
|
+
createVNode(m, {
|
|
113
|
+
variant: "outlined",
|
|
114
|
+
class: "p-16 space-y-8"
|
|
115
|
+
}, {
|
|
116
|
+
default: withCtx(() => [
|
|
117
|
+
createElementVNode("div", _hoisted_3, [
|
|
118
|
+
createElementVNode("div", _hoisted_4, toDisplayString(i.title), 1),
|
|
119
|
+
i.premium ? (openBlock(), createBlock(c, {
|
|
120
|
+
key: 0,
|
|
121
|
+
variant: "premium"
|
|
122
|
+
})) : createCommentVNode("", !0)
|
|
123
|
+
]),
|
|
124
|
+
createElementVNode("div", _hoisted_5, toDisplayString(i.description), 1)
|
|
125
|
+
]),
|
|
126
|
+
_: 2
|
|
127
|
+
}, 1024)
|
|
128
|
+
], 8, _hoisted_2)), 64))
|
|
112
129
|
])
|
|
113
130
|
]),
|
|
114
131
|
_: 1
|