@feedmepos/mf-connect 0.1.98-beta.6 → 0.1.98-beta.61
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-CvJ0ASlp.js → App-BPFhGsvV.js} +812 -666
- package/dist/{AuditLogs-Bt9S2LKL.js → AuditLogs-CW8vs5kM.js} +14 -13
- package/dist/{Bin-ZSCDSioa.js → Bin-CgdkmL0M.js} +8 -8
- package/dist/Broadcast-CoRRvfXh.js +302 -0
- package/dist/CampaignAnalytic-UAwVz0E3.js +1830 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-LweQ57aG.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B_IbtQLp.js} +6 -5
- package/dist/Card-D3-MgguK.js +1084 -0
- package/dist/{Collections-H7zhe9zN.js → Collections-BU7-Lz_-.js} +14 -13
- package/dist/Credit-C9gf6eCr.js +286 -0
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-UK9GcPFC.js +53 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-B9A98JpX.js +4213 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-qNmiKaJc.js → EffectSheet.vue_vue_type_style_index_0_lang-nKD6CT3U.js} +35 -35
- package/dist/{Experience-CH5tg-tm.js → Experience-dKvKT4v4.js} +112 -86
- package/dist/{FileSaver.min-DNFqiyZb.js → FileSaver.min-CI8hZvUL.js} +1 -1
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
- package/dist/Game-CBjdeb6F.js +356 -0
- package/dist/GiftCardSetup-DA9yMwPR.js +662 -0
- package/dist/{Grab-3s_sLewD.js → Grab-zCeZMSNI.js} +33 -32
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-fbmoN1e9.js → ImageInput.vue_vue_type_script_setup_true_lang-CxhlYuM9.js} +1 -1
- package/dist/{Index-zTWZCiEo.js → Index-UGpjUfjV.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BOxYPkf5.js → LocationPicker.vue_vue_type_script_setup_true_lang-D21fIVUX.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-wjJ_cwft.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DrB7xzy1.js} +1 -1
- package/dist/LoyaltyDashboard-CBPnQReU.js +2865 -0
- package/dist/MainLayout-BBJUWsAz.js +143 -0
- package/dist/{Marketing-Bto1OvK1.js → Marketing-BjQG6Q41.js} +7 -6
- package/dist/{MarketingMaterialEdit-D7rIqF5U.js → MarketingMaterialEdit-CMUbiKjd.js} +15 -14
- package/dist/Member-B-7tGoFW.js +649 -0
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-BLmafK0n.js +1287 -0
- package/dist/MemberImportHistory-CDyHKO1L.js +187 -0
- package/dist/MemberList-f0dMdOF8.js +336 -0
- package/dist/{MemberTransactions-CjTtGB2y.js → MemberTransactions-DVcRoyxv.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DvKL7BL5.js → MessageInput.vue_vue_type_script_setup_true_lang-CnpXUVvO.js} +5682 -5479
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BTBXutpq.js +40 -0
- package/dist/Mission-CrrXaD8F.js +360 -0
- package/dist/{Overview-mxGLyFvE.js → Overview-CAIxshHU.js} +21 -20
- package/dist/Overview-Y_hxLN7Y.js +1316 -0
- package/dist/Point-CE0G4oxW.js +288 -0
- package/dist/Promotion-C_NQWWOT.js +423 -0
- package/dist/{Queue-DgaFyyyH.js → Queue-BfZGOOsa.js} +14 -13
- package/dist/{Record-BRol__6_.js → Record-BR3Su26B.js} +9 -9
- package/dist/Review-FrIgV7vH.js +45 -0
- package/dist/ReviewFacebookCallback-DOyee73-.js +238 -0
- package/dist/ReviewGoogleCallback-CX0cbT4r.js +213 -0
- package/dist/{Reward-DQI0PvmR.js → Reward-COkgkVT-.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B6bvQNsU.js → RewardGroup.vue_vue_type_script_setup_true_lang-CUd-Gy5a.js} +14 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DgAU7jGo.js → RuleGroup.vue_vue_type_script_setup_true_lang-eBVDv0Qy.js} +103 -109
- package/dist/{Segment-DFaLx0QZ.js → Segment-kh3FuWRP.js} +30 -29
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Cpb2i9iV.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CUoiQlba.js} +31 -30
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-MvoepHn9.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BkylJ859.js} +4 -4
- package/dist/{Setting-D2NjFJvq.js → Setting-UDrEIdF9.js} +14 -14
- package/dist/{SettingAdvertisements-CPWgSMaA.js → SettingAdvertisements-Dic4fC0u.js} +12 -12
- package/dist/Settings-Ct_ESMn8.js +230 -0
- package/dist/Store-CyG1FPWq.js +2612 -0
- package/dist/{StoreRewards-Ccj12pyq.js → StoreRewards-C9b_rMRT.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DaGFayps.js +1329 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CfWTn0Xd.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dew6rC4d.js} +2 -2
- package/dist/{Tier-vaJoohiM.js → Tier-DgLEHrFJ.js} +2296 -750
- package/dist/{Title-BqHC7-v9.js → Title-C_8gMnYS.js} +39 -37
- package/dist/Transaction-B9E0jWw9.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Dporb9KE.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DgW4dSkV.js} +26 -26
- package/dist/{Voucher-DeN6C6DQ.js → Voucher-DR3Eteh4.js} +156 -133
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-De16fuC4.js → VoucherEditor.vue_vue_type_script_setup_true_lang-JexB74ky.js} +115 -121
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DAC-j0Ln.js → ZodTextField.vue_vue_type_script_setup_true_lang-ChOd_di8.js} +2 -2
- package/dist/{app-n4Y2jMee.js → app-BIjITpNJ.js} +29593 -25208
- package/dist/app.js +1 -1
- package/dist/base.export-DqZ38Nx2.js +75 -0
- package/dist/{business-jn-_l48y.js → business-j4ZuiLuJ.js} +5 -5
- package/dist/campaign-DxhXoOvw.js +100 -0
- package/dist/campaign-MS9awZ18.js +368 -0
- package/dist/{campaign.enum-C9HvoKuq.js → campaign.enum-Bk6qcWR3.js} +1 -1
- package/dist/campaign.fn-DR_X38U8.js +776 -0
- package/dist/{collectible.enum-_HVU4lWn.js → collectible.enum-C_E4CCGR.js} +1 -1
- package/dist/collection.fn-BfyWr7cC.js +26 -0
- package/dist/currency-DZzC-632.js +7 -0
- package/dist/{duplicateCampaign-gzVwrnWb.js → duplicateCampaign-BgTmR0T2.js} +11 -11
- package/dist/{effect-DhpIv1L3.js → effect-DPCjkqDR.js} +1 -1
- package/dist/{email-addresses-DPxYLSoa.js → email-addresses-BoPJkP5p.js} +209 -201
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-WYHUnHVy.js → helper-DwJK1iKj.js} +1 -1
- package/dist/{index-BPsofsGt.js → index-8vHynDvo.js} +1933 -2560
- package/dist/{index-BdqRrCt8.js → index-Bd4ErVnX.js} +5 -5
- package/dist/index-BkFxLxI6.js +137 -0
- package/dist/index-BvxBDSzh.js +72 -0
- package/dist/{index-DUTFNEn9.js → index-C5Jm1Was.js} +4 -4
- package/dist/{index-xao4ggML.js → index-CIuQyo1z.js} +5 -5
- package/dist/{index-C-5YgmkC.js → index-CMJCsyXT.js} +7 -5
- package/dist/index-CTo26AN3.js +14530 -0
- package/dist/{index-Cte6dHHy.js → index-CVMsPseO.js} +14 -14
- package/dist/{index-BdnHQSDd.js → index-CXbojcfi.js} +5 -4
- package/dist/index-Cso1GrEu.js +53 -0
- package/dist/{index-Cvfavr2M.js → index-DD24eHtV.js} +351 -216
- package/dist/index-DGOX45St.js +151 -0
- package/dist/index-DP6WMBRq.js +900 -0
- package/dist/{index-7HizF3GI.js → index-DfwXt9fy.js} +1588 -1522
- package/dist/{index--fNMSXUf.js → index-Dn2mOB0A.js} +1 -1
- package/dist/{index-BuLfxJyC.js → index-LJrZDUgh.js} +105 -123
- package/dist/{index-BN-FP9kx.js → index-a15EaBn7.js} +1 -1
- package/dist/{index.esm2017-CjzFPUCa.js → index.esm2017-CWii-ZqX.js} +164 -164
- package/dist/{loading-CojnK00V.js → loading-CibOtJVR.js} +1 -1
- package/dist/{lodash-CLkg5jTT.js → lodash-oHoQ9t6u.js} +1 -1
- package/dist/member-import-BgJP811X.js +187 -0
- package/dist/membership-CqFY6ya6.js +274 -0
- package/dist/{money-CyaLaEKo.js → money-tVvfE8ha.js} +1 -1
- package/dist/{number-DEtI4bEX.js → number-B4p37H0W.js} +1 -1
- package/dist/objectid-reVda6sT.js +145 -0
- package/dist/{plugins-MnP1vCcg.js → plugins-S4qmcyLz.js} +13 -12
- package/dist/remy-Qz_pNsUS.js +13 -0
- package/dist/{reward-Dk3D26xC.js → reward-CgHNw9uj.js} +1 -1
- package/dist/{rule-B1Agad1n.js → rule-BECsW_aD.js} +335 -275
- package/dist/style.css +1 -1
- package/dist/{template-DpqLCq1p.js → template-jOqP_F7D.js} +6 -6
- package/dist/timezone-BBXko2_m.js +20 -0
- package/dist/transaction.fn-3DOFgJNT.js +64 -0
- package/dist/{trigger-cwPN-4Ia.js → trigger-DBIaHlqi.js} +17 -17
- package/dist/useMarketingMaterialActions-Dnln39_O.js +96 -0
- package/dist/{usePagination-D8zBMxdJ.js → usePagination-BKN2uLM2.js} +1 -1
- package/dist/{user-EUGwaL2f.js → user-CTKTBdLx.js} +1 -1
- package/dist/{vue-i18n-BBj45p9N.js → vue-i18n-Di-6yoyq.js} +233 -233
- package/dist/{xlsx-DiMIlKmu.js → xlsx-Z1jRdg68.js} +584 -584
- package/dist/{zod-B1cU167C.js → zod-BmQ5EO9I.js} +1 -1
- package/package.json +6 -5
- package/dist/Broadcast-BT0R11RB.js +0 -266
- package/dist/Card-Wdh8lyUv.js +0 -910
- package/dist/Credit-BuKLrFtM.js +0 -260
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-B2sZFWUF.js +0 -3377
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
- package/dist/Game-C9s4qZz4.js +0 -330
- package/dist/LoyaltyDashboard-tOOk6zvV.js +0 -1082
- package/dist/MainLayout-iWi1DzXS.js +0 -41
- package/dist/Member-BdgdT-sa.js +0 -280
- package/dist/MemberList-DBIE-RWC.js +0 -1601
- package/dist/Mission-CWR6FBvN.js +0 -334
- package/dist/Point-BIt82fJk.js +0 -262
- package/dist/Promotion-Cl1vPi0B.js +0 -397
- package/dist/Review-DmV2YnFd.js +0 -1076
- package/dist/ReviewFacebookCallback-B5XgAWXo.js +0 -243
- package/dist/ReviewGoogleCallback-CYR03Wfd.js +0 -208
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-CAImd3yc.js +0 -181
- package/dist/Store-DjUe8ady.js +0 -1996
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B7w69A3j.js +0 -1130
- package/dist/Transaction-BOmDOGnD.js +0 -39
- package/dist/campaign-BnI7-ceP.js +0 -219
- package/dist/campaign-rgDnocfT.js +0 -277
- package/dist/campaign.fn-D21ettpH.js +0 -776
- package/dist/export-CWAxYj7W.js +0 -97
- package/dist/index-B6EBgIUx.js +0 -85
- package/dist/index-CxR1baaG.js +0 -52
- package/dist/membership-CeX8E_I9.js +0 -255
- package/dist/objectid-CMau7CW-.js +0 -145
- package/dist/useMarketingMaterialActions-CGzfJ68e.js +0 -107
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { defineComponent as n, openBlock as o, createElementBlock as a, createVNode as c, unref as e, ref as m, resolveComponent as u, normalizeClass as _, createBlock as p, createCommentVNode as h, withDirectives as f, createElementVNode as d, vShow as w } from "vue";
|
|
2
|
-
import { _ as v, S as x } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-wjJ_cwft.js";
|
|
3
|
-
import { u as r } from "./app-wDQR6dpb.js";
|
|
4
|
-
import { useRoute as g } from "vue-router";
|
|
5
|
-
const S = { class: "bg-white w-full flex min-h-[calc(100svh-56px)] items-center" }, V = /* @__PURE__ */ n({
|
|
6
|
-
__name: "Splash",
|
|
7
|
-
setup(l) {
|
|
8
|
-
return (s, t) => (o(), a("div", S, [
|
|
9
|
-
c(v, {
|
|
10
|
-
class: "flex-1",
|
|
11
|
-
json: e(x),
|
|
12
|
-
width: 100,
|
|
13
|
-
height: 100
|
|
14
|
-
}, null, 8, ["json"])
|
|
15
|
-
]));
|
|
16
|
-
}
|
|
17
|
-
}), N = /* @__PURE__ */ n({
|
|
18
|
-
__name: "MainLayout",
|
|
19
|
-
setup(l) {
|
|
20
|
-
const s = g(), t = m(s.query.showHeader !== "false");
|
|
21
|
-
return (b, k) => {
|
|
22
|
-
const i = u("RouterView");
|
|
23
|
-
return o(), a("div", {
|
|
24
|
-
class: _([
|
|
25
|
-
"bg-fm-color-neutral-white w-full xs:overflow-y-scroll",
|
|
26
|
-
e(t) ? "min-h-[calc(100svh-56px)] xs:h-[calc(100svh-56px)]" : "min-h-screen"
|
|
27
|
-
])
|
|
28
|
-
}, [
|
|
29
|
-
e(r)().isGlobalLoading == !0 ? (o(), p(V, { key: 0 })) : h("", !0),
|
|
30
|
-
f(d("div", null, [
|
|
31
|
-
c(i)
|
|
32
|
-
], 512), [
|
|
33
|
-
[w, e(r)().isGlobalLoading == !1]
|
|
34
|
-
])
|
|
35
|
-
], 2);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
export {
|
|
40
|
-
N as default
|
|
41
|
-
};
|
package/dist/Member-BdgdT-sa.js
DELETED
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import { defineComponent as L, ref as F, watch as P, resolveComponent as m, openBlock as x, createElementBlock as C, Fragment as R, createElementVNode as b, createVNode as u, unref as n, withCtx as M, renderList as $, createBlock as D, toDisplayString as O, normalizeClass as U, computed as Y, createCommentVNode as q } from "vue";
|
|
2
|
-
import "./index--fNMSXUf.js";
|
|
3
|
-
import { useDialogChild as H, FmButtonVariant as S, useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as N } from "./vue-i18n-BBj45p9N.js";
|
|
5
|
-
import "./index-Cvfavr2M.js";
|
|
6
|
-
import { c as A } from "./index-BPsofsGt.js";
|
|
7
|
-
import "./index-7HizF3GI.js";
|
|
8
|
-
import "./index-xao4ggML.js";
|
|
9
|
-
import "./index-BdqRrCt8.js";
|
|
10
|
-
import { u as g, w as j } from "./xlsx-DiMIlKmu.js";
|
|
11
|
-
import { F as z } from "./FileSaver.min-DNFqiyZb.js";
|
|
12
|
-
import { useCoreStore as G } from "@feedmepos/mf-common";
|
|
13
|
-
import { useRouter as W } from "vue-router";
|
|
14
|
-
import { m as I } from "./index-B6EBgIUx.js";
|
|
15
|
-
import { R as E } from "./app-n4Y2jMee.js";
|
|
16
|
-
const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
17
|
-
key: 1,
|
|
18
|
-
class: /* @__PURE__ */ U([
|
|
19
|
-
"flex items-center",
|
|
20
|
-
"border border-fm-color-neutral-gray-300",
|
|
21
|
-
"p-16 space-x-16 rounded-md"
|
|
22
|
-
])
|
|
23
|
-
}, ee = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, te = /* @__PURE__ */ L({
|
|
24
|
-
__name: "ImportMemberDialog",
|
|
25
|
-
setup(V) {
|
|
26
|
-
const { t: a } = N(), { emitData: v } = H(), c = F(null), _ = F(null), w = F({
|
|
27
|
-
resetCollectionExpiryBalance: !0
|
|
28
|
-
}), s = [
|
|
29
|
-
"Id",
|
|
30
|
-
"Name",
|
|
31
|
-
"Phone",
|
|
32
|
-
"Email",
|
|
33
|
-
"Gender",
|
|
34
|
-
"CardNo",
|
|
35
|
-
"Birthday",
|
|
36
|
-
"Credit",
|
|
37
|
-
"CreditExpiryDate",
|
|
38
|
-
"Exp",
|
|
39
|
-
"Point",
|
|
40
|
-
"Tier",
|
|
41
|
-
"Titles",
|
|
42
|
-
"TotalTransaction",
|
|
43
|
-
"AvgSpent",
|
|
44
|
-
"TotalSpent",
|
|
45
|
-
"LastVisit",
|
|
46
|
-
"Feedback",
|
|
47
|
-
"LastSeasonTierEarned",
|
|
48
|
-
"LastSeasonPointEarned",
|
|
49
|
-
"JoinedAt",
|
|
50
|
-
"JoinedAtLocation",
|
|
51
|
-
"VisitFrequency"
|
|
52
|
-
], p = [
|
|
53
|
-
{
|
|
54
|
-
label: "CSV",
|
|
55
|
-
icon: "csv",
|
|
56
|
-
value: "csv"
|
|
57
|
-
/* csv */
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
label: "Excel",
|
|
61
|
-
icon: "description",
|
|
62
|
-
value: "xlsx"
|
|
63
|
-
/* xlsx */
|
|
64
|
-
}
|
|
65
|
-
];
|
|
66
|
-
async function d(i) {
|
|
67
|
-
var t, f;
|
|
68
|
-
c.value = ((f = (t = i.target) == null ? void 0 : t.files) == null ? void 0 : f[0]) ?? null;
|
|
69
|
-
}
|
|
70
|
-
async function y(i) {
|
|
71
|
-
switch (i) {
|
|
72
|
-
case "csv":
|
|
73
|
-
T();
|
|
74
|
-
break;
|
|
75
|
-
case "xlsx":
|
|
76
|
-
h();
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function T() {
|
|
81
|
-
const i = new Blob([s.join(",")], {
|
|
82
|
-
type: "text/csv;charset=utf-8;"
|
|
83
|
-
});
|
|
84
|
-
z.saveAs(i, "ImportMemberTemplate.csv");
|
|
85
|
-
}
|
|
86
|
-
function h() {
|
|
87
|
-
const i = g.aoa_to_sheet([s]), t = g.book_new();
|
|
88
|
-
g.book_append_sheet(t, i, "Sheet1"), j(t, "ImportMemberTemplate.xlsx");
|
|
89
|
-
}
|
|
90
|
-
return P(c, () => {
|
|
91
|
-
v({ file: c.value, config: w.value });
|
|
92
|
-
}), (i, t) => {
|
|
93
|
-
const f = m("FmSwitch"), k = m("FmButton"), o = m("FmMenuItem"), l = m("FmMenu"), r = m("FmDropField");
|
|
94
|
-
return x(), C(R, null, [
|
|
95
|
-
b("div", K, [
|
|
96
|
-
t[3] || (t[3] = b("div", { class: "fm-typo-en-body-lg-600" }, "Advanced Setting", -1)),
|
|
97
|
-
u(f, {
|
|
98
|
-
"model-value": n(w).resetCollectionExpiryBalance ?? !0,
|
|
99
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) => n(w).resetCollectionExpiryBalance = e),
|
|
100
|
-
label: "Replace Existing Free Credit",
|
|
101
|
-
sublabel: "When enabled, this will clear existing free credit and replace with new values from the import.",
|
|
102
|
-
"label-placement": "right"
|
|
103
|
-
}, null, 8, ["model-value"])
|
|
104
|
-
]),
|
|
105
|
-
b("div", X, [
|
|
106
|
-
u(l, null, {
|
|
107
|
-
"menu-button": M(() => [
|
|
108
|
-
u(k, {
|
|
109
|
-
variant: "tertiary",
|
|
110
|
-
icon: "download",
|
|
111
|
-
label: "Download Template"
|
|
112
|
-
})
|
|
113
|
-
]),
|
|
114
|
-
default: M(() => [
|
|
115
|
-
(x(), C(R, null, $(p, (e) => u(o, {
|
|
116
|
-
key: e.value,
|
|
117
|
-
icon: e.icon,
|
|
118
|
-
label: e.label,
|
|
119
|
-
onClick: (B) => y(e.value),
|
|
120
|
-
selectable: ""
|
|
121
|
-
}, null, 8, ["icon", "label", "onClick"])), 64))
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
})
|
|
125
|
-
]),
|
|
126
|
-
n(c) ? (x(), C("div", Z, [
|
|
127
|
-
u(k, {
|
|
128
|
-
variant: n(S).Tertiary,
|
|
129
|
-
"prepend-icon": "attach_file"
|
|
130
|
-
}, null, 8, ["variant"]),
|
|
131
|
-
b("p", ee, O(n(c).name), 1),
|
|
132
|
-
b("label", {
|
|
133
|
-
ref_key: "fileLabelRef",
|
|
134
|
-
ref: _,
|
|
135
|
-
htmlFor: "file"
|
|
136
|
-
}, [
|
|
137
|
-
u(k, {
|
|
138
|
-
variant: n(S).Plain,
|
|
139
|
-
label: n(a)("Replace File"),
|
|
140
|
-
onClick: t[2] || (t[2] = () => {
|
|
141
|
-
var e;
|
|
142
|
-
return (e = n(_)) == null ? void 0 : e.click();
|
|
143
|
-
})
|
|
144
|
-
}, null, 8, ["variant", "label"]),
|
|
145
|
-
b("input", {
|
|
146
|
-
id: "file",
|
|
147
|
-
accept: ".csv, .xlsx",
|
|
148
|
-
class: "hidden",
|
|
149
|
-
type: "file",
|
|
150
|
-
multiple: "",
|
|
151
|
-
onChange: d
|
|
152
|
-
}, null, 32)
|
|
153
|
-
], 512)
|
|
154
|
-
])) : (x(), D(r, {
|
|
155
|
-
key: 0,
|
|
156
|
-
onFileUpload: t[1] || (t[1] = (e) => c.value = e),
|
|
157
|
-
accept: ".csv, .xlsx",
|
|
158
|
-
"max-file-size": 5e6
|
|
159
|
-
}))
|
|
160
|
-
], 64);
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
}), ne = { class: "px-24 flex flex-col gap-y-16 pb-24" }, ye = /* @__PURE__ */ L({
|
|
164
|
-
__name: "Member",
|
|
165
|
-
setup(V) {
|
|
166
|
-
var t, f, k;
|
|
167
|
-
const a = W(), { t: v } = N(), c = J(), _ = Q(), w = G();
|
|
168
|
-
v("connect.loyalty.member.import"), v("connect.navigation.queue");
|
|
169
|
-
const s = [
|
|
170
|
-
{
|
|
171
|
-
label: v("connect.loyalty.member.tabs.member_list"),
|
|
172
|
-
value: E["$connect-LOYALTY_MEMBER_LIST"],
|
|
173
|
-
actions: (k = (f = (t = w.sessionUser) == null ? void 0 : t.value) == null ? void 0 : f.role) != null && k.isAdmin ? [] : []
|
|
174
|
-
}
|
|
175
|
-
], p = Y(() => {
|
|
176
|
-
var l, r, e;
|
|
177
|
-
return a.currentRoute.value.name != E["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
|
|
178
|
-
title: d.value.label,
|
|
179
|
-
actions: d.value.actions,
|
|
180
|
-
description: void 0
|
|
181
|
-
} : (d.value = s[1], {
|
|
182
|
-
backButton: !0,
|
|
183
|
-
title: v("connect.loyalty.member.title"),
|
|
184
|
-
actions: [],
|
|
185
|
-
description: `${(l = y.value) == null ? void 0 : l.name} (${(r = y.value) == null ? void 0 : r._id}) (${(e = y.value) == null ? void 0 : e.phoneNumber})`,
|
|
186
|
-
onBackButton: async () => {
|
|
187
|
-
await a.push({ name: E["$connect-LOYALTY_MEMBER_LIST"] });
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
}), d = F(
|
|
191
|
-
s.find((o) => o.value === a.currentRoute.value.name) ?? s[0]
|
|
192
|
-
), y = F();
|
|
193
|
-
async function T(o) {
|
|
194
|
-
await a.push({ name: o });
|
|
195
|
-
}
|
|
196
|
-
async function h() {
|
|
197
|
-
c.open({
|
|
198
|
-
title: "Upload File",
|
|
199
|
-
closeButton: !0,
|
|
200
|
-
dismissAway: !1,
|
|
201
|
-
contentComponent: te,
|
|
202
|
-
primaryActions: { text: "Import", close: !1 }
|
|
203
|
-
}).onPrimary(async (o) => {
|
|
204
|
-
if (!o) {
|
|
205
|
-
_.open({
|
|
206
|
-
type: "error",
|
|
207
|
-
title: "Please upload a file"
|
|
208
|
-
});
|
|
209
|
-
return;
|
|
210
|
-
}
|
|
211
|
-
const { file: l, config: r } = o;
|
|
212
|
-
if (!l)
|
|
213
|
-
_.open({
|
|
214
|
-
type: "error",
|
|
215
|
-
title: "Please upload a file"
|
|
216
|
-
});
|
|
217
|
-
else {
|
|
218
|
-
const e = new FormData();
|
|
219
|
-
e.append("file", l), e.append("config", JSON.stringify(r)), await I.import(e), _.open({
|
|
220
|
-
type: "info",
|
|
221
|
-
title: "Import begins soon. Check Queue for updates.",
|
|
222
|
-
action: "View",
|
|
223
|
-
onAction: async () => {
|
|
224
|
-
await a.push({
|
|
225
|
-
name: E["$connect-QUEUE"],
|
|
226
|
-
query: { type: [A.enum.MEMBER_IMPORTED] }
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
}), c.close();
|
|
230
|
-
}
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
function i(o) {
|
|
234
|
-
switch (o) {
|
|
235
|
-
case "import":
|
|
236
|
-
h();
|
|
237
|
-
break;
|
|
238
|
-
case "queue":
|
|
239
|
-
a.push({
|
|
240
|
-
name: E["$connect-QUEUE"],
|
|
241
|
-
query: { type: [A.enum.MEMBER_IMPORTED] }
|
|
242
|
-
});
|
|
243
|
-
break;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
return P(
|
|
247
|
-
() => a.currentRoute.value.name,
|
|
248
|
-
async (o) => {
|
|
249
|
-
d.value = s.find((r) => r.value === o) ?? s[0];
|
|
250
|
-
const l = a.currentRoute.value.params.id;
|
|
251
|
-
l && (y.value = await I.readById(l));
|
|
252
|
-
},
|
|
253
|
-
{ immediate: !0 }
|
|
254
|
-
), (o, l) => {
|
|
255
|
-
const r = m("FmPageHead"), e = m("FmTabs"), B = m("RouterView");
|
|
256
|
-
return x(), C(R, null, [
|
|
257
|
-
u(r, {
|
|
258
|
-
actions: n(p).actions,
|
|
259
|
-
title: n(p).title,
|
|
260
|
-
description: n(p).description,
|
|
261
|
-
"back-button": n(p).backButton,
|
|
262
|
-
"onClick:back": n(p).onBackButton,
|
|
263
|
-
"onClick:action": i
|
|
264
|
-
}, null, 8, ["actions", "title", "description", "back-button", "onClick:back"]),
|
|
265
|
-
b("div", ne, [
|
|
266
|
-
n(a).currentRoute.value.name != n(E)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (x(), D(e, {
|
|
267
|
-
key: 0,
|
|
268
|
-
"model-value": n(d).value,
|
|
269
|
-
items: s,
|
|
270
|
-
"onUpdate:modelValue": T
|
|
271
|
-
}, null, 8, ["model-value"])) : q("", !0),
|
|
272
|
-
u(B)
|
|
273
|
-
])
|
|
274
|
-
], 64);
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
});
|
|
278
|
-
export {
|
|
279
|
-
ye as default
|
|
280
|
-
};
|