@feedmepos/mf-connect 0.0.16-beta.12 → 0.0.16-beta.13

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 (71) hide show
  1. package/dist/{Analytic-DIc9BYb0.js → Analytic-B8FGU0B7.js} +32 -32
  2. package/dist/App-BXAJ1Z_T.js +6260 -0
  3. package/dist/{Broadcast-dVPgK5QV.js → Broadcast-DvmjAtxH.js} +8 -8
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-TnEPvafD.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Dvp3mOEx.js} +8 -8
  5. package/dist/{Card-Bj2Yd2pr.js → Card-DblSxqRr.js} +28 -28
  6. package/dist/{Collections-Fkb_zzqZ.js → Collections-C4KRnnWW.js} +4 -4
  7. package/dist/{Credit-DHn9OkE8.js → Credit-C5MbDbWr.js} +8 -8
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C1ZXQski.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-2MKUx_As.js} +718 -718
  9. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-D6mWny8y.js → EffectSheet.vue_vue_type_style_index_0_lang-CCsxDg45.js} +5 -5
  10. package/dist/{Experience-DX3aJihS.js → Experience-CmDLg17p.js} +8 -8
  11. package/dist/{Game-CcVQvETd.js → Game-5zvjlfuj.js} +8 -8
  12. package/dist/{Marketing-B9kykWEh.js → Marketing-BVpimsBU.js} +5 -5
  13. package/dist/Member-BkOqtn9n.js +69 -0
  14. package/dist/{MemberList-BUDxqMEK.js → MemberList-3IvxRInu.js} +105 -105
  15. package/dist/{MemberTransactions-Bh_tT1Rp.js → MemberTransactions-DRpV77Pn.js} +1 -1
  16. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Cj3-JHOX.js → MessageInput.vue_vue_type_script_setup_true_lang-CBvpHaAl.js} +2 -2
  17. package/dist/{Mission-DDvgCLy0.js → Mission-9fJLMJKS.js} +8 -8
  18. package/dist/{Point-BbPkt4kF.js → Point-7O6IdhWH.js} +8 -8
  19. package/dist/Promotion-XqpFw0IZ.js +247 -0
  20. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BGjeTeqS.js → RuleGroup.vue_vue_type_script_setup_true_lang-1Fko0V0J.js} +14 -14
  21. package/dist/{Segment-DAcpZWIN.js → Segment-DMaHcJT_.js} +8 -8
  22. package/dist/{Setting-CgXohUPt.js → Setting-DQh2aqfD.js} +8 -8
  23. package/dist/{Store-BVyHbQ8o.js → Store-WvEUlY9N.js} +393 -393
  24. package/dist/{StoreRewards-sccMDbkj.js → StoreRewards-D50uR2b9.js} +11 -11
  25. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang--sdQ_l8g.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Cm0lHUkP.js} +6 -6
  26. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CXlkvt2u.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BnjVkkS1.js} +1 -1
  27. package/dist/{Tier--P27XXbB.js → Tier-CqNKi52t.js} +14 -14
  28. package/dist/{Title-B27S3SxD.js → Title-CzBp5ig0.js} +14 -14
  29. package/dist/{Transaction-CYTtwwHY.js → Transaction-EKIwyavj.js} +2 -2
  30. package/dist/{Voucher-BZ8PKgO5.js → Voucher-Dhpzn8gs.js} +11 -11
  31. package/dist/{app-FfENBuoE.js → app-3-6LVz11.js} +27 -24
  32. package/dist/{app-CnKzqAcN.js → app-DM-4iSsh.js} +1 -1
  33. package/dist/app.js +1 -1
  34. package/dist/{business-CXyP9G7A.js → business-Wk7ElvEz.js} +1 -1
  35. package/dist/{campaign-0aM2KYOy.js → campaign-tHUDB7cm.js} +2 -2
  36. package/dist/{collection.fn-FicQhH1t.js → collection.fn-DS11Xpbu.js} +2 -2
  37. package/dist/{dto-BiYLkVdL.js → dto-B8X9qnLh.js} +147 -147
  38. package/dist/{effect-Cg-eNEjg.js → effect-BH3AL4S6.js} +9 -9
  39. package/dist/{export-D7BuObOL.js → export-DAAmj_h9.js} +3 -3
  40. package/dist/{helper-DvD-D7c7.js → helper-BSKllptD.js} +1 -1
  41. package/dist/index-5FIs0G8O.js +29193 -0
  42. package/dist/{index-DmdKoKk_.js → index-B0Pw9YQd.js} +2 -2
  43. package/dist/{index-BRXg5Si1.js → index-BH-mOC5-.js} +5 -5
  44. package/dist/{index-B1Q0GAWp.js → index-BO94KhQO.js} +1 -1
  45. package/dist/{index-BuDwICBJ.js → index-BgIWS3vT.js} +5 -5
  46. package/dist/{index-B6c-fUij.js → index-CIBWHBM-.js} +2 -2
  47. package/dist/{index-DA-fzkRR.js → index-CPxCpRFW.js} +3 -3
  48. package/dist/{index-Dkeb_9ER.js → index-CoYSYku2.js} +1 -1
  49. package/dist/{index-G-88ujCM.js → index-DOFTUTiA.js} +1 -1
  50. package/dist/{index-BP_5cfKa.js → index-DmxAa1MA.js} +1 -1
  51. package/dist/{index-CDMC-8iO.js → index-Z7d84hDW.js} +7 -2
  52. package/dist/{index-CcZt3OrE.js → index-vIwngIP9.js} +1 -1
  53. package/dist/index.esm2017-jX1Q0DsS.js +3069 -0
  54. package/dist/{loading-uCNeZibp.js → loading-DeWfPgai.js} +10751 -13605
  55. package/dist/{membership-DFRO9TyM.js → membership-oIubaesw.js} +3 -3
  56. package/dist/money-D-3GphEZ.js +15 -0
  57. package/dist/number-D_Fi0beD.js +12 -0
  58. package/dist/{rule-Ch2HRiGw.js → rule-C37bqQrm.js} +314 -343
  59. package/dist/{rule-builder-B_M9yvEe.js → rule-builder-DPQJ8Tbv.js} +1 -1
  60. package/dist/style.css +1 -1
  61. package/dist/{template-1o0LbOoJ.js → template-CIStnXhd.js} +4 -4
  62. package/dist/tslib.es6-BCqqvLQ_.js +44 -0
  63. package/dist/{vue-i18n-AtGIa4qH.js → vue-i18n-jf-SfrQy.js} +272 -272
  64. package/dist/{xlsx-pChq0adn.js → xlsx-C91dwH9k.js} +1 -1
  65. package/package.json +11 -11
  66. package/dist/App-BzzL9_Jw.js +0 -177
  67. package/dist/Member-RoJSCSC5.js +0 -69
  68. package/dist/Promotion-DEo-lxpX.js +0 -221
  69. package/dist/index-B4UZgSB-.js +0 -28058
  70. package/dist/money-OtkT4Pzp.js +0 -15
  71. package/dist/number-Cg3NCouc.js +0 -12
@@ -1,21 +1,21 @@
1
- import { defineComponent as D, openBlock as r, createElementBlock as R, Fragment as x, renderList as C, createElementVNode as e, toDisplayString as w, createCommentVNode as h, resolveComponent as X, createBlock as j, withCtx as g, createVNode as F, unref as o, ref as v, computed as O, onMounted as Z, watch as eo, isRef as Q, createSlots as io, createTextVNode as to, reactive as ao, onBeforeMount as ro, normalizeClass as G } from "vue";
1
+ import { defineComponent as D, openBlock as r, createElementBlock as R, Fragment as x, renderList as C, createElementVNode as e, toDisplayString as w, createCommentVNode as h, resolveComponent as X, createBlock as j, withCtx as T, createVNode as F, unref as o, ref as v, computed as O, onMounted as Z, watch as eo, isRef as Q, createSlots as io, createTextVNode as to, reactive as ao, onBeforeMount as ro, normalizeClass as G } from "vue";
2
2
  import { _ as Ko } from "./campaign-CpzFl8Vr.js";
3
- import { f as no } from "./number-Cg3NCouc.js";
4
- import { C as Ao, F as Uo, a as lo } from "./dto-BiYLkVdL.js";
3
+ import { f as no } from "./number-D_Fi0beD.js";
4
+ import { C as Ao, F as Uo, a as lo } from "./dto-B8X9qnLh.js";
5
5
  import { useRouter as $ } from "vue-router";
6
- import { c as N } from "./index-CDMC-8iO.js";
6
+ import { c as N } from "./index-Z7d84hDW.js";
7
7
  import { _ as Fo } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CWt4tVdk.js";
8
8
  import { Z as so } from "./zod-W_PvIofQ.js";
9
9
  import { J as po } from "./JsonViewer-v8_C7l5N.js";
10
- import { u as co } from "./loading-uCNeZibp.js";
10
+ import { u as co } from "./loading-DeWfPgai.js";
11
11
  import { useSnackbar as Ro } from "@feedmepos/ui-library";
12
12
  import { u as uo } from "./app-wDQR6dpb.js";
13
13
  import { g as mo } from "./object-qECH92oz.js";
14
- import { u as fo } from "./campaign-0aM2KYOy.js";
15
- import { u as Vo } from "./membership-DFRO9TyM.js";
16
- import { u as qo } from "./vue-i18n-AtGIa4qH.js";
17
- import { c as vo } from "./index-B4UZgSB-.js";
18
- import { m as Po } from "./index-CcZt3OrE.js";
14
+ import { u as fo } from "./campaign-tHUDB7cm.js";
15
+ import { u as Vo } from "./membership-oIubaesw.js";
16
+ import { u as qo } from "./vue-i18n-jf-SfrQy.js";
17
+ import { r as vo } from "./index-5FIs0G8O.js";
18
+ import { m as Po } from "./index-vIwngIP9.js";
19
19
  const Xo = { class: "divide-x flex flex-wrap" }, yo = { class: "fm-typo-en-body-md-400 mb-2 text-fm-color-typo-secondary" }, So = { class: "fm-typo-en-title-sm-800" }, zo = /* @__PURE__ */ D({
20
20
  __name: "CampaignStat",
21
21
  props: {
@@ -71,7 +71,7 @@ const Xo = { class: "divide-x flex flex-wrap" }, yo = { class: "fm-typo-en-body-
71
71
  placement: "top",
72
72
  content: u.label
73
73
  }, {
74
- default: g(() => [
74
+ default: T(() => [
75
75
  e("div", wo, [
76
76
  F(p, {
77
77
  name: o(s).icon,
@@ -90,7 +90,7 @@ const Xo = { class: "divide-x flex flex-wrap" }, yo = { class: "fm-typo-en-body-
90
90
  }, 8, ["content"]);
91
91
  };
92
92
  }
93
- }), ko = { class: "flex flex-col" }, ho = { class: "flex flex-nowrap items-center justify-between mb-12" }, jo = { class: "flex gap-4 items-center justify-start" }, Ho = { class: "fm-typo-en-title-sm-800" }, go = { class: "flex flex-wrap gap-4 items-center mb-16 overflow-y-hidden" }, To = /* @__PURE__ */ D({
93
+ }), ko = { class: "flex flex-col" }, ho = { class: "flex flex-nowrap items-center justify-between mb-12" }, jo = { class: "flex gap-4 items-center justify-start" }, Ho = { class: "fm-typo-en-title-sm-800" }, To = { class: "flex flex-wrap gap-4 items-center mb-16 overflow-y-hidden" }, go = /* @__PURE__ */ D({
94
94
  __name: "CampaignGroup",
95
95
  props: {
96
96
  group: {
@@ -127,7 +127,7 @@ const Xo = { class: "divide-x flex flex-wrap" }, yo = { class: "fm-typo-en-body-
127
127
  class: "mb-24 p-24",
128
128
  variant: "outlined"
129
129
  }, {
130
- default: g(() => [
130
+ default: T(() => [
131
131
  e("div", ko, [
132
132
  e("div", ho, [
133
133
  e("div", jo, [
@@ -139,7 +139,7 @@ const Xo = { class: "divide-x flex flex-wrap" }, yo = { class: "fm-typo-en-body-
139
139
  })
140
140
  ])
141
141
  ]),
142
- e("div", go, [
142
+ e("div", To, [
143
143
  (r(!0), R(x, null, C(o(p), (m) => (r(), j(Wo, {
144
144
  key: a.index,
145
145
  type: m.campaign.type,
@@ -184,7 +184,7 @@ const Xo = { class: "divide-x flex flex-wrap" }, yo = { class: "fm-typo-en-body-
184
184
  variant: "outlined",
185
185
  class: "p-16 space-y-8 h-full cursor-pointer select-none xs:col-span-3"
186
186
  }, {
187
- default: g(() => [
187
+ default: T(() => [
188
188
  F(m, {
189
189
  "model-value": o(a),
190
190
  value: "1",
@@ -326,7 +326,7 @@ const Xo = { class: "divide-x flex flex-wrap" }, yo = { class: "fm-typo-en-body-
326
326
  const i = (t = K.value.campaigns) == null ? void 0 : t.indexOf(A);
327
327
  i != null && i > -1 && ((f = K.value.campaigns) == null || f.splice(i, 1));
328
328
  }
329
- async function T() {
329
+ async function g() {
330
330
  m.safeParse(K.value).success && await W(
331
331
  async () => {
332
332
  var i;
@@ -368,12 +368,12 @@ const Xo = { class: "divide-x flex flex-wrap" }, yo = { class: "fm-typo-en-body-
368
368
  "close-button": !0,
369
369
  "max-width": 550
370
370
  }, io({
371
- "side-sheet-footer": g(() => [
371
+ "side-sheet-footer": T(() => [
372
372
  e("div", Eo, [
373
373
  o(a) ? h("", !0) : (r(), R(x, { key: 0 }, [
374
374
  F(t, {
375
375
  label: "Submit",
376
- onClick: T,
376
+ onClick: g,
377
377
  disabled: o(L).length > 0 || o(y).isLoading
378
378
  }, null, 8, ["disabled"]),
379
379
  F(t, {
@@ -396,7 +396,7 @@ const Xo = { class: "divide-x flex flex-wrap" }, yo = { class: "fm-typo-en-body-
396
396
  })) : h("", !0)
397
397
  ])
398
398
  ]),
399
- default: g(() => [
399
+ default: T(() => [
400
400
  o(a) ? h("", !0) : (r(), R("div", Bo, [
401
401
  i[9] || (i[9] = e("div", { class: "fm-typo-en-title-sm-800" }, "Group detail", -1)),
402
402
  F(Fo, {
@@ -433,7 +433,7 @@ const Xo = { class: "divide-x flex flex-wrap" }, yo = { class: "fm-typo-en-body-
433
433
  o(a) ? h("", !0) : (r(!0), R(x, { key: 0 }, C(o(n), (P, oo) => (r(), R("div", null, [
434
434
  e("div", Io, w(oo), 1),
435
435
  F(M, { separator: !0 }, {
436
- default: g(() => [
436
+ default: T(() => [
437
437
  (r(!0), R(x, null, C(P, (E) => (r(), R("div", Go, [
438
438
  e("div", null, w(E.label), 1),
439
439
  e("div", null, [
@@ -454,7 +454,7 @@ const Xo = { class: "divide-x flex flex-wrap" }, yo = { class: "fm-typo-en-body-
454
454
  }, [
455
455
  o(a) ? {
456
456
  name: "side-sheet-header",
457
- fn: g(() => [
457
+ fn: T(() => [
458
458
  e("div", Mo, [
459
459
  F(t, {
460
460
  icon: "arrow_back",
@@ -516,7 +516,7 @@ const oe = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ee = { class: "space
516
516
  p.value = S.resources;
517
517
  }
518
518
  async function q() {
519
- var H, T;
519
+ var H, g;
520
520
  const S = await Po.read({
521
521
  limit: 1,
522
522
  skip: 0,
@@ -532,7 +532,7 @@ const oe = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ee = { class: "space
532
532
  });
533
533
  U.totalCampaign = ((H = n.resources) == null ? void 0 : H.filter(
534
534
  (z) => ["PROMOTION", "VOUCHER", "BROADCAST"].includes(z.type) && !["ISSUE_REWARD"].includes("event" in z ? z == null ? void 0 : z.event.type : "")
535
- ).length) ?? 0, U.totalProgram = ((T = n.resources) == null ? void 0 : T.filter(
535
+ ).length) ?? 0, U.totalProgram = ((g = n.resources) == null ? void 0 : g.filter(
536
536
  (z) => ["POINT", "COIN", "CREDIT", "GAME"].includes(z.type)
537
537
  ).length) ?? 0, U.totalMember = S.meta.totalResources ?? 0;
538
538
  }
@@ -540,8 +540,8 @@ const oe = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ee = { class: "space
540
540
  var n;
541
541
  return S.name.includes(a.value) || ((n = S.pf_campaigns) == null ? void 0 : n.filter((H) => H.name.includes(a.value)).length);
542
542
  })), W = Vo(), L = $(), b = v(!0), k = O(() => {
543
- var S, n, H, T;
544
- return !W.storeOption || !W.storeOption.company ? -1 : !W.payoutAccount || !W.payoutAccount.enable || W.payoutAccount.status != "APPROVED" ? 0 : (n = (S = W.store) == null ? void 0 : S.categories) != null && n.length ? (T = (H = W.store) == null ? void 0 : H.categories) != null && T.some(
543
+ var S, n, H, g;
544
+ return !W.storeOption || !W.storeOption.company ? -1 : !W.payoutAccount || !W.payoutAccount.enable || W.payoutAccount.status != "APPROVED" ? 0 : (n = (S = W.store) == null ? void 0 : S.categories) != null && n.length ? (g = (H = W.store) == null ? void 0 : H.categories) != null && g.some(
545
545
  (z) => z.bundles.some((A) => A.isFeedvibe)
546
546
  ) ? 3 : 2 : 1;
547
547
  });
@@ -598,7 +598,7 @@ const oe = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ee = { class: "space
598
598
  return ro(async () => {
599
599
  await V(), await q(), await W.readMemberStore(), await W.readMembership(), await W.readPayoutAccount();
600
600
  }), (S, n) => {
601
- const H = X("FmPageHead"), T = X("FmSearch"), z = X("FmCard"), A = X("FmButton"), i = X("FmIcon");
601
+ const H = X("FmPageHead"), g = X("FmSearch"), z = X("FmCard"), A = X("FmButton"), i = X("FmIcon");
602
602
  return r(), R(x, null, [
603
603
  F(H, {
604
604
  title: o(d)("connect.analytic.title"),
@@ -608,7 +608,7 @@ const oe = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ee = { class: "space
608
608
  e("div", oe, [
609
609
  e("div", ee, [
610
610
  e("div", ie, [
611
- F(T, {
611
+ F(g, {
612
612
  class: "xs:hidden",
613
613
  modelValue: o(a),
614
614
  "onUpdate:modelValue": n[1] || (n[1] = (t) => Q(a) ? a.value = t : null),
@@ -620,7 +620,7 @@ const oe = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ee = { class: "space
620
620
  variant: "outlined",
621
621
  class: "flex flex-col gap-16 p-16"
622
622
  }, {
623
- default: g(() => [
623
+ default: T(() => [
624
624
  e("div", te, w(o(d)("connect.analytic.summary.title")), 1),
625
625
  e("div", ae, [
626
626
  (r(), R(x, null, C(K, (t, f) => e("div", {
@@ -635,12 +635,12 @@ const oe = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ee = { class: "space
635
635
  _: 1
636
636
  })
637
637
  ]),
638
- o(vo.Config).getCountry().code == "MY" ? (r(), j(z, {
638
+ o(vo).getCountry().code == "MY" ? (r(), j(z, {
639
639
  key: 0,
640
640
  variant: "outlined",
641
641
  class: "flex"
642
642
  }, {
643
- default: g(() => [
643
+ default: T(() => [
644
644
  e("div", ne, [
645
645
  e("div", Ae, [
646
646
  n[4] || (n[4] = e("div", { class: "flex flex-col gap-4" }, [
@@ -726,7 +726,7 @@ const oe = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ee = { class: "space
726
726
  variant: "outlined",
727
727
  class: "flex flex-col gap-y-24 items-center p-16"
728
728
  }, {
729
- default: g(() => [
729
+ default: T(() => [
730
730
  n[8] || (n[8] = e("img", {
731
731
  src: Ko,
732
732
  class: "w-[150px]"
@@ -743,7 +743,7 @@ const oe = { class: "px-24 flex flex-col gap-y-32 pb-24" }, ee = { class: "space
743
743
  ]),
744
744
  _: 1
745
745
  })),
746
- (r(!0), R(x, null, C(o(J), (t) => (r(), j(To, {
746
+ (r(!0), R(x, null, C(o(J), (t) => (r(), j(go, {
747
747
  key: t._id.toString(),
748
748
  group: t,
749
749
  "on-edit": m