@feedmepos/mf-connect 0.1.98-beta.39 → 0.1.98-beta.40

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 (151) hide show
  1. package/package.json +1 -1
  2. package/dist/App-DwjQisFZ.js +0 -4785
  3. package/dist/AuditLogs-DMGqmriL.js +0 -2014
  4. package/dist/Bin-4wvIqogM.js +0 -166
  5. package/dist/Broadcast-DPpuSZ8_.js +0 -269
  6. package/dist/CampaignAnalytic-CXFDo2X_.js +0 -1826
  7. package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-SLoy1-Kd.js +0 -122
  8. package/dist/Card-C8SA6un0.js +0 -911
  9. package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +0 -97
  10. package/dist/Collections-BCpSiM_4.js +0 -541
  11. package/dist/Credit-C8RTBpP7.js +0 -286
  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-0OI5QzpR.js +0 -3382
  15. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CJTduNh3.js +0 -351
  16. package/dist/Experience-Bg3kFQQE.js +0 -285
  17. package/dist/FileSaver.min-DMUuMi9w.js +0 -74
  18. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
  19. package/dist/FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js +0 -52
  20. package/dist/Game-D3DbkRUj.js +0 -356
  21. package/dist/GiftCardSetup-CxlMM4up.js +0 -542
  22. package/dist/Grab-DvEK8ixP.js +0 -301
  23. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-BBK-UrEe.js +0 -145
  24. package/dist/Index-Do_9DXuY.js +0 -259
  25. package/dist/JsonViewer-v8_C7l5N.js +0 -87
  26. package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-BKPGBYiU.js +0 -48
  27. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-D6wJN9Gj.js +0 -18737
  28. package/dist/LoyaltyDashboard-B4WqycGN.js +0 -1345
  29. package/dist/MainLayout-DdxLaufS.js +0 -143
  30. package/dist/Marketing-CcFEMwKB.js +0 -236
  31. package/dist/MarketingMaterialEdit-DoYFaMf7.js +0 -1036
  32. package/dist/Member-BussgBln.js +0 -281
  33. package/dist/MemberList-BXJxSsjo.js +0 -1603
  34. package/dist/MemberOverview-wL_ailso.js +0 -58
  35. package/dist/MemberTransactions-O-XY5nz3.js +0 -45
  36. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-DsxrIO0r.js +0 -60957
  37. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Bg_0YlwG.js +0 -38
  38. package/dist/Mission-CPkM-8Ns.js +0 -360
  39. package/dist/Overview-BJjpYUJN.js +0 -1080
  40. package/dist/Overview-C5KF_Jxj.js +0 -1316
  41. package/dist/Point-FDFwR3Hk.js +0 -288
  42. package/dist/Promotion-qtucKxn0.js +0 -423
  43. package/dist/Queue-d91tocPX.js +0 -261
  44. package/dist/Record-CvkK2iLq.js +0 -342
  45. package/dist/Review-C_zLGtzU.js +0 -45
  46. package/dist/ReviewFacebookCallback-Bidg3P76.js +0 -238
  47. package/dist/ReviewGoogleCallback-DL0lxMBL.js +0 -213
  48. package/dist/Reward-BTsQaI-J.js +0 -442
  49. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-BjxA4eMX.js +0 -150
  50. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-D4NIDc-C.js +0 -1913
  51. package/dist/Segment-BgFyB3BK.js +0 -1017
  52. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-CkhjFNvZ.js +0 -181
  53. package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-HYbRyACe.js +0 -189
  54. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-7dv3cAW3.js +0 -226
  55. package/dist/Setting-BxHoCSxw.js +0 -2047
  56. package/dist/SettingAdvertisements-WfvuE4fA.js +0 -264
  57. package/dist/Settings-B42SAvEx.js +0 -179
  58. package/dist/Store-BnvWfCy-.js +0 -2413
  59. package/dist/StoreRewards-BRzAMqR-.js +0 -540
  60. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-C3FJr1L5.js +0 -1075
  61. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-UZYzUcif.js +0 -7007
  62. package/dist/Tier-BrzLNat2.js +0 -972
  63. package/dist/Title-EnlaNXld.js +0 -569
  64. package/dist/Transaction-BiXNxUGX.js +0 -39
  65. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Db5_DKQ0.js +0 -130
  66. package/dist/Voucher-C2dyk-jj.js +0 -444
  67. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DPE24a-J.js +0 -421
  68. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-CI1HM9HA.js +0 -56
  69. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  70. package/dist/app-Bt8HrAEr.js +0 -60740
  71. package/dist/app-wDQR6dpb.js +0 -39
  72. package/dist/app.js +0 -7
  73. package/dist/business-BwtQpfUr.js +0 -82
  74. package/dist/campaign-B6U9lwKi.js +0 -255
  75. package/dist/campaign-C6Cb9s3C.js +0 -100
  76. package/dist/campaign-CpzFl8Vr.js +0 -4
  77. package/dist/campaign.enum-Dx-Zo68Q.js +0 -26
  78. package/dist/campaign.fn-B0x2EGhw.js +0 -776
  79. package/dist/collectible.enum-Liy2wH3s.js +0 -19
  80. package/dist/collection.fn-DfoA9sJV.js +0 -26
  81. package/dist/duplicateCampaign-Cnq5N-V8.js +0 -51
  82. package/dist/effect-B2REbrv8.js +0 -89
  83. package/dist/email-addresses-BzmOsxLn.js +0 -705
  84. package/dist/export-jHpRhPQu.js +0 -97
  85. package/dist/feedme.ico +0 -0
  86. package/dist/google-C3S8u0mT.js +0 -4
  87. package/dist/helper-DQAHX1kX.js +0 -86
  88. package/dist/index-4GG-yjdN.js +0 -2963
  89. package/dist/index-BWgMbKOB.js +0 -85
  90. package/dist/index-BccUpf0U.js +0 -3
  91. package/dist/index-BkgkJkVs.js +0 -8919
  92. package/dist/index-C0PKVTf9.js +0 -32
  93. package/dist/index-C8cXXcLk.js +0 -45
  94. package/dist/index-CTTGf4TM.js +0 -151
  95. package/dist/index-C_H8jFYf.js +0 -2743
  96. package/dist/index-CuvNtC_M.js +0 -61
  97. package/dist/index-DJN4auwx.js +0 -146
  98. package/dist/index-DMr9ohGV.js +0 -1139
  99. package/dist/index-DQTo_ytu.js +0 -31
  100. package/dist/index-DW7-0rf_.js +0 -53
  101. package/dist/index-Da7J83jM.js +0 -2706
  102. package/dist/index-Di1Z4vLS.js +0 -27550
  103. package/dist/index-FoKZGh7Z.js +0 -67
  104. package/dist/index-N25Px7RQ.js +0 -72
  105. package/dist/index-PgblELTo.js +0 -897
  106. package/dist/index-STBMTK1u.js +0 -28900
  107. package/dist/index-hP3Mgc0u.js +0 -55
  108. package/dist/index-vh86FiIQ.js +0 -10
  109. package/dist/index.esm2017-DV56jzfJ.js +0 -3069
  110. package/dist/loading-D__sDcq1.js +0 -72
  111. package/dist/lodash-DgkDIHoV.js +0 -3678
  112. package/dist/membership-CBjt1MGx.js +0 -255
  113. package/dist/moment-D7p2TMB-.js +0 -2583
  114. package/dist/money-BFUbPKDM.js +0 -15
  115. package/dist/number-CJb8OUa3.js +0 -12
  116. package/dist/object-BYyQ0PZp.js +0 -18
  117. package/dist/objectId-dwaoBfJX.js +0 -7
  118. package/dist/objectid-BMUFNR9T.js +0 -145
  119. package/dist/plugins-D95ZeD-9.js +0 -1788
  120. package/dist/remy-Qz_pNsUS.js +0 -13
  121. package/dist/reward-CSfV_XFK.js +0 -36
  122. package/dist/rule-DIzVHy2z.js +0 -1969
  123. package/dist/rule-builder-DF7fCvec.js +0 -126
  124. package/dist/string-Gcy5IM_H.js +0 -32
  125. package/dist/style.css +0 -4
  126. package/dist/template-r3lAQP1B.js +0 -188
  127. package/dist/tier-BJDhpH6X.js +0 -4
  128. package/dist/tiers/tier=1.png +0 -0
  129. package/dist/tiers/tier=2.png +0 -0
  130. package/dist/tiers/tier=3.png +0 -0
  131. package/dist/tiers/tier=4.png +0 -0
  132. package/dist/timezone-D40qRUoz.js +0 -20
  133. package/dist/titles/type=diamond.png +0 -0
  134. package/dist/titles/type=drinks.png +0 -0
  135. package/dist/titles/type=food.png +0 -0
  136. package/dist/titles/type=heart.png +0 -0
  137. package/dist/titles/type=medal.png +0 -0
  138. package/dist/titles/type=spend.png +0 -0
  139. package/dist/titles/type=thank-you.png +0 -0
  140. package/dist/titles/type=thumbs-up.png +0 -0
  141. package/dist/titles/type=years.png +0 -0
  142. package/dist/transaction.fn-DV-cpfOj.js +0 -64
  143. package/dist/trigger-BEJaSv5R.js +0 -213
  144. package/dist/tslib.es6-BCqqvLQ_.js +0 -44
  145. package/dist/type_drinks-D6jnpvwV.js +0 -4
  146. package/dist/useMarketingMaterialActions-Bd5BDfE1.js +0 -96
  147. package/dist/usePagination-DLIo76-X.js +0 -220
  148. package/dist/user-DtEjuhyM.js +0 -55
  149. package/dist/vue-i18n-dQ1XCaUv.js +0 -2365
  150. package/dist/xlsx-BUMZsTov.js +0 -15491
  151. package/dist/zod-B_pVZhsV.js +0 -91
@@ -1,1075 +0,0 @@
1
- import { ref as E, defineComponent as ae, computed as q, h as s, resolveComponent as U, openBlock as V, createBlock as se, unref as l, isRef as Se, withCtx as le, createElementVNode as x, createVNode as R, createElementBlock as Y, Fragment as J, renderList as ie, toDisplayString as W, createTextVNode as _e, resolveDynamicComponent as we, watch as ce, onBeforeMount as Te, onMounted as Ce } from "vue";
2
- import { components as g, useDialog as Re } from "@feedmepos/ui-library";
3
- import { s as Z } from "./index-4GG-yjdN.js";
4
- import "./index-Di1Z4vLS.js";
5
- import { T as z } from "./transaction.fn-DV-cpfOj.js";
6
- import { h as _ } from "./moment-D7p2TMB-.js";
7
- import { _ as Q } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
8
- import { _ as ue } from "./DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js";
9
- import { s as H } from "./index-CuvNtC_M.js";
10
- import { f as ee } from "./number-CJb8OUa3.js";
11
- import { u as me } from "./business-BwtQpfUr.js";
12
- import { _ as de, u as Fe } from "./usePagination-DLIo76-X.js";
13
- import { c as te, p as Ie } from "./plugins-D95ZeD-9.js";
14
- import { g as pe } from "./user-DtEjuhyM.js";
15
- import { B as fe, e as De } from "./export-jHpRhPQu.js";
16
- import { u as ge } from "./campaign-C6Cb9s3C.js";
17
- import "./index-BccUpf0U.js";
18
- import "./index-Da7J83jM.js";
19
- import "./index-BkgkJkVs.js";
20
- import "./index-PgblELTo.js";
21
- import "./index-hP3Mgc0u.js";
22
- import { u as he } from "./vue-i18n-dQ1XCaUv.js";
23
- import { o as B } from "./objectId-dwaoBfJX.js";
24
- import { u as ye } from "./loading-D__sDcq1.js";
25
- import { w as Ae } from "./xlsx-BUMZsTov.js";
26
- import { useRouter as Ne } from "vue-router";
27
- import { t as L } from "./index-FoKZGh7Z.js";
28
- import { R as j } from "./app-Bt8HrAEr.js";
29
- import { F as X } from "./collectible.enum-Liy2wH3s.js";
30
- import { useCoreStore as Me } from "@feedmepos/mf-common";
31
- import { c as Ee } from "./string-Gcy5IM_H.js";
32
- import { m as Pe } from "./index-CTTGf4TM.js";
33
- const ke = (w) => {
34
- if (w.startsWith("_") || w.includes("."))
35
- return w;
36
- for (const T of ["pf_user_", "pf_collectible_"])
37
- if (w.startsWith(T))
38
- return `${T.slice(0, -1)}.${w.slice(T.length).replace(new RegExp("_", "g"), ".")}`;
39
- return w.replace(new RegExp("_", "g"), ".");
40
- };
41
- function Oe(w, T = { key: "_id", descending: !0 }) {
42
- const u = E({
43
- pageCount: 1,
44
- searchValue: "",
45
- pageIndex: 0,
46
- totalRows: 0,
47
- isLoading: !1,
48
- pageSize: 10,
49
- hasNext: !1
50
- }), m = E(T), b = E([]), h = E([void 0]);
51
- function D() {
52
- h.value = [void 0], u.value.pageIndex = 0, u.value.pageCount = 1, u.value.hasNext = !1;
53
- }
54
- const P = async (n = {}) => {
55
- const o = n.pageSize ?? u.value.pageSize, y = o !== u.value.pageSize;
56
- y && D();
57
- const f = y ? 0 : Math.max(n.pageIndex ?? u.value.pageIndex, 0), C = f === 0 || !!h.value[f] ? f : u.value.pageIndex, K = h.value[C];
58
- u.value.isLoading = !0, u.value.pageSize = o, b.value = [];
59
- try {
60
- const N = await w({
61
- limit: o,
62
- sortBy: m.value.key,
63
- descending: m.value.descending,
64
- search: u.value.searchValue,
65
- ...K ? { cursor: K } : {}
66
- });
67
- b.value = N.resources, u.value.pageIndex = C, u.value.totalRows = N.resources.length, u.value.hasNext = N.meta.hasNext, u.value.pageCount = C + (N.meta.hasNext ? 2 : 1), N.meta.nextCursor ? h.value[C + 1] = N.meta.nextCursor : h.value.splice(C + 1);
68
- } catch (N) {
69
- console.error("Error fetching data:", N), u.value.hasNext = !1;
70
- } finally {
71
- u.value.isLoading = !1;
72
- }
73
- };
74
- let I, p;
75
- const d = (n) => (I && clearTimeout(I), p && p(), new Promise((o) => {
76
- p = o, I = setTimeout(async () => {
77
- I = void 0, p = void 0, await P(n), o();
78
- }, 200);
79
- }));
80
- return {
81
- tableMeta: u,
82
- rowData: b,
83
- sortBy: m,
84
- pageCursors: h,
85
- resetCursorState: D,
86
- fetchData: P,
87
- debouncedFetchData: d,
88
- onSort: async (n) => {
89
- n.length ? m.value = {
90
- key: ke(n[0].id),
91
- descending: n[0].desc
92
- } : m.value = T, D(), await d({
93
- pageIndex: 0,
94
- pageSize: u.value.pageSize
95
- });
96
- },
97
- onSearch: () => (D(), d({
98
- pageIndex: 0,
99
- pageSize: u.value.pageSize
100
- }))
101
- };
102
- }
103
- class Ve extends fe {
104
- }
105
- const ze = { class: "space-y-24 pr-12" }, Ye = { class: "w-full space-y-16" }, Be = { class: "fm-typo-en-body-lg-600" }, Ue = ["onClick"], $e = { class: "fm-typo-en-body-lg-600" }, Le = ["onClick"], Ke = { class: "flex items-center gap-8" }, Ge = /* @__PURE__ */ ae({
106
- __name: "TransactionDetailSheet",
107
- setup(w, { expose: T }) {
108
- he();
109
- const u = E(!1), m = E(), b = ge(), h = me();
110
- function D(d, t) {
111
- u.value = d, m.value = t ?? null;
112
- }
113
- const P = q(() => {
114
- var d, t;
115
- return ee(
116
- ((t = m.value) == null ? void 0 : t.expiryAmount.reduce(
117
- (e, n) => e + n.amount,
118
- ((d = m.value) == null ? void 0 : d.amount) ?? 0
119
- )) ?? 0,
120
- 2
121
- );
122
- }), I = q(() => {
123
- var d, t, e, n, o;
124
- return m.value ? [
125
- {
126
- label: "Transaction ID",
127
- value: (d = m.value) == null ? void 0 : d._id
128
- },
129
- {
130
- label: "Date/Time",
131
- value: _(B(m.value._id.toString())).format(
132
- "D MMM YYYY, hh:mmA"
133
- )
134
- },
135
- {
136
- label: "Amount",
137
- component: () => s(
138
- "span",
139
- {
140
- class: [
141
- "pr-2",
142
- +P.value > 0 ? "text-fm-color-system-success-300" : "text-fm-color-system-error-300"
143
- ]
144
- },
145
- P.value
146
- )
147
- },
148
- {
149
- label: "Type",
150
- value: z.formattedType(m.value)
151
- },
152
- {
153
- label: "Source",
154
- value: H(z.getReason(m.value.source))
155
- },
156
- {
157
- label: "User",
158
- value: (e = (t = m.value) == null ? void 0 : t.pf_user) == null ? void 0 : e.name
159
- },
160
- {
161
- label: "Phone Number",
162
- value: (o = (n = m.value) == null ? void 0 : n.pf_user) == null ? void 0 : o.phoneNumber
163
- }
164
- ] : [];
165
- }), p = q(() => {
166
- var n, o, y, f;
167
- if (!m.value) return [];
168
- const d = [], t = (n = m.value) == null ? void 0 : n.metadata, e = m.value;
169
- if (t != null && t.campaign) {
170
- const S = b.campaigns.all.find(
171
- (C) => C._id === (t == null ? void 0 : t.campaign)
172
- );
173
- if (!S) return;
174
- d.push({
175
- label: "Campaign",
176
- value: S.name
177
- });
178
- }
179
- return t != null && t.remark && d.push({
180
- label: "Remark",
181
- value: t.remark
182
- }), (o = m.value) != null && o.ref.startsWith("bill_") && d.push({
183
- label: "Bill Number",
184
- value: (y = m.value) == null ? void 0 : y.ref,
185
- copy: () => {
186
- var S;
187
- return te((S = m.value) == null ? void 0 : S.ref);
188
- }
189
- }), t != null && t.location && d.push({
190
- label: "Location",
191
- value: (f = h.locations.find(
192
- (S) => S._id.toString() === (t == null ? void 0 : t.location)
193
- )) == null ? void 0 : f.name
194
- }), e.source === Z.enum.STORE && d.push({
195
- label: "Store Transaction",
196
- value: e.ref
197
- }), t != null && t.originTransaction && d.push({
198
- label: "Parent Transaction",
199
- value: t.originTransaction
200
- }), t != null && t.referral_count && d.push({
201
- label: "Referral Count",
202
- value: t.referral_count
203
- }), e.refundedFrom && d.push({
204
- label: "Refunded From",
205
- value: e.refundedFrom
206
- }), d;
207
- });
208
- return T({
209
- showSheet: D
210
- }), (d, t) => {
211
- const e = U("FmButton"), n = U("FmSideSheet");
212
- return V(), se(n, {
213
- "max-width": 560,
214
- modelValue: l(u),
215
- "onUpdate:modelValue": t[1] || (t[1] = (o) => Se(u) ? u.value = o : null),
216
- header: "Transaction Details"
217
- }, {
218
- "side-sheet-footer": le(() => [
219
- x("div", Ke, [
220
- R(e, {
221
- label: "Close",
222
- onClick: t[0] || (t[0] = (o) => D(!1)),
223
- variant: "tertiary"
224
- })
225
- ])
226
- ]),
227
- default: le(() => [
228
- x("div", ze, [
229
- x("div", Ye, [
230
- (V(!0), Y(J, null, ie(l(I), (o) => (V(), Y("div", {
231
- key: o.label,
232
- class: "flex flex-col gap-4"
233
- }, [
234
- x("div", Be, W(o.label), 1),
235
- x("div", {
236
- class: "text-fm-color-typo-secondary fm-typo-en-body-md-400 hover:underline",
237
- onClick: o.copy
238
- }, [
239
- _e(W(o.accessorFn ? o.accessorFn() : o.value) + " ", 1),
240
- (V(), se(we(o.component)))
241
- ], 8, Ue),
242
- t[2] || (t[2] = x("hr", { class: "mt-3" }, null, -1))
243
- ]))), 128)),
244
- (V(!0), Y(J, null, ie(l(p), (o) => (V(), Y("div", {
245
- key: o.label,
246
- class: "flex flex-col gap-4"
247
- }, [
248
- x("div", $e, W(o.label), 1),
249
- x("div", {
250
- class: "text-fm-color-typo-secondary fm-typo-en-body-md-400 hover:underline",
251
- onClick: o.copy
252
- }, W(o.accessorFn ? o.accessorFn() : o.value), 9, Le),
253
- t[3] || (t[3] = x("hr", { class: "mt-3" }, null, -1))
254
- ]))), 128))
255
- ])
256
- ])
257
- ]),
258
- _: 1
259
- }, 8, ["modelValue"]);
260
- };
261
- }
262
- }), We = { class: "hidden xs:!flex items-center justify-end" }, je = { class: "flex items-center justify-between" }, qe = { class: "flex gap-8 items-center w-full overflow-x-scroll" }, He = { class: "xs:hidden" }, Ma = /* @__PURE__ */ ae({
263
- __name: "CollectionTransactions",
264
- props: {
265
- user: {
266
- type: String
267
- }
268
- },
269
- setup(w) {
270
- const { t: T } = he(), u = me(), m = ge(), b = Ne(), h = w, D = E(!1), { minor: P } = ye, I = [
271
- {
272
- header: "Transaction ID",
273
- accessorKey: "_id",
274
- meta: {
275
- maxWidth: "100px"
276
- },
277
- cell(a) {
278
- return s("div", { class: "flex items-center" }, [
279
- s(g.FmIcon, {
280
- name: "content_copy",
281
- outline: !0,
282
- size: "sm",
283
- class: "cursor-pointer mr-4",
284
- onClick: (r) => {
285
- r.preventDefault(), r.stopPropagation(), te(a.row.original._id.toString());
286
- }
287
- }),
288
- s(
289
- "div",
290
- { class: "pr-2 text-ellipsis overflow-hidden" },
291
- a.row.original._id.toString()
292
- )
293
- ]);
294
- },
295
- enableSorting: !1
296
- },
297
- {
298
- header: "Created at",
299
- accessorKey: "_id",
300
- accessorFn: (a) => _(B(a._id.toString())),
301
- cell: (a) => _(B(a.row.original._id.toString())).format(
302
- "D MMM YYYY, hh:mmA"
303
- ),
304
- enableSorting: !0
305
- },
306
- {
307
- header: "Amount",
308
- // accessorKey: 'totalAmount',
309
- enableSorting: !1,
310
- cell(a) {
311
- var c, i, F, M;
312
- const r = ee(
313
- a.row.original.expiryAmount.reduce(
314
- ($, k) => $ + k.amount,
315
- a.row.original.amount ?? 0
316
- ),
317
- 2
318
- ), v = (i = (c = a.row.original.expiryAmount) == null ? void 0 : c[0]) != null && i.expiredAt ? _((M = (F = a.row.original.expiryAmount) == null ? void 0 : F[0]) == null ? void 0 : M.expiredAt).format(
319
- "D MMM YYYY"
320
- ) : "";
321
- return s("div", { class: "flex items-center" }, [
322
- s(
323
- "div",
324
- {
325
- class: [
326
- "pr-2",
327
- +r > 0 ? "text-fm-color-system-success-300" : "text-fm-color-system-error-300"
328
- ]
329
- },
330
- r
331
- ),
332
- s("div", { class: "flex items-center" }, [
333
- a.row.original.expiryAmount.length > 0 ? s(
334
- g.FmTooltip,
335
- {
336
- content: `Expired on ${v}`
337
- },
338
- [
339
- s(g.FmIcon, {
340
- name: "info",
341
- outline: !0,
342
- size: "sm"
343
- })
344
- ]
345
- ) : s("div")
346
- ])
347
- ]);
348
- }
349
- },
350
- {
351
- header: "Type",
352
- accessorKey: "pf_collectible.type",
353
- accessorFn: (a) => z.formattedType(a),
354
- meta: {
355
- maxWidth: "200px"
356
- },
357
- cell(a) {
358
- const r = z.formattedType(a.row.original);
359
- return s("div", { class: "flex items-center" }, [
360
- s("div", { class: "truncate text-ellipsis" }, r),
361
- r.length > 20 ? s(
362
- g.FmTooltip,
363
- {
364
- content: r
365
- },
366
- [
367
- s(g.FmIcon, {
368
- name: "info",
369
- color: "primary",
370
- outline: !0,
371
- size: "sm"
372
- })
373
- ]
374
- ) : null
375
- ]);
376
- }
377
- },
378
- {
379
- header: "Source",
380
- accessorKey: "source",
381
- cell(a) {
382
- var r;
383
- return s("div", { class: "flex items-center gap-4" }, [
384
- s(
385
- "div",
386
- { class: "truncate text-ellipsis" },
387
- H(z.getReason(a.row.original.source))
388
- ),
389
- ...(r = a.row.original.metadata) != null && r.campaign ? [
390
- s(
391
- g.FmTooltip,
392
- {
393
- get content() {
394
- var v;
395
- return (v = m.campaigns.all.find(
396
- (c) => {
397
- var i;
398
- return c._id === ((i = a.row.original.metadata) == null ? void 0 : i.campaign);
399
- }
400
- )) == null ? void 0 : v.name;
401
- }
402
- },
403
- [
404
- s(g.FmIcon, {
405
- name: "info",
406
- color: "primary",
407
- size: "sm",
408
- onClick: async (v) => {
409
- v.preventDefault(), v.stopPropagation();
410
- const c = m.campaigns.all.find(
411
- (i) => {
412
- var F;
413
- return i._id === ((F = a.row.original.metadata) == null ? void 0 : F.campaign);
414
- }
415
- );
416
- if (c)
417
- switch (c.type) {
418
- case "VOUCHER":
419
- case "PROMOTION":
420
- case "BROADCAST":
421
- await b.push({
422
- name: j[`$connect-CAMPAIGN_${c.type}`]
423
- });
424
- break;
425
- case "GAME":
426
- case "CREDIT":
427
- case "MISSION":
428
- await b.push({
429
- name: j[`$connect-PROGRAM_${c.type}`]
430
- });
431
- break;
432
- case "POINT":
433
- await b.push({
434
- name: j["$connect-PROGRAM_EXPERIENCE"]
435
- });
436
- break;
437
- case "COIN":
438
- await b.push({
439
- name: j["$connect-PROGRAM_POINT"]
440
- });
441
- break;
442
- }
443
- }
444
- })
445
- ]
446
- )
447
- ] : []
448
- ]);
449
- }
450
- },
451
- {
452
- header: "User",
453
- accessorKey: "pf_user.name",
454
- cell(a) {
455
- return pe(a.row.original.pf_user);
456
- }
457
- },
458
- {
459
- header: "Phone No.",
460
- accessorKey: "pf_user.phoneNumber",
461
- accessorFn: (a) => {
462
- var r;
463
- return ((r = a == null ? void 0 : a.pf_user) == null ? void 0 : r.phoneNumber) || "";
464
- }
465
- },
466
- {
467
- header: "Status",
468
- id: "status",
469
- enableSorting: !1,
470
- cell(a) {
471
- const r = !!a.row.original.refunded;
472
- return s(g.FmChip, {
473
- label: T(r ? "connect.transaction.refunded" : "connect.transaction.completed"),
474
- variant: "plain",
475
- class: r ? "text-fm-color-typo-warning bg-fm-color-system-warning-100" : "text-fm-color-typo-success bg-fm-color-system-success-100"
476
- });
477
- }
478
- },
479
- {
480
- accessorFn: (a) => a.ref,
481
- header: "References",
482
- accessorKey: "ref",
483
- cell(a) {
484
- var r, v;
485
- return s("div", { class: "flex items-center justify-between gap-4" }, [
486
- s("div", { class: "flex items-center" }, [
487
- (r = a.row.original.metadata) != null && r.remark ? s(
488
- g.FmTooltip,
489
- {
490
- content: (v = a.row.original.metadata) == null ? void 0 : v.remark
491
- },
492
- [
493
- s(g.FmIcon, {
494
- name: "info",
495
- class: "pl-2",
496
- outline: !0,
497
- size: "sm"
498
- })
499
- ]
500
- ) : s("div")
501
- ]),
502
- s("div", { class: "flex-1" }, a.row.original.ref)
503
- ]);
504
- }
505
- },
506
- {
507
- header: "Actions",
508
- cell(a) {
509
- const r = a.row.original;
510
- return s(
511
- g.FmTooltip,
512
- {
513
- get content() {
514
- return "Revert Transaction";
515
- }
516
- },
517
- [
518
- s(g.FmButton, {
519
- variant: "tertiary",
520
- icon: "amend",
521
- iconColor: "neutral-gray-400",
522
- disabled: !r.isRevertable,
523
- onClick: (v) => {
524
- v.stopPropagation(), K(r);
525
- }
526
- })
527
- ]
528
- );
529
- }
530
- }
531
- ], p = E({
532
- search: "",
533
- "pf_collectible.type": [],
534
- "metadata.location": [],
535
- dateRange: {
536
- startDate: _().subtract(7, "day").toISOString(),
537
- endDate: _().endOf("day").toISOString()
538
- },
539
- source: []
540
- }), d = () => ({
541
- ...p.value,
542
- user: h.user,
543
- dateRange: {
544
- start: new Date(p.value.dateRange.startDate).toISOString(),
545
- end: new Date(p.value.dateRange.endDate).toISOString()
546
- }
547
- }), { tableMeta: t, rowData: e, onSort: n, debouncedFetchData: o, resetCursorState: y } = Oe(async (a) => {
548
- const r = await L.readAllCursor(
549
- a,
550
- d()
551
- ), v = await Promise.all(
552
- r.resources.map(async (c) => {
553
- let i;
554
- if (c.source !== Z.enum.BILL)
555
- i = !1;
556
- else {
557
- const M = c.refunded || !!c.refundedFrom;
558
- if (c.expiryAmount.reduce(
559
- (k, O) => k + O.amount,
560
- c.amount ?? 0
561
- ) > 0) {
562
- let k = [];
563
- [
564
- X.enum.STAMP,
565
- X.enum.POINT
566
- ].includes(c.pf_collectible.type) ? i = !1 : i = !M;
567
- } else
568
- switch (c.pf_collectible.type) {
569
- case X.enum.VOUCHER:
570
- i = c.expiryAmount.some(
571
- (O) => !O.expiredAt || _(O.expiredAt).isAfter(_())
572
- ) && !M;
573
- break;
574
- default:
575
- i = !M;
576
- break;
577
- }
578
- }
579
- const F = f.value.find((M) => M._id === c.ref);
580
- return {
581
- ...c,
582
- ref: (F == null ? void 0 : F.seqNumber) || c.ref,
583
- isRevertable: i
584
- };
585
- })
586
- );
587
- return {
588
- resources: r.resources.map((c) => {
589
- const i = f.value.find((F) => F._id === c.ref);
590
- return { ...c, ref: (i == null ? void 0 : i.seqNumber) || c.ref };
591
- }),
592
- meta: r.meta
593
- };
594
- }), f = E([]), S = Z.options.map((a) => ({ label: H(z.getReason(a)), value: a })), C = q(
595
- () => u.locations.map((a) => ({ label: a.name, value: a._id }))
596
- );
597
- ce(
598
- p,
599
- () => {
600
- y(), o({ pageIndex: 0 });
601
- },
602
- { deep: !0 }
603
- );
604
- async function K(a) {
605
- P(
606
- async () => {
607
- await L.revertTransaction({
608
- id: a._id.toString()
609
- }), await o();
610
- },
611
- {
612
- message: "Reverting transaction...",
613
- successMessage: "Transaction reverted successfully"
614
- }
615
- );
616
- }
617
- async function N() {
618
- try {
619
- D.value = !0;
620
- const a = new Ve(), r = d(), v = 1e3;
621
- await P(
622
- async () => {
623
- var F, M, $, k, O, ne, re;
624
- let c, i = !0;
625
- for (; i; ) {
626
- const G = await L.readAllCursor(
627
- {
628
- limit: v,
629
- sortBy: "_id",
630
- descending: !1,
631
- ...c ? { cursor: c } : {}
632
- },
633
- r
634
- );
635
- if (!G.resources.length)
636
- break;
637
- for (const A of G.resources)
638
- a.addRecord({
639
- TransactionID: A._id,
640
- CreatedAt: _(B(A._id.toString())).format(
641
- "D MMM YYYY, hh:mmA"
642
- ),
643
- Amount: ee(
644
- A.expiryAmount.reduce(
645
- (xe, be) => xe + be.amount,
646
- A.amount ?? 0
647
- ),
648
- 2
649
- ),
650
- ExpiredAt: (M = (F = A.expiryAmount) == null ? void 0 : F[0]) != null && M.expiredAt ? _((k = ($ = A.expiryAmount) == null ? void 0 : $[0]) == null ? void 0 : k.expiredAt).format("D MMM YYYY") : "",
651
- Type: z.formattedType(A),
652
- Source: H(z.getReason(A.source)),
653
- User: ((O = A.pf_user) == null ? void 0 : O.name) || "",
654
- "Phone No.": ((ne = A.pf_user) == null ? void 0 : ne.phoneNumber) || "",
655
- References: A.ref,
656
- Remark: ((re = A.metadata) == null ? void 0 : re.remark) || ""
657
- });
658
- c = G.meta.nextCursor ?? void 0, i = G.meta.hasNext && !!c;
659
- }
660
- await Ae(
661
- a.buildExcel(),
662
- `transactions-${(/* @__PURE__ */ new Date()).toISOString()}.xlsx`,
663
- {
664
- bookType: "xlsx",
665
- bookSST: !1,
666
- type: "array"
667
- }
668
- );
669
- },
670
- {
671
- message: "Exporting transactions...",
672
- successMessage: "transactions exported successfully"
673
- }
674
- );
675
- } catch (a) {
676
- console.error(a);
677
- } finally {
678
- D.value = !1;
679
- }
680
- }
681
- const oe = E(null);
682
- function ve(a) {
683
- var r;
684
- console.log(a), (r = oe.value) == null || r.showSheet(!0, a.original);
685
- }
686
- return Te(async () => {
687
- await u.readLocations(), await m.read(), await o();
688
- }), (a, r) => {
689
- const v = U("FmSearch"), c = U("FmButton");
690
- return V(), Y(J, null, [
691
- x("div", null, [
692
- x("div", We, [
693
- R(v, {
694
- class: "hidden xs:!flex border-b border-fm-color-neutral-gray-100",
695
- modelValue: l(p).search,
696
- "onUpdate:modelValue": r[0] || (r[0] = (i) => l(p).search = i),
697
- placeholder: "Search",
698
- collapsible: ""
699
- }, null, 8, ["modelValue"]),
700
- R(c, {
701
- icon: "ios_share",
702
- variant: "tertiary",
703
- onClick: N
704
- })
705
- ]),
706
- x("div", je, [
707
- x("div", qe, [
708
- R(Q, {
709
- class: "cursor-pointer text-fm-color-neutral-gray-400",
710
- "right-icon": "keyboard_arrow_down",
711
- modelValue: l(p)["metadata.location"],
712
- "onUpdate:modelValue": r[1] || (r[1] = (i) => l(p)["metadata.location"] = i),
713
- icon: "storefront",
714
- "show-item-label": !0,
715
- items: l(C)
716
- }, null, 8, ["modelValue", "items"]),
717
- R(Q, {
718
- class: "cursor-pointer text-fm-color-neutral-gray-400",
719
- "right-icon": "keyboard_arrow_down",
720
- modelValue: l(p)["pf_collectible.type"],
721
- "onUpdate:modelValue": r[2] || (r[2] = (i) => l(p)["pf_collectible.type"] = i),
722
- label: "Type: ",
723
- "show-item-label": !0,
724
- items: [
725
- { label: "Point", value: "COIN" },
726
- { label: "Credit", value: "CREDIT" },
727
- { label: "Voucher", value: "VOUCHER" },
728
- { label: "Experience", value: "POINT" },
729
- { label: "Tier", value: "TIER" },
730
- { label: "Title", value: "TITLE" },
731
- { label: "Game", value: "GAME" },
732
- { label: "Stamp", value: "STAMP" }
733
- ]
734
- }, null, 8, ["modelValue"]),
735
- R(Q, {
736
- class: "cursor-pointer text-fm-color-neutral-gray-400",
737
- "right-icon": "keyboard_arrow_down",
738
- modelValue: l(p).source,
739
- "onUpdate:modelValue": r[3] || (r[3] = (i) => l(p).source = i),
740
- label: "Source: ",
741
- "show-item-label": !0,
742
- items: l(S)
743
- }, null, 8, ["modelValue", "items"]),
744
- R(ue, {
745
- "model-value": {
746
- startDate: l(p).dateRange.startDate,
747
- endDate: l(p).dateRange.endDate
748
- },
749
- "onUpdate:modelValue": r[4] || (r[4] = (i) => l(p).dateRange = {
750
- startDate: l(_)(i.startDate).startOf("d").toISOString(),
751
- endDate: l(_)(i.endDate).endOf("d").toISOString()
752
- })
753
- }, null, 8, ["model-value"])
754
- ]),
755
- R(v, {
756
- class: "xs:hidden",
757
- modelValue: l(p).search,
758
- "onUpdate:modelValue": r[5] || (r[5] = (i) => l(p).search = i),
759
- placeholder: "Search",
760
- collapsible: ""
761
- }, null, 8, ["modelValue"]),
762
- x("div", He, [
763
- R(c, {
764
- icon: "ios_share",
765
- variant: "tertiary",
766
- onClick: N
767
- })
768
- ])
769
- ]),
770
- R(de, {
771
- loading: l(t).isLoading,
772
- "row-data": l(e),
773
- "row-count": l(t).totalRows,
774
- "column-defs": I.filter(
775
- (i) => !h.user || i.header !== "User" && i.header !== "Phone No."
776
- ),
777
- "page-count": l(t).pageCount,
778
- "page-index": l(t).pageIndex,
779
- "page-size": l(t).pageSize,
780
- "shrink-at": !1,
781
- "pagination-mode": "cursor",
782
- "has-next": l(t).hasNext,
783
- onSortChange: l(n),
784
- onPageChange: r[6] || (r[6] = (i) => l(o)({
785
- pageSize: i.pageSize,
786
- pageIndex: i.pageIndex
787
- })),
788
- onRowClick: ve
789
- }, null, 8, ["loading", "row-data", "row-count", "column-defs", "page-count", "page-index", "page-size", "has-next", "onSortChange"])
790
- ]),
791
- R(Ge, {
792
- ref_key: "transactionDetailSheet",
793
- ref: oe
794
- }, null, 512)
795
- ], 64);
796
- };
797
- }
798
- });
799
- class Qe extends fe {
800
- }
801
- const Xe = { class: "flex items-center justify-between" }, Je = { class: "flex gap-8 items-center" }, Ze = { class: "flex gap-8 items-center xs:hidden" }, Ea = /* @__PURE__ */ ae({
802
- __name: "StoreTransactions",
803
- props: {
804
- user: {
805
- type: String
806
- }
807
- },
808
- setup(w) {
809
- const T = w, { minor: u } = ye;
810
- Re();
811
- const m = [
812
- {
813
- header: "Transaction ID",
814
- meta: {
815
- maxWidth: "150px"
816
- },
817
- cell(e) {
818
- return s("div", { class: "flex items-center" }, [
819
- s(g.FmIcon, {
820
- name: "content_copy",
821
- outline: !0,
822
- size: "sm",
823
- class: "cursor-pointer mr-4 shrink-0",
824
- onClick: (n) => {
825
- n.preventDefault(), n.stopPropagation(), te(e.row.original._id.toString());
826
- }
827
- }),
828
- s("div", { class: "truncate" }, e.row.original._id.toString())
829
- ]);
830
- }
831
- },
832
- {
833
- header: "Created at",
834
- accessorFn: (e) => _(B(e._id.toString())).format("D MMM YYYY, hh:mmA"),
835
- enableSorting: !0
836
- },
837
- {
838
- header: "Bundle",
839
- accessorFn: (e) => e.bundle.name
840
- },
841
- {
842
- header: "Location",
843
- accessorFn: (e) => e.location ? e.pf_location[0].name : "Online Store"
844
- },
845
- {
846
- header: "Payment Type",
847
- accessorFn: (e) => {
848
- var n;
849
- return ((n = e.paymentType) == null ? void 0 : n.type) ?? "N/A";
850
- },
851
- cell(e) {
852
- var n, o;
853
- return s("div", { class: "flex items-center gap-4" }, [
854
- s("div", { class: "flex items-center" }, [
855
- ((n = e.row.original.paymentType) == null ? void 0 : n.type) == "ONLINE" && e.row.original.paymentType.extra ? s(
856
- g.FmTooltip,
857
- {
858
- content: e.row.original.paymentType.extra
859
- },
860
- [
861
- s(g.FmIcon, {
862
- name: "info",
863
- outline: !0,
864
- size: "sm"
865
- })
866
- ]
867
- ) : s("div")
868
- ]),
869
- s(
870
- "div",
871
- { class: "flex-1" },
872
- ((o = e.row.original.paymentType) == null ? void 0 : o.type) ?? "N/A"
873
- )
874
- ]);
875
- }
876
- },
877
- {
878
- header: "User",
879
- cell: (e) => pe(e.row.original.pf_member)
880
- },
881
- {
882
- header: "Phone No.",
883
- accessorFn: (e) => e.pf_member.phoneNumber
884
- },
885
- {
886
- header: "Status",
887
- // accessorFn: (u) => u.status,
888
- cell(e) {
889
- var y, f, S, C;
890
- const n = e.row.original.status, o = {
891
- COMPLETED: "text-fm-color-typo-success bg-fm-color-system-success-100",
892
- REFUNDED: "text-fm-color-typo-warning bg-fm-color-system-warning-100"
893
- };
894
- return s("div", { class: "flex items-center gap-4" }, [
895
- s(g.FmChip, {
896
- label: Ee.title(n),
897
- variant: "plain",
898
- class: o[n] ?? ""
899
- }),
900
- (f = (y = e.row.original) == null ? void 0 : y.refund) != null && f.reason ? s(
901
- g.FmTooltip,
902
- {
903
- content: (C = (S = e.row.original) == null ? void 0 : S.refund) == null ? void 0 : C.reason
904
- },
905
- [
906
- s(g.FmIcon, {
907
- name: "info",
908
- color: "primary",
909
- outline: !0,
910
- size: "sm"
911
- })
912
- ]
913
- ) : null
914
- ]);
915
- }
916
- },
917
- {
918
- header: "Source",
919
- accessorFn: (e) => e.source
920
- },
921
- {
922
- header: "Ref",
923
- accessorFn: (e) => e.ref
924
- },
925
- {
926
- id: "action",
927
- cell(e) {
928
- const n = e.row.original, o = n.status === "COMPLETED" && !n.refund && n.source == "ADMIN";
929
- return o ? s(
930
- g.FmMenu,
931
- {
932
- placement: "bottom-end",
933
- onClick: (y) => {
934
- y.stopPropagation();
935
- }
936
- },
937
- {
938
- "menu-button": () => s(g.FmButton, {
939
- icon: "settings",
940
- variant: "tertiary",
941
- if: o
942
- }),
943
- default: () => [
944
- s(g.FmMenuItem, {
945
- label: "Refund",
946
- sublabel: "Refund this transaction",
947
- onClick: async (y) => {
948
- y.stopPropagation(), await d(n);
949
- }
950
- })
951
- ]
952
- }
953
- ) : s("div");
954
- }
955
- }
956
- ], b = E({
957
- searchValue: "",
958
- dateRange: {
959
- startDate: _().subtract(7, "day").toISOString(),
960
- endDate: _().toISOString()
961
- }
962
- }), { tableMeta: h, rowData: D, onSort: P, debouncedFetchData: I, onSearch: p } = Fe(async (e) => {
963
- const n = {
964
- ...b.value.dateRange,
965
- user: T.user
966
- };
967
- return await L.readStoreTransactions(e, n);
968
- });
969
- async function d(e) {
970
- await Ie.confirm(
971
- "Are you sure you want to refund this transaction?",
972
- "Refund Store Transaction",
973
- "Confirm",
974
- "Cancel"
975
- ) && await u(
976
- async () => {
977
- var o;
978
- await Pe.refundStoreTransaction({
979
- id: e._id,
980
- reason: `ADMIN:${(o = Me().sessionUser) == null ? void 0 : o.name}`
981
- }), await I();
982
- },
983
- {
984
- message: "Refunding transaction...",
985
- successMessage: "Transaction refunded successfully"
986
- }
987
- );
988
- }
989
- ce(
990
- b,
991
- () => {
992
- I();
993
- },
994
- { deep: !0 }
995
- ), Ce(async () => {
996
- await I();
997
- });
998
- const t = async () => De({
999
- exporter: new Qe(),
1000
- readFunction: (e) => L.readStoreTransactions(e, {
1001
- ...b.value.dateRange,
1002
- user: T.user
1003
- }),
1004
- transformRecord: (e) => {
1005
- var n, o, y, f, S, C;
1006
- return {
1007
- TransactionId: ((n = e._id) == null ? void 0 : n.toString()) || "",
1008
- CreatedAt: _(B(e._id.toString())).format(
1009
- "DD/MM/YYYY HH:mm:ss"
1010
- ),
1011
- Bundle: e.bundle.name || "",
1012
- Location: e.location ? e.pf_location[0].name : "Online Store",
1013
- PaymentType: ((o = e.paymentType) == null ? void 0 : o.type) || "N/A",
1014
- PaymentExtra: ((y = e.paymentType) == null ? void 0 : y.extra) || "",
1015
- User: ((f = e.pf_member) == null ? void 0 : f.name) || "",
1016
- PhoneNumber: ((S = e.pf_member) == null ? void 0 : S.phoneNumber) || "",
1017
- Status: e.status || "",
1018
- RefundReason: ((C = e == null ? void 0 : e.refund) == null ? void 0 : C.reason) || "",
1019
- Ref: (e == null ? void 0 : e.ref) || ""
1020
- };
1021
- },
1022
- filename: "store-transactions"
1023
- });
1024
- return (e, n) => {
1025
- const o = U("FmSearch"), y = U("FmButton");
1026
- return V(), Y("div", null, [
1027
- x("div", Xe, [
1028
- x("div", Je, [
1029
- R(ue, {
1030
- modelValue: l(b).dateRange,
1031
- "onUpdate:modelValue": n[0] || (n[0] = (f) => l(b).dateRange = f)
1032
- }, null, 8, ["modelValue"])
1033
- ]),
1034
- x("div", Ze, [
1035
- R(o, {
1036
- modelValue: l(h).searchValue,
1037
- "onUpdate:modelValue": [
1038
- n[1] || (n[1] = (f) => l(h).searchValue = f),
1039
- l(p)
1040
- ],
1041
- placeholder: "Search",
1042
- collapsible: ""
1043
- }, null, 8, ["modelValue", "onUpdate:modelValue"]),
1044
- R(y, {
1045
- icon: "ios_share",
1046
- variant: "tertiary",
1047
- onClick: t
1048
- })
1049
- ])
1050
- ]),
1051
- R(de, {
1052
- loading: l(h).isLoading,
1053
- "row-data": l(D),
1054
- "row-count": l(h).totalRows,
1055
- "column-defs": m.filter(
1056
- (f) => !T.user || f.header !== "User" && f.header !== "Phone No."
1057
- ),
1058
- "page-count": l(h).pageCount,
1059
- "page-index": l(h).pageIndex,
1060
- "page-size": l(h).pageSize,
1061
- "shrink-at": !1,
1062
- onSortChange: l(P),
1063
- onPageChange: n[2] || (n[2] = (f) => l(I)({
1064
- pageSize: f.pageSize,
1065
- pageIndex: f.pageIndex
1066
- }))
1067
- }, null, 8, ["loading", "row-data", "row-count", "column-defs", "page-count", "page-index", "page-size", "onSortChange"])
1068
- ]);
1069
- };
1070
- }
1071
- });
1072
- export {
1073
- Ma as _,
1074
- Ea as a
1075
- };