@feedmepos/mf-connect 0.1.0-beta.9 → 0.1.1-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-C2etD-eu.js +620 -0
- package/dist/{App-DQUbRsdA.js → App-DlRvkDpN.js} +58 -59
- package/dist/Broadcast-DpCGUS6r.js +216 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D-BFllvG.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cj4IcH5D.js} +20 -20
- package/dist/Card-DjGC6jmq.js +823 -0
- package/dist/Collections-Q2pYWnJF.js +440 -0
- package/dist/Credit-DOIq2VYW.js +214 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C_ZKNWzb.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D7ML8ePp.js} +1010 -1026
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CyxWG5I7.js +344 -0
- package/dist/Experience-DUst4I0H.js +211 -0
- package/dist/Game-CXnQR-wV.js +250 -0
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +144 -0
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → MainLayout-DpZC6o3R.js} +53 -19
- package/dist/Marketing-CZfHsMFC.js +309 -0
- package/dist/Member-CX5Ohgeg.js +92 -0
- package/dist/MemberList-D8I3SaAs.js +1040 -0
- package/dist/MemberOverview-C2n9oJZh.js +58 -0
- package/dist/{MemberTransactions-zSxSnUkK.js → MemberTransactions-DfZNbCHD.js} +1 -1
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-BxFVEoBX.js +203 -0
- package/dist/Mission-S1pwDbqp.js +248 -0
- package/dist/Point-BdLUcGZy.js +220 -0
- package/dist/Promotion-DWAeQGkU.js +244 -0
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CTKKhH-r.js → RuleGroup.vue_vue_type_script_setup_true_lang-Dux_NMO5.js} +577 -568
- package/dist/Segment-CXSE8Bzf.js +560 -0
- package/dist/Setting-CLuXuEId.js +1870 -0
- package/dist/Store-Be3cui0S.js +1533 -0
- package/dist/StoreRewards-zFy_w8p4.js +429 -0
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-2Jqj_rKv.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DxGJKgbc.js} +10 -10
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BkdSj0cX.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dreo45H1.js} +1 -1
- package/dist/{Tier-Cpl0FV8L.js → Tier-ChzcISYF.js} +453 -481
- package/dist/{Title-CbMDd1Et.js → Title-DQSjhBkT.js} +295 -314
- package/dist/Transaction-CeWmWpN_.js +36 -0
- package/dist/Voucher-BkLIxiZN.js +485 -0
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +140 -0
- package/dist/app-CLNirPsB.js +2974 -0
- package/dist/{app-VxaUCtgl.js → app-DuNsy0aC.js} +1 -1
- package/dist/app.js +3 -5
- package/dist/{business-DR7jpnLz.js → business-COGiTmLD.js} +1 -1
- package/dist/{campaign-MqcTb329.js → campaign-BHZMjQi5.js} +3 -5
- package/dist/{collection.fn-CvEoe61K.js → collection.fn-sAxtYO_r.js} +2 -2
- package/dist/dto-ndeeV_nc.js +1145 -0
- package/dist/{effect-BjjQeiQg.js → effect-BQt0rkdT.js} +9 -9
- package/dist/email-addresses-B3PazwKs.js +705 -0
- package/dist/{export-B8cvWh5n.js → export-D6r-xNji.js} +3 -3
- package/dist/{helper-DfgVNY7B.js → helper-CrjQw_Et.js} +1 -1
- package/dist/{index-CWR3qYjb.js → index-Btlj28Vg.js} +1 -1
- package/dist/{index-C7zMfUgy.js → index-Buy-yvAZ.js} +319 -304
- package/dist/{index-0UYoh1-7.js → index-C3AAy__p.js} +1 -1
- package/dist/index-CHAaFSD2.js +11 -0
- package/dist/{index-Dap5R3vr.js → index-Cg3RFxc9.js} +91 -102
- package/dist/{index-2P9w5u3m.js → index-CqpEhMr6.js} +4 -4
- package/dist/{index-BsfWRB8R.js → index-CvHj-wYi.js} +1 -1
- package/dist/index-DGLmbBnE.js +28997 -0
- package/dist/{index-CJ8Uh2Ja.js → index-DXpd07G3.js} +3 -3
- package/dist/{index-B5NufbUt.js → index-Daax_BQa.js} +1 -1
- package/dist/{index-C2JNcGc-.js → index-DrLEuIe1.js} +281 -299
- package/dist/{index-DBy30v8N.js → index-tSEYvA-2.js} +3 -3
- package/dist/{index.esm2017-D1X3PgpO.js → index.esm2017-a5BlZ76G.js} +55 -55
- package/dist/{loading-CJ3nOovJ.js → loading-B3XGyQ8W.js} +460 -469
- package/dist/{membership-B1cmSRyk.js → membership-GIOJ1ptN.js} +3 -3
- package/dist/money-z7VwzhZP.js +15 -0
- package/dist/number-DHYb2ua_.js +12 -0
- package/dist/{rule-builder-CSmOONdb.js → rule-builder-CcsWd5r9.js} +1 -1
- package/dist/{rule-ChWyR-0j.js → rule-iIEblTE4.js} +179 -177
- package/dist/style.css +1 -1
- package/dist/{template-Cug7aRK0.js → template-DMRMDZOW.js} +63 -63
- package/dist/{xlsx-CfgPFFvp.js → usePagination-CNFe0T2B.js} +3176 -2955
- package/package.json +5 -8
- package/dist/Analytic-CMXUjK_F.js +0 -622
- package/dist/Broadcast-DowFtHv6.js +0 -223
- package/dist/Card-C7rhL0pV.js +0 -825
- package/dist/Collections-B-1wlk3r.js +0 -453
- package/dist/Credit-DDjozmoF.js +0 -220
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-pwMuIgs5.js +0 -345
- package/dist/Experience-BbE-c1Op.js +0 -221
- package/dist/Game-DQdRpaN-.js +0 -255
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +0 -144
- package/dist/MainLayout-B1aJoR95.js +0 -41
- package/dist/Marketing-Dgmxzg4h.js +0 -316
- package/dist/Member-w23oRVwN.js +0 -69
- package/dist/MemberList-BLIdjznQ.js +0 -1735
- package/dist/MemberOverview-wL_ailso.js +0 -58
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Dy_lMdZA.js +0 -432
- package/dist/Mission-Cjt0E083.js +0 -261
- package/dist/Point-CQJL3Ewu.js +0 -222
- package/dist/Promotion-BYViH3bu.js +0 -247
- package/dist/Segment-B9Jj1ak0.js +0 -437
- package/dist/Setting-DXWbgRxs.js +0 -1901
- package/dist/Store-Dswk2e_z.js +0 -1511
- package/dist/StoreRewards-CNUhG_Ue.js +0 -401
- package/dist/Transaction-BB-kk-84.js +0 -39
- package/dist/Voucher-b1_Jlm6X.js +0 -490
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-pG-SrXp9.js +0 -56
- package/dist/app-DCHKJoql.js +0 -5639
- package/dist/dto-jcK3TGB7.js +0 -2770
- package/dist/index-Cv7pLAYq.js +0 -3
- package/dist/index-LrSSauN2.js +0 -29193
- package/dist/money-BEATdGS6.js +0 -15
- package/dist/number-CeAYAKCp.js +0 -12
- package/dist/usePagination-BeF5K3M7.js +0 -223
- package/dist/vue-i18n-BRhKDHdF.js +0 -2365
- package/dist/zod-Bg2FbC-D.js +0 -90
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.json-viewer[data-v-d8502b13]{font-family:monospace;white-space:pre-wrap}.fm-effect-sheet>div{padding:0!important;border-radius:0!important}.fm-effect-sheet>div>div>div{padding:0!important}.
|
|
1
|
+
.json-viewer[data-v-d8502b13]{font-family:monospace;white-space:pre-wrap}.fm-effect-sheet>div{padding:0!important;border-radius:0!important}.fm-effect-sheet>div>div>div{padding:0!important}.tab-option-selected[data-v-4c2ef18e]{background-color:var(--fm-color-system-orange-100)}::-webkit-scrollbar{height:4px!important;width:8px!important}::-webkit-scrollbar-thumb{background:var(--fm-color-neutral-gray-200)!important;border-radius:1000px!important}.fm-top-sheet--fullscreen-lg{gap:0px!important;padding-bottom:0!important}
|
|
@@ -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 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-BHZMjQi5.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-DrLEuIe1.js";
|
|
5
|
+
import { C as A } from "./collection.fn-sAxtYO_r.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 "./dto-
|
|
8
|
+
import { C as H } from "./dto-ndeeV_nc.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 i = H[u.type];
|
|
17
|
+
return (n, t) => (r(), C(D(e(i).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 = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" },
|
|
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
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(), i = P(), n = u, t = E({
|
|
37
37
|
intention: null,
|
|
38
38
|
template: null
|
|
39
39
|
}), b = I(() => {
|
|
40
|
-
const
|
|
40
|
+
const c = (i.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 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
48
|
}
|
|
49
|
-
) : t.value.intention === null ? G.sampleSize(
|
|
50
|
-
(
|
|
49
|
+
) : t.value.intention === null ? G.sampleSize(c, 7) : c.filter(
|
|
50
|
+
(l) => l.intention.includes(t.value.intention)
|
|
51
51
|
);
|
|
52
52
|
});
|
|
53
53
|
j(async () => {
|
|
54
|
-
await
|
|
54
|
+
await i.readTemplates();
|
|
55
55
|
});
|
|
56
56
|
function O() {
|
|
57
|
-
|
|
57
|
+
n.onOk(void 0), p.close();
|
|
58
58
|
}
|
|
59
59
|
function $() {
|
|
60
|
-
const
|
|
61
|
-
|
|
60
|
+
const c = t.value.template;
|
|
61
|
+
n.onOk(i.templates.find((l) => l._id === c)), p.close();
|
|
62
62
|
}
|
|
63
|
-
return (
|
|
64
|
-
const
|
|
63
|
+
return (c, l) => {
|
|
64
|
+
const _ = m("FmChip"), f = m("FmListItem"), z = m("FmList"), k = m("FmCard"), v = m("FmButton"), B = m("FmSpacer");
|
|
65
65
|
return r(), C(k, { class: "h-[534px] max-w-6xl" }, {
|
|
66
66
|
default: d(() => [
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
s("div", Q, [
|
|
68
|
+
n.campaignType ? M("", !0) : (r(), h("div", R, [
|
|
69
|
+
a(z, null, {
|
|
70
70
|
default: d(() => [
|
|
71
|
-
|
|
72
|
-
class:
|
|
71
|
+
a(f, {
|
|
72
|
+
class: w([{
|
|
73
73
|
"bg-fm-color-system-warning-100": e(t).intention === null
|
|
74
74
|
}, "rounded-sm"]),
|
|
75
|
-
onClick:
|
|
75
|
+
onClick: l[0] || (l[0] = (o) => {
|
|
76
76
|
e(t).intention = null, e(t).template = null;
|
|
77
77
|
})
|
|
78
78
|
}, {
|
|
79
79
|
append: d(() => [
|
|
80
|
-
|
|
80
|
+
a(_, {
|
|
81
81
|
label: "Hot",
|
|
82
82
|
variant: "critical"
|
|
83
83
|
})
|
|
84
84
|
]),
|
|
85
85
|
default: d(() => [
|
|
86
|
-
|
|
86
|
+
T(" Most popular ")
|
|
87
87
|
]),
|
|
88
88
|
_: 1
|
|
89
89
|
}, 8, ["class"]),
|
|
90
|
-
(r(!0),
|
|
90
|
+
(r(!0), h(S, null, N(e(J).options, (o, x) => (r(), C(f, {
|
|
91
91
|
key: x,
|
|
92
|
-
class:
|
|
93
|
-
"bg-fm-color-system-warning-100": e(t).intention ===
|
|
92
|
+
class: w(["rounded-sm", {
|
|
93
|
+
"bg-fm-color-system-warning-100": e(t).intention === o
|
|
94
94
|
}]),
|
|
95
95
|
style: { padding: "8px 16px" },
|
|
96
|
-
onClick: (
|
|
97
|
-
e(t).intention =
|
|
96
|
+
onClick: (y) => {
|
|
97
|
+
e(t).intention = o, e(t).template = null;
|
|
98
98
|
}
|
|
99
99
|
}, {
|
|
100
100
|
default: d(() => [
|
|
101
|
-
T(g(e(V)(
|
|
101
|
+
T(g(e(V)(o)), 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
|
+
s("div", W, [
|
|
110
|
+
s("div", X, [
|
|
111
|
+
s("div", Y, g(n.campaignType ? e(V)(
|
|
112
|
+
`${e(A).formattedType(n.campaignType)} campaign`
|
|
113
113
|
) : "Template list"), 1),
|
|
114
|
-
|
|
114
|
+
Z
|
|
115
115
|
]),
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
(r(!0),
|
|
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
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: 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
124
|
}]),
|
|
125
|
-
onClick: (
|
|
125
|
+
onClick: (y) => e(t).template = o._id.toString()
|
|
126
126
|
}, {
|
|
127
127
|
default: d(() => {
|
|
128
|
-
var
|
|
128
|
+
var y, F;
|
|
129
129
|
return [
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
type: (F = (
|
|
130
|
+
s("div", ne, [
|
|
131
|
+
a(K, {
|
|
132
|
+
type: (F = (y = o.defaultValue) == null ? void 0 : y.campaign) == null ? void 0 : F.type
|
|
133
133
|
}, null, 8, ["type"])
|
|
134
134
|
]),
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
s("div", oe, g(o.name), 1),
|
|
136
|
+
s("p", se, g(o.description), 1)
|
|
137
137
|
];
|
|
138
138
|
}),
|
|
139
139
|
_: 2
|
|
140
140
|
}, 1032, ["class", "onClick"]))), 128))
|
|
141
141
|
])
|
|
142
142
|
]),
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
s("div", le, [
|
|
144
|
+
a(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
|
+
a(B, { class: "sm:hidden xs:hidden" }),
|
|
152
|
+
a(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: l[1] || (l[1] = (o) => e(p).close())
|
|
158
158
|
}),
|
|
159
|
-
|
|
159
|
+
a(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 (i) => {
|
|
177
177
|
p.open({
|
|
178
178
|
title: "",
|
|
179
|
-
dialogComponent:
|
|
179
|
+
dialogComponent: ae,
|
|
180
180
|
dialogComponentProps: {
|
|
181
181
|
campaignType: u,
|
|
182
|
-
onOk: async (
|
|
182
|
+
onOk: async (n) => (console.debug(n, "selected template"), await i(n))
|
|
183
183
|
},
|
|
184
184
|
overlay: !0
|
|
185
185
|
});
|