@feedmepos/mf-connect 0.1.38-beta.52 → 0.1.38-beta.53
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/package.json +2 -2
- package/dist/Analytic-BU1mOMoX.js +0 -760
- package/dist/App-fw6iFNxW.js +0 -4638
- package/dist/AuditLogs-CliU8167.js +0 -1887
- package/dist/Bin-C49tzfas.js +0 -166
- package/dist/Broadcast-YZVnZTCD.js +0 -232
- package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DEwsZags.js +0 -122
- package/dist/Card-DcQQyJl9.js +0 -911
- package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +0 -97
- package/dist/Collections--8lmoXWR.js +0 -540
- package/dist/Credit-CfkLFMei.js +0 -227
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +0 -128
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-t6eac8yR.js +0 -3151
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CXVOuiLI.js +0 -347
- package/dist/Experience-BnVVC2-L.js +0 -228
- package/dist/FileSaver.min-NlMItPOc.js +0 -74
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
- package/dist/Game-Dbz4DzY_.js +0 -297
- package/dist/Grab-CCqScmpp.js +0 -300
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-C5irH9v6.js +0 -145
- package/dist/Index-DPsM9D4W.js +0 -259
- package/dist/JsonViewer-v8_C7l5N.js +0 -87
- package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js +0 -18737
- package/dist/MainLayout-B1aJoR95.js +0 -41
- package/dist/Marketing-CFwxWdJq.js +0 -21761
- package/dist/Member-ZPKbf5Bk.js +0 -281
- package/dist/MemberList-BDs-70nG.js +0 -1607
- package/dist/MemberOverview-wL_ailso.js +0 -58
- package/dist/MemberTransactions-C-zHpuZF.js +0 -45
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-B2TKmOOK.js +0 -60616
- package/dist/Mission-BHkb1E9m.js +0 -301
- package/dist/Overview-DYlcqNCX.js +0 -1079
- package/dist/Point-BEhNBY2_.js +0 -231
- package/dist/Promotion-DOXRIej4.js +0 -363
- package/dist/Queue-Bwa0LWhf.js +0 -260
- package/dist/Record-BoI8l1Qq.js +0 -341
- package/dist/Reward-BVQaqAYM.js +0 -442
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-BC3dEiWi.js +0 -150
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-HpleMvjm.js +0 -1767
- package/dist/Segment-Cmy7nu27.js +0 -882
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-pab6X2DC.js +0 -181
- package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-BqIh8D8O.js +0 -189
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-CESoNd87.js +0 -147
- package/dist/Setting-DN8j_6Xv.js +0 -1993
- package/dist/SettingAdvertisements-qHdiaa6m.js +0 -264
- package/dist/Store-DfhVYCgX.js +0 -1936
- package/dist/StoreRewards-NYucFLJU.js +0 -535
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BGOcOAXR.js +0 -1036
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DRin8Jzw.js +0 -8093
- package/dist/Tier-Dl0aBuJz.js +0 -970
- package/dist/Title-DvO6Mira.js +0 -568
- package/dist/Transaction-ONVl4UZZ.js +0 -39
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-FyE25D8o.js +0 -130
- package/dist/Voucher-BZ1feYh1.js +0 -399
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Lilql8J4.js +0 -421
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-C_ZdCOPI.js +0 -56
- package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-B_RRkjaD.js +0 -42566
- package/dist/app-wDQR6dpb.js +0 -39
- package/dist/app.js +0 -7
- package/dist/business-y5qSMcd-.js +0 -82
- package/dist/campaign-CpzFl8Vr.js +0 -4
- package/dist/campaign-DHgol2Lt.js +0 -219
- package/dist/campaign-Drxe0zPX.js +0 -253
- package/dist/campaign.enum-CwAPVgPe.js +0 -21
- package/dist/campaign.fn-DMx5xsiK.js +0 -776
- package/dist/collectible.enum-Bh4jnUgP.js +0 -19
- package/dist/collection.fn-BpC_YBwG.js +0 -26
- package/dist/dto-DWkf9QOb.js +0 -222
- package/dist/effect-D5ZWGpNS.js +0 -78
- package/dist/email-addresses-DFtVESS8.js +0 -705
- package/dist/export-BtUy3sWU.js +0 -97
- package/dist/feedme.ico +0 -0
- package/dist/helper-DtWMZoWX.js +0 -86
- package/dist/index-7HXC3sH0.js +0 -56
- package/dist/index-BQlhmw75.js +0 -3
- package/dist/index-BdX7CxUg.js +0 -30076
- package/dist/index-BerRe0M3.js +0 -76
- package/dist/index-BrZ3xZzk.js +0 -146
- package/dist/index-CJzBpsBP.js +0 -3412
- package/dist/index-CQiABpeB.js +0 -32456
- package/dist/index-CqIWlGW3.js +0 -38
- package/dist/index-CsaQJMAR.js +0 -66
- package/dist/index-DPCDboPA.js +0 -32
- package/dist/index-DPaH8jaV.js +0 -8884
- package/dist/index-Dkce3JZ_.js +0 -54
- package/dist/index-DrYv_gG4.js +0 -31
- package/dist/index-SfJbKfWl.js +0 -2407
- package/dist/index-vh86FiIQ.js +0 -10
- package/dist/index.esm2017-CbvE5vCC.js +0 -3069
- package/dist/loading-BWGIK17X.js +0 -71
- package/dist/lodash-B5I3zXaY.js +0 -3678
- package/dist/membership-Zy2P6O6X.js +0 -235
- package/dist/moment-D7p2TMB-.js +0 -2583
- package/dist/money-D_fZmBbi.js +0 -15
- package/dist/number-C4DhXkCm.js +0 -12
- package/dist/object-qECH92oz.js +0 -26
- package/dist/objectId-dwaoBfJX.js +0 -7
- package/dist/objectid-C6eRcDzI.js +0 -145
- package/dist/plugins-DDAJav2s.js +0 -1817
- package/dist/reward-Dxjvmy7-.js +0 -36
- package/dist/rule-builder-ZkPWAiTl.js +0 -102
- package/dist/rule-sclqeiyk.js +0 -1951
- package/dist/style.css +0 -4
- package/dist/template-CAs0lkTY.js +0 -188
- package/dist/tier-BJDhpH6X.js +0 -4
- package/dist/tiers/tier=1.png +0 -0
- package/dist/tiers/tier=2.png +0 -0
- package/dist/tiers/tier=3.png +0 -0
- package/dist/tiers/tier=4.png +0 -0
- package/dist/timezone-5t8ki0gE.js +0 -1151
- package/dist/titles/type=diamond.png +0 -0
- package/dist/titles/type=drinks.png +0 -0
- package/dist/titles/type=food.png +0 -0
- package/dist/titles/type=heart.png +0 -0
- package/dist/titles/type=medal.png +0 -0
- package/dist/titles/type=spend.png +0 -0
- package/dist/titles/type=thank-you.png +0 -0
- package/dist/titles/type=thumbs-up.png +0 -0
- package/dist/titles/type=years.png +0 -0
- package/dist/trigger-B2fpKTfg.js +0 -213
- package/dist/tslib.es6-BCqqvLQ_.js +0 -44
- package/dist/type_drinks-D6jnpvwV.js +0 -4
- package/dist/usePagination-Ds-cuHop.js +0 -223
- package/dist/user-ORhbAsqi.js +0 -55
- package/dist/vue-i18n-cyOhW8mW.js +0 -2365
- package/dist/xlsx-4klfjFae.js +0 -15491
- package/dist/zod-BsHmzMQd.js +0 -91
package/dist/Member-ZPKbf5Bk.js
DELETED
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
import { defineComponent as L, ref as F, watch as P, resolveComponent as m, openBlock as x, createElementBlock as C, Fragment as R, createElementVNode as b, createVNode as u, unref as n, withCtx as M, renderList as $, createBlock as D, toDisplayString as O, normalizeClass as U, computed as Y, createCommentVNode as q } from "vue";
|
|
2
|
-
import "./index-BQlhmw75.js";
|
|
3
|
-
import { useDialogChild as H, FmButtonVariant as S, useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as N } from "./vue-i18n-cyOhW8mW.js";
|
|
5
|
-
import "./index-SfJbKfWl.js";
|
|
6
|
-
import { c as A } from "./index-CJzBpsBP.js";
|
|
7
|
-
import "./index-DPaH8jaV.js";
|
|
8
|
-
import "./index-CQiABpeB.js";
|
|
9
|
-
import "./index-CqIWlGW3.js";
|
|
10
|
-
import "./index-Dkce3JZ_.js";
|
|
11
|
-
import { u as g, w as j } from "./xlsx-4klfjFae.js";
|
|
12
|
-
import { F as z } from "./FileSaver.min-NlMItPOc.js";
|
|
13
|
-
import { useCoreStore as G } from "@feedmepos/mf-common";
|
|
14
|
-
import { useRouter as W } from "vue-router";
|
|
15
|
-
import { m as I } from "./index-BerRe0M3.js";
|
|
16
|
-
import { R as E } from "./app-B_RRkjaD.js";
|
|
17
|
-
const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
18
|
-
key: 1,
|
|
19
|
-
class: /* @__PURE__ */ U([
|
|
20
|
-
"flex items-center",
|
|
21
|
-
"border border-fm-color-neutral-gray-300",
|
|
22
|
-
"p-16 space-x-16 rounded-md"
|
|
23
|
-
])
|
|
24
|
-
}, ee = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, te = /* @__PURE__ */ L({
|
|
25
|
-
__name: "ImportMemberDialog",
|
|
26
|
-
setup(V) {
|
|
27
|
-
const { t: a } = N(), { emitData: v } = H(), c = F(null), _ = F(null), w = F({
|
|
28
|
-
resetCollectionExpiryBalance: !0
|
|
29
|
-
}), s = [
|
|
30
|
-
"Id",
|
|
31
|
-
"Name",
|
|
32
|
-
"Phone",
|
|
33
|
-
"Email",
|
|
34
|
-
"Gender",
|
|
35
|
-
"CardNo",
|
|
36
|
-
"Birthday",
|
|
37
|
-
"Credit",
|
|
38
|
-
"CreditExpiryDate",
|
|
39
|
-
"Exp",
|
|
40
|
-
"Point",
|
|
41
|
-
"Tier",
|
|
42
|
-
"Titles",
|
|
43
|
-
"TotalTransaction",
|
|
44
|
-
"AvgSpent",
|
|
45
|
-
"TotalSpent",
|
|
46
|
-
"LastVisit",
|
|
47
|
-
"Feedback",
|
|
48
|
-
"LastSeasonTierEarned",
|
|
49
|
-
"LastSeasonPointEarned",
|
|
50
|
-
"JoinedAt",
|
|
51
|
-
"JoinedAtLocation",
|
|
52
|
-
"VisitFrequency"
|
|
53
|
-
], p = [
|
|
54
|
-
{
|
|
55
|
-
label: "CSV",
|
|
56
|
-
icon: "csv",
|
|
57
|
-
value: "csv"
|
|
58
|
-
/* csv */
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
label: "Excel",
|
|
62
|
-
icon: "description",
|
|
63
|
-
value: "xlsx"
|
|
64
|
-
/* xlsx */
|
|
65
|
-
}
|
|
66
|
-
];
|
|
67
|
-
async function d(i) {
|
|
68
|
-
var t, f;
|
|
69
|
-
c.value = ((f = (t = i.target) == null ? void 0 : t.files) == null ? void 0 : f[0]) ?? null;
|
|
70
|
-
}
|
|
71
|
-
async function y(i) {
|
|
72
|
-
switch (i) {
|
|
73
|
-
case "csv":
|
|
74
|
-
T();
|
|
75
|
-
break;
|
|
76
|
-
case "xlsx":
|
|
77
|
-
h();
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
function T() {
|
|
82
|
-
const i = new Blob([s.join(",")], {
|
|
83
|
-
type: "text/csv;charset=utf-8;"
|
|
84
|
-
});
|
|
85
|
-
z.saveAs(i, "ImportMemberTemplate.csv");
|
|
86
|
-
}
|
|
87
|
-
function h() {
|
|
88
|
-
const i = g.aoa_to_sheet([s]), t = g.book_new();
|
|
89
|
-
g.book_append_sheet(t, i, "Sheet1"), j(t, "ImportMemberTemplate.xlsx");
|
|
90
|
-
}
|
|
91
|
-
return P(c, () => {
|
|
92
|
-
v({ file: c.value, config: w.value });
|
|
93
|
-
}), (i, t) => {
|
|
94
|
-
const f = m("FmSwitch"), k = m("FmButton"), o = m("FmMenuItem"), l = m("FmMenu"), r = m("FmDropField");
|
|
95
|
-
return x(), C(R, null, [
|
|
96
|
-
b("div", K, [
|
|
97
|
-
t[3] || (t[3] = b("div", { class: "fm-typo-en-body-lg-600" }, "Advanced Setting", -1)),
|
|
98
|
-
u(f, {
|
|
99
|
-
"model-value": n(w).resetCollectionExpiryBalance ?? !0,
|
|
100
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) => n(w).resetCollectionExpiryBalance = e),
|
|
101
|
-
label: "Replace Existing Free Credit",
|
|
102
|
-
sublabel: "When enabled, this will clear existing free credit and replace with new values from the import.",
|
|
103
|
-
"label-placement": "right"
|
|
104
|
-
}, null, 8, ["model-value"])
|
|
105
|
-
]),
|
|
106
|
-
b("div", X, [
|
|
107
|
-
u(l, null, {
|
|
108
|
-
"menu-button": M(() => [
|
|
109
|
-
u(k, {
|
|
110
|
-
variant: "tertiary",
|
|
111
|
-
icon: "download",
|
|
112
|
-
label: "Download Template"
|
|
113
|
-
})
|
|
114
|
-
]),
|
|
115
|
-
default: M(() => [
|
|
116
|
-
(x(), C(R, null, $(p, (e) => u(o, {
|
|
117
|
-
key: e.value,
|
|
118
|
-
icon: e.icon,
|
|
119
|
-
label: e.label,
|
|
120
|
-
onClick: (B) => y(e.value),
|
|
121
|
-
selectable: ""
|
|
122
|
-
}, null, 8, ["icon", "label", "onClick"])), 64))
|
|
123
|
-
]),
|
|
124
|
-
_: 1
|
|
125
|
-
})
|
|
126
|
-
]),
|
|
127
|
-
n(c) ? (x(), C("div", Z, [
|
|
128
|
-
u(k, {
|
|
129
|
-
variant: n(S).Tertiary,
|
|
130
|
-
"prepend-icon": "attach_file"
|
|
131
|
-
}, null, 8, ["variant"]),
|
|
132
|
-
b("p", ee, O(n(c).name), 1),
|
|
133
|
-
b("label", {
|
|
134
|
-
ref_key: "fileLabelRef",
|
|
135
|
-
ref: _,
|
|
136
|
-
htmlFor: "file"
|
|
137
|
-
}, [
|
|
138
|
-
u(k, {
|
|
139
|
-
variant: n(S).Plain,
|
|
140
|
-
label: n(a)("Replace File"),
|
|
141
|
-
onClick: t[2] || (t[2] = () => {
|
|
142
|
-
var e;
|
|
143
|
-
return (e = n(_)) == null ? void 0 : e.click();
|
|
144
|
-
})
|
|
145
|
-
}, null, 8, ["variant", "label"]),
|
|
146
|
-
b("input", {
|
|
147
|
-
id: "file",
|
|
148
|
-
accept: ".csv, .xlsx",
|
|
149
|
-
class: "hidden",
|
|
150
|
-
type: "file",
|
|
151
|
-
multiple: "",
|
|
152
|
-
onChange: d
|
|
153
|
-
}, null, 32)
|
|
154
|
-
], 512)
|
|
155
|
-
])) : (x(), D(r, {
|
|
156
|
-
key: 0,
|
|
157
|
-
onFileUpload: t[1] || (t[1] = (e) => c.value = e),
|
|
158
|
-
accept: ".csv, .xlsx",
|
|
159
|
-
"max-file-size": 5e6
|
|
160
|
-
}))
|
|
161
|
-
], 64);
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
}), ne = { class: "px-24 flex flex-col gap-y-16 pb-24" }, ke = /* @__PURE__ */ L({
|
|
165
|
-
__name: "Member",
|
|
166
|
-
setup(V) {
|
|
167
|
-
var t, f, k;
|
|
168
|
-
const a = W(), { t: v } = N(), c = J(), _ = Q(), w = G();
|
|
169
|
-
v("connect.loyalty.member.import"), v("connect.navigation.queue");
|
|
170
|
-
const s = [
|
|
171
|
-
{
|
|
172
|
-
label: v("connect.loyalty.member.tabs.member_list"),
|
|
173
|
-
value: E["$connect-LOYALTY_MEMBER_LIST"],
|
|
174
|
-
actions: (k = (f = (t = w.sessionUser) == null ? void 0 : t.value) == null ? void 0 : f.role) != null && k.isAdmin ? [] : []
|
|
175
|
-
}
|
|
176
|
-
], p = Y(() => {
|
|
177
|
-
var l, r, e;
|
|
178
|
-
return a.currentRoute.value.name != E["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
|
|
179
|
-
title: d.value.label,
|
|
180
|
-
actions: d.value.actions,
|
|
181
|
-
description: void 0
|
|
182
|
-
} : (d.value = s[1], {
|
|
183
|
-
backButton: !0,
|
|
184
|
-
title: v("connect.loyalty.member.title"),
|
|
185
|
-
actions: [],
|
|
186
|
-
description: `${(l = y.value) == null ? void 0 : l.name} (${(r = y.value) == null ? void 0 : r._id}) (${(e = y.value) == null ? void 0 : e.phoneNumber})`,
|
|
187
|
-
onBackButton: async () => {
|
|
188
|
-
await a.push({ name: E["$connect-LOYALTY_MEMBER_LIST"] });
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
}), d = F(
|
|
192
|
-
s.find((o) => o.value === a.currentRoute.value.name) ?? s[0]
|
|
193
|
-
), y = F();
|
|
194
|
-
async function T(o) {
|
|
195
|
-
await a.push({ name: o });
|
|
196
|
-
}
|
|
197
|
-
async function h() {
|
|
198
|
-
c.open({
|
|
199
|
-
title: "Upload File",
|
|
200
|
-
closeButton: !0,
|
|
201
|
-
dismissAway: !1,
|
|
202
|
-
contentComponent: te,
|
|
203
|
-
primaryActions: { text: "Import", close: !1 }
|
|
204
|
-
}).onPrimary(async (o) => {
|
|
205
|
-
if (!o) {
|
|
206
|
-
_.open({
|
|
207
|
-
type: "error",
|
|
208
|
-
title: "Please upload a file"
|
|
209
|
-
});
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
const { file: l, config: r } = o;
|
|
213
|
-
if (!l)
|
|
214
|
-
_.open({
|
|
215
|
-
type: "error",
|
|
216
|
-
title: "Please upload a file"
|
|
217
|
-
});
|
|
218
|
-
else {
|
|
219
|
-
const e = new FormData();
|
|
220
|
-
e.append("file", l), e.append("config", JSON.stringify(r)), await I.import(e), _.open({
|
|
221
|
-
type: "info",
|
|
222
|
-
title: "Import begins soon. Check Queue for updates.",
|
|
223
|
-
action: "View",
|
|
224
|
-
onAction: async () => {
|
|
225
|
-
await a.push({
|
|
226
|
-
name: E["$connect-QUEUE"],
|
|
227
|
-
query: { type: [A.enum.MEMBER_IMPORTED] }
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
}), c.close();
|
|
231
|
-
}
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
function i(o) {
|
|
235
|
-
switch (o) {
|
|
236
|
-
case "import":
|
|
237
|
-
h();
|
|
238
|
-
break;
|
|
239
|
-
case "queue":
|
|
240
|
-
a.push({
|
|
241
|
-
name: E["$connect-QUEUE"],
|
|
242
|
-
query: { type: [A.enum.MEMBER_IMPORTED] }
|
|
243
|
-
});
|
|
244
|
-
break;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
return P(
|
|
248
|
-
() => a.currentRoute.value.name,
|
|
249
|
-
async (o) => {
|
|
250
|
-
d.value = s.find((r) => r.value === o) ?? s[0];
|
|
251
|
-
const l = a.currentRoute.value.params.id;
|
|
252
|
-
l && (y.value = await I.readById(l));
|
|
253
|
-
},
|
|
254
|
-
{ immediate: !0 }
|
|
255
|
-
), (o, l) => {
|
|
256
|
-
const r = m("FmPageHead"), e = m("FmTabs"), B = m("RouterView");
|
|
257
|
-
return x(), C(R, null, [
|
|
258
|
-
u(r, {
|
|
259
|
-
actions: n(p).actions,
|
|
260
|
-
title: n(p).title,
|
|
261
|
-
description: n(p).description,
|
|
262
|
-
"back-button": n(p).backButton,
|
|
263
|
-
"onClick:back": n(p).onBackButton,
|
|
264
|
-
"onClick:action": i
|
|
265
|
-
}, null, 8, ["actions", "title", "description", "back-button", "onClick:back"]),
|
|
266
|
-
b("div", ne, [
|
|
267
|
-
n(a).currentRoute.value.name != n(E)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (x(), D(e, {
|
|
268
|
-
key: 0,
|
|
269
|
-
"model-value": n(d).value,
|
|
270
|
-
items: s,
|
|
271
|
-
"onUpdate:modelValue": T
|
|
272
|
-
}, null, 8, ["model-value"])) : q("", !0),
|
|
273
|
-
u(B)
|
|
274
|
-
])
|
|
275
|
-
], 64);
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
|
-
export {
|
|
280
|
-
ke as default
|
|
281
|
-
};
|