@feedmepos/mf-connect 0.0.22-prod → 0.0.25-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-DiZyXVa2.js → Analytic-mt_AuAdc.js} +8 -8
- package/dist/App-BpN5YKl3.js +4610 -0
- package/dist/{Broadcast-ixoPXMt8.js → Broadcast-Cyqvqzb6.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DlgKZtNO.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CdF8di4i.js} +8 -8
- package/dist/{Card-aw5tdKY-.js → Card-Bi1IodNQ.js} +58 -58
- package/dist/{Collections-CMD-SLC3.js → Collections-D92KGO6k.js} +5 -5
- package/dist/{Credit-CEVk1_sX.js → Credit-BrdLkWJu.js} +7 -7
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Co6j2tz0.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bra05loG.js} +20 -20
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-xXv4IrKd.js → EffectSheet.vue_vue_type_style_index_0_lang-BZglwVYd.js} +5 -5
- package/dist/{Experience-CSui9603.js → Experience-C_BWJffW.js} +7 -7
- package/dist/{Game-PodGVfdS.js → Game-mp2Y4BET.js} +7 -7
- package/dist/{Marketing-CbrFzK0w.js → Marketing-fzP5GpBh.js} +4 -4
- package/dist/{Member-DnrQEiiV.js → Member-DgYpkGLZ.js} +3 -3
- package/dist/MemberList-BnMttFok.js +1734 -0
- package/dist/{MemberTransactions-BUp_0bkL.js → MemberTransactions-B4Xi3Zx5.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BrxCjH9R.js → MessageInput.vue_vue_type_script_setup_true_lang-BLC79OBk.js} +2 -2
- package/dist/{Mission-Bp16rwVh.js → Mission-CXckOBsJ.js} +7 -7
- package/dist/{Point-DnzgCjC2.js → Point-D4I0kfdL.js} +7 -7
- package/dist/{Promotion-BmhVCYgN.js → Promotion-DA616J_Z.js} +96 -70
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BuELQmoo.js → RuleGroup.vue_vue_type_script_setup_true_lang-S1rG2NU5.js} +14 -14
- package/dist/{Segment-CCrLEh0A.js → Segment-D6BYFtM-.js} +7 -7
- package/dist/{Setting-v0gKscv9.js → Setting-BHwDEeWd.js} +7 -7
- package/dist/{Store-CHDu8Rop.js → Store-Ed5BzoLG.js} +342 -335
- package/dist/{StoreRewards-D_vBCPZl.js → StoreRewards-DRVHeaDt.js} +10 -10
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-zDJEaBmd.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Bksyj7mi.js} +6 -6
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CVf5Jjj1.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Cit_xMrA.js} +1 -1
- package/dist/{Tier-C5gbgtcG.js → Tier-1gSlZGTz.js} +13 -13
- package/dist/{Title-CojucJrP.js → Title-U_0pMT0p.js} +13 -13
- package/dist/{Transaction-D1i5IH7D.js → Transaction-BLTXYzcK.js} +1 -1
- package/dist/{Voucher-VuXKhD49.js → Voucher-CA4vlDXm.js} +10 -10
- package/dist/{app-Cok2f-SL.js → app-BS8VGmru.js} +24 -24
- package/dist/{app-Df5HEUc7.js → app-CcIUASJw.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-zehruO7m.js → business-Cb7TdO2i.js} +1 -1
- package/dist/{campaign-BDdGYC5z.js → campaign-cDY7zmMZ.js} +2 -2
- package/dist/{dto-X3oNeL7n.js → dto-DaNI5PJr.js} +125 -125
- package/dist/{effect-Cl3gXAd9.js → effect-cIPNhqdn.js} +1 -1
- package/dist/{export-COy97xf1.js → export-DpzvYx4-.js} +3 -3
- package/dist/{helper-BMCigtw-.js → helper-zcD8wSPk.js} +1 -1
- package/dist/{index-SusoyGmN.js → index-B3zFgAM5.js} +2 -2
- package/dist/{index-BEWobmlN.js → index-BBJiSjAD.js} +1 -1
- package/dist/{index-9ijJtga8.js → index-BOn8drxv.js} +1 -1
- package/dist/{index-DcRKYwqb.js → index-BpOYW3od.js} +1 -1
- package/dist/{index-Bi8rxPHs.js → index-Br5rtA_c.js} +7 -2
- package/dist/{index-CXwywdbf.js → index-C4hH2Zns.js} +5 -5
- package/dist/{index-Cl6-R6oj.js → index-CnSwEKU1.js} +1 -1
- package/dist/{index-BENEb_BE.js → index-DU11jl6w.js} +3 -3
- package/dist/{index-ueVq8lE0.js → index-Dh0-S-rq.js} +5 -5
- package/dist/{index-Btbk-4q4.js → index-EHWXEK5m.js} +28 -27
- package/dist/{index-ucUyNm2f.js → index-GA7gdWfl.js} +1 -1
- package/dist/{index-DEunD6Nb.js → index-b4pgNE_c.js} +2 -2
- package/dist/index.esm2017-DVHSqcDL.js +3069 -0
- package/dist/{loading-B7ZGAeOi.js → loading-h7bfDCtI.js} +11355 -14218
- package/dist/{membership-JcEfpV3H.js → membership-CdjorwHD.js} +3 -3
- package/dist/{money-DFguRQja.js → money-DGAT5n_7.js} +1 -1
- package/dist/{number-CojWykn9.js → number-Dj6ykRst.js} +1 -1
- package/dist/{rule-C_lc6_Vf.js → rule-DAaUmM-u.js} +314 -343
- package/dist/{rule-builder-C3AmhP2r.js → rule-builder-DfvaFxJL.js} +1 -1
- package/dist/{template-TVj4e3Q0.js → template-CnieUz5M.js} +3 -3
- package/dist/tslib.es6-BCqqvLQ_.js +44 -0
- package/dist/{xlsx-zY8O-RaE.js → xlsx-CGSgxC-D.js} +226 -226
- package/package.json +15 -15
- package/dist/App-B56fA1JN.js +0 -176
- package/dist/MemberList-7Te6kVOJ.js +0 -1721
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-connect",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25-prod",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"./style": "./dist/style.css"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@feedmepos/core": "^2.10.
|
|
18
|
+
"@feedmepos/core": "^2.10.6",
|
|
19
19
|
"@feedmepos/menu": "1.0.34",
|
|
20
20
|
"@feedmepos/mf-common": "1.8.37",
|
|
21
21
|
"@feedmepos/mf-core-ui": "1.0.13",
|
|
@@ -25,37 +25,37 @@
|
|
|
25
25
|
"bson-objectid": "^2.0.4",
|
|
26
26
|
"change-case": "^5.4.4",
|
|
27
27
|
"cross-env": "^7.0.3",
|
|
28
|
-
"dayjs": "^1.11.
|
|
28
|
+
"dayjs": "^1.11.12",
|
|
29
29
|
"dotenv": "^16.4.5",
|
|
30
30
|
"email-addresses": "^5.0.0",
|
|
31
31
|
"fabric": "^6.4.2",
|
|
32
|
-
"firebase": "^10.12.
|
|
32
|
+
"firebase": "^10.12.4",
|
|
33
33
|
"lodash": "^4.17.21",
|
|
34
34
|
"moment": "^2.30.1",
|
|
35
35
|
"pinia": "^2.1.7",
|
|
36
36
|
"qrcode": "^1.5.3",
|
|
37
37
|
"rrule": "^2.8.1",
|
|
38
|
-
"unplugin-auto-import": "^0.17.
|
|
38
|
+
"unplugin-auto-import": "^0.17.8",
|
|
39
39
|
"uuid": "^10.0.0",
|
|
40
40
|
"vite-plugin-vue-devtools": "^7.6.4",
|
|
41
|
-
"vue": "^3.4.
|
|
42
|
-
"vue-router": "^4.
|
|
41
|
+
"vue": "^3.4.33",
|
|
42
|
+
"vue-router": "^4.4.0",
|
|
43
43
|
"vue3-lottie": "^3.3.0",
|
|
44
44
|
"xlsx": "^0.18.5",
|
|
45
45
|
"zod": "3.22.4"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@types/lodash": "^4.17.
|
|
49
|
-
"@types/node": "^18.19.
|
|
48
|
+
"@types/lodash": "^4.17.7",
|
|
49
|
+
"@types/node": "^18.19.41",
|
|
50
50
|
"@types/uuid": "^9.0.8",
|
|
51
51
|
"@vitejs/plugin-vue": "^5.0.5",
|
|
52
52
|
"autoprefixer": "^10.4.19",
|
|
53
|
-
"postcss": "^8.4.
|
|
54
|
-
"tailwindcss": "^3.4.
|
|
55
|
-
"typescript": "^5.
|
|
56
|
-
"unlayer-types": "^1.
|
|
57
|
-
"vite": "^5.3.
|
|
58
|
-
"vue-tsc": "^2.0.
|
|
53
|
+
"postcss": "^8.4.39",
|
|
54
|
+
"tailwindcss": "^3.4.6",
|
|
55
|
+
"typescript": "^5.5.3",
|
|
56
|
+
"unlayer-types": "^1.157.0",
|
|
57
|
+
"vite": "^5.3.4",
|
|
58
|
+
"vue-tsc": "^2.0.26"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"dev": "vite",
|
package/dist/App-B56fA1JN.js
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { defineComponent as M, ref as v, h as d, watch as N, resolveComponent as I, openBlock as b, createBlock as O, unref as r, computed as C, onMounted as B, createElementBlock as P, Fragment as G, createCommentVNode as E, createVNode as L, createElementVNode as w, nextTick as F } from "vue";
|
|
2
|
-
import { useRouter as V, useRoute as S, RouterView as Y } from "vue-router";
|
|
3
|
-
import { useCoreStore as $ } from "@feedmepos/mf-common";
|
|
4
|
-
import { u as U } from "./app-wDQR6dpb.js";
|
|
5
|
-
import { u as H } from "./business-zehruO7m.js";
|
|
6
|
-
import "./index-BEWobmlN.js";
|
|
7
|
-
import { components as p, useSnackbar as x, useDialog as D } from "@feedmepos/ui-library";
|
|
8
|
-
import { R as e } from "./app-Cok2f-SL.js";
|
|
9
|
-
import { J as X } from "./JsonViewer-v8_C7l5N.js";
|
|
10
|
-
import { S as y } from "./index-BENEb_BE.js";
|
|
11
|
-
const q = /* @__PURE__ */ M({
|
|
12
|
-
__name: "NavigationTab",
|
|
13
|
-
setup(k) {
|
|
14
|
-
const t = v(), u = [
|
|
15
|
-
{
|
|
16
|
-
label: "Analytic",
|
|
17
|
-
value: e["$connect-ANALYTIC"]
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
label: "Campaign",
|
|
21
|
-
value: e["$connect-CAMPAIGN"],
|
|
22
|
-
children: [
|
|
23
|
-
{
|
|
24
|
-
label: "Promotion",
|
|
25
|
-
value: e["$connect-CAMPAIGN_PROMOTION"]
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
label: "Voucher",
|
|
29
|
-
value: e["$connect-CAMPAIGN_VOUCHER"]
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
label: "Broadcast",
|
|
33
|
-
value: e["$connect-CAMPAIGN_BROADCAST"]
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
label: "Program",
|
|
39
|
-
value: e["$connect-PROGRAM"],
|
|
40
|
-
children: [
|
|
41
|
-
{
|
|
42
|
-
label: "Tier",
|
|
43
|
-
value: e["$connect-PROGRAM_TIER"]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
label: "Title",
|
|
47
|
-
value: e["$connect-PROGRAM_TITLE"]
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
label: "Experience",
|
|
51
|
-
value: e["$connect-PROGRAM_EXPERIENCE"]
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
label: "Point",
|
|
55
|
-
value: e["$connect-PROGRAM_POINT"],
|
|
56
|
-
badge: () => d(p.FmPill, { variant: "premium" })
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
label: "Credit",
|
|
60
|
-
value: e["$connect-PROGRAM_CREDIT"]
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
label: "Game",
|
|
64
|
-
value: e["$connect-PROGRAM_GAME"],
|
|
65
|
-
badge: () => d(p.FmPill, { variant: "premium" })
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
label: "Mission",
|
|
69
|
-
value: e["$connect-PROGRAM_MISSION"]
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
label: "Loyalty",
|
|
75
|
-
value: e["$connect-LOYALTY"],
|
|
76
|
-
children: [
|
|
77
|
-
{
|
|
78
|
-
label: "Member",
|
|
79
|
-
value: e["$connect-LOYALTY_MEMBER_LIST"]
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
label: "Segments",
|
|
83
|
-
value: e["$connect-LOYALTY_SEGMENT"],
|
|
84
|
-
badge: () => d(p.FmPill, { variant: "premium" })
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
label: "Card",
|
|
88
|
-
value: e["$connect-LOYALTY_CARD"],
|
|
89
|
-
badge: () => d(p.FmPill, { variant: "premium" })
|
|
90
|
-
}
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
label: "Store",
|
|
95
|
-
value: e["$connect-STORE"]
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
label: "Transaction",
|
|
99
|
-
value: e["$connect-TRANSACTION"]
|
|
100
|
-
},
|
|
101
|
-
// {
|
|
102
|
-
// label: 'Marketing material',
|
|
103
|
-
// value: ROUTE_NAME['$connect-MARKETING'],
|
|
104
|
-
// },
|
|
105
|
-
{
|
|
106
|
-
label: "Setting",
|
|
107
|
-
value: e["$connect-SETTING"]
|
|
108
|
-
}
|
|
109
|
-
], m = V(), f = S(), _ = u.reduce((n, o) => [...(o.children ?? []).map((a) => a.value), ...n, o.value], []);
|
|
110
|
-
N(
|
|
111
|
-
() => f,
|
|
112
|
-
(n) => {
|
|
113
|
-
const o = n.matched.map((a) => a.name).reverse();
|
|
114
|
-
t.value = o.find((a) => _.includes(a));
|
|
115
|
-
},
|
|
116
|
-
{ immediate: !0 }
|
|
117
|
-
);
|
|
118
|
-
async function T(n) {
|
|
119
|
-
await m.push({ name: n });
|
|
120
|
-
}
|
|
121
|
-
return (n, o) => {
|
|
122
|
-
var c;
|
|
123
|
-
const a = I("FmCollapsibleTabs");
|
|
124
|
-
return b(), O(a, {
|
|
125
|
-
class: "border-fm-color-neutral-gray-100 border-r py-16 px-4",
|
|
126
|
-
"model-value": (c = r(t)) == null ? void 0 : c.toString(),
|
|
127
|
-
items: u,
|
|
128
|
-
"onUpdate:modelValue": T
|
|
129
|
-
}, null, 8, ["model-value"]);
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
var j = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", marketingV1Portal: "https://marketing-v1.feedme.cc" };
|
|
134
|
-
const J = {
|
|
135
|
-
key: 1,
|
|
136
|
-
class: "h-full w-full"
|
|
137
|
-
}, z = ["src"], re = /* @__PURE__ */ M({
|
|
138
|
-
__name: "App",
|
|
139
|
-
setup(k) {
|
|
140
|
-
const t = $(), u = U(), m = H(), f = x(), _ = D(), T = S(), n = v(T.query.showHeader !== "false"), o = v(!1), { currentBusiness: a } = $(), c = v(!1), R = C(() => m.version), h = C(() => {
|
|
141
|
-
const l = t.currentCountry.value || "MY", s = y.getIdToken(), i = a.value._id;
|
|
142
|
-
return `${j.marketingV1Portal}/b/${i}/marketing/overview?showHeader=false&country=${l}&token=${s}`;
|
|
143
|
-
}), A = async () => {
|
|
144
|
-
c.value = !1, await F(), console.log("forceRerender"), y.setBusinessId(a.value._id), await m.readPremium(), !o.value && R.value === "v2" ? t.registerSidebarComponent(q) : t.hideSidebarToggle(!0), o.value = !0, c.value = !0;
|
|
145
|
-
};
|
|
146
|
-
return B(() => {
|
|
147
|
-
if (u.initProvider(f, _), !n.value) {
|
|
148
|
-
const l = document.getElementsByClassName("app-header")[0], s = document.getElementsByClassName("app-sidebar")[0], i = document.getElementsByClassName("app-container")[0], g = document.getElementsByTagName("main")[0];
|
|
149
|
-
l == null || l.classList.add("!hidden"), s == null || s.classList.add("!pt-0"), i == null || i.classList.add("!pt-0"), g == null || g.classList.add("!pt-0"), t.hideSidebarToggle(!0);
|
|
150
|
-
}
|
|
151
|
-
a.value != null && A();
|
|
152
|
-
}), N(
|
|
153
|
-
() => t.currentBusiness.value,
|
|
154
|
-
async (l) => {
|
|
155
|
-
l != null && A();
|
|
156
|
-
}
|
|
157
|
-
), (l, s) => (b(), P(G, null, [
|
|
158
|
-
r(c) && r(R) === "v2" ? (b(), O(r(Y), { key: 0 })) : E("", !0),
|
|
159
|
-
r(c) && r(R) !== "v2" ? (b(), P("div", J, [
|
|
160
|
-
L(X, {
|
|
161
|
-
json: { url: r(h) }
|
|
162
|
-
}, null, 8, ["json"]),
|
|
163
|
-
w("iframe", {
|
|
164
|
-
allow: "clipboard-read; clipboard-write",
|
|
165
|
-
frameBorder: "0",
|
|
166
|
-
height: "100%",
|
|
167
|
-
width: "100%",
|
|
168
|
-
src: r(h)
|
|
169
|
-
}, null, 8, z)
|
|
170
|
-
])) : E("", !0)
|
|
171
|
-
], 64));
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
export {
|
|
175
|
-
re as default
|
|
176
|
-
};
|