@feedmepos/mf-connect 0.1.38-beta.6 → 0.1.38-beta.60

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.
Files changed (130) hide show
  1. package/package.json +13 -5
  2. package/dist/Analytic-NBx32reB.js +0 -761
  3. package/dist/App-CaK9PvMd.js +0 -4632
  4. package/dist/AuditLogs-C-gCCPvF.js +0 -1887
  5. package/dist/Bin-CL6o1JSs.js +0 -166
  6. package/dist/Broadcast-B2-itjvZ.js +0 -227
  7. package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BIySMYGP.js +0 -121
  8. package/dist/Card-DNdEjt6s.js +0 -905
  9. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +0 -97
  10. package/dist/Collections-DepGq6WJ.js +0 -465
  11. package/dist/Credit-D7K0gFwc.js +0 -222
  12. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +0 -108
  13. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +0 -58
  14. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-HMjbuy2C.js +0 -2185
  15. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-DrbMJlm5.js +0 -347
  16. package/dist/Experience-FlBX3eyN.js +0 -223
  17. package/dist/FileSaver.min-NlMItPOc.js +0 -74
  18. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
  19. package/dist/Game-Cc3D7lKV.js +0 -278
  20. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +0 -144
  21. package/dist/Index-2wokhhFB.js +0 -259
  22. package/dist/JsonViewer-v8_C7l5N.js +0 -87
  23. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js +0 -18737
  24. package/dist/MainLayout-B1aJoR95.js +0 -41
  25. package/dist/Marketing-D7PXYloN.js +0 -20073
  26. package/dist/Member-2xV4Izwa.js +0 -279
  27. package/dist/MemberList-CYgBdyJt.js +0 -1606
  28. package/dist/MemberOverview-wL_ailso.js +0 -58
  29. package/dist/MemberTransactions-DWDV01N4.js +0 -45
  30. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Becsw31k.js +0 -60343
  31. package/dist/Mission-BSGc9822.js +0 -296
  32. package/dist/Overview-BZjto86d.js +0 -1079
  33. package/dist/Point-0U4TTdPW.js +0 -226
  34. package/dist/Promotion-DiUa0GcV.js +0 -289
  35. package/dist/Queue-D62r2qjy.js +0 -260
  36. package/dist/Record-0iF3dG7y.js +0 -341
  37. package/dist/Reward-C5IEJYu6.js +0 -442
  38. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-S2Fd0qO8.js +0 -150
  39. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CxlamGFP.js +0 -1751
  40. package/dist/Segment-BknjBrUP.js +0 -882
  41. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BLQlkp-j.js +0 -181
  42. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-CaPi4hYB.js +0 -188
  43. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-BoZ0ZpNZ.js +0 -147
  44. package/dist/Setting-RLI7RgmN.js +0 -1936
  45. package/dist/Store-gxmv8hWJ.js +0 -1842
  46. package/dist/StoreRewards-C_6gY_Nk.js +0 -423
  47. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B5uzSYM4.js +0 -1029
  48. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-yjI96ZL0.js +0 -139
  49. package/dist/Tier-B168DtFj.js +0 -888
  50. package/dist/Title-uH0RI1N3.js +0 -565
  51. package/dist/Transaction-Bx-pmLrJ.js +0 -39
  52. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Ce_55V7l.js +0 -130
  53. package/dist/Voucher-Dzpz2AEB.js +0 -384
  54. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-dbA6_6b9.js +0 -419
  55. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-CfLiUj9f.js +0 -56
  56. package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
  57. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  58. package/dist/app-B90wINOO.js +0 -33357
  59. package/dist/app-DuUxQ1ZP.js +0 -7086
  60. package/dist/app-wDQR6dpb.js +0 -39
  61. package/dist/app.js +0 -7
  62. package/dist/business-B65OtB5B.js +0 -79
  63. package/dist/campaign-CpzFl8Vr.js +0 -4
  64. package/dist/campaign-iKI-L84v.js +0 -1810
  65. package/dist/campaign-qGy6uzrC.js +0 -96
  66. package/dist/campaign.enum-CZp2DmXI.js +0 -20
  67. package/dist/campaign.fn-DKScnmjX.js +0 -758
  68. package/dist/collectible.enum-CN-lnG1m.js +0 -19
  69. package/dist/collection.fn-mMwGQWce.js +0 -26
  70. package/dist/dto-C5ri8Nws.js +0 -214
  71. package/dist/effect-Bg3yb9T6.js +0 -78
  72. package/dist/email-addresses-CQsN724N.js +0 -705
  73. package/dist/export-BLf2dhFd.js +0 -97
  74. package/dist/feedme.ico +0 -0
  75. package/dist/helper-CFaph16Q.js +0 -71
  76. package/dist/index-BBPIZjw6.js +0 -31
  77. package/dist/index-BCGDOgxb.js +0 -38
  78. package/dist/index-BCPBmANe.js +0 -3120
  79. package/dist/index-BKOgzVx6.js +0 -32
  80. package/dist/index-BN2Uyvj4.js +0 -30038
  81. package/dist/index-BPZtjcTm.js +0 -76
  82. package/dist/index-BPyac0fq.js +0 -56
  83. package/dist/index-BkySejFg.js +0 -54
  84. package/dist/index-CH2d_B8c.js +0 -121
  85. package/dist/index-CrbnfAk8.js +0 -8861
  86. package/dist/index-CsaQJMAR.js +0 -66
  87. package/dist/index-DJwQICyC.js +0 -146
  88. package/dist/index-DaEQgaiW.js +0 -2213
  89. package/dist/index-Dkmn0jmX.js +0 -32260
  90. package/dist/index-Dy5p_b1S.js +0 -3
  91. package/dist/index-vh86FiIQ.js +0 -10
  92. package/dist/index.esm2017-B9vJTKYg.js +0 -3069
  93. package/dist/loading-MEQuW9Xa.js +0 -71
  94. package/dist/lodash-B5I3zXaY.js +0 -3678
  95. package/dist/membership-Du79A0Pl.js +0 -235
  96. package/dist/moment-BWErdI6_.js +0 -2578
  97. package/dist/money-DXgYs2-R.js +0 -15
  98. package/dist/number-CBMkNZvH.js +0 -12
  99. package/dist/object-qECH92oz.js +0 -26
  100. package/dist/objectId-dwaoBfJX.js +0 -7
  101. package/dist/objectid-BeZTZYqi.js +0 -145
  102. package/dist/plugins-KiMuDTPp.js +0 -208
  103. package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
  104. package/dist/reward-ClX_lWcQ.js +0 -36
  105. package/dist/rule-BfidJ75Y.js +0 -1951
  106. package/dist/rule-builder-BTcZx77a.js +0 -89
  107. package/dist/style.css +0 -4
  108. package/dist/template-DPpMK30W.js +0 -190
  109. package/dist/tier-BJDhpH6X.js +0 -4
  110. package/dist/tiers/tier=1.png +0 -0
  111. package/dist/tiers/tier=2.png +0 -0
  112. package/dist/tiers/tier=3.png +0 -0
  113. package/dist/tiers/tier=4.png +0 -0
  114. package/dist/titles/type=diamond.png +0 -0
  115. package/dist/titles/type=drinks.png +0 -0
  116. package/dist/titles/type=food.png +0 -0
  117. package/dist/titles/type=heart.png +0 -0
  118. package/dist/titles/type=medal.png +0 -0
  119. package/dist/titles/type=spend.png +0 -0
  120. package/dist/titles/type=thank-you.png +0 -0
  121. package/dist/titles/type=thumbs-up.png +0 -0
  122. package/dist/titles/type=years.png +0 -0
  123. package/dist/trigger-DLp1bkZP.js +0 -144
  124. package/dist/tslib.es6-BCqqvLQ_.js +0 -44
  125. package/dist/type_drinks-D6jnpvwV.js +0 -4
  126. package/dist/usePagination-BeF5K3M7.js +0 -223
  127. package/dist/user-Cq9CGBHZ.js +0 -54
  128. package/dist/vue-i18n-COzqUgQy.js +0 -2365
  129. package/dist/xlsx-Be4bARvl.js +0 -15491
  130. package/dist/zod-Bg2FbC-D.js +0 -90
@@ -1,279 +0,0 @@
1
- import { defineComponent as L, ref as F, watch as P, resolveComponent as m, openBlock as x, createElementBlock as h, 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-Dy5p_b1S.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-COzqUgQy.js";
5
- import "./index-DaEQgaiW.js";
6
- import { c as A } from "./index-BCPBmANe.js";
7
- import "./index-CrbnfAk8.js";
8
- import "./index-BCGDOgxb.js";
9
- import "./index-BkySejFg.js";
10
- import { u as g, w as j } from "./xlsx-Be4bARvl.js";
11
- import { F as z } from "./FileSaver.min-NlMItPOc.js";
12
- import { useCoreStore as G } from "@feedmepos/mf-common";
13
- import { useRouter as W } from "vue-router";
14
- import { m as I } from "./index-BPZtjcTm.js";
15
- import { R as E } from "./app-DuUxQ1ZP.js";
16
- const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
17
- key: 1,
18
- class: /* @__PURE__ */ U([
19
- "flex items-center",
20
- "border border-fm-color-neutral-gray-300",
21
- "p-16 space-x-16 rounded-md"
22
- ])
23
- }, ee = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, te = /* @__PURE__ */ L({
24
- __name: "ImportMemberDialog",
25
- setup(V) {
26
- const { t: a } = N(), { emitData: _ } = H(), c = F(null), v = F(null), w = F({
27
- resetCollectionExpiryBalance: !0
28
- }), s = [
29
- "Id",
30
- "Name",
31
- "Phone",
32
- "Email",
33
- "Gender",
34
- "CardNo",
35
- "Birthday",
36
- "Credit",
37
- "CreditExpiryDate",
38
- "Exp",
39
- "Point",
40
- "Tier",
41
- "Titles",
42
- "TotalTransaction",
43
- "AvgSpent",
44
- "TotalSpent",
45
- "LastVisit",
46
- "Feedback",
47
- "LastSeasonTierEarned",
48
- "LastSeasonPointEarned",
49
- "JoinedAt",
50
- "JoinedAtLocation",
51
- "VisitFrequency"
52
- ], p = [
53
- {
54
- label: "CSV",
55
- icon: "csv",
56
- value: "csv"
57
- /* csv */
58
- },
59
- {
60
- label: "Excel",
61
- icon: "description",
62
- value: "xlsx"
63
- /* xlsx */
64
- }
65
- ];
66
- async function d(i) {
67
- var t, f;
68
- c.value = ((f = (t = i.target) == null ? void 0 : t.files) == null ? void 0 : f[0]) ?? null;
69
- }
70
- async function y(i) {
71
- switch (i) {
72
- case "csv":
73
- C();
74
- break;
75
- case "xlsx":
76
- T();
77
- break;
78
- }
79
- }
80
- function C() {
81
- const i = new Blob([s.join(",")], {
82
- type: "text/csv;charset=utf-8;"
83
- });
84
- z.saveAs(i, "ImportMemberTemplate.csv");
85
- }
86
- function T() {
87
- const i = g.aoa_to_sheet([s]), t = g.book_new();
88
- g.book_append_sheet(t, i, "Sheet1"), j(t, "ImportMemberTemplate.xlsx");
89
- }
90
- return P(c, () => {
91
- _({ file: c.value, config: w.value });
92
- }), (i, t) => {
93
- const f = m("FmSwitch"), k = m("FmButton"), o = m("FmMenuItem"), l = m("FmMenu"), r = m("FmDropField");
94
- return x(), h(R, null, [
95
- b("div", K, [
96
- t[3] || (t[3] = b("div", { class: "fm-typo-en-body-lg-600" }, "Advanced Setting", -1)),
97
- u(f, {
98
- "model-value": n(w).resetCollectionExpiryBalance ?? !0,
99
- "onUpdate:modelValue": t[0] || (t[0] = (e) => n(w).resetCollectionExpiryBalance = e),
100
- label: "Replace Existing Free Credit",
101
- sublabel: "When enabled, this will clear existing free credit and replace with new values from the import.",
102
- "label-placement": "right"
103
- }, null, 8, ["model-value"])
104
- ]),
105
- b("div", X, [
106
- u(l, null, {
107
- "menu-button": M(() => [
108
- u(k, {
109
- variant: "tertiary",
110
- icon: "download",
111
- label: "Download Template"
112
- })
113
- ]),
114
- default: M(() => [
115
- (x(), h(R, null, $(p, (e) => u(o, {
116
- key: e.value,
117
- icon: e.icon,
118
- label: e.label,
119
- onClick: (B) => y(e.value),
120
- selectable: ""
121
- }, null, 8, ["icon", "label", "onClick"])), 64))
122
- ]),
123
- _: 1
124
- })
125
- ]),
126
- n(c) ? (x(), h("div", Z, [
127
- u(k, {
128
- variant: n(S).Tertiary,
129
- "prepend-icon": "attach_file"
130
- }, null, 8, ["variant"]),
131
- b("p", ee, O(n(c).name), 1),
132
- b("label", {
133
- ref_key: "fileLabelRef",
134
- ref: v,
135
- htmlFor: "file"
136
- }, [
137
- u(k, {
138
- variant: n(S).Plain,
139
- label: n(a)("Replace File"),
140
- onClick: t[2] || (t[2] = () => {
141
- var e;
142
- return (e = n(v)) == null ? void 0 : e.click();
143
- })
144
- }, null, 8, ["variant", "label"]),
145
- b("input", {
146
- id: "file",
147
- accept: ".csv, .xlsx",
148
- class: "hidden",
149
- type: "file",
150
- multiple: "",
151
- onChange: d
152
- }, null, 32)
153
- ], 512)
154
- ])) : (x(), D(r, {
155
- key: 0,
156
- onFileUpload: t[1] || (t[1] = (e) => c.value = e),
157
- accept: ".csv, .xlsx",
158
- "max-file-size": 5e6
159
- }))
160
- ], 64);
161
- };
162
- }
163
- }), ne = { class: "px-24 flex flex-col gap-y-16 pb-24" }, ye = /* @__PURE__ */ L({
164
- __name: "Member",
165
- setup(V) {
166
- var t, f, k;
167
- const a = W(), { t: _ } = N(), c = J(), v = Q(), w = G();
168
- _("connect.loyalty.member.import"), _("connect.navigation.queue");
169
- const s = [
170
- {
171
- label: _("connect.loyalty.member.tabs.member_list"),
172
- value: E["$connect-LOYALTY_MEMBER_LIST"],
173
- actions: (k = (f = (t = w.sessionUser) == null ? void 0 : t.value) == null ? void 0 : f.role) != null && k.isAdmin ? [] : []
174
- }
175
- ], p = Y(() => {
176
- var l, r, e;
177
- return a.currentRoute.value.name != E["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
178
- title: d.value.label,
179
- actions: d.value.actions,
180
- description: void 0
181
- } : (d.value = s[1], {
182
- backButton: !0,
183
- title: _("connect.loyalty.member.title"),
184
- actions: [],
185
- 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})`,
186
- onBackButton: async () => {
187
- await a.push({ name: E["$connect-LOYALTY_MEMBER_LIST"] });
188
- }
189
- });
190
- }), d = F(
191
- s.find((o) => o.value === a.currentRoute.value.name) ?? s[0]
192
- ), y = F();
193
- async function C(o) {
194
- await a.push({ name: o });
195
- }
196
- async function T() {
197
- c.open({
198
- title: "Upload File",
199
- closeButton: !0,
200
- dismissAway: !1,
201
- contentComponent: te,
202
- primaryActions: { text: "Import", close: !1 }
203
- }).onPrimary(async (o) => {
204
- if (!o) {
205
- v.open({
206
- type: "error",
207
- title: "Please upload a file"
208
- });
209
- return;
210
- }
211
- const { file: l, config: r } = o;
212
- if (!l)
213
- v.open({
214
- type: "error",
215
- title: "Please upload a file"
216
- });
217
- else {
218
- const e = new FormData();
219
- e.append("file", l), e.append("config", JSON.stringify(r)), await I.import(e), v.open({
220
- type: "info",
221
- title: "Import begins soon. Check Queue for updates.",
222
- action: "View",
223
- onAction: async () => {
224
- await a.push({
225
- name: E["$connect-QUEUE"],
226
- query: { type: [A.enum.MEMBER_IMPORTED] }
227
- });
228
- }
229
- }), c.close();
230
- }
231
- });
232
- }
233
- function i(o) {
234
- switch (o) {
235
- case "import":
236
- T();
237
- break;
238
- case "queue":
239
- a.push({
240
- name: E["$connect-QUEUE"],
241
- query: { type: [A.enum.MEMBER_IMPORTED] }
242
- });
243
- break;
244
- }
245
- }
246
- return P(
247
- () => a.currentRoute.value.name,
248
- async (o) => {
249
- d.value = s.find((r) => r.value === o) ?? s[0];
250
- const l = a.currentRoute.value.params.id;
251
- l && (y.value = await I.readById(l)), await a.push({ name: o });
252
- }
253
- ), (o, l) => {
254
- const r = m("FmPageHead"), e = m("FmTabs"), B = m("RouterView");
255
- return x(), h(R, null, [
256
- u(r, {
257
- actions: n(p).actions,
258
- title: n(p).title,
259
- description: n(p).description,
260
- "back-button": n(p).backButton,
261
- "onClick:back": n(p).onBackButton,
262
- "onClick:action": i
263
- }, null, 8, ["actions", "title", "description", "back-button", "onClick:back"]),
264
- b("div", ne, [
265
- n(a).currentRoute.value.name != n(E)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (x(), D(e, {
266
- key: 0,
267
- "model-value": n(d).value,
268
- items: s,
269
- "onUpdate:modelValue": C
270
- }, null, 8, ["model-value"])) : q("", !0),
271
- u(B)
272
- ])
273
- ], 64);
274
- };
275
- }
276
- });
277
- export {
278
- ye as default
279
- };