@feedmepos/mf-connect 0.1.71-prod → 0.1.72-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-DIzZEv_G.js → Analytic-CxQKbOnR.js} +163 -163
- package/dist/{App-DrnbBc_l.js → App-C0HCgYW2.js} +7 -7
- package/dist/{Bin-Bt_ru3Gd.js → Bin-BFx6j8vs.js} +8 -8
- package/dist/{Broadcast-Bn5ZjKqo.js → Broadcast-CUfwWq6_.js} +8 -8
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BojGwK_6.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-2oosZTlv.js} +6 -6
- package/dist/{Card-sBhDvBXT.js → Card-DsMVa01V.js} +16 -16
- package/dist/{Collections-Duct2pSH.js → Collections-DSbNXU78.js} +7 -7
- package/dist/{Credit-D3mJTvRc.js → Credit-Dp-tSMfE.js} +8 -8
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-_60iFOeG.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BW7V_Nsq.js} +817 -794
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-D7QHcodO.js +348 -0
- package/dist/{Experience-CIGwlErx.js → Experience-DkQbI88m.js} +8 -8
- package/dist/{Game-Canf-7L-.js → Game-BJvtVGC7.js} +9 -9
- package/dist/{Index-25eVdVm7.js → Index-BcHe2Qqe.js} +10 -10
- package/dist/{Marketing-krqaA6fv.js → Marketing-BaYjdZpb.js} +6 -6
- package/dist/{Member-Bt0NaXiS.js → Member-BzrcLN4X.js} +10 -10
- package/dist/{MemberList-CXk-T9r2.js → MemberList-_uD6WR--.js} +25 -25
- package/dist/{MemberTransactions-Dg-A6a0v.js → MemberTransactions-DIG5noli.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DtpDrupj.js → MessageInput.vue_vue_type_script_setup_true_lang-Cm4jVJBM.js} +7 -7
- package/dist/{Mission-CsxpvhsB.js → Mission-B0h7ECrd.js} +9 -9
- package/dist/{Overview-BUlq3MuQ.js → Overview-BfjTYcaf.js} +18 -18
- package/dist/{Point-DvPTk5wL.js → Point-yBqZgf08.js} +8 -8
- package/dist/{Promotion-BWygpn4X.js → Promotion-Bh8yiwPe.js} +9 -9
- package/dist/{Queue-iD4D04Z-.js → Queue-CMMyxmWP.js} +10 -10
- package/dist/{Record-CritfdkX.js → Record-DSLpbGVk.js} +8 -8
- package/dist/{Reward-DuZ73-kd.js → Reward-BzAIdcgx.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B1073xkE.js → RewardGroup.vue_vue_type_script_setup_true_lang-DoGsPRbi.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-1CJRrkoS.js → RuleGroup.vue_vue_type_script_setup_true_lang-B7qMLC2M.js} +595 -591
- package/dist/{Segment-C8rNVlEi.js → Segment-BVH3YC8I.js} +22 -22
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BmWRTRMe.js → SelectItems.vue_vue_type_script_setup_true_lang-BkHWRVba.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BaP2tykA.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-D-4QjkWh.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CqICTY8X.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CzCSXHge.js} +3 -3
- package/dist/{Setting-BwLCOkXJ.js → Setting-CFLtqHFJ.js} +12 -12
- package/dist/{SettingAdvertisements-Bjw1RSKB.js → SettingAdvertisements-CvFG5Fun.js} +11 -11
- package/dist/{Store-DEtsM22Y.js → Store-CHcszdPx.js} +19 -19
- package/dist/{StoreRewards-DVzCi6nY.js → StoreRewards-BXrXO3Cg.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DKWElE0N.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Clou5scZ.js} +19 -19
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CS_3d3zl.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BEpXudTV.js} +1 -1
- package/dist/{Tier-qUFmMLZe.js → Tier-98o6YCz1.js} +19 -19
- package/dist/{Title-Qk0xODw6.js → Title-BmvCMh9F.js} +18 -18
- package/dist/{Transaction-Be-VAdL0.js → Transaction-D07dnpCB.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Lcgh9b36.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DHvItthe.js} +6 -6
- package/dist/{Voucher-DjiXcyL2.js → Voucher-BX5Dy6oL.js} +12 -12
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-BlXCP_IR.js +421 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B0KU6cW2.js → ZodTextField.vue_vue_type_script_setup_true_lang-TkZAyKkk.js} +1 -1
- package/dist/{app-BYt1acSS.js → app-7Ivt_7kS.js} +1974 -914
- package/dist/{app-CVDxFFOq.js → app-C98aAmiY.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-COPU_15m.js → business-B55rTB5S.js} +1 -1
- package/dist/{campaign-CANP8DZ7.js → campaign-RS-eYMBW.js} +1 -1
- package/dist/campaign-dSphYCws.js +226 -0
- package/dist/{campaign.enum-YFcT9qdL.js → campaign.enum-BZRXf9TI.js} +1 -1
- package/dist/{campaign.fn-CF0vxr00.js → campaign.fn-D_b763b6.js} +82 -82
- package/dist/{collectible.enum-CKyUdzxK.js → collectible.enum-ANnJMtnj.js} +1 -1
- package/dist/{collection.fn-CLGxII_6.js → collection.fn-BObHG1bS.js} +2 -2
- package/dist/{dto-D2FwEDQQ.js → dto-BA2PX6Mi.js} +4 -4
- package/dist/{effect-C_AEVoTp.js → effect-DDAGMMzr.js} +1 -1
- package/dist/{email-addresses-BWnpaUzY.js → email-addresses-jx17hvtN.js} +1 -1
- package/dist/{export-7MCVnb85.js → export-DI_2PZhY.js} +3 -3
- package/dist/{helper-BwCpzGpj.js → helper-ApDLcgT1.js} +1 -1
- package/dist/{index-doXz2Xnd.js → index-B5J1HBw3.js} +1 -1
- package/dist/{index-B776PH8X.js → index-BCOxYH7r.js} +1 -1
- package/dist/{index-CY9fLTpI.js → index-BbNMr2Lt.js} +3 -3
- package/dist/{index-BWctDnVc.js → index-C1tcqVNm.js} +3 -3
- package/dist/{index-B7v1Tn5m.js → index-CEeIezsZ.js} +1 -1
- package/dist/{index-D_Yyiihg.js → index-CN0ree8J.js} +1 -1
- package/dist/{index-DhJ4RwuN.js → index-Cl85lvDM.js} +1 -1
- package/dist/{index-BRPLDaar.js → index-CtpRdZKH.js} +2 -2
- package/dist/{index-BCcnESMx.js → index-DUfWM7U3.js} +1023 -1023
- package/dist/{index-CvWUVGAn.js → index-D_9bRGRa.js} +1 -1
- package/dist/{index-BdTNXQvR.js → index-Dg6gbVXO.js} +1 -1
- package/dist/{index-vEDs6OGV.js → index-Dpe36Jv6.js} +4 -4
- package/dist/{index-DMD1qL3R.js → index-DtB1XLw6.js} +183 -178
- package/dist/{index.esm2017-BwgUTaPG.js → index.esm2017-CcAT1nnu.js} +1 -1
- package/dist/{loading-CpAYlxoG.js → loading-Hh5FSOP9.js} +1 -1
- package/dist/{membership-CgJ7PFUR.js → membership-DXQf9Mj3.js} +3 -3
- package/dist/{money-CQGmkTRp.js → money-OBHKTSCa.js} +1 -1
- package/dist/{number-B_oM4a_k.js → number-DTqujv4j.js} +1 -1
- package/dist/{objectid-Dwu4f87A.js → objectid-BkZDKSpn.js} +1 -1
- package/dist/{campaign-DRXh3QJ1.js → plugins-CQqQawn6.js} +784 -776
- package/dist/{reward-CAhovk_1.js → reward-n9uPwsH1.js} +1 -1
- package/dist/{rule-b2BC4jY8.js → rule-BgsibUNE.js} +3 -3
- package/dist/{rule-builder-w8uO1XAF.js → rule-builder-BkzqGukH.js} +1 -1
- package/dist/template-gXT-yGOY.js +188 -0
- package/dist/{timezone-Di5x-2AC.js → timezone-X-iXAUqa.js} +1 -1
- package/dist/{trigger-B9EDmE6z.js → trigger-DEZuV7Fw.js} +4 -4
- package/dist/{user-BCB96Qct.js → user-DG_FfcGk.js} +1 -1
- package/dist/{vue-i18n-DddYl0c6.js → vue-i18n-BB1YkgAs.js} +317 -317
- package/dist/{xlsx-Dj8VVXnA.js → xlsx-CJQa9ako.js} +166 -166
- package/package.json +1 -1
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-Sk5ub0FZ.js +0 -348
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DHySLFcf.js +0 -419
- package/dist/plugins-Bo72kWn7.js +0 -208
- package/dist/template-DDBscrPK.js +0 -190
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./campaign-
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import { c as
|
|
7
|
-
import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { Z as
|
|
9
|
-
import { F as
|
|
1
|
+
import { defineComponent as I, ref as y, watch as X, onMounted as T, resolveComponent as x, openBlock as d, createBlock as A, withCtx as P, createVNode as b, unref as t, createElementVNode as r, createElementBlock as k, Fragment as $, renderList as D, computed as G, toDisplayString as M, isRef as j, createSlots as Y, createCommentVNode as V, createTextVNode as ee, reactive as te, onBeforeMount as ae } from "vue";
|
|
2
|
+
import { _ as ne } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import "./index-C1tcqVNm.js";
|
|
4
|
+
import "./campaign-dSphYCws.js";
|
|
5
|
+
import { useRouter as le } from "vue-router";
|
|
6
|
+
import { c as E, u as oe } from "./campaign-RS-eYMBW.js";
|
|
7
|
+
import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-TkZAyKkk.js";
|
|
8
|
+
import { Z as ie } from "./zod-Bg2FbC-D.js";
|
|
9
|
+
import { F as re } from "./dto-BA2PX6Mi.js";
|
|
10
10
|
import { J as ue } from "./JsonViewer-v8_C7l5N.js";
|
|
11
|
-
import "./index-
|
|
11
|
+
import "./index-DUfWM7U3.js";
|
|
12
12
|
import { useSnackbar as ce } from "@feedmepos/ui-library";
|
|
13
13
|
import { u as me } from "./app-wDQR6dpb.js";
|
|
14
|
-
import { u as de } from "./loading-
|
|
15
|
-
import { C as pe } from "./campaign.fn-
|
|
14
|
+
import { u as de } from "./loading-Hh5FSOP9.js";
|
|
15
|
+
import { C as pe } from "./campaign.fn-D_b763b6.js";
|
|
16
16
|
import { g as ve } from "./object-qECH92oz.js";
|
|
17
|
-
import { u as fe } from "./membership-
|
|
18
|
-
import { u as ye } from "./vue-i18n-
|
|
19
|
-
const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */
|
|
17
|
+
import { u as fe } from "./membership-DXQf9Mj3.js";
|
|
18
|
+
import { u as ye } from "./vue-i18n-BB1YkgAs.js";
|
|
19
|
+
const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ I({
|
|
20
20
|
__name: "CampaignCard",
|
|
21
21
|
props: {
|
|
22
22
|
title: {},
|
|
@@ -24,12 +24,12 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
|
|
|
24
24
|
modelValue: {}
|
|
25
25
|
},
|
|
26
26
|
emits: ["update:model-value"],
|
|
27
|
-
setup(U, { emit:
|
|
28
|
-
const c = U, v =
|
|
29
|
-
o ? p.value = c.items.map((a) => a.value) : p.value = [],
|
|
30
|
-
},
|
|
31
|
-
p.value = o,
|
|
32
|
-
},
|
|
27
|
+
setup(U, { emit: g }) {
|
|
28
|
+
const c = U, v = g, S = (o) => {
|
|
29
|
+
o ? p.value = c.items.map((a) => a.value) : p.value = [], i.value = o, v("update:model-value", p.value);
|
|
30
|
+
}, _ = (o) => {
|
|
31
|
+
p.value = o, i.value = o.length === c.items.length, v("update:model-value", o);
|
|
32
|
+
}, i = y(!1), p = y([]);
|
|
33
33
|
return X(
|
|
34
34
|
() => c.modelValue,
|
|
35
35
|
() => {
|
|
@@ -37,31 +37,31 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
|
|
|
37
37
|
(o) => c.items.find((a) => a.value === o)
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
),
|
|
40
|
+
), T(() => {
|
|
41
41
|
p.value = c.modelValue.filter(
|
|
42
42
|
(o) => c.items.find((a) => a.value === o)
|
|
43
43
|
);
|
|
44
44
|
}), (o, a) => {
|
|
45
|
-
const
|
|
46
|
-
return d(), A(
|
|
45
|
+
const h = x("FmCheckbox"), l = x("FmCard");
|
|
46
|
+
return d(), A(l, {
|
|
47
47
|
variant: "outlined",
|
|
48
48
|
class: "p-16 space-y-8 h-full cursor-pointer select-none xs:col-span-3"
|
|
49
49
|
}, {
|
|
50
|
-
default:
|
|
51
|
-
h
|
|
52
|
-
"model-value": t(
|
|
50
|
+
default: P(() => [
|
|
51
|
+
b(h, {
|
|
52
|
+
"model-value": t(i),
|
|
53
53
|
value: "1",
|
|
54
54
|
label: c.title,
|
|
55
55
|
indeterminate: t(p).length > 0,
|
|
56
56
|
"onUpdate:modelValue": S
|
|
57
57
|
}, null, 8, ["model-value", "label", "indeterminate"]),
|
|
58
|
-
|
|
59
|
-
(d(!0), k($, null, D(c.items, (
|
|
58
|
+
r("div", ge, [
|
|
59
|
+
(d(!0), k($, null, D(c.items, (n, u) => (d(), A(h, {
|
|
60
60
|
key: u,
|
|
61
61
|
"model-value": t(p),
|
|
62
|
-
label:
|
|
63
|
-
value:
|
|
64
|
-
"onUpdate:modelValue":
|
|
62
|
+
label: n.label,
|
|
63
|
+
value: n.value,
|
|
64
|
+
"onUpdate:modelValue": _
|
|
65
65
|
}, null, 8, ["model-value", "label", "value"]))), 128))
|
|
66
66
|
])
|
|
67
67
|
]),
|
|
@@ -69,7 +69,7 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
|
|
|
69
69
|
});
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
}), he = { class: "space-y-16" }, be = { class: "flex items-center" }, xe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary w-[300px]" }, Ce = { class: "space-y-[40px]" }, ke = /* @__PURE__ */
|
|
72
|
+
}), he = { class: "space-y-16" }, be = { class: "flex items-center" }, xe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary w-[300px]" }, Ce = { class: "space-y-[40px]" }, ke = /* @__PURE__ */ I({
|
|
73
73
|
__name: "LinkCampaign",
|
|
74
74
|
props: {
|
|
75
75
|
modelValue: {
|
|
@@ -82,41 +82,41 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
emits: ["update:model-value"],
|
|
85
|
-
setup(U, { emit:
|
|
86
|
-
const c = y(""), v = y([]), S = U,
|
|
87
|
-
const
|
|
88
|
-
(
|
|
85
|
+
setup(U, { emit: g }) {
|
|
86
|
+
const c = y(""), v = y([]), S = U, _ = g, i = G(() => Object.entries(S.campaigns).reduce((o, [a, h]) => {
|
|
87
|
+
const l = h.filter(
|
|
88
|
+
(n) => n.label.toLowerCase().includes(c.value.toLowerCase())
|
|
89
89
|
);
|
|
90
|
-
return
|
|
90
|
+
return l.length > 0 && (o[a] = l), o;
|
|
91
91
|
}, {}));
|
|
92
92
|
function p(o, a) {
|
|
93
93
|
v.value = v.value.filter(
|
|
94
|
-
(
|
|
95
|
-
), v.value = [.../* @__PURE__ */ new Set([...v.value, ...o])],
|
|
94
|
+
(h) => !a.map((l) => l.value).includes(h)
|
|
95
|
+
), v.value = [.../* @__PURE__ */ new Set([...v.value, ...o])], _("update:model-value", v.value);
|
|
96
96
|
}
|
|
97
|
-
return
|
|
97
|
+
return T(() => {
|
|
98
98
|
v.value = S.modelValue;
|
|
99
99
|
}), (o, a) => {
|
|
100
|
-
const
|
|
100
|
+
const h = x("FmTextField");
|
|
101
101
|
return d(), k($, null, [
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
h
|
|
102
|
+
b(ue, { json: U.campaigns }, null, 8, ["json"]),
|
|
103
|
+
r("div", he, [
|
|
104
|
+
r("div", be, [
|
|
105
|
+
r("div", xe, M(t(v).length) + " campaign(s) linked ", 1),
|
|
106
|
+
b(h, {
|
|
107
107
|
modelValue: t(c),
|
|
108
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
108
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => j(c) ? c.value = l : null),
|
|
109
109
|
"prepend-icon": "search",
|
|
110
110
|
placeholder: "Search",
|
|
111
111
|
class: "w-full"
|
|
112
112
|
}, null, 8, ["modelValue"])
|
|
113
113
|
]),
|
|
114
|
-
|
|
115
|
-
(d(!0), k($, null, D(t(
|
|
114
|
+
r("div", Ce, [
|
|
115
|
+
(d(!0), k($, null, D(t(i), (l, n) => (d(), A(_e, {
|
|
116
116
|
"model-value": t(v),
|
|
117
|
-
title:
|
|
118
|
-
items:
|
|
119
|
-
"onUpdate:modelValue": (u) => p(u,
|
|
117
|
+
title: n,
|
|
118
|
+
items: l,
|
|
119
|
+
"onUpdate:modelValue": (u) => p(u, l)
|
|
120
120
|
}, null, 8, ["model-value", "title", "items", "onUpdate:modelValue"]))), 256))
|
|
121
121
|
])
|
|
122
122
|
])
|
|
@@ -126,39 +126,39 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
|
|
|
126
126
|
}), Ve = { class: "flex items-center gap-x-8" }, Se = {
|
|
127
127
|
key: 0,
|
|
128
128
|
class: "space-y-16 pr-12"
|
|
129
|
-
}, we = { class: "flex items-center gap-x-16" }, Fe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ae = { class: "mt-16" }, $e = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600 py-8 px-16 bg-gray-100" }, Ue = { class: "flex justify-between items-center py-8 px-16 border-b-1" },
|
|
129
|
+
}, we = { class: "flex items-center gap-x-16" }, Fe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ae = { class: "mt-16" }, $e = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600 py-8 px-16 bg-gray-100" }, Ue = { class: "flex justify-between items-center py-8 px-16 border-b-1" }, Le = { class: "flex items-center gap-8" }, Pe = /* @__PURE__ */ I({
|
|
130
130
|
__name: "AnalyticSheet",
|
|
131
131
|
emits: ["success"],
|
|
132
|
-
setup(U, { expose:
|
|
132
|
+
setup(U, { expose: g, emit: c }) {
|
|
133
133
|
const v = c, S = me();
|
|
134
134
|
ce();
|
|
135
|
-
const
|
|
135
|
+
const _ = y(!1), i = y(!1), p = {
|
|
136
136
|
name: "",
|
|
137
137
|
campaigns: []
|
|
138
|
-
}, o = y(""), a = y({ ...p }),
|
|
139
|
-
}),
|
|
140
|
-
const s =
|
|
138
|
+
}, o = y(""), a = y({ ...p }), h = re.superRefine((s, e) => {
|
|
139
|
+
}), l = y([]), n = y(null), { global: u, minor: w } = de, L = G(() => {
|
|
140
|
+
const s = h.safeParse(a.value);
|
|
141
141
|
return s.success ? [] : s.error.errors;
|
|
142
142
|
});
|
|
143
|
-
function
|
|
143
|
+
function B(s) {
|
|
144
144
|
var e;
|
|
145
|
-
|
|
145
|
+
_.value = !0, s ? (n.value = { ...s }, a.value = { ...s, campaigns: (e = s.pf_campaigns) == null ? void 0 : e.map((m) => m._id) }) : (n.value = null, a.value = { ...p });
|
|
146
146
|
}
|
|
147
147
|
function F() {
|
|
148
|
-
|
|
148
|
+
_.value = !1, n.value = null;
|
|
149
149
|
}
|
|
150
150
|
function K() {
|
|
151
|
-
|
|
151
|
+
i.value = !0;
|
|
152
152
|
}
|
|
153
|
-
async function
|
|
154
|
-
const s = await
|
|
153
|
+
async function q() {
|
|
154
|
+
const s = await E.readAll({
|
|
155
155
|
limit: 1e3,
|
|
156
156
|
skip: 0,
|
|
157
157
|
sortBy: "_id",
|
|
158
158
|
search: "",
|
|
159
159
|
descending: !0
|
|
160
160
|
});
|
|
161
|
-
|
|
161
|
+
l.value = s.resources.filter(
|
|
162
162
|
(e) => !["MEMBERSHIP", "REWARD_POOL"].includes(e.type) && !["ISSUE_REWARD"].includes("event" in e ? e == null ? void 0 : e.event.type : "")
|
|
163
163
|
);
|
|
164
164
|
}
|
|
@@ -168,35 +168,35 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
|
|
|
168
168
|
value: C._id
|
|
169
169
|
}));
|
|
170
170
|
return ve(
|
|
171
|
-
|
|
171
|
+
l.value,
|
|
172
172
|
(m) => pe.formattedType(m.type),
|
|
173
173
|
s
|
|
174
174
|
);
|
|
175
|
-
}),
|
|
175
|
+
}), J = G(() => Object.entries(N.value).reduce(
|
|
176
176
|
(s, [e, m]) => {
|
|
177
|
-
const C = m.filter((
|
|
178
|
-
var
|
|
179
|
-
return (f = (
|
|
177
|
+
const C = m.filter((R) => {
|
|
178
|
+
var O, f;
|
|
179
|
+
return (f = (O = a.value) == null ? void 0 : O.campaigns) == null ? void 0 : f.includes(R.value);
|
|
180
180
|
}).filter(
|
|
181
|
-
(
|
|
181
|
+
(R) => R.label.toLowerCase().includes(o.value.toLowerCase())
|
|
182
182
|
);
|
|
183
183
|
return C.length > 0 && (s[e] = C), s;
|
|
184
184
|
},
|
|
185
185
|
{}
|
|
186
186
|
));
|
|
187
|
-
function
|
|
187
|
+
function W(s) {
|
|
188
188
|
var m, C;
|
|
189
189
|
const e = (m = a.value.campaigns) == null ? void 0 : m.indexOf(s);
|
|
190
190
|
e != null && e > -1 && ((C = a.value.campaigns) == null || C.splice(e, 1));
|
|
191
191
|
}
|
|
192
192
|
async function Z() {
|
|
193
|
-
|
|
193
|
+
h.safeParse(a.value).success && await w(
|
|
194
194
|
async () => {
|
|
195
195
|
var e;
|
|
196
|
-
|
|
197
|
-
(e =
|
|
196
|
+
n.value ? await E.updateGroup(
|
|
197
|
+
(e = n.value) == null ? void 0 : e._id,
|
|
198
198
|
a.value
|
|
199
|
-
) : await
|
|
199
|
+
) : await E.createGroup(a.value), v("success"), F();
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
message: "Saving group",
|
|
@@ -208,7 +208,7 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
|
|
|
208
208
|
await w(
|
|
209
209
|
async () => {
|
|
210
210
|
var s;
|
|
211
|
-
await
|
|
211
|
+
await E.deleteGroup((s = n.value) == null ? void 0 : s._id), v("success"), F();
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
message: "Deleting group",
|
|
@@ -216,35 +216,35 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
|
|
|
216
216
|
}
|
|
217
217
|
);
|
|
218
218
|
}
|
|
219
|
-
return
|
|
220
|
-
await
|
|
221
|
-
}),
|
|
222
|
-
showSheet:
|
|
219
|
+
return T(async () => {
|
|
220
|
+
await q();
|
|
221
|
+
}), g({
|
|
222
|
+
showSheet: B,
|
|
223
223
|
hideSheet: F
|
|
224
224
|
}), (s, e) => {
|
|
225
|
-
const m = x("FmButton"), C = x("FmTextField"),
|
|
226
|
-
return d(), A(
|
|
227
|
-
modelValue: t(
|
|
228
|
-
"onUpdate:modelValue": e[7] || (e[7] = (f) =>
|
|
229
|
-
header: t(
|
|
225
|
+
const m = x("FmButton"), C = x("FmTextField"), R = x("FmList"), O = x("FmSideSheet");
|
|
226
|
+
return d(), A(O, {
|
|
227
|
+
modelValue: t(_),
|
|
228
|
+
"onUpdate:modelValue": e[7] || (e[7] = (f) => j(_) ? _.value = f : null),
|
|
229
|
+
header: t(n) ? "Edit group" : "Add group",
|
|
230
230
|
"dismiss-away": "",
|
|
231
231
|
"close-button": !0,
|
|
232
232
|
"max-width": 550
|
|
233
233
|
}, Y({
|
|
234
|
-
"side-sheet-footer":
|
|
235
|
-
|
|
236
|
-
t(
|
|
237
|
-
|
|
234
|
+
"side-sheet-footer": P(() => [
|
|
235
|
+
r("div", Le, [
|
|
236
|
+
t(i) ? V("", !0) : (d(), k($, { key: 0 }, [
|
|
237
|
+
b(m, {
|
|
238
238
|
label: "Submit",
|
|
239
239
|
onClick: Z,
|
|
240
|
-
disabled: t(
|
|
240
|
+
disabled: t(L).length > 0 || t(S).isLoading
|
|
241
241
|
}, null, 8, ["disabled"]),
|
|
242
|
-
|
|
242
|
+
b(m, {
|
|
243
243
|
label: "Cancel",
|
|
244
244
|
onClick: e[4] || (e[4] = (f) => F()),
|
|
245
245
|
variant: "tertiary"
|
|
246
246
|
}),
|
|
247
|
-
t(
|
|
247
|
+
t(n) ? (d(), A(m, {
|
|
248
248
|
key: 0,
|
|
249
249
|
label: "Delete",
|
|
250
250
|
variant: "plain",
|
|
@@ -252,57 +252,57 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
|
|
|
252
252
|
onClick: e[5] || (e[5] = (f) => z())
|
|
253
253
|
})) : V("", !0)
|
|
254
254
|
], 64)),
|
|
255
|
-
t(
|
|
255
|
+
t(i) ? (d(), A(m, {
|
|
256
256
|
key: 1,
|
|
257
257
|
label: "Confirm",
|
|
258
|
-
onClick: e[6] || (e[6] = (f) =>
|
|
258
|
+
onClick: e[6] || (e[6] = (f) => i.value = !1)
|
|
259
259
|
})) : V("", !0)
|
|
260
260
|
])
|
|
261
261
|
]),
|
|
262
|
-
default:
|
|
263
|
-
t(
|
|
264
|
-
e[9] || (e[9] =
|
|
265
|
-
|
|
262
|
+
default: P(() => [
|
|
263
|
+
t(i) ? V("", !0) : (d(), k("div", Se, [
|
|
264
|
+
e[9] || (e[9] = r("div", { class: "fm-typo-en-title-sm-800" }, "Group detail", -1)),
|
|
265
|
+
b(se, {
|
|
266
266
|
modelValue: t(a).name,
|
|
267
267
|
"onUpdate:modelValue": e[1] || (e[1] = (f) => t(a).name = f),
|
|
268
268
|
label: "Name",
|
|
269
|
-
schema: t(
|
|
269
|
+
schema: t(ie).typeAtPath(t(h), "name")
|
|
270
270
|
}, null, 8, ["modelValue", "schema"]),
|
|
271
|
-
e[10] || (e[10] =
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
271
|
+
e[10] || (e[10] = r("div", { class: "fm-typo-en-title-sm-800" }, "Link campaign", -1)),
|
|
272
|
+
r("div", we, [
|
|
273
|
+
r("div", Fe, M(t(a).campaigns.length) + " campaign(s) linked ", 1),
|
|
274
|
+
b(C, {
|
|
275
275
|
modelValue: t(o),
|
|
276
|
-
"onUpdate:modelValue": e[2] || (e[2] = (f) =>
|
|
276
|
+
"onUpdate:modelValue": e[2] || (e[2] = (f) => j(o) ? o.value = f : null),
|
|
277
277
|
"prepend-icon": "search",
|
|
278
278
|
placeholder: "Search",
|
|
279
279
|
class: "w-auto"
|
|
280
280
|
}, null, 8, ["modelValue"])
|
|
281
281
|
]),
|
|
282
|
-
|
|
282
|
+
b(m, {
|
|
283
283
|
variant: "plain",
|
|
284
284
|
icon: "link",
|
|
285
285
|
label: "Link Campaign",
|
|
286
286
|
onClick: K
|
|
287
287
|
})
|
|
288
288
|
])),
|
|
289
|
-
t(
|
|
289
|
+
t(i) ? (d(), A(ke, {
|
|
290
290
|
key: 1,
|
|
291
291
|
modelValue: t(a).campaigns,
|
|
292
292
|
"onUpdate:modelValue": e[3] || (e[3] = (f) => t(a).campaigns = f),
|
|
293
293
|
campaigns: t(N)
|
|
294
294
|
}, null, 8, ["modelValue", "campaigns"])) : V("", !0),
|
|
295
|
-
|
|
296
|
-
t(
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
default:
|
|
295
|
+
r("div", Ae, [
|
|
296
|
+
t(i) ? V("", !0) : (d(!0), k($, { key: 0 }, D(t(J), (f, Q) => (d(), k("div", null, [
|
|
297
|
+
r("div", $e, M(Q), 1),
|
|
298
|
+
b(R, { separator: !0 }, {
|
|
299
|
+
default: P(() => [
|
|
300
300
|
(d(!0), k($, null, D(f, (H) => (d(), k("div", Ue, [
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
301
|
+
r("div", null, M(H.label), 1),
|
|
302
|
+
r("div", null, [
|
|
303
|
+
b(m, {
|
|
304
304
|
icon: "delete",
|
|
305
|
-
onClick: (
|
|
305
|
+
onClick: (Oe) => W(H.value),
|
|
306
306
|
variant: "tertiary"
|
|
307
307
|
}, null, 8, ["onClick"])
|
|
308
308
|
])
|
|
@@ -315,14 +315,14 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
|
|
|
315
315
|
]),
|
|
316
316
|
_: 2
|
|
317
317
|
}, [
|
|
318
|
-
t(
|
|
318
|
+
t(i) ? {
|
|
319
319
|
name: "side-sheet-header",
|
|
320
|
-
fn:
|
|
321
|
-
|
|
322
|
-
|
|
320
|
+
fn: P(() => [
|
|
321
|
+
r("div", Ve, [
|
|
322
|
+
b(m, {
|
|
323
323
|
icon: "arrow_back",
|
|
324
324
|
variant: "tertiary",
|
|
325
|
-
onClick: e[0] || (e[0] = (f) =>
|
|
325
|
+
onClick: e[0] || (e[0] = (f) => i.value = !1)
|
|
326
326
|
}),
|
|
327
327
|
e[8] || (e[8] = ee("Link campaign ", -1))
|
|
328
328
|
])
|
|
@@ -332,89 +332,89 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
|
|
|
332
332
|
]), 1032, ["modelValue", "header"]);
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
|
-
}), Ge = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Me = { class: "space-y-16" }, Be = { class: "flex items-center justify-end" },
|
|
335
|
+
}), Ge = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Me = { class: "space-y-16" }, Be = { class: "flex items-center justify-end" }, Re = { class: "fm-typo-en-title-sm-800 text-center" }, Ee = { class: "fm-typo-body-en-md-400 text-center text-fm-color-typo-secondary" }, nt = /* @__PURE__ */ I({
|
|
336
336
|
__name: "Analytic",
|
|
337
337
|
setup(U) {
|
|
338
|
-
const { t:
|
|
339
|
-
label:
|
|
338
|
+
const { t: g } = ye(), c = {
|
|
339
|
+
label: g("connect.analytic.addGroup"),
|
|
340
340
|
value: "create",
|
|
341
341
|
isPrimary: !0,
|
|
342
342
|
prependIcon: "add"
|
|
343
|
-
}, v = oe(), S = y(),
|
|
343
|
+
}, v = oe(), S = y(), _ = y([]), i = y(""), p = te({
|
|
344
344
|
totalCampaign: 0,
|
|
345
345
|
totalProgram: 0,
|
|
346
346
|
totalMember: 0
|
|
347
347
|
}), o = y("1");
|
|
348
|
-
|
|
349
|
-
function a(
|
|
348
|
+
g("connect.analytic.summary.totalCampaign"), g("connect.analytic.summary.totalProgram"), g("connect.analytic.summary.totalMember");
|
|
349
|
+
function a(n) {
|
|
350
350
|
var u;
|
|
351
|
-
o.value = (/* @__PURE__ */ new Date()).toISOString(), (u = S.value) == null || u.showSheet(
|
|
351
|
+
o.value = (/* @__PURE__ */ new Date()).toISOString(), (u = S.value) == null || u.showSheet(n);
|
|
352
352
|
}
|
|
353
|
-
async function
|
|
353
|
+
async function h() {
|
|
354
354
|
await v.readGroups();
|
|
355
|
-
const
|
|
355
|
+
const n = await E.readAllGrouped({
|
|
356
356
|
limit: 100,
|
|
357
357
|
skip: 0,
|
|
358
358
|
sortBy: "_id",
|
|
359
359
|
search: "",
|
|
360
360
|
descending: !0
|
|
361
361
|
});
|
|
362
|
-
|
|
362
|
+
_.value = n.resources;
|
|
363
363
|
}
|
|
364
|
-
G(() =>
|
|
364
|
+
G(() => _.value.filter((n) => {
|
|
365
365
|
var u;
|
|
366
|
-
return
|
|
366
|
+
return n.name.includes(i.value) || ((u = n.pf_campaigns) == null ? void 0 : u.filter((w) => w.name.includes(i.value)).length);
|
|
367
367
|
}));
|
|
368
|
-
const
|
|
369
|
-
return
|
|
370
|
-
var
|
|
371
|
-
return !
|
|
372
|
-
(
|
|
368
|
+
const l = fe();
|
|
369
|
+
return le(), y(!0), G(() => {
|
|
370
|
+
var n, u, w, L;
|
|
371
|
+
return !l.storeOption || !l.storeOption.company ? -1 : !l.payoutAccount || !l.payoutAccount.enable || l.payoutAccount.status != "APPROVED" ? 0 : (u = (n = l.store) == null ? void 0 : n.categories) != null && u.length ? (L = (w = l.store) == null ? void 0 : w.categories) != null && L.some(
|
|
372
|
+
(B) => B.bundles.some((F) => F.isFeedvibe)
|
|
373
373
|
) ? 3 : 2 : 1;
|
|
374
374
|
}), ae(async () => {
|
|
375
|
-
await
|
|
376
|
-
}), (
|
|
377
|
-
const w = x("FmPageHead"),
|
|
375
|
+
await l.readMemberStore(), await l.readMembership(), await l.readPayoutAccount();
|
|
376
|
+
}), (n, u) => {
|
|
377
|
+
const w = x("FmPageHead"), L = x("FmSearch"), B = x("FmCard");
|
|
378
378
|
return x("FmButton"), x("FmIcon"), d(), k($, null, [
|
|
379
|
-
|
|
380
|
-
title: t(
|
|
381
|
-
actions: t(
|
|
379
|
+
b(w, {
|
|
380
|
+
title: t(g)("connect.analytic.title"),
|
|
381
|
+
actions: t(_).length > 0 ? [c] : [],
|
|
382
382
|
"onClick:action": u[0] || (u[0] = (F) => a())
|
|
383
383
|
}, null, 8, ["title", "actions"]),
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
384
|
+
r("div", Ge, [
|
|
385
|
+
r("div", Me, [
|
|
386
|
+
r("div", Be, [
|
|
387
|
+
b(L, {
|
|
388
388
|
class: "xs:hidden",
|
|
389
|
-
modelValue: t(
|
|
390
|
-
"onUpdate:modelValue": u[1] || (u[1] = (F) =>
|
|
391
|
-
placeholder: t(
|
|
389
|
+
modelValue: t(i),
|
|
390
|
+
"onUpdate:modelValue": u[1] || (u[1] = (F) => j(i) ? i.value = F : null),
|
|
391
|
+
placeholder: t(g)("connect.analytic.search"),
|
|
392
392
|
collapsible: ""
|
|
393
393
|
}, null, 8, ["modelValue", "placeholder"])
|
|
394
394
|
]),
|
|
395
395
|
V("", !0)
|
|
396
396
|
]),
|
|
397
397
|
V("", !0),
|
|
398
|
-
t(
|
|
398
|
+
t(_).length ? V("", !0) : (d(), A(B, {
|
|
399
399
|
key: 1,
|
|
400
400
|
variant: "outlined",
|
|
401
401
|
class: "flex flex-col gap-y-24 items-center p-16"
|
|
402
402
|
}, {
|
|
403
|
-
default:
|
|
404
|
-
|
|
405
|
-
src:
|
|
403
|
+
default: P(() => [
|
|
404
|
+
u[7] || (u[7] = r("img", {
|
|
405
|
+
src: ne,
|
|
406
406
|
class: "w-[150px]"
|
|
407
|
-
}, null, -1),
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
])
|
|
407
|
+
}, null, -1)),
|
|
408
|
+
r("div", Re, M(t(g)("connect.analytic.maintenance.title")), 1),
|
|
409
|
+
r("div", Ee, M(t(g)("connect.analytic.maintenance.description")), 1)
|
|
410
|
+
]),
|
|
411
411
|
_: 1
|
|
412
412
|
})),
|
|
413
413
|
V("", !0),
|
|
414
|
-
|
|
414
|
+
b(Pe, {
|
|
415
415
|
ref_key: "sheetRef",
|
|
416
416
|
ref: S,
|
|
417
|
-
onSuccess:
|
|
417
|
+
onSuccess: h
|
|
418
418
|
}, null, 512)
|
|
419
419
|
])
|
|
420
420
|
], 64);
|
|
@@ -422,5 +422,5 @@ const ge = { class: "ml-32 flex flex-col" }, _e = /* @__PURE__ */ j({
|
|
|
422
422
|
}
|
|
423
423
|
});
|
|
424
424
|
export {
|
|
425
|
-
|
|
425
|
+
nt as default
|
|
426
426
|
};
|
|
@@ -2,16 +2,16 @@ import { defineComponent as ht, ref as te, h as G, computed as Ee, watch as ft,
|
|
|
2
2
|
import { useRouter as sn, useRoute as mt, RouterView as on } from "vue-router";
|
|
3
3
|
import { useCoreStore as be, FeedMeAuth as an } from "@feedmepos/mf-common";
|
|
4
4
|
import { u as cn } from "./app-wDQR6dpb.js";
|
|
5
|
-
import { u as ln } from "./business-
|
|
6
|
-
import "./index-
|
|
5
|
+
import { u as ln } from "./business-B55rTB5S.js";
|
|
6
|
+
import "./index-B5J1HBw3.js";
|
|
7
7
|
import { components as z, useSnackbar as un, useDialog as dn } from "@feedmepos/ui-library";
|
|
8
|
-
import { u as hn } from "./vue-i18n-
|
|
9
|
-
import { C as Ge, m as fn } from "./timezone-
|
|
10
|
-
import { R as f } from "./app-
|
|
8
|
+
import { u as hn } from "./vue-i18n-BB1YkgAs.js";
|
|
9
|
+
import { C as Ge, m as fn } from "./timezone-X-iXAUqa.js";
|
|
10
|
+
import { R as f } from "./app-7Ivt_7kS.js";
|
|
11
11
|
import { J as pn } from "./JsonViewer-v8_C7l5N.js";
|
|
12
|
-
import { r as Se, L as mn, g as gt, i as gn, a as _n, _ as ze, C as qe, b as vn, S as J, c as E, d as W, E as Ce, e as In, f as _t, h as Tn, j as yn, k as vt, l as _, m as wn, F as Oe, n as En, q as Y, o as kn, p as bn, s as Sn, t as Rn, u as Pn } from "./index.esm2017-
|
|
12
|
+
import { r as Se, L as mn, g as gt, i as gn, a as _n, _ as ze, C as qe, b as vn, S as J, c as E, d as W, E as Ce, e as In, f as _t, h as Tn, j as yn, k as vt, l as _, m as wn, F as Oe, n as En, q as Y, o as kn, p as bn, s as Sn, t as Rn, u as Pn } from "./index.esm2017-CcAT1nnu.js";
|
|
13
13
|
import { _ as Ne } from "./tslib.es6-BCqqvLQ_.js";
|
|
14
|
-
import { S as Ke, c as An } from "./index-
|
|
14
|
+
import { S as Ke, c as An } from "./index-C1tcqVNm.js";
|
|
15
15
|
const Cn = { class: "flex flex-col h-full justify-between py-16" }, On = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Nn = /* @__PURE__ */ ht({
|
|
16
16
|
__name: "NavigationTab",
|
|
17
17
|
setup(n) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as C, ref as c, h as s, onMounted as x, resolveComponent as d, openBlock as S, createElementBlock as B, Fragment as M, createVNode as l, unref as o, createElementVNode as u } from "vue";
|
|
2
2
|
import { components as p } from "@feedmepos/ui-library";
|
|
3
|
-
import { u as K } from "./loading-
|
|
4
|
-
import { u as R } from "./business-
|
|
5
|
-
import { C as A } from "./campaign-
|
|
6
|
-
import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { u as K } from "./loading-Hh5FSOP9.js";
|
|
4
|
+
import { u as R } from "./business-B55rTB5S.js";
|
|
5
|
+
import { C as A } from "./campaign-dSphYCws.js";
|
|
6
|
+
import { _ as P } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BW7V_Nsq.js";
|
|
7
7
|
import { _ as U } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
8
|
-
import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as D } from "./vue-i18n-
|
|
8
|
+
import { _ as Y } from "./SendVoucherSheet.vue_vue_type_script_setup_true_lang-CzCSXHge.js";
|
|
9
|
+
import { u as D } from "./vue-i18n-BB1YkgAs.js";
|
|
10
10
|
import { h as E } from "./moment-D7p2TMB-.js";
|
|
11
|
-
import { p as I } from "./plugins-
|
|
12
|
-
import { c as g } from "./campaign-
|
|
11
|
+
import { p as I } from "./plugins-CQqQawn6.js";
|
|
12
|
+
import { c as g } from "./campaign-RS-eYMBW.js";
|
|
13
13
|
const T = { class: "px-24 flex flex-col gap-y-16" }, $ = { class: "flex items-center justify-between w-full" }, j = { class: "flex gap-8 overflow-x-auto" }, oe = /* @__PURE__ */ C({
|
|
14
14
|
__name: "Bin",
|
|
15
15
|
setup(H) {
|