@feedmepos/mf-connect 0.1.47-prod → 0.1.49-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 (109) hide show
  1. package/dist/{Analytic-AnuRQDA4.js → Analytic-ibBD_21m.js} +113 -113
  2. package/dist/{App-DP_jCyej.js → App-CDjwWK8a.js} +632 -622
  3. package/dist/{Bin-tL4lF6PB.js → Bin-DCaG0YGW.js} +9 -9
  4. package/dist/Broadcast-CbF3d_N7.js +233 -0
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BgPJCH02.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BqYusgBO.js} +18 -18
  6. package/dist/{Card-Bi-ODgCc.js → Card-CDNE85po.js} +239 -239
  7. package/dist/{Collections-JHWotZ1I.js → Collections-DHn__E9U.js} +31 -31
  8. package/dist/Credit-DiTnwnFe.js +228 -0
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-hxuYl-OQ.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJEAsRON.js} +756 -753
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-ECkaQxuI.js → EffectSheet.vue_vue_type_style_index_0_lang-CU9XpMjd.js} +96 -96
  11. package/dist/Experience-CjMVeGsX.js +229 -0
  12. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
  13. package/dist/{Game-DUCx2Dl9.js → Game-D3gANFAo.js} +98 -92
  14. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js +144 -0
  15. package/dist/{Index-zynxjOOr.js → Index-DEF_a5Mu.js} +54 -54
  16. package/dist/{Marketing-BBHDVRkR.js → Marketing-BeED4Y7H.js} +24 -24
  17. package/dist/{Member-B09bj6C3.js → Member-CA4hnHJY.js} +63 -63
  18. package/dist/MemberList-CZtriA_Q.js +1606 -0
  19. package/dist/MemberOverview-wL_ailso.js +58 -0
  20. package/dist/{MemberTransactions-DERMSs7o.js → MemberTransactions-BVrvf4AM.js} +1 -1
  21. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CAADF6vv.js → MessageInput.vue_vue_type_script_setup_true_lang-BqTDGnOG.js} +2286 -2220
  22. package/dist/{Mission-DAv0e_ZH.js → Mission-CDSMpqnG.js} +113 -107
  23. package/dist/{Overview-D0rBTEtP.js → Overview-ArineqY4.js} +337 -337
  24. package/dist/Point-51MD49EM.js +232 -0
  25. package/dist/{Promotion-BSPU5hP9.js → Promotion-BVrofYd6.js} +43 -43
  26. package/dist/{Queue-C5IFJ3iE.js → Queue-Q-aEeZ8w.js} +13 -13
  27. package/dist/{Record-CoFSrv7j.js → Record-DaVcschI.js} +10 -10
  28. package/dist/{Reward-COIOBOl-.js → Reward-DTtFuqOZ.js} +173 -173
  29. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B9Tl7hqv.js → RewardGroup.vue_vue_type_script_setup_true_lang-P_gNd6ZP.js} +11 -11
  30. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BzsYC3k2.js → RuleGroup.vue_vue_type_script_setup_true_lang-CVy_kDmy.js} +381 -381
  31. package/dist/{Segment-DF5SrucQ.js → Segment-DIy4RERw.js} +327 -327
  32. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BSSfQu3F.js → SelectItems.vue_vue_type_script_setup_true_lang-D3KIZJLo.js} +14 -14
  33. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DoL_gTKy.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-bSi6_uqi.js} +11 -11
  34. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cijyol1Q.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BsNLkA2v.js} +3 -3
  35. package/dist/Setting-DGDgmP84.js +1936 -0
  36. package/dist/{Store-E2_0EIy8.js → Store-Dh2uVHGY.js} +238 -238
  37. package/dist/StoreRewards-DFF_0g59.js +423 -0
  38. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DuatzcJ8.js → StoreTransactions.vue_vue_type_script_setup_true_lang-PrFhYJXc.js} +186 -186
  39. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D_r8I0h7.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-VcU2Asjy.js} +1 -1
  40. package/dist/{Tier-CEEHsXkC.js → Tier-yKvE4mRW.js} +106 -106
  41. package/dist/{Title-BMAWlGeW.js → Title-DWWSC02W.js} +95 -95
  42. package/dist/{Transaction-CLsceq-O.js → Transaction-ru7M0PKE.js} +2 -2
  43. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CFLekn9O.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BSkv6hMH.js} +6 -6
  44. package/dist/{Voucher-Cd293WYY.js → Voucher-DmuaThKv.js} +37 -37
  45. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Db_aeyc1.js +419 -0
  46. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B8HHh8HU.js → ZodTextField.vue_vue_type_script_setup_true_lang-B5co0F__.js} +1 -1
  47. package/dist/app-DaFoFS2V.js +57962 -0
  48. package/dist/{app-aVXsWATU.js → app-ja_XST5q.js} +31 -31
  49. package/dist/app.js +1 -1
  50. package/dist/{business-DVlHPzaL.js → business-BSP_3iNl.js} +11 -8
  51. package/dist/{campaign-D9KeUWA7.js → campaign-C1hWNRWr.js} +2 -2
  52. package/dist/{campaign-l-u9A514.js → campaign-DMZnXtyb.js} +10 -10
  53. package/dist/{campaign.enum-Cud82tES.js → campaign.enum-Bfsz7Aon.js} +1 -1
  54. package/dist/campaign.fn-B-xvcbEb.js +758 -0
  55. package/dist/{collectible.enum-PrlUDScv.js → collectible.enum-BRkrN4Bi.js} +1 -1
  56. package/dist/{collection.fn-yR-xnV4g.js → collection.fn-D03AXdUn.js} +2 -2
  57. package/dist/{dto-Cua1OHMY.js → dto-DpRkSGg6.js} +4 -4
  58. package/dist/{effect-B5-eXNEr.js → effect-BW1-I1J4.js} +1 -1
  59. package/dist/{email-addresses-BeYh5fr5.js → email-addresses-BLVkwSkP.js} +1 -1
  60. package/dist/{export-BUF4_DUz.js → export-DOfDownW.js} +4 -4
  61. package/dist/{helper-CGwOThAl.js → helper-BzfjLXgi.js} +1 -1
  62. package/dist/{index-DlFVLRKG.js → index-BBi9jDD1.js} +3 -3
  63. package/dist/{index-Cx8-ipee.js → index-BJl_HxaB.js} +6 -6
  64. package/dist/{index-1BGPM6Uy.js → index-Ba5-z1MU.js} +1 -1
  65. package/dist/{index-BmL_b0IR.js → index-Bp8F6U9V.js} +1 -1
  66. package/dist/{index-C-d_4n-1.js → index-C6fpU8-G.js} +1 -1
  67. package/dist/{index-knuJv0ti.js → index-COoQSeE7.js} +4 -4
  68. package/dist/{index-aMDi62-C.js → index-DTnzjEWu.js} +1 -1
  69. package/dist/{index-BLdVWQId.js → index-DWBeauin.js} +3 -3
  70. package/dist/{index-Cl2iYM2F.js → index-Da1qz9oA.js} +1 -1
  71. package/dist/{index-CB8iWT_p.js → index-Dve1-uYX.js} +1 -1
  72. package/dist/{index-ng2IXlL1.js → index-P6ISAxfQ.js} +1 -1
  73. package/dist/{index-hX2mE0gQ.js → index-cpWgtd-c.js} +1 -1
  74. package/dist/{index-D5KIp8ZB.js → index-sFyvCun2.js} +1023 -1023
  75. package/dist/{index-DNTd-FNx.js → index-zyVYgteg.js} +2 -2
  76. package/dist/{index.esm2017-D8stWFci.js → index.esm2017-DT0awUwa.js} +40 -40
  77. package/dist/{loading-c4b7n9Xp.js → loading-CZH88Duq.js} +1 -1
  78. package/dist/{membership-oBIs4sbL.js → membership-GNRX1fEK.js} +3 -3
  79. package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
  80. package/dist/{money-AP24H0gk.js → money-Xe5mDYRC.js} +1 -1
  81. package/dist/{number-CwsAYC_2.js → number-CAjqc2Pu.js} +1 -1
  82. package/dist/objectid-BQJRv_jX.js +145 -0
  83. package/dist/{plugins-Dn7JDHi7.js → plugins-Z2YcDTj8.js} +2 -2
  84. package/dist/{reward-4wdoZeXw.js → reward-G656rbLJ.js} +1 -1
  85. package/dist/{rule-_OJza6tn.js → rule-BJ5blBZp.js} +4 -4
  86. package/dist/{rule-builder-DmlhHAED.js → rule-builder-CursBigG.js} +1 -1
  87. package/dist/{template-BSQLFHf4.js → template-BnyUm8is.js} +63 -63
  88. package/dist/timezone-B64-HrWi.js +1150 -0
  89. package/dist/{trigger-DC9tDnI2.js → trigger-C_ih51ky.js} +4 -4
  90. package/dist/usePagination-Ds-cuHop.js +223 -0
  91. package/dist/{user-CCVOptFD.js → user-BZc_OAUj.js} +1 -1
  92. package/dist/{vue-i18n--_Wu1nMj.js → vue-i18n-2D47GxQX.js} +401 -401
  93. package/dist/{xlsx-BVMaOi8M.js → xlsx-BEk5qawh.js} +226 -226
  94. package/package.json +5 -4
  95. package/dist/Broadcast-T2a5tN8R.js +0 -227
  96. package/dist/Credit-DQQCXqS0.js +0 -222
  97. package/dist/Experience-DzTV21vX.js +0 -223
  98. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
  99. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
  100. package/dist/MemberList-DLSLGQ02.js +0 -1606
  101. package/dist/MemberOverview-C2n9oJZh.js +0 -58
  102. package/dist/Point-BeBYi1BT.js +0 -226
  103. package/dist/Setting-Dt0sG_hk.js +0 -1936
  104. package/dist/StoreRewards-DuSsWnTE.js +0 -423
  105. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Qc5cCqh5.js +0 -419
  106. package/dist/app-jRT7vsk_.js +0 -33357
  107. package/dist/campaign.fn-C-UojhHv.js +0 -758
  108. package/dist/objectid-CVDLTdni.js +0 -145
  109. package/dist/usePagination-JoYaROkV.js +0 -223
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as i, openBlock as m, createBlock as s, unref as n } from "vue";
2
- import "./index-DNTd-FNx.js";
3
- import { R as l } from "./rule-builder-DmlhHAED.js";
4
- import { _ as p } from "./RuleGroup.vue_vue_type_script_setup_true_lang-BzsYC3k2.js";
5
- import { l as e, C as E } from "./index-knuJv0ti.js";
2
+ import "./index-zyVYgteg.js";
3
+ import { R as l } from "./rule-builder-CursBigG.js";
4
+ import { _ as p } from "./RuleGroup.vue_vue_type_script_setup_true_lang-CVy_kDmy.js";
5
+ import { l as e, C as E } from "./index-COoQSeE7.js";
6
6
  const O = /* @__PURE__ */ i({
7
7
  __name: "BillRuleGroup",
8
8
  props: {
@@ -0,0 +1,223 @@
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,5 +1,5 @@
1
1
  import { components as p } from "@feedmepos/ui-library";
2
- import { a as f } from "./plugins-Dn7JDHi7.js";
2
+ import { a as f } from "./plugins-Z2YcDTj8.js";
3
3
  import { h as c } from "vue";
4
4
  function g(o, n = !1) {
5
5
  return c(