@feedmepos/mf-connect 0.1.47-prod → 0.1.49-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-AnuRQDA4.js → Analytic-ibBD_21m.js} +113 -113
- package/dist/{App-DP_jCyej.js → App-CDjwWK8a.js} +632 -622
- package/dist/{Bin-tL4lF6PB.js → Bin-DCaG0YGW.js} +9 -9
- package/dist/Broadcast-CbF3d_N7.js +233 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BgPJCH02.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BqYusgBO.js} +18 -18
- package/dist/{Card-Bi-ODgCc.js → Card-CDNE85po.js} +239 -239
- package/dist/{Collections-JHWotZ1I.js → Collections-DHn__E9U.js} +31 -31
- package/dist/Credit-DiTnwnFe.js +228 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-hxuYl-OQ.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJEAsRON.js} +756 -753
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-ECkaQxuI.js → EffectSheet.vue_vue_type_style_index_0_lang-CU9XpMjd.js} +96 -96
- package/dist/Experience-CjMVeGsX.js +229 -0
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
- package/dist/{Game-DUCx2Dl9.js → Game-D3gANFAo.js} +98 -92
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js +144 -0
- package/dist/{Index-zynxjOOr.js → Index-DEF_a5Mu.js} +54 -54
- package/dist/{Marketing-BBHDVRkR.js → Marketing-BeED4Y7H.js} +24 -24
- package/dist/{Member-B09bj6C3.js → Member-CA4hnHJY.js} +63 -63
- package/dist/MemberList-CZtriA_Q.js +1606 -0
- package/dist/MemberOverview-wL_ailso.js +58 -0
- package/dist/{MemberTransactions-DERMSs7o.js → MemberTransactions-BVrvf4AM.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CAADF6vv.js → MessageInput.vue_vue_type_script_setup_true_lang-BqTDGnOG.js} +2286 -2220
- package/dist/{Mission-DAv0e_ZH.js → Mission-CDSMpqnG.js} +113 -107
- package/dist/{Overview-D0rBTEtP.js → Overview-ArineqY4.js} +337 -337
- package/dist/Point-51MD49EM.js +232 -0
- package/dist/{Promotion-BSPU5hP9.js → Promotion-BVrofYd6.js} +43 -43
- package/dist/{Queue-C5IFJ3iE.js → Queue-Q-aEeZ8w.js} +13 -13
- package/dist/{Record-CoFSrv7j.js → Record-DaVcschI.js} +10 -10
- package/dist/{Reward-COIOBOl-.js → Reward-DTtFuqOZ.js} +173 -173
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B9Tl7hqv.js → RewardGroup.vue_vue_type_script_setup_true_lang-P_gNd6ZP.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BzsYC3k2.js → RuleGroup.vue_vue_type_script_setup_true_lang-CVy_kDmy.js} +381 -381
- package/dist/{Segment-DF5SrucQ.js → Segment-DIy4RERw.js} +327 -327
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BSSfQu3F.js → SelectItems.vue_vue_type_script_setup_true_lang-D3KIZJLo.js} +14 -14
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DoL_gTKy.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-bSi6_uqi.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cijyol1Q.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BsNLkA2v.js} +3 -3
- package/dist/Setting-DGDgmP84.js +1936 -0
- package/dist/{Store-E2_0EIy8.js → Store-Dh2uVHGY.js} +238 -238
- package/dist/StoreRewards-DFF_0g59.js +423 -0
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DuatzcJ8.js → StoreTransactions.vue_vue_type_script_setup_true_lang-PrFhYJXc.js} +186 -186
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D_r8I0h7.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-VcU2Asjy.js} +1 -1
- package/dist/{Tier-CEEHsXkC.js → Tier-yKvE4mRW.js} +106 -106
- package/dist/{Title-BMAWlGeW.js → Title-DWWSC02W.js} +95 -95
- package/dist/{Transaction-CLsceq-O.js → Transaction-ru7M0PKE.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CFLekn9O.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BSkv6hMH.js} +6 -6
- package/dist/{Voucher-Cd293WYY.js → Voucher-DmuaThKv.js} +37 -37
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Db_aeyc1.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B8HHh8HU.js → ZodTextField.vue_vue_type_script_setup_true_lang-B5co0F__.js} +1 -1
- package/dist/app-DaFoFS2V.js +57962 -0
- package/dist/{app-aVXsWATU.js → app-ja_XST5q.js} +31 -31
- package/dist/app.js +1 -1
- package/dist/{business-DVlHPzaL.js → business-BSP_3iNl.js} +11 -8
- package/dist/{campaign-D9KeUWA7.js → campaign-C1hWNRWr.js} +2 -2
- package/dist/{campaign-l-u9A514.js → campaign-DMZnXtyb.js} +10 -10
- package/dist/{campaign.enum-Cud82tES.js → campaign.enum-Bfsz7Aon.js} +1 -1
- package/dist/campaign.fn-B-xvcbEb.js +758 -0
- package/dist/{collectible.enum-PrlUDScv.js → collectible.enum-BRkrN4Bi.js} +1 -1
- package/dist/{collection.fn-yR-xnV4g.js → collection.fn-D03AXdUn.js} +2 -2
- package/dist/{dto-Cua1OHMY.js → dto-DpRkSGg6.js} +4 -4
- package/dist/{effect-B5-eXNEr.js → effect-BW1-I1J4.js} +1 -1
- package/dist/{email-addresses-BeYh5fr5.js → email-addresses-BLVkwSkP.js} +1 -1
- package/dist/{export-BUF4_DUz.js → export-DOfDownW.js} +4 -4
- package/dist/{helper-CGwOThAl.js → helper-BzfjLXgi.js} +1 -1
- package/dist/{index-DlFVLRKG.js → index-BBi9jDD1.js} +3 -3
- package/dist/{index-Cx8-ipee.js → index-BJl_HxaB.js} +6 -6
- package/dist/{index-1BGPM6Uy.js → index-Ba5-z1MU.js} +1 -1
- package/dist/{index-BmL_b0IR.js → index-Bp8F6U9V.js} +1 -1
- package/dist/{index-C-d_4n-1.js → index-C6fpU8-G.js} +1 -1
- package/dist/{index-knuJv0ti.js → index-COoQSeE7.js} +4 -4
- package/dist/{index-aMDi62-C.js → index-DTnzjEWu.js} +1 -1
- package/dist/{index-BLdVWQId.js → index-DWBeauin.js} +3 -3
- package/dist/{index-Cl2iYM2F.js → index-Da1qz9oA.js} +1 -1
- package/dist/{index-CB8iWT_p.js → index-Dve1-uYX.js} +1 -1
- package/dist/{index-ng2IXlL1.js → index-P6ISAxfQ.js} +1 -1
- package/dist/{index-hX2mE0gQ.js → index-cpWgtd-c.js} +1 -1
- package/dist/{index-D5KIp8ZB.js → index-sFyvCun2.js} +1023 -1023
- package/dist/{index-DNTd-FNx.js → index-zyVYgteg.js} +2 -2
- package/dist/{index.esm2017-D8stWFci.js → index.esm2017-DT0awUwa.js} +40 -40
- package/dist/{loading-c4b7n9Xp.js → loading-CZH88Duq.js} +1 -1
- package/dist/{membership-oBIs4sbL.js → membership-GNRX1fEK.js} +3 -3
- package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
- package/dist/{money-AP24H0gk.js → money-Xe5mDYRC.js} +1 -1
- package/dist/{number-CwsAYC_2.js → number-CAjqc2Pu.js} +1 -1
- package/dist/objectid-BQJRv_jX.js +145 -0
- package/dist/{plugins-Dn7JDHi7.js → plugins-Z2YcDTj8.js} +2 -2
- package/dist/{reward-4wdoZeXw.js → reward-G656rbLJ.js} +1 -1
- package/dist/{rule-_OJza6tn.js → rule-BJ5blBZp.js} +4 -4
- package/dist/{rule-builder-DmlhHAED.js → rule-builder-CursBigG.js} +1 -1
- package/dist/{template-BSQLFHf4.js → template-BnyUm8is.js} +63 -63
- package/dist/timezone-B64-HrWi.js +1150 -0
- package/dist/{trigger-DC9tDnI2.js → trigger-C_ih51ky.js} +4 -4
- package/dist/usePagination-Ds-cuHop.js +223 -0
- package/dist/{user-CCVOptFD.js → user-BZc_OAUj.js} +1 -1
- package/dist/{vue-i18n--_Wu1nMj.js → vue-i18n-2D47GxQX.js} +401 -401
- package/dist/{xlsx-BVMaOi8M.js → xlsx-BEk5qawh.js} +226 -226
- package/package.json +5 -4
- package/dist/Broadcast-T2a5tN8R.js +0 -227
- package/dist/Credit-DQQCXqS0.js +0 -222
- package/dist/Experience-DzTV21vX.js +0 -223
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
- package/dist/MemberList-DLSLGQ02.js +0 -1606
- package/dist/MemberOverview-C2n9oJZh.js +0 -58
- package/dist/Point-BeBYi1BT.js +0 -226
- package/dist/Setting-Dt0sG_hk.js +0 -1936
- package/dist/StoreRewards-DuSsWnTE.js +0 -423
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Qc5cCqh5.js +0 -419
- package/dist/app-jRT7vsk_.js +0 -33357
- package/dist/campaign.fn-C-UojhHv.js +0 -758
- package/dist/objectid-CVDLTdni.js +0 -145
- package/dist/usePagination-JoYaROkV.js +0 -223
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { u as
|
|
4
|
-
import { g as
|
|
5
|
-
import { a as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { useDialog as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { u as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { s as
|
|
13
|
-
import { u as ce } from "./vue-i18n
|
|
14
|
-
import { _ as
|
|
15
|
-
import { c as h } from "./index-
|
|
16
|
-
const
|
|
17
|
-
src: J,
|
|
18
|
-
class: "aspect-square w-[150px]"
|
|
19
|
-
}, null, -1), xe = { class: "flex flex-col gap-16 text-center" }, ve = { class: "fm-typo-en-title-sm-800" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae = /* @__PURE__ */ H({
|
|
1
|
+
import { defineComponent as q, ref as w, computed as z, h as m, onMounted as W, resolveComponent as d, openBlock as u, createElementBlock as x, Fragment as v, createVNode as r, unref as t, createElementVNode as s, withCtx as C, renderList as G, createBlock as b, resolveDynamicComponent as J, toDisplayString as f } from "vue";
|
|
2
|
+
import { _ as Q } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { u as X } from "./loading-CZH88Duq.js";
|
|
4
|
+
import { g as Y, a as B, b as P } from "./campaign-DMZnXtyb.js";
|
|
5
|
+
import { a as Z, p as ee } from "./plugins-Z2YcDTj8.js";
|
|
6
|
+
import { u as oe } from "./business-BSP_3iNl.js";
|
|
7
|
+
import { u as te } from "./campaign-C1hWNRWr.js";
|
|
8
|
+
import { useDialog as ne, components as _ } from "@feedmepos/ui-library";
|
|
9
|
+
import { _ as ae } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
10
|
+
import { u as se } from "./template-BnyUm8is.js";
|
|
11
|
+
import { _ as ie } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJEAsRON.js";
|
|
12
|
+
import { s as re } from "./index-CuvNtC_M.js";
|
|
13
|
+
import { u as ce } from "./vue-i18n-2D47GxQX.js";
|
|
14
|
+
import { _ as le } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-bSi6_uqi.js";
|
|
15
|
+
import { c as h } from "./index-Ba5-z1MU.js";
|
|
16
|
+
const me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-center justify-between w-full" }, pe = { class: "flex gap-8 overflow-x-auto" }, ue = { class: "space-y-8" }, fe = { class: "flex w-full gap-4 items-center" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "space-y-4" }, _e = { class: "fm-typo-en-body-lg-600" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xe = { class: "flex flex-col gap-16 text-center" }, ve = { class: "fm-typo-en-title-sm-800" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ue = /* @__PURE__ */ q({
|
|
20
17
|
__name: "Mission",
|
|
21
18
|
setup(be) {
|
|
22
19
|
const { t: n } = ce(), R = {
|
|
@@ -26,31 +23,37 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
|
|
|
26
23
|
value: "create",
|
|
27
24
|
isPrimary: !0,
|
|
28
25
|
prependIcon: "add"
|
|
29
|
-
}, S =
|
|
26
|
+
}, S = ne(), K = se("MISSION", S), A = oe(), p = te(), { global: N, minor: F } = X, c = w({
|
|
30
27
|
searchKey: "",
|
|
31
|
-
location:
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
)
|
|
36
|
-
|
|
28
|
+
location: []
|
|
29
|
+
});
|
|
30
|
+
function O(e) {
|
|
31
|
+
const o = c.value.location;
|
|
32
|
+
return !o || o.length === 0 || !e.targetLocation ? !0 : Array.isArray(o) ? o.some((i) => {
|
|
33
|
+
var l;
|
|
34
|
+
return (l = e == null ? void 0 : e.targetLocation) == null ? void 0 : l.includes(i);
|
|
35
|
+
}) : e.targetLocation.includes(o);
|
|
36
|
+
}
|
|
37
|
+
const g = z(
|
|
38
|
+
() => p.campaigns.mission.filter((e) => O(e))
|
|
39
|
+
), T = [
|
|
37
40
|
{
|
|
38
41
|
header: n("connect.program.common.table.title"),
|
|
39
42
|
accessorKey: "name",
|
|
40
43
|
// accessorFn: (v) => v.name,
|
|
41
44
|
cell(e) {
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
return m("div", { class: "flex items-center justify-between gap-4" }, [
|
|
46
|
+
m("div", { class: "flex items-center" }, [
|
|
47
|
+
m(
|
|
45
48
|
_.FmTooltip,
|
|
46
49
|
{
|
|
47
50
|
content: e.row.original._id,
|
|
48
51
|
onClick: (o) => {
|
|
49
|
-
o.stopPropagation(),
|
|
52
|
+
o.stopPropagation(), Z(e.row.original._id);
|
|
50
53
|
}
|
|
51
54
|
},
|
|
52
55
|
[
|
|
53
|
-
|
|
56
|
+
m(_.FmIcon, {
|
|
54
57
|
name: "info",
|
|
55
58
|
outline: !0,
|
|
56
59
|
size: "sm"
|
|
@@ -58,18 +61,18 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
|
|
|
58
61
|
]
|
|
59
62
|
)
|
|
60
63
|
]),
|
|
61
|
-
|
|
64
|
+
m("div", { class: "flex-1" }, e.row.original.name)
|
|
62
65
|
]);
|
|
63
66
|
}
|
|
64
67
|
},
|
|
65
68
|
{
|
|
66
69
|
header: n("connect.campaign.mission.type"),
|
|
67
|
-
accessorFn: (e) =>
|
|
70
|
+
accessorFn: (e) => re(e.mission.type)
|
|
68
71
|
//v.effect,
|
|
69
72
|
},
|
|
70
73
|
{
|
|
71
74
|
header: n("connect.program.common.table.status"),
|
|
72
|
-
accessorFn: (e) =>
|
|
75
|
+
accessorFn: (e) => Y(e),
|
|
73
76
|
cell(e) {
|
|
74
77
|
return B(e.row.original);
|
|
75
78
|
}
|
|
@@ -89,33 +92,33 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
|
|
|
89
92
|
{
|
|
90
93
|
header: n("connect.program.common.table.actions"),
|
|
91
94
|
cell(e) {
|
|
92
|
-
return
|
|
93
|
-
|
|
95
|
+
return m("div", { class: "flex items-center gap-8" }, [
|
|
96
|
+
m(_.FmButton, {
|
|
94
97
|
variant: "tertiary",
|
|
95
98
|
icon: "send",
|
|
96
99
|
iconColor: "neutral-gray-400",
|
|
97
100
|
onClick: (o) => {
|
|
98
|
-
o.stopPropagation(),
|
|
101
|
+
o.stopPropagation(), $(e.row.original);
|
|
99
102
|
}
|
|
100
103
|
}),
|
|
101
|
-
|
|
104
|
+
m(_.FmButton, {
|
|
102
105
|
variant: "tertiary",
|
|
103
106
|
icon: "delete",
|
|
104
107
|
iconColor: "neutral-gray-400",
|
|
105
108
|
onClick: (o) => {
|
|
106
|
-
o.stopPropagation(),
|
|
109
|
+
o.stopPropagation(), L(e.row.original);
|
|
107
110
|
}
|
|
108
111
|
})
|
|
109
112
|
]);
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
], k = w(), I = w();
|
|
113
|
-
async function
|
|
114
|
-
await
|
|
116
|
+
async function L(e) {
|
|
117
|
+
await ee.remove(
|
|
115
118
|
n("connect.program.common.remove.confirm", { name: e.name })
|
|
116
119
|
) && await F(
|
|
117
120
|
async () => {
|
|
118
|
-
await h.delete(e._id), await
|
|
121
|
+
await h.delete(e._id), await p.read("MISSION");
|
|
119
122
|
},
|
|
120
123
|
{
|
|
121
124
|
message: n("connect.program.common.remove.removing", { name: e.name }),
|
|
@@ -126,20 +129,20 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
|
|
|
126
129
|
);
|
|
127
130
|
}
|
|
128
131
|
async function y(e) {
|
|
129
|
-
e ? await o() : K.open(async (
|
|
130
|
-
await o(
|
|
132
|
+
e ? await o() : K.open(async (i) => {
|
|
133
|
+
await o(i);
|
|
131
134
|
});
|
|
132
|
-
async function o(
|
|
133
|
-
var
|
|
134
|
-
(
|
|
135
|
+
async function o(i) {
|
|
136
|
+
var l;
|
|
137
|
+
(l = k.value) == null || l.showSheet(
|
|
135
138
|
!0,
|
|
136
139
|
"MISSION",
|
|
137
140
|
e ? await h.readById(e._id) : void 0,
|
|
138
|
-
|
|
141
|
+
i
|
|
139
142
|
);
|
|
140
143
|
}
|
|
141
144
|
}
|
|
142
|
-
async function
|
|
145
|
+
async function U(e) {
|
|
143
146
|
e.campaign._id && e.campaign.rewards.some((o) => o.type === "VOUCHER") && await new Promise((o) => {
|
|
144
147
|
S.open({
|
|
145
148
|
title: "Confirmation",
|
|
@@ -147,14 +150,14 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
|
|
|
147
150
|
primaryActions: { text: "Update all", close: !0 },
|
|
148
151
|
secondaryActions: { text: "Update future only", close: !0 }
|
|
149
152
|
}).onPrimary(async () => {
|
|
150
|
-
var
|
|
151
|
-
e.updateCollections = !0, (
|
|
153
|
+
var i;
|
|
154
|
+
e.updateCollections = !0, (i = window.top) == null || i.postMessage("updateAllVoucher", "*"), o();
|
|
152
155
|
}).onSecondary(async () => {
|
|
153
156
|
o();
|
|
154
157
|
});
|
|
155
158
|
}), await F(
|
|
156
159
|
async () => {
|
|
157
|
-
e.campaign._id ? await h.update(e.campaign._id, e) : await h.create(e), await
|
|
160
|
+
e.campaign._id ? await h.update(e.campaign._id, e) : await h.create(e), await p.read("MISSION");
|
|
158
161
|
},
|
|
159
162
|
{
|
|
160
163
|
message: n(
|
|
@@ -168,88 +171,88 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
|
|
|
168
171
|
}
|
|
169
172
|
);
|
|
170
173
|
}
|
|
171
|
-
function
|
|
174
|
+
function $(e) {
|
|
172
175
|
var o;
|
|
173
176
|
(o = I.value) == null || o.showSheet({
|
|
174
177
|
campaign: e
|
|
175
178
|
});
|
|
176
179
|
}
|
|
177
|
-
return
|
|
178
|
-
await
|
|
179
|
-
await
|
|
180
|
+
return W(async () => {
|
|
181
|
+
await N(async () => {
|
|
182
|
+
await p.read("MISSION"), console.log(g);
|
|
180
183
|
});
|
|
181
184
|
}), (e, o) => {
|
|
182
|
-
const
|
|
183
|
-
return
|
|
184
|
-
|
|
185
|
+
const i = d("FmPageHead"), l = d("FmSearch"), D = d("FmTable"), V = d("FmButton"), j = d("FmListItem"), E = d("FmList"), H = d("FmCard");
|
|
186
|
+
return u(), x(v, null, [
|
|
187
|
+
r(i, {
|
|
185
188
|
title: t(n)("connect.campaign.mission.title"),
|
|
186
|
-
actions: t(
|
|
189
|
+
actions: t(g).length > 0 ? [R] : [],
|
|
187
190
|
"onClick:action": o[0] || (o[0] = () => y())
|
|
188
191
|
}, null, 8, ["title", "actions"]),
|
|
189
|
-
s("div",
|
|
190
|
-
|
|
191
|
-
modelValue: t(
|
|
192
|
-
"onUpdate:modelValue": o[1] || (o[1] = (a) => t(
|
|
192
|
+
s("div", me, [
|
|
193
|
+
r(l, {
|
|
194
|
+
modelValue: t(c).searchKey,
|
|
195
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => t(c).searchKey = a),
|
|
193
196
|
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
194
197
|
placeholder: t(n)("connect.program.common.search"),
|
|
195
198
|
collapsible: ""
|
|
196
199
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
197
|
-
t(
|
|
198
|
-
s("div",
|
|
199
|
-
s("div",
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
"
|
|
203
|
-
|
|
204
|
-
"
|
|
200
|
+
t(p).campaigns.mission && t(p).campaigns.mission.length > 0 ? (u(), x(v, { key: 0 }, [
|
|
201
|
+
s("div", de, [
|
|
202
|
+
s("div", pe, [
|
|
203
|
+
r(ae, {
|
|
204
|
+
label: `${t(n)("connect.program.common.location")}: `,
|
|
205
|
+
"right-icon": "keyboard_arrow_down",
|
|
206
|
+
modelValue: t(c).location,
|
|
207
|
+
"onUpdate:modelValue": o[2] || (o[2] = (a) => t(c).location = a),
|
|
205
208
|
icon: "storefront",
|
|
206
|
-
|
|
207
|
-
items: t(
|
|
208
|
-
}, null, 8, ["
|
|
209
|
+
"show-item-label": !0,
|
|
210
|
+
items: t(A).locationOptions
|
|
211
|
+
}, null, 8, ["label", "modelValue", "items"])
|
|
209
212
|
]),
|
|
210
|
-
|
|
211
|
-
modelValue: t(
|
|
212
|
-
"onUpdate:modelValue": o[3] || (o[3] = (a) => t(
|
|
213
|
+
r(l, {
|
|
214
|
+
modelValue: t(c).searchKey,
|
|
215
|
+
"onUpdate:modelValue": o[3] || (o[3] = (a) => t(c).searchKey = a),
|
|
213
216
|
class: "xs:hidden",
|
|
214
217
|
placeholder: "search",
|
|
215
218
|
collapsible: ""
|
|
216
219
|
}, null, 8, ["modelValue"])
|
|
217
220
|
]),
|
|
218
|
-
|
|
221
|
+
r(D, {
|
|
219
222
|
class: "xs:hidden",
|
|
220
|
-
"row-data": t(
|
|
221
|
-
"column-defs":
|
|
222
|
-
"search-value": t(
|
|
223
|
+
"row-data": t(g),
|
|
224
|
+
"column-defs": T,
|
|
225
|
+
"search-value": t(c).searchKey,
|
|
223
226
|
"column-filter": [],
|
|
224
227
|
onRowClick: o[4] || (o[4] = (a) => y(a.original)),
|
|
225
|
-
"hide-footer": t(
|
|
228
|
+
"hide-footer": t(g).length < 10
|
|
226
229
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
227
|
-
|
|
230
|
+
r(E, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
228
231
|
default: C(() => [
|
|
229
|
-
(
|
|
230
|
-
(a) => a.name.toLowerCase().includes(t(
|
|
231
|
-
), (a) => (
|
|
232
|
+
(u(!0), x(v, null, G(t(g).filter(
|
|
233
|
+
(a) => a.name.toLowerCase().includes(t(c).searchKey.toLowerCase())
|
|
234
|
+
), (a) => (u(), b(j, {
|
|
232
235
|
key: a._id.toString(),
|
|
233
|
-
onClick: (
|
|
236
|
+
onClick: (M) => y(a),
|
|
234
237
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
235
238
|
}, {
|
|
236
239
|
default: C(() => [
|
|
237
|
-
s("div",
|
|
238
|
-
s("div",
|
|
239
|
-
(
|
|
240
|
-
s("div",
|
|
240
|
+
s("div", ue, [
|
|
241
|
+
s("div", fe, [
|
|
242
|
+
(u(), b(J(t(B)(a)))),
|
|
243
|
+
s("div", ge, f(a.currentReceive ?? 0) + " used ", 1)
|
|
241
244
|
]),
|
|
242
|
-
s("div",
|
|
243
|
-
s("div",
|
|
244
|
-
s("div",
|
|
245
|
+
s("div", ye, [
|
|
246
|
+
s("div", _e, f(a.name), 1),
|
|
247
|
+
s("div", he, f(t(P)(a)), 1)
|
|
245
248
|
]),
|
|
246
|
-
s("div",
|
|
249
|
+
s("div", we, " Token received: " + f(a.currentReceive ?? 0), 1)
|
|
247
250
|
]),
|
|
248
|
-
|
|
251
|
+
r(V, {
|
|
249
252
|
icon: "delete",
|
|
250
253
|
"icon-color": "neutral-gray-400",
|
|
251
254
|
variant: "tertiary",
|
|
252
|
-
onClick: (
|
|
255
|
+
onClick: (M) => (M.stopPropagation(), L(a))
|
|
253
256
|
}, null, 8, ["onClick"])
|
|
254
257
|
]),
|
|
255
258
|
_: 2
|
|
@@ -257,18 +260,21 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
|
|
|
257
260
|
]),
|
|
258
261
|
_: 1
|
|
259
262
|
})
|
|
260
|
-
], 64)) : (
|
|
263
|
+
], 64)) : (u(), b(H, {
|
|
261
264
|
key: 1,
|
|
262
265
|
variant: "outlined",
|
|
263
266
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
264
267
|
}, {
|
|
265
268
|
default: C(() => [
|
|
266
|
-
|
|
269
|
+
o[6] || (o[6] = s("img", {
|
|
270
|
+
src: Q,
|
|
271
|
+
class: "aspect-square w-[150px]"
|
|
272
|
+
}, null, -1)),
|
|
267
273
|
s("div", xe, [
|
|
268
|
-
s("div", ve,
|
|
269
|
-
s("div", Ce,
|
|
274
|
+
s("div", ve, f(t(n)("connect.campaign.mission.createProgram")), 1),
|
|
275
|
+
s("div", Ce, f(t(n)("connect.campaign.mission.description")), 1)
|
|
270
276
|
]),
|
|
271
|
-
|
|
277
|
+
r(V, {
|
|
272
278
|
variant: "primary",
|
|
273
279
|
label: t(n)("connect.campaign.mission.create"),
|
|
274
280
|
icon: "add",
|
|
@@ -277,12 +283,12 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
|
|
|
277
283
|
]),
|
|
278
284
|
_: 1
|
|
279
285
|
})),
|
|
280
|
-
|
|
286
|
+
r(ie, {
|
|
281
287
|
ref_key: "sheetRef",
|
|
282
288
|
ref: k,
|
|
283
|
-
"onSubmit:modelValue":
|
|
289
|
+
"onSubmit:modelValue": U
|
|
284
290
|
}, null, 512),
|
|
285
|
-
|
|
291
|
+
r(le, {
|
|
286
292
|
ref_key: "sendCollectionSheetRef",
|
|
287
293
|
ref: I
|
|
288
294
|
}, null, 512)
|
|
@@ -292,5 +298,5 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
|
|
|
292
298
|
}
|
|
293
299
|
});
|
|
294
300
|
export {
|
|
295
|
-
|
|
301
|
+
Ue as default
|
|
296
302
|
};
|