@feedmepos/mf-connect 0.1.38-beta.2 → 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 (110) hide show
  1. package/dist/Analytic-D8WCDkga.js +427 -0
  2. package/dist/{App-D11A2JY1.js → App-CTnXtg1W.js} +352 -364
  3. package/dist/{Bin-9wV4Ah3M.js → Bin-BY6-bvFj.js} +8 -8
  4. package/dist/{Broadcast-I3BtSk8V.js → Broadcast-5VTEIQAr.js} +40 -40
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-XJqTXbKr.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BuAQxEM4.js} +18 -18
  6. package/dist/{Card-CqALG5RM.js → Card-8ivdV-Qz.js} +159 -159
  7. package/dist/{Collections-rg3SzoUb.js → Collections-CFszRHmE.js} +91 -103
  8. package/dist/{Credit-BNn1sYZv.js → Credit-DFslY__4.js} +74 -74
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-PJ8q72XH.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BvCLYtJ3.js} +488 -489
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Sww7KNle.js → EffectSheet.vue_vue_type_style_index_0_lang-Ci_bp7GH.js} +94 -94
  11. package/dist/{Experience-D_Qm8SUj.js → Experience-BxfiZNlY.js} +41 -41
  12. package/dist/{Game-CKXgXm6Q.js → Game-0FZJcLmj.js} +31 -31
  13. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +144 -0
  14. package/dist/{Index-D4DGfUHd.js → Index-ByeKKbuM.js} +10 -10
  15. package/dist/Marketing-C7F4abzg.js +319 -0
  16. package/dist/{Member-B55vWHDd.js → Member-DP0fLSIV.js} +64 -64
  17. package/dist/MemberList-DFW2bMbr.js +1606 -0
  18. package/dist/MemberOverview-C2n9oJZh.js +58 -0
  19. package/dist/{MemberTransactions-CP5EI-W0.js → MemberTransactions-CW62fvgx.js} +1 -1
  20. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-iJXNbgsB.js +455 -0
  21. package/dist/{Mission-CFvhROuB.js → Mission-DEgQHJw6.js} +21 -21
  22. package/dist/{Overview-4273yNwL.js → Overview-5jDtZKi8.js} +335 -335
  23. package/dist/{Point-B_-_C919.js → Point-D2lB1-xB.js} +41 -41
  24. package/dist/{Promotion-D2S3COxk.js → Promotion-Diz1gIa0.js} +42 -42
  25. package/dist/{Queue-BmS1Oi-C.js → Queue-DIAuq7HG.js} +51 -51
  26. package/dist/{Record-DRBl0M8g.js → Record-T608yda1.js} +9 -9
  27. package/dist/{Reward-8056NmfK.js → Reward-fZzHrHCW.js} +173 -173
  28. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CJ_WC2gV.js → RewardGroup.vue_vue_type_script_setup_true_lang-YOKVfimM.js} +11 -11
  29. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DqNQl_nz.js → RuleGroup.vue_vue_type_script_setup_true_lang-C3_lmBe5.js} +431 -431
  30. package/dist/Segment-DDQIzsrk.js +882 -0
  31. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-4nNkkklE.js → SelectItems.vue_vue_type_script_setup_true_lang-B5oUf91Q.js} +2 -2
  32. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dnf2oxOG.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-C2U6Kzvx.js} +11 -11
  33. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLYP-5U9.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BRmqgxES.js} +3 -3
  34. package/dist/{Setting-BrJfYoru.js → Setting-CQNyXmp4.js} +432 -432
  35. package/dist/{Store-Bpl_4yZW.js → Store-CIA1Rtsg.js} +210 -210
  36. package/dist/StoreRewards-D5zlE6cE.js +423 -0
  37. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BkTYngJ_.js +995 -0
  38. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-QucRaI08.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-D8l3fQyz.js} +1 -1
  39. package/dist/{Tier-_LnXg3n6.js → Tier-jFXVOje_.js} +106 -106
  40. package/dist/{Title-B7AGStvx.js → Title-DVpZ1YMK.js} +131 -133
  41. package/dist/{Transaction-Chxv6V7u.js → Transaction-BF_wmok6.js} +2 -2
  42. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CzXNmobp.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cex1Z43W.js} +6 -6
  43. package/dist/{Voucher-C5z2kOq9.js → Voucher-CaBMU5w0.js} +37 -37
  44. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-BXt2fLOD.js +419 -0
  45. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BlXzEWA6.js → ZodTextField.vue_vue_type_script_setup_true_lang-CtHjWpUe.js} +1 -1
  46. package/dist/{app-BVojNX0w.js → app-CPhyKlyf.js} +1 -1
  47. package/dist/{app-7cvPyHJ7.js → app-DuIzRGvb.js} +124 -161
  48. package/dist/app.js +3 -4
  49. package/dist/{business-CmxV69wT.js → business-TTvv3aTz.js} +1 -1
  50. package/dist/{campaign-Dq5C_no-.js → campaign-BiMCoAzx.js} +3 -5
  51. package/dist/{campaign-CT_cNJEL.js → campaign-CjEVStN1.js} +9 -9
  52. package/dist/{campaign.enum-dp7yHKzF.js → campaign.enum-DpYmj9jp.js} +1 -1
  53. package/dist/campaign.fn-DJ6J98jS.js +758 -0
  54. package/dist/{collectible.enum-DxbB4DxT.js → collectible.enum-Cgmm_s-C.js} +1 -1
  55. package/dist/{collection.fn-CNZRdUgy.js → collection.fn-BsYCNgfJ.js} +2 -2
  56. package/dist/{dto-CT9zZbv9.js → dto-DgmHIlZ2.js} +4 -4
  57. package/dist/{effect-FIlOEC4H.js → effect-DnAVIDFy.js} +1 -1
  58. package/dist/{email-addresses-Ba7xImfX.js → email-addresses-CMRgb6Uv.js} +1 -1
  59. package/dist/{export-uzjZFNF9.js → export-DtarK6IJ.js} +3 -3
  60. package/dist/{helper-D4sAZde0.js → helper-BKZghMbF.js} +1 -1
  61. package/dist/{index-l2F5MnLF.js → index-2OAcPmuQ.js} +1 -1
  62. package/dist/{index-BI3m1Ehv.js → index-B0YZKHyu.js} +3 -3
  63. package/dist/{index-CH3z92VV.js → index-B5oXFFlO.js} +1 -1
  64. package/dist/{index-CvBcve-r.js → index-BQ3KHJXX.js} +1 -1
  65. package/dist/{index-B9pl4zRZ.js → index-B_893fH7.js} +79 -179
  66. package/dist/{index-CNJLP3D5.js → index-BoR-BOFw.js} +1 -1
  67. package/dist/{index-DNxa8Rqx.js → index-C7rl1eHp.js} +449 -516
  68. package/dist/{index-BXz54M1s.js → index-CBcbwf0k.js} +1 -1
  69. package/dist/{index-CS3Jmojj.js → index-CIztuDE4.js} +2462 -2453
  70. package/dist/{index-D5rvMvzx.js → index-CK67enPK.js} +1 -1
  71. package/dist/index-CuvNtC_M.js +61 -0
  72. package/dist/index-D2uZzjpn.js +44 -0
  73. package/dist/{index-CUfS9Kp1.js → index-DWdAUovq.js} +9 -9
  74. package/dist/{index-CONvJfKv.js → index-DkWcEDHA.js} +1 -1
  75. package/dist/{index-BjU8LVUC.js → index-VHu8hYtE.js} +385 -376
  76. package/dist/{index.esm2017-ATcsD5N4.js → index.esm2017-DkwLmmR_.js} +127 -127
  77. package/dist/{loading-BWGQSrCB.js → loading-BFkEqWR6.js} +1 -1
  78. package/dist/{membership-Cc4OZ8-U.js → membership-D0eN3i_T.js} +3 -3
  79. package/dist/{money-D7p8nfun.js → money-DS9ZQwSP.js} +1 -1
  80. package/dist/{number-CMJjC4qz.js → number-C8Gt93v9.js} +1 -1
  81. package/dist/objectid-Cr99eTPd.js +145 -0
  82. package/dist/{plugins-eQis66QR.js → plugins-DK_ue6Xa.js} +2 -2
  83. package/dist/{reward-DrnzbG20.js → reward-CW2dSLDW.js} +1 -1
  84. package/dist/{rule-CtRxkYXB.js → rule-CebKyXSm.js} +3 -3
  85. package/dist/{rule-builder-Di9RIYHF.js → rule-builder-kQq14RfN.js} +17 -17
  86. package/dist/style.css +1 -1
  87. package/dist/{template-C3UfY0v5.js → template-CxUxlb6-.js} +64 -64
  88. package/dist/{trigger-C9U7Zgad.js → trigger-RqJo06KA.js} +4 -4
  89. package/dist/{usePagination-BeF5K3M7.js → usePagination-JoYaROkV.js} +85 -85
  90. package/dist/{user-D7n9yYmO.js → user-DhV5Iy52.js} +1 -1
  91. package/dist/{vue-i18n-Bz45zC04.js → vue-i18n-BtvUK9hI.js} +419 -419
  92. package/dist/{xlsx-D4S4qbcZ.js → xlsx-WnLDq4qn.js} +381 -381
  93. package/package.json +3 -9
  94. package/dist/Analytic-BjSfI2Ff.js +0 -761
  95. package/dist/AuditLogs-DWCFYoRg.js +0 -1887
  96. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +0 -58
  97. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +0 -144
  98. package/dist/Marketing-Dn9A1vgH.js +0 -20073
  99. package/dist/MemberList-BWTG9Ohy.js +0 -1606
  100. package/dist/MemberOverview-wL_ailso.js +0 -58
  101. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-D--_An-f.js +0 -60279
  102. package/dist/Segment-Bzq-pyhc.js +0 -882
  103. package/dist/StoreRewards-Cu7n7Pjz.js +0 -423
  104. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-T3Wo2maC.js +0 -1029
  105. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DdGMrk2C.js +0 -419
  106. package/dist/campaign.fn-BYZgKDN7.js +0 -758
  107. package/dist/index-CsaQJMAR.js +0 -66
  108. package/dist/index-CwsMG2cV.js +0 -56
  109. package/dist/objectid-D5T27iny.js +0 -145
  110. package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
@@ -1,4 +1,4 @@
1
- import { defineComponent as M, ref as w, resolveComponent as C, openBlock as v, createBlock as F, withCtx as B, createVNode as c, createElementVNode as i, normalizeStyle as N, createElementBlock as S, Fragment as P, renderList as E, computed as h, onMounted as L, watch as R, unref as p, createCommentVNode as V, toDisplayString as x } from "vue";
1
+ import { defineComponent as M, ref as w, resolveComponent as C, openBlock as v, createBlock as F, withCtx as B, createVNode as c, createElementVNode as i, normalizeStyle as N, createElementBlock as x, Fragment as P, renderList as E, computed as b, onMounted as L, watch as R, unref as p, createCommentVNode as V, toDisplayString as k } from "vue";
2
2
  import { l as A } from "./lodash-B5I3zXaY.js";
3
3
  const T = ["id"], D = /* @__PURE__ */ M({
4
4
  __name: "FmTableSelection",
@@ -8,10 +8,10 @@ const T = ["id"], D = /* @__PURE__ */ M({
8
8
  },
9
9
  emits: ["update:modelValue"],
10
10
  setup(f, { emit: g }) {
11
- const a = g, l = f, r = w(!1);
11
+ const o = g, t = f, r = w(!1);
12
12
  return (d, u) => {
13
- const y = C("FmButton"), b = C("FmMenuItem"), o = C("FmMenu");
14
- return v(), F(o, {
13
+ const h = C("FmButton"), y = C("FmMenuItem"), a = C("FmMenu");
14
+ return v(), F(a, {
15
15
  "max-height": 264,
16
16
  shift: "",
17
17
  onMenuChanged: u[0] || (u[0] = (n) => r.value = n)
@@ -19,9 +19,9 @@ const T = ["id"], D = /* @__PURE__ */ M({
19
19
  "menu-button": B(() => {
20
20
  var n;
21
21
  return [
22
- c(y, {
22
+ c(h, {
23
23
  icon: r.value ? "expand_less" : "expand_more",
24
- label: (n = d.items.find((s) => s.value === l.value)) == null ? void 0 : n.label,
24
+ label: (n = d.items.find((l) => l.value === t.value)) == null ? void 0 : n.label,
25
25
  "icon-position": "append",
26
26
  size: "md",
27
27
  variant: "tertiary"
@@ -34,12 +34,12 @@ const T = ["id"], D = /* @__PURE__ */ M({
34
34
  style: N({ maxHeight: `${n}px` }),
35
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
36
  }, [
37
- (v(!0), S(P, null, E(d.items, (s) => (v(), F(b, {
38
- key: s.value,
39
- label: s.label,
40
- value: s.value,
41
- "model-value": s.value === l.value,
42
- "onUpdate:modelValue": (z) => a("update:modelValue", s.value)
37
+ (v(!0), x(P, null, E(d.items, (l) => (v(), F(y, {
38
+ key: l.value,
39
+ label: l.label,
40
+ value: l.value,
41
+ "model-value": l.value === t.value,
42
+ "onUpdate:modelValue": (S) => o("update:modelValue", l.value)
43
43
  }, null, 8, ["label", "value", "model-value", "onUpdate:modelValue"]))), 128))
44
44
  ], 12, T)
45
45
  ]),
@@ -50,10 +50,13 @@ const T = ["id"], D = /* @__PURE__ */ M({
50
50
  }), U = { class: "" }, O = {
51
51
  key: 0,
52
52
  class: "w-full flex flex-col gap-16 items-center py-16"
53
- }, j = {
53
+ }, j = /* @__PURE__ */ i("div", { class: "fm-typo-en-body-lg-600" }, "No data found", -1), W = /* @__PURE__ */ i("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " No data to show at the current moment. ", -1), q = [
54
+ j,
55
+ W
56
+ ], G = {
54
57
  key: 1,
55
58
  class: "basis-72 bg-white flex items-center justify-between px-24 pt-6 border-t border-fm-color-border"
56
- }, W = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, q = { class: "flex gap-8 items-center" }, G = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, H = { class: "flex gap-8 items-center" }, J = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto" }, K = { class: "flex gap-8" }, Y = /* @__PURE__ */ M({
59
+ }, H = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, J = { class: "flex gap-8 items-center" }, K = /* @__PURE__ */ i("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1), Q = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, X = { class: "flex gap-8 items-center" }, Y = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto" }, Z = { class: "flex gap-8" }, ae = /* @__PURE__ */ M({
57
60
  __name: "BaseTable",
58
61
  props: {
59
62
  rowData: {},
@@ -73,27 +76,27 @@ const T = ["id"], D = /* @__PURE__ */ M({
73
76
  },
74
77
  emits: ["sortChange", "rowClick", "pageChange"],
75
78
  setup(f, { emit: g }) {
76
- const a = f, l = g, r = h(() => a.pageIndex + 1), d = h(() => a.pageIndex * a.pageSize), u = h(
77
- () => Math.min(d.value + a.pageSize, a.rowCount || 0)
78
- ), y = h(() => a.pageIndex > 0), b = h(() => a.pageIndex < a.pageCount - 1), o = (e) => {
79
- l("sortChange", e);
79
+ const o = f, t = g, r = b(() => o.pageIndex + 1), d = b(() => o.pageIndex * o.pageSize), u = b(
80
+ () => Math.min(d.value + o.pageSize, o.rowCount || 0)
81
+ ), h = b(() => o.pageIndex > 0), y = b(() => o.pageIndex < o.pageCount - 1), a = (e) => {
82
+ t("sortChange", e);
80
83
  }, n = (e) => {
81
- l("rowClick", e);
82
- }, s = (e) => {
83
- l("pageChange", { pageIndex: e, pageSize: a.pageSize });
84
- }, z = (e) => {
85
- l("pageChange", { pageIndex: 0, pageSize: e });
86
- }, I = w(!1);
84
+ t("rowClick", e);
85
+ }, l = (e) => {
86
+ t("pageChange", { pageIndex: e, pageSize: o.pageSize });
87
+ }, S = (e) => {
88
+ t("pageChange", { pageIndex: 0, pageSize: e });
89
+ }, z = w(!1);
87
90
  return L(() => {
88
91
  R(
89
- () => a.loading,
90
- (e, t) => {
91
- t === !0 && e === !1 && (I.value = !0);
92
+ () => o.loading,
93
+ (e, s) => {
94
+ s === !0 && e === !1 && (z.value = !0);
92
95
  }
93
96
  );
94
- }), (e, t) => {
95
- const $ = C("FmTable"), k = C("FmButton");
96
- return v(), S("div", U, [
97
+ }), (e, s) => {
98
+ const $ = C("FmTable"), _ = C("FmButton");
99
+ return v(), x("div", U, [
97
100
  c($, {
98
101
  loading: e.loading,
99
102
  "row-data": e.rowData,
@@ -104,63 +107,60 @@ const T = ["id"], D = /* @__PURE__ */ M({
104
107
  "page-size": e.pageSize,
105
108
  "fetch-fn": void 0,
106
109
  "hide-footer": "",
107
- onSortChange: o,
110
+ onSortChange: a,
108
111
  onRowClick: n
109
112
  }, null, 8, ["loading", "row-data", "row-count", "column-defs", "shrink-at", "page-count", "page-size"]),
110
- e.rowData.length == 0 && e.loading == !1 && p(I) ? (v(), S("div", O, t[5] || (t[5] = [
111
- i("div", { class: "fm-typo-en-body-lg-600" }, "No data found", -1),
112
- i("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " No data to show at the current moment. ", -1)
113
- ]))) : V("", !0),
114
- e.hideFooter ? V("", !0) : (v(), S("div", j, [
115
- i("div", W, [
116
- i("div", q, [
117
- t[6] || (t[6] = i("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1)),
113
+ e.rowData.length == 0 && e.loading == !1 && p(z) ? (v(), x("div", O, q)) : V("", !0),
114
+ e.hideFooter ? V("", !0) : (v(), x("div", G, [
115
+ i("div", H, [
116
+ i("div", J, [
117
+ K,
118
118
  c(D, {
119
119
  items: e.pageSizeOptions,
120
120
  value: e.pageSize,
121
- "onUpdate:modelValue": z
121
+ "onUpdate:modelValue": S
122
122
  }, null, 8, ["items", "value"])
123
123
  ]),
124
- i("span", G, x(p(d) + 1) + " - " + x(p(u)) + " of " + x(e.rowCount) + " items ", 1)
124
+ i("span", Q, k(p(d) + 1) + " - " + k(p(u)) + " of " + k(e.rowCount) + " items ", 1)
125
125
  ]),
126
- i("div", H, [
126
+ i("div", X, [
127
127
  c(D, {
128
- items: Array.from(Array(e.pageCount), (m, _) => ({
129
- label: (_ + 1).toString(),
130
- value: _ + 1
128
+ items: Array.from(Array(e.pageCount), (m, I) => ({
129
+ label: (I + 1).toString(),
130
+ value: I + 1
131
131
  })),
132
132
  value: p(r),
133
- "onUpdate:modelValue": t[0] || (t[0] = (m) => s(m - 1))
133
+ "onUpdate:modelValue": s[0] || (s[0] = (m) => l(m - 1))
134
134
  }, null, 8, ["items", "value"]),
135
- i("span", J, " of " + x(e.pageCount) + " pages ", 1),
136
- i("div", K, [
137
- c(k, {
138
- disabled: !p(y),
135
+ i("span", Y, " of " + k(e.pageCount) + " pages ", 1),
136
+ i("div", Z, [
137
+ c(_, {
138
+ disabled: !p(h),
139
139
  icon: "first_page",
140
140
  "icon-color": "neutral-black",
141
141
  variant: "tertiary",
142
- onClick: t[1] || (t[1] = (m) => s(0))
142
+ onClick: s[1] || (s[1] = (m) => l(0))
143
143
  }, null, 8, ["disabled"]),
144
- c(k, {
145
- disabled: !p(y),
144
+ c(_, {
145
+ disabled: !p(h),
146
146
  icon: "chevron_left",
147
147
  "icon-color": "neutral-black",
148
148
  variant: "tertiary",
149
- onClick: t[2] || (t[2] = (m) => s(e.pageIndex - 1))
149
+ onClick: s[2] || (s[2] = (m) => l(e.pageIndex - 1))
150
150
  }, null, 8, ["disabled"]),
151
- c(k, {
152
- disabled: !p(b),
151
+ c(_, {
152
+ disabled: !p(y),
153
153
  icon: "chevron_right",
154
154
  "icon-color": "neutral-black",
155
155
  variant: "tertiary",
156
- onClick: t[3] || (t[3] = (m) => s(e.pageIndex + 1))
156
+ onClick: s[3] || (s[3] = (m) => l(e.pageIndex + 1))
157
157
  }, null, 8, ["disabled"]),
158
- c(k, {
159
- disabled: !p(b),
158
+ c(_, {
159
+ disabled: !p(y),
160
160
  icon: "last_page",
161
161
  "icon-color": "neutral-black",
162
162
  variant: "tertiary",
163
- onClick: t[4] || (t[4] = (m) => s(e.pageCount - 1))
163
+ onClick: s[4] || (s[4] = (m) => l(e.pageCount - 1))
164
164
  }, null, 8, ["disabled"])
165
165
  ])
166
166
  ])
@@ -169,55 +169,55 @@ const T = ["id"], D = /* @__PURE__ */ M({
169
169
  };
170
170
  }
171
171
  });
172
- function Z(f, g = { key: "_id", descending: !0 }) {
173
- const a = w({
172
+ function ne(f, g = { key: "_id", descending: !0 }) {
173
+ const o = w({
174
174
  pageCount: 0,
175
175
  searchValue: "",
176
176
  pageIndex: 0,
177
177
  totalRows: 0,
178
178
  isLoading: !1,
179
179
  pageSize: 10
180
- }), l = w(g), r = w([]), d = async (o) => {
181
- a.value.isLoading = !0, r.value = [];
180
+ }), t = w(g), r = w([]), d = async (a) => {
181
+ o.value.isLoading = !0, r.value = [];
182
182
  try {
183
183
  const n = await f({
184
- limit: o.pageSize || a.value.pageSize,
185
- skip: o.pageIndex ?? 0,
186
- sortBy: l.value.key,
187
- descending: l.value.descending,
188
- search: a.value.searchValue
184
+ limit: a.pageSize || o.value.pageSize,
185
+ skip: a.pageIndex ?? 0,
186
+ sortBy: t.value.key,
187
+ descending: t.value.descending,
188
+ search: o.value.searchValue
189
189
  });
190
- r.value = n.resources, a.value.totalRows = n.meta.totalResources ?? 0, a.value.pageCount = n.meta.totalPages ?? 0, a.value.pageIndex = n.meta.skip ?? 0;
190
+ r.value = n.resources, o.value.totalRows = n.meta.totalResources ?? 0, o.value.pageCount = n.meta.totalPages ?? 0, o.value.pageIndex = n.meta.skip ?? 0;
191
191
  } catch (n) {
192
192
  console.error("Error fetching data:", n);
193
193
  } finally {
194
- a.value.isLoading = !1;
194
+ o.value.isLoading = !1;
195
195
  }
196
- }, u = A.debounce(async (o) => {
197
- a.value.pageSize = (o == null ? void 0 : o.pageSize) || a.value.pageSize, await d({
198
- pageSize: a.value.pageSize,
199
- pageIndex: (o == null ? void 0 : o.pageIndex) || 0
196
+ }, u = A.debounce(async (a) => {
197
+ o.value.pageSize = (a == null ? void 0 : a.pageSize) || o.value.pageSize, await d({
198
+ pageSize: o.value.pageSize,
199
+ pageIndex: (a == null ? void 0 : a.pageIndex) || 0
200
200
  });
201
201
  }, 200);
202
202
  return {
203
- tableMeta: a,
203
+ tableMeta: o,
204
204
  rowData: r,
205
- sortBy: l,
205
+ sortBy: t,
206
206
  fetchData: d,
207
207
  debouncedFetchData: u,
208
- onSort: async (o) => {
208
+ onSort: async (a) => {
209
209
  var n;
210
- console.log("sortState", (n = o[0]) == null ? void 0 : n.id), o.length ? (l.value = {
211
- key: o[0].id.startsWith("_") ? o[0].id : o[0].id.replace(new RegExp("_", "g"), "."),
212
- descending: o[0].desc
213
- }, console.log("sortBy", l.value)) : l.value = g, await u();
210
+ console.log("sortState", (n = a[0]) == null ? void 0 : n.id), a.length ? (t.value = {
211
+ key: a[0].id.startsWith("_") ? a[0].id : a[0].id.replace(new RegExp("_", "g"), "."),
212
+ descending: a[0].desc
213
+ }, console.log("sortBy", t.value)) : t.value = g, await u();
214
214
  },
215
215
  onSearch: () => {
216
- u({ pageIndex: 0, pageSize: a.value.pageSize });
216
+ u({ pageIndex: 0, pageSize: o.value.pageSize });
217
217
  }
218
218
  };
219
219
  }
220
220
  export {
221
- Y as _,
222
- Z as u
221
+ ae as _,
222
+ ne as u
223
223
  };
@@ -1,5 +1,5 @@
1
1
  import { components as p } from "@feedmepos/ui-library";
2
- import { a as f } from "./plugins-eQis66QR.js";
2
+ import { a as f } from "./plugins-DK_ue6Xa.js";
3
3
  import { h as c } from "vue";
4
4
  function g(o, n = !1) {
5
5
  return c(