@feedmepos/mf-connect 0.1.26-prod → 0.1.28-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-WXmpLkLU.js → Analytic-2fPCInDE.js} +11 -11
- package/dist/{App-jBGNDeCb.js → App-BJlRD4KH.js} +6 -6
- package/dist/{Bin-COj4GqKe.js → Bin-DWd2_II3.js} +8 -8
- package/dist/{Broadcast-vIqSNTJh.js → Broadcast-DTbF5YQn.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BVtfunGL.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-TIRZoc43.js} +6 -6
- package/dist/{Card-CGyBry4S.js → Card-BUGQEdCK.js} +15 -15
- package/dist/{Collections-BeQ_uFRE.js → Collections-BjomDHYg.js} +116 -112
- package/dist/{Credit-DWsgc_P1.js → Credit-BUK4Aw0m.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DxPsGM7d.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-gWvjwFiR.js} +28 -28
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DlCdWAqB.js → EffectSheet.vue_vue_type_style_index_0_lang-DvTrxSnL.js} +6 -6
- package/dist/{Experience-DQ5ofpRU.js → Experience-DsQIdK9t.js} +9 -9
- package/dist/{Game-dl01-cxh.js → Game-BLbN3Z6v.js} +10 -10
- package/dist/{Index-B33SYml2.js → Index-CzIILYvi.js} +10 -10
- package/dist/{Marketing-CqWuI9r1.js → Marketing-xoRpWZfv.js} +6 -6
- package/dist/{Member-PuWzURyR.js → Member-DInHHwad.js} +5 -5
- package/dist/{MemberList-dQljjKIC.js → MemberList-DF8tkFDT.js} +24 -24
- package/dist/{MemberTransactions-BH1U_v3f.js → MemberTransactions-C-pbBsve.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-ZSNwpN6m.js → MessageInput.vue_vue_type_script_setup_true_lang-CHq9xXiP.js} +146 -144
- package/dist/{Mission-PjsS8VTH.js → Mission-BAxHgOAl.js} +10 -10
- package/dist/{Overview-B6zXdxIf.js → Overview-BWyUMlCT.js} +17 -17
- package/dist/{Point-DhYeSbYo.js → Point-CGzCftO5.js} +9 -9
- package/dist/{Promotion-4yBcCEQA.js → Promotion-BHB6CTXq.js} +10 -10
- package/dist/{Queue-BCOe370v.js → Queue-BMqt4siy.js} +9 -9
- package/dist/{Record-FxeE4KZe.js → Record-DisW68Yh.js} +7 -7
- package/dist/{Reward-B4licTuW.js → Reward-C7XavzIk.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CKWOhSQh.js → RewardGroup.vue_vue_type_script_setup_true_lang-BYknroSK.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BbOzaj63.js → RuleGroup.vue_vue_type_script_setup_true_lang-D_-qtGyk.js} +12 -12
- package/dist/{Segment-DONb4N1l.js → Segment-Cam05pCr.js} +66 -56
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CvHYZpGm.js → SelectItems.vue_vue_type_script_setup_true_lang-b4AoknE_.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-NDwwOZSM.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BqssLYLl.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D2ixqrV7.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-Evq0vBoE.js} +3 -3
- package/dist/{Setting-BQOcVtGa.js → Setting-DliMpeMz.js} +10 -10
- package/dist/{Store-BlaFXTeO.js → Store-Cgkw-xg6.js} +18 -18
- package/dist/{StoreRewards-Lqc34UoD.js → StoreRewards-Dfo00Fc6.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-C5dViJNi.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DK4q2v-U.js} +17 -17
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-e_31o0i7.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CiApy4Rx.js} +1 -1
- package/dist/{Tier-B26lO0SB.js → Tier-CkZhMC3f.js} +157 -151
- package/dist/{Title-BASSyfhP.js → Title-DXtRRsGh.js} +157 -149
- package/dist/{Transaction-BbzBRylw.js → Transaction-BALNjNz6.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BFyl96zy.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DhTilYic.js} +6 -6
- package/dist/{Voucher-A_GG0E5t.js → Voucher-C4AN27lq.js} +12 -12
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CCGtKQTW.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DT-iQjFb.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DGNqvOl5.js → ZodTextField.vue_vue_type_script_setup_true_lang-BmtZwFSs.js} +1 -1
- package/dist/{app-DV-5XPYF.js → app-Cex8lJkz.js} +30 -30
- package/dist/{app-C7FQYfsn.js → app-CrWyzn6D.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-C8PXQSRE.js → business-B41gNDWn.js} +1 -1
- package/dist/{campaign-CuZ6u4yy.js → campaign-D8Jb8Mcs.js} +2 -2
- package/dist/{campaign-B4eKVpps.js → campaign-DyRorn8y.js} +9 -9
- package/dist/{campaign.enum-xbqqPDwY.js → campaign.enum-D1WvicXa.js} +1 -1
- package/dist/{campaign.fn-GFFtrWsz.js → campaign.fn-WZL8m77q.js} +22 -22
- package/dist/{collectible.enum-DB4oBcfv.js → collectible.enum-2SqtWORg.js} +1 -1
- package/dist/{collection.fn-BwpscyTl.js → collection.fn-BGBiIa3-.js} +2 -2
- package/dist/{dto-Cr20KGr0.js → dto-CziQ3YR8.js} +4 -4
- package/dist/{effect-D9-UiBiK.js → effect-DOhxTMbD.js} +1 -1
- package/dist/{email-addresses-F3hoXmRI.js → email-addresses-B2-IyW9d.js} +1 -1
- package/dist/{export-BIPF1ilY.js → export-DijV-thU.js} +3 -3
- package/dist/{helper-Tf1bFEee.js → helper-DZ475418.js} +1 -1
- package/dist/{index-Dow2N7x1.js → index-BHnFFWRj.js} +1 -1
- package/dist/{index-CpUyyTF6.js → index-BhF5Q6I1.js} +1 -1
- package/dist/{index-BYzdfZKb.js → index-BjzAAlhX.js} +3 -3
- package/dist/{index-IOTB7rGH.js → index-CDc5NEE9.js} +1 -1
- package/dist/{index-B2jAIO5k.js → index-D2q6nQsP.js} +7 -5
- package/dist/{index-BhlEaLpy.js → index-DgyH5BiA.js} +1 -1
- package/dist/{index-bb6Kd8k_.js → index-DqsQDq21.js} +6 -6
- package/dist/{index-gTmOLzQU.js → index-JaOBn64e.js} +1 -1
- package/dist/{index-mjBmZtX2.js → index-gfPyiFc5.js} +3 -3
- package/dist/{index-Bkw-11Tg.js → index-mHvARg87.js} +2 -2
- package/dist/{index-BvqdtS9H.js → index-vThFTWos.js} +1 -1
- package/dist/{index-D4XX55M5.js → index-vy13Kvq1.js} +1 -1
- package/dist/{index.esm2017-Y_0J3nbR.js → index.esm2017-DrOnmEcN.js} +1 -1
- package/dist/{loading-BbC_ZIPE.js → loading-B090b_ce.js} +1 -1
- package/dist/{membership-BM_2_hUW.js → membership-BnjHoHZJ.js} +3 -3
- package/dist/{money-BsBmwalY.js → money-D-ZRd8_2.js} +1 -1
- package/dist/{number-QqpGrk9q.js → number-cKAn8ky6.js} +1 -1
- package/dist/{objectid-DQj-P2cH.js → objectid-C5bLDGr_.js} +5 -5
- package/dist/{plugins-DKPF0eaB.js → plugins-CyX08GLM.js} +4 -4
- package/dist/{reward-Yl3EdHrH.js → reward-Dg-9sn2_.js} +1 -1
- package/dist/{rule-DW_bLKtu.js → rule-Bnl3DQZ7.js} +3 -3
- package/dist/{rule-builder-BoITzEtm.js → rule-builder-B75aU3HN.js} +1 -1
- package/dist/{template-BSQzNJs5.js → template-CMSQsYm3.js} +4 -4
- package/dist/{trigger-Bel1H8iR.js → trigger-BkZU9Cr9.js} +4 -4
- package/dist/{user-Dg2HfZlK.js → user-DR35Lmlo.js} +1 -1
- package/dist/{vue-i18n-CvvsV6dR.js → vue-i18n-B4XGvfnw.js} +157 -157
- package/dist/{xlsx-1oIZztwO.js → xlsx-C15yLkMd.js} +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { p as
|
|
3
|
-
import { A as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { c as
|
|
7
|
-
|
|
1
|
+
import { defineComponent as I, shallowRef as G, openBlock as p, createElementBlock as C, normalizeStyle as P, ref as M, resolveComponent as g, createBlock as _, unref as i, isRef as q, withCtx as v, createVNode as h, createElementVNode as x, createCommentVNode as H, withDirectives as U, vShow as T, computed as J, onMounted as z, Fragment as B, createTextVNode as K, toDisplayString as W, renderList as X } from "vue";
|
|
2
|
+
import { p as Y } from "./plugins-CyX08GLM.js";
|
|
3
|
+
import { A as Z } from "./index-D2q6nQsP.js";
|
|
4
|
+
import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
import { _ as ee, S as te } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js";
|
|
6
|
+
import { c as ne } from "./object-qECH92oz.js";
|
|
7
|
+
import { useCoreStore as oe } from "@feedmepos/mf-common";
|
|
8
|
+
import { u as ae } from "./membership-BnjHoHZJ.js";
|
|
9
|
+
const se = {
|
|
8
10
|
"user.name": {
|
|
9
11
|
name: "User name"
|
|
10
12
|
},
|
|
@@ -44,36 +46,36 @@ const te = {
|
|
|
44
46
|
"membership.url": {
|
|
45
47
|
name: "Membership URL"
|
|
46
48
|
}
|
|
47
|
-
},
|
|
49
|
+
}, Ie = {
|
|
48
50
|
MY: ["user.phoneNumber", "membership.url"]
|
|
49
|
-
},
|
|
50
|
-
let
|
|
51
|
-
const
|
|
51
|
+
}, ie = "https://editor.unlayer.com/embed.js?2", N = [];
|
|
52
|
+
let O = !1;
|
|
53
|
+
const re = (e) => {
|
|
52
54
|
const n = document.querySelectorAll("script");
|
|
53
|
-
let
|
|
54
|
-
return n.forEach((
|
|
55
|
-
|
|
56
|
-
}),
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
if (
|
|
55
|
+
let r = !1;
|
|
56
|
+
return n.forEach((c) => {
|
|
57
|
+
c.src.includes(e) && (r = !0);
|
|
58
|
+
}), r;
|
|
59
|
+
}, le = (e) => {
|
|
60
|
+
N.push(e);
|
|
61
|
+
}, R = () => {
|
|
62
|
+
if (O) {
|
|
61
63
|
let e;
|
|
62
|
-
for (; e =
|
|
64
|
+
for (; e = N.shift(); )
|
|
63
65
|
e();
|
|
64
66
|
}
|
|
65
|
-
},
|
|
66
|
-
if (
|
|
67
|
-
|
|
67
|
+
}, de = (e, n = ie) => {
|
|
68
|
+
if (le(e), re(n))
|
|
69
|
+
R();
|
|
68
70
|
else {
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}, document.head.appendChild(
|
|
71
|
+
const r = document.createElement("script");
|
|
72
|
+
r.setAttribute("src", n), r.onload = () => {
|
|
73
|
+
O = !0, R();
|
|
74
|
+
}, document.head.appendChild(r);
|
|
73
75
|
}
|
|
74
76
|
};
|
|
75
|
-
let
|
|
76
|
-
const
|
|
77
|
+
let ue = 0;
|
|
78
|
+
const ce = I({
|
|
77
79
|
name: "EmailEditor",
|
|
78
80
|
props: {
|
|
79
81
|
editorId: String,
|
|
@@ -102,17 +104,17 @@ const re = j({
|
|
|
102
104
|
},
|
|
103
105
|
computed: {
|
|
104
106
|
id() {
|
|
105
|
-
return this.editorId || `editor-${++
|
|
107
|
+
return this.editorId || `editor-${++ue}`;
|
|
106
108
|
}
|
|
107
109
|
},
|
|
108
110
|
setup() {
|
|
109
111
|
return {
|
|
110
|
-
editor:
|
|
112
|
+
editor: G(null)
|
|
111
113
|
// Makes editor available to the template
|
|
112
114
|
};
|
|
113
115
|
},
|
|
114
116
|
mounted() {
|
|
115
|
-
this.$emit("load"),
|
|
117
|
+
this.$emit("load"), de(this.loadEditor.bind(this), this.scriptUrl);
|
|
116
118
|
},
|
|
117
119
|
methods: {
|
|
118
120
|
loadEditor() {
|
|
@@ -146,15 +148,15 @@ const re = j({
|
|
|
146
148
|
(n = this.editor) == null || n.saveDesign(e);
|
|
147
149
|
}
|
|
148
150
|
}
|
|
149
|
-
}),
|
|
150
|
-
function
|
|
151
|
-
return p(),
|
|
151
|
+
}), me = ["id"];
|
|
152
|
+
function pe(e, n, r, c, a, m) {
|
|
153
|
+
return p(), C("div", {
|
|
152
154
|
id: e.id,
|
|
153
155
|
class: "unlayer-editor",
|
|
154
|
-
style:
|
|
155
|
-
}, null, 12,
|
|
156
|
+
style: P({ minHeight: e.minHeight })
|
|
157
|
+
}, null, 12, me);
|
|
156
158
|
}
|
|
157
|
-
const
|
|
159
|
+
const he = /* @__PURE__ */ Q(ce, [["render", pe], ["__scopeId", "data-v-a9a2bb94"]]), fe = { class: "h-full flex flex-col" }, ge = { class: "flex items-center gap-8" }, be = /* @__PURE__ */ I({
|
|
158
160
|
__name: "EmailEditorSheet",
|
|
159
161
|
props: {
|
|
160
162
|
design: {
|
|
@@ -167,83 +169,83 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
|
|
|
167
169
|
}
|
|
168
170
|
},
|
|
169
171
|
emits: ["update:design"],
|
|
170
|
-
setup(e, { expose: n, emit:
|
|
171
|
-
const
|
|
172
|
+
setup(e, { expose: n, emit: r }) {
|
|
173
|
+
const c = M(!1), a = M(null), m = M(!1), b = e, l = M({
|
|
172
174
|
html: "",
|
|
173
175
|
design: b.design,
|
|
174
176
|
title: b.title || ""
|
|
175
177
|
});
|
|
176
178
|
function S(o) {
|
|
177
|
-
|
|
179
|
+
c.value = o;
|
|
178
180
|
}
|
|
179
|
-
const
|
|
180
|
-
function
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
const w = r;
|
|
182
|
+
function F() {
|
|
183
|
+
a.value && (a.value.exportHtml((o) => {
|
|
184
|
+
l.value = {
|
|
183
185
|
html: o.html,
|
|
184
186
|
design: o.design,
|
|
185
|
-
title:
|
|
186
|
-
},
|
|
187
|
+
title: l.value.title
|
|
188
|
+
}, w("update:design", l.value);
|
|
187
189
|
}), S(!1));
|
|
188
190
|
}
|
|
189
191
|
return n({
|
|
190
192
|
showSheet: S
|
|
191
|
-
}), (o,
|
|
192
|
-
const
|
|
193
|
-
return p(),
|
|
194
|
-
modelValue:
|
|
195
|
-
"onUpdate:modelValue":
|
|
193
|
+
}), (o, t) => {
|
|
194
|
+
const d = g("FmButton"), f = g("FmTextField"), y = g("FmSideSheet");
|
|
195
|
+
return p(), _(y, {
|
|
196
|
+
modelValue: i(c),
|
|
197
|
+
"onUpdate:modelValue": t[4] || (t[4] = (s) => q(c) ? c.value = s : null),
|
|
196
198
|
header: "Email editor",
|
|
197
199
|
"max-width": 1280
|
|
198
200
|
}, {
|
|
199
201
|
"side-sheet-button": v(() => [
|
|
200
|
-
h(
|
|
202
|
+
h(d, {
|
|
201
203
|
label: "Edit email",
|
|
202
204
|
variant: "tertiary",
|
|
203
205
|
icon: "edit"
|
|
204
206
|
})
|
|
205
207
|
]),
|
|
206
208
|
default: v(() => [
|
|
207
|
-
x("div",
|
|
208
|
-
|
|
209
|
+
x("div", fe, [
|
|
210
|
+
i(m) ? H("", !0) : (p(), _(ee, {
|
|
209
211
|
key: 0,
|
|
210
212
|
class: "flex-1",
|
|
211
|
-
json:
|
|
213
|
+
json: i(te),
|
|
212
214
|
width: 100,
|
|
213
215
|
height: 100
|
|
214
216
|
}, null, 8, ["json"])),
|
|
215
|
-
|
|
217
|
+
U(h(f, {
|
|
216
218
|
label: "Email title",
|
|
217
|
-
modelValue:
|
|
218
|
-
"onUpdate:modelValue":
|
|
219
|
+
modelValue: i(l).title,
|
|
220
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => i(l).title = s)
|
|
219
221
|
}, null, 8, ["modelValue"]), [
|
|
220
|
-
[
|
|
222
|
+
[T, i(m)]
|
|
221
223
|
]),
|
|
222
|
-
|
|
224
|
+
U(h(he, {
|
|
223
225
|
class: "flex-1",
|
|
224
226
|
ref_key: "editorRef",
|
|
225
|
-
ref:
|
|
226
|
-
onLoad:
|
|
227
|
-
onReady:
|
|
228
|
-
var
|
|
229
|
-
|
|
227
|
+
ref: a,
|
|
228
|
+
onLoad: t[1] || (t[1] = (s) => m.value = !1),
|
|
229
|
+
onReady: t[2] || (t[2] = () => {
|
|
230
|
+
var s;
|
|
231
|
+
m.value = !0, b.design && ((s = i(a)) == null || s.loadDesign(i(ne)(b.design)));
|
|
230
232
|
})
|
|
231
233
|
}, null, 512), [
|
|
232
|
-
[
|
|
234
|
+
[T, i(m)]
|
|
233
235
|
])
|
|
234
236
|
])
|
|
235
237
|
]),
|
|
236
238
|
"side-sheet-footer": v(() => [
|
|
237
|
-
x("div",
|
|
238
|
-
h(
|
|
239
|
+
x("div", ge, [
|
|
240
|
+
h(d, {
|
|
239
241
|
variant: "primary",
|
|
240
242
|
label: "Confirm",
|
|
241
|
-
onClick:
|
|
243
|
+
onClick: F
|
|
242
244
|
}),
|
|
243
|
-
h(
|
|
245
|
+
h(d, {
|
|
244
246
|
variant: "tertiary",
|
|
245
247
|
label: "Cancel",
|
|
246
|
-
onClick:
|
|
248
|
+
onClick: t[3] || (t[3] = (s) => S(!1))
|
|
247
249
|
})
|
|
248
250
|
])
|
|
249
251
|
]),
|
|
@@ -251,7 +253,7 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
|
|
|
251
253
|
}, 8, ["modelValue"]);
|
|
252
254
|
};
|
|
253
255
|
}
|
|
254
|
-
}),
|
|
256
|
+
}), ye = { class: "space-y-4" }, ve = { class: "flex items-center gap-8 justify-between" }, xe = /* @__PURE__ */ x("div", { class: "fm-typo-en-body-lg-400" }, "Add message", -1), Se = { class: "relative" }, Ve = { class: "absolute bottom-[24px] right-[4px]" }, Le = /* @__PURE__ */ I({
|
|
255
257
|
__name: "MessageInput",
|
|
256
258
|
props: {
|
|
257
259
|
allowEmail: {
|
|
@@ -292,10 +294,10 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
|
|
|
292
294
|
},
|
|
293
295
|
emits: ["update:model-value"],
|
|
294
296
|
setup(e, { emit: n }) {
|
|
295
|
-
const
|
|
296
|
-
function
|
|
297
|
-
var
|
|
298
|
-
const
|
|
297
|
+
const r = oe(), c = ae(), a = e, m = n;
|
|
298
|
+
function b() {
|
|
299
|
+
var d;
|
|
300
|
+
const o = {
|
|
299
301
|
user: {
|
|
300
302
|
name: "John Doe",
|
|
301
303
|
tier: 1,
|
|
@@ -310,26 +312,28 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
|
|
|
310
312
|
collectible: {
|
|
311
313
|
name: "RM10 Voucher"
|
|
312
314
|
}
|
|
313
|
-
}, t =
|
|
314
|
-
((
|
|
315
|
-
|
|
315
|
+
}, t = Z(
|
|
316
|
+
((d = a.modelValue) == null ? void 0 : d.content) ?? "",
|
|
317
|
+
o
|
|
316
318
|
);
|
|
317
|
-
|
|
319
|
+
Y.confirm(t, "Preview message", "OK");
|
|
318
320
|
}
|
|
319
|
-
function
|
|
320
|
-
|
|
321
|
+
function l(o, t = "SMS") {
|
|
322
|
+
m("update:model-value", {
|
|
321
323
|
channel: t,
|
|
322
|
-
content: t == "SMS" ?
|
|
323
|
-
design: t == "EMAIL" ?
|
|
324
|
+
content: t == "SMS" ? o : o.html,
|
|
325
|
+
design: t == "EMAIL" ? o.design : void 0,
|
|
324
326
|
language: "en",
|
|
325
|
-
title: t == "EMAIL" ?
|
|
326
|
-
variables:
|
|
327
|
+
title: t == "EMAIL" ? o.title : void 0,
|
|
328
|
+
variables: a.variables
|
|
327
329
|
});
|
|
328
330
|
}
|
|
329
|
-
const
|
|
330
|
-
var
|
|
331
|
-
const
|
|
332
|
-
|
|
331
|
+
const S = M(a.helperState || "none"), w = J(() => {
|
|
332
|
+
var V, E;
|
|
333
|
+
const o = ((V = c.membership) == null ? void 0 : V.brand) || r.currentBusiness.value.name || "", t = 160;
|
|
334
|
+
let d = t;
|
|
335
|
+
const f = ((E = a.modelValue) == null ? void 0 : E.content.replace(/{{([^}]+)}}/g, (k, j) => {
|
|
336
|
+
switch (j) {
|
|
333
337
|
case "user.name":
|
|
334
338
|
return "1234567890";
|
|
335
339
|
case "user.tier":
|
|
@@ -352,79 +356,77 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
|
|
|
352
356
|
return "...";
|
|
353
357
|
}
|
|
354
358
|
})) || "";
|
|
355
|
-
let
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
return p(), _("div", he, [
|
|
371
|
-
e.allowEmail ? (p(), E(o, {
|
|
359
|
+
let y = o.length + 4, s = f.length + y;
|
|
360
|
+
(/[\u4e00-\u9fff\u3040-\u30ff\u3400-\u4dbf]/.test(f) || /[\u4e00-\u9fff\u3040-\u30ff\u3400-\u4dbf]/.test(f)) && (d = 70);
|
|
361
|
+
const $ = Math.min(d, t);
|
|
362
|
+
return `Reserverd: ${y} | Character used: ${s} ≈ ${Math.ceil(s / $)} SMS (Every ${$} characters will be sent as 1 SMS)`;
|
|
363
|
+
}), F = [{ label: "SMS" }, { label: "EMAIL" }];
|
|
364
|
+
return z(() => {
|
|
365
|
+
m("update:model-value", {
|
|
366
|
+
...a.modelValue,
|
|
367
|
+
variables: a.variables
|
|
368
|
+
}), a.modelValue || l("");
|
|
369
|
+
}), (o, t) => {
|
|
370
|
+
var V, E, k, j, L;
|
|
371
|
+
const d = g("FmButtonGroup"), f = g("FmButton"), y = g("FmTextarea"), s = g("FmMenuItem"), $ = g("FmMenu");
|
|
372
|
+
return p(), C("div", ye, [
|
|
373
|
+
e.allowEmail ? (p(), _(d, {
|
|
372
374
|
key: 0,
|
|
373
|
-
items:
|
|
374
|
-
"model-value": { label: (
|
|
375
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
376
|
-
}, null, 8, ["model-value"])) :
|
|
377
|
-
((
|
|
375
|
+
items: F,
|
|
376
|
+
"model-value": { label: (V = e.modelValue) == null ? void 0 : V.channel },
|
|
377
|
+
"onUpdate:modelValue": t[0] || (t[0] = (u) => l("", u.label))
|
|
378
|
+
}, null, 8, ["model-value"])) : H("", !0),
|
|
379
|
+
((E = e.modelValue) == null ? void 0 : E.channel) == "EMAIL" ? (p(), _(be, {
|
|
378
380
|
key: 1,
|
|
379
|
-
design: (
|
|
380
|
-
title: ((
|
|
381
|
-
"onUpdate:design": t[1] || (t[1] = (
|
|
382
|
-
|
|
381
|
+
design: (k = e.modelValue) == null ? void 0 : k.design,
|
|
382
|
+
title: ((j = e.modelValue) == null ? void 0 : j.title) || void 0,
|
|
383
|
+
"onUpdate:design": t[1] || (t[1] = (u) => {
|
|
384
|
+
l(u, "EMAIL");
|
|
383
385
|
})
|
|
384
|
-
}, null, 8, ["design", "title"])) : (p(),
|
|
385
|
-
x("div",
|
|
386
|
-
|
|
387
|
-
h(
|
|
386
|
+
}, null, 8, ["design", "title"])) : (p(), C(B, { key: 2 }, [
|
|
387
|
+
x("div", ve, [
|
|
388
|
+
xe,
|
|
389
|
+
h(f, {
|
|
388
390
|
icon: "visibility",
|
|
389
391
|
label: "Preview message",
|
|
390
392
|
variant: "plain",
|
|
391
|
-
onClick:
|
|
393
|
+
onClick: b
|
|
392
394
|
})
|
|
393
395
|
]),
|
|
394
|
-
x("div",
|
|
395
|
-
h(
|
|
396
|
-
"model-value": (
|
|
397
|
-
"onUpdate:modelValue":
|
|
396
|
+
x("div", Se, [
|
|
397
|
+
h(y, {
|
|
398
|
+
"model-value": (L = e.modelValue) == null ? void 0 : L.content,
|
|
399
|
+
"onUpdate:modelValue": l,
|
|
398
400
|
"show-word-count": !0,
|
|
399
401
|
placeholder: e.placeholder,
|
|
400
|
-
"helper-state":
|
|
401
|
-
"helper-text":
|
|
402
|
+
"helper-state": i(S) || "none",
|
|
403
|
+
"helper-text": i(w)
|
|
402
404
|
}, {
|
|
403
405
|
"helper-text": v(() => [
|
|
404
|
-
|
|
406
|
+
K(W(i(w)), 1)
|
|
405
407
|
]),
|
|
406
408
|
_: 1
|
|
407
409
|
}, 8, ["model-value", "placeholder", "helper-state", "helper-text"]),
|
|
408
|
-
x("div",
|
|
409
|
-
h(
|
|
410
|
+
x("div", Ve, [
|
|
411
|
+
h($, { placement: "left-end" }, {
|
|
410
412
|
"menu-button": v(() => [
|
|
411
|
-
h(
|
|
413
|
+
h(f, {
|
|
412
414
|
icon: "add",
|
|
413
415
|
variant: "tertiary",
|
|
414
416
|
size: "md"
|
|
415
417
|
})
|
|
416
418
|
]),
|
|
417
419
|
default: v(() => [
|
|
418
|
-
(p(!0),
|
|
419
|
-
(
|
|
420
|
-
), (
|
|
421
|
-
var
|
|
422
|
-
return p(),
|
|
423
|
-
key:
|
|
424
|
-
label: ((
|
|
425
|
-
onClick: (
|
|
426
|
-
var
|
|
427
|
-
return
|
|
420
|
+
(p(!0), C(B, null, X(e.variables.filter(
|
|
421
|
+
(u) => e.triggerType == "SCHEDULE" ? !u.startsWith("transaction.") : !0
|
|
422
|
+
), (u) => {
|
|
423
|
+
var D;
|
|
424
|
+
return p(), _(s, {
|
|
425
|
+
key: u,
|
|
426
|
+
label: ((D = i(se)[u]) == null ? void 0 : D.name) || u,
|
|
427
|
+
onClick: (Ee) => {
|
|
428
|
+
var A;
|
|
429
|
+
return l(((A = e.modelValue) == null ? void 0 : A.content) + `{{${u}}}`);
|
|
428
430
|
}
|
|
429
431
|
}, null, 8, ["label", "onClick"]);
|
|
430
432
|
}), 128))
|
|
@@ -439,6 +441,6 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
|
|
|
439
441
|
}
|
|
440
442
|
});
|
|
441
443
|
export {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
+
Ie as M,
|
|
445
|
+
Le as _
|
|
444
446
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineComponent as H, ref as w, computed as q, h as l, onMounted as z, resolveComponent as m, openBlock as p, createElementBlock as x, Fragment as v, createVNode as c, unref as t, createElementVNode as s, withCtx as C, renderList as W, createBlock as b, resolveDynamicComponent as G, toDisplayString as u } from "vue";
|
|
2
2
|
import { _ as J } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { u as Q } from "./loading-
|
|
4
|
-
import { g as X, a as B, b as P } from "./campaign-
|
|
5
|
-
import { a as Y, p as Z } from "./plugins-
|
|
6
|
-
import { u as ee } from "./business-
|
|
7
|
-
import { u as oe } from "./campaign-
|
|
3
|
+
import { u as Q } from "./loading-B090b_ce.js";
|
|
4
|
+
import { g as X, a as B, b as P } from "./campaign-DyRorn8y.js";
|
|
5
|
+
import { a as Y, p as Z } from "./plugins-CyX08GLM.js";
|
|
6
|
+
import { u as ee } from "./business-B41gNDWn.js";
|
|
7
|
+
import { u as oe } from "./campaign-D8Jb8Mcs.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-
|
|
11
|
-
import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { u as ae } from "./template-CMSQsYm3.js";
|
|
11
|
+
import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-gWvjwFiR.js";
|
|
12
12
|
import { s as ie } from "./index-CuvNtC_M.js";
|
|
13
|
-
import { u as ce } from "./vue-i18n-
|
|
14
|
-
import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { c as h } from "./index-
|
|
13
|
+
import { u as ce } from "./vue-i18n-B4XGvfnw.js";
|
|
14
|
+
import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-BqssLYLl.js";
|
|
15
|
+
import { c as h } from "./index-JaOBn64e.js";
|
|
16
16
|
const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-center justify-between w-full" }, de = { class: "flex gap-8 overflow-x-auto" }, pe = { class: "space-y-8" }, ue = { class: "flex w-full gap-4 items-center" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "space-y-4" }, ye = { class: "fm-typo-en-body-lg-600" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = /* @__PURE__ */ s("img", {
|
|
17
17
|
src: J,
|
|
18
18
|
class: "aspect-square w-[150px]"
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { defineComponent as q, resolveComponent as w, openBlock as C, createElementBlock as B, Fragment as Y, createVNode as c, withCtx as V, createElementVNode as a, toDisplayString as O, unref as r, renderSlot as _e, ref as $, computed as G, watch as ie, createBlock as j, isRef as J, resolveDynamicComponent as ne, renderList as re, normalizeClass as ce, createTextVNode as de, createCommentVNode as z, h as te, onMounted as ve } from "vue";
|
|
2
2
|
import { _ as ge } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { u as Z } from "./vue-i18n-
|
|
4
|
-
import { u as ue } from "./loading-
|
|
5
|
-
import { c as we, p as K } from "./plugins-
|
|
3
|
+
import { u as Z } from "./vue-i18n-B4XGvfnw.js";
|
|
4
|
+
import { u as ue } from "./loading-B090b_ce.js";
|
|
5
|
+
import { c as we, p as K } from "./plugins-CyX08GLM.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-
|
|
10
|
-
import { u as me } from "./reward-
|
|
11
|
-
import { j as le, k as se } from "./index-
|
|
12
|
-
import "./index-
|
|
13
|
-
import { a as be, b as xe } from "./index-
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./index-
|
|
16
|
-
import { C as fe } from "./membership-
|
|
17
|
-
import { t as ee } from "./helper-
|
|
9
|
+
import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-BYknroSK.js";
|
|
10
|
+
import { u as me } from "./reward-Dg-9sn2_.js";
|
|
11
|
+
import { j as le, k as se } from "./index-D2q6nQsP.js";
|
|
12
|
+
import "./index-mHvARg87.js";
|
|
13
|
+
import { a as be, b as xe } from "./index-DqsQDq21.js";
|
|
14
|
+
import "./index-vy13Kvq1.js";
|
|
15
|
+
import "./index-BjzAAlhX.js";
|
|
16
|
+
import { C as fe } from "./membership-BnjHoHZJ.js";
|
|
17
|
+
import { t as ee } from "./helper-DZ475418.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-
|
|
21
|
-
import { T as Se, _ as $e, a as ke } from "./trigger-
|
|
22
|
-
import { O as Fe } from "./objectid-
|
|
23
|
-
import { r as pe } from "./index-
|
|
24
|
-
import { u as Pe } from "./business-
|
|
20
|
+
import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BmtZwFSs.js";
|
|
21
|
+
import { T as Se, _ as $e, a as ke } from "./trigger-BkZU9Cr9.js";
|
|
22
|
+
import { O as Fe } from "./objectid-C5bLDGr_.js";
|
|
23
|
+
import { r as pe } from "./index-BhF5Q6I1.js";
|
|
24
|
+
import { u as Pe } from "./business-B41gNDWn.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-
|
|
5
|
-
import { u as W } from "./loading-
|
|
6
|
-
import { u as X } from "./business-
|
|
7
|
-
import { u as Y } from "./campaign-
|
|
8
|
-
import { g as Z, a as V, b as I } from "./campaign-
|
|
4
|
+
import { p as Q } from "./plugins-CyX08GLM.js";
|
|
5
|
+
import { u as W } from "./loading-B090b_ce.js";
|
|
6
|
+
import { u as X } from "./business-B41gNDWn.js";
|
|
7
|
+
import { u as Y } from "./campaign-D8Jb8Mcs.js";
|
|
8
|
+
import { g as Z, a as V, b as I } from "./campaign-DyRorn8y.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-
|
|
11
|
-
import { u as oe } from "./template-
|
|
12
|
-
import { u as ae } from "./vue-i18n-
|
|
13
|
-
import { c as _ } from "./index-
|
|
10
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-gWvjwFiR.js";
|
|
11
|
+
import { u as oe } from "./template-CMSQsYm3.js";
|
|
12
|
+
import { u as ae } from "./vue-i18n-B4XGvfnw.js";
|
|
13
|
+
import { c as _ } from "./index-JaOBn64e.js";
|
|
14
14
|
const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ie = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, le = { class: "flex gap-8 overflow-x-auto" }, ce = { class: "space-y-8" }, me = { class: "flex w-full gap-4 items-center" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = /* @__PURE__ */ n("img", {
|
|
15
15
|
src: z,
|
|
16
16
|
class: "aspect-square w-[150px]"
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as H, ref as P, computed as q, h as z, onMounted as G, resolveComponent as r, openBlock as m, createElementBlock as h, Fragment as w, createVNode as i, unref as n, createElementVNode as s, withCtx as v, renderList as J, createBlock as b, resolveDynamicComponent as Q, toDisplayString as g } from "vue";
|
|
2
2
|
import { _ as W } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as X, components as Y } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as O, p as I } from "./plugins-
|
|
5
|
-
import { u as Z } from "./loading-
|
|
6
|
-
import { u as ee } from "./business-
|
|
7
|
-
import { u as oe } from "./campaign-
|
|
8
|
-
import { u as te } from "./vue-i18n-
|
|
9
|
-
import { g as ne, a as V } from "./campaign-
|
|
10
|
-
import { e as L } from "./effect-
|
|
4
|
+
import { c as O, p as I } from "./plugins-CyX08GLM.js";
|
|
5
|
+
import { u as Z } from "./loading-B090b_ce.js";
|
|
6
|
+
import { u as ee } from "./business-B41gNDWn.js";
|
|
7
|
+
import { u as oe } from "./campaign-D8Jb8Mcs.js";
|
|
8
|
+
import { u as te } from "./vue-i18n-B4XGvfnw.js";
|
|
9
|
+
import { g as ne, a as V } from "./campaign-DyRorn8y.js";
|
|
10
|
+
import { e as L } from "./effect-DOhxTMbD.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-
|
|
13
|
-
import { u as ce } from "./template-
|
|
14
|
-
import { c as u } from "./index-
|
|
12
|
+
import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-gWvjwFiR.js";
|
|
13
|
+
import { u as ce } from "./template-CMSQsYm3.js";
|
|
14
|
+
import { c as u } from "./index-JaOBn64e.js";
|
|
15
15
|
const ie = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, le = { class: "flex gap-8 overflow-x-auto" }, me = { class: "space-y-8" }, pe = { class: "flex w-full gap-4 items-center" }, de = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = /* @__PURE__ */ s("img", {
|
|
16
16
|
src: W,
|
|
17
17
|
class: "aspect-square w-[150px]"
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as h, h as n, ref as T, watch as V, onBeforeMount as B, resolveComponent as N, openBlock as A, createElementBlock as U, Fragment as z, createVNode as m, unref as o, createElementVNode as f } from "vue";
|
|
2
2
|
import { u as q, _ as Y } from "./usePagination-JoYaROkV.js";
|
|
3
3
|
import { _ as x } from "./FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js";
|
|
4
|
-
import { c as u, a as L } from "./plugins-
|
|
4
|
+
import { c as u, a as L } from "./plugins-CyX08GLM.js";
|
|
5
5
|
import { useDialog as O, components as w } from "@feedmepos/ui-library";
|
|
6
|
-
import { B as c, k as S } from "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
6
|
+
import { B as c, k as S } from "./index-D2q6nQsP.js";
|
|
7
|
+
import "./index-mHvARg87.js";
|
|
8
|
+
import "./index-DqsQDq21.js";
|
|
9
|
+
import "./index-vy13Kvq1.js";
|
|
10
|
+
import "./index-BjzAAlhX.js";
|
|
11
11
|
import { h as y } from "./moment-BWErdI6_.js";
|
|
12
|
-
import { u as $ } from "./vue-i18n-
|
|
13
|
-
import { u as j, v as H, w as K } from "./index.esm2017-
|
|
14
|
-
import { g as W, S as G, u as Q } from "./index-
|
|
12
|
+
import { u as $ } from "./vue-i18n-B4XGvfnw.js";
|
|
13
|
+
import { u as j, v as H, w as K } from "./index.esm2017-DrOnmEcN.js";
|
|
14
|
+
import { g as W, S as G, u as Q } from "./index-gfPyiFc5.js";
|
|
15
15
|
import { o as J } from "./objectId-dwaoBfJX.js";
|
|
16
16
|
const X = () => {
|
|
17
17
|
if (!G.getBusinessId()) throw new Error("Invalid business ID");
|