@feedmepos/mf-connect 0.1.30-prod → 0.1.32-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 (90) hide show
  1. package/dist/{Analytic-C_uRY3I5.js → Analytic-DRJEtVnN.js} +11 -11
  2. package/dist/{App-zOAwWGz6.js → App-C1IuGBAJ.js} +7 -7
  3. package/dist/{Bin-CePm_uVx.js → Bin-CM9cU-iH.js} +8 -8
  4. package/dist/{Broadcast-BcRSoknR.js → Broadcast-1Fy8Nob5.js} +9 -9
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-5StwY5c9.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DiAEDcl5.js} +6 -6
  6. package/dist/{Card-Dmyxmub5.js → Card-CnuSjjCj.js} +97 -96
  7. package/dist/{Collections-DiV_e9h-.js → Collections-DAj_A1iu.js} +21 -20
  8. package/dist/{Credit-CkGdHhn2.js → Credit-DLH2GYYz.js} +9 -9
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-SulDMna0.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-C4Sy1K8q.js} +29 -28
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CSY1HXaL.js → EffectSheet.vue_vue_type_style_index_0_lang-D4--kNds.js} +6 -6
  11. package/dist/{Experience-DjsOWpa9.js → Experience-Dgyi4U-L.js} +9 -9
  12. package/dist/FileSaver.min-NlMItPOc.js +74 -0
  13. package/dist/{Game-2_J99uIX.js → Game-VKYjF7hq.js} +10 -10
  14. package/dist/{Index-a1eFJ8i1.js → Index-B0BkKPLD.js} +10 -10
  15. package/dist/{Marketing-Clz0CYrY.js → Marketing-Bzl7m10d.js} +6 -6
  16. package/dist/Member-CDmDoJFr.js +287 -0
  17. package/dist/{MemberList-D-5IP783.js → MemberList-C4l_Q9y1.js} +38 -37
  18. package/dist/{MemberTransactions-B7D_qrLX.js → MemberTransactions-SUlFwOov.js} +1 -1
  19. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-XhbiT524.js → MessageInput.vue_vue_type_script_setup_true_lang-Buj3xx1j.js} +17 -16
  20. package/dist/{Mission-B7UVVT1j.js → Mission-BriLVrc4.js} +88 -93
  21. package/dist/{Overview-BfZuRgE-.js → Overview-AklJfO0G.js} +64 -63
  22. package/dist/{Point-MGLwWD4B.js → Point-B7VnNPaG.js} +9 -9
  23. package/dist/{Promotion-BrhYslNt.js → Promotion-hlKzzWJD.js} +10 -10
  24. package/dist/{Queue-Bz160bZx.js → Queue-gOxy9cBG.js} +76 -65
  25. package/dist/{Record-DrpOYO01.js → Record-BwWXqFv6.js} +17 -16
  26. package/dist/{Reward-ClX3C1Sp.js → Reward-JKh-M0oD.js} +15 -15
  27. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-0L9iBoC4.js → RewardGroup.vue_vue_type_script_setup_true_lang-DFogiHWh.js} +11 -11
  28. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BlCyumkR.js → RuleGroup.vue_vue_type_script_setup_true_lang-CTOfCYsE.js} +15 -14
  29. package/dist/Segment-BlMx0eoR.js +880 -0
  30. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-D5eLqSso.js → SelectItems.vue_vue_type_script_setup_true_lang-DCsFcqQ5.js} +2 -2
  31. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Cb3yPiSc.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-G01kJeLd.js} +11 -11
  32. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-B_RBF59b.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-gUoBLfVo.js} +3 -3
  33. package/dist/{Setting-CgRON4iT.js → Setting-CoKP6Z-F.js} +43 -42
  34. package/dist/{Store-BGbO2NeC.js → Store-CxUagz23.js} +28 -27
  35. package/dist/{StoreRewards-DyCWcVsT.js → StoreRewards-CLSQgaNo.js} +13 -13
  36. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-ePVWe6Kb.js → StoreTransactions.vue_vue_type_script_setup_true_lang-V4rH3vAQ.js} +26 -25
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DLQOZH-k.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DJ7incG7.js} +1 -1
  38. package/dist/{Tier-B7LRmyHJ.js → Tier-DwTL1xNM.js} +22 -21
  39. package/dist/{Title-DrQaQ7ew.js → Title-DhBL_eYK.js} +19 -19
  40. package/dist/{Transaction-B2M_gPhT.js → Transaction-CRskHsNr.js} +2 -2
  41. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Bc8cnLBQ.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DoE7rDgi.js} +6 -6
  42. package/dist/{Voucher-BcVMrpOm.js → Voucher-CxDqASF5.js} +12 -12
  43. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DIfHJ6Sw.js → VoucherEditor.vue_vue_type_script_setup_true_lang-wkihtNI3.js} +10 -10
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DfinebCV.js → ZodTextField.vue_vue_type_script_setup_true_lang-BeLTXjOv.js} +1 -1
  45. package/dist/{app-BXGrI0oQ.js → app-CTFwjMxq.js} +1 -1
  46. package/dist/{app-Sjl26OK7.js → app-QgT2HXjv.js} +34 -30
  47. package/dist/app.js +1 -1
  48. package/dist/{business-ICKi8JNz.js → business-DhCzKu3V.js} +1 -1
  49. package/dist/{campaign-AiWYrbax.js → campaign-CFggCOe6.js} +9 -9
  50. package/dist/{campaign-BExdhFR9.js → campaign-DAgovrbX.js} +2 -2
  51. package/dist/{campaign.enum-WEt42FO9.js → campaign.enum-pZr63pXN.js} +1 -1
  52. package/dist/{campaign.fn-CHQ63XNa.js → campaign.fn-CM_t1wNu.js} +135 -135
  53. package/dist/{collectible.enum-DFaOnC3D.js → collectible.enum-fbWiJ-v2.js} +1 -1
  54. package/dist/{collection.fn-B3XEjDdU.js → collection.fn-BrbSJ0dj.js} +2 -2
  55. package/dist/{dto-B09V82Pa.js → dto-BcLrcoo_.js} +12 -12
  56. package/dist/{effect-CUcku1wp.js → effect-WVUo2VX0.js} +1 -1
  57. package/dist/{email-addresses-CSpdONTz.js → email-addresses-B8YBttOp.js} +1 -1
  58. package/dist/{export-DJfDtT62.js → export-FilTnKIf.js} +3 -3
  59. package/dist/{helper-CbSsYPpI.js → helper-A-JE89j8.js} +1 -1
  60. package/dist/{index-DsmYdmgu.js → index-BPCfLPV5.js} +1 -1
  61. package/dist/{index-Clj1WSBs.js → index-BSavh-ab.js} +3 -3
  62. package/dist/{index-BSTUrmqB.js → index-C1vwtNMj.js} +6 -6
  63. package/dist/{index-QyxsXvZB.js → index-CK_9lnGD.js} +3 -3
  64. package/dist/{index-B3HoKsL8.js → index-CX4Q-ODj.js} +1 -1
  65. package/dist/{index-D98bOypJ.js → index-CyqffI0r.js} +1 -1
  66. package/dist/{index-DeYzI7Ad.js → index-CzH8ux-h.js} +2 -2
  67. package/dist/{index-DLsHC8RI.js → index-CzbdA0d3.js} +1 -1
  68. package/dist/{plugins-BZn2aS9v.js → index-DFS6jDHm.js} +3784 -3989
  69. package/dist/{index-C1wvmxnj.js → index-DI956UFg.js} +1 -1
  70. package/dist/{index-C_bBUep_.js → index-DvM-OpLR.js} +469 -456
  71. package/dist/{index-BaR_Lcm6.js → index-FsTLGrIL.js} +1 -1
  72. package/dist/{index-ZQcFToUw.js → index-OehNKdCW.js} +1 -1
  73. package/dist/{index.esm2017-D0ExClUr.js → index.esm2017-CScWJGpE.js} +1 -1
  74. package/dist/{loading-BPPrnQNO.js → loading-CXZ39_xw.js} +1 -1
  75. package/dist/{membership-XRsihZq0.js → membership-Bg_pBT1C.js} +54 -48
  76. package/dist/{money-hdSAgWNM.js → money-D4vhiGvs.js} +1 -1
  77. package/dist/{number-DYeV4NB_.js → number-p3U-wKsr.js} +1 -1
  78. package/dist/{objectid-CC8rUDIT.js → objectid-C_k8DXMk.js} +8 -8
  79. package/dist/plugins-BzCgGFW_.js +208 -0
  80. package/dist/{reward-6Gs4Tj0g.js → reward-DL7dVgek.js} +1 -1
  81. package/dist/{rule-builder-C7d79jSS.js → rule-builder-DZEGo8FL.js} +1 -1
  82. package/dist/{rule-BRP3Seyh.js → rule-iUlMzG59.js} +3 -3
  83. package/dist/{template-B0NSZx7m.js → template-FZF9V1B2.js} +4 -4
  84. package/dist/{trigger-B5-fD0op.js → trigger-woPb5C0Z.js} +4 -4
  85. package/dist/{user-t4f-8zfV.js → user-CoOoRDFP.js} +1 -1
  86. package/dist/{vue-i18n-Byc8euZx.js → vue-i18n-5r8XYctA.js} +348 -348
  87. package/dist/{xlsx-C_z356In.js → xlsx-Cx714TFU.js} +1 -1
  88. package/package.json +1 -1
  89. package/dist/Member-TNxdgh6i.js +0 -348
  90. package/dist/Segment-OY9qUZnY.js +0 -578
@@ -1,37 +1,38 @@
1
1
  import { defineComponent as be, computed as H, ref as G, resolveComponent as $, openBlock as u, createElementBlock as A, Fragment as q, createElementVNode as t, unref as e, createBlock as R, createCommentVNode as ce, createVNode as h, renderList as ie, withCtx as xe, createTextVNode as Fe, toDisplayString as I, withDirectives as Re, vShow as Ue, watch as Le, onBeforeMount as st, h as K, onMounted as ze, isRef as rt, normalizeClass as it } from "vue";
2
2
  import { h as S } from "./moment-BWErdI6_.js";
3
3
  import { useDialog as Ee, components as ve } from "@feedmepos/ui-library";
4
- import { e as lt, M as ct } from "./email-addresses-CSpdONTz.js";
5
- import { w as dt } from "./xlsx-C_z356In.js";
6
- import "./index-D98bOypJ.js";
7
- import { p as De, c as Ne, b as Ye } from "./plugins-BZn2aS9v.js";
8
- import { u as $e, C as Pe, s as mt } from "./membership-XRsihZq0.js";
9
- import { c as ut } from "./index-Clj1WSBs.js";
10
- import { _ as Oe } from "./lodash-B5I3zXaY.js";
4
+ import { e as lt, M as ct } from "./email-addresses-B8YBttOp.js";
5
+ import { w as dt } from "./xlsx-Cx714TFU.js";
6
+ import "./index-CyqffI0r.js";
7
+ import "./index-DFS6jDHm.js";
8
+ import { u as $e, C as De, s as mt } from "./membership-Bg_pBT1C.js";
9
+ import { c as ut } from "./index-BSavh-ab.js";
10
+ import { _ as Ne } from "./lodash-B5I3zXaY.js";
11
11
  import { D as pt } from "./type_drinks-D6jnpvwV.js";
12
- import { c as ft, d as bt, e as yt, f as gt, g as vt } from "./index-C_bBUep_.js";
13
- import { u as je } from "./loading-BPPrnQNO.js";
14
- import { C as Ae } from "./collection.fn-B3XEjDdU.js";
12
+ import { d as ft, e as bt, f as yt, g as gt, h as vt } from "./index-DvM-OpLR.js";
13
+ import { p as Ye, c as Pe, b as Oe } from "./plugins-BzCgGFW_.js";
14
+ import { u as je } from "./loading-CXZ39_xw.js";
15
+ import { C as Ae } from "./collection.fn-BrbSJ0dj.js";
15
16
  import { defineStore as xt } from "pinia";
16
- import { u as qe } from "./business-ICKi8JNz.js";
17
- import { f as ee } from "./number-DYeV4NB_.js";
18
- import "./index-DeYzI7Ad.js";
19
- import "./index-BSTUrmqB.js";
20
- import "./index-DLsHC8RI.js";
21
- import "./index-QyxsXvZB.js";
17
+ import { u as qe } from "./business-DhCzKu3V.js";
18
+ import { f as ee } from "./number-p3U-wKsr.js";
19
+ import "./index-CzH8ux-h.js";
20
+ import "./index-C1vwtNMj.js";
21
+ import "./index-CzbdA0d3.js";
22
+ import "./index-CK_9lnGD.js";
22
23
  import { s as _t } from "./index-CuvNtC_M.js";
23
24
  import { u as Ke, _ as Ge } from "./usePagination-JoYaROkV.js";
24
- import { B as ht, e as St } from "./export-DJfDtT62.js";
25
- import { m as Me } from "./index-ZQcFToUw.js";
25
+ import { B as ht, e as St } from "./export-FilTnKIf.js";
26
+ import { m as Me } from "./index-OehNKdCW.js";
26
27
  import { o as Ce } from "./objectId-dwaoBfJX.js";
27
- import { F as ke } from "./collectible.enum-DFaOnC3D.js";
28
- import { g as Ct, b as wt } from "./campaign-AiWYrbax.js";
28
+ import { F as ke } from "./collectible.enum-fbWiJ-v2.js";
29
+ import { g as Ct, b as wt } from "./campaign-CFggCOe6.js";
29
30
  import { useRouter as He } from "vue-router";
30
- import { m as le } from "./index-BaR_Lcm6.js";
31
- import { t as Ft } from "./index-DsmYdmgu.js";
32
- import { R as We } from "./app-Sjl26OK7.js";
33
- import { t as Mt } from "./money-hdSAgWNM.js";
34
- import { g as Tt, a as kt, b as At } from "./user-t4f-8zfV.js";
31
+ import { m as le } from "./index-FsTLGrIL.js";
32
+ import { t as Ft } from "./index-BPCfLPV5.js";
33
+ import { R as We } from "./app-QgT2HXjv.js";
34
+ import { t as Mt } from "./money-D4vhiGvs.js";
35
+ import { g as Tt, a as kt, b as At } from "./user-CoOoRDFP.js";
35
36
  const Et = { class: "flex flex-col" }, $t = /* @__PURE__ */ t("div", { class: "fm-typo-en-title-sm-800 mb-8" }, "Member tiering", -1), Vt = /* @__PURE__ */ t("div", { class: "fm-typo-en-title-sm-800 mt-16 mb-8" }, "Member Card", -1), It = /* @__PURE__ */ t("div", { class: "fm-typo-en-title-sm-800 mt-16 mb-8" }, "Titles", -1), Bt = { key: 1 }, Dt = /* @__PURE__ */ t("div", { class: "flex flex-nowrap gap-4 items-center" }, [
36
37
  /* @__PURE__ */ t("div", { class: "flex-1" }, "Title"),
37
38
  /* @__PURE__ */ t("div", { class: "flex-1" }, "Expires in days"),
@@ -297,13 +298,13 @@ const Et = { class: "flex flex-col" }, $t = /* @__PURE__ */ t("div", { class: "f
297
298
  async function d() {
298
299
  if (p.action === "send") {
299
300
  const m = x.value.day ? `, expire in ${x.value.day} days` : "";
300
- De.confirm(
301
+ Ye.confirm(
301
302
  `Are you sure to send ${x.value.amount} ${o.value.toLowerCase()}${m}? This action cannot be reversed.`
302
303
  ).then(async (g) => {
303
304
  g && await p.onSubmit(x.value);
304
305
  });
305
306
  } else
306
- De.confirm(
307
+ Ye.confirm(
307
308
  `Are you sure to deduct ${x.value.amount} ${o.value.toLowerCase()}? This action cannot be reversed.`
308
309
  ).then(async (m) => {
309
310
  m && await p.onSubmit(x.value);
@@ -319,13 +320,13 @@ const Et = { class: "flex flex-col" }, $t = /* @__PURE__ */ t("div", { class: "f
319
320
  default: xe(() => {
320
321
  var ne, W, se, c, f, M;
321
322
  return [
322
- t("div", Rt, I(p.action == "send" ? "Send" : "Deduct") + " " + I(e(Pe)[p.type.toUpperCase()].name), 1),
323
+ t("div", Rt, I(p.action == "send" ? "Send" : "Deduct") + " " + I(e(De)[p.type.toUpperCase()].name), 1),
323
324
  Fe(" " + I(e(C)) + " ", 1),
324
325
  t("div", Ut, [
325
326
  h(V, {
326
327
  modelValue: e(x).amount,
327
328
  "onUpdate:modelValue": g[0] || (g[0] = (s) => e(x).amount = s),
328
- label: `${e(Pe)[p.type.toUpperCase()].name} amount`,
329
+ label: `${e(De)[p.type.toUpperCase()].name} amount`,
329
330
  "is-currency": !0,
330
331
  "max-fraction-digits": 2,
331
332
  "helper-state": (ne = e(C)) != null && ne.amount ? "error" : void 0,
@@ -644,7 +645,7 @@ const qt = { class: "border border-fm-color-neutral-gray-100 rounded-lg p-16" },
644
645
  header: "Type",
645
646
  accessorFn: (r) => {
646
647
  var o, v, d;
647
- return Ne.title(((d = (v = (o = r == null ? void 0 : r.pf_collectible) == null ? void 0 : o.extras) == null ? void 0 : v.mission) == null ? void 0 : d.type) || "-");
648
+ return Pe.title(((d = (v = (o = r == null ? void 0 : r.pf_collectible) == null ? void 0 : o.extras) == null ? void 0 : v.mission) == null ? void 0 : d.type) || "-");
648
649
  },
649
650
  enableSorting: !1
650
651
  },
@@ -662,7 +663,7 @@ const qt = { class: "border border-fm-color-neutral-gray-100 rounded-lg p-16" },
662
663
  ), C = r.row.original.balance === r.row.original.pf_collectible.extras.mission.end && v === "active" ? "completed" : v;
663
664
  return K(ve.FmChip, {
664
665
  class: o[C],
665
- label: Ne.title(C),
666
+ label: Pe.title(C),
666
667
  compact: !0
667
668
  });
668
669
  }
@@ -947,7 +948,7 @@ const qt = { class: "border border-fm-color-neutral-gray-100 rounded-lg p-16" },
947
948
  label: "Tier",
948
949
  getter: (a) => {
949
950
  var re, me, ye, _, Y;
950
- const n = (((me = Oe.first((re = m.member.collection) == null ? void 0 : re.TIER)) == null ? void 0 : me.balance) || 0) - 1, b = M.value.name, B = ((_ = (ye = a.collection) == null ? void 0 : ye.POINT) == null ? void 0 : _[0].balance) ?? 0, N = r.sortedTiers[n + 1], X = ((Y = N == null ? void 0 : N.option) == null ? void 0 : Y.to) ?? 1 / 0;
951
+ const n = (((me = Ne.first((re = m.member.collection) == null ? void 0 : re.TIER)) == null ? void 0 : me.balance) || 0) - 1, b = M.value.name, B = ((_ = (ye = a.collection) == null ? void 0 : ye.POINT) == null ? void 0 : _[0].balance) ?? 0, N = r.sortedTiers[n + 1], X = ((Y = N == null ? void 0 : N.option) == null ? void 0 : Y.to) ?? 1 / 0;
951
952
  return `${b} (${B}/${X})`;
952
953
  }
953
954
  },
@@ -973,7 +974,7 @@ const qt = { class: "border border-fm-color-neutral-gray-100 rounded-lg p-16" },
973
974
  },
974
975
  {
975
976
  label: "Total visit(s)",
976
- getter: (a) => Ye.singularOrPlural(a.stats.visitCount, "bill")
977
+ getter: (a) => Oe.singularOrPlural(a.stats.visitCount, "bill")
977
978
  },
978
979
  {
979
980
  label: "Last visit",
@@ -981,7 +982,7 @@ const qt = { class: "border border-fm-color-neutral-gray-100 rounded-lg p-16" },
981
982
  },
982
983
  {
983
984
  label: "Frequency",
984
- getter: (a) => `Every ${Ye.singularOrPlural(
985
+ getter: (a) => `Every ${Oe.singularOrPlural(
985
986
  Number(Math.ceil(a.stats.avgVisitFrequency).toFixed(0)),
986
987
  "day"
987
988
  )}`
@@ -1006,7 +1007,7 @@ const qt = { class: "border border-fm-color-neutral-gray-100 rounded-lg p-16" },
1006
1007
  // },
1007
1008
  ], M = H(() => {
1008
1009
  var b, B;
1009
- const a = (((B = Oe.first((b = m.member.collection) == null ? void 0 : b.TIER)) == null ? void 0 : B.balance) || 0) - 1, n = r.sortedTiers[a];
1010
+ const a = (((B = Ne.first((b = m.member.collection) == null ? void 0 : b.TIER)) == null ? void 0 : B.balance) || 0) - 1, n = r.sortedTiers[a];
1010
1011
  return { name: (n == null ? void 0 : n.name) || "-", tier: a, config: n };
1011
1012
  }), s = H(() => {
1012
1013
  var a;
@@ -1281,7 +1282,7 @@ const qt = { class: "border border-fm-color-neutral-gray-100 rounded-lg p-16" },
1281
1282
  }, 8, ["modelValue"]);
1282
1283
  };
1283
1284
  }
1284
- }), sa = { class: "flex items-center justify-end" }, Ra = /* @__PURE__ */ be({
1285
+ }), sa = { class: "flex items-center justify-end" }, Ua = /* @__PURE__ */ be({
1285
1286
  __name: "MemberList",
1286
1287
  setup(y) {
1287
1288
  const k = Je(), p = $e(), x = qe(), { minor: r } = je, o = He(), v = [
@@ -1601,5 +1602,5 @@ const qt = { class: "border border-fm-color-neutral-gray-100 rounded-lg p-16" },
1601
1602
  }
1602
1603
  });
1603
1604
  export {
1604
- Ra as default
1605
+ Ua as default
1605
1606
  };
@@ -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-ePVWe6Kb.js";
2
+ import { _ as k, a as x } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-V4rH3vAQ.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,11 +1,12 @@
1
- import { defineComponent as I, shallowRef as G, openBlock as p, createElementBlock as C, normalizeStyle as P, ref as M, resolveComponent as g, createBlock as _, unref as i, isRef as q, withCtx as v, createVNode as h, createElementVNode as x, createCommentVNode as H, withDirectives as U, vShow as T, computed as J, onMounted as z, Fragment as B, createTextVNode as K, toDisplayString as W, renderList as X } from "vue";
2
- import { p as Y } from "./plugins-BZn2aS9v.js";
3
- import { A as Z } from "./index-C_bBUep_.js";
1
+ import { defineComponent as I, shallowRef as G, openBlock as p, createElementBlock as C, normalizeStyle as P, ref as M, resolveComponent as g, createBlock as _, unref as i, isRef as q, withCtx as v, createVNode as h, createElementVNode as x, createCommentVNode as H, withDirectives as A, vShow as B, computed as J, onMounted as z, Fragment as T, createTextVNode as K, toDisplayString as W, renderList as X } from "vue";
2
+ import { p as Y } from "./plugins-BzCgGFW_.js";
3
+ import { B as Z } from "./index-DvM-OpLR.js";
4
+ import "./index-DFS6jDHm.js";
4
5
  import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
6
  import { _ as ee, S as te } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js";
6
7
  import { c as ne } from "./object-qECH92oz.js";
7
8
  import { useCoreStore as oe } from "@feedmepos/mf-common";
8
- import { u as ae } from "./membership-XRsihZq0.js";
9
+ import { u as ae } from "./membership-Bg_pBT1C.js";
9
10
  const se = {
10
11
  "user.name": {
11
12
  name: "User name"
@@ -46,7 +47,7 @@ const se = {
46
47
  "membership.url": {
47
48
  name: "Membership URL"
48
49
  }
49
- }, Ie = {
50
+ }, Le = {
50
51
  MY: ["user.phoneNumber", "membership.url"]
51
52
  }, ie = "https://editor.unlayer.com/embed.js?2", N = [];
52
53
  let O = !1;
@@ -214,14 +215,14 @@ const he = /* @__PURE__ */ Q(ce, [["render", pe], ["__scopeId", "data-v-a9a2bb94
214
215
  width: 100,
215
216
  height: 100
216
217
  }, null, 8, ["json"])),
217
- U(h(f, {
218
+ A(h(f, {
218
219
  label: "Email title",
219
220
  modelValue: i(l).title,
220
221
  "onUpdate:modelValue": t[0] || (t[0] = (s) => i(l).title = s)
221
222
  }, null, 8, ["modelValue"]), [
222
- [T, i(m)]
223
+ [B, i(m)]
223
224
  ]),
224
- U(h(he, {
225
+ A(h(he, {
225
226
  class: "flex-1",
226
227
  ref_key: "editorRef",
227
228
  ref: a,
@@ -231,7 +232,7 @@ const he = /* @__PURE__ */ Q(ce, [["render", pe], ["__scopeId", "data-v-a9a2bb94
231
232
  m.value = !0, b.design && ((s = i(a)) == null || s.loadDesign(i(ne)(b.design)));
232
233
  })
233
234
  }, null, 512), [
234
- [T, i(m)]
235
+ [B, i(m)]
235
236
  ])
236
237
  ])
237
238
  ]),
@@ -253,7 +254,7 @@ const he = /* @__PURE__ */ Q(ce, [["render", pe], ["__scopeId", "data-v-a9a2bb94
253
254
  }, 8, ["modelValue"]);
254
255
  };
255
256
  }
256
- }), ye = { class: "space-y-4" }, ve = { class: "flex items-center gap-8 justify-between" }, xe = /* @__PURE__ */ x("div", { class: "fm-typo-en-body-lg-400" }, "Add message", -1), Se = { class: "relative" }, Ve = { class: "absolute bottom-[24px] right-[4px]" }, Le = /* @__PURE__ */ I({
257
+ }), ye = { class: "space-y-4" }, ve = { class: "flex items-center gap-8 justify-between" }, xe = /* @__PURE__ */ x("div", { class: "fm-typo-en-body-lg-400" }, "Add message", -1), Se = { class: "relative" }, Ve = { class: "absolute bottom-[24px] right-[4px]" }, De = /* @__PURE__ */ I({
257
258
  __name: "MessageInput",
258
259
  props: {
259
260
  allowEmail: {
@@ -383,7 +384,7 @@ const he = /* @__PURE__ */ Q(ce, [["render", pe], ["__scopeId", "data-v-a9a2bb94
383
384
  "onUpdate:design": t[1] || (t[1] = (u) => {
384
385
  l(u, "EMAIL");
385
386
  })
386
- }, null, 8, ["design", "title"])) : (p(), C(B, { key: 2 }, [
387
+ }, null, 8, ["design", "title"])) : (p(), C(T, { key: 2 }, [
387
388
  x("div", ve, [
388
389
  xe,
389
390
  h(f, {
@@ -417,7 +418,7 @@ const he = /* @__PURE__ */ Q(ce, [["render", pe], ["__scopeId", "data-v-a9a2bb94
417
418
  })
418
419
  ]),
419
420
  default: v(() => [
420
- (p(!0), C(B, null, X(e.variables.filter(
421
+ (p(!0), C(T, null, X(e.variables.filter(
421
422
  (u) => e.triggerType == "SCHEDULE" ? !u.startsWith("transaction.") : !0
422
423
  ), (u) => {
423
424
  var D;
@@ -425,8 +426,8 @@ const he = /* @__PURE__ */ Q(ce, [["render", pe], ["__scopeId", "data-v-a9a2bb94
425
426
  key: u,
426
427
  label: ((D = i(se)[u]) == null ? void 0 : D.name) || u,
427
428
  onClick: (Ee) => {
428
- var A;
429
- return l(((A = e.modelValue) == null ? void 0 : A.content) + `{{${u}}}`);
429
+ var U;
430
+ return l(((U = e.modelValue) == null ? void 0 : U.content) + `{{${u}}}`);
430
431
  }
431
432
  }, null, 8, ["label", "onClick"]);
432
433
  }), 128))
@@ -441,6 +442,6 @@ const he = /* @__PURE__ */ Q(ce, [["render", pe], ["__scopeId", "data-v-a9a2bb94
441
442
  }
442
443
  });
443
444
  export {
444
- Ie as M,
445
- Le as _
445
+ Le as M,
446
+ De as _
446
447
  };
@@ -1,39 +1,39 @@
1
- import { defineComponent as H, ref as w, computed as q, h as l, onMounted as z, resolveComponent as m, openBlock as p, createElementBlock as x, Fragment as v, createVNode as c, unref as t, createElementVNode as s, withCtx as C, renderList as W, createBlock as b, resolveDynamicComponent as G, toDisplayString as u } from "vue";
2
- import { _ as J } from "./campaign-CpzFl8Vr.js";
3
- import { u as Q } from "./loading-BPPrnQNO.js";
4
- import { g as X, a as B, b as P } from "./campaign-AiWYrbax.js";
5
- import { a as Y, p as Z } from "./plugins-BZn2aS9v.js";
6
- import { u as ee } from "./business-ICKi8JNz.js";
7
- import { u as oe } from "./campaign-BExdhFR9.js";
8
- import { useDialog as te, components as _ } from "@feedmepos/ui-library";
9
- import { _ as ne } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
10
- import { u as ae } from "./template-B0NSZx7m.js";
11
- import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-SulDMna0.js";
12
- import { s as ie } from "./index-CuvNtC_M.js";
13
- import { u as ce } from "./vue-i18n-Byc8euZx.js";
14
- import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-Cb3yPiSc.js";
15
- import { c as h } from "./index-B3HoKsL8.js";
16
- const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-center justify-between w-full" }, de = { class: "flex gap-8 overflow-x-auto" }, pe = { class: "space-y-8" }, ue = { class: "flex w-full gap-4 items-center" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "space-y-4" }, ye = { class: "fm-typo-en-body-lg-600" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = /* @__PURE__ */ s("img", {
17
- src: J,
1
+ import { defineComponent as E, ref as h, computed as H, h as l, onMounted as q, resolveComponent as m, openBlock as p, createElementBlock as w, Fragment as x, createVNode as c, unref as t, createElementVNode as s, withCtx as b, renderList as z, createBlock as v, resolveDynamicComponent as W, toDisplayString as u } from "vue";
2
+ import { _ as G } from "./campaign-CpzFl8Vr.js";
3
+ import { u as J } from "./loading-CXZ39_xw.js";
4
+ import { g as Q, a as L, b as B } from "./campaign-CFggCOe6.js";
5
+ import { a as X, p as Y } from "./plugins-BzCgGFW_.js";
6
+ import { u as Z } from "./business-DhCzKu3V.js";
7
+ import { u as ee } from "./campaign-DAgovrbX.js";
8
+ import { useDialog as oe, components as C } from "@feedmepos/ui-library";
9
+ import { _ as te } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
10
+ import { u as ne } from "./template-FZF9V1B2.js";
11
+ import { _ as ae } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C4Sy1K8q.js";
12
+ import { s as se } from "./index-CuvNtC_M.js";
13
+ import { u as ie } from "./vue-i18n-5r8XYctA.js";
14
+ import { _ as ce } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-G01kJeLd.js";
15
+ import { c as _ } from "./index-CX4Q-ODj.js";
16
+ const re = { class: "px-24 flex flex-col gap-y-16" }, le = { class: "flex items-center justify-between w-full" }, me = { class: "flex gap-8 overflow-x-auto" }, de = { class: "space-y-8" }, pe = { class: "flex w-full gap-4 items-center" }, ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { class: "space-y-4" }, ge = { class: "fm-typo-en-body-lg-600" }, ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, he = /* @__PURE__ */ s("img", {
17
+ src: G,
18
18
  class: "aspect-square w-[150px]"
19
- }, null, -1), xe = { class: "flex flex-col gap-16 text-center" }, ve = { class: "fm-typo-en-title-sm-800" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae = /* @__PURE__ */ H({
19
+ }, null, -1), we = { class: "flex flex-col gap-16 text-center" }, xe = { class: "fm-typo-en-title-sm-800" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Oe = /* @__PURE__ */ E({
20
20
  __name: "Mission",
21
- setup(be) {
22
- const { t: n } = ce(), R = {
21
+ setup(ve) {
22
+ const { t: n } = ie(), P = {
23
23
  label: n("connect.program.common.actions.create", {
24
24
  type: n("connect.program.mission.title").toLowerCase()
25
25
  }),
26
26
  value: "create",
27
27
  isPrimary: !0,
28
28
  prependIcon: "add"
29
- }, S = te(), K = ae("MISSION", S), N = ee(), d = oe(), { global: T, minor: F } = Q, i = w({
29
+ }, S = oe(), R = ne("MISSION", S), K = Z(), d = ee(), { global: N, minor: F } = J, i = h({
30
30
  searchKey: "",
31
31
  location: null
32
- }), f = q(
32
+ }), f = H(
33
33
  () => d.campaigns.mission.filter(
34
34
  (e) => !i.value.location || !e.targetLocation || e.targetLocation.includes(i.value.location)
35
35
  )
36
- ), U = [
36
+ ), T = [
37
37
  {
38
38
  header: n("connect.program.common.table.title"),
39
39
  accessorKey: "name",
@@ -42,15 +42,15 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
42
42
  return l("div", { class: "flex items-center justify-between gap-4" }, [
43
43
  l("div", { class: "flex items-center" }, [
44
44
  l(
45
- _.FmTooltip,
45
+ C.FmTooltip,
46
46
  {
47
47
  content: e.row.original._id,
48
48
  onClick: (o) => {
49
- o.stopPropagation(), Y(e.row.original._id);
49
+ o.stopPropagation(), X(e.row.original._id);
50
50
  }
51
51
  },
52
52
  [
53
- l(_.FmIcon, {
53
+ l(C.FmIcon, {
54
54
  name: "info",
55
55
  outline: !0,
56
56
  size: "sm"
@@ -64,19 +64,19 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
64
64
  },
65
65
  {
66
66
  header: n("connect.campaign.mission.type"),
67
- accessorFn: (e) => ie(e.mission.type)
67
+ accessorFn: (e) => se(e.mission.type)
68
68
  //v.effect,
69
69
  },
70
70
  {
71
71
  header: n("connect.program.common.table.status"),
72
- accessorFn: (e) => X(e),
72
+ accessorFn: (e) => Q(e),
73
73
  cell(e) {
74
- return B(e.row.original);
74
+ return L(e.row.original);
75
75
  }
76
76
  },
77
77
  {
78
78
  header: n("connect.program.common.table.summary"),
79
- accessorFn: (e) => P(e)
79
+ accessorFn: (e) => B(e)
80
80
  //v.effect,
81
81
  },
82
82
  {
@@ -90,32 +90,33 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
90
90
  header: n("connect.program.common.table.actions"),
91
91
  cell(e) {
92
92
  return l("div", { class: "flex items-center gap-8" }, [
93
- l(_.FmButton, {
94
- variant: "tertiary",
95
- icon: "send",
96
- iconColor: "neutral-gray-400",
97
- onClick: (o) => {
98
- o.stopPropagation(), A(e.row.original);
99
- }
100
- }),
101
- l(_.FmButton, {
93
+ // h(components.FmButton, {
94
+ // variant: 'tertiary',
95
+ // icon: 'send',
96
+ // iconColor: 'neutral-gray-400',
97
+ // onClick: (e: Event) => {
98
+ // e.stopPropagation();
99
+ // onSendCollection(props.row.original);
100
+ // },
101
+ // }),
102
+ l(C.FmButton, {
102
103
  variant: "tertiary",
103
104
  icon: "delete",
104
105
  iconColor: "neutral-gray-400",
105
106
  onClick: (o) => {
106
- o.stopPropagation(), V(e.row.original);
107
+ o.stopPropagation(), I(e.row.original);
107
108
  }
108
109
  })
109
110
  ]);
110
111
  }
111
112
  }
112
- ], k = w(), I = w();
113
- async function V(e) {
114
- await Z.remove(
113
+ ], k = h(), U = h();
114
+ async function I(e) {
115
+ await Y.remove(
115
116
  n("connect.program.common.remove.confirm", { name: e.name })
116
117
  ) && await F(
117
118
  async () => {
118
- await h.delete(e._id), await d.read("MISSION");
119
+ await _.delete(e._id), await d.read("MISSION");
119
120
  },
120
121
  {
121
122
  message: n("connect.program.common.remove.removing", { name: e.name }),
@@ -126,7 +127,7 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
126
127
  );
127
128
  }
128
129
  async function y(e) {
129
- e ? await o() : K.open(async (r) => {
130
+ e ? await o() : R.open(async (r) => {
130
131
  await o(r);
131
132
  });
132
133
  async function o(r) {
@@ -134,7 +135,7 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
134
135
  (g = k.value) == null || g.showSheet(
135
136
  !0,
136
137
  "MISSION",
137
- e ? await h.readById(e._id) : void 0,
138
+ e ? await _.readById(e._id) : void 0,
138
139
  r
139
140
  );
140
141
  }
@@ -154,7 +155,7 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
154
155
  });
155
156
  }), await F(
156
157
  async () => {
157
- e.campaign._id ? await h.update(e.campaign._id, e) : await h.create(e), await d.read("MISSION");
158
+ e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await d.read("MISSION");
158
159
  },
159
160
  {
160
161
  message: n(
@@ -168,25 +169,19 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
168
169
  }
169
170
  );
170
171
  }
171
- function A(e) {
172
- var o;
173
- (o = I.value) == null || o.showSheet({
174
- campaign: e
175
- });
176
- }
177
- return z(async () => {
178
- await T(async () => {
172
+ return q(async () => {
173
+ await N(async () => {
179
174
  await d.read("MISSION"), console.log(f);
180
175
  });
181
176
  }), (e, o) => {
182
- const r = m("FmPageHead"), g = m("FmSearch"), D = m("FmTable"), M = m("FmButton"), $ = m("FmListItem"), j = m("FmList"), E = m("FmCard");
183
- return p(), x(v, null, [
177
+ const r = m("FmPageHead"), g = m("FmSearch"), A = m("FmTable"), V = m("FmButton"), D = m("FmListItem"), $ = m("FmList"), j = m("FmCard");
178
+ return p(), w(x, null, [
184
179
  c(r, {
185
180
  title: t(n)("connect.campaign.mission.title"),
186
- actions: t(f).length > 0 ? [R] : [],
181
+ actions: t(f).length > 0 ? [P] : [],
187
182
  "onClick:action": o[0] || (o[0] = () => y())
188
183
  }, null, 8, ["title", "actions"]),
189
- s("div", le, [
184
+ s("div", re, [
190
185
  c(g, {
191
186
  modelValue: t(i).searchKey,
192
187
  "onUpdate:modelValue": o[1] || (o[1] = (a) => t(i).searchKey = a),
@@ -194,17 +189,17 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
194
189
  placeholder: t(n)("connect.program.common.search"),
195
190
  collapsible: ""
196
191
  }, null, 8, ["modelValue", "placeholder"]),
197
- t(d).campaigns.mission && t(d).campaigns.mission.length > 0 ? (p(), x(v, { key: 0 }, [
198
- s("div", me, [
199
- s("div", de, [
200
- c(ne, {
192
+ t(d).campaigns.mission && t(d).campaigns.mission.length > 0 ? (p(), w(x, { key: 0 }, [
193
+ s("div", le, [
194
+ s("div", me, [
195
+ c(te, {
201
196
  modelValue: t(i).location,
202
197
  "onUpdate:modelValue": o[2] || (o[2] = (a) => t(i).location = a),
203
198
  label: t(n)("connect.program.common.location"),
204
199
  "show-item-label": !0,
205
200
  icon: "storefront",
206
201
  placement: "bottom-start",
207
- items: t(N).locationItems
202
+ items: t(K).locationItems
208
203
  }, null, 8, ["modelValue", "label", "items"])
209
204
  ]),
210
205
  c(g, {
@@ -215,41 +210,41 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
215
210
  collapsible: ""
216
211
  }, null, 8, ["modelValue"])
217
212
  ]),
218
- c(D, {
213
+ c(A, {
219
214
  class: "xs:hidden",
220
215
  "row-data": t(f),
221
- "column-defs": U,
216
+ "column-defs": T,
222
217
  "search-value": t(i).searchKey,
223
218
  "column-filter": [],
224
219
  onRowClick: o[4] || (o[4] = (a) => y(a.original)),
225
220
  "hide-footer": t(f).length < 10
226
221
  }, null, 8, ["row-data", "search-value", "hide-footer"]),
227
- c(j, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
228
- default: C(() => [
229
- (p(!0), x(v, null, W(t(f).filter(
222
+ c($, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
223
+ default: b(() => [
224
+ (p(!0), w(x, null, z(t(f).filter(
230
225
  (a) => a.name.toLowerCase().includes(t(i).searchKey.toLowerCase())
231
- ), (a) => (p(), b($, {
226
+ ), (a) => (p(), v(D, {
232
227
  key: a._id.toString(),
233
- onClick: (L) => y(a),
228
+ onClick: (M) => y(a),
234
229
  class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
235
230
  }, {
236
- default: C(() => [
237
- s("div", pe, [
238
- s("div", ue, [
239
- (p(), b(G(t(B)(a)))),
240
- s("div", fe, u(a.currentReceive ?? 0) + " used ", 1)
231
+ default: b(() => [
232
+ s("div", de, [
233
+ s("div", pe, [
234
+ (p(), v(W(t(L)(a)))),
235
+ s("div", ue, u(a.currentReceive ?? 0) + " used ", 1)
241
236
  ]),
242
- s("div", ge, [
243
- s("div", ye, u(a.name), 1),
244
- s("div", _e, u(t(P)(a)), 1)
237
+ s("div", fe, [
238
+ s("div", ge, u(a.name), 1),
239
+ s("div", ye, u(t(B)(a)), 1)
245
240
  ]),
246
- s("div", he, " Token received: " + u(a.currentReceive ?? 0), 1)
241
+ s("div", _e, " Token received: " + u(a.currentReceive ?? 0), 1)
247
242
  ]),
248
- c(M, {
243
+ c(V, {
249
244
  icon: "delete",
250
245
  "icon-color": "neutral-gray-400",
251
246
  variant: "tertiary",
252
- onClick: (L) => (L.stopPropagation(), V(a))
247
+ onClick: (M) => (M.stopPropagation(), I(a))
253
248
  }, null, 8, ["onClick"])
254
249
  ]),
255
250
  _: 2
@@ -257,18 +252,18 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
257
252
  ]),
258
253
  _: 1
259
254
  })
260
- ], 64)) : (p(), b(E, {
255
+ ], 64)) : (p(), v(j, {
261
256
  key: 1,
262
257
  variant: "outlined",
263
258
  class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
264
259
  }, {
265
- default: C(() => [
266
- we,
267
- s("div", xe, [
268
- s("div", ve, u(t(n)("connect.campaign.mission.createProgram")), 1),
269
- s("div", Ce, u(t(n)("connect.campaign.mission.description")), 1)
260
+ default: b(() => [
261
+ he,
262
+ s("div", we, [
263
+ s("div", xe, u(t(n)("connect.campaign.mission.createProgram")), 1),
264
+ s("div", be, u(t(n)("connect.campaign.mission.description")), 1)
270
265
  ]),
271
- c(M, {
266
+ c(V, {
272
267
  variant: "primary",
273
268
  label: t(n)("connect.campaign.mission.create"),
274
269
  icon: "add",
@@ -277,14 +272,14 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
277
272
  ]),
278
273
  _: 1
279
274
  })),
280
- c(se, {
275
+ c(ae, {
281
276
  ref_key: "sheetRef",
282
277
  ref: k,
283
278
  "onSubmit:modelValue": O
284
279
  }, null, 512),
285
- c(re, {
280
+ c(ce, {
286
281
  ref_key: "sendCollectionSheetRef",
287
- ref: I
282
+ ref: U
288
283
  }, null, 512)
289
284
  ])
290
285
  ], 64);
@@ -292,5 +287,5 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
292
287
  }
293
288
  });
294
289
  export {
295
- Ae as default
290
+ Oe as default
296
291
  };