@feedmepos/mf-connect 0.1.71-prod → 0.1.73-prod

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/{Analytic-DIzZEv_G.js → Analytic-B1W9EOk7.js} +163 -163
  2. package/dist/{App-DrnbBc_l.js → App-Bdf0nl59.js} +7 -7
  3. package/dist/{Bin-Bt_ru3Gd.js → Bin-CbfpIfVr.js} +8 -8
  4. package/dist/{Broadcast-Bn5ZjKqo.js → Broadcast-vuYGNulD.js} +8 -8
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BojGwK_6.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CImqySbX.js} +6 -6
  6. package/dist/{Card-sBhDvBXT.js → Card-DHF1XqjW.js} +16 -16
  7. package/dist/{Collections-Duct2pSH.js → Collections-BIMKG7_n.js} +7 -7
  8. package/dist/{Credit-D3mJTvRc.js → Credit-WIdPS8S7.js} +8 -8
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-_60iFOeG.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bdj5fWXV.js} +817 -794
  10. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CT98kjU_.js +348 -0
  11. package/dist/{Experience-CIGwlErx.js → Experience-1wdYeoH4.js} +8 -8
  12. package/dist/{Game-Canf-7L-.js → Game-B1AymuDu.js} +9 -9
  13. package/dist/{Index-25eVdVm7.js → Index-DvALk6U2.js} +10 -10
  14. package/dist/{Marketing-krqaA6fv.js → Marketing-CXO2CCnd.js} +6 -6
  15. package/dist/{Member-Bt0NaXiS.js → Member-Cy4gIjVX.js} +10 -10
  16. package/dist/{MemberList-CXk-T9r2.js → MemberList-Cn9Vq2ju.js} +25 -25
  17. package/dist/{MemberTransactions-Dg-A6a0v.js → MemberTransactions-BihHL2f-.js} +1 -1
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DtpDrupj.js → MessageInput.vue_vue_type_script_setup_true_lang-B_MnLb-p.js} +7 -7
  19. package/dist/{Mission-CsxpvhsB.js → Mission-CqJOvxSl.js} +9 -9
  20. package/dist/{Overview-BUlq3MuQ.js → Overview-3dm9ZLF3.js} +18 -18
  21. package/dist/{Point-DvPTk5wL.js → Point-CutXdajU.js} +8 -8
  22. package/dist/{Promotion-BWygpn4X.js → Promotion-BVrD0SHM.js} +9 -9
  23. package/dist/{Queue-iD4D04Z-.js → Queue-CMOKwBqW.js} +10 -10
  24. package/dist/{Record-CritfdkX.js → Record-DVIEw8NX.js} +8 -8
  25. package/dist/{Reward-DuZ73-kd.js → Reward-C83nQRHE.js} +15 -15
  26. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B1073xkE.js → RewardGroup.vue_vue_type_script_setup_true_lang-Cg3sohaO.js} +11 -11
  27. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-1CJRrkoS.js → RuleGroup.vue_vue_type_script_setup_true_lang-Ato9W1JG.js} +595 -591
  28. package/dist/{Segment-C8rNVlEi.js → Segment-D_8jLxTB.js} +22 -22
  29. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BmWRTRMe.js → SelectItems.vue_vue_type_script_setup_true_lang-MuGGj7i8.js} +2 -2
  30. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BaP2tykA.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CYbrjziq.js} +11 -11
  31. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CqICTY8X.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CfeVNZfQ.js} +3 -3
  32. package/dist/{Setting-BwLCOkXJ.js → Setting-zIKdWJmf.js} +12 -12
  33. package/dist/{SettingAdvertisements-Bjw1RSKB.js → SettingAdvertisements-eosmP0yl.js} +11 -11
  34. package/dist/{Store-DEtsM22Y.js → Store-D37krB41.js} +19 -19
  35. package/dist/{StoreRewards-DVzCi6nY.js → StoreRewards-DfaQh6jt.js} +13 -13
  36. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DKWElE0N.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CB9UPQgn.js} +38 -36
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CS_3d3zl.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DEF-E7UE.js} +1 -1
  38. package/dist/{Tier-qUFmMLZe.js → Tier-CXtOsuM7.js} +19 -19
  39. package/dist/{Title-Qk0xODw6.js → Title-DwIoPsyY.js} +18 -18
  40. package/dist/{Transaction-Be-VAdL0.js → Transaction-BSBw0I28.js} +2 -2
  41. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Lcgh9b36.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-D6dbora6.js} +6 -6
  42. package/dist/{Voucher-DjiXcyL2.js → Voucher-2CN1u3xX.js} +12 -12
  43. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DQhR3F2V.js +421 -0
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B0KU6cW2.js → ZodTextField.vue_vue_type_script_setup_true_lang-aepurQpJ.js} +1 -1
  45. package/dist/{app-CVDxFFOq.js → app-BJ03c7VA.js} +1 -1
  46. package/dist/{app-BYt1acSS.js → app-DzgN8VIL.js} +1974 -914
  47. package/dist/app.js +1 -1
  48. package/dist/{business-COPU_15m.js → business-DHDEmRpm.js} +1 -1
  49. package/dist/campaign-5vw3rg2H.js +226 -0
  50. package/dist/{campaign-CANP8DZ7.js → campaign-D0DcANeM.js} +1 -1
  51. package/dist/{campaign.enum-YFcT9qdL.js → campaign.enum-CaT5mTE0.js} +1 -1
  52. package/dist/{campaign.fn-CF0vxr00.js → campaign.fn-DPOcjdLA.js} +131 -131
  53. package/dist/{collectible.enum-CKyUdzxK.js → collectible.enum-CuY7aop-.js} +1 -1
  54. package/dist/{collection.fn-CLGxII_6.js → collection.fn-bdTbWWPw.js} +2 -2
  55. package/dist/{dto-D2FwEDQQ.js → dto-t86DacsS.js} +4 -4
  56. package/dist/{effect-C_AEVoTp.js → effect-CDCRS-kI.js} +1 -1
  57. package/dist/{email-addresses-BWnpaUzY.js → email-addresses-CNs57ODc.js} +1 -1
  58. package/dist/{export-7MCVnb85.js → export-C-3TWsuT.js} +3 -3
  59. package/dist/{helper-BwCpzGpj.js → helper-DiBQFbCE.js} +1 -1
  60. package/dist/{index-CvWUVGAn.js → index-AvhR3-S9.js} +1 -1
  61. package/dist/{index-D_Yyiihg.js → index-BWiv5ujB.js} +1 -1
  62. package/dist/{index-CY9fLTpI.js → index-B_oEglSK.js} +3 -3
  63. package/dist/{index-BRPLDaar.js → index-Bqkf2I3B.js} +2 -2
  64. package/dist/{index-B7v1Tn5m.js → index-Bqsb58iC.js} +1 -1
  65. package/dist/{index-vEDs6OGV.js → index-Bvt6zMHd.js} +4 -4
  66. package/dist/{index-BWctDnVc.js → index-CS4xzfCG.js} +3 -3
  67. package/dist/{index-B776PH8X.js → index-Cu7z7W2Y.js} +1 -1
  68. package/dist/{index-doXz2Xnd.js → index-DRuvN39L.js} +1 -1
  69. package/dist/{index-BdTNXQvR.js → index-DnmOhAQZ.js} +1 -1
  70. package/dist/{index-DhJ4RwuN.js → index-QSH3daDr.js} +1 -1
  71. package/dist/{index-BCcnESMx.js → index-axIFdus9.js} +1023 -1023
  72. package/dist/{index-DMD1qL3R.js → index-ci1qyKyk.js} +183 -178
  73. package/dist/{index.esm2017-BwgUTaPG.js → index.esm2017-K7B_CFZ2.js} +1 -1
  74. package/dist/{loading-CpAYlxoG.js → loading-BvwX4SYP.js} +1 -1
  75. package/dist/{membership-CgJ7PFUR.js → membership-q6KoGHzP.js} +3 -3
  76. package/dist/{money-CQGmkTRp.js → money-Dw1tcq03.js} +1 -1
  77. package/dist/{number-B_oM4a_k.js → number-DZ5j2LNK.js} +1 -1
  78. package/dist/{objectid-Dwu4f87A.js → objectid-AbTCXTJX.js} +1 -1
  79. package/dist/{campaign-DRXh3QJ1.js → plugins-B2AJLYGy.js} +784 -776
  80. package/dist/{reward-CAhovk_1.js → reward-5Jz1gKqp.js} +1 -1
  81. package/dist/{rule-b2BC4jY8.js → rule-CTVL3d0Z.js} +3 -3
  82. package/dist/{rule-builder-w8uO1XAF.js → rule-builder-DAbB538t.js} +1 -1
  83. package/dist/template-xPFGoucw.js +188 -0
  84. package/dist/{timezone-Di5x-2AC.js → timezone-Dqkk-GNG.js} +1 -1
  85. package/dist/{trigger-B9EDmE6z.js → trigger-CLQBTBFM.js} +4 -4
  86. package/dist/{user-BCB96Qct.js → user-B9ACiV1H.js} +1 -1
  87. package/dist/{vue-i18n-DddYl0c6.js → vue-i18n-Fa1iNSCc.js} +357 -357
  88. package/dist/{xlsx-Dj8VVXnA.js → xlsx-CLNs_XIM.js} +166 -166
  89. package/package.json +1 -1
  90. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-Sk5ub0FZ.js +0 -348
  91. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DHySLFcf.js +0 -419
  92. package/dist/plugins-Bo72kWn7.js +0 -208
  93. package/dist/template-DDBscrPK.js +0 -190
@@ -1,22 +1,22 @@
1
- import { defineComponent as j, ref as y, watch as X, onMounted as I, resolveComponent as x, openBlock as d, createBlock as A, withCtx as L, createVNode as h, unref as t, createElementVNode as i, createElementBlock as k, Fragment as $, renderList as D, computed as G, toDisplayString as O, isRef as T, createSlots as Y, createCommentVNode as V, createTextVNode as ee, reactive as te, onBeforeMount as ae } from "vue";
2
- import { _ as le } from "./campaign-CpzFl8Vr.js";
3
- import "./index-BWctDnVc.js";
4
- import "./campaign-DRXh3QJ1.js";
5
- import { useRouter as ne } from "vue-router";
6
- import { c as R, u as oe } from "./campaign-CANP8DZ7.js";
7
- import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-B0KU6cW2.js";
8
- import { Z as re } from "./zod-Bg2FbC-D.js";
9
- import { F as ie } from "./dto-D2FwEDQQ.js";
1
+ import { defineComponent as I, ref as y, watch as X, onMounted as T, resolveComponent as x, openBlock as d, createBlock as A, withCtx as P, createVNode as b, unref as t, createElementVNode as r, createElementBlock as k, Fragment as $, renderList as D, computed as G, toDisplayString as M, isRef as j, createSlots as Y, createCommentVNode as V, createTextVNode as ee, reactive as te, onBeforeMount as ae } from "vue";
2
+ import { _ as ne } from "./campaign-CpzFl8Vr.js";
3
+ import "./index-CS4xzfCG.js";
4
+ import "./campaign-5vw3rg2H.js";
5
+ import { useRouter as le } from "vue-router";
6
+ import { c as E, u as oe } from "./campaign-D0DcANeM.js";
7
+ import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-aepurQpJ.js";
8
+ import { Z as ie } from "./zod-Bg2FbC-D.js";
9
+ import { F as re } from "./dto-t86DacsS.js";
10
10
  import { J as ue } from "./JsonViewer-v8_C7l5N.js";
11
- import "./index-BCcnESMx.js";
11
+ import "./index-axIFdus9.js";
12
12
  import { useSnackbar as ce } from "@feedmepos/ui-library";
13
13
  import { u as me } from "./app-wDQR6dpb.js";
14
- import { u as de } from "./loading-CpAYlxoG.js";
15
- import { C as pe } from "./campaign.fn-CF0vxr00.js";
14
+ import { u as de } from "./loading-BvwX4SYP.js";
15
+ import { C as pe } from "./campaign.fn-DPOcjdLA.js";
16
16
  import { g as ve } from "./object-qECH92oz.js";
17
- import { u as fe } from "./membership-CgJ7PFUR.js";
18
- import { u as ye } from "./vue-i18n-DddYl0c6.js";
19
- const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
17
+ import { u as fe } from "./membership-q6KoGHzP.js";
18
+ import { u as ye } from "./vue-i18n-Fa1iNSCc.js";
19
+ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ I({
20
20
  __name: "CampaignCard",
21
21
  props: {
22
22
  title: {},
@@ -24,12 +24,12 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
24
24
  modelValue: {}
25
25
  },
26
26
  emits: ["update:model-value"],
27
- setup(U, { emit: b }) {
28
- const c = U, v = b, S = (o) => {
29
- o ? p.value = c.items.map((a) => a.value) : p.value = [], r.value = o, v("update:model-value", p.value);
30
- }, g = (o) => {
31
- p.value = o, r.value = o.length === c.items.length, v("update:model-value", o);
32
- }, r = y(!1), p = y([]);
27
+ setup(U, { emit: g }) {
28
+ const c = U, v = g, S = (o) => {
29
+ o ? p.value = c.items.map((a) => a.value) : p.value = [], i.value = o, v("update:model-value", p.value);
30
+ }, _ = (o) => {
31
+ p.value = o, i.value = o.length === c.items.length, v("update:model-value", o);
32
+ }, i = y(!1), p = y([]);
33
33
  return X(
34
34
  () => c.modelValue,
35
35
  () => {
@@ -37,31 +37,31 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
37
37
  (o) => c.items.find((a) => a.value === o)
38
38
  );
39
39
  }
40
- ), I(() => {
40
+ ), T(() => {
41
41
  p.value = c.modelValue.filter(
42
42
  (o) => c.items.find((a) => a.value === o)
43
43
  );
44
44
  }), (o, a) => {
45
- const _ = x("FmCheckbox"), n = x("FmCard");
46
- return d(), A(n, {
45
+ const h = x("FmCheckbox"), l = x("FmCard");
46
+ return d(), A(l, {
47
47
  variant: "outlined",
48
48
  class: "p-16 space-y-8 h-full cursor-pointer select-none xs:col-span-3"
49
49
  }, {
50
- default: L(() => [
51
- h(_, {
52
- "model-value": t(r),
50
+ default: P(() => [
51
+ b(h, {
52
+ "model-value": t(i),
53
53
  value: "1",
54
54
  label: c.title,
55
55
  indeterminate: t(p).length > 0,
56
56
  "onUpdate:modelValue": S
57
57
  }, null, 8, ["model-value", "label", "indeterminate"]),
58
- i("div", ge, [
59
- (d(!0), k($, null, D(c.items, (l, u) => (d(), A(_, {
58
+ r("div", ge, [
59
+ (d(!0), k($, null, D(c.items, (n, u) => (d(), A(h, {
60
60
  key: u,
61
61
  "model-value": t(p),
62
- label: l.label,
63
- value: l.value,
64
- "onUpdate:modelValue": g
62
+ label: n.label,
63
+ value: n.value,
64
+ "onUpdate:modelValue": _
65
65
  }, null, 8, ["model-value", "label", "value"]))), 128))
66
66
  ])
67
67
  ]),
@@ -69,7 +69,7 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
69
69
  });
70
70
  };
71
71
  }
72
- }), he = { class: "space-y-16" }, be = { class: "flex items-center" }, xe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary w-[300px]" }, Ce = { class: "space-y-[40px]" }, ke = /* @__PURE__ */ j({
72
+ }), he = { class: "space-y-16" }, be = { class: "flex items-center" }, xe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary w-[300px]" }, Ce = { class: "space-y-[40px]" }, ke = /* @__PURE__ */ I({
73
73
  __name: "LinkCampaign",
74
74
  props: {
75
75
  modelValue: {
@@ -82,41 +82,41 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
82
82
  }
83
83
  },
84
84
  emits: ["update:model-value"],
85
- setup(U, { emit: b }) {
86
- const c = y(""), v = y([]), S = U, g = b, r = G(() => Object.entries(S.campaigns).reduce((o, [a, _]) => {
87
- const n = _.filter(
88
- (l) => l.label.toLowerCase().includes(c.value.toLowerCase())
85
+ setup(U, { emit: g }) {
86
+ const c = y(""), v = y([]), S = U, _ = g, i = G(() => Object.entries(S.campaigns).reduce((o, [a, h]) => {
87
+ const l = h.filter(
88
+ (n) => n.label.toLowerCase().includes(c.value.toLowerCase())
89
89
  );
90
- return n.length > 0 && (o[a] = n), o;
90
+ return l.length > 0 && (o[a] = l), o;
91
91
  }, {}));
92
92
  function p(o, a) {
93
93
  v.value = v.value.filter(
94
- (_) => !a.map((n) => n.value).includes(_)
95
- ), v.value = [.../* @__PURE__ */ new Set([...v.value, ...o])], g("update:model-value", v.value);
94
+ (h) => !a.map((l) => l.value).includes(h)
95
+ ), v.value = [.../* @__PURE__ */ new Set([...v.value, ...o])], _("update:model-value", v.value);
96
96
  }
97
- return I(() => {
97
+ return T(() => {
98
98
  v.value = S.modelValue;
99
99
  }), (o, a) => {
100
- const _ = x("FmTextField");
100
+ const h = x("FmTextField");
101
101
  return d(), k($, null, [
102
- h(ue, { json: U.campaigns }, null, 8, ["json"]),
103
- i("div", he, [
104
- i("div", be, [
105
- i("div", xe, O(t(v).length) + " campaign(s) linked ", 1),
106
- h(_, {
102
+ b(ue, { json: U.campaigns }, null, 8, ["json"]),
103
+ r("div", he, [
104
+ r("div", be, [
105
+ r("div", xe, M(t(v).length) + " campaign(s) linked ", 1),
106
+ b(h, {
107
107
  modelValue: t(c),
108
- "onUpdate:modelValue": a[0] || (a[0] = (n) => T(c) ? c.value = n : null),
108
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => j(c) ? c.value = l : null),
109
109
  "prepend-icon": "search",
110
110
  placeholder: "Search",
111
111
  class: "w-full"
112
112
  }, null, 8, ["modelValue"])
113
113
  ]),
114
- i("div", Ce, [
115
- (d(!0), k($, null, D(t(r), (n, l) => (d(), A(_e, {
114
+ r("div", Ce, [
115
+ (d(!0), k($, null, D(t(i), (l, n) => (d(), A(_e, {
116
116
  "model-value": t(v),
117
- title: l,
118
- items: n,
119
- "onUpdate:modelValue": (u) => p(u, n)
117
+ title: n,
118
+ items: l,
119
+ "onUpdate:modelValue": (u) => p(u, l)
120
120
  }, null, 8, ["model-value", "title", "items", "onUpdate:modelValue"]))), 256))
121
121
  ])
122
122
  ])
@@ -126,39 +126,39 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
126
126
  }), Ve = { class: "flex items-center gap-x-8" }, Se = {
127
127
  key: 0,
128
128
  class: "space-y-16 pr-12"
129
- }, we = { class: "flex items-center gap-x-16" }, Fe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ae = { class: "mt-16" }, $e = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600 py-8 px-16 bg-gray-100" }, Ue = { class: "flex justify-between items-center py-8 px-16 border-b-1" }, Pe = { class: "flex items-center gap-8" }, Le = /* @__PURE__ */ j({
129
+ }, we = { class: "flex items-center gap-x-16" }, Fe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ae = { class: "mt-16" }, $e = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600 py-8 px-16 bg-gray-100" }, Ue = { class: "flex justify-between items-center py-8 px-16 border-b-1" }, Le = { class: "flex items-center gap-8" }, Pe = /* @__PURE__ */ I({
130
130
  __name: "AnalyticSheet",
131
131
  emits: ["success"],
132
- setup(U, { expose: b, emit: c }) {
132
+ setup(U, { expose: g, emit: c }) {
133
133
  const v = c, S = me();
134
134
  ce();
135
- const g = y(!1), r = y(!1), p = {
135
+ const _ = y(!1), i = y(!1), p = {
136
136
  name: "",
137
137
  campaigns: []
138
- }, o = y(""), a = y({ ...p }), _ = ie.superRefine((s, e) => {
139
- }), n = y([]), l = y(null), { global: u, minor: w } = de, P = G(() => {
140
- const s = _.safeParse(a.value);
138
+ }, o = y(""), a = y({ ...p }), h = re.superRefine((s, e) => {
139
+ }), l = y([]), n = y(null), { global: u, minor: w } = de, L = G(() => {
140
+ const s = h.safeParse(a.value);
141
141
  return s.success ? [] : s.error.errors;
142
142
  });
143
- function M(s) {
143
+ function B(s) {
144
144
  var e;
145
- g.value = !0, s ? (l.value = { ...s }, a.value = { ...s, campaigns: (e = s.pf_campaigns) == null ? void 0 : e.map((m) => m._id) }) : (l.value = null, a.value = { ...p });
145
+ _.value = !0, s ? (n.value = { ...s }, a.value = { ...s, campaigns: (e = s.pf_campaigns) == null ? void 0 : e.map((m) => m._id) }) : (n.value = null, a.value = { ...p });
146
146
  }
147
147
  function F() {
148
- g.value = !1, l.value = null;
148
+ _.value = !1, n.value = null;
149
149
  }
150
150
  function K() {
151
- r.value = !0;
151
+ i.value = !0;
152
152
  }
153
- async function W() {
154
- const s = await R.readAll({
153
+ async function q() {
154
+ const s = await E.readAll({
155
155
  limit: 1e3,
156
156
  skip: 0,
157
157
  sortBy: "_id",
158
158
  search: "",
159
159
  descending: !0
160
160
  });
161
- n.value = s.resources.filter(
161
+ l.value = s.resources.filter(
162
162
  (e) => !["MEMBERSHIP", "REWARD_POOL"].includes(e.type) && !["ISSUE_REWARD"].includes("event" in e ? e == null ? void 0 : e.event.type : "")
163
163
  );
164
164
  }
@@ -168,35 +168,35 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
168
168
  value: C._id
169
169
  }));
170
170
  return ve(
171
- n.value,
171
+ l.value,
172
172
  (m) => pe.formattedType(m.type),
173
173
  s
174
174
  );
175
- }), q = G(() => Object.entries(N.value).reduce(
175
+ }), J = G(() => Object.entries(N.value).reduce(
176
176
  (s, [e, m]) => {
177
- const C = m.filter((B) => {
178
- var E, f;
179
- return (f = (E = a.value) == null ? void 0 : E.campaigns) == null ? void 0 : f.includes(B.value);
177
+ const C = m.filter((R) => {
178
+ var O, f;
179
+ return (f = (O = a.value) == null ? void 0 : O.campaigns) == null ? void 0 : f.includes(R.value);
180
180
  }).filter(
181
- (B) => B.label.toLowerCase().includes(o.value.toLowerCase())
181
+ (R) => R.label.toLowerCase().includes(o.value.toLowerCase())
182
182
  );
183
183
  return C.length > 0 && (s[e] = C), s;
184
184
  },
185
185
  {}
186
186
  ));
187
- function J(s) {
187
+ function W(s) {
188
188
  var m, C;
189
189
  const e = (m = a.value.campaigns) == null ? void 0 : m.indexOf(s);
190
190
  e != null && e > -1 && ((C = a.value.campaigns) == null || C.splice(e, 1));
191
191
  }
192
192
  async function Z() {
193
- _.safeParse(a.value).success && await w(
193
+ h.safeParse(a.value).success && await w(
194
194
  async () => {
195
195
  var e;
196
- l.value ? await R.updateGroup(
197
- (e = l.value) == null ? void 0 : e._id,
196
+ n.value ? await E.updateGroup(
197
+ (e = n.value) == null ? void 0 : e._id,
198
198
  a.value
199
- ) : await R.createGroup(a.value), v("success"), F();
199
+ ) : await E.createGroup(a.value), v("success"), F();
200
200
  },
201
201
  {
202
202
  message: "Saving group",
@@ -208,7 +208,7 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
208
208
  await w(
209
209
  async () => {
210
210
  var s;
211
- await R.deleteGroup((s = l.value) == null ? void 0 : s._id), v("success"), F();
211
+ await E.deleteGroup((s = n.value) == null ? void 0 : s._id), v("success"), F();
212
212
  },
213
213
  {
214
214
  message: "Deleting group",
@@ -216,35 +216,35 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
216
216
  }
217
217
  );
218
218
  }
219
- return I(async () => {
220
- await W();
221
- }), b({
222
- showSheet: M,
219
+ return T(async () => {
220
+ await q();
221
+ }), g({
222
+ showSheet: B,
223
223
  hideSheet: F
224
224
  }), (s, e) => {
225
- const m = x("FmButton"), C = x("FmTextField"), B = x("FmList"), E = x("FmSideSheet");
226
- return d(), A(E, {
227
- modelValue: t(g),
228
- "onUpdate:modelValue": e[7] || (e[7] = (f) => T(g) ? g.value = f : null),
229
- header: t(l) ? "Edit group" : "Add group",
225
+ const m = x("FmButton"), C = x("FmTextField"), R = x("FmList"), O = x("FmSideSheet");
226
+ return d(), A(O, {
227
+ modelValue: t(_),
228
+ "onUpdate:modelValue": e[7] || (e[7] = (f) => j(_) ? _.value = f : null),
229
+ header: t(n) ? "Edit group" : "Add group",
230
230
  "dismiss-away": "",
231
231
  "close-button": !0,
232
232
  "max-width": 550
233
233
  }, Y({
234
- "side-sheet-footer": L(() => [
235
- i("div", Pe, [
236
- t(r) ? V("", !0) : (d(), k($, { key: 0 }, [
237
- h(m, {
234
+ "side-sheet-footer": P(() => [
235
+ r("div", Le, [
236
+ t(i) ? V("", !0) : (d(), k($, { key: 0 }, [
237
+ b(m, {
238
238
  label: "Submit",
239
239
  onClick: Z,
240
- disabled: t(P).length > 0 || t(S).isLoading
240
+ disabled: t(L).length > 0 || t(S).isLoading
241
241
  }, null, 8, ["disabled"]),
242
- h(m, {
242
+ b(m, {
243
243
  label: "Cancel",
244
244
  onClick: e[4] || (e[4] = (f) => F()),
245
245
  variant: "tertiary"
246
246
  }),
247
- t(l) ? (d(), A(m, {
247
+ t(n) ? (d(), A(m, {
248
248
  key: 0,
249
249
  label: "Delete",
250
250
  variant: "plain",
@@ -252,57 +252,57 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
252
252
  onClick: e[5] || (e[5] = (f) => z())
253
253
  })) : V("", !0)
254
254
  ], 64)),
255
- t(r) ? (d(), A(m, {
255
+ t(i) ? (d(), A(m, {
256
256
  key: 1,
257
257
  label: "Confirm",
258
- onClick: e[6] || (e[6] = (f) => r.value = !1)
258
+ onClick: e[6] || (e[6] = (f) => i.value = !1)
259
259
  })) : V("", !0)
260
260
  ])
261
261
  ]),
262
- default: L(() => [
263
- t(r) ? V("", !0) : (d(), k("div", Se, [
264
- e[9] || (e[9] = i("div", { class: "fm-typo-en-title-sm-800" }, "Group detail", -1)),
265
- h(se, {
262
+ default: P(() => [
263
+ t(i) ? V("", !0) : (d(), k("div", Se, [
264
+ e[9] || (e[9] = r("div", { class: "fm-typo-en-title-sm-800" }, "Group detail", -1)),
265
+ b(se, {
266
266
  modelValue: t(a).name,
267
267
  "onUpdate:modelValue": e[1] || (e[1] = (f) => t(a).name = f),
268
268
  label: "Name",
269
- schema: t(re).typeAtPath(t(_), "name")
269
+ schema: t(ie).typeAtPath(t(h), "name")
270
270
  }, null, 8, ["modelValue", "schema"]),
271
- e[10] || (e[10] = i("div", { class: "fm-typo-en-title-sm-800" }, "Link campaign", -1)),
272
- i("div", we, [
273
- i("div", Fe, O(t(a).campaigns.length) + " campaign(s) linked ", 1),
274
- h(C, {
271
+ e[10] || (e[10] = r("div", { class: "fm-typo-en-title-sm-800" }, "Link campaign", -1)),
272
+ r("div", we, [
273
+ r("div", Fe, M(t(a).campaigns.length) + " campaign(s) linked ", 1),
274
+ b(C, {
275
275
  modelValue: t(o),
276
- "onUpdate:modelValue": e[2] || (e[2] = (f) => T(o) ? o.value = f : null),
276
+ "onUpdate:modelValue": e[2] || (e[2] = (f) => j(o) ? o.value = f : null),
277
277
  "prepend-icon": "search",
278
278
  placeholder: "Search",
279
279
  class: "w-auto"
280
280
  }, null, 8, ["modelValue"])
281
281
  ]),
282
- h(m, {
282
+ b(m, {
283
283
  variant: "plain",
284
284
  icon: "link",
285
285
  label: "Link Campaign",
286
286
  onClick: K
287
287
  })
288
288
  ])),
289
- t(r) ? (d(), A(ke, {
289
+ t(i) ? (d(), A(ke, {
290
290
  key: 1,
291
291
  modelValue: t(a).campaigns,
292
292
  "onUpdate:modelValue": e[3] || (e[3] = (f) => t(a).campaigns = f),
293
293
  campaigns: t(N)
294
294
  }, null, 8, ["modelValue", "campaigns"])) : V("", !0),
295
- i("div", Ae, [
296
- t(r) ? V("", !0) : (d(!0), k($, { key: 0 }, D(t(q), (f, Q) => (d(), k("div", null, [
297
- i("div", $e, O(Q), 1),
298
- h(B, { separator: !0 }, {
299
- default: L(() => [
295
+ r("div", Ae, [
296
+ t(i) ? V("", !0) : (d(!0), k($, { key: 0 }, D(t(J), (f, Q) => (d(), k("div", null, [
297
+ r("div", $e, M(Q), 1),
298
+ b(R, { separator: !0 }, {
299
+ default: P(() => [
300
300
  (d(!0), k($, null, D(f, (H) => (d(), k("div", Ue, [
301
- i("div", null, O(H.label), 1),
302
- i("div", null, [
303
- h(m, {
301
+ r("div", null, M(H.label), 1),
302
+ r("div", null, [
303
+ b(m, {
304
304
  icon: "delete",
305
- onClick: (Re) => J(H.value),
305
+ onClick: (Oe) => W(H.value),
306
306
  variant: "tertiary"
307
307
  }, null, 8, ["onClick"])
308
308
  ])
@@ -315,14 +315,14 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
315
315
  ]),
316
316
  _: 2
317
317
  }, [
318
- t(r) ? {
318
+ t(i) ? {
319
319
  name: "side-sheet-header",
320
- fn: L(() => [
321
- i("div", Ve, [
322
- h(m, {
320
+ fn: P(() => [
321
+ r("div", Ve, [
322
+ b(m, {
323
323
  icon: "arrow_back",
324
324
  variant: "tertiary",
325
- onClick: e[0] || (e[0] = (f) => r.value = !1)
325
+ onClick: e[0] || (e[0] = (f) => i.value = !1)
326
326
  }),
327
327
  e[8] || (e[8] = ee("Link campaign ", -1))
328
328
  ])
@@ -332,89 +332,89 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
332
332
  ]), 1032, ["modelValue", "header"]);
333
333
  };
334
334
  }
335
- }), Ge = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Me = { class: "space-y-16" }, Be = { class: "flex items-center justify-end" }, tt = /* @__PURE__ */ j({
335
+ }), Ge = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Me = { class: "space-y-16" }, Be = { class: "flex items-center justify-end" }, Re = { class: "fm-typo-en-title-sm-800 text-center" }, Ee = { class: "fm-typo-body-en-md-400 text-center text-fm-color-typo-secondary" }, nt = /* @__PURE__ */ I({
336
336
  __name: "Analytic",
337
337
  setup(U) {
338
- const { t: b } = ye(), c = {
339
- label: b("connect.analytic.addGroup"),
338
+ const { t: g } = ye(), c = {
339
+ label: g("connect.analytic.addGroup"),
340
340
  value: "create",
341
341
  isPrimary: !0,
342
342
  prependIcon: "add"
343
- }, v = oe(), S = y(), g = y([]), r = y(""), p = te({
343
+ }, v = oe(), S = y(), _ = y([]), i = y(""), p = te({
344
344
  totalCampaign: 0,
345
345
  totalProgram: 0,
346
346
  totalMember: 0
347
347
  }), o = y("1");
348
- b("connect.analytic.summary.totalCampaign"), b("connect.analytic.summary.totalProgram"), b("connect.analytic.summary.totalMember");
349
- function a(l) {
348
+ g("connect.analytic.summary.totalCampaign"), g("connect.analytic.summary.totalProgram"), g("connect.analytic.summary.totalMember");
349
+ function a(n) {
350
350
  var u;
351
- o.value = (/* @__PURE__ */ new Date()).toISOString(), (u = S.value) == null || u.showSheet(l);
351
+ o.value = (/* @__PURE__ */ new Date()).toISOString(), (u = S.value) == null || u.showSheet(n);
352
352
  }
353
- async function _() {
353
+ async function h() {
354
354
  await v.readGroups();
355
- const l = await R.readAllGrouped({
355
+ const n = await E.readAllGrouped({
356
356
  limit: 100,
357
357
  skip: 0,
358
358
  sortBy: "_id",
359
359
  search: "",
360
360
  descending: !0
361
361
  });
362
- g.value = l.resources;
362
+ _.value = n.resources;
363
363
  }
364
- G(() => g.value.filter((l) => {
364
+ G(() => _.value.filter((n) => {
365
365
  var u;
366
- return l.name.includes(r.value) || ((u = l.pf_campaigns) == null ? void 0 : u.filter((w) => w.name.includes(r.value)).length);
366
+ return n.name.includes(i.value) || ((u = n.pf_campaigns) == null ? void 0 : u.filter((w) => w.name.includes(i.value)).length);
367
367
  }));
368
- const n = fe();
369
- return ne(), y(!0), G(() => {
370
- var l, u, w, P;
371
- return !n.storeOption || !n.storeOption.company ? -1 : !n.payoutAccount || !n.payoutAccount.enable || n.payoutAccount.status != "APPROVED" ? 0 : (u = (l = n.store) == null ? void 0 : l.categories) != null && u.length ? (P = (w = n.store) == null ? void 0 : w.categories) != null && P.some(
372
- (M) => M.bundles.some((F) => F.isFeedvibe)
368
+ const l = fe();
369
+ return le(), y(!0), G(() => {
370
+ var n, u, w, L;
371
+ return !l.storeOption || !l.storeOption.company ? -1 : !l.payoutAccount || !l.payoutAccount.enable || l.payoutAccount.status != "APPROVED" ? 0 : (u = (n = l.store) == null ? void 0 : n.categories) != null && u.length ? (L = (w = l.store) == null ? void 0 : w.categories) != null && L.some(
372
+ (B) => B.bundles.some((F) => F.isFeedvibe)
373
373
  ) ? 3 : 2 : 1;
374
374
  }), ae(async () => {
375
- await n.readMemberStore(), await n.readMembership(), await n.readPayoutAccount();
376
- }), (l, u) => {
377
- const w = x("FmPageHead"), P = x("FmSearch"), M = x("FmCard");
375
+ await l.readMemberStore(), await l.readMembership(), await l.readPayoutAccount();
376
+ }), (n, u) => {
377
+ const w = x("FmPageHead"), L = x("FmSearch"), B = x("FmCard");
378
378
  return x("FmButton"), x("FmIcon"), d(), k($, null, [
379
- h(w, {
380
- title: t(b)("connect.analytic.title"),
381
- actions: t(g).length > 0 ? [c] : [],
379
+ b(w, {
380
+ title: t(g)("connect.analytic.title"),
381
+ actions: t(_).length > 0 ? [c] : [],
382
382
  "onClick:action": u[0] || (u[0] = (F) => a())
383
383
  }, null, 8, ["title", "actions"]),
384
- i("div", Ge, [
385
- i("div", Me, [
386
- i("div", Be, [
387
- h(P, {
384
+ r("div", Ge, [
385
+ r("div", Me, [
386
+ r("div", Be, [
387
+ b(L, {
388
388
  class: "xs:hidden",
389
- modelValue: t(r),
390
- "onUpdate:modelValue": u[1] || (u[1] = (F) => T(r) ? r.value = F : null),
391
- placeholder: t(b)("connect.analytic.search"),
389
+ modelValue: t(i),
390
+ "onUpdate:modelValue": u[1] || (u[1] = (F) => j(i) ? i.value = F : null),
391
+ placeholder: t(g)("connect.analytic.search"),
392
392
  collapsible: ""
393
393
  }, null, 8, ["modelValue", "placeholder"])
394
394
  ]),
395
395
  V("", !0)
396
396
  ]),
397
397
  V("", !0),
398
- t(g).length ? V("", !0) : (d(), A(M, {
398
+ t(_).length ? V("", !0) : (d(), A(B, {
399
399
  key: 1,
400
400
  variant: "outlined",
401
401
  class: "flex flex-col gap-y-24 items-center p-16"
402
402
  }, {
403
- default: L(() => [...u[7] || (u[7] = [
404
- i("img", {
405
- src: le,
403
+ default: P(() => [
404
+ u[7] || (u[7] = r("img", {
405
+ src: ne,
406
406
  class: "w-[150px]"
407
- }, null, -1),
408
- i("div", { class: "fm-typo-en-title-sm-800 text-center" }, " Analytics Dashboard Temporarily Unavailable ", -1),
409
- i("div", { class: "fm-typo-body-en-md-400 text-center text-fm-color-typo-secondary" }, " We apologize for the inconvenience. The analytics dashboard is currently under maintenance to improve your experience. Please check back later for updates on system availability. ", -1)
410
- ])]),
407
+ }, null, -1)),
408
+ r("div", Re, M(t(g)("connect.analytic.maintenance.title")), 1),
409
+ r("div", Ee, M(t(g)("connect.analytic.maintenance.description")), 1)
410
+ ]),
411
411
  _: 1
412
412
  })),
413
413
  V("", !0),
414
- h(Le, {
414
+ b(Pe, {
415
415
  ref_key: "sheetRef",
416
416
  ref: S,
417
- onSuccess: _
417
+ onSuccess: h
418
418
  }, null, 512)
419
419
  ])
420
420
  ], 64);
@@ -422,5 +422,5 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
422
422
  }
423
423
  });
424
424
  export {
425
- tt as default
425
+ nt as default
426
426
  };
@@ -2,16 +2,16 @@ import { defineComponent as ht, ref as te, h as G, computed as Ee, watch as ft,
2
2
  import { useRouter as sn, useRoute as mt, RouterView as on } from "vue-router";
3
3
  import { useCoreStore as be, FeedMeAuth as an } from "@feedmepos/mf-common";
4
4
  import { u as cn } from "./app-wDQR6dpb.js";
5
- import { u as ln } from "./business-COPU_15m.js";
6
- import "./index-doXz2Xnd.js";
5
+ import { u as ln } from "./business-DHDEmRpm.js";
6
+ import "./index-DRuvN39L.js";
7
7
  import { components as z, useSnackbar as un, useDialog as dn } from "@feedmepos/ui-library";
8
- import { u as hn } from "./vue-i18n-DddYl0c6.js";
9
- import { C as Ge, m as fn } from "./timezone-Di5x-2AC.js";
10
- import { R as f } from "./app-BYt1acSS.js";
8
+ import { u as hn } from "./vue-i18n-Fa1iNSCc.js";
9
+ import { C as Ge, m as fn } from "./timezone-Dqkk-GNG.js";
10
+ import { R as f } from "./app-DzgN8VIL.js";
11
11
  import { J as pn } from "./JsonViewer-v8_C7l5N.js";
12
- import { r as Se, L as mn, g as gt, i as gn, a as _n, _ as ze, C as qe, b as vn, S as J, c as E, d as W, E as Ce, e as In, f as _t, h as Tn, j as yn, k as vt, l as _, m as wn, F as Oe, n as En, q as Y, o as kn, p as bn, s as Sn, t as Rn, u as Pn } from "./index.esm2017-BwgUTaPG.js";
12
+ import { r as Se, L as mn, g as gt, i as gn, a as _n, _ as ze, C as qe, b as vn, S as J, c as E, d as W, E as Ce, e as In, f as _t, h as Tn, j as yn, k as vt, l as _, m as wn, F as Oe, n as En, q as Y, o as kn, p as bn, s as Sn, t as Rn, u as Pn } from "./index.esm2017-K7B_CFZ2.js";
13
13
  import { _ as Ne } from "./tslib.es6-BCqqvLQ_.js";
14
- import { S as Ke, c as An } from "./index-BWctDnVc.js";
14
+ import { S as Ke, c as An } from "./index-CS4xzfCG.js";
15
15
  const Cn = { class: "flex flex-col h-full justify-between py-16" }, On = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Nn = /* @__PURE__ */ ht({
16
16
  __name: "NavigationTab",
17
17
  setup(n) {
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as C, ref as c, h as s, onMounted as x, resolveComponent as d, openBlock as S, createElementBlock as B, Fragment as M, createVNode as l, unref as o, createElementVNode as u } from "vue";
2
2
  import { components as p } from "@feedmepos/ui-library";
3
- import { u as K } from "./loading-CpAYlxoG.js";
4
- import { u as R } from "./business-COPU_15m.js";
5
- import { C as A } from "./campaign-DRXh3QJ1.js";
6
- import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-_60iFOeG.js";
3
+ import { u as K } from "./loading-BvwX4SYP.js";
4
+ import { u as R } from "./business-DHDEmRpm.js";
5
+ import { C as A } from "./campaign-5vw3rg2H.js";
6
+ import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bdj5fWXV.js";
7
7
  import { _ as U } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
8
- import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-CqICTY8X.js";
9
- import { u as D } from "./vue-i18n-DddYl0c6.js";
8
+ import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-CfeVNZfQ.js";
9
+ import { u as D } from "./vue-i18n-Fa1iNSCc.js";
10
10
  import { h as E } from "./moment-D7p2TMB-.js";
11
- import { p as I } from "./plugins-Bo72kWn7.js";
12
- import { c as g } from "./campaign-CANP8DZ7.js";
11
+ import { p as I } from "./plugins-B2AJLYGy.js";
12
+ import { c as g } from "./campaign-D0DcANeM.js";
13
13
  const T = { class: "px-24 flex flex-col gap-y-16" }, $ = { class: "flex items-center justify-between w-full" }, j = { class: "flex gap-8 overflow-x-auto" }, oe = /* @__PURE__ */ C({
14
14
  __name: "Bin",
15
15
  setup(H) {