@feedmepos/mf-connect 0.0.16-beta.1 → 0.0.16-beta.11
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-C-zZmF5N.js → Analytic-Gq7PoNer.js} +368 -365
- package/dist/App-Cikl5jnp.js +177 -0
- package/dist/Broadcast-DU3JnBwZ.js +223 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-VWLBlxy1.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D0I8IZIR.js} +20 -20
- package/dist/Card-hIeQ5XUH.js +825 -0
- package/dist/Collections-B1SC1rr7.js +453 -0
- package/dist/Credit-BgwI8DR3.js +216 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bz6TSmbW.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D9VR3P2d.js} +1026 -1022
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-AhWnHG02.js → EffectSheet.vue_vue_type_style_index_0_lang-DPgu45MD.js} +29 -29
- package/dist/Experience-C2Q-zqV6.js +221 -0
- package/dist/Game-DU2pZDGk.js +255 -0
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
- package/dist/JsonViewer-v8_C7l5N.js +87 -0
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DykNOOFD.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js} +1 -1
- package/dist/{MainLayout-D0AoA1tk.js → MainLayout-B1aJoR95.js} +2 -2
- package/dist/Marketing-DWiTQp9I.js +316 -0
- package/dist/Member-BEXKBFry.js +69 -0
- package/dist/MemberList-DzMdajIf.js +1733 -0
- package/dist/MemberOverview-wL_ailso.js +58 -0
- package/dist/{MemberTransactions-CTAx5jIV.js → MemberTransactions-Bciankuu.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-C-BtHxSc.js → MessageInput.vue_vue_type_script_setup_true_lang-DH25Hfk3.js} +46 -46
- package/dist/Mission-KzwRlaA5.js +259 -0
- package/dist/Point-CSKvZXHc.js +222 -0
- package/dist/Promotion-IiwPhx8p.js +221 -0
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CrpJySSp.js → RuleGroup.vue_vue_type_script_setup_true_lang-4zIO3oCr.js} +545 -544
- package/dist/Segment-2Q0PonBb.js +447 -0
- package/dist/{Setting-Zrj5P_4m.js → Setting-Df5vVRt4.js} +600 -598
- package/dist/Store-C0WXCKs6.js +1503 -0
- package/dist/StoreRewards-eSSIO0nk.js +401 -0
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DS4APaHw.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BjnCRKGX.js} +106 -108
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-ZYjWlDJ1.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-b0xTcoEp.js} +1 -1
- package/dist/{Tier-DVWJyQ9S.js → Tier-v-1FkRU-.js} +464 -449
- package/dist/{Title-B5kX64vs.js → Title-CQ2JWqBW.js} +315 -299
- package/dist/Transaction-0OouN_6s.js +39 -0
- package/dist/Voucher-CL0cgogx.js +488 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/app-Bd19eW7X.js +5381 -0
- package/dist/app-CfS25Z66.js +34797 -0
- package/dist/app-wDQR6dpb.js +39 -0
- package/dist/app.js +5 -3
- package/dist/business-dQh3AEot.js +78 -0
- package/dist/{campaign-BZJuknWK.js → campaign-BOl8AgKA.js} +12 -12
- package/dist/{collection.fn-DoCkZ6z4.js → collection.fn-B_YsXmrP.js} +2 -2
- package/dist/dto-B8NfyVPG.js +1169 -0
- package/dist/{effect-B8kmnKvY.js → effect-C2jCStXO.js} +1 -1
- package/dist/{export-Dm6LYnWo.js → export-BtZc3Yzh.js} +3 -3
- package/dist/{helper-DR4XK3nv.js → helper-8oGsrM56.js} +1 -1
- package/dist/{index-DcUrk07Q.js → index-6FkKY3q0.js} +3 -3
- package/dist/{index-Bu4_26qI.js → index-C7oeXRUl.js} +1 -1
- package/dist/{index-CuL5-ORK.js → index-CZKYIefW.js} +6 -7
- package/dist/{index-yxJMhfxj.js → index-C_0IFnwi.js} +5 -5
- package/dist/{index-BryrRq8O.js → index-DCixRRvz.js} +36 -30
- package/dist/{index-CkiYkbXb.js → index-DFgt4-VW.js} +1 -1
- package/dist/{index-CWf0mh3a.js → index-DYDhH9bi.js} +177 -168
- package/dist/{index-boor8e80.js → index-Di-kWSmf.js} +3 -3
- package/dist/{app-DkI7dYRN.js → index-Dn0jdj0o.js} +9665 -13024
- package/dist/index-DwKqFNF6.js +3 -0
- package/dist/{index-BobRgQrE.js → index-HoacsZDk.js} +2 -2
- package/dist/{index-BxkxVtgm.js → index-UTQHDUdW.js} +1 -1
- package/dist/{loading-BzV5acUX.js → loading-D_AN6p24.js} +6807 -6805
- package/dist/{lodash-mg4435Qq.js → lodash-B5I3zXaY.js} +1 -1
- package/dist/{membership-CqbsLHqx.js → membership-Ccrx9R6r.js} +3 -3
- package/dist/{money-DA_gtp3q.js → money-waD-f-Zz.js} +1 -1
- package/dist/{number-C388eyOu.js → number-CwTGGsh9.js} +1 -1
- package/dist/{rule-Clmr5y4j.js → rule-DJ07h3Gh.js} +2 -2
- package/dist/{rule-builder-BgqNbM-P.js → rule-builder-DJ-acvVD.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/template-clxvNnbF.js +190 -0
- package/dist/{usePagination-o5fgsZwU.js → usePagination-BeF5K3M7.js} +86 -86
- package/dist/vue-i18n-BxwiXSkp.js +2365 -0
- package/dist/{xlsx-BRdh9e2p.js → xlsx-BB366cdN.js} +1945 -1945
- package/package.json +9 -5
- package/dist/Broadcast-X69Mtv3b.js +0 -216
- package/dist/Card-D0X3v1UF.js +0 -822
- package/dist/Collections-umR6Ehqf.js +0 -452
- package/dist/Credit-C1EWF7R0.js +0 -214
- package/dist/Experience-CqL8wyPm.js +0 -211
- package/dist/Game--kYe64EV.js +0 -250
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-BjOJ3XSL.js +0 -144
- package/dist/Marketing-CTCQ5ZmZ.js +0 -308
- package/dist/Member-DCduX7zP.js +0 -91
- package/dist/MemberList-B0EkXZJu.js +0 -1729
- package/dist/MemberOverview-C2n9oJZh.js +0 -58
- package/dist/Mission-CVr9rS_D.js +0 -248
- package/dist/Point-BnZ6M74y.js +0 -220
- package/dist/Promotion-B0PUve5S.js +0 -218
- package/dist/Segment-B-XpkyM5.js +0 -445
- package/dist/Store-B2gywCt2.js +0 -1503
- package/dist/StoreRewards-D8410Q_-.js +0 -434
- package/dist/Transaction-CZBO4v4d.js +0 -36
- package/dist/Voucher-se-4JF9B.js +0 -481
- package/dist/app-B2ImSO3V.js +0 -53382
- package/dist/dto-BWpvRpK2.js +0 -1151
- package/dist/template-Dwp7heBA.js +0 -190
|
@@ -1,190 +0,0 @@
|
|
|
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 m, withCtx as d, createElementVNode as s, createElementBlock as h, createVNode as a, normalizeClass as w, createTextVNode as T, Fragment as S, renderList as N, toDisplayString as g, createCommentVNode as M } from "vue";
|
|
2
|
-
import { u as P } from "./campaign-BZJuknWK.js";
|
|
3
|
-
import { useDialog as q } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as J } from "./index-yxJMhfxj.js";
|
|
5
|
-
import { C as A } from "./collection.fn-DoCkZ6z4.js";
|
|
6
|
-
import { s as V } from "./index-CuvNtC_M.js";
|
|
7
|
-
import { _ as G } from "./lodash-mg4435Qq.js";
|
|
8
|
-
import { C as H } from "./dto-BWpvRpK2.js";
|
|
9
|
-
import { J as U } from "./app-DkI7dYRN.js";
|
|
10
|
-
const K = /* @__PURE__ */ L({
|
|
11
|
-
__name: "CampaignChip",
|
|
12
|
-
props: {
|
|
13
|
-
type: { type: String, required: !0 }
|
|
14
|
-
},
|
|
15
|
-
setup(u) {
|
|
16
|
-
const i = H[u.type];
|
|
17
|
-
return (n, t) => (r(), C(D(e(i).chip())));
|
|
18
|
-
}
|
|
19
|
-
}), Q = { class: "flex flex-nowrap gap-x-2 grow h-full" }, R = {
|
|
20
|
-
key: 0,
|
|
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 = /* @__PURE__ */ s("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, " Get started faster with templates that flex with your business. ", -1), ee = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" }, te = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, ne = { class: "gap-4 h-[22px] inline-flex items-center justify-center min-w-min rounded-md" }, oe = { class: "fm-typo-en-title-sm-800" }, se = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, le = { class: "flex gap-4 items-end justify-end py-8" }, ae = /* @__PURE__ */ L({
|
|
23
|
-
__name: "TemplateDialog",
|
|
24
|
-
props: {
|
|
25
|
-
campaignType: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: () => {
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
onOk: {
|
|
31
|
-
type: Function,
|
|
32
|
-
required: !0
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
setup(u) {
|
|
36
|
-
const p = q(), i = P(), n = u, t = E({
|
|
37
|
-
intention: null,
|
|
38
|
-
template: null
|
|
39
|
-
}), b = I(() => {
|
|
40
|
-
const c = (i.templates ?? []).filter(
|
|
41
|
-
() => !0
|
|
42
|
-
//t.intention && t.intention.length > 0
|
|
43
|
-
);
|
|
44
|
-
return n.campaignType ? c.filter(
|
|
45
|
-
(l) => {
|
|
46
|
-
var _, f;
|
|
47
|
-
return ((f = (_ = l.defaultValue) == null ? void 0 : _.campaign) == null ? void 0 : f.type) === n.campaignType;
|
|
48
|
-
}
|
|
49
|
-
) : t.value.intention === null ? G.sampleSize(c, 7) : c.filter(
|
|
50
|
-
(l) => l.intention.includes(t.value.intention)
|
|
51
|
-
);
|
|
52
|
-
});
|
|
53
|
-
j(async () => {
|
|
54
|
-
await i.readTemplates();
|
|
55
|
-
});
|
|
56
|
-
function O() {
|
|
57
|
-
n.onOk(void 0), p.close();
|
|
58
|
-
}
|
|
59
|
-
function $() {
|
|
60
|
-
const c = t.value.template;
|
|
61
|
-
n.onOk(i.templates.find((l) => l._id === c)), p.close();
|
|
62
|
-
}
|
|
63
|
-
return (c, l) => {
|
|
64
|
-
const _ = m("FmChip"), f = m("FmListItem"), z = m("FmList"), k = m("FmCard"), v = m("FmButton"), B = m("FmSpacer");
|
|
65
|
-
return r(), C(k, { class: "h-[534px] max-w-6xl" }, {
|
|
66
|
-
default: d(() => [
|
|
67
|
-
s("div", Q, [
|
|
68
|
-
n.campaignType ? M("", !0) : (r(), h("div", R, [
|
|
69
|
-
a(z, null, {
|
|
70
|
-
default: d(() => [
|
|
71
|
-
a(f, {
|
|
72
|
-
class: w([{
|
|
73
|
-
"bg-fm-color-system-warning-100": e(t).intention === null
|
|
74
|
-
}, "rounded-sm"]),
|
|
75
|
-
onClick: l[0] || (l[0] = (o) => {
|
|
76
|
-
e(t).intention = null, e(t).template = null;
|
|
77
|
-
})
|
|
78
|
-
}, {
|
|
79
|
-
append: d(() => [
|
|
80
|
-
a(_, {
|
|
81
|
-
label: "Hot",
|
|
82
|
-
variant: "critical"
|
|
83
|
-
})
|
|
84
|
-
]),
|
|
85
|
-
default: d(() => [
|
|
86
|
-
T(" Most popular ")
|
|
87
|
-
]),
|
|
88
|
-
_: 1
|
|
89
|
-
}, 8, ["class"]),
|
|
90
|
-
(r(!0), h(S, null, N(e(J).options, (o, x) => (r(), C(f, {
|
|
91
|
-
key: x,
|
|
92
|
-
class: w(["rounded-sm", {
|
|
93
|
-
"bg-fm-color-system-warning-100": e(t).intention === o
|
|
94
|
-
}]),
|
|
95
|
-
style: { padding: "8px 16px" },
|
|
96
|
-
onClick: (y) => {
|
|
97
|
-
e(t).intention = o, e(t).template = null;
|
|
98
|
-
}
|
|
99
|
-
}, {
|
|
100
|
-
default: d(() => [
|
|
101
|
-
T(g(e(V)(o)), 1)
|
|
102
|
-
]),
|
|
103
|
-
_: 2
|
|
104
|
-
}, 1032, ["class", "onClick"]))), 128))
|
|
105
|
-
]),
|
|
106
|
-
_: 1
|
|
107
|
-
})
|
|
108
|
-
])),
|
|
109
|
-
s("div", W, [
|
|
110
|
-
s("div", X, [
|
|
111
|
-
s("div", Y, g(n.campaignType ? e(V)(
|
|
112
|
-
`${e(A).formattedType(n.campaignType)} campaign`
|
|
113
|
-
) : "Template list"), 1),
|
|
114
|
-
Z
|
|
115
|
-
]),
|
|
116
|
-
s("div", ee, [
|
|
117
|
-
a(U, { json: e(b) }, null, 8, ["json"]),
|
|
118
|
-
s("div", te, [
|
|
119
|
-
(r(!0), h(S, null, N(e(b), (o, x) => (r(), C(k, {
|
|
120
|
-
key: x,
|
|
121
|
-
variant: "outlined",
|
|
122
|
-
class: w(["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 === o._id.toString()
|
|
124
|
-
}]),
|
|
125
|
-
onClick: (y) => e(t).template = o._id.toString()
|
|
126
|
-
}, {
|
|
127
|
-
default: d(() => {
|
|
128
|
-
var y, F;
|
|
129
|
-
return [
|
|
130
|
-
s("div", ne, [
|
|
131
|
-
a(K, {
|
|
132
|
-
type: (F = (y = o.defaultValue) == null ? void 0 : y.campaign) == null ? void 0 : F.type
|
|
133
|
-
}, null, 8, ["type"])
|
|
134
|
-
]),
|
|
135
|
-
s("div", oe, g(o.name), 1),
|
|
136
|
-
s("p", se, g(o.description), 1)
|
|
137
|
-
];
|
|
138
|
-
}),
|
|
139
|
-
_: 2
|
|
140
|
-
}, 1032, ["class", "onClick"]))), 128))
|
|
141
|
-
])
|
|
142
|
-
]),
|
|
143
|
-
s("div", le, [
|
|
144
|
-
a(v, {
|
|
145
|
-
class: "sm:w-full xs:w-full",
|
|
146
|
-
variant: "plain",
|
|
147
|
-
label: "Custom Campaign",
|
|
148
|
-
size: "md",
|
|
149
|
-
onClick: O
|
|
150
|
-
}),
|
|
151
|
-
a(B, { class: "sm:hidden xs:hidden" }),
|
|
152
|
-
a(v, {
|
|
153
|
-
class: "sm:w-full xs:w-full",
|
|
154
|
-
variant: "tertiary",
|
|
155
|
-
label: "Cancel",
|
|
156
|
-
size: "md",
|
|
157
|
-
onClick: l[1] || (l[1] = (o) => e(p).close())
|
|
158
|
-
}),
|
|
159
|
-
a(v, {
|
|
160
|
-
class: "sm:w-full xs:w-full",
|
|
161
|
-
variant: "primary",
|
|
162
|
-
label: "Start",
|
|
163
|
-
size: "md",
|
|
164
|
-
disabled: !e(t).template,
|
|
165
|
-
onClick: $
|
|
166
|
-
}, null, 8, ["disabled"])
|
|
167
|
-
])
|
|
168
|
-
])
|
|
169
|
-
])
|
|
170
|
-
]),
|
|
171
|
-
_: 1
|
|
172
|
-
});
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
}), ye = (u, p) => ({
|
|
176
|
-
open: async (i) => {
|
|
177
|
-
p.open({
|
|
178
|
-
title: "",
|
|
179
|
-
dialogComponent: ae,
|
|
180
|
-
dialogComponentProps: {
|
|
181
|
-
campaignType: u,
|
|
182
|
-
onOk: async (n) => (console.debug(n, "selected template"), await i(n))
|
|
183
|
-
},
|
|
184
|
-
overlay: !0
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
export {
|
|
189
|
-
ye as u
|
|
190
|
-
};
|