@feedmepos/mf-connect 0.1.38-beta.73 → 0.1.38-beta.74
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/package.json +1 -1
- package/dist/Analytic-gGjm5ome.js +0 -761
- package/dist/App-BDz9mw-6.js +0 -4638
- package/dist/AuditLogs-4x90ZjjY.js +0 -1991
- package/dist/Bin-Bby2f42O.js +0 -166
- package/dist/Broadcast-eYN2AqFC.js +0 -267
- package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B-fO9-Hb.js +0 -121
- package/dist/Card-Cz-pLt7X.js +0 -909
- package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +0 -97
- package/dist/Collections-CgfXuVA1.js +0 -540
- package/dist/Credit-Lc6B2oQ9.js +0 -261
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +0 -128
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bm7XTR7o.js +0 -3167
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-Cp5nSLEX.js +0 -351
- package/dist/Experience-Ca94IJBt.js +0 -260
- package/dist/FileSaver.min-BThLVsSf.js +0 -74
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
- package/dist/Game-BYLYDTU9.js +0 -331
- package/dist/GenerateMaterial-CUoG6uyI.js +0 -589
- package/dist/Grab-DZ_LkTly.js +0 -301
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-CI4kP9ul.js +0 -145
- package/dist/Index-BZ2r8x0t.js +0 -259
- package/dist/JsonViewer-v8_C7l5N.js +0 -87
- package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-BLKlXW1b.js +0 -18737
- package/dist/MainLayout-BfGSSVMW.js +0 -41
- package/dist/Marketing-DYg0J1xG.js +0 -145
- package/dist/MarketingMaterialEdit-B--Kck7j.js +0 -746
- package/dist/Member-By5QEJxn.js +0 -280
- package/dist/MemberList-D49bMmGJ.js +0 -1600
- package/dist/MemberOverview-wL_ailso.js +0 -58
- package/dist/MemberTransactions-Cz9XENK1.js +0 -45
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-IlFjM-Y5.js +0 -60798
- package/dist/Mission-Cvl-V7c8.js +0 -335
- package/dist/Overview-lu82lUJp.js +0 -1078
- package/dist/Point-C65YFhOB.js +0 -263
- package/dist/Promotion-DQCrKO6a.js +0 -397
- package/dist/Queue-DR5lfSMi.js +0 -259
- package/dist/Record-BCt42_VZ.js +0 -341
- package/dist/Reward-7aOnjmMm.js +0 -442
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-BPgjr91S.js +0 -149
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Bp5jnlFr.js +0 -1912
- package/dist/Segment-DiYwfb8M.js +0 -881
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-ydM5ypC0.js +0 -181
- package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-BRs7pw0l.js +0 -188
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-DU8AAPFD.js +0 -147
- package/dist/Setting-k6xShcs8.js +0 -1999
- package/dist/SettingAdvertisements-DQa_jXYM.js +0 -263
- package/dist/Store-B6lYBpsm.js +0 -1995
- package/dist/StoreRewards-Cqd399q8.js +0 -534
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Wv_SHwmo.js +0 -1128
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Bi1o4YAz.js +0 -7005
- package/dist/Tier-CXXImaDx.js +0 -969
- package/dist/Title-CTxNCmBW.js +0 -567
- package/dist/Transaction-DonaHVzF.js +0 -39
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-DbRVYccO.js +0 -130
- package/dist/Voucher-Bso_Mjlg.js +0 -422
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DNvmaJk9.js +0 -421
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-KHZ3-THo.js +0 -56
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-DKrmktFJ.js +0 -59071
- package/dist/app-wDQR6dpb.js +0 -39
- package/dist/app.js +0 -7
- package/dist/business-Dd73TVX5.js +0 -82
- package/dist/campaign-BUQHH4KL.js +0 -100
- package/dist/campaign-CpzFl8Vr.js +0 -4
- package/dist/campaign-DkJOyF24.js +0 -253
- package/dist/campaign.enum-C8vJuDAq.js +0 -26
- package/dist/campaign.fn-DJSpfhZH.js +0 -776
- package/dist/collectible.enum-D3W0TwoJ.js +0 -19
- package/dist/collection.fn-YzgpOmG0.js +0 -26
- package/dist/dto-sceHHLGr.js +0 -222
- package/dist/duplicateCampaign-CDulKxgJ.js +0 -51
- package/dist/effect-BSgfR9iB.js +0 -89
- package/dist/email-addresses-D_fyxOof.js +0 -705
- package/dist/export-OxiqL1B7.js +0 -96
- package/dist/feedme.ico +0 -0
- package/dist/helper-CzurWUe4.js +0 -86
- package/dist/index-BF0hGAkO.js +0 -32
- package/dist/index-BGMhsZnB.js +0 -124
- package/dist/index-B_QGGlMD.js +0 -54
- package/dist/index-BbTHqh58.js +0 -31
- package/dist/index-BqQas5Sx.js +0 -2428
- package/dist/index-BtMmY44D.js +0 -36
- package/dist/index-CAUVTn1I.js +0 -67
- package/dist/index-Cg-sBBf_.js +0 -3419
- package/dist/index-CuvNtC_M.js +0 -61
- package/dist/index-Cyt6eKEF.js +0 -8912
- package/dist/index-Dw3ew6qN.js +0 -85
- package/dist/index-IBvUTxqC.js +0 -30289
- package/dist/index-pkwrUX33.js +0 -28897
- package/dist/index-tYmg4eyJ.js +0 -3
- package/dist/index-vh86FiIQ.js +0 -10
- package/dist/index.esm2017-5xGykkgL.js +0 -3069
- package/dist/loading-CvHPT80F.js +0 -215
- package/dist/lodash-Q-_FPkpI.js +0 -3678
- package/dist/membership-CU-wFWan.js +0 -235
- package/dist/moment-D7p2TMB-.js +0 -2583
- package/dist/money-CzlfhEoe.js +0 -15
- package/dist/number-Bee2M41N.js +0 -12
- package/dist/object-qECH92oz.js +0 -26
- package/dist/objectId-dwaoBfJX.js +0 -7
- package/dist/objectid-DRJQv7AY.js +0 -145
- package/dist/plugins-CAdlnev8.js +0 -1817
- package/dist/remy-D_Deb3ue.js +0 -13
- package/dist/reward-BhlYd0FB.js +0 -36
- package/dist/rule-Ccvu41A_.js +0 -1969
- package/dist/rule-builder-B968rIyS.js +0 -102
- package/dist/style.css +0 -13
- package/dist/template-OZfyPJVE.js +0 -188
- package/dist/tier-BJDhpH6X.js +0 -4
- package/dist/tiers/tier=1.png +0 -0
- package/dist/tiers/tier=2.png +0 -0
- package/dist/tiers/tier=3.png +0 -0
- package/dist/tiers/tier=4.png +0 -0
- package/dist/timezone-CopuRbDK.js +0 -1154
- package/dist/titles/type=diamond.png +0 -0
- package/dist/titles/type=drinks.png +0 -0
- package/dist/titles/type=food.png +0 -0
- package/dist/titles/type=heart.png +0 -0
- package/dist/titles/type=medal.png +0 -0
- package/dist/titles/type=spend.png +0 -0
- package/dist/titles/type=thank-you.png +0 -0
- package/dist/titles/type=thumbs-up.png +0 -0
- package/dist/titles/type=years.png +0 -0
- package/dist/trigger-BtQI81FL.js +0 -213
- package/dist/tslib.es6-BCqqvLQ_.js +0 -44
- package/dist/type_drinks-D6jnpvwV.js +0 -4
- package/dist/usePagination-Ciom38dd.js +0 -266
- package/dist/user-BOW0ixDK.js +0 -55
- package/dist/vue-i18n-jTYKTJq1.js +0 -2365
- package/dist/xlsx-YD3LYwip.js +0 -15491
- package/dist/zod-B_G9o5PC.js +0 -91
package/dist/Mission-Cvl-V7c8.js
DELETED
|
@@ -1,335 +0,0 @@
|
|
|
1
|
-
import { defineComponent as W, ref as v, computed as G, h as m, onMounted as J, resolveComponent as d, openBlock as u, createElementBlock as S, Fragment as k, createVNode as c, unref as t, createElementVNode as i, withCtx as F, renderList as Q, createBlock as I, resolveDynamicComponent as X, toDisplayString as g } from "vue";
|
|
2
|
-
import { _ as Y } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { u as Z } from "./loading-CvHPT80F.js";
|
|
4
|
-
import { a as ee, b as D, c as K } from "./campaign-DkJOyF24.js";
|
|
5
|
-
import { c as oe, p as te } from "./duplicateCampaign-CDulKxgJ.js";
|
|
6
|
-
import { a as ne, p as ae } from "./plugins-CAdlnev8.js";
|
|
7
|
-
import { u as ie } from "./business-Dd73TVX5.js";
|
|
8
|
-
import { u as se } from "./campaign-BUQHH4KL.js";
|
|
9
|
-
import { useDialog as re, components as y } from "@feedmepos/ui-library";
|
|
10
|
-
import { _ as ce } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
11
|
-
import { u as le } from "./template-OZfyPJVE.js";
|
|
12
|
-
import { _ as me } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bm7XTR7o.js";
|
|
13
|
-
import { s as de } from "./index-CuvNtC_M.js";
|
|
14
|
-
import { u as pe } from "./vue-i18n-jTYKTJq1.js";
|
|
15
|
-
import { _ as ue } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-BRs7pw0l.js";
|
|
16
|
-
import { c as _ } from "./index-BGMhsZnB.js";
|
|
17
|
-
const ge = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-center justify-between w-full" }, ye = { class: "flex gap-8 overflow-x-auto" }, _e = { class: "space-y-8" }, he = { class: "flex w-full gap-4 items-center" }, we = { class: "space-y-4" }, Ce = { class: "fm-typo-en-body-lg-600" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ve = { class: "flex items-center gap-8" }, Se = { class: "flex flex-col gap-16 text-center" }, ke = { class: "fm-typo-en-title-sm-800" }, Fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, He = /* @__PURE__ */ W({
|
|
18
|
-
__name: "Mission",
|
|
19
|
-
setup(Ie) {
|
|
20
|
-
const { t: a } = pe(), N = {
|
|
21
|
-
label: a("connect.program.common.actions.create", {
|
|
22
|
-
type: a("connect.program.mission.title").toLowerCase()
|
|
23
|
-
}),
|
|
24
|
-
value: "create",
|
|
25
|
-
isPrimary: !0,
|
|
26
|
-
prependIcon: "add"
|
|
27
|
-
}, L = re(), O = le("MISSION", L), R = ie(), p = se(), { global: A, minor: V } = Z, l = v({
|
|
28
|
-
searchKey: "",
|
|
29
|
-
location: []
|
|
30
|
-
});
|
|
31
|
-
function U(e) {
|
|
32
|
-
const o = l.value.location;
|
|
33
|
-
return !o || o.length === 0 || !e.targetLocation ? !0 : Array.isArray(o) ? o.some((s) => {
|
|
34
|
-
var r;
|
|
35
|
-
return (r = e == null ? void 0 : e.targetLocation) == null ? void 0 : r.includes(s);
|
|
36
|
-
}) : e.targetLocation.includes(o);
|
|
37
|
-
}
|
|
38
|
-
const f = G(
|
|
39
|
-
() => p.campaigns.mission.filter((e) => U(e))
|
|
40
|
-
), T = [
|
|
41
|
-
{
|
|
42
|
-
header: a("connect.program.common.table.title"),
|
|
43
|
-
accessorKey: "name",
|
|
44
|
-
// accessorFn: (v) => v.name,
|
|
45
|
-
cell(e) {
|
|
46
|
-
return m("div", { class: "flex items-center justify-between gap-4" }, [
|
|
47
|
-
m("div", { class: "flex items-center" }, [
|
|
48
|
-
m(
|
|
49
|
-
y.FmTooltip,
|
|
50
|
-
{
|
|
51
|
-
content: e.row.original._id,
|
|
52
|
-
onClick: (o) => {
|
|
53
|
-
o.stopPropagation(), ne(e.row.original._id);
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
[
|
|
57
|
-
m(y.FmIcon, {
|
|
58
|
-
name: "info",
|
|
59
|
-
outline: !0,
|
|
60
|
-
size: "sm"
|
|
61
|
-
})
|
|
62
|
-
]
|
|
63
|
-
)
|
|
64
|
-
]),
|
|
65
|
-
m("div", { class: "flex-1" }, e.row.original.name)
|
|
66
|
-
]);
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
header: a("connect.campaign.mission.type"),
|
|
71
|
-
accessorFn: (e) => de(e.mission.type)
|
|
72
|
-
//v.effect,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
header: a("connect.program.common.table.status"),
|
|
76
|
-
accessorFn: (e) => ee(e),
|
|
77
|
-
cell(e) {
|
|
78
|
-
return D(e.row.original);
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
header: a("connect.program.common.table.summary"),
|
|
83
|
-
accessorFn: (e) => K(e)
|
|
84
|
-
//v.effect,
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
header: a("connect.campaign.mission.received"),
|
|
88
|
-
accessorFn: (e) => {
|
|
89
|
-
var o;
|
|
90
|
-
return ((o = e == null ? void 0 : e.pf_collectible) == null ? void 0 : o.currentReceive) ?? 0;
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
header: a("connect.program.common.table.actions"),
|
|
95
|
-
cell(e) {
|
|
96
|
-
return m("div", { class: "flex items-center gap-8" }, [
|
|
97
|
-
m(y.FmButton, {
|
|
98
|
-
variant: "tertiary",
|
|
99
|
-
icon: "content_copy",
|
|
100
|
-
iconColor: "neutral-gray-400",
|
|
101
|
-
onClick: async (o) => {
|
|
102
|
-
o.stopPropagation(), await P(e.row.original);
|
|
103
|
-
}
|
|
104
|
-
}),
|
|
105
|
-
m(y.FmButton, {
|
|
106
|
-
variant: "tertiary",
|
|
107
|
-
icon: "send",
|
|
108
|
-
iconColor: "neutral-gray-400",
|
|
109
|
-
onClick: (o) => {
|
|
110
|
-
o.stopPropagation(), j(e.row.original);
|
|
111
|
-
}
|
|
112
|
-
}),
|
|
113
|
-
m(y.FmButton, {
|
|
114
|
-
variant: "tertiary",
|
|
115
|
-
icon: "delete",
|
|
116
|
-
iconColor: "neutral-gray-400",
|
|
117
|
-
onClick: (o) => {
|
|
118
|
-
o.stopPropagation(), M(e.row.original);
|
|
119
|
-
}
|
|
120
|
-
})
|
|
121
|
-
]);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
], w = v(), B = v();
|
|
125
|
-
async function M(e) {
|
|
126
|
-
await ae.remove(
|
|
127
|
-
a("connect.program.common.remove.confirm", { name: e.name })
|
|
128
|
-
) && await V(
|
|
129
|
-
async () => {
|
|
130
|
-
await _.delete(e._id), await p.read("MISSION");
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
message: a("connect.program.common.remove.removing", { name: e.name }),
|
|
134
|
-
successMessage: a("connect.program.common.remove.removed", {
|
|
135
|
-
name: e.name
|
|
136
|
-
})
|
|
137
|
-
}
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
async function h(e) {
|
|
141
|
-
e ? await o() : O.open(async (s) => {
|
|
142
|
-
await o(s);
|
|
143
|
-
});
|
|
144
|
-
async function o(s) {
|
|
145
|
-
var r;
|
|
146
|
-
(r = w.value) == null || r.showSheet(
|
|
147
|
-
!0,
|
|
148
|
-
"MISSION",
|
|
149
|
-
e ? await _.readById(e._id) : void 0,
|
|
150
|
-
s
|
|
151
|
-
);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
async function P(e) {
|
|
155
|
-
var r;
|
|
156
|
-
if (!await oe(e.name))
|
|
157
|
-
return;
|
|
158
|
-
const o = await _.readById(e._id), s = te(o);
|
|
159
|
-
(r = w.value) == null || r.showSheet(
|
|
160
|
-
!0,
|
|
161
|
-
"MISSION",
|
|
162
|
-
s,
|
|
163
|
-
o.template
|
|
164
|
-
);
|
|
165
|
-
}
|
|
166
|
-
async function $(e) {
|
|
167
|
-
e.campaign._id && e.campaign.rewards.some((o) => o.type === "VOUCHER") && await new Promise((o) => {
|
|
168
|
-
L.open({
|
|
169
|
-
title: "Confirmation",
|
|
170
|
-
message: "This will change all future vouchers? Would you like to update previous claimed vouchers expiry date and discount?",
|
|
171
|
-
primaryActions: { text: "Update all", close: !0 },
|
|
172
|
-
secondaryActions: { text: "Update future only", close: !0 }
|
|
173
|
-
}).onPrimary(async () => {
|
|
174
|
-
var s;
|
|
175
|
-
e.updateCollections = !0, (s = window.top) == null || s.postMessage("updateAllVoucher", "*"), o();
|
|
176
|
-
}).onSecondary(async () => {
|
|
177
|
-
o();
|
|
178
|
-
});
|
|
179
|
-
}), await V(
|
|
180
|
-
async () => {
|
|
181
|
-
e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await p.read("MISSION");
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
message: a(
|
|
185
|
-
e.campaign._id ? "connect.program.common.update.updating" : "connect.program.common.update.creating",
|
|
186
|
-
{ type: "Mission" }
|
|
187
|
-
),
|
|
188
|
-
successMessage: a("connect.program.common.update.success", {
|
|
189
|
-
type: "Mission",
|
|
190
|
-
action: e.campaign._id ? "updated" : "created"
|
|
191
|
-
})
|
|
192
|
-
}
|
|
193
|
-
);
|
|
194
|
-
}
|
|
195
|
-
function j(e) {
|
|
196
|
-
var o;
|
|
197
|
-
(o = B.value) == null || o.showSheet({
|
|
198
|
-
campaign: e
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
return J(async () => {
|
|
202
|
-
await A(async () => {
|
|
203
|
-
await p.read("MISSION"), console.log(f);
|
|
204
|
-
});
|
|
205
|
-
}), (e, o) => {
|
|
206
|
-
const s = d("FmPageHead"), r = d("FmSearch"), E = d("FmTable"), C = d("FmButton"), H = d("FmListItem"), q = d("FmList"), z = d("FmCard");
|
|
207
|
-
return u(), S(k, null, [
|
|
208
|
-
c(s, {
|
|
209
|
-
title: t(a)("connect.campaign.mission.title"),
|
|
210
|
-
actions: t(f).length > 0 ? [N] : [],
|
|
211
|
-
"onClick:action": o[0] || (o[0] = () => h())
|
|
212
|
-
}, null, 8, ["title", "actions"]),
|
|
213
|
-
i("div", ge, [
|
|
214
|
-
c(r, {
|
|
215
|
-
modelValue: t(l).searchKey,
|
|
216
|
-
"onUpdate:modelValue": o[1] || (o[1] = (n) => t(l).searchKey = n),
|
|
217
|
-
class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
|
|
218
|
-
placeholder: t(a)("connect.program.common.search"),
|
|
219
|
-
collapsible: ""
|
|
220
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
221
|
-
t(p).campaigns.mission && t(p).campaigns.mission.length > 0 ? (u(), S(k, { key: 0 }, [
|
|
222
|
-
i("div", fe, [
|
|
223
|
-
i("div", ye, [
|
|
224
|
-
c(ce, {
|
|
225
|
-
label: `${t(a)("connect.program.common.location")}: `,
|
|
226
|
-
"right-icon": "keyboard_arrow_down",
|
|
227
|
-
modelValue: t(l).location,
|
|
228
|
-
"onUpdate:modelValue": o[2] || (o[2] = (n) => t(l).location = n),
|
|
229
|
-
icon: "storefront",
|
|
230
|
-
"show-item-label": !0,
|
|
231
|
-
items: t(R).locationOptions
|
|
232
|
-
}, null, 8, ["label", "modelValue", "items"])
|
|
233
|
-
]),
|
|
234
|
-
c(r, {
|
|
235
|
-
modelValue: t(l).searchKey,
|
|
236
|
-
"onUpdate:modelValue": o[3] || (o[3] = (n) => t(l).searchKey = n),
|
|
237
|
-
class: "xs:hidden sm:hidden",
|
|
238
|
-
placeholder: "search",
|
|
239
|
-
collapsible: ""
|
|
240
|
-
}, null, 8, ["modelValue"])
|
|
241
|
-
]),
|
|
242
|
-
c(E, {
|
|
243
|
-
class: "xs:hidden sm:hidden",
|
|
244
|
-
"row-data": t(f),
|
|
245
|
-
"column-defs": T,
|
|
246
|
-
"search-value": t(l).searchKey,
|
|
247
|
-
"column-filter": [],
|
|
248
|
-
onRowClick: o[4] || (o[4] = (n) => h(n.original)),
|
|
249
|
-
"hide-footer": t(f).length < 10
|
|
250
|
-
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
251
|
-
c(q, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
252
|
-
default: F(() => [
|
|
253
|
-
(u(!0), S(k, null, Q(t(f).filter(
|
|
254
|
-
(n) => n.name.toLowerCase().includes(t(l).searchKey.toLowerCase())
|
|
255
|
-
), (n) => (u(), I(H, {
|
|
256
|
-
key: n._id.toString(),
|
|
257
|
-
onClick: (x) => h(n),
|
|
258
|
-
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
259
|
-
}, {
|
|
260
|
-
default: F(() => {
|
|
261
|
-
var x;
|
|
262
|
-
return [
|
|
263
|
-
i("div", _e, [
|
|
264
|
-
i("div", he, [
|
|
265
|
-
(u(), I(X(t(D)(n))))
|
|
266
|
-
]),
|
|
267
|
-
i("div", we, [
|
|
268
|
-
i("div", Ce, g(n.name), 1),
|
|
269
|
-
i("div", xe, g(t(K)(n)), 1)
|
|
270
|
-
]),
|
|
271
|
-
i("div", be, g(t(a)("connect.campaign.mission.received")) + " : " + g(((x = n == null ? void 0 : n.pf_collectible) == null ? void 0 : x.currentReceive) ?? 0), 1)
|
|
272
|
-
]),
|
|
273
|
-
i("div", ve, [
|
|
274
|
-
c(C, {
|
|
275
|
-
icon: "content_copy",
|
|
276
|
-
"icon-color": "neutral-gray-400",
|
|
277
|
-
variant: "tertiary",
|
|
278
|
-
onClick: async (b) => {
|
|
279
|
-
b.stopPropagation(), await P(n);
|
|
280
|
-
}
|
|
281
|
-
}, null, 8, ["onClick"]),
|
|
282
|
-
c(C, {
|
|
283
|
-
icon: "delete",
|
|
284
|
-
"icon-color": "neutral-gray-400",
|
|
285
|
-
variant: "tertiary",
|
|
286
|
-
onClick: (b) => (b.stopPropagation(), M(n))
|
|
287
|
-
}, null, 8, ["onClick"])
|
|
288
|
-
])
|
|
289
|
-
];
|
|
290
|
-
}),
|
|
291
|
-
_: 2
|
|
292
|
-
}, 1032, ["onClick"]))), 128))
|
|
293
|
-
]),
|
|
294
|
-
_: 1
|
|
295
|
-
})
|
|
296
|
-
], 64)) : (u(), I(z, {
|
|
297
|
-
key: 1,
|
|
298
|
-
variant: "outlined",
|
|
299
|
-
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
300
|
-
}, {
|
|
301
|
-
default: F(() => [
|
|
302
|
-
o[6] || (o[6] = i("img", {
|
|
303
|
-
src: Y,
|
|
304
|
-
class: "aspect-square w-[150px]"
|
|
305
|
-
}, null, -1)),
|
|
306
|
-
i("div", Se, [
|
|
307
|
-
i("div", ke, g(t(a)("connect.campaign.mission.createProgram")), 1),
|
|
308
|
-
i("div", Fe, g(t(a)("connect.campaign.mission.description")), 1)
|
|
309
|
-
]),
|
|
310
|
-
c(C, {
|
|
311
|
-
variant: "primary",
|
|
312
|
-
label: t(a)("connect.campaign.mission.create"),
|
|
313
|
-
icon: "add",
|
|
314
|
-
onClick: o[5] || (o[5] = (n) => h())
|
|
315
|
-
}, null, 8, ["label"])
|
|
316
|
-
]),
|
|
317
|
-
_: 1
|
|
318
|
-
})),
|
|
319
|
-
c(me, {
|
|
320
|
-
ref_key: "sheetRef",
|
|
321
|
-
ref: w,
|
|
322
|
-
"onSubmit:modelValue": $
|
|
323
|
-
}, null, 512),
|
|
324
|
-
c(ue, {
|
|
325
|
-
ref_key: "sendCollectionSheetRef",
|
|
326
|
-
ref: B
|
|
327
|
-
}, null, 512)
|
|
328
|
-
])
|
|
329
|
-
], 64);
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
|
-
});
|
|
333
|
-
export {
|
|
334
|
-
He as default
|
|
335
|
-
};
|