@feedmepos/mf-connect 0.1.0-beta.4 → 0.1.0-beta.40
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-DArrGnk-.js +426 -0
- package/dist/{App-BnQwjxIr.js → App-CxJaPSSE.js} +397 -384
- package/dist/{Broadcast-y1kP18mo.js → Broadcast-C5CtxHYC.js} +32 -32
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Dj0JUMOk.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DJAGRlyI.js} +6 -8
- package/dist/Card-ZsgNMrz5.js +894 -0
- package/dist/{Collections-DPfbZMg1.js → Collections-CodLm2hP.js} +28 -34
- package/dist/{Credit-QleM_b6q.js → Credit-8qliEPqA.js} +14 -14
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DZOeB8YS.js +2209 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-2hRTF1EJ.js → EffectSheet.vue_vue_type_style_index_0_lang-Cf4nXUmp.js} +8 -8
- package/dist/{Experience-DGKj8ChY.js → Experience-DR0_RUqZ.js} +8 -8
- package/dist/{Game-BxRdzSma.js → Game-BZkQZDV_.js} +15 -15
- package/dist/Index-BP9YGCex.js +255 -0
- package/dist/Marketing-Bt-ViwTP.js +20070 -0
- package/dist/{Member-CteeBDi2.js → Member-DW_uVRyE.js} +4 -4
- package/dist/MemberList-BQcsV-Bz.js +1554 -0
- package/dist/MemberTransactions-xJaYPP7W.js +45 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CZ2M8huU.js → MessageInput.vue_vue_type_script_setup_true_lang-Txp1lndf.js} +2 -2
- package/dist/{Mission-CZgXBa09.js → Mission-CQ2PlxLv.js} +98 -86
- package/dist/Overview-CWhTf5Tz.js +1063 -0
- package/dist/{Point-C2vzEfRP.js → Point-BCvUsXLl.js} +23 -23
- package/dist/{Promotion-337OT0sP.js → Promotion-CrROpksP.js} +53 -47
- package/dist/Record-B6RRMDQn.js +337 -0
- package/dist/Reward-CTZ3IllK.js +432 -0
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-C19vRccs.js +149 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-C3irbjUK.js +1637 -0
- package/dist/Segment-h-HRoL19.js +566 -0
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-D5kijSzp.js +181 -0
- package/dist/{Setting-DVK2594u.js → Setting-CZIFruFT.js} +8 -8
- package/dist/Store-CbjSMVfb.js +1743 -0
- package/dist/{StoreRewards-BpEmNueE.js → StoreRewards-zkEVickE.js} +12 -12
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DU5v6oro.js +1099 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DT48bSiH.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-i_y1gFyL.js} +1 -1
- package/dist/{Tier-BwvOhyXR.js → Tier-BCgp2Ngt.js} +325 -317
- package/dist/{Title-DRPdKYRO.js → Title-CJNx0TkK.js} +197 -183
- package/dist/{Transaction-BnLvacwW.js → Transaction-DWvfvfsk.js} +2 -2
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Dkln_L8k.js +130 -0
- package/dist/{Voucher-BQL8J_EA.js → Voucher-bYVNHe4l.js} +31 -31
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-BX0Fo_5O.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B316b_ta.js → ZodTextField.vue_vue_type_script_setup_true_lang-D5Idn8So.js} +1 -1
- package/dist/{app-BVaQwBvq.js → app-CdJSO9Ad.js} +1 -1
- package/dist/{app-zO552-Dl.js → app-fsxaQBSg.js} +1183 -1154
- package/dist/app.js +1 -1
- package/dist/{business-BSl6NSdS.js → business-CDeQ06qx.js} +1 -1
- package/dist/{campaign-CxN6mq_l.js → campaign-D8lQOOTp.js} +2 -2
- package/dist/campaign-Dwea7uho.js +1810 -0
- package/dist/campaign.enum-CF_gt52u.js +20 -0
- package/dist/campaign.fn-BavlaqB6.js +758 -0
- package/dist/collectible.enum-DVZRkRwR.js +19 -0
- package/dist/{collection.fn-C-2dyWp9.js → collection.fn-CIicjfIz.js} +2 -2
- package/dist/dto-CMkenMV_.js +214 -0
- package/dist/{effect-D8y0J47O.js → effect-IbJ225qB.js} +9 -9
- package/dist/email-addresses-LDTzLm79.js +705 -0
- package/dist/{export-BxTrifKO.js → export-BCSOuQ5g.js} +3 -3
- package/dist/{helper-bEmZlTwA.js → helper-BZxLzAuG.js} +1 -1
- package/dist/{index-B2qriSSk.js → index-0Lmb_8CU.js} +1 -1
- package/dist/{index-JBp0chol.js → index-B3r9-9qd.js} +1500 -1479
- package/dist/{index-BFWCbVq2.js → index-BVd0uPuT.js} +1 -1
- package/dist/{index-Dnv999nc.js → index-BtFnlSuJ.js} +1 -1
- package/dist/{index-Ckz-D_AP.js → index-BxrHVPJL.js} +2188 -931
- package/dist/index-C0VSGU1p.js +32 -0
- package/dist/{index-DuYb25dY.js → index-CYLAuP7e.js} +34 -4
- package/dist/index-CcpRLc8R.js +44 -0
- package/dist/index-CsaQJMAR.js +66 -0
- package/dist/index-CvW4f2DA.js +29000 -0
- package/dist/{index-DHTYWfTs.js → index-DG0LFjr2.js} +207 -195
- package/dist/index-DbmWadFy.js +54 -0
- package/dist/index-vh86FiIQ.js +10 -0
- package/dist/{index-C_WyKCqN.js → index-xoJ0Hv7u.js} +1 -1
- package/dist/{index.esm2017-Tw7KabwI.js → index.esm2017-CaKC72Zr.js} +33 -33
- package/dist/{loading-60xYxow_.js → loading-CmdIDK9W.js} +591 -597
- package/dist/{membership-43FU3EmV.js → membership-BKNbXD5h.js} +52 -44
- package/dist/money-DbuB1-Ff.js +15 -0
- package/dist/number-CJ4JetR2.js +12 -0
- package/dist/objectid-CSzIZWFn.js +145 -0
- package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
- package/dist/reward-BlvDqH4n.js +36 -0
- package/dist/{rule-DlHrKp8K.js → rule-Csn-Prz_.js} +180 -177
- package/dist/{rule-builder-CU8P8b8U.js → rule-builder-BKMY8R7O.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-9StyN-b7.js → template-DyhD97jJ.js} +5 -5
- package/dist/trigger-Cb8-87Qi.js +114 -0
- package/dist/{xlsx-CrRvm5Vs.js → usePagination-9TxpwvcN.js} +3183 -2962
- package/dist/user-Drjp-FP9.js +54 -0
- package/dist/{vue-i18n-UKlvivrG.js → vue-i18n-CDCNED_Y.js} +155 -155
- package/package.json +8 -7
- package/dist/Analytic-BtldByrt.js +0 -622
- package/dist/Card-kW7k8kOl.js +0 -825
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BtI2rY4y.js +0 -2813
- package/dist/Marketing-CG4GQdax.js +0 -316
- package/dist/MemberList-CANkPyR0.js +0 -1733
- package/dist/MemberTransactions-CcCa21fY.js +0 -38
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Dh3naMXv.js +0 -1753
- package/dist/Segment-Clstp5D-.js +0 -437
- package/dist/Store-PnpBvIoo.js +0 -1511
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CrDhK2dt.js +0 -890
- package/dist/dto-B20bsdh6.js +0 -2770
- package/dist/index-BUCjM4jq.js +0 -29193
- package/dist/index-Ceu2PcnH.js +0 -206
- package/dist/index-CuvNtC_M.js +0 -61
- package/dist/index-D3DAgTFI.js +0 -762
- package/dist/index-Kjelmo0Y.js +0 -298
- package/dist/money-CmR3-qMz.js +0 -15
- package/dist/number-CZlrO6Sq.js +0 -12
- package/dist/usePagination-BeF5K3M7.js +0 -223
- package/dist/user-Bm4KttFq.js +0 -37
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent as d, ref as p, resolveComponent as _, openBlock as a, createElementBlock as f, createVNode as v, unref as o, createBlock as u, createCommentVNode as b } from "vue";
|
|
2
|
+
import { _ as k, a as x } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-DU5v6oro.js";
|
|
3
|
+
import { useRouter as y } from "vue-router";
|
|
4
|
+
const C = { class: "flex flex-col gap-y-32 pb-24" }, F = /* @__PURE__ */ d({
|
|
5
|
+
__name: "MemberTransactions",
|
|
6
|
+
setup(T) {
|
|
7
|
+
const r = y(), t = [
|
|
8
|
+
{
|
|
9
|
+
label: "Collection",
|
|
10
|
+
value: "collection"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
label: "Store",
|
|
14
|
+
value: "store"
|
|
15
|
+
}
|
|
16
|
+
], l = p(
|
|
17
|
+
t.find(
|
|
18
|
+
(s) => {
|
|
19
|
+
var e;
|
|
20
|
+
return s.value == ((e = r.currentRoute.value.query) == null ? void 0 : e.tab);
|
|
21
|
+
}
|
|
22
|
+
) || t[0]
|
|
23
|
+
), n = r.currentRoute.value.params.id;
|
|
24
|
+
return (s, e) => {
|
|
25
|
+
const c = _("FmTabs");
|
|
26
|
+
return a(), f("div", C, [
|
|
27
|
+
v(c, {
|
|
28
|
+
"model-value": o(l).value,
|
|
29
|
+
items: t,
|
|
30
|
+
"onUpdate:modelValue": e[0] || (e[0] = (m) => l.value = t.find((i) => i.value === m))
|
|
31
|
+
}, null, 8, ["model-value"]),
|
|
32
|
+
o(l).value == "collection" ? (a(), u(k, {
|
|
33
|
+
key: 0,
|
|
34
|
+
user: o(n)
|
|
35
|
+
}, null, 8, ["user"])) : o(l).value == "store" ? (a(), u(x, {
|
|
36
|
+
key: 1,
|
|
37
|
+
user: o(n)
|
|
38
|
+
}, null, 8, ["user"])) : b("", !0)
|
|
39
|
+
]);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export {
|
|
44
|
+
F as default
|
|
45
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as M, shallowRef as R, openBlock as p, createElementBlock as _, normalizeStyle as O, ref as V, resolveComponent as g, createBlock as E, unref as s, isRef as N, withCtx as x, createVNode as h, createElementVNode as v, createCommentVNode as B, withDirectives as D, vShow as A, computed as q, onMounted as J, Fragment as U, createTextVNode as P, toDisplayString as z, renderList as G } from "vue";
|
|
2
|
-
import { p as K } from "./loading-
|
|
3
|
-
import {
|
|
2
|
+
import { p as K } from "./loading-CmdIDK9W.js";
|
|
3
|
+
import { E as W } from "./index-BxrHVPJL.js";
|
|
4
4
|
import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import { _ as Q, S as X } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js";
|
|
6
6
|
import { c as Y } from "./object-qECH92oz.js";
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { u as X } from "./business-
|
|
6
|
-
import { u as Y } from "./campaign-
|
|
7
|
-
import {
|
|
8
|
-
import { _ as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { s as
|
|
12
|
-
import { u as
|
|
13
|
-
import { c as _ } from "./index-
|
|
14
|
-
const
|
|
1
|
+
import { defineComponent as E, ref as M, computed as $, h as d, onMounted as H, resolveComponent as l, openBlock as p, createElementBlock as h, Fragment as w, createVNode as c, unref as t, createElementVNode as s, withCtx as x, renderList as q, createBlock as b, resolveDynamicComponent as z, toDisplayString as u } from "vue";
|
|
2
|
+
import { _ as W } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { a as G, p as J, u as Q } from "./loading-CmdIDK9W.js";
|
|
4
|
+
import { g as L, a as B } from "./campaign-Dwea7uho.js";
|
|
5
|
+
import { u as X } from "./business-CDeQ06qx.js";
|
|
6
|
+
import { u as Y } from "./campaign-D8lQOOTp.js";
|
|
7
|
+
import { useDialog as Z, components as v } from "@feedmepos/ui-library";
|
|
8
|
+
import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
9
|
+
import { u as oe } from "./template-DyhD97jJ.js";
|
|
10
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DZOeB8YS.js";
|
|
11
|
+
import { s as ne } from "./index-CsaQJMAR.js";
|
|
12
|
+
import { u as ae } from "./vue-i18n-CDCNED_Y.js";
|
|
13
|
+
import { c as _ } from "./index-xoJ0Hv7u.js";
|
|
14
|
+
const se = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-center justify-between w-full" }, ce = { class: "flex gap-8 overflow-x-auto" }, re = { class: "space-y-8" }, le = { class: "flex w-full gap-4 items-center" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "space-y-4" }, pe = { class: "fm-typo-en-body-lg-600" }, ue = { 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" }, fe = { 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" }, Pe = /* @__PURE__ */ E({
|
|
15
15
|
__name: "Mission",
|
|
16
|
-
setup(
|
|
17
|
-
const { t: n } =
|
|
16
|
+
setup(he) {
|
|
17
|
+
const { t: n } = ae(), P = {
|
|
18
18
|
label: n("connect.program.common.actions.create", {
|
|
19
19
|
type: n("connect.program.mission.title").toLowerCase()
|
|
20
20
|
}),
|
|
21
21
|
value: "create",
|
|
22
22
|
isPrimary: !0,
|
|
23
23
|
prependIcon: "add"
|
|
24
|
-
}, K = oe("MISSION",
|
|
24
|
+
}, C = Z(), K = oe("MISSION", C), N = X(), m = Y(), { global: R, minor: S } = Q, i = M({
|
|
25
25
|
searchKey: "",
|
|
26
26
|
location: null
|
|
27
|
-
}),
|
|
28
|
-
() =>
|
|
27
|
+
}), g = $(
|
|
28
|
+
() => m.campaigns.mission.filter(
|
|
29
29
|
(e) => !i.value.location || !e.targetLocation || e.targetLocation.includes(i.value.location)
|
|
30
30
|
)
|
|
31
|
-
),
|
|
31
|
+
), T = [
|
|
32
32
|
{
|
|
33
33
|
header: n("connect.program.common.table.title"),
|
|
34
34
|
accessorKey: "name",
|
|
35
35
|
// accessorFn: (v) => v.name,
|
|
36
36
|
cell(e) {
|
|
37
|
-
return
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
return d("div", { class: "flex items-center justify-between gap-4" }, [
|
|
38
|
+
d("div", { class: "flex items-center" }, [
|
|
39
|
+
d(
|
|
40
40
|
v.FmTooltip,
|
|
41
41
|
{
|
|
42
42
|
content: e.row.original._id,
|
|
43
43
|
onClick: (o) => {
|
|
44
|
-
o.stopPropagation(),
|
|
44
|
+
o.stopPropagation(), G(e.row.original._id);
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
[
|
|
48
|
-
|
|
48
|
+
d(v.FmIcon, {
|
|
49
49
|
name: "info",
|
|
50
50
|
outline: !0,
|
|
51
51
|
size: "sm"
|
|
@@ -53,13 +53,13 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
53
53
|
]
|
|
54
54
|
)
|
|
55
55
|
]),
|
|
56
|
-
|
|
56
|
+
d("div", { class: "flex-1" }, e.row.original.name)
|
|
57
57
|
]);
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
header: n("connect.campaign.mission.type"),
|
|
62
|
-
accessorFn: (e) =>
|
|
62
|
+
accessorFn: (e) => ne(e.mission.type)
|
|
63
63
|
//v.effect,
|
|
64
64
|
},
|
|
65
65
|
{
|
|
@@ -70,7 +70,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
header: n("connect.program.common.table.summary"),
|
|
73
|
-
accessorFn: (e) =>
|
|
73
|
+
accessorFn: (e) => B(e)
|
|
74
74
|
//v.effect,
|
|
75
75
|
},
|
|
76
76
|
{
|
|
@@ -83,23 +83,23 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
83
83
|
{
|
|
84
84
|
header: n("connect.program.common.table.actions"),
|
|
85
85
|
cell(e) {
|
|
86
|
-
return
|
|
86
|
+
return d(v.FmButton, {
|
|
87
87
|
variant: "tertiary",
|
|
88
88
|
icon: "delete",
|
|
89
89
|
iconColor: "neutral-gray-400",
|
|
90
90
|
onClick: (o) => {
|
|
91
|
-
o.stopPropagation(),
|
|
91
|
+
o.stopPropagation(), k(e.row.original);
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
],
|
|
97
|
-
async function
|
|
98
|
-
await
|
|
96
|
+
], F = M();
|
|
97
|
+
async function k(e) {
|
|
98
|
+
await J.remove(
|
|
99
99
|
n("connect.program.common.remove.confirm", { name: e.name })
|
|
100
|
-
) && await
|
|
100
|
+
) && await S(
|
|
101
101
|
async () => {
|
|
102
|
-
await _.delete(e._id), await
|
|
102
|
+
await _.delete(e._id), await m.read("MISSION");
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
message: n("connect.program.common.remove.removing", { name: e.name }),
|
|
@@ -110,23 +110,35 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
112
|
async function y(e) {
|
|
113
|
-
e ? await o() : K.open(async (
|
|
114
|
-
await o(
|
|
113
|
+
e ? await o() : K.open(async (r) => {
|
|
114
|
+
await o(r);
|
|
115
115
|
});
|
|
116
|
-
async function o(
|
|
117
|
-
var
|
|
118
|
-
(
|
|
116
|
+
async function o(r) {
|
|
117
|
+
var f;
|
|
118
|
+
(f = F.value) == null || f.showSheet(
|
|
119
119
|
!0,
|
|
120
120
|
"MISSION",
|
|
121
121
|
e ? await _.readById(e._id) : void 0,
|
|
122
|
-
|
|
122
|
+
r
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
async function
|
|
127
|
-
await
|
|
126
|
+
async function U(e) {
|
|
127
|
+
e.campaign._id && e.campaign.rewards.some((o) => o.type === "VOUCHER") && await new Promise((o) => {
|
|
128
|
+
C.open({
|
|
129
|
+
title: "Confirmation",
|
|
130
|
+
message: "This will change all future vouchers? Would you like to update previous claimed vouchers expiry date and discount?",
|
|
131
|
+
primaryActions: { text: "Update all", close: !0 },
|
|
132
|
+
secondaryActions: { text: "Update future only", close: !0 }
|
|
133
|
+
}).onPrimary(async () => {
|
|
134
|
+
var r;
|
|
135
|
+
e.updateCollections = !0, (r = window.top) == null || r.postMessage("updateAllVoucher", "*"), o();
|
|
136
|
+
}).onSecondary(async () => {
|
|
137
|
+
o();
|
|
138
|
+
});
|
|
139
|
+
}), await S(
|
|
128
140
|
async () => {
|
|
129
|
-
e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await
|
|
141
|
+
e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await m.read("MISSION");
|
|
130
142
|
},
|
|
131
143
|
{
|
|
132
144
|
message: n(
|
|
@@ -140,30 +152,30 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
140
152
|
}
|
|
141
153
|
);
|
|
142
154
|
}
|
|
143
|
-
return
|
|
144
|
-
await
|
|
145
|
-
await
|
|
155
|
+
return H(async () => {
|
|
156
|
+
await R(async () => {
|
|
157
|
+
await m.read("MISSION"), console.log(g);
|
|
146
158
|
});
|
|
147
159
|
}), (e, o) => {
|
|
148
|
-
const
|
|
149
|
-
return
|
|
150
|
-
c(
|
|
160
|
+
const r = l("FmPageHead"), f = l("FmSearch"), O = l("FmTable"), I = l("FmButton"), A = l("FmListItem"), D = l("FmList"), j = l("FmCard");
|
|
161
|
+
return p(), h(w, null, [
|
|
162
|
+
c(r, {
|
|
151
163
|
title: t(n)("connect.campaign.mission.title"),
|
|
152
|
-
actions: t(
|
|
164
|
+
actions: t(g).length > 0 ? [P] : [],
|
|
153
165
|
"onClick:action": o[0] || (o[0] = () => y())
|
|
154
166
|
}, null, 8, ["title", "actions"]),
|
|
155
|
-
s("div",
|
|
156
|
-
c(
|
|
167
|
+
s("div", se, [
|
|
168
|
+
c(f, {
|
|
157
169
|
modelValue: t(i).searchKey,
|
|
158
170
|
"onUpdate:modelValue": o[1] || (o[1] = (a) => t(i).searchKey = a),
|
|
159
171
|
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
160
172
|
placeholder: t(n)("connect.program.common.search"),
|
|
161
173
|
collapsible: ""
|
|
162
174
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
163
|
-
t(
|
|
164
|
-
s("div",
|
|
165
|
-
s("div",
|
|
166
|
-
c(
|
|
175
|
+
t(m).campaigns.mission && t(m).campaigns.mission.length > 0 ? (p(), h(w, { key: 0 }, [
|
|
176
|
+
s("div", ie, [
|
|
177
|
+
s("div", ce, [
|
|
178
|
+
c(ee, {
|
|
167
179
|
modelValue: t(i).location,
|
|
168
180
|
"onUpdate:modelValue": o[2] || (o[2] = (a) => t(i).location = a),
|
|
169
181
|
label: t(n)("connect.program.common.location"),
|
|
@@ -173,7 +185,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
173
185
|
items: t(N).locationItems
|
|
174
186
|
}, null, 8, ["modelValue", "label", "items"])
|
|
175
187
|
]),
|
|
176
|
-
c(
|
|
188
|
+
c(f, {
|
|
177
189
|
modelValue: t(i).searchKey,
|
|
178
190
|
"onUpdate:modelValue": o[3] || (o[3] = (a) => t(i).searchKey = a),
|
|
179
191
|
class: "xs:hidden",
|
|
@@ -183,39 +195,39 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
183
195
|
]),
|
|
184
196
|
c(O, {
|
|
185
197
|
class: "xs:hidden",
|
|
186
|
-
"row-data": t(
|
|
187
|
-
"column-defs":
|
|
198
|
+
"row-data": t(g),
|
|
199
|
+
"column-defs": T,
|
|
188
200
|
"search-value": t(i).searchKey,
|
|
189
201
|
"column-filter": [],
|
|
190
202
|
onRowClick: o[4] || (o[4] = (a) => y(a.original)),
|
|
191
|
-
"hide-footer": t(
|
|
203
|
+
"hide-footer": t(g).length < 10
|
|
192
204
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
193
205
|
c(D, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
194
|
-
default:
|
|
195
|
-
(
|
|
206
|
+
default: x(() => [
|
|
207
|
+
(p(!0), h(w, null, q(t(g).filter(
|
|
196
208
|
(a) => a.name.toLowerCase().includes(t(i).searchKey.toLowerCase())
|
|
197
|
-
), (a) => (
|
|
209
|
+
), (a) => (p(), b(A, {
|
|
198
210
|
key: a._id.toString(),
|
|
199
|
-
onClick: (
|
|
211
|
+
onClick: (V) => y(a),
|
|
200
212
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
201
213
|
}, {
|
|
202
|
-
default:
|
|
203
|
-
s("div",
|
|
204
|
-
s("div",
|
|
205
|
-
(
|
|
206
|
-
s("div",
|
|
214
|
+
default: x(() => [
|
|
215
|
+
s("div", re, [
|
|
216
|
+
s("div", le, [
|
|
217
|
+
(p(), b(z(t(L)(a)))),
|
|
218
|
+
s("div", me, u(a.currentReceive ?? 0) + " used ", 1)
|
|
207
219
|
]),
|
|
208
|
-
s("div",
|
|
209
|
-
s("div",
|
|
210
|
-
s("div",
|
|
220
|
+
s("div", de, [
|
|
221
|
+
s("div", pe, u(a.name), 1),
|
|
222
|
+
s("div", ue, u(t(B)(a)), 1)
|
|
211
223
|
]),
|
|
212
|
-
s("div",
|
|
224
|
+
s("div", ge, " Token received: " + u(a.currentReceive ?? 0), 1)
|
|
213
225
|
]),
|
|
214
|
-
c(
|
|
226
|
+
c(I, {
|
|
215
227
|
icon: "delete",
|
|
216
228
|
"icon-color": "neutral-gray-400",
|
|
217
229
|
variant: "tertiary",
|
|
218
|
-
onClick: (
|
|
230
|
+
onClick: (V) => (V.stopPropagation(), k(a))
|
|
219
231
|
}, null, 8, ["onClick"])
|
|
220
232
|
]),
|
|
221
233
|
_: 2
|
|
@@ -223,21 +235,21 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
223
235
|
]),
|
|
224
236
|
_: 1
|
|
225
237
|
})
|
|
226
|
-
], 64)) : (
|
|
238
|
+
], 64)) : (p(), b(j, {
|
|
227
239
|
key: 1,
|
|
228
240
|
variant: "outlined",
|
|
229
241
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
230
242
|
}, {
|
|
231
|
-
default:
|
|
243
|
+
default: x(() => [
|
|
232
244
|
o[6] || (o[6] = s("img", {
|
|
233
|
-
src:
|
|
245
|
+
src: W,
|
|
234
246
|
class: "aspect-square w-[150px]"
|
|
235
247
|
}, null, -1)),
|
|
236
248
|
s("div", fe, [
|
|
237
|
-
s("div",
|
|
238
|
-
s("div",
|
|
249
|
+
s("div", ye, u(t(n)("connect.campaign.mission.createProgram")), 1),
|
|
250
|
+
s("div", _e, u(t(n)("connect.campaign.mission.description")), 1)
|
|
239
251
|
]),
|
|
240
|
-
c(
|
|
252
|
+
c(I, {
|
|
241
253
|
variant: "primary",
|
|
242
254
|
label: t(n)("connect.campaign.mission.create"),
|
|
243
255
|
icon: "add",
|
|
@@ -246,10 +258,10 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
246
258
|
]),
|
|
247
259
|
_: 1
|
|
248
260
|
})),
|
|
249
|
-
c(
|
|
261
|
+
c(te, {
|
|
250
262
|
ref_key: "sheetRef",
|
|
251
|
-
ref:
|
|
252
|
-
"onSubmit:modelValue":
|
|
263
|
+
ref: F,
|
|
264
|
+
"onSubmit:modelValue": U
|
|
253
265
|
}, null, 512)
|
|
254
266
|
])
|
|
255
267
|
], 64);
|
|
@@ -257,5 +269,5 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-
|
|
|
257
269
|
}
|
|
258
270
|
});
|
|
259
271
|
export {
|
|
260
|
-
|
|
272
|
+
Pe as default
|
|
261
273
|
};
|