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

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-C4_MynWX.js} +10 -10
  2. package/dist/{App-XbDR-3id.js → App-hlqZyd4R.js} +6 -6
  3. package/dist/{Broadcast-BV0fALHZ.js → Broadcast-BqqsoThP.js} +8 -8
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cmq6EQxz.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-P5nMPF4-.js} +6 -6
  5. package/dist/{Card-ni0g9f0W.js → Card-oCKMHTar.js} +21 -22
  6. package/dist/{Collections-CzqFRaQq.js → Collections-DX_tY8Kf.js} +28 -34
  7. package/dist/{Credit-BhaiYIIH.js → Credit-BnUOjfjo.js} +8 -8
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-ByIKDwhp.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-MHFf8UAD.js} +27 -27
  9. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CCPGbV9-.js → EffectSheet.vue_vue_type_style_index_0_lang-DpsYYy14.js} +6 -6
  10. package/dist/{Experience-l24HNuYa.js → Experience-Dc5Y-lES.js} +8 -8
  11. package/dist/{Game-CYR3nNcT.js → Game-r_sCITiE.js} +8 -8
  12. package/dist/{Index-BYC9ThLe.js → Index-ppbyBBbU.js} +9 -9
  13. package/dist/{Marketing-C_oZtbqT.js → Marketing-MpsjOJXt.js} +5 -5
  14. package/dist/{Member-DxAoZFfz.js → Member-B8NQd2MB.js} +4 -4
  15. package/dist/{MemberList-CyHaxFqq.js → MemberList-CYokRc3j.js} +398 -381
  16. package/dist/{MemberTransactions-Ce1N88OQ.js → MemberTransactions-DM6LBtNR.js} +1 -1
  17. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CwF3Vok8.js → MessageInput.vue_vue_type_script_setup_true_lang-BPn30LFE.js} +2 -2
  18. package/dist/{Mission-DdgpqYWl.js → Mission-CveIUM0n.js} +8 -8
  19. package/dist/{Overview-DVcotUZ5.js → Overview-B53mnhkL.js} +18 -18
  20. package/dist/{Point-B56BrM7H.js → Point-BuKZ_7_s.js} +8 -8
  21. package/dist/{Promotion-4yL1H9g5.js → Promotion-Bxeg_jHA.js} +9 -9
  22. package/dist/Record-DGPwDG2x.js +337 -0
  23. package/dist/{Reward-DX5V3RGG.js → Reward-BIak3ZV2.js} +14 -14
  24. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-D9UFAixa.js → RewardGroup.vue_vue_type_script_setup_true_lang-RCTORBPH.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-BzF7Dg58.js} +12 -12
  26. package/dist/{Segment-DKpM-dlV.js → Segment-CwFGTGmM.js} +72 -73
  27. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-4Co06qsp.js → SelectItems.vue_vue_type_script_setup_true_lang-DWW1BMiA.js} +2 -2
  28. package/dist/{Setting-CbV6piRR.js → Setting-BpU3V7FC.js} +8 -8
  29. package/dist/{Store-BIMMzBEA.js → Store-BmzQ5J94.js} +17 -17
  30. package/dist/{StoreRewards-Tr8TXAWt.js → StoreRewards-a4btCX5g.js} +12 -12
  31. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-wPxHMj1_.js → StoreTransactions.vue_vue_type_script_setup_true_lang-IlyXfny9.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-DhOWGk5q.js} +1 -1
  33. package/dist/{Tier-BN3HKQpg.js → Tier-BHOq6Aqg.js} +18 -18
  34. package/dist/{Title-DhDuDHSD.js → Title-DLESKXyK.js} +18 -18
  35. package/dist/{Transaction-Tz3ewMZm.js → Transaction-C9dlvQgb.js} +2 -2
  36. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-w5Cq6L8_.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-z4d8Q8Jy.js} +6 -6
  37. package/dist/{Voucher-CdEDGQkq.js → Voucher-BTzc3xmh.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-BBWktc_y.js} +10 -10
  39. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CFCVdVWx.js → ZodTextField.vue_vue_type_script_setup_true_lang-D9YPGFAr.js} +1 -1
  40. package/dist/{app-oW33KZ3o.js → app-BDUi969b.js} +30 -29
  41. package/dist/{app-Cx8AYCg_.js → app-CRn8LdnG.js} +1 -1
  42. package/dist/app.js +1 -1
  43. package/dist/{business-DjK1cD6M.js → business-X8rRPAfz.js} +1 -1
  44. package/dist/{campaign-DBISpYyM.js → campaign-C8KDR1Eb.js} +2 -2
  45. package/dist/{campaign-D4CDaSod.js → campaign-FXpP8n18.js} +9 -9
  46. package/dist/{campaign.enum-BB6zKvqL.js → campaign.enum-DpHc_AKY.js} +1 -1
  47. package/dist/{campaign.fn-BBuN-vxE.js → campaign.fn-CWbQSsaV.js} +2 -2
  48. package/dist/{collectible.enum-BkzPmWP5.js → collectible.enum-Bc6yW99E.js} +1 -1
  49. package/dist/{collection.fn--9IoH5C8.js → collection.fn--L45oV4w.js} +2 -2
  50. package/dist/{dto-Cf4bZ2Ha.js → dto-pirGeUnW.js} +4 -4
  51. package/dist/{effect-BpSxSe0d.js → effect-YTFtNuVH.js} +1 -1
  52. package/dist/{email-addresses-wHQnOKcN.js → email-addresses-B8bKFPN_.js} +1 -1
  53. package/dist/{export-pg40fbOp.js → export-K8csYP6E.js} +3 -3
  54. package/dist/{helper-vuZmD3vd.js → helper-mK6u9Bg8.js} +1 -1
  55. package/dist/{index-UNh4BJAd.js → index-6IGDKCf8.js} +1 -1
  56. package/dist/{index-K7WU4vc1.js → index-C8ctZEra.js} +1 -1
  57. package/dist/{index-CCRD2tgv.js → index-C8mcPqGM.js} +75 -69
  58. package/dist/{index-t-NFK-AQ.js → index-C96irFRB.js} +1 -1
  59. package/dist/{index-BjcUav4X.js → index-CEZb4fna.js} +3 -3
  60. package/dist/{index-Bl60bODV.js → index-CYHgJwnc.js} +3 -3
  61. package/dist/{index-BbhmmxBp.js → index-CpxH7mdN.js} +4 -4
  62. package/dist/{index-VjvyNKmR.js → index-DE2MpHut.js} +2 -2
  63. package/dist/{index-D6knHtFJ.js → index-DFLG_2P9.js} +1 -1
  64. package/dist/{index-D8CIHJ0z.js → index-DP7HXEr9.js} +1 -1
  65. package/dist/index-F-pD5WRJ.js +32 -0
  66. package/dist/{index-DInxnKvr.js → index-espwcMLv.js} +1 -1
  67. package/dist/index-vh86FiIQ.js +10 -0
  68. package/dist/{index.esm2017-Djt10vTu.js → index.esm2017-BG85b82Z.js} +1 -1
  69. package/dist/{loading-CVE2HNjb.js → loading-DNvnRgpP.js} +4 -4
  70. package/dist/{membership-BLkSVFx9.js → membership-Ja85Dtss.js} +3 -3
  71. package/dist/{money-DqUkifCn.js → money-hL_Dsbxu.js} +1 -1
  72. package/dist/{number-BPlOwScu.js → number-CwTwPu4r.js} +1 -1
  73. package/dist/{objectid-J3u1WeUz.js → objectid-DbcihVwq.js} +4 -4
  74. package/dist/{reward-B9WzNBWQ.js → reward-1byDPYcc.js} +1 -1
  75. package/dist/{rule-FtBYuezP.js → rule-BdWrXdvd.js} +3 -3
  76. package/dist/{rule-builder-caiYx8mw.js → rule-builder-i8OVsDJ3.js} +1 -1
  77. package/dist/{template-C1Iii37r.js → template-CGMDec1D.js} +4 -4
  78. package/dist/{trigger-DEH6eTbm.js → trigger-qTKI0OAW.js} +4 -4
  79. package/dist/{xlsx-DNspY5sG.js → usePagination-BGkqnwZO.js} +3183 -2962
  80. package/dist/{user-DqSmwkKW.js → user-BG8vrTfB.js} +1 -1
  81. package/dist/{vue-i18n-4lC91qO3.js → vue-i18n-DXJ3bXfe.js} +2 -2
  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,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-IlyXfny9.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-DNvnRgpP.js";
3
+ import { D as W } from "./index-CpxH7mdN.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-DNvnRgpP.js";
4
+ import { g as L, a as B } from "./campaign-FXpP8n18.js";
5
+ import { u as X } from "./business-X8rRPAfz.js";
6
+ import { u as Y } from "./campaign-C8KDR1Eb.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-CGMDec1D.js";
10
+ import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-MHFf8UAD.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-DXJ3bXfe.js";
13
+ import { c as _ } from "./index-6IGDKCf8.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-DXJ3bXfe.js";
4
+ import { c as we, p as q, u as ce } from "./loading-DNvnRgpP.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-RCTORBPH.js";
9
+ import { u as ue } from "./reward-1byDPYcc.js";
10
+ import { p as le, q as ye } from "./index-CpxH7mdN.js";
11
+ import "./index-DE2MpHut.js";
12
+ import { a as be, b as xe } from "./index-C8mcPqGM.js";
13
+ import "./index-DFLG_2P9.js";
14
+ import "./index-CYHgJwnc.js";
15
+ import { C as me } from "./membership-Ja85Dtss.js";
16
+ import { t as ee } from "./helper-mK6u9Bg8.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-D9YPGFAr.js";
20
+ import { a as Se, _ as Fe } from "./trigger-qTKI0OAW.js";
21
+ import { O as ke } from "./objectid-DbcihVwq.js";
22
+ import { r as fe } from "./index-F-pD5WRJ.js";
23
+ import { u as $e } from "./business-X8rRPAfz.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-DNvnRgpP.js";
5
+ import { u as X } from "./business-X8rRPAfz.js";
6
+ import { u as Y } from "./campaign-C8KDR1Eb.js";
7
+ import { g as V, a as I } from "./campaign-FXpP8n18.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-MHFf8UAD.js";
10
+ import { u as te } from "./template-CGMDec1D.js";
11
+ import { u as oe } from "./vue-i18n-DXJ3bXfe.js";
12
+ import { c as _ } from "./index-6IGDKCf8.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-DNvnRgpP.js";
5
+ import { u as ee } from "./business-X8rRPAfz.js";
6
+ import { u as oe } from "./campaign-C8KDR1Eb.js";
7
+ import { u as te } from "./vue-i18n-DXJ3bXfe.js";
8
+ import { g as V } from "./campaign-FXpP8n18.js";
9
+ import { e as L } from "./effect-YTFtNuVH.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-MHFf8UAD.js";
12
+ import { u as se } from "./template-CGMDec1D.js";
13
+ import { c as u } from "./index-6IGDKCf8.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-BGkqnwZO.js";
6
+ import { g as z } from "./user-BG8vrTfB.js";
7
+ import { components as v } from "@feedmepos/ui-library";
8
+ import { u as U, a as ae, c as se } from "./loading-DNvnRgpP.js";
9
+ import { u as ie } from "./vue-i18n-DXJ3bXfe.js";
10
+ import { useCoreStore as ne } from "@feedmepos/mf-common";
11
+ import { r as R } from "./index-F-pD5WRJ.js";
12
+ import { c as ce, a as le } from "./object-qECH92oz.js";
13
+ import { u as de } from "./membership-Ja85Dtss.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
+ };
@@ -1,25 +1,25 @@
1
1
  import { defineComponent as X, ref as x, computed as $, resolveComponent as f, openBlock as v, createBlock as U, unref as t, isRef as q, withCtx as A, createElementVNode as u, createVNode as d, createCommentVNode as k, createElementBlock as H, Fragment as Y, h as F, onMounted as G, toDisplayString as B } from "vue";
2
2
  import { _ as z } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as Q, components as L } from "@feedmepos/ui-library";
4
- import { f as j, u as J, p as ee } from "./loading-CVE2HNjb.js";
5
- import { u as W, C as te } from "./membership-BLkSVFx9.js";
6
- import { u as oe } from "./vue-i18n-4lC91qO3.js";
4
+ import { f as j, u as J, p as ee } from "./loading-DNvnRgpP.js";
5
+ import { u as W, C as te } from "./membership-Ja85Dtss.js";
6
+ import { u as oe } from "./vue-i18n-DXJ3bXfe.js";
7
7
  import { c as ae } from "./object-qECH92oz.js";
8
8
  import { Z as O } from "./zod-Bg2FbC-D.js";
9
- import "./index-VjvyNKmR.js";
10
- import { a as N } from "./index-Bl60bODV.js";
9
+ import "./index-DE2MpHut.js";
10
+ import { a as N } from "./index-CYHgJwnc.js";
11
11
  import { useCoreStore as le } from "@feedmepos/mf-common";
12
- import { _ as ne, a as ie } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-CajIUE-r.js";
13
- import { _ as re } from "./EffectSheet.vue_vue_type_style_index_0_lang-CCPGbV9-.js";
12
+ import { _ as ne, a as ie } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-BBWktc_y.js";
13
+ import { _ as re } from "./EffectSheet.vue_vue_type_style_index_0_lang-DpsYYy14.js";
14
14
  import { J as K } from "./JsonViewer-v8_C7l5N.js";
15
- import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CFCVdVWx.js";
16
- import { i as de } from "./helper-vuZmD3vd.js";
17
- import { u as ce, r as M } from "./reward-B9WzNBWQ.js";
18
- import "./index-t-NFK-AQ.js";
19
- import { C as pe } from "./campaign.fn-BBuN-vxE.js";
20
- import { e as me } from "./effect-BpSxSe0d.js";
15
+ import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-D9YPGFAr.js";
16
+ import { i as de } from "./helper-mK6u9Bg8.js";
17
+ import { u as ce, r as M } from "./reward-1byDPYcc.js";
18
+ import "./index-C96irFRB.js";
19
+ import { C as pe } from "./campaign.fn-CWbQSsaV.js";
20
+ import { e as me } from "./effect-YTFtNuVH.js";
21
21
  import { useRouter as ue } from "vue-router";
22
- import { R as fe } from "./app-oW33KZ3o.js";
22
+ import { R as fe } from "./app-BDUi969b.js";
23
23
  const ye = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__ */ X({
24
24
  __name: "EditRewardSheet",
25
25
  emits: ["update"],
@@ -1,18 +1,18 @@
1
1
  import { ref as p, defineComponent as T, computed as x, resolveComponent as y, openBlock as U, createBlock as G, unref as e, isRef as $, withCtx as b, createElementVNode as v, createVNode as u, toDisplayString as j } from "vue";
2
- import { u as B } from "./loading-CVE2HNjb.js";
2
+ import { u as B } from "./loading-DNvnRgpP.js";
3
3
  import { J as P } from "./JsonViewer-v8_C7l5N.js";
4
- import { _ as D } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CFCVdVWx.js";
5
- import { _ as I } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-w5Cq6L8_.js";
4
+ import { _ as D } from "./ZodTextField.vue_vue_type_script_setup_true_lang-D9YPGFAr.js";
5
+ import { _ as I } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-z4d8Q8Jy.js";
6
6
  import { Z as L } from "./zod-Bg2FbC-D.js";
7
7
  import { u as V } from "./app-wDQR6dpb.js";
8
8
  import { defineStore as N } from "pinia";
9
- import { r as k } from "./index-tWez6zPm.js";
10
- import "./index-BbhmmxBp.js";
11
- import "./index-VjvyNKmR.js";
12
- import { c as E } from "./index-CCRD2tgv.js";
13
- import "./index-D6knHtFJ.js";
14
- import "./index-Bl60bODV.js";
15
- import { u as J } from "./vue-i18n-4lC91qO3.js";
9
+ import { r as k } from "./index-F-pD5WRJ.js";
10
+ import "./index-CpxH7mdN.js";
11
+ import "./index-DE2MpHut.js";
12
+ import { c as E } from "./index-C8mcPqGM.js";
13
+ import "./index-DFLG_2P9.js";
14
+ import "./index-CYHgJwnc.js";
15
+ import { u as J } from "./vue-i18n-DXJ3bXfe.js";
16
16
  import { c as C } from "./object-qECH92oz.js";
17
17
  import { useDialog as Z } from "@feedmepos/ui-library";
18
18
  const A = N("mf-connect-referral", () => {
@@ -1,21 +1,21 @@
1
1
  import { defineComponent as I, computed as q, resolveComponent as k, openBlock as n, createElementBlock as V, createElementVNode as R, createVNode as v, unref as e, createTextVNode as te, toDisplayString as W, withCtx as h, onMounted as z, createBlock as f, createCommentVNode as B, ref as $, Fragment as M, renderList as A, normalizeClass as L, watch as me, resolveDynamicComponent as ae, onBeforeMount as re, isRef as ie, createSlots as de } from "vue";
2
- import { a as pe, C as ye, b as ce, c as ve, d as be } from "./index-VjvyNKmR.js";
3
- import { R as D, a as fe } from "./rule-builder-caiYx8mw.js";
4
- import { a as ge, R as S, S as ke, C as P, W as Ee, T as ne, O as Ve } from "./rule-FtBYuezP.js";
5
- import { p as Te } from "./loading-CVE2HNjb.js";
2
+ import { a as pe, C as ye, b as ce, c as ve, d as be } from "./index-DE2MpHut.js";
3
+ import { R as D, a as fe } from "./rule-builder-i8OVsDJ3.js";
4
+ import { a as ge, R as S, S as ke, C as P, W as Ee, T as ne, O as Ve } from "./rule-BdWrXdvd.js";
5
+ import { p as Te } from "./loading-DNvnRgpP.js";
6
6
  import { useDialog as le, useDialogChild as ue } from "@feedmepos/ui-library";
7
7
  import { h as J } from "./moment-BWErdI6_.js";
8
- import { z as Fe } from "./app-oW33KZ3o.js";
9
- import { u as Q } from "./membership-BLkSVFx9.js";
10
- import { u as X } from "./business-DjK1cD6M.js";
8
+ import { z as Fe } from "./app-BDUi969b.js";
9
+ import { u as Q } from "./membership-Ja85Dtss.js";
10
+ import { u as X } from "./business-X8rRPAfz.js";
11
11
  import { _ as Y } from "./CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js";
12
12
  import { c as se } from "./object-qECH92oz.js";
13
13
  import { Z } from "./zod-Bg2FbC-D.js";
14
- import { _ as Se } from "./SelectItems.vue_vue_type_script_setup_true_lang-4Co06qsp.js";
15
- import "./index-BbhmmxBp.js";
16
- import "./index-CCRD2tgv.js";
17
- import "./index-D6knHtFJ.js";
18
- import "./index-Bl60bODV.js";
14
+ import { _ as Se } from "./SelectItems.vue_vue_type_script_setup_true_lang-DWW1BMiA.js";
15
+ import "./index-CpxH7mdN.js";
16
+ import "./index-C8mcPqGM.js";
17
+ import "./index-DFLG_2P9.js";
18
+ import "./index-CYHgJwnc.js";
19
19
  const Ue = { class: "flex items-center justify-between" }, Ce = { class: "flex items-center gap-8 xs:flex-wrap" }, xe = { class: "text-fm-color-primary line-clamp-1 text-ellipsis" }, Re = /* @__PURE__ */ I({
20
20
  __name: "RuleEntry",
21
21
  props: {