@feedmepos/mf-connect 0.1.38-beta.9 → 0.1.38-beta.92
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-3MN2saaU.js → Analytic-CWhVZ2N2.js} +31 -32
- package/dist/{App-Co8X5Wdy.js → App-BzHDZ550.js} +741 -728
- package/dist/AuditLogs-DjJOfxWr.js +2013 -0
- package/dist/{Bin-8a56ZDib.js → Bin-H9Mc0kOX.js} +10 -10
- package/dist/Broadcast-BlKv9pTl.js +266 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BVXlfq31.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Bfpr1EuT.js} +6 -6
- package/dist/{Card-B8_09LJu.js → Card-ByEYCMZi.js} +145 -140
- package/dist/Collections-BjlqpQR0.js +540 -0
- package/dist/Credit-DyBVTpfr.js +260 -0
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +128 -0
- package/dist/DateInput.vue_vue_type_script_setup_true_lang-BN4Q5Y3l.js +54 -0
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js → DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DP50lRfA.js +3120 -0
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-BCQxJpVP.js +351 -0
- package/dist/Experience-Cf6lxdu_.js +259 -0
- package/dist/{FileSaver.min-NlMItPOc.js → FileSaver.min-BIgeA5yw.js} +1 -1
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
- package/dist/FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js +52 -0
- package/dist/Game-CCgsa5as.js +330 -0
- package/dist/Grab-oIvB2uUc.js +300 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-BuiY288K.js} +49 -48
- package/dist/{Index-DLF71mx_.js → Index--bmiSYq2.js} +54 -54
- package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-BQMZvHq2.js +48 -0
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Bj6wuosW.js} +1 -1
- package/dist/{MainLayout-B1aJoR95.js → MainLayout-DTva8da3.js} +1 -1
- package/dist/Marketing-D-5rvdRJ.js +236 -0
- package/dist/MarketingMaterialEdit-CZvsnFG5.js +1036 -0
- package/dist/{Member-Bkw4aqtv.js → Member-CxKA1iM1.js} +38 -37
- package/dist/{MemberList-a3PdVYB3.js → MemberList-CmBZ6w5v.js} +485 -489
- package/dist/{MemberTransactions-CPDBd-n3.js → MemberTransactions-Dc9uE1Jy.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-pbN8pN1m.js → MessageInput.vue_vue_type_script_setup_true_lang-DiOsNoiJ.js} +10392 -9967
- package/dist/Mission-D9ruHJsQ.js +334 -0
- package/dist/{Overview-De97NDoe.js → Overview-B4eiwvqi.js} +34 -34
- package/dist/Point-MXmcuDtD.js +262 -0
- package/dist/Promotion-CBoCcEhJ.js +397 -0
- package/dist/{Queue-ISVZxCE2.js → Queue-if5Lji0q.js} +18 -18
- package/dist/{Record-2FMByNC6.js → Record-XLXvSqlF.js} +15 -14
- package/dist/Review-BKIkmxLd.js +621 -0
- package/dist/ReviewFacebookCallback-B6TIL_H7.js +243 -0
- package/dist/ReviewGoogleCallback-D3sQbfuc.js +213 -0
- package/dist/{Reward-DPRyQ37x.js → Reward-DaymLqOP.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Ba7-3bL-.js → RewardGroup.vue_vue_type_script_setup_true_lang-cGyeUFlK.js} +13 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BOJdm376.js +1912 -0
- package/dist/Segment-o7srzt8o.js +1015 -0
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DZbyDVid.js → SelectItems.vue_vue_type_script_setup_true_lang-DnA83SVT.js} +23 -23
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-ioMFYIwK.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-RKn_DhW0.js} +12 -12
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-mzGtatEl.js +226 -0
- package/dist/Setting-Clbp5X2E.js +2039 -0
- package/dist/SettingAdvertisements-D9KTw00Q.js +264 -0
- package/dist/Store-DApDz7rO.js +1996 -0
- package/dist/StoreRewards-DTraNhDh.js +537 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BusvWI37.js +1130 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-D5HOiiLG.js +7007 -0
- package/dist/{Tier-CwRj0oJ1.js → Tier-BWiO5an3.js} +562 -480
- package/dist/{Title-EII5OxSP.js → Title-Dur74Of5.js} +151 -149
- package/dist/{Transaction-1MTkAfej.js → Transaction-x3fZwXdy.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BlQVWQHJ.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-9XLlfUdp.js} +7 -7
- package/dist/Voucher-DH7x7NAS.js +421 -0
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-CNn4GR2l.js +421 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CTeGK4bk.js → ZodTextField.vue_vue_type_script_setup_true_lang-W-qWPW20.js} +2 -2
- package/dist/app-IRmnrMb8.js +59647 -0
- package/dist/app.js +1 -1
- package/dist/{business-DjnN-J4U.js → business-BZG7VHN8.js} +11 -8
- package/dist/campaign-BUvMmYOk.js +219 -0
- package/dist/campaign-BeRxvBzZ.js +254 -0
- package/dist/campaign.enum-BmFHrnub.js +26 -0
- package/dist/campaign.fn-B0sgTkC-.js +776 -0
- package/dist/{collectible.enum-r6N115Lu.js → collectible.enum-J0aolcpF.js} +1 -1
- package/dist/{collection.fn-CSsfVv26.js → collection.fn-BOhZm8S0.js} +2 -2
- package/dist/dto-CSNH3rWF.js +222 -0
- package/dist/duplicateCampaign-CAOL6p7n.js +51 -0
- package/dist/effect-DTL3F8d_.js +89 -0
- package/dist/{email-addresses-D8uheCCF.js → email-addresses-Bw8rSTHa.js} +2 -2
- package/dist/{export-Ver6WiX6.js → export-CY5VAxnU.js} +4 -4
- package/dist/{helper-Bg4xoFbh.js → helper-1sIKNm6C.js} +22 -7
- package/dist/{index-Dn_bmcns.js → index-BX_igCG6.js} +3 -3
- package/dist/index-B_-tEYD0.js +3625 -0
- package/dist/{index-BZZ4iF4-.js → index-BultP2zY.js} +23 -12
- package/dist/index-CAIsxBzT.js +48 -0
- package/dist/index-CVbL8J7-.js +85 -0
- package/dist/index-CuvNtC_M.js +61 -0
- package/dist/{index-D4JOeJJJ.js → index-D4Bx6J2q.js} +1 -1
- package/dist/{index-hJUxCNsF.js → index-DO2AYnVc.js} +1 -1
- package/dist/index-DPmqQmoC.js +30289 -0
- package/dist/{index-CNhr0_Zx.js → index-DoupH575.js} +617 -191
- package/dist/{index-Bb0CHeNx.js → index-DpXwZYX4.js} +3 -3
- package/dist/{index-BPQyQc4q.js → index-Gr5htFUW.js} +1 -1
- package/dist/index-KC-9_cY4.js +8910 -0
- package/dist/index-nMxh2OZ2.js +28900 -0
- package/dist/{index.esm2017-hK1Mi9yY.js → index.esm2017-0cVB_6L1.js} +122 -122
- package/dist/{loading-kIQFOTwH.js → loading-BUAN8WyV.js} +4 -3
- package/dist/{lodash-B5I3zXaY.js → lodash-C7OD0MNW.js} +1 -1
- package/dist/{membership--xR-HZoa.js → membership-CZkPkDiM.js} +38 -18
- package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
- package/dist/{money-c-ITXnlg.js → money-CdTox5sS.js} +1 -1
- package/dist/{number-DfZSBLOY.js → number-CxHO_EhJ.js} +1 -1
- package/dist/objectid-DL2GZe9v.js +145 -0
- package/dist/{campaign-BpJ1O6KS.js → plugins-BR4hQ6yY.js} +677 -699
- package/dist/remy-D_Deb3ue.js +13 -0
- package/dist/{reward-CE0ifMHS.js → reward-DWwwkcS3.js} +1 -1
- package/dist/{rule-DrjdmpaB.js → rule-CY_w8dsS.js} +505 -487
- package/dist/rule-builder-DMdUBkxB.js +102 -0
- package/dist/string-Gcy5IM_H.js +32 -0
- package/dist/style.css +11 -2
- package/dist/template-tuIzBpOC.js +188 -0
- package/dist/timezone-Dt3UFIE2.js +1156 -0
- package/dist/trigger-B9pWO76n.js +213 -0
- package/dist/useMarketingMaterialActions-C7XoKutU.js +96 -0
- package/dist/usePagination-Dvqiv0Ms.js +220 -0
- package/dist/{user-Cl3IotYV.js → user-DlrL0A8u.js} +15 -14
- package/dist/{vue-i18n-DKh0SMhL.js → vue-i18n-B2srUL0h.js} +449 -449
- package/dist/{xlsx-BDBzdOuM.js → xlsx-B9pnBbNc.js} +1 -1
- package/dist/{zod-Bg2FbC-D.js → zod-CO0ds3MB.js} +32 -31
- package/package.json +14 -6
- package/dist/AuditLogs-DTq6IAuc.js +0 -1887
- package/dist/Broadcast-UreS5Kiq.js +0 -227
- package/dist/Collections-B0I5ULxR.js +0 -465
- package/dist/Credit-B4Ad8DWP.js +0 -222
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +0 -108
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DjgACf9F.js +0 -2185
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-y5JnuIev.js +0 -347
- package/dist/Experience-xO5KpTTm.js +0 -223
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
- package/dist/Game-ChgrVvz5.js +0 -278
- package/dist/Marketing-BlmRXSGl.js +0 -20073
- package/dist/Mission-B07wK0HX.js +0 -296
- package/dist/Point-Ckj9QIeH.js +0 -226
- package/dist/Promotion-aGNCOeRN.js +0 -289
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DWj-421v.js +0 -1751
- package/dist/Segment-CRMNJ11X.js +0 -882
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cfp8XXdO.js +0 -147
- package/dist/Setting-c0FWRZsD.js +0 -1936
- package/dist/Store-Bm1_15s8.js +0 -1842
- package/dist/StoreRewards-BCQHHfay.js +0 -423
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CfTF2l-D.js +0 -1029
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-rvhoxo0w.js +0 -139
- package/dist/Voucher-CYvjCb-v.js +0 -384
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-63Jr71dJ.js +0 -419
- package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
- package/dist/app-BJLHk8ao.js +0 -33357
- package/dist/app-BzIk1ojT.js +0 -7086
- package/dist/campaign-BHNS5kXt.js +0 -96
- package/dist/campaign.enum-CJDWE_Om.js +0 -20
- package/dist/campaign.fn-C0HQE9uh.js +0 -758
- package/dist/dto-Byq51uVH.js +0 -214
- package/dist/effect-Do3yTM-_.js +0 -78
- package/dist/index-B1V9UnI9.js +0 -76
- package/dist/index-BM9CWjC6.js +0 -38
- package/dist/index-CsaQJMAR.js +0 -66
- package/dist/index-D6VxioBg.js +0 -30038
- package/dist/index-DGKlRWn3.js +0 -32260
- package/dist/index-DLKyOu7W.js +0 -8861
- package/dist/index-DyYF6HYL.js +0 -121
- package/dist/index-UXtH44XQ.js +0 -3120
- package/dist/objectid-DKbha9-x.js +0 -145
- package/dist/plugins-DtakupKW.js +0 -208
- package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
- package/dist/rule-builder-B_hCyq3x.js +0 -89
- package/dist/template-WI4a-lFY.js +0 -190
- package/dist/trigger-DieDHht3.js +0 -144
- package/dist/usePagination-BeF5K3M7.js +0 -223
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { defineComponent as W, ref as v, computed as G, h as m, onMounted as J, resolveComponent as d, openBlock as u, createElementBlock as S, Fragment as k, createVNode as c, unref as t, createElementVNode as i, withCtx as F, renderList as Q, createBlock as I, resolveDynamicComponent as X, toDisplayString as g } from "vue";
|
|
2
|
+
import { _ as Y } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { u as Z } from "./loading-BUAN8WyV.js";
|
|
4
|
+
import { a as ee, b as D, c as K } from "./campaign-BeRxvBzZ.js";
|
|
5
|
+
import { c as oe, p as te } from "./duplicateCampaign-CAOL6p7n.js";
|
|
6
|
+
import { c as ne, p as ae } from "./plugins-BR4hQ6yY.js";
|
|
7
|
+
import { u as ie } from "./business-BZG7VHN8.js";
|
|
8
|
+
import { u as se, c as y } from "./campaign-BUvMmYOk.js";
|
|
9
|
+
import { useDialog as re, components as _ } from "@feedmepos/ui-library";
|
|
10
|
+
import { _ as ce } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
11
|
+
import { u as le } from "./template-tuIzBpOC.js";
|
|
12
|
+
import { _ as me } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DP50lRfA.js";
|
|
13
|
+
import { s as de } from "./index-CuvNtC_M.js";
|
|
14
|
+
import { u as pe } from "./vue-i18n-B2srUL0h.js";
|
|
15
|
+
import { _ as ue } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-RKn_DhW0.js";
|
|
16
|
+
const ge = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-center justify-between w-full" }, ye = { class: "flex gap-8 overflow-x-auto" }, _e = { class: "space-y-8" }, he = { class: "flex w-full gap-4 items-center" }, we = { class: "space-y-4" }, Ce = { class: "fm-typo-en-body-lg-600" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ve = { class: "flex items-center gap-8" }, Se = { class: "flex flex-col gap-16 text-center" }, ke = { class: "fm-typo-en-title-sm-800" }, Fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ee = /* @__PURE__ */ W({
|
|
17
|
+
__name: "Mission",
|
|
18
|
+
setup(Ie) {
|
|
19
|
+
const { t: a } = pe(), N = {
|
|
20
|
+
label: a("connect.program.common.actions.create", {
|
|
21
|
+
type: a("connect.program.mission.title").toLowerCase()
|
|
22
|
+
}),
|
|
23
|
+
value: "create",
|
|
24
|
+
isPrimary: !0,
|
|
25
|
+
prependIcon: "add"
|
|
26
|
+
}, L = re(), O = le("MISSION", L), R = ie(), p = se(), { global: A, minor: V } = Z, l = v({
|
|
27
|
+
searchKey: "",
|
|
28
|
+
location: []
|
|
29
|
+
});
|
|
30
|
+
function U(e) {
|
|
31
|
+
const o = l.value.location;
|
|
32
|
+
return !o || o.length === 0 || !e.targetLocation ? !0 : Array.isArray(o) ? o.some((s) => {
|
|
33
|
+
var r;
|
|
34
|
+
return (r = e == null ? void 0 : e.targetLocation) == null ? void 0 : r.includes(s);
|
|
35
|
+
}) : e.targetLocation.includes(o);
|
|
36
|
+
}
|
|
37
|
+
const f = G(
|
|
38
|
+
() => p.campaigns.mission.filter((e) => U(e))
|
|
39
|
+
), T = [
|
|
40
|
+
{
|
|
41
|
+
header: a("connect.program.common.table.title"),
|
|
42
|
+
accessorKey: "name",
|
|
43
|
+
// accessorFn: (v) => v.name,
|
|
44
|
+
cell(e) {
|
|
45
|
+
return m("div", { class: "flex items-center justify-between gap-4" }, [
|
|
46
|
+
m("div", { class: "flex items-center" }, [
|
|
47
|
+
m(
|
|
48
|
+
_.FmTooltip,
|
|
49
|
+
{
|
|
50
|
+
content: e.row.original._id,
|
|
51
|
+
onClick: (o) => {
|
|
52
|
+
o.stopPropagation(), ne(e.row.original._id);
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
[
|
|
56
|
+
m(_.FmIcon, {
|
|
57
|
+
name: "info",
|
|
58
|
+
outline: !0,
|
|
59
|
+
size: "sm"
|
|
60
|
+
})
|
|
61
|
+
]
|
|
62
|
+
)
|
|
63
|
+
]),
|
|
64
|
+
m("div", { class: "flex-1" }, e.row.original.name)
|
|
65
|
+
]);
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
header: a("connect.campaign.mission.type"),
|
|
70
|
+
accessorFn: (e) => de(e.mission.type)
|
|
71
|
+
//v.effect,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
header: a("connect.program.common.table.status"),
|
|
75
|
+
accessorFn: (e) => ee(e),
|
|
76
|
+
cell(e) {
|
|
77
|
+
return D(e.row.original);
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
header: a("connect.program.common.table.summary"),
|
|
82
|
+
accessorFn: (e) => K(e)
|
|
83
|
+
//v.effect,
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
header: a("connect.campaign.mission.received"),
|
|
87
|
+
accessorFn: (e) => {
|
|
88
|
+
var o;
|
|
89
|
+
return ((o = e == null ? void 0 : e.pf_collectible) == null ? void 0 : o.currentReceive) ?? 0;
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
header: a("connect.program.common.table.actions"),
|
|
94
|
+
cell(e) {
|
|
95
|
+
return m("div", { class: "flex items-center gap-8" }, [
|
|
96
|
+
m(_.FmButton, {
|
|
97
|
+
variant: "tertiary",
|
|
98
|
+
icon: "content_copy",
|
|
99
|
+
iconColor: "neutral-gray-400",
|
|
100
|
+
onClick: async (o) => {
|
|
101
|
+
o.stopPropagation(), await P(e.row.original);
|
|
102
|
+
}
|
|
103
|
+
}),
|
|
104
|
+
m(_.FmButton, {
|
|
105
|
+
variant: "tertiary",
|
|
106
|
+
icon: "send",
|
|
107
|
+
iconColor: "neutral-gray-400",
|
|
108
|
+
onClick: (o) => {
|
|
109
|
+
o.stopPropagation(), j(e.row.original);
|
|
110
|
+
}
|
|
111
|
+
}),
|
|
112
|
+
m(_.FmButton, {
|
|
113
|
+
variant: "tertiary",
|
|
114
|
+
icon: "delete",
|
|
115
|
+
iconColor: "neutral-gray-400",
|
|
116
|
+
onClick: (o) => {
|
|
117
|
+
o.stopPropagation(), M(e.row.original);
|
|
118
|
+
}
|
|
119
|
+
})
|
|
120
|
+
]);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
], w = v(), B = v();
|
|
124
|
+
async function M(e) {
|
|
125
|
+
await ae.remove(
|
|
126
|
+
a("connect.program.common.remove.confirm", { name: e.name })
|
|
127
|
+
) && await V(
|
|
128
|
+
async () => {
|
|
129
|
+
await y.delete(e._id), await p.read("MISSION");
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
message: a("connect.program.common.remove.removing", { name: e.name }),
|
|
133
|
+
successMessage: a("connect.program.common.remove.removed", {
|
|
134
|
+
name: e.name
|
|
135
|
+
})
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
async function h(e) {
|
|
140
|
+
e ? await o() : O.open(async (s) => {
|
|
141
|
+
await o(s);
|
|
142
|
+
});
|
|
143
|
+
async function o(s) {
|
|
144
|
+
var r;
|
|
145
|
+
(r = w.value) == null || r.showSheet(
|
|
146
|
+
!0,
|
|
147
|
+
"MISSION",
|
|
148
|
+
e ? await y.readById(e._id) : void 0,
|
|
149
|
+
s
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
async function P(e) {
|
|
154
|
+
var r;
|
|
155
|
+
if (!await oe(e.name))
|
|
156
|
+
return;
|
|
157
|
+
const o = await y.readById(e._id), s = te(o);
|
|
158
|
+
(r = w.value) == null || r.showSheet(
|
|
159
|
+
!0,
|
|
160
|
+
"MISSION",
|
|
161
|
+
s,
|
|
162
|
+
o.template
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
async function $(e) {
|
|
166
|
+
e.campaign._id && e.campaign.rewards.some((o) => o.type === "VOUCHER") && await new Promise((o) => {
|
|
167
|
+
L.open({
|
|
168
|
+
title: "Confirmation",
|
|
169
|
+
message: "This will change all future vouchers? Would you like to update previous claimed vouchers expiry date and discount?",
|
|
170
|
+
primaryActions: { text: "Update all", close: !0 },
|
|
171
|
+
secondaryActions: { text: "Update future only", close: !0 }
|
|
172
|
+
}).onPrimary(async () => {
|
|
173
|
+
var s;
|
|
174
|
+
e.updateCollections = !0, (s = window.top) == null || s.postMessage("updateAllVoucher", "*"), o();
|
|
175
|
+
}).onSecondary(async () => {
|
|
176
|
+
o();
|
|
177
|
+
});
|
|
178
|
+
}), await V(
|
|
179
|
+
async () => {
|
|
180
|
+
e.campaign._id ? await y.update(e.campaign._id, e) : await y.create(e), await p.read("MISSION");
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
message: a(
|
|
184
|
+
e.campaign._id ? "connect.program.common.update.updating" : "connect.program.common.update.creating",
|
|
185
|
+
{ type: "Mission" }
|
|
186
|
+
),
|
|
187
|
+
successMessage: a("connect.program.common.update.success", {
|
|
188
|
+
type: "Mission",
|
|
189
|
+
action: e.campaign._id ? "updated" : "created"
|
|
190
|
+
})
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
function j(e) {
|
|
195
|
+
var o;
|
|
196
|
+
(o = B.value) == null || o.showSheet({
|
|
197
|
+
campaign: e
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
return J(async () => {
|
|
201
|
+
await A(async () => {
|
|
202
|
+
await p.read("MISSION"), console.log(f);
|
|
203
|
+
});
|
|
204
|
+
}), (e, o) => {
|
|
205
|
+
const s = d("FmPageHead"), r = d("FmSearch"), E = d("FmTable"), C = d("FmButton"), H = d("FmListItem"), q = d("FmList"), z = d("FmCard");
|
|
206
|
+
return u(), S(k, null, [
|
|
207
|
+
c(s, {
|
|
208
|
+
title: t(a)("connect.campaign.mission.title"),
|
|
209
|
+
actions: t(f).length > 0 ? [N] : [],
|
|
210
|
+
"onClick:action": o[0] || (o[0] = () => h())
|
|
211
|
+
}, null, 8, ["title", "actions"]),
|
|
212
|
+
i("div", ge, [
|
|
213
|
+
c(r, {
|
|
214
|
+
modelValue: t(l).searchKey,
|
|
215
|
+
"onUpdate:modelValue": o[1] || (o[1] = (n) => t(l).searchKey = n),
|
|
216
|
+
class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
|
|
217
|
+
placeholder: t(a)("connect.program.common.search"),
|
|
218
|
+
collapsible: ""
|
|
219
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
220
|
+
t(p).campaigns.mission && t(p).campaigns.mission.length > 0 ? (u(), S(k, { key: 0 }, [
|
|
221
|
+
i("div", fe, [
|
|
222
|
+
i("div", ye, [
|
|
223
|
+
c(ce, {
|
|
224
|
+
label: `${t(a)("connect.program.common.location")}: `,
|
|
225
|
+
"right-icon": "keyboard_arrow_down",
|
|
226
|
+
modelValue: t(l).location,
|
|
227
|
+
"onUpdate:modelValue": o[2] || (o[2] = (n) => t(l).location = n),
|
|
228
|
+
icon: "storefront",
|
|
229
|
+
"show-item-label": !0,
|
|
230
|
+
items: t(R).locationOptions
|
|
231
|
+
}, null, 8, ["label", "modelValue", "items"])
|
|
232
|
+
]),
|
|
233
|
+
c(r, {
|
|
234
|
+
modelValue: t(l).searchKey,
|
|
235
|
+
"onUpdate:modelValue": o[3] || (o[3] = (n) => t(l).searchKey = n),
|
|
236
|
+
class: "xs:hidden sm:hidden",
|
|
237
|
+
placeholder: "search",
|
|
238
|
+
collapsible: ""
|
|
239
|
+
}, null, 8, ["modelValue"])
|
|
240
|
+
]),
|
|
241
|
+
c(E, {
|
|
242
|
+
class: "xs:hidden sm:hidden",
|
|
243
|
+
"row-data": t(f),
|
|
244
|
+
"column-defs": T,
|
|
245
|
+
"search-value": t(l).searchKey,
|
|
246
|
+
"column-filter": [],
|
|
247
|
+
onRowClick: o[4] || (o[4] = (n) => h(n.original)),
|
|
248
|
+
"hide-footer": t(f).length < 10
|
|
249
|
+
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
250
|
+
c(q, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
251
|
+
default: F(() => [
|
|
252
|
+
(u(!0), S(k, null, Q(t(f).filter(
|
|
253
|
+
(n) => n.name.toLowerCase().includes(t(l).searchKey.toLowerCase())
|
|
254
|
+
), (n) => (u(), I(H, {
|
|
255
|
+
key: n._id.toString(),
|
|
256
|
+
onClick: (x) => h(n),
|
|
257
|
+
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
258
|
+
}, {
|
|
259
|
+
default: F(() => {
|
|
260
|
+
var x;
|
|
261
|
+
return [
|
|
262
|
+
i("div", _e, [
|
|
263
|
+
i("div", he, [
|
|
264
|
+
(u(), I(X(t(D)(n))))
|
|
265
|
+
]),
|
|
266
|
+
i("div", we, [
|
|
267
|
+
i("div", Ce, g(n.name), 1),
|
|
268
|
+
i("div", xe, g(t(K)(n)), 1)
|
|
269
|
+
]),
|
|
270
|
+
i("div", be, g(t(a)("connect.campaign.mission.received")) + " : " + g(((x = n == null ? void 0 : n.pf_collectible) == null ? void 0 : x.currentReceive) ?? 0), 1)
|
|
271
|
+
]),
|
|
272
|
+
i("div", ve, [
|
|
273
|
+
c(C, {
|
|
274
|
+
icon: "content_copy",
|
|
275
|
+
"icon-color": "neutral-gray-400",
|
|
276
|
+
variant: "tertiary",
|
|
277
|
+
onClick: async (b) => {
|
|
278
|
+
b.stopPropagation(), await P(n);
|
|
279
|
+
}
|
|
280
|
+
}, null, 8, ["onClick"]),
|
|
281
|
+
c(C, {
|
|
282
|
+
icon: "delete",
|
|
283
|
+
"icon-color": "neutral-gray-400",
|
|
284
|
+
variant: "tertiary",
|
|
285
|
+
onClick: (b) => (b.stopPropagation(), M(n))
|
|
286
|
+
}, null, 8, ["onClick"])
|
|
287
|
+
])
|
|
288
|
+
];
|
|
289
|
+
}),
|
|
290
|
+
_: 2
|
|
291
|
+
}, 1032, ["onClick"]))), 128))
|
|
292
|
+
]),
|
|
293
|
+
_: 1
|
|
294
|
+
})
|
|
295
|
+
], 64)) : (u(), I(z, {
|
|
296
|
+
key: 1,
|
|
297
|
+
variant: "outlined",
|
|
298
|
+
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
299
|
+
}, {
|
|
300
|
+
default: F(() => [
|
|
301
|
+
o[6] || (o[6] = i("img", {
|
|
302
|
+
src: Y,
|
|
303
|
+
class: "aspect-square w-[150px]"
|
|
304
|
+
}, null, -1)),
|
|
305
|
+
i("div", Se, [
|
|
306
|
+
i("div", ke, g(t(a)("connect.campaign.mission.createProgram")), 1),
|
|
307
|
+
i("div", Fe, g(t(a)("connect.campaign.mission.description")), 1)
|
|
308
|
+
]),
|
|
309
|
+
c(C, {
|
|
310
|
+
variant: "primary",
|
|
311
|
+
label: t(a)("connect.campaign.mission.create"),
|
|
312
|
+
icon: "add",
|
|
313
|
+
onClick: o[5] || (o[5] = (n) => h())
|
|
314
|
+
}, null, 8, ["label"])
|
|
315
|
+
]),
|
|
316
|
+
_: 1
|
|
317
|
+
})),
|
|
318
|
+
c(me, {
|
|
319
|
+
ref_key: "sheetRef",
|
|
320
|
+
ref: w,
|
|
321
|
+
"onSubmit:modelValue": $
|
|
322
|
+
}, null, 512),
|
|
323
|
+
c(ue, {
|
|
324
|
+
ref_key: "sendCollectionSheetRef",
|
|
325
|
+
ref: B
|
|
326
|
+
}, null, 512)
|
|
327
|
+
])
|
|
328
|
+
], 64);
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
export {
|
|
333
|
+
Ee as default
|
|
334
|
+
};
|
|
@@ -1,29 +1,29 @@
|
|
|
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 {
|
|
3
|
+
import { u as Z } from "./vue-i18n-B2srUL0h.js";
|
|
4
|
+
import { u as ue } from "./loading-BUAN8WyV.js";
|
|
5
|
+
import { p as K } from "./plugins-BR4hQ6yY.js";
|
|
6
6
|
import { J as X } from "./JsonViewer-v8_C7l5N.js";
|
|
7
|
-
import { Z as N } from "./zod-
|
|
7
|
+
import { Z as N } from "./zod-CO0ds3MB.js";
|
|
8
8
|
import { u as W } from "./app-wDQR6dpb.js";
|
|
9
|
-
import { u as Q, _ as
|
|
10
|
-
import { u as me } from "./reward-
|
|
11
|
-
import { a as
|
|
12
|
-
import {
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./
|
|
17
|
-
import {
|
|
18
|
-
import { t as ee } from "./helper-Bg4xoFbh.js";
|
|
9
|
+
import { u as Q, _ as we } from "./RewardGroup.vue_vue_type_script_setup_true_lang-cGyeUFlK.js";
|
|
10
|
+
import { u as me } from "./reward-DWwwkcS3.js";
|
|
11
|
+
import { a as ye, b as be } from "./index-DoupH575.js";
|
|
12
|
+
import { m as le, c as se } from "./index-B_-tEYD0.js";
|
|
13
|
+
import "./index-KC-9_cY4.js";
|
|
14
|
+
import "./index-DPmqQmoC.js";
|
|
15
|
+
import "./index-DpXwZYX4.js";
|
|
16
|
+
import { C as fe } from "./membership-CZkPkDiM.js";
|
|
17
|
+
import { t as ee } from "./helper-1sIKNm6C.js";
|
|
19
18
|
import { c as H } from "./object-qECH92oz.js";
|
|
20
|
-
import { useDialog as
|
|
21
|
-
import { _ as
|
|
22
|
-
import { a as
|
|
23
|
-
import { O as
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
|
|
19
|
+
import { useDialog as xe, components as oe } from "@feedmepos/ui-library";
|
|
20
|
+
import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-W-qWPW20.js";
|
|
21
|
+
import { a as Re, _ as Se, b as Fe } from "./trigger-B9pWO76n.js";
|
|
22
|
+
import { O as ke } from "./objectid-DL2GZe9v.js";
|
|
23
|
+
import { c as $e } from "./string-Gcy5IM_H.js";
|
|
24
|
+
import { r as pe } from "./index-Gr5htFUW.js";
|
|
25
|
+
import { u as Pe } from "./business-BZG7VHN8.js";
|
|
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: {
|
|
29
29
|
rewardGroup: {
|
|
@@ -107,7 +107,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
107
107
|
__name: "EditReferralCountSheet",
|
|
108
108
|
emits: ["update"],
|
|
109
109
|
setup(k, { expose: l, emit: I }) {
|
|
110
|
-
const { t: p } = Z(), g = I, f = F(!1), s = F({}), u = F(-1), m = F(-1), R = Q(), A =
|
|
110
|
+
const { t: p } = Z(), g = I, f = F(!1), s = F({}), u = F(-1), m = F(-1), R = Q(), A = ye.superRefine((e, t) => {
|
|
111
111
|
var $, U, P, x, v, E, ae;
|
|
112
112
|
const d = m.value == -1 ? ((P = (U = ($ = R.referralProgram) == null ? void 0 : $.reward[u.value]) == null ? void 0 : U.rewards) == null ? void 0 : P.length) || 0 : m.value, _ = (v = (x = R.referralProgram) == null ? void 0 : x.reward[u.value]) == null ? void 0 : v.rewards[d - 1], b = (ae = (E = R.referralProgram) == null ? void 0 : E.reward[u.value]) == null ? void 0 : ae.rewards[d + 1];
|
|
113
113
|
_ && e.threshold.from < _.threshold.from + 1 && t.addIssue({
|
|
@@ -316,7 +316,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
316
316
|
const I = k, p = l, g = G(() => [
|
|
317
317
|
le.enum.BILL_COMPLETED,
|
|
318
318
|
le.enum.FEEDBACK
|
|
319
|
-
].map((f) =>
|
|
319
|
+
].map((f) => Re[f]));
|
|
320
320
|
return (f, s) => {
|
|
321
321
|
const u = w("FmCard");
|
|
322
322
|
return C(), B("div", Ke, [
|
|
@@ -355,7 +355,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
355
355
|
__name: "EditCriteriaSheet",
|
|
356
356
|
emits: ["update"],
|
|
357
357
|
setup(k, { expose: l, emit: I }) {
|
|
358
|
-
const { t: p } = Z(), g = I, f = F(!1), s = F(-1), u = F({}), m = Q(), R =
|
|
358
|
+
const { t: p } = Z(), g = I, f = F(!1), s = F(-1), u = F({}), m = Q(), R = be.superRefine((y, n) => {
|
|
359
359
|
y.name.length >= 50 && n.addIssue({
|
|
360
360
|
code: "custom",
|
|
361
361
|
message: "Name must be less than 50 characters"
|
|
@@ -372,7 +372,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
372
372
|
f.value = y, y && typeof n == "number" && n >= 0 ? (s.value = n, u.value = H(
|
|
373
373
|
(o = m.referralProgram) == null ? void 0 : o.criteria[n]
|
|
374
374
|
)) : (s.value = -1, u.value = {
|
|
375
|
-
_id: new
|
|
375
|
+
_id: new ke().toString(),
|
|
376
376
|
name: "",
|
|
377
377
|
type: "AUTO",
|
|
378
378
|
event: { type: "BILL_COMPLETED" }
|
|
@@ -406,7 +406,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
406
406
|
variant: "tertiary",
|
|
407
407
|
onClick: n[0] || (n[0] = (e) => T(!1))
|
|
408
408
|
}),
|
|
409
|
-
n[7] || (n[7] = ce("Add Criteria "))
|
|
409
|
+
n[7] || (n[7] = ce("Add Criteria ", -1))
|
|
410
410
|
])
|
|
411
411
|
]),
|
|
412
412
|
"side-sheet-footer": V(() => [
|
|
@@ -428,7 +428,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
428
428
|
c(X, { json: r(u) }, null, 8, ["json"]),
|
|
429
429
|
a("div", er, [
|
|
430
430
|
n[12] || (n[12] = a("div", { class: "fm-typo-en-title-sm-600" }, "Program Criteria", -1)),
|
|
431
|
-
c(
|
|
431
|
+
c(Ce, {
|
|
432
432
|
modelValue: r(u).name,
|
|
433
433
|
"onUpdate:modelValue": n[1] || (n[1] = (e) => r(u).name = e),
|
|
434
434
|
label: r(p)("connect.referral.editReferralTierSheet.name"),
|
|
@@ -463,14 +463,14 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
463
463
|
}, null, 8, ["model-value"]),
|
|
464
464
|
r(u).event.type == r(se).enum.BILL_COMPLETED ? (C(), B("div", rr, [
|
|
465
465
|
n[8] || (n[8] = a("div", { class: "fm-typo-en-title-sm-600" }, "Spending Criteria", -1)),
|
|
466
|
-
c(
|
|
466
|
+
c(Se, {
|
|
467
467
|
"model-value": r(u).event.rule,
|
|
468
468
|
"onUpdate:modelValue": n[3] || (n[3] = (e) => r(u).event.rule = e)
|
|
469
469
|
}, null, 8, ["model-value"])
|
|
470
470
|
])) : z("", !0),
|
|
471
471
|
r(u).event.type == r(se).enum.FEEDBACK ? (C(), B("div", tr, [
|
|
472
472
|
n[9] || (n[9] = a("div", { class: "fm-typo-en-title-sm-600" }, "Feedback Criteria", -1)),
|
|
473
|
-
c(
|
|
473
|
+
c(Fe, {
|
|
474
474
|
"model-value": r(u).event.rule,
|
|
475
475
|
"onUpdate:modelValue": n[4] || (n[4] = (e) => r(u).event.rule = e)
|
|
476
476
|
}, null, 8, ["model-value"])
|
|
@@ -484,7 +484,7 @@ const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie =
|
|
|
484
484
|
}
|
|
485
485
|
});
|
|
486
486
|
function he() {
|
|
487
|
-
const k = F(!1), l =
|
|
487
|
+
const k = F(!1), l = xe();
|
|
488
488
|
return {
|
|
489
489
|
confirmUpdateReferralRecord: async () => {
|
|
490
490
|
await new Promise((p) => {
|
|
@@ -546,7 +546,7 @@ const nr = { class: "flex flex-col space-y-16 mt-24" }, lr = { class: "flex just
|
|
|
546
546
|
header: "Validity method",
|
|
547
547
|
cell(o) {
|
|
548
548
|
return te(oe.FmChip, {
|
|
549
|
-
label:
|
|
549
|
+
label: $e.title(o.row.original.type),
|
|
550
550
|
variant: "plain"
|
|
551
551
|
});
|
|
552
552
|
}
|
|
@@ -961,8 +961,8 @@ const nr = { class: "flex flex-col space-y-16 mt-24" }, lr = { class: "flex just
|
|
|
961
961
|
outline: !0
|
|
962
962
|
})
|
|
963
963
|
]),
|
|
964
|
-
_:
|
|
965
|
-
},
|
|
964
|
+
_: 1
|
|
965
|
+
}, 8, ["content"])) : z("", !0)
|
|
966
966
|
]),
|
|
967
967
|
a("div", vr, O(x.sublabel), 1),
|
|
968
968
|
x.action ? (C(), j($, {
|
|
@@ -1052,7 +1052,7 @@ const nr = { class: "flex flex-col space-y-16 mt-24" }, lr = { class: "flex just
|
|
|
1052
1052
|
]),
|
|
1053
1053
|
_: 1
|
|
1054
1054
|
})),
|
|
1055
|
-
c(
|
|
1055
|
+
c(we, {
|
|
1056
1056
|
ref_key: "rewardGroupRef",
|
|
1057
1057
|
ref: m
|
|
1058
1058
|
}, null, 512),
|