@feedmepos/mf-connect 0.1.0-beta.69 → 0.1.0-beta.70

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 (88) hide show
  1. package/dist/{Analytic-CtKDttAH.js → Analytic-DEQUEGlq.js} +11 -11
  2. package/dist/{App-hcK_F34g.js → App-CcoU2SAx.js} +6 -6
  3. package/dist/{AuditLogs-wrDkryzX.js → AuditLogs-CiB6u06w.js} +8 -8
  4. package/dist/{Bin-BYtj7ugN.js → Bin-C2_1m5RT.js} +8 -8
  5. package/dist/{Broadcast-PzcoY_Mc.js → Broadcast-TotIXDuJ.js} +9 -9
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B8ikl5H3.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CixQu3Pr.js} +6 -6
  7. package/dist/{Card-jryLr70q.js → Card-Ce-_xMgS.js} +15 -15
  8. package/dist/{Collections-DUngeBBi.js → Collections-DKva6Doi.js} +5 -5
  9. package/dist/{Credit-DhAWh3lu.js → Credit-BVUxIJ6C.js} +9 -9
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BY3LPgbL.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BKEumoan.js} +28 -28
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DNKg3RSm.js → EffectSheet.vue_vue_type_style_index_0_lang-ah4bz-qR.js} +6 -6
  12. package/dist/{Experience-DAnT8SPU.js → Experience-DV3384o0.js} +9 -9
  13. package/dist/{Game-Q2mBNol1.js → Game-DY83ti52.js} +10 -10
  14. package/dist/{Index-CZEdZWQ8.js → Index-DEIaZ-2H.js} +10 -10
  15. package/dist/{Marketing-3P8e8Sle.js → Marketing-C2RwIlrg.js} +6 -6
  16. package/dist/Member-D4fc-wzd.js +333 -0
  17. package/dist/{MemberList-HGEJqYTS.js → MemberList-DSMI6t_D.js} +24 -24
  18. package/dist/{MemberTransactions-BEpqGzz9.js → MemberTransactions-wXUlbbRq.js} +1 -1
  19. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-HqQuEPdJ.js → MessageInput.vue_vue_type_script_setup_true_lang-DYS0klKm.js} +137 -134
  20. package/dist/{Mission-z54HJs8G.js → Mission-P_KLDEpg.js} +10 -10
  21. package/dist/{Overview-voUs4Xz3.js → Overview-8vc0f1D7.js} +17 -17
  22. package/dist/{Point-BanLyZXZ.js → Point-B4Y0Pq60.js} +9 -9
  23. package/dist/{Promotion-DjNWj4Y9.js → Promotion-C1CbesgZ.js} +10 -10
  24. package/dist/{Queue-BJMq-grO.js → Queue-BlPA7PNH.js} +9 -9
  25. package/dist/{Record-rzCSXT-0.js → Record-Cl1qXSSk.js} +7 -7
  26. package/dist/{Reward-pd2SMm4n.js → Reward-jy6-W1Eh.js} +15 -15
  27. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DjGG_zBM.js → RewardGroup.vue_vue_type_script_setup_true_lang-d5JNNNHf.js} +11 -11
  28. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-D5ED_y1Y.js → RuleGroup.vue_vue_type_script_setup_true_lang-DYul_Nu8.js} +12 -12
  29. package/dist/{Segment-VNRLyu1n.js → Segment-B36Nrvxs.js} +14 -14
  30. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DoLM2Ixg.js → SelectItems.vue_vue_type_script_setup_true_lang-jN0xUFNR.js} +2 -2
  31. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B6EVC8zl.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BLFTNooB.js} +11 -11
  32. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DAtUBP_u.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-H_Sehhgf.js} +3 -3
  33. package/dist/{Setting-Bi5SqhFh.js → Setting-AgQf2X4W.js} +10 -10
  34. package/dist/{Store-DYqMkBya.js → Store-D3Mm0pan.js} +18 -18
  35. package/dist/{StoreRewards-DDh6tFnw.js → StoreRewards-L0VLWz8l.js} +13 -13
  36. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CdMTtNRL.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Zl_cXXSD.js} +18 -18
  37. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DlVqo7IB.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-b4mfueTj.js} +1 -1
  38. package/dist/{Tier-Df6ZUXoc.js → Tier-DQq-375x.js} +19 -19
  39. package/dist/{Title-B6UYeR3i.js → Title-OJxuBvaa.js} +19 -19
  40. package/dist/{Transaction-ClKP1eCm.js → Transaction-vgsYRfD7.js} +2 -2
  41. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-fCayOH18.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cwi0mvC3.js} +6 -6
  42. package/dist/{Voucher-C-YVNYtU.js → Voucher-BFwLaoxe.js} +12 -12
  43. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-VVCGaHcx.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DNUBaNtJ.js} +10 -10
  44. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CqUp3I7R.js → ZodTextField.vue_vue_type_script_setup_true_lang-ms40eptZ.js} +1 -1
  45. package/dist/{app-Bt-dyEJF.js → app-BQFTJ_hE.js} +1 -1
  46. package/dist/{app-BN1ZrLvU.js → app-D7C3Fxfi.js} +31 -31
  47. package/dist/app.js +1 -1
  48. package/dist/{business-CL91Ywkh.js → business-vzpvmTdG.js} +1 -1
  49. package/dist/{campaign-CQ3ZQixl.js → campaign-BkxTDfsK.js} +2 -2
  50. package/dist/{campaign-B6iMYgPr.js → campaign-UQ8kMVeC.js} +9 -9
  51. package/dist/{campaign.enum-CbdP5Zm4.js → campaign.enum-BdT-e9h9.js} +1 -1
  52. package/dist/{campaign.fn-OYYpBTQB.js → campaign.fn-lc4ZhFCU.js} +135 -135
  53. package/dist/{collectible.enum-D6T0m8zD.js → collectible.enum-C8kd17Tz.js} +1 -1
  54. package/dist/{collection.fn-E--2GvHD.js → collection.fn-BIw1Y_tv.js} +2 -2
  55. package/dist/{dto-CKTbMtRC.js → dto-CwzAhB8x.js} +4 -4
  56. package/dist/{effect-Bk2L2HPg.js → effect-CJcvLlKG.js} +1 -1
  57. package/dist/{email-addresses-r7t2A2tP.js → email-addresses-BCJTQPT0.js} +1 -1
  58. package/dist/{export-CmFgMuUR.js → export-URRwle1z.js} +3 -3
  59. package/dist/{helper-vj5pZDpi.js → helper-DccnE6zn.js} +1 -1
  60. package/dist/{index-DIVlPQs7.js → index-BiIZ7X6d.js} +3 -3
  61. package/dist/{index-BlfYTvc8.js → index-BsRJ4kVb.js} +1 -1
  62. package/dist/{index-ciFWj5wK.js → index-C3lpXz_P.js} +1 -1
  63. package/dist/{index-DifkHZQf.js → index-CFA3EqId.js} +1 -1
  64. package/dist/{index-BjRIP-Nf.js → index-CPRN3irj.js} +7 -6
  65. package/dist/{index-DZmeZIfy.js → index-CaxFS90M.js} +1 -1
  66. package/dist/{index-rqMNeQeS.js → index-D4MX9e5q.js} +1 -1
  67. package/dist/{index-q4jjAzh7.js → index-DrE9VkxR.js} +1 -1
  68. package/dist/{index-BLy86IYC.js → index-EOPRlB9V.js} +3 -3
  69. package/dist/{index-CoNW9g8f.js → index-FcxOGFKj.js} +1 -1
  70. package/dist/{index-C_lJF24R.js → index-OScGm4mF.js} +2 -2
  71. package/dist/{index-CXgzEful.js → index-ghSGvG-m.js} +6 -6
  72. package/dist/{index.esm2017-Btke1H-0.js → index.esm2017-CE1CQHrP.js} +1 -1
  73. package/dist/{loading-CljWGxj2.js → loading-B8zghYbj.js} +1 -1
  74. package/dist/{membership-DW8fhsPU.js → membership-DoJMF2T6.js} +3 -3
  75. package/dist/{money-CmLENFDU.js → money-CTR0rXZw.js} +1 -1
  76. package/dist/{number-D52xOK1O.js → number-Bhgz9eFP.js} +1 -1
  77. package/dist/{objectid-6vZuUhBs.js → objectid-DdVJrRBw.js} +12 -12
  78. package/dist/{plugins-VQvfB0aC.js → plugins-B5mQ7CHT.js} +4 -4
  79. package/dist/{reward-0mjbr3P3.js → reward-DicsEEHe.js} +1 -1
  80. package/dist/{rule-builder-QA20EFeh.js → rule-builder-BWb4JTrd.js} +1 -1
  81. package/dist/{rule-B1CCR_k_.js → rule-s8siRar1.js} +3 -3
  82. package/dist/{template-DUSSMzTJ.js → template-Qb5ozfLa.js} +4 -4
  83. package/dist/{trigger-rXCb0cno.js → trigger-Bsb3Kj35.js} +4 -4
  84. package/dist/{user-DsR11JGx.js → user-DJ8aHRaM.js} +1 -1
  85. package/dist/{vue-i18n-DuUlTtHn.js → vue-i18n-BG2U7GtN.js} +165 -165
  86. package/dist/{xlsx-DcXLCX66.js → xlsx-2QxyDFwt.js} +1 -1
  87. package/package.json +1 -1
  88. package/dist/Member-Cs0-TJUl.js +0 -331
@@ -1,10 +1,10 @@
1
- import { defineComponent as j, shallowRef as H, openBlock as p, createElementBlock as w, normalizeStyle as N, ref as V, resolveComponent as g, createBlock as E, unref as r, isRef as O, withCtx as x, createVNode as h, createElementVNode as v, createCommentVNode as B, withDirectives as D, vShow as A, computed as P, onMounted as q, Fragment as U, createTextVNode as G, toDisplayString as J, renderList as z } from "vue";
2
- import { p as K } from "./plugins-VQvfB0aC.js";
3
- import { A as W } from "./index-BjRIP-Nf.js";
4
- import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import { _ as Z, S as Q } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js";
6
- import { c as X } from "./object-qECH92oz.js";
7
- const ee = {
1
+ import { defineComponent as j, shallowRef as N, openBlock as p, createElementBlock as w, normalizeStyle as O, ref as V, resolveComponent as g, createBlock as E, unref as s, isRef as P, withCtx as x, createVNode as h, createElementVNode as v, createCommentVNode as T, withDirectives as U, vShow as A, 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-B5mQ7CHT.js";
3
+ import { A as Y } from "./index-CPRN3irj.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 = {
8
8
  "user.name": {
9
9
  name: "User name"
10
10
  },
@@ -46,34 +46,34 @@ const ee = {
46
46
  }
47
47
  }, Me = {
48
48
  MY: ["user.phoneNumber", "membership.url"]
49
- }, te = "https://editor.unlayer.com/embed.js?2", R = [];
50
- let T = !1;
51
- const ne = (e) => {
49
+ }, ne = "https://editor.unlayer.com/embed.js?2", R = [];
50
+ let H = !1;
51
+ const ae = (e) => {
52
52
  const n = document.querySelectorAll("script");
53
- let a = !1;
53
+ let i = !1;
54
54
  return n.forEach((u) => {
55
- u.src.includes(e) && (a = !0);
56
- }), a;
57
- }, ae = (e) => {
55
+ u.src.includes(e) && (i = !0);
56
+ }), i;
57
+ }, ie = (e) => {
58
58
  R.push(e);
59
- }, L = () => {
60
- if (T) {
59
+ }, B = () => {
60
+ if (H) {
61
61
  let e;
62
62
  for (; e = R.shift(); )
63
63
  e();
64
64
  }
65
- }, ie = (e, n = te) => {
66
- if (ae(e), ne(n))
67
- L();
65
+ }, oe = (e, n = ne) => {
66
+ if (ie(e), ae(n))
67
+ B();
68
68
  else {
69
- const a = document.createElement("script");
70
- a.setAttribute("src", n), a.onload = () => {
71
- T = !0, L();
72
- }, document.head.appendChild(a);
69
+ const i = document.createElement("script");
70
+ i.setAttribute("src", n), i.onload = () => {
71
+ H = !0, B();
72
+ }, document.head.appendChild(i);
73
73
  }
74
74
  };
75
- let oe = 0;
76
- const se = j({
75
+ let se = 0;
76
+ const re = j({
77
77
  name: "EmailEditor",
78
78
  props: {
79
79
  editorId: String,
@@ -102,17 +102,17 @@ const se = j({
102
102
  },
103
103
  computed: {
104
104
  id() {
105
- return this.editorId || `editor-${++oe}`;
105
+ return this.editorId || `editor-${++se}`;
106
106
  }
107
107
  },
108
108
  setup() {
109
109
  return {
110
- editor: H(null)
110
+ editor: N(null)
111
111
  // Makes editor available to the template
112
112
  };
113
113
  },
114
114
  mounted() {
115
- this.$emit("load"), ie(this.loadEditor.bind(this), this.scriptUrl);
115
+ this.$emit("load"), oe(this.loadEditor.bind(this), this.scriptUrl);
116
116
  },
117
117
  methods: {
118
118
  loadEditor() {
@@ -146,15 +146,15 @@ const se = j({
146
146
  (n = this.editor) == null || n.saveDesign(e);
147
147
  }
148
148
  }
149
- }), re = ["id"];
150
- function le(e, n, a, u, b, l) {
149
+ }), le = ["id"];
150
+ function de(e, n, i, u, y, r) {
151
151
  return p(), w("div", {
152
152
  id: e.id,
153
153
  class: "unlayer-editor",
154
- style: N({ minHeight: e.minHeight })
155
- }, null, 12, re);
154
+ style: O({ minHeight: e.minHeight })
155
+ }, null, 12, le);
156
156
  }
157
- const de = /* @__PURE__ */ Y(se, [["render", le], ["__scopeId", "data-v-a9a2bb94"]]), ue = { class: "h-full flex flex-col" }, ce = { class: "flex items-center gap-8" }, me = /* @__PURE__ */ j({
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({
158
158
  __name: "EmailEditorSheet",
159
159
  props: {
160
160
  design: {
@@ -167,83 +167,83 @@ const de = /* @__PURE__ */ Y(se, [["render", le], ["__scopeId", "data-v-a9a2bb94
167
167
  }
168
168
  },
169
169
  emits: ["update:design"],
170
- setup(e, { expose: n, emit: a }) {
171
- const u = V(!1), b = V(null), l = V(!1), y = e, f = V({
170
+ setup(e, { expose: n, emit: i }) {
171
+ const u = V(!1), y = V(null), r = V(!1), b = e, f = V({
172
172
  html: "",
173
- design: y.design,
174
- title: y.title || ""
173
+ design: b.design,
174
+ title: b.title || ""
175
175
  });
176
- function o(s) {
177
- u.value = s;
176
+ function S(o) {
177
+ u.value = o;
178
178
  }
179
- const t = a;
180
- function m() {
181
- b.value && (b.value.exportHtml((s) => {
179
+ const l = i;
180
+ function t() {
181
+ y.value && (y.value.exportHtml((o) => {
182
182
  f.value = {
183
- html: s.html,
184
- design: s.design,
183
+ html: o.html,
184
+ design: o.design,
185
185
  title: f.value.title
186
- }, t("update:design", f.value);
187
- }), o(!1));
186
+ }, l("update:design", f.value);
187
+ }), S(!1));
188
188
  }
189
189
  return n({
190
- showSheet: o
191
- }), (s, i) => {
192
- const S = g("FmButton"), _ = g("FmTextField"), M = g("FmSideSheet");
193
- return p(), E(M, {
194
- modelValue: r(u),
195
- "onUpdate:modelValue": i[4] || (i[4] = (d) => O(u) ? u.value = d : null),
190
+ showSheet: S
191
+ }), (o, a) => {
192
+ const c = g("FmButton"), M = g("FmTextField"), _ = g("FmSideSheet");
193
+ return p(), E(_, {
194
+ modelValue: s(u),
195
+ "onUpdate:modelValue": a[4] || (a[4] = (d) => P(u) ? u.value = d : null),
196
196
  header: "Email editor",
197
197
  "max-width": 1280
198
198
  }, {
199
199
  "side-sheet-button": x(() => [
200
- h(S, {
200
+ h(c, {
201
201
  label: "Edit email",
202
202
  variant: "tertiary",
203
203
  icon: "edit"
204
204
  })
205
205
  ]),
206
206
  default: x(() => [
207
- v("div", ue, [
208
- r(l) ? B("", !0) : (p(), E(Z, {
207
+ v("div", ce, [
208
+ s(r) ? T("", !0) : (p(), E(Q, {
209
209
  key: 0,
210
210
  class: "flex-1",
211
- json: r(Q),
211
+ json: s(X),
212
212
  width: 100,
213
213
  height: 100
214
214
  }, null, 8, ["json"])),
215
- D(h(_, {
215
+ U(h(M, {
216
216
  label: "Email title",
217
- modelValue: r(f).title,
218
- "onUpdate:modelValue": i[0] || (i[0] = (d) => r(f).title = d)
217
+ modelValue: s(f).title,
218
+ "onUpdate:modelValue": a[0] || (a[0] = (d) => s(f).title = d)
219
219
  }, null, 8, ["modelValue"]), [
220
- [A, r(l)]
220
+ [A, s(r)]
221
221
  ]),
222
- D(h(de, {
222
+ U(h(ue, {
223
223
  class: "flex-1",
224
224
  ref_key: "editorRef",
225
- ref: b,
226
- onLoad: i[1] || (i[1] = (d) => l.value = !1),
227
- onReady: i[2] || (i[2] = () => {
225
+ ref: y,
226
+ onLoad: a[1] || (a[1] = (d) => r.value = !1),
227
+ onReady: a[2] || (a[2] = () => {
228
228
  var d;
229
- l.value = !0, y.design && ((d = r(b)) == null || d.loadDesign(r(X)(y.design)));
229
+ r.value = !0, b.design && ((d = s(y)) == null || d.loadDesign(s(ee)(b.design)));
230
230
  })
231
231
  }, null, 512), [
232
- [A, r(l)]
232
+ [A, s(r)]
233
233
  ])
234
234
  ])
235
235
  ]),
236
236
  "side-sheet-footer": x(() => [
237
- v("div", ce, [
238
- h(S, {
237
+ v("div", me, [
238
+ h(c, {
239
239
  variant: "primary",
240
240
  label: "Confirm",
241
- onClick: m
241
+ onClick: t
242
242
  }),
243
- h(S, {
243
+ h(c, {
244
244
  variant: "tertiary",
245
245
  label: "Cancel",
246
- onClick: i[3] || (i[3] = (d) => o(!1))
246
+ onClick: a[3] || (a[3] = (d) => S(!1))
247
247
  })
248
248
  ])
249
249
  ]),
@@ -251,7 +251,7 @@ const de = /* @__PURE__ */ Y(se, [["render", le], ["__scopeId", "data-v-a9a2bb94
251
251
  }, 8, ["modelValue"]);
252
252
  };
253
253
  }
254
- }), pe = { class: "space-y-4" }, he = { class: "flex items-center gap-8 justify-between" }, fe = { class: "relative" }, ge = { class: "absolute bottom-[24px] right-[4px]" }, we = /* @__PURE__ */ j({
254
+ }), he = { class: "space-y-4" }, fe = { class: "flex items-center gap-8 justify-between" }, ge = { class: "relative" }, ye = { class: "absolute bottom-[24px] right-[4px]" }, _e = /* @__PURE__ */ j({
255
255
  __name: "MessageInput",
256
256
  props: {
257
257
  allowEmail: {
@@ -292,10 +292,10 @@ const de = /* @__PURE__ */ Y(se, [["render", le], ["__scopeId", "data-v-a9a2bb94
292
292
  },
293
293
  emits: ["update:model-value"],
294
294
  setup(e, { emit: n }) {
295
- const a = e, u = n;
296
- function b() {
297
- var m;
298
- const o = {
295
+ const i = e, u = n;
296
+ function y() {
297
+ var o;
298
+ const l = {
299
299
  user: {
300
300
  name: "John Doe",
301
301
  tier: 1,
@@ -310,26 +310,26 @@ const de = /* @__PURE__ */ Y(se, [["render", le], ["__scopeId", "data-v-a9a2bb94
310
310
  collectible: {
311
311
  name: "RM10 Voucher"
312
312
  }
313
- }, t = W(
314
- ((m = a.modelValue) == null ? void 0 : m.content) ?? "",
315
- o
313
+ }, t = Y(
314
+ ((o = i.modelValue) == null ? void 0 : o.content) ?? "",
315
+ l
316
316
  );
317
- K.confirm(t, "Preview message", "OK");
317
+ W.confirm(t, "Preview message", "OK");
318
318
  }
319
- function l(o, t = "SMS") {
319
+ function r(l, t = "SMS") {
320
320
  u("update:model-value", {
321
321
  channel: t,
322
- content: t == "SMS" ? o : o.html,
323
- design: t == "EMAIL" ? o.design : void 0,
322
+ content: t == "SMS" ? l : l.html,
323
+ design: t == "EMAIL" ? l.design : void 0,
324
324
  language: "en",
325
- title: t == "EMAIL" ? o.title : void 0,
326
- variables: a.variables
325
+ title: t == "EMAIL" ? l.title : void 0,
326
+ variables: i.variables
327
327
  });
328
328
  }
329
- const y = V(a.helperState || "none"), f = P(() => {
330
- var m;
331
- const o = ((m = a.modelValue) == null ? void 0 : m.content.replace(/{{([^}]+)}}/g, (s, i) => {
332
- switch (i) {
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) {
333
333
  case "user.name":
334
334
  return "1234567890";
335
335
  case "user.tier":
@@ -353,78 +353,81 @@ const de = /* @__PURE__ */ Y(se, [["render", le], ["__scopeId", "data-v-a9a2bb94
353
353
  }
354
354
  })) || "";
355
355
  let t = 0;
356
- for (let s = 0; s < o.length; s++) {
357
- const i = o.charAt(s);
358
- /[\u4e00-\u9fff\u3040-\u30ff\u3400-\u4dbf]/.test(i) || /[{}\\~\[\]|\^€]/.test(i) ? t += 2 : t += 1;
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
359
  }
360
360
  return `Character used: ${t} ≈ ${Math.ceil(t / 160)} SMS (Every 160 characters will be sent as 1 SMS)`;
361
- });
362
- return q(() => {
361
+ }), S = [
362
+ { label: "SMS" }
363
+ // { label: 'EMAIL' }
364
+ ];
365
+ return G(() => {
363
366
  u("update:model-value", {
364
- ...a.modelValue,
365
- variables: a.variables
366
- }), a.modelValue || l("");
367
- }), (o, t) => {
368
- var M, d, F, $, k;
369
- const m = g("FmButtonGroup"), s = g("FmButton"), i = g("FmTextarea"), S = g("FmMenuItem"), _ = g("FmMenu");
370
- return p(), w("div", pe, [
371
- e.allowEmail ? (p(), E(m, {
367
+ ...i.modelValue,
368
+ variables: i.variables
369
+ }), i.modelValue || r("");
370
+ }), (l, t) => {
371
+ var d, F, $, k, C;
372
+ const o = g("FmButtonGroup"), a = g("FmButton"), c = g("FmTextarea"), M = g("FmMenuItem"), _ = g("FmMenu");
373
+ return p(), w("div", he, [
374
+ e.allowEmail ? (p(), E(o, {
372
375
  key: 0,
373
- items: [{ label: "SMS" }, { label: "EMAIL" }],
374
- "model-value": { label: (M = e.modelValue) == null ? void 0 : M.channel },
375
- "onUpdate:modelValue": t[0] || (t[0] = (c) => l("", c.label))
376
- }, null, 8, ["model-value"])) : B("", !0),
377
- ((d = e.modelValue) == null ? void 0 : d.channel) == "EMAIL" ? (p(), E(me, {
376
+ items: S,
377
+ "model-value": { label: (d = e.modelValue) == null ? void 0 : d.channel },
378
+ "onUpdate:modelValue": t[0] || (t[0] = (m) => r("", m.label))
379
+ }, null, 8, ["model-value"])) : T("", !0),
380
+ ((F = e.modelValue) == null ? void 0 : F.channel) == "EMAIL" ? (p(), E(pe, {
378
381
  key: 1,
379
- design: (F = e.modelValue) == null ? void 0 : F.design,
380
- title: (($ = e.modelValue) == null ? void 0 : $.title) || void 0,
381
- "onUpdate:design": t[1] || (t[1] = (c) => {
382
- l(c, "EMAIL");
382
+ design: ($ = e.modelValue) == null ? void 0 : $.design,
383
+ title: ((k = e.modelValue) == null ? void 0 : k.title) || void 0,
384
+ "onUpdate:design": t[1] || (t[1] = (m) => {
385
+ r(m, "EMAIL");
383
386
  })
384
- }, null, 8, ["design", "title"])) : (p(), w(U, { key: 2 }, [
385
- v("div", he, [
387
+ }, null, 8, ["design", "title"])) : (p(), w(L, { key: 2 }, [
388
+ v("div", fe, [
386
389
  t[2] || (t[2] = v("div", { class: "fm-typo-en-body-lg-400" }, "Add message", -1)),
387
- h(s, {
390
+ h(a, {
388
391
  icon: "visibility",
389
392
  label: "Preview message",
390
393
  variant: "plain",
391
- onClick: b
394
+ onClick: y
392
395
  })
393
396
  ]),
394
- v("div", fe, [
395
- h(i, {
396
- "model-value": (k = e.modelValue) == null ? void 0 : k.content,
397
- "onUpdate:modelValue": l,
397
+ v("div", ge, [
398
+ h(c, {
399
+ "model-value": (C = e.modelValue) == null ? void 0 : C.content,
400
+ "onUpdate:modelValue": r,
398
401
  "show-word-count": !0,
399
402
  placeholder: e.placeholder,
400
- "helper-state": r(y) || "none",
401
- "helper-text": r(f)
403
+ "helper-state": s(b) || "none",
404
+ "helper-text": s(f)
402
405
  }, {
403
406
  "helper-text": x(() => [
404
- G(J(r(f)), 1)
407
+ J(z(s(f)), 1)
405
408
  ]),
406
409
  _: 1
407
410
  }, 8, ["model-value", "placeholder", "helper-state", "helper-text"]),
408
- v("div", ge, [
411
+ v("div", ye, [
409
412
  h(_, { placement: "left-end" }, {
410
413
  "menu-button": x(() => [
411
- h(s, {
414
+ h(a, {
412
415
  icon: "add",
413
416
  variant: "tertiary",
414
417
  size: "md"
415
418
  })
416
419
  ]),
417
420
  default: x(() => [
418
- (p(!0), w(U, null, z(e.variables.filter(
419
- (c) => e.triggerType == "SCHEDULE" ? !c.startsWith("transaction.") : !0
420
- ), (c) => {
421
- var C;
422
- return p(), E(S, {
423
- key: c,
424
- label: ((C = r(ee)[c]) == null ? void 0 : C.name) || c,
421
+ (p(!0), w(L, null, K(e.variables.filter(
422
+ (m) => e.triggerType == "SCHEDULE" ? !m.startsWith("transaction.") : !0
423
+ ), (m) => {
424
+ var I;
425
+ return p(), E(M, {
426
+ key: m,
427
+ label: ((I = s(te)[m]) == null ? void 0 : I.name) || m,
425
428
  onClick: (be) => {
426
- var I;
427
- return l(((I = e.modelValue) == null ? void 0 : I.content) + `{{${c}}}`);
429
+ var D;
430
+ return r(((D = e.modelValue) == null ? void 0 : D.content) + `{{${m}}}`);
428
431
  }
429
432
  }, null, 8, ["label", "onClick"]);
430
433
  }), 128))
@@ -440,5 +443,5 @@ const de = /* @__PURE__ */ Y(se, [["render", le], ["__scopeId", "data-v-a9a2bb94
440
443
  });
441
444
  export {
442
445
  Me as M,
443
- we as _
446
+ _e as _
444
447
  };
@@ -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-CljWGxj2.js";
4
- import { g as X, a as B, b as P } from "./campaign-B6iMYgPr.js";
5
- import { a as Y, p as Z } from "./plugins-VQvfB0aC.js";
6
- import { u as ee } from "./business-CL91Ywkh.js";
7
- import { u as oe } from "./campaign-CQ3ZQixl.js";
3
+ import { u as Q } from "./loading-B8zghYbj.js";
4
+ import { g as X, a as B, b as P } from "./campaign-UQ8kMVeC.js";
5
+ import { a as Y, p as Z } from "./plugins-B5mQ7CHT.js";
6
+ import { u as ee } from "./business-vzpvmTdG.js";
7
+ import { u as oe } from "./campaign-BkxTDfsK.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-DUSSMzTJ.js";
11
- import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BY3LPgbL.js";
10
+ import { u as ae } from "./template-Qb5ozfLa.js";
11
+ import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BKEumoan.js";
12
12
  import { s as ie } from "./index-CsaQJMAR.js";
13
- import { u as ce } from "./vue-i18n-DuUlTtHn.js";
14
- import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-B6EVC8zl.js";
15
- import { c as h } from "./index-rqMNeQeS.js";
13
+ import { u as ce } from "./vue-i18n-BG2U7GtN.js";
14
+ import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-BLFTNooB.js";
15
+ import { c as h } from "./index-D4MX9e5q.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 = { class: "flex flex-col gap-16 text-center" }, xe = { class: "fm-typo-en-title-sm-800" }, ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Oe = /* @__PURE__ */ H({
17
17
  __name: "Mission",
18
18
  setup(Ce) {
@@ -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 ve, ref as k, computed as G, watch as ie, createBlock as j, isRef as J, resolveDynamicComponent as ne, renderList as re, normalizeClass as de, createTextVNode as ce, createCommentVNode as z, h as te, onMounted as _e } from "vue";
2
2
  import { _ as ge } from "./campaign-CpzFl8Vr.js";
3
- import { u as Z } from "./vue-i18n-DuUlTtHn.js";
4
- import { u as ue } from "./loading-CljWGxj2.js";
5
- import { c as we, p as K } from "./plugins-VQvfB0aC.js";
3
+ import { u as Z } from "./vue-i18n-BG2U7GtN.js";
4
+ import { u as ue } from "./loading-B8zghYbj.js";
5
+ import { c as we, p as K } from "./plugins-B5mQ7CHT.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-DjGG_zBM.js";
10
- import { u as me } from "./reward-0mjbr3P3.js";
11
- import { a as be, b as xe } from "./index-CXgzEful.js";
12
- import { j as le, k as se } from "./index-BjRIP-Nf.js";
13
- import "./index-C_lJF24R.js";
14
- import "./index-ciFWj5wK.js";
15
- import "./index-BLy86IYC.js";
16
- import { C as fe } from "./membership-DW8fhsPU.js";
17
- import { t as ee } from "./helper-vj5pZDpi.js";
9
+ import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-d5JNNNHf.js";
10
+ import { u as me } from "./reward-DicsEEHe.js";
11
+ import { a as be, b as xe } from "./index-ghSGvG-m.js";
12
+ import { j as le, k as se } from "./index-CPRN3irj.js";
13
+ import "./index-OScGm4mF.js";
14
+ import "./index-C3lpXz_P.js";
15
+ import "./index-EOPRlB9V.js";
16
+ import { C as fe } from "./membership-DoJMF2T6.js";
17
+ import { t as ee } from "./helper-DccnE6zn.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-CqUp3I7R.js";
21
- import { T as Se, _ as ke, a as Fe } from "./trigger-rXCb0cno.js";
22
- import { O as $e } from "./objectid-6vZuUhBs.js";
23
- import { r as pe } from "./index-q4jjAzh7.js";
24
- import { u as Pe } from "./business-CL91Ywkh.js";
20
+ import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-ms40eptZ.js";
21
+ import { T as Se, _ as ke, a as Fe } from "./trigger-Bsb3Kj35.js";
22
+ import { O as $e } from "./objectid-DdVJrRBw.js";
23
+ import { r as pe } from "./index-DrE9VkxR.js";
24
+ import { u as Pe } from "./business-vzpvmTdG.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-VQvfB0aC.js";
5
- import { u as W } from "./loading-CljWGxj2.js";
6
- import { u as X } from "./business-CL91Ywkh.js";
7
- import { u as Y } from "./campaign-CQ3ZQixl.js";
8
- import { g as Z, a as V, b as I } from "./campaign-B6iMYgPr.js";
4
+ import { p as Q } from "./plugins-B5mQ7CHT.js";
5
+ import { u as W } from "./loading-B8zghYbj.js";
6
+ import { u as X } from "./business-vzpvmTdG.js";
7
+ import { u as Y } from "./campaign-BkxTDfsK.js";
8
+ import { g as Z, a as V, b as I } from "./campaign-UQ8kMVeC.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-BY3LPgbL.js";
11
- import { u as oe } from "./template-DUSSMzTJ.js";
12
- import { u as ae } from "./vue-i18n-DuUlTtHn.js";
13
- import { c as _ } from "./index-rqMNeQeS.js";
10
+ import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BKEumoan.js";
11
+ import { u as oe } from "./template-Qb5ozfLa.js";
12
+ import { u as ae } from "./vue-i18n-BG2U7GtN.js";
13
+ import { c as _ } from "./index-D4MX9e5q.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 = { class: "flex flex-col gap-16 text-center" }, _e = { class: "fm-typo-en-title-sm-800" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ke = /* @__PURE__ */ j({
15
15
  __name: "Point",
16
16
  setup(be) {
@@ -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 a, 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-VQvfB0aC.js";
5
- import { u as Z } from "./loading-CljWGxj2.js";
6
- import { u as ee } from "./business-CL91Ywkh.js";
7
- import { u as oe } from "./campaign-CQ3ZQixl.js";
8
- import { u as te } from "./vue-i18n-DuUlTtHn.js";
9
- import { g as ne, a as V } from "./campaign-B6iMYgPr.js";
10
- import { e as L } from "./effect-Bk2L2HPg.js";
4
+ import { c as O, p as I } from "./plugins-B5mQ7CHT.js";
5
+ import { u as Z } from "./loading-B8zghYbj.js";
6
+ import { u as ee } from "./business-vzpvmTdG.js";
7
+ import { u as oe } from "./campaign-BkxTDfsK.js";
8
+ import { u as te } from "./vue-i18n-BG2U7GtN.js";
9
+ import { g as ne, a as V } from "./campaign-UQ8kMVeC.js";
10
+ import { e as L } from "./effect-CJcvLlKG.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-BY3LPgbL.js";
13
- import { u as ce } from "./template-DUSSMzTJ.js";
14
- import { c as u } from "./index-rqMNeQeS.js";
12
+ import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BKEumoan.js";
13
+ import { u as ce } from "./template-Qb5ozfLa.js";
14
+ import { c as u } from "./index-D4MX9e5q.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 = { class: "flex flex-col gap-16 text-center" }, ge = { class: "fm-typo-en-title-sm-800" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Be = /* @__PURE__ */ H({
16
16
  __name: "Promotion",
17
17
  setup(he) {
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as _, h as n, ref as k, watch as P, onBeforeMount as T, resolveComponent as V, openBlock as N, createElementBlock as B, Fragment as U, createVNode as m, unref as o, createElementVNode as f } from "vue";
2
2
  import { u as A, _ as z } from "./usePagination-BeF5K3M7.js";
3
3
  import { _ as h } from "./FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js";
4
- import { c as u, a as q } from "./plugins-VQvfB0aC.js";
4
+ import { c as u, a as q } from "./plugins-B5mQ7CHT.js";
5
5
  import { useDialog as Y, components as w } from "@feedmepos/ui-library";
6
- import "./index-CXgzEful.js";
7
- import { I as c, k as x } from "./index-BjRIP-Nf.js";
8
- import "./index-C_lJF24R.js";
9
- import "./index-ciFWj5wK.js";
10
- import "./index-BLy86IYC.js";
6
+ import "./index-ghSGvG-m.js";
7
+ import { I as c, k as x } from "./index-CPRN3irj.js";
8
+ import "./index-OScGm4mF.js";
9
+ import "./index-C3lpXz_P.js";
10
+ import "./index-EOPRlB9V.js";
11
11
  import { h as L } from "./moment-BWErdI6_.js";
12
- import { u as O } from "./vue-i18n-DuUlTtHn.js";
13
- import { u as $, v as j, x as H } from "./index.esm2017-Btke1H-0.js";
14
- import { g as K, S as W, u as G } from "./index-DIVlPQs7.js";
12
+ import { u as O } from "./vue-i18n-BG2U7GtN.js";
13
+ import { u as $, v as j, x as H } from "./index.esm2017-CE1CQHrP.js";
14
+ import { g as K, S as W, u as G } from "./index-BiIZ7X6d.js";
15
15
  import { o as Q } from "./objectId-dwaoBfJX.js";
16
16
  const J = () => {
17
17
  if (!W.getBusinessId()) throw new Error("Invalid business ID");
@@ -3,16 +3,16 @@ var G = (g, o, m) => o in g ? q(g, o, { enumerable: !0, configurable: !0, writab
3
3
  var z = (g, o, m) => G(g, typeof o != "symbol" ? o + "" : o, m);
4
4
  import { defineComponent as T, ref as B, computed as H, resolveComponent as C, openBlock as I, createBlock as J, unref as n, isRef as Q, withCtx as X, createElementBlock as U, createVNode as w, withModifiers as Z, createCommentVNode as ee, createElementVNode as N, h, onMounted as re, Fragment as te } from "vue";
5
5
  import { u as oe, _ as ae } from "./usePagination-BeF5K3M7.js";
6
- import { g as A } from "./user-DsR11JGx.js";
6
+ import { g as A } from "./user-DJ8aHRaM.js";
7
7
  import { components as R } from "@feedmepos/ui-library";
8
- import { a as se, c as ie } from "./plugins-VQvfB0aC.js";
9
- import { u as j } from "./vue-i18n-DuUlTtHn.js";
10
- import { u as L } from "./loading-CljWGxj2.js";
8
+ import { a as se, c as ie } from "./plugins-B5mQ7CHT.js";
9
+ import { u as j } from "./vue-i18n-BG2U7GtN.js";
10
+ import { u as L } from "./loading-B8zghYbj.js";
11
11
  import { useCoreStore as ne } from "@feedmepos/mf-common";
12
- import { r as v } from "./index-q4jjAzh7.js";
12
+ import { r as v } from "./index-DrE9VkxR.js";
13
13
  import { c as ce, a as le } from "./object-qECH92oz.js";
14
- import { u as de } from "./membership-DW8fhsPU.js";
15
- import { u as V, w as me } from "./xlsx-DcXLCX66.js";
14
+ import { u as de } from "./membership-DoJMF2T6.js";
15
+ import { u as V, w as me } from "./xlsx-2QxyDFwt.js";
16
16
  import { e as f } from "./index-vh86FiIQ.js";
17
17
  import { h as ue } from "./moment-BWErdI6_.js";
18
18
  import { o as pe } from "./objectId-dwaoBfJX.js";