@feedmepos/mf-connect 0.1.38-prod → 0.1.39-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.
Files changed (89) hide show
  1. package/dist/{Analytic-Dc1l0CZK.js → Analytic-D8WCDkga.js} +11 -11
  2. package/dist/{App-BLg0CWv-.js → App-CTnXtg1W.js} +6 -6
  3. package/dist/{Bin-DDbKIePj.js → Bin-BY6-bvFj.js} +8 -8
  4. package/dist/{Broadcast-CihKie6G.js → Broadcast-5VTEIQAr.js} +9 -9
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DbdBGvgR.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BuAQxEM4.js} +6 -6
  6. package/dist/{Card-h1dYFE_s.js → Card-8ivdV-Qz.js} +16 -16
  7. package/dist/{Collections-DUXdnJqQ.js → Collections-CFszRHmE.js} +7 -7
  8. package/dist/{Credit-CsGEuX9p.js → Credit-DFslY__4.js} +9 -9
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-0gMUNtdO.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BvCLYtJ3.js} +29 -29
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CQDnl97F.js → EffectSheet.vue_vue_type_style_index_0_lang-Ci_bp7GH.js} +6 -6
  11. package/dist/{Experience-CBbqYrql.js → Experience-BxfiZNlY.js} +9 -9
  12. package/dist/{Game-CicPpdT5.js → Game-0FZJcLmj.js} +10 -10
  13. package/dist/{Index-Xgvlt4vk.js → Index-ByeKKbuM.js} +10 -10
  14. package/dist/{Marketing-CqOAQgg4.js → Marketing-C7F4abzg.js} +6 -6
  15. package/dist/Member-DP0fLSIV.js +279 -0
  16. package/dist/{MemberList-BdV9sxO_.js → MemberList-DFW2bMbr.js} +25 -25
  17. package/dist/{MemberTransactions-Q0_4nT4e.js → MemberTransactions-CW62fvgx.js} +1 -1
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-COGCJGRc.js → MessageInput.vue_vue_type_script_setup_true_lang-iJXNbgsB.js} +4 -4
  19. package/dist/{Mission-D-TW52zn.js → Mission-DEgQHJw6.js} +10 -10
  20. package/dist/{Overview-BleJmxHa.js → Overview-5jDtZKi8.js} +18 -18
  21. package/dist/{Point-B7BYX9us.js → Point-D2lB1-xB.js} +9 -9
  22. package/dist/{Promotion-BphlQC55.js → Promotion-Diz1gIa0.js} +10 -10
  23. package/dist/{Queue-DJfZqO1f.js → Queue-DIAuq7HG.js} +10 -10
  24. package/dist/{Record-Bv1P0s2g.js → Record-T608yda1.js} +8 -8
  25. package/dist/{Reward-CRyEjr47.js → Reward-fZzHrHCW.js} +15 -15
  26. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Ckqox5Ut.js → RewardGroup.vue_vue_type_script_setup_true_lang-YOKVfimM.js} +11 -11
  27. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Dp4ku9ep.js → RuleGroup.vue_vue_type_script_setup_true_lang-C3_lmBe5.js} +13 -13
  28. package/dist/{Segment-Br0Y5hzV.js → Segment-DDQIzsrk.js} +22 -22
  29. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BuB-qwcM.js → SelectItems.vue_vue_type_script_setup_true_lang-B5oUf91Q.js} +2 -2
  30. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DanHGQXC.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-C2U6Kzvx.js} +11 -11
  31. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCKUXnGl.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BRmqgxES.js} +3 -3
  32. package/dist/{Setting-BPFArJMv.js → Setting-CQNyXmp4.js} +11 -11
  33. package/dist/{Store-e_odFoS5.js → Store-CIA1Rtsg.js} +19 -19
  34. package/dist/{StoreRewards-wXhyzIFI.js → StoreRewards-D5zlE6cE.js} +13 -13
  35. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CVPQt-bn.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BkTYngJ_.js} +19 -19
  36. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CWJmeeo-.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-D8l3fQyz.js} +1 -1
  37. package/dist/{Tier-GfdGRbTX.js → Tier-jFXVOje_.js} +20 -20
  38. package/dist/{Title-C2ZyFxNf.js → Title-DVpZ1YMK.js} +19 -19
  39. package/dist/{Transaction-Dv8yYXJS.js → Transaction-BF_wmok6.js} +2 -2
  40. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CK_4iMCA.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cex1Z43W.js} +6 -6
  41. package/dist/{Voucher-CBujqgnF.js → Voucher-CaBMU5w0.js} +13 -13
  42. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CgooH4yn.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BXt2fLOD.js} +10 -10
  43. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B8pgaARn.js → ZodTextField.vue_vue_type_script_setup_true_lang-CtHjWpUe.js} +1 -1
  44. package/dist/{app-B8E3wp8L.js → app-CPhyKlyf.js} +1 -1
  45. package/dist/{app-B2Cgyy70.js → app-DuIzRGvb.js} +30 -30
  46. package/dist/app.js +1 -1
  47. package/dist/{business-BRidHvRK.js → business-TTvv3aTz.js} +1 -1
  48. package/dist/{campaign-B0vnIan2.js → campaign-BiMCoAzx.js} +2 -2
  49. package/dist/{campaign-B7v0a8YV.js → campaign-CjEVStN1.js} +9 -9
  50. package/dist/{campaign.enum-NH5faqyS.js → campaign.enum-DpYmj9jp.js} +1 -1
  51. package/dist/{campaign.fn-BPHARk3Y.js → campaign.fn-DJ6J98jS.js} +34 -34
  52. package/dist/{collectible.enum-Cun9w38h.js → collectible.enum-Cgmm_s-C.js} +1 -1
  53. package/dist/{collection.fn-RR5q6jqi.js → collection.fn-BsYCNgfJ.js} +2 -2
  54. package/dist/{dto-DK1VnGlq.js → dto-DgmHIlZ2.js} +4 -4
  55. package/dist/{effect-CI4ZR8HW.js → effect-DnAVIDFy.js} +1 -1
  56. package/dist/{email-addresses-bguwgnrW.js → email-addresses-CMRgb6Uv.js} +1 -1
  57. package/dist/{export-CcepocZB.js → export-DtarK6IJ.js} +3 -3
  58. package/dist/{helper-BM1JTEFS.js → helper-BKZghMbF.js} +1 -1
  59. package/dist/{index-BS3AjuVw.js → index-2OAcPmuQ.js} +1 -1
  60. package/dist/{index-Di6bqaLm.js → index-B0YZKHyu.js} +3 -3
  61. package/dist/{index-B0Slqiqo.js → index-B5oXFFlO.js} +1 -1
  62. package/dist/{index-Cm_6xScD.js → index-BQ3KHJXX.js} +1 -1
  63. package/dist/{index-CBuCx_0r.js → index-B_893fH7.js} +6 -6
  64. package/dist/{index-De1JnaPh.js → index-BoR-BOFw.js} +1 -1
  65. package/dist/{index-DjycZwfg.js → index-C7rl1eHp.js} +4 -4
  66. package/dist/{index-BfGdztHf.js → index-CBcbwf0k.js} +1 -1
  67. package/dist/{index-D_gLVFsk.js → index-CIztuDE4.js} +1023 -1023
  68. package/dist/{index-DbjZHuoG.js → index-CK67enPK.js} +1 -1
  69. package/dist/{index-DHEJX75j.js → index-D2uZzjpn.js} +1 -1
  70. package/dist/{index-B6_uPXyL.js → index-DWdAUovq.js} +2 -2
  71. package/dist/{index-vs1HgFHz.js → index-DkWcEDHA.js} +1 -1
  72. package/dist/{index-CLkqja9X.js → index-VHu8hYtE.js} +3 -3
  73. package/dist/{index.esm2017-DANlqJ4g.js → index.esm2017-DkwLmmR_.js} +1 -1
  74. package/dist/{loading-BXu9ofEu.js → loading-BFkEqWR6.js} +1 -1
  75. package/dist/{membership-BBb7gdZg.js → membership-D0eN3i_T.js} +3 -3
  76. package/dist/{money-C02BW-pt.js → money-DS9ZQwSP.js} +1 -1
  77. package/dist/{number-D7tIDv2q.js → number-C8Gt93v9.js} +1 -1
  78. package/dist/{objectid-oVX5A5oa.js → objectid-Cr99eTPd.js} +5 -5
  79. package/dist/{plugins-B5tuGbFw.js → plugins-DK_ue6Xa.js} +2 -2
  80. package/dist/{reward-CE-bnnnQ.js → reward-CW2dSLDW.js} +1 -1
  81. package/dist/{rule-BN5R8pYj.js → rule-CebKyXSm.js} +3 -3
  82. package/dist/{rule-builder-16JDtaoI.js → rule-builder-kQq14RfN.js} +1 -1
  83. package/dist/{template-C-zyZgxl.js → template-CxUxlb6-.js} +4 -4
  84. package/dist/{trigger-DCLjl3mM.js → trigger-RqJo06KA.js} +4 -4
  85. package/dist/{user-C7bmFOaT.js → user-DhV5Iy52.js} +1 -1
  86. package/dist/{vue-i18n-Cts9OsqE.js → vue-i18n-BtvUK9hI.js} +112 -112
  87. package/dist/{xlsx-CJ5ufXk3.js → xlsx-WnLDq4qn.js} +166 -166
  88. package/package.json +1 -1
  89. package/dist/Member-D1k4ZQ95.js +0 -287
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-connect",
3
- "version": "0.1.38-prod",
3
+ "version": "0.1.39-prod",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,287 +0,0 @@
1
- import { defineComponent as P, ref as w, watch as D, resolveComponent as m, openBlock as x, createElementBlock as g, Fragment as M, createElementVNode as f, createVNode as u, unref as t, withCtx as S, renderList as U, createBlock as N, toDisplayString as Y, normalizeClass as q, computed as H, createCommentVNode as J } from "vue";
2
- import "./index-De1JnaPh.js";
3
- import { useDialogChild as Q, FmButtonVariant as A, useDialog as j, useSnackbar as z } from "@feedmepos/ui-library";
4
- import { u as V } from "./vue-i18n-Cts9OsqE.js";
5
- import { c as I } from "./index-DjycZwfg.js";
6
- import "./index-B6_uPXyL.js";
7
- import "./index-CBuCx_0r.js";
8
- import "./index-vs1HgFHz.js";
9
- import "./index-Di6bqaLm.js";
10
- import { u as B, w as G } from "./xlsx-CJ5ufXk3.js";
11
- import { F as W } from "./FileSaver.min-NlMItPOc.js";
12
- import { useCoreStore as K } from "@feedmepos/mf-common";
13
- import { useRouter as X } from "vue-router";
14
- import { m as L } from "./index-Cm_6xScD.js";
15
- import { R as E } from "./app-B2Cgyy70.js";
16
- const Z = { class: "space-y-8 mb-10" }, ee = /* @__PURE__ */ f("div", { class: "fm-typo-en-body-lg-600" }, "Advanced Setting", -1), te = { class: "flex justify-end" }, ne = {
17
- key: 1,
18
- class: /* @__PURE__ */ q([
19
- "flex items-center",
20
- "border border-fm-color-neutral-gray-300",
21
- "p-16 space-x-16 rounded-md"
22
- ])
23
- }, oe = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, ae = /* @__PURE__ */ P({
24
- __name: "ImportMemberDialog",
25
- setup($) {
26
- const { t: a } = V(), { emitData: b } = Q(), i = w(null), _ = w(null), h = w({
27
- resetCollectionExpiryBalance: !0
28
- }), F = [
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
- ], R = [
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 r(l) {
67
- var o, y;
68
- i.value = ((y = (o = l.target) == null ? void 0 : o.files) == null ? void 0 : y[0]) ?? null;
69
- }
70
- async function p(l) {
71
- switch (l) {
72
- case "csv":
73
- d();
74
- break;
75
- case "xlsx":
76
- v();
77
- break;
78
- }
79
- }
80
- function d() {
81
- const l = new Blob([F.join(",")], {
82
- type: "text/csv;charset=utf-8;"
83
- });
84
- W.saveAs(l, "ImportMemberTemplate.csv");
85
- }
86
- function v() {
87
- const l = B.aoa_to_sheet([F]), o = B.book_new();
88
- B.book_append_sheet(o, l, "Sheet1"), G(o, "ImportMemberTemplate.xlsx");
89
- }
90
- return D(i, () => {
91
- b({ file: i.value, config: h.value });
92
- }), (l, o) => {
93
- const y = m("FmSwitch"), k = m("FmButton"), C = m("FmMenuItem"), T = m("FmMenu"), n = m("FmDropField");
94
- return x(), g(M, null, [
95
- f("div", Z, [
96
- ee,
97
- u(y, {
98
- "model-value": t(h).resetCollectionExpiryBalance ?? !0,
99
- "onUpdate:modelValue": o[0] || (o[0] = (e) => t(h).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
- f("div", te, [
106
- u(T, null, {
107
- "menu-button": S(() => [
108
- u(k, {
109
- variant: "tertiary",
110
- icon: "download",
111
- label: "Download Template"
112
- })
113
- ]),
114
- default: S(() => [
115
- (x(), g(M, null, U(R, (e) => u(C, {
116
- key: e.value,
117
- icon: e.icon,
118
- label: e.label,
119
- onClick: (c) => p(e.value),
120
- selectable: ""
121
- }, null, 8, ["icon", "label", "onClick"])), 64))
122
- ]),
123
- _: 1
124
- })
125
- ]),
126
- t(i) ? (x(), g("div", ne, [
127
- u(k, {
128
- variant: t(A).Tertiary,
129
- "prepend-icon": "attach_file"
130
- }, null, 8, ["variant"]),
131
- f("p", oe, Y(t(i).name), 1),
132
- f("label", {
133
- ref_key: "fileLabelRef",
134
- ref: _,
135
- htmlFor: "file"
136
- }, [
137
- u(k, {
138
- variant: t(A).Plain,
139
- label: t(a)("Replace File"),
140
- onClick: o[2] || (o[2] = () => {
141
- var e;
142
- return (e = t(_)) == null ? void 0 : e.click();
143
- })
144
- }, null, 8, ["variant", "label"]),
145
- f("input", {
146
- id: "file",
147
- accept: ".csv, .xlsx",
148
- class: "hidden",
149
- type: "file",
150
- multiple: "",
151
- onChange: r
152
- }, null, 32)
153
- ], 512)
154
- ])) : (x(), N(n, {
155
- key: 0,
156
- onFileUpload: o[1] || (o[1] = (e) => i.value = e),
157
- accept: ".csv, .xlsx",
158
- "max-file-size": 5e6
159
- }))
160
- ], 64);
161
- };
162
- }
163
- }), le = { class: "px-24 flex flex-col gap-y-16 pb-24" }, xe = /* @__PURE__ */ P({
164
- __name: "Member",
165
- setup($) {
166
- var k, C, T;
167
- const a = X(), { t: b } = V(), i = j(), _ = z(), h = K(), F = {
168
- label: b("connect.loyalty.member.import"),
169
- value: "import",
170
- isPrimary: !0,
171
- prependIcon: "download"
172
- }, R = {
173
- label: b("connect.navigation.queue"),
174
- value: "queue",
175
- isPrimary: !1,
176
- prependIcon: "work_history"
177
- }, r = [
178
- {
179
- label: b("connect.loyalty.member.tabs.member_list"),
180
- value: E["$connect-LOYALTY_MEMBER_LIST"],
181
- actions: (T = (C = (k = h.sessionUser) == null ? void 0 : k.value) == null ? void 0 : C.role) != null && T.isAdmin ? [R, F] : []
182
- }
183
- ], p = H(() => {
184
- var e, c, s;
185
- return a.currentRoute.value.name != E["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
186
- title: d.value.label,
187
- actions: d.value.actions,
188
- description: void 0
189
- } : (d.value = r[1], {
190
- backButton: !0,
191
- title: b("connect.loyalty.member.title"),
192
- actions: [],
193
- description: `${(e = v.value) == null ? void 0 : e.name} (${(c = v.value) == null ? void 0 : c._id}) (${(s = v.value) == null ? void 0 : s.phoneNumber})`,
194
- onBackButton: async () => {
195
- await a.push({ name: E["$connect-LOYALTY_MEMBER_LIST"] });
196
- }
197
- });
198
- }), d = w(
199
- r.find((n) => n.value === a.currentRoute.value.name) ?? r[0]
200
- ), v = w();
201
- async function l(n) {
202
- await a.push({ name: n });
203
- }
204
- async function o() {
205
- i.open({
206
- title: "Upload File",
207
- closeButton: !0,
208
- dismissAway: !1,
209
- contentComponent: ae,
210
- primaryActions: { text: "Import", close: !1 }
211
- }).onPrimary(async (n) => {
212
- if (!n) {
213
- _.open({
214
- type: "error",
215
- title: "Please upload a file"
216
- });
217
- return;
218
- }
219
- const { file: e, config: c } = n;
220
- if (!e)
221
- _.open({
222
- type: "error",
223
- title: "Please upload a file"
224
- });
225
- else {
226
- const s = new FormData();
227
- s.append("file", e), s.append("config", JSON.stringify(c)), await L.import(s), _.open({
228
- type: "info",
229
- title: "Import begins soon. Check Queue for updates.",
230
- action: "View",
231
- onAction: async () => {
232
- await a.push({
233
- name: E["$connect-QUEUE"],
234
- query: { type: [I.enum.MEMBER_IMPORTED] }
235
- });
236
- }
237
- }), i.close();
238
- }
239
- });
240
- }
241
- function y(n) {
242
- switch (n) {
243
- case "import":
244
- o();
245
- break;
246
- case "queue":
247
- a.push({
248
- name: E["$connect-QUEUE"],
249
- query: { type: [I.enum.MEMBER_IMPORTED] }
250
- });
251
- break;
252
- }
253
- }
254
- return D(
255
- () => a.currentRoute.value.name,
256
- async (n) => {
257
- d.value = r.find((c) => c.value === n) ?? r[0];
258
- const e = a.currentRoute.value.params.id;
259
- e && (v.value = await L.readById(e)), await a.push({ name: n });
260
- }
261
- ), (n, e) => {
262
- const c = m("FmPageHead"), s = m("FmTabs"), O = m("RouterView");
263
- return x(), g(M, null, [
264
- u(c, {
265
- actions: t(p).actions,
266
- title: t(p).title,
267
- description: t(p).description,
268
- "back-button": t(p).backButton,
269
- "onClick:back": t(p).onBackButton,
270
- "onClick:action": y
271
- }, null, 8, ["actions", "title", "description", "back-button", "onClick:back"]),
272
- f("div", le, [
273
- t(a).currentRoute.value.name != t(E)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (x(), N(s, {
274
- key: 0,
275
- "model-value": t(d).value,
276
- items: r,
277
- "onUpdate:modelValue": l
278
- }, null, 8, ["model-value"])) : J("", !0),
279
- u(O)
280
- ])
281
- ], 64);
282
- };
283
- }
284
- });
285
- export {
286
- xe as default
287
- };