@feedmepos/mf-connect 0.1.47-prod → 0.1.49-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/{Analytic-AnuRQDA4.js → Analytic-ibBD_21m.js} +113 -113
- package/dist/{App-DP_jCyej.js → App-CDjwWK8a.js} +632 -622
- package/dist/{Bin-tL4lF6PB.js → Bin-DCaG0YGW.js} +9 -9
- package/dist/Broadcast-CbF3d_N7.js +233 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BgPJCH02.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BqYusgBO.js} +18 -18
- package/dist/{Card-Bi-ODgCc.js → Card-CDNE85po.js} +239 -239
- package/dist/{Collections-JHWotZ1I.js → Collections-DHn__E9U.js} +31 -31
- package/dist/Credit-DiTnwnFe.js +228 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-hxuYl-OQ.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJEAsRON.js} +756 -753
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-ECkaQxuI.js → EffectSheet.vue_vue_type_style_index_0_lang-CU9XpMjd.js} +96 -96
- package/dist/Experience-CjMVeGsX.js +229 -0
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
- package/dist/{Game-DUCx2Dl9.js → Game-D3gANFAo.js} +98 -92
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js +144 -0
- package/dist/{Index-zynxjOOr.js → Index-DEF_a5Mu.js} +54 -54
- package/dist/{Marketing-BBHDVRkR.js → Marketing-BeED4Y7H.js} +24 -24
- package/dist/{Member-B09bj6C3.js → Member-CA4hnHJY.js} +63 -63
- package/dist/MemberList-CZtriA_Q.js +1606 -0
- package/dist/MemberOverview-wL_ailso.js +58 -0
- package/dist/{MemberTransactions-DERMSs7o.js → MemberTransactions-BVrvf4AM.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CAADF6vv.js → MessageInput.vue_vue_type_script_setup_true_lang-BqTDGnOG.js} +2286 -2220
- package/dist/{Mission-DAv0e_ZH.js → Mission-CDSMpqnG.js} +113 -107
- package/dist/{Overview-D0rBTEtP.js → Overview-ArineqY4.js} +337 -337
- package/dist/Point-51MD49EM.js +232 -0
- package/dist/{Promotion-BSPU5hP9.js → Promotion-BVrofYd6.js} +43 -43
- package/dist/{Queue-C5IFJ3iE.js → Queue-Q-aEeZ8w.js} +13 -13
- package/dist/{Record-CoFSrv7j.js → Record-DaVcschI.js} +10 -10
- package/dist/{Reward-COIOBOl-.js → Reward-DTtFuqOZ.js} +173 -173
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B9Tl7hqv.js → RewardGroup.vue_vue_type_script_setup_true_lang-P_gNd6ZP.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BzsYC3k2.js → RuleGroup.vue_vue_type_script_setup_true_lang-CVy_kDmy.js} +381 -381
- package/dist/{Segment-DF5SrucQ.js → Segment-DIy4RERw.js} +327 -327
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BSSfQu3F.js → SelectItems.vue_vue_type_script_setup_true_lang-D3KIZJLo.js} +14 -14
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DoL_gTKy.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-bSi6_uqi.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cijyol1Q.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BsNLkA2v.js} +3 -3
- package/dist/Setting-DGDgmP84.js +1936 -0
- package/dist/{Store-E2_0EIy8.js → Store-Dh2uVHGY.js} +238 -238
- package/dist/StoreRewards-DFF_0g59.js +423 -0
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DuatzcJ8.js → StoreTransactions.vue_vue_type_script_setup_true_lang-PrFhYJXc.js} +186 -186
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D_r8I0h7.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-VcU2Asjy.js} +1 -1
- package/dist/{Tier-CEEHsXkC.js → Tier-yKvE4mRW.js} +106 -106
- package/dist/{Title-BMAWlGeW.js → Title-DWWSC02W.js} +95 -95
- package/dist/{Transaction-CLsceq-O.js → Transaction-ru7M0PKE.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CFLekn9O.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BSkv6hMH.js} +6 -6
- package/dist/{Voucher-Cd293WYY.js → Voucher-DmuaThKv.js} +37 -37
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Db_aeyc1.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B8HHh8HU.js → ZodTextField.vue_vue_type_script_setup_true_lang-B5co0F__.js} +1 -1
- package/dist/app-DaFoFS2V.js +57962 -0
- package/dist/{app-aVXsWATU.js → app-ja_XST5q.js} +31 -31
- package/dist/app.js +1 -1
- package/dist/{business-DVlHPzaL.js → business-BSP_3iNl.js} +11 -8
- package/dist/{campaign-D9KeUWA7.js → campaign-C1hWNRWr.js} +2 -2
- package/dist/{campaign-l-u9A514.js → campaign-DMZnXtyb.js} +10 -10
- package/dist/{campaign.enum-Cud82tES.js → campaign.enum-Bfsz7Aon.js} +1 -1
- package/dist/campaign.fn-B-xvcbEb.js +758 -0
- package/dist/{collectible.enum-PrlUDScv.js → collectible.enum-BRkrN4Bi.js} +1 -1
- package/dist/{collection.fn-yR-xnV4g.js → collection.fn-D03AXdUn.js} +2 -2
- package/dist/{dto-Cua1OHMY.js → dto-DpRkSGg6.js} +4 -4
- package/dist/{effect-B5-eXNEr.js → effect-BW1-I1J4.js} +1 -1
- package/dist/{email-addresses-BeYh5fr5.js → email-addresses-BLVkwSkP.js} +1 -1
- package/dist/{export-BUF4_DUz.js → export-DOfDownW.js} +4 -4
- package/dist/{helper-CGwOThAl.js → helper-BzfjLXgi.js} +1 -1
- package/dist/{index-DlFVLRKG.js → index-BBi9jDD1.js} +3 -3
- package/dist/{index-Cx8-ipee.js → index-BJl_HxaB.js} +6 -6
- package/dist/{index-1BGPM6Uy.js → index-Ba5-z1MU.js} +1 -1
- package/dist/{index-BmL_b0IR.js → index-Bp8F6U9V.js} +1 -1
- package/dist/{index-C-d_4n-1.js → index-C6fpU8-G.js} +1 -1
- package/dist/{index-knuJv0ti.js → index-COoQSeE7.js} +4 -4
- package/dist/{index-aMDi62-C.js → index-DTnzjEWu.js} +1 -1
- package/dist/{index-BLdVWQId.js → index-DWBeauin.js} +3 -3
- package/dist/{index-Cl2iYM2F.js → index-Da1qz9oA.js} +1 -1
- package/dist/{index-CB8iWT_p.js → index-Dve1-uYX.js} +1 -1
- package/dist/{index-ng2IXlL1.js → index-P6ISAxfQ.js} +1 -1
- package/dist/{index-hX2mE0gQ.js → index-cpWgtd-c.js} +1 -1
- package/dist/{index-D5KIp8ZB.js → index-sFyvCun2.js} +1023 -1023
- package/dist/{index-DNTd-FNx.js → index-zyVYgteg.js} +2 -2
- package/dist/{index.esm2017-D8stWFci.js → index.esm2017-DT0awUwa.js} +40 -40
- package/dist/{loading-c4b7n9Xp.js → loading-CZH88Duq.js} +1 -1
- package/dist/{membership-oBIs4sbL.js → membership-GNRX1fEK.js} +3 -3
- package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
- package/dist/{money-AP24H0gk.js → money-Xe5mDYRC.js} +1 -1
- package/dist/{number-CwsAYC_2.js → number-CAjqc2Pu.js} +1 -1
- package/dist/objectid-BQJRv_jX.js +145 -0
- package/dist/{plugins-Dn7JDHi7.js → plugins-Z2YcDTj8.js} +2 -2
- package/dist/{reward-4wdoZeXw.js → reward-G656rbLJ.js} +1 -1
- package/dist/{rule-_OJza6tn.js → rule-BJ5blBZp.js} +4 -4
- package/dist/{rule-builder-DmlhHAED.js → rule-builder-CursBigG.js} +1 -1
- package/dist/{template-BSQLFHf4.js → template-BnyUm8is.js} +63 -63
- package/dist/timezone-B64-HrWi.js +1150 -0
- package/dist/{trigger-DC9tDnI2.js → trigger-C_ih51ky.js} +4 -4
- package/dist/usePagination-Ds-cuHop.js +223 -0
- package/dist/{user-CCVOptFD.js → user-BZc_OAUj.js} +1 -1
- package/dist/{vue-i18n--_Wu1nMj.js → vue-i18n-2D47GxQX.js} +401 -401
- package/dist/{xlsx-BVMaOi8M.js → xlsx-BEk5qawh.js} +226 -226
- package/package.json +5 -4
- package/dist/Broadcast-T2a5tN8R.js +0 -227
- package/dist/Credit-DQQCXqS0.js +0 -222
- package/dist/Experience-DzTV21vX.js +0 -223
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
- package/dist/MemberList-DLSLGQ02.js +0 -1606
- package/dist/MemberOverview-C2n9oJZh.js +0 -58
- package/dist/Point-BeBYi1BT.js +0 -226
- package/dist/Setting-Dt0sG_hk.js +0 -1936
- package/dist/StoreRewards-DuSsWnTE.js +0 -423
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Qc5cCqh5.js +0 -419
- package/dist/app-jRT7vsk_.js +0 -33357
- package/dist/campaign.fn-C-UojhHv.js +0 -758
- package/dist/objectid-CVDLTdni.js +0 -145
- package/dist/usePagination-JoYaROkV.js +0 -223
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as L, openBlock as r, createBlock as C, resolveDynamicComponent as D, unref as e, ref as E, computed as I, onMounted as j, resolveComponent as
|
|
2
|
-
import { u as P } from "./campaign-
|
|
1
|
+
import { defineComponent as L, openBlock as r, createBlock as C, resolveDynamicComponent as D, unref as e, ref as E, computed as I, onMounted as j, resolveComponent as c, withCtx as d, createElementVNode as l, createElementBlock as w, createVNode as i, normalizeClass as h, createTextVNode as T, Fragment as S, renderList as N, toDisplayString as g, createCommentVNode as M } from "vue";
|
|
2
|
+
import { u as P } from "./campaign-C1hWNRWr.js";
|
|
3
3
|
import { useDialog as q } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as J } from "./index-
|
|
5
|
-
import { C as A } from "./collection.fn-
|
|
4
|
+
import { F as J } from "./index-BJl_HxaB.js";
|
|
5
|
+
import { C as A } from "./collection.fn-D03AXdUn.js";
|
|
6
6
|
import { s as V } from "./index-CuvNtC_M.js";
|
|
7
7
|
import { _ as G } from "./lodash-B5I3zXaY.js";
|
|
8
|
-
import { C as H } from "./campaign-
|
|
8
|
+
import { C as H } from "./campaign-DMZnXtyb.js";
|
|
9
9
|
import { J as U } from "./JsonViewer-v8_C7l5N.js";
|
|
10
10
|
const K = /* @__PURE__ */ L({
|
|
11
11
|
__name: "CampaignChip",
|
|
@@ -13,13 +13,13 @@ const K = /* @__PURE__ */ L({
|
|
|
13
13
|
type: { type: String, required: !0 }
|
|
14
14
|
},
|
|
15
15
|
setup(u) {
|
|
16
|
-
const
|
|
17
|
-
return (
|
|
16
|
+
const a = H[u.type];
|
|
17
|
+
return (o, t) => (r(), C(D(e(a).chip())));
|
|
18
18
|
}
|
|
19
19
|
}), Q = { class: "flex flex-nowrap gap-x-2 grow h-full" }, R = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "p-8 w-1/4"
|
|
22
|
-
}, W = { class: "flex flex-col grow p-24" }, X = { class: "space-y-4" }, Y = { class: "fm-typo-en-title-sm-800" }, Z =
|
|
22
|
+
}, W = { class: "flex flex-col grow p-24" }, X = { class: "space-y-4" }, Y = { class: "fm-typo-en-title-sm-800" }, Z = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" }, ee = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, te = { class: "gap-4 h-[22px] inline-flex items-center justify-center min-w-min rounded-md" }, ne = { class: "fm-typo-en-title-sm-800" }, oe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, se = { class: "flex gap-4 items-end justify-end py-8" }, le = /* @__PURE__ */ L({
|
|
23
23
|
__name: "TemplateDialog",
|
|
24
24
|
props: {
|
|
25
25
|
campaignType: {
|
|
@@ -33,72 +33,72 @@ const K = /* @__PURE__ */ L({
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
setup(u) {
|
|
36
|
-
const p = q(),
|
|
36
|
+
const p = q(), a = P(), o = u, t = E({
|
|
37
37
|
intention: null,
|
|
38
38
|
template: null
|
|
39
39
|
}), b = I(() => {
|
|
40
|
-
const
|
|
40
|
+
const m = (a.templates ?? []).filter(
|
|
41
41
|
() => !0
|
|
42
42
|
//t.intention && t.intention.length > 0
|
|
43
43
|
);
|
|
44
|
-
return
|
|
45
|
-
(
|
|
46
|
-
var
|
|
47
|
-
return ((f = (
|
|
44
|
+
return o.campaignType ? m.filter(
|
|
45
|
+
(n) => {
|
|
46
|
+
var y, f;
|
|
47
|
+
return ((f = (y = n.defaultValue) == null ? void 0 : y.campaign) == null ? void 0 : f.type) === o.campaignType;
|
|
48
48
|
}
|
|
49
|
-
) : t.value.intention === null ? G.sampleSize(
|
|
50
|
-
(
|
|
49
|
+
) : t.value.intention === null ? G.sampleSize(m, 7) : m.filter(
|
|
50
|
+
(n) => n.intention.includes(t.value.intention)
|
|
51
51
|
);
|
|
52
52
|
});
|
|
53
53
|
j(async () => {
|
|
54
|
-
await
|
|
54
|
+
await a.readTemplates();
|
|
55
55
|
});
|
|
56
56
|
function O() {
|
|
57
|
-
|
|
57
|
+
o.onOk(void 0), p.close();
|
|
58
58
|
}
|
|
59
59
|
function $() {
|
|
60
|
-
const
|
|
61
|
-
|
|
60
|
+
const m = t.value.template;
|
|
61
|
+
o.onOk(a.templates.find((n) => n._id === m)), p.close();
|
|
62
62
|
}
|
|
63
|
-
return (
|
|
64
|
-
const
|
|
63
|
+
return (m, n) => {
|
|
64
|
+
const y = c("FmChip"), f = c("FmListItem"), z = c("FmList"), k = c("FmCard"), v = c("FmButton"), B = c("FmSpacer");
|
|
65
65
|
return r(), C(k, { class: "h-[534px] max-w-6xl" }, {
|
|
66
66
|
default: d(() => [
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
l("div", Q, [
|
|
68
|
+
o.campaignType ? M("", !0) : (r(), w("div", R, [
|
|
69
|
+
i(z, null, {
|
|
70
70
|
default: d(() => [
|
|
71
|
-
|
|
72
|
-
class:
|
|
71
|
+
i(f, {
|
|
72
|
+
class: h([{
|
|
73
73
|
"bg-fm-color-system-warning-100": e(t).intention === null
|
|
74
74
|
}, "rounded-sm"]),
|
|
75
|
-
onClick:
|
|
75
|
+
onClick: n[0] || (n[0] = (s) => {
|
|
76
76
|
e(t).intention = null, e(t).template = null;
|
|
77
77
|
})
|
|
78
78
|
}, {
|
|
79
79
|
append: d(() => [
|
|
80
|
-
|
|
80
|
+
i(y, {
|
|
81
81
|
label: "Hot",
|
|
82
82
|
variant: "critical"
|
|
83
83
|
})
|
|
84
84
|
]),
|
|
85
85
|
default: d(() => [
|
|
86
|
-
T(" Most popular ")
|
|
86
|
+
n[2] || (n[2] = T(" Most popular ", -1))
|
|
87
87
|
]),
|
|
88
88
|
_: 1
|
|
89
89
|
}, 8, ["class"]),
|
|
90
|
-
(r(!0),
|
|
90
|
+
(r(!0), w(S, null, N(e(J).options, (s, x) => (r(), C(f, {
|
|
91
91
|
key: x,
|
|
92
|
-
class:
|
|
93
|
-
"bg-fm-color-system-warning-100": e(t).intention ===
|
|
92
|
+
class: h(["rounded-sm", {
|
|
93
|
+
"bg-fm-color-system-warning-100": e(t).intention === s
|
|
94
94
|
}]),
|
|
95
95
|
style: { padding: "8px 16px" },
|
|
96
|
-
onClick: (
|
|
97
|
-
e(t).intention =
|
|
96
|
+
onClick: (_) => {
|
|
97
|
+
e(t).intention = s, e(t).template = null;
|
|
98
98
|
}
|
|
99
99
|
}, {
|
|
100
100
|
default: d(() => [
|
|
101
|
-
T(g(e(V)(
|
|
101
|
+
T(g(e(V)(s)), 1)
|
|
102
102
|
]),
|
|
103
103
|
_: 2
|
|
104
104
|
}, 1032, ["class", "onClick"]))), 128))
|
|
@@ -106,57 +106,57 @@ const K = /* @__PURE__ */ L({
|
|
|
106
106
|
_: 1
|
|
107
107
|
})
|
|
108
108
|
])),
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
`${e(A).formattedType(
|
|
109
|
+
l("div", W, [
|
|
110
|
+
l("div", X, [
|
|
111
|
+
l("div", Y, g(o.campaignType ? e(V)(
|
|
112
|
+
`${e(A).formattedType(o.campaignType)} campaign`
|
|
113
113
|
) : "Template list"), 1),
|
|
114
|
-
|
|
114
|
+
n[3] || (n[3] = l("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, " Get started faster with templates that flex with your business. ", -1))
|
|
115
115
|
]),
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
(r(!0),
|
|
116
|
+
l("div", Z, [
|
|
117
|
+
i(U, { json: e(b) }, null, 8, ["json"]),
|
|
118
|
+
l("div", ee, [
|
|
119
|
+
(r(!0), w(S, null, N(e(b), (s, x) => (r(), C(k, {
|
|
120
120
|
key: x,
|
|
121
121
|
variant: "outlined",
|
|
122
|
-
class:
|
|
123
|
-
"bg-fm-color-system-warning-100 border-fm-color-primary border-2": e(t).template ===
|
|
122
|
+
class: h(["box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8", {
|
|
123
|
+
"bg-fm-color-system-warning-100 border-fm-color-primary border-2": e(t).template === s._id.toString()
|
|
124
124
|
}]),
|
|
125
|
-
onClick: (
|
|
125
|
+
onClick: (_) => e(t).template = s._id.toString()
|
|
126
126
|
}, {
|
|
127
127
|
default: d(() => {
|
|
128
|
-
var
|
|
128
|
+
var _, F;
|
|
129
129
|
return [
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
type: (F = (
|
|
130
|
+
l("div", te, [
|
|
131
|
+
i(K, {
|
|
132
|
+
type: (F = (_ = s.defaultValue) == null ? void 0 : _.campaign) == null ? void 0 : F.type
|
|
133
133
|
}, null, 8, ["type"])
|
|
134
134
|
]),
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
l("div", ne, g(s.name), 1),
|
|
136
|
+
l("p", oe, g(s.description), 1)
|
|
137
137
|
];
|
|
138
138
|
}),
|
|
139
139
|
_: 2
|
|
140
140
|
}, 1032, ["class", "onClick"]))), 128))
|
|
141
141
|
])
|
|
142
142
|
]),
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
l("div", se, [
|
|
144
|
+
i(v, {
|
|
145
145
|
class: "sm:w-full xs:w-full",
|
|
146
146
|
variant: "plain",
|
|
147
147
|
label: "Custom Campaign",
|
|
148
148
|
size: "md",
|
|
149
149
|
onClick: O
|
|
150
150
|
}),
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
i(B, { class: "sm:hidden xs:hidden" }),
|
|
152
|
+
i(v, {
|
|
153
153
|
class: "sm:w-full xs:w-full",
|
|
154
154
|
variant: "tertiary",
|
|
155
155
|
label: "Cancel",
|
|
156
156
|
size: "md",
|
|
157
|
-
onClick:
|
|
157
|
+
onClick: n[1] || (n[1] = (s) => e(p).close())
|
|
158
158
|
}),
|
|
159
|
-
|
|
159
|
+
i(v, {
|
|
160
160
|
class: "sm:w-full xs:w-full",
|
|
161
161
|
variant: "primary",
|
|
162
162
|
label: "Start",
|
|
@@ -173,13 +173,13 @@ const K = /* @__PURE__ */ L({
|
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
}), ye = (u, p) => ({
|
|
176
|
-
open: async (
|
|
176
|
+
open: async (a) => {
|
|
177
177
|
p.open({
|
|
178
178
|
title: "",
|
|
179
|
-
dialogComponent:
|
|
179
|
+
dialogComponent: le,
|
|
180
180
|
dialogComponentProps: {
|
|
181
181
|
campaignType: u,
|
|
182
|
-
onOk: async (
|
|
182
|
+
onOk: async (o) => (console.debug(o, "selected template"), await a(o))
|
|
183
183
|
},
|
|
184
184
|
overlay: !0
|
|
185
185
|
});
|