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

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 (118) hide show
  1. package/dist/Analytic-CXegtSEd.js +427 -0
  2. package/dist/{App-C2616cfr.js → App-m9A9s3wd.js} +445 -420
  3. package/dist/AuditLogs-CpUOkyXq.js +1886 -0
  4. package/dist/Bin-m6mPl3FE.js +166 -0
  5. package/dist/{Broadcast-CqSwLTAq.js → Broadcast-DNjHnlPp.js} +56 -54
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DrR9Pmtb.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-cjdNZLkE.js} +6 -8
  7. package/dist/Card-CAvS5aaN.js +896 -0
  8. package/dist/Collections-3C9I2byH.js +459 -0
  9. package/dist/{Credit-CPcLgnsq.js → Credit-DcAmLeMb.js} +36 -34
  10. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
  11. package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +58 -0
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-wGFMCV-y.js +2181 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-D2buK6Dj.js → EffectSheet.vue_vue_type_style_index_0_lang-CIEn1N24.js} +6 -6
  14. package/dist/{Experience-BoBikt-x.js → Experience-GF9yOrlE.js} +32 -30
  15. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
  16. package/dist/{Game-DR8PyYZa.js → Game-CzBn_Li3.js} +39 -37
  17. package/dist/Index-Bhmkdb4n.js +259 -0
  18. package/dist/Marketing-DlbcOoiN.js +20071 -0
  19. package/dist/Member-CdXG5uEN.js +317 -0
  20. package/dist/MemberList-xIOXAHJf.js +1598 -0
  21. package/dist/MemberTransactions-CsW9vso0.js +45 -0
  22. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DhtIZCjT.js → MessageInput.vue_vue_type_script_setup_true_lang-jtjk9NjI.js} +83 -71
  23. package/dist/{Mission-CMpvz9zN.js → Mission-2UjKrmGe.js} +101 -87
  24. package/dist/Overview-ClittdS6.js +1078 -0
  25. package/dist/{Point-DkZn6p9s.js → Point-BON4g7zE.js} +55 -53
  26. package/dist/{Promotion-B7YzwPc_.js → Promotion-qUEZmmm8.js} +65 -57
  27. package/dist/Queue-DA4glGdE.js +244 -0
  28. package/dist/Record-EUAnp1--.js +340 -0
  29. package/dist/Reward-ChbsdQuW.js +442 -0
  30. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-CUFw56sf.js +150 -0
  31. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BKesht7Y.js +1637 -0
  32. package/dist/Segment-DbwFx6vD.js +568 -0
  33. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-lwpYOWMR.js +181 -0
  34. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-BbuOPEGY.js +147 -0
  35. package/dist/Setting-FMTftvlU.js +1931 -0
  36. package/dist/Store-BkUwiBUq.js +1751 -0
  37. package/dist/{StoreRewards-6BzVwZqr.js → StoreRewards-Z8uhK0v1.js} +33 -32
  38. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DwFYJ1Iz.js +943 -0
  39. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B6cAveco.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-D6mrJp05.js} +1 -1
  40. package/dist/{Tier-CW-46oJS.js → Tier-COCmcJJF.js} +327 -318
  41. package/dist/{Title-CE9rWVdi.js → Title-7qCjbur9.js} +199 -184
  42. package/dist/{Transaction-B21RrC4M.js → Transaction-9FS_K2hv.js} +2 -2
  43. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Fx-J2gcK.js +130 -0
  44. package/dist/Voucher-Dx70JAgw.js +354 -0
  45. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-CECJsKRJ.js +419 -0
  46. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BiVZwBuG.js → ZodTextField.vue_vue_type_script_setup_true_lang-Bne_nxYS.js} +1 -1
  47. package/dist/{app-CjhXHUQv.js → app-CWKpKW78.js} +1 -1
  48. package/dist/app-q6W6-faT.js +7059 -0
  49. package/dist/app.js +1 -1
  50. package/dist/{business-aHhRUXc0.js → business-D5AQBRGS.js} +1 -1
  51. package/dist/campaign-BGiM8ccX.js +1810 -0
  52. package/dist/{campaign-DH9NUNf_.js → campaign-v8MAkDo-.js} +2 -2
  53. package/dist/campaign.enum-Dro6UEcE.js +20 -0
  54. package/dist/campaign.fn-DsJUr-gE.js +758 -0
  55. package/dist/collectible.enum-BH9pX7PE.js +19 -0
  56. package/dist/{collection.fn-CYlsA-kW.js → collection.fn-CHiRShK_.js} +2 -2
  57. package/dist/dto-CeX9egUp.js +214 -0
  58. package/dist/{effect-LSc9YanX.js → effect-DtJQE1cD.js} +9 -9
  59. package/dist/email-addresses-DKOsgzML.js +705 -0
  60. package/dist/{export-Cf0-C5Ly.js → export-Daiv_zH9.js} +5 -5
  61. package/dist/{helper-CiZpeMCM.js → helper-B5Emawnj.js} +1 -1
  62. package/dist/index-9WBy0L7U.js +54 -0
  63. package/dist/{index-D6cEOHP4.js → index-BSHuLDD0.js} +1501 -1480
  64. package/dist/{index-BVb5-Ht8.js → index-CUl_8M_c.js} +259 -173
  65. package/dist/{index-gxwjKu3-.js → index-CgCcvX_L.js} +2212 -871
  66. package/dist/index-CsaQJMAR.js +66 -0
  67. package/dist/{index-D_83JP2i.js → index-DrWrGAHJ.js} +48 -4
  68. package/dist/index-DteeKoFo.js +115 -0
  69. package/dist/{index-DW3PRjPL.js → index-Dw2RtHKR.js} +1 -1
  70. package/dist/{index-kPhrD63q.js → index-ICbXrXiP.js} +1 -1
  71. package/dist/index-Xwc07I54.js +29000 -0
  72. package/dist/{index-DtsDOuDx.js → index-ZBSI6ViG.js} +24 -21
  73. package/dist/index-g9NNHS8s.js +32 -0
  74. package/dist/index-p6F08hhh.js +44 -0
  75. package/dist/index-vh86FiIQ.js +10 -0
  76. package/dist/{index.esm2017-B7oVYIbY.js → index.esm2017-B-SDA6Y2.js} +121 -121
  77. package/dist/loading-CDbkBsRr.js +71 -0
  78. package/dist/{membership-Dw1ylJ9Y.js → membership-B8uwuntJ.js} +54 -46
  79. package/dist/money-DRKB3Rpe.js +15 -0
  80. package/dist/number-DtyC1DJU.js +12 -0
  81. package/dist/objectid-wGrq9P1h.js +145 -0
  82. package/dist/{loading-7yq1tinq.js → plugins-DKNh-lBz.js} +3871 -3943
  83. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  84. package/dist/reward-C2jv5dmJ.js +36 -0
  85. package/dist/{rule-C0Q_SHow.js → rule-C5AMTchR.js} +180 -177
  86. package/dist/{rule-builder-iu17XIof.js → rule-builder-DLOGHT1l.js} +1 -1
  87. package/dist/style.css +1 -1
  88. package/dist/{template-CyOanTMu.js → template-C-fz1DXI.js} +5 -5
  89. package/dist/trigger-DTErX60D.js +144 -0
  90. package/dist/user-CVRoQGCF.js +54 -0
  91. package/dist/{vue-i18n-B0fLJH7a.js → vue-i18n-CxMxiW_u.js} +366 -366
  92. package/dist/{xlsx-BYO_bB9J.js → xlsx-CARvMJN_.js} +1 -1
  93. package/package.json +10 -6
  94. package/dist/Analytic-muDf0oMG.js +0 -622
  95. package/dist/Card-bhLoK0ZV.js +0 -825
  96. package/dist/Collections-DjtsAiol.js +0 -453
  97. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-U_QZneS6.js +0 -2813
  98. package/dist/Marketing-Dny2nMUl.js +0 -316
  99. package/dist/Member-CP_smyk8.js +0 -69
  100. package/dist/MemberList-CR3eYI9p.js +0 -1733
  101. package/dist/MemberTransactions-RTx_lKFb.js +0 -38
  102. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Cs67_GLE.js +0 -1753
  103. package/dist/Segment-Bb4gHt5V.js +0 -437
  104. package/dist/Setting-Xj0AVzh3.js +0 -1901
  105. package/dist/Store-BWRHQ6Ie.js +0 -1511
  106. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BsFnT8BS.js +0 -890
  107. package/dist/Voucher-KK9fBI0u.js +0 -490
  108. package/dist/app-Dvf_JNMf.js +0 -5764
  109. package/dist/dto-DArfyZAI.js +0 -2770
  110. package/dist/index-Bi_LGEtY.js +0 -99
  111. package/dist/index-CiQDG7Cm.js +0 -762
  112. package/dist/index-CuvNtC_M.js +0 -61
  113. package/dist/index-DQfjSSMF.js +0 -206
  114. package/dist/index-DcxssxPi.js +0 -29193
  115. package/dist/index-DqJVH2kv.js +0 -298
  116. package/dist/money-CPd0XTNv.js +0 -15
  117. package/dist/number-BgXY4un8.js +0 -12
  118. package/dist/user-Bm4KttFq.js +0 -37
@@ -0,0 +1,45 @@
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-DwFYJ1Iz.js";
3
+ import { useRouter as y } from "vue-router";
4
+ const C = { class: "flex flex-col gap-y-32 pb-24" }, F = /* @__PURE__ */ d({
5
+ __name: "MemberTransactions",
6
+ setup(T) {
7
+ const r = y(), t = [
8
+ {
9
+ label: "Collection",
10
+ value: "collection"
11
+ },
12
+ {
13
+ label: "Store",
14
+ value: "store"
15
+ }
16
+ ], l = p(
17
+ t.find(
18
+ (s) => {
19
+ var e;
20
+ return s.value == ((e = r.currentRoute.value.query) == null ? void 0 : e.tab);
21
+ }
22
+ ) || t[0]
23
+ ), n = r.currentRoute.value.params.id;
24
+ return (s, e) => {
25
+ const c = _("FmTabs");
26
+ return a(), f("div", C, [
27
+ v(c, {
28
+ "model-value": o(l).value,
29
+ items: t,
30
+ "onUpdate:modelValue": e[0] || (e[0] = (m) => l.value = t.find((i) => i.value === m))
31
+ }, null, 8, ["model-value"]),
32
+ o(l).value == "collection" ? (a(), u(k, {
33
+ key: 0,
34
+ user: o(n)
35
+ }, null, 8, ["user"])) : o(l).value == "store" ? (a(), u(x, {
36
+ key: 1,
37
+ user: o(n)
38
+ }, null, 8, ["user"])) : b("", !0)
39
+ ]);
40
+ };
41
+ }
42
+ });
43
+ export {
44
+ F as default
45
+ };
@@ -1,9 +1,9 @@
1
- import { defineComponent as M, shallowRef as R, openBlock as p, createElementBlock as _, normalizeStyle as O, ref as V, resolveComponent as g, createBlock as E, unref as s, isRef as N, withCtx as x, createVNode as h, createElementVNode as v, createCommentVNode as B, withDirectives as D, vShow as A, computed as q, onMounted as J, Fragment as U, createTextVNode as P, toDisplayString as z, renderList as G } from "vue";
2
- import { p as K } from "./loading-7yq1tinq.js";
3
- import { r as W } from "./index-CiQDG7Cm.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 Y } from "./object-qECH92oz.js";
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 U, computed as P, onMounted as q, Fragment as A, createTextVNode as z, toDisplayString as G, renderList as J } from "vue";
2
+ import { p as K } from "./plugins-DKNh-lBz.js";
3
+ import { z as W } from "./index-CgCcvX_L.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
7
  const ee = {
8
8
  "user.name": {
9
9
  name: "User name"
@@ -29,14 +29,25 @@ const ee = {
29
29
  "user.point": {
30
30
  name: "User experience"
31
31
  },
32
+ "user.gender": {
33
+ name: "Gender"
34
+ },
35
+ "user.phoneNumber": {
36
+ name: "Phone Number"
37
+ },
32
38
  "transaction.amount": {
33
39
  name: "Reward amount"
34
40
  },
35
41
  "collectible.name": {
36
42
  name: "Reward name"
43
+ },
44
+ "membership.url": {
45
+ name: "Membership URL"
37
46
  }
38
- }, te = "https://editor.unlayer.com/embed.js?2", T = [];
39
- let H = !1;
47
+ }, Me = {
48
+ MY: ["user.phoneNumber", "membership.url"]
49
+ }, te = "https://editor.unlayer.com/embed.js?2", R = [];
50
+ let T = !1;
40
51
  const ne = (e) => {
41
52
  const n = document.querySelectorAll("script");
42
53
  let a = !1;
@@ -44,11 +55,11 @@ const ne = (e) => {
44
55
  u.src.includes(e) && (a = !0);
45
56
  }), a;
46
57
  }, ae = (e) => {
47
- T.push(e);
58
+ R.push(e);
48
59
  }, L = () => {
49
- if (H) {
60
+ if (T) {
50
61
  let e;
51
- for (; e = T.shift(); )
62
+ for (; e = R.shift(); )
52
63
  e();
53
64
  }
54
65
  }, ie = (e, n = te) => {
@@ -57,12 +68,12 @@ const ne = (e) => {
57
68
  else {
58
69
  const a = document.createElement("script");
59
70
  a.setAttribute("src", n), a.onload = () => {
60
- H = !0, L();
71
+ T = !0, L();
61
72
  }, document.head.appendChild(a);
62
73
  }
63
74
  };
64
75
  let oe = 0;
65
- const le = M({
76
+ const se = j({
66
77
  name: "EmailEditor",
67
78
  props: {
68
79
  editorId: String,
@@ -96,7 +107,7 @@ const le = M({
96
107
  },
97
108
  setup() {
98
109
  return {
99
- editor: R(null)
110
+ editor: H(null)
100
111
  // Makes editor available to the template
101
112
  };
102
113
  },
@@ -135,15 +146,15 @@ const le = M({
135
146
  (n = this.editor) == null || n.saveDesign(e);
136
147
  }
137
148
  }
138
- }), se = ["id"];
139
- function re(e, n, a, u, y, r) {
140
- return p(), _("div", {
149
+ }), re = ["id"];
150
+ function le(e, n, a, u, b, l) {
151
+ return p(), w("div", {
141
152
  id: e.id,
142
153
  class: "unlayer-editor",
143
- style: O({ minHeight: e.minHeight })
144
- }, null, 12, se);
154
+ style: N({ minHeight: e.minHeight })
155
+ }, null, 12, re);
145
156
  }
146
- const de = /* @__PURE__ */ Z(le, [["render", re], ["__scopeId", "data-v-a9a2bb94"]]), ue = { class: "h-full flex flex-col" }, ce = { class: "flex items-center gap-8" }, me = /* @__PURE__ */ M({
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({
147
158
  __name: "EmailEditorSheet",
148
159
  props: {
149
160
  design: {
@@ -157,31 +168,31 @@ const de = /* @__PURE__ */ Z(le, [["render", re], ["__scopeId", "data-v-a9a2bb94
157
168
  },
158
169
  emits: ["update:design"],
159
170
  setup(e, { expose: n, emit: a }) {
160
- const u = V(!1), y = V(null), r = V(!1), b = e, f = V({
171
+ const u = V(!1), b = V(null), l = V(!1), y = e, f = V({
161
172
  html: "",
162
- design: b.design,
163
- title: b.title || ""
173
+ design: y.design,
174
+ title: y.title || ""
164
175
  });
165
- function o(l) {
166
- u.value = l;
176
+ function o(s) {
177
+ u.value = s;
167
178
  }
168
179
  const t = a;
169
180
  function m() {
170
- y.value && (y.value.exportHtml((l) => {
181
+ b.value && (b.value.exportHtml((s) => {
171
182
  f.value = {
172
- html: l.html,
173
- design: l.design,
183
+ html: s.html,
184
+ design: s.design,
174
185
  title: f.value.title
175
186
  }, t("update:design", f.value);
176
187
  }), o(!1));
177
188
  }
178
189
  return n({
179
190
  showSheet: o
180
- }), (l, i) => {
181
- const S = g("FmButton"), j = g("FmTextField"), w = g("FmSideSheet");
182
- return p(), E(w, {
183
- modelValue: s(u),
184
- "onUpdate:modelValue": i[4] || (i[4] = (d) => N(u) ? u.value = d : null),
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),
185
196
  header: "Email editor",
186
197
  "max-width": 1280
187
198
  }, {
@@ -194,31 +205,31 @@ const de = /* @__PURE__ */ Z(le, [["render", re], ["__scopeId", "data-v-a9a2bb94
194
205
  ]),
195
206
  default: x(() => [
196
207
  v("div", ue, [
197
- s(r) ? B("", !0) : (p(), E(Q, {
208
+ r(l) ? B("", !0) : (p(), E(Z, {
198
209
  key: 0,
199
210
  class: "flex-1",
200
- json: s(X),
211
+ json: r(Q),
201
212
  width: 100,
202
213
  height: 100
203
214
  }, null, 8, ["json"])),
204
- D(h(j, {
215
+ D(h(_, {
205
216
  label: "Email title",
206
- modelValue: s(f).title,
207
- "onUpdate:modelValue": i[0] || (i[0] = (d) => s(f).title = d)
217
+ modelValue: r(f).title,
218
+ "onUpdate:modelValue": i[0] || (i[0] = (d) => r(f).title = d)
208
219
  }, null, 8, ["modelValue"]), [
209
- [A, s(r)]
220
+ [U, r(l)]
210
221
  ]),
211
222
  D(h(de, {
212
223
  class: "flex-1",
213
224
  ref_key: "editorRef",
214
- ref: y,
215
- onLoad: i[1] || (i[1] = (d) => r.value = !1),
225
+ ref: b,
226
+ onLoad: i[1] || (i[1] = (d) => l.value = !1),
216
227
  onReady: i[2] || (i[2] = () => {
217
228
  var d;
218
- r.value = !0, b.design && ((d = s(y)) == null || d.loadDesign(s(Y)(b.design)));
229
+ l.value = !0, y.design && ((d = r(b)) == null || d.loadDesign(r(X)(y.design)));
219
230
  })
220
231
  }, null, 512), [
221
- [A, s(r)]
232
+ [U, r(l)]
222
233
  ])
223
234
  ])
224
235
  ]),
@@ -240,7 +251,7 @@ const de = /* @__PURE__ */ Z(le, [["render", re], ["__scopeId", "data-v-a9a2bb94
240
251
  }, 8, ["modelValue"]);
241
252
  };
242
253
  }
243
- }), 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__ */ M({
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({
244
255
  __name: "MessageInput",
245
256
  props: {
246
257
  allowEmail: {
@@ -282,7 +293,7 @@ const de = /* @__PURE__ */ Z(le, [["render", re], ["__scopeId", "data-v-a9a2bb94
282
293
  emits: ["update:model-value"],
283
294
  setup(e, { emit: n }) {
284
295
  const a = e, u = n;
285
- function y() {
296
+ function b() {
286
297
  var m;
287
298
  const o = {
288
299
  user: {
@@ -305,7 +316,7 @@ const de = /* @__PURE__ */ Z(le, [["render", re], ["__scopeId", "data-v-a9a2bb94
305
316
  );
306
317
  K.confirm(t, "Preview message", "OK");
307
318
  }
308
- function r(o, t = "SMS") {
319
+ function l(o, t = "SMS") {
309
320
  u("update:model-value", {
310
321
  channel: t,
311
322
  content: t == "SMS" ? o : o.html,
@@ -315,9 +326,9 @@ const de = /* @__PURE__ */ Z(le, [["render", re], ["__scopeId", "data-v-a9a2bb94
315
326
  variables: a.variables
316
327
  });
317
328
  }
318
- const b = V(a.helperState || "none"), f = q(() => {
329
+ const y = V(a.helperState || "none"), f = P(() => {
319
330
  var m;
320
- const o = ((m = a.modelValue) == null ? void 0 : m.content.replace(/{{([^}]+)}}/g, (l, i) => {
331
+ const o = ((m = a.modelValue) == null ? void 0 : m.content.replace(/{{([^}]+)}}/g, (s, i) => {
321
332
  switch (i) {
322
333
  case "user.name":
323
334
  return "1234567890";
@@ -342,78 +353,78 @@ const de = /* @__PURE__ */ Z(le, [["render", re], ["__scopeId", "data-v-a9a2bb94
342
353
  }
343
354
  })) || "";
344
355
  let t = 0;
345
- for (let l = 0; l < o.length; l++) {
346
- const i = o.charAt(l);
356
+ for (let s = 0; s < o.length; s++) {
357
+ const i = o.charAt(s);
347
358
  /[\u4e00-\u9fff\u3040-\u30ff\u3400-\u4dbf]/.test(i) || /[{}\\~\[\]|\^€]/.test(i) ? t += 2 : t += 1;
348
359
  }
349
360
  return `Character used: ${t} ≈ ${Math.ceil(t / 160)} SMS (Every 160 characters will be sent as 1 SMS)`;
350
361
  });
351
- return J(() => {
362
+ return q(() => {
352
363
  u("update:model-value", {
353
364
  ...a.modelValue,
354
365
  variables: a.variables
355
- }), a.modelValue || r("");
366
+ }), a.modelValue || l("");
356
367
  }), (o, t) => {
357
- var w, d, F, $, k;
358
- const m = g("FmButtonGroup"), l = g("FmButton"), i = g("FmTextarea"), S = g("FmMenuItem"), j = g("FmMenu");
359
- return p(), _("div", pe, [
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, [
360
371
  e.allowEmail ? (p(), E(m, {
361
372
  key: 0,
362
373
  items: [{ label: "SMS" }, { label: "EMAIL" }],
363
- "model-value": { label: (w = e.modelValue) == null ? void 0 : w.channel },
364
- "onUpdate:modelValue": t[0] || (t[0] = (c) => r("", c.label))
374
+ "model-value": { label: (M = e.modelValue) == null ? void 0 : M.channel },
375
+ "onUpdate:modelValue": t[0] || (t[0] = (c) => l("", c.label))
365
376
  }, null, 8, ["model-value"])) : B("", !0),
366
377
  ((d = e.modelValue) == null ? void 0 : d.channel) == "EMAIL" ? (p(), E(me, {
367
378
  key: 1,
368
379
  design: (F = e.modelValue) == null ? void 0 : F.design,
369
380
  title: (($ = e.modelValue) == null ? void 0 : $.title) || void 0,
370
381
  "onUpdate:design": t[1] || (t[1] = (c) => {
371
- r(c, "EMAIL");
382
+ l(c, "EMAIL");
372
383
  })
373
- }, null, 8, ["design", "title"])) : (p(), _(U, { key: 2 }, [
384
+ }, null, 8, ["design", "title"])) : (p(), w(A, { key: 2 }, [
374
385
  v("div", he, [
375
386
  t[2] || (t[2] = v("div", { class: "fm-typo-en-body-lg-400" }, "Add message", -1)),
376
- h(l, {
387
+ h(s, {
377
388
  icon: "visibility",
378
389
  label: "Preview message",
379
390
  variant: "plain",
380
- onClick: y
391
+ onClick: b
381
392
  })
382
393
  ]),
383
394
  v("div", fe, [
384
395
  h(i, {
385
396
  "model-value": (k = e.modelValue) == null ? void 0 : k.content,
386
- "onUpdate:modelValue": r,
397
+ "onUpdate:modelValue": l,
387
398
  "show-word-count": !0,
388
399
  placeholder: e.placeholder,
389
- "helper-state": s(b) || "none",
390
- "helper-text": s(f)
400
+ "helper-state": r(y) || "none",
401
+ "helper-text": r(f)
391
402
  }, {
392
403
  "helper-text": x(() => [
393
- P(z(s(f)), 1)
404
+ z(G(r(f)), 1)
394
405
  ]),
395
406
  _: 1
396
407
  }, 8, ["model-value", "placeholder", "helper-state", "helper-text"]),
397
408
  v("div", ge, [
398
- h(j, { placement: "left-end" }, {
409
+ h(_, { placement: "left-end" }, {
399
410
  "menu-button": x(() => [
400
- h(l, {
411
+ h(s, {
401
412
  icon: "add",
402
413
  variant: "tertiary",
403
414
  size: "md"
404
415
  })
405
416
  ]),
406
417
  default: x(() => [
407
- (p(!0), _(U, null, G(e.variables.filter(
418
+ (p(!0), w(A, null, J(e.variables.filter(
408
419
  (c) => e.triggerType == "SCHEDULE" ? !c.startsWith("transaction.") : !0
409
420
  ), (c) => {
410
421
  var C;
411
422
  return p(), E(S, {
412
423
  key: c,
413
- label: ((C = s(ee)[c]) == null ? void 0 : C.name) || c,
414
- onClick: (ye) => {
424
+ label: ((C = r(ee)[c]) == null ? void 0 : C.name) || c,
425
+ onClick: (be) => {
415
426
  var I;
416
- return r(((I = e.modelValue) == null ? void 0 : I.content) + `{{${c}}}`);
427
+ return l(((I = e.modelValue) == null ? void 0 : I.content) + `{{${c}}}`);
417
428
  }
418
429
  }, null, 8, ["label", "onClick"]);
419
430
  }), 128))
@@ -428,5 +439,6 @@ const de = /* @__PURE__ */ Z(le, [["render", re], ["__scopeId", "data-v-a9a2bb94
428
439
  }
429
440
  });
430
441
  export {
442
+ Me as M,
431
443
  we as _
432
444
  };