@feedmepos/mf-connect 0.1.0-beta.6 → 0.1.0-beta.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Analytic-u9mtlxSv.js +427 -0
- package/dist/{App-C2616cfr.js → App-BwTQE7Ft.js} +445 -420
- package/dist/AuditLogs-BVMRclSw.js +1886 -0
- package/dist/Bin-Cca-XOkz.js +166 -0
- package/dist/{Broadcast-CqSwLTAq.js → Broadcast-DRQgpwdP.js} +56 -54
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DrR9Pmtb.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CeUu_T1u.js} +6 -8
- package/dist/Card-CnbB_u31.js +896 -0
- package/dist/Collections-BjlfOSC3.js +459 -0
- package/dist/{Credit-CPcLgnsq.js → Credit-BoElrcx9.js} +36 -34
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +58 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-B3WVwem6.js +2181 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-D2buK6Dj.js → EffectSheet.vue_vue_type_style_index_0_lang-CGfpziKs.js} +18 -18
- package/dist/{Experience-BoBikt-x.js → Experience-SdGBf4vU.js} +32 -30
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
- package/dist/{Game-DR8PyYZa.js → Game-ChLHibpB.js} +39 -37
- package/dist/Index-D7Kq6uyf.js +259 -0
- package/dist/Marketing-BDajIqR_.js +20071 -0
- package/dist/Member-BPZryqWL.js +317 -0
- package/dist/MemberList-C52Dop8Z.js +1598 -0
- package/dist/MemberTransactions-DHU78kgS.js +45 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DhtIZCjT.js → MessageInput.vue_vue_type_script_setup_true_lang-js1F2E4N.js} +83 -71
- package/dist/{Mission-CMpvz9zN.js → Mission-BQR3qjAu.js} +101 -87
- package/dist/Overview-BbLYWXjG.js +1078 -0
- package/dist/{Point-DkZn6p9s.js → Point-DbTcWJbQ.js} +55 -53
- package/dist/{Promotion-B7YzwPc_.js → Promotion-CIrpWBQD.js} +65 -57
- package/dist/Queue-B0Mfq2Vn.js +244 -0
- package/dist/Record-Z6ZrJeLc.js +340 -0
- package/dist/Reward-D6k0QFQA.js +442 -0
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-GJ6j_jOh.js +150 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-gQxmX9ur.js +1637 -0
- package/dist/Segment-D6MF-EO8.js +568 -0
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BWG-pz6F.js +181 -0
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-HgorlHNz.js +147 -0
- package/dist/Setting--OFDS95z.js +1931 -0
- package/dist/Store-BqlRTC-c.js +1751 -0
- package/dist/{StoreRewards-6BzVwZqr.js → StoreRewards-BTu0IdDN.js} +33 -32
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BX053DJA.js +943 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B6cAveco.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BAkuqLwy.js} +1 -1
- package/dist/{Tier-CW-46oJS.js → Tier-CE9LYAEX.js} +327 -318
- package/dist/{Title-CE9rWVdi.js → Title-DOOASUMI.js} +199 -184
- package/dist/{Transaction-B21RrC4M.js → Transaction-DPxUOBP-.js} +2 -2
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-CKwf0F_i.js +130 -0
- package/dist/Voucher-D69DD02z.js +354 -0
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-CFL0Nsez.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BiVZwBuG.js → ZodTextField.vue_vue_type_script_setup_true_lang-Byh6_EJM.js} +1 -1
- package/dist/app-C2u1t47T.js +7059 -0
- package/dist/app-DgfmbHZe.js +33357 -0
- package/dist/app.js +1 -1
- package/dist/{business-aHhRUXc0.js → business-BqCJB_vA.js} +1 -1
- package/dist/{campaign-DH9NUNf_.js → campaign-CWMPCmmU.js} +2 -2
- package/dist/campaign-D0dTbl5b.js +1810 -0
- package/dist/campaign.enum-DhE8N4pA.js +20 -0
- package/dist/campaign.fn-BpO-RQih.js +758 -0
- package/dist/collectible.enum-rWEc6Tsw.js +19 -0
- package/dist/{collection.fn-CYlsA-kW.js → collection.fn-biX2iFDQ.js} +2 -2
- package/dist/dto-3m7xZwfI.js +214 -0
- package/dist/{effect-LSc9YanX.js → effect-ZMGRxKCZ.js} +9 -9
- package/dist/email-addresses-lgY03bkq.js +705 -0
- package/dist/{export-Cf0-C5Ly.js → export-BOzeYUy8.js} +5 -5
- package/dist/{helper-CiZpeMCM.js → helper-CO29wun4.js} +1 -1
- package/dist/index-B3V7krW_.js +29000 -0
- package/dist/index-BVbiAxW8.js +115 -0
- package/dist/{index-D_83JP2i.js → index-Bvch9tuP.js} +48 -4
- package/dist/index-CYOwwy3h.js +44 -0
- package/dist/{index-D6cEOHP4.js → index-CbYXYVYp.js} +1501 -1480
- package/dist/{index-DtsDOuDx.js → index-ChrOXJDq.js} +24 -21
- package/dist/index-CsaQJMAR.js +66 -0
- package/dist/index-DNGenFnf.js +32 -0
- package/dist/{index-BVb5-Ht8.js → index-Dd22X409.js} +259 -173
- package/dist/{index-kPhrD63q.js → index-LYAWIqjk.js} +1 -1
- package/dist/index-Xh9cW6Y9.js +54 -0
- package/dist/{index-gxwjKu3-.js → index-XhqaicYu.js} +2212 -871
- package/dist/{index-DW3PRjPL.js → index-YsC4VklJ.js} +1 -1
- package/dist/index-vh86FiIQ.js +10 -0
- package/dist/{index.esm2017-B7oVYIbY.js → index.esm2017-CJ1flA6S.js} +121 -121
- package/dist/loading-CUs_CN1k.js +71 -0
- package/dist/{membership-Dw1ylJ9Y.js → membership-D-GVacos.js} +54 -46
- package/dist/money-CMtSALkX.js +15 -0
- package/dist/number-CDwwgAYM.js +12 -0
- package/dist/objectid-Bf9yKD81.js +145 -0
- package/dist/{loading-7yq1tinq.js → plugins-9sQTEyth.js} +3871 -3943
- package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
- package/dist/reward-DblXGhWc.js +36 -0
- package/dist/{rule-C0Q_SHow.js → rule-Cy8cTzuw.js} +180 -177
- package/dist/{rule-builder-iu17XIof.js → rule-builder-Cn5vZgFN.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-CyOanTMu.js → template-Cal94dUy.js} +5 -5
- package/dist/trigger-C1nwLSP8.js +144 -0
- package/dist/user-ir4Rn5bP.js +54 -0
- package/dist/{vue-i18n-B0fLJH7a.js → vue-i18n-eOHBBaH5.js} +243 -243
- package/dist/{xlsx-BYO_bB9J.js → xlsx-DulnT75_.js} +1 -1
- package/package.json +11 -7
- package/dist/Analytic-muDf0oMG.js +0 -622
- package/dist/Card-bhLoK0ZV.js +0 -825
- package/dist/Collections-DjtsAiol.js +0 -453
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-U_QZneS6.js +0 -2813
- package/dist/Marketing-Dny2nMUl.js +0 -316
- package/dist/Member-CP_smyk8.js +0 -69
- package/dist/MemberList-CR3eYI9p.js +0 -1733
- package/dist/MemberTransactions-RTx_lKFb.js +0 -38
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Cs67_GLE.js +0 -1753
- package/dist/Segment-Bb4gHt5V.js +0 -437
- package/dist/Setting-Xj0AVzh3.js +0 -1901
- package/dist/Store-BWRHQ6Ie.js +0 -1511
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BsFnT8BS.js +0 -890
- package/dist/Voucher-KK9fBI0u.js +0 -490
- package/dist/app-CjhXHUQv.js +0 -53428
- package/dist/app-Dvf_JNMf.js +0 -5764
- package/dist/dto-DArfyZAI.js +0 -2770
- package/dist/index-Bi_LGEtY.js +0 -99
- package/dist/index-CiQDG7Cm.js +0 -762
- package/dist/index-CuvNtC_M.js +0 -61
- package/dist/index-DQfjSSMF.js +0 -206
- package/dist/index-DcxssxPi.js +0 -29193
- package/dist/index-DqJVH2kv.js +0 -298
- package/dist/money-CPd0XTNv.js +0 -15
- package/dist/number-BgXY4un8.js +0 -12
- 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-BX053DJA.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
|
|
2
|
-
import { p as K } from "./
|
|
3
|
-
import {
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { c as
|
|
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-9sQTEyth.js";
|
|
3
|
+
import { z as W } from "./index-XhqaicYu.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
|
-
},
|
|
39
|
-
|
|
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
|
-
|
|
58
|
+
R.push(e);
|
|
48
59
|
}, L = () => {
|
|
49
|
-
if (
|
|
60
|
+
if (T) {
|
|
50
61
|
let e;
|
|
51
|
-
for (; e =
|
|
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
|
-
|
|
71
|
+
T = !0, L();
|
|
61
72
|
}, document.head.appendChild(a);
|
|
62
73
|
}
|
|
63
74
|
};
|
|
64
75
|
let oe = 0;
|
|
65
|
-
const
|
|
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:
|
|
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
|
-
}),
|
|
139
|
-
function
|
|
140
|
-
return p(),
|
|
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:
|
|
144
|
-
}, null, 12,
|
|
154
|
+
style: N({ minHeight: e.minHeight })
|
|
155
|
+
}, null, 12, re);
|
|
145
156
|
}
|
|
146
|
-
const de = /* @__PURE__ */
|
|
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),
|
|
171
|
+
const u = V(!1), b = V(null), l = V(!1), y = e, f = V({
|
|
161
172
|
html: "",
|
|
162
|
-
design:
|
|
163
|
-
title:
|
|
173
|
+
design: y.design,
|
|
174
|
+
title: y.title || ""
|
|
164
175
|
});
|
|
165
|
-
function o(
|
|
166
|
-
u.value =
|
|
176
|
+
function o(s) {
|
|
177
|
+
u.value = s;
|
|
167
178
|
}
|
|
168
179
|
const t = a;
|
|
169
180
|
function m() {
|
|
170
|
-
|
|
181
|
+
b.value && (b.value.exportHtml((s) => {
|
|
171
182
|
f.value = {
|
|
172
|
-
html:
|
|
173
|
-
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
|
-
}), (
|
|
181
|
-
const S = g("FmButton"),
|
|
182
|
-
return p(), E(
|
|
183
|
-
modelValue:
|
|
184
|
-
"onUpdate:modelValue": i[4] || (i[4] = (d) =>
|
|
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
|
-
|
|
208
|
+
r(l) ? B("", !0) : (p(), E(Z, {
|
|
198
209
|
key: 0,
|
|
199
210
|
class: "flex-1",
|
|
200
|
-
json:
|
|
211
|
+
json: r(Q),
|
|
201
212
|
width: 100,
|
|
202
213
|
height: 100
|
|
203
214
|
}, null, 8, ["json"])),
|
|
204
|
-
D(h(
|
|
215
|
+
D(h(_, {
|
|
205
216
|
label: "Email title",
|
|
206
|
-
modelValue:
|
|
207
|
-
"onUpdate:modelValue": i[0] || (i[0] = (d) =>
|
|
217
|
+
modelValue: r(f).title,
|
|
218
|
+
"onUpdate:modelValue": i[0] || (i[0] = (d) => r(f).title = d)
|
|
208
219
|
}, null, 8, ["modelValue"]), [
|
|
209
|
-
[
|
|
220
|
+
[U, r(l)]
|
|
210
221
|
]),
|
|
211
222
|
D(h(de, {
|
|
212
223
|
class: "flex-1",
|
|
213
224
|
ref_key: "editorRef",
|
|
214
|
-
ref:
|
|
215
|
-
onLoad: i[1] || (i[1] = (d) =>
|
|
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
|
-
|
|
229
|
+
l.value = !0, y.design && ((d = r(b)) == null || d.loadDesign(r(X)(y.design)));
|
|
219
230
|
})
|
|
220
231
|
}, null, 512), [
|
|
221
|
-
[
|
|
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__ */
|
|
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
|
|
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
|
|
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
|
|
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, (
|
|
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
|
|
346
|
-
const i = o.charAt(
|
|
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
|
|
362
|
+
return q(() => {
|
|
352
363
|
u("update:model-value", {
|
|
353
364
|
...a.modelValue,
|
|
354
365
|
variables: a.variables
|
|
355
|
-
}), a.modelValue ||
|
|
366
|
+
}), a.modelValue || l("");
|
|
356
367
|
}), (o, t) => {
|
|
357
|
-
var
|
|
358
|
-
const m = g("FmButtonGroup"),
|
|
359
|
-
return p(),
|
|
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: (
|
|
364
|
-
"onUpdate:modelValue": t[0] || (t[0] = (c) =>
|
|
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
|
-
|
|
382
|
+
l(c, "EMAIL");
|
|
372
383
|
})
|
|
373
|
-
}, null, 8, ["design", "title"])) : (p(),
|
|
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(
|
|
387
|
+
h(s, {
|
|
377
388
|
icon: "visibility",
|
|
378
389
|
label: "Preview message",
|
|
379
390
|
variant: "plain",
|
|
380
|
-
onClick:
|
|
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":
|
|
397
|
+
"onUpdate:modelValue": l,
|
|
387
398
|
"show-word-count": !0,
|
|
388
399
|
placeholder: e.placeholder,
|
|
389
|
-
"helper-state":
|
|
390
|
-
"helper-text":
|
|
400
|
+
"helper-state": r(y) || "none",
|
|
401
|
+
"helper-text": r(f)
|
|
391
402
|
}, {
|
|
392
403
|
"helper-text": x(() => [
|
|
393
|
-
|
|
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(
|
|
409
|
+
h(_, { placement: "left-end" }, {
|
|
399
410
|
"menu-button": x(() => [
|
|
400
|
-
h(
|
|
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),
|
|
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 =
|
|
414
|
-
onClick: (
|
|
424
|
+
label: ((C = r(ee)[c]) == null ? void 0 : C.name) || c,
|
|
425
|
+
onClick: (be) => {
|
|
415
426
|
var I;
|
|
416
|
-
return
|
|
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
|
};
|