@feedmepos/mf-connect 0.1.48-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-DrjBaKmx.js → Analytic-ibBD_21m.js} +11 -11
- package/dist/{App-eIaytGsZ.js → App-CDjwWK8a.js} +7 -7
- package/dist/{Bin-CVp0eFwl.js → Bin-DCaG0YGW.js} +8 -8
- package/dist/Broadcast-CbF3d_N7.js +233 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CugJWeBo.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BqYusgBO.js} +6 -6
- package/dist/{Card-DkP6oJVn.js → Card-CDNE85po.js} +16 -16
- package/dist/{Collections-DYb_aeTW.js → Collections-DHn__E9U.js} +7 -7
- package/dist/Credit-DiTnwnFe.js +228 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Dt9c2kvf.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJEAsRON.js} +30 -30
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DT3y4k1C.js → EffectSheet.vue_vue_type_style_index_0_lang-CU9XpMjd.js} +6 -6
- 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-C7jxRESY.js → Game-D3gANFAo.js} +103 -97
- package/dist/{Index-DYr1p4sh.js → Index-DEF_a5Mu.js} +10 -10
- package/dist/{Marketing-Djl27fez.js → Marketing-BeED4Y7H.js} +6 -6
- package/dist/{Member-CWXedfTG.js → Member-CA4hnHJY.js} +10 -10
- package/dist/{MemberList-C2TvGi22.js → MemberList-CZtriA_Q.js} +25 -25
- package/dist/{MemberTransactions-BSUocGg9.js → MemberTransactions-BVrvf4AM.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D8xPA6jM.js → MessageInput.vue_vue_type_script_setup_true_lang-BqTDGnOG.js} +7 -7
- package/dist/{Mission-BVx9Cqi5.js → Mission-CDSMpqnG.js} +112 -106
- package/dist/{Overview-DyXF9zfB.js → Overview-ArineqY4.js} +18 -18
- package/dist/Point-51MD49EM.js +232 -0
- package/dist/{Promotion-B0Q6GItP.js → Promotion-BVrofYd6.js} +11 -11
- package/dist/{Queue-BAWG1Hh-.js → Queue-Q-aEeZ8w.js} +11 -11
- package/dist/{Record-CTp80g4A.js → Record-DaVcschI.js} +8 -8
- package/dist/{Reward-_Jow1lJ7.js → Reward-DTtFuqOZ.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BV8xCejA.js → RewardGroup.vue_vue_type_script_setup_true_lang-P_gNd6ZP.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DkDAuGY0.js → RuleGroup.vue_vue_type_script_setup_true_lang-CVy_kDmy.js} +13 -13
- package/dist/{Segment-CsdJ1SjK.js → Segment-DIy4RERw.js} +22 -22
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DH3oIm2t.js → SelectItems.vue_vue_type_script_setup_true_lang-D3KIZJLo.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DvVrjpxR.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-bSi6_uqi.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D5gV89Xk.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BsNLkA2v.js} +3 -3
- package/dist/{Setting-BZRA50LO.js → Setting-DGDgmP84.js} +11 -11
- package/dist/{Store-CFnCN_7-.js → Store-Dh2uVHGY.js} +19 -19
- package/dist/{StoreRewards-B_McpBz-.js → StoreRewards-DFF_0g59.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-vL0vr-Xn.js → StoreTransactions.vue_vue_type_script_setup_true_lang-PrFhYJXc.js} +20 -20
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C1ZlLdme.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-VcU2Asjy.js} +1 -1
- package/dist/{Tier-CCYFu6kJ.js → Tier-yKvE4mRW.js} +20 -20
- package/dist/{Title-7Mg-Ml4z.js → Title-DWWSC02W.js} +19 -19
- package/dist/{Transaction-BqZrbpZi.js → Transaction-ru7M0PKE.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-C6ZwPUD4.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BSkv6hMH.js} +6 -6
- package/dist/{Voucher-Yty_7SuS.js → Voucher-DmuaThKv.js} +14 -14
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Bt12t3gB.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Db_aeyc1.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C3NHrEIl.js → ZodTextField.vue_vue_type_script_setup_true_lang-B5co0F__.js} +1 -1
- package/dist/{app-Dzon--6x.js → app-DaFoFS2V.js} +1 -1
- package/dist/{app-2EJP4psh.js → app-ja_XST5q.js} +30 -30
- package/dist/app.js +1 -1
- package/dist/{business-BehG4fR2.js → business-BSP_3iNl.js} +11 -8
- package/dist/{campaign-CAcP56Sz.js → campaign-C1hWNRWr.js} +2 -2
- package/dist/{campaign-BpaiTG4f.js → campaign-DMZnXtyb.js} +9 -9
- package/dist/{campaign.enum-BWjI8Hop.js → campaign.enum-Bfsz7Aon.js} +1 -1
- package/dist/{campaign.fn-PVdB1-V1.js → campaign.fn-B-xvcbEb.js} +63 -63
- package/dist/{collectible.enum-BYmuqayi.js → collectible.enum-BRkrN4Bi.js} +1 -1
- package/dist/{collection.fn-CbH8hbWW.js → collection.fn-D03AXdUn.js} +2 -2
- package/dist/{dto-Dd3Oc4QO.js → dto-DpRkSGg6.js} +4 -4
- package/dist/{effect-DvEQNEl0.js → effect-BW1-I1J4.js} +1 -1
- package/dist/{email-addresses-C-9JrAi8.js → email-addresses-BLVkwSkP.js} +1 -1
- package/dist/{export-RWE9Cn-d.js → export-DOfDownW.js} +3 -3
- package/dist/{helper-Bl6LdWED.js → helper-BzfjLXgi.js} +1 -1
- package/dist/{index-DZN5WWgq.js → index-BBi9jDD1.js} +3 -3
- package/dist/{index-DpoNuVc-.js → index-BJl_HxaB.js} +6 -6
- package/dist/{index-BCQMVr1J.js → index-Ba5-z1MU.js} +1 -1
- package/dist/{index-Bgnrbk5x.js → index-Bp8F6U9V.js} +1 -1
- package/dist/{index-CzCqc7ph.js → index-C6fpU8-G.js} +1 -1
- package/dist/{index-Bjf5Z2QE.js → index-COoQSeE7.js} +4 -4
- package/dist/{index-DX1X6Owa.js → index-DTnzjEWu.js} +1 -1
- package/dist/{index-G_XSbrXB.js → index-DWBeauin.js} +3 -3
- package/dist/{index-1bU9cLqV.js → index-Da1qz9oA.js} +1 -1
- package/dist/{index-wOExBjGo.js → index-Dve1-uYX.js} +1 -1
- package/dist/{index-CFW9ogow.js → index-P6ISAxfQ.js} +1 -1
- package/dist/{index-VVy4GPzJ.js → index-cpWgtd-c.js} +1 -1
- package/dist/{index-DhUvELhc.js → index-sFyvCun2.js} +1023 -1023
- package/dist/{index-CfgczUMX.js → index-zyVYgteg.js} +2 -2
- package/dist/{index.esm2017-DfgZFSqe.js → index.esm2017-DT0awUwa.js} +40 -40
- package/dist/{loading-qlqqYGF3.js → loading-CZH88Duq.js} +1 -1
- package/dist/{membership-Bh_1iu5v.js → membership-GNRX1fEK.js} +3 -3
- package/dist/{money-DvTB_Fek.js → money-Xe5mDYRC.js} +1 -1
- package/dist/{number-DJQ3gi1P.js → number-CAjqc2Pu.js} +1 -1
- package/dist/objectid-BQJRv_jX.js +145 -0
- package/dist/{plugins-DJpBrPbQ.js → plugins-Z2YcDTj8.js} +2 -2
- package/dist/{reward-DZ4KlN9B.js → reward-G656rbLJ.js} +1 -1
- package/dist/{rule-DV0yCGlq.js → rule-BJ5blBZp.js} +3 -3
- package/dist/{rule-builder-D6ihVPNO.js → rule-builder-CursBigG.js} +1 -1
- package/dist/{template-ElP-JIFL.js → template-BnyUm8is.js} +4 -4
- package/dist/{timezone-FaHjut_D.js → timezone-B64-HrWi.js} +1 -1
- package/dist/{trigger-D8wnJVTA.js → trigger-C_ih51ky.js} +4 -4
- package/dist/{user-NWV9KppR.js → user-BZc_OAUj.js} +1 -1
- package/dist/{vue-i18n-CkbS-IDD.js → vue-i18n-2D47GxQX.js} +376 -376
- package/dist/{xlsx-CdQE5RZi.js → xlsx-BEk5qawh.js} +1 -1
- package/package.json +1 -1
- package/dist/Broadcast-DBgBT6yz.js +0 -227
- package/dist/Credit-WVv_PL5D.js +0 -222
- package/dist/Experience-BdH44wBG.js +0 -223
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
- package/dist/Point-ovkgTwZO.js +0 -226
- package/dist/objectid-BKU0cEuv.js +0 -145
|
@@ -1,21 +1,21 @@
|
|
|
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
|
|
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({
|
|
17
17
|
__name: "Mission",
|
|
18
|
-
setup(
|
|
18
|
+
setup(be) {
|
|
19
19
|
const { t: n } = ce(), R = {
|
|
20
20
|
label: n("connect.program.common.actions.create", {
|
|
21
21
|
type: n("connect.program.mission.title").toLowerCase()
|
|
@@ -23,31 +23,37 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
|
|
|
23
23
|
value: "create",
|
|
24
24
|
isPrimary: !0,
|
|
25
25
|
prependIcon: "add"
|
|
26
|
-
}, S =
|
|
26
|
+
}, S = ne(), K = se("MISSION", S), A = oe(), p = te(), { global: N, minor: F } = X, c = w({
|
|
27
27
|
searchKey: "",
|
|
28
|
-
location:
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
)
|
|
33
|
-
|
|
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 = [
|
|
34
40
|
{
|
|
35
41
|
header: n("connect.program.common.table.title"),
|
|
36
42
|
accessorKey: "name",
|
|
37
43
|
// accessorFn: (v) => v.name,
|
|
38
44
|
cell(e) {
|
|
39
|
-
return
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
return m("div", { class: "flex items-center justify-between gap-4" }, [
|
|
46
|
+
m("div", { class: "flex items-center" }, [
|
|
47
|
+
m(
|
|
42
48
|
_.FmTooltip,
|
|
43
49
|
{
|
|
44
50
|
content: e.row.original._id,
|
|
45
51
|
onClick: (o) => {
|
|
46
|
-
o.stopPropagation(),
|
|
52
|
+
o.stopPropagation(), Z(e.row.original._id);
|
|
47
53
|
}
|
|
48
54
|
},
|
|
49
55
|
[
|
|
50
|
-
|
|
56
|
+
m(_.FmIcon, {
|
|
51
57
|
name: "info",
|
|
52
58
|
outline: !0,
|
|
53
59
|
size: "sm"
|
|
@@ -55,18 +61,18 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
|
|
|
55
61
|
]
|
|
56
62
|
)
|
|
57
63
|
]),
|
|
58
|
-
|
|
64
|
+
m("div", { class: "flex-1" }, e.row.original.name)
|
|
59
65
|
]);
|
|
60
66
|
}
|
|
61
67
|
},
|
|
62
68
|
{
|
|
63
69
|
header: n("connect.campaign.mission.type"),
|
|
64
|
-
accessorFn: (e) =>
|
|
70
|
+
accessorFn: (e) => re(e.mission.type)
|
|
65
71
|
//v.effect,
|
|
66
72
|
},
|
|
67
73
|
{
|
|
68
74
|
header: n("connect.program.common.table.status"),
|
|
69
|
-
accessorFn: (e) =>
|
|
75
|
+
accessorFn: (e) => Y(e),
|
|
70
76
|
cell(e) {
|
|
71
77
|
return B(e.row.original);
|
|
72
78
|
}
|
|
@@ -86,33 +92,33 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
|
|
|
86
92
|
{
|
|
87
93
|
header: n("connect.program.common.table.actions"),
|
|
88
94
|
cell(e) {
|
|
89
|
-
return
|
|
90
|
-
|
|
95
|
+
return m("div", { class: "flex items-center gap-8" }, [
|
|
96
|
+
m(_.FmButton, {
|
|
91
97
|
variant: "tertiary",
|
|
92
98
|
icon: "send",
|
|
93
99
|
iconColor: "neutral-gray-400",
|
|
94
100
|
onClick: (o) => {
|
|
95
|
-
o.stopPropagation(),
|
|
101
|
+
o.stopPropagation(), $(e.row.original);
|
|
96
102
|
}
|
|
97
103
|
}),
|
|
98
|
-
|
|
104
|
+
m(_.FmButton, {
|
|
99
105
|
variant: "tertiary",
|
|
100
106
|
icon: "delete",
|
|
101
107
|
iconColor: "neutral-gray-400",
|
|
102
108
|
onClick: (o) => {
|
|
103
|
-
o.stopPropagation(),
|
|
109
|
+
o.stopPropagation(), L(e.row.original);
|
|
104
110
|
}
|
|
105
111
|
})
|
|
106
112
|
]);
|
|
107
113
|
}
|
|
108
114
|
}
|
|
109
115
|
], k = w(), I = w();
|
|
110
|
-
async function
|
|
111
|
-
await
|
|
116
|
+
async function L(e) {
|
|
117
|
+
await ee.remove(
|
|
112
118
|
n("connect.program.common.remove.confirm", { name: e.name })
|
|
113
119
|
) && await F(
|
|
114
120
|
async () => {
|
|
115
|
-
await h.delete(e._id), await
|
|
121
|
+
await h.delete(e._id), await p.read("MISSION");
|
|
116
122
|
},
|
|
117
123
|
{
|
|
118
124
|
message: n("connect.program.common.remove.removing", { name: e.name }),
|
|
@@ -123,20 +129,20 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
|
|
|
123
129
|
);
|
|
124
130
|
}
|
|
125
131
|
async function y(e) {
|
|
126
|
-
e ? await o() : K.open(async (
|
|
127
|
-
await o(
|
|
132
|
+
e ? await o() : K.open(async (i) => {
|
|
133
|
+
await o(i);
|
|
128
134
|
});
|
|
129
|
-
async function o(
|
|
130
|
-
var
|
|
131
|
-
(
|
|
135
|
+
async function o(i) {
|
|
136
|
+
var l;
|
|
137
|
+
(l = k.value) == null || l.showSheet(
|
|
132
138
|
!0,
|
|
133
139
|
"MISSION",
|
|
134
140
|
e ? await h.readById(e._id) : void 0,
|
|
135
|
-
|
|
141
|
+
i
|
|
136
142
|
);
|
|
137
143
|
}
|
|
138
144
|
}
|
|
139
|
-
async function
|
|
145
|
+
async function U(e) {
|
|
140
146
|
e.campaign._id && e.campaign.rewards.some((o) => o.type === "VOUCHER") && await new Promise((o) => {
|
|
141
147
|
S.open({
|
|
142
148
|
title: "Confirmation",
|
|
@@ -144,14 +150,14 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
|
|
|
144
150
|
primaryActions: { text: "Update all", close: !0 },
|
|
145
151
|
secondaryActions: { text: "Update future only", close: !0 }
|
|
146
152
|
}).onPrimary(async () => {
|
|
147
|
-
var
|
|
148
|
-
e.updateCollections = !0, (
|
|
153
|
+
var i;
|
|
154
|
+
e.updateCollections = !0, (i = window.top) == null || i.postMessage("updateAllVoucher", "*"), o();
|
|
149
155
|
}).onSecondary(async () => {
|
|
150
156
|
o();
|
|
151
157
|
});
|
|
152
158
|
}), await F(
|
|
153
159
|
async () => {
|
|
154
|
-
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");
|
|
155
161
|
},
|
|
156
162
|
{
|
|
157
163
|
message: n(
|
|
@@ -165,88 +171,88 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
|
|
|
165
171
|
}
|
|
166
172
|
);
|
|
167
173
|
}
|
|
168
|
-
function
|
|
174
|
+
function $(e) {
|
|
169
175
|
var o;
|
|
170
176
|
(o = I.value) == null || o.showSheet({
|
|
171
177
|
campaign: e
|
|
172
178
|
});
|
|
173
179
|
}
|
|
174
|
-
return
|
|
175
|
-
await
|
|
176
|
-
await
|
|
180
|
+
return W(async () => {
|
|
181
|
+
await N(async () => {
|
|
182
|
+
await p.read("MISSION"), console.log(g);
|
|
177
183
|
});
|
|
178
184
|
}), (e, o) => {
|
|
179
|
-
const
|
|
180
|
-
return
|
|
181
|
-
|
|
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, {
|
|
182
188
|
title: t(n)("connect.campaign.mission.title"),
|
|
183
|
-
actions: t(
|
|
189
|
+
actions: t(g).length > 0 ? [R] : [],
|
|
184
190
|
"onClick:action": o[0] || (o[0] = () => y())
|
|
185
191
|
}, null, 8, ["title", "actions"]),
|
|
186
|
-
s("div",
|
|
187
|
-
|
|
188
|
-
modelValue: t(
|
|
189
|
-
"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),
|
|
190
196
|
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
191
197
|
placeholder: t(n)("connect.program.common.search"),
|
|
192
198
|
collapsible: ""
|
|
193
199
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
194
|
-
t(
|
|
195
|
-
s("div",
|
|
196
|
-
s("div",
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
"
|
|
200
|
-
|
|
201
|
-
"
|
|
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),
|
|
202
208
|
icon: "storefront",
|
|
203
|
-
|
|
204
|
-
items: t(
|
|
205
|
-
}, null, 8, ["
|
|
209
|
+
"show-item-label": !0,
|
|
210
|
+
items: t(A).locationOptions
|
|
211
|
+
}, null, 8, ["label", "modelValue", "items"])
|
|
206
212
|
]),
|
|
207
|
-
|
|
208
|
-
modelValue: t(
|
|
209
|
-
"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),
|
|
210
216
|
class: "xs:hidden",
|
|
211
217
|
placeholder: "search",
|
|
212
218
|
collapsible: ""
|
|
213
219
|
}, null, 8, ["modelValue"])
|
|
214
220
|
]),
|
|
215
|
-
|
|
221
|
+
r(D, {
|
|
216
222
|
class: "xs:hidden",
|
|
217
|
-
"row-data": t(
|
|
218
|
-
"column-defs":
|
|
219
|
-
"search-value": t(
|
|
223
|
+
"row-data": t(g),
|
|
224
|
+
"column-defs": T,
|
|
225
|
+
"search-value": t(c).searchKey,
|
|
220
226
|
"column-filter": [],
|
|
221
227
|
onRowClick: o[4] || (o[4] = (a) => y(a.original)),
|
|
222
|
-
"hide-footer": t(
|
|
228
|
+
"hide-footer": t(g).length < 10
|
|
223
229
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
224
|
-
|
|
230
|
+
r(E, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
225
231
|
default: C(() => [
|
|
226
|
-
(
|
|
227
|
-
(a) => a.name.toLowerCase().includes(t(
|
|
228
|
-
), (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, {
|
|
229
235
|
key: a._id.toString(),
|
|
230
|
-
onClick: (
|
|
236
|
+
onClick: (M) => y(a),
|
|
231
237
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
232
238
|
}, {
|
|
233
239
|
default: C(() => [
|
|
234
|
-
s("div",
|
|
235
|
-
s("div",
|
|
236
|
-
(
|
|
237
|
-
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)
|
|
238
244
|
]),
|
|
239
|
-
s("div",
|
|
240
|
-
s("div",
|
|
241
|
-
s("div",
|
|
245
|
+
s("div", ye, [
|
|
246
|
+
s("div", _e, f(a.name), 1),
|
|
247
|
+
s("div", he, f(t(P)(a)), 1)
|
|
242
248
|
]),
|
|
243
|
-
s("div",
|
|
249
|
+
s("div", we, " Token received: " + f(a.currentReceive ?? 0), 1)
|
|
244
250
|
]),
|
|
245
|
-
|
|
251
|
+
r(V, {
|
|
246
252
|
icon: "delete",
|
|
247
253
|
"icon-color": "neutral-gray-400",
|
|
248
254
|
variant: "tertiary",
|
|
249
|
-
onClick: (
|
|
255
|
+
onClick: (M) => (M.stopPropagation(), L(a))
|
|
250
256
|
}, null, 8, ["onClick"])
|
|
251
257
|
]),
|
|
252
258
|
_: 2
|
|
@@ -254,21 +260,21 @@ const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-
|
|
|
254
260
|
]),
|
|
255
261
|
_: 1
|
|
256
262
|
})
|
|
257
|
-
], 64)) : (
|
|
263
|
+
], 64)) : (u(), b(H, {
|
|
258
264
|
key: 1,
|
|
259
265
|
variant: "outlined",
|
|
260
266
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
261
267
|
}, {
|
|
262
268
|
default: C(() => [
|
|
263
269
|
o[6] || (o[6] = s("img", {
|
|
264
|
-
src:
|
|
270
|
+
src: Q,
|
|
265
271
|
class: "aspect-square w-[150px]"
|
|
266
272
|
}, null, -1)),
|
|
267
|
-
s("div",
|
|
268
|
-
s("div",
|
|
269
|
-
s("div",
|
|
273
|
+
s("div", xe, [
|
|
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
|
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { defineComponent as q, resolveComponent as w, openBlock as C, createElementBlock as B, Fragment as Y, createVNode as c, withCtx as V, createElementVNode as a, toDisplayString as O, unref as r, renderSlot as ve, ref as F, computed as G, watch as ie, createBlock as j, isRef as J, resolveDynamicComponent as ne, renderList as re, normalizeClass as de, createTextVNode as ce, createCommentVNode as z, h as te, onMounted as _e } from "vue";
|
|
2
2
|
import { _ as ge } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { u as Z } from "./vue-i18n-
|
|
4
|
-
import { u as ue } from "./loading-
|
|
5
|
-
import { c as we, p as K } from "./plugins-
|
|
3
|
+
import { u as Z } from "./vue-i18n-2D47GxQX.js";
|
|
4
|
+
import { u as ue } from "./loading-CZH88Duq.js";
|
|
5
|
+
import { c as we, p as K } from "./plugins-Z2YcDTj8.js";
|
|
6
6
|
import { J as X } from "./JsonViewer-v8_C7l5N.js";
|
|
7
7
|
import { Z as N } from "./zod-Bg2FbC-D.js";
|
|
8
8
|
import { u as W } from "./app-wDQR6dpb.js";
|
|
9
|
-
import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as me } from "./reward-
|
|
11
|
-
import { l as le, c as se } from "./index-
|
|
12
|
-
import "./index-
|
|
13
|
-
import { a as be, b as xe } from "./index-
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./index-
|
|
17
|
-
import { C as fe } from "./membership-
|
|
18
|
-
import { t as ee } from "./helper-
|
|
9
|
+
import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-P_gNd6ZP.js";
|
|
10
|
+
import { u as me } from "./reward-G656rbLJ.js";
|
|
11
|
+
import { l as le, c as se } from "./index-COoQSeE7.js";
|
|
12
|
+
import "./index-zyVYgteg.js";
|
|
13
|
+
import { a as be, b as xe } from "./index-BJl_HxaB.js";
|
|
14
|
+
import "./index-P6ISAxfQ.js";
|
|
15
|
+
import "./index-BBi9jDD1.js";
|
|
16
|
+
import "./index-sFyvCun2.js";
|
|
17
|
+
import { C as fe } from "./membership-GNRX1fEK.js";
|
|
18
|
+
import { t as ee } from "./helper-BzfjLXgi.js";
|
|
19
19
|
import { c as H } from "./object-qECH92oz.js";
|
|
20
20
|
import { useDialog as Ce, components as oe } from "@feedmepos/ui-library";
|
|
21
|
-
import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
22
|
-
import { a as Se, _ as Fe, b as ke } from "./trigger-
|
|
23
|
-
import { O as $e } from "./objectid-
|
|
24
|
-
import { r as pe } from "./index-
|
|
25
|
-
import { u as Pe } from "./business-
|
|
21
|
+
import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-B5co0F__.js";
|
|
22
|
+
import { a as Se, _ as Fe, b as ke } from "./trigger-C_ih51ky.js";
|
|
23
|
+
import { O as $e } from "./objectid-BQJRv_jX.js";
|
|
24
|
+
import { r as pe } from "./index-Dve1-uYX.js";
|
|
25
|
+
import { u as Pe } from "./business-BSP_3iNl.js";
|
|
26
26
|
const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, Te = { class: "flex-1" }, Ue = { class: "flex items-center gap-8" }, Ae = { class: "fm-typo-en-title-sm-800" }, Le = { class: "flex gap-8 items-center" }, Ee = { class: "space-y-4 hidden xs:block border-b border-fm-color-neutral-gray-100 px-16 flex-1 pb-24" }, Be = { class: "flex items-center justify-between" }, Oe = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, je = { class: "flex-1 space-y-4" }, De = { class: "fm-typo-en-body-lg-600" }, Ge = /* @__PURE__ */ q({
|
|
27
27
|
__name: "ReferralRewadGroupCard",
|
|
28
28
|
props: {
|