@feedmepos/mf-connect 0.1.89-prod → 0.1.90-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 (99) hide show
  1. package/dist/{Analytic-Caz3AQQ2.js → Analytic-BMwxfYv_.js} +11 -11
  2. package/dist/{App-D_q4nHiY.js → App-D_SZawqp.js} +7 -7
  3. package/dist/{Bin-DURa0qe2.js → Bin-Dd1a25j_.js} +8 -8
  4. package/dist/{Broadcast-ByDjXqap.js → Broadcast-UAp6rjTh.js} +8 -8
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BD8mWUzO.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CFe8C9fR.js} +7 -7
  6. package/dist/{Card-BSSzVrbz.js → Card-CQuGfckK.js} +19 -19
  7. package/dist/{Collections-CTwUl8W3.js → Collections-oWvNX_oo.js} +8 -8
  8. package/dist/{Credit-TgZBmYsM.js → Credit-tGCTd7QC.js} +8 -8
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DZV3JtDl.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-C7h5K6lN.js} +33 -33
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BwOs5NHt.js → EffectSheet.vue_vue_type_style_index_0_lang-BvIk7GMj.js} +6 -6
  11. package/dist/{Experience-DUCO6do6.js → Experience-D6w2OyuS.js} +8 -8
  12. package/dist/{FileSaver.min-BaCfYtPG.js → FileSaver.min-9I0Uce_o.js} +1 -1
  13. package/dist/{Game-DcwQSCjZ.js → Game-Bj8mS5qz.js} +9 -9
  14. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BSMwEFqp.js → ImageInput.vue_vue_type_script_setup_true_lang-D3B7IMDV.js} +1 -1
  15. package/dist/{Index-Bp2CKHw3.js → Index-Dsexv-ef.js} +10 -10
  16. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-WWVHvcOU.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CmB12mvX.js} +1 -1
  17. package/dist/{MainLayout-Q_0POZ4I.js → MainLayout-o1wQv9lH.js} +1 -1
  18. package/dist/{Marketing-D52IYXPR.js → Marketing-Dz0sk_DR.js} +6 -6
  19. package/dist/{Member-sxjxhLwQ.js → Member-rFVgJTbb.js} +12 -12
  20. package/dist/{MemberList-vLNFHNRw.js → MemberList-BpnL4Fbw.js} +436 -441
  21. package/dist/{MemberTransactions-BeHeN0Rk.js → MemberTransactions-ouq288EU.js} +1 -1
  22. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-B6cF0EC3.js → MessageInput.vue_vue_type_script_setup_true_lang-wSeJMwF7.js} +9 -9
  23. package/dist/{Mission-CnJCjBhe.js → Mission-D1KR53bD.js} +9 -9
  24. package/dist/{Overview-B3jRs_Cg.js → Overview-B5bzlo0A.js} +19 -19
  25. package/dist/{Point-BldY5wb0.js → Point-DTifJVdo.js} +8 -8
  26. package/dist/{Promotion-CsGhqlY0.js → Promotion-DAtAw5kG.js} +9 -9
  27. package/dist/{Queue-CLa2pSXF.js → Queue-DBnvPuuW.js} +11 -11
  28. package/dist/{Record-JbbAM6lI.js → Record-DI-q_FuN.js} +9 -9
  29. package/dist/{Reward-wgiBCIV3.js → Reward-C9CxDqz_.js} +16 -16
  30. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DiNlpy7_.js → RewardGroup.vue_vue_type_script_setup_true_lang-BBE5Ymqj.js} +12 -12
  31. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-B3Ylb1vx.js → RuleGroup.vue_vue_type_script_setup_true_lang-DNM6f0iG.js} +15 -15
  32. package/dist/{Segment-BQiZ51Wi.js → Segment-B0Oy6ajr.js} +25 -25
  33. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DbXFTjAN.js → SelectItems.vue_vue_type_script_setup_true_lang-Be6Ykmkc.js} +2 -2
  34. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Be_kiAB6.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-MARrd7Nr.js} +13 -13
  35. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DS1MWUOc.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-w9sbHf1G.js} +4 -4
  36. package/dist/Setting-BUfHh3b6.js +2028 -0
  37. package/dist/{SettingAdvertisements-OdDM05s7.js → SettingAdvertisements-D2qWdId7.js} +12 -12
  38. package/dist/{Store-D1Q0wOXk.js → Store-mNM5AzFJ.js} +22 -22
  39. package/dist/{StoreRewards-2Gdv7uu4.js → StoreRewards-D4-c0EPM.js} +15 -15
  40. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-tk42owGe.js +1118 -0
  41. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BKzZIJkt.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C65gN2Gd.js} +5 -3
  42. package/dist/{Tier-DOnYGgah.js → Tier-swAmEa8-.js} +22 -22
  43. package/dist/{Title-F4XJw6oN.js → Title-BQQBoFOx.js} +21 -21
  44. package/dist/{Transaction-Ws7kBZUE.js → Transaction-BCjSkDrw.js} +2 -2
  45. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BZb0EXgi.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-IDqjTwZt.js} +6 -6
  46. package/dist/{Voucher-DX8MKz00.js → Voucher-BAGLTdGv.js} +12 -12
  47. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-tUNn1vRE.js → VoucherEditor.vue_vue_type_script_setup_true_lang-7CKmTEVm.js} +12 -12
  48. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BvgIZlIh.js → ZodTextField.vue_vue_type_script_setup_true_lang-B_0BhFd7.js} +2 -2
  49. package/dist/{app-C-nC9SMv.js → app-Dij-Gw3J.js} +49 -45
  50. package/dist/app.js +1 -1
  51. package/dist/{business-CrQ_qouH.js → business-BPttWtAG.js} +1 -1
  52. package/dist/{campaign-CBRSag11.js → campaign-DVQC46G6.js} +8 -8
  53. package/dist/{campaign-shm1Nb7g.js → campaign-PkE8sv2w.js} +1 -1
  54. package/dist/{campaign.enum-C-p5_XEd.js → campaign.enum-D6sGv-i6.js} +1 -1
  55. package/dist/{campaign.fn-BGzZfg1o.js → campaign.fn-CKpORxQM.js} +161 -161
  56. package/dist/{collectible.enum-DxOoBouZ.js → collectible.enum-MjUCS47s.js} +1 -1
  57. package/dist/{collection.fn-BKmv2KVW.js → collection.fn-BgLy48_a.js} +2 -2
  58. package/dist/{dto-BRQj35uX.js → dto-Cr1_4S0y.js} +4 -4
  59. package/dist/{effect-Bbc7QO26.js → effect-CZOUmaXH.js} +1 -1
  60. package/dist/{email-addresses-CdmKczY8.js → email-addresses-DgPF09-i.js} +2 -2
  61. package/dist/{export-xWupGZRl.js → export-BGwLWDbw.js} +3 -3
  62. package/dist/{helper-C_t7u0sc.js → helper-BpGjM57Y.js} +1 -1
  63. package/dist/{index-C6PeL89d.js → index-8Mt35h00.js} +3 -3
  64. package/dist/{index-DaCQrz9t.js → index-AGdd55s3.js} +3 -3
  65. package/dist/{index-DAhj82tf.js → index-BzNxgycz.js} +1 -1
  66. package/dist/{index-lZq2A3X2.js → index-C2b2PGqB.js} +3 -3
  67. package/dist/{index-BxosLsfW.js → index-CZbs1ScI.js} +1 -1
  68. package/dist/index-CsjJKy32.js +85 -0
  69. package/dist/{index-RsNRLaWL.js → index-D3jQoHcb.js} +23 -12
  70. package/dist/{index-ClEGMTrv.js → index-DG88MQyX.js} +1 -1
  71. package/dist/{index-DW7nPyed.js → index-DVtnOY4x.js} +6 -6
  72. package/dist/{index-BaGjDOR2.js → index-DjEcMAQl.js} +1 -1
  73. package/dist/{index-CLvFXL_E.js → index-Dx04wWQ2.js} +4 -4
  74. package/dist/{index-REoHVOcy.js → index-dSK3QWJX.js} +1 -1
  75. package/dist/{index-BHwWZLKa.js → index-qGQhKrNH.js} +5 -3
  76. package/dist/{index.esm2017-DIVK9KD2.js → index.esm2017-BnCWqavv.js} +1 -1
  77. package/dist/{loading-xptL2Ny2.js → loading-kCbpDTvS.js} +1 -1
  78. package/dist/{lodash-88xjswCi.js → lodash-C4AZ3S-J.js} +1 -1
  79. package/dist/{membership-eoLCZt_p.js → membership-D2-ldXWY.js} +3 -3
  80. package/dist/{money-DcsDa1nm.js → money-BueaFHxA.js} +1 -1
  81. package/dist/{number-BkGWCSrD.js → number-DQbzn_l_.js} +1 -1
  82. package/dist/{objectid-gUqB9tj7.js → objectid-B_jNHjAd.js} +5 -5
  83. package/dist/{plugins-DoTCd9nY.js → plugins-D5Na7PGX.js} +3 -3
  84. package/dist/{reward-Culc3-Rv.js → reward-DJqNxI9u.js} +1 -1
  85. package/dist/{rule-DUDjRs8M.js → rule-CHRKj3Qt.js} +3 -3
  86. package/dist/{rule-builder-CkZtoez-.js → rule-builder-CEZ2VxtL.js} +1 -1
  87. package/dist/{template-CxhdtuLf.js → template-BFhV6iql.js} +7 -7
  88. package/dist/{timezone-CdsdekR2.js → timezone-BQhT-oxQ.js} +5 -3
  89. package/dist/{trigger-CFXIiuLd.js → trigger-nhg31Cm2.js} +5 -5
  90. package/dist/usePagination-z6Io9pE3.js +220 -0
  91. package/dist/{user-C7hrMSvV.js → user-uP7Z7WUa.js} +1 -1
  92. package/dist/{vue-i18n-BdGyU2Nr.js → vue-i18n-DYzNH5z4.js} +158 -158
  93. package/dist/{xlsx-BN2KFkI2.js → xlsx-DTeYpknU.js} +1 -1
  94. package/dist/{zod-DvUTBth7.js → zod-YWGh4sc1.js} +1 -1
  95. package/package.json +1 -1
  96. package/dist/Setting-De1lCG6N.js +0 -1989
  97. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-NtxHf8HF.js +0 -1016
  98. package/dist/index-DDQaEXt7.js +0 -76
  99. package/dist/usePagination-BSeGmTq6.js +0 -177
@@ -1,76 +0,0 @@
1
- import { g as t, S as I, u as C, b as w } from "./index-BHwWZLKa.js";
2
- const a = () => {
3
- if (!I.getBusinessId()) throw new Error("Invalid business ID");
4
- return C("users");
5
- }, c = () => {
6
- const e = I.getBusinessId();
7
- if (!e) throw new Error("Invalid business ID");
8
- return w(`businesses/${e}/membership`, {
9
- noIdRequired: !0
10
- });
11
- }, y = {
12
- async read(e) {
13
- const s = t(
14
- await a().get("", { params: e })
15
- ), n = s.resources.map((r) => {
16
- var i, o, d, l, p, u, m, b;
17
- return {
18
- ...r,
19
- collection_TIER_0_balance: ((o = (i = r.collection.TIER) == null ? void 0 : i[0]) == null ? void 0 : o.balance) ?? 0,
20
- collection_CREDIT_0_balance: ((l = (d = r.collection.CREDIT) == null ? void 0 : d[0]) == null ? void 0 : l.balance) ?? 0,
21
- collection_COIN_0_balance: ((u = (p = r.collection.COIN) == null ? void 0 : p[0]) == null ? void 0 : u.balance) ?? 0,
22
- collection_TITLE_0_title: ((b = (m = r.collection.TITLE) == null ? void 0 : m[0]) == null ? void 0 : b.title) ?? ""
23
- };
24
- });
25
- return {
26
- meta: s.meta,
27
- resources: n
28
- };
29
- },
30
- async readById(e) {
31
- return t(await a().get(`${e}`));
32
- },
33
- async sendCredit(e, s) {
34
- return t(
35
- await c().post(
36
- `members/${e}/send-credit`,
37
- s
38
- )
39
- );
40
- },
41
- async deductCredit(e, s) {
42
- return t(
43
- await c().post(
44
- `members/${e}/deduct-credit`,
45
- s
46
- )
47
- );
48
- },
49
- async sendCoin(e, s) {
50
- return t(
51
- await c().post(
52
- `members/${e}/send-coin`,
53
- s
54
- )
55
- );
56
- },
57
- async deductCoin(e, s) {
58
- return t(
59
- await c().post(
60
- `members/${e}/deduct-coin`,
61
- s
62
- )
63
- );
64
- },
65
- async updateMember(e, s) {
66
- return t(
67
- await a().put(`${e}`, s)
68
- );
69
- },
70
- async import(e) {
71
- return await a().post("import", e);
72
- }
73
- };
74
- export {
75
- y as m
76
- };
@@ -1,177 +0,0 @@
1
- import { defineComponent as V, computed as f, ref as x, onMounted as P, watch as E, resolveComponent as I, openBlock as w, createElementBlock as k, createVNode as d, unref as r, createElementVNode as s, createCommentVNode as B, toDisplayString as b } from "vue";
2
- import { _ as D } from "./FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js";
3
- import { l as R } from "./lodash-88xjswCi.js";
4
- const $ = { class: "" }, A = {
5
- key: 0,
6
- class: "w-full flex flex-col gap-16 items-center py-16"
7
- }, L = {
8
- key: 1,
9
- class: "basis-72 bg-white flex items-center justify-between px-24 pt-6 border-t border-fm-color-border"
10
- }, M = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, T = { class: "flex gap-8 items-center" }, j = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, O = { class: "flex gap-8 items-center" }, U = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto" }, W = { class: "flex gap-8" }, J = /* @__PURE__ */ V({
11
- __name: "BaseTable",
12
- props: {
13
- rowData: {},
14
- columnDefs: {},
15
- loading: { type: Boolean, default: !1 },
16
- rowCount: { default: 0 },
17
- shrinkAt: { type: [Number, Boolean], default: !1 },
18
- pageCount: {},
19
- pageIndex: {},
20
- hideFooter: { type: Boolean, default: !1 },
21
- pageSize: {},
22
- pageSizeOptions: { default: () => [
23
- { label: "10", value: 10 },
24
- { label: "20", value: 20 },
25
- { label: "50", value: 50 }
26
- ] }
27
- },
28
- emits: ["sortChange", "rowClick", "pageChange"],
29
- setup(a, { emit: v }) {
30
- const e = a, t = v, g = f(() => e.pageIndex + 1), u = f(() => e.pageIndex * e.pageSize), p = f(
31
- () => Math.min(u.value + e.pageSize, e.rowCount || 0)
32
- ), h = f(() => e.pageIndex > 0), C = f(() => e.pageIndex < e.pageCount - 1), o = (i) => {
33
- t("sortChange", i);
34
- }, l = (i) => {
35
- t("rowClick", i);
36
- }, m = (i) => {
37
- t("pageChange", { pageIndex: i, pageSize: e.pageSize });
38
- }, F = (i) => {
39
- t("pageChange", { pageIndex: 0, pageSize: i });
40
- }, S = x(!1);
41
- return P(() => {
42
- E(
43
- () => e.loading,
44
- (i, n) => {
45
- n === !0 && i === !1 && (S.value = !0);
46
- }
47
- );
48
- }), (i, n) => {
49
- const N = I("FmTable"), y = I("FmButton");
50
- return w(), k("div", $, [
51
- d(N, {
52
- loading: a.loading,
53
- "row-data": a.rowData,
54
- "row-count": a.rowCount,
55
- "column-defs": a.columnDefs,
56
- "shrink-at": a.shrinkAt,
57
- "page-count": a.pageCount,
58
- "page-size": a.pageSize,
59
- "fetch-fn": void 0,
60
- "hide-footer": "",
61
- onSortChange: o,
62
- onRowClick: l
63
- }, null, 8, ["loading", "row-data", "row-count", "column-defs", "shrink-at", "page-count", "page-size"]),
64
- a.rowData.length == 0 && a.loading == !1 && r(S) ? (w(), k("div", A, [...n[5] || (n[5] = [
65
- s("div", { class: "fm-typo-en-body-lg-600" }, "No data found", -1),
66
- s("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " No data to show at the current moment. ", -1)
67
- ])])) : B("", !0),
68
- a.hideFooter ? B("", !0) : (w(), k("div", L, [
69
- s("div", M, [
70
- s("div", T, [
71
- n[6] || (n[6] = s("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1)),
72
- d(D, {
73
- items: a.pageSizeOptions,
74
- value: a.pageSize,
75
- "onUpdate:modelValue": F
76
- }, null, 8, ["items", "value"])
77
- ]),
78
- s("span", j, b(r(u) + 1) + " - " + b(r(p)) + " of " + b(a.rowCount) + " items ", 1)
79
- ]),
80
- s("div", O, [
81
- d(D, {
82
- items: Array.from(Array(a.pageCount), (c, z) => ({
83
- label: (z + 1).toString(),
84
- value: z + 1
85
- })),
86
- value: r(g),
87
- "onUpdate:modelValue": n[0] || (n[0] = (c) => m(c - 1))
88
- }, null, 8, ["items", "value"]),
89
- s("span", U, " of " + b(a.pageCount) + " pages ", 1),
90
- s("div", W, [
91
- d(y, {
92
- disabled: !r(h),
93
- icon: "first_page",
94
- "icon-color": "neutral-black",
95
- variant: "tertiary",
96
- onClick: n[1] || (n[1] = (c) => m(0))
97
- }, null, 8, ["disabled"]),
98
- d(y, {
99
- disabled: !r(h),
100
- icon: "chevron_left",
101
- "icon-color": "neutral-black",
102
- variant: "tertiary",
103
- onClick: n[2] || (n[2] = (c) => m(a.pageIndex - 1))
104
- }, null, 8, ["disabled"]),
105
- d(y, {
106
- disabled: !r(C),
107
- icon: "chevron_right",
108
- "icon-color": "neutral-black",
109
- variant: "tertiary",
110
- onClick: n[3] || (n[3] = (c) => m(a.pageIndex + 1))
111
- }, null, 8, ["disabled"]),
112
- d(y, {
113
- disabled: !r(C),
114
- icon: "last_page",
115
- "icon-color": "neutral-black",
116
- variant: "tertiary",
117
- onClick: n[4] || (n[4] = (c) => m(a.pageCount - 1))
118
- }, null, 8, ["disabled"])
119
- ])
120
- ])
121
- ]))
122
- ]);
123
- };
124
- }
125
- });
126
- function K(a, v = { key: "_id", descending: !0 }) {
127
- const e = x({
128
- pageCount: 0,
129
- searchValue: "",
130
- pageIndex: 0,
131
- totalRows: 0,
132
- isLoading: !1,
133
- pageSize: 10
134
- }), t = x(v), g = x([]), u = async (o) => {
135
- e.value.isLoading = !0, g.value = [];
136
- try {
137
- const l = await a({
138
- limit: o.pageSize || e.value.pageSize,
139
- skip: o.pageIndex ?? 0,
140
- sortBy: t.value.key,
141
- descending: t.value.descending,
142
- search: e.value.searchValue
143
- });
144
- g.value = l.resources, e.value.totalRows = l.meta.totalResources ?? 0, e.value.pageCount = l.meta.totalPages ?? 0, e.value.pageIndex = l.meta.skip ?? 0;
145
- } catch (l) {
146
- console.error("Error fetching data:", l);
147
- } finally {
148
- e.value.isLoading = !1;
149
- }
150
- }, p = R.debounce(async (o) => {
151
- e.value.pageSize = (o == null ? void 0 : o.pageSize) || e.value.pageSize, await u({
152
- pageSize: e.value.pageSize,
153
- pageIndex: (o == null ? void 0 : o.pageIndex) || 0
154
- });
155
- }, 200);
156
- return {
157
- tableMeta: e,
158
- rowData: g,
159
- sortBy: t,
160
- fetchData: u,
161
- debouncedFetchData: p,
162
- onSort: async (o) => {
163
- var l;
164
- console.log("sortState", (l = o[0]) == null ? void 0 : l.id), o.length ? (t.value = {
165
- key: o[0].id.startsWith("_") ? o[0].id : o[0].id.replace(new RegExp("_", "g"), "."),
166
- descending: o[0].desc
167
- }, console.log("sortBy", t.value)) : t.value = v, await p();
168
- },
169
- onSearch: () => {
170
- p({ pageIndex: 0, pageSize: e.value.pageSize });
171
- }
172
- };
173
- }
174
- export {
175
- J as _,
176
- K as u
177
- };