@feedmepos/mf-connect 0.0.16-beta.1 → 0.0.17-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-CKM1hA08.js +612 -0
- package/dist/{Broadcast-X69Mtv3b.js → Broadcast-DzJRPvz5.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-VWLBlxy1.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D7J9gl35.js} +8 -8
- package/dist/{Card-D0X3v1UF.js → Card-BowvmBJD.js} +121 -121
- package/dist/{Collections-umR6Ehqf.js → Collections-DHi8bxpj.js} +129 -141
- package/dist/{Credit-C1EWF7R0.js → Credit-DakCAG7z.js} +7 -7
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bz6TSmbW.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-B6L77rz7.js} +22 -24
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-AhWnHG02.js → EffectSheet.vue_vue_type_style_index_0_lang-RLmpxA5_.js} +6 -6
- package/dist/{Experience-CqL8wyPm.js → Experience-CnHloEig.js} +7 -7
- package/dist/{Game--kYe64EV.js → Game-D-X4EgC-.js} +7 -7
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BjOJ3XSL.js → ImageInput.vue_vue_type_script_setup_true_lang-DZhanVR2.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DykNOOFD.js → MainLayout-BAyMP_C8.js} +53 -20
- package/dist/{Marketing-CTCQ5ZmZ.js → Marketing-c4QG38L1.js} +25 -25
- package/dist/{Member-DCduX7zP.js → Member-DQBVPHCv.js} +2 -2
- package/dist/MemberList-Ci6LRnrH.js +1718 -0
- package/dist/{MemberTransactions-CTAx5jIV.js → MemberTransactions-CztAzAA6.js} +1 -1
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-B_hDmE8e.js +203 -0
- package/dist/{Mission-CVr9rS_D.js → Mission-Cj_hi3tv.js} +7 -7
- package/dist/{Point-BnZ6M74y.js → Point-BGDCrLdw.js} +7 -7
- package/dist/{Promotion-B0PUve5S.js → Promotion-BABafzmp.js} +8 -8
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CrpJySSp.js → RuleGroup.vue_vue_type_script_setup_true_lang-C7Tqs2pq.js} +14 -14
- package/dist/{Segment-B-XpkyM5.js → Segment-Bh8bddz_.js} +18 -19
- package/dist/{Setting-Zrj5P_4m.js → Setting-ByrGfBdk.js} +541 -571
- package/dist/Store-6lrxcf8I.js +1442 -0
- package/dist/{StoreRewards-D8410Q_-.js → StoreRewards-C5bJ9hxE.js} +74 -75
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DS4APaHw.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DaboQyfR.js} +79 -82
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DUaTP2_0.js +124 -0
- package/dist/{Tier-DVWJyQ9S.js → Tier-D71DR1ez.js} +68 -71
- package/dist/{Title-B5kX64vs.js → Title-CxAYzUIx.js} +75 -78
- package/dist/{Transaction-CZBO4v4d.js → Transaction-BWRGkDrb.js} +1 -1
- package/dist/{Voucher-se-4JF9B.js → Voucher-BLy2jD1L.js} +37 -37
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +140 -0
- package/dist/{app-B2ImSO3V.js → app-BGUDahHa.js} +1 -1
- package/dist/{app-DkI7dYRN.js → app-roSGTcOh.js} +46 -46
- package/dist/app.js +1 -1
- package/dist/{campaign-BZJuknWK.js → campaign-B7-BUOfP.js} +11 -13
- package/dist/{collection.fn-DoCkZ6z4.js → collection.fn-DHlfGYAC.js} +2 -4
- package/dist/{dto-BWpvRpK2.js → dto-zv3OTrbd.js} +214 -215
- package/dist/{effect-B8kmnKvY.js → effect-DLtYeqVg.js} +1 -1
- package/dist/{export-Dm6LYnWo.js → export-Bm6xBE89.js} +3 -3
- package/dist/{helper-DR4XK3nv.js → helper-BaLvfRCZ.js} +1 -1
- package/dist/{index-DcUrk07Q.js → index-BmgXoYUK.js} +1 -1
- package/dist/{index-CuL5-ORK.js → index-D9Ft2U8O.js} +8 -9
- package/dist/{index-CWf0mh3a.js → index-DIA3Lkck.js} +2 -2
- package/dist/{index-BryrRq8O.js → index-DP2wL3EA.js} +37 -47
- package/dist/{index-CkiYkbXb.js → index-DgAr53Ae.js} +1 -1
- package/dist/{index-yxJMhfxj.js → index-DiC8aGiv.js} +66 -109
- package/dist/{index-boor8e80.js → index-DrA3F2aA.js} +27 -28
- package/dist/{index-BxkxVtgm.js → index-Qr6T_tfL.js} +1 -1
- package/dist/index-SdCqUstr.js +244 -0
- package/dist/{index-Bu4_26qI.js → index-aYwIKfns.js} +1 -1
- package/dist/{loading-BzV5acUX.js → loading-CB6v7hws.js} +4 -4
- package/dist/{lodash-mg4435Qq.js → lodash-DkICSg8W.js} +1 -1
- package/dist/{membership-CqbsLHqx.js → membership-CFVkuT3Z.js} +58 -63
- package/dist/{money-DA_gtp3q.js → money-DMEHb1PR.js} +1 -1
- package/dist/{number-C388eyOu.js → number-RVupiUMd.js} +3 -3
- package/dist/{rule-Clmr5y4j.js → rule-CpU35zT1.js} +2 -2
- package/dist/{rule-builder-BgqNbM-P.js → rule-builder-CrtuA_0Q.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-Dwp7heBA.js → template-DxvJmDC3.js} +6 -6
- package/dist/{usePagination-o5fgsZwU.js → usePagination-FlXHEH_R.js} +1 -1
- package/dist/{xlsx-BRdh9e2p.js → xlsx-BJ7B-X33.js} +309 -309
- package/package.json +2 -2
- package/dist/Analytic-C-zZmF5N.js +0 -760
- package/dist/MainLayout-D0AoA1tk.js +0 -41
- package/dist/MemberList-B0EkXZJu.js +0 -1729
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-C-BtHxSc.js +0 -432
- package/dist/Store-B2gywCt2.js +0 -1503
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-ZYjWlDJ1.js +0 -139
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-CWt4tVdk.js +0 -55
- package/dist/index-BobRgQrE.js +0 -291
- package/dist/zod-W_PvIofQ.js +0 -90
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, ref as p, resolveComponent as _, openBlock as l, createElementBlock as d, createVNode as f, unref as e, createBlock as r, createCommentVNode as v } from "vue";
|
|
2
|
-
import { _ as b, a as k } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as b, a as k } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-DaboQyfR.js";
|
|
3
3
|
import { useRouter as x } from "vue-router";
|
|
4
4
|
const C = { class: "flex flex-col gap-y-32 pb-24" }, N = /* @__PURE__ */ i({
|
|
5
5
|
__name: "MemberTransactions",
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { defineComponent as M, ref as C, computed as E, onMounted as D, resolveComponent as l, openBlock as p, createElementBlock as v, createElementVNode as m, createVNode as c, unref as u, withCtx as h, createTextVNode as F, toDisplayString as T, Fragment as j, renderList as k, createBlock as U } from "vue";
|
|
2
|
+
import { p as A } from "./loading-CB6v7hws.js";
|
|
3
|
+
import { r as B } from "./index-DP2wL3EA.js";
|
|
4
|
+
const L = {
|
|
5
|
+
"user.name": {
|
|
6
|
+
name: "User name"
|
|
7
|
+
},
|
|
8
|
+
"user.birthday": {
|
|
9
|
+
name: "Birthday"
|
|
10
|
+
},
|
|
11
|
+
"user.joinAt": {
|
|
12
|
+
name: "Join at"
|
|
13
|
+
},
|
|
14
|
+
"user.expiringVouchers.days7": {
|
|
15
|
+
name: "Expiring vouchers in 7 days"
|
|
16
|
+
},
|
|
17
|
+
"user.expiringVouchers.days30": {
|
|
18
|
+
name: "Expiring vouchers in 30 days"
|
|
19
|
+
},
|
|
20
|
+
"user.expiringVouchers.days90": {
|
|
21
|
+
name: "Expiring vouchers in 90 days"
|
|
22
|
+
},
|
|
23
|
+
"user.tier": {
|
|
24
|
+
name: "User tier"
|
|
25
|
+
},
|
|
26
|
+
"user.point": {
|
|
27
|
+
name: "User experience"
|
|
28
|
+
},
|
|
29
|
+
"transaction.amount": {
|
|
30
|
+
name: "Reward amount"
|
|
31
|
+
},
|
|
32
|
+
"collectible.name": {
|
|
33
|
+
name: "Reward name"
|
|
34
|
+
}
|
|
35
|
+
}, O = { class: "space-y-0" }, $ = { class: "flex items-center gap-8 justify-between" }, I = /* @__PURE__ */ m("div", { class: "fm-typo-en-body-lg-400" }, "Add message", -1), N = { class: "relative" }, P = { class: "absolute bottom-[24px] right-[4px]" }, K = /* @__PURE__ */ M({
|
|
36
|
+
__name: "MessageInput",
|
|
37
|
+
props: {
|
|
38
|
+
modelValue: {
|
|
39
|
+
type: Object
|
|
40
|
+
},
|
|
41
|
+
triggerType: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: () => "SCHEDULE"
|
|
44
|
+
},
|
|
45
|
+
helperText: {
|
|
46
|
+
type: String
|
|
47
|
+
},
|
|
48
|
+
helperState: {
|
|
49
|
+
type: String
|
|
50
|
+
},
|
|
51
|
+
variables: {
|
|
52
|
+
type: Object,
|
|
53
|
+
default: () => [
|
|
54
|
+
"user.name",
|
|
55
|
+
"user.birthday",
|
|
56
|
+
"user.joinAt",
|
|
57
|
+
"user.expiringVouchers.days7",
|
|
58
|
+
"user.expiringVouchers.days30",
|
|
59
|
+
"user.expiringVouchers.days90",
|
|
60
|
+
"user.tier",
|
|
61
|
+
"user.point",
|
|
62
|
+
"transaction.amount",
|
|
63
|
+
"collectible.name"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
placeholder: {
|
|
67
|
+
type: String
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
emits: ["update:model-value"],
|
|
71
|
+
setup(r, { emit: V }) {
|
|
72
|
+
const n = r, g = V;
|
|
73
|
+
function S() {
|
|
74
|
+
var t;
|
|
75
|
+
const a = {
|
|
76
|
+
user: {
|
|
77
|
+
name: "John Doe",
|
|
78
|
+
tier: 1,
|
|
79
|
+
point: 1283,
|
|
80
|
+
birthday: (/* @__PURE__ */ new Date("2000-10-02T16:00:00.000Z")).toLocaleDateString(),
|
|
81
|
+
joinAt: (/* @__PURE__ */ new Date("2024-06-14")).toLocaleDateString(),
|
|
82
|
+
expiringVouchers: { days7: 3, days30: 5, days90: 5 }
|
|
83
|
+
},
|
|
84
|
+
transaction: {
|
|
85
|
+
amount: 3
|
|
86
|
+
},
|
|
87
|
+
collectible: {
|
|
88
|
+
name: "RM10 Voucher"
|
|
89
|
+
}
|
|
90
|
+
}, e = B(
|
|
91
|
+
((t = n.modelValue) == null ? void 0 : t.content) ?? "",
|
|
92
|
+
a
|
|
93
|
+
);
|
|
94
|
+
A.confirm(e, "Preview message", "OK");
|
|
95
|
+
}
|
|
96
|
+
function d(a) {
|
|
97
|
+
g("update:model-value", {
|
|
98
|
+
channel: "SMS",
|
|
99
|
+
content: a,
|
|
100
|
+
language: "en",
|
|
101
|
+
variables: n.variables
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
const _ = C(n.helperState || "none"), y = E(() => {
|
|
105
|
+
var t;
|
|
106
|
+
const a = ((t = n.modelValue) == null ? void 0 : t.content.replace(/{{([^}]+)}}/g, (s, o) => {
|
|
107
|
+
switch (o) {
|
|
108
|
+
case "user.name":
|
|
109
|
+
return "1234567890";
|
|
110
|
+
case "user.tier":
|
|
111
|
+
return "1";
|
|
112
|
+
case "user.point":
|
|
113
|
+
return "1000";
|
|
114
|
+
case "user.birthday":
|
|
115
|
+
return "01/01/2024";
|
|
116
|
+
case "user.joinAt":
|
|
117
|
+
return "01/01/2024";
|
|
118
|
+
case "user.expiringVouchers.days7":
|
|
119
|
+
case "user.expiringVouchers.days30":
|
|
120
|
+
case "user.expiringVouchers.days90":
|
|
121
|
+
return "5";
|
|
122
|
+
case "transaction.amount":
|
|
123
|
+
return "100";
|
|
124
|
+
case "collectible.name":
|
|
125
|
+
return "Voucher";
|
|
126
|
+
default:
|
|
127
|
+
return "...";
|
|
128
|
+
}
|
|
129
|
+
})) || "";
|
|
130
|
+
let e = 0;
|
|
131
|
+
for (let s = 0; s < a.length; s++) {
|
|
132
|
+
const o = a.charAt(s);
|
|
133
|
+
/[\u4e00-\u9fff\u3040-\u30ff\u3400-\u4dbf]/.test(o) || /[{}\\~\[\]|\^€]/.test(o) ? e += 2 : e += 1;
|
|
134
|
+
}
|
|
135
|
+
return `Character used: ${e} ≈ ${Math.ceil(e / 160)} SMS (Every 160 characters will be sent as 1 SMS)`;
|
|
136
|
+
});
|
|
137
|
+
return D(() => {
|
|
138
|
+
g("update:model-value", {
|
|
139
|
+
...n.modelValue,
|
|
140
|
+
variables: n.variables
|
|
141
|
+
}), n.modelValue || d("");
|
|
142
|
+
}), (a, e) => {
|
|
143
|
+
var x;
|
|
144
|
+
const t = l("FmButton"), s = l("FmTextarea"), o = l("FmMenuItem"), w = l("FmMenu");
|
|
145
|
+
return p(), v("div", O, [
|
|
146
|
+
m("div", $, [
|
|
147
|
+
I,
|
|
148
|
+
c(t, {
|
|
149
|
+
icon: "visibility",
|
|
150
|
+
label: "Preview message",
|
|
151
|
+
variant: "plain",
|
|
152
|
+
onClick: S
|
|
153
|
+
})
|
|
154
|
+
]),
|
|
155
|
+
m("div", N, [
|
|
156
|
+
c(s, {
|
|
157
|
+
"model-value": (x = r.modelValue) == null ? void 0 : x.content,
|
|
158
|
+
"onUpdate:modelValue": d,
|
|
159
|
+
"show-word-count": !0,
|
|
160
|
+
placeholder: r.placeholder,
|
|
161
|
+
"helper-state": u(_) || "none",
|
|
162
|
+
"helper-text": u(y)
|
|
163
|
+
}, {
|
|
164
|
+
"helper-text": h(() => [
|
|
165
|
+
F(T(u(y)), 1)
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
}, 8, ["model-value", "placeholder", "helper-state", "helper-text"]),
|
|
169
|
+
m("div", P, [
|
|
170
|
+
c(w, { placement: "left-end" }, {
|
|
171
|
+
"menu-button": h(() => [
|
|
172
|
+
c(t, {
|
|
173
|
+
icon: "add",
|
|
174
|
+
variant: "tertiary",
|
|
175
|
+
size: "md"
|
|
176
|
+
})
|
|
177
|
+
]),
|
|
178
|
+
default: h(() => [
|
|
179
|
+
(p(!0), v(j, null, k(r.variables.filter(
|
|
180
|
+
(i) => r.triggerType == "SCHEDULE" ? !i.startsWith("transaction.") : !0
|
|
181
|
+
), (i) => {
|
|
182
|
+
var f;
|
|
183
|
+
return p(), U(o, {
|
|
184
|
+
key: i,
|
|
185
|
+
label: ((f = u(L)[i]) == null ? void 0 : f.name) || i,
|
|
186
|
+
onClick: (R) => {
|
|
187
|
+
var b;
|
|
188
|
+
return d(((b = r.modelValue) == null ? void 0 : b.content) + `{{${i}}}`);
|
|
189
|
+
}
|
|
190
|
+
}, null, 8, ["label", "onClick"]);
|
|
191
|
+
}), 128))
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
})
|
|
195
|
+
])
|
|
196
|
+
])
|
|
197
|
+
]);
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
export {
|
|
202
|
+
K as _
|
|
203
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as j, ref as I, computed as A, onMounted as D, resolveComponent as r, openBlock as c, createElementBlock as _, Fragment as h, createVNode as i, unref as a, createElementVNode as s, withCtx as w, renderList as E, createBlock as x, resolveDynamicComponent as H, toDisplayString as y, h as m } from "vue";
|
|
2
2
|
import { _ as q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as z, components as C } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as G, a as J, p as Q } from "./loading-
|
|
5
|
-
import { a as W } from "./app-
|
|
6
|
-
import { u as X } from "./campaign-
|
|
7
|
-
import { g as M, b as V } from "./dto-
|
|
4
|
+
import { u as G, a as J, p as Q } from "./loading-CB6v7hws.js";
|
|
5
|
+
import { a as W } from "./app-roSGTcOh.js";
|
|
6
|
+
import { u as X } from "./campaign-B7-BUOfP.js";
|
|
7
|
+
import { g as M, b as V } from "./dto-zv3OTrbd.js";
|
|
8
8
|
import { _ as Y } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
9
|
-
import { _ as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as ee } from "./template-
|
|
9
|
+
import { _ as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-B6L77rz7.js";
|
|
10
|
+
import { u as ee } from "./template-DxvJmDC3.js";
|
|
11
11
|
import { s as oe } from "./index-CuvNtC_M.js";
|
|
12
|
-
import { c as g } from "./index-
|
|
12
|
+
import { c as g } from "./index-Qr6T_tfL.js";
|
|
13
13
|
const te = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ne = { class: "space-y-8" }, ie = { class: "flex w-full gap-4 items-center" }, re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, le = { class: "space-y-4" }, ce = { class: "fm-typo-en-body-lg-600" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = /* @__PURE__ */ s("img", {
|
|
14
14
|
src: q,
|
|
15
15
|
class: "aspect-square w-[150px]"
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as D, ref as S, computed as T, onMounted as j, resolveComponent as l, openBlock as c, createElementBlock as g, Fragment as h, createVNode as i, unref as o, withCtx as f, createElementVNode as n, renderList as E, createBlock as C, resolveDynamicComponent as M, toDisplayString as y, h as H } from "vue";
|
|
2
2
|
import { _ as q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as z, components as G } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as J, p as Q } from "./loading-
|
|
5
|
-
import { a as W } from "./app-
|
|
6
|
-
import { u as X } from "./campaign-
|
|
7
|
-
import { g as V, b as L } from "./dto-
|
|
4
|
+
import { u as J, p as Q } from "./loading-CB6v7hws.js";
|
|
5
|
+
import { a as W } from "./app-roSGTcOh.js";
|
|
6
|
+
import { u as X } from "./campaign-B7-BUOfP.js";
|
|
7
|
+
import { g as V, b as L } from "./dto-zv3OTrbd.js";
|
|
8
8
|
import { _ as Y } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
9
|
-
import { _ as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as ee } from "./template-
|
|
11
|
-
import { c as _ } from "./index-
|
|
9
|
+
import { _ as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-B6L77rz7.js";
|
|
10
|
+
import { u as ee } from "./template-DxvJmDC3.js";
|
|
11
|
+
import { c as _ } from "./index-Qr6T_tfL.js";
|
|
12
12
|
const te = { class: "flex items-center" }, oe = /* @__PURE__ */ n("span", { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, "Point", -1), ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ie = { class: "space-y-8" }, le = { class: "flex w-full gap-4 items-center" }, re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ce = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = /* @__PURE__ */ n("img", {
|
|
13
13
|
src: q,
|
|
14
14
|
class: "aspect-square w-[150px]"
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as A, ref as k, computed as D, onMounted as j, resolveComponent as i, openBlock as c, createElementBlock as g, Fragment as y, createVNode as s, unref as l, createElementVNode as a, withCtx as _, renderList as E, createBlock as h, resolveDynamicComponent as H, toDisplayString as P, h as q } from "vue";
|
|
2
2
|
import { _ as z } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as G, components as J } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as S, u as Q, p as W } from "./loading-
|
|
5
|
-
import { a as X } from "./app-
|
|
6
|
-
import { u as Y } from "./campaign-
|
|
7
|
-
import { g as O } from "./dto-
|
|
8
|
-
import { e as L } from "./effect-
|
|
4
|
+
import { c as S, u as Q, p as W } from "./loading-CB6v7hws.js";
|
|
5
|
+
import { a as X } from "./app-roSGTcOh.js";
|
|
6
|
+
import { u as Y } from "./campaign-B7-BUOfP.js";
|
|
7
|
+
import { g as O } from "./dto-zv3OTrbd.js";
|
|
8
|
+
import { e as L } from "./effect-DLtYeqVg.js";
|
|
9
9
|
import { _ as Z } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as oe } from "./template-
|
|
12
|
-
import { c as f } from "./index-
|
|
10
|
+
import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-B6L77rz7.js";
|
|
11
|
+
import { u as oe } from "./template-DxvJmDC3.js";
|
|
12
|
+
import { c as f } from "./index-Qr6T_tfL.js";
|
|
13
13
|
const te = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-center justify-between w-full" }, ne = { class: "flex gap-8 overflow-x-auto" }, se = { class: "space-y-8" }, le = { class: "flex w-full gap-4 items-center" }, ie = { class: "space-y-4" }, re = { class: "fm-typo-en-body-lg-600" }, ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = /* @__PURE__ */ a("img", {
|
|
14
14
|
src: z,
|
|
15
15
|
class: "aspect-square w-[150px]"
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { defineComponent as $, computed as I, resolveComponent as g, openBlock as n, createElementBlock as F, createElementVNode as C, createVNode as y, unref as e, createTextVNode as ee, toDisplayString as j, withCtx as M, onMounted as K, createBlock as x, createCommentVNode as A, ref as P, Fragment as Y, renderList as N, normalizeClass as L, watch as ie, resolveDynamicComponent as ae, onBeforeMount as ue, isRef as me, createSlots as de } from "vue";
|
|
2
|
-
import { c as pe, C as ce, d as ye, e as ve, f as fe } from "./index-
|
|
3
|
-
import { R as _, a as be } from "./rule-builder-
|
|
4
|
-
import { a as ge, R, S as ke, C as H, W as Ve, T as ne, O as Ee } from "./rule-
|
|
5
|
-
import { p as Fe } from "./loading-
|
|
2
|
+
import { c as pe, C as ce, d as ye, e as ve, f as fe } from "./index-DIA3Lkck.js";
|
|
3
|
+
import { R as _, a as be } from "./rule-builder-CrtuA_0Q.js";
|
|
4
|
+
import { a as ge, R, S as ke, C as H, W as Ve, T as ne, O as Ee } from "./rule-CpU35zT1.js";
|
|
5
|
+
import { p as Fe } from "./loading-CB6v7hws.js";
|
|
6
6
|
import { useDialog as te, useDialogChild as se } from "@feedmepos/ui-library";
|
|
7
7
|
import { h as J } from "./moment-BWErdI6_.js";
|
|
8
|
-
import { z as Se, a as re } from "./app-
|
|
9
|
-
import { u as z } from "./membership-
|
|
10
|
-
import { _ as D } from "./index-
|
|
8
|
+
import { z as Se, a as re } from "./app-roSGTcOh.js";
|
|
9
|
+
import { u as z } from "./membership-CFVkuT3Z.js";
|
|
10
|
+
import { _ as D } from "./index-DiC8aGiv.js";
|
|
11
11
|
import { c as le } from "./object-qECH92oz.js";
|
|
12
|
-
import { Z } from "./
|
|
13
|
-
import { x as xe } from "./app-
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./index-
|
|
17
|
-
import "./index-
|
|
18
|
-
import "./index-
|
|
12
|
+
import { Z } from "./ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js";
|
|
13
|
+
import { x as xe } from "./app-BGUDahHa.js";
|
|
14
|
+
import "./index-D9Ft2U8O.js";
|
|
15
|
+
import "./index-DP2wL3EA.js";
|
|
16
|
+
import "./index-DrA3F2aA.js";
|
|
17
|
+
import "./index-SdCqUstr.js";
|
|
18
|
+
import "./index-DgAr53Ae.js";
|
|
19
19
|
const he = { class: "flex items-center justify-between" }, Te = { class: "flex items-center gap-8 xs:flex-wrap" }, Ce = /* @__PURE__ */ C("div", { class: "h-[26px] border-l-2 rounded-md border-fm-color-neutral-gray-100" }, null, -1), Ue = { class: "text-fm-color-primary line-clamp-1 text-ellipsis" }, Re = /* @__PURE__ */ $({
|
|
20
20
|
__name: "RuleEntry",
|
|
21
21
|
props: {
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { defineComponent as A, onMounted as E, openBlock as p, createElementBlock as b, createElementVNode as a, toDisplayString as M, unref as e, createVNode as n, createCommentVNode as q, ref as w, computed as j, resolveComponent as u, createBlock as B, isRef as G, createSlots as J, withCtx as g, Fragment as V, reactive as W, watch as Q, onBeforeMount as X, renderList as ee, h as I } from "vue";
|
|
2
2
|
import { _ as te } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { F as N, p as oe, u as ae } from "./loading-
|
|
3
|
+
import { F as N, p as oe, u as ae } from "./loading-CB6v7hws.js";
|
|
4
4
|
import { components as L } from "@feedmepos/ui-library";
|
|
5
|
-
import { l as se } from "./lodash-
|
|
6
|
-
import {
|
|
7
|
-
import { a as
|
|
8
|
-
import { u as
|
|
9
|
-
import { R as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as de } from "./RuleGroup.vue_vue_type_script_setup_true_lang-CrpJySSp.js";
|
|
5
|
+
import { l as se } from "./lodash-DkICSg8W.js";
|
|
6
|
+
import { _ as ne, Z as le } from "./ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js";
|
|
7
|
+
import { a as ie } from "./index-DrA3F2aA.js";
|
|
8
|
+
import { u as re, a as me } from "./app-roSGTcOh.js";
|
|
9
|
+
import { R as ce } from "./rule-builder-CrtuA_0Q.js";
|
|
10
|
+
import { _ as de } from "./RuleGroup.vue_vue_type_script_setup_true_lang-C7Tqs2pq.js";
|
|
12
11
|
import { h as P } from "./moment-BWErdI6_.js";
|
|
13
|
-
import { u as ue, _ as pe } from "./usePagination-
|
|
14
|
-
import { s as k } from "./membership-
|
|
12
|
+
import { u as ue, _ as pe } from "./usePagination-FlXHEH_R.js";
|
|
13
|
+
import { s as k } from "./membership-CFVkuT3Z.js";
|
|
15
14
|
import { o as fe } from "./objectId-dwaoBfJX.js";
|
|
16
|
-
import { m as ge } from "./index-
|
|
17
|
-
const _e =
|
|
15
|
+
import { m as ge } from "./index-BmgXoYUK.js";
|
|
16
|
+
const _e = ie.extend({
|
|
18
17
|
_id: N.optional(),
|
|
19
18
|
business: N.optional()
|
|
20
19
|
}), ve = { class: "space-y-16 pr-12" }, ye = { class: "fm-typo-en-title-md-800" }, he = { class: "flex space-x-8" }, Se = { class: "fm-typo-en-title-md-800 text-fm-color-primary" }, be = { class: "text-fm-color-typo-secondary" }, xe = /* @__PURE__ */ a("div", null, "contacts in your segment", -1), we = {
|
|
@@ -86,9 +85,9 @@ const _e = le.extend({
|
|
|
86
85
|
__name: "SegmentSheet",
|
|
87
86
|
emits: ["update:model-value"],
|
|
88
87
|
setup(D, { expose: _, emit: x }) {
|
|
89
|
-
const v =
|
|
88
|
+
const v = re(), r = w(!1), c = w(!1), m = {
|
|
90
89
|
name: "",
|
|
91
|
-
rule:
|
|
90
|
+
rule: ce.scaffoldGroup(),
|
|
92
91
|
members: []
|
|
93
92
|
}, d = _e, l = w(m), s = j(() => {
|
|
94
93
|
const t = d.safeParse(l.value);
|
|
@@ -161,11 +160,11 @@ const _e = le.extend({
|
|
|
161
160
|
title: e(l).name,
|
|
162
161
|
segment: e(l)
|
|
163
162
|
}, null, 8, ["title", "segment"])) : (p(), b("div", Ie, [
|
|
164
|
-
n(
|
|
163
|
+
n(ne, {
|
|
165
164
|
modelValue: e(l).name,
|
|
166
165
|
"onUpdate:modelValue": i[1] || (i[1] = (R) => e(l).name = R),
|
|
167
166
|
label: "Segment title",
|
|
168
|
-
schema: e(
|
|
167
|
+
schema: e(le).typeAtPath(e(d), "name")
|
|
169
168
|
}, null, 8, ["modelValue", "schema"]),
|
|
170
169
|
Ve,
|
|
171
170
|
n(de, {
|
|
@@ -204,10 +203,10 @@ const _e = le.extend({
|
|
|
204
203
|
}, null, -1), Ee = /* @__PURE__ */ a("div", { class: "flex flex-col gap-16 text-center" }, [
|
|
205
204
|
/* @__PURE__ */ a("div", { class: "fm-typo-en-title-sm-800" }, "Create customer segments"),
|
|
206
205
|
/* @__PURE__ */ a("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Segments allow you to categorize your customers based on various criteria, enabling targeted marketing and personalized experiences. ")
|
|
207
|
-
], -1),
|
|
206
|
+
], -1), at = /* @__PURE__ */ A({
|
|
208
207
|
__name: "Segment",
|
|
209
208
|
setup(D) {
|
|
210
|
-
const { minor: _ } = ae, x =
|
|
209
|
+
const { minor: _ } = ae, x = me(), v = w(0), r = [
|
|
211
210
|
{
|
|
212
211
|
header: "Name",
|
|
213
212
|
accessorFn: (o) => o.name
|
|
@@ -441,5 +440,5 @@ const _e = le.extend({
|
|
|
441
440
|
}
|
|
442
441
|
});
|
|
443
442
|
export {
|
|
444
|
-
|
|
443
|
+
at as default
|
|
445
444
|
};
|