@feedmepos/mf-connect 0.1.98-beta.72 → 0.1.98-beta.73
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-DpYceiwG.js → App-C4XD_vWL.js} +8 -8
- package/dist/{AuditLogs-CG98b2qE.js → AuditLogs-DpevHGsA.js} +11 -11
- package/dist/{Bin-vdipv2fF.js → Bin-FRrYZ8pV.js} +8 -8
- package/dist/{Broadcast-ChwVqheE.js → Broadcast-CoefxWt-.js} +11 -11
- package/dist/{CampaignAnalytic-4PHO849x.js → CampaignAnalytic-CdZjzsLr.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DmnN4pjm.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DQOLEDzY.js} +6 -6
- package/dist/{Card-B6ol3PQw.js → Card-BABL96V6.js} +21 -21
- package/dist/{Collections-DodNIUr1.js → Collections-D6XuhBO1.js} +8 -8
- package/dist/{Credit-CJQyAZYw.js → Credit-D2WTeN8Z.js} +12 -12
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang--FqHJ7Ez.js → DateRangeChip.vue_vue_type_script_setup_true_lang-B0KkvFWi.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CA31QP-A.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-G2oU70Ef.js} +546 -497
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DkKhdp7G.js → EffectSheet.vue_vue_type_style_index_0_lang-C4RByg0k.js} +6 -6
- package/dist/{Experience-iLAKddx_.js → Experience-CUqmspwT.js} +12 -12
- package/dist/{FileSaver.min-w_ExQ0py.js → FileSaver.min-DX17A8Gj.js} +1 -1
- package/dist/{Game-DWdUbsAg.js → Game-D8IvyDdA.js} +13 -13
- package/dist/{GiftCardSetup-DnQ5vwxu.js → GiftCardSetup-BOSKBH8c.js} +10 -10
- package/dist/{Grab-CFLRHs5w.js → Grab-CnBGt_H2.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-uQJvjvTe.js → ImageInput.vue_vue_type_script_setup_true_lang-BI00YCKv.js} +1 -1
- package/dist/{Index-CUy4z2tS.js → Index-BovDOTbf.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-hKJ41Fe_.js → LocationPicker.vue_vue_type_script_setup_true_lang-D8auavm7.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BDmtqTVC.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BM99IoIG.js} +1 -1
- package/dist/{LoyaltyDashboard-C5o7KriA.js → LoyaltyDashboard-DiCQnQ76.js} +13 -13
- package/dist/{MainLayout-Dt0ywph3.js → MainLayout-Cg37dK-P.js} +3 -3
- package/dist/{Marketing-BHwxzBZ0.js → Marketing-DRCT9dBo.js} +4 -4
- package/dist/{MarketingMaterialEdit-B6k4ceGx.js → MarketingMaterialEdit-DcE0A8_A.js} +6 -6
- package/dist/{Member-DcPZfTj6.js → Member-C8T1-ywK.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-CiiBrlHY.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CTl8LtJ9.js} +23 -23
- package/dist/{MemberImportHistory-DmPMuu1g.js → MemberImportHistory-CYCxxxN7.js} +7 -7
- package/dist/{MemberList-f9JejfNW.js → MemberList-Ddlnm4JX.js} +14 -14
- package/dist/{MemberTransactions-D1YSXeX-.js → MemberTransactions-DwyZTeZb.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-freeE-DP.js → MessageInput.vue_vue_type_script_setup_true_lang-BWCxGlQO.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-m7ytg0ok.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-LdVeH7gh.js} +1 -1
- package/dist/{Mission-BaaEl5BV.js → Mission-CW0y8Bzw.js} +13 -13
- package/dist/{Overview-fx-0E3b8.js → Overview-CO4T3l6l.js} +19 -19
- package/dist/{Overview-CviY55Gs.js → Overview-i2XPL7Pu.js} +4 -4
- package/dist/{Point-BfqtflbC.js → Point-CNWdfqQZ.js} +12 -12
- package/dist/{Promotion-Be2ogRYt.js → Promotion-DAemCP79.js} +13 -13
- package/dist/{Queue-CLSUL-Cx.js → Queue-DI50gMny.js} +11 -11
- package/dist/{Record-CpTMQT7B.js → Record-DX3WHXku.js} +9 -9
- package/dist/{Review-DzSDx7dY.js → Review-DzSNG4Le.js} +2 -2
- package/dist/{ReviewFacebookCallback-CvbPJADM.js → ReviewFacebookCallback-CrdRUN3t.js} +5 -5
- package/dist/{ReviewGoogleCallback-DJlqMbh3.js → ReviewGoogleCallback-Da28WNzU.js} +5 -5
- package/dist/{Reward-DJOmd6Z5.js → Reward-DUQAE99I.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DY9fYxwc.js → RewardGroup.vue_vue_type_script_setup_true_lang-BGAOPkwD.js} +12 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BgYK4hpo.js → RuleGroup.vue_vue_type_script_setup_true_lang-B9Dbe9no.js} +13 -13
- package/dist/{Segment-G6xmeEaq.js → Segment-BgVf2-G2.js} +24 -24
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-C3O0biLZ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DDLXF5HM.js} +13 -13
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CWP5sGT7.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-9UiH43em.js} +4 -4
- package/dist/{Setting-CKp441AW.js → Setting-3jW6EbKA.js} +14 -14
- package/dist/{SettingAdvertisements-C4Uf-DgK.js → SettingAdvertisements-C40QcuSn.js} +12 -12
- package/dist/{Settings-CTvMVwp6.js → Settings-DT9bypKs.js} +5 -5
- package/dist/{Store-Bzei6Xev.js → Store-DQyOUfEJ.js} +25 -25
- package/dist/{StoreRewards-DMQNIpF5.js → StoreRewards-Dr_c0PbO.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-mm1jbcvo.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Bh5h8Lc_.js} +24 -24
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BspBXIO2.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-LquvtnTy.js} +2 -2
- package/dist/{Tier-BN32RwYr.js → Tier-DmqfEWcB.js} +25 -25
- package/dist/{Title-BIhgfRUI.js → Title-Dx6pcJfP.js} +21 -21
- package/dist/{Transaction-CPjA7IN9.js → Transaction-CD6agt6m.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DSutMvfk.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CNjBtitb.js} +6 -6
- package/dist/{Voucher-CGJtn9bC.js → Voucher-P4dyOeUd.js} +14 -14
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-B-IwtPvx.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Bv--fzY0.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Ce9xPwqA.js → ZodTextField.vue_vue_type_script_setup_true_lang-Bq_7U0NO.js} +2 -2
- package/dist/{app-DAtx6aZ4.js → app-CmqX1V1B.js} +1254 -1239
- package/dist/app.js +1 -1
- package/dist/{base.export-BtRC4aWM.js → base.export-guVE-B2c.js} +2 -2
- package/dist/{business-BZUIs8Ub.js → business-DXmGtwPm.js} +1 -1
- package/dist/{campaign-B6I6PuY4.js → campaign-CVXbgs-y.js} +2 -2
- package/dist/{campaign-DKjBjV2k.js → campaign-D9Jufumh.js} +103 -101
- package/dist/{campaign.enum-BQy3e845.js → campaign.enum-CXhYMbkx.js} +1 -1
- package/dist/{campaign.fn--qVJ3jeH.js → campaign.fn-DoJPn6yl.js} +27 -27
- package/dist/{collectible.enum-vcvRFGl0.js → collectible.enum-Tk6LIMMm.js} +1 -1
- package/dist/{collection.fn-C3bMPBkC.js → collection.fn-DCVNYQau.js} +2 -2
- package/dist/{currency--R6VPInw.js → currency-BYhkCI6F.js} +1 -1
- package/dist/{duplicateCampaign-aIsX9cCi.js → duplicateCampaign-BOVBZHFs.js} +2 -2
- package/dist/{effect-CbjmtRph.js → effect-e6wYWgc8.js} +1 -1
- package/dist/{email-addresses-DZKMnoKf.js → email-addresses-Dcd_vAeM.js} +2 -2
- package/dist/{helper-BGqw2-RO.js → helper-DluoQ6zi.js} +1 -1
- package/dist/{index-kkhrPH6s.js → index-2QCDTrA9.js} +2 -2
- package/dist/{index-LnCoUCnx.js → index-BAs9N7bi.js} +3 -3
- package/dist/{index-CVvSd60O.js → index-BFzBAm6P.js} +1 -1
- package/dist/{index-ClP7Xy6Q.js → index-BpAhyOgv.js} +1 -1
- package/dist/{index-Bb4TieR_.js → index-C-oypk0K.js} +3 -3
- package/dist/{index-B9DM5Vuv.js → index-C9JY8Ru6.js} +2 -2
- package/dist/{index-DcA0B-Y5.js → index-CBRWvjup.js} +7 -7
- package/dist/{index-D-P90w8K.js → index-CDdNExzM.js} +1 -1
- package/dist/{index-CVYbfRGO.js → index-ChYMoLaB.js} +1 -1
- package/dist/{index-v8Zv-2ko.js → index-CiJQlOu7.js} +7 -7
- package/dist/{index-C22GPEM-.js → index-DB51l5yi.js} +1 -1
- package/dist/{index-FnsjvtSo.js → index-DIP_uzZm.js} +5 -5
- package/dist/{index-7TKoSEJ2.js → index-DKrJlWH3.js} +1124 -1124
- package/dist/{index-CXL5WAH0.js → index-DoiGG41P.js} +3 -3
- package/dist/{index-D_o9LsHU.js → index-SQItAw7w.js} +3 -3
- package/dist/{index-BbpqZrkB.js → index-SS72WJs_.js} +1 -1
- package/dist/{index-BWlfW4Kr.js → index-kPcRcSFx.js} +2 -2
- package/dist/{index-LlFZ5kxi.js → index-qkkPuNFM.js} +5 -5
- package/dist/{index.esm2017-DO7bbE7J.js → index.esm2017-BLVWhb4f.js} +1 -1
- package/dist/{loading-CzWOx4tE.js → loading-ClX4Z1ZH.js} +1 -1
- package/dist/{lodash-B_gr6Ayu.js → lodash-Cxh2BWuW.js} +1 -1
- package/dist/{member-import-BxCrd9tq.js → member-import-DKfSDn0D.js} +1 -1
- package/dist/{membership-ILB4aB4h.js → membership-BBAosVNQ.js} +3 -3
- package/dist/{money-CpIK1N_r.js → money-CWzvdiFT.js} +1 -1
- package/dist/{number-leVwmDCm.js → number-Cp7TGBzd.js} +1 -1
- package/dist/{objectid-8hKuNcMN.js → objectid-CXWfUmP_.js} +9 -9
- package/dist/{plugins-DLIgnFIF.js → plugins-BKD6oEHa.js} +3 -3
- package/dist/{reward-DqT0zF01.js → reward-CrjStT4w.js} +1 -1
- package/dist/{rule-DBtMGLxD.js → rule-CBZRptRM.js} +8 -8
- package/dist/{template-CYKGCWY4.js → template-D4qWK9tk.js} +6 -6
- package/dist/{timezone-Brs5nrTL.js → timezone-t0WxSk3e.js} +1 -1
- package/dist/{transaction.fn-0ZZcVp-j.js → transaction.fn-DZp6Drqf.js} +2 -2
- package/dist/{trigger-LhNre1L9.js → trigger-DN5yeimJ.js} +5 -5
- package/dist/{useMarketingMaterialActions-DbDRMmhM.js → useMarketingMaterialActions-ChkZyyRO.js} +3 -3
- package/dist/{usePagination-DmZX0V64.js → usePagination-Vda9U5Dh.js} +1 -1
- package/dist/{user-CBPsvnx9.js → user-jEjTV3E6.js} +1 -1
- package/dist/{vue-i18n-BPeSHE3c.js → vue-i18n-Bg_RJ_GV.js} +474 -474
- package/dist/{xlsx-Cm3vGmLN.js → xlsx-unW4U5Tx.js} +440 -440
- package/dist/{zod-GTEcy37q.js → zod-DIsCEUuE.js} +1 -1
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var w = Object.defineProperty;
|
|
2
2
|
var y = (e, s, o) => s in e ? w(e, s, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[s] = o;
|
|
3
3
|
var n = (e, s, o) => y(e, typeof s != "symbol" ? s + "" : s, o);
|
|
4
|
-
import { u as x } from "./loading-
|
|
5
|
-
import { w as h, u as a } from "./xlsx-
|
|
4
|
+
import { u as x } from "./loading-ClX4Z1ZH.js";
|
|
5
|
+
import { w as h, u as a } from "./xlsx-unW4U5Tx.js";
|
|
6
6
|
const t = {
|
|
7
7
|
sortBy: "_id",
|
|
8
8
|
descending: !1,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as i, computed as u } from "vue";
|
|
2
2
|
import { defineStore as w } from "pinia";
|
|
3
3
|
import { useCoreStore as y } from "@feedmepos/mf-common";
|
|
4
|
-
import { d as I, g as r, A as b, S, b as D } from "./index-
|
|
4
|
+
import { d as I, g as r, A as b, S, b as D } from "./index-C9JY8Ru6.js";
|
|
5
5
|
const $ = {
|
|
6
6
|
async readSettings(e) {
|
|
7
7
|
try {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as d } from "pinia";
|
|
2
2
|
import { reactive as b, onMounted as f, ref as s } from "vue";
|
|
3
|
-
import { c } from "./index-
|
|
4
|
-
import { g as i, S as g, b as h } from "./index-
|
|
3
|
+
import { c } from "./index-2QCDTrA9.js";
|
|
4
|
+
import { g as i, S as g, b as h } from "./index-C9JY8Ru6.js";
|
|
5
5
|
const p = () => {
|
|
6
6
|
const e = g.getBusinessId();
|
|
7
7
|
if (!e) throw new Error("Invalid business ID");
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { h as u } from "./moment-D7p2TMB-.js";
|
|
2
|
-
import "./index-
|
|
3
|
-
import { e as
|
|
2
|
+
import "./index-DIP_uzZm.js";
|
|
3
|
+
import { e as l } from "./effect-e6wYWgc8.js";
|
|
4
4
|
import { components as d } from "@feedmepos/ui-library";
|
|
5
|
-
import { a as
|
|
6
|
-
import { c as
|
|
7
|
-
import { u as
|
|
8
|
-
import { C as m } from "./campaign.fn
|
|
9
|
-
import { t as h } from "./index-
|
|
10
|
-
import { c as
|
|
11
|
-
import { i as
|
|
5
|
+
import { a as E } from "./index-CBRWvjup.js";
|
|
6
|
+
import { c as N } from "./rule-CBZRptRM.js";
|
|
7
|
+
import { u as I } from "./business-DXmGtwPm.js";
|
|
8
|
+
import { C as m } from "./campaign.fn-DoJPn6yl.js";
|
|
9
|
+
import { g as y, t as h } from "./index-DKrJlWH3.js";
|
|
10
|
+
import { c as C } from "./string-Gcy5IM_H.js";
|
|
11
|
+
import { i as f } from "./plugins-BKD6oEHa.js";
|
|
12
12
|
import { h as p } from "vue";
|
|
13
|
-
import { F as
|
|
14
|
-
const
|
|
13
|
+
import { F as s } from "./campaign.enum-CXhYMbkx.js";
|
|
14
|
+
const R = [
|
|
15
15
|
"APP_INBOX",
|
|
16
16
|
"PUSH",
|
|
17
17
|
"SMS",
|
|
18
18
|
"EMAIL",
|
|
19
19
|
"WHATSAPP"
|
|
20
|
-
],
|
|
20
|
+
], S = [...R];
|
|
21
21
|
function j(t) {
|
|
22
|
-
return
|
|
22
|
+
return S.includes(t);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function O(t, e) {
|
|
25
25
|
return t === "APP_INBOX" ? {
|
|
26
26
|
title: "",
|
|
27
27
|
previewText: "",
|
|
@@ -40,17 +40,17 @@ function C(t, e) {
|
|
|
40
40
|
variables: e
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function V(t, e, n = []) {
|
|
44
44
|
return t.channels.includes(e) ? t : {
|
|
45
45
|
...t,
|
|
46
46
|
channels: [...t.channels, e],
|
|
47
47
|
content: {
|
|
48
48
|
...t.content,
|
|
49
|
-
[e]: t.content[e] ??
|
|
49
|
+
[e]: t.content[e] ?? O(e, n)
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function X(t, e) {
|
|
54
54
|
const n = { ...t.content };
|
|
55
55
|
return delete n[e], {
|
|
56
56
|
...t,
|
|
@@ -64,52 +64,54 @@ function z(t, e, n) {
|
|
|
64
64
|
content: { ...t.content, [e]: n }
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
const o = t.channels.indexOf(e),
|
|
69
|
-
if (o < 0 ||
|
|
70
|
-
const
|
|
71
|
-
return [
|
|
67
|
+
function W(t, e, n) {
|
|
68
|
+
const o = t.channels.indexOf(e), a = o + n;
|
|
69
|
+
if (o < 0 || a < 0 || a >= t.channels.length) return t;
|
|
70
|
+
const r = [...t.channels];
|
|
71
|
+
return [r[o], r[a]] = [r[a], r[o]], { ...t, channels: r };
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
const [o, ...
|
|
73
|
+
function J(t, e, n = []) {
|
|
74
|
+
const [o, ...a] = t.channels;
|
|
75
75
|
if (o === e) return t;
|
|
76
|
-
const
|
|
76
|
+
const r = {
|
|
77
77
|
...t.content,
|
|
78
|
-
[e]: t.content[e] ??
|
|
78
|
+
[e]: t.content[e] ?? O(e, n)
|
|
79
79
|
};
|
|
80
|
-
return o && delete
|
|
80
|
+
return o && delete r[o], {
|
|
81
81
|
...t,
|
|
82
|
-
channels: [e, ...
|
|
83
|
-
content:
|
|
82
|
+
channels: [e, ...a.filter((b) => b !== e)],
|
|
83
|
+
content: r
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function K(t, e) {
|
|
87
87
|
if (!e) return !1;
|
|
88
88
|
const n = t.content[e];
|
|
89
89
|
return n ? ["title", "previewText", "content", "body"].some(
|
|
90
90
|
(o) => typeof n[o] == "string" && !!n[o].trim()
|
|
91
91
|
) : !1;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function q(t, e) {
|
|
94
94
|
return { ...t, mode: e };
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Q(t, e) {
|
|
97
97
|
const n = t.content[e];
|
|
98
98
|
if (!n) return !1;
|
|
99
99
|
if (e === "APP_INBOX") {
|
|
100
|
-
const o = n
|
|
101
|
-
|
|
100
|
+
const o = n, a = (o.buttons ?? []).every(
|
|
101
|
+
(r) => r.label.trim().length > 0 && y.safeParse(r.url ?? "").success
|
|
102
|
+
);
|
|
103
|
+
return o.title.trim().length > 0 && o.previewText.trim().length > 0 && a;
|
|
102
104
|
}
|
|
103
105
|
if (e === "PUSH") {
|
|
104
|
-
const o = n;
|
|
105
|
-
return
|
|
106
|
+
const o = n, a = o.title.trim().length > 0 && o.body.trim().length > 0, r = o.destination !== "EXTERNAL" || y.safeParse(o.url ?? "").success;
|
|
107
|
+
return a && r;
|
|
106
108
|
}
|
|
107
109
|
return n.content.trim().length > 0;
|
|
108
110
|
}
|
|
109
|
-
function
|
|
111
|
+
function A(t, e) {
|
|
110
112
|
return t.channels.map(e).join(t.mode === "fallback" ? " → " : " + ");
|
|
111
113
|
}
|
|
112
|
-
function
|
|
114
|
+
function Z(t) {
|
|
113
115
|
var e, n;
|
|
114
116
|
if (!(!t || t.delivery)) {
|
|
115
117
|
if ((n = (e = t.message) == null ? void 0 : e.content) != null && n.trim()) {
|
|
@@ -119,9 +121,9 @@ function Q(t) {
|
|
|
119
121
|
delete t.message, t.delivery = { mode: "fallback", channels: [], content: {} };
|
|
120
122
|
}
|
|
121
123
|
}
|
|
122
|
-
const
|
|
124
|
+
const c = f.global.t;
|
|
123
125
|
function D() {
|
|
124
|
-
const t =
|
|
126
|
+
const t = f.global.locale;
|
|
125
127
|
return typeof t == "string" ? t : t.value;
|
|
126
128
|
}
|
|
127
129
|
function g(t) {
|
|
@@ -143,108 +145,108 @@ function i(t) {
|
|
|
143
145
|
]
|
|
144
146
|
);
|
|
145
147
|
}
|
|
146
|
-
const
|
|
147
|
-
[
|
|
148
|
+
const tt = {
|
|
149
|
+
[s.enum.CREDIT]: {
|
|
148
150
|
chipClass: "!text-fm-color-secondary-plum !bg-[#f2ebfe]",
|
|
149
151
|
icon: "local_activity",
|
|
150
152
|
get name() {
|
|
151
|
-
return
|
|
153
|
+
return c("connect.campaign.common.typeName.CREDIT");
|
|
152
154
|
},
|
|
153
155
|
chip() {
|
|
154
156
|
return i(this);
|
|
155
157
|
}
|
|
156
158
|
},
|
|
157
|
-
[
|
|
159
|
+
[s.enum.PROMOTION]: {
|
|
158
160
|
chipClass: "!text-fm-color-secondary-citrus !bg-fm-color-system-warning-100",
|
|
159
161
|
icon: "loyalty",
|
|
160
162
|
get name() {
|
|
161
|
-
return
|
|
163
|
+
return c("connect.campaign.common.typeName.PROMOTION");
|
|
162
164
|
},
|
|
163
165
|
chip() {
|
|
164
166
|
return i(this);
|
|
165
167
|
}
|
|
166
168
|
},
|
|
167
|
-
[
|
|
169
|
+
[s.enum.VOUCHER]: {
|
|
168
170
|
chipClass: "!text-fm-color-secondary-halite !bg-[#fff0f6]",
|
|
169
171
|
icon: "sell",
|
|
170
172
|
get name() {
|
|
171
|
-
return
|
|
173
|
+
return c("connect.campaign.common.typeName.VOUCHER");
|
|
172
174
|
},
|
|
173
175
|
chip() {
|
|
174
176
|
return i(this);
|
|
175
177
|
}
|
|
176
178
|
},
|
|
177
|
-
[
|
|
179
|
+
[s.enum.POINT]: {
|
|
178
180
|
chipClass: "!text-fm-color-secondary-cocoa !bg-[#fff9e6]",
|
|
179
181
|
icon: "award_star",
|
|
180
182
|
get name() {
|
|
181
|
-
return
|
|
183
|
+
return c("connect.campaign.common.typeName.POINT");
|
|
182
184
|
},
|
|
183
185
|
chip() {
|
|
184
186
|
return i(this);
|
|
185
187
|
}
|
|
186
188
|
},
|
|
187
|
-
[
|
|
189
|
+
[s.enum.BROADCAST]: {
|
|
188
190
|
chipClass: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
|
|
189
191
|
icon: "campaign",
|
|
190
192
|
get name() {
|
|
191
|
-
return
|
|
193
|
+
return c("connect.campaign.common.typeName.BROADCAST");
|
|
192
194
|
},
|
|
193
195
|
chip() {
|
|
194
196
|
return i(this);
|
|
195
197
|
}
|
|
196
198
|
},
|
|
197
|
-
[
|
|
199
|
+
[s.enum.GAME]: {
|
|
198
200
|
chipClass: "!text-fm-color-secondary-mint !bg-fm-color-system-success-100",
|
|
199
201
|
icon: "database",
|
|
200
202
|
get name() {
|
|
201
|
-
return
|
|
203
|
+
return c("connect.campaign.common.typeName.GAME");
|
|
202
204
|
},
|
|
203
205
|
chip() {
|
|
204
206
|
return i(this);
|
|
205
207
|
}
|
|
206
208
|
},
|
|
207
|
-
[
|
|
209
|
+
[s.enum.REWARD_POOL]: {
|
|
208
210
|
chipClass: "!text-fm-color-secondary-tuna !bg-[#e3f4f9]",
|
|
209
211
|
icon: "editor_choice",
|
|
210
212
|
get name() {
|
|
211
|
-
return
|
|
213
|
+
return c("connect.campaign.common.typeName.REWARD_POOL");
|
|
212
214
|
},
|
|
213
215
|
chip() {
|
|
214
216
|
return i(this);
|
|
215
217
|
}
|
|
216
218
|
},
|
|
217
|
-
[
|
|
219
|
+
[s.enum.COIN]: {
|
|
218
220
|
chipClass: "!text-fm-color-system-success-400 !bg-fm-color-system-success-100",
|
|
219
221
|
icon: "monetization_on",
|
|
220
222
|
get name() {
|
|
221
|
-
return
|
|
223
|
+
return c("connect.campaign.common.typeName.COIN");
|
|
222
224
|
},
|
|
223
225
|
chip() {
|
|
224
226
|
return i(this);
|
|
225
227
|
}
|
|
226
228
|
},
|
|
227
|
-
[
|
|
229
|
+
[s.enum.MEMBERSHIP]: {
|
|
228
230
|
chipClass: "",
|
|
229
231
|
icon: "",
|
|
230
232
|
get name() {
|
|
231
|
-
return
|
|
233
|
+
return c("connect.campaign.common.typeName.MEMBERSHIP");
|
|
232
234
|
},
|
|
233
235
|
chip() {
|
|
234
236
|
return i(this);
|
|
235
237
|
}
|
|
236
238
|
},
|
|
237
|
-
[
|
|
239
|
+
[s.enum.MISSION]: {
|
|
238
240
|
chipClass: "!text-fm-color-secondary-tuna !bg-[#e3f4f9]",
|
|
239
241
|
icon: "editor_choice",
|
|
240
242
|
get name() {
|
|
241
|
-
return
|
|
243
|
+
return c("connect.campaign.common.typeName.MISSION");
|
|
242
244
|
},
|
|
243
245
|
chip() {
|
|
244
246
|
return i(this);
|
|
245
247
|
}
|
|
246
248
|
},
|
|
247
|
-
[
|
|
249
|
+
[s.enum.GRAB]: {
|
|
248
250
|
chipClass: "!text-fm-color-secondary-tuna !bg-[#e3f4f9]",
|
|
249
251
|
icon: "editor_choice",
|
|
250
252
|
name: "Grab",
|
|
@@ -253,7 +255,7 @@ const Z = {
|
|
|
253
255
|
}
|
|
254
256
|
}
|
|
255
257
|
};
|
|
256
|
-
function
|
|
258
|
+
function et(t) {
|
|
257
259
|
const e = _(t), n = {
|
|
258
260
|
active: "text-fm-color-typo-success bg-fm-color-system-success-100",
|
|
259
261
|
upcoming: "text-fm-color-typo-info bg-fm-color-system-info-100",
|
|
@@ -261,50 +263,50 @@ function tt(t) {
|
|
|
261
263
|
};
|
|
262
264
|
return t.type == "VOUCHER" ? p(d.FmChip, {
|
|
263
265
|
class: n[e],
|
|
264
|
-
label:
|
|
266
|
+
label: C.title(c(`connect.campaign.common.status.${e}`)),
|
|
265
267
|
compact: !0
|
|
266
268
|
}) : p(d.FmChip, {
|
|
267
269
|
class: n[e],
|
|
268
|
-
label:
|
|
270
|
+
label: C.title(c(`connect.campaign.common.status.${e}`)),
|
|
269
271
|
compact: !0
|
|
270
272
|
});
|
|
271
273
|
}
|
|
272
|
-
function
|
|
274
|
+
function nt(t) {
|
|
273
275
|
const e = t.timeframeOptions;
|
|
274
276
|
if (!e || !e.start && !e.end)
|
|
275
|
-
return
|
|
277
|
+
return c("connect.campaign.common.always_active");
|
|
276
278
|
if (!e.start && e.end)
|
|
277
|
-
return
|
|
279
|
+
return c("connect.campaign.common.valid_until", {
|
|
278
280
|
date: g(e.end)
|
|
279
281
|
});
|
|
280
|
-
const n = g(e.start), o = e.end ? g(e.end) :
|
|
282
|
+
const n = g(e.start), o = e.end ? g(e.end) : c("connect.campaign.common.unlimited");
|
|
281
283
|
return `${n} -> ${o}`;
|
|
282
284
|
}
|
|
283
|
-
function
|
|
285
|
+
function P(t) {
|
|
284
286
|
if (!t || !t.start && !t.end)
|
|
285
287
|
return "connect.campaign.common.always";
|
|
286
288
|
const e = t.start ? u(t.start).format("DD MMM YYYY") : "From campaign creation", n = t.end ? u(t.end).format("DD MMM YYYY") : "Never ends";
|
|
287
289
|
return `${e} - ${n}`;
|
|
288
290
|
}
|
|
289
|
-
function
|
|
291
|
+
function ot(t) {
|
|
290
292
|
const { campaign: e } = t;
|
|
291
293
|
return {
|
|
292
294
|
"connect.campaign.common.campaign_name": e.name,
|
|
293
|
-
"connect.campaign.common.campaign_period":
|
|
295
|
+
"connect.campaign.common.campaign_period": P(
|
|
294
296
|
e.timeframeOptions
|
|
295
297
|
),
|
|
296
298
|
get "connect.campaign.common.next_schedule_at"() {
|
|
297
|
-
if ((e == null ? void 0 : e.event.type) != "SCHEDULE" || !e.event.rule || !
|
|
299
|
+
if ((e == null ? void 0 : e.event.type) != "SCHEDULE" || !e.event.rule || !E(e.event.rule))
|
|
298
300
|
return;
|
|
299
|
-
const n =
|
|
301
|
+
const n = N(
|
|
300
302
|
e.event.rule.rules.g_schedule
|
|
301
303
|
);
|
|
302
304
|
return n ? u(n).format("ddd, DD MMM YYYY, hh:mmA") : void 0;
|
|
303
305
|
},
|
|
304
306
|
get "connect.campaign.common.discount_type"() {
|
|
305
|
-
if (e.type == "PROMOTION") return
|
|
307
|
+
if (e.type == "PROMOTION") return l(e.effect);
|
|
306
308
|
if ("configs" in t && t.configs.type == "VOUCHER")
|
|
307
|
-
return
|
|
309
|
+
return l(t.configs.extras.effect);
|
|
308
310
|
},
|
|
309
311
|
get "connect.campaign.broadcast.summary.delivery"() {
|
|
310
312
|
if (e.type != "BROADCAST") return;
|
|
@@ -315,11 +317,11 @@ function nt(t) {
|
|
|
315
317
|
get "connect.campaign.broadcast.summary.channels"() {
|
|
316
318
|
var n;
|
|
317
319
|
if (e.type == "BROADCAST")
|
|
318
|
-
return ((n =
|
|
320
|
+
return ((n = T(e)) == null ? void 0 : n.route) ?? "connect.campaign.broadcast.noChannelsSelected";
|
|
319
321
|
},
|
|
320
322
|
get "connect.campaign.common.available_at"() {
|
|
321
323
|
return e.targetLocation ? e.targetLocation.length > 0 ? e.targetLocation.map(
|
|
322
|
-
(n) =>
|
|
324
|
+
(n) => I().locationItems.find((o) => o.value == n).label
|
|
323
325
|
).join(",") : "connect.campaign.common.no_location" : "connect.campaign.common.all_locations";
|
|
324
326
|
}
|
|
325
327
|
};
|
|
@@ -330,18 +332,18 @@ function _(t) {
|
|
|
330
332
|
t.timeframeOptions.end ?? u().add(1, "d")
|
|
331
333
|
) ? "active" : u().isAfter(t.timeframeOptions.end) ? "expired" : "upcoming" : "active";
|
|
332
334
|
}
|
|
333
|
-
function
|
|
335
|
+
function T(t) {
|
|
334
336
|
const e = h(t);
|
|
335
337
|
if (!e.channels.length) return null;
|
|
336
|
-
const o =
|
|
338
|
+
const o = A(e, (a) => f.global.t(`connect.campaign.broadcast.channel.${a}`));
|
|
337
339
|
return {
|
|
338
|
-
strategy: e.channels.length > 1 ?
|
|
340
|
+
strategy: e.channels.length > 1 ? f.global.t(
|
|
339
341
|
`connect.campaign.broadcast.strategy.${e.mode}`
|
|
340
342
|
) : null,
|
|
341
343
|
route: o
|
|
342
344
|
};
|
|
343
345
|
}
|
|
344
|
-
function
|
|
346
|
+
function at(t) {
|
|
345
347
|
var e, n;
|
|
346
348
|
switch (t.event.type) {
|
|
347
349
|
case "BILL_COMPLETED":
|
|
@@ -352,8 +354,8 @@ function ot(t) {
|
|
|
352
354
|
case "COIN":
|
|
353
355
|
return t.earningOption.type == "FIXED" ? `Spend to get ${t.earningOption.amount} ${m.formattedType(t.type)}` : `Every ${t.earningOption.every} amount spent get ${t.earningOption.amount} ${m.formattedType(t.type)}`;
|
|
354
356
|
case "VOUCHER":
|
|
355
|
-
const
|
|
356
|
-
return
|
|
357
|
+
const a = (n = (e = t == null ? void 0 : t.pf_collectible) == null ? void 0 : e.extras) == null ? void 0 : n.effect;
|
|
358
|
+
return a ? `${o} - ${l(a)}` : o;
|
|
357
359
|
default:
|
|
358
360
|
return o;
|
|
359
361
|
}
|
|
@@ -368,7 +370,7 @@ function ot(t) {
|
|
|
368
370
|
case "MEMBERSHIP_JOINED":
|
|
369
371
|
return `Receive ${m.formattedType(t.type)} when member joined`;
|
|
370
372
|
case "MAKING_ORDER":
|
|
371
|
-
return t.type !== "PROMOTION" ? void 0 :
|
|
373
|
+
return t.type !== "PROMOTION" ? void 0 : l(t.effect);
|
|
372
374
|
default:
|
|
373
375
|
throw new Error(
|
|
374
376
|
`Not implemented ${JSON.stringify({ cause: t.event.type })}`
|
|
@@ -376,23 +378,23 @@ function ot(t) {
|
|
|
376
378
|
}
|
|
377
379
|
}
|
|
378
380
|
export {
|
|
379
|
-
|
|
381
|
+
tt as C,
|
|
380
382
|
_ as a,
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
383
|
+
et as b,
|
|
384
|
+
at as c,
|
|
385
|
+
T as d,
|
|
386
|
+
R as e,
|
|
387
|
+
Q as f,
|
|
388
|
+
nt as g,
|
|
389
|
+
V as h,
|
|
388
390
|
j as i,
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
391
|
+
q as j,
|
|
392
|
+
K as k,
|
|
393
|
+
J as l,
|
|
394
|
+
W as m,
|
|
393
395
|
z as n,
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
396
|
+
ot as o,
|
|
397
|
+
Z as p,
|
|
398
|
+
X as r,
|
|
399
|
+
P as s
|
|
398
400
|
};
|