@feedmepos/mf-connect 0.1.0-beta.8 → 0.1.0-beta.80
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-C84B4MSt.js +427 -0
- package/dist/{App-SRz4257n.js → App-CnbbBVSn.js} +441 -420
- package/dist/AuditLogs-KOxiG5Q0.js +1887 -0
- package/dist/Bin-BBSQDzD4.js +166 -0
- package/dist/{Broadcast-DmkrJGp2.js → Broadcast-DlvPEqW7.js} +56 -54
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CZXSxA9u.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-M1Za3MaN.js} +14 -10
- package/dist/Card-BluWm_EY.js +905 -0
- package/dist/Collections-DtHJpxRT.js +464 -0
- package/dist/{Credit-CcNrq9qk.js → Credit-Be2pcBVn.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-sqq_sO_a.js +2182 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BIZDiLns.js → EffectSheet.vue_vue_type_style_index_0_lang-CBsYx54P.js} +49 -49
- package/dist/{Experience-DNsQLzDH.js → Experience-CLPyvgs0.js} +32 -30
- package/dist/FileSaver.min-NlMItPOc.js +74 -0
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
- package/dist/Game-5kEG7o4J.js +278 -0
- package/dist/Index-BSZi21Wo.js +259 -0
- package/dist/Marketing-CE1Sq3Pb.js +20071 -0
- package/dist/Member-DaBqmOYX.js +287 -0
- package/dist/MemberList-jIriR6B0.js +1606 -0
- package/dist/MemberTransactions-BGEZwpPO.js +45 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-GCEQCVOt.js → MessageInput.vue_vue_type_script_setup_true_lang-CSlafowP.js} +152 -137
- package/dist/Mission-BOByUsYC.js +296 -0
- package/dist/Overview-BQQs8TsL.js +1079 -0
- package/dist/{Point-Ck8EG_3k.js → Point-BuRBh_HC.js} +55 -53
- package/dist/Promotion-Py2WWNt0.js +289 -0
- package/dist/Queue-On8_svkl.js +260 -0
- package/dist/Record-CSWkHs9Y.js +341 -0
- package/dist/Reward-BLVyFkAH.js +442 -0
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-BW8kuoLt.js +150 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DC8JEmEC.js +1728 -0
- package/dist/Segment-BjBskgf9.js +880 -0
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-CrVw6j2M.js +181 -0
- package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-oaAVUxO4.js +188 -0
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-CKOTgzL-.js +147 -0
- package/dist/Setting-CAMlhgGd.js +1932 -0
- package/dist/Store-0qvNbHne.js +1842 -0
- package/dist/StoreRewards-CjcHvUNa.js +423 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CdZ7QIaf.js +1029 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DrzmjYmU.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-vJaZIDrx.js} +1 -1
- package/dist/{Tier-CJ9-d8Zg.js → Tier-D_pHKGSv.js} +350 -334
- package/dist/{Title-DZCpvg4q.js → Title-DgdtJ87h.js} +245 -222
- package/dist/{Transaction-DpnTxlbf.js → Transaction-CKlLWcjS.js} +2 -2
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-2GOvljvv.js +130 -0
- package/dist/Voucher-Cg6zQSAy.js +354 -0
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-rpjQkheM.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-SukfoJpU.js → ZodTextField.vue_vue_type_script_setup_true_lang-BRdY-P8U.js} +1 -1
- package/dist/{app-DzAexOqx.js → app-CScRp4SA.js} +2709 -1265
- package/dist/app-jGYefKeR.js +33357 -0
- package/dist/app.js +1 -1
- package/dist/business-DYhO4gjc.js +79 -0
- package/dist/campaign-BgXy1Ngd.js +1810 -0
- package/dist/{campaign-winsqufa.js → campaign-CZ5pMrUu.js} +2 -2
- package/dist/campaign.enum-CWBDlzqp.js +20 -0
- package/dist/campaign.fn-HHZ5mQKe.js +758 -0
- package/dist/collectible.enum-MvoLHpuA.js +19 -0
- package/dist/{collection.fn-CI5Llblg.js → collection.fn-BHUoLJPj.js} +2 -2
- package/dist/dto-DXdR0em1.js +214 -0
- package/dist/{effect-CdkrIYgX.js → effect-HLuo1A_f.js} +33 -16
- package/dist/email-addresses-DU4ehcHM.js +705 -0
- package/dist/{export-DGxfief1.js → export-BDRHAxZr.js} +5 -5
- package/dist/{helper-B8RqcTNu.js → helper-JhFOw8n-.js} +1 -1
- package/dist/{index-OzicErwL.js → index-BG_GpbnZ.js} +24 -21
- package/dist/{index-Cw_aXFH6.js → index-BZWr1bgh.js} +269 -173
- package/dist/{loading-DuEFUCwF.js → index-Bs-tzd5F.js} +4609 -4886
- package/dist/{index-wzdbEEcZ.js → index-C2nNcNjw.js} +1 -1
- package/dist/index-CIF8DeC8.js +54 -0
- package/dist/{index-HZC9LLAX.js → index-CqT8uK3R.js} +48 -4
- package/dist/index-CsaQJMAR.js +66 -0
- package/dist/{index-9w43_U1v.js → index-DVj1MyZp.js} +1506 -1480
- package/dist/{index-CZgQVRsm.js → index-GmHsjd7O.js} +1 -1
- package/dist/index-QDEKR2Rj.js +115 -0
- package/dist/{index-A34xEz20.js → index-cYKPj4fA.js} +2246 -871
- package/dist/index-eRBO4PzZ.js +56 -0
- package/dist/index-fS6fmvFv.js +29556 -0
- package/dist/index-l8E6r07W.js +32 -0
- package/dist/index-vh86FiIQ.js +10 -0
- package/dist/{index.esm2017-CppSMh_U.js → index.esm2017-B-YrQ0sw.js} +206 -206
- package/dist/loading-C09t0mFj.js +71 -0
- package/dist/{membership-nsMtWeTC.js → membership-tHAn3VRs.js} +80 -66
- package/dist/money-DYVCca49.js +15 -0
- package/dist/number-VYuUME2F.js +12 -0
- package/dist/objectid-BTO4csVa.js +145 -0
- package/dist/plugins-CXgvBDMF.js +208 -0
- package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
- package/dist/reward-DX9TZrk4.js +36 -0
- package/dist/{rule-CPIMqt1h.js → rule-CbCZqulx.js} +185 -178
- package/dist/{rule-builder-CSs5XRKP.js → rule-builder-J8K_fjI-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-CJZoYavu.js → template-BtYJpEBa.js} +5 -5
- package/dist/trigger-D6dpZFSN.js +144 -0
- package/dist/user-C0QvWk-o.js +54 -0
- package/dist/vue-i18n-cz2_cPSz.js +2365 -0
- package/dist/{xlsx-BZlnYinX.js → xlsx-BIPQrY49.js} +1 -1
- package/package.json +11 -7
- package/dist/Analytic-5QztrYSp.js +0 -622
- package/dist/Card-BsjFTVsH.js +0 -825
- package/dist/Collections-7wqZHOax.js +0 -453
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Cuklmxur.js +0 -2813
- package/dist/Game-DlzDerT7.js +0 -255
- package/dist/Marketing-BqhpaG4o.js +0 -316
- package/dist/Member-AFgZcdtz.js +0 -69
- package/dist/MemberList-BKgrLz2C.js +0 -1733
- package/dist/MemberTransactions-BwT3zE2a.js +0 -38
- package/dist/Mission-BTAia7AS.js +0 -261
- package/dist/Promotion-0v3kvsK3.js +0 -247
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BkFm7tXq.js +0 -1753
- package/dist/Segment-BenLupqV.js +0 -437
- package/dist/Setting-0fpREqpJ.js +0 -1901
- package/dist/Store-BDGwe4ar.js +0 -1511
- package/dist/StoreRewards-TDZt9H1V.js +0 -401
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BqpsMcl1.js +0 -890
- package/dist/Voucher-DsP_rh8I.js +0 -490
- package/dist/app-Cg2pTZJK.js +0 -53428
- package/dist/business-Cw_qGw8y.js +0 -78
- package/dist/dto-ozu1smC3.js +0 -2770
- package/dist/index-BLACZ3-L.js +0 -206
- package/dist/index-BaozRfWB.js +0 -762
- package/dist/index-CjVmULNd.js +0 -99
- package/dist/index-CuvNtC_M.js +0 -61
- package/dist/index-DAEmawcj.js +0 -298
- package/dist/index-Oxr-mU6h.js +0 -29193
- package/dist/money-BGZPFtUc.js +0 -15
- package/dist/number-4J0xvXP9.js +0 -12
- package/dist/user-Bm4KttFq.js +0 -37
- package/dist/vue-i18n-CCyiVzOE.js +0 -2365
|
@@ -0,0 +1,296 @@
|
|
|
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
|
+
import { _ as J } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { u as Q } from "./loading-C09t0mFj.js";
|
|
4
|
+
import { g as X, a as B, b as P } from "./campaign-BgXy1Ngd.js";
|
|
5
|
+
import { a as Y, p as Z } from "./plugins-CXgvBDMF.js";
|
|
6
|
+
import { u as ee } from "./business-DYhO4gjc.js";
|
|
7
|
+
import { u as oe } from "./campaign-CZ5pMrUu.js";
|
|
8
|
+
import { useDialog as te, components as _ } from "@feedmepos/ui-library";
|
|
9
|
+
import { _ as ne } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
+
import { u as ae } from "./template-BtYJpEBa.js";
|
|
11
|
+
import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-sqq_sO_a.js";
|
|
12
|
+
import { s as ie } from "./index-CsaQJMAR.js";
|
|
13
|
+
import { u as ce } from "./vue-i18n-cz2_cPSz.js";
|
|
14
|
+
import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-oaAVUxO4.js";
|
|
15
|
+
import { c as h } from "./index-QDEKR2Rj.js";
|
|
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 = { class: "flex flex-col gap-16 text-center" }, xe = { class: "fm-typo-en-title-sm-800" }, ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Oe = /* @__PURE__ */ H({
|
|
17
|
+
__name: "Mission",
|
|
18
|
+
setup(Ce) {
|
|
19
|
+
const { t: n } = ce(), R = {
|
|
20
|
+
label: n("connect.program.common.actions.create", {
|
|
21
|
+
type: n("connect.program.mission.title").toLowerCase()
|
|
22
|
+
}),
|
|
23
|
+
value: "create",
|
|
24
|
+
isPrimary: !0,
|
|
25
|
+
prependIcon: "add"
|
|
26
|
+
}, S = te(), K = ae("MISSION", S), N = ee(), d = oe(), { global: T, minor: F } = Q, i = w({
|
|
27
|
+
searchKey: "",
|
|
28
|
+
location: null
|
|
29
|
+
}), f = q(
|
|
30
|
+
() => d.campaigns.mission.filter(
|
|
31
|
+
(e) => !i.value.location || !e.targetLocation || e.targetLocation.includes(i.value.location)
|
|
32
|
+
)
|
|
33
|
+
), U = [
|
|
34
|
+
{
|
|
35
|
+
header: n("connect.program.common.table.title"),
|
|
36
|
+
accessorKey: "name",
|
|
37
|
+
// accessorFn: (v) => v.name,
|
|
38
|
+
cell(e) {
|
|
39
|
+
return l("div", { class: "flex items-center justify-between gap-4" }, [
|
|
40
|
+
l("div", { class: "flex items-center" }, [
|
|
41
|
+
l(
|
|
42
|
+
_.FmTooltip,
|
|
43
|
+
{
|
|
44
|
+
content: e.row.original._id,
|
|
45
|
+
onClick: (o) => {
|
|
46
|
+
o.stopPropagation(), Y(e.row.original._id);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
[
|
|
50
|
+
l(_.FmIcon, {
|
|
51
|
+
name: "info",
|
|
52
|
+
outline: !0,
|
|
53
|
+
size: "sm"
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
)
|
|
57
|
+
]),
|
|
58
|
+
l("div", { class: "flex-1" }, e.row.original.name)
|
|
59
|
+
]);
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
header: n("connect.campaign.mission.type"),
|
|
64
|
+
accessorFn: (e) => ie(e.mission.type)
|
|
65
|
+
//v.effect,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
header: n("connect.program.common.table.status"),
|
|
69
|
+
accessorFn: (e) => X(e),
|
|
70
|
+
cell(e) {
|
|
71
|
+
return B(e.row.original);
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
header: n("connect.program.common.table.summary"),
|
|
76
|
+
accessorFn: (e) => P(e)
|
|
77
|
+
//v.effect,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
header: n("connect.campaign.mission.received"),
|
|
81
|
+
accessorFn: (e) => {
|
|
82
|
+
var o;
|
|
83
|
+
return ((o = e == null ? void 0 : e.pf_collectible) == null ? void 0 : o.currentReceive) ?? 0;
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
header: n("connect.program.common.table.actions"),
|
|
88
|
+
cell(e) {
|
|
89
|
+
return l("div", { class: "flex items-center gap-8" }, [
|
|
90
|
+
l(_.FmButton, {
|
|
91
|
+
variant: "tertiary",
|
|
92
|
+
icon: "send",
|
|
93
|
+
iconColor: "neutral-gray-400",
|
|
94
|
+
onClick: (o) => {
|
|
95
|
+
o.stopPropagation(), A(e.row.original);
|
|
96
|
+
}
|
|
97
|
+
}),
|
|
98
|
+
l(_.FmButton, {
|
|
99
|
+
variant: "tertiary",
|
|
100
|
+
icon: "delete",
|
|
101
|
+
iconColor: "neutral-gray-400",
|
|
102
|
+
onClick: (o) => {
|
|
103
|
+
o.stopPropagation(), V(e.row.original);
|
|
104
|
+
}
|
|
105
|
+
})
|
|
106
|
+
]);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
], k = w(), I = w();
|
|
110
|
+
async function V(e) {
|
|
111
|
+
await Z.remove(
|
|
112
|
+
n("connect.program.common.remove.confirm", { name: e.name })
|
|
113
|
+
) && await F(
|
|
114
|
+
async () => {
|
|
115
|
+
await h.delete(e._id), await d.read("MISSION");
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
message: n("connect.program.common.remove.removing", { name: e.name }),
|
|
119
|
+
successMessage: n("connect.program.common.remove.removed", {
|
|
120
|
+
name: e.name
|
|
121
|
+
})
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
async function y(e) {
|
|
126
|
+
e ? await o() : K.open(async (r) => {
|
|
127
|
+
await o(r);
|
|
128
|
+
});
|
|
129
|
+
async function o(r) {
|
|
130
|
+
var g;
|
|
131
|
+
(g = k.value) == null || g.showSheet(
|
|
132
|
+
!0,
|
|
133
|
+
"MISSION",
|
|
134
|
+
e ? await h.readById(e._id) : void 0,
|
|
135
|
+
r
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
async function O(e) {
|
|
140
|
+
e.campaign._id && e.campaign.rewards.some((o) => o.type === "VOUCHER") && await new Promise((o) => {
|
|
141
|
+
S.open({
|
|
142
|
+
title: "Confirmation",
|
|
143
|
+
message: "This will change all future vouchers? Would you like to update previous claimed vouchers expiry date and discount?",
|
|
144
|
+
primaryActions: { text: "Update all", close: !0 },
|
|
145
|
+
secondaryActions: { text: "Update future only", close: !0 }
|
|
146
|
+
}).onPrimary(async () => {
|
|
147
|
+
var r;
|
|
148
|
+
e.updateCollections = !0, (r = window.top) == null || r.postMessage("updateAllVoucher", "*"), o();
|
|
149
|
+
}).onSecondary(async () => {
|
|
150
|
+
o();
|
|
151
|
+
});
|
|
152
|
+
}), await F(
|
|
153
|
+
async () => {
|
|
154
|
+
e.campaign._id ? await h.update(e.campaign._id, e) : await h.create(e), await d.read("MISSION");
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
message: n(
|
|
158
|
+
e.campaign._id ? "connect.program.common.update.updating" : "connect.program.common.update.creating",
|
|
159
|
+
{ type: "Mission" }
|
|
160
|
+
),
|
|
161
|
+
successMessage: n("connect.program.common.update.success", {
|
|
162
|
+
type: "Mission",
|
|
163
|
+
action: e.campaign._id ? "updated" : "created"
|
|
164
|
+
})
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
function A(e) {
|
|
169
|
+
var o;
|
|
170
|
+
(o = I.value) == null || o.showSheet({
|
|
171
|
+
campaign: e
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
return z(async () => {
|
|
175
|
+
await T(async () => {
|
|
176
|
+
await d.read("MISSION"), console.log(f);
|
|
177
|
+
});
|
|
178
|
+
}), (e, o) => {
|
|
179
|
+
const r = m("FmPageHead"), g = m("FmSearch"), D = m("FmTable"), M = m("FmButton"), $ = m("FmListItem"), j = m("FmList"), E = m("FmCard");
|
|
180
|
+
return p(), x(v, null, [
|
|
181
|
+
c(r, {
|
|
182
|
+
title: t(n)("connect.campaign.mission.title"),
|
|
183
|
+
actions: t(f).length > 0 ? [R] : [],
|
|
184
|
+
"onClick:action": o[0] || (o[0] = () => y())
|
|
185
|
+
}, null, 8, ["title", "actions"]),
|
|
186
|
+
s("div", le, [
|
|
187
|
+
c(g, {
|
|
188
|
+
modelValue: t(i).searchKey,
|
|
189
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => t(i).searchKey = a),
|
|
190
|
+
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
191
|
+
placeholder: t(n)("connect.program.common.search"),
|
|
192
|
+
collapsible: ""
|
|
193
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
194
|
+
t(d).campaigns.mission && t(d).campaigns.mission.length > 0 ? (p(), x(v, { key: 0 }, [
|
|
195
|
+
s("div", me, [
|
|
196
|
+
s("div", de, [
|
|
197
|
+
c(ne, {
|
|
198
|
+
modelValue: t(i).location,
|
|
199
|
+
"onUpdate:modelValue": o[2] || (o[2] = (a) => t(i).location = a),
|
|
200
|
+
label: t(n)("connect.program.common.location"),
|
|
201
|
+
"show-item-label": !0,
|
|
202
|
+
icon: "storefront",
|
|
203
|
+
placement: "bottom-start",
|
|
204
|
+
items: t(N).locationItems
|
|
205
|
+
}, null, 8, ["modelValue", "label", "items"])
|
|
206
|
+
]),
|
|
207
|
+
c(g, {
|
|
208
|
+
modelValue: t(i).searchKey,
|
|
209
|
+
"onUpdate:modelValue": o[3] || (o[3] = (a) => t(i).searchKey = a),
|
|
210
|
+
class: "xs:hidden",
|
|
211
|
+
placeholder: "search",
|
|
212
|
+
collapsible: ""
|
|
213
|
+
}, null, 8, ["modelValue"])
|
|
214
|
+
]),
|
|
215
|
+
c(D, {
|
|
216
|
+
class: "xs:hidden",
|
|
217
|
+
"row-data": t(f),
|
|
218
|
+
"column-defs": U,
|
|
219
|
+
"search-value": t(i).searchKey,
|
|
220
|
+
"column-filter": [],
|
|
221
|
+
onRowClick: o[4] || (o[4] = (a) => y(a.original)),
|
|
222
|
+
"hide-footer": t(f).length < 10
|
|
223
|
+
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
224
|
+
c(j, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
225
|
+
default: C(() => [
|
|
226
|
+
(p(!0), x(v, null, W(t(f).filter(
|
|
227
|
+
(a) => a.name.toLowerCase().includes(t(i).searchKey.toLowerCase())
|
|
228
|
+
), (a) => (p(), b($, {
|
|
229
|
+
key: a._id.toString(),
|
|
230
|
+
onClick: (L) => y(a),
|
|
231
|
+
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
232
|
+
}, {
|
|
233
|
+
default: C(() => [
|
|
234
|
+
s("div", pe, [
|
|
235
|
+
s("div", ue, [
|
|
236
|
+
(p(), b(G(t(B)(a)))),
|
|
237
|
+
s("div", fe, u(a.currentReceive ?? 0) + " used ", 1)
|
|
238
|
+
]),
|
|
239
|
+
s("div", ge, [
|
|
240
|
+
s("div", ye, u(a.name), 1),
|
|
241
|
+
s("div", _e, u(t(P)(a)), 1)
|
|
242
|
+
]),
|
|
243
|
+
s("div", he, " Token received: " + u(a.currentReceive ?? 0), 1)
|
|
244
|
+
]),
|
|
245
|
+
c(M, {
|
|
246
|
+
icon: "delete",
|
|
247
|
+
"icon-color": "neutral-gray-400",
|
|
248
|
+
variant: "tertiary",
|
|
249
|
+
onClick: (L) => (L.stopPropagation(), V(a))
|
|
250
|
+
}, null, 8, ["onClick"])
|
|
251
|
+
]),
|
|
252
|
+
_: 2
|
|
253
|
+
}, 1032, ["onClick"]))), 128))
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
})
|
|
257
|
+
], 64)) : (p(), b(E, {
|
|
258
|
+
key: 1,
|
|
259
|
+
variant: "outlined",
|
|
260
|
+
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
261
|
+
}, {
|
|
262
|
+
default: C(() => [
|
|
263
|
+
o[6] || (o[6] = s("img", {
|
|
264
|
+
src: J,
|
|
265
|
+
class: "aspect-square w-[150px]"
|
|
266
|
+
}, null, -1)),
|
|
267
|
+
s("div", we, [
|
|
268
|
+
s("div", xe, u(t(n)("connect.campaign.mission.createProgram")), 1),
|
|
269
|
+
s("div", ve, u(t(n)("connect.campaign.mission.description")), 1)
|
|
270
|
+
]),
|
|
271
|
+
c(M, {
|
|
272
|
+
variant: "primary",
|
|
273
|
+
label: t(n)("connect.campaign.mission.create"),
|
|
274
|
+
icon: "add",
|
|
275
|
+
onClick: o[5] || (o[5] = (a) => y())
|
|
276
|
+
}, null, 8, ["label"])
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
279
|
+
})),
|
|
280
|
+
c(se, {
|
|
281
|
+
ref_key: "sheetRef",
|
|
282
|
+
ref: k,
|
|
283
|
+
"onSubmit:modelValue": O
|
|
284
|
+
}, null, 512),
|
|
285
|
+
c(re, {
|
|
286
|
+
ref_key: "sendCollectionSheetRef",
|
|
287
|
+
ref: I
|
|
288
|
+
}, null, 512)
|
|
289
|
+
])
|
|
290
|
+
], 64);
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
export {
|
|
295
|
+
Oe as default
|
|
296
|
+
};
|