@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.
Files changed (130) hide show
  1. package/package.json +2 -2
  2. package/dist/Analytic-BU1mOMoX.js +0 -760
  3. package/dist/App-fw6iFNxW.js +0 -4638
  4. package/dist/AuditLogs-CliU8167.js +0 -1887
  5. package/dist/Bin-C49tzfas.js +0 -166
  6. package/dist/Broadcast-YZVnZTCD.js +0 -232
  7. package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DEwsZags.js +0 -122
  8. package/dist/Card-DcQQyJl9.js +0 -911
  9. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +0 -97
  10. package/dist/Collections--8lmoXWR.js +0 -540
  11. package/dist/Credit-CfkLFMei.js +0 -227
  12. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +0 -128
  13. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
  14. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-t6eac8yR.js +0 -3151
  15. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CXVOuiLI.js +0 -347
  16. package/dist/Experience-BnVVC2-L.js +0 -228
  17. package/dist/FileSaver.min-NlMItPOc.js +0 -74
  18. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  19. package/dist/Game-Dbz4DzY_.js +0 -297
  20. package/dist/Grab-CCqScmpp.js +0 -300
  21. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-C5irH9v6.js +0 -145
  22. package/dist/Index-DPsM9D4W.js +0 -259
  23. package/dist/JsonViewer-v8_C7l5N.js +0 -87
  24. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js +0 -18737
  25. package/dist/MainLayout-B1aJoR95.js +0 -41
  26. package/dist/Marketing-CFwxWdJq.js +0 -21761
  27. package/dist/Member-ZPKbf5Bk.js +0 -281
  28. package/dist/MemberList-BDs-70nG.js +0 -1607
  29. package/dist/MemberOverview-wL_ailso.js +0 -58
  30. package/dist/MemberTransactions-C-zHpuZF.js +0 -45
  31. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-B2TKmOOK.js +0 -60616
  32. package/dist/Mission-BHkb1E9m.js +0 -301
  33. package/dist/Overview-DYlcqNCX.js +0 -1079
  34. package/dist/Point-BEhNBY2_.js +0 -231
  35. package/dist/Promotion-DOXRIej4.js +0 -363
  36. package/dist/Queue-Bwa0LWhf.js +0 -260
  37. package/dist/Record-BoI8l1Qq.js +0 -341
  38. package/dist/Reward-BVQaqAYM.js +0 -442
  39. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-BC3dEiWi.js +0 -150
  40. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-HpleMvjm.js +0 -1767
  41. package/dist/Segment-Cmy7nu27.js +0 -882
  42. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-pab6X2DC.js +0 -181
  43. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-BqIh8D8O.js +0 -189
  44. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-CESoNd87.js +0 -147
  45. package/dist/Setting-DN8j_6Xv.js +0 -1993
  46. package/dist/SettingAdvertisements-qHdiaa6m.js +0 -264
  47. package/dist/Store-DfhVYCgX.js +0 -1936
  48. package/dist/StoreRewards-NYucFLJU.js +0 -535
  49. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BGOcOAXR.js +0 -1036
  50. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DRin8Jzw.js +0 -8093
  51. package/dist/Tier-Dl0aBuJz.js +0 -970
  52. package/dist/Title-DvO6Mira.js +0 -568
  53. package/dist/Transaction-ONVl4UZZ.js +0 -39
  54. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-FyE25D8o.js +0 -130
  55. package/dist/Voucher-BZ1feYh1.js +0 -399
  56. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Lilql8J4.js +0 -421
  57. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-C_ZdCOPI.js +0 -56
  58. package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
  59. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  60. package/dist/app-B_RRkjaD.js +0 -42566
  61. package/dist/app-wDQR6dpb.js +0 -39
  62. package/dist/app.js +0 -7
  63. package/dist/business-y5qSMcd-.js +0 -82
  64. package/dist/campaign-CpzFl8Vr.js +0 -4
  65. package/dist/campaign-DHgol2Lt.js +0 -219
  66. package/dist/campaign-Drxe0zPX.js +0 -253
  67. package/dist/campaign.enum-CwAPVgPe.js +0 -21
  68. package/dist/campaign.fn-DMx5xsiK.js +0 -776
  69. package/dist/collectible.enum-Bh4jnUgP.js +0 -19
  70. package/dist/collection.fn-BpC_YBwG.js +0 -26
  71. package/dist/dto-DWkf9QOb.js +0 -222
  72. package/dist/effect-D5ZWGpNS.js +0 -78
  73. package/dist/email-addresses-DFtVESS8.js +0 -705
  74. package/dist/export-BtUy3sWU.js +0 -97
  75. package/dist/feedme.ico +0 -0
  76. package/dist/helper-DtWMZoWX.js +0 -86
  77. package/dist/index-7HXC3sH0.js +0 -56
  78. package/dist/index-BQlhmw75.js +0 -3
  79. package/dist/index-BdX7CxUg.js +0 -30076
  80. package/dist/index-BerRe0M3.js +0 -76
  81. package/dist/index-BrZ3xZzk.js +0 -146
  82. package/dist/index-CJzBpsBP.js +0 -3412
  83. package/dist/index-CQiABpeB.js +0 -32456
  84. package/dist/index-CqIWlGW3.js +0 -38
  85. package/dist/index-CsaQJMAR.js +0 -66
  86. package/dist/index-DPCDboPA.js +0 -32
  87. package/dist/index-DPaH8jaV.js +0 -8884
  88. package/dist/index-Dkce3JZ_.js +0 -54
  89. package/dist/index-DrYv_gG4.js +0 -31
  90. package/dist/index-SfJbKfWl.js +0 -2407
  91. package/dist/index-vh86FiIQ.js +0 -10
  92. package/dist/index.esm2017-CbvE5vCC.js +0 -3069
  93. package/dist/loading-BWGIK17X.js +0 -71
  94. package/dist/lodash-B5I3zXaY.js +0 -3678
  95. package/dist/membership-Zy2P6O6X.js +0 -235
  96. package/dist/moment-D7p2TMB-.js +0 -2583
  97. package/dist/money-D_fZmBbi.js +0 -15
  98. package/dist/number-C4DhXkCm.js +0 -12
  99. package/dist/object-qECH92oz.js +0 -26
  100. package/dist/objectId-dwaoBfJX.js +0 -7
  101. package/dist/objectid-C6eRcDzI.js +0 -145
  102. package/dist/plugins-DDAJav2s.js +0 -1817
  103. package/dist/reward-Dxjvmy7-.js +0 -36
  104. package/dist/rule-builder-ZkPWAiTl.js +0 -102
  105. package/dist/rule-sclqeiyk.js +0 -1951
  106. package/dist/style.css +0 -4
  107. package/dist/template-CAs0lkTY.js +0 -188
  108. package/dist/tier-BJDhpH6X.js +0 -4
  109. package/dist/tiers/tier=1.png +0 -0
  110. package/dist/tiers/tier=2.png +0 -0
  111. package/dist/tiers/tier=3.png +0 -0
  112. package/dist/tiers/tier=4.png +0 -0
  113. package/dist/timezone-5t8ki0gE.js +0 -1151
  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-B2fpKTfg.js +0 -213
  124. package/dist/tslib.es6-BCqqvLQ_.js +0 -44
  125. package/dist/type_drinks-D6jnpvwV.js +0 -4
  126. package/dist/usePagination-Ds-cuHop.js +0 -223
  127. package/dist/user-ORhbAsqi.js +0 -55
  128. package/dist/vue-i18n-cyOhW8mW.js +0 -2365
  129. package/dist/xlsx-4klfjFae.js +0 -15491
  130. package/dist/zod-BsHmzMQd.js +0 -91
@@ -1,223 +0,0 @@
1
- import { defineComponent as $, ref as h, resolveComponent as w, openBlock as f, createBlock as B, withCtx as V, createVNode as g, createElementVNode as d, normalizeStyle as P, createElementBlock as S, Fragment as E, renderList as L, computed as b, onMounted as R, watch as A, unref as c, createCommentVNode as D, toDisplayString as k } from "vue";
2
- import { l as T } from "./lodash-B5I3zXaY.js";
3
- const U = ["id"], M = /* @__PURE__ */ $({
4
- __name: "FmTableSelection",
5
- props: {
6
- value: {},
7
- items: {}
8
- },
9
- emits: ["update:modelValue"],
10
- setup(e, { emit: m }) {
11
- const a = m, l = e, r = h(!1);
12
- return (p, u) => {
13
- const y = w("FmButton"), x = w("FmMenuItem"), n = w("FmMenu");
14
- return f(), B(n, {
15
- "max-height": 264,
16
- shift: "",
17
- onMenuChanged: u[0] || (u[0] = (o) => r.value = o)
18
- }, {
19
- "menu-button": V(() => {
20
- var o;
21
- return [
22
- g(y, {
23
- icon: r.value ? "expand_less" : "expand_more",
24
- label: (o = e.items.find((i) => i.value === l.value)) == null ? void 0 : o.label,
25
- "icon-position": "append",
26
- size: "md",
27
- variant: "tertiary"
28
- }, null, 8, ["icon", "label"])
29
- ];
30
- }),
31
- "menu-wrapper": V(({ maxHeight: o }) => [
32
- d("div", {
33
- id: `menu-wrapper-${o}`,
34
- style: P({ maxHeight: `${o}px` }),
35
- class: "bg-fm-color-neutral-white flex flex-col overflow-y-auto px-4 py-12 rounded-md shadow-light-300 w-[75px]"
36
- }, [
37
- (f(!0), S(E, null, L(e.items, (i) => (f(), B(x, {
38
- key: i.value,
39
- label: i.label,
40
- value: i.value,
41
- "model-value": i.value === l.value,
42
- "onUpdate:modelValue": (z) => a("update:modelValue", i.value)
43
- }, null, 8, ["label", "value", "model-value", "onUpdate:modelValue"]))), 128))
44
- ], 12, U)
45
- ]),
46
- _: 1
47
- });
48
- };
49
- }
50
- }), O = { class: "" }, j = {
51
- key: 0,
52
- class: "w-full flex flex-col gap-16 items-center py-16"
53
- }, W = {
54
- key: 1,
55
- class: "basis-72 bg-white flex items-center justify-between px-24 pt-6 border-t border-fm-color-border"
56
- }, q = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, G = { class: "flex gap-8 items-center" }, H = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, J = { class: "flex gap-8 items-center" }, K = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto" }, Q = { class: "flex gap-8" }, Z = /* @__PURE__ */ $({
57
- __name: "BaseTable",
58
- props: {
59
- rowData: {},
60
- columnDefs: {},
61
- loading: { type: Boolean, default: !1 },
62
- rowCount: { default: 0 },
63
- shrinkAt: { type: [Number, Boolean], default: !1 },
64
- pageCount: {},
65
- pageIndex: {},
66
- hideFooter: { type: Boolean, default: !1 },
67
- pageSize: {},
68
- pageSizeOptions: { default: () => [
69
- { label: "10", value: 10 },
70
- { label: "20", value: 20 },
71
- { label: "50", value: 50 }
72
- ] }
73
- },
74
- emits: ["sortChange", "rowClick", "pageChange"],
75
- setup(e, { emit: m }) {
76
- const a = e, l = m, r = b(() => a.pageIndex + 1), p = b(() => a.pageIndex * a.pageSize), u = b(
77
- () => Math.min(p.value + a.pageSize, a.rowCount || 0)
78
- ), y = b(() => a.pageIndex > 0), x = b(() => a.pageIndex < a.pageCount - 1), n = (s) => {
79
- l("sortChange", s);
80
- }, o = (s) => {
81
- l("rowClick", s);
82
- }, i = (s) => {
83
- l("pageChange", { pageIndex: s, pageSize: a.pageSize });
84
- }, z = (s) => {
85
- l("pageChange", { pageIndex: 0, pageSize: s });
86
- }, I = h(!1);
87
- return R(() => {
88
- A(
89
- () => a.loading,
90
- (s, t) => {
91
- t === !0 && s === !1 && (I.value = !0);
92
- }
93
- );
94
- }), (s, t) => {
95
- const N = w("FmTable"), C = w("FmButton");
96
- return f(), S("div", O, [
97
- g(N, {
98
- loading: e.loading,
99
- "row-data": e.rowData,
100
- "row-count": e.rowCount,
101
- "column-defs": e.columnDefs,
102
- "shrink-at": e.shrinkAt,
103
- "page-count": e.pageCount,
104
- "page-size": e.pageSize,
105
- "fetch-fn": void 0,
106
- "hide-footer": "",
107
- onSortChange: n,
108
- onRowClick: o
109
- }, null, 8, ["loading", "row-data", "row-count", "column-defs", "shrink-at", "page-count", "page-size"]),
110
- e.rowData.length == 0 && e.loading == !1 && c(I) ? (f(), S("div", j, [...t[5] || (t[5] = [
111
- d("div", { class: "fm-typo-en-body-lg-600" }, "No data found", -1),
112
- d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " No data to show at the current moment. ", -1)
113
- ])])) : D("", !0),
114
- e.hideFooter ? D("", !0) : (f(), S("div", W, [
115
- d("div", q, [
116
- d("div", G, [
117
- t[6] || (t[6] = d("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1)),
118
- g(M, {
119
- items: e.pageSizeOptions,
120
- value: e.pageSize,
121
- "onUpdate:modelValue": z
122
- }, null, 8, ["items", "value"])
123
- ]),
124
- d("span", H, k(c(p) + 1) + " - " + k(c(u)) + " of " + k(e.rowCount) + " items ", 1)
125
- ]),
126
- d("div", J, [
127
- g(M, {
128
- items: Array.from(Array(e.pageCount), (v, F) => ({
129
- label: (F + 1).toString(),
130
- value: F + 1
131
- })),
132
- value: c(r),
133
- "onUpdate:modelValue": t[0] || (t[0] = (v) => i(v - 1))
134
- }, null, 8, ["items", "value"]),
135
- d("span", K, " of " + k(e.pageCount) + " pages ", 1),
136
- d("div", Q, [
137
- g(C, {
138
- disabled: !c(y),
139
- icon: "first_page",
140
- "icon-color": "neutral-black",
141
- variant: "tertiary",
142
- onClick: t[1] || (t[1] = (v) => i(0))
143
- }, null, 8, ["disabled"]),
144
- g(C, {
145
- disabled: !c(y),
146
- icon: "chevron_left",
147
- "icon-color": "neutral-black",
148
- variant: "tertiary",
149
- onClick: t[2] || (t[2] = (v) => i(e.pageIndex - 1))
150
- }, null, 8, ["disabled"]),
151
- g(C, {
152
- disabled: !c(x),
153
- icon: "chevron_right",
154
- "icon-color": "neutral-black",
155
- variant: "tertiary",
156
- onClick: t[3] || (t[3] = (v) => i(e.pageIndex + 1))
157
- }, null, 8, ["disabled"]),
158
- g(C, {
159
- disabled: !c(x),
160
- icon: "last_page",
161
- "icon-color": "neutral-black",
162
- variant: "tertiary",
163
- onClick: t[4] || (t[4] = (v) => i(e.pageCount - 1))
164
- }, null, 8, ["disabled"])
165
- ])
166
- ])
167
- ]))
168
- ]);
169
- };
170
- }
171
- });
172
- function _(e, m = { key: "_id", descending: !0 }) {
173
- const a = h({
174
- pageCount: 0,
175
- searchValue: "",
176
- pageIndex: 0,
177
- totalRows: 0,
178
- isLoading: !1,
179
- pageSize: 10
180
- }), l = h(m), r = h([]), p = async (n) => {
181
- a.value.isLoading = !0, r.value = [];
182
- try {
183
- const o = await e({
184
- limit: n.pageSize || a.value.pageSize,
185
- skip: n.pageIndex ?? 0,
186
- sortBy: l.value.key,
187
- descending: l.value.descending,
188
- search: a.value.searchValue
189
- });
190
- r.value = o.resources, a.value.totalRows = o.meta.totalResources ?? 0, a.value.pageCount = o.meta.totalPages ?? 0, a.value.pageIndex = o.meta.skip ?? 0;
191
- } catch (o) {
192
- console.error("Error fetching data:", o);
193
- } finally {
194
- a.value.isLoading = !1;
195
- }
196
- }, u = T.debounce(async (n) => {
197
- a.value.pageSize = (n == null ? void 0 : n.pageSize) || a.value.pageSize, await p({
198
- pageSize: a.value.pageSize,
199
- pageIndex: (n == null ? void 0 : n.pageIndex) || 0
200
- });
201
- }, 200);
202
- return {
203
- tableMeta: a,
204
- rowData: r,
205
- sortBy: l,
206
- fetchData: p,
207
- debouncedFetchData: u,
208
- onSort: async (n) => {
209
- var o;
210
- console.log("sortState", (o = n[0]) == null ? void 0 : o.id), n.length ? (l.value = {
211
- key: n[0].id.startsWith("_") ? n[0].id : n[0].id.replace(new RegExp("_", "g"), "."),
212
- descending: n[0].desc
213
- }, console.log("sortBy", l.value)) : l.value = m, await u();
214
- },
215
- onSearch: () => {
216
- u({ pageIndex: 0, pageSize: a.value.pageSize });
217
- }
218
- };
219
- }
220
- export {
221
- Z as _,
222
- _ as u
223
- };
@@ -1,55 +0,0 @@
1
- import { components as p } from "@feedmepos/ui-library";
2
- import { a as f } from "./plugins-DDAJav2s.js";
3
- import { h as i } from "vue";
4
- function g(o, a = !1) {
5
- var t;
6
- return i(
7
- "div",
8
- {
9
- class: "flex items-center gap-x-8"
10
- },
11
- [
12
- i(p.FmAvatar, {
13
- name: o != null && o.photoUrl ? "-" : (t = o == null ? void 0 : o.name) == null ? void 0 : t.trim(),
14
- src: (o == null ? void 0 : o.photoUrl) ?? void 0,
15
- size: "sm"
16
- }),
17
- i(
18
- "div",
19
- {
20
- class: "flex flex-col",
21
- onClick: (n) => {
22
- n.preventDefault(), n.stopPropagation(), f(o._id.toString());
23
- }
24
- },
25
- [
26
- i("span", o == null ? void 0 : o.name),
27
- a && i(
28
- "span",
29
- { class: "text-xs text-fm-color-typo-secondary" },
30
- (o == null ? void 0 : o.phoneNumber) || "-"
31
- )
32
- ].filter(Boolean)
33
- )
34
- ]
35
- );
36
- }
37
- function b(o, a) {
38
- var t, n;
39
- return ((n = (t = o.collection) == null ? void 0 : t.TITLE) == null ? void 0 : n.map(
40
- (c) => {
41
- var l;
42
- return (l = a == null ? void 0 : a.find((m) => m._id === c.collectible)) == null ? void 0 : l.name;
43
- }
44
- ).join(", ")) || "-";
45
- }
46
- function v(o, a) {
47
- var n, c, l, m;
48
- const t = (((l = (c = (n = o.collection) == null ? void 0 : n.TIER) == null ? void 0 : c[0]) == null ? void 0 : l.balance) || 0) - 1;
49
- return ((m = a[t]) == null ? void 0 : m.name) || "-";
50
- }
51
- export {
52
- v as a,
53
- b,
54
- g
55
- };