@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,26 +1,27 @@
1
- var ae = Object.defineProperty;
2
- var le = (f, i, d) => i in f ? ae(f, i, { enumerable: !0, configurable: !0, writable: !0, value: d }) : f[i] = d;
3
- var O = (f, i, d) => le(f, typeof i != "symbol" ? i + "" : i, d);
4
- import { defineComponent as J, ref as p, computed as Q, watch as K, resolveComponent as u, openBlock as x, createBlock as z, unref as o, isRef as j, withCtx as I, createElementVNode as v, createVNode as r, createElementBlock as N, Fragment as P, renderList as ne, createCommentVNode as R, onMounted as se, h as S } from "vue";
1
+ var te = Object.defineProperty;
2
+ var ae = (f, i, d) => i in f ? te(f, i, { enumerable: !0, configurable: !0, writable: !0, value: d }) : f[i] = d;
3
+ var O = (f, i, d) => ae(f, typeof i != "symbol" ? i + "" : i, d);
4
+ import { defineComponent as H, ref as p, computed as J, watch as K, resolveComponent as u, openBlock as y, createBlock as T, unref as o, isRef as j, withCtx as I, createElementVNode as h, createVNode as r, createElementBlock as R, Fragment as N, renderList as le, createCommentVNode as U, onMounted as ne, h as z } from "vue";
5
5
  import { h as G } from "./moment-BWErdI6_.js";
6
- import { components as H } from "@feedmepos/ui-library";
7
- import "./index-CS3Jmojj.js";
6
+ import { components as se } from "@feedmepos/ui-library";
7
+ import "./index-CIztuDE4.js";
8
8
  import { J as re } from "./JsonViewer-v8_C7l5N.js";
9
- import { u as W } from "./loading-BWGQSrCB.js";
9
+ import { u as Q } from "./loading-BFkEqWR6.js";
10
10
  import { u as ie } from "./app-wDQR6dpb.js";
11
- import { useRoute as X, useRouter as ue } from "vue-router";
12
- import { c as q } from "./index-D5rvMvzx.js";
11
+ import { useRoute as W, useRouter as ue } from "vue-router";
12
+ import { c as P } from "./index-CK67enPK.js";
13
13
  import { e as m } from "./index-vh86FiIQ.js";
14
- import { u as Y, w as de } from "./xlsx-D4S4qbcZ.js";
15
- import { u as ce, _ as me } from "./usePagination-BeF5K3M7.js";
16
- import { a as pe } from "./plugins-eQis66QR.js";
17
- import { m as fe } from "./index-l2F5MnLF.js";
18
- import { o as ge } from "./objectId-dwaoBfJX.js";
19
- const be = { class: "space-y-16" }, Ce = { class: "gap-16 grid grid-cols-2" }, ve = { class: "flex items-center gap-8" }, he = /* @__PURE__ */ J({
14
+ import { u as Y, w as de } from "./xlsx-WnLDq4qn.js";
15
+ import { g as ce } from "./user-DhV5Iy52.js";
16
+ import { u as me, _ as pe } from "./usePagination-JoYaROkV.js";
17
+ import { a as fe } from "./plugins-DK_ue6Xa.js";
18
+ import { m as ge } from "./index-2OAcPmuQ.js";
19
+ import { o as be } from "./objectId-dwaoBfJX.js";
20
+ const Ce = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code type", -1), he = { class: "space-y-16" }, ve = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Settings", -1), ye = { class: "gap-16 grid grid-cols-2" }, xe = { class: "flex items-center gap-8" }, Ve = /* @__PURE__ */ H({
20
21
  __name: "CreateCollectionSheet",
21
22
  emits: ["success"],
22
23
  setup(f, { expose: i, emit: d }) {
23
- const { minor: w } = W, F = X(), k = p(), _ = p(!1), A = d, g = p(!1);
24
+ const { minor: S } = Q, w = W(), F = p(), k = p(!1), q = d, g = p(!1);
24
25
  function D(s) {
25
26
  g.value = s, s && (a.value = {
26
27
  quantity: 1,
@@ -55,7 +56,7 @@ const be = { class: "space-y-16" }, Ce = { class: "gap-16 grid grid-cols-2" }, v
55
56
  value: "single",
56
57
  sublabel: "Enter your own custom codes"
57
58
  }
58
- ], U = [
59
+ ], B = [
59
60
  {
60
61
  label: "Alphanumeric",
61
62
  value: "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
@@ -68,12 +69,12 @@ const be = { class: "space-y-16" }, Ce = { class: "gap-16 grid grid-cols-2" }, v
68
69
  { label: "Alphabetic Uppercase", value: "ABCDEFGHIJKLMNOPQRSTUVWXYZ" },
69
70
  { label: "Numbers", value: "0123456789" },
70
71
  { label: "Custom", value: "" }
71
- ], h = p(U[0].value), c = p("bulk"), y = p(!1), M = Q(() => F.params.id);
72
+ ], v = p(B[0].value), c = p("bulk"), x = p(!1), A = J(() => w.params.id);
72
73
  async function n(s) {
73
74
  var e;
74
- await ((e = k.value) == null ? void 0 : e.validateInputs()), _.value && await w(
75
+ await ((e = F.value) == null ? void 0 : e.validateInputs()), k.value && await S(
75
76
  async () => {
76
- await q.createCollectionByCampaignId(M.value, s), await A("success");
77
+ await P.createCollectionByCampaignId(A.value, s), await q("success");
77
78
  },
78
79
  {
79
80
  message: "Creating claim(s)",
@@ -104,8 +105,8 @@ const be = { class: "space-y-16" }, Ce = { class: "gap-16 grid grid-cols-2" }, v
104
105
  s != e && (a.value.codeConfig.pattern = "#".repeat(Math.min(16, Number(s))));
105
106
  }
106
107
  ), (s, e) => {
107
- const C = u("FmRadio"), L = u("FmRadioGroup"), V = u("FmSwitch"), T = u("FmStepperField"), Z = u("FmSelect"), B = u("FmTextField"), ee = u("FmTextarea"), oe = u("FmForm"), $ = u("FmButton"), te = u("FmSideSheet");
108
- return x(), z(te, {
108
+ const C = u("FmRadio"), M = u("FmRadioGroup"), V = u("FmSwitch"), L = u("FmStepperField"), X = u("FmSelect"), _ = u("FmTextField"), Z = u("FmTextarea"), ee = u("FmForm"), $ = u("FmButton"), oe = u("FmSideSheet");
109
+ return y(), T(oe, {
109
110
  "max-width": 560,
110
111
  "dismiss-away": !0,
111
112
  header: "Create collection",
@@ -116,7 +117,7 @@ const be = { class: "space-y-16" }, Ce = { class: "gap-16 grid grid-cols-2" }, v
116
117
  ]
117
118
  }, {
118
119
  "side-sheet-footer": I(() => [
119
- v("div", ve, [
120
+ h("div", xe, [
120
121
  r($, {
121
122
  label: "Save",
122
123
  onClick: e[12] || (e[12] = (t) => n(o(a))),
@@ -132,23 +133,23 @@ const be = { class: "space-y-16" }, Ce = { class: "gap-16 grid grid-cols-2" }, v
132
133
  ]),
133
134
  default: I(() => [
134
135
  r(re, { json: o(a) }, null, 8, ["json"]),
135
- r(oe, {
136
+ r(ee, {
136
137
  ref_key: "form",
137
- ref: k,
138
+ ref: F,
138
139
  class: "space-y-40",
139
- onValidationSuccess: e[10] || (e[10] = (t) => _.value = !0),
140
- onValidationFailed: e[11] || (e[11] = (t) => _.value = !1)
140
+ onValidationSuccess: e[10] || (e[10] = (t) => k.value = !0),
141
+ onValidationFailed: e[11] || (e[11] = (t) => k.value = !1)
141
142
  }, {
142
143
  default: I(() => [
143
- v("div", null, [
144
- e[16] || (e[16] = v("div", { class: "fm-typo-en-body-lg-600" }, "Code type", -1)),
145
- r(L, {
144
+ h("div", null, [
145
+ Ce,
146
+ r(M, {
146
147
  modelValue: o(c),
147
148
  "onUpdate:modelValue": e[0] || (e[0] = (t) => j(c) ? c.value = t : null),
148
149
  inline: !1
149
150
  }, {
150
151
  default: I(() => [
151
- (x(), N(P, null, ne(E, (t) => r(C, {
152
+ (y(), R(N, null, le(E, (t) => r(C, {
152
153
  key: t.value,
153
154
  value: t.value,
154
155
  label: t.label,
@@ -158,19 +159,19 @@ const be = { class: "space-y-16" }, Ce = { class: "gap-16 grid grid-cols-2" }, v
158
159
  _: 1
159
160
  }, 8, ["modelValue"])
160
161
  ]),
161
- v("div", be, [
162
- e[17] || (e[17] = v("div", { class: "fm-typo-en-body-lg-600" }, "Settings", -1)),
163
- o(c) === "bulk" ? (x(), N(P, { key: 0 }, [
162
+ h("div", he, [
163
+ ve,
164
+ o(c) === "bulk" ? (y(), R(N, { key: 0 }, [
164
165
  r(V, {
165
- "model-value": o(y),
166
+ "model-value": o(x),
166
167
  "label-placement": "right",
167
168
  value: "true",
168
169
  label: "Advance code setting",
169
170
  required: !0,
170
- "onUpdate:modelValue": e[1] || (e[1] = () => y.value = !o(y))
171
+ "onUpdate:modelValue": e[1] || (e[1] = () => x.value = !o(x))
171
172
  }, null, 8, ["model-value"]),
172
- o(y) ? (x(), N(P, { key: 0 }, [
173
- r(T, {
173
+ o(x) ? (y(), R(N, { key: 0 }, [
174
+ r(L, {
174
175
  modelValue: o(a).codeConfig.length,
175
176
  "onUpdate:modelValue": e[2] || (e[2] = (t) => o(a).codeConfig.length = t),
176
177
  label: "Code length",
@@ -182,42 +183,42 @@ const be = { class: "space-y-16" }, Ce = { class: "gap-16 grid grid-cols-2" }, v
182
183
  ],
183
184
  required: !0
184
185
  }, null, 8, ["modelValue", "rules"]),
185
- r(Z, {
186
+ r(X, {
186
187
  label: "Charset",
187
- "model-value": o(h),
188
- items: U,
188
+ "model-value": o(v),
189
+ items: B,
189
190
  "helper-text": o(a).codeConfig.charset.length > 62 ? `${o(a).codeConfig.charset.substring(0, 62)}...` : o(a).codeConfig.charset,
190
191
  "onUpdate:modelValue": e[3] || (e[3] = (t) => {
191
- h.value = t, o(a).codeConfig.charset = t;
192
+ v.value = t, o(a).codeConfig.charset = t;
192
193
  })
193
194
  }, null, 8, ["model-value", "helper-text"]),
194
- o(h) === "" ? (x(), z(B, {
195
+ o(v) === "" ? (y(), T(_, {
195
196
  key: 0,
196
197
  modelValue: o(a).codeConfig.charset,
197
198
  "onUpdate:modelValue": e[4] || (e[4] = (t) => o(a).codeConfig.charset = t),
198
199
  label: "Custom Charset",
199
200
  required: ""
200
- }, null, 8, ["modelValue"])) : R("", !0),
201
- v("div", Ce, [
202
- r(B, {
201
+ }, null, 8, ["modelValue"])) : U("", !0),
202
+ h("div", ye, [
203
+ r(_, {
203
204
  modelValue: o(a).codeConfig.prefix,
204
205
  "onUpdate:modelValue": e[5] || (e[5] = (t) => o(a).codeConfig.prefix = t),
205
206
  label: "Prefix (Optional)"
206
207
  }, null, 8, ["modelValue"]),
207
- r(B, {
208
+ r(_, {
208
209
  modelValue: o(a).codeConfig.suffix,
209
210
  "onUpdate:modelValue": e[6] || (e[6] = (t) => o(a).codeConfig.suffix = t),
210
211
  label: "Suffix (Optional)"
211
212
  }, null, 8, ["modelValue"])
212
213
  ]),
213
- r(B, {
214
+ r(_, {
214
215
  modelValue: o(a).codeConfig.pattern,
215
216
  "onUpdate:modelValue": e[7] || (e[7] = (t) => o(a).codeConfig.pattern = t),
216
217
  label: "Pattern",
217
218
  required: !0
218
219
  }, null, 8, ["modelValue"])
219
- ], 64)) : R("", !0),
220
- r(B, {
220
+ ], 64)) : U("", !0),
221
+ r(_, {
221
222
  modelValue: o(a).quantity,
222
223
  "onUpdate:modelValue": e[8] || (e[8] = (t) => o(a).quantity = t),
223
224
  label: "Number of code",
@@ -228,8 +229,8 @@ const be = { class: "space-y-16" }, Ce = { class: "gap-16 grid grid-cols-2" }, v
228
229
  required: !0,
229
230
  "helper-text": `${o(a).quantity} claim will be created`
230
231
  }, null, 8, ["modelValue", "rules", "helper-text"])
231
- ], 64)) : R("", !0),
232
- o(c) !== "bulk" ? (x(), z(ee, {
232
+ ], 64)) : U("", !0),
233
+ o(c) !== "bulk" ? (y(), T(Z, {
233
234
  key: 1,
234
235
  modelValue: o(a).code,
235
236
  "onUpdate:modelValue": e[9] || (e[9] = (t) => o(a).code = t),
@@ -240,7 +241,7 @@ const be = { class: "space-y-16" }, Ce = { class: "gap-16 grid grid-cols-2" }, v
240
241
  (t) => !b(t) || "Custom code must not contain space"
241
242
  ],
242
243
  placeholder: "(For multiple codes, please enter in the new row.)"
243
- }, null, 8, ["modelValue", "rules"])) : R("", !0)
244
+ }, null, 8, ["modelValue", "rules"])) : U("", !0)
244
245
  ])
245
246
  ]),
246
247
  _: 1
@@ -251,7 +252,7 @@ const be = { class: "space-y-16" }, Ce = { class: "gap-16 grid grid-cols-2" }, v
251
252
  };
252
253
  }
253
254
  });
254
- class xe {
255
+ class Se {
255
256
  constructor() {
256
257
  O(this, "data", []);
257
258
  }
@@ -263,27 +264,27 @@ class xe {
263
264
  return Y.book_append_sheet(i, d, "Collection"), i;
264
265
  }
265
266
  }
266
- const ye = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Ve = { class: "flex items-center justify-end py-4 xs:hidden" }, Le = /* @__PURE__ */ J({
267
+ const we = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Fe = { class: "flex items-center justify-end py-4 xs:hidden" }, $e = /* @__PURE__ */ H({
267
268
  __name: "Collections",
268
269
  setup(f) {
269
- const i = ue(), d = X(), w = p(), F = Q(() => d.params.id), k = p(!1), { custom: _ } = W, A = [
270
+ const i = ue(), d = W(), S = p(), w = J(() => d.params.id), F = p(!1), { custom: k } = Q, q = [
270
271
  {
271
272
  header: "ID/Code",
272
273
  accessorKey: "_id",
273
274
  cell(n) {
274
- return S("div", { class: "flex items-center" }, [
275
- S(H.FmIcon, {
275
+ return z("div", { class: "flex items-center" }, [
276
+ z(se.FmIcon, {
276
277
  name: "content_copy",
277
278
  outline: !0,
278
279
  size: "sm",
279
280
  class: "cursor-pointer mr-4",
280
281
  onClick: (l) => {
281
- l.preventDefault(), l.stopPropagation(), pe(
282
+ l.preventDefault(), l.stopPropagation(), fe(
282
283
  n.row.original.code || n.row.original._id.toString()
283
284
  );
284
285
  }
285
286
  }),
286
- S(
287
+ z(
287
288
  "div",
288
289
  { class: "pr-2 text-ellipsis overflow-hidden" },
289
290
  n.row.original.code || n.row.original._id.toString()
@@ -297,20 +298,7 @@ const ye = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Ve = { class: "flex
297
298
  enableSorting: !1,
298
299
  cell(n) {
299
300
  const l = n.row.original.pf_user;
300
- return S(
301
- "div",
302
- {
303
- class: "flex items-center gap-x-8"
304
- },
305
- [
306
- S(H.FmAvatar, {
307
- name: l != null && l.photoUrl || l == null ? void 0 : l.name,
308
- src: (l == null ? void 0 : l.photoUrl) ?? void 0,
309
- size: "sm"
310
- }),
311
- S("span", l == null ? void 0 : l.name)
312
- ]
313
- );
301
+ return ce(l);
314
302
  }
315
303
  },
316
304
  {
@@ -328,7 +316,7 @@ const ye = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Ve = { class: "flex
328
316
  {
329
317
  header: "Created at",
330
318
  accessorKey: "_id",
331
- accessorFn: (n) => G(ge(n._id.toString())).format("DD MMM YYYY")
319
+ accessorFn: (n) => G(be(n._id.toString())).format("DD MMM YYYY")
332
320
  },
333
321
  {
334
322
  header: "Nearest expired at",
@@ -339,21 +327,21 @@ const ye = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Ve = { class: "flex
339
327
  }
340
328
  }
341
329
  ], g = {
342
- "$connect-STORE_REWARD_COLLECTIONS": fe.readCollectionsByRewardId,
343
- "$connect-CAMPAIGN_VOUCHER_COLLECTIONS": q.readCollectionsByCampaignId
330
+ "$connect-STORE_REWARD_COLLECTIONS": ge.readCollectionsByRewardId,
331
+ "$connect-CAMPAIGN_VOUCHER_COLLECTIONS": P.readCollectionsByCampaignId
344
332
  }, D = (n) => {
345
333
  const l = g[d.name];
346
334
  return (b) => l(n, b);
347
- }, { tableMeta: a, rowData: E, onSort: U, debouncedFetchData: h, onSearch: c } = ce(D(F.value));
348
- async function y() {
335
+ }, { tableMeta: a, rowData: E, onSort: B, debouncedFetchData: v, onSearch: c } = me(D(w.value));
336
+ async function x() {
349
337
  var n;
350
- await h(), (n = w.value) == null || n.showSheet(!1);
338
+ await v(), (n = S.value) == null || n.showSheet(!1);
351
339
  }
352
- async function M() {
353
- k.value || _(
340
+ async function A() {
341
+ F.value || k(
354
342
  async () => {
355
343
  var s;
356
- const n = new xe(), l = (await q.readCollectionsByCampaignId(F.value, {
344
+ const n = new Se(), l = (await P.readCollectionsByCampaignId(w.value, {
357
345
  limit: 1,
358
346
  skip: 0,
359
347
  sortBy: m.sortBy,
@@ -366,15 +354,15 @@ const ye = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Ve = { class: "flex
366
354
  skip: m.page - 1,
367
355
  sortBy: m.sortBy,
368
356
  descending: m.descending
369
- }, L = await q.readCollectionsByCampaignId(
370
- F.value,
357
+ }, M = await P.readCollectionsByCampaignId(
358
+ w.value,
371
359
  C
372
360
  );
373
- for await (const V of L.resources) {
374
- const T = {
361
+ for await (const V of M.resources) {
362
+ const L = {
375
363
  Id: (V == null ? void 0 : V.code) || ((s = V._id) == null ? void 0 : s.toString()) || ""
376
364
  };
377
- n.addRecord(T);
365
+ n.addRecord(L);
378
366
  }
379
367
  m.page++;
380
368
  }
@@ -389,15 +377,15 @@ const ye = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Ve = { class: "flex
389
377
  ), m.page = 1;
390
378
  },
391
379
  {
392
- isLoading: k
380
+ isLoading: F
393
381
  }
394
382
  );
395
383
  }
396
- return se(async () => {
397
- await h();
384
+ return ne(async () => {
385
+ await v();
398
386
  }), (n, l) => {
399
387
  const b = u("FmPageHead"), s = u("FmSearch");
400
- return x(), N(P, null, [
388
+ return y(), R(N, null, [
401
389
  r(b, {
402
390
  title: "Collections",
403
391
  "back-button": !0,
@@ -412,10 +400,10 @@ const ye = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Ve = { class: "flex
412
400
  "onClick:back": l[0] || (l[0] = (e) => o(i).back()),
413
401
  "onClick:action": l[1] || (l[1] = (e) => {
414
402
  var C;
415
- e === "create" && ((C = o(w)) == null || C.showSheet(!0)), e === "export" && M();
403
+ e === "create" && ((C = o(S)) == null || C.showSheet(!0)), e === "export" && A();
416
404
  })
417
405
  }),
418
- v("div", ye, [
406
+ h("div", we, [
419
407
  r(s, {
420
408
  class: "hidden xs:flex border-b border-fm-color-neutral-gray-100",
421
409
  modelValue: o(a).searchValue,
@@ -426,7 +414,7 @@ const ye = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Ve = { class: "flex
426
414
  placeholder: "Search",
427
415
  collapsible: ""
428
416
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
429
- v("div", Ve, [
417
+ h("div", Fe, [
430
418
  r(s, {
431
419
  modelValue: o(a).searchValue,
432
420
  "onUpdate:modelValue": [
@@ -437,22 +425,22 @@ const ye = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Ve = { class: "flex
437
425
  collapsible: ""
438
426
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
439
427
  ]),
440
- r(me, {
428
+ r(pe, {
441
429
  loading: o(a).isLoading,
442
430
  "row-data": o(E),
443
- "column-defs": A,
431
+ "column-defs": q,
444
432
  "row-count": o(a).totalRows,
445
433
  "page-count": o(a).pageCount,
446
434
  "page-index": o(a).pageIndex,
447
435
  "page-size": o(a).pageSize,
448
436
  "shrink-at": !1,
449
- onSortChange: o(U),
450
- onPageChange: l[4] || (l[4] = (e) => o(h)({ pageSize: e.pageSize, pageIndex: e.pageIndex }))
437
+ onSortChange: o(B),
438
+ onPageChange: l[4] || (l[4] = (e) => o(v)({ pageSize: e.pageSize, pageIndex: e.pageIndex }))
451
439
  }, null, 8, ["loading", "row-data", "row-count", "page-count", "page-index", "page-size", "onSortChange"]),
452
- r(he, {
440
+ r(Ve, {
453
441
  ref_key: "sheetRef",
454
- ref: w,
455
- onSuccess: y
442
+ ref: S,
443
+ onSuccess: x
456
444
  }, null, 512)
457
445
  ])
458
446
  ], 64);
@@ -460,5 +448,5 @@ const ye = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Ve = { class: "flex
460
448
  }
461
449
  });
462
450
  export {
463
- Le as default
451
+ $e as default
464
452
  };