@feedmepos/mf-connect 0.1.0-beta.36 → 0.1.0-beta.37

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 (85) hide show
  1. package/dist/{Analytic-BQQMo8gn.js → Analytic-BfWknG6l.js} +10 -10
  2. package/dist/{App-XbDR-3id.js → App-BG_061Wg.js} +6 -6
  3. package/dist/{Broadcast-BV0fALHZ.js → Broadcast-DdpNtoOo.js} +8 -8
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cmq6EQxz.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-od-JjpnA.js} +6 -6
  5. package/dist/{Card-ni0g9f0W.js → Card-Bnng5ta4.js} +21 -22
  6. package/dist/{Collections-CzqFRaQq.js → Collections-DnD4xZ5L.js} +28 -34
  7. package/dist/{Credit-BhaiYIIH.js → Credit-DwblaWn4.js} +8 -8
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-ByIKDwhp.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-COETiGQ4.js} +27 -27
  9. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CCPGbV9-.js → EffectSheet.vue_vue_type_style_index_0_lang-CtEk6tOC.js} +6 -6
  10. package/dist/{Experience-l24HNuYa.js → Experience-Bkn57rfJ.js} +8 -8
  11. package/dist/{Game-CYR3nNcT.js → Game-D0s7bZc-.js} +8 -8
  12. package/dist/{Index-BYC9ThLe.js → Index-D7Zj0U5i.js} +9 -9
  13. package/dist/{Marketing-C_oZtbqT.js → Marketing-CLwzvII4.js} +5 -5
  14. package/dist/{Member-DxAoZFfz.js → Member-D-JxENNb.js} +4 -4
  15. package/dist/{MemberList-CyHaxFqq.js → MemberList-CMTSjTu-.js} +31 -32
  16. package/dist/{MemberTransactions-Ce1N88OQ.js → MemberTransactions-BNcHZfcd.js} +1 -1
  17. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CwF3Vok8.js → MessageInput.vue_vue_type_script_setup_true_lang-B8x9NfzT.js} +2 -2
  18. package/dist/{Mission-DdgpqYWl.js → Mission-B-JhXdXX.js} +8 -8
  19. package/dist/{Overview-DVcotUZ5.js → Overview-BZrK3ETv.js} +18 -18
  20. package/dist/{Point-B56BrM7H.js → Point-Njw7VSo9.js} +8 -8
  21. package/dist/{Promotion-4yL1H9g5.js → Promotion-DjRs0X1X.js} +9 -9
  22. package/dist/Record-BnZXhR7W.js +337 -0
  23. package/dist/{Reward-DX5V3RGG.js → Reward-pD5qUCNJ.js} +14 -14
  24. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-D9UFAixa.js → RewardGroup.vue_vue_type_script_setup_true_lang-u8IT5N_z.js} +10 -10
  25. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-4tF-6JVC.js → RuleGroup.vue_vue_type_script_setup_true_lang-t7vrHFiH.js} +12 -12
  26. package/dist/{Segment-DKpM-dlV.js → Segment-XKjH6MDU.js} +72 -73
  27. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-4Co06qsp.js → SelectItems.vue_vue_type_script_setup_true_lang-CqIHHNJg.js} +2 -2
  28. package/dist/{Setting-CbV6piRR.js → Setting-CjKbl-Em.js} +8 -8
  29. package/dist/{Store-BIMMzBEA.js → Store-BXKK7Ys3.js} +17 -17
  30. package/dist/{StoreRewards-Tr8TXAWt.js → StoreRewards-C8iQ2BTP.js} +12 -12
  31. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-wPxHMj1_.js → StoreTransactions.vue_vue_type_script_setup_true_lang-JdPqalST.js} +17 -17
  32. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CaRE8E-o.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CwfgY4Ft.js} +1 -1
  33. package/dist/{Tier-BN3HKQpg.js → Tier-N95LJoLO.js} +18 -18
  34. package/dist/{Title-DhDuDHSD.js → Title-CpnvvVAV.js} +18 -18
  35. package/dist/{Transaction-Tz3ewMZm.js → Transaction-BEN_EeUx.js} +2 -2
  36. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-w5Cq6L8_.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B3NgCEdV.js} +6 -6
  37. package/dist/{Voucher-CdEDGQkq.js → Voucher-DgxD3oco.js} +11 -11
  38. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CajIUE-r.js → VoucherEditor.vue_vue_type_script_setup_true_lang-D3c0M6ga.js} +10 -10
  39. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CFCVdVWx.js → ZodTextField.vue_vue_type_script_setup_true_lang-BOJwFLp-.js} +1 -1
  40. package/dist/{app-Cx8AYCg_.js → app-D5HD8YMV.js} +1 -1
  41. package/dist/{app-oW33KZ3o.js → app-DGplfyjK.js} +30 -29
  42. package/dist/app.js +1 -1
  43. package/dist/{business-DjK1cD6M.js → business-CO2AZHIm.js} +1 -1
  44. package/dist/{campaign-D4CDaSod.js → campaign-C6_Zmo0L.js} +9 -9
  45. package/dist/{campaign-DBISpYyM.js → campaign-DoM_vfA0.js} +2 -2
  46. package/dist/{campaign.enum-BB6zKvqL.js → campaign.enum-Bkgm7Eui.js} +1 -1
  47. package/dist/{campaign.fn-BBuN-vxE.js → campaign.fn-P4ZkJWZ1.js} +2 -2
  48. package/dist/{collectible.enum-BkzPmWP5.js → collectible.enum-BP3FWmgp.js} +1 -1
  49. package/dist/{collection.fn--9IoH5C8.js → collection.fn-B5hTEOhD.js} +2 -2
  50. package/dist/{dto-Cf4bZ2Ha.js → dto-ao87-Ydo.js} +4 -4
  51. package/dist/{effect-BpSxSe0d.js → effect-BDo1bV-w.js} +1 -1
  52. package/dist/{email-addresses-wHQnOKcN.js → email-addresses-B-oXjMbu.js} +1 -1
  53. package/dist/{export-pg40fbOp.js → export-BJ93wKMJ.js} +3 -3
  54. package/dist/{helper-vuZmD3vd.js → helper-DIBaFgT8.js} +1 -1
  55. package/dist/{index-t-NFK-AQ.js → index-BBW2oNKe.js} +1 -1
  56. package/dist/{index-K7WU4vc1.js → index-BLNNEMcq.js} +1 -1
  57. package/dist/{index-VjvyNKmR.js → index-BX4S_sse.js} +2 -2
  58. package/dist/{index-Bl60bODV.js → index-BY9zfO2Y.js} +3 -3
  59. package/dist/{index-CCRD2tgv.js → index-BxpCMeMY.js} +75 -69
  60. package/dist/{index-D8CIHJ0z.js → index-C6RWHkGF.js} +1 -1
  61. package/dist/{index-D6knHtFJ.js → index-CFg7ea6S.js} +1 -1
  62. package/dist/{index-DInxnKvr.js → index-CcIjFlvm.js} +1 -1
  63. package/dist/{index-BbhmmxBp.js → index-DDoUQHWH.js} +4 -4
  64. package/dist/{index-UNh4BJAd.js → index-H_VNJAQv.js} +1 -1
  65. package/dist/index-KkaBP7vA.js +32 -0
  66. package/dist/{index-BjcUav4X.js → index-sx63iBdE.js} +3 -3
  67. package/dist/index-vh86FiIQ.js +10 -0
  68. package/dist/{index.esm2017-Djt10vTu.js → index.esm2017-NXs90PMj.js} +1 -1
  69. package/dist/{loading-CVE2HNjb.js → loading-Bnuw5L3Y.js} +4 -4
  70. package/dist/{membership-BLkSVFx9.js → membership-CZ_y58_j.js} +3 -3
  71. package/dist/{money-DqUkifCn.js → money-AY6EDrgr.js} +1 -1
  72. package/dist/{number-BPlOwScu.js → number-BbJ6Kbwi.js} +1 -1
  73. package/dist/{objectid-J3u1WeUz.js → objectid-DUKoXb-Y.js} +5 -5
  74. package/dist/{reward-B9WzNBWQ.js → reward-CXtVKCBn.js} +1 -1
  75. package/dist/{rule-FtBYuezP.js → rule-BMKyg1g0.js} +3 -3
  76. package/dist/{rule-builder-caiYx8mw.js → rule-builder-DqRZOJfw.js} +1 -1
  77. package/dist/{template-C1Iii37r.js → template-DJpPUC9p.js} +4 -4
  78. package/dist/{trigger-DEH6eTbm.js → trigger-Jo5dHemf.js} +4 -4
  79. package/dist/{xlsx-DNspY5sG.js → usePagination-BJSz3wZu.js} +3183 -2962
  80. package/dist/{user-DqSmwkKW.js → user-3cRqdGEW.js} +1 -1
  81. package/dist/{vue-i18n-4lC91qO3.js → vue-i18n-DjADG98J.js} +154 -154
  82. package/package.json +1 -1
  83. package/dist/Record-DZ2SbNCg.js +0 -209
  84. package/dist/index-tWez6zPm.js +0 -38
  85. package/dist/usePagination-BeF5K3M7.js +0 -223
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as f, computed as T, ref as d, watch as k, resolveComponent as s, openBlock as _, createElementBlock as B, Fragment as E, createVNode as b, unref as n, createElementVNode as y, createBlock as A, createCommentVNode as L } from "vue";
2
- import "./index-t-NFK-AQ.js";
3
- import { u as M } from "./vue-i18n-4lC91qO3.js";
2
+ import "./index-BBW2oNKe.js";
3
+ import { u as M } from "./vue-i18n-DjADG98J.js";
4
4
  import { useRouter as N } from "vue-router";
5
- import { m as Y } from "./index-D8CIHJ0z.js";
6
- import { R as i } from "./app-oW33KZ3o.js";
5
+ import { m as Y } from "./index-C6RWHkGF.js";
6
+ import { R as i } from "./app-DGplfyjK.js";
7
7
  const h = { class: "px-24 flex flex-col gap-y-16 pb-24" }, g = /* @__PURE__ */ f({
8
8
  __name: "Member",
9
9
  setup(w) {
@@ -1,36 +1,35 @@
1
1
  import { defineComponent as pe, computed as z, ref as Q, resolveComponent as I, openBlock as f, createElementBlock as k, Fragment as L, createElementVNode as n, unref as t, createBlock as j, createCommentVNode as ve, createVNode as v, renderList as ie, withCtx as ge, createTextVNode as Te, toDisplayString as E, withDirectives as Le, vShow as ze, watch as it, onBeforeMount as lt, h as K, onMounted as je, isRef as ct, normalizeClass as dt } from "vue";
2
2
  import { h as _ } from "./moment-BWErdI6_.js";
3
3
  import { useDialog as Ie, components as xe } from "@feedmepos/ui-library";
4
- import { e as mt, M as ut } from "./email-addresses-wHQnOKcN.js";
5
- import { w as pt } from "./xlsx-DNspY5sG.js";
6
- import "./index-t-NFK-AQ.js";
7
- import { p as Ye, c as bt, b as Oe, u as qe } from "./loading-CVE2HNjb.js";
8
- import { u as Ve, C as Re, s as ft } from "./membership-BLkSVFx9.js";
9
- import { c as yt } from "./index-BjcUav4X.js";
4
+ import { e as mt, M as ut } from "./email-addresses-B-oXjMbu.js";
5
+ import { a as qe, _ as Ge, w as pt } from "./usePagination-BJSz3wZu.js";
6
+ import "./index-BBW2oNKe.js";
7
+ import { p as Ye, c as bt, b as Oe, u as Ke } from "./loading-Bnuw5L3Y.js";
8
+ import { u as Ve, C as Re, s as ft } from "./membership-CZ_y58_j.js";
9
+ import { c as yt } from "./index-sx63iBdE.js";
10
10
  import { _ as Ue } from "./lodash-B5I3zXaY.js";
11
11
  import { D as gt } from "./type_drinks-D6jnpvwV.js";
12
- import { i as vt, j as xt, k as ht, l as St, m as _t, d as Fe } from "./index-BbhmmxBp.js";
13
- import { C as Ae } from "./collection.fn--9IoH5C8.js";
14
- import { u as Ge } from "./business-DjK1cD6M.js";
12
+ import { i as vt, j as xt, k as ht, l as St, m as _t, d as Fe } from "./index-DDoUQHWH.js";
13
+ import { C as Ae } from "./collection.fn-B5hTEOhD.js";
14
+ import { u as He } from "./business-CO2AZHIm.js";
15
15
  import { defineStore as Ct } from "pinia";
16
- import { u as wt } from "./campaign-DBISpYyM.js";
17
- import { f as X } from "./number-BPlOwScu.js";
18
- import "./index-VjvyNKmR.js";
19
- import "./index-CCRD2tgv.js";
20
- import "./index-D6knHtFJ.js";
21
- import "./index-Bl60bODV.js";
22
- import { u as Ke, _ as He } from "./usePagination-BeF5K3M7.js";
23
- import { m as We } from "./index-DInxnKvr.js";
16
+ import { u as wt } from "./campaign-DoM_vfA0.js";
17
+ import { f as X } from "./number-BbJ6Kbwi.js";
18
+ import "./index-BX4S_sse.js";
19
+ import "./index-BxpCMeMY.js";
20
+ import "./index-CFg7ea6S.js";
21
+ import "./index-BY9zfO2Y.js";
22
+ import { m as We } from "./index-CcIjFlvm.js";
24
23
  import { s as Tt } from "./index-CsaQJMAR.js";
25
24
  import { o as Me } from "./objectId-dwaoBfJX.js";
26
- import { a as ke } from "./collectible.enum-BkzPmWP5.js";
27
- import { c as Ft, a as Mt } from "./campaign-D4CDaSod.js";
25
+ import { a as ke } from "./collectible.enum-BP3FWmgp.js";
26
+ import { c as Ft, a as Mt } from "./campaign-C6_Zmo0L.js";
28
27
  import { useRouter as Je } from "vue-router";
29
- import { m as le } from "./index-D8CIHJ0z.js";
30
- import { t as kt } from "./index-K7WU4vc1.js";
31
- import { R as Xe } from "./app-oW33KZ3o.js";
32
- import { t as At } from "./money-DqUkifCn.js";
33
- import { g as It, a as Vt, b as Et } from "./user-DqSmwkKW.js";
28
+ import { m as le } from "./index-C6RWHkGF.js";
29
+ import { t as kt } from "./index-BLNNEMcq.js";
30
+ import { R as Xe } from "./app-DGplfyjK.js";
31
+ import { t as At } from "./money-AY6EDrgr.js";
32
+ import { g as It, a as Vt, b as Et } from "./user-3cRqdGEW.js";
34
33
  const $t = { class: "flex flex-col" }, Nt = { key: 1 }, Dt = { class: "flex flex-nowrap gap-4 items-center my-[-4px]" }, Pt = { class: "flex flex-nowrap gap-8 items-center pt-24 w-full" }, Bt = /* @__PURE__ */ pe({
35
34
  __name: "MemberStatsDialog",
36
35
  props: {
@@ -412,7 +411,7 @@ const $t = { class: "flex flex-col" }, Nt = { key: 1 }, Dt = { class: "flex flex
412
411
  setup(y) {
413
412
  const V = y, b = Q({
414
413
  search: ""
415
- }), { tableMeta: u, rowData: c, onSort: a, debouncedFetchData: A, onSearch: C } = Ke(async (T) => {
414
+ }), { tableMeta: u, rowData: c, onSort: a, debouncedFetchData: A, onSearch: C } = qe(async (T) => {
416
415
  const h = {
417
416
  ...b.value,
418
417
  ...V.filters
@@ -461,7 +460,7 @@ const $t = { class: "flex flex-col" }, Nt = { key: 1 }, Dt = { class: "flex flex
461
460
  placeholder: "Search"
462
461
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
463
462
  ]),
464
- v(He, {
463
+ v(Ge, {
465
464
  loading: t(u).isLoading,
466
465
  "row-data": t(c),
467
466
  "row-count": t(u).totalRows,
@@ -709,7 +708,7 @@ const $t = { class: "flex flex-col" }, Nt = { key: 1 }, Dt = { class: "flex flex
709
708
  },
710
709
  emits: ["update:member"],
711
710
  setup(y, { expose: V, emit: b }) {
712
- const u = Je(), c = Ge(), a = Ve(), A = Qe(), C = wt(), T = Ie(), { minor: h } = qe, p = y, Y = b, q = z(() => c.locations.map((o) => ({
711
+ const u = Je(), c = He(), a = Ve(), A = Qe(), C = wt(), T = Ie(), { minor: h } = Ke, p = y, Y = b, q = z(() => c.locations.map((o) => ({
713
712
  label: o.name,
714
713
  value: o._id
715
714
  }))), Z = z(() => (p.member.segment || []).map((o) => {
@@ -1218,10 +1217,10 @@ const $t = { class: "flex flex-col" }, Nt = { key: 1 }, Dt = { class: "flex flex
1218
1217
  }, 8, ["modelValue"]);
1219
1218
  };
1220
1219
  }
1221
- }), Uo = { class: "flex items-center justify-end" }, _n = /* @__PURE__ */ pe({
1220
+ }), Uo = { class: "flex items-center justify-end" }, Sn = /* @__PURE__ */ pe({
1222
1221
  __name: "MemberList",
1223
1222
  setup(y) {
1224
- const V = Qe(), b = Ve(), u = Ge(), { minor: c } = qe, a = Je(), A = [
1223
+ const V = Qe(), b = Ve(), u = He(), { minor: c } = Ke, a = Je(), A = [
1225
1224
  {
1226
1225
  header: "Name",
1227
1226
  enableSorting: !0,
@@ -1348,7 +1347,7 @@ const $t = { class: "flex flex-col" }, Nt = { key: 1 }, Dt = { class: "flex flex
1348
1347
  );
1349
1348
  }
1350
1349
  }
1351
- ], { tableMeta: C, rowData: T, onSort: h, debouncedFetchData: p, onSearch: Y } = Ke(le.read), q = Q(), Z = Q(!1), G = Q(), be = z(() => u.locations.map((s) => ({
1350
+ ], { tableMeta: C, rowData: T, onSort: h, debouncedFetchData: p, onSearch: Y } = qe(le.read), q = Q(), Z = Q(!1), G = Q(), be = z(() => u.locations.map((s) => ({
1352
1351
  label: s.name,
1353
1352
  value: s._id
1354
1353
  })));
@@ -1506,7 +1505,7 @@ const $t = { class: "flex flex-col" }, Nt = { key: 1 }, Dt = { class: "flex flex
1506
1505
  }, null, 512), [
1507
1506
  [ze, t(Z)]
1508
1507
  ]),
1509
- v(He, {
1508
+ v(Ge, {
1510
1509
  loading: t(C).isLoading,
1511
1510
  "row-data": t(T),
1512
1511
  "row-count": t(C).totalRows,
@@ -1534,5 +1533,5 @@ const $t = { class: "flex flex-col" }, Nt = { key: 1 }, Dt = { class: "flex flex
1534
1533
  }
1535
1534
  });
1536
1535
  export {
1537
- _n as default
1536
+ Sn as default
1538
1537
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, ref as p, resolveComponent as _, openBlock as a, createElementBlock as f, createVNode as v, unref as o, createBlock as u, createCommentVNode as b } from "vue";
2
- import { _ as k, a as x } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-wPxHMj1_.js";
2
+ import { _ as k, a as x } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-JdPqalST.js";
3
3
  import { useRouter as y } from "vue-router";
4
4
  const C = { class: "flex flex-col gap-y-32 pb-24" }, F = /* @__PURE__ */ d({
5
5
  __name: "MemberTransactions",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as M, shallowRef as R, openBlock as p, createElementBlock as _, normalizeStyle as O, ref as V, resolveComponent as g, createBlock as E, unref as s, isRef as N, withCtx as x, createVNode as h, createElementVNode as v, createCommentVNode as B, withDirectives as D, vShow as A, computed as q, onMounted as J, Fragment as U, createTextVNode as P, toDisplayString as z, renderList as G } from "vue";
2
- import { p as K } from "./loading-CVE2HNjb.js";
3
- import { D as W } from "./index-BbhmmxBp.js";
2
+ import { p as K } from "./loading-Bnuw5L3Y.js";
3
+ import { D as W } from "./index-DDoUQHWH.js";
4
4
  import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import { _ as Q, S as X } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js";
6
6
  import { c as Y } from "./object-qECH92oz.js";
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as E, ref as M, computed as $, h as d, onMounted as H, resolveComponent as l, openBlock as p, createElementBlock as h, Fragment as w, createVNode as c, unref as t, createElementVNode as s, withCtx as x, renderList as q, createBlock as b, resolveDynamicComponent as z, toDisplayString as u } from "vue";
2
2
  import { _ as W } from "./campaign-CpzFl8Vr.js";
3
- import { a as G, p as J, u as Q } from "./loading-CVE2HNjb.js";
4
- import { g as L, a as B } from "./campaign-D4CDaSod.js";
5
- import { u as X } from "./business-DjK1cD6M.js";
6
- import { u as Y } from "./campaign-DBISpYyM.js";
3
+ import { a as G, p as J, u as Q } from "./loading-Bnuw5L3Y.js";
4
+ import { g as L, a as B } from "./campaign-C6_Zmo0L.js";
5
+ import { u as X } from "./business-CO2AZHIm.js";
6
+ import { u as Y } from "./campaign-DoM_vfA0.js";
7
7
  import { useDialog as Z, components as v } from "@feedmepos/ui-library";
8
8
  import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
9
- import { u as oe } from "./template-C1Iii37r.js";
10
- import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-ByIKDwhp.js";
9
+ import { u as oe } from "./template-DJpPUC9p.js";
10
+ import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-COETiGQ4.js";
11
11
  import { s as ne } from "./index-CsaQJMAR.js";
12
- import { u as ae } from "./vue-i18n-4lC91qO3.js";
13
- import { c as _ } from "./index-UNh4BJAd.js";
12
+ import { u as ae } from "./vue-i18n-DjADG98J.js";
13
+ import { c as _ } from "./index-H_VNJAQv.js";
14
14
  const se = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-center justify-between w-full" }, ce = { class: "flex gap-8 overflow-x-auto" }, re = { class: "space-y-8" }, le = { class: "flex w-full gap-4 items-center" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "space-y-4" }, pe = { class: "fm-typo-en-body-lg-600" }, ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = /* @__PURE__ */ E({
15
15
  __name: "Mission",
16
16
  setup(he) {
@@ -1,26 +1,26 @@
1
1
  import { defineComponent as Y, resolveComponent as _, openBlock as S, createElementBlock as E, Fragment as z, createVNode as d, withCtx as V, createElementVNode as a, toDisplayString as O, unref as t, renderSlot as he, ref as F, computed as G, watch as se, createBlock as j, isRef as J, resolveDynamicComponent as ne, renderList as re, normalizeClass as ie, createTextVNode as de, createCommentVNode as W, h as te, onMounted as ve } from "vue";
2
2
  import { _ as ge } from "./campaign-CpzFl8Vr.js";
3
- import { u as Z } from "./vue-i18n-4lC91qO3.js";
4
- import { c as we, p as q, u as ce } from "./loading-CVE2HNjb.js";
3
+ import { u as Z } from "./vue-i18n-DjADG98J.js";
4
+ import { c as we, p as q, u as ce } from "./loading-Bnuw5L3Y.js";
5
5
  import { J as X } from "./JsonViewer-v8_C7l5N.js";
6
6
  import { Z as N } from "./zod-Bg2FbC-D.js";
7
7
  import { u as K } from "./app-wDQR6dpb.js";
8
- import { u as Q, _ as _e } from "./RewardGroup.vue_vue_type_script_setup_true_lang-D9UFAixa.js";
9
- import { u as ue } from "./reward-B9WzNBWQ.js";
10
- import { p as le, q as ye } from "./index-BbhmmxBp.js";
11
- import "./index-VjvyNKmR.js";
12
- import { a as be, b as xe } from "./index-CCRD2tgv.js";
13
- import "./index-D6knHtFJ.js";
14
- import "./index-Bl60bODV.js";
15
- import { C as me } from "./membership-BLkSVFx9.js";
16
- import { t as ee } from "./helper-vuZmD3vd.js";
8
+ import { u as Q, _ as _e } from "./RewardGroup.vue_vue_type_script_setup_true_lang-u8IT5N_z.js";
9
+ import { u as ue } from "./reward-CXtVKCBn.js";
10
+ import { p as le, q as ye } from "./index-DDoUQHWH.js";
11
+ import "./index-BX4S_sse.js";
12
+ import { a as be, b as xe } from "./index-BxpCMeMY.js";
13
+ import "./index-CFg7ea6S.js";
14
+ import "./index-BY9zfO2Y.js";
15
+ import { C as me } from "./membership-CZ_y58_j.js";
16
+ import { t as ee } from "./helper-DIBaFgT8.js";
17
17
  import { c as H } from "./object-qECH92oz.js";
18
18
  import { useDialog as Re, components as oe } from "@feedmepos/ui-library";
19
- import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CFCVdVWx.js";
20
- import { a as Se, _ as Fe } from "./trigger-DEH6eTbm.js";
21
- import { O as ke } from "./objectid-J3u1WeUz.js";
22
- import { r as fe } from "./index-tWez6zPm.js";
23
- import { u as $e } from "./business-DjK1cD6M.js";
19
+ import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BOJwFLp-.js";
20
+ import { a as Se, _ as Fe } from "./trigger-Jo5dHemf.js";
21
+ import { O as ke } from "./objectid-DUKoXb-Y.js";
22
+ import { r as fe } from "./index-KkaBP7vA.js";
23
+ import { u as $e } from "./business-CO2AZHIm.js";
24
24
  const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, Ie = { class: "flex-1" }, Te = { class: "flex items-center gap-8" }, Ue = { class: "fm-typo-en-title-sm-800" }, Ae = { class: "flex gap-8 items-center" }, Le = { class: "space-y-4 hidden xs:block border-b border-fm-color-neutral-gray-100 px-16 flex-1 pb-24" }, Be = { class: "flex items-center justify-between" }, Ee = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, Oe = { class: "flex-1 space-y-4" }, je = { class: "fm-typo-en-body-lg-600" }, De = /* @__PURE__ */ Y({
25
25
  __name: "ReferralRewadGroupCard",
26
26
  props: {
@@ -275,8 +275,8 @@ const Pe = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ve =
275
275
  }, 8, ["modelValue", "rules"])
276
276
  ]),
277
277
  d(g, {
278
- text: t(N).helperText(t(T), "option"),
279
- state: t(N).helperState(t(T), "option")
278
+ text: t(N).helperText(t(T), "threshold"),
279
+ state: t(N).helperState(t(T), "threshold")
280
280
  }, null, 8, ["text", "state"]),
281
281
  r[5] || (r[5] = a("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " When max. referral count is not set, it will default unlimited ", -1))
282
282
  ]),
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as j, ref as P, computed as A, h as E, onMounted as M, resolveComponent as l, openBlock as d, createElementBlock as w, Fragment as b, createVNode as r, unref as t, withCtx as g, createElementVNode as n, toDisplayString as c, renderList as H, createBlock as x, resolveDynamicComponent as q } from "vue";
2
2
  import { _ as z } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as G, components as J } from "@feedmepos/ui-library";
4
- import { p as Q, u as W } from "./loading-CVE2HNjb.js";
5
- import { u as X } from "./business-DjK1cD6M.js";
6
- import { u as Y } from "./campaign-DBISpYyM.js";
7
- import { g as V, a as I } from "./campaign-D4CDaSod.js";
4
+ import { p as Q, u as W } from "./loading-Bnuw5L3Y.js";
5
+ import { u as X } from "./business-CO2AZHIm.js";
6
+ import { u as Y } from "./campaign-DoM_vfA0.js";
7
+ import { g as V, a as I } from "./campaign-C6_Zmo0L.js";
8
8
  import { _ as Z } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
9
- import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-ByIKDwhp.js";
10
- import { u as te } from "./template-C1Iii37r.js";
11
- import { u as oe } from "./vue-i18n-4lC91qO3.js";
12
- import { c as _ } from "./index-UNh4BJAd.js";
9
+ import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-COETiGQ4.js";
10
+ import { u as te } from "./template-DJpPUC9p.js";
11
+ import { u as oe } from "./vue-i18n-DjADG98J.js";
12
+ import { c as _ } from "./index-H_VNJAQv.js";
13
13
  const ae = { class: "flex items-center" }, ne = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, se = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-center justify-between w-full" }, re = { class: "flex gap-8 overflow-x-auto" }, le = { class: "space-y-8" }, ce = { class: "flex w-full gap-4 items-center" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "space-y-4" }, pe = { class: "fm-typo-en-body-lg-600" }, ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "flex flex-col gap-16 text-center" }, ge = { class: "fm-typo-en-title-sm-800" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Be = /* @__PURE__ */ j({
14
14
  __name: "Point",
15
15
  setup(he) {
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as H, ref as S, computed as q, h as z, onMounted as G, resolveComponent as r, openBlock as m, createElementBlock as h, Fragment as w, createVNode as i, unref as a, createElementVNode as s, withCtx as v, renderList as J, createBlock as b, resolveDynamicComponent as Q, toDisplayString as g } from "vue";
2
2
  import { _ as W } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as X, components as Y } from "@feedmepos/ui-library";
4
- import { c as O, p as I, u as Z } from "./loading-CVE2HNjb.js";
5
- import { u as ee } from "./business-DjK1cD6M.js";
6
- import { u as oe } from "./campaign-DBISpYyM.js";
7
- import { u as te } from "./vue-i18n-4lC91qO3.js";
8
- import { g as V } from "./campaign-D4CDaSod.js";
9
- import { e as L } from "./effect-BpSxSe0d.js";
4
+ import { c as O, p as I, u as Z } from "./loading-Bnuw5L3Y.js";
5
+ import { u as ee } from "./business-CO2AZHIm.js";
6
+ import { u as oe } from "./campaign-DoM_vfA0.js";
7
+ import { u as te } from "./vue-i18n-DjADG98J.js";
8
+ import { g as V } from "./campaign-C6_Zmo0L.js";
9
+ import { e as L } from "./effect-BDo1bV-w.js";
10
10
  import { _ as ne } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
11
- import { _ as ae } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-ByIKDwhp.js";
12
- import { u as se } from "./template-C1Iii37r.js";
13
- import { c as u } from "./index-UNh4BJAd.js";
11
+ import { _ as ae } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-COETiGQ4.js";
12
+ import { u as se } from "./template-DJpPUC9p.js";
13
+ import { c as u } from "./index-H_VNJAQv.js";
14
14
  const ce = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-center justify-between w-full" }, re = { class: "flex gap-8 overflow-x-auto" }, le = { class: "space-y-8" }, me = { class: "flex w-full gap-4 items-center" }, pe = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le = /* @__PURE__ */ H({
15
15
  __name: "Promotion",
16
16
  setup(_e) {
@@ -0,0 +1,337 @@
1
+ var K = Object.defineProperty;
2
+ var W = (g, i, m) => i in g ? K(g, i, { enumerable: !0, configurable: !0, writable: !0, value: m }) : g[i] = m;
3
+ var $ = (g, i, m) => W(g, typeof i != "symbol" ? i + "" : i, m);
4
+ import { defineComponent as A, ref as V, computed as q, resolveComponent as x, openBlock as B, createBlock as G, unref as s, isRef as H, withCtx as J, createElementBlock as T, createVNode as C, withModifiers as Q, createCommentVNode as X, createElementVNode as I, h as S, onMounted as Z, Fragment as ee } from "vue";
5
+ import { u as D, a as re, _ as te, w as oe } from "./usePagination-BJSz3wZu.js";
6
+ import { g as z } from "./user-3cRqdGEW.js";
7
+ import { components as v } from "@feedmepos/ui-library";
8
+ import { u as U, a as ae, c as se } from "./loading-Bnuw5L3Y.js";
9
+ import { u as ie } from "./vue-i18n-DjADG98J.js";
10
+ import { useCoreStore as ne } from "@feedmepos/mf-common";
11
+ import { r as R } from "./index-KkaBP7vA.js";
12
+ import { c as ce, a as le } from "./object-qECH92oz.js";
13
+ import { u as de } from "./membership-CZ_y58_j.js";
14
+ import { e as f } from "./index-vh86FiIQ.js";
15
+ import { h as me } from "./moment-BWErdI6_.js";
16
+ import { o as ue } from "./objectId-dwaoBfJX.js";
17
+ const pe = {
18
+ key: 0,
19
+ class: "flex justify-end mb-16"
20
+ }, fe = { class: "flex flex-col space-y-16 pr-12" }, ge = /* @__PURE__ */ A({
21
+ __name: "UpdateCriteriaProgressSheet",
22
+ emits: ["refresh"],
23
+ setup(g, { expose: i, emit: m }) {
24
+ const k = m;
25
+ ie();
26
+ const { minor: u } = U, h = V(!1), n = V({}), y = ne(), F = [
27
+ {
28
+ header: "Criteria title",
29
+ accessorFn: (t) => t.name
30
+ },
31
+ {
32
+ header: "Status",
33
+ cell(t) {
34
+ var p;
35
+ const e = t.row.original, o = (p = n.value.criteria_progress) == null ? void 0 : p.find(
36
+ (w) => w.criteria === e._id
37
+ ), c = o ? "Completed" : "Pending", l = o ? "text-fm-color-typo-success bg-fm-color-system-success-100" : "text-fm-color-typo-warning bg-fm-color-system-warning-100";
38
+ return [
39
+ S(v.FmChip, {
40
+ label: c,
41
+ compact: !0,
42
+ class: l
43
+ })
44
+ ];
45
+ }
46
+ },
47
+ {
48
+ id: "actions",
49
+ cell(t) {
50
+ var c;
51
+ const e = t.row.original;
52
+ return [
53
+ !((c = n.value.criteria_progress) == null ? void 0 : c.some(
54
+ (l) => l.criteria === e._id
55
+ )) && e.type == "MANUAL" ? S(v.FmButton, {
56
+ variant: "secondary",
57
+ label: "Mark as completed",
58
+ size: "md",
59
+ onClick: (l) => {
60
+ l.stopPropagation(), r(e._id.toString());
61
+ }
62
+ }) : null
63
+ ];
64
+ }
65
+ }
66
+ ], M = q(() => {
67
+ var e, o, c, l;
68
+ return (((o = (e = n.value) == null ? void 0 : e.criteria_progress) == null ? void 0 : o.filter(
69
+ (p) => {
70
+ var w;
71
+ return (w = n.value) == null ? void 0 : w.criteria.some(
72
+ (d) => d._id.toString() === p.criteria.toString()
73
+ );
74
+ }
75
+ )) || []).length == ((c = n.value) == null ? void 0 : c.criteria.length) && ((l = n.value) == null ? void 0 : l.status) != "COMPLETED";
76
+ });
77
+ async function r(t) {
78
+ var o;
79
+ const e = ce(le(n.value));
80
+ e.criteria_progress = [
81
+ {
82
+ criteria: t,
83
+ ref: `ADMIN:${(o = y.user) == null ? void 0 : o.id}:${(/* @__PURE__ */ new Date()).toISOString()}`,
84
+ completedAt: /* @__PURE__ */ new Date()
85
+ }
86
+ ], u(
87
+ async () => {
88
+ await R.updateCriteriaProgress(
89
+ n.value._id,
90
+ e
91
+ ), h.value = !1, k("refresh");
92
+ },
93
+ {
94
+ message: "Updating criteria progress",
95
+ successMessage: "Criteria progress updated successfully"
96
+ }
97
+ );
98
+ }
99
+ function a(t, e) {
100
+ h.value = t, n.value = e;
101
+ }
102
+ function _() {
103
+ h.value = !1;
104
+ }
105
+ return i({
106
+ showSheet: a,
107
+ hideSheet: _,
108
+ data: n
109
+ }), (t, e) => {
110
+ const o = x("FmButton"), c = x("FmTable"), l = x("FmSideSheet");
111
+ return B(), G(l, {
112
+ "max-width": 768,
113
+ modelValue: s(h),
114
+ "onUpdate:modelValue": e[1] || (e[1] = (p) => H(h) ? h.value = p : null),
115
+ header: "Referee Criteria"
116
+ }, {
117
+ default: J(() => [
118
+ s(M) ? (B(), T("div", pe, [
119
+ C(o, {
120
+ icon: "refresh",
121
+ label: "Refresh",
122
+ onClick: e[0] || (e[0] = Q((p) => r(s(n)._id), ["stop"]))
123
+ })
124
+ ])) : X("", !0),
125
+ I("div", fe, [
126
+ C(c, {
127
+ "row-data": s(n).criteria,
128
+ "hide-footer": !0,
129
+ "page-size": 100,
130
+ "column-defs": F
131
+ }, null, 8, ["row-data"])
132
+ ])
133
+ ]),
134
+ _: 1
135
+ }, 8, ["modelValue"]);
136
+ };
137
+ }
138
+ });
139
+ class he {
140
+ constructor() {
141
+ $(this, "data", []);
142
+ }
143
+ addRecord(i) {
144
+ this.data.push(i);
145
+ }
146
+ buildExcel() {
147
+ const i = D.book_new(), m = D.json_to_sheet(this.data);
148
+ return D.book_append_sheet(i, m, "Referrals"), i;
149
+ }
150
+ }
151
+ const _e = { class: "flex items-center justify-end" }, Be = /* @__PURE__ */ A({
152
+ __name: "Record",
153
+ setup(g) {
154
+ de();
155
+ const { minor: i } = U, m = V(null), k = [
156
+ {
157
+ header: "ID",
158
+ meta: {
159
+ maxWidth: "100px"
160
+ },
161
+ cell(r) {
162
+ return S("div", { class: "flex items-center" }, [
163
+ S(v.FmIcon, {
164
+ name: "content_copy",
165
+ outline: !0,
166
+ size: "sm",
167
+ class: "cursor-pointer mr-4",
168
+ onClick: (a) => {
169
+ a.preventDefault(), a.stopPropagation(), ae(r.row.original._id.toString());
170
+ }
171
+ }),
172
+ S(
173
+ "div",
174
+ { class: "pr-2 text-ellipsis overflow-hidden" },
175
+ r.row.original._id.toString()
176
+ )
177
+ ]);
178
+ },
179
+ enableSorting: !1
180
+ },
181
+ {
182
+ header: "Referer info",
183
+ enableSorting: !0,
184
+ cell(r) {
185
+ return r.row.original.pf_referer ? z(r.row.original.pf_referer, !0) : "N/A";
186
+ }
187
+ },
188
+ {
189
+ header: "Referee info",
190
+ enableSorting: !0,
191
+ cell(r) {
192
+ return r.row.original.pf_referee ? z(r.row.original.pf_referee, !0) : "N/A";
193
+ }
194
+ },
195
+ {
196
+ header: "Referee criteria",
197
+ accessorKey: "criteria",
198
+ id: "criteria",
199
+ cell(r) {
200
+ var e;
201
+ const _ = (((e = r.row.original.criteria_progress) == null ? void 0 : e.filter(
202
+ (o) => r.row.original.criteria.some(
203
+ (c) => c._id.toString() === o.criteria.toString()
204
+ )
205
+ )) || []).length, t = r.row.original.criteria.length;
206
+ return t === 0 ? S("div", "No criteria") : S("div", `${_}/${t} completed criteria`);
207
+ }
208
+ },
209
+ {
210
+ header: "Status",
211
+ id: "status",
212
+ cell(r) {
213
+ const a = r.row.original.status;
214
+ return S(v.FmChip, {
215
+ label: se.title(a.replace("_", " ")),
216
+ compact: !0,
217
+ class: a == "COMPLETED" ? "text-fm-color-typo-success bg-fm-color-system-success-100" : "text-fm-color-typo-primary bg-fm-color-system-primary-100"
218
+ });
219
+ }
220
+ }
221
+ ], { tableMeta: u, rowData: h, onSort: n, debouncedFetchData: y, onSearch: F } = re(R.readRecords);
222
+ async function M() {
223
+ const r = new he(), a = (await R.readRecords({
224
+ limit: 1,
225
+ skip: 0,
226
+ sortBy: f.sortBy,
227
+ descending: f.descending
228
+ })).meta.totalResources ?? 0, _ = f.rowsPerPage;
229
+ await i(
230
+ async () => {
231
+ var t, e, o, c;
232
+ for (let l = 0; l < a; l += _) {
233
+ const p = {
234
+ ...f,
235
+ limit: _,
236
+ skip: f.page - 1,
237
+ sortBy: f.sortBy,
238
+ descending: f.descending
239
+ }, w = await R.readRecords(p);
240
+ for (const d of w.resources) {
241
+ const N = (d.criteria || []).reduce(
242
+ (b, P) => {
243
+ var E;
244
+ const L = ((E = d.criteria_progress) == null ? void 0 : E.filter(
245
+ (O) => d.criteria.some(
246
+ (Y) => Y._id.toString() === O.criteria.toString()
247
+ )
248
+ )) || [];
249
+ return b[P.name] = L.length > 0 ? "Completed" : "In Progress", b;
250
+ },
251
+ {}
252
+ );
253
+ console.log(N);
254
+ const j = {
255
+ ID: d._id.toString(),
256
+ RefererName: ((t = d.pf_referer) == null ? void 0 : t.name) ?? "",
257
+ RefererPhone: ((e = d.pf_referer) == null ? void 0 : e.phoneNumber) ?? "",
258
+ RefereeName: ((o = d.pf_referee) == null ? void 0 : o.name) ?? "",
259
+ RefereePhone: ((c = d.pf_referee) == null ? void 0 : c.phoneNumber) ?? "",
260
+ ReferredAt: me(ue(d._id)).format(
261
+ "DD/MM/YYYY"
262
+ ),
263
+ Status: d.status,
264
+ Criteria: Object.entries(N).map(([b, P]) => `${b}: ${P}`).join(", ")
265
+ };
266
+ r.addRecord(j);
267
+ }
268
+ f.page++;
269
+ }
270
+ await oe(
271
+ r.buildExcel(),
272
+ `referrals-${(/* @__PURE__ */ new Date()).toISOString()}.xlsx`,
273
+ {
274
+ bookType: "xlsx",
275
+ bookSST: !1,
276
+ type: "array"
277
+ }
278
+ ), f.page = 1;
279
+ },
280
+ {
281
+ message: "Exporting referral records...",
282
+ successMessage: "Referral record exported successfully"
283
+ }
284
+ );
285
+ }
286
+ return Z(async () => {
287
+ await y();
288
+ }), (r, a) => {
289
+ const _ = x("FmSearch"), t = x("FmButton");
290
+ return B(), T(ee, null, [
291
+ I("div", null, [
292
+ I("div", _e, [
293
+ C(_, {
294
+ class: "mt-4",
295
+ modelValue: s(u).searchValue,
296
+ "onUpdate:modelValue": [
297
+ a[0] || (a[0] = (e) => s(u).searchValue = e),
298
+ s(F)
299
+ ],
300
+ placeholder: "Search",
301
+ collapsible: ""
302
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]),
303
+ C(t, {
304
+ icon: "ios_share",
305
+ variant: "tertiary",
306
+ onClick: M
307
+ })
308
+ ]),
309
+ C(te, {
310
+ loading: s(u).isLoading,
311
+ "row-data": s(h),
312
+ "row-count": s(u).totalRows,
313
+ "column-defs": k,
314
+ "shrink-at": !1,
315
+ "page-count": s(u).pageCount,
316
+ "page-index": s(u).pageIndex,
317
+ "page-size": s(u).pageSize,
318
+ onSortChange: s(n),
319
+ onPageChange: a[1] || (a[1] = (e) => s(y)({ pageSize: e.pageSize, pageIndex: e.pageIndex })),
320
+ onRowClick: a[2] || (a[2] = (e) => {
321
+ var o;
322
+ return (o = s(m)) == null ? void 0 : o.showSheet(!0, e.original);
323
+ })
324
+ }, null, 8, ["loading", "row-data", "row-count", "page-count", "page-index", "page-size", "onSortChange"])
325
+ ]),
326
+ C(ge, {
327
+ ref_key: "updateCriteriaProgressSheetRef",
328
+ ref: m,
329
+ onRefresh: s(y)
330
+ }, null, 8, ["onRefresh"])
331
+ ], 64);
332
+ };
333
+ }
334
+ });
335
+ export {
336
+ Be as default
337
+ };