@feedmepos/mf-connect 0.1.34-prod → 0.1.36-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.
- package/dist/{Analytic-DrqtMm_3.js → Analytic-C1LCniPD.js} +11 -11
- package/dist/{App-DDODApKk.js → App-JwvQzmaf.js} +6 -6
- package/dist/{Bin-Dnxjyw7S.js → Bin-Boq091DE.js} +8 -8
- package/dist/{Broadcast-B_-4eCTz.js → Broadcast-D7BIjPzg.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-hdBANCwp.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-ZFe69JWe.js} +6 -6
- package/dist/{Card-CJCHgCQ5.js → Card-C7v8otBk.js} +16 -16
- package/dist/{Collections-DfFIqKEH.js → Collections-C_pyDZJp.js} +7 -7
- package/dist/{Credit-C_oIN0On.js → Credit-B6I7vIo2.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-fhkxwj0Z.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DHQBxqsk.js} +29 -29
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BWBAp7gL.js → EffectSheet.vue_vue_type_style_index_0_lang-cqK2WTuO.js} +6 -6
- package/dist/{Experience-VFljrhnh.js → Experience-RU6iI7eH.js} +9 -9
- package/dist/{Game-DQc95My6.js → Game-B9Ojuamc.js} +10 -10
- package/dist/{Index-CVKFs0Uj.js → Index-Dv-YN9YC.js} +10 -10
- package/dist/{Marketing-C-GE-2ln.js → Marketing-CFgCJV0g.js} +6 -6
- package/dist/{Member-DcoSmfmv.js → Member-BX81V3ON.js} +10 -10
- package/dist/{MemberList-Boy_sG9l.js → MemberList-BjX8ND1p.js} +25 -25
- package/dist/{MemberTransactions-BhDEhN0w.js → MemberTransactions-C0FinB5E.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DOiX6Yt3.js → MessageInput.vue_vue_type_script_setup_true_lang-DZS17c8D.js} +128 -122
- package/dist/{Mission-D3sdzhB4.js → Mission-BV76Qq3Y.js} +93 -88
- package/dist/{Overview-CVdReBLD.js → Overview-CMK4VRZl.js} +18 -18
- package/dist/{Point-DcXXzHZs.js → Point-CQWKh1jv.js} +9 -9
- package/dist/{Promotion-CzcbwuEh.js → Promotion-CnFaEvhL.js} +10 -10
- package/dist/{Queue-MjMygLp1.js → Queue-CFNfJSux.js} +10 -10
- package/dist/{Record-At0Dj4gY.js → Record-7_ssnQnB.js} +8 -8
- package/dist/{Reward-DC0x4FEN.js → Reward-DOe1Tn2f.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-D1GoJQhG.js → RewardGroup.vue_vue_type_script_setup_true_lang-BsgR-dCL.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-AT5tq19G.js → RuleGroup.vue_vue_type_script_setup_true_lang-BPw5L06B.js} +13 -13
- package/dist/{Segment-C2po2wdg.js → Segment-DUP0JWK5.js} +22 -22
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CO58zH4S.js → SelectItems.vue_vue_type_script_setup_true_lang-DPsLdEU8.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BfxWBP9G.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BAJLRxOM.js} +24 -24
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BlFxpXt4.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DUUzFkIc.js} +3 -3
- package/dist/{Setting-DoLFVHlm.js → Setting-Bojfmtwf.js} +11 -11
- package/dist/{Store-iR0ry7X0.js → Store-dfiUtq-f.js} +19 -19
- package/dist/{StoreRewards-DxCPZd_r.js → StoreRewards-DJj-oM2n.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DGrprMs_.js → StoreTransactions.vue_vue_type_script_setup_true_lang-oRUpDbZ_.js} +18 -18
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BPh5Z6N1.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-D8ey57Te.js} +1 -1
- package/dist/{Tier-BbDMN5iw.js → Tier-BIDShXJ6.js} +20 -20
- package/dist/{Title-rFztfYBl.js → Title-CDdkVwEu.js} +19 -19
- package/dist/{Transaction-DqwIBdqB.js → Transaction-lAUnd1c_.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-etvjAEmB.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BwaD8Nwy.js} +6 -6
- package/dist/{Voucher-QZqmL2ku.js → Voucher-BARDbixZ.js} +12 -12
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DosYUfSg.js → VoucherEditor.vue_vue_type_script_setup_true_lang-bDQs5ACo.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CiKS3594.js → ZodTextField.vue_vue_type_script_setup_true_lang-CIk3GKLH.js} +1 -1
- package/dist/{app-Ctt8QudR.js → app-Cq8zUKBx.js} +1 -1
- package/dist/{app-DLw8SHFr.js → app-KtD-iU16.js} +30 -30
- package/dist/app.js +1 -1
- package/dist/{business-B9JsEDll.js → business-CFMUx5qO.js} +1 -1
- package/dist/{campaign-DWBnBQOZ.js → campaign-DwArKZ1r.js} +2 -2
- package/dist/{campaign-BSrd2yzm.js → campaign-NqTts9bj.js} +9 -9
- package/dist/{campaign.enum-BHXpCUgq.js → campaign.enum-DQayyk1f.js} +1 -1
- package/dist/{campaign.fn-C4HWXHAh.js → campaign.fn-6uf_Z5m1.js} +135 -135
- package/dist/{collectible.enum-CvE2W3m5.js → collectible.enum-CgjtJh8V.js} +1 -1
- package/dist/{collection.fn-Cno-e9JK.js → collection.fn-DuqcY399.js} +2 -2
- package/dist/{dto-DI4XRSoe.js → dto-CQRn2lAW.js} +4 -4
- package/dist/{effect-DnzUKj4J.js → effect-B-sUUnjd.js} +1 -1
- package/dist/{email-addresses-Bap6VvPm.js → email-addresses-D-kPsNBn.js} +1 -1
- package/dist/{export-CmvfcNtI.js → export-B28oHptg.js} +3 -3
- package/dist/{helper-ZuuMoaSo.js → helper-DuBp_oW-.js} +1 -1
- package/dist/{index-D__yMgTW.js → index-BCslSeGm.js} +1 -1
- package/dist/{index-PX4G4FW9.js → index-BZYbNzed.js} +3 -3
- package/dist/{index-CsjZT9kD.js → index-BgdUU6Za.js} +1 -1
- package/dist/{index-BmXc9-5B.js → index-C2wsUy05.js} +3 -3
- package/dist/{index-iDyqvmDo.js → index-CCNfzZ5t.js} +1 -1
- package/dist/{index-0z1sEcNu.js → index-CECYN1oL.js} +6 -6
- package/dist/{index-Cbb81yjL.js → index-CSWnS__O.js} +1 -1
- package/dist/{index-iKn7X4oS.js → index-CUdis4Jl.js} +3 -3
- package/dist/{index-BjeOhXhZ.js → index-CczG_ilB.js} +9 -3
- package/dist/{index-0XngMu-Y.js → index-CmOaBe_x.js} +4 -4
- package/dist/{index-DE7rGgsK.js → index-CuJ5OZqA.js} +3 -3
- package/dist/{index-CTxXsCTb.js → index-DF4V4vur.js} +1 -1
- package/dist/{index-B1-mRj9-.js → index-mtAI1Gyn.js} +1 -1
- package/dist/{index.esm2017-D13LPLo8.js → index.esm2017-CVwbgLS0.js} +1 -1
- package/dist/{loading-cvwsVDDF.js → loading-C-BSh5_w.js} +1 -1
- package/dist/{membership-Ctmy5tHm.js → membership-BPpTsVq5.js} +3 -3
- package/dist/{money-DqsPUHKT.js → money-BSxQcP_f.js} +1 -1
- package/dist/{number-DtGonzF6.js → number-p7RPdTQ7.js} +1 -1
- package/dist/{objectid-llTGs8je.js → objectid-DkD1hn1F.js} +3 -3
- package/dist/{plugins-Be0jgH3O.js → plugins-5mIceCPA.js} +2 -2
- package/dist/{reward-CJQ9SaLe.js → reward-CaZY5kqg.js} +1 -1
- package/dist/{rule-DHiWaxVy.js → rule-DB6XK-iD.js} +3 -3
- package/dist/{rule-builder-RQcKZGI9.js → rule-builder-yn_upY7a.js} +1 -1
- package/dist/{template-Ts3TnX2X.js → template-DbmV0nWD.js} +4 -4
- package/dist/{trigger-bvzPuRvJ.js → trigger-DPl3HG2o.js} +4 -4
- package/dist/{user-By9M-sOs.js → user-DzwHXhvX.js} +1 -1
- package/dist/{vue-i18n-AhTvM7em.js → vue-i18n-BnN9jlFK.js} +282 -282
- package/dist/{xlsx-DIxZ85BX.js → xlsx-CrsYUgcS.js} +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as I, shallowRef as G, openBlock as
|
|
2
|
-
import { p as X } from "./plugins-
|
|
3
|
-
import { B as Y } from "./index-
|
|
4
|
-
import "./index-
|
|
1
|
+
import { defineComponent as I, shallowRef as G, openBlock as h, createElementBlock as F, normalizeStyle as z, ref as w, resolveComponent as b, createBlock as C, unref as i, isRef as P, withCtx as $, createVNode as g, createElementVNode as S, createCommentVNode as H, withDirectives as A, vShow as B, computed as q, onMounted as J, Fragment as T, renderList as Z, normalizeClass as K, toDisplayString as W } from "vue";
|
|
2
|
+
import { p as X } from "./plugins-5mIceCPA.js";
|
|
3
|
+
import { B as Y } from "./index-CmOaBe_x.js";
|
|
4
|
+
import "./index-CuJ5OZqA.js";
|
|
5
5
|
import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
import { _ as ee, S as te } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js";
|
|
7
7
|
import { c as ne } from "./object-qECH92oz.js";
|
|
8
8
|
import { useCoreStore as oe } from "@feedmepos/mf-common";
|
|
9
|
-
import { u as
|
|
10
|
-
const
|
|
9
|
+
import { u as se } from "./membership-BPpTsVq5.js";
|
|
10
|
+
const ae = {
|
|
11
11
|
"user.name": {
|
|
12
12
|
name: "User name"
|
|
13
13
|
},
|
|
@@ -47,16 +47,16 @@ const se = {
|
|
|
47
47
|
"membership.url": {
|
|
48
48
|
name: "Membership URL"
|
|
49
49
|
}
|
|
50
|
-
},
|
|
50
|
+
}, Ie = {
|
|
51
51
|
MY: ["user.phoneNumber", "membership.url"]
|
|
52
52
|
}, ie = "https://editor.unlayer.com/embed.js?2", N = [];
|
|
53
53
|
let O = !1;
|
|
54
54
|
const re = (e) => {
|
|
55
55
|
const n = document.querySelectorAll("script");
|
|
56
|
-
let
|
|
57
|
-
return n.forEach((
|
|
58
|
-
|
|
59
|
-
}),
|
|
56
|
+
let d = !1;
|
|
57
|
+
return n.forEach((u) => {
|
|
58
|
+
u.src.includes(e) && (d = !0);
|
|
59
|
+
}), d;
|
|
60
60
|
}, le = (e) => {
|
|
61
61
|
N.push(e);
|
|
62
62
|
}, R = () => {
|
|
@@ -69,14 +69,14 @@ const re = (e) => {
|
|
|
69
69
|
if (le(e), re(n))
|
|
70
70
|
R();
|
|
71
71
|
else {
|
|
72
|
-
const
|
|
73
|
-
|
|
72
|
+
const d = document.createElement("script");
|
|
73
|
+
d.setAttribute("src", n), d.onload = () => {
|
|
74
74
|
O = !0, R();
|
|
75
|
-
}, document.head.appendChild(
|
|
75
|
+
}, document.head.appendChild(d);
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
|
-
let
|
|
79
|
-
const
|
|
78
|
+
let ce = 0;
|
|
79
|
+
const ue = I({
|
|
80
80
|
name: "EmailEditor",
|
|
81
81
|
props: {
|
|
82
82
|
editorId: String,
|
|
@@ -105,7 +105,7 @@ const ce = I({
|
|
|
105
105
|
},
|
|
106
106
|
computed: {
|
|
107
107
|
id() {
|
|
108
|
-
return this.editorId || `editor-${++
|
|
108
|
+
return this.editorId || `editor-${++ce}`;
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
setup() {
|
|
@@ -150,14 +150,14 @@ const ce = I({
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
}), me = ["id"];
|
|
153
|
-
function pe(e, n,
|
|
154
|
-
return
|
|
153
|
+
function pe(e, n, d, u, a, m) {
|
|
154
|
+
return h(), F("div", {
|
|
155
155
|
id: e.id,
|
|
156
156
|
class: "unlayer-editor",
|
|
157
|
-
style:
|
|
157
|
+
style: z({ minHeight: e.minHeight })
|
|
158
158
|
}, null, 12, me);
|
|
159
159
|
}
|
|
160
|
-
const he = /* @__PURE__ */ Q(
|
|
160
|
+
const he = /* @__PURE__ */ Q(ue, [["render", pe], ["__scopeId", "data-v-a9a2bb94"]]), ge = { class: "h-full flex flex-col" }, fe = { class: "flex items-center gap-8" }, be = /* @__PURE__ */ I({
|
|
161
161
|
__name: "EmailEditorSheet",
|
|
162
162
|
props: {
|
|
163
163
|
design: {
|
|
@@ -170,83 +170,83 @@ const he = /* @__PURE__ */ Q(ce, [["render", pe], ["__scopeId", "data-v-a9a2bb94
|
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
emits: ["update:design"],
|
|
173
|
-
setup(e, { expose: n, emit:
|
|
174
|
-
const
|
|
173
|
+
setup(e, { expose: n, emit: d }) {
|
|
174
|
+
const u = w(!1), a = w(null), m = w(!1), x = e, c = w({
|
|
175
175
|
html: "",
|
|
176
|
-
design:
|
|
177
|
-
title:
|
|
176
|
+
design: x.design,
|
|
177
|
+
title: x.title || ""
|
|
178
178
|
});
|
|
179
|
-
function
|
|
180
|
-
|
|
179
|
+
function E(o) {
|
|
180
|
+
u.value = o;
|
|
181
181
|
}
|
|
182
|
-
const
|
|
183
|
-
function
|
|
182
|
+
const L = d;
|
|
183
|
+
function k() {
|
|
184
184
|
a.value && (a.value.exportHtml((o) => {
|
|
185
|
-
|
|
185
|
+
c.value = {
|
|
186
186
|
html: o.html,
|
|
187
187
|
design: o.design,
|
|
188
|
-
title:
|
|
189
|
-
},
|
|
190
|
-
}),
|
|
188
|
+
title: c.value.title
|
|
189
|
+
}, L("update:design", c.value);
|
|
190
|
+
}), E(!1));
|
|
191
191
|
}
|
|
192
192
|
return n({
|
|
193
|
-
showSheet:
|
|
193
|
+
showSheet: E
|
|
194
194
|
}), (o, t) => {
|
|
195
|
-
const
|
|
196
|
-
return
|
|
197
|
-
modelValue: i(
|
|
198
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
195
|
+
const r = b("FmButton"), f = b("FmTextField"), y = b("FmSideSheet");
|
|
196
|
+
return h(), C(y, {
|
|
197
|
+
modelValue: i(u),
|
|
198
|
+
"onUpdate:modelValue": t[4] || (t[4] = (l) => P(u) ? u.value = l : null),
|
|
199
199
|
header: "Email editor",
|
|
200
200
|
"max-width": 1280
|
|
201
201
|
}, {
|
|
202
|
-
"side-sheet-button":
|
|
203
|
-
|
|
202
|
+
"side-sheet-button": $(() => [
|
|
203
|
+
g(r, {
|
|
204
204
|
label: "Edit email",
|
|
205
205
|
variant: "tertiary",
|
|
206
206
|
icon: "edit"
|
|
207
207
|
})
|
|
208
208
|
]),
|
|
209
|
-
default:
|
|
210
|
-
|
|
211
|
-
i(m) ? H("", !0) : (
|
|
209
|
+
default: $(() => [
|
|
210
|
+
S("div", ge, [
|
|
211
|
+
i(m) ? H("", !0) : (h(), C(ee, {
|
|
212
212
|
key: 0,
|
|
213
213
|
class: "flex-1",
|
|
214
214
|
json: i(te),
|
|
215
215
|
width: 100,
|
|
216
216
|
height: 100
|
|
217
217
|
}, null, 8, ["json"])),
|
|
218
|
-
|
|
218
|
+
A(g(f, {
|
|
219
219
|
label: "Email title",
|
|
220
|
-
modelValue: i(
|
|
221
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
220
|
+
modelValue: i(c).title,
|
|
221
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => i(c).title = l)
|
|
222
222
|
}, null, 8, ["modelValue"]), [
|
|
223
223
|
[B, i(m)]
|
|
224
224
|
]),
|
|
225
|
-
|
|
225
|
+
A(g(he, {
|
|
226
226
|
class: "flex-1",
|
|
227
227
|
ref_key: "editorRef",
|
|
228
228
|
ref: a,
|
|
229
|
-
onLoad: t[1] || (t[1] = (
|
|
229
|
+
onLoad: t[1] || (t[1] = (l) => m.value = !1),
|
|
230
230
|
onReady: t[2] || (t[2] = () => {
|
|
231
|
-
var
|
|
232
|
-
m.value = !0,
|
|
231
|
+
var l;
|
|
232
|
+
m.value = !0, x.design && ((l = i(a)) == null || l.loadDesign(i(ne)(x.design)));
|
|
233
233
|
})
|
|
234
234
|
}, null, 512), [
|
|
235
235
|
[B, i(m)]
|
|
236
236
|
])
|
|
237
237
|
])
|
|
238
238
|
]),
|
|
239
|
-
"side-sheet-footer":
|
|
240
|
-
|
|
241
|
-
|
|
239
|
+
"side-sheet-footer": $(() => [
|
|
240
|
+
S("div", fe, [
|
|
241
|
+
g(r, {
|
|
242
242
|
variant: "primary",
|
|
243
243
|
label: "Confirm",
|
|
244
|
-
onClick:
|
|
244
|
+
onClick: k
|
|
245
245
|
}),
|
|
246
|
-
|
|
246
|
+
g(r, {
|
|
247
247
|
variant: "tertiary",
|
|
248
248
|
label: "Cancel",
|
|
249
|
-
onClick: t[3] || (t[3] = (
|
|
249
|
+
onClick: t[3] || (t[3] = (l) => E(!1))
|
|
250
250
|
})
|
|
251
251
|
])
|
|
252
252
|
]),
|
|
@@ -254,7 +254,7 @@ const he = /* @__PURE__ */ Q(ce, [["render", pe], ["__scopeId", "data-v-a9a2bb94
|
|
|
254
254
|
}, 8, ["modelValue"]);
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
}), ye = { class: "space-y-4" }, ve = { class: "flex items-center gap-8 justify-between" },
|
|
257
|
+
}), ye = { class: "space-y-4" }, ve = { class: "flex items-center gap-8 justify-between" }, Se = /* @__PURE__ */ S("div", { class: "fm-typo-en-body-lg-400" }, "Add message", -1), xe = { class: "relative" }, Ee = { class: "absolute bottom-[24px] right-[4px]" }, Ue = /* @__PURE__ */ I({
|
|
258
258
|
__name: "MessageInput",
|
|
259
259
|
props: {
|
|
260
260
|
allowEmail: {
|
|
@@ -295,9 +295,9 @@ const he = /* @__PURE__ */ Q(ce, [["render", pe], ["__scopeId", "data-v-a9a2bb94
|
|
|
295
295
|
},
|
|
296
296
|
emits: ["update:model-value"],
|
|
297
297
|
setup(e, { emit: n }) {
|
|
298
|
-
const
|
|
299
|
-
function
|
|
300
|
-
var
|
|
298
|
+
const d = oe(), u = se(), a = e, m = n;
|
|
299
|
+
function x() {
|
|
300
|
+
var r;
|
|
301
301
|
const o = {
|
|
302
302
|
user: {
|
|
303
303
|
name: "John Doe",
|
|
@@ -314,12 +314,12 @@ const he = /* @__PURE__ */ Q(ce, [["render", pe], ["__scopeId", "data-v-a9a2bb94
|
|
|
314
314
|
name: "RM10 Voucher"
|
|
315
315
|
}
|
|
316
316
|
}, t = Y(
|
|
317
|
-
((
|
|
317
|
+
((r = a.modelValue) == null ? void 0 : r.content) ?? "",
|
|
318
318
|
o
|
|
319
319
|
);
|
|
320
320
|
X.confirm(t, "Preview message", "OK");
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function c(o, t = "SMS") {
|
|
323
323
|
m("update:model-value", {
|
|
324
324
|
channel: t,
|
|
325
325
|
content: t == "SMS" ? o : o.html,
|
|
@@ -329,12 +329,12 @@ const he = /* @__PURE__ */ Q(ce, [["render", pe], ["__scopeId", "data-v-a9a2bb94
|
|
|
329
329
|
variables: a.variables
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
|
-
const
|
|
333
|
-
var
|
|
334
|
-
const o = ((
|
|
335
|
-
let
|
|
336
|
-
const f = ((
|
|
337
|
-
switch (
|
|
332
|
+
const E = w(a.helperState || "none"), L = q(() => {
|
|
333
|
+
var M, _;
|
|
334
|
+
const o = ((M = u.membership) == null ? void 0 : M.brand) || d.currentBusiness.value.name || "", t = 160;
|
|
335
|
+
let r = t;
|
|
336
|
+
const f = ((_ = a.modelValue) == null ? void 0 : _.content.replace(/{{([^}]+)}}/g, (v, s) => {
|
|
337
|
+
switch (s) {
|
|
338
338
|
case "user.name":
|
|
339
339
|
return "1234567890";
|
|
340
340
|
case "user.tier":
|
|
@@ -357,79 +357,82 @@ const he = /* @__PURE__ */ Q(ce, [["render", pe], ["__scopeId", "data-v-a9a2bb94
|
|
|
357
357
|
return "...";
|
|
358
358
|
}
|
|
359
359
|
})) || "";
|
|
360
|
-
let y = o.length +
|
|
361
|
-
/[^@£$¥èéùìòÇ\nØø\rÅåΔ_ΦΓΛΩΠΨΣΘΞ !"#%&'()*+,\-./0123456789:;<=>?A-ZÄÖÑܧ¿a-zäöñüà^{}\\[~\]|€]/.test(
|
|
360
|
+
let y = o.length + 5;
|
|
361
|
+
const l = "^{}\\[~]|€", j = /[^@£$¥èéùìòÇ\nØø\rÅåΔ_ΦΓΛΩΠΨΣΘΞ !"#%&'()*+,\-./0123456789:;<=>?A-ZÄÖÑܧ¿a-zäöñüà^{}\\[~\]|€]/.test(
|
|
362
362
|
f
|
|
363
|
-
)
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
363
|
+
);
|
|
364
|
+
let p = 0;
|
|
365
|
+
if (j)
|
|
366
|
+
p = f.length + y, r = p > 70 ? 67 : 70;
|
|
367
|
+
else {
|
|
368
|
+
let v = 0;
|
|
369
|
+
for (const s of f)
|
|
370
|
+
l.includes(s) ? v += 2 : v += 1;
|
|
371
|
+
p = v + y, r = p > 160 ? 153 : 160;
|
|
372
|
+
}
|
|
373
|
+
const V = Math.min(r, t);
|
|
374
|
+
return `Reserved: ${y} | Character used: ${p} | Encoding: ${j ? "UCS2" : "GSM 7-bit"}. Estimated ${Math.ceil(p / V)} SMS (Every ${V} characters will be sent as 1 SMS)`;
|
|
375
|
+
}), k = [{ label: "SMS" }, { label: "EMAIL" }];
|
|
367
376
|
return J(() => {
|
|
368
377
|
m("update:model-value", {
|
|
369
378
|
...a.modelValue,
|
|
370
379
|
variables: a.variables
|
|
371
|
-
}), a.modelValue ||
|
|
380
|
+
}), a.modelValue || c("");
|
|
372
381
|
}), (o, t) => {
|
|
373
|
-
var
|
|
374
|
-
const
|
|
375
|
-
return
|
|
376
|
-
e.allowEmail ? (
|
|
382
|
+
var p, V, M, _, v;
|
|
383
|
+
const r = b("FmButtonGroup"), f = b("FmButton"), y = b("FmTextarea"), l = b("FmMenuItem"), j = b("FmMenu");
|
|
384
|
+
return h(), F("div", ye, [
|
|
385
|
+
e.allowEmail ? (h(), C(r, {
|
|
377
386
|
key: 0,
|
|
378
|
-
items:
|
|
379
|
-
"model-value": { label: (
|
|
380
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
387
|
+
items: k,
|
|
388
|
+
"model-value": { label: (p = e.modelValue) == null ? void 0 : p.channel },
|
|
389
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => c("", s.label))
|
|
381
390
|
}, null, 8, ["model-value"])) : H("", !0),
|
|
382
|
-
((
|
|
391
|
+
((V = e.modelValue) == null ? void 0 : V.channel) == "EMAIL" ? (h(), C(be, {
|
|
383
392
|
key: 1,
|
|
384
|
-
design: (
|
|
385
|
-
title: ((
|
|
386
|
-
"onUpdate:design": t[1] || (t[1] = (
|
|
387
|
-
|
|
393
|
+
design: (M = e.modelValue) == null ? void 0 : M.design,
|
|
394
|
+
title: ((_ = e.modelValue) == null ? void 0 : _.title) || void 0,
|
|
395
|
+
"onUpdate:design": t[1] || (t[1] = (s) => {
|
|
396
|
+
c(s, "EMAIL");
|
|
388
397
|
})
|
|
389
|
-
}, null, 8, ["design", "title"])) : (
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
398
|
+
}, null, 8, ["design", "title"])) : (h(), F(T, { key: 2 }, [
|
|
399
|
+
S("div", ve, [
|
|
400
|
+
Se,
|
|
401
|
+
g(f, {
|
|
393
402
|
icon: "visibility",
|
|
394
403
|
label: "Preview message",
|
|
395
404
|
variant: "plain",
|
|
396
|
-
onClick:
|
|
405
|
+
onClick: x
|
|
397
406
|
})
|
|
398
407
|
]),
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
"model-value": (
|
|
402
|
-
"onUpdate:modelValue":
|
|
408
|
+
S("div", xe, [
|
|
409
|
+
g(y, {
|
|
410
|
+
"model-value": (v = e.modelValue) == null ? void 0 : v.content,
|
|
411
|
+
"onUpdate:modelValue": c,
|
|
403
412
|
"show-word-count": !0,
|
|
404
413
|
placeholder: e.placeholder,
|
|
405
|
-
"helper-state": i(
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
"
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
_: 1
|
|
412
|
-
}, 8, ["model-value", "placeholder", "helper-state", "helper-text"]),
|
|
413
|
-
x("div", Ve, [
|
|
414
|
-
h($, { placement: "left-end" }, {
|
|
415
|
-
"menu-button": v(() => [
|
|
416
|
-
h(f, {
|
|
414
|
+
"helper-state": i(E) || "none"
|
|
415
|
+
}, null, 8, ["model-value", "placeholder", "helper-state"]),
|
|
416
|
+
S("div", Ee, [
|
|
417
|
+
g(j, { placement: "left-end" }, {
|
|
418
|
+
"menu-button": $(() => [
|
|
419
|
+
g(f, {
|
|
417
420
|
icon: "add",
|
|
418
421
|
variant: "tertiary",
|
|
419
422
|
size: "md"
|
|
420
423
|
})
|
|
421
424
|
]),
|
|
422
|
-
default:
|
|
423
|
-
(
|
|
424
|
-
(
|
|
425
|
-
), (
|
|
426
|
-
var
|
|
427
|
-
return
|
|
428
|
-
key:
|
|
429
|
-
label: ((
|
|
430
|
-
onClick: (
|
|
431
|
-
var
|
|
432
|
-
return
|
|
425
|
+
default: $(() => [
|
|
426
|
+
(h(!0), F(T, null, Z(e.variables.filter(
|
|
427
|
+
(s) => e.triggerType == "SCHEDULE" ? !s.startsWith("transaction.") : !0
|
|
428
|
+
), (s) => {
|
|
429
|
+
var U;
|
|
430
|
+
return h(), C(l, {
|
|
431
|
+
key: s,
|
|
432
|
+
label: ((U = i(ae)[s]) == null ? void 0 : U.name) || s,
|
|
433
|
+
onClick: (Ve) => {
|
|
434
|
+
var D;
|
|
435
|
+
return c(((D = e.modelValue) == null ? void 0 : D.content) + `{{${s}}}`);
|
|
433
436
|
}
|
|
434
437
|
}, null, 8, ["label", "onClick"]);
|
|
435
438
|
}), 128))
|
|
@@ -437,13 +440,16 @@ const he = /* @__PURE__ */ Q(ce, [["render", pe], ["__scopeId", "data-v-a9a2bb94
|
|
|
437
440
|
_: 1
|
|
438
441
|
})
|
|
439
442
|
])
|
|
440
|
-
])
|
|
443
|
+
]),
|
|
444
|
+
S("span", {
|
|
445
|
+
class: K(["fm-typo-en-body-md-400 text-fm-color-neutral-gray-400", i(E)])
|
|
446
|
+
}, W(i(L)), 3)
|
|
441
447
|
], 64))
|
|
442
448
|
]);
|
|
443
449
|
};
|
|
444
450
|
}
|
|
445
451
|
});
|
|
446
452
|
export {
|
|
447
|
-
|
|
448
|
-
|
|
453
|
+
Ie as M,
|
|
454
|
+
Ue as _
|
|
449
455
|
};
|