@feedmepos/mf-connect 0.1.24-prod → 0.1.26-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-DH3odpBh.js → Analytic-WXmpLkLU.js} +18 -17
- package/dist/{App-DT9d3Bm2.js → App-jBGNDeCb.js} +6 -6
- package/dist/{Bin-CEFG1nRH.js → Bin-COj4GqKe.js} +19 -18
- package/dist/{Broadcast-B_rv159-.js → Broadcast-vIqSNTJh.js} +13 -12
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DzD9-r4-.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BVtfunGL.js} +14 -8
- package/dist/{Card-Dyya8J2U.js → Card-CGyBry4S.js} +57 -55
- package/dist/{Collections-Dl2FDFOD.js → Collections-BeQ_uFRE.js} +23 -21
- package/dist/{Credit-B9mz3eUI.js → Credit-DWsgc_P1.js} +35 -34
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-TrKmONi5.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DxPsGM7d.js} +28 -27
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CVCgGHg4.js → EffectSheet.vue_vue_type_style_index_0_lang-DlCdWAqB.js} +6 -6
- package/dist/{Experience-CGwG9JGa.js → Experience-DQ5ofpRU.js} +13 -12
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js +118 -0
- package/dist/Game-dl01-cxh.js +278 -0
- package/dist/{Index-D0IkkcBH.js → Index-B33SYml2.js} +14 -13
- package/dist/{Marketing-HmC8ZXqz.js → Marketing-CqWuI9r1.js} +8 -7
- package/dist/Member-PuWzURyR.js +348 -0
- package/dist/{MemberList-_MFrJqht.js → MemberList-dQljjKIC.js} +275 -269
- package/dist/{MemberTransactions-kUyU9Qn6.js → MemberTransactions-BH1U_v3f.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DypmZY2G.js → MessageInput.vue_vue_type_script_setup_true_lang-ZSNwpN6m.js} +7 -7
- package/dist/{Mission-OUjm7KRr.js → Mission-PjsS8VTH.js} +118 -96
- package/dist/{Overview-F2AvMo-g.js → Overview-B6zXdxIf.js} +63 -62
- package/dist/{Point-K9poYQjB.js → Point-DhYeSbYo.js} +11 -10
- package/dist/{Promotion-DpS6PQFU.js → Promotion-4yBcCEQA.js} +12 -11
- package/dist/Queue-BCOe370v.js +249 -0
- package/dist/{Record-CZMB7xKL.js → Record-FxeE4KZe.js} +21 -19
- package/dist/{Reward-zMCEkbO5.js → Reward-B4licTuW.js} +19 -18
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Dj73NYhp.js → RewardGroup.vue_vue_type_script_setup_true_lang-CKWOhSQh.js} +13 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-FyuAHi5K.js → RuleGroup.vue_vue_type_script_setup_true_lang-BbOzaj63.js} +12 -12
- package/dist/{Segment-LthACAfl.js → Segment-DONb4N1l.js} +19 -17
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DRe6Gyov.js → SelectItems.vue_vue_type_script_setup_true_lang-CvHYZpGm.js} +2 -2
- package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-NDwwOZSM.js +188 -0
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Z9Nb9b6-.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D2ixqrV7.js} +3 -3
- package/dist/{Setting-8ASd681E.js → Setting-BQOcVtGa.js} +20 -19
- package/dist/{Store-C-bmQP0K.js → Store-BlaFXTeO.js} +24 -23
- package/dist/{StoreRewards-Bu3DWaCn.js → StoreRewards-Lqc34UoD.js} +15 -14
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-C5dViJNi.js +994 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-Bn7aoYqw.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-e_31o0i7.js} +1 -1
- package/dist/{Tier-DDKUGBRg.js → Tier-B26lO0SB.js} +25 -24
- package/dist/{Title-Cup_EWfZ.js → Title-BASSyfhP.js} +28 -27
- package/dist/{Transaction-BqvgfyiW.js → Transaction-BbzBRylw.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BCkXievQ.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BFyl96zy.js} +6 -6
- package/dist/{Voucher-Dxk6zfcN.js → Voucher-A_GG0E5t.js} +38 -37
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DmswMNi5.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CCGtKQTW.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-D-UPL1Rc.js → ZodTextField.vue_vue_type_script_setup_true_lang-DGNqvOl5.js} +1 -1
- package/dist/{app-bidojB9R.js → app-C7FQYfsn.js} +1 -1
- package/dist/{app-BDUrJlXZ.js → app-DV-5XPYF.js} +235 -166
- package/dist/app.js +1 -1
- package/dist/{business-CFOn3-Hz.js → business-C8PXQSRE.js} +1 -1
- package/dist/{campaign-DyzzIbnA.js → campaign-B4eKVpps.js} +9 -9
- package/dist/{campaign-BVIiGyq9.js → campaign-CuZ6u4yy.js} +2 -2
- package/dist/{campaign.enum-aFjayQfJ.js → campaign.enum-xbqqPDwY.js} +1 -1
- package/dist/{campaign.fn-BKADpFTx.js → campaign.fn-GFFtrWsz.js} +133 -133
- package/dist/{collectible.enum-vEUgo0YF.js → collectible.enum-DB4oBcfv.js} +1 -1
- package/dist/{collection.fn-D2Kbz9yq.js → collection.fn-BwpscyTl.js} +2 -2
- package/dist/{dto-CKxtFHko.js → dto-Cr20KGr0.js} +4 -4
- package/dist/{effect-BEWKDhDB.js → effect-D9-UiBiK.js} +1 -1
- package/dist/{email-addresses-BWDg5Wvf.js → email-addresses-F3hoXmRI.js} +1 -1
- package/dist/{export-DO-WeD6l.js → export-BIPF1ilY.js} +3 -3
- package/dist/{helper-CSGr0Zgt.js → helper-Tf1bFEee.js} +1 -1
- package/dist/{index-UVHHFXyh.js → index-B2jAIO5k.js} +1162 -1129
- package/dist/{index-Dw_jc7Et.js → index-BYzdfZKb.js} +3 -3
- package/dist/{index-BgJVKNYg.js → index-BhlEaLpy.js} +24 -21
- package/dist/{index-BV4M35iK.js → index-Bkw-11Tg.js} +2 -2
- package/dist/{index-CFXFhGs9.js → index-BvqdtS9H.js} +1 -1
- package/dist/{index-DVsh-nBE.js → index-CpUyyTF6.js} +1 -1
- package/dist/{index-CUlYeKKH.js → index-D4XX55M5.js} +1 -1
- package/dist/{index-CEjeBL2U.js → index-Dow2N7x1.js} +1 -1
- package/dist/{index--Mrx1FRI.js → index-IOTB7rGH.js} +1 -1
- package/dist/{index-CoMMyOsj.js → index-bb6Kd8k_.js} +10 -10
- package/dist/{index-DSBnWOie.js → index-gTmOLzQU.js} +1 -1
- package/dist/{index-Bg3caQS6.js → index-mjBmZtX2.js} +1273 -1273
- package/dist/{index.esm2017-CDzvT_fP.js → index.esm2017-Y_0J3nbR.js} +137 -137
- package/dist/loading-BbC_ZIPE.js +71 -0
- package/dist/{membership-DK9FNo2Y.js → membership-BM_2_hUW.js} +3 -3
- package/dist/{money-DJYiw0es.js → money-BsBmwalY.js} +1 -1
- package/dist/{number-BjhqQBza.js → number-QqpGrk9q.js} +1 -1
- package/dist/objectid-DQj-P2cH.js +145 -0
- package/dist/{loading-CWihCJvJ.js → plugins-DKPF0eaB.js} +1535 -1601
- package/dist/{reward-DlE5Zt3d.js → reward-Yl3EdHrH.js} +1 -1
- package/dist/{rule-a2_WCjR8.js → rule-DW_bLKtu.js} +3 -3
- package/dist/{rule-builder-Q8iGSpDV.js → rule-builder-BoITzEtm.js} +1 -1
- package/dist/{template-3faxO3XM.js → template-BSQzNJs5.js} +4 -4
- package/dist/{trigger-Cnvhgqkj.js → trigger-Bel1H8iR.js} +11 -11
- package/dist/usePagination-JoYaROkV.js +223 -0
- package/dist/{user-CoiXBmet.js → user-Dg2HfZlK.js} +1 -1
- package/dist/vue-i18n-CvvsV6dR.js +2365 -0
- package/dist/{usePagination-dNrSGtRV.js → xlsx-1oIZztwO.js} +2979 -3200
- package/package.json +3 -1
- package/dist/Game-DbhOlio1.js +0 -256
- package/dist/Member-NSQ2nHzW.js +0 -69
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CDRpkUaP.js +0 -1105
- package/dist/objectid-Cep7PkzN.js +0 -145
- package/dist/vue-i18n-B2XH0K8P.js +0 -2365
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { _ as k, a as x } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-C5dViJNi.js";
|
|
3
3
|
import { useRouter as y } from "vue-router";
|
|
4
4
|
const C = { class: "flex flex-col gap-y-32 pb-24" }, F = /* @__PURE__ */ d({
|
|
5
5
|
__name: "MemberTransactions",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as j, shallowRef as N, openBlock as p, createElementBlock as _, normalizeStyle as O, ref as V, resolveComponent as g, createBlock as E, unref as s, isRef as P, withCtx as v, createVNode as h, createElementVNode as x, createCommentVNode as T, withDirectives as
|
|
2
|
-
import { p as W } from "./
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as j, shallowRef as N, openBlock as p, createElementBlock as _, normalizeStyle as O, ref as V, resolveComponent as g, createBlock as E, unref as s, isRef as P, withCtx as v, createVNode as h, createElementVNode as x, createCommentVNode as T, withDirectives as A, vShow as U, computed as q, onMounted as G, Fragment as L, createTextVNode as J, toDisplayString as z, renderList as K } from "vue";
|
|
2
|
+
import { p as W } from "./plugins-DKPF0eaB.js";
|
|
3
|
+
import { A as Y } from "./index-B2jAIO5k.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 ee } from "./object-qECH92oz.js";
|
|
@@ -212,14 +212,14 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
|
|
|
212
212
|
width: 100,
|
|
213
213
|
height: 100
|
|
214
214
|
}, null, 8, ["json"])),
|
|
215
|
-
|
|
215
|
+
A(h(M, {
|
|
216
216
|
label: "Email title",
|
|
217
217
|
modelValue: s(f).title,
|
|
218
218
|
"onUpdate:modelValue": a[0] || (a[0] = (d) => s(f).title = d)
|
|
219
219
|
}, null, 8, ["modelValue"]), [
|
|
220
|
-
[
|
|
220
|
+
[U, s(r)]
|
|
221
221
|
]),
|
|
222
|
-
|
|
222
|
+
A(h(ue, {
|
|
223
223
|
class: "flex-1",
|
|
224
224
|
ref_key: "editorRef",
|
|
225
225
|
ref: y,
|
|
@@ -229,7 +229,7 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
|
|
|
229
229
|
r.value = !0, b.design && ((d = s(y)) == null || d.loadDesign(s(ee)(b.design)));
|
|
230
230
|
})
|
|
231
231
|
}, null, 512), [
|
|
232
|
-
[
|
|
232
|
+
[U, s(r)]
|
|
233
233
|
])
|
|
234
234
|
])
|
|
235
235
|
]),
|
|
@@ -1,54 +1,56 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import {
|
|
4
|
-
import { g as X, a as
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
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-BbC_ZIPE.js";
|
|
4
|
+
import { g as X, a as B, b as P } from "./campaign-B4eKVpps.js";
|
|
5
|
+
import { a as Y, p as Z } from "./plugins-DKPF0eaB.js";
|
|
6
|
+
import { u as ee } from "./business-C8PXQSRE.js";
|
|
7
|
+
import { u as oe } from "./campaign-CuZ6u4yy.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-BSQzNJs5.js";
|
|
11
|
+
import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DxPsGM7d.js";
|
|
12
|
+
import { s as ie } from "./index-CuvNtC_M.js";
|
|
13
|
+
import { u as ce } from "./vue-i18n-CvvsV6dR.js";
|
|
14
|
+
import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-NDwwOZSM.js";
|
|
15
|
+
import { c as h } from "./index-gTmOLzQU.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 = /* @__PURE__ */ s("img", {
|
|
17
|
+
src: J,
|
|
16
18
|
class: "aspect-square w-[150px]"
|
|
17
|
-
}, null, -1),
|
|
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({
|
|
18
20
|
__name: "Mission",
|
|
19
|
-
setup(
|
|
20
|
-
const { t: n } =
|
|
21
|
+
setup(be) {
|
|
22
|
+
const { t: n } = ce(), R = {
|
|
21
23
|
label: n("connect.program.common.actions.create", {
|
|
22
24
|
type: n("connect.program.mission.title").toLowerCase()
|
|
23
25
|
}),
|
|
24
26
|
value: "create",
|
|
25
27
|
isPrimary: !0,
|
|
26
28
|
prependIcon: "add"
|
|
27
|
-
},
|
|
29
|
+
}, S = te(), K = ae("MISSION", S), N = ee(), d = oe(), { global: T, minor: F } = Q, i = w({
|
|
28
30
|
searchKey: "",
|
|
29
31
|
location: null
|
|
30
|
-
}),
|
|
31
|
-
() =>
|
|
32
|
+
}), f = q(
|
|
33
|
+
() => d.campaigns.mission.filter(
|
|
32
34
|
(e) => !i.value.location || !e.targetLocation || e.targetLocation.includes(i.value.location)
|
|
33
35
|
)
|
|
34
|
-
),
|
|
36
|
+
), U = [
|
|
35
37
|
{
|
|
36
38
|
header: n("connect.program.common.table.title"),
|
|
37
39
|
accessorKey: "name",
|
|
38
40
|
// accessorFn: (v) => v.name,
|
|
39
41
|
cell(e) {
|
|
40
|
-
return
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
return l("div", { class: "flex items-center justify-between gap-4" }, [
|
|
43
|
+
l("div", { class: "flex items-center" }, [
|
|
44
|
+
l(
|
|
45
|
+
_.FmTooltip,
|
|
44
46
|
{
|
|
45
47
|
content: e.row.original._id,
|
|
46
48
|
onClick: (o) => {
|
|
47
|
-
o.stopPropagation(),
|
|
49
|
+
o.stopPropagation(), Y(e.row.original._id);
|
|
48
50
|
}
|
|
49
51
|
},
|
|
50
52
|
[
|
|
51
|
-
|
|
53
|
+
l(_.FmIcon, {
|
|
52
54
|
name: "info",
|
|
53
55
|
outline: !0,
|
|
54
56
|
size: "sm"
|
|
@@ -56,25 +58,25 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
|
|
|
56
58
|
]
|
|
57
59
|
)
|
|
58
60
|
]),
|
|
59
|
-
|
|
61
|
+
l("div", { class: "flex-1" }, e.row.original.name)
|
|
60
62
|
]);
|
|
61
63
|
}
|
|
62
64
|
},
|
|
63
65
|
{
|
|
64
66
|
header: n("connect.campaign.mission.type"),
|
|
65
|
-
accessorFn: (e) =>
|
|
67
|
+
accessorFn: (e) => ie(e.mission.type)
|
|
66
68
|
//v.effect,
|
|
67
69
|
},
|
|
68
70
|
{
|
|
69
71
|
header: n("connect.program.common.table.status"),
|
|
70
72
|
accessorFn: (e) => X(e),
|
|
71
73
|
cell(e) {
|
|
72
|
-
return
|
|
74
|
+
return B(e.row.original);
|
|
73
75
|
}
|
|
74
76
|
},
|
|
75
77
|
{
|
|
76
78
|
header: n("connect.program.common.table.summary"),
|
|
77
|
-
accessorFn: (e) =>
|
|
79
|
+
accessorFn: (e) => P(e)
|
|
78
80
|
//v.effect,
|
|
79
81
|
},
|
|
80
82
|
{
|
|
@@ -87,23 +89,33 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
|
|
|
87
89
|
{
|
|
88
90
|
header: n("connect.program.common.table.actions"),
|
|
89
91
|
cell(e) {
|
|
90
|
-
return
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
o
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
return l("div", { class: "flex items-center gap-8" }, [
|
|
93
|
+
l(_.FmButton, {
|
|
94
|
+
variant: "tertiary",
|
|
95
|
+
icon: "send",
|
|
96
|
+
iconColor: "neutral-gray-400",
|
|
97
|
+
onClick: (o) => {
|
|
98
|
+
o.stopPropagation(), A(e.row.original);
|
|
99
|
+
}
|
|
100
|
+
}),
|
|
101
|
+
l(_.FmButton, {
|
|
102
|
+
variant: "tertiary",
|
|
103
|
+
icon: "delete",
|
|
104
|
+
iconColor: "neutral-gray-400",
|
|
105
|
+
onClick: (o) => {
|
|
106
|
+
o.stopPropagation(), V(e.row.original);
|
|
107
|
+
}
|
|
108
|
+
})
|
|
109
|
+
]);
|
|
98
110
|
}
|
|
99
111
|
}
|
|
100
|
-
],
|
|
101
|
-
async function
|
|
102
|
-
await
|
|
112
|
+
], k = w(), I = w();
|
|
113
|
+
async function V(e) {
|
|
114
|
+
await Z.remove(
|
|
103
115
|
n("connect.program.common.remove.confirm", { name: e.name })
|
|
104
|
-
) && await
|
|
116
|
+
) && await F(
|
|
105
117
|
async () => {
|
|
106
|
-
await
|
|
118
|
+
await h.delete(e._id), await d.read("MISSION");
|
|
107
119
|
},
|
|
108
120
|
{
|
|
109
121
|
message: n("connect.program.common.remove.removing", { name: e.name }),
|
|
@@ -118,18 +130,18 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
|
|
|
118
130
|
await o(r);
|
|
119
131
|
});
|
|
120
132
|
async function o(r) {
|
|
121
|
-
var
|
|
122
|
-
(
|
|
133
|
+
var g;
|
|
134
|
+
(g = k.value) == null || g.showSheet(
|
|
123
135
|
!0,
|
|
124
136
|
"MISSION",
|
|
125
|
-
e ? await
|
|
137
|
+
e ? await h.readById(e._id) : void 0,
|
|
126
138
|
r
|
|
127
139
|
);
|
|
128
140
|
}
|
|
129
141
|
}
|
|
130
|
-
async function
|
|
142
|
+
async function O(e) {
|
|
131
143
|
e.campaign._id && e.campaign.rewards.some((o) => o.type === "VOUCHER") && await new Promise((o) => {
|
|
132
|
-
|
|
144
|
+
S.open({
|
|
133
145
|
title: "Confirmation",
|
|
134
146
|
message: "This will change all future vouchers? Would you like to update previous claimed vouchers expiry date and discount?",
|
|
135
147
|
primaryActions: { text: "Update all", close: !0 },
|
|
@@ -140,9 +152,9 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
|
|
|
140
152
|
}).onSecondary(async () => {
|
|
141
153
|
o();
|
|
142
154
|
});
|
|
143
|
-
}), await
|
|
155
|
+
}), await F(
|
|
144
156
|
async () => {
|
|
145
|
-
e.campaign._id ? await
|
|
157
|
+
e.campaign._id ? await h.update(e.campaign._id, e) : await h.create(e), await d.read("MISSION");
|
|
146
158
|
},
|
|
147
159
|
{
|
|
148
160
|
message: n(
|
|
@@ -156,30 +168,36 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
|
|
|
156
168
|
}
|
|
157
169
|
);
|
|
158
170
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
171
|
+
function A(e) {
|
|
172
|
+
var o;
|
|
173
|
+
(o = I.value) == null || o.showSheet({
|
|
174
|
+
campaign: e
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
return z(async () => {
|
|
178
|
+
await T(async () => {
|
|
179
|
+
await d.read("MISSION"), console.log(f);
|
|
162
180
|
});
|
|
163
181
|
}), (e, o) => {
|
|
164
|
-
const r =
|
|
165
|
-
return p(),
|
|
182
|
+
const r = m("FmPageHead"), g = m("FmSearch"), D = m("FmTable"), M = m("FmButton"), $ = m("FmListItem"), j = m("FmList"), E = m("FmCard");
|
|
183
|
+
return p(), x(v, null, [
|
|
166
184
|
c(r, {
|
|
167
185
|
title: t(n)("connect.campaign.mission.title"),
|
|
168
|
-
actions: t(
|
|
186
|
+
actions: t(f).length > 0 ? [R] : [],
|
|
169
187
|
"onClick:action": o[0] || (o[0] = () => y())
|
|
170
188
|
}, null, 8, ["title", "actions"]),
|
|
171
|
-
s("div",
|
|
172
|
-
c(
|
|
189
|
+
s("div", le, [
|
|
190
|
+
c(g, {
|
|
173
191
|
modelValue: t(i).searchKey,
|
|
174
192
|
"onUpdate:modelValue": o[1] || (o[1] = (a) => t(i).searchKey = a),
|
|
175
193
|
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
176
194
|
placeholder: t(n)("connect.program.common.search"),
|
|
177
195
|
collapsible: ""
|
|
178
196
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
179
|
-
t(
|
|
180
|
-
s("div",
|
|
181
|
-
s("div",
|
|
182
|
-
c(
|
|
197
|
+
t(d).campaigns.mission && t(d).campaigns.mission.length > 0 ? (p(), x(v, { key: 0 }, [
|
|
198
|
+
s("div", me, [
|
|
199
|
+
s("div", de, [
|
|
200
|
+
c(ne, {
|
|
183
201
|
modelValue: t(i).location,
|
|
184
202
|
"onUpdate:modelValue": o[2] || (o[2] = (a) => t(i).location = a),
|
|
185
203
|
label: t(n)("connect.program.common.location"),
|
|
@@ -189,7 +207,7 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
|
|
|
189
207
|
items: t(N).locationItems
|
|
190
208
|
}, null, 8, ["modelValue", "label", "items"])
|
|
191
209
|
]),
|
|
192
|
-
c(
|
|
210
|
+
c(g, {
|
|
193
211
|
modelValue: t(i).searchKey,
|
|
194
212
|
"onUpdate:modelValue": o[3] || (o[3] = (a) => t(i).searchKey = a),
|
|
195
213
|
class: "xs:hidden",
|
|
@@ -197,41 +215,41 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
|
|
|
197
215
|
collapsible: ""
|
|
198
216
|
}, null, 8, ["modelValue"])
|
|
199
217
|
]),
|
|
200
|
-
c(
|
|
218
|
+
c(D, {
|
|
201
219
|
class: "xs:hidden",
|
|
202
|
-
"row-data": t(
|
|
203
|
-
"column-defs":
|
|
220
|
+
"row-data": t(f),
|
|
221
|
+
"column-defs": U,
|
|
204
222
|
"search-value": t(i).searchKey,
|
|
205
223
|
"column-filter": [],
|
|
206
224
|
onRowClick: o[4] || (o[4] = (a) => y(a.original)),
|
|
207
|
-
"hide-footer": t(
|
|
225
|
+
"hide-footer": t(f).length < 10
|
|
208
226
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
209
|
-
c(
|
|
210
|
-
default:
|
|
211
|
-
(p(!0),
|
|
227
|
+
c(j, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
228
|
+
default: C(() => [
|
|
229
|
+
(p(!0), x(v, null, W(t(f).filter(
|
|
212
230
|
(a) => a.name.toLowerCase().includes(t(i).searchKey.toLowerCase())
|
|
213
|
-
), (a) => (p(), b(
|
|
231
|
+
), (a) => (p(), b($, {
|
|
214
232
|
key: a._id.toString(),
|
|
215
|
-
onClick: (
|
|
233
|
+
onClick: (L) => y(a),
|
|
216
234
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
217
235
|
}, {
|
|
218
|
-
default:
|
|
219
|
-
s("div",
|
|
220
|
-
s("div",
|
|
221
|
-
(p(), b(
|
|
222
|
-
s("div",
|
|
236
|
+
default: C(() => [
|
|
237
|
+
s("div", pe, [
|
|
238
|
+
s("div", ue, [
|
|
239
|
+
(p(), b(G(t(B)(a)))),
|
|
240
|
+
s("div", fe, u(a.currentReceive ?? 0) + " used ", 1)
|
|
223
241
|
]),
|
|
224
|
-
s("div",
|
|
225
|
-
s("div",
|
|
226
|
-
s("div",
|
|
242
|
+
s("div", ge, [
|
|
243
|
+
s("div", ye, u(a.name), 1),
|
|
244
|
+
s("div", _e, u(t(P)(a)), 1)
|
|
227
245
|
]),
|
|
228
|
-
s("div",
|
|
246
|
+
s("div", he, " Token received: " + u(a.currentReceive ?? 0), 1)
|
|
229
247
|
]),
|
|
230
|
-
c(
|
|
248
|
+
c(M, {
|
|
231
249
|
icon: "delete",
|
|
232
250
|
"icon-color": "neutral-gray-400",
|
|
233
251
|
variant: "tertiary",
|
|
234
|
-
onClick: (
|
|
252
|
+
onClick: (L) => (L.stopPropagation(), V(a))
|
|
235
253
|
}, null, 8, ["onClick"])
|
|
236
254
|
]),
|
|
237
255
|
_: 2
|
|
@@ -239,18 +257,18 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
|
|
|
239
257
|
]),
|
|
240
258
|
_: 1
|
|
241
259
|
})
|
|
242
|
-
], 64)) : (p(), b(
|
|
260
|
+
], 64)) : (p(), b(E, {
|
|
243
261
|
key: 1,
|
|
244
262
|
variant: "outlined",
|
|
245
263
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
246
264
|
}, {
|
|
247
|
-
default:
|
|
248
|
-
|
|
249
|
-
s("div",
|
|
250
|
-
s("div",
|
|
251
|
-
s("div",
|
|
265
|
+
default: C(() => [
|
|
266
|
+
we,
|
|
267
|
+
s("div", xe, [
|
|
268
|
+
s("div", ve, u(t(n)("connect.campaign.mission.createProgram")), 1),
|
|
269
|
+
s("div", Ce, u(t(n)("connect.campaign.mission.description")), 1)
|
|
252
270
|
]),
|
|
253
|
-
c(
|
|
271
|
+
c(M, {
|
|
254
272
|
variant: "primary",
|
|
255
273
|
label: t(n)("connect.campaign.mission.create"),
|
|
256
274
|
icon: "add",
|
|
@@ -259,10 +277,14 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
|
|
|
259
277
|
]),
|
|
260
278
|
_: 1
|
|
261
279
|
})),
|
|
262
|
-
c(
|
|
280
|
+
c(se, {
|
|
263
281
|
ref_key: "sheetRef",
|
|
264
|
-
ref:
|
|
265
|
-
"onSubmit:modelValue":
|
|
282
|
+
ref: k,
|
|
283
|
+
"onSubmit:modelValue": O
|
|
284
|
+
}, null, 512),
|
|
285
|
+
c(re, {
|
|
286
|
+
ref_key: "sendCollectionSheetRef",
|
|
287
|
+
ref: I
|
|
266
288
|
}, null, 512)
|
|
267
289
|
])
|
|
268
290
|
], 64);
|
|
@@ -270,5 +292,5 @@ const ie = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-
|
|
|
270
292
|
}
|
|
271
293
|
});
|
|
272
294
|
export {
|
|
273
|
-
|
|
295
|
+
Ae as default
|
|
274
296
|
};
|