@feedmepos/mf-connect 0.0.5-beta.20 → 0.0.5-beta.21

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 (67) hide show
  1. package/dist/{Analytic-DUWe-WYz.js → Analytic-CVpCpEBl.js} +12 -13
  2. package/dist/{Broadcast-CAmI-dS9.js → Broadcast-C0SHdFpT.js} +11 -12
  3. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CQbePPyW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B94-nKP4.js} +8 -8
  4. package/dist/Card-C5yXOEhK.js +827 -0
  5. package/dist/Collections-Ka_q_V3S.js +424 -0
  6. package/dist/{Credit-CxyIk-mH.js → Credit-CmTa3hjm.js} +11 -12
  7. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-AGQwe70B.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CNSfNMA_.js} +23 -24
  8. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-y263YYGy.js → EffectSheet.vue_vue_type_style_index_0_lang-BLfzJ46z.js} +5 -5
  9. package/dist/{Experience-DH6nbWal.js → Experience-yd4ZPBXy.js} +11 -12
  10. package/dist/{Game-BGMGl6Uw.js → Game-DYTplwOh.js} +22 -23
  11. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rs3BEnpo.js → ImageInput.vue_vue_type_script_setup_true_lang-BuuYdlE4.js} +1 -1
  12. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BIwBZ7FH.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BfWuKa1w.js} +1 -1
  13. package/dist/{MainLayout-CjvNB4RK.js → MainLayout-8tc3ZtLI.js} +2 -2
  14. package/dist/{Marketing-BLbR9_KN.js → Marketing-D5Le-SWn.js} +19 -20
  15. package/dist/{Member-BqPHWUos.js → Member-CzY5Um_y.js} +2 -2
  16. package/dist/{MemberList-DoBv4aBY.js → MemberList-DpFa2ttF.js} +20 -21
  17. package/dist/{MemberTransactions-Cri3UCrX.js → MemberTransactions-CDKkRdfp.js} +4 -4
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang--qiv_ZUS.js → MessageInput.vue_vue_type_script_setup_true_lang-BD27S5wB.js} +4 -4
  19. package/dist/{Mission-BXRMH__V.js → Mission-9BmMMzyr.js} +25 -26
  20. package/dist/{Point-MS30HaX7.js → Point-IiWgZIyI.js} +11 -12
  21. package/dist/{Promotion-BuOELg3x.js → Promotion-BmEQ28sH.js} +42 -44
  22. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CAnO-3XN.js → RuleGroup.vue_vue_type_script_setup_true_lang-BhOoz0HL.js} +12 -12
  23. package/dist/{Segment-C9s9hDBX.js → Segment-D1ID4Rmt.js} +39 -40
  24. package/dist/{Setting-CHk3QEsN.js → Setting-B3WeabHJ.js} +17 -18
  25. package/dist/{Store-CQWAs4Ew.js → Store-CKFLaYKH.js} +18 -19
  26. package/dist/{StoreRewards-DJkh42Es.js → StoreRewards-DIQL173Q.js} +27 -28
  27. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B2kjcViv.js +794 -0
  28. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CEBqSaBp.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C1QmPELI.js} +1 -1
  29. package/dist/{Tier-3zGwCsja.js → Tier-BvE47ciZ.js} +43 -43
  30. package/dist/{Title-TotAXw2n.js → Title-DfcczCHg.js} +42 -42
  31. package/dist/Transaction-CF0f3QCU.js +36 -0
  32. package/dist/Voucher-CCOZjT6k.js +481 -0
  33. package/dist/{app--rCS8dWb.js → app-B4oDOeXm.js} +1456 -1456
  34. package/dist/app.js +1 -1
  35. package/dist/{campaign-BPWXzTLO.js → campaign-BWwTQs_d.js} +2 -2
  36. package/dist/{collection.fn-NFB67-6j.js → collection.fn-C5XN0PPR.js} +2 -2
  37. package/dist/{dto-ChVvY7GG.js → dto-Ktuw3JiD.js} +138 -139
  38. package/dist/{effect-CbwZuhWY.js → effect-BM2dJl1a.js} +1 -1
  39. package/dist/export-LApNX--r.js +97 -0
  40. package/dist/{helper-D16-sxkv.js → helper-BUC1dAUX.js} +1 -1
  41. package/dist/{index-EmqFPQGb.js → index-B6GvsaDA.js} +1 -1
  42. package/dist/{index-DlqRXSLU.js → index-BZMMIcyM.js} +1 -1
  43. package/dist/{index-Blbjd5Y9.js → index-Bc-r4pik.js} +5 -5
  44. package/dist/{index-CGTaSvN6.js → index-Bt_xFt9g.js} +1 -1
  45. package/dist/{index-D-bPAs1d.js → index-C7qI5flU.js} +2 -2
  46. package/dist/{index-Dh6x04Wk.js → index-C86T8VON.js} +2 -2
  47. package/dist/{index-C7SZ9gvu.js → index-CvZ_MhCE.js} +7 -7
  48. package/dist/{index-vsgk07Y2.js → index-CzVShOLS.js} +1 -1
  49. package/dist/{index-BGAWJ6-h.js → index-DSUUVWFu.js} +3 -3
  50. package/dist/{index--VC0kdJZ.js → index-DVJQt0_Q.js} +2 -2
  51. package/dist/{plugins-Ccv9TIl4.js → loading-CM3ZyteE.js} +8204 -8108
  52. package/dist/{lodash-7Fz14kKI.js → lodash-DYMRs712.js} +1 -1
  53. package/dist/{membership-ByQds6Nb.js → membership-D0Z9EBWi.js} +3 -3
  54. package/dist/{money-DsiT1-aV.js → money-Cyt6uuok.js} +1 -1
  55. package/dist/{number-D4SI_vwy.js → number-CSBV_14_.js} +1 -1
  56. package/dist/{rule-NzJI8lrC.js → rule-C4ovkUox.js} +2 -2
  57. package/dist/{rule-builder-CNz0WgMq.js → rule-builder-DxDhft7B.js} +1 -1
  58. package/dist/{template-9wDwTGR-.js → template-Dd9xYS-m.js} +6 -6
  59. package/dist/{usePagination-CsZrmXsU.js → usePagination-cObe7G1g.js} +1 -1
  60. package/dist/{xlsx-CUa5ix7U.js → xlsx--baqnGDY.js} +1 -1
  61. package/package.json +1 -1
  62. package/dist/Card-DhgETjhz.js +0 -914
  63. package/dist/Collections-9fPXIR34.js +0 -424
  64. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-1GgzlIRZ.js +0 -693
  65. package/dist/Transaction-gV9vaJCR.js +0 -34
  66. package/dist/Voucher-BJ-pXo7Y.js +0 -449
  67. package/dist/loading-B5tUSWjN.js +0 -100
@@ -1,18 +1,17 @@
1
1
  import { defineComponent as I, openBlock as l, createElementBlock as h, Fragment as V, renderList as P, createElementVNode as a, toDisplayString as U, createCommentVNode as B, resolveComponent as S, createBlock as F, withCtx as O, createVNode as p, unref as n, ref as C, computed as G, onMounted as q, watch as X, isRef as N, createSlots as Y, createTextVNode as ee, reactive as te, onBeforeMount as ae, normalizeClass as ne } from "vue";
2
2
  import { _ as oe } from "./campaign-CpzFl8Vr.js";
3
- import { f as le } from "./number-D4SI_vwy.js";
4
- import { C as se, F as ie, a as re } from "./dto-ChVvY7GG.js";
3
+ import { f as le } from "./number-CSBV_14_.js";
4
+ import { C as se, F as ie, a as re } from "./dto-Ktuw3JiD.js";
5
5
  import { useRouter as ce } from "vue-router";
6
- import { c as T } from "./index-DlqRXSLU.js";
6
+ import { c as T } from "./index-BZMMIcyM.js";
7
7
  import { _ as ue } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CWt4tVdk.js";
8
8
  import { Z as de } from "./zod-W_PvIofQ.js";
9
- import { J as me, u as pe } from "./app--rCS8dWb.js";
10
- import "./plugins-Ccv9TIl4.js";
11
- import { useSnackbar as fe } from "@feedmepos/ui-library";
12
- import { u as ve } from "./loading-B5tUSWjN.js";
9
+ import { J as me, u as pe } from "./app-B4oDOeXm.js";
10
+ import { u as fe } from "./loading-CM3ZyteE.js";
11
+ import { useSnackbar as ve } from "@feedmepos/ui-library";
13
12
  import { g as ye } from "./object-qECH92oz.js";
14
- import { u as _e } from "./campaign-BPWXzTLO.js";
15
- import { m as ge } from "./index-CGTaSvN6.js";
13
+ import { u as _e } from "./campaign-BWwTQs_d.js";
14
+ import { m as ge } from "./index-Bt_xFt9g.js";
16
15
  const he = { class: "divide-x flex flex-wrap" }, be = { class: "fm-typo-en-body-md-400 mb-2 text-fm-color-typo-secondary" }, xe = { class: "fm-typo-en-title-sm-800" }, Ce = /* @__PURE__ */ I({
17
16
  __name: "CampaignStat",
18
17
  props: {
@@ -265,12 +264,12 @@ const he = { class: "divide-x flex flex-wrap" }, be = { class: "fm-typo-en-body-
265
264
  emits: ["success"],
266
265
  setup(m, { expose: R, emit: i }) {
267
266
  const u = i, _ = pe();
268
- fe();
267
+ ve();
269
268
  const r = C(!1), e = C(!1), c = {
270
269
  name: "",
271
270
  campaigns: []
272
271
  }, s = C(""), o = C({ ...c }), f = ie.superRefine((d, t) => {
273
- }), b = C([]), g = C(null), { global: w, minor: v } = ve, E = G(() => {
272
+ }), b = C([]), g = C(null), { global: w, minor: v } = fe, E = G(() => {
274
273
  const d = f.safeParse(o.value);
275
274
  return d.success ? [] : d.error.errors;
276
275
  });
@@ -469,7 +468,7 @@ const he = { class: "divide-x flex flex-wrap" }, be = { class: "fm-typo-en-body-
469
468
  }), Ze = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Qe = { class: "space-y-16" }, Xe = { class: "flex items-center justify-end" }, Ye = /* @__PURE__ */ a("div", { class: "fm-typo-en-body-lg-600" }, "Connect summary", -1), et = { class: "grid grid-cols-4 xs:grid-cols-2 gap-4 divide-x xs:divide-x-0" }, tt = { class: "fm-typo-body-md-400 fm-typo-en-body-md-400 mb-2 text-fm-color-typo-secondary" }, at = { class: "fm-typo-en-title-sm-800" }, nt = /* @__PURE__ */ a("img", {
470
469
  src: oe,
471
470
  class: "w-[150px]"
472
- }, null, -1), ot = /* @__PURE__ */ a("div", { class: "fm-typo-en-title-sm-800 text-center" }, " Create campaign group to track performance ", -1), lt = /* @__PURE__ */ a("div", { class: "fm-typo-body-en-md-400 text-center text-fm-color-typo-secondary" }, " Start organizing your campaigns and promotions by creating groups. Groups allow you to aggregate performance metrics across multiple vouchers, promotions, or other rewards. ", -1), st = { class: "flex gap-16 items-center" }, kt = /* @__PURE__ */ I({
471
+ }, null, -1), ot = /* @__PURE__ */ a("div", { class: "fm-typo-en-title-sm-800 text-center" }, " Create campaign group to track performance ", -1), lt = /* @__PURE__ */ a("div", { class: "fm-typo-body-en-md-400 text-center text-fm-color-typo-secondary" }, " Start organizing your campaigns and promotions by creating groups. Groups allow you to aggregate performance metrics across multiple vouchers, promotions, or other rewards. ", -1), st = { class: "flex gap-16 items-center" }, Ct = /* @__PURE__ */ I({
473
472
  __name: "Analytic",
474
473
  setup(m) {
475
474
  const R = {
@@ -610,5 +609,5 @@ const he = { class: "divide-x flex flex-wrap" }, be = { class: "fm-typo-en-body-
610
609
  }
611
610
  });
612
611
  export {
613
- kt as default
612
+ Ct as default
614
613
  };
@@ -1,15 +1,14 @@
1
1
  import { defineComponent as P, ref as g, computed as U, onMounted as M, resolveComponent as l, openBlock as i, createElementBlock as f, Fragment as _, createVNode as r, unref as a, createElementVNode as s, withCtx as h, renderList as j, createBlock as w, resolveDynamicComponent as E, toDisplayString as b, createCommentVNode as H, h 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 } from "./plugins-Ccv9TIl4.js";
5
- import { u as W } from "./loading-B5tUSWjN.js";
6
- import { a as X } from "./app--rCS8dWb.js";
7
- import { u as Y } from "./campaign-BPWXzTLO.js";
8
- import { g as F, b as k } from "./dto-ChVvY7GG.js";
4
+ import { u as Q, p as W } from "./loading-CM3ZyteE.js";
5
+ import { a as X } from "./app-B4oDOeXm.js";
6
+ import { u as Y } from "./campaign-BWwTQs_d.js";
7
+ import { g as F, b as k } from "./dto-Ktuw3JiD.js";
9
8
  import { _ as Z } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
10
- import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-AGQwe70B.js";
11
- import { u as te } from "./template-9wDwTGR-.js";
12
- import { c as y } from "./index-DlqRXSLU.js";
9
+ import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CNSfNMA_.js";
10
+ import { u as te } from "./template-Dd9xYS-m.js";
11
+ import { c as y } from "./index-BZMMIcyM.js";
13
12
  const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ne = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ie = { class: "space-y-4" }, ce = { class: "fm-typo-en-body-lg-600" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { key: 0 }, ue = /* @__PURE__ */ s("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1), pe = [
14
13
  ue
15
14
  ], fe = /* @__PURE__ */ s("img", {
@@ -18,7 +17,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
18
17
  }, null, -1), ye = /* @__PURE__ */ s("div", { class: "flex flex-col gap-16 text-center" }, [
19
18
  /* @__PURE__ */ s("div", { class: "fm-typo-en-title-sm-800" }, " Create your broadcast campaign "),
20
19
  /* @__PURE__ */ s("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Broadcasting allows you to send text messages to all your customers, informing them about new deals, events, or important updates. ")
21
- ], -1), Ve = /* @__PURE__ */ P({
20
+ ], -1), Ae = /* @__PURE__ */ P({
22
21
  __name: "Broadcast",
23
22
  setup(ge) {
24
23
  const A = {
@@ -26,7 +25,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
26
25
  value: "create",
27
26
  isPrimary: !0,
28
27
  prependIcon: "add"
29
- }, V = te("BROADCAST", G()), R = X(), c = Y(), { global: D, minor: C } = W, L = g((/* @__PURE__ */ new Date()).toISOString()), n = g({
28
+ }, V = te("BROADCAST", G()), R = X(), c = Y(), { global: D, minor: C } = Q, L = g((/* @__PURE__ */ new Date()).toISOString()), n = g({
30
29
  searchKey: "",
31
30
  location: null
32
31
  }), u = U(
@@ -67,7 +66,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
67
66
  }
68
67
  ], v = g();
69
68
  async function x(e) {
70
- await Q.remove(`Are you sure you want to remove ${e.name}?`) && await C(
69
+ await W.remove(`Are you sure you want to remove ${e.name}?`) && await C(
71
70
  async () => {
72
71
  await y.delete(e._id), await c.read("BROADCAST");
73
72
  },
@@ -213,5 +212,5 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
213
212
  }
214
213
  });
215
214
  export {
216
- Ve as default
215
+ Ae as default
217
216
  };
@@ -1,13 +1,13 @@
1
- import { R as RuleOperator, _ } from "./index-Dh6x04Wk.js";
2
- import { i as isRuleGroup } from "./rule-builder-CNz0WgMq.js";
1
+ import { R as RuleOperator, _ } from "./index-C86T8VON.js";
2
+ import { i as isRuleGroup } from "./rule-builder-DxDhft7B.js";
3
3
  import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, createVNode, toDisplayString } from "vue";
4
4
  import { useDialog } from "@feedmepos/ui-library";
5
- import "./index-D-bPAs1d.js";
6
- import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-C7SZ9gvu.js";
7
- import "./index-BGAWJ6-h.js";
8
- import "./index-Blbjd5Y9.js";
9
- import "./index--VC0kdJZ.js";
10
- import "./index-vsgk07Y2.js";
5
+ import "./index-C7qI5flU.js";
6
+ import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-CvZ_MhCE.js";
7
+ import "./index-DSUUVWFu.js";
8
+ import "./index-Bc-r4pik.js";
9
+ import "./index-DVJQt0_Q.js";
10
+ import "./index-CzVShOLS.js";
11
11
  function validateRule(data, r, date) {
12
12
  const rules = new RuleOperator(date ?? /* @__PURE__ */ new Date());
13
13
  function meetConditions(e) {