@feedmepos/mf-connect 0.1.25-prod → 0.1.27-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 (86) hide show
  1. package/dist/{Analytic-DmQ3d3sr.js → Analytic-CbDVkjdL.js} +11 -11
  2. package/dist/{App-BK6DtUuH.js → App-BPXQGS4c.js} +6 -6
  3. package/dist/{Bin-B7F2tXkP.js → Bin-Bx8YZQwZ.js} +8 -8
  4. package/dist/{Broadcast-6n2TGBgu.js → Broadcast-Tygo4hp2.js} +9 -9
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-_hoK2zXW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-z4002_6v.js} +6 -6
  6. package/dist/{Card-D6AU_9dV.js → Card-Cc3HEmPW.js} +15 -15
  7. package/dist/{Collections-CMbKkYFL.js → Collections-DlXKCvdC.js} +16 -16
  8. package/dist/{Credit-CqLwf2JA.js → Credit-nzuL8k0X.js} +9 -9
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CRK5WI7g.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DXYJbRzY.js} +28 -28
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CaSqYPQ2.js → EffectSheet.vue_vue_type_style_index_0_lang-CWl6Lq3c.js} +6 -6
  11. package/dist/{Experience-OoJ1ODiZ.js → Experience-DovR8oR1.js} +9 -9
  12. package/dist/{Game-IAfjkExX.js → Game-CZ3ysS-w.js} +10 -10
  13. package/dist/{Index-DqHXbokQ.js → Index-bdevDYu1.js} +10 -10
  14. package/dist/{Marketing-DIVehK5x.js → Marketing-BnkJLulj.js} +6 -6
  15. package/dist/{Member-BMT7m7s9.js → Member-CCTX6aNc.js} +5 -5
  16. package/dist/{MemberList-C3JMhLW6.js → MemberList-DRnzIARh.js} +29 -24
  17. package/dist/{MemberTransactions-lQLljdGi.js → MemberTransactions-CG2cQyMW.js} +1 -1
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DFPEfDUk.js → MessageInput.vue_vue_type_script_setup_true_lang-C4DOSwbc.js} +146 -144
  19. package/dist/{Mission-BJsuCVHj.js → Mission-G7paL6J0.js} +10 -10
  20. package/dist/{Overview-D1AMq951.js → Overview-C9kdjaW_.js} +17 -17
  21. package/dist/{Point-DGffwTWG.js → Point-BREplyPM.js} +9 -9
  22. package/dist/{Promotion-Cdu7wiGv.js → Promotion-Se1PEbfT.js} +10 -10
  23. package/dist/{Queue-Cm4ekHlP.js → Queue-_mrh1gun.js} +9 -9
  24. package/dist/{Record-B0JjTQ3K.js → Record-Co51ImZy.js} +7 -7
  25. package/dist/{Reward-U0gEl1no.js → Reward-CL_rhGEU.js} +15 -15
  26. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CiQHPhkN.js → RewardGroup.vue_vue_type_script_setup_true_lang-suxmsqfB.js} +11 -11
  27. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BgKlwCAG.js → RuleGroup.vue_vue_type_script_setup_true_lang-Djk1y1xu.js} +12 -12
  28. package/dist/{Segment-BsXsG6Ga.js → Segment-iPByK_Wy.js} +14 -14
  29. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-hPQP_srV.js → SelectItems.vue_vue_type_script_setup_true_lang-DI3JmQE4.js} +2 -2
  30. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BLPLYvOq.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-9w2gszkO.js} +11 -11
  31. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-rL9NYAk0.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-4pBbLNQI.js} +3 -3
  32. package/dist/{Setting-DJxzwVSf.js → Setting-BlKT1CZt.js} +10 -10
  33. package/dist/{Store-sTvnMjPJ.js → Store-COH3ORRg.js} +18 -18
  34. package/dist/{StoreRewards-CffMLGzL.js → StoreRewards-DDSZLybs.js} +13 -13
  35. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CUPPeZj5.js → StoreTransactions.vue_vue_type_script_setup_true_lang-C6n9PWMY.js} +17 -17
  36. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DwhQONu8.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-rqCgniSv.js} +1 -1
  37. package/dist/{Tier-BbfX13Ns.js → Tier-BnbzFU35.js} +19 -19
  38. package/dist/{Title-Bf4fC78d.js → Title-ccSbPnKW.js} +19 -19
  39. package/dist/{Transaction-Ef6ee3WD.js → Transaction-C3apvPSJ.js} +2 -2
  40. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-w66fAQPQ.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-D9FqliWN.js} +6 -6
  41. package/dist/{Voucher-CCH10Wrp.js → Voucher-DOr4oj_x.js} +12 -12
  42. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-C31OGqSE.js → VoucherEditor.vue_vue_type_script_setup_true_lang-XYVwgIWJ.js} +10 -10
  43. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BqzMSTXs.js → ZodTextField.vue_vue_type_script_setup_true_lang-oqvAcL6B.js} +1 -1
  44. package/dist/{app-D2t3_10I.js → app-2Db0H2UJ.js} +1 -1
  45. package/dist/{app-F5UOtzJ-.js → app-DvK-tNEk.js} +30 -30
  46. package/dist/app.js +1 -1
  47. package/dist/{business-NXwwmhbL.js → business-CrliaNZV.js} +1 -1
  48. package/dist/{campaign-Iww5PvJV.js → campaign-DBpDOrwh.js} +2 -2
  49. package/dist/{campaign-BWkn-fFd.js → campaign-x0y6TejE.js} +9 -9
  50. package/dist/{campaign.enum--kHpbveJ.js → campaign.enum-CG39LEF0.js} +1 -1
  51. package/dist/{campaign.fn-D0wKIDQf.js → campaign.fn-DNJjYnYa.js} +33 -33
  52. package/dist/{collectible.enum-BpsFdy57.js → collectible.enum-Baeuan29.js} +1 -1
  53. package/dist/{collection.fn-B-_j1A52.js → collection.fn-CcM3FJ8k.js} +2 -2
  54. package/dist/{dto-CjOlAnWp.js → dto-Eo-Dr4Uv.js} +4 -4
  55. package/dist/{effect-BMe9xjgR.js → effect-DUBmiznt.js} +1 -1
  56. package/dist/{email-addresses-BwGoUD7O.js → email-addresses-Bmte6Yrd.js} +1 -1
  57. package/dist/{export-Bsk4-mYp.js → export-CHGRJUgu.js} +3 -3
  58. package/dist/{helper-CiybWTiD.js → helper-C5vFCsP9.js} +1 -1
  59. package/dist/{index-OLChRkvG.js → index-9_pNhM0a.js} +2 -2
  60. package/dist/{index-CRa7QWQZ.js → index-B-WuO379.js} +3 -3
  61. package/dist/{index-D7AjQ5_0.js → index-BeLCGpIm.js} +3 -3
  62. package/dist/{index-WxOdPYZc.js → index-BlYFXsRW.js} +1 -1
  63. package/dist/{index-Cu28MWwC.js → index-D1Ul7gSM.js} +4 -4
  64. package/dist/{index-COTHSMx7.js → index-DAwYL2r6.js} +1 -1
  65. package/dist/{index-7QyaWVGn.js → index-DEziKc-f.js} +1 -1
  66. package/dist/{index-Cs0QJDgH.js → index-DiVnkUvQ.js} +1 -1
  67. package/dist/{index-eJ4ofwfd.js → index-Dp93IAC4.js} +6 -6
  68. package/dist/{index-BG_-ksol.js → index-FzBBqm85.js} +1 -1
  69. package/dist/{index-CvKxhzaQ.js → index-Lv1AdYyC.js} +1 -1
  70. package/dist/{index-BAW03Ygy.js → index-doYZsoKw.js} +1 -1
  71. package/dist/{index.esm2017-DMXNt25X.js → index.esm2017-D0uzfm6x.js} +1 -1
  72. package/dist/{loading-CScT_lmc.js → loading-BvGt3shc.js} +1 -1
  73. package/dist/{membership-DenkPJ5U.js → membership-DtgjKQWq.js} +3 -3
  74. package/dist/{money-B5hybQjS.js → money-B4qERO9Y.js} +1 -1
  75. package/dist/{number-anjTvmBi.js → number-CtGRFgP2.js} +1 -1
  76. package/dist/{objectid-BHmtsFsO.js → objectid-Mp_MO8Cn.js} +3 -3
  77. package/dist/{plugins-VONaCeWn.js → plugins-DfMhNxNr.js} +4 -4
  78. package/dist/{reward-FwctH8OP.js → reward-Dx8JnTNl.js} +1 -1
  79. package/dist/{rule-BqLIsoB6.js → rule-CVA5HdWZ.js} +3 -3
  80. package/dist/{rule-builder-EwN0tKLd.js → rule-builder-DBnlXKuP.js} +1 -1
  81. package/dist/{template-bVlMDuHk.js → template-DIGjS2_m.js} +4 -4
  82. package/dist/{trigger-Bh7yq_a0.js → trigger-CF8ueXH2.js} +4 -4
  83. package/dist/{user-z65INcT0.js → user-C3mNAX8O.js} +1 -1
  84. package/dist/{vue-i18n-59FFzX8P.js → vue-i18n-jbrbLYVC.js} +165 -165
  85. package/dist/{xlsx-D9VDeVL9.js → xlsx-DHeryfdP.js} +1 -1
  86. package/package.json +1 -1
@@ -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-CUPPeZj5.js";
2
+ import { _ as k, a as x } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-C6n9PWMY.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,10 +1,12 @@
1
- import { defineComponent as j, shallowRef as N, openBlock as p, createElementBlock as _, normalizeStyle as O, ref as V, resolveComponent as g, createBlock as E, unref as s, isRef as P, withCtx as v, createVNode as h, createElementVNode as x, createCommentVNode as T, withDirectives as A, vShow as U, computed as q, onMounted as G, Fragment as L, createTextVNode as J, toDisplayString as z, renderList as K } from "vue";
2
- import { p as W } from "./plugins-VONaCeWn.js";
3
- import { A as Y } from "./index-Cu28MWwC.js";
4
- import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import { _ as Q, S as X } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js";
6
- import { c as ee } from "./object-qECH92oz.js";
7
- const te = {
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-DfMhNxNr.js";
3
+ import { A as Z } from "./index-D1Ul7gSM.js";
4
+ import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ import { _ as ee, S as te } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js";
6
+ import { c as ne } from "./object-qECH92oz.js";
7
+ import { useCoreStore as oe } from "@feedmepos/mf-common";
8
+ import { u as ae } from "./membership-DtgjKQWq.js";
9
+ const se = {
8
10
  "user.name": {
9
11
  name: "User name"
10
12
  },
@@ -44,36 +46,36 @@ const te = {
44
46
  "membership.url": {
45
47
  name: "Membership URL"
46
48
  }
47
- }, we = {
49
+ }, Ie = {
48
50
  MY: ["user.phoneNumber", "membership.url"]
49
- }, ne = "https://editor.unlayer.com/embed.js?2", R = [];
50
- let H = !1;
51
- const ae = (e) => {
51
+ }, ie = "https://editor.unlayer.com/embed.js?2", N = [];
52
+ let O = !1;
53
+ const re = (e) => {
52
54
  const n = document.querySelectorAll("script");
53
- let i = !1;
54
- return n.forEach((u) => {
55
- u.src.includes(e) && (i = !0);
56
- }), i;
57
- }, ie = (e) => {
58
- R.push(e);
59
- }, B = () => {
60
- if (H) {
55
+ let r = !1;
56
+ return n.forEach((c) => {
57
+ c.src.includes(e) && (r = !0);
58
+ }), r;
59
+ }, le = (e) => {
60
+ N.push(e);
61
+ }, R = () => {
62
+ if (O) {
61
63
  let e;
62
- for (; e = R.shift(); )
64
+ for (; e = N.shift(); )
63
65
  e();
64
66
  }
65
- }, oe = (e, n = ne) => {
66
- if (ie(e), ae(n))
67
- B();
67
+ }, de = (e, n = ie) => {
68
+ if (le(e), re(n))
69
+ R();
68
70
  else {
69
- const i = document.createElement("script");
70
- i.setAttribute("src", n), i.onload = () => {
71
- H = !0, B();
72
- }, document.head.appendChild(i);
71
+ const r = document.createElement("script");
72
+ r.setAttribute("src", n), r.onload = () => {
73
+ O = !0, R();
74
+ }, document.head.appendChild(r);
73
75
  }
74
76
  };
75
- let se = 0;
76
- const re = j({
77
+ let ue = 0;
78
+ const ce = I({
77
79
  name: "EmailEditor",
78
80
  props: {
79
81
  editorId: String,
@@ -102,17 +104,17 @@ const re = j({
102
104
  },
103
105
  computed: {
104
106
  id() {
105
- return this.editorId || `editor-${++se}`;
107
+ return this.editorId || `editor-${++ue}`;
106
108
  }
107
109
  },
108
110
  setup() {
109
111
  return {
110
- editor: N(null)
112
+ editor: G(null)
111
113
  // Makes editor available to the template
112
114
  };
113
115
  },
114
116
  mounted() {
115
- this.$emit("load"), oe(this.loadEditor.bind(this), this.scriptUrl);
117
+ this.$emit("load"), de(this.loadEditor.bind(this), this.scriptUrl);
116
118
  },
117
119
  methods: {
118
120
  loadEditor() {
@@ -146,15 +148,15 @@ const re = j({
146
148
  (n = this.editor) == null || n.saveDesign(e);
147
149
  }
148
150
  }
149
- }), le = ["id"];
150
- function de(e, n, i, u, y, r) {
151
- return p(), _("div", {
151
+ }), me = ["id"];
152
+ function pe(e, n, r, c, a, m) {
153
+ return p(), C("div", {
152
154
  id: e.id,
153
155
  class: "unlayer-editor",
154
- style: O({ minHeight: e.minHeight })
155
- }, null, 12, le);
156
+ style: P({ minHeight: e.minHeight })
157
+ }, null, 12, me);
156
158
  }
157
- const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94"]]), ce = { class: "h-full flex flex-col" }, me = { class: "flex items-center gap-8" }, pe = /* @__PURE__ */ j({
159
+ const he = /* @__PURE__ */ Q(ce, [["render", pe], ["__scopeId", "data-v-a9a2bb94"]]), fe = { class: "h-full flex flex-col" }, ge = { class: "flex items-center gap-8" }, be = /* @__PURE__ */ I({
158
160
  __name: "EmailEditorSheet",
159
161
  props: {
160
162
  design: {
@@ -167,83 +169,83 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
167
169
  }
168
170
  },
169
171
  emits: ["update:design"],
170
- setup(e, { expose: n, emit: i }) {
171
- const u = V(!1), y = V(null), r = V(!1), b = e, f = V({
172
+ setup(e, { expose: n, emit: r }) {
173
+ const c = M(!1), a = M(null), m = M(!1), b = e, l = M({
172
174
  html: "",
173
175
  design: b.design,
174
176
  title: b.title || ""
175
177
  });
176
178
  function S(o) {
177
- u.value = o;
179
+ c.value = o;
178
180
  }
179
- const l = i;
180
- function t() {
181
- y.value && (y.value.exportHtml((o) => {
182
- f.value = {
181
+ const w = r;
182
+ function F() {
183
+ a.value && (a.value.exportHtml((o) => {
184
+ l.value = {
183
185
  html: o.html,
184
186
  design: o.design,
185
- title: f.value.title
186
- }, l("update:design", f.value);
187
+ title: l.value.title
188
+ }, w("update:design", l.value);
187
189
  }), S(!1));
188
190
  }
189
191
  return n({
190
192
  showSheet: S
191
- }), (o, a) => {
192
- const c = g("FmButton"), M = g("FmTextField"), w = g("FmSideSheet");
193
- return p(), E(w, {
194
- modelValue: s(u),
195
- "onUpdate:modelValue": a[4] || (a[4] = (d) => P(u) ? u.value = d : null),
193
+ }), (o, t) => {
194
+ const d = g("FmButton"), f = g("FmTextField"), y = g("FmSideSheet");
195
+ return p(), _(y, {
196
+ modelValue: i(c),
197
+ "onUpdate:modelValue": t[4] || (t[4] = (s) => q(c) ? c.value = s : null),
196
198
  header: "Email editor",
197
199
  "max-width": 1280
198
200
  }, {
199
201
  "side-sheet-button": v(() => [
200
- h(c, {
202
+ h(d, {
201
203
  label: "Edit email",
202
204
  variant: "tertiary",
203
205
  icon: "edit"
204
206
  })
205
207
  ]),
206
208
  default: v(() => [
207
- x("div", ce, [
208
- s(r) ? T("", !0) : (p(), E(Q, {
209
+ x("div", fe, [
210
+ i(m) ? H("", !0) : (p(), _(ee, {
209
211
  key: 0,
210
212
  class: "flex-1",
211
- json: s(X),
213
+ json: i(te),
212
214
  width: 100,
213
215
  height: 100
214
216
  }, null, 8, ["json"])),
215
- A(h(M, {
217
+ U(h(f, {
216
218
  label: "Email title",
217
- modelValue: s(f).title,
218
- "onUpdate:modelValue": a[0] || (a[0] = (d) => s(f).title = d)
219
+ modelValue: i(l).title,
220
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => i(l).title = s)
219
221
  }, null, 8, ["modelValue"]), [
220
- [U, s(r)]
222
+ [T, i(m)]
221
223
  ]),
222
- A(h(ue, {
224
+ U(h(he, {
223
225
  class: "flex-1",
224
226
  ref_key: "editorRef",
225
- ref: y,
226
- onLoad: a[1] || (a[1] = (d) => r.value = !1),
227
- onReady: a[2] || (a[2] = () => {
228
- var d;
229
- r.value = !0, b.design && ((d = s(y)) == null || d.loadDesign(s(ee)(b.design)));
227
+ ref: a,
228
+ onLoad: t[1] || (t[1] = (s) => m.value = !1),
229
+ onReady: t[2] || (t[2] = () => {
230
+ var s;
231
+ m.value = !0, b.design && ((s = i(a)) == null || s.loadDesign(i(ne)(b.design)));
230
232
  })
231
233
  }, null, 512), [
232
- [U, s(r)]
234
+ [T, i(m)]
233
235
  ])
234
236
  ])
235
237
  ]),
236
238
  "side-sheet-footer": v(() => [
237
- x("div", me, [
238
- h(c, {
239
+ x("div", ge, [
240
+ h(d, {
239
241
  variant: "primary",
240
242
  label: "Confirm",
241
- onClick: t
243
+ onClick: F
242
244
  }),
243
- h(c, {
245
+ h(d, {
244
246
  variant: "tertiary",
245
247
  label: "Cancel",
246
- onClick: a[3] || (a[3] = (d) => S(!1))
248
+ onClick: t[3] || (t[3] = (s) => S(!1))
247
249
  })
248
250
  ])
249
251
  ]),
@@ -251,7 +253,7 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
251
253
  }, 8, ["modelValue"]);
252
254
  };
253
255
  }
254
- }), he = { class: "space-y-4" }, fe = { class: "flex items-center gap-8 justify-between" }, ge = /* @__PURE__ */ x("div", { class: "fm-typo-en-body-lg-400" }, "Add message", -1), ye = { class: "relative" }, be = { class: "absolute bottom-[24px] right-[4px]" }, je = /* @__PURE__ */ j({
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({
255
257
  __name: "MessageInput",
256
258
  props: {
257
259
  allowEmail: {
@@ -292,10 +294,10 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
292
294
  },
293
295
  emits: ["update:model-value"],
294
296
  setup(e, { emit: n }) {
295
- const i = e, u = n;
296
- function y() {
297
- var o;
298
- const l = {
297
+ const r = oe(), c = ae(), a = e, m = n;
298
+ function b() {
299
+ var d;
300
+ const o = {
299
301
  user: {
300
302
  name: "John Doe",
301
303
  tier: 1,
@@ -310,26 +312,28 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
310
312
  collectible: {
311
313
  name: "RM10 Voucher"
312
314
  }
313
- }, t = Y(
314
- ((o = i.modelValue) == null ? void 0 : o.content) ?? "",
315
- l
315
+ }, t = Z(
316
+ ((d = a.modelValue) == null ? void 0 : d.content) ?? "",
317
+ o
316
318
  );
317
- W.confirm(t, "Preview message", "OK");
319
+ Y.confirm(t, "Preview message", "OK");
318
320
  }
319
- function r(l, t = "SMS") {
320
- u("update:model-value", {
321
+ function l(o, t = "SMS") {
322
+ m("update:model-value", {
321
323
  channel: t,
322
- content: t == "SMS" ? l : l.html,
323
- design: t == "EMAIL" ? l.design : void 0,
324
+ content: t == "SMS" ? o : o.html,
325
+ design: t == "EMAIL" ? o.design : void 0,
324
326
  language: "en",
325
- title: t == "EMAIL" ? l.title : void 0,
326
- variables: i.variables
327
+ title: t == "EMAIL" ? o.title : void 0,
328
+ variables: a.variables
327
329
  });
328
330
  }
329
- const b = V(i.helperState || "none"), f = q(() => {
330
- var o;
331
- const l = ((o = i.modelValue) == null ? void 0 : o.content.replace(/{{([^}]+)}}/g, (a, c) => {
332
- switch (c) {
331
+ const S = M(a.helperState || "none"), w = J(() => {
332
+ var V, E;
333
+ const o = ((V = c.membership) == null ? void 0 : V.brand) || r.currentBusiness.value.name || "", t = 160;
334
+ let d = t;
335
+ const f = ((E = a.modelValue) == null ? void 0 : E.content.replace(/{{([^}]+)}}/g, (k, j) => {
336
+ switch (j) {
333
337
  case "user.name":
334
338
  return "1234567890";
335
339
  case "user.tier":
@@ -352,79 +356,77 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
352
356
  return "...";
353
357
  }
354
358
  })) || "";
355
- let t = 0;
356
- for (let a = 0; a < l.length; a++) {
357
- const c = l.charAt(a);
358
- /[\u4e00-\u9fff\u3040-\u30ff\u3400-\u4dbf]/.test(c) || /[{}\\~\[\]|\^€]/.test(c) ? t += 2 : t += 1;
359
- }
360
- return `Character used: ${t} ≈ ${Math.ceil(t / 160)} SMS (Every 160 characters will be sent as 1 SMS)`;
361
- }), S = [{ label: "SMS" }, { label: "EMAIL" }];
362
- return G(() => {
363
- u("update:model-value", {
364
- ...i.modelValue,
365
- variables: i.variables
366
- }), i.modelValue || r("");
367
- }), (l, t) => {
368
- var d, F, $, k, C;
369
- const o = g("FmButtonGroup"), a = g("FmButton"), c = g("FmTextarea"), M = g("FmMenuItem"), w = g("FmMenu");
370
- return p(), _("div", he, [
371
- e.allowEmail ? (p(), E(o, {
359
+ let y = o.length + 4, s = f.length + y;
360
+ (/[\u4e00-\u9fff\u3040-\u30ff\u3400-\u4dbf]/.test(f) || /[\u4e00-\u9fff\u3040-\u30ff\u3400-\u4dbf]/.test(f)) && (d = 70);
361
+ const $ = Math.min(d, t);
362
+ return `Reserverd: ${y} | Character used: ${s} ≈ ${Math.ceil(s / $)} SMS (Every ${$} characters will be sent as 1 SMS)`;
363
+ }), F = [{ label: "SMS" }, { label: "EMAIL" }];
364
+ return z(() => {
365
+ m("update:model-value", {
366
+ ...a.modelValue,
367
+ variables: a.variables
368
+ }), a.modelValue || l("");
369
+ }), (o, t) => {
370
+ var V, E, k, j, L;
371
+ const d = g("FmButtonGroup"), f = g("FmButton"), y = g("FmTextarea"), s = g("FmMenuItem"), $ = g("FmMenu");
372
+ return p(), C("div", ye, [
373
+ e.allowEmail ? (p(), _(d, {
372
374
  key: 0,
373
- items: S,
374
- "model-value": { label: (d = e.modelValue) == null ? void 0 : d.channel },
375
- "onUpdate:modelValue": t[0] || (t[0] = (m) => r("", m.label))
376
- }, null, 8, ["model-value"])) : T("", !0),
377
- ((F = e.modelValue) == null ? void 0 : F.channel) == "EMAIL" ? (p(), E(pe, {
375
+ items: F,
376
+ "model-value": { label: (V = e.modelValue) == null ? void 0 : V.channel },
377
+ "onUpdate:modelValue": t[0] || (t[0] = (u) => l("", u.label))
378
+ }, null, 8, ["model-value"])) : H("", !0),
379
+ ((E = e.modelValue) == null ? void 0 : E.channel) == "EMAIL" ? (p(), _(be, {
378
380
  key: 1,
379
- design: ($ = e.modelValue) == null ? void 0 : $.design,
380
- title: ((k = e.modelValue) == null ? void 0 : k.title) || void 0,
381
- "onUpdate:design": t[1] || (t[1] = (m) => {
382
- r(m, "EMAIL");
381
+ design: (k = e.modelValue) == null ? void 0 : k.design,
382
+ title: ((j = e.modelValue) == null ? void 0 : j.title) || void 0,
383
+ "onUpdate:design": t[1] || (t[1] = (u) => {
384
+ l(u, "EMAIL");
383
385
  })
384
- }, null, 8, ["design", "title"])) : (p(), _(L, { key: 2 }, [
385
- x("div", fe, [
386
- ge,
387
- h(a, {
386
+ }, null, 8, ["design", "title"])) : (p(), C(B, { key: 2 }, [
387
+ x("div", ve, [
388
+ xe,
389
+ h(f, {
388
390
  icon: "visibility",
389
391
  label: "Preview message",
390
392
  variant: "plain",
391
- onClick: y
393
+ onClick: b
392
394
  })
393
395
  ]),
394
- x("div", ye, [
395
- h(c, {
396
- "model-value": (C = e.modelValue) == null ? void 0 : C.content,
397
- "onUpdate:modelValue": r,
396
+ x("div", Se, [
397
+ h(y, {
398
+ "model-value": (L = e.modelValue) == null ? void 0 : L.content,
399
+ "onUpdate:modelValue": l,
398
400
  "show-word-count": !0,
399
401
  placeholder: e.placeholder,
400
- "helper-state": s(b) || "none",
401
- "helper-text": s(f)
402
+ "helper-state": i(S) || "none",
403
+ "helper-text": i(w)
402
404
  }, {
403
405
  "helper-text": v(() => [
404
- J(z(s(f)), 1)
406
+ K(W(i(w)), 1)
405
407
  ]),
406
408
  _: 1
407
409
  }, 8, ["model-value", "placeholder", "helper-state", "helper-text"]),
408
- x("div", be, [
409
- h(w, { placement: "left-end" }, {
410
+ x("div", Ve, [
411
+ h($, { placement: "left-end" }, {
410
412
  "menu-button": v(() => [
411
- h(a, {
413
+ h(f, {
412
414
  icon: "add",
413
415
  variant: "tertiary",
414
416
  size: "md"
415
417
  })
416
418
  ]),
417
419
  default: v(() => [
418
- (p(!0), _(L, null, K(e.variables.filter(
419
- (m) => e.triggerType == "SCHEDULE" ? !m.startsWith("transaction.") : !0
420
- ), (m) => {
421
- var I;
422
- return p(), E(M, {
423
- key: m,
424
- label: ((I = s(te)[m]) == null ? void 0 : I.name) || m,
425
- onClick: (ve) => {
426
- var D;
427
- return r(((D = e.modelValue) == null ? void 0 : D.content) + `{{${m}}}`);
420
+ (p(!0), C(B, null, X(e.variables.filter(
421
+ (u) => e.triggerType == "SCHEDULE" ? !u.startsWith("transaction.") : !0
422
+ ), (u) => {
423
+ var D;
424
+ return p(), _(s, {
425
+ key: u,
426
+ label: ((D = i(se)[u]) == null ? void 0 : D.name) || u,
427
+ onClick: (Ee) => {
428
+ var A;
429
+ return l(((A = e.modelValue) == null ? void 0 : A.content) + `{{${u}}}`);
428
430
  }
429
431
  }, null, 8, ["label", "onClick"]);
430
432
  }), 128))
@@ -439,6 +441,6 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
439
441
  }
440
442
  });
441
443
  export {
442
- we as M,
443
- je as _
444
+ Ie as M,
445
+ Le as _
444
446
  };
@@ -1,18 +1,18 @@
1
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
2
  import { _ as J } from "./campaign-CpzFl8Vr.js";
3
- import { u as Q } from "./loading-CScT_lmc.js";
4
- import { g as X, a as B, b as P } from "./campaign-BWkn-fFd.js";
5
- import { a as Y, p as Z } from "./plugins-VONaCeWn.js";
6
- import { u as ee } from "./business-NXwwmhbL.js";
7
- import { u as oe } from "./campaign-Iww5PvJV.js";
3
+ import { u as Q } from "./loading-BvGt3shc.js";
4
+ import { g as X, a as B, b as P } from "./campaign-x0y6TejE.js";
5
+ import { a as Y, p as Z } from "./plugins-DfMhNxNr.js";
6
+ import { u as ee } from "./business-CrliaNZV.js";
7
+ import { u as oe } from "./campaign-DBpDOrwh.js";
8
8
  import { useDialog as te, components as _ } from "@feedmepos/ui-library";
9
9
  import { _ as ne } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
10
- import { u as ae } from "./template-bVlMDuHk.js";
11
- import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CRK5WI7g.js";
10
+ import { u as ae } from "./template-DIGjS2_m.js";
11
+ import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DXYJbRzY.js";
12
12
  import { s as ie } from "./index-CuvNtC_M.js";
13
- import { u as ce } from "./vue-i18n-59FFzX8P.js";
14
- import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-BLPLYvOq.js";
15
- import { c as h } from "./index-CvKxhzaQ.js";
13
+ import { u as ce } from "./vue-i18n-jbrbLYVC.js";
14
+ import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-9w2gszkO.js";
15
+ import { c as h } from "./index-Lv1AdYyC.js";
16
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
17
  src: J,
18
18
  class: "aspect-square w-[150px]"
@@ -1,27 +1,27 @@
1
1
  import { defineComponent as q, resolveComponent as w, openBlock as C, createElementBlock as B, Fragment as Y, createVNode as c, withCtx as V, createElementVNode as a, toDisplayString as O, unref as r, renderSlot as _e, ref as $, computed as G, watch as ie, createBlock as j, isRef as J, resolveDynamicComponent as ne, renderList as re, normalizeClass as ce, createTextVNode as de, createCommentVNode as z, h as te, onMounted as ve } from "vue";
2
2
  import { _ as ge } from "./campaign-CpzFl8Vr.js";
3
- import { u as Z } from "./vue-i18n-59FFzX8P.js";
4
- import { u as ue } from "./loading-CScT_lmc.js";
5
- import { c as we, p as K } from "./plugins-VONaCeWn.js";
3
+ import { u as Z } from "./vue-i18n-jbrbLYVC.js";
4
+ import { u as ue } from "./loading-BvGt3shc.js";
5
+ import { c as we, p as K } from "./plugins-DfMhNxNr.js";
6
6
  import { J as X } from "./JsonViewer-v8_C7l5N.js";
7
7
  import { Z as N } from "./zod-Bg2FbC-D.js";
8
8
  import { u as W } from "./app-wDQR6dpb.js";
9
- import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-CiQHPhkN.js";
10
- import { u as me } from "./reward-FwctH8OP.js";
11
- import { j as le, k as se } from "./index-Cu28MWwC.js";
12
- import "./index-OLChRkvG.js";
13
- import { a as be, b as xe } from "./index-eJ4ofwfd.js";
14
- import "./index-7QyaWVGn.js";
15
- import "./index-CRa7QWQZ.js";
16
- import { C as fe } from "./membership-DenkPJ5U.js";
17
- import { t as ee } from "./helper-CiybWTiD.js";
9
+ import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-suxmsqfB.js";
10
+ import { u as me } from "./reward-Dx8JnTNl.js";
11
+ import { j as le, k as se } from "./index-D1Ul7gSM.js";
12
+ import "./index-9_pNhM0a.js";
13
+ import { a as be, b as xe } from "./index-Dp93IAC4.js";
14
+ import "./index-DEziKc-f.js";
15
+ import "./index-B-WuO379.js";
16
+ import { C as fe } from "./membership-DtgjKQWq.js";
17
+ import { t as ee } from "./helper-C5vFCsP9.js";
18
18
  import { c as H } from "./object-qECH92oz.js";
19
19
  import { useDialog as Ce, components as oe } from "@feedmepos/ui-library";
20
- import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BqzMSTXs.js";
21
- import { T as Se, _ as $e, a as ke } from "./trigger-Bh7yq_a0.js";
22
- import { O as Fe } from "./objectid-BHmtsFsO.js";
23
- import { r as pe } from "./index-Cs0QJDgH.js";
24
- import { u as Pe } from "./business-NXwwmhbL.js";
20
+ import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-oqvAcL6B.js";
21
+ import { T as Se, _ as $e, a as ke } from "./trigger-CF8ueXH2.js";
22
+ import { O as Fe } from "./objectid-Mp_MO8Cn.js";
23
+ import { r as pe } from "./index-DiVnkUvQ.js";
24
+ import { u as Pe } from "./business-CrliaNZV.js";
25
25
  const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, Te = { class: "flex-1" }, Ue = { class: "flex items-center gap-8" }, Ae = { class: "fm-typo-en-title-sm-800" }, Le = { class: "flex gap-8 items-center" }, Ee = { class: "space-y-4 hidden xs:block border-b border-fm-color-neutral-gray-100 px-16 flex-1 pb-24" }, Be = { class: "flex items-center justify-between" }, Oe = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, je = { class: "flex-1 space-y-4" }, De = { class: "fm-typo-en-body-lg-600" }, Ge = /* @__PURE__ */ q({
26
26
  __name: "ReferralRewadGroupCard",
27
27
  props: {
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as j, ref as P, computed as A, h as E, onMounted as M, resolveComponent as l, openBlock as d, createElementBlock as b, Fragment as w, createVNode as r, unref as t, withCtx as y, createElementVNode as n, toDisplayString as c, renderList as H, createBlock as C, resolveDynamicComponent 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-VONaCeWn.js";
5
- import { u as W } from "./loading-CScT_lmc.js";
6
- import { u as X } from "./business-NXwwmhbL.js";
7
- import { u as Y } from "./campaign-Iww5PvJV.js";
8
- import { g as Z, a as V, b as I } from "./campaign-BWkn-fFd.js";
4
+ import { p as Q } from "./plugins-DfMhNxNr.js";
5
+ import { u as W } from "./loading-BvGt3shc.js";
6
+ import { u as X } from "./business-CrliaNZV.js";
7
+ import { u as Y } from "./campaign-DBpDOrwh.js";
8
+ import { g as Z, a as V, b as I } from "./campaign-x0y6TejE.js";
9
9
  import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
10
- import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CRK5WI7g.js";
11
- import { u as oe } from "./template-bVlMDuHk.js";
12
- import { u as ae } from "./vue-i18n-59FFzX8P.js";
13
- import { c as _ } from "./index-CvKxhzaQ.js";
10
+ import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DXYJbRzY.js";
11
+ import { u as oe } from "./template-DIGjS2_m.js";
12
+ import { u as ae } from "./vue-i18n-jbrbLYVC.js";
13
+ import { c as _ } from "./index-Lv1AdYyC.js";
14
14
  const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ie = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, le = { class: "flex gap-8 overflow-x-auto" }, ce = { class: "space-y-8" }, me = { class: "flex w-full gap-4 items-center" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = /* @__PURE__ */ n("img", {
15
15
  src: z,
16
16
  class: "aspect-square w-[150px]"
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as H, ref as P, computed as q, h as z, onMounted as G, resolveComponent as r, openBlock as m, createElementBlock as h, Fragment as w, createVNode as i, unref as n, createElementVNode as s, withCtx as v, renderList as J, createBlock as b, resolveDynamicComponent as Q, toDisplayString as g } from "vue";
2
2
  import { _ as W } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as X, components as Y } from "@feedmepos/ui-library";
4
- import { c as O, p as I } from "./plugins-VONaCeWn.js";
5
- import { u as Z } from "./loading-CScT_lmc.js";
6
- import { u as ee } from "./business-NXwwmhbL.js";
7
- import { u as oe } from "./campaign-Iww5PvJV.js";
8
- import { u as te } from "./vue-i18n-59FFzX8P.js";
9
- import { g as ne, a as V } from "./campaign-BWkn-fFd.js";
10
- import { e as L } from "./effect-BMe9xjgR.js";
4
+ import { c as O, p as I } from "./plugins-DfMhNxNr.js";
5
+ import { u as Z } from "./loading-BvGt3shc.js";
6
+ import { u as ee } from "./business-CrliaNZV.js";
7
+ import { u as oe } from "./campaign-DBpDOrwh.js";
8
+ import { u as te } from "./vue-i18n-jbrbLYVC.js";
9
+ import { g as ne, a as V } from "./campaign-x0y6TejE.js";
10
+ import { e as L } from "./effect-DUBmiznt.js";
11
11
  import { _ as ae } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
12
- import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CRK5WI7g.js";
13
- import { u as ce } from "./template-bVlMDuHk.js";
14
- import { c as u } from "./index-CvKxhzaQ.js";
12
+ import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DXYJbRzY.js";
13
+ import { u as ce } from "./template-DIGjS2_m.js";
14
+ import { c as u } from "./index-Lv1AdYyC.js";
15
15
  const ie = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, le = { class: "flex gap-8 overflow-x-auto" }, me = { class: "space-y-8" }, pe = { class: "flex w-full gap-4 items-center" }, de = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = /* @__PURE__ */ s("img", {
16
16
  src: W,
17
17
  class: "aspect-square w-[150px]"
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as h, h as n, ref as T, watch as V, onBeforeMount as B, resolveComponent as N, openBlock as A, createElementBlock as U, Fragment as z, createVNode as m, unref as o, createElementVNode as f } from "vue";
2
2
  import { u as q, _ as Y } from "./usePagination-JoYaROkV.js";
3
3
  import { _ as x } from "./FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js";
4
- import { c as u, a as L } from "./plugins-VONaCeWn.js";
4
+ import { c as u, a as L } from "./plugins-DfMhNxNr.js";
5
5
  import { useDialog as O, components as w } from "@feedmepos/ui-library";
6
- import { B as c, k as S } from "./index-Cu28MWwC.js";
7
- import "./index-OLChRkvG.js";
8
- import "./index-eJ4ofwfd.js";
9
- import "./index-7QyaWVGn.js";
10
- import "./index-CRa7QWQZ.js";
6
+ import { B as c, k as S } from "./index-D1Ul7gSM.js";
7
+ import "./index-9_pNhM0a.js";
8
+ import "./index-Dp93IAC4.js";
9
+ import "./index-DEziKc-f.js";
10
+ import "./index-B-WuO379.js";
11
11
  import { h as y } from "./moment-BWErdI6_.js";
12
- import { u as $ } from "./vue-i18n-59FFzX8P.js";
13
- import { u as j, v as H, w as K } from "./index.esm2017-DMXNt25X.js";
14
- import { g as W, S as G, u as Q } from "./index-D7AjQ5_0.js";
12
+ import { u as $ } from "./vue-i18n-jbrbLYVC.js";
13
+ import { u as j, v as H, w as K } from "./index.esm2017-D0uzfm6x.js";
14
+ import { g as W, S as G, u as Q } from "./index-BeLCGpIm.js";
15
15
  import { o as J } from "./objectId-dwaoBfJX.js";
16
16
  const X = () => {
17
17
  if (!G.getBusinessId()) throw new Error("Invalid business ID");