@feedmepos/mf-connect 0.1.37-prod → 0.1.38-beta.1

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 (113) hide show
  1. package/dist/Analytic-O-qZWrFp.js +761 -0
  2. package/dist/{App-Bpo0XZSs.js → App-BWZ2EE71.js} +364 -352
  3. package/dist/AuditLogs-DlmcFEta.js +1887 -0
  4. package/dist/{Bin-ohZ2CZZR.js → Bin-C-Ha-4yF.js} +8 -8
  5. package/dist/{Broadcast-D5x0_-zC.js → Broadcast-Bo3QS8lS.js} +40 -40
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CYb38NXA.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-4vUMzH-l.js} +18 -18
  7. package/dist/{Card-BM-Lrm5y.js → Card-Bs1TDE0e.js} +159 -159
  8. package/dist/{Collections-Cr4aoJer.js → Collections-Dy5RN7Js.js} +103 -91
  9. package/dist/{Credit-DzDVFv4H.js → Credit-Bqc4dw1s.js} +74 -74
  10. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +58 -0
  11. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bs8o9n1V.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D6AmN3o3.js} +490 -488
  12. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-koqrPPqM.js → EffectSheet.vue_vue_type_style_index_0_lang-BzwADnKp.js} +91 -89
  13. package/dist/{Experience-CjaDdbvZ.js → Experience-C2e2T7B-.js} +41 -41
  14. package/dist/{FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js → FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js} +2 -6
  15. package/dist/{Game-BuiTygow.js → Game-C86eEhcx.js} +31 -31
  16. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
  17. package/dist/{Index-CQGzUU-w.js → Index-BRGweFco.js} +10 -10
  18. package/dist/Marketing-CnnrnXbS.js +20073 -0
  19. package/dist/{Member-B4S0UNGq.js → Member-B3o0Zhcw.js} +76 -76
  20. package/dist/MemberList-BpE1IjED.js +1606 -0
  21. package/dist/MemberOverview-wL_ailso.js +58 -0
  22. package/dist/{MemberTransactions-DzG1fY0c.js → MemberTransactions-C4hao-d9.js} +1 -1
  23. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-hZUWLTWj.js → MessageInput.vue_vue_type_script_setup_true_lang-D9zfmqLs.js} +36 -36
  24. package/dist/{Mission-BtypT2uF.js → Mission-BURXfzjd.js} +21 -21
  25. package/dist/{Overview-Be7bUtRO.js → Overview-D_hrrM4O.js} +335 -335
  26. package/dist/{Point-Bw4lnLqp.js → Point-CJXkJY5Q.js} +41 -41
  27. package/dist/Promotion-CunJrh42.js +289 -0
  28. package/dist/{Queue-CpPEVgn8.js → Queue-v5Itg9J4.js} +52 -52
  29. package/dist/{Record-DQq4P69i.js → Record-DJe4tg9R.js} +9 -9
  30. package/dist/{Reward-DJH0eM8u.js → Reward-Y9aHpny5.js} +173 -173
  31. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-_kw_PR0h.js → RewardGroup.vue_vue_type_script_setup_true_lang-1KAjCblO.js} +11 -11
  32. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CRGep1RK.js → RuleGroup.vue_vue_type_script_setup_true_lang-Cr99ikbK.js} +635 -548
  33. package/dist/Segment-DVT8uDn8.js +882 -0
  34. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Dx6Ew9Z_.js → SelectItems.vue_vue_type_script_setup_true_lang-BhJ-oVMb.js} +2 -2
  35. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B60_8Toi.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-b5bjfBvc.js} +11 -11
  36. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCaJ3xKT.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DoKAgSLE.js} +3 -3
  37. package/dist/{Setting-GRIUo7vg.js → Setting-BU5778gG.js} +432 -432
  38. package/dist/{Store-H0UDQpln.js → Store-IWg0POAU.js} +211 -211
  39. package/dist/StoreRewards-CIjHcVoh.js +423 -0
  40. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Cx05-OPF.js +1029 -0
  41. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D-jL1oGS.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BcOvr526.js} +1 -1
  42. package/dist/{Tier-CJufQcIz.js → Tier-iN30KD7g.js} +106 -106
  43. package/dist/{Title-BBMgGUld.js → Title-Duh_Srek.js} +133 -131
  44. package/dist/{Transaction-DsucPnfp.js → Transaction-DLBA7Svl.js} +2 -2
  45. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CwOcZEQX.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DLD5d43d.js} +6 -6
  46. package/dist/{Voucher-BPvxKO_w.js → Voucher-cTvlMN0Y.js} +153 -123
  47. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DkjojUvD.js +419 -0
  48. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DMs4XKXM.js → ZodTextField.vue_vue_type_script_setup_true_lang-C5S-bi5J.js} +1 -1
  49. package/dist/{app-Bo0JpadQ.js → app-A3oEKLq5.js} +1 -1
  50. package/dist/{app-D3MT1deX.js → app-De-yQ1CJ.js} +164 -125
  51. package/dist/app.js +4 -3
  52. package/dist/business-B2JBpm4y.js +79 -0
  53. package/dist/{campaign-Z3l7BoMg.js → campaign-Bhur0NJx.js} +9 -9
  54. package/dist/{campaign-j1c3ou7l.js → campaign-vkzui6F2.js} +5 -3
  55. package/dist/{campaign.enum-CVXPc5Pd.js → campaign.enum-DCYkKGhd.js} +1 -1
  56. package/dist/{campaign.fn-rsRhHYZP.js → campaign.fn--affTEi5.js} +75 -75
  57. package/dist/{collectible.enum-CDSikBAy.js → collectible.enum-CLBCnfev.js} +1 -1
  58. package/dist/{collection.fn-Bz38mGMa.js → collection.fn-bA8q0KYy.js} +2 -2
  59. package/dist/{dto-D648NN4s.js → dto-RCcWeYE0.js} +4 -4
  60. package/dist/{effect-DbMAmVSR.js → effect-D7qRfPe_.js} +1 -1
  61. package/dist/{email-addresses-KOVDrRiK.js → email-addresses-a8PqViID.js} +1 -1
  62. package/dist/{export-cTZf8Avd.js → export-BneqNRn4.js} +3 -3
  63. package/dist/{helper-BYyfcLqw.js → helper-DfvvxOyO.js} +1 -1
  64. package/dist/{index-E-0tTd0_.js → index-2LpkG8Ye.js} +1 -1
  65. package/dist/{index-BMl2KZts.js → index-4kMeSNTr.js} +11447 -10969
  66. package/dist/{index-BrKXRxe_.js → index-B0T9GDIZ.js} +1 -1
  67. package/dist/{index-B3p0hmIV.js → index-BWTvsoH0.js} +1 -1
  68. package/dist/index-CMBPIb8x.js +32260 -0
  69. package/dist/{index-DPBHiqsJ.js → index-CTKMdxSm.js} +1 -1
  70. package/dist/index-CVAWGMus.js +56 -0
  71. package/dist/index-CbsJ6vMJ.js +31 -0
  72. package/dist/{index-BTb8I_eB.js → index-CrFUhsZO.js} +1 -1
  73. package/dist/index-CsaQJMAR.js +66 -0
  74. package/dist/{index-CvoShC5J.js → index-CtDqXnOp.js} +535 -460
  75. package/dist/{index-BIaCtk8e.js → index-D0GnMoag.js} +181 -79
  76. package/dist/{index-nF9iYTlh.js → index-DMrIQqFt.js} +1 -1
  77. package/dist/{index-B4MqsaBz.js → index-DeXvASjP.js} +3 -3
  78. package/dist/{index-CTPMbFf5.js → index-y-7yUm2e.js} +10 -9
  79. package/dist/{index.esm2017-DFYwde30.js → index.esm2017-JtyypweZ.js} +127 -127
  80. package/dist/{loading-vUArhX_O.js → loading-a-FqrwqI.js} +1 -1
  81. package/dist/{membership-BHKv29yt.js → membership-CGVtil5J.js} +3 -3
  82. package/dist/{money-Bl3_QRkE.js → money-CTc1l_Cq.js} +1 -1
  83. package/dist/{number-hh_S9w7k.js → number-W3R-0nYP.js} +1 -1
  84. package/dist/objectid-BU0Y8iAN.js +145 -0
  85. package/dist/{plugins-CVes2wzE.js → plugins-D2sSgTSl.js} +2 -2
  86. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  87. package/dist/{reward-ANZOdWzf.js → reward-atP8vnNn.js} +1 -1
  88. package/dist/{rule-builder-BSN777PN.js → rule-builder-BB29ZJ_C.js} +17 -17
  89. package/dist/{rule-BvFk5bQg.js → rule-eA5IvnjB.js} +3 -3
  90. package/dist/style.css +1 -1
  91. package/dist/{template-Dh9lDLs_.js → template-DhBeDaAm.js} +64 -64
  92. package/dist/{trigger-C7THbt7R.js → trigger-Bq_pZj1J.js} +7 -7
  93. package/dist/{usePagination-JoYaROkV.js → usePagination-BeF5K3M7.js} +85 -85
  94. package/dist/{user-DtNR9JY2.js → user-B-bhVFIG.js} +1 -1
  95. package/dist/{vue-i18n-BWyHnm4m.js → vue-i18n-D-h8VDSx.js} +310 -310
  96. package/dist/{xlsx-7u9SB0oa.js → xlsx-DsByAcZl.js} +226 -226
  97. package/package.json +5 -3
  98. package/dist/Analytic-CavR2bzs.js +0 -427
  99. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
  100. package/dist/Marketing-BSspYuhg.js +0 -319
  101. package/dist/MemberList-CfnUJ3mh.js +0 -1606
  102. package/dist/MemberOverview-C2n9oJZh.js +0 -58
  103. package/dist/Promotion-Bg6x0rAh.js +0 -255
  104. package/dist/Segment-BLB4VWNJ.js +0 -882
  105. package/dist/StoreRewards--TNIFaCo.js +0 -423
  106. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CfB8tA5l.js +0 -995
  107. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Bg-9YqLP.js +0 -419
  108. package/dist/business-DMALI7ZO.js +0 -78
  109. package/dist/index-BsCGyJMY.js +0 -29566
  110. package/dist/index-CuvNtC_M.js +0 -61
  111. package/dist/index-DFKmjCG1.js +0 -44
  112. package/dist/index-Dbd4WA4r.js +0 -61
  113. package/dist/objectid-CEyMlMge.js +0 -145
@@ -1,27 +1,26 @@
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";
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";
5
5
  import { h as G } from "./moment-BWErdI6_.js";
6
- import { components as se } from "@feedmepos/ui-library";
7
- import "./index-BsCGyJMY.js";
6
+ import { components as H } from "@feedmepos/ui-library";
7
+ import "./index-CMBPIb8x.js";
8
8
  import { J as re } from "./JsonViewer-v8_C7l5N.js";
9
- import { u as Q } from "./loading-vUArhX_O.js";
9
+ import { u as W } from "./loading-a-FqrwqI.js";
10
10
  import { u as ie } from "./app-wDQR6dpb.js";
11
- import { useRoute as W, useRouter as ue } from "vue-router";
12
- import { c as P } from "./index-B3p0hmIV.js";
11
+ import { useRoute as X, useRouter as ue } from "vue-router";
12
+ import { c as q } from "./index-BWTvsoH0.js";
13
13
  import { e as m } from "./index-vh86FiIQ.js";
14
- import { u as Y, w as de } from "./xlsx-7u9SB0oa.js";
15
- import { g as ce } from "./user-DtNR9JY2.js";
16
- import { u as me, _ as pe } from "./usePagination-JoYaROkV.js";
17
- import { a as fe } from "./plugins-CVes2wzE.js";
18
- import { m as ge } from "./index-DPBHiqsJ.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({
14
+ import { u as Y, w as de } from "./xlsx-DsByAcZl.js";
15
+ import { u as ce, _ as me } from "./usePagination-BeF5K3M7.js";
16
+ import { a as pe } from "./plugins-D2sSgTSl.js";
17
+ import { m as fe } from "./index-CTKMdxSm.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({
21
20
  __name: "CreateCollectionSheet",
22
21
  emits: ["success"],
23
22
  setup(f, { expose: i, emit: d }) {
24
- const { minor: S } = Q, w = W(), F = p(), k = p(!1), q = d, g = p(!1);
23
+ const { minor: w } = W, F = X(), k = p(), _ = p(!1), A = d, g = p(!1);
25
24
  function D(s) {
26
25
  g.value = s, s && (a.value = {
27
26
  quantity: 1,
@@ -56,7 +55,7 @@ const Ce = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
56
55
  value: "single",
57
56
  sublabel: "Enter your own custom codes"
58
57
  }
59
- ], B = [
58
+ ], U = [
60
59
  {
61
60
  label: "Alphanumeric",
62
61
  value: "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
@@ -69,12 +68,12 @@ const Ce = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
69
68
  { label: "Alphabetic Uppercase", value: "ABCDEFGHIJKLMNOPQRSTUVWXYZ" },
70
69
  { label: "Numbers", value: "0123456789" },
71
70
  { label: "Custom", value: "" }
72
- ], v = p(B[0].value), c = p("bulk"), x = p(!1), A = J(() => w.params.id);
71
+ ], h = p(U[0].value), c = p("bulk"), y = p(!1), M = Q(() => F.params.id);
73
72
  async function n(s) {
74
73
  var e;
75
- await ((e = F.value) == null ? void 0 : e.validateInputs()), k.value && await S(
74
+ await ((e = k.value) == null ? void 0 : e.validateInputs()), _.value && await w(
76
75
  async () => {
77
- await P.createCollectionByCampaignId(A.value, s), await q("success");
76
+ await q.createCollectionByCampaignId(M.value, s), await A("success");
78
77
  },
79
78
  {
80
79
  message: "Creating claim(s)",
@@ -105,8 +104,8 @@ const Ce = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
105
104
  s != e && (a.value.codeConfig.pattern = "#".repeat(Math.min(16, Number(s))));
106
105
  }
107
106
  ), (s, e) => {
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, {
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, {
110
109
  "max-width": 560,
111
110
  "dismiss-away": !0,
112
111
  header: "Create collection",
@@ -117,7 +116,7 @@ const Ce = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
117
116
  ]
118
117
  }, {
119
118
  "side-sheet-footer": I(() => [
120
- h("div", xe, [
119
+ v("div", ve, [
121
120
  r($, {
122
121
  label: "Save",
123
122
  onClick: e[12] || (e[12] = (t) => n(o(a))),
@@ -133,23 +132,23 @@ const Ce = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
133
132
  ]),
134
133
  default: I(() => [
135
134
  r(re, { json: o(a) }, null, 8, ["json"]),
136
- r(ee, {
135
+ r(oe, {
137
136
  ref_key: "form",
138
- ref: F,
137
+ ref: k,
139
138
  class: "space-y-40",
140
- onValidationSuccess: e[10] || (e[10] = (t) => k.value = !0),
141
- onValidationFailed: e[11] || (e[11] = (t) => k.value = !1)
139
+ onValidationSuccess: e[10] || (e[10] = (t) => _.value = !0),
140
+ onValidationFailed: e[11] || (e[11] = (t) => _.value = !1)
142
141
  }, {
143
142
  default: I(() => [
144
- h("div", null, [
145
- Ce,
146
- r(M, {
143
+ v("div", null, [
144
+ e[16] || (e[16] = v("div", { class: "fm-typo-en-body-lg-600" }, "Code type", -1)),
145
+ r(L, {
147
146
  modelValue: o(c),
148
147
  "onUpdate:modelValue": e[0] || (e[0] = (t) => j(c) ? c.value = t : null),
149
148
  inline: !1
150
149
  }, {
151
150
  default: I(() => [
152
- (y(), R(N, null, le(E, (t) => r(C, {
151
+ (x(), N(P, null, ne(E, (t) => r(C, {
153
152
  key: t.value,
154
153
  value: t.value,
155
154
  label: t.label,
@@ -159,19 +158,19 @@ const Ce = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
159
158
  _: 1
160
159
  }, 8, ["modelValue"])
161
160
  ]),
162
- h("div", he, [
163
- ve,
164
- o(c) === "bulk" ? (y(), R(N, { key: 0 }, [
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 }, [
165
164
  r(V, {
166
- "model-value": o(x),
165
+ "model-value": o(y),
167
166
  "label-placement": "right",
168
167
  value: "true",
169
168
  label: "Advance code setting",
170
169
  required: !0,
171
- "onUpdate:modelValue": e[1] || (e[1] = () => x.value = !o(x))
170
+ "onUpdate:modelValue": e[1] || (e[1] = () => y.value = !o(y))
172
171
  }, null, 8, ["model-value"]),
173
- o(x) ? (y(), R(N, { key: 0 }, [
174
- r(L, {
172
+ o(y) ? (x(), N(P, { key: 0 }, [
173
+ r(T, {
175
174
  modelValue: o(a).codeConfig.length,
176
175
  "onUpdate:modelValue": e[2] || (e[2] = (t) => o(a).codeConfig.length = t),
177
176
  label: "Code length",
@@ -183,42 +182,42 @@ const Ce = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
183
182
  ],
184
183
  required: !0
185
184
  }, null, 8, ["modelValue", "rules"]),
186
- r(X, {
185
+ r(Z, {
187
186
  label: "Charset",
188
- "model-value": o(v),
189
- items: B,
187
+ "model-value": o(h),
188
+ items: U,
190
189
  "helper-text": o(a).codeConfig.charset.length > 62 ? `${o(a).codeConfig.charset.substring(0, 62)}...` : o(a).codeConfig.charset,
191
190
  "onUpdate:modelValue": e[3] || (e[3] = (t) => {
192
- v.value = t, o(a).codeConfig.charset = t;
191
+ h.value = t, o(a).codeConfig.charset = t;
193
192
  })
194
193
  }, null, 8, ["model-value", "helper-text"]),
195
- o(v) === "" ? (y(), T(_, {
194
+ o(h) === "" ? (x(), z(B, {
196
195
  key: 0,
197
196
  modelValue: o(a).codeConfig.charset,
198
197
  "onUpdate:modelValue": e[4] || (e[4] = (t) => o(a).codeConfig.charset = t),
199
198
  label: "Custom Charset",
200
199
  required: ""
201
- }, null, 8, ["modelValue"])) : U("", !0),
202
- h("div", ye, [
203
- r(_, {
200
+ }, null, 8, ["modelValue"])) : R("", !0),
201
+ v("div", Ce, [
202
+ r(B, {
204
203
  modelValue: o(a).codeConfig.prefix,
205
204
  "onUpdate:modelValue": e[5] || (e[5] = (t) => o(a).codeConfig.prefix = t),
206
205
  label: "Prefix (Optional)"
207
206
  }, null, 8, ["modelValue"]),
208
- r(_, {
207
+ r(B, {
209
208
  modelValue: o(a).codeConfig.suffix,
210
209
  "onUpdate:modelValue": e[6] || (e[6] = (t) => o(a).codeConfig.suffix = t),
211
210
  label: "Suffix (Optional)"
212
211
  }, null, 8, ["modelValue"])
213
212
  ]),
214
- r(_, {
213
+ r(B, {
215
214
  modelValue: o(a).codeConfig.pattern,
216
215
  "onUpdate:modelValue": e[7] || (e[7] = (t) => o(a).codeConfig.pattern = t),
217
216
  label: "Pattern",
218
217
  required: !0
219
218
  }, null, 8, ["modelValue"])
220
- ], 64)) : U("", !0),
221
- r(_, {
219
+ ], 64)) : R("", !0),
220
+ r(B, {
222
221
  modelValue: o(a).quantity,
223
222
  "onUpdate:modelValue": e[8] || (e[8] = (t) => o(a).quantity = t),
224
223
  label: "Number of code",
@@ -229,8 +228,8 @@ const Ce = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
229
228
  required: !0,
230
229
  "helper-text": `${o(a).quantity} claim will be created`
231
230
  }, null, 8, ["modelValue", "rules", "helper-text"])
232
- ], 64)) : U("", !0),
233
- o(c) !== "bulk" ? (y(), T(Z, {
231
+ ], 64)) : R("", !0),
232
+ o(c) !== "bulk" ? (x(), z(ee, {
234
233
  key: 1,
235
234
  modelValue: o(a).code,
236
235
  "onUpdate:modelValue": e[9] || (e[9] = (t) => o(a).code = t),
@@ -241,7 +240,7 @@ const Ce = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
241
240
  (t) => !b(t) || "Custom code must not contain space"
242
241
  ],
243
242
  placeholder: "(For multiple codes, please enter in the new row.)"
244
- }, null, 8, ["modelValue", "rules"])) : U("", !0)
243
+ }, null, 8, ["modelValue", "rules"])) : R("", !0)
245
244
  ])
246
245
  ]),
247
246
  _: 1
@@ -252,7 +251,7 @@ const Ce = /* @__PURE__ */ h("div", { class: "fm-typo-en-body-lg-600" }, "Code t
252
251
  };
253
252
  }
254
253
  });
255
- class Se {
254
+ class xe {
256
255
  constructor() {
257
256
  O(this, "data", []);
258
257
  }
@@ -264,27 +263,27 @@ class Se {
264
263
  return Y.book_append_sheet(i, d, "Collection"), i;
265
264
  }
266
265
  }
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({
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({
268
267
  __name: "Collections",
269
268
  setup(f) {
270
- const i = ue(), d = W(), S = p(), w = J(() => d.params.id), F = p(!1), { custom: k } = Q, q = [
269
+ const i = ue(), d = X(), w = p(), F = Q(() => d.params.id), k = p(!1), { custom: _ } = W, A = [
271
270
  {
272
271
  header: "ID/Code",
273
272
  accessorKey: "_id",
274
273
  cell(n) {
275
- return z("div", { class: "flex items-center" }, [
276
- z(se.FmIcon, {
274
+ return S("div", { class: "flex items-center" }, [
275
+ S(H.FmIcon, {
277
276
  name: "content_copy",
278
277
  outline: !0,
279
278
  size: "sm",
280
279
  class: "cursor-pointer mr-4",
281
280
  onClick: (l) => {
282
- l.preventDefault(), l.stopPropagation(), fe(
281
+ l.preventDefault(), l.stopPropagation(), pe(
283
282
  n.row.original.code || n.row.original._id.toString()
284
283
  );
285
284
  }
286
285
  }),
287
- z(
286
+ S(
288
287
  "div",
289
288
  { class: "pr-2 text-ellipsis overflow-hidden" },
290
289
  n.row.original.code || n.row.original._id.toString()
@@ -298,7 +297,20 @@ const we = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Fe = { class: "flex
298
297
  enableSorting: !1,
299
298
  cell(n) {
300
299
  const l = n.row.original.pf_user;
301
- return ce(l);
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
+ );
302
314
  }
303
315
  },
304
316
  {
@@ -316,7 +328,7 @@ const we = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Fe = { class: "flex
316
328
  {
317
329
  header: "Created at",
318
330
  accessorKey: "_id",
319
- accessorFn: (n) => G(be(n._id.toString())).format("DD MMM YYYY")
331
+ accessorFn: (n) => G(ge(n._id.toString())).format("DD MMM YYYY")
320
332
  },
321
333
  {
322
334
  header: "Nearest expired at",
@@ -327,21 +339,21 @@ const we = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Fe = { class: "flex
327
339
  }
328
340
  }
329
341
  ], g = {
330
- "$connect-STORE_REWARD_COLLECTIONS": ge.readCollectionsByRewardId,
331
- "$connect-CAMPAIGN_VOUCHER_COLLECTIONS": P.readCollectionsByCampaignId
342
+ "$connect-STORE_REWARD_COLLECTIONS": fe.readCollectionsByRewardId,
343
+ "$connect-CAMPAIGN_VOUCHER_COLLECTIONS": q.readCollectionsByCampaignId
332
344
  }, D = (n) => {
333
345
  const l = g[d.name];
334
346
  return (b) => l(n, b);
335
- }, { tableMeta: a, rowData: E, onSort: B, debouncedFetchData: v, onSearch: c } = me(D(w.value));
336
- async function x() {
347
+ }, { tableMeta: a, rowData: E, onSort: U, debouncedFetchData: h, onSearch: c } = ce(D(F.value));
348
+ async function y() {
337
349
  var n;
338
- await v(), (n = S.value) == null || n.showSheet(!1);
350
+ await h(), (n = w.value) == null || n.showSheet(!1);
339
351
  }
340
- async function A() {
341
- F.value || k(
352
+ async function M() {
353
+ k.value || _(
342
354
  async () => {
343
355
  var s;
344
- const n = new Se(), l = (await P.readCollectionsByCampaignId(w.value, {
356
+ const n = new xe(), l = (await q.readCollectionsByCampaignId(F.value, {
345
357
  limit: 1,
346
358
  skip: 0,
347
359
  sortBy: m.sortBy,
@@ -354,15 +366,15 @@ const we = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Fe = { class: "flex
354
366
  skip: m.page - 1,
355
367
  sortBy: m.sortBy,
356
368
  descending: m.descending
357
- }, M = await P.readCollectionsByCampaignId(
358
- w.value,
369
+ }, L = await q.readCollectionsByCampaignId(
370
+ F.value,
359
371
  C
360
372
  );
361
- for await (const V of M.resources) {
362
- const L = {
373
+ for await (const V of L.resources) {
374
+ const T = {
363
375
  Id: (V == null ? void 0 : V.code) || ((s = V._id) == null ? void 0 : s.toString()) || ""
364
376
  };
365
- n.addRecord(L);
377
+ n.addRecord(T);
366
378
  }
367
379
  m.page++;
368
380
  }
@@ -377,15 +389,15 @@ const we = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Fe = { class: "flex
377
389
  ), m.page = 1;
378
390
  },
379
391
  {
380
- isLoading: F
392
+ isLoading: k
381
393
  }
382
394
  );
383
395
  }
384
- return ne(async () => {
385
- await v();
396
+ return se(async () => {
397
+ await h();
386
398
  }), (n, l) => {
387
399
  const b = u("FmPageHead"), s = u("FmSearch");
388
- return y(), R(N, null, [
400
+ return x(), N(P, null, [
389
401
  r(b, {
390
402
  title: "Collections",
391
403
  "back-button": !0,
@@ -400,10 +412,10 @@ const we = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Fe = { class: "flex
400
412
  "onClick:back": l[0] || (l[0] = (e) => o(i).back()),
401
413
  "onClick:action": l[1] || (l[1] = (e) => {
402
414
  var C;
403
- e === "create" && ((C = o(S)) == null || C.showSheet(!0)), e === "export" && A();
415
+ e === "create" && ((C = o(w)) == null || C.showSheet(!0)), e === "export" && M();
404
416
  })
405
417
  }),
406
- h("div", we, [
418
+ v("div", ye, [
407
419
  r(s, {
408
420
  class: "hidden xs:flex border-b border-fm-color-neutral-gray-100",
409
421
  modelValue: o(a).searchValue,
@@ -414,7 +426,7 @@ const we = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Fe = { class: "flex
414
426
  placeholder: "Search",
415
427
  collapsible: ""
416
428
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
417
- h("div", Fe, [
429
+ v("div", Ve, [
418
430
  r(s, {
419
431
  modelValue: o(a).searchValue,
420
432
  "onUpdate:modelValue": [
@@ -425,22 +437,22 @@ const we = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Fe = { class: "flex
425
437
  collapsible: ""
426
438
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
427
439
  ]),
428
- r(pe, {
440
+ r(me, {
429
441
  loading: o(a).isLoading,
430
442
  "row-data": o(E),
431
- "column-defs": q,
443
+ "column-defs": A,
432
444
  "row-count": o(a).totalRows,
433
445
  "page-count": o(a).pageCount,
434
446
  "page-index": o(a).pageIndex,
435
447
  "page-size": o(a).pageSize,
436
448
  "shrink-at": !1,
437
- onSortChange: o(B),
438
- onPageChange: l[4] || (l[4] = (e) => o(v)({ pageSize: e.pageSize, pageIndex: e.pageIndex }))
449
+ onSortChange: o(U),
450
+ onPageChange: l[4] || (l[4] = (e) => o(h)({ pageSize: e.pageSize, pageIndex: e.pageIndex }))
439
451
  }, null, 8, ["loading", "row-data", "row-count", "page-count", "page-index", "page-size", "onSortChange"]),
440
- r(Ve, {
452
+ r(he, {
441
453
  ref_key: "sheetRef",
442
- ref: S,
443
- onSuccess: x
454
+ ref: w,
455
+ onSuccess: y
444
456
  }, null, 512)
445
457
  ])
446
458
  ], 64);
@@ -448,5 +460,5 @@ const we = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Fe = { class: "flex
448
460
  }
449
461
  });
450
462
  export {
451
- $e as default
463
+ Le as default
452
464
  };