@feedmepos/mf-connect 0.1.63-prod → 0.1.64-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-CG3hA6fW.js → Analytic-QmZLsf5Y.js} +27 -28
- package/dist/{App-CQUFVNES.js → App-BZ10DVVu.js} +7 -7
- package/dist/{Bin-whBityJo.js → Bin-Dg8_10SF.js} +8 -8
- package/dist/{Broadcast-BRgmIWF2.js → Broadcast-DEtcNkm9.js} +10 -11
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DfATb_0G.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Q0MDLW2t.js} +6 -6
- package/dist/{Card-BgIT9bSV.js → Card-ChLbeBqR.js} +16 -16
- package/dist/{Collections-DgBll2HL.js → Collections-BzAjOzC5.js} +179 -165
- package/dist/{Credit-FVqQqTve.js → Credit-CR00U_HS.js} +10 -11
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CIApefkS.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DGEbZizZ.js} +31 -31
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CVRvxR02.js → EffectSheet.vue_vue_type_style_index_0_lang-BT-ZPcZm.js} +6 -6
- package/dist/{Experience-C23g_MfA.js → Experience-BCCB6Eyi.js} +27 -28
- package/dist/{Game-CqbQTIqS.js → Game-juF6dqSJ.js} +11 -12
- package/dist/{Index-D32I90Uf.js → Index-BeDWwop_.js} +10 -10
- package/dist/{Marketing-ApmF9GMZ.js → Marketing-DHWefrkK.js} +6 -6
- package/dist/{Member-p-MDnwdo.js → Member-DFr_vA5Q.js} +10 -10
- package/dist/{MemberList-CWS216Oq.js → MemberList-eK3gn_Mp.js} +25 -25
- package/dist/{MemberTransactions-1NaCYExP.js → MemberTransactions-CDFEB188.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Ds28eMF3.js → MessageInput.vue_vue_type_script_setup_true_lang-Cbmz7ffr.js} +7 -7
- package/dist/{Mission-D2EklQ6k.js → Mission-C6ZBexFm.js} +19 -20
- package/dist/{Overview-Q2_jChHL.js → Overview-C2TJPtG8.js} +18 -18
- package/dist/{Point-D7IFoiQ5.js → Point-DMdw2JJ-.js} +10 -11
- package/dist/{Promotion-BMKAj_VJ.js → Promotion-DH0N0_qI.js} +11 -12
- package/dist/{Queue-CckukUf2.js → Queue-PgLRsmYB.js} +10 -10
- package/dist/{Record-sjJx9Rxr.js → Record-c6FN2o4L.js} +8 -8
- package/dist/{Reward-C33_2GAs.js → Reward-CDaIp4xo.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-4Ah1HGJW.js → RewardGroup.vue_vue_type_script_setup_true_lang-CzIZRdrZ.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CpDZBVmB.js → RuleGroup.vue_vue_type_script_setup_true_lang-CeB000Yq.js} +13 -13
- package/dist/{Segment-CR4_Y82e.js → Segment-Dfg3Dceu.js} +22 -22
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CDZw5i96.js → SelectItems.vue_vue_type_script_setup_true_lang-DOhYq-N5.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-pW_AdLpP.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-0ply2Yvm.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BS62Yf0v.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-ClUsE-SP.js} +3 -3
- package/dist/{Setting-D4RTLzZM.js → Setting-C1SxTuNs.js} +12 -12
- package/dist/{SettingAdvertisements-Cc9IMI41.js → SettingAdvertisements-PauF5xCo.js} +9 -9
- package/dist/Store-DOa_gydi.js +1924 -0
- package/dist/{StoreRewards-CzrZS5Au.js → StoreRewards-B2PcWGV9.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Ci3xQrAn.js → StoreTransactions.vue_vue_type_script_setup_true_lang-B8zs6OJO.js} +361 -343
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DG7dPhv0.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CcoUlJff.js} +1 -1
- package/dist/{Tier-9-iKsHxM.js → Tier-BF5loJLD.js} +97 -98
- package/dist/{Title-C6TY3BbS.js → Title-C8-Nbm1H.js} +27 -28
- package/dist/{Transaction-BGxgNf0y.js → Transaction-xAQBYG9M.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-xiH9sxVn.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CHNGUJzl.js} +6 -6
- package/dist/{Voucher-Cdh0PqeF.js → Voucher-Do5B24VG.js} +132 -117
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BRw2nedI.js → VoucherEditor.vue_vue_type_script_setup_true_lang-w_BUEa7v.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-D6En5sRQ.js → ZodTextField.vue_vue_type_script_setup_true_lang-BEQa1Di8.js} +1 -1
- package/dist/{app-qOoNoXsj.js → app-BkZRzXki.js} +496 -454
- package/dist/{app-DIFcDSPz.js → app-DXjVgkbw.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-D8WOIwU3.js → business-Bq2l2dad.js} +1 -1
- package/dist/campaign-B-DvR4TM.js +213 -0
- package/dist/{campaign-B5Zcg5dG.js → campaign-CWhtQcJK.js} +9 -9
- package/dist/{campaign.enum-BVGqtpbT.js → campaign.enum-BZvK2gj_.js} +1 -1
- package/dist/{campaign.fn-BJksX0lC.js → campaign.fn-DDtV9Xn6.js} +46 -46
- package/dist/{collectible.enum-CDt5sCg-.js → collectible.enum-viPMgw11.js} +1 -1
- package/dist/{collection.fn-BmkwrIEt.js → collection.fn-B7CW6I6M.js} +2 -2
- package/dist/{dto-BazhL1Wz.js → dto-DLhMYrOq.js} +4 -4
- package/dist/{effect-CERxlyga.js → effect-DsrWui1v.js} +1 -1
- package/dist/{email-addresses-XWcL2s8u.js → email-addresses-5DzRD10I.js} +1 -1
- package/dist/{export-Ctk6xkHX.js → export-D6yiznb-.js} +3 -3
- package/dist/{helper-C36sBB0k.js → helper-DqODSGUO.js} +1 -1
- package/dist/{index-COJnc6ip.js → index-B1KJz3-3.js} +1 -1
- package/dist/{index-BGirRSvf.js → index-BBNQI_sD.js} +1 -1
- package/dist/{index-D-cA3r-f.js → index-BfoX0LlV.js} +1 -1
- package/dist/{index-BhcuNARt.js → index-C6aDlxVU.js} +3 -3
- package/dist/{index-B9gRFG1Q.js → index-CMMMmPLJ.js} +1 -1
- package/dist/{index-Dz55oJOD.js → index-COYuq-0E.js} +530 -523
- package/dist/{index-BHPj_XYw.js → index-CYLWyjo9.js} +4 -4
- package/dist/{index-BSdS5JkE.js → index-Cn3LliAN.js} +1 -1
- package/dist/{index-Dr1iOdke.js → index-CxiSGb7g.js} +112 -104
- package/dist/{index-BAjS-mNm.js → index-DF0B1uEN.js} +3 -3
- package/dist/{index-CYHzkVmf.js → index-Ds7uV5hU.js} +3 -3
- package/dist/{index-1xCqie-s.js → index-aZB_8DEU.js} +1 -1
- package/dist/{index-Ctu4ZSkP.js → index-yQ9u5GOr.js} +1 -1
- package/dist/{index.esm2017-CwEbNcAn.js → index.esm2017-BaQ693RU.js} +1 -1
- package/dist/{loading-DsAWzrAU.js → loading-DnCoACR5.js} +1 -1
- package/dist/{membership-CIWA-YIz.js → membership-BTIRstHL.js} +3 -3
- package/dist/{money-B8_RYpfI.js → money-B3p9O_Sf.js} +1 -1
- package/dist/{number-ClNyxrPX.js → number-B1yJ5c9e.js} +1 -1
- package/dist/{objectid-B7Hb21TR.js → objectid-6QnZZQIG.js} +4 -4
- package/dist/{plugins-BaCcQwW_.js → plugins-BK0AJhyo.js} +2 -2
- package/dist/{reward-Br3L7Y4x.js → reward-Ds8jTVHE.js} +1 -1
- package/dist/{rule-CELh8Paa.js → rule-C_tkDOVr.js} +3 -3
- package/dist/{rule-builder-Dw3JpYy8.js → rule-builder-Dp-_zF1X.js} +1 -1
- package/dist/{template-BIOneLeZ.js → template-DqHrBYuW.js} +4 -4
- package/dist/{timezone-Jr40C0YQ.js → timezone-U8Wa5DMW.js} +1 -1
- package/dist/{trigger-Bl_yRkKF.js → trigger-CnDGz17H.js} +4 -4
- package/dist/{user-C3J0hjK-.js → user-Bz-CPNFh.js} +1 -1
- package/dist/{vue-i18n-DbCbvmTz.js → vue-i18n-xX03EJtj.js} +2 -2
- package/dist/{xlsx-ClGRNHcc.js → xlsx-Dx7JiSCw.js} +166 -166
- package/package.json +1 -1
- package/dist/Store-BTE44D1j.js +0 -1842
- package/dist/campaign-IEgssyOs.js +0 -94
- package/dist/index-DTvC-nBb.js +0 -124
|
@@ -1,44 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { _ as
|
|
5
|
-
import {
|
|
6
|
-
import { useCoreStore as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { g as
|
|
11
|
-
import "./index-
|
|
12
|
-
import { u as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { u as
|
|
16
|
-
import { T as
|
|
17
|
-
import { useRouter as
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-center justify-between w-full" }, we = { class: "flex gap-8 overflow-x-auto" }, be = { class: "space-y-8" }, ke = { class: "flex w-full gap-4 items-center" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = { class: "space-y-4" }, Se = { class: "fm-typo-en-body-lg-600" }, Fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le = { class: "flex gap-8 items-center" }, Te = { class: "flex flex-col gap-16 text-center" }, Ue = { class: "fm-typo-en-title-sm-800" }, Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Je = /* @__PURE__ */ Y({
|
|
1
|
+
import { defineComponent as oe, ref as V, computed as te, h as m, onMounted as ne, resolveComponent as d, openBlock as u, createElementBlock as S, Fragment as T, createVNode as l, unref as t, createElementVNode as c, withCtx as U, renderList as ae, createBlock as y, resolveDynamicComponent as re, createCommentVNode as R, toDisplayString as g } from "vue";
|
|
2
|
+
import { _ as ce } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as ie, components as p } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as A } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
5
|
+
import { a as se, p as le } from "./plugins-BK0AJhyo.js";
|
|
6
|
+
import { useCoreStore as me } from "@feedmepos/mf-common";
|
|
7
|
+
import { u as ue } from "./loading-DnCoACR5.js";
|
|
8
|
+
import { u as de } from "./business-Bq2l2dad.js";
|
|
9
|
+
import { u as pe, c as b } from "./campaign-B-DvR4TM.js";
|
|
10
|
+
import { g as fe, a as M, b as H } from "./campaign-CWhtQcJK.js";
|
|
11
|
+
import "./index-B1KJz3-3.js";
|
|
12
|
+
import { u as ye } from "./template-DqHrBYuW.js";
|
|
13
|
+
import { _ as he } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DGEbZizZ.js";
|
|
14
|
+
import { _ as ge } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-ClUsE-SP.js";
|
|
15
|
+
import { u as _e } from "./vue-i18n-xX03EJtj.js";
|
|
16
|
+
import { T as ve } from "./trigger-CnDGz17H.js";
|
|
17
|
+
import { useRouter as Ce } from "vue-router";
|
|
18
|
+
import { R as $ } from "./app-BkZRzXki.js";
|
|
19
|
+
var be = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc" };
|
|
20
|
+
const we = { class: "px-24 flex flex-col gap-y-16" }, xe = { class: "flex items-center justify-between w-full" }, ke = { class: "flex gap-8 overflow-x-auto" }, Fe = { class: "space-y-8" }, Ve = { class: "flex w-full gap-4 items-center" }, Se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Te = { class: "space-y-4" }, Ue = { class: "fm-typo-en-body-lg-600" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le = { class: "flex gap-8 items-center" }, Pe = { class: "flex flex-col gap-16 text-center" }, Ee = { class: "fm-typo-en-title-sm-800" }, Ie = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, eo = /* @__PURE__ */ oe({
|
|
22
21
|
__name: "Voucher",
|
|
23
|
-
setup(
|
|
24
|
-
const { t: a } =
|
|
22
|
+
setup(Be) {
|
|
23
|
+
const { t: a } = _e(), K = {
|
|
25
24
|
label: a("connect.voucher.createCampaign"),
|
|
26
25
|
value: "create",
|
|
27
26
|
isPrimary: !0,
|
|
28
27
|
prependIcon: "add"
|
|
29
|
-
}, L =
|
|
28
|
+
}, L = ie(), N = ye("VOUCHER", L), D = de(), f = pe(), { global: j, minor: P } = ue, E = Ce(), i = V({
|
|
30
29
|
searchKey: "",
|
|
31
30
|
location: [],
|
|
32
31
|
triggerType: []
|
|
33
|
-
}), _ =
|
|
34
|
-
() =>
|
|
35
|
-
(e) =>
|
|
32
|
+
}), _ = te(
|
|
33
|
+
() => f.campaigns.voucher.filter(
|
|
34
|
+
(e) => G(e) && X(e)
|
|
36
35
|
)
|
|
37
|
-
),
|
|
36
|
+
), q = ve.VOUCHER.map((e) => ({
|
|
38
37
|
label: e.name,
|
|
39
38
|
value: e.value
|
|
40
39
|
}));
|
|
41
|
-
function
|
|
40
|
+
function G(e) {
|
|
42
41
|
const o = i.value.location;
|
|
43
42
|
return !o || o.length === 0 || !e.targetLocation ? !0 : Array.isArray(o) ? o.some(
|
|
44
43
|
(r) => {
|
|
@@ -47,27 +46,43 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
47
46
|
}
|
|
48
47
|
) : e.targetLocation.includes(o);
|
|
49
48
|
}
|
|
50
|
-
function
|
|
49
|
+
function w(e) {
|
|
50
|
+
return e.hideInApp === !1;
|
|
51
|
+
}
|
|
52
|
+
function x(e) {
|
|
53
|
+
return e.event.type === "SIMPLE_CLAIM" && !w(e);
|
|
54
|
+
}
|
|
55
|
+
function X(e) {
|
|
51
56
|
const o = i.value.triggerType;
|
|
52
57
|
if (!o || o.length === 0) return !0;
|
|
53
58
|
const r = e.event.type;
|
|
54
59
|
return o.includes(r);
|
|
55
60
|
}
|
|
56
|
-
const
|
|
61
|
+
const W = [
|
|
57
62
|
{
|
|
58
63
|
header: a("connect.voucher.voucherTitle"),
|
|
59
|
-
accessorFn: (e) => e.name
|
|
64
|
+
accessorFn: (e) => e.name,
|
|
65
|
+
cell(e) {
|
|
66
|
+
const o = [e.row.original.name];
|
|
67
|
+
return w(e.row.original) && o.push(
|
|
68
|
+
m(p.FmChip, {
|
|
69
|
+
label: "Feedvibe",
|
|
70
|
+
class: "text-fm-color-primary bg-fm-color-system-warning-100",
|
|
71
|
+
compact: !0
|
|
72
|
+
})
|
|
73
|
+
), m("div", { class: "flex items-center gap-4" }, o);
|
|
74
|
+
}
|
|
60
75
|
},
|
|
61
76
|
{
|
|
62
77
|
header: a("connect.voucher.status"),
|
|
63
|
-
accessorFn: (e) =>
|
|
78
|
+
accessorFn: (e) => fe(e),
|
|
64
79
|
cell(e) {
|
|
65
|
-
return
|
|
80
|
+
return M(e.row.original);
|
|
66
81
|
}
|
|
67
82
|
},
|
|
68
83
|
{
|
|
69
84
|
header: a("connect.voucher.summary"),
|
|
70
|
-
accessorFn: (e) =>
|
|
85
|
+
accessorFn: (e) => H(e)
|
|
71
86
|
},
|
|
72
87
|
{
|
|
73
88
|
header: a("connect.voucher.quota"),
|
|
@@ -87,19 +102,19 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
87
102
|
header: a("connect.voucher.actions"),
|
|
88
103
|
cell(e) {
|
|
89
104
|
return m("div", { class: "flex items-center justify-end" }, [
|
|
90
|
-
m(
|
|
105
|
+
m(p.FmButton, {
|
|
91
106
|
icon: "visibility",
|
|
92
107
|
variant: "tertiary",
|
|
93
108
|
iconColor: "neutral-gray-400",
|
|
94
109
|
onClick: async (o) => {
|
|
95
|
-
o.stopPropagation(), await
|
|
96
|
-
name:
|
|
110
|
+
o.stopPropagation(), await E.push({
|
|
111
|
+
name: $["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
|
|
97
112
|
params: { id: e.row.original._id }
|
|
98
113
|
});
|
|
99
114
|
}
|
|
100
115
|
}),
|
|
101
116
|
m(
|
|
102
|
-
|
|
117
|
+
p.FmMenu,
|
|
103
118
|
{
|
|
104
119
|
placement: "bottom-end",
|
|
105
120
|
onClick: (o) => {
|
|
@@ -107,7 +122,7 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
107
122
|
}
|
|
108
123
|
},
|
|
109
124
|
{
|
|
110
|
-
"menu-button": () => m(
|
|
125
|
+
"menu-button": () => m(p.FmButton, {
|
|
111
126
|
icon: "more_vert",
|
|
112
127
|
iconColor: "neutral-gray-400",
|
|
113
128
|
variant: "tertiary"
|
|
@@ -115,10 +130,10 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
115
130
|
default: () => {
|
|
116
131
|
const o = [
|
|
117
132
|
m(
|
|
118
|
-
|
|
133
|
+
p.FmMenuItem,
|
|
119
134
|
{
|
|
120
135
|
onClick: async (r) => {
|
|
121
|
-
r.stopPropagation(),
|
|
136
|
+
r.stopPropagation(), B(e.row.original);
|
|
122
137
|
}
|
|
123
138
|
},
|
|
124
139
|
{
|
|
@@ -132,28 +147,22 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
132
147
|
}
|
|
133
148
|
)
|
|
134
149
|
];
|
|
135
|
-
return e.row.original
|
|
136
|
-
m(
|
|
150
|
+
return x(e.row.original) && (o.unshift(
|
|
151
|
+
m(p.FmMenuItem, {
|
|
137
152
|
label: a("connect.voucher.send"),
|
|
138
153
|
onClick: async (r) => {
|
|
139
154
|
var s;
|
|
140
|
-
r.stopPropagation(), (s =
|
|
155
|
+
r.stopPropagation(), (s = k.value) == null || s.showSheet({
|
|
141
156
|
campaignId: e.row.original._id
|
|
142
157
|
});
|
|
143
158
|
}
|
|
144
159
|
})
|
|
145
160
|
), o.unshift(
|
|
146
|
-
m(
|
|
161
|
+
m(p.FmMenuItem, {
|
|
147
162
|
label: a("connect.voucher.share"),
|
|
148
163
|
onClick: async (r) => {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
"Cannot share a voucher that is not a simple claim.",
|
|
152
|
-
"Share Voucher",
|
|
153
|
-
"OK"
|
|
154
|
-
);
|
|
155
|
-
await ce(
|
|
156
|
-
`https://${ie().currentBusiness.value._id}.${_e.appUrl}/vouchers/${e.row.original._id}`,
|
|
164
|
+
r.stopPropagation(), await se(
|
|
165
|
+
`https://${me().currentBusiness.value._id}.${be.appUrl}/vouchers/${e.row.original._id}`,
|
|
157
166
|
{
|
|
158
167
|
successMessage: "Voucher link copied to clipboard"
|
|
159
168
|
}
|
|
@@ -167,11 +176,11 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
167
176
|
]);
|
|
168
177
|
}
|
|
169
178
|
}
|
|
170
|
-
],
|
|
171
|
-
async function
|
|
172
|
-
await
|
|
179
|
+
], I = V(), k = V();
|
|
180
|
+
async function B(e) {
|
|
181
|
+
await le.remove(a("connect.voucher.confirmRemove", { name: e.name })) && await P(
|
|
173
182
|
async () => {
|
|
174
|
-
await
|
|
183
|
+
await b.delete(e._id), await f.read("VOUCHER");
|
|
175
184
|
},
|
|
176
185
|
{
|
|
177
186
|
message: a("connect.voucher.removing", { name: e.name }),
|
|
@@ -182,20 +191,20 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
182
191
|
);
|
|
183
192
|
}
|
|
184
193
|
async function v(e) {
|
|
185
|
-
e ? await o() :
|
|
194
|
+
e ? await o() : N.open(async (r) => {
|
|
186
195
|
await o(r);
|
|
187
196
|
});
|
|
188
197
|
async function o(r) {
|
|
189
198
|
var s;
|
|
190
|
-
(s =
|
|
199
|
+
(s = I.value) == null || s.showSheet(
|
|
191
200
|
!0,
|
|
192
201
|
"VOUCHER",
|
|
193
|
-
e ? await
|
|
202
|
+
e ? await b.readById(e._id) : void 0,
|
|
194
203
|
r
|
|
195
204
|
);
|
|
196
205
|
}
|
|
197
206
|
}
|
|
198
|
-
async function
|
|
207
|
+
async function z(e) {
|
|
199
208
|
e.campaign._id && await new Promise((o) => {
|
|
200
209
|
L.open({
|
|
201
210
|
title: "Confirmation",
|
|
@@ -208,9 +217,9 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
208
217
|
}).onSecondary(async () => {
|
|
209
218
|
o();
|
|
210
219
|
});
|
|
211
|
-
}), await
|
|
220
|
+
}), await P(
|
|
212
221
|
async () => {
|
|
213
|
-
e.campaign._id ? await
|
|
222
|
+
e.campaign._id ? await b.update(e.campaign._id, e) : await b.create(e), await f.read("VOUCHER");
|
|
214
223
|
},
|
|
215
224
|
{
|
|
216
225
|
message: a(
|
|
@@ -222,19 +231,19 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
222
231
|
}
|
|
223
232
|
);
|
|
224
233
|
}
|
|
225
|
-
return
|
|
226
|
-
await
|
|
227
|
-
await
|
|
234
|
+
return ne(async () => {
|
|
235
|
+
await j(async () => {
|
|
236
|
+
await f.read("VOUCHER");
|
|
228
237
|
});
|
|
229
238
|
}), (e, o) => {
|
|
230
|
-
const r = d("FmPageHead"), s = d("FmSearch"),
|
|
231
|
-
return u(),
|
|
239
|
+
const r = d("FmPageHead"), s = d("FmSearch"), Q = d("FmTable"), Z = d("FmChip"), C = d("FmButton"), J = d("FmListItem"), Y = d("FmList"), ee = d("FmCard");
|
|
240
|
+
return u(), S(T, null, [
|
|
232
241
|
l(r, {
|
|
233
242
|
title: t(a)("connect.voucher.title"),
|
|
234
|
-
actions: t(_).length > 0 ? [
|
|
243
|
+
actions: t(_).length > 0 ? [K] : [],
|
|
235
244
|
"onClick:action": o[0] || (o[0] = () => v())
|
|
236
245
|
}, null, 8, ["title", "actions"]),
|
|
237
|
-
c("div",
|
|
246
|
+
c("div", we, [
|
|
238
247
|
l(s, {
|
|
239
248
|
modelValue: t(i).searchKey,
|
|
240
249
|
"onUpdate:modelValue": o[1] || (o[1] = (n) => t(i).searchKey = n),
|
|
@@ -242,26 +251,26 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
242
251
|
placeholder: t(a)("connect.voucher.search"),
|
|
243
252
|
collapsible: ""
|
|
244
253
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
245
|
-
t(
|
|
246
|
-
c("div",
|
|
247
|
-
c("div",
|
|
248
|
-
l(
|
|
254
|
+
t(f).campaigns.voucher && t(f).campaigns.voucher.length > 0 ? (u(), S(T, { key: 0 }, [
|
|
255
|
+
c("div", xe, [
|
|
256
|
+
c("div", ke, [
|
|
257
|
+
l(A, {
|
|
249
258
|
label: `${t(a)("connect.common.location")}: `,
|
|
250
259
|
"right-icon": "keyboard_arrow_down",
|
|
251
260
|
modelValue: t(i).location,
|
|
252
261
|
"onUpdate:modelValue": o[2] || (o[2] = (n) => t(i).location = n),
|
|
253
262
|
icon: "storefront",
|
|
254
263
|
"show-item-label": !0,
|
|
255
|
-
items: t(
|
|
264
|
+
items: t(D).locationOptions
|
|
256
265
|
}, null, 8, ["label", "modelValue", "items"]),
|
|
257
|
-
l(
|
|
266
|
+
l(A, {
|
|
258
267
|
label: "Type:",
|
|
259
268
|
"right-icon": "keyboard_arrow_down",
|
|
260
269
|
modelValue: t(i).triggerType,
|
|
261
270
|
"onUpdate:modelValue": o[3] || (o[3] = (n) => t(i).triggerType = n),
|
|
262
271
|
icon: "filter_list",
|
|
263
272
|
"show-item-label": !0,
|
|
264
|
-
items: t(
|
|
273
|
+
items: t(q)
|
|
265
274
|
}, null, 8, ["modelValue", "items"])
|
|
266
275
|
]),
|
|
267
276
|
l(s, {
|
|
@@ -272,67 +281,73 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
272
281
|
collapsible: ""
|
|
273
282
|
}, null, 8, ["modelValue", "placeholder"])
|
|
274
283
|
]),
|
|
275
|
-
l(
|
|
284
|
+
l(Q, {
|
|
276
285
|
class: "xs:hidden",
|
|
277
286
|
"row-data": t(_),
|
|
278
|
-
"column-defs":
|
|
287
|
+
"column-defs": W,
|
|
279
288
|
"search-value": t(i).searchKey,
|
|
280
289
|
"column-filter": [],
|
|
281
290
|
onRowClick: o[5] || (o[5] = (n) => v(n.original)),
|
|
282
291
|
"hide-footer": t(_).length < 10
|
|
283
292
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
284
|
-
l(
|
|
285
|
-
default:
|
|
286
|
-
(u(!0),
|
|
293
|
+
l(Y, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
294
|
+
default: U(() => [
|
|
295
|
+
(u(!0), S(T, null, ae(t(_).filter(
|
|
287
296
|
(n) => n.name.toLowerCase().includes(t(i).searchKey.toLowerCase())
|
|
288
|
-
), (n) => (u(),
|
|
297
|
+
), (n) => (u(), y(J, {
|
|
289
298
|
key: n._id.toString(),
|
|
290
|
-
onClick: (
|
|
299
|
+
onClick: (F) => v(n),
|
|
291
300
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
292
301
|
}, {
|
|
293
|
-
default:
|
|
294
|
-
var
|
|
302
|
+
default: U(() => {
|
|
303
|
+
var F;
|
|
295
304
|
return [
|
|
296
|
-
c("div",
|
|
297
|
-
c("div", ke, [
|
|
298
|
-
(u(), h(ne(t(O)(n)))),
|
|
299
|
-
c("div", xe, g(((k = n.pf_collectible) == null ? void 0 : k.currentReceive) ?? 0) + " claimed ", 1)
|
|
300
|
-
]),
|
|
305
|
+
c("div", Fe, [
|
|
301
306
|
c("div", Ve, [
|
|
302
|
-
|
|
303
|
-
|
|
307
|
+
(u(), y(re(t(M)(n)))),
|
|
308
|
+
w(n) ? (u(), y(Z, {
|
|
309
|
+
key: 0,
|
|
310
|
+
label: "Feedvibe",
|
|
311
|
+
class: "text-fm-color-primary bg-fm-color-system-warning-100",
|
|
312
|
+
compact: ""
|
|
313
|
+
})) : R("", !0),
|
|
314
|
+
c("div", Se, g(((F = n.pf_collectible) == null ? void 0 : F.currentReceive) ?? 0) + " claimed ", 1)
|
|
315
|
+
]),
|
|
316
|
+
c("div", Te, [
|
|
317
|
+
c("div", Ue, g(n.name), 1),
|
|
318
|
+
c("div", Re, g(t(H)(n)), 1)
|
|
304
319
|
])
|
|
305
320
|
]),
|
|
306
321
|
c("div", Le, [
|
|
307
|
-
n
|
|
322
|
+
x(n) ? (u(), y(C, {
|
|
308
323
|
key: 0,
|
|
309
324
|
icon: "visibility",
|
|
310
325
|
"icon-color": "neutral-gray-400",
|
|
311
326
|
variant: "tertiary",
|
|
312
|
-
onClick: async (
|
|
313
|
-
|
|
314
|
-
name: t(
|
|
327
|
+
onClick: async (h) => {
|
|
328
|
+
h.stopPropagation(), await t(E).push({
|
|
329
|
+
name: t($)["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
|
|
315
330
|
params: { id: n._id }
|
|
316
331
|
});
|
|
317
332
|
}
|
|
318
|
-
}, null, 8, ["onClick"])) :
|
|
319
|
-
n
|
|
333
|
+
}, null, 8, ["onClick"])) : R("", !0),
|
|
334
|
+
x(n) ? (u(), y(C, {
|
|
320
335
|
key: 1,
|
|
321
336
|
icon: "send",
|
|
322
337
|
"icon-color": "neutral-gray-400",
|
|
323
338
|
variant: "tertiary",
|
|
324
|
-
onClick: (
|
|
325
|
-
var
|
|
326
|
-
|
|
339
|
+
onClick: (h) => {
|
|
340
|
+
var O;
|
|
341
|
+
h.stopPropagation(), (O = t(k)) == null || O.showSheet({
|
|
327
342
|
campaignId: n._id
|
|
328
343
|
});
|
|
329
344
|
}
|
|
330
|
-
}, null, 8, ["onClick"])) :
|
|
345
|
+
}, null, 8, ["onClick"])) : R("", !0),
|
|
331
346
|
l(C, {
|
|
332
347
|
icon: "delete",
|
|
333
348
|
"icon-color": "neutral-gray-400",
|
|
334
349
|
variant: "tertiary",
|
|
335
|
-
onClick: (
|
|
350
|
+
onClick: (h) => (h.stopPropagation(), B(n))
|
|
336
351
|
}, null, 8, ["onClick"])
|
|
337
352
|
])
|
|
338
353
|
];
|
|
@@ -342,19 +357,19 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
342
357
|
]),
|
|
343
358
|
_: 1
|
|
344
359
|
})
|
|
345
|
-
], 64)) : (u(),
|
|
360
|
+
], 64)) : (u(), y(ee, {
|
|
346
361
|
key: 1,
|
|
347
362
|
variant: "outlined",
|
|
348
363
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
349
364
|
}, {
|
|
350
|
-
default:
|
|
365
|
+
default: U(() => [
|
|
351
366
|
o[7] || (o[7] = c("img", {
|
|
352
|
-
src:
|
|
367
|
+
src: ce,
|
|
353
368
|
class: "aspect-square w-[150px]"
|
|
354
369
|
}, null, -1)),
|
|
355
|
-
c("div",
|
|
356
|
-
c("div",
|
|
357
|
-
c("div",
|
|
370
|
+
c("div", Pe, [
|
|
371
|
+
c("div", Ee, g(t(a)("connect.voucher.createVoucherCampaign")), 1),
|
|
372
|
+
c("div", Ie, g(t(a)("connect.voucher.description")), 1)
|
|
358
373
|
]),
|
|
359
374
|
l(C, {
|
|
360
375
|
variant: "primary",
|
|
@@ -365,14 +380,14 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
365
380
|
]),
|
|
366
381
|
_: 1
|
|
367
382
|
})),
|
|
368
|
-
l(
|
|
383
|
+
l(he, {
|
|
369
384
|
ref_key: "sheetRef",
|
|
370
|
-
ref:
|
|
371
|
-
"onSubmit:modelValue":
|
|
385
|
+
ref: I,
|
|
386
|
+
"onSubmit:modelValue": z
|
|
372
387
|
}, null, 512),
|
|
373
|
-
l(
|
|
388
|
+
l(ge, {
|
|
374
389
|
ref_key: "sendVoucherSheetRef",
|
|
375
|
-
ref:
|
|
390
|
+
ref: k
|
|
376
391
|
}, null, 512)
|
|
377
392
|
])
|
|
378
393
|
], 64);
|
|
@@ -380,5 +395,5 @@ const ve = { class: "px-24 flex flex-col gap-y-16" }, Ce = { class: "flex items-
|
|
|
380
395
|
}
|
|
381
396
|
});
|
|
382
397
|
export {
|
|
383
|
-
|
|
398
|
+
eo as default
|
|
384
399
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as A, ref as w, resolveComponent as c, openBlock as d, createBlock as F, withCtx as f, renderSlot as q, createVNode as m, createTextVNode as S, toDisplayString as I, createElementVNode as n, computed as N, createElementBlock as h, Fragment as U, renderList as z, unref as e, normalizeClass as J, createCommentVNode as P, resolveDynamicComponent as H } from "vue";
|
|
2
|
-
import { c as X } from "./index-
|
|
3
|
-
import { e as K, F as Q } from "./index-
|
|
4
|
-
import { C as W } from "./membership-
|
|
2
|
+
import { c as X } from "./index-Ds7uV5hU.js";
|
|
3
|
+
import { e as K, F as Q } from "./index-COYuq-0E.js";
|
|
4
|
+
import { C as W } from "./membership-BTIRstHL.js";
|
|
5
5
|
import { Z as g } from "./zod-Bg2FbC-D.js";
|
|
6
|
-
import { _ as Y } from "./SelectItems.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { u as ee } from "./business-
|
|
6
|
+
import { _ as Y } from "./SelectItems.vue_vue_type_script_setup_true_lang-DOhYq-N5.js";
|
|
7
|
+
import { u as ee } from "./business-Bq2l2dad.js";
|
|
8
8
|
import { useCoreStore as te } from "@feedmepos/mf-common";
|
|
9
|
-
import { _ as le } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as le } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BEQa1Di8.js";
|
|
10
10
|
import { _ as oe } from "./ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js";
|
|
11
|
-
import { _ as ae, a as ne } from "./EffectSheet.vue_vue_type_style_index_0_lang-
|
|
12
|
-
import { _ as se } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { u as me } from "./vue-i18n-
|
|
14
|
-
import { i as re } from "./helper-
|
|
11
|
+
import { _ as ae, a as ne } from "./EffectSheet.vue_vue_type_style_index_0_lang-BT-ZPcZm.js";
|
|
12
|
+
import { _ as se } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-CcoUlJff.js";
|
|
13
|
+
import { u as me } from "./vue-i18n-xX03EJtj.js";
|
|
14
|
+
import { i as re } from "./helper-DqODSGUO.js";
|
|
15
15
|
const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
16
16
|
__name: "MenuSheet",
|
|
17
17
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, useAttrs as y, resolveComponent as b, openBlock as l, createBlock as v, mergeProps as x, unref as t, createSlots as g, withCtx as h, createElementVNode as a, toDisplayString as n, renderSlot as k, createElementBlock as F, createCommentVNode as S } from "vue";
|
|
2
2
|
import { Z as d } from "./zod-Bg2FbC-D.js";
|
|
3
|
-
import { u as V } from "./vue-i18n-
|
|
3
|
+
import { u as V } from "./vue-i18n-xX03EJtj.js";
|
|
4
4
|
const B = { class: "fm-typo-en-body-lg-400 flex gap-4 text-fm-color-typo-primary items-center" }, C = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "text-fm-color-typo-tertiary"
|