@feedmepos/mf-connect 0.1.104-prod → 0.1.105-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/{App-B4UWz7ir.js → App-Bb5yBnOB.js} +10 -9
- package/dist/{Bin-D_eSutW-.js → Bin-DXIYjMm_.js} +8 -8
- package/dist/{Broadcast-DDQE_RLR.js → Broadcast-BpcvdGj_.js} +11 -11
- package/dist/CampaignAnalytic-BDqEZmHy.js +1830 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D2cTNgaS.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BBiIrN0a.js} +6 -6
- package/dist/{Card-CPozdg3m.js → Card-D2sggPws.js} +19 -19
- package/dist/{Collections-IrwF5bWH.js → Collections-BdZU2wR5.js} +9 -9
- package/dist/{Credit-BVXpy5tw.js → Credit-DeDCjtcp.js} +118 -93
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-DEwMzs6L.js +53 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CCe1rp0f.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DbukUBK2.js} +815 -609
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DwP64fmL.js → EffectSheet.vue_vue_type_style_index_0_lang-BNOrfkpI.js} +12 -12
- package/dist/{Experience-BR1JXdH5.js → Experience-CT_3fZPR.js} +109 -84
- package/dist/{FileSaver.min-CX-3gU49.js → FileSaver.min-C3sYNQw3.js} +1 -1
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
- package/dist/Game-C4v96zEu.js +355 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-q5fF5d7d.js → ImageInput.vue_vue_type_script_setup_true_lang-6PmRI47X.js} +1 -1
- package/dist/{Index--Xl_8CFP.js → Index-C5DRA08U.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-C-xW5Tw8.js → LocationPicker.vue_vue_type_script_setup_true_lang-BXcpCtHI.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DGVqQz1j.js → LottieAnimation.vue_vue_type_script_setup_true_lang-C8dm05l2.js} +1 -1
- package/dist/LoyaltyDashboard-BCPojLdm.js +2865 -0
- package/dist/{MainLayout-DB_Y2C3K.js → MainLayout-p92jJ4Mp.js} +3 -3
- package/dist/{Marketing-CjAGzfL7.js → Marketing-Z-TiSgs6.js} +4 -4
- package/dist/{MarketingMaterialEdit-BoF6kTOz.js → MarketingMaterialEdit-CS-hcbGU.js} +6 -6
- package/dist/{Member-DnypOK2I.js → Member-DwY0tXwr.js} +7 -7
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DDSBw1sL.js +1286 -0
- package/dist/{MemberImportHistory-BJSyT6Ys.js → MemberImportHistory-BN85ZxpX.js} +8 -8
- package/dist/MemberList-DaIJCa_0.js +336 -0
- package/dist/{MemberTransactions-CbPxUrtd.js → MemberTransactions-DrgA6jX1.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CVzfjs9D.js → MessageInput.vue_vue_type_script_setup_true_lang-rl8Sr_zl.js} +11 -11
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-lGB6WCj6.js +40 -0
- package/dist/Mission-BFBmJTjP.js +359 -0
- package/dist/{Overview-BW2_y1_7.js → Overview-DaZA6Oxr.js} +5 -5
- package/dist/{Overview-DZxRuA5F.js → Overview-DtiqH8iJ.js} +19 -19
- package/dist/Point-DeaTc_Gj.js +287 -0
- package/dist/Promotion-BBIylJxt.js +417 -0
- package/dist/{Queue-CSF9M_Lc.js → Queue-WsDiZkdN.js} +11 -11
- package/dist/{Record-B-HdI5A4.js → Record-CzD7sYYG.js} +10 -10
- package/dist/{Review-D6RQbcP6.js → Review-BkPHrt33.js} +2 -2
- package/dist/{ReviewFacebookCallback-CkULwhF-.js → ReviewFacebookCallback-Bu8j9CLF.js} +5 -5
- package/dist/{ReviewGoogleCallback-DgPEXV_R.js → ReviewGoogleCallback-Bh3R06MN.js} +5 -5
- package/dist/{Reward-CZvM6GQ9.js → Reward-BHe9y1VN.js} +17 -17
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-C1y2_pHY.js → RewardGroup.vue_vue_type_script_setup_true_lang-DVNknaoM.js} +12 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Cvo6a7Nw.js → RuleGroup.vue_vue_type_script_setup_true_lang-DAXfiO8F.js} +279 -286
- package/dist/{Segment-D2bXEF1U.js → Segment-CjaPWdMt.js} +24 -24
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Ytimazjg.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-srMHsTa6.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Bn1IWAd_.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-C5taZCvV.js} +4 -4
- package/dist/{Setting-DelduRrh.js → Setting-Dr_lawoc.js} +57 -57
- package/dist/{SettingAdvertisements-gTDg1C60.js → SettingAdvertisements-BXJd1btw.js} +13 -13
- package/dist/{Settings-VUEo9wwx.js → Settings-DPJq4qbw.js} +5 -5
- package/dist/{Store-CXQZirbg.js → Store-BNq7oK2B.js} +22 -22
- package/dist/{StoreRewards-BDuZPA8S.js → StoreRewards-WExx61kV.js} +16 -16
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-C-yqZEn4.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BaqyPTXc.js} +327 -386
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BayrgH7m.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CnCHFZL3.js} +2 -2
- package/dist/{Tier-DtPE4IJ5.js → Tier-BSLPHzsj.js} +102 -102
- package/dist/{Title-DNCnQeeR.js → Title-BQ_CVnIN.js} +22 -22
- package/dist/{Transaction-BkUaCGwl.js → Transaction-CvyyRq8P.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-B7TY_AGp.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-ByHFu7ry.js} +6 -6
- package/dist/{Voucher-BBuB9tf8.js → Voucher-DQ-yXZAC.js} +143 -121
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Bu09bIut.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BB0n73WF.js} +115 -121
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BSKpAMJL.js → ZodTextField.vue_vue_type_script_setup_true_lang-nnWYrHgL.js} +2 -2
- package/dist/{app-CSLQmdYA.js → app-BxM9Ghdm.js} +27795 -25657
- package/dist/app.js +1 -1
- package/dist/{business-okSb42At.js → business-nbLS8l9h.js} +1 -1
- package/dist/{campaign-V7nlCdxR.js → campaign-C_IR2u8a.js} +49 -48
- package/dist/{campaign-Ck9GwZdI.js → campaign-Ki9WAmYl.js} +2 -2
- package/dist/{campaign.enum-BQ5khvqI.js → campaign.enum-CtgtWycO.js} +1 -1
- package/dist/{campaign.fn-DMDpxVSZ.js → campaign.fn-CJOfTzI6.js} +32 -32
- package/dist/{collectible.enum-lKz3vTQM.js → collectible.enum-a5dfnH3M.js} +1 -1
- package/dist/{collection.fn-BH5cqMNy.js → collection.fn-Cc-luweq.js} +2 -2
- package/dist/{effect-pUpfqkCF.js → effect-D66eImId.js} +1 -1
- package/dist/{email-addresses-CzBv1fzv.js → email-addresses-DNHwCrI5.js} +2 -2
- package/dist/{export-Du7ZAv-8.js → export-Bp-Fwp-h.js} +3 -3
- package/dist/{helper-BpthZPU4.js → helper-BpHRMtgf.js} +1 -1
- package/dist/{index-DSltrIkA.js → index-B8cXkkGF.js} +1 -1
- package/dist/{timezone-DYWqfGTu.js → index-BPV5Dkjl.js} +105 -122
- package/dist/{index-D7PksEV2.js → index-BdqanLnJ.js} +675 -677
- package/dist/{index-CWAdNVKN.js → index-BnH5UiZx.js} +6 -6
- package/dist/{index-v8QQ-4ZP.js → index-C1Bp0PPS.js} +10 -10
- package/dist/{index-BhuD1NhH.js → index-CA5atWo4.js} +1 -1
- package/dist/{index-ZTYDfSkT.js → index-CZ-SWULS.js} +4 -5
- package/dist/{index-CGK1kSCt.js → index-DB13tnmJ.js} +3 -3
- package/dist/{index-C0JgU0Z2.js → index-DFLwgFnq.js} +1 -1
- package/dist/{index-DCp9k5BB.js → index-DVcOSnAP.js} +2 -2
- package/dist/{index-DNdHiAXR.js → index-Dj3FzUo_.js} +18 -2
- package/dist/{index-CN5Zoynf.js → index-DyllcNwd.js} +2 -2
- package/dist/{index-OaZRtKP_.js → index-JU7Ed3Ex.js} +5 -5
- package/dist/{index--6uUWSMc.js → index-Oeiw4Epg.js} +1 -1
- package/dist/{index-izVlVA8-.js → index-VzLsGqcm.js} +1 -1
- package/dist/{index-DPgGmpyL.js → index-nUrA9Q7e.js} +9 -9
- package/dist/{index.esm2017-mpnkyDRb.js → index.esm2017-32NtkXiv.js} +34 -34
- package/dist/{loading-BG3Pj6qz.js → loading-CLZ5IFPe.js} +1 -1
- package/dist/{lodash-BfDdt-c9.js → lodash-k98YPjFm.js} +1 -1
- package/dist/{member-import-BNFdZ3Df.js → member-import-CxNPNPh5.js} +1 -1
- package/dist/membership-CjqXHl0l.js +274 -0
- package/dist/{money-CRftC-F0.js → money-zJomyMyN.js} +1 -1
- package/dist/{number-z7YZyGFS.js → number-BfHmokvl.js} +1 -1
- package/dist/object-BYyQ0PZp.js +18 -0
- package/dist/{objectid-BKMqp_oR.js → objectid-g-s-CuBk.js} +6 -6
- package/dist/{plugins-CWeDGuzy.js → plugins-DNZv50xL.js} +87 -87
- package/dist/{reward-BVTKTGi6.js → reward-BefNUdd_.js} +1 -1
- package/dist/{rule-YhhCOals.js → rule-DkLIl8GM.js} +3 -3
- package/dist/{rule-builder-ae8A0qoi.js → rule-builder-BVyNMiE8.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-CQrM_0hz.js → template-BmSOVHcp.js} +7 -7
- package/dist/timezone-DoX-vj_6.js +20 -0
- package/dist/transaction.fn-D15eS4nB.js +64 -0
- package/dist/{trigger-Clo3vSjw.js → trigger-BhReH6kZ.js} +5 -5
- package/dist/{useMarketingMaterialActions-HyqIT94N.js → useMarketingMaterialActions-DdcVqSlV.js} +3 -3
- package/dist/{usePagination-CWRrkbFL.js → usePagination-rx2JFS-5.js} +1 -1
- package/dist/{user-MVk5s412.js → user-B4gZia2L.js} +1 -1
- package/dist/{vue-i18n-BN9KLJoz.js → vue-i18n-JLM70-gr.js} +201 -201
- package/dist/{xlsx-s0BxKsa_.js → xlsx-CuKZcLfT.js} +440 -440
- package/dist/{zod-H4l78-by.js → zod-ByE_90T4.js} +1 -1
- package/package.json +3 -4
- package/dist/Analytic-1rqyus1X.js +0 -428
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
- package/dist/Game-8nvdSkbi.js +0 -330
- package/dist/MemberList-Bf_XyoxW.js +0 -1602
- package/dist/Mission-DE4O6XM6.js +0 -334
- package/dist/Point-BMEe6duo.js +0 -262
- package/dist/Promotion-lamxp48U.js +0 -392
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BxOEEr9-.js +0 -181
- package/dist/dto-GksE6pni.js +0 -216
- package/dist/membership-tNeaKAeS.js +0 -255
- package/dist/object-qECH92oz.js +0 -26
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as F, ref as I, watch as v, onBeforeMount as D, openBlock as C, createElementBlock as M, createElementVNode as N, createVNode as u, unref as t, h as i } from "vue";
|
|
2
|
-
import { a as R } from "./index-
|
|
3
|
-
import { u as k, _ as L } from "./usePagination-
|
|
4
|
-
import { _ as O } from "./FilterChip.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { a as R } from "./index-DyllcNwd.js";
|
|
3
|
+
import { u as k, _ as L } from "./usePagination-rx2JFS-5.js";
|
|
4
|
+
import { _ as O } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
5
5
|
import { c as l } from "./string-Gcy5IM_H.js";
|
|
6
|
-
import "./index
|
|
6
|
+
import "./index-Oeiw4Epg.js";
|
|
7
7
|
import { useSnackbar as P, components as c } from "@feedmepos/ui-library";
|
|
8
8
|
import { useCoreStore as T } from "@feedmepos/mf-common";
|
|
9
|
-
import { F as U } from "./member-import-
|
|
10
|
-
import { F as g } from "./FileSaver.min-
|
|
9
|
+
import { F as U } from "./member-import-CxNPNPh5.js";
|
|
10
|
+
import { F as g } from "./FileSaver.min-C3sYNQw3.js";
|
|
11
11
|
import { h as m } from "./moment-D7p2TMB-.js";
|
|
12
12
|
import { useRouter as V } from "vue-router";
|
|
13
|
-
import { m as d } from "./index-
|
|
14
|
-
import { R as B } from "./app-
|
|
13
|
+
import { m as d } from "./index-DVcOSnAP.js";
|
|
14
|
+
import { R as B } from "./app-BxM9Ghdm.js";
|
|
15
15
|
const $ = { class: "flex flex-col gap-16" }, Y = { class: "flex items-center" }, re = /* @__PURE__ */ F({
|
|
16
16
|
__name: "MemberImportHistory",
|
|
17
17
|
setup(z) {
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import { defineComponent as xe, ref as F, computed as ve, onMounted as Me, resolveComponent as E, openBlock as ne, createElementBlock as Ne, createElementVNode as Fe, createVNode as w, unref as s, withDirectives as Ee, vShow as Ie, createBlock as De, createCommentVNode as Ve, h as d } from "vue";
|
|
2
|
+
import { h } from "./moment-D7p2TMB-.js";
|
|
3
|
+
import { components as S } from "@feedmepos/ui-library";
|
|
4
|
+
import { e as ke, M as Be } from "./email-addresses-DNHwCrI5.js";
|
|
5
|
+
import { w as Pe } from "./xlsx-CuKZcLfT.js";
|
|
6
|
+
import "./index-Oeiw4Epg.js";
|
|
7
|
+
import "./index-JU7Ed3Ex.js";
|
|
8
|
+
import { u as Re } from "./membership-CjqXHl0l.js";
|
|
9
|
+
import { u as Ye, _ as Ae } from "./MemberDetailSheet.vue_vue_type_script_setup_true_lang-DDSBw1sL.js";
|
|
10
|
+
import { f as x } from "./number-BfHmokvl.js";
|
|
11
|
+
import { u as Le } from "./loading-CLZ5IFPe.js";
|
|
12
|
+
import { t as Oe } from "./money-zJomyMyN.js";
|
|
13
|
+
import { u as ze, _ as Ke } from "./usePagination-rx2JFS-5.js";
|
|
14
|
+
import { g as je, a as Ue, b as $e } from "./user-B4gZia2L.js";
|
|
15
|
+
import { u as qe } from "./business-nbLS8l9h.js";
|
|
16
|
+
import { useRouter as Je } from "vue-router";
|
|
17
|
+
import { m as I } from "./index-DVcOSnAP.js";
|
|
18
|
+
import { R as Ge } from "./app-BxM9Ghdm.js";
|
|
19
|
+
import { o as se } from "./objectId-dwaoBfJX.js";
|
|
20
|
+
const He = { class: "flex items-center justify-end" }, bt = /* @__PURE__ */ xe({
|
|
21
|
+
__name: "MemberList",
|
|
22
|
+
setup(Qe) {
|
|
23
|
+
const re = Ye(), u = Re(), D = qe(), { minor: ie } = Le, le = Je(), ce = [
|
|
24
|
+
{
|
|
25
|
+
header: "Name",
|
|
26
|
+
enableSorting: !0,
|
|
27
|
+
accessorKey: "name",
|
|
28
|
+
cell(t) {
|
|
29
|
+
return je(t.row.original);
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
header: "Phone",
|
|
34
|
+
enableSorting: !0,
|
|
35
|
+
accessorKey: "phoneNumber"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
accessorFn: (t) => h(t.joinAt || se(t._id.toString())).format("D MMM YYYY"),
|
|
39
|
+
header: "Customer Since",
|
|
40
|
+
accessorKey: "_id",
|
|
41
|
+
id: "_id"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
accessorKey: "collection_TIER_0_balance",
|
|
45
|
+
header: "Tier",
|
|
46
|
+
enableSorting: !0,
|
|
47
|
+
cell(t) {
|
|
48
|
+
return Ue(
|
|
49
|
+
t.row.original,
|
|
50
|
+
u.sortedTiers
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
header: "Title",
|
|
56
|
+
enableSorting: !1,
|
|
57
|
+
cell(t) {
|
|
58
|
+
return $e(
|
|
59
|
+
t.row.original,
|
|
60
|
+
u.sortedTitles
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
accessorKey: "collection_CREDIT_0_balance",
|
|
66
|
+
accessorFn: (t) => {
|
|
67
|
+
var o, a, n;
|
|
68
|
+
return x(((n = (a = (o = t.collection) == null ? void 0 : o.CREDIT) == null ? void 0 : a[0]) == null ? void 0 : n.balance) ?? 0, 2);
|
|
69
|
+
},
|
|
70
|
+
header: "Credit(s)",
|
|
71
|
+
enableSorting: !0
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
accessorKey: "collection_POINT_0_balance",
|
|
75
|
+
accessorFn: (t) => {
|
|
76
|
+
var o, a, n;
|
|
77
|
+
return x(((n = (a = (o = t.collection) == null ? void 0 : o.POINT) == null ? void 0 : a[0]) == null ? void 0 : n.balance) ?? 0, 2);
|
|
78
|
+
},
|
|
79
|
+
header: "Experience(s)",
|
|
80
|
+
enableSorting: !0
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
accessorKey: "collection_COIN_0_balance",
|
|
84
|
+
accessorFn: (t) => {
|
|
85
|
+
var o, a, n;
|
|
86
|
+
return x(((n = (a = (o = t.collection) == null ? void 0 : o.COIN) == null ? void 0 : a[0]) == null ? void 0 : n.balance) ?? 0, 2);
|
|
87
|
+
},
|
|
88
|
+
header: "Point(s)",
|
|
89
|
+
enableSorting: !0
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
accessorFn: (t) => {
|
|
93
|
+
var o;
|
|
94
|
+
return ((o = t.stats) == null ? void 0 : o.visitCount) ?? 0;
|
|
95
|
+
},
|
|
96
|
+
header: "Total visit",
|
|
97
|
+
accessorKey: "stats.visitCount",
|
|
98
|
+
id: "stats.visitCount"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
accessorFn: (t) => {
|
|
102
|
+
var o;
|
|
103
|
+
return (o = t.stats) == null ? void 0 : o.lastVisit;
|
|
104
|
+
},
|
|
105
|
+
sortingFn: (t, o) => {
|
|
106
|
+
var a, n;
|
|
107
|
+
return new Date((a = t.original.stats) == null ? void 0 : a.lastVisit).getTime() - new Date((n = o.original.stats) == null ? void 0 : n.lastVisit).getTime();
|
|
108
|
+
},
|
|
109
|
+
id: "stats.lastVisit",
|
|
110
|
+
header: "Last visit",
|
|
111
|
+
cell(t) {
|
|
112
|
+
var o, a;
|
|
113
|
+
return d("div", { class: "flex items-center justify-end gap-4" }, [
|
|
114
|
+
d(
|
|
115
|
+
"span",
|
|
116
|
+
(o = t.row.original.stats) != null && o.lastVisit ? h((a = t.row.original.stats) == null ? void 0 : a.lastVisit).fromNow() : "NA"
|
|
117
|
+
),
|
|
118
|
+
d(
|
|
119
|
+
S.FmTooltip,
|
|
120
|
+
{
|
|
121
|
+
content: h(t.row.original.stats.lastVisit).format(
|
|
122
|
+
"D MMM YYYY - hh:mmA"
|
|
123
|
+
)
|
|
124
|
+
},
|
|
125
|
+
[d(S.FmIcon, { name: "info", outline: !0, size: "sm" })]
|
|
126
|
+
)
|
|
127
|
+
]);
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
id: "actions",
|
|
132
|
+
cell(t) {
|
|
133
|
+
return d(
|
|
134
|
+
S.FmMenu,
|
|
135
|
+
{
|
|
136
|
+
placement: "bottom-end",
|
|
137
|
+
onClick: (o) => {
|
|
138
|
+
o.stopPropagation();
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"menu-button": () => d(S.FmButton, { icon: "more_vert", variant: "tertiary" }),
|
|
143
|
+
default: () => [
|
|
144
|
+
d(S.FmMenuItem, {
|
|
145
|
+
label: "Transaction details",
|
|
146
|
+
onClick: async (o) => {
|
|
147
|
+
o.stopPropagation(), await be(t.row.original._id);
|
|
148
|
+
}
|
|
149
|
+
})
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
], { tableMeta: l, rowData: de, onSort: ue, debouncedFetchData: v, onSearch: me } = ze(I.read), V = F(), _ = F(!1), m = F(), pe = ve(() => D.locations.map((t) => ({
|
|
156
|
+
label: t.name,
|
|
157
|
+
value: t._id
|
|
158
|
+
})));
|
|
159
|
+
async function fe() {
|
|
160
|
+
m.value = await I.readById(
|
|
161
|
+
m.value._id.toString()
|
|
162
|
+
), _.value = !0;
|
|
163
|
+
}
|
|
164
|
+
async function ge() {
|
|
165
|
+
await v(), _.value = !1;
|
|
166
|
+
}
|
|
167
|
+
async function be(t) {
|
|
168
|
+
await le.push({
|
|
169
|
+
name: Ge["$connect-LOYALTY_MEMBER_TRANSACTIONS"],
|
|
170
|
+
params: { id: t }
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
const M = {
|
|
174
|
+
sortBy: "_id",
|
|
175
|
+
descending: !1,
|
|
176
|
+
rowsPerPage: 1e3
|
|
177
|
+
};
|
|
178
|
+
function N(t) {
|
|
179
|
+
const o = h(t);
|
|
180
|
+
return o.isValid() ? o.format("DD/MM/YYYY") : "";
|
|
181
|
+
}
|
|
182
|
+
async function he() {
|
|
183
|
+
const t = new Be(), o = M.rowsPerPage;
|
|
184
|
+
await ie(
|
|
185
|
+
async () => {
|
|
186
|
+
var T, i, p, k, B, P, R, Y, A, L, O, z, K, j, U, $, q, J, G, H, Q, W, X, Z, ee;
|
|
187
|
+
let a, n = !0;
|
|
188
|
+
for (; n; ) {
|
|
189
|
+
const C = await I.readCursor({
|
|
190
|
+
limit: o,
|
|
191
|
+
sortBy: M.sortBy,
|
|
192
|
+
descending: M.descending,
|
|
193
|
+
...a ? { cursor: a } : {}
|
|
194
|
+
});
|
|
195
|
+
if (!C.resources.length)
|
|
196
|
+
break;
|
|
197
|
+
for (const e of C.resources) {
|
|
198
|
+
const Se = (T = ke.parseOneAddress(
|
|
199
|
+
e == null ? void 0 : e.email
|
|
200
|
+
)) != null && T.domain.includes("feedmepos.com") ? void 0 : e.email, _e = (p = ((i = e == null ? void 0 : e.collection) == null ? void 0 : i.TITLE) || []) == null ? void 0 : p.reduce(
|
|
201
|
+
(r, c) => {
|
|
202
|
+
var g, b;
|
|
203
|
+
const f = (b = (g = u.sortedTitles) == null ? void 0 : g.find(
|
|
204
|
+
(y) => y._id === c.collectible
|
|
205
|
+
)) == null ? void 0 : b.name;
|
|
206
|
+
return !f || c.balance <= 0 || r.push(f), r;
|
|
207
|
+
},
|
|
208
|
+
[]
|
|
209
|
+
), Te = (u.sortedTitles || []).reduce(
|
|
210
|
+
(r, c) => {
|
|
211
|
+
var g, b, y, ae;
|
|
212
|
+
const f = (ae = (y = (b = (((g = e == null ? void 0 : e.collection) == null ? void 0 : g.TITLE) || []).find(
|
|
213
|
+
(we) => we.collectible === c._id
|
|
214
|
+
)) == null ? void 0 : b.expiryBalance) == null ? void 0 : y[0]) == null ? void 0 : ae.expiredAt;
|
|
215
|
+
return r[c.name] = f ? h(f).format("DD/MM/YYYY") : "", r;
|
|
216
|
+
},
|
|
217
|
+
{}
|
|
218
|
+
), Ce = ((P = (B = (k = e.collection) == null ? void 0 : k.CREDIT) == null ? void 0 : B.at(0)) == null ? void 0 : P.balance) || 0, te = ((L = (A = (Y = (R = e.collection) == null ? void 0 : R.CREDIT) == null ? void 0 : Y.at(0)) == null ? void 0 : A.expiryBalance) == null ? void 0 : L.reduce(
|
|
219
|
+
(r, c) => r + c.amount,
|
|
220
|
+
0
|
|
221
|
+
)) || 0, oe = x(Ce, 2), ye = {
|
|
222
|
+
ID: e._id.toString(),
|
|
223
|
+
Name: ((O = e.name) == null ? void 0 : O.trim()) || "",
|
|
224
|
+
Phone: ((z = e == null ? void 0 : e.phoneNumber) == null ? void 0 : z.trim()) || "",
|
|
225
|
+
Email: Se || "",
|
|
226
|
+
Gender: e.gender || "",
|
|
227
|
+
CardNo: e.cardNo || "",
|
|
228
|
+
Birthday: e != null && e.birthday ? N(e == null ? void 0 : e.birthday) : "",
|
|
229
|
+
Credit: (Number(oe) - Number(te)).toFixed(2),
|
|
230
|
+
FreeCredit: Number(te.toFixed(2)),
|
|
231
|
+
TotalCredit: Number(oe),
|
|
232
|
+
Exp: e != null && e.collection ? ((U = (j = (K = e.collection) == null ? void 0 : K.POINT) == null ? void 0 : j.at(0)) == null ? void 0 : U.balance) ?? 0 : 0,
|
|
233
|
+
Point: e != null && e.collection ? ((J = (q = ($ = e.collection) == null ? void 0 : $.COIN) == null ? void 0 : q.at(0)) == null ? void 0 : J.balance) ?? 0 : 0,
|
|
234
|
+
Tier: e != null && e.collection ? ((Q = (H = (G = e.collection) == null ? void 0 : G.TIER) == null ? void 0 : H.at(0)) == null ? void 0 : Q.balance) ?? 0 : 0,
|
|
235
|
+
Titles: _e.join(","),
|
|
236
|
+
...Te,
|
|
237
|
+
TotalTransaction: e.stats.visitCount,
|
|
238
|
+
AvgSpent: Oe(Number(e.stats.avgBillSize || 0)).toFormat(
|
|
239
|
+
!1
|
|
240
|
+
),
|
|
241
|
+
TotalSpent: e.stats.avgBillSize * e.stats.visitCount,
|
|
242
|
+
LastVisit: N(e.stats.lastVisit),
|
|
243
|
+
Feedback: ((W = e.stats) == null ? void 0 : W.feedbackCount) || 0,
|
|
244
|
+
LastSeasonTierEarned: ((X = e.stats) == null ? void 0 : X.lastSeasonTierEarned) || 0,
|
|
245
|
+
LastSeasonPointEarned: ((Z = e.stats) == null ? void 0 : Z.lastSeasonPointEarned) || 0,
|
|
246
|
+
JoinedAt: N(e.joinAt || se(e._id)),
|
|
247
|
+
JoinedAtLocation: e.location && ((ee = pe.value.find((r) => r.value == e.location)) == null ? void 0 : ee.label) || "-",
|
|
248
|
+
VisitFrequency: `${Number(
|
|
249
|
+
Math.ceil(e.stats.avgVisitFrequency).toFixed(0)
|
|
250
|
+
)}`
|
|
251
|
+
};
|
|
252
|
+
t.addRecord(ye);
|
|
253
|
+
}
|
|
254
|
+
a = C.meta.nextCursor ?? void 0, n = C.meta.hasNext && !!a;
|
|
255
|
+
}
|
|
256
|
+
await Pe(
|
|
257
|
+
t.buildExcel(),
|
|
258
|
+
`members-${(/* @__PURE__ */ new Date()).toISOString()}.xlsx`,
|
|
259
|
+
{
|
|
260
|
+
bookType: "xlsx",
|
|
261
|
+
bookSST: !1,
|
|
262
|
+
type: "array"
|
|
263
|
+
}
|
|
264
|
+
);
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
message: "Exporting member...",
|
|
268
|
+
successMessage: "Member exported successfully"
|
|
269
|
+
}
|
|
270
|
+
);
|
|
271
|
+
}
|
|
272
|
+
return Me(async () => {
|
|
273
|
+
await u.readMembership(), await re.read(), await D.readLocations(), await v();
|
|
274
|
+
}), (t, o) => {
|
|
275
|
+
const a = E("FmSearch"), n = E("FmButton"), T = E("FmSnackbar");
|
|
276
|
+
return ne(), Ne("div", null, [
|
|
277
|
+
Fe("div", He, [
|
|
278
|
+
w(a, {
|
|
279
|
+
class: "mt-4",
|
|
280
|
+
modelValue: s(l).searchValue,
|
|
281
|
+
"onUpdate:modelValue": [
|
|
282
|
+
o[0] || (o[0] = (i) => s(l).searchValue = i),
|
|
283
|
+
s(me)
|
|
284
|
+
],
|
|
285
|
+
placeholder: "Search",
|
|
286
|
+
collapsible: ""
|
|
287
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
288
|
+
w(n, {
|
|
289
|
+
icon: "ios_share",
|
|
290
|
+
variant: "tertiary",
|
|
291
|
+
onClick: he
|
|
292
|
+
})
|
|
293
|
+
]),
|
|
294
|
+
Ee(w(T, {
|
|
295
|
+
"z-index": 0,
|
|
296
|
+
class: "!max-w-full my-16",
|
|
297
|
+
title: "Info",
|
|
298
|
+
description: "Current list is not up to date, please refresh table for latest data.",
|
|
299
|
+
variant: "info",
|
|
300
|
+
dismissable: "",
|
|
301
|
+
onOnDismiss: o[1] || (o[1] = (i) => _.value = !1),
|
|
302
|
+
action: "Refresh",
|
|
303
|
+
onOnAction: ge
|
|
304
|
+
}, null, 512), [
|
|
305
|
+
[Ie, s(_)]
|
|
306
|
+
]),
|
|
307
|
+
w(Ke, {
|
|
308
|
+
loading: s(l).isLoading,
|
|
309
|
+
"row-data": s(de),
|
|
310
|
+
"row-count": s(l).totalRows,
|
|
311
|
+
"column-defs": ce,
|
|
312
|
+
"shrink-at": !1,
|
|
313
|
+
"page-count": s(l).pageCount,
|
|
314
|
+
"page-index": s(l).pageIndex,
|
|
315
|
+
"page-size": s(l).pageSize,
|
|
316
|
+
onSortChange: s(ue),
|
|
317
|
+
onPageChange: o[2] || (o[2] = (i) => s(v)({ pageSize: i.pageSize, pageIndex: i.pageIndex })),
|
|
318
|
+
onRowClick: o[3] || (o[3] = (i) => {
|
|
319
|
+
var p;
|
|
320
|
+
m.value = i.original, (p = s(V)) == null || p.showSheet();
|
|
321
|
+
})
|
|
322
|
+
}, null, 8, ["loading", "row-data", "row-count", "page-count", "page-index", "page-size", "onSortChange"]),
|
|
323
|
+
s(m) ? (ne(), De(Ae, {
|
|
324
|
+
key: 0,
|
|
325
|
+
ref_key: "sheetRef",
|
|
326
|
+
ref: V,
|
|
327
|
+
member: s(m),
|
|
328
|
+
"onUpdate:member": fe
|
|
329
|
+
}, null, 8, ["member"])) : Ve("", !0)
|
|
330
|
+
]);
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
export {
|
|
335
|
+
bt as default
|
|
336
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, ref as p, resolveComponent as _, openBlock as a, createElementBlock as f, createVNode as v, unref as o, createBlock as u, createCommentVNode as b } from "vue";
|
|
2
|
-
import { _ as k, a as x } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as k, a as x } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-BaqyPTXc.js";
|
|
3
3
|
import { useRouter as y } from "vue-router";
|
|
4
4
|
const C = { class: "flex flex-col gap-y-32 pb-24" }, F = /* @__PURE__ */ d({
|
|
5
5
|
__name: "MemberTransactions",
|
|
@@ -3,20 +3,20 @@ var Ng = (i, n, e) => n in i ? Dg(i, n, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var h = (i, n, e) => Ng(i, typeof n != "symbol" ? n + "" : n, e);
|
|
4
4
|
import * as vl from "vue";
|
|
5
5
|
import { defineComponent as ln, shallowRef as Fg, openBlock as j, createElementBlock as _e, normalizeStyle as $g, ref as me, resolveComponent as ke, createBlock as Pe, unref as C, isRef as ga, withCtx as Ye, createVNode as be, createElementVNode as D, createCommentVNode as tn, withDirectives as yl, vShow as kl, mergeModels as El, useModel as Ug, watch as $s, onMounted as gr, markRaw as zg, onBeforeUnmount as Hg, resolveDynamicComponent as Wg, version as qg, computed as Re, toDisplayString as Q, Fragment as Ao, renderList as Kh, createTextVNode as Tl, normalizeClass as jg } from "vue";
|
|
6
|
-
import { p as Kg } from "./plugins-
|
|
7
|
-
import { r as Gg } from "./index-
|
|
8
|
-
import "./index-
|
|
6
|
+
import { p as Kg } from "./plugins-DNZv50xL.js";
|
|
7
|
+
import { r as Gg } from "./index-B8cXkkGF.js";
|
|
8
|
+
import "./index-JU7Ed3Ex.js";
|
|
9
9
|
import { _ as Zg } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { _ as Jg, S as Qg } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as os } from "./vue-i18n-
|
|
12
|
-
import { c as Yg } from "./object-
|
|
10
|
+
import { _ as Jg, S as Qg } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-C8dm05l2.js";
|
|
11
|
+
import { u as os } from "./vue-i18n-JLM70-gr.js";
|
|
12
|
+
import { c as Yg } from "./object-BYyQ0PZp.js";
|
|
13
13
|
import { useCoreStore as Gh } from "@feedmepos/mf-common";
|
|
14
|
-
import { u as Xg } from "./membership-
|
|
15
|
-
import { u as ep } from "./loading-
|
|
16
|
-
import { S as Si } from "./index-
|
|
14
|
+
import { u as Xg } from "./membership-CjqXHl0l.js";
|
|
15
|
+
import { u as ep } from "./loading-CLZ5IFPe.js";
|
|
16
|
+
import { S as Si } from "./index-DyllcNwd.js";
|
|
17
17
|
import { useSnackbar as tp } from "@feedmepos/ui-library";
|
|
18
|
-
import { c as np } from "./index-
|
|
19
|
-
import { m as ip } from "./index-
|
|
18
|
+
import { c as np } from "./index-Dj3FzUo_.js";
|
|
19
|
+
import { m as ip } from "./index-CZ-SWULS.js";
|
|
20
20
|
const sp = {
|
|
21
21
|
"user.name": {
|
|
22
22
|
name: "User name"
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent as c, resolveComponent as e, openBlock as s, createBlock as a, withCtx as l, createElementVNode as p, unref as m, withModifiers as f, createVNode as u } from "vue";
|
|
2
|
+
import { u as _ } from "./vue-i18n-JLM70-gr.js";
|
|
3
|
+
const d = ["aria-label"], h = /* @__PURE__ */ c({
|
|
4
|
+
__name: "MetricInfoTooltip",
|
|
5
|
+
props: {
|
|
6
|
+
description: {}
|
|
7
|
+
},
|
|
8
|
+
setup(o) {
|
|
9
|
+
const { t: n } = _();
|
|
10
|
+
return (x, t) => {
|
|
11
|
+
const r = e("FmIcon"), i = e("FmTooltip");
|
|
12
|
+
return s(), a(i, {
|
|
13
|
+
variant: "plain",
|
|
14
|
+
placement: "left",
|
|
15
|
+
content: o.description
|
|
16
|
+
}, {
|
|
17
|
+
default: l(() => [
|
|
18
|
+
p("button", {
|
|
19
|
+
type: "button",
|
|
20
|
+
"aria-label": m(n)("connect.loyalty.dashboard.accessibility.metricInformation"),
|
|
21
|
+
onClick: t[0] || (t[0] = f(() => {
|
|
22
|
+
}, ["stop"])),
|
|
23
|
+
class: "inline-flex h-[20px] w-[20px] flex-shrink-0 cursor-help items-center justify-center border-0 bg-transparent p-0"
|
|
24
|
+
}, [
|
|
25
|
+
u(r, {
|
|
26
|
+
name: "info",
|
|
27
|
+
outline: "",
|
|
28
|
+
size: "xs",
|
|
29
|
+
class: "!text-fm-color-typo-tertiary"
|
|
30
|
+
})
|
|
31
|
+
], 8, d)
|
|
32
|
+
]),
|
|
33
|
+
_: 1
|
|
34
|
+
}, 8, ["content"]);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
h as _
|
|
40
|
+
};
|