@feedmepos/mf-connect 0.0.39-prod → 0.1.0-beta.2
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-DSD9TsKr.js +622 -0
- package/dist/{App-X3fNEBF3.js → App-D8a5eW51.js} +250 -249
- package/dist/Broadcast-C8jgMe6g.js +223 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CRYS_tzZ.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-pG8WvV4I.js} +20 -20
- package/dist/Card-C1K7ULPo.js +825 -0
- package/dist/Collections-lMrdPUuM.js +453 -0
- package/dist/Credit-CJfU5tP4.js +220 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DoZyevfa.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYoaa_-x.js} +1042 -1011
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CzEtOmp0.js +345 -0
- package/dist/Experience-Bp2ki8gU.js +221 -0
- package/dist/Game-BpTf6ebE.js +255 -0
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
- package/dist/{MainLayout-DpZC6o3R.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js} +19 -53
- package/dist/MainLayout-B1aJoR95.js +41 -0
- package/dist/Marketing-BiKE2gxA.js +316 -0
- package/dist/Member-BSWyy32a.js +69 -0
- package/dist/MemberList-CHlGREyR.js +1733 -0
- package/dist/MemberOverview-wL_ailso.js +58 -0
- package/dist/{MemberTransactions-DueaXBCy.js → MemberTransactions-BzHiXCnp.js} +1 -1
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-e-zWg08J.js +432 -0
- package/dist/Mission-8IGT3T2C.js +261 -0
- package/dist/Point-CbbJ6ohd.js +222 -0
- package/dist/Promotion-BYXCJa_S.js +247 -0
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-_RX1J0Br.js → RuleGroup.vue_vue_type_script_setup_true_lang-Bruh-umZ.js} +557 -557
- package/dist/Segment-DXDNM0yd.js +437 -0
- package/dist/Setting-CLpvvZTv.js +1901 -0
- package/dist/Store-C6-P6bwc.js +1511 -0
- package/dist/StoreRewards-CUM2irXK.js +401 -0
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CLFiuO5k.js → StoreTransactions.vue_vue_type_script_setup_true_lang-JaRdmqif.js} +10 -10
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CoMQBL4P.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DEb4OBcX.js} +1 -1
- package/dist/{Tier-CftEoP_R.js → Tier-DZTDxWBo.js} +481 -453
- package/dist/{Title-BsavXbYh.js → Title-C2Dr5ceK.js} +314 -295
- package/dist/Transaction-BL4mS29d.js +39 -0
- package/dist/Voucher-Cx0r2-df.js +490 -0
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-DWuAODUF.js +56 -0
- package/dist/{app-BNmAx3zq.js → app-B_xuZ5HB.js} +1 -1
- package/dist/app-wE5HTF_Y.js +5762 -0
- package/dist/app.js +5 -3
- package/dist/{business-DGL4Ayx0.js → business-DSv8zM8C.js} +1 -1
- package/dist/{campaign-D94sS1kM.js → campaign-7y5qquHZ.js} +5 -3
- package/dist/{collection.fn-BHJ1ISqO.js → collection.fn-BxVZQAx0.js} +2 -2
- package/dist/dto-Ew1QwLci.js +2778 -0
- package/dist/{effect-CFRICzlM.js → effect-BzPh8fRI.js} +9 -9
- package/dist/{export-w2o9NYcy.js → export-C9tDplkA.js} +3 -3
- package/dist/{helper-CUDWQ8vq.js → helper-Sz7oQ0F4.js} +1 -1
- package/dist/{index-BGuLhEym.js → index-BQm0C3Jm.js} +3 -3
- package/dist/{index-BjwyxNSp.js → index-C-SOz7jt.js} +1 -1
- package/dist/{index-BcWJcD9f.js → index-C0lpADCo.js} +1 -1
- package/dist/{index-DIq2KVis.js → index-C3_4GUiI.js} +1 -1
- package/dist/{index-BPEV5Tzg.js → index-D-2nFLsg.js} +59 -47
- package/dist/{index-CFMBSL24.js → index-DBMaUGYI.js} +2 -2
- package/dist/{index-CpwFQFTV.js → index-DH_1nOJ_.js} +3 -3
- package/dist/index-Dy4pmQpt.js +29193 -0
- package/dist/{index-BQ6isIeo.js → index-_3qBsogG.js} +1 -1
- package/dist/index-gIRszcHf.js +3 -0
- package/dist/{index-VjUw31dN.js → index-tv4t0Pnh.js} +1 -1
- package/dist/{index-tZ1aqhks.js → index-z0IfdrZk.js} +319 -281
- package/dist/{index.esm2017-zciuPty-.js → index.esm2017-BnKJDxUo.js} +55 -55
- package/dist/{loading-GuXe5bYG.js → loading-Ds-yFYhc.js} +469 -460
- package/dist/{membership-BHWJVI3e.js → membership-DaiVw9qF.js} +3 -3
- package/dist/money-BHtBdZoz.js +15 -0
- package/dist/number-CZhcB8ef.js +12 -0
- package/dist/{rule-MgNa_8FF.js → rule-Cd2M6Ri2.js} +2 -2
- package/dist/{rule-builder-BsBCWzq_.js → rule-builder-B6og27Q1.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-D6k3lusq.js → template-DouRWBpv.js} +63 -63
- package/dist/{usePagination-JoYaROkV.js → usePagination-BeF5K3M7.js} +85 -85
- package/dist/vue-i18n-BTlOChXs.js +2365 -0
- package/dist/{xlsx-ClrA4KOh.js → xlsx-SahfXQ70.js} +517 -517
- package/dist/zod-Bg2FbC-D.js +90 -0
- package/package.json +7 -4
- package/dist/Analytic-DMFueUju.js +0 -620
- package/dist/Broadcast-YIfWIXeA.js +0 -216
- package/dist/Card-BIxlgQm7.js +0 -824
- package/dist/Collections-M6DaHM2W.js +0 -441
- package/dist/Credit-BtRy-xoY.js +0 -214
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-D5DNTBSQ.js +0 -344
- package/dist/Experience-DGm1lnqj.js +0 -211
- package/dist/Game-B8-lG7qq.js +0 -250
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
- package/dist/Marketing-DtG3AIWr.js +0 -309
- package/dist/Member-K443-9Vy.js +0 -92
- package/dist/MemberList-CYXHXFTL.js +0 -1735
- package/dist/MemberOverview-C2n9oJZh.js +0 -58
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Bk2HLVmt.js +0 -203
- package/dist/Mission-CN5umXXA.js +0 -248
- package/dist/Point-XAm6H2p_.js +0 -220
- package/dist/Promotion-DsrA4KiE.js +0 -244
- package/dist/Segment-CZGGHoAu.js +0 -435
- package/dist/Setting-BjfxLKyp.js +0 -1870
- package/dist/Store-D_B-vhh3.js +0 -1513
- package/dist/StoreRewards-BjHffUKj.js +0 -429
- package/dist/Transaction-CdxzoKDG.js +0 -36
- package/dist/Voucher-B_9Nv1Mr.js +0 -485
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +0 -140
- package/dist/app--1Ks5Hms.js +0 -2974
- package/dist/dto-X0Eeujxx.js +0 -1151
- package/dist/index-BPNG8N-w.js +0 -11
- package/dist/index-DWM9MWGj.js +0 -28058
- package/dist/money-CrttVpCp.js +0 -15
- package/dist/number-CIndGU4O.js +0 -12
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { defineComponent as N, ref as h, computed as U, onMounted as j, resolveComponent as r, openBlock as l, createElementBlock as y, Fragment as b, createVNode as i, unref as t, createElementVNode as n, withCtx as v, renderList as E, createBlock as w, resolveDynamicComponent as H, toDisplayString as d, createCommentVNode as q, h as z } from "vue";
|
|
2
|
+
import { _ as G } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as J, components as Q } from "@feedmepos/ui-library";
|
|
4
|
+
import { u as W, p as X } from "./loading-Ds-yFYhc.js";
|
|
5
|
+
import { u as Y } from "./business-DSv8zM8C.js";
|
|
6
|
+
import { u as Z } from "./campaign-7y5qquHZ.js";
|
|
7
|
+
import { g as B, b as A } from "./dto-Ew1QwLci.js";
|
|
8
|
+
import { u as ee } from "./vue-i18n-BTlOChXs.js";
|
|
9
|
+
import { _ as te } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
+
import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYoaa_-x.js";
|
|
11
|
+
import { u as ae } from "./template-DouRWBpv.js";
|
|
12
|
+
import { c as _ } from "./index-C-SOz7jt.js";
|
|
13
|
+
const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-center justify-between w-full" }, ce = { class: "flex gap-8 overflow-x-auto" }, ie = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { key: 0 }, fe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, ge = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Re = /* @__PURE__ */ N({
|
|
14
|
+
__name: "Broadcast",
|
|
15
|
+
setup(he) {
|
|
16
|
+
const { t: s } = ee(), V = {
|
|
17
|
+
label: s("connect.campaign.common.createCampaign"),
|
|
18
|
+
value: "create",
|
|
19
|
+
isPrimary: !0,
|
|
20
|
+
prependIcon: "add"
|
|
21
|
+
}, D = ae("BROADCAST", J()), R = Y(), m = Z(), { global: L, minor: x } = W, T = h((/* @__PURE__ */ new Date()).toISOString()), c = h({
|
|
22
|
+
searchKey: "",
|
|
23
|
+
location: null
|
|
24
|
+
}), f = U(
|
|
25
|
+
() => m.campaigns.broadcast.filter(
|
|
26
|
+
(e) => !c.value.location || !e.targetLocation || e.targetLocation.includes(c.value.location)
|
|
27
|
+
)
|
|
28
|
+
), I = [
|
|
29
|
+
{
|
|
30
|
+
header: "Broadcast title",
|
|
31
|
+
accessorFn: (e) => e.name
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
header: "Status",
|
|
35
|
+
cell(e) {
|
|
36
|
+
return B(e.row.original);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
header: "Summary",
|
|
41
|
+
accessorFn: (e) => A(e)
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
header: "Message sent",
|
|
45
|
+
accessorFn: (e) => e.currentReceive ?? "N/A"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
header: "Actions",
|
|
49
|
+
cell(e) {
|
|
50
|
+
return z(Q.FmButton, {
|
|
51
|
+
variant: "tertiary",
|
|
52
|
+
icon: "delete",
|
|
53
|
+
iconColor: "neutral-gray-400",
|
|
54
|
+
onClick: (o) => {
|
|
55
|
+
o.stopPropagation(), S(e.row.original);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
], C = h();
|
|
61
|
+
async function S(e) {
|
|
62
|
+
await X.remove(
|
|
63
|
+
s("campaign.common.remove.confirm", { name: e.name })
|
|
64
|
+
) && await x(
|
|
65
|
+
async () => {
|
|
66
|
+
await _.delete(e._id), await m.read("BROADCAST");
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
message: s("campaign.common.remove.removing", { name: e.name }),
|
|
70
|
+
successMessage: s("campaign.common.remove.removed", { name: e.name })
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
async function g(e) {
|
|
75
|
+
T.value = (/* @__PURE__ */ new Date()).toISOString(), e ? await o() : D.open(async (p) => {
|
|
76
|
+
await o(p);
|
|
77
|
+
});
|
|
78
|
+
async function o(p) {
|
|
79
|
+
var u;
|
|
80
|
+
(u = C.value) == null || u.showSheet(
|
|
81
|
+
!0,
|
|
82
|
+
"BROADCAST",
|
|
83
|
+
e ? await _.readById(e._id) : void 0,
|
|
84
|
+
p
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
async function K(e) {
|
|
89
|
+
await x(
|
|
90
|
+
async () => {
|
|
91
|
+
e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await m.read("BROADCAST");
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
message: s(
|
|
95
|
+
`connect.campaign.broadcast.update.${e.campaign._id ? "updating" : "creating"}`
|
|
96
|
+
),
|
|
97
|
+
successMessage: s("connect.campaign.broadcast.update.success", {
|
|
98
|
+
action: e.campaign._id ? "updated" : "created"
|
|
99
|
+
})
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
return j(async () => {
|
|
104
|
+
await L(async () => {
|
|
105
|
+
await m.read("BROADCAST");
|
|
106
|
+
});
|
|
107
|
+
}), (e, o) => {
|
|
108
|
+
const p = r("FmPageHead"), u = r("FmSearch"), O = r("FmTable"), F = r("FmButton"), $ = r("FmListItem"), P = r("FmList"), M = r("FmCard");
|
|
109
|
+
return l(), y(b, null, [
|
|
110
|
+
i(p, {
|
|
111
|
+
title: t(s)("connect.campaign.broadcast.title"),
|
|
112
|
+
actions: t(f).length > 0 ? [V] : [],
|
|
113
|
+
"onClick:action": o[0] || (o[0] = () => g())
|
|
114
|
+
}, null, 8, ["title", "actions"]),
|
|
115
|
+
n("div", ne, [
|
|
116
|
+
i(u, {
|
|
117
|
+
modelValue: t(c).searchKey,
|
|
118
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => t(c).searchKey = a),
|
|
119
|
+
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
120
|
+
placeholder: t(s)("connect.campaign.common.search"),
|
|
121
|
+
collapsible: ""
|
|
122
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
123
|
+
t(m).campaigns.broadcast && t(m).campaigns.broadcast.length > 0 ? (l(), y(b, { key: 0 }, [
|
|
124
|
+
n("div", se, [
|
|
125
|
+
n("div", ce, [
|
|
126
|
+
i(te, {
|
|
127
|
+
modelValue: t(c).location,
|
|
128
|
+
"onUpdate:modelValue": o[2] || (o[2] = (a) => t(c).location = a),
|
|
129
|
+
label: `${t(s)("connect.campaign.common.location")}: `,
|
|
130
|
+
"show-item-label": !0,
|
|
131
|
+
icon: "storefront",
|
|
132
|
+
placement: "bottom-start",
|
|
133
|
+
items: t(R).locationItems
|
|
134
|
+
}, null, 8, ["modelValue", "label", "items"])
|
|
135
|
+
]),
|
|
136
|
+
i(u, {
|
|
137
|
+
modelValue: t(c).searchKey,
|
|
138
|
+
"onUpdate:modelValue": o[3] || (o[3] = (a) => t(c).searchKey = a),
|
|
139
|
+
class: "xs:hidden",
|
|
140
|
+
placeholder: "search",
|
|
141
|
+
collapsible: ""
|
|
142
|
+
}, null, 8, ["modelValue"])
|
|
143
|
+
]),
|
|
144
|
+
i(O, {
|
|
145
|
+
class: "xs:hidden",
|
|
146
|
+
"row-data": t(f),
|
|
147
|
+
"column-defs": I,
|
|
148
|
+
"search-value": t(c).searchKey,
|
|
149
|
+
"column-filter": [],
|
|
150
|
+
onRowClick: o[4] || (o[4] = (a) => g(a.original)),
|
|
151
|
+
"hide-footer": !0
|
|
152
|
+
}, null, 8, ["row-data", "search-value"]),
|
|
153
|
+
i(P, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
154
|
+
default: v(() => [
|
|
155
|
+
(l(!0), y(b, null, E(t(f).filter(
|
|
156
|
+
(a) => a.name.toLowerCase().includes(t(c).searchKey.toLowerCase())
|
|
157
|
+
), (a) => (l(), w($, {
|
|
158
|
+
key: a._id.toString(),
|
|
159
|
+
onClick: (k) => g(a),
|
|
160
|
+
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
161
|
+
}, {
|
|
162
|
+
default: v(() => [
|
|
163
|
+
n("div", ie, [
|
|
164
|
+
n("div", re, [
|
|
165
|
+
(l(), w(H(t(B)(a)))),
|
|
166
|
+
n("div", le, d(a.currentReceive ?? 0) + " sent ", 1)
|
|
167
|
+
]),
|
|
168
|
+
n("div", me, [
|
|
169
|
+
n("div", de, d(a.name), 1),
|
|
170
|
+
n("div", pe, d(t(A)(a)), 1)
|
|
171
|
+
])
|
|
172
|
+
]),
|
|
173
|
+
i(F, {
|
|
174
|
+
icon: "delete",
|
|
175
|
+
"icon-color": "neutral-gray-400",
|
|
176
|
+
variant: "tertiary",
|
|
177
|
+
onClick: (k) => (k.stopPropagation(), S(a))
|
|
178
|
+
}, null, 8, ["onClick"])
|
|
179
|
+
]),
|
|
180
|
+
_: 2
|
|
181
|
+
}, 1032, ["onClick"]))), 128))
|
|
182
|
+
]),
|
|
183
|
+
_: 1
|
|
184
|
+
}),
|
|
185
|
+
t(f).length == 0 ? (l(), y("div", ue, [
|
|
186
|
+
n("div", fe, d(t(s)("connect.campaign.common.noResults")), 1)
|
|
187
|
+
])) : q("", !0)
|
|
188
|
+
], 64)) : (l(), w(M, {
|
|
189
|
+
key: 1,
|
|
190
|
+
variant: "outlined",
|
|
191
|
+
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
192
|
+
}, {
|
|
193
|
+
default: v(() => [
|
|
194
|
+
o[6] || (o[6] = n("img", {
|
|
195
|
+
src: G,
|
|
196
|
+
class: "aspect-square w-[150px]"
|
|
197
|
+
}, null, -1)),
|
|
198
|
+
n("div", ge, [
|
|
199
|
+
n("div", ye, d(t(s)("connect.campaign.broadcast.create.title")), 1),
|
|
200
|
+
n("div", _e, d(t(s)("connect.campaign.broadcast.create.description")), 1)
|
|
201
|
+
]),
|
|
202
|
+
i(F, {
|
|
203
|
+
variant: "primary",
|
|
204
|
+
label: t(s)("connect.campaign.broadcast.create.button"),
|
|
205
|
+
icon: "add",
|
|
206
|
+
onClick: o[5] || (o[5] = (a) => g())
|
|
207
|
+
}, null, 8, ["label"])
|
|
208
|
+
]),
|
|
209
|
+
_: 1
|
|
210
|
+
})),
|
|
211
|
+
i(oe, {
|
|
212
|
+
ref_key: "sheetRef",
|
|
213
|
+
ref: C,
|
|
214
|
+
"onSubmit:modelValue": K
|
|
215
|
+
}, null, 512)
|
|
216
|
+
])
|
|
217
|
+
], 64);
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
export {
|
|
222
|
+
Re as default
|
|
223
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { R as RuleOperator, _ } from "./index-
|
|
2
|
-
import { i as isRuleGroup } from "./rule-builder-
|
|
1
|
+
import { R as RuleOperator, _ } from "./index-_3qBsogG.js";
|
|
2
|
+
import { i as isRuleGroup } from "./rule-builder-B6og27Q1.js";
|
|
3
3
|
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, createVNode, toDisplayString } from "vue";
|
|
4
4
|
import { useDialog } from "@feedmepos/ui-library";
|
|
5
|
-
import "./index-
|
|
6
|
-
import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
5
|
+
import "./index-DBMaUGYI.js";
|
|
6
|
+
import { a as F_RUNNABLE_CAMPAIGN_TYPE } from "./index-D-2nFLsg.js";
|
|
7
|
+
import "./index-DH_1nOJ_.js";
|
|
8
|
+
import "./index-z0IfdrZk.js";
|
|
9
|
+
import "./index-BQm0C3Jm.js";
|
|
10
|
+
import "./index-C0lpADCo.js";
|
|
11
11
|
function validateRule(data, r, date) {
|
|
12
12
|
const rules = new RuleOperator(date ?? /* @__PURE__ */ new Date());
|
|
13
13
|
function meetConditions(e) {
|
|
@@ -39,10 +39,7 @@ function validateRule(data, r, date) {
|
|
|
39
39
|
}
|
|
40
40
|
return isRuleGroup(r) ? evaluateRuleResult(getRuleResults(r), r.logic) : meetConditions(r);
|
|
41
41
|
}
|
|
42
|
-
const _hoisted_1 =
|
|
43
|
-
/* @__PURE__ */ createElementVNode("div", { class: "fm-typo-en-title-sm-800" }, "Add benefit"),
|
|
44
|
-
/* @__PURE__ */ createElementVNode("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Select the benefit type that you want to reward the selected tier. ")
|
|
45
|
-
], -1), _hoisted_2 = { class: "flex flex-col h-full space-y-24" }, _hoisted_3 = { class: "fm-typo-en-title-sm-600" }, _hoisted_4 = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
|
+
const _hoisted_1 = { class: "flex flex-col h-full space-y-24" }, _hoisted_2 = { class: "fm-typo-en-title-sm-600" }, _hoisted_3 = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
46
43
|
__name: "CampaignTypeDialog",
|
|
47
44
|
props: {
|
|
48
45
|
onSelect: {
|
|
@@ -86,21 +83,24 @@ const _hoisted_1 = /* @__PURE__ */ createElementVNode("div", { class: "" }, [
|
|
|
86
83
|
function l(i) {
|
|
87
84
|
n.close(), o.onSelect(i);
|
|
88
85
|
}
|
|
89
|
-
return (i,
|
|
90
|
-
const
|
|
91
|
-
return openBlock(), createBlock(
|
|
86
|
+
return (i, a) => {
|
|
87
|
+
const c = resolveComponent("FmCard");
|
|
88
|
+
return openBlock(), createBlock(c, { class: "p-24 space-y-16" }, {
|
|
92
89
|
default: withCtx(() => [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
(
|
|
90
|
+
a[0] || (a[0] = createElementVNode("div", { class: "" }, [
|
|
91
|
+
createElementVNode("div", { class: "fm-typo-en-title-sm-800" }, "Add benefit"),
|
|
92
|
+
createElementVNode("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Select the benefit type that you want to reward the selected tier. ")
|
|
93
|
+
], -1)),
|
|
94
|
+
createElementVNode("div", _hoisted_1, [
|
|
95
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(t, (s) => createVNode(c, {
|
|
96
96
|
variant: "outlined",
|
|
97
97
|
key: s.value,
|
|
98
98
|
onClick: (u) => l(s.value),
|
|
99
99
|
class: "p-16 space-y-8 cursor-pointer"
|
|
100
100
|
}, {
|
|
101
101
|
default: withCtx(() => [
|
|
102
|
-
createElementVNode("div",
|
|
103
|
-
createElementVNode("div",
|
|
102
|
+
createElementVNode("div", _hoisted_2, toDisplayString(s.title), 1),
|
|
103
|
+
createElementVNode("div", _hoisted_3, toDisplayString(s.description), 1)
|
|
104
104
|
]),
|
|
105
105
|
_: 2
|
|
106
106
|
}, 1032, ["onClick"])), 64))
|