@feedmepos/mf-connect 0.1.0-beta.6 → 0.1.0-beta.61

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 (119) hide show
  1. package/dist/Analytic-u9mtlxSv.js +427 -0
  2. package/dist/{App-C2616cfr.js → App-BwTQE7Ft.js} +445 -420
  3. package/dist/AuditLogs-BVMRclSw.js +1886 -0
  4. package/dist/Bin-Cca-XOkz.js +166 -0
  5. package/dist/{Broadcast-CqSwLTAq.js → Broadcast-DRQgpwdP.js} +56 -54
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DrR9Pmtb.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CeUu_T1u.js} +6 -8
  7. package/dist/Card-CnbB_u31.js +896 -0
  8. package/dist/Collections-BjlfOSC3.js +459 -0
  9. package/dist/{Credit-CPcLgnsq.js → Credit-BoElrcx9.js} +36 -34
  10. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
  11. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +58 -0
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-B3WVwem6.js +2181 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-D2buK6Dj.js → EffectSheet.vue_vue_type_style_index_0_lang-CGfpziKs.js} +18 -18
  14. package/dist/{Experience-BoBikt-x.js → Experience-SdGBf4vU.js} +32 -30
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
  16. package/dist/{Game-DR8PyYZa.js → Game-ChLHibpB.js} +39 -37
  17. package/dist/Index-D7Kq6uyf.js +259 -0
  18. package/dist/Marketing-BDajIqR_.js +20071 -0
  19. package/dist/Member-BPZryqWL.js +317 -0
  20. package/dist/MemberList-C52Dop8Z.js +1598 -0
  21. package/dist/MemberTransactions-DHU78kgS.js +45 -0
  22. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DhtIZCjT.js → MessageInput.vue_vue_type_script_setup_true_lang-js1F2E4N.js} +83 -71
  23. package/dist/{Mission-CMpvz9zN.js → Mission-BQR3qjAu.js} +101 -87
  24. package/dist/Overview-BbLYWXjG.js +1078 -0
  25. package/dist/{Point-DkZn6p9s.js → Point-DbTcWJbQ.js} +55 -53
  26. package/dist/{Promotion-B7YzwPc_.js → Promotion-CIrpWBQD.js} +65 -57
  27. package/dist/Queue-B0Mfq2Vn.js +244 -0
  28. package/dist/Record-Z6ZrJeLc.js +340 -0
  29. package/dist/Reward-D6k0QFQA.js +442 -0
  30. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-GJ6j_jOh.js +150 -0
  31. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-gQxmX9ur.js +1637 -0
  32. package/dist/Segment-D6MF-EO8.js +568 -0
  33. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BWG-pz6F.js +181 -0
  34. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-HgorlHNz.js +147 -0
  35. package/dist/Setting--OFDS95z.js +1931 -0
  36. package/dist/Store-BqlRTC-c.js +1751 -0
  37. package/dist/{StoreRewards-6BzVwZqr.js → StoreRewards-BTu0IdDN.js} +33 -32
  38. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BX053DJA.js +943 -0
  39. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B6cAveco.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BAkuqLwy.js} +1 -1
  40. package/dist/{Tier-CW-46oJS.js → Tier-CE9LYAEX.js} +327 -318
  41. package/dist/{Title-CE9rWVdi.js → Title-DOOASUMI.js} +199 -184
  42. package/dist/{Transaction-B21RrC4M.js → Transaction-DPxUOBP-.js} +2 -2
  43. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-CKwf0F_i.js +130 -0
  44. package/dist/Voucher-D69DD02z.js +354 -0
  45. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-CFL0Nsez.js +419 -0
  46. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BiVZwBuG.js → ZodTextField.vue_vue_type_script_setup_true_lang-Byh6_EJM.js} +1 -1
  47. package/dist/app-C2u1t47T.js +7059 -0
  48. package/dist/app-DgfmbHZe.js +33357 -0
  49. package/dist/app.js +1 -1
  50. package/dist/{business-aHhRUXc0.js → business-BqCJB_vA.js} +1 -1
  51. package/dist/{campaign-DH9NUNf_.js → campaign-CWMPCmmU.js} +2 -2
  52. package/dist/campaign-D0dTbl5b.js +1810 -0
  53. package/dist/campaign.enum-DhE8N4pA.js +20 -0
  54. package/dist/campaign.fn-BpO-RQih.js +758 -0
  55. package/dist/collectible.enum-rWEc6Tsw.js +19 -0
  56. package/dist/{collection.fn-CYlsA-kW.js → collection.fn-biX2iFDQ.js} +2 -2
  57. package/dist/dto-3m7xZwfI.js +214 -0
  58. package/dist/{effect-LSc9YanX.js → effect-ZMGRxKCZ.js} +9 -9
  59. package/dist/email-addresses-lgY03bkq.js +705 -0
  60. package/dist/{export-Cf0-C5Ly.js → export-BOzeYUy8.js} +5 -5
  61. package/dist/{helper-CiZpeMCM.js → helper-CO29wun4.js} +1 -1
  62. package/dist/index-B3V7krW_.js +29000 -0
  63. package/dist/index-BVbiAxW8.js +115 -0
  64. package/dist/{index-D_83JP2i.js → index-Bvch9tuP.js} +48 -4
  65. package/dist/index-CYOwwy3h.js +44 -0
  66. package/dist/{index-D6cEOHP4.js → index-CbYXYVYp.js} +1501 -1480
  67. package/dist/{index-DtsDOuDx.js → index-ChrOXJDq.js} +24 -21
  68. package/dist/index-CsaQJMAR.js +66 -0
  69. package/dist/index-DNGenFnf.js +32 -0
  70. package/dist/{index-BVb5-Ht8.js → index-Dd22X409.js} +259 -173
  71. package/dist/{index-kPhrD63q.js → index-LYAWIqjk.js} +1 -1
  72. package/dist/index-Xh9cW6Y9.js +54 -0
  73. package/dist/{index-gxwjKu3-.js → index-XhqaicYu.js} +2212 -871
  74. package/dist/{index-DW3PRjPL.js → index-YsC4VklJ.js} +1 -1
  75. package/dist/index-vh86FiIQ.js +10 -0
  76. package/dist/{index.esm2017-B7oVYIbY.js → index.esm2017-CJ1flA6S.js} +121 -121
  77. package/dist/loading-CUs_CN1k.js +71 -0
  78. package/dist/{membership-Dw1ylJ9Y.js → membership-D-GVacos.js} +54 -46
  79. package/dist/money-CMtSALkX.js +15 -0
  80. package/dist/number-CDwwgAYM.js +12 -0
  81. package/dist/objectid-Bf9yKD81.js +145 -0
  82. package/dist/{loading-7yq1tinq.js → plugins-9sQTEyth.js} +3871 -3943
  83. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  84. package/dist/reward-DblXGhWc.js +36 -0
  85. package/dist/{rule-C0Q_SHow.js → rule-Cy8cTzuw.js} +180 -177
  86. package/dist/{rule-builder-iu17XIof.js → rule-builder-Cn5vZgFN.js} +1 -1
  87. package/dist/style.css +1 -1
  88. package/dist/{template-CyOanTMu.js → template-Cal94dUy.js} +5 -5
  89. package/dist/trigger-C1nwLSP8.js +144 -0
  90. package/dist/user-ir4Rn5bP.js +54 -0
  91. package/dist/{vue-i18n-B0fLJH7a.js → vue-i18n-eOHBBaH5.js} +243 -243
  92. package/dist/{xlsx-BYO_bB9J.js → xlsx-DulnT75_.js} +1 -1
  93. package/package.json +11 -7
  94. package/dist/Analytic-muDf0oMG.js +0 -622
  95. package/dist/Card-bhLoK0ZV.js +0 -825
  96. package/dist/Collections-DjtsAiol.js +0 -453
  97. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-U_QZneS6.js +0 -2813
  98. package/dist/Marketing-Dny2nMUl.js +0 -316
  99. package/dist/Member-CP_smyk8.js +0 -69
  100. package/dist/MemberList-CR3eYI9p.js +0 -1733
  101. package/dist/MemberTransactions-RTx_lKFb.js +0 -38
  102. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Cs67_GLE.js +0 -1753
  103. package/dist/Segment-Bb4gHt5V.js +0 -437
  104. package/dist/Setting-Xj0AVzh3.js +0 -1901
  105. package/dist/Store-BWRHQ6Ie.js +0 -1511
  106. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BsFnT8BS.js +0 -890
  107. package/dist/Voucher-KK9fBI0u.js +0 -490
  108. package/dist/app-CjhXHUQv.js +0 -53428
  109. package/dist/app-Dvf_JNMf.js +0 -5764
  110. package/dist/dto-DArfyZAI.js +0 -2770
  111. package/dist/index-Bi_LGEtY.js +0 -99
  112. package/dist/index-CiQDG7Cm.js +0 -762
  113. package/dist/index-CuvNtC_M.js +0 -61
  114. package/dist/index-DQfjSSMF.js +0 -206
  115. package/dist/index-DcxssxPi.js +0 -29193
  116. package/dist/index-DqJVH2kv.js +0 -298
  117. package/dist/money-CPd0XTNv.js +0 -15
  118. package/dist/number-BgXY4un8.js +0 -12
  119. package/dist/user-Bm4KttFq.js +0 -37
@@ -1,32 +1,33 @@
1
1
  import { defineComponent as G, ref as F, computed as j, onMounted as q, resolveComponent as g, openBlock as d, createBlock as b, unref as e, isRef as Y, withCtx as S, createElementVNode as s, createVNode as c, createElementBlock as O, createTextVNode as z, resolveDynamicComponent as M, toDisplayString as $, Fragment as D, createCommentVNode as U, h } from "vue";
2
2
  import { _ as J } from "./campaign-CpzFl8Vr.js";
3
3
  import { components as k } from "@feedmepos/ui-library";
4
- import "./index-kPhrD63q.js";
5
- import { p as H, u as Q, f as B } from "./loading-7yq1tinq.js";
6
- import { C as Z, u as X } from "./membership-Dw1ylJ9Y.js";
7
- import { u as ee } from "./vue-i18n-B0fLJH7a.js";
8
- import { F as te } from "./index-D6cEOHP4.js";
4
+ import "./index-LYAWIqjk.js";
5
+ import { u as Q } from "./loading-CUs_CN1k.js";
6
+ import { C as Z, u as X } from "./membership-D-GVacos.js";
7
+ import { p as H, f as B } from "./plugins-9sQTEyth.js";
8
+ import { u as ee } from "./vue-i18n-eOHBBaH5.js";
9
+ import { F as te } from "./index-CbYXYVYp.js";
9
10
  import { c as oe } from "./object-qECH92oz.js";
10
11
  import { u as K } from "./app-wDQR6dpb.js";
11
- import { u as ae } from "./business-aHhRUXc0.js";
12
+ import { u as ae } from "./business-BqCJB_vA.js";
12
13
  import { useCoreStore as ne } from "@feedmepos/mf-common";
13
14
  import { Z as v } from "./zod-Bg2FbC-D.js";
14
- import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BiVZwBuG.js";
15
+ import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-Byh6_EJM.js";
15
16
  import { _ as re } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
16
- import { _ as ie } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-B6cAveco.js";
17
- import { _ as le, a as me } from "./EffectSheet.vue_vue_type_style_index_0_lang-D2buK6Dj.js";
18
- import { i as ce, t as de } from "./helper-CiZpeMCM.js";
19
- import { useRouter as ue } from "vue-router";
20
- import { m as N } from "./index-D_83JP2i.js";
21
- import { R as T } from "./app-Dvf_JNMf.js";
22
- const pe = {
17
+ import { _ as ie } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-BAkuqLwy.js";
18
+ import { _ as le, a as me } from "./EffectSheet.vue_vue_type_style_index_0_lang-CGfpziKs.js";
19
+ import { i as ce, t as de } from "./helper-CO29wun4.js";
20
+ import { useRouter as pe } from "vue-router";
21
+ import { m as N } from "./index-Bvch9tuP.js";
22
+ import { R as T } from "./app-C2u1t47T.js";
23
+ const ue = {
23
24
  key: 0,
24
25
  class: "flex flex-col space-y-16 pr-12"
25
26
  }, fe = { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, ye = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary flex items-center justify-between" }, we = { class: "flex items-center gap-8" }, ge = /* @__PURE__ */ G({
26
27
  __name: "EditRewardSheet",
27
28
  emits: ["update"],
28
29
  setup(W, { expose: n, emit: P }) {
29
- const p = P, I = ae(), V = ne(), f = F(!1), a = F(), _ = F(), i = te, l = j(
30
+ const u = P, I = ae(), V = ne(), f = F(!1), a = F(), _ = F(), i = te, l = j(
30
31
  () => {
31
32
  var r;
32
33
  return Z[((r = a.value) == null ? void 0 : r.type) || "VOUCHER"];
@@ -37,7 +38,7 @@ const pe = {
37
38
  });
38
39
  function L() {
39
40
  const r = i.safeParse(a.value);
40
- r.success && p("update", r.data);
41
+ r.success && u("update", r.data);
41
42
  }
42
43
  function x(r, t, o = {
43
44
  isStoreReward: !1,
@@ -55,7 +56,7 @@ const pe = {
55
56
  data: a,
56
57
  rewardImage: _
57
58
  }), (r, t) => {
58
- const o = g("FmTextarea"), y = g("FmHelperText"), u = g("FmButton"), C = g("FmSideSheet");
59
+ const o = g("FmTextarea"), y = g("FmHelperText"), p = g("FmButton"), C = g("FmSideSheet");
59
60
  return d(), b(C, {
60
61
  "max-width": 560,
61
62
  modelValue: e(f),
@@ -64,13 +65,13 @@ const pe = {
64
65
  }, {
65
66
  "side-sheet-footer": S(() => [
66
67
  s("div", we, [
67
- c(u, {
68
+ c(p, {
68
69
  label: "Submit",
69
70
  onClick: L,
70
71
  disabled: e(A).length > 0 || e(K)().isLoading,
71
72
  loading: e(K)().isLoading
72
73
  }, null, 8, ["disabled", "loading"]),
73
- c(u, {
74
+ c(p, {
74
75
  label: "Cancel",
75
76
  onClick: t[6] || (t[6] = (R) => x(!1)),
76
77
  variant: "tertiary"
@@ -80,7 +81,7 @@ const pe = {
80
81
  default: S(() => {
81
82
  var R, E, w;
82
83
  return [
83
- e(a) ? (d(), O("div", pe, [
84
+ e(a) ? (d(), O("div", ue, [
84
85
  s("div", fe, [
85
86
  t[8] || (t[8] = z(" Reward information ")),
86
87
  (d(), b(M(e(l).chip())))
@@ -171,7 +172,7 @@ const pe = {
171
172
  }, 8, ["modelValue"]);
172
173
  };
173
174
  }
174
- }), ve = { class: "px-24 flex flex-col gap-y-16" }, Re = { class: "flex items-center justify-between w-full" }, be = { class: "flex flex-col gap-16 text-center" }, _e = { class: "fm-typo-en-title-sm-800" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ke = /* @__PURE__ */ G({
175
+ }), ve = { class: "px-24 flex flex-col gap-y-16" }, Re = { class: "flex items-center justify-between w-full" }, be = { class: "flex flex-col gap-16 text-center" }, _e = { class: "fm-typo-en-title-sm-800" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ge = /* @__PURE__ */ G({
175
176
  __name: "StoreRewards",
176
177
  setup(W) {
177
178
  const { t: n } = ee(), P = {
@@ -179,7 +180,7 @@ const pe = {
179
180
  value: "create",
180
181
  isPrimary: !0,
181
182
  prependIcon: "add"
182
- }, p = X(), { global: I, minor: V } = Q, f = ue(), a = F({
183
+ }, u = X(), { global: I, minor: V } = Q, f = pe(), a = F({
183
184
  searchKey: "",
184
185
  columnFilters: []
185
186
  }), _ = [
@@ -264,7 +265,7 @@ const pe = {
264
265
  }
265
266
  }
266
267
  ], i = j(
267
- () => p.bundleRewards.filter((t) => t.type == "VOUCHER")
268
+ () => u.bundleRewards.filter((t) => t.type == "VOUCHER")
268
269
  ), l = F();
269
270
  function A(t) {
270
271
  f.push({
@@ -286,7 +287,7 @@ const pe = {
286
287
  n("connect.storeRewards.delete.title")
287
288
  ) && await V(
288
289
  async () => {
289
- await N.deleteReward(t._id), await p.readMembership(), await p.readRewards();
290
+ await N.deleteReward(t._id), await u.readMembership(), await u.readRewards();
290
291
  },
291
292
  {
292
293
  message: n("connect.storeRewards.delete.message"),
@@ -296,7 +297,7 @@ const pe = {
296
297
  }
297
298
  async function x(t) {
298
299
  var y;
299
- const o = t ? oe(p.bundleRewards.find((u) => u._id === t)) : void 0;
300
+ const o = t ? oe(u.bundleRewards.find((p) => p._id === t)) : void 0;
300
301
  if ((o == null ? void 0 : o.type) === "TITLE") {
301
302
  await H.confirm(
302
303
  "You cannot edit a title here, please edit it at the Program > Title section.",
@@ -313,14 +314,14 @@ const pe = {
313
314
  async function r(t) {
314
315
  await V(
315
316
  async () => {
316
- var o, y, u, C;
317
+ var o, y, p, C;
317
318
  (o = l.value) != null && o.rewardImage && t.image ? await B.delete(t.image) : (y = l.value) != null && y.rewardImage && (t.image = await B.update(
318
319
  t.image || B.collectibleImagePath(
319
320
  void 0,
320
321
  l.value.rewardImage
321
322
  ),
322
- (u = l.value) == null ? void 0 : u.rewardImage
323
- )), t._id ? await N.updateReward(t._id, t) : await N.createReward(t), await p.readRewards(), (C = l.value) == null || C.showSheet(!1);
323
+ (p = l.value) == null ? void 0 : p.rewardImage
324
+ )), t._id ? await N.updateReward(t._id, t) : await N.createReward(t), await u.readRewards(), (C = l.value) == null || C.showSheet(!1);
324
325
  },
325
326
  {
326
327
  message: "Updating reward",
@@ -330,10 +331,10 @@ const pe = {
330
331
  }
331
332
  return q(async () => {
332
333
  await I(async () => {
333
- await p.readMembership(), await p.readRewards();
334
+ await u.readMembership(), await u.readRewards();
334
335
  });
335
336
  }), (t, o) => {
336
- const y = g("FmPageHead"), u = g("FmSearch"), C = g("FmTable"), R = g("FmButton"), E = g("FmCard");
337
+ const y = g("FmPageHead"), p = g("FmSearch"), C = g("FmTable"), R = g("FmButton"), E = g("FmCard");
337
338
  return d(), O(D, null, [
338
339
  c(y, {
339
340
  title: e(n)("connect.storeRewards.title"),
@@ -347,7 +348,7 @@ const pe = {
347
348
  e(i) && e(i).length > 0 ? (d(), O(D, { key: 0 }, [
348
349
  s("div", Re, [
349
350
  o[6] || (o[6] = s("div", { class: "flex gap-8" }, null, -1)),
350
- c(u, {
351
+ c(p, {
351
352
  modelValue: e(a).searchKey,
352
353
  "onUpdate:modelValue": o[2] || (o[2] = (w) => e(a).searchKey = w),
353
354
  class: "",
@@ -397,5 +398,5 @@ const pe = {
397
398
  }
398
399
  });
399
400
  export {
400
- Ke as default
401
+ Ge as default
401
402
  };