@feedmepos/mf-connect 0.1.113-prod → 0.1.114-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -1
- package/dist/{App-2J4yDonr.js → App-CIWTDYuZ.js} +700 -654
- package/dist/AuditLogs-BluLDXu9.js +2016 -0
- package/dist/{Bin-BU_hVuxJ.js → Bin-jS6pM4L3.js} +8 -8
- package/dist/Broadcast-DBqsSZ0S.js +306 -0
- package/dist/{CampaignAnalytic-DUUmFMvy.js → CampaignAnalytic-DJrjXD4H.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BZirReIy.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CzwigRLi.js} +9 -9
- package/dist/{Card-DS2K_LFv.js → Card-B10nLilL.js} +25 -24
- package/dist/{Collections-BFdRdPHR.js → Collections-BN42A73p.js} +197 -185
- package/dist/{Credit-CODfiox3.js → Credit-0SS26HGE.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-B2T5G1hZ.js → DateRangeChip.vue_vue_type_script_setup_true_lang-B3wozBFs.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BRd5RVYe.js +4442 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-KvZebiOu.js → EffectSheet.vue_vue_type_style_index_0_lang-zV9dLCWp.js} +32 -32
- package/dist/{Experience-BGBWc8Ep.js → Experience-D7qPzsrc.js} +32 -31
- package/dist/{FileSaver.min-DJAN3Eu0.js → FileSaver.min-BKWoklMK.js} +1 -1
- package/dist/{Game-6yyn0uAd.js → Game-BoYMwfog.js} +19 -18
- package/dist/{GiftCardSetup-B096bTm0.js → GiftCardSetup-B87O0xzo.js} +75 -75
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-ChvUXdF-.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-B3uGbEFY.js} +7 -7
- package/dist/{Goals-Db2mwbRo.js → Goals-CVxf3xCA.js} +4 -4
- package/dist/Grab-mGL1Mue_.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-xdEzwMcS.js → ImageInput.vue_vue_type_script_setup_true_lang-HipBZ1_T.js} +1 -1
- package/dist/{Index-580WNkG2.js → Index-Dptuy-6c.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BkAQXKNJ.js → LocationPicker.vue_vue_type_script_setup_true_lang-Cjc4UeKz.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CR6sSnx4.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Bh0ari3f.js} +1 -1
- package/dist/{LoyaltyDashboard-Clr2aiUP.js → LoyaltyDashboard-BxhI6RAE.js} +15 -15
- package/dist/MainLayout-YfDxvZXl.js +4 -0
- package/dist/{MainLayout-_iCyT5mw.js → MainLayout.vue_vue_type_script_setup_true_lang-BgXpznbi.js} +5 -4
- package/dist/{Marketing-fq1wxANq.js → Marketing-C2cVJacf.js} +4 -4
- package/dist/MarketingMaterialEdit-DkOEy_L-.js +1037 -0
- package/dist/{Member-BfRy196y.js → Member-DufbKDOh.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BAR44Qcp.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CU8EmBxy.js} +43 -50
- package/dist/{MemberImportHistory-C4622Ivs.js → MemberImportHistory-DlFN-uQl.js} +7 -7
- package/dist/{MemberList-DqtsMN_N.js → MemberList-B344n8I4.js} +103 -105
- package/dist/{MemberTransactions-DsUoFg3z.js → MemberTransactions-BS7H640M.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CzFMUgXM.js → MessageInput.vue_vue_type_script_setup_true_lang-CxDtXvwd.js} +4228 -4176
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CVQYcuQ6.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-lY0jlyOG.js} +1 -1
- package/dist/{Mission-B0GO4LiM.js → Mission-D2ed_oKn.js} +22 -21
- package/dist/{Overview-XpJJmHqs.js → Overview-CLh_T6YY.js} +145 -144
- package/dist/{Overview-CVITimwN.js → Overview-DJa-hXDC.js} +23 -22
- package/dist/{Point-B7aCrMkI.js → Point-DAPeg1VD.js} +22 -21
- package/dist/{Promotion-DfVcuXHy.js → Promotion-CPPCMMFl.js} +137 -131
- package/dist/{Queue-BT7O2cvj.js → Queue-BcPwCRcM.js} +47 -46
- package/dist/{Record-CAc030dz.js → Record-C5XKn--g.js} +9 -9
- package/dist/{Review-CyXo4GTY.js → Review-Cc51luIv.js} +2 -2
- package/dist/ReviewFacebookCallback-BSGInFB8.js +225 -0
- package/dist/{ReviewGoogleCallback-BxiFOl0B.js → ReviewGoogleCallback-C1gY4vcP.js} +5 -5
- package/dist/{Reward-ChfNtdwX.js → Reward-k1R3hLiF.js} +29 -29
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CpQu_QBQ.js → RewardGroup.vue_vue_type_script_setup_true_lang-BGbbGVK4.js} +16 -15
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Coh3L11L.js +1923 -0
- package/dist/{Segment-H2zBDZeh.js → Segment-DsBnIvje.js} +290 -291
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B0jCJ-Xq.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CMKpvXN-.js} +31 -30
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DW_ViNZM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-LyAtRMs8.js} +4 -4
- package/dist/Setting-BRueNgc4.js +574 -0
- package/dist/{SettingAdvertisements-DPQHP3-B.js → SettingAdvertisements-BrVcQyhF.js} +12 -12
- package/dist/Settings-fOvXd29Z.js +286 -0
- package/dist/{Store-B2f5HVQc.js → Store-rrh2pIHH.js} +661 -654
- package/dist/{StoreRewards-QxfaEt9f.js → StoreRewards-D-jivVKr.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CvQXsZbH.js +1319 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DbnY9VE9.js +7007 -0
- package/dist/{Tier-BSk4rBm8.js → Tier-DJiLtw3M.js} +2576 -687
- package/dist/{Title-CIzpB8TT.js → Title-s0bzA7yZ.js} +94 -92
- package/dist/{Transaction-BjxxNEHa.js → Transaction-CQ-CJ_eh.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BMutYxOU.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Bfy8SZH1.js} +26 -26
- package/dist/{Voucher-B2lFq21Y.js → Voucher-9vydRET7.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BWV631It.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Dq7veRL5.js} +16 -16
- package/dist/WhatsappAccount-D12Hvzfl.js +159 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BrZEDi6O.js +39 -0
- package/dist/WhatsappBot-o5b_0CnB.js +629 -0
- package/dist/WhatsappBotLogs-CK_V_iT5.js +372 -0
- package/dist/WhatsappBotSettings-BooibLUg.js +694 -0
- package/dist/WhatsappLayout-bOyNHGUI.js +21 -0
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-Cytrffdh.js +253 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BCoB0Fsa.js → ZodTextField.vue_vue_type_script_setup_true_lang-96t_eUzk.js} +2 -2
- package/dist/{app-DgFVWdhA.js → app-DV3e2LkD.js} +10610 -8223
- package/dist/app.js +4 -3
- package/dist/{base.export-B6Rojjek.js → base.export-DQUUtGmy.js} +2 -2
- package/dist/browser-BSAOEeIM.js +1478 -0
- package/dist/{business-C6ID0exl.js → business-BZ0boE-5.js} +1 -1
- package/dist/campaign-CsfFq2S-.js +400 -0
- package/dist/{campaign-BgSJXWdU.js → campaign-DMrtYWcs.js} +31 -25
- package/dist/{campaign.enum-CVvm0LMm.js → campaign.enum-Dx-Zo68Q.js} +3 -2
- package/dist/campaign.fn-C-CdNNdR.js +776 -0
- package/dist/{collectible.enum-DGQVW464.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/{collection.fn-dV4F8R-j.js → collection.fn-C-rryKSc.js} +2 -2
- package/dist/{currency-DlHi_3WN.js → currency-BOd9iVZV.js} +1 -1
- package/dist/duplicateCampaign-ey_rW0Bz.js +51 -0
- package/dist/{effect-BJgmiWY4.js → effect-BP6Hkxmj.js} +1 -1
- package/dist/{email-addresses-3GTx_xTh.js → email-addresses-CO61QAq0.js} +2 -2
- package/dist/feature-flag-Bq1SgbYC.js +868 -0
- package/dist/feature-flag-lvPP0ED-.js +50 -0
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-BX0JQP06.js → helper-BRpts-M-.js} +1 -1
- package/dist/{index-BIpAzktM.js → index-03WIXl-H.js} +8 -7
- package/dist/{index-BeCKw7Y3.js → index-B0RavybO.js} +19 -6
- package/dist/{index-DeNbsrQx.js → index-BDNkoALK.js} +1 -1
- package/dist/{index-Bl5aHABH.js → index-BV5aPSYo.js} +11 -10
- package/dist/{index-Cnw0B8Lc.js → index-Bk20uvPY.js} +1 -1
- package/dist/index-Bn19rfby.js +14571 -0
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-nmw7_9ZE.js → index-Cj-eugzc.js} +1 -1
- package/dist/{index-uXgPJlic.js → index-CoROn5OA.js} +2700 -2613
- package/dist/{index-DdMVrWZy.js → index-CrBhcMaL.js} +8028 -10767
- package/dist/{index-2xed2K8D.js → index-CsBjAM3E.js} +4 -3
- package/dist/{index-CiFReW-F.js → index-D1t4_KaG.js} +1 -1
- package/dist/{index-DRNdJ_KC.js → index-D3wGTCWf.js} +8 -7
- package/dist/{index-CtBLnWVG.js → index-D41kjcrZ.js} +683 -581
- package/dist/{index-CNULhBPM.js → index-DIZLkVe0.js} +691 -230
- package/dist/{index-QaWLGgEC.js → index-DucKyzrD.js} +2 -2
- package/dist/{index-o2OQljHs.js → index-R5WS21OL.js} +4 -4
- package/dist/index-RwNlbTO8.js +115 -0
- package/dist/{index-R0qlOO6J.js → index-VYI0zWNC.js} +29 -15
- package/dist/index-ZRE89TKq.js +80 -0
- package/dist/{index-BHT6cvWA.js → index-_Cj-bsd_.js} +396 -232
- package/dist/{index-Y2Pu1YkB.js → index-mToWKHVs.js} +2 -2
- package/dist/{index.esm2017-Dum0onrS.js → index.esm2017-B_Sag8Pg.js} +209 -209
- package/dist/{loading-B2mSdkfy.js → loading-C5fVI0ry.js} +1 -1
- package/dist/{lodash-DtOypaKt.js → lodash-COo8_xCU.js} +1 -1
- package/dist/{member-import-C2pLnh44.js → member-import-I_pKwUfF.js} +6 -5
- package/dist/{membership-BWyBGF4n.js → membership-BgfH9Kva.js} +3 -3
- package/dist/{money-3lCCVCeP.js → money-Cr07YDlV.js} +1 -1
- package/dist/{number-zlqy2MLG.js → number-DFsj0dkh.js} +1 -1
- package/dist/objectid-Cu89BzwI.js +145 -0
- package/dist/{onboarding-BqD3B4M1.js → onboarding-DlkJCm-5.js} +25 -25
- package/dist/{onboardingSetup-CCQ90jg7.js → onboardingSetup-BEhVj613.js} +2 -2
- package/dist/{plugins-Bj3npYnL.js → plugins-CPTtiKqf.js} +3 -3
- package/dist/{MarketingMaterialEdit-0h7E0n5e.js → remy-icon-BhUGu2NI.js} +2 -1031
- package/dist/{reward-5dDuZEb7.js → reward-DqY0mQ_5.js} +1 -1
- package/dist/{rule-NqLeSyoO.js → rule-mJJ48eKw.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-C1QftpDG.js +188 -0
- package/dist/{timezone-B0lkgvh-.js → timezone-BBgBHels.js} +1 -1
- package/dist/{transaction.fn-CACuVUBe.js → transaction.fn-Sr0hj3kY.js} +2 -2
- package/dist/{trigger-BKJwKTJx.js → trigger-PUP0mwKM.js} +8 -8
- package/dist/{useMarketingMaterialActions-DERvOmen.js → useMarketingMaterialActions-faslwaHd.js} +3 -3
- package/dist/{usePagination-FkjroUq2.js → usePagination-Be6nIQ9y.js} +1 -1
- package/dist/{user-H9MnsLbu.js → user-DBSYzG_9.js} +1 -1
- package/dist/vue-i18n-C6c2jsH3.js +2365 -0
- package/dist/{xlsx-BVmtIl_i.js → xlsx-Bfo19lFv.js} +786 -786
- package/dist/{zod-DI7OBdxu.js → zod-CihbDg3N.js} +1 -1
- package/package.json +12 -3
- package/dist/Broadcast-CoirZUyr.js +0 -271
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DyIOw_HH.js +0 -2431
- package/dist/ReviewFacebookCallback--IcyheQA.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang--5K-qagY.js +0 -1883
- package/dist/Setting-D4XOHSHT.js +0 -2036
- package/dist/Settings-Dt_oLoGl.js +0 -179
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Db2cd6ny.js +0 -1264
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-D9L-AayN.js +0 -142
- package/dist/campaign-DDfFBFye.js +0 -228
- package/dist/campaign.fn-DRabv93K.js +0 -776
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/index-CmhDYsk6.js +0 -51
- package/dist/objectid-b2KGvMA7.js +0 -145
- package/dist/rule-builder-BzYwbbj4.js +0 -102
- package/dist/template-fjUz6xrU.js +0 -236
- package/dist/vue-i18n-DbJO6sZW.js +0 -2365
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { defineComponent as N, ref as U, computed as w, watch as M, resolveComponent as v, openBlock as a, createElementBlock as i, Fragment as p, toDisplayString as F, createCommentVNode as T, createElementVNode as j, createVNode as h, unref as n, renderList as S, createBlock as k, isRef as $, withCtx as C } from "vue";
|
|
2
|
-
import { u as q } from "./business-C6ID0exl.js";
|
|
3
|
-
import { u as D } from "./vue-i18n-DbJO6sZW.js";
|
|
4
|
-
function K(l, s, o) {
|
|
5
|
-
return l.some(
|
|
6
|
-
o instanceof Function ? o : (u) => u === s
|
|
7
|
-
) || l.push(s), l;
|
|
8
|
-
}
|
|
9
|
-
function O(l, s, o) {
|
|
10
|
-
return l.filter(
|
|
11
|
-
o instanceof Function ? (u) => !o(u) : (u) => u !== s
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
const R = {
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "fm-typo-en-body-lg-400"
|
|
17
|
-
}, z = {
|
|
18
|
-
key: 1,
|
|
19
|
-
class: "space-y-4"
|
|
20
|
-
}, A = { key: 0 }, G = { key: 1 }, H = { key: 2 }, W = /* @__PURE__ */ N({
|
|
21
|
-
__name: "TargetLocationInput",
|
|
22
|
-
props: {
|
|
23
|
-
label: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
type: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: "select"
|
|
29
|
-
},
|
|
30
|
-
modelValue: {
|
|
31
|
-
type: Object,
|
|
32
|
-
required: !0
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
emits: ["update:model-value"],
|
|
36
|
-
setup(l, { emit: s }) {
|
|
37
|
-
const o = q(), { t: u } = D(), c = l, r = U(""), B = w(() => o.locations.filter(
|
|
38
|
-
(d) => {
|
|
39
|
-
var t;
|
|
40
|
-
return d.name.toLowerCase().includes(r.value.toLowerCase()) || ((t = d == null ? void 0 : d.code) == null ? void 0 : t.toLowerCase().includes(r.value.toLowerCase()));
|
|
41
|
-
}
|
|
42
|
-
)), b = s;
|
|
43
|
-
function L(d, t) {
|
|
44
|
-
const m = d ? K(c.modelValue || [], t.toString()) : O(
|
|
45
|
-
c.modelValue || o.locations.map((g) => g._id.toString()),
|
|
46
|
-
t.toString()
|
|
47
|
-
);
|
|
48
|
-
return b("update:model-value", m);
|
|
49
|
-
}
|
|
50
|
-
const V = U(!1), I = w(() => {
|
|
51
|
-
var m, g;
|
|
52
|
-
const t = ((m = c.modelValue) == null ? void 0 : m.slice(0, 5).map((f) => {
|
|
53
|
-
var y;
|
|
54
|
-
return ((y = o.locationById(f)) == null ? void 0 : y.name) || f;
|
|
55
|
-
})) || [];
|
|
56
|
-
return c.modelValue && ((g = c.modelValue) == null ? void 0 : g.length) > 5 && t.push(`+${c.modelValue.length - 5} more`), t;
|
|
57
|
-
});
|
|
58
|
-
return M(V, (d) => {
|
|
59
|
-
d && (r.value = "");
|
|
60
|
-
}), (d, t) => {
|
|
61
|
-
const m = v("FmCheckbox"), g = v("FmChip"), f = v("FmField"), y = v("FmTextField"), E = v("FmMenu");
|
|
62
|
-
return a(), i(p, null, [
|
|
63
|
-
l.label ? (a(), i("div", R, F(l.label), 1)) : T("", !0),
|
|
64
|
-
l.type === "checkbox" ? (a(), i("div", z, [
|
|
65
|
-
j("div", null, [
|
|
66
|
-
h(m, {
|
|
67
|
-
value: null,
|
|
68
|
-
indeterminate: l.modelValue != null && l.modelValue.length > 0 && l.modelValue.length < n(o).locations.length,
|
|
69
|
-
label: n(u)("connect.setting.location.allLocations"),
|
|
70
|
-
"model-value": l.modelValue == null || l.modelValue.length === n(o).locations.length,
|
|
71
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) => b("update:model-value", e ? null : []))
|
|
72
|
-
}, null, 8, ["indeterminate", "label", "model-value"])
|
|
73
|
-
]),
|
|
74
|
-
(a(!0), i(p, null, S(n(o).locations, (e) => (a(), i("div", {
|
|
75
|
-
key: e._id.toString()
|
|
76
|
-
}, [
|
|
77
|
-
h(m, {
|
|
78
|
-
value: e._id.toString(),
|
|
79
|
-
label: `${e.code ? `${e.code} - ` : ""} ${e.name}`,
|
|
80
|
-
"model-value": !l.modelValue || l.modelValue.includes(e._id.toString()),
|
|
81
|
-
"onUpdate:modelValue": (x) => L(x, e._id.toString())
|
|
82
|
-
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"])
|
|
83
|
-
]))), 128))
|
|
84
|
-
])) : (a(), k(E, {
|
|
85
|
-
key: 2,
|
|
86
|
-
modelValue: n(V),
|
|
87
|
-
"onUpdate:modelValue": t[3] || (t[3] = (e) => $(V) ? V.value = e : null),
|
|
88
|
-
onMenuChanged: t[4] || (t[4] = (e) => V.value = e),
|
|
89
|
-
placement: "top-end"
|
|
90
|
-
}, {
|
|
91
|
-
"menu-button": C(() => [
|
|
92
|
-
h(f, {
|
|
93
|
-
"append-icon": n(V) ? "expand_more" : "expand_less",
|
|
94
|
-
class: "!h-auto"
|
|
95
|
-
}, {
|
|
96
|
-
default: C(() => [
|
|
97
|
-
!l.modelValue || l.modelValue.length == n(o).locations.length ? (a(), i("div", A, F(n(u)("connect.setting.location.allLocations")), 1)) : l.modelValue.length ? (a(), i("div", H, [
|
|
98
|
-
(a(!0), i(p, null, S(n(I), (e) => (a(), k(g, {
|
|
99
|
-
key: e,
|
|
100
|
-
label: e,
|
|
101
|
-
class: "max-w-[130px] text-ellipsis"
|
|
102
|
-
}, null, 8, ["label"]))), 128))
|
|
103
|
-
])) : (a(), i("div", G, F(n(u)("connect.setting.location.noLocations")), 1))
|
|
104
|
-
]),
|
|
105
|
-
_: 1
|
|
106
|
-
}, 8, ["append-icon"])
|
|
107
|
-
]),
|
|
108
|
-
default: C(() => [
|
|
109
|
-
h(y, {
|
|
110
|
-
modelValue: n(r),
|
|
111
|
-
"onUpdate:modelValue": t[1] || (t[1] = (e) => $(r) ? r.value = e : null),
|
|
112
|
-
placeholder: n(u)("connect.setting.location.searchLocations"),
|
|
113
|
-
class: "my-8"
|
|
114
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
115
|
-
h(m, {
|
|
116
|
-
class: "my-8",
|
|
117
|
-
value: null,
|
|
118
|
-
indeterminate: l.modelValue != null && l.modelValue.length > 0 && l.modelValue.length < n(o).locations.length,
|
|
119
|
-
label: n(u)("connect.setting.location.allLocations"),
|
|
120
|
-
"model-value": l.modelValue == null || l.modelValue.length === n(o).locations.length,
|
|
121
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) => b("update:model-value", e ? null : []))
|
|
122
|
-
}, null, 8, ["indeterminate", "label", "model-value"]),
|
|
123
|
-
(a(!0), i(p, null, S(n(B), (e) => (a(), k(m, {
|
|
124
|
-
class: "my-8",
|
|
125
|
-
key: e._id.toString(),
|
|
126
|
-
value: e._id.toString(),
|
|
127
|
-
label: `${e.code ? `${e.code} - ` : ""} ${e.name}`,
|
|
128
|
-
"model-value": !l.modelValue || l.modelValue.includes(e._id.toString()),
|
|
129
|
-
"onUpdate:modelValue": (x) => L(x, e._id.toString())
|
|
130
|
-
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
|
|
131
|
-
]),
|
|
132
|
-
_: 1
|
|
133
|
-
}, 8, ["modelValue"]))
|
|
134
|
-
], 64);
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
export {
|
|
139
|
-
W as _,
|
|
140
|
-
K as p,
|
|
141
|
-
O as r
|
|
142
|
-
};
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { h as r } from "./moment-D7p2TMB-.js";
|
|
2
|
-
import "./index-BHT6cvWA.js";
|
|
3
|
-
import { e as p } from "./effect-BJgmiWY4.js";
|
|
4
|
-
import { components as u } from "@feedmepos/ui-library";
|
|
5
|
-
import { i as g } from "./rule-builder-BzYwbbj4.js";
|
|
6
|
-
import { c as y } from "./rule-NqLeSyoO.js";
|
|
7
|
-
import { u as d } from "./business-C6ID0exl.js";
|
|
8
|
-
import { C as m } from "./campaign.fn-DRabv93K.js";
|
|
9
|
-
import { c as f } from "./string-Gcy5IM_H.js";
|
|
10
|
-
import { i as o } from "./plugins-Bj3npYnL.js";
|
|
11
|
-
import { h as s } from "vue";
|
|
12
|
-
import { F as a } from "./campaign.enum-CVvm0LMm.js";
|
|
13
|
-
function c(e) {
|
|
14
|
-
return s(
|
|
15
|
-
"div",
|
|
16
|
-
{
|
|
17
|
-
class: `${e.chipClass} gap-4 h-[22px] inline-flex items-center justify-center min-w-min px-8 rounded-md`
|
|
18
|
-
},
|
|
19
|
-
[
|
|
20
|
-
s(u.FmIcon, { size: "sm", name: e.icon, outline: !0 }),
|
|
21
|
-
s("span", { class: "fm-typo-en-body-md-600" }, e.name)
|
|
22
|
-
]
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
const D = {
|
|
26
|
-
[a.enum.CREDIT]: {
|
|
27
|
-
chipClass: "!text-fm-color-secondary-plum !bg-[#f2ebfe]",
|
|
28
|
-
icon: "local_activity",
|
|
29
|
-
get name() {
|
|
30
|
-
return o.global.t("connect.campaign.common.typeName.CREDIT");
|
|
31
|
-
},
|
|
32
|
-
chip() {
|
|
33
|
-
return c(this);
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
[a.enum.PROMOTION]: {
|
|
37
|
-
chipClass: "!text-fm-color-secondary-citrus !bg-fm-color-system-warning-100",
|
|
38
|
-
icon: "loyalty",
|
|
39
|
-
get name() {
|
|
40
|
-
return o.global.t("connect.campaign.common.typeName.PROMOTION");
|
|
41
|
-
},
|
|
42
|
-
chip() {
|
|
43
|
-
return c(this);
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
[a.enum.VOUCHER]: {
|
|
47
|
-
chipClass: "!text-fm-color-secondary-halite !bg-[#fff0f6]",
|
|
48
|
-
icon: "sell",
|
|
49
|
-
get name() {
|
|
50
|
-
return o.global.t("connect.campaign.common.typeName.VOUCHER");
|
|
51
|
-
},
|
|
52
|
-
chip() {
|
|
53
|
-
return c(this);
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
[a.enum.POINT]: {
|
|
57
|
-
chipClass: "!text-fm-color-secondary-cocoa !bg-[#fff9e6]",
|
|
58
|
-
icon: "award_star",
|
|
59
|
-
get name() {
|
|
60
|
-
return o.global.t("connect.campaign.common.typeName.POINT");
|
|
61
|
-
},
|
|
62
|
-
chip() {
|
|
63
|
-
return c(this);
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
[a.enum.BROADCAST]: {
|
|
67
|
-
chipClass: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
|
|
68
|
-
icon: "campaign",
|
|
69
|
-
get name() {
|
|
70
|
-
return o.global.t("connect.campaign.common.typeName.BROADCAST");
|
|
71
|
-
},
|
|
72
|
-
chip() {
|
|
73
|
-
return c(this);
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
[a.enum.GAME]: {
|
|
77
|
-
chipClass: "!text-fm-color-secondary-mint !bg-fm-color-system-success-100",
|
|
78
|
-
icon: "database",
|
|
79
|
-
get name() {
|
|
80
|
-
return o.global.t("connect.campaign.common.typeName.GAME");
|
|
81
|
-
},
|
|
82
|
-
chip() {
|
|
83
|
-
return c(this);
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
[a.enum.REWARD_POOL]: {
|
|
87
|
-
chipClass: "!text-fm-color-secondary-tuna !bg-[#e3f4f9]",
|
|
88
|
-
icon: "editor_choice",
|
|
89
|
-
get name() {
|
|
90
|
-
return o.global.t("connect.campaign.common.typeName.REWARD_POOL");
|
|
91
|
-
},
|
|
92
|
-
chip() {
|
|
93
|
-
return c(this);
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
[a.enum.COIN]: {
|
|
97
|
-
chipClass: "!text-fm-color-system-success-400 !bg-fm-color-system-success-100",
|
|
98
|
-
icon: "monetization_on",
|
|
99
|
-
get name() {
|
|
100
|
-
return o.global.t("connect.campaign.common.typeName.COIN");
|
|
101
|
-
},
|
|
102
|
-
chip() {
|
|
103
|
-
return c(this);
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
[a.enum.MEMBERSHIP]: {
|
|
107
|
-
chipClass: "",
|
|
108
|
-
icon: "",
|
|
109
|
-
get name() {
|
|
110
|
-
return o.global.t("connect.campaign.common.typeName.MEMBERSHIP");
|
|
111
|
-
},
|
|
112
|
-
chip() {
|
|
113
|
-
return c(this);
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
// TODO: confirm color
|
|
117
|
-
[a.enum.MISSION]: {
|
|
118
|
-
chipClass: "!text-fm-color-secondary-tuna !bg-[#e3f4f9]",
|
|
119
|
-
icon: "editor_choice",
|
|
120
|
-
get name() {
|
|
121
|
-
return o.global.t("connect.campaign.common.typeName.MISSION");
|
|
122
|
-
},
|
|
123
|
-
chip() {
|
|
124
|
-
return c(this);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
function A(e) {
|
|
129
|
-
const t = O(e), n = {
|
|
130
|
-
active: "text-fm-color-typo-success bg-fm-color-system-success-100",
|
|
131
|
-
upcoming: "text-fm-color-typo-info bg-fm-color-system-info-100",
|
|
132
|
-
expired: "text-fm-color-typo-error bg-fm-color-system-error-100"
|
|
133
|
-
};
|
|
134
|
-
return e.type == "VOUCHER" ? s(u.FmChip, {
|
|
135
|
-
class: n[t],
|
|
136
|
-
label: f.title(
|
|
137
|
-
o.global.t(`connect.campaign.common.status.${t}`)
|
|
138
|
-
),
|
|
139
|
-
compact: !0
|
|
140
|
-
}) : s(u.FmChip, {
|
|
141
|
-
class: n[t],
|
|
142
|
-
label: f.title(
|
|
143
|
-
o.global.t(`connect.campaign.common.status.${t}`)
|
|
144
|
-
),
|
|
145
|
-
compact: !0
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
function h(e) {
|
|
149
|
-
if (!e || !e.start && !e.end)
|
|
150
|
-
return "connect.campaign.common.always";
|
|
151
|
-
const t = e.start ? r(e.start).format("DD MMM YYYY") : "From campaign creation", n = e.end ? r(e.end).format("DD MMM YYYY") : "Never ends";
|
|
152
|
-
return `${t} - ${n}`;
|
|
153
|
-
}
|
|
154
|
-
function $(e) {
|
|
155
|
-
const { campaign: t } = e;
|
|
156
|
-
return {
|
|
157
|
-
"connect.campaign.common.campaign_name": t.name,
|
|
158
|
-
"connect.campaign.common.campaign_period": h(
|
|
159
|
-
t.timeframeOptions
|
|
160
|
-
),
|
|
161
|
-
get "connect.campaign.common.next_schedule_at"() {
|
|
162
|
-
if (t.event.type != "SCHEDULE" || !t.event.rule || !g(t.event.rule))
|
|
163
|
-
return;
|
|
164
|
-
const n = y(
|
|
165
|
-
t.event.rule.rules.g_schedule
|
|
166
|
-
);
|
|
167
|
-
return n ? r(n).format("ddd, DD MMM YYYY, hh:mmA") : void 0;
|
|
168
|
-
},
|
|
169
|
-
get "connect.campaign.common.discount_type"() {
|
|
170
|
-
if (t.type == "PROMOTION") return p(t.effect);
|
|
171
|
-
if ("configs" in e && e.configs.type == "VOUCHER")
|
|
172
|
-
return p(e.configs.extras.effect);
|
|
173
|
-
},
|
|
174
|
-
get "connect.campaign.common.available_at"() {
|
|
175
|
-
return t.targetLocation ? t.targetLocation.length > 0 ? t.targetLocation.map(
|
|
176
|
-
(n) => d().locationItems.find((i) => i.value == n).label
|
|
177
|
-
).join(",") : "connect.campaign.common.no_location" : "connect.campaign.common.all_locations";
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
function O(e) {
|
|
182
|
-
return e.timeframeOptions && e.timeframeOptions.type == "timeframe" ? r().isBetween(
|
|
183
|
-
e.timeframeOptions.start ?? r().subtract(1, "d"),
|
|
184
|
-
e.timeframeOptions.end ?? r().add(1, "d")
|
|
185
|
-
) ? "active" : r().isAfter(e.timeframeOptions.end) ? "expired" : "upcoming" : "active";
|
|
186
|
-
}
|
|
187
|
-
function P(e) {
|
|
188
|
-
var t, n;
|
|
189
|
-
switch (e.event.type) {
|
|
190
|
-
case "BILL_COMPLETED":
|
|
191
|
-
const i = `Spend to get ${m.formattedType(e.type)}`;
|
|
192
|
-
switch (e.type) {
|
|
193
|
-
case "POINT":
|
|
194
|
-
case "CREDIT":
|
|
195
|
-
case "COIN":
|
|
196
|
-
return e.earningOption.type == "FIXED" ? `Spend to get ${e.earningOption.amount} ${m.formattedType(e.type)}` : `Every ${e.earningOption.every} amount spent get ${e.earningOption.amount} ${m.formattedType(e.type)}`;
|
|
197
|
-
case "VOUCHER":
|
|
198
|
-
const l = (n = (t = e == null ? void 0 : e.pf_collectible) == null ? void 0 : t.extras) == null ? void 0 : n.effect;
|
|
199
|
-
return l ? `${i} - ${p(l)}` : i;
|
|
200
|
-
default:
|
|
201
|
-
return i;
|
|
202
|
-
}
|
|
203
|
-
case "FEEDBACK":
|
|
204
|
-
return `Give feedback to receive ${m.formattedType(e.type)}`;
|
|
205
|
-
case "SCHEDULE":
|
|
206
|
-
return `Receive ${m.formattedType(e.type)} on scheduled time`;
|
|
207
|
-
case "SIMPLE_CLAIM":
|
|
208
|
-
return "Simple claim voucher";
|
|
209
|
-
case "TIER_UPGRADED":
|
|
210
|
-
return `Receive ${m.formattedType(e.type)} when member tier upgraded`;
|
|
211
|
-
case "MEMBERSHIP_JOINED":
|
|
212
|
-
return `Receive ${m.formattedType(e.type)} when member joined`;
|
|
213
|
-
case "MAKING_ORDER":
|
|
214
|
-
return e.type !== "PROMOTION" ? void 0 : p(e.effect);
|
|
215
|
-
default:
|
|
216
|
-
throw new Error(
|
|
217
|
-
`Not implemented ${JSON.stringify({ cause: e.event.type })}`
|
|
218
|
-
);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
export {
|
|
222
|
-
D as C,
|
|
223
|
-
A as a,
|
|
224
|
-
P as b,
|
|
225
|
-
$ as c,
|
|
226
|
-
O as g,
|
|
227
|
-
h as s
|
|
228
|
-
};
|