@feedmepos/mf-connect 0.1.98-beta.4 → 0.1.98-beta.41
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/{App-BGv_JihW.js → App-C6JJ9uQ8.js} +808 -665
- package/dist/{AuditLogs-53rnjCmD.js → AuditLogs-CAlgtDgx.js} +12 -11
- package/dist/{Bin-B0Q_WpuY.js → Bin-D8jwhwER.js} +8 -8
- package/dist/{Broadcast-PiJE1Syl.js → Broadcast-CP8DRfkT.js} +39 -36
- package/dist/CampaignAnalytic-MVjYBFvu.js +1826 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Dz2KsBZl.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DeLURz87.js} +7 -5
- package/dist/{Card-DlqMu3Sl.js → Card-QribXJwZ.js} +21 -20
- package/dist/{Collections-BWcBlDDR.js → Collections-X9xbt43V.js} +14 -13
- package/dist/Credit-QmbsW1eb.js +286 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DCvH0lGA.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-ClNieHSo.js} +35 -30
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-B_FyeWq4.js → EffectSheet.vue_vue_type_style_index_0_lang-CrGHTNhg.js} +16 -16
- package/dist/{Experience-DacFmPYy.js → Experience-CPGMg847.js} +112 -86
- package/dist/{FileSaver.min-CMZKiGkX.js → FileSaver.min-CK67LsPG.js} +1 -1
- package/dist/Game-BrkiEFCS.js +356 -0
- package/dist/GiftCardSetup-DXNBHF1A.js +542 -0
- package/dist/{Grab-DaBL5y3H.js → Grab-BgtDzK1B.js} +32 -31
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BaY_nQio.js → ImageInput.vue_vue_type_script_setup_true_lang-Dzv2AkKN.js} +1 -1
- package/dist/{Index-2UrjF35w.js → Index-KJgzalOd.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BuVBZsCN.js → LocationPicker.vue_vue_type_script_setup_true_lang-C6SBLJGQ.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-6wUxYqWe.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Dj74lJ7b.js} +1 -1
- package/dist/LoyaltyDashboard-B2JpbC01.js +1345 -0
- package/dist/MainLayout-DlfTKHQ-.js +143 -0
- package/dist/{Marketing-DEp--hFd.js → Marketing-Crx_JQpi.js} +7 -6
- package/dist/{MarketingMaterialEdit-BHL8Ptsu.js → MarketingMaterialEdit-BfsdcMXJ.js} +15 -14
- package/dist/{Member-BU1YxoEV.js → Member-C50Nrsko.js} +14 -13
- package/dist/{MemberList-zjvJBYf0.js → MemberList-C9uUKw1o.js} +37 -35
- package/dist/{MemberTransactions-BvyLV69V.js → MemberTransactions-DZ7zPOHX.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-_YOM1SlS.js → MessageInput.vue_vue_type_script_setup_true_lang-Du_ZGsbX.js} +5434 -5279
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Bg_0YlwG.js +38 -0
- package/dist/Mission-D_km8zi6.js +360 -0
- package/dist/{Overview-BToUlbsH.js → Overview-BBieK6qQ.js} +21 -20
- package/dist/Overview-B_kmLOcc.js +1316 -0
- package/dist/Point-D0q9N7f9.js +288 -0
- package/dist/Promotion-DoFTy-NK.js +423 -0
- package/dist/{Queue-D3vUkKN9.js → Queue-Dh5sDRHW.js} +13 -12
- package/dist/{Record-BViEbZZ8.js → Record-0owEBKqN.js} +9 -9
- package/dist/Review-DV2fnpOH.js +45 -0
- package/dist/ReviewFacebookCallback-D8mnAPzR.js +238 -0
- package/dist/ReviewGoogleCallback-CLzt_ox2.js +213 -0
- package/dist/{Reward-CZsvsYW_.js → Reward-Co20Xrss.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BASPLoRa.js → RewardGroup.vue_vue_type_script_setup_true_lang-0qU49c47.js} +14 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-B90meAnV.js → RuleGroup.vue_vue_type_script_setup_true_lang-qdvaXPhJ.js} +17 -15
- package/dist/{Segment-CN8NEg8w.js → Segment-7dQKeHWK.js} +38 -35
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BGyYQST4.js → SelectItems.vue_vue_type_script_setup_true_lang-BUVrUifO.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BxW-Kc6t.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DDsV9TD9.js} +37 -36
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-C9dwcEr5.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DqPZpddc.js} +4 -4
- package/dist/{Setting-DLPbZW11.js → Setting-Bvahxs-y.js} +14 -14
- package/dist/{SettingAdvertisements-BIq8gS5g.js → SettingAdvertisements-fbXLRwfb.js} +12 -12
- package/dist/Settings-C_HWDFN8.js +179 -0
- package/dist/Store-8yBKDR1b.js +2413 -0
- package/dist/{StoreRewards-BoEjVFk6.js → StoreRewards-DKaJvoJs.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Bv9ABH1K.js → StoreTransactions.vue_vue_type_script_setup_true_lang-D23XzJD7.js} +400 -455
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DNHgSfIg.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-JaFhCK_L.js} +2 -2
- package/dist/{Tier-kQ6X9h-t.js → Tier-CD-CjXC3.js} +44 -41
- package/dist/{Title-XosVAF2Y.js → Title-C_lcgye8.js} +49 -46
- package/dist/{Transaction-CO6oLPKR.js → Transaction-BvUYm-rT.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-McMR2Y7Y.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C3Yacz7K.js} +6 -6
- package/dist/{Voucher-CogaCxx2.js → Voucher-CYaG0GLU.js} +156 -133
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DjHwHFBq.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DF2JqzRe.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Dor9klZ8.js → ZodTextField.vue_vue_type_script_setup_true_lang-B4UPqSNc.js} +2 -2
- package/dist/{app-C9UPXbDs.js → app-CE5hQ4Uq.js} +6656 -5653
- package/dist/app.js +1 -1
- package/dist/{business-CYpW6-Ls.js → business-CE_4siXc.js} +1 -1
- package/dist/{campaign-BtLa7KeF.js → campaign-BP6rvSpg.js} +74 -96
- package/dist/campaign-CXQtKpeb.js +100 -0
- package/dist/{campaign.enum-DiLhS5il.js → campaign.enum-Dx-Zo68Q.js} +1 -1
- package/dist/{campaign.fn-CLB9gBHo.js → campaign.fn-DKnBpE1N.js} +119 -119
- package/dist/{collectible.enum-CmwWcfBh.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/collection.fn-Cg16QZSp.js +26 -0
- package/dist/{duplicateCampaign-DGhOBd5l.js → duplicateCampaign-DbtVAGsT.js} +2 -2
- package/dist/{effect-CY5Y6sxy.js → effect-CLI8NI4O.js} +1 -1
- package/dist/{email-addresses-BEnOHWj_.js → email-addresses-DlLiZ1io.js} +2 -2
- package/dist/{export-BgYu7SCd.js → export-6Hr34dBU.js} +3 -3
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-DTDgoyEh.js → helper-vkjFqj70.js} +1 -1
- package/dist/index-BIyKgw4m.js +72 -0
- package/dist/{index-C8ehLvXG.js → index-BLQJ-rv3.js} +1 -1
- package/dist/{index-CP-7qATP.js → index-BbTIqReL.js} +1 -1
- package/dist/index-BuMfQxMf.js +897 -0
- package/dist/index-C8cXXcLk.js +45 -0
- package/dist/{index-kS20rM5m.js → index-CSVhIZSY.js} +589 -580
- package/dist/{index-zF0gIg9H.js → index-CVHacTbc.js} +1 -1
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-goRooQn5.js → index-CmNsGhDf.js} +272 -368
- package/dist/index-CnTeeRyJ.js +53 -0
- package/dist/{index-Ck3PeOQ5.js → index-CzbNobLv.js} +105 -123
- package/dist/index-D06n1h1b.js +146 -0
- package/dist/{index-CNKP1_IW.js → index-D4SDAfbP.js} +8027 -10766
- package/dist/{index-DntoqWT_.js → index-DVnYQ3Hs.js} +1 -1
- package/dist/{index-BZVhi3ZG.js → index-DcjnS5Sv.js} +2 -2
- package/dist/{index-DtyWsBgg.js → index-Dx9h0FNH.js} +1 -1
- package/dist/{index-CDk0Itu1.js → index-YgP4ihQL.js} +1 -1
- package/dist/{index-B4IAURA_.js → index-kedErkLZ.js} +1759 -2480
- package/dist/{index-CLZnH782.js → index-lnQT4P3d.js} +10 -9
- package/dist/{index.esm2017-C79fd6cz.js → index.esm2017-Jhv2lkrq.js} +105 -105
- package/dist/{loading-Dfr_97Ri.js → loading-NY-FPxVY.js} +1 -1
- package/dist/{lodash-BX2mJOxF.js → lodash-BC_P6kLg.js} +1 -1
- package/dist/{membership-ncNOUJwj.js → membership-BWaK-9FY.js} +3 -3
- package/dist/{money-vEtTzt04.js → money-COoh4GXK.js} +1 -1
- package/dist/{number-BjgTlMsp.js → number-BX5OEXgq.js} +1 -1
- package/dist/objectid-1SUSRtmY.js +145 -0
- package/dist/{plugins-BVGqEmE1.js → plugins-ur-FAoye.js} +3 -3
- package/dist/remy-Qz_pNsUS.js +13 -0
- package/dist/{reward-BGTLhhzT.js → reward-DSsylZ22.js} +1 -1
- package/dist/{rule-BB2VX3Gy.js → rule-BM9GUd1C.js} +3 -3
- package/dist/rule-builder-gC9LH2AC.js +126 -0
- package/dist/{template-DLiHnpjK.js → template-CUV3AMFI.js} +6 -6
- package/dist/timezone-BFZhekOU.js +20 -0
- package/dist/transaction.fn-C5MlkEIC.js +64 -0
- package/dist/{trigger-DrKnfSoi.js → trigger-CbjiuoSo.js} +14 -14
- package/dist/useMarketingMaterialActions-BLisTieA.js +96 -0
- package/dist/{usePagination-Dgd-onzU.js → usePagination-Caah4sJr.js} +1 -1
- package/dist/{user-BcDUmNrZ.js → user-BZC4P_jL.js} +1 -1
- package/dist/{vue-i18n-DNBGmwox.js → vue-i18n-BYz7XAr_.js} +390 -390
- package/dist/{xlsx-BX-U0_Au.js → xlsx-Bn7BqUFA.js} +1 -1
- package/dist/{zod-Mx51GBPY.js → zod-DHH42rXG.js} +1 -1
- package/package.json +3 -3
- package/dist/Credit-CMfcuj5n.js +0 -260
- package/dist/Game-DXKnGuhR.js +0 -330
- package/dist/LoyaltyDashboard-DIArPp71.js +0 -1082
- package/dist/MainLayout-BjvTxTPG.js +0 -41
- package/dist/Mission-BNYk_aPM.js +0 -334
- package/dist/Point-B-L2326L.js +0 -262
- package/dist/Promotion-sMKGkL4w.js +0 -397
- package/dist/Review-CMBAk-Qu.js +0 -1067
- package/dist/ReviewFacebookCallback-BCJTFy3b.js +0 -243
- package/dist/ReviewGoogleCallback-DKUG075r.js +0 -208
- package/dist/Store-DNB3gUIR.js +0 -1996
- package/dist/campaign-CtoHyXVT.js +0 -219
- package/dist/index-P8Qh2yIP.js +0 -52
- package/dist/objectid-C9DiLwge.js +0 -145
- package/dist/useMarketingMaterialActions-B6zaDbNE.js +0 -107
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as i, resolveComponent as e, openBlock as c, createBlock as p, withCtx as s, createElementVNode as l, withModifiers as a, createVNode as m } from "vue";
|
|
2
|
+
const u = /* @__PURE__ */ i({
|
|
3
|
+
__name: "MetricInfoTooltip",
|
|
4
|
+
props: {
|
|
5
|
+
description: {}
|
|
6
|
+
},
|
|
7
|
+
setup(o) {
|
|
8
|
+
return (f, t) => {
|
|
9
|
+
const n = e("FmIcon"), r = e("FmTooltip");
|
|
10
|
+
return c(), p(r, {
|
|
11
|
+
variant: "plain",
|
|
12
|
+
placement: "left",
|
|
13
|
+
content: o.description
|
|
14
|
+
}, {
|
|
15
|
+
default: s(() => [
|
|
16
|
+
l("button", {
|
|
17
|
+
type: "button",
|
|
18
|
+
"aria-label": "Metric information",
|
|
19
|
+
onClick: t[0] || (t[0] = a(() => {
|
|
20
|
+
}, ["stop"])),
|
|
21
|
+
class: "inline-flex h-[20px] w-[20px] flex-shrink-0 cursor-help items-center justify-center border-0 bg-transparent p-0"
|
|
22
|
+
}, [
|
|
23
|
+
m(n, {
|
|
24
|
+
name: "info",
|
|
25
|
+
outline: "",
|
|
26
|
+
size: "xs",
|
|
27
|
+
class: "!text-fm-color-typo-tertiary"
|
|
28
|
+
})
|
|
29
|
+
])
|
|
30
|
+
]),
|
|
31
|
+
_: 1
|
|
32
|
+
}, 8, ["content"]);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
u as _
|
|
38
|
+
};
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import { defineComponent as Y, ref as v, computed as J, h as l, onMounted as Q, resolveComponent as d, openBlock as u, createElementBlock as S, Fragment as k, createVNode as r, unref as t, createElementVNode as i, withCtx as F, renderList as X, createBlock as I, resolveDynamicComponent as Z, toDisplayString as g } from "vue";
|
|
2
|
+
import { _ as ee } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { u as oe } from "./loading-NY-FPxVY.js";
|
|
4
|
+
import { a as te, b as A, c as N } from "./campaign-BP6rvSpg.js";
|
|
5
|
+
import { c as ne, p as ae } from "./duplicateCampaign-DbtVAGsT.js";
|
|
6
|
+
import { c as ie, p as se } from "./plugins-ur-FAoye.js";
|
|
7
|
+
import { u as re } from "./business-CE_4siXc.js";
|
|
8
|
+
import { u as ce } from "./campaign-CXQtKpeb.js";
|
|
9
|
+
import { useDialog as le, components as f } from "@feedmepos/ui-library";
|
|
10
|
+
import { _ as me } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
11
|
+
import { u as de } from "./template-CUV3AMFI.js";
|
|
12
|
+
import { _ as pe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-ClNieHSo.js";
|
|
13
|
+
import { s as ue } from "./index-CuvNtC_M.js";
|
|
14
|
+
import { u as ge } from "./vue-i18n-BYz7XAr_.js";
|
|
15
|
+
import { _ as fe } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-DDsV9TD9.js";
|
|
16
|
+
import "./index-Dx9h0FNH.js";
|
|
17
|
+
import { useRouter as ye } from "vue-router";
|
|
18
|
+
import { c as h } from "./index-D06n1h1b.js";
|
|
19
|
+
import { R as _e } from "./app-CE5hQ4Uq.js";
|
|
20
|
+
const he = { class: "px-24 flex flex-col gap-y-16" }, we = { class: "flex items-center justify-between w-full" }, Ce = { class: "flex gap-8 overflow-x-auto" }, xe = { class: "space-y-8" }, be = { class: "flex w-full gap-4 items-center" }, ve = { class: "space-y-4" }, Se = { class: "fm-typo-en-body-lg-600" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ie = { class: "flex items-center gap-8" }, Me = { class: "flex flex-col gap-16 text-center" }, Le = { class: "fm-typo-en-title-sm-800" }, Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe = /* @__PURE__ */ Y({
|
|
21
|
+
__name: "Mission",
|
|
22
|
+
setup(Ve) {
|
|
23
|
+
const { t: a } = ge(), O = ye(), D = {
|
|
24
|
+
label: a("connect.program.common.actions.create", {
|
|
25
|
+
type: a("connect.program.mission.title").toLowerCase()
|
|
26
|
+
}),
|
|
27
|
+
value: "create",
|
|
28
|
+
isPrimary: !0,
|
|
29
|
+
prependIcon: "add"
|
|
30
|
+
}, M = le(), K = de("MISSION", M), T = re(), p = ce(), { global: U, minor: L } = oe, m = v({
|
|
31
|
+
searchKey: "",
|
|
32
|
+
location: []
|
|
33
|
+
});
|
|
34
|
+
function $(e) {
|
|
35
|
+
const o = m.value.location;
|
|
36
|
+
return !o || o.length === 0 || !e.targetLocation ? !0 : Array.isArray(o) ? o.some((s) => {
|
|
37
|
+
var c;
|
|
38
|
+
return (c = e == null ? void 0 : e.targetLocation) == null ? void 0 : c.includes(s);
|
|
39
|
+
}) : e.targetLocation.includes(o);
|
|
40
|
+
}
|
|
41
|
+
const y = J(
|
|
42
|
+
() => p.campaigns.mission.filter((e) => $(e))
|
|
43
|
+
), E = [
|
|
44
|
+
{
|
|
45
|
+
header: a("connect.program.common.table.title"),
|
|
46
|
+
accessorKey: "name",
|
|
47
|
+
// accessorFn: (v) => v.name,
|
|
48
|
+
cell(e) {
|
|
49
|
+
return l("div", { class: "flex items-center justify-between gap-4" }, [
|
|
50
|
+
l("div", { class: "flex items-center" }, [
|
|
51
|
+
l(
|
|
52
|
+
f.FmTooltip,
|
|
53
|
+
{
|
|
54
|
+
content: e.row.original._id,
|
|
55
|
+
onClick: (o) => {
|
|
56
|
+
o.stopPropagation(), ie(e.row.original._id);
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
[
|
|
60
|
+
l(f.FmIcon, {
|
|
61
|
+
name: "info",
|
|
62
|
+
outline: !0,
|
|
63
|
+
size: "sm"
|
|
64
|
+
})
|
|
65
|
+
]
|
|
66
|
+
)
|
|
67
|
+
]),
|
|
68
|
+
l("div", { class: "flex-1" }, e.row.original.name)
|
|
69
|
+
]);
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
header: a("connect.campaign.mission.type"),
|
|
74
|
+
accessorFn: (e) => ue(e.mission.type)
|
|
75
|
+
//v.effect,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
header: a("connect.program.common.table.status"),
|
|
79
|
+
accessorFn: (e) => te(e),
|
|
80
|
+
cell(e) {
|
|
81
|
+
return A(e.row.original);
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
header: a("connect.program.common.table.summary"),
|
|
86
|
+
accessorFn: (e) => N(e)
|
|
87
|
+
//v.effect,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
header: a("connect.campaign.mission.received"),
|
|
91
|
+
accessorFn: (e) => {
|
|
92
|
+
var o;
|
|
93
|
+
return ((o = e == null ? void 0 : e.pf_collectible) == null ? void 0 : o.currentReceive) ?? 0;
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
header: a("connect.program.common.table.actions"),
|
|
98
|
+
cell(e) {
|
|
99
|
+
return l("div", { class: "flex items-center gap-8" }, [
|
|
100
|
+
l(f.FmButton, {
|
|
101
|
+
variant: "tertiary",
|
|
102
|
+
icon: "insights",
|
|
103
|
+
iconColor: "neutral-gray-400",
|
|
104
|
+
onClick: async (o) => {
|
|
105
|
+
o.stopPropagation(), await R(e.row.original);
|
|
106
|
+
}
|
|
107
|
+
}),
|
|
108
|
+
l(f.FmButton, {
|
|
109
|
+
variant: "tertiary",
|
|
110
|
+
icon: "content_copy",
|
|
111
|
+
iconColor: "neutral-gray-400",
|
|
112
|
+
onClick: async (o) => {
|
|
113
|
+
o.stopPropagation(), await B(e.row.original);
|
|
114
|
+
}
|
|
115
|
+
}),
|
|
116
|
+
l(f.FmButton, {
|
|
117
|
+
variant: "tertiary",
|
|
118
|
+
icon: "send",
|
|
119
|
+
iconColor: "neutral-gray-400",
|
|
120
|
+
onClick: (o) => {
|
|
121
|
+
o.stopPropagation(), H(e.row.original);
|
|
122
|
+
}
|
|
123
|
+
}),
|
|
124
|
+
l(f.FmButton, {
|
|
125
|
+
variant: "tertiary",
|
|
126
|
+
icon: "delete",
|
|
127
|
+
iconColor: "neutral-gray-400",
|
|
128
|
+
onClick: (o) => {
|
|
129
|
+
o.stopPropagation(), V(e.row.original);
|
|
130
|
+
}
|
|
131
|
+
})
|
|
132
|
+
]);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
], x = v(), P = v();
|
|
136
|
+
async function V(e) {
|
|
137
|
+
await se.remove(
|
|
138
|
+
a("connect.program.common.remove.confirm", { name: e.name })
|
|
139
|
+
) && await L(
|
|
140
|
+
async () => {
|
|
141
|
+
await h.delete(e._id), await p.read("MISSION");
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
message: a("connect.program.common.remove.removing", { name: e.name }),
|
|
145
|
+
successMessage: a("connect.program.common.remove.removed", {
|
|
146
|
+
name: e.name
|
|
147
|
+
})
|
|
148
|
+
}
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
async function w(e) {
|
|
152
|
+
e ? await o() : K.open(async (s) => {
|
|
153
|
+
await o(s);
|
|
154
|
+
});
|
|
155
|
+
async function o(s) {
|
|
156
|
+
var c;
|
|
157
|
+
(c = x.value) == null || c.showSheet(
|
|
158
|
+
!0,
|
|
159
|
+
"MISSION",
|
|
160
|
+
e ? await h.readById(e._id) : void 0,
|
|
161
|
+
s
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
async function B(e) {
|
|
166
|
+
var c;
|
|
167
|
+
if (!await ne(e.name))
|
|
168
|
+
return;
|
|
169
|
+
const o = await h.readById(e._id), s = ae(o);
|
|
170
|
+
(c = x.value) == null || c.showSheet(
|
|
171
|
+
!0,
|
|
172
|
+
"MISSION",
|
|
173
|
+
s,
|
|
174
|
+
o.template
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
async function j(e) {
|
|
178
|
+
e.campaign._id && e.campaign.rewards.some((o) => o.type === "VOUCHER") && await new Promise((o) => {
|
|
179
|
+
M.open({
|
|
180
|
+
title: "Confirmation",
|
|
181
|
+
message: "This will change all future vouchers? Would you like to update previous claimed vouchers expiry date and discount?",
|
|
182
|
+
primaryActions: { text: "Update all", close: !0 },
|
|
183
|
+
secondaryActions: { text: "Update future only", close: !0 }
|
|
184
|
+
}).onPrimary(async () => {
|
|
185
|
+
var s;
|
|
186
|
+
e.updateCollections = !0, (s = window.top) == null || s.postMessage("updateAllVoucher", "*"), o();
|
|
187
|
+
}).onSecondary(async () => {
|
|
188
|
+
o();
|
|
189
|
+
});
|
|
190
|
+
}), await L(
|
|
191
|
+
async () => {
|
|
192
|
+
e.campaign._id ? await h.update(e.campaign._id, e) : await h.create(e), await p.read("MISSION");
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
message: a(
|
|
196
|
+
e.campaign._id ? "connect.program.common.update.updating" : "connect.program.common.update.creating",
|
|
197
|
+
{ type: "Mission" }
|
|
198
|
+
),
|
|
199
|
+
successMessage: a("connect.program.common.update.success", {
|
|
200
|
+
type: "Mission",
|
|
201
|
+
action: e.campaign._id ? "updated" : "created"
|
|
202
|
+
})
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
function H(e) {
|
|
207
|
+
var o;
|
|
208
|
+
(o = P.value) == null || o.showSheet({
|
|
209
|
+
campaign: e
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
async function R(e) {
|
|
213
|
+
await O.push({
|
|
214
|
+
name: _e["$connect-PROGRAM_MISSION_ANALYTIC"],
|
|
215
|
+
params: { id: e._id }
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
return Q(async () => {
|
|
219
|
+
await U(async () => {
|
|
220
|
+
await p.read("MISSION"), console.log(y);
|
|
221
|
+
});
|
|
222
|
+
}), (e, o) => {
|
|
223
|
+
const s = d("FmPageHead"), c = d("FmSearch"), q = d("FmTable"), C = d("FmButton"), z = d("FmListItem"), G = d("FmList"), W = d("FmCard");
|
|
224
|
+
return u(), S(k, null, [
|
|
225
|
+
r(s, {
|
|
226
|
+
title: t(a)("connect.campaign.mission.title"),
|
|
227
|
+
actions: t(y).length > 0 ? [D] : [],
|
|
228
|
+
"onClick:action": o[0] || (o[0] = () => w())
|
|
229
|
+
}, null, 8, ["title", "actions"]),
|
|
230
|
+
i("div", he, [
|
|
231
|
+
r(c, {
|
|
232
|
+
modelValue: t(m).searchKey,
|
|
233
|
+
"onUpdate:modelValue": o[1] || (o[1] = (n) => t(m).searchKey = n),
|
|
234
|
+
class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
|
|
235
|
+
placeholder: t(a)("connect.program.common.search"),
|
|
236
|
+
collapsible: ""
|
|
237
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
238
|
+
t(p).campaigns.mission && t(p).campaigns.mission.length > 0 ? (u(), S(k, { key: 0 }, [
|
|
239
|
+
i("div", we, [
|
|
240
|
+
i("div", Ce, [
|
|
241
|
+
r(me, {
|
|
242
|
+
label: `${t(a)("connect.program.common.location")}: `,
|
|
243
|
+
"right-icon": "keyboard_arrow_down",
|
|
244
|
+
modelValue: t(m).location,
|
|
245
|
+
"onUpdate:modelValue": o[2] || (o[2] = (n) => t(m).location = n),
|
|
246
|
+
icon: "storefront",
|
|
247
|
+
"show-item-label": !0,
|
|
248
|
+
items: t(T).locationOptions
|
|
249
|
+
}, null, 8, ["label", "modelValue", "items"])
|
|
250
|
+
]),
|
|
251
|
+
r(c, {
|
|
252
|
+
modelValue: t(m).searchKey,
|
|
253
|
+
"onUpdate:modelValue": o[3] || (o[3] = (n) => t(m).searchKey = n),
|
|
254
|
+
class: "xs:hidden sm:hidden",
|
|
255
|
+
placeholder: "search",
|
|
256
|
+
collapsible: ""
|
|
257
|
+
}, null, 8, ["modelValue"])
|
|
258
|
+
]),
|
|
259
|
+
r(q, {
|
|
260
|
+
class: "xs:hidden sm:hidden",
|
|
261
|
+
"row-data": t(y),
|
|
262
|
+
"column-defs": E,
|
|
263
|
+
"search-value": t(m).searchKey,
|
|
264
|
+
"column-filter": [],
|
|
265
|
+
onRowClick: o[4] || (o[4] = (n) => w(n.original)),
|
|
266
|
+
"hide-footer": t(y).length < 10
|
|
267
|
+
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
268
|
+
r(G, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
269
|
+
default: F(() => [
|
|
270
|
+
(u(!0), S(k, null, X(t(y).filter(
|
|
271
|
+
(n) => n.name.toLowerCase().includes(t(m).searchKey.toLowerCase())
|
|
272
|
+
), (n) => (u(), I(z, {
|
|
273
|
+
key: n._id.toString(),
|
|
274
|
+
onClick: (b) => w(n),
|
|
275
|
+
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
276
|
+
}, {
|
|
277
|
+
default: F(() => {
|
|
278
|
+
var b;
|
|
279
|
+
return [
|
|
280
|
+
i("div", xe, [
|
|
281
|
+
i("div", be, [
|
|
282
|
+
(u(), I(Z(t(A)(n))))
|
|
283
|
+
]),
|
|
284
|
+
i("div", ve, [
|
|
285
|
+
i("div", Se, g(n.name), 1),
|
|
286
|
+
i("div", ke, g(t(N)(n)), 1)
|
|
287
|
+
]),
|
|
288
|
+
i("div", Fe, g(t(a)("connect.campaign.mission.received")) + " : " + g(((b = n == null ? void 0 : n.pf_collectible) == null ? void 0 : b.currentReceive) ?? 0), 1)
|
|
289
|
+
]),
|
|
290
|
+
i("div", Ie, [
|
|
291
|
+
r(C, {
|
|
292
|
+
icon: "insights",
|
|
293
|
+
"icon-color": "neutral-gray-400",
|
|
294
|
+
variant: "tertiary",
|
|
295
|
+
onClick: async (_) => {
|
|
296
|
+
_.stopPropagation(), await R(n);
|
|
297
|
+
}
|
|
298
|
+
}, null, 8, ["onClick"]),
|
|
299
|
+
r(C, {
|
|
300
|
+
icon: "content_copy",
|
|
301
|
+
"icon-color": "neutral-gray-400",
|
|
302
|
+
variant: "tertiary",
|
|
303
|
+
onClick: async (_) => {
|
|
304
|
+
_.stopPropagation(), await B(n);
|
|
305
|
+
}
|
|
306
|
+
}, null, 8, ["onClick"]),
|
|
307
|
+
r(C, {
|
|
308
|
+
icon: "delete",
|
|
309
|
+
"icon-color": "neutral-gray-400",
|
|
310
|
+
variant: "tertiary",
|
|
311
|
+
onClick: (_) => (_.stopPropagation(), V(n))
|
|
312
|
+
}, null, 8, ["onClick"])
|
|
313
|
+
])
|
|
314
|
+
];
|
|
315
|
+
}),
|
|
316
|
+
_: 2
|
|
317
|
+
}, 1032, ["onClick"]))), 128))
|
|
318
|
+
]),
|
|
319
|
+
_: 1
|
|
320
|
+
})
|
|
321
|
+
], 64)) : (u(), I(W, {
|
|
322
|
+
key: 1,
|
|
323
|
+
variant: "outlined",
|
|
324
|
+
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
325
|
+
}, {
|
|
326
|
+
default: F(() => [
|
|
327
|
+
o[6] || (o[6] = i("img", {
|
|
328
|
+
src: ee,
|
|
329
|
+
class: "aspect-square w-[150px]"
|
|
330
|
+
}, null, -1)),
|
|
331
|
+
i("div", Me, [
|
|
332
|
+
i("div", Le, g(t(a)("connect.campaign.mission.createProgram")), 1),
|
|
333
|
+
i("div", Pe, g(t(a)("connect.campaign.mission.description")), 1)
|
|
334
|
+
]),
|
|
335
|
+
r(C, {
|
|
336
|
+
variant: "primary",
|
|
337
|
+
label: t(a)("connect.campaign.mission.create"),
|
|
338
|
+
icon: "add",
|
|
339
|
+
onClick: o[5] || (o[5] = (n) => w())
|
|
340
|
+
}, null, 8, ["label"])
|
|
341
|
+
]),
|
|
342
|
+
_: 1
|
|
343
|
+
})),
|
|
344
|
+
r(pe, {
|
|
345
|
+
ref_key: "sheetRef",
|
|
346
|
+
ref: x,
|
|
347
|
+
"onSubmit:modelValue": j
|
|
348
|
+
}, null, 512),
|
|
349
|
+
r(fe, {
|
|
350
|
+
ref_key: "sendCollectionSheetRef",
|
|
351
|
+
ref: P
|
|
352
|
+
}, null, 512)
|
|
353
|
+
])
|
|
354
|
+
], 64);
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
export {
|
|
359
|
+
Qe as default
|
|
360
|
+
};
|
|
@@ -1,28 +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 { p as K } from "./plugins-
|
|
3
|
+
import { u as Z } from "./vue-i18n-BYz7XAr_.js";
|
|
4
|
+
import { u as ue } from "./loading-NY-FPxVY.js";
|
|
5
|
+
import { p as K } from "./plugins-ur-FAoye.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-DHH42rXG.js";
|
|
8
8
|
import { u as W } from "./app-wDQR6dpb.js";
|
|
9
|
-
import { u as Q, _ as we } from "./RewardGroup.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as me } from "./reward-
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./index-
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
9
|
+
import { u as Q, _ as we } from "./RewardGroup.vue_vue_type_script_setup_true_lang-0qU49c47.js";
|
|
10
|
+
import { u as me } from "./reward-DSsylZ22.js";
|
|
11
|
+
import { a as ye, b as be } from "./index-CmNsGhDf.js";
|
|
12
|
+
import "./index-kedErkLZ.js";
|
|
13
|
+
import "./index-CSVhIZSY.js";
|
|
14
|
+
import "./index-D4SDAfbP.js";
|
|
15
|
+
import { c as le, a as se } from "./index-BuMfQxMf.js";
|
|
16
|
+
import "./index-lnQT4P3d.js";
|
|
17
|
+
import { C as fe } from "./membership-BWaK-9FY.js";
|
|
18
|
+
import { t as ee } from "./helper-vkjFqj70.js";
|
|
18
19
|
import { c as H } from "./object-BYyQ0PZp.js";
|
|
19
20
|
import { useDialog as xe, components as oe } from "@feedmepos/ui-library";
|
|
20
|
-
import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
21
|
-
import { a as Re, _ as Se, b as Fe } from "./trigger-
|
|
22
|
-
import { O as ke } from "./objectid-
|
|
21
|
+
import { _ as Ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-B4UPqSNc.js";
|
|
22
|
+
import { a as Re, _ as Se, b as Fe } from "./trigger-CbjiuoSo.js";
|
|
23
|
+
import { O as ke } from "./objectid-1SUSRtmY.js";
|
|
23
24
|
import { c as $e } from "./string-Gcy5IM_H.js";
|
|
24
|
-
import { r as pe } from "./index-
|
|
25
|
-
import { u as Pe } from "./business-
|
|
25
|
+
import { r as pe } from "./index-YgP4ihQL.js";
|
|
26
|
+
import { u as Pe } from "./business-CE_4siXc.js";
|
|
26
27
|
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
28
|
__name: "ReferralRewadGroupCard",
|
|
28
29
|
props: {
|
|
@@ -739,7 +740,7 @@ const nr = { class: "flex flex-col space-y-16 mt-24" }, lr = { class: "flex just
|
|
|
739
740
|
}), mr = { class: "fm-typo-en-title-sm-600" }, fr = { class: "grid grid-cols-4 xs:grid-cols-1 gap-4 divide-x xs:divide-x-0" }, pr = { class: "flex gap-x-8" }, hr = { class: "fm-typo-body-lg-600 flex items-center gap-x-4" }, vr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, _r = { class: "mb-40" }, gr = {
|
|
740
741
|
key: 0,
|
|
741
742
|
class: "flex flex-col items-center justify-center gap-y-16 p-24"
|
|
742
|
-
}, wr = { class: "flex flex-col gap-16 text-center" }, yr = { class: "fm-typo-en-title-sm-800" }, br = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
743
|
+
}, wr = { class: "flex flex-col gap-16 text-center" }, yr = { class: "fm-typo-en-title-sm-800" }, br = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Kr = /* @__PURE__ */ q({
|
|
743
744
|
__name: "Overview",
|
|
744
745
|
setup(k) {
|
|
745
746
|
const { t: l } = Z(), { minor: I } = ue, p = Pe(), g = Q(), { confirmUpdateReferralRecord: f, updateReferralRecord: s } = he(), u = G(() => {
|
|
@@ -1075,5 +1076,5 @@ const nr = { class: "flex flex-col space-y-16 mt-24" }, lr = { class: "flex just
|
|
|
1075
1076
|
}
|
|
1076
1077
|
});
|
|
1077
1078
|
export {
|
|
1078
|
-
|
|
1079
|
+
Kr as default
|
|
1079
1080
|
};
|