@feedmepos/mf-connect 0.1.24-prod → 0.1.26-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-DH3odpBh.js → Analytic-WXmpLkLU.js} +18 -17
- package/dist/{App-DT9d3Bm2.js → App-jBGNDeCb.js} +6 -6
- package/dist/{Bin-CEFG1nRH.js → Bin-COj4GqKe.js} +19 -18
- package/dist/{Broadcast-B_rv159-.js → Broadcast-vIqSNTJh.js} +13 -12
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DzD9-r4-.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BVtfunGL.js} +14 -8
- package/dist/{Card-Dyya8J2U.js → Card-CGyBry4S.js} +57 -55
- package/dist/{Collections-Dl2FDFOD.js → Collections-BeQ_uFRE.js} +23 -21
- package/dist/{Credit-B9mz3eUI.js → Credit-DWsgc_P1.js} +35 -34
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-TrKmONi5.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DxPsGM7d.js} +28 -27
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CVCgGHg4.js → EffectSheet.vue_vue_type_style_index_0_lang-DlCdWAqB.js} +6 -6
- package/dist/{Experience-CGwG9JGa.js → Experience-DQ5ofpRU.js} +13 -12
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
- package/dist/Game-dl01-cxh.js +278 -0
- package/dist/{Index-D0IkkcBH.js → Index-B33SYml2.js} +14 -13
- package/dist/{Marketing-HmC8ZXqz.js → Marketing-CqWuI9r1.js} +8 -7
- package/dist/Member-PuWzURyR.js +348 -0
- package/dist/{MemberList-_MFrJqht.js → MemberList-dQljjKIC.js} +275 -269
- package/dist/{MemberTransactions-kUyU9Qn6.js → MemberTransactions-BH1U_v3f.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DypmZY2G.js → MessageInput.vue_vue_type_script_setup_true_lang-ZSNwpN6m.js} +7 -7
- package/dist/{Mission-OUjm7KRr.js → Mission-PjsS8VTH.js} +118 -96
- package/dist/{Overview-F2AvMo-g.js → Overview-B6zXdxIf.js} +63 -62
- package/dist/{Point-K9poYQjB.js → Point-DhYeSbYo.js} +11 -10
- package/dist/{Promotion-DpS6PQFU.js → Promotion-4yBcCEQA.js} +12 -11
- package/dist/Queue-BCOe370v.js +249 -0
- package/dist/{Record-CZMB7xKL.js → Record-FxeE4KZe.js} +21 -19
- package/dist/{Reward-zMCEkbO5.js → Reward-B4licTuW.js} +19 -18
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Dj73NYhp.js → RewardGroup.vue_vue_type_script_setup_true_lang-CKWOhSQh.js} +13 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-FyuAHi5K.js → RuleGroup.vue_vue_type_script_setup_true_lang-BbOzaj63.js} +12 -12
- package/dist/{Segment-LthACAfl.js → Segment-DONb4N1l.js} +19 -17
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DRe6Gyov.js → SelectItems.vue_vue_type_script_setup_true_lang-CvHYZpGm.js} +2 -2
- package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-NDwwOZSM.js +188 -0
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Z9Nb9b6-.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D2ixqrV7.js} +3 -3
- package/dist/{Setting-8ASd681E.js → Setting-BQOcVtGa.js} +20 -19
- package/dist/{Store-C-bmQP0K.js → Store-BlaFXTeO.js} +24 -23
- package/dist/{StoreRewards-Bu3DWaCn.js → StoreRewards-Lqc34UoD.js} +15 -14
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-C5dViJNi.js +994 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-Bn7aoYqw.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-e_31o0i7.js} +1 -1
- package/dist/{Tier-DDKUGBRg.js → Tier-B26lO0SB.js} +25 -24
- package/dist/{Title-Cup_EWfZ.js → Title-BASSyfhP.js} +28 -27
- package/dist/{Transaction-BqvgfyiW.js → Transaction-BbzBRylw.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BCkXievQ.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BFyl96zy.js} +6 -6
- package/dist/{Voucher-Dxk6zfcN.js → Voucher-A_GG0E5t.js} +38 -37
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DmswMNi5.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CCGtKQTW.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-D-UPL1Rc.js → ZodTextField.vue_vue_type_script_setup_true_lang-DGNqvOl5.js} +1 -1
- package/dist/{app-bidojB9R.js → app-C7FQYfsn.js} +1 -1
- package/dist/{app-BDUrJlXZ.js → app-DV-5XPYF.js} +235 -166
- package/dist/app.js +1 -1
- package/dist/{business-CFOn3-Hz.js → business-C8PXQSRE.js} +1 -1
- package/dist/{campaign-DyzzIbnA.js → campaign-B4eKVpps.js} +9 -9
- package/dist/{campaign-BVIiGyq9.js → campaign-CuZ6u4yy.js} +2 -2
- package/dist/{campaign.enum-aFjayQfJ.js → campaign.enum-xbqqPDwY.js} +1 -1
- package/dist/{campaign.fn-BKADpFTx.js → campaign.fn-GFFtrWsz.js} +133 -133
- package/dist/{collectible.enum-vEUgo0YF.js → collectible.enum-DB4oBcfv.js} +1 -1
- package/dist/{collection.fn-D2Kbz9yq.js → collection.fn-BwpscyTl.js} +2 -2
- package/dist/{dto-CKxtFHko.js → dto-Cr20KGr0.js} +4 -4
- package/dist/{effect-BEWKDhDB.js → effect-D9-UiBiK.js} +1 -1
- package/dist/{email-addresses-BWDg5Wvf.js → email-addresses-F3hoXmRI.js} +1 -1
- package/dist/{export-DO-WeD6l.js → export-BIPF1ilY.js} +3 -3
- package/dist/{helper-CSGr0Zgt.js → helper-Tf1bFEee.js} +1 -1
- package/dist/{index-UVHHFXyh.js → index-B2jAIO5k.js} +1162 -1129
- package/dist/{index-Dw_jc7Et.js → index-BYzdfZKb.js} +3 -3
- package/dist/{index-BgJVKNYg.js → index-BhlEaLpy.js} +24 -21
- package/dist/{index-BV4M35iK.js → index-Bkw-11Tg.js} +2 -2
- package/dist/{index-CFXFhGs9.js → index-BvqdtS9H.js} +1 -1
- package/dist/{index-DVsh-nBE.js → index-CpUyyTF6.js} +1 -1
- package/dist/{index-CUlYeKKH.js → index-D4XX55M5.js} +1 -1
- package/dist/{index-CEjeBL2U.js → index-Dow2N7x1.js} +1 -1
- package/dist/{index--Mrx1FRI.js → index-IOTB7rGH.js} +1 -1
- package/dist/{index-CoMMyOsj.js → index-bb6Kd8k_.js} +10 -10
- package/dist/{index-DSBnWOie.js → index-gTmOLzQU.js} +1 -1
- package/dist/{index-Bg3caQS6.js → index-mjBmZtX2.js} +1273 -1273
- package/dist/{index.esm2017-CDzvT_fP.js → index.esm2017-Y_0J3nbR.js} +137 -137
- package/dist/loading-BbC_ZIPE.js +71 -0
- package/dist/{membership-DK9FNo2Y.js → membership-BM_2_hUW.js} +3 -3
- package/dist/{money-DJYiw0es.js → money-BsBmwalY.js} +1 -1
- package/dist/{number-BjhqQBza.js → number-QqpGrk9q.js} +1 -1
- package/dist/objectid-DQj-P2cH.js +145 -0
- package/dist/{loading-CWihCJvJ.js → plugins-DKPF0eaB.js} +1535 -1601
- package/dist/{reward-DlE5Zt3d.js → reward-Yl3EdHrH.js} +1 -1
- package/dist/{rule-a2_WCjR8.js → rule-DW_bLKtu.js} +3 -3
- package/dist/{rule-builder-Q8iGSpDV.js → rule-builder-BoITzEtm.js} +1 -1
- package/dist/{template-3faxO3XM.js → template-BSQzNJs5.js} +4 -4
- package/dist/{trigger-Cnvhgqkj.js → trigger-Bel1H8iR.js} +11 -11
- package/dist/usePagination-JoYaROkV.js +223 -0
- package/dist/{user-CoiXBmet.js → user-Dg2HfZlK.js} +1 -1
- package/dist/vue-i18n-CvvsV6dR.js +2365 -0
- package/dist/{usePagination-dNrSGtRV.js → xlsx-1oIZztwO.js} +2979 -3200
- package/package.json +3 -1
- package/dist/Game-DbhOlio1.js +0 -256
- package/dist/Member-NSQ2nHzW.js +0 -69
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CDRpkUaP.js +0 -1105
- package/dist/objectid-Cep7PkzN.js +0 -145
- package/dist/vue-i18n-B2XH0K8P.js +0 -2365
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { defineComponent as h, h as n, ref as T, watch as V, onBeforeMount as B, resolveComponent as N, openBlock as A, createElementBlock as U, Fragment as z, createVNode as m, unref as o, createElementVNode as f } from "vue";
|
|
2
|
+
import { u as q, _ as Y } from "./usePagination-JoYaROkV.js";
|
|
3
|
+
import { _ as x } from "./FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js";
|
|
4
|
+
import { c as u, a as L } from "./plugins-DKPF0eaB.js";
|
|
5
|
+
import { useDialog as O, components as w } from "@feedmepos/ui-library";
|
|
6
|
+
import { B as c, k as S } from "./index-B2jAIO5k.js";
|
|
7
|
+
import "./index-Bkw-11Tg.js";
|
|
8
|
+
import "./index-bb6Kd8k_.js";
|
|
9
|
+
import "./index-D4XX55M5.js";
|
|
10
|
+
import "./index-BYzdfZKb.js";
|
|
11
|
+
import { h as y } from "./moment-BWErdI6_.js";
|
|
12
|
+
import { u as $ } from "./vue-i18n-CvvsV6dR.js";
|
|
13
|
+
import { u as j, v as H, w as K } from "./index.esm2017-Y_0J3nbR.js";
|
|
14
|
+
import { g as W, S as G, u as Q } from "./index-mjBmZtX2.js";
|
|
15
|
+
import { o as J } from "./objectId-dwaoBfJX.js";
|
|
16
|
+
const X = () => {
|
|
17
|
+
if (!G.getBusinessId()) throw new Error("Invalid business ID");
|
|
18
|
+
return Q("queues");
|
|
19
|
+
}, Z = {
|
|
20
|
+
async readImportMember(d, p) {
|
|
21
|
+
return W(
|
|
22
|
+
await X().get("", {
|
|
23
|
+
params: { ...d, ...p }
|
|
24
|
+
})
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
}, ee = { class: "p-24 flex flex-col gap-y-2" }, te = { class: "flex items-center justify-between" }, oe = { class: "flex gap-8 items-center w-full overflow-x-scroll" }, be = /* @__PURE__ */ h({
|
|
28
|
+
__name: "Queue",
|
|
29
|
+
setup(d) {
|
|
30
|
+
const { t: p } = $(), I = O(), C = [
|
|
31
|
+
{
|
|
32
|
+
header: "ID",
|
|
33
|
+
accessorKey: "_id",
|
|
34
|
+
meta: {
|
|
35
|
+
maxWidth: "100px"
|
|
36
|
+
},
|
|
37
|
+
cell(t) {
|
|
38
|
+
return n("div", { class: "flex items-center" }, [
|
|
39
|
+
n(w.FmIcon, {
|
|
40
|
+
name: "content_copy",
|
|
41
|
+
outline: !0,
|
|
42
|
+
size: "sm",
|
|
43
|
+
class: "cursor-pointer mr-4",
|
|
44
|
+
onClick: (e) => {
|
|
45
|
+
e.preventDefault(), e.stopPropagation(), L(t.row.original._id.toString());
|
|
46
|
+
}
|
|
47
|
+
}),
|
|
48
|
+
n(
|
|
49
|
+
"div",
|
|
50
|
+
{ class: "pr-2 text-ellipsis overflow-hidden" },
|
|
51
|
+
t.row.original._id.toString()
|
|
52
|
+
)
|
|
53
|
+
]);
|
|
54
|
+
},
|
|
55
|
+
enableSorting: !1
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
header: "Type",
|
|
59
|
+
accessorFn: (t) => u.title(t.type.replace("_", " ")),
|
|
60
|
+
enableSorting: !1
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
header: "Status",
|
|
64
|
+
accessorFn: (t) => {
|
|
65
|
+
var e;
|
|
66
|
+
return t.status ? u.title((e = t.status) == null ? void 0 : e.toString()) : "-";
|
|
67
|
+
},
|
|
68
|
+
cell(t) {
|
|
69
|
+
const e = t.row.original.status;
|
|
70
|
+
return n(w.FmChip, {
|
|
71
|
+
label: e ? u.title(e) : "-",
|
|
72
|
+
compact: !0,
|
|
73
|
+
class: F(e)
|
|
74
|
+
});
|
|
75
|
+
},
|
|
76
|
+
enableSorting: !1
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
header: "Ref",
|
|
80
|
+
accessorKey: "ref",
|
|
81
|
+
enableSorting: !1
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
header: "Created at",
|
|
85
|
+
accessorFn: (t) => y(J(t._id.toString())).format("D MMM YYYY, hh:mmA"),
|
|
86
|
+
enableSorting: !0
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
header: "Context",
|
|
90
|
+
cell(t) {
|
|
91
|
+
var r, a;
|
|
92
|
+
const e = ((a = (r = t.row.original.context) == null ? void 0 : r.context) == null ? void 0 : a.file) || null;
|
|
93
|
+
return e != null && e.downloadUrl && (e != null && e.originalName) ? n(
|
|
94
|
+
"a",
|
|
95
|
+
{
|
|
96
|
+
class: "fm-typo-en-link-md-600",
|
|
97
|
+
href: e.downloadUrl,
|
|
98
|
+
download: e.originalName,
|
|
99
|
+
target: "_blank",
|
|
100
|
+
rel: "noopener"
|
|
101
|
+
},
|
|
102
|
+
e.originalName
|
|
103
|
+
) : e != null && e.originalName ? n("div", null, e.originalName) : n("div", null, "-");
|
|
104
|
+
},
|
|
105
|
+
enableSorting: !1
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
header: "Failed reason",
|
|
109
|
+
cell(t) {
|
|
110
|
+
return n(w.FmButton, {
|
|
111
|
+
icon: "visibility",
|
|
112
|
+
variant: "tertiary",
|
|
113
|
+
disabled: !t.row.original.failedReason,
|
|
114
|
+
onClick: (e) => {
|
|
115
|
+
e.preventDefault(), e.stopPropagation(), D(t.row.original.failedReason);
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
},
|
|
119
|
+
enableSorting: !1
|
|
120
|
+
}
|
|
121
|
+
], F = (t) => {
|
|
122
|
+
switch (t) {
|
|
123
|
+
case c.enum.ACTIVE:
|
|
124
|
+
return "text-fm-color-typo-info bg-fm-color-system-info-100";
|
|
125
|
+
case c.enum.WAITING:
|
|
126
|
+
return "text-fm-color-typo-warning bg-fm-color-system-warning-100";
|
|
127
|
+
case c.enum.COMPLETED:
|
|
128
|
+
return "text-fm-color-typo-success bg-fm-color-system-success-100";
|
|
129
|
+
case c.enum.FAILED:
|
|
130
|
+
return "text-fm-color-typo-error bg-fm-color-system-error-100";
|
|
131
|
+
default:
|
|
132
|
+
return "text-fm-color-typo-primary bg-fm-color-system-primary-100";
|
|
133
|
+
}
|
|
134
|
+
}, v = h({
|
|
135
|
+
name: "FailedReasonDialog",
|
|
136
|
+
props: {
|
|
137
|
+
data: {
|
|
138
|
+
type: String,
|
|
139
|
+
required: !0
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
setup(t) {
|
|
143
|
+
return () => n("div", { class: "whitespace-pre-line" }, t.data);
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
async function D(t) {
|
|
147
|
+
I.open({
|
|
148
|
+
title: "Failed Reason",
|
|
149
|
+
closeButton: !0,
|
|
150
|
+
dismissAway: !0,
|
|
151
|
+
contentComponent: v,
|
|
152
|
+
contentComponentProps: {
|
|
153
|
+
data: t
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
const E = async (t) => {
|
|
158
|
+
const e = j(), r = H(e, t);
|
|
159
|
+
return await K(r);
|
|
160
|
+
}, M = c.options.map((t) => ({ label: u.title(t), value: t })), s = T({
|
|
161
|
+
type: [S.enum.MEMBER_IMPORTED],
|
|
162
|
+
status: []
|
|
163
|
+
}), { tableMeta: l, rowData: R, onSort: k, debouncedFetchData: g } = q(
|
|
164
|
+
async (t) => {
|
|
165
|
+
const e = {
|
|
166
|
+
...s.value
|
|
167
|
+
}, r = await Z.readImportMember(t, e);
|
|
168
|
+
return await Promise.all(
|
|
169
|
+
r.resources.map(async (a) => {
|
|
170
|
+
var b, _;
|
|
171
|
+
const i = (_ = (b = a.context) == null ? void 0 : b.context) == null ? void 0 : _.file;
|
|
172
|
+
if (y(a.context.emittedAt).diff(y(), "days") < 7 && i)
|
|
173
|
+
try {
|
|
174
|
+
i.downloadUrl = await E(i == null ? void 0 : i.fbFilePath);
|
|
175
|
+
} catch (P) {
|
|
176
|
+
console.log(P);
|
|
177
|
+
}
|
|
178
|
+
})
|
|
179
|
+
), {
|
|
180
|
+
resources: r.resources,
|
|
181
|
+
meta: r.meta
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
);
|
|
185
|
+
return V(
|
|
186
|
+
s,
|
|
187
|
+
() => {
|
|
188
|
+
g();
|
|
189
|
+
},
|
|
190
|
+
{ deep: !0 }
|
|
191
|
+
), B(async () => {
|
|
192
|
+
await g();
|
|
193
|
+
}), (t, e) => {
|
|
194
|
+
const r = N("FmPageHead");
|
|
195
|
+
return A(), U(z, null, [
|
|
196
|
+
m(r, {
|
|
197
|
+
title: o(p)("connect.queue.title")
|
|
198
|
+
}, null, 8, ["title"]),
|
|
199
|
+
f("div", ee, [
|
|
200
|
+
f("div", te, [
|
|
201
|
+
f("div", oe, [
|
|
202
|
+
m(x, {
|
|
203
|
+
class: "cursor-pointer text-fm-color-neutral-gray-400",
|
|
204
|
+
"right-icon": "keyboard_arrow_down",
|
|
205
|
+
modelValue: o(s).type,
|
|
206
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => o(s).type = a),
|
|
207
|
+
label: "Type: ",
|
|
208
|
+
"show-item-label": !0,
|
|
209
|
+
items: [
|
|
210
|
+
{
|
|
211
|
+
label: "Member Imported",
|
|
212
|
+
value: o(S).enum.MEMBER_IMPORTED
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
}, null, 8, ["modelValue", "items"]),
|
|
216
|
+
m(x, {
|
|
217
|
+
class: "cursor-pointer text-fm-color-neutral-gray-400",
|
|
218
|
+
"right-icon": "keyboard_arrow_down",
|
|
219
|
+
modelValue: o(s).status,
|
|
220
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => o(s).status = a),
|
|
221
|
+
label: "Status: ",
|
|
222
|
+
"show-item-label": !0,
|
|
223
|
+
items: o(M)
|
|
224
|
+
}, null, 8, ["modelValue", "items"])
|
|
225
|
+
])
|
|
226
|
+
]),
|
|
227
|
+
m(Y, {
|
|
228
|
+
loading: o(l).isLoading,
|
|
229
|
+
"row-data": o(R),
|
|
230
|
+
"row-count": o(l).totalRows,
|
|
231
|
+
"column-defs": C,
|
|
232
|
+
"page-count": o(l).pageCount,
|
|
233
|
+
"page-index": o(l).pageIndex,
|
|
234
|
+
"page-size": o(l).pageSize,
|
|
235
|
+
"shrink-at": !1,
|
|
236
|
+
onSortChange: o(k),
|
|
237
|
+
onPageChange: e[2] || (e[2] = (a) => o(g)({
|
|
238
|
+
pageSize: a.pageSize,
|
|
239
|
+
pageIndex: a.pageIndex
|
|
240
|
+
}))
|
|
241
|
+
}, null, 8, ["loading", "row-data", "row-count", "page-count", "page-index", "page-size", "onSortChange"])
|
|
242
|
+
])
|
|
243
|
+
], 64);
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
export {
|
|
248
|
+
be as default
|
|
249
|
+
};
|
|
@@ -2,15 +2,17 @@ var q = Object.defineProperty;
|
|
|
2
2
|
var G = (g, o, m) => o in g ? q(g, o, { enumerable: !0, configurable: !0, writable: !0, value: m }) : g[o] = m;
|
|
3
3
|
var z = (g, o, m) => G(g, typeof o != "symbol" ? o + "" : o, m);
|
|
4
4
|
import { defineComponent as T, ref as B, computed as H, resolveComponent as C, openBlock as I, createBlock as J, unref as n, isRef as Q, withCtx as X, createElementBlock as U, createVNode as w, withModifiers as Z, createCommentVNode as ee, createElementVNode as N, h, onMounted as re, Fragment as te } from "vue";
|
|
5
|
-
import { u as
|
|
6
|
-
import { g as A } from "./user-
|
|
5
|
+
import { u as oe, _ as ae } from "./usePagination-JoYaROkV.js";
|
|
6
|
+
import { g as A } from "./user-Dg2HfZlK.js";
|
|
7
7
|
import { components as R } from "@feedmepos/ui-library";
|
|
8
|
-
import {
|
|
9
|
-
import { u as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
8
|
+
import { a as se, c as ie } from "./plugins-DKPF0eaB.js";
|
|
9
|
+
import { u as j } from "./vue-i18n-CvvsV6dR.js";
|
|
10
|
+
import { u as L } from "./loading-BbC_ZIPE.js";
|
|
11
|
+
import { useCoreStore as ne } from "@feedmepos/mf-common";
|
|
12
|
+
import { r as v } from "./index-CpUyyTF6.js";
|
|
13
|
+
import { c as ce, a as le } from "./object-qECH92oz.js";
|
|
14
|
+
import { u as de } from "./membership-BM_2_hUW.js";
|
|
15
|
+
import { u as V, w as me } from "./xlsx-1oIZztwO.js";
|
|
14
16
|
import { e as f } from "./index-vh86FiIQ.js";
|
|
15
17
|
import { h as ue } from "./moment-BWErdI6_.js";
|
|
16
18
|
import { o as pe } from "./objectId-dwaoBfJX.js";
|
|
@@ -22,8 +24,8 @@ const fe = {
|
|
|
22
24
|
emits: ["refresh"],
|
|
23
25
|
setup(g, { expose: o, emit: m }) {
|
|
24
26
|
const y = m;
|
|
25
|
-
|
|
26
|
-
const { minor: k } =
|
|
27
|
+
j();
|
|
28
|
+
const { minor: k } = L, l = B(!1), d = B({}), F = ne(), S = [
|
|
27
29
|
{
|
|
28
30
|
header: "Criteria title",
|
|
29
31
|
accessorFn: (a) => a.name
|
|
@@ -76,7 +78,7 @@ const fe = {
|
|
|
76
78
|
});
|
|
77
79
|
async function x(a) {
|
|
78
80
|
var r;
|
|
79
|
-
const e = le(
|
|
81
|
+
const e = ce(le(d.value));
|
|
80
82
|
e.criteria_progress = [
|
|
81
83
|
{
|
|
82
84
|
criteria: a,
|
|
@@ -148,12 +150,12 @@ class _e {
|
|
|
148
150
|
return V.book_append_sheet(o, m, "Referrals"), o;
|
|
149
151
|
}
|
|
150
152
|
}
|
|
151
|
-
const we = { class: "flex items-center justify-end" },
|
|
153
|
+
const we = { class: "flex items-center justify-end" }, Ee = /* @__PURE__ */ T({
|
|
152
154
|
__name: "Record",
|
|
153
155
|
setup(g) {
|
|
154
|
-
const { t: o } =
|
|
155
|
-
|
|
156
|
-
const { minor: m } =
|
|
156
|
+
const { t: o } = j();
|
|
157
|
+
de();
|
|
158
|
+
const { minor: m } = L, y = B(null), k = [
|
|
157
159
|
{
|
|
158
160
|
header: "ID",
|
|
159
161
|
meta: {
|
|
@@ -167,7 +169,7 @@ const we = { class: "flex items-center justify-end" }, Ie = /* @__PURE__ */ T({
|
|
|
167
169
|
size: "sm",
|
|
168
170
|
class: "cursor-pointer mr-4",
|
|
169
171
|
onClick: (s) => {
|
|
170
|
-
s.preventDefault(), s.stopPropagation(),
|
|
172
|
+
s.preventDefault(), s.stopPropagation(), se(t.row.original._id.toString());
|
|
171
173
|
}
|
|
172
174
|
}),
|
|
173
175
|
h(
|
|
@@ -213,7 +215,7 @@ const we = { class: "flex items-center justify-end" }, Ie = /* @__PURE__ */ T({
|
|
|
213
215
|
cell(t) {
|
|
214
216
|
const s = t.row.original.status;
|
|
215
217
|
return h(R.FmChip, {
|
|
216
|
-
label:
|
|
218
|
+
label: ie.title(s.replace("_", " ")),
|
|
217
219
|
compact: !0,
|
|
218
220
|
class: s == "COMPLETED" ? "text-fm-color-typo-success bg-fm-color-system-success-100" : "text-fm-color-typo-primary bg-fm-color-system-primary-100"
|
|
219
221
|
});
|
|
@@ -268,7 +270,7 @@ const we = { class: "flex items-center justify-end" }, Ie = /* @__PURE__ */ T({
|
|
|
268
270
|
}
|
|
269
271
|
f.page++;
|
|
270
272
|
}
|
|
271
|
-
await
|
|
273
|
+
await me(
|
|
272
274
|
t.buildExcel(),
|
|
273
275
|
`referrals-${(/* @__PURE__ */ new Date()).toISOString()}.xlsx`,
|
|
274
276
|
{
|
|
@@ -334,5 +336,5 @@ const we = { class: "flex items-center justify-end" }, Ie = /* @__PURE__ */ T({
|
|
|
334
336
|
}
|
|
335
337
|
});
|
|
336
338
|
export {
|
|
337
|
-
|
|
339
|
+
Ee as default
|
|
338
340
|
};
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { defineComponent as X, ref as h, computed as H, resolveComponent as f, openBlock as b, createBlock as U, unref as t, isRef as Z, withCtx as A, createElementVNode as w, createVNode as c, createCommentVNode as k, createElementBlock as M, Fragment as Y, h as F, onMounted as q, toDisplayString as B } from "vue";
|
|
2
2
|
import { _ as z } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as Q, components as L } from "@feedmepos/ui-library";
|
|
4
|
-
import {
|
|
5
|
-
import { u as J, C as
|
|
6
|
-
import {
|
|
4
|
+
import { u as G } from "./loading-BbC_ZIPE.js";
|
|
5
|
+
import { u as J, C as ee } from "./membership-BM_2_hUW.js";
|
|
6
|
+
import { f as j, p as te } from "./plugins-DKPF0eaB.js";
|
|
7
|
+
import { u as oe } from "./vue-i18n-CvvsV6dR.js";
|
|
7
8
|
import { c as ae } from "./object-qECH92oz.js";
|
|
8
9
|
import { Z as O } from "./zod-Bg2FbC-D.js";
|
|
9
|
-
import "./index-
|
|
10
|
-
import { F as N } from "./index-
|
|
10
|
+
import "./index-Bkw-11Tg.js";
|
|
11
|
+
import { F as N } from "./index-BYzdfZKb.js";
|
|
11
12
|
import { useCoreStore as ne } from "@feedmepos/mf-common";
|
|
12
|
-
import { _ as le, a as ie } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { b as re } from "./EffectSheet.vue_vue_type_style_index_0_lang-
|
|
13
|
+
import { _ as le, a as ie } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-CCGtKQTW.js";
|
|
14
|
+
import { b as re } from "./EffectSheet.vue_vue_type_style_index_0_lang-DlCdWAqB.js";
|
|
14
15
|
import { J as K } from "./JsonViewer-v8_C7l5N.js";
|
|
15
|
-
import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { i as ce } from "./helper-
|
|
17
|
-
import { u as de, r as P } from "./reward-
|
|
18
|
-
import "./index
|
|
19
|
-
import { C as pe } from "./campaign.fn-
|
|
20
|
-
import { e as me } from "./effect-
|
|
16
|
+
import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DGNqvOl5.js";
|
|
17
|
+
import { i as ce } from "./helper-Tf1bFEee.js";
|
|
18
|
+
import { u as de, r as P } from "./reward-Yl3EdHrH.js";
|
|
19
|
+
import "./index-IOTB7rGH.js";
|
|
20
|
+
import { C as pe } from "./campaign.fn-GFFtrWsz.js";
|
|
21
|
+
import { e as me } from "./effect-D9-UiBiK.js";
|
|
21
22
|
import { useRouter as ue } from "vue-router";
|
|
22
|
-
import { R as ye } from "./app-
|
|
23
|
+
import { R as ye } from "./app-DV-5XPYF.js";
|
|
23
24
|
const fe = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Earning option", -1), we = { class: "flex gap-8 items-center justify-start" }, ve = /* @__PURE__ */ X({
|
|
24
25
|
__name: "EditRewardSheet",
|
|
25
26
|
emits: ["update"],
|
|
@@ -215,7 +216,7 @@ const fe = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Earni
|
|
|
215
216
|
}), ge = { class: "px-24 flex flex-col gap-y-16" }, be = { class: "flex items-center justify-between w-full" }, Re = /* @__PURE__ */ w("div", { class: "flex gap-8" }, null, -1), Ce = /* @__PURE__ */ w("img", {
|
|
216
217
|
src: z,
|
|
217
218
|
class: "aspect-square w-[150px]"
|
|
218
|
-
}, null, -1), _e = { class: "flex flex-col gap-16 text-center" }, Fe = { class: "fm-typo-en-title-sm-800" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
219
|
+
}, null, -1), _e = { class: "flex flex-col gap-16 text-center" }, Fe = { class: "fm-typo-en-title-sm-800" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Je = /* @__PURE__ */ X({
|
|
219
220
|
__name: "Reward",
|
|
220
221
|
setup(W) {
|
|
221
222
|
const { t: l } = oe(), I = {
|
|
@@ -241,7 +242,7 @@ const fe = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Earni
|
|
|
241
242
|
{
|
|
242
243
|
header: l("connect.storeRewards.table.type"),
|
|
243
244
|
cell(e) {
|
|
244
|
-
return e.row.original.collectibleConfig ?
|
|
245
|
+
return e.row.original.collectibleConfig ? ee[e.row.original.collectibleConfig.type].chip() : "N/A";
|
|
245
246
|
}
|
|
246
247
|
},
|
|
247
248
|
{
|
|
@@ -311,7 +312,7 @@ const fe = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Earni
|
|
|
311
312
|
}
|
|
312
313
|
], x = h();
|
|
313
314
|
async function D(e) {
|
|
314
|
-
await
|
|
315
|
+
await te.remove(
|
|
315
316
|
l("connect.storeRewards.delete.confirm"),
|
|
316
317
|
l("connect.storeRewards.delete.title")
|
|
317
318
|
) && await o(
|
|
@@ -437,5 +438,5 @@ const fe = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Earni
|
|
|
437
438
|
}
|
|
438
439
|
});
|
|
439
440
|
export {
|
|
440
|
-
|
|
441
|
+
Je as default
|
|
441
442
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { ref as p, defineComponent as T, computed as x, resolveComponent as y, openBlock as U, createBlock as G, unref as e, isRef as $, withCtx as b, createElementVNode as v, createVNode as u, toDisplayString as j } from "vue";
|
|
2
|
-
import { u as B } from "./loading-
|
|
2
|
+
import { u as B } from "./loading-BbC_ZIPE.js";
|
|
3
3
|
import { J as P } from "./JsonViewer-v8_C7l5N.js";
|
|
4
|
-
import { _ as D } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as I } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as D } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DGNqvOl5.js";
|
|
5
|
+
import { _ as I } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-BFyl96zy.js";
|
|
6
6
|
import { Z as L } from "./zod-Bg2FbC-D.js";
|
|
7
7
|
import { u as V } from "./app-wDQR6dpb.js";
|
|
8
8
|
import { defineStore as N } from "pinia";
|
|
9
|
-
import { r as k } from "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
12
|
-
import { c as E } from "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./index-
|
|
15
|
-
import
|
|
9
|
+
import { r as k } from "./index-CpUyyTF6.js";
|
|
10
|
+
import "./index-B2jAIO5k.js";
|
|
11
|
+
import "./index-Bkw-11Tg.js";
|
|
12
|
+
import { c as E } from "./index-bb6Kd8k_.js";
|
|
13
|
+
import "./index-D4XX55M5.js";
|
|
14
|
+
import "./index-BYzdfZKb.js";
|
|
15
|
+
import "./plugins-DKPF0eaB.js";
|
|
16
|
+
import { u as J } from "./vue-i18n-CvvsV6dR.js";
|
|
16
17
|
import { c as C } from "./object-qECH92oz.js";
|
|
17
18
|
import { useDialog as Z } from "@feedmepos/ui-library";
|
|
18
19
|
const A = N("mf-connect-referral", () => {
|
|
@@ -102,7 +103,7 @@ const A = N("mf-connect-referral", () => {
|
|
|
102
103
|
}, 8, ["modelValue", "header"]);
|
|
103
104
|
};
|
|
104
105
|
}
|
|
105
|
-
}),
|
|
106
|
+
}), de = /* @__PURE__ */ T({
|
|
106
107
|
__name: "RewardGroup",
|
|
107
108
|
setup(h, { expose: _ }) {
|
|
108
109
|
const { minor: c } = B, n = Z(), m = A(), s = x(() => {
|
|
@@ -144,6 +145,6 @@ const A = N("mf-connect-referral", () => {
|
|
|
144
145
|
}
|
|
145
146
|
});
|
|
146
147
|
export {
|
|
147
|
-
|
|
148
|
+
de as _,
|
|
148
149
|
A as u
|
|
149
150
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { defineComponent as B, computed as I, resolveComponent as k, openBlock as n, createElementBlock as V, createElementVNode as x, createVNode as v, unref as e, createTextVNode as te, toDisplayString as W, withCtx as M, onMounted as z, createBlock as g, createCommentVNode as $, ref as P, Fragment as w, renderList as N, normalizeClass as L, watch as me, resolveDynamicComponent as ae, onBeforeMount as ue, isRef as de, createSlots as pe } from "vue";
|
|
2
|
-
import { a as ye, C as ce, b as ve, c as be, d as fe } from "./index-
|
|
3
|
-
import { R as O, a as ge } from "./rule-builder-
|
|
4
|
-
import { a as ke, R as S, S as Ee, C as _, W as Ve, T as ne, O as re } from "./rule-
|
|
5
|
-
import { p as Te } from "./
|
|
2
|
+
import { a as ye, C as ce, b as ve, c as be, d as fe } from "./index-Bkw-11Tg.js";
|
|
3
|
+
import { R as O, a as ge } from "./rule-builder-BoITzEtm.js";
|
|
4
|
+
import { a as ke, R as S, S as Ee, C as _, W as Ve, T as ne, O as re } from "./rule-DW_bLKtu.js";
|
|
5
|
+
import { p as Te } from "./plugins-DKPF0eaB.js";
|
|
6
6
|
import { useDialog as le, useDialogChild as se } from "@feedmepos/ui-library";
|
|
7
7
|
import { h as J } from "./moment-BWErdI6_.js";
|
|
8
|
-
import { z as Fe } from "./app-
|
|
9
|
-
import { u as Q } from "./membership-
|
|
10
|
-
import { u as X } from "./business-
|
|
8
|
+
import { z as Fe } from "./app-DV-5XPYF.js";
|
|
9
|
+
import { u as Q } from "./membership-BM_2_hUW.js";
|
|
10
|
+
import { u as X } from "./business-C8PXQSRE.js";
|
|
11
11
|
import { _ as R } from "./CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js";
|
|
12
12
|
import { c as ie } from "./object-qECH92oz.js";
|
|
13
13
|
import { Z } from "./zod-Bg2FbC-D.js";
|
|
14
|
-
import { _ as Se } from "./SelectItems.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./index-
|
|
17
|
-
import "./index-
|
|
18
|
-
import "./index-
|
|
14
|
+
import { _ as Se } from "./SelectItems.vue_vue_type_script_setup_true_lang-CvHYZpGm.js";
|
|
15
|
+
import "./index-B2jAIO5k.js";
|
|
16
|
+
import "./index-bb6Kd8k_.js";
|
|
17
|
+
import "./index-D4XX55M5.js";
|
|
18
|
+
import "./index-BYzdfZKb.js";
|
|
19
19
|
const Ue = { class: "flex items-center justify-between" }, Ce = { class: "flex items-center gap-8 xs:flex-wrap" }, he = /* @__PURE__ */ x("div", { class: "h-[26px] border-l-2 rounded-md border-fm-color-neutral-gray-100" }, null, -1), xe = { class: "text-fm-color-primary line-clamp-1 text-ellipsis" }, Re = /* @__PURE__ */ B({
|
|
20
20
|
__name: "RuleEntry",
|
|
21
21
|
props: {
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { defineComponent as Q, onMounted as ue, openBlock as x, createElementBlock as D, createElementVNode as i, toDisplayString as $, unref as o, createVNode as l, ref as H, computed as X, resolveComponent as S, createBlock as W, isRef as ye, createSlots as _e, withCtx as C, Fragment as q, h as B, onBeforeMount as ve, renderList as he } from "vue";
|
|
2
2
|
import { _ as Se } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { F as re, p as xe
|
|
3
|
+
import { F as re, p as xe } from "./plugins-DKPF0eaB.js";
|
|
4
|
+
import { u as we } from "./loading-BbC_ZIPE.js";
|
|
4
5
|
import { components as Z } from "@feedmepos/ui-library";
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
6
|
+
import { u as pe, _ as me } from "./usePagination-JoYaROkV.js";
|
|
7
|
+
import { u as Fe } from "./vue-i18n-CvvsV6dR.js";
|
|
8
|
+
import { w as Ce } from "./xlsx-1oIZztwO.js";
|
|
9
|
+
import { e as Me, M as ke } from "./email-addresses-F3hoXmRI.js";
|
|
8
10
|
import { Z as Ie } from "./zod-Bg2FbC-D.js";
|
|
9
|
-
import {
|
|
11
|
+
import { h as Pe } from "./index-B2jAIO5k.js";
|
|
10
12
|
import { u as Re } from "./app-wDQR6dpb.js";
|
|
11
|
-
import { R as Be } from "./rule-builder-
|
|
12
|
-
import { _ as Ee } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { _ as $e } from "./RuleGroup.vue_vue_type_script_setup_true_lang-
|
|
13
|
+
import { R as Be } from "./rule-builder-BoITzEtm.js";
|
|
14
|
+
import { _ as Ee } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DGNqvOl5.js";
|
|
15
|
+
import { _ as $e } from "./RuleGroup.vue_vue_type_script_setup_true_lang-BbOzaj63.js";
|
|
14
16
|
import { h as z } from "./moment-BWErdI6_.js";
|
|
15
|
-
import { s as E, u as De } from "./membership-
|
|
17
|
+
import { s as E, u as De } from "./membership-BM_2_hUW.js";
|
|
16
18
|
import { o as Ye } from "./objectId-dwaoBfJX.js";
|
|
17
|
-
import { u as ge } from "./business-
|
|
18
|
-
import { f as be } from "./number-
|
|
19
|
-
import { t as Le } from "./money-
|
|
20
|
-
import { m as ce } from "./index-
|
|
19
|
+
import { u as ge } from "./business-C8PXQSRE.js";
|
|
20
|
+
import { f as be } from "./number-QqpGrk9q.js";
|
|
21
|
+
import { t as Le } from "./money-BsBmwalY.js";
|
|
22
|
+
import { m as ce } from "./index-BhlEaLpy.js";
|
|
21
23
|
const Te = Pe.extend({
|
|
22
24
|
_id: re.optional(),
|
|
23
25
|
business: re.optional()
|
|
@@ -277,10 +279,10 @@ const Qe = {
|
|
|
277
279
|
}, null, -1), it = /* @__PURE__ */ i("div", { class: "flex flex-col gap-16 text-center" }, [
|
|
278
280
|
/* @__PURE__ */ i("div", { class: "fm-typo-en-title-sm-800" }, "Create customer segments"),
|
|
279
281
|
/* @__PURE__ */ i("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. ")
|
|
280
|
-
], -1),
|
|
282
|
+
], -1), Rt = /* @__PURE__ */ Q({
|
|
281
283
|
__name: "Segment",
|
|
282
284
|
setup(e) {
|
|
283
|
-
const { minor: c } = we, { t: h } =
|
|
285
|
+
const { minor: c } = we, { t: h } = Fe(), _ = ge(), { mapMemberExportRow: r } = Qe, d = H(0), M = [
|
|
284
286
|
{
|
|
285
287
|
header: h("connect.loyalty.segment.table.name"),
|
|
286
288
|
accessorFn: (t) => t.name
|
|
@@ -409,7 +411,7 @@ const Qe = {
|
|
|
409
411
|
}
|
|
410
412
|
a.page++;
|
|
411
413
|
}
|
|
412
|
-
await
|
|
414
|
+
await Ce(
|
|
413
415
|
F.buildExcel(),
|
|
414
416
|
`[${t.name}]-members-${(/* @__PURE__ */ new Date()).toISOString()}.xlsx`,
|
|
415
417
|
{
|
|
@@ -562,5 +564,5 @@ const Qe = {
|
|
|
562
564
|
}
|
|
563
565
|
});
|
|
564
566
|
export {
|
|
565
|
-
|
|
567
|
+
Rt as default
|
|
566
568
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as N, computed as f, ref as V, onMounted as H, resolveComponent as _, openBlock as c, createElementBlock as u, createVNode as i, withCtx as S, createElementVNode as p, toDisplayString as q, normalizeClass as A, Fragment as x, renderList as j, createCommentVNode as B } from "vue";
|
|
2
|
-
import { J as D } from "./app-
|
|
3
|
-
import "./
|
|
2
|
+
import { J as D } from "./app-C7FQYfsn.js";
|
|
3
|
+
import "./plugins-DKPF0eaB.js";
|
|
4
4
|
import { c as E } from "./object-qECH92oz.js";
|
|
5
5
|
const J = { class: "flex flex-col flex-nowrap" }, M = { class: "flex gap-16 items-center w-full" }, T = { class: "flex grow items-center" }, $ = { class: "grow text-fm-color-typo-secondary" }, z = { key: 0 }, K = { class: "px-16" }, X = /* @__PURE__ */ N({
|
|
6
6
|
__name: "SelectItems",
|