@feedmepos/mf-connect 0.1.125-prod → 0.1.126-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-VvS6HIoz.js → App-DRHHPaMz.js} +10 -10
- package/dist/{Bin-dVF9Q1iu.js → Bin-FkcYLSTm.js} +8 -8
- package/dist/{Broadcast-BIZbCshz.js → Broadcast-Cgqp_BMa.js} +11 -11
- package/dist/{CampaignAnalytic-Ci8Ryoig.js → CampaignAnalytic-kKZ_BwW0.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CMgvX7Qs.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CX0mWLjO.js} +9 -9
- package/dist/{Card-CZkmyXaw.js → Card-Bu1y37hV.js} +22 -22
- package/dist/{Collections-Inv8osLz.js → Collections-B3mJkBCT.js} +9 -9
- package/dist/{Credit-C0sAkt2c.js → Credit-Bn-2EcVy.js} +11 -11
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BiJ_wHig.js → DateRangeChip.vue_vue_type_script_setup_true_lang-Cz7pZ7LD.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-B28ds81U.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DIUEjCFW.js} +1092 -947
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BU1c2K1g.js → EffectSheet.vue_vue_type_style_index_0_lang-B7XBiv4l.js} +6 -6
- package/dist/{Experience-BNEfKjkq.js → Experience-CunbmoAu.js} +12 -12
- package/dist/{FileSaver.min-C5THVA6m.js → FileSaver.min-ChFSxYyS.js} +1 -1
- package/dist/{Game-S9z8ZBF3.js → Game-dFDwx_UJ.js} +12 -12
- package/dist/{GiftCardSetup-nVMJLp50.js → GiftCardSetup-DYpEqqX0.js} +10 -10
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-DC2QB9kR.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-DxJdI6gc.js} +7 -7
- package/dist/{Goals-Do6Z0FfW.js → Goals-DuZzgM_K.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CFb4EUQ5.js → ImageInput.vue_vue_type_script_setup_true_lang-lDulspkF.js} +1 -1
- package/dist/{Index-CLVDmWRo.js → Index-BxB2ohT0.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CZwKWjn6.js → LocationPicker.vue_vue_type_script_setup_true_lang-9sKJE1A5.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CGPZUYnY.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CxBNYzcz.js} +1 -1
- package/dist/{LoyaltyDashboard-B_HpEQdz.js → LoyaltyDashboard-DQzGvQ7j.js} +15 -15
- package/dist/{MainLayout-uQfsgnnu.js → MainLayout-MAZ1S06H.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-DNPmnCA8.js → MainLayout.vue_vue_type_script_setup_true_lang-CeF3LU-N.js} +3 -3
- package/dist/{Marketing-DPWybdMq.js → Marketing-ACF6F7be.js} +4 -4
- package/dist/{MarketingMaterialEdit-BfBgdPyz.js → MarketingMaterialEdit-B8NfkoHg.js} +6 -6
- package/dist/{Member-Bkt3UPXA.js → Member-rLxDUOr8.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-EIc8nFZ0.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-Bq3UKX7v.js} +23 -23
- package/dist/{MemberImportHistory-DbzrfaI6.js → MemberImportHistory-BuG6DmdV.js} +7 -7
- package/dist/{MemberList-CAxUgRRp.js → MemberList-CC6zm_I6.js} +14 -14
- package/dist/{MemberTransactions-DDGkVcHw.js → MemberTransactions-Bw2xu6jZ.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-C2D5J4Ja.js → MessageInput.vue_vue_type_script_setup_true_lang-Cav8gQUK.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-2f1SFptj.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-8wdY4FnI.js} +1 -1
- package/dist/{Mission-CTa5syv8.js → Mission-DnEcbALs.js} +13 -13
- package/dist/{Overview-CD6Q9DJm.js → Overview-COytI5xN.js} +20 -20
- package/dist/{Overview-DLXj9lo5.js → Overview-DShFohlk.js} +4 -4
- package/dist/{Point-ktWnL8q5.js → Point-CWYwlx0i.js} +13 -13
- package/dist/{Promotion-hqaOxx8q.js → Promotion-LBrQYtad.js} +13 -13
- package/dist/{Queue-BE-fU8IM.js → Queue-DKg5EvDM.js} +12 -12
- package/dist/{Record-BEFt0lae.js → Record--lYpawLN.js} +9 -9
- package/dist/{Review-DcLFxegb.js → Review-C4pNmJ7n.js} +2 -2
- package/dist/{ReviewFacebookCallback-6BapqO6b.js → ReviewFacebookCallback-BYXwKQNG.js} +5 -5
- package/dist/{ReviewGoogleCallback-CQ1awmJH.js → ReviewGoogleCallback-ge8fL_A-.js} +5 -5
- package/dist/{Reward-eZLQ_qzv.js → Reward-B67r1Bpz.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DT4cU2lr.js → RewardGroup.vue_vue_type_script_setup_true_lang-Bt0Kx2--.js} +13 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CdWm80id.js → RuleGroup.vue_vue_type_script_setup_true_lang-fLtn32Rw.js} +15 -15
- package/dist/{Segment-C1Xbqlcv.js → Segment-DeSC3z5G.js} +26 -26
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-C_1xj3Cl.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DdjC7X1V.js} +14 -14
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DwejRzlR.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-Crys59UO.js} +4 -4
- package/dist/{Setting-Cg21mqEc.js → Setting-DiDcMU5E.js} +15 -15
- package/dist/{SettingAdvertisements-CA6x_w-6.js → SettingAdvertisements-3wMI9egH.js} +12 -12
- package/dist/{Settings-CbrC5bN2.js → Settings-BR6Y1DBZ.js} +5 -5
- package/dist/{Store-CFDsun8N.js → Store-DgefqByH.js} +26 -26
- package/dist/{StoreRewards-BhURDAsS.js → StoreRewards-CS2h5RVB.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-JkpE5XsA.js → StoreTransactions.vue_vue_type_script_setup_true_lang-gPR8sn4k.js} +24 -24
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DzMfetDA.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Cjnkpd1j.js} +2 -2
- package/dist/{Tier-B4iofOYH.js → Tier-Cye6888q.js} +25 -25
- package/dist/{Title-3YNx77l4.js → Title-B1eJh5oy.js} +23 -23
- package/dist/{Transaction-CX9SxMEG.js → Transaction-ouzdsBUx.js} +2 -2
- package/dist/{Upselling-CznVPMJC.js → Upselling-CdQd2Fuk.js} +3 -3
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BZVdb3An.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BSlxe1Hf.js} +6 -6
- package/dist/{Voucher-7Hl1LPrh.js → Voucher-CJJt8VlJ.js} +18 -18
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-dFJXQsFv.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BzbNaK6H.js} +12 -12
- package/dist/{WhatsappAccount-DQbkWBel.js → WhatsappAccount-DIxSP6Tp.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CvqJzTXs.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-L9Y5lAft.js} +1 -1
- package/dist/{WhatsappBot-B0nZTeT7.js → WhatsappBot-BXxoaz7-.js} +6 -6
- package/dist/{WhatsappBotLogs-DujpGQWa.js → WhatsappBotLogs-D8IfLHk3.js} +6 -6
- package/dist/{WhatsappBotSettings-CfhMycMW.js → WhatsappBotSettings-Bq9C7pNZ.js} +4 -4
- package/dist/{WhatsappLayout-b1gwbBm0.js → WhatsappLayout-3rWwmGRd.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DiQnP4cp.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-C3N-loYJ.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Cidk_OlM.js → ZodTextField.vue_vue_type_script_setup_true_lang-D1dORvMi.js} +2 -2
- package/dist/{app-C5LDuXmt.js → app-BXqas0p1.js} +73 -67
- package/dist/app.js +1 -1
- package/dist/{base.export-BBrPA7Jg.js → base.export-DQCZiS2E.js} +2 -2
- package/dist/{business-ClZ-GkSj.js → business-RsRhXSh8.js} +1 -1
- package/dist/{campaign-DefEj7jV.js → campaign-C2X6aa7B.js} +2 -2
- package/dist/{campaign-B-h5N3HR.js → campaign-DASPASQ0.js} +99 -85
- package/dist/{campaign.fn-C5ZXEU8C.js → campaign.fn-BEX99lsa.js} +36 -36
- package/dist/{collection.fn-DZ0ViZdo.js → collection.fn-C7jNdh0A.js} +2 -2
- package/dist/{currency-C0Qn4nj3.js → currency-BvBM_Io9.js} +1 -1
- package/dist/{effect-CJHdpc35.js → effect-BA1yh6Mj.js} +1 -1
- package/dist/{email-addresses-CipYiyL4.js → email-addresses-haS5P7hq.js} +2 -2
- package/dist/{feature-flag-BBsHJnnj.js → feature-flag-B4bJnuei.js} +1 -1
- package/dist/{helper-Cn8vgyK3.js → helper-BtTBvFuA.js} +1 -1
- package/dist/{index-DBqf8mMi.js → index-B1dAoOWi.js} +1 -1
- package/dist/{index-Wm89O5a0.js → index-B6A6sHpy.js} +1 -1
- package/dist/{index-DKg5PbUy.js → index-BRTy6G9c.js} +2 -2
- package/dist/{index-BkXjF7ZI.js → index-BV-YiCDM.js} +2 -2
- package/dist/{index-sntP2S4R.js → index-BvFq5REc.js} +2 -2
- package/dist/{index-CazcZ2A4.js → index-C2rjmdar.js} +2 -2
- package/dist/{index-xn_PXhGL.js → index-C7UBk5gq.js} +1 -1
- package/dist/{index-DYMRcL11.js → index-CBfVFFME.js} +3 -3
- package/dist/{index-BREObqqd.js → index-CJ-BZCvB.js} +4 -4
- package/dist/{index-BzLz01zb.js → index-CXznvd79.js} +1 -1
- package/dist/{index-0Ub4nEKy.js → index-ChGZ_S3V.js} +1 -1
- package/dist/{index-BcjArc8W.js → index-D-D0s8PB.js} +4 -4
- package/dist/{index-CWs0a5Bx.js → index-D9zjHXFU.js} +3 -3
- package/dist/{index-C5o2Pc_f.js → index-DAtVp1NI.js} +2 -2
- package/dist/{index-BcwGxZje.js → index-DeomfIu9.js} +8 -8
- package/dist/{index-CZ3CQEXM.js → index-Dg972Dfv.js} +1 -1
- package/dist/{index-BAvmo8cc.js → index-Dm2Dvxph.js} +2 -2
- package/dist/{index-DLKFoHdk.js → index-DtbR7I4C.js} +8 -8
- package/dist/{index-auS6xhgf.js → index-Q-iHraJ3.js} +1 -1
- package/dist/{index-B2r_X6DR.js → index-g_SHjVWE.js} +1 -1
- package/dist/{index.esm2017-ePnKsRWd.js → index.esm2017-B7iE1Ggr.js} +37 -37
- package/dist/{loading-DyfvdnK3.js → loading-BvlSfSVK.js} +1 -1
- package/dist/{lodash-OSOEHuHV.js → lodash-Daey2k0N.js} +1 -1
- package/dist/{member-import-DyKhgdl1.js → member-import-CF9aym_y.js} +1 -1
- package/dist/{membership-E97L9c1m.js → membership-DfG-fl80.js} +2 -2
- package/dist/{money-BizInVDg.js → money-SBIQhxqf.js} +1 -1
- package/dist/{number-BLjNuAXB.js → number-Cp1bFK9U.js} +1 -1
- package/dist/{objectid-CfbfYlrU.js → objectid-BMRA1fIL.js} +9 -9
- package/dist/{onboarding-BVOkoMd2.js → onboarding-bjc7C8O-.js} +3 -3
- package/dist/{onboardingSetup-WWZ5x3uC.js → onboardingSetup-BAu9TDI6.js} +2 -2
- package/dist/{plugins-BFwgESNo.js → plugins-Def73Eyk.js} +3 -3
- package/dist/{reward-BOldgYfT.js → reward-KecVeztH.js} +1 -1
- package/dist/{rule-builder-dOQCz1XZ.js → rule-builder-DgU6P24U.js} +1 -1
- package/dist/{rule-CffnxtCw.js → rule-kMIC0vOi.js} +3 -3
- package/dist/{template-CbHOOFuo.js → template-BH9vS8A9.js} +7 -7
- package/dist/{timezone-CDbzzKWe.js → timezone-CMX1sJ0a.js} +1 -1
- package/dist/{transaction.fn-CM89jnhJ.js → transaction.fn-Bjy5utxD.js} +2 -2
- package/dist/{trigger-BUKAiVxy.js → trigger-DnnOJVUi.js} +5 -5
- package/dist/{useMarketingMaterialActions-D-AWVN4e.js → useMarketingMaterialActions-DMrNOpok.js} +4 -4
- package/dist/{usePagination-3kKtIKVu.js → usePagination-BCY4a-dh.js} +1 -1
- package/dist/{user-CHb8XZ5i.js → user-BTc0S1Vx.js} +1 -1
- package/dist/{vue-i18n-CqhxVhhE.js → vue-i18n-7BKLPLxj.js} +112 -112
- package/dist/{xlsx-BR-cAoRJ.js → xlsx-DR5oLrEs.js} +1 -1
- package/dist/{zod-dX5GDNHW.js → zod-CMq39HWn.js} +1 -1
- package/package.json +1 -1
|
@@ -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-BvlSfSVK.js";
|
|
5
|
+
import { w as h, u as a } from "./xlsx-DR5oLrEs.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-BvFq5REc.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 f, onMounted as b, ref as a } from "vue";
|
|
3
|
-
import { c } from "./index-
|
|
4
|
-
import { g as i, S as I, b as g } from "./index-
|
|
3
|
+
import { c } from "./index-BV-YiCDM.js";
|
|
4
|
+
import { g as i, S as I, b as g } from "./index-BvFq5REc.js";
|
|
5
5
|
const p = () => {
|
|
6
6
|
const e = I.getBusinessId();
|
|
7
7
|
if (!e) throw new Error("Invalid business ID");
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { h as u } from "./moment-D7p2TMB-.js";
|
|
2
|
-
import "./index-
|
|
3
|
-
import { e as
|
|
4
|
-
import { components as
|
|
5
|
-
import { i as b } from "./rule-builder-
|
|
6
|
-
import { c as O } from "./rule-
|
|
7
|
-
import { u as E } from "./business-
|
|
8
|
-
import { C as m } from "./campaign.fn-
|
|
9
|
-
import { g as h, t as
|
|
10
|
-
import { c as
|
|
11
|
-
import { i as c } from "./plugins-
|
|
12
|
-
import { h as
|
|
2
|
+
import "./index-D-D0s8PB.js";
|
|
3
|
+
import { e as f } from "./effect-BA1yh6Mj.js";
|
|
4
|
+
import { components as g } from "@feedmepos/ui-library";
|
|
5
|
+
import { i as b } from "./rule-builder-DgU6P24U.js";
|
|
6
|
+
import { c as O } from "./rule-kMIC0vOi.js";
|
|
7
|
+
import { u as E } from "./business-RsRhXSh8.js";
|
|
8
|
+
import { C as m } from "./campaign.fn-BEX99lsa.js";
|
|
9
|
+
import { g as h, t as d } from "./index-CBfVFFME.js";
|
|
10
|
+
import { c as y } from "./string-Gcy5IM_H.js";
|
|
11
|
+
import { i as c } from "./plugins-Def73Eyk.js";
|
|
12
|
+
import { h as p } from "vue";
|
|
13
13
|
import { F as s } from "./campaign.enum-BqekIiiN.js";
|
|
14
14
|
const N = [
|
|
15
15
|
"APP_INBOX",
|
|
@@ -18,10 +18,10 @@ const N = [
|
|
|
18
18
|
"EMAIL",
|
|
19
19
|
"WHATSAPP"
|
|
20
20
|
], I = [...N];
|
|
21
|
-
function
|
|
21
|
+
function G(t) {
|
|
22
22
|
return I.includes(t);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function C(t, e) {
|
|
25
25
|
return t === "APP_INBOX" ? {
|
|
26
26
|
title: "",
|
|
27
27
|
previewText: "",
|
|
@@ -40,17 +40,17 @@ function y(t, e) {
|
|
|
40
40
|
variables: e
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function j(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] ?? C(e, n)
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function V(t, e) {
|
|
54
54
|
const n = { ...t.content };
|
|
55
55
|
return delete n[e], {
|
|
56
56
|
...t,
|
|
@@ -58,82 +58,94 @@ function G(t, e) {
|
|
|
58
58
|
content: n
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function X(t, e, n) {
|
|
62
62
|
return {
|
|
63
63
|
...t,
|
|
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 z(t, e, n) {
|
|
68
|
+
const o = t.channels.indexOf(e), r = o + n;
|
|
69
|
+
if (o < 0 || r < 0 || r >= t.channels.length) return t;
|
|
70
|
+
const a = [...t.channels];
|
|
71
|
+
return [a[o], a[r]] = [a[r], a[o]], { ...t, channels: a };
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
const [o, ...
|
|
73
|
+
function W(t, e, n = []) {
|
|
74
|
+
const [o, ...r] = t.channels;
|
|
75
75
|
if (o === e) return t;
|
|
76
|
-
const
|
|
76
|
+
const a = {
|
|
77
77
|
...t.content,
|
|
78
|
-
[e]: t.content[e] ??
|
|
78
|
+
[e]: t.content[e] ?? C(e, n)
|
|
79
79
|
};
|
|
80
|
-
return o && delete
|
|
80
|
+
return o && delete a[o], {
|
|
81
81
|
...t,
|
|
82
|
-
channels: [e, ...
|
|
83
|
-
content:
|
|
82
|
+
channels: [e, ...r.filter((l) => l !== e)],
|
|
83
|
+
content: a
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function J(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 K(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, r = (o.buttons ?? []).every(
|
|
101
|
+
(a) => a.label.trim().length > 0 && h.safeParse(a.url ?? "").success
|
|
102
102
|
);
|
|
103
|
-
return o.title.trim().length > 0 && o.previewText.trim().length > 0 &&
|
|
103
|
+
return o.title.trim().length > 0 && o.previewText.trim().length > 0 && r;
|
|
104
104
|
}
|
|
105
105
|
if (e === "PUSH") {
|
|
106
|
-
const o = n,
|
|
107
|
-
return
|
|
106
|
+
const o = n, r = o.title.trim().length > 0 && o.body.trim().length > 0, a = o.destination !== "EXTERNAL" || h.safeParse(o.url ?? "").success;
|
|
107
|
+
return r && a;
|
|
108
108
|
}
|
|
109
109
|
return n.content.trim().length > 0;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function S(t, e) {
|
|
112
112
|
return t.channels.map(e).join(t.mode === "fallback" ? " → " : " + ");
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Q(t) {
|
|
115
115
|
var e, n;
|
|
116
116
|
if (!(!t || t.delivery)) {
|
|
117
117
|
if ((n = (e = t.message) == null ? void 0 : e.content) != null && n.trim()) {
|
|
118
|
-
t.delivery =
|
|
118
|
+
t.delivery = d(t);
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
121
121
|
delete t.message, t.delivery = { mode: "fallback", channels: [], content: {} };
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
+
const R = 5;
|
|
125
|
+
function A(t, e) {
|
|
126
|
+
if (!t) return { kind: "all" };
|
|
127
|
+
const n = new Map(e.map((a) => [String(a._id), a])), o = [];
|
|
128
|
+
for (const a of t) {
|
|
129
|
+
const l = n.get(String(a));
|
|
130
|
+
l && o.push({ id: String(a), code: l.code, name: l.name });
|
|
131
|
+
}
|
|
132
|
+
if (t.length === 0) return { kind: "none" };
|
|
133
|
+
const r = t.length - o.length;
|
|
134
|
+
return r === 0 && o.length <= R ? { kind: "names", names: o.map((a) => a.name) } : { kind: "count", rows: o, total: e.length, unavailable: r };
|
|
135
|
+
}
|
|
124
136
|
function i(t) {
|
|
125
|
-
return
|
|
137
|
+
return p(
|
|
126
138
|
"div",
|
|
127
139
|
{
|
|
128
140
|
class: `${t.chipClass} gap-4 h-[22px] inline-flex items-center justify-center min-w-min px-8 rounded-md`
|
|
129
141
|
},
|
|
130
142
|
[
|
|
131
|
-
|
|
132
|
-
|
|
143
|
+
p(g.FmIcon, { size: "sm", name: t.icon, outline: !0 }),
|
|
144
|
+
p("span", { class: "fm-typo-en-body-md-600" }, t.name)
|
|
133
145
|
]
|
|
134
146
|
);
|
|
135
147
|
}
|
|
136
|
-
const
|
|
148
|
+
const Z = {
|
|
137
149
|
[s.enum.CREDIT]: {
|
|
138
150
|
chipClass: "!text-fm-color-secondary-plum !bg-[#f2ebfe]",
|
|
139
151
|
icon: "local_activity",
|
|
@@ -236,37 +248,37 @@ const q = {
|
|
|
236
248
|
}
|
|
237
249
|
}
|
|
238
250
|
};
|
|
239
|
-
function
|
|
240
|
-
const e =
|
|
251
|
+
function tt(t) {
|
|
252
|
+
const e = M(t), n = {
|
|
241
253
|
active: "text-fm-color-typo-success bg-fm-color-system-success-100",
|
|
242
254
|
upcoming: "text-fm-color-typo-info bg-fm-color-system-info-100",
|
|
243
255
|
expired: "text-fm-color-typo-error bg-fm-color-system-error-100"
|
|
244
256
|
};
|
|
245
|
-
return t.type == "VOUCHER" ?
|
|
257
|
+
return t.type == "VOUCHER" ? p(g.FmChip, {
|
|
246
258
|
class: n[e],
|
|
247
|
-
label:
|
|
259
|
+
label: y.title(
|
|
248
260
|
c.global.t(`connect.campaign.common.status.${e}`)
|
|
249
261
|
),
|
|
250
262
|
compact: !0
|
|
251
|
-
}) :
|
|
263
|
+
}) : p(g.FmChip, {
|
|
252
264
|
class: n[e],
|
|
253
|
-
label:
|
|
265
|
+
label: y.title(
|
|
254
266
|
c.global.t(`connect.campaign.common.status.${e}`)
|
|
255
267
|
),
|
|
256
268
|
compact: !0
|
|
257
269
|
});
|
|
258
270
|
}
|
|
259
|
-
function
|
|
271
|
+
function P(t) {
|
|
260
272
|
if (!t || !t.start && !t.end)
|
|
261
273
|
return "connect.campaign.common.always";
|
|
262
274
|
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";
|
|
263
275
|
return `${e} - ${n}`;
|
|
264
276
|
}
|
|
265
|
-
function
|
|
277
|
+
function et(t) {
|
|
266
278
|
const { campaign: e } = t;
|
|
267
279
|
return {
|
|
268
280
|
"connect.campaign.common.campaign_name": e.name,
|
|
269
|
-
"connect.campaign.common.campaign_period":
|
|
281
|
+
"connect.campaign.common.campaign_period": P(
|
|
270
282
|
e.timeframeOptions
|
|
271
283
|
),
|
|
272
284
|
get "connect.campaign.common.next_schedule_at"() {
|
|
@@ -278,38 +290,40 @@ function Z(t) {
|
|
|
278
290
|
return n ? u(n).format("ddd, DD MMM YYYY, hh:mmA") : void 0;
|
|
279
291
|
},
|
|
280
292
|
get "connect.campaign.common.discount_type"() {
|
|
281
|
-
if (e.type == "PROMOTION") return
|
|
293
|
+
if (e.type == "PROMOTION") return f(e.effect);
|
|
282
294
|
if ("configs" in t && t.configs.type == "VOUCHER")
|
|
283
|
-
return
|
|
295
|
+
return f(t.configs.extras.effect);
|
|
284
296
|
},
|
|
285
297
|
get "connect.campaign.broadcast.summary.delivery"() {
|
|
286
298
|
if (e.type != "BROADCAST") return;
|
|
287
|
-
const n =
|
|
299
|
+
const n = d(e);
|
|
288
300
|
if (!(n.channels.length < 2))
|
|
289
301
|
return `connect.campaign.broadcast.mode.${n.mode}.label`;
|
|
290
302
|
},
|
|
291
303
|
get "connect.campaign.broadcast.summary.channels"() {
|
|
292
304
|
var n;
|
|
293
305
|
if (e.type == "BROADCAST")
|
|
294
|
-
return ((n =
|
|
306
|
+
return ((n = T(e)) == null ? void 0 : n.route) ?? "connect.campaign.broadcast.noChannelsSelected";
|
|
295
307
|
},
|
|
296
308
|
get "connect.campaign.common.available_at"() {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
309
|
+
const n = A(
|
|
310
|
+
e.targetLocation,
|
|
311
|
+
E().locations
|
|
312
|
+
);
|
|
313
|
+
return n.kind === "all" ? "connect.campaign.common.all_locations" : n.kind === "none" ? "connect.campaign.common.no_location" : n.kind === "names" ? n.names.join(", ") : n;
|
|
300
314
|
}
|
|
301
315
|
};
|
|
302
316
|
}
|
|
303
|
-
function
|
|
317
|
+
function M(t) {
|
|
304
318
|
return t.timeframeOptions && t.timeframeOptions.type == "timeframe" ? u().isBetween(
|
|
305
319
|
t.timeframeOptions.start ?? u().subtract(1, "d"),
|
|
306
320
|
t.timeframeOptions.end ?? u().add(1, "d")
|
|
307
321
|
) ? "active" : u().isAfter(t.timeframeOptions.end) ? "expired" : "upcoming" : "active";
|
|
308
322
|
}
|
|
309
|
-
function
|
|
310
|
-
const e =
|
|
323
|
+
function T(t) {
|
|
324
|
+
const e = d(t);
|
|
311
325
|
if (!e.channels.length) return null;
|
|
312
|
-
const o =
|
|
326
|
+
const o = S(e, (r) => c.global.t(`connect.campaign.broadcast.channel.${r}`));
|
|
313
327
|
return {
|
|
314
328
|
strategy: e.channels.length > 1 ? c.global.t(
|
|
315
329
|
`connect.campaign.broadcast.strategy.${e.mode}`
|
|
@@ -317,7 +331,7 @@ function A(t) {
|
|
|
317
331
|
route: o
|
|
318
332
|
};
|
|
319
333
|
}
|
|
320
|
-
function
|
|
334
|
+
function nt(t) {
|
|
321
335
|
var e, n;
|
|
322
336
|
switch (t.event.type) {
|
|
323
337
|
case "BILL_COMPLETED":
|
|
@@ -328,8 +342,8 @@ function tt(t) {
|
|
|
328
342
|
case "COIN":
|
|
329
343
|
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)}`;
|
|
330
344
|
case "VOUCHER":
|
|
331
|
-
const
|
|
332
|
-
return
|
|
345
|
+
const r = (n = (e = t == null ? void 0 : t.pf_collectible) == null ? void 0 : e.extras) == null ? void 0 : n.effect;
|
|
346
|
+
return r ? `${o} - ${f(r)}` : o;
|
|
333
347
|
default:
|
|
334
348
|
return o;
|
|
335
349
|
}
|
|
@@ -344,7 +358,7 @@ function tt(t) {
|
|
|
344
358
|
case "MEMBERSHIP_JOINED":
|
|
345
359
|
return `Receive ${m.formattedType(t.type)} when member joined`;
|
|
346
360
|
case "MAKING_ORDER":
|
|
347
|
-
return t.type !== "PROMOTION" ? void 0 :
|
|
361
|
+
return t.type !== "PROMOTION" ? void 0 : f(t.effect);
|
|
348
362
|
default:
|
|
349
363
|
throw new Error(
|
|
350
364
|
`Not implemented ${JSON.stringify({ cause: t.event.type })}`
|
|
@@ -352,22 +366,22 @@ function tt(t) {
|
|
|
352
366
|
}
|
|
353
367
|
}
|
|
354
368
|
export {
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
369
|
+
Z as C,
|
|
370
|
+
tt as a,
|
|
371
|
+
nt as b,
|
|
372
|
+
T as c,
|
|
359
373
|
N as d,
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
374
|
+
q as e,
|
|
375
|
+
K as f,
|
|
376
|
+
M as g,
|
|
377
|
+
j as h,
|
|
378
|
+
G as i,
|
|
379
|
+
J as j,
|
|
380
|
+
W as k,
|
|
381
|
+
X as l,
|
|
382
|
+
z as m,
|
|
383
|
+
et as n,
|
|
384
|
+
Q as o,
|
|
385
|
+
V as r,
|
|
386
|
+
P as s
|
|
373
387
|
};
|