@feedmepos/mf-connect 0.1.98-beta.46 → 0.1.98-beta.49
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-DX5hNYdq.js → App-DpEetYST.js} +8 -8
- package/dist/{AuditLogs-mHXQ564w.js → AuditLogs-Cmo803hX.js} +10 -10
- package/dist/{Bin-BJZ_BMNI.js → Bin-DJfXzuaK.js} +8 -8
- package/dist/{Broadcast-DIKGv1-A.js → Broadcast-CNgV44yY.js} +11 -11
- package/dist/{CampaignAnalytic-CRG3ys5S.js → CampaignAnalytic-B2Rn2EJg.js} +6 -6
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DnSFhe_I.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Bns7bxjM.js} +7 -7
- package/dist/{Card-B3gnDfS7.js → Card-B2VUzTu-.js} +20 -20
- package/dist/{Collections-Cv1vBVoX.js → Collections-CND1NP87.js} +8 -8
- package/dist/{Credit-BLShYSWf.js → Credit-DVwWQVhX.js} +12 -12
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-u4meW2NQ.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BAkLmXrV.js} +34 -35
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-w-W78u2c.js → EffectSheet.vue_vue_type_style_index_0_lang-C_iJZVqp.js} +16 -16
- package/dist/{Experience-BwVJpeNX.js → Experience-byIWULhh.js} +12 -12
- package/dist/{FileSaver.min-DmEepxKi.js → FileSaver.min-CaXtjHRv.js} +1 -1
- package/dist/{Game-q1or_U4f.js → Game-tzliFFnf.js} +13 -13
- package/dist/{GiftCardSetup-CVwl7Xvu.js → GiftCardSetup-CUZn8cQ_.js} +9 -9
- package/dist/{Grab-BYxd3LMm.js → Grab-Bj955oc2.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-C5UWFkZq.js → ImageInput.vue_vue_type_script_setup_true_lang-DM6s0VaT.js} +1 -1
- package/dist/{Index-qlVRiwB_.js → Index-qie7NJrQ.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DiI_6s7R.js → LocationPicker.vue_vue_type_script_setup_true_lang-DN_0AboA.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DbqW78d2.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CrDegDYa.js} +1 -1
- package/dist/LoyaltyDashboard-D_SjNwRv.js +2218 -0
- package/dist/{MainLayout-CSwcQUla.js → MainLayout-B4LQ7fj3.js} +3 -3
- package/dist/{Marketing-DbJnSVzS.js → Marketing-BP2jjkGw.js} +4 -4
- package/dist/{MarketingMaterialEdit-CeQlZGni.js → MarketingMaterialEdit-BDP-tlCV.js} +6 -6
- package/dist/Member-BIT0lu05.js +642 -0
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-CmR5L_FZ.js +1287 -0
- package/dist/MemberImportHistory-CXq5k3za.js +187 -0
- package/dist/MemberList-DgQrAUhF.js +336 -0
- package/dist/{MemberTransactions-CdVatR9e.js → MemberTransactions-SD0EK9MQ.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BupsL_ri.js → MessageInput.vue_vue_type_script_setup_true_lang-B_P--gRo.js} +10 -10
- package/dist/{Mission-C9IqGiDI.js → Mission-Dcc8TywU.js} +13 -13
- package/dist/{Overview-XshwtoKB.js → Overview-2n-3zYgT.js} +3 -3
- package/dist/{Overview-DEp_GpnT.js → Overview-ClsCoDwC.js} +19 -19
- package/dist/{Point-CTgCH5ww.js → Point-yoPNIfen.js} +12 -12
- package/dist/{Promotion-Cz0ILEA5.js → Promotion-Bo8fwRxo.js} +13 -13
- package/dist/{Queue-BTB-C-m9.js → Queue-DOMCJIfy.js} +11 -11
- package/dist/{Record-BglzH9E_.js → Record-B_GFsmRS.js} +9 -9
- package/dist/{Review-CeG0VBlj.js → Review-D-UnLgKx.js} +2 -2
- package/dist/{ReviewFacebookCallback-k5luFa74.js → ReviewFacebookCallback-CSkzBR52.js} +5 -5
- package/dist/{ReviewGoogleCallback-BM8aUDcD.js → ReviewGoogleCallback-DXW6TAxP.js} +5 -5
- package/dist/{Reward-CosruSnZ.js → Reward-CqNDQ5fM.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-gTKCJEDQ.js → RewardGroup.vue_vue_type_script_setup_true_lang-CZPtIroB.js} +12 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-sZDzblfZ.js → RuleGroup.vue_vue_type_script_setup_true_lang-xzJ738TT.js} +15 -15
- package/dist/{Segment-b0sjn0Ht.js → Segment-B3keIMfg.js} +33 -34
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Dh06v51H.js → SelectItems.vue_vue_type_script_setup_true_lang-B1IbP3lO.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CYEzN-ja.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BvrNFNDo.js} +13 -13
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Bvdzs94r.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BtJyfV2S.js} +4 -4
- package/dist/{Setting-C1f9yHcb.js → Setting-CUf7r25C.js} +14 -14
- package/dist/{SettingAdvertisements-BSpiKy7v.js → SettingAdvertisements-BnfH2GWe.js} +12 -12
- package/dist/{Settings-h2K8CcjU.js → Settings-CVyEvBdL.js} +5 -5
- package/dist/{Store-C7qKJO1_.js → Store-yJsGBJjp.js} +24 -24
- package/dist/{StoreRewards-BhWbUnaP.js → StoreRewards-E009h_Ki.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-C8dxa_j1.js → StoreTransactions.vue_vue_type_script_setup_true_lang-dFIK3_9i.js} +22 -22
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-OEdu52e8.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BWytuBNh.js} +2 -2
- package/dist/{Tier-kH0FTUdH.js → Tier-D6l8QcgM.js} +25 -25
- package/dist/{Title-B9fQWpgB.js → Title-CKdZ_ulb.js} +22 -22
- package/dist/{Transaction-CAtGFUZ8.js → Transaction-CHzWDrMp.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-L2dPD3nb.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-D5-CNeZh.js} +6 -6
- package/dist/{Voucher-BDZmikj-.js → Voucher-g84i_O99.js} +14 -14
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BAOcPygI.js → VoucherEditor.vue_vue_type_script_setup_true_lang-HofDeLRx.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DaWuGWEn.js → ZodTextField.vue_vue_type_script_setup_true_lang-B2QIFX1P.js} +2 -2
- package/dist/{app-BIGPr1BQ.js → app-CVfoAVMp.js} +467 -447
- package/dist/app.js +1 -1
- package/dist/{business-C1ztrtzd.js → business-DZUUnIjL.js} +5 -5
- package/dist/{campaign-D17yaHo7.js → campaign-BIbDOJuM.js} +8 -8
- package/dist/{campaign-BFJC-o2t.js → campaign-CI_rZpSy.js} +2 -2
- package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BBJZPv79.js} +1 -1
- package/dist/{campaign.fn-6Ul0G_eo.js → campaign.fn-BSKTKKn_.js} +39 -39
- package/dist/{collectible.enum-Liy2wH3s.js → collectible.enum-Bpd7su_n.js} +1 -1
- package/dist/{collection.fn-CgJirF44.js → collection.fn-CGLzb4iJ.js} +2 -2
- package/dist/{duplicateCampaign-Bguk2VhU.js → duplicateCampaign-DvYTuIU-.js} +2 -2
- package/dist/{effect-Agn00g7v.js → effect-DeuwDSDb.js} +1 -1
- package/dist/{email-addresses--b6ZRMp5.js → email-addresses-CXSJ6d0R.js} +2 -2
- package/dist/{export-CZO7WdRK.js → export-DMrK_zVs.js} +3 -3
- package/dist/{helper-1LMLYuOT.js → helper-CuwR4Iok.js} +1 -1
- package/dist/{index-JlyOHqyG.js → index-BGM2LdBN.js} +3 -3
- package/dist/index-BIE7IDVs.js +137 -0
- package/dist/{index-a9a0E67J.js → index-BnF40VHU.js} +1 -1
- package/dist/{index-BjaSmxp0.js → index-Br-IwWs2.js} +7 -7
- package/dist/{index-u4XmN7tA.js → index-BsGpbfSM.js} +1 -1
- package/dist/{index-Bqah4gFm.js → index-BsL2fRDR.js} +82 -83
- package/dist/{index-DLUkLGMO.js → index-BtCff_X4.js} +14 -14
- package/dist/{index-ULSqCLHU.js → index-CVshuS9x.js} +5 -4
- package/dist/{index-BVvOGOL3.js → index-CmXN0dX2.js} +273 -273
- package/dist/{index-w-02c2Sb.js → index-CsKzQMVH.js} +10766 -8027
- package/dist/{index-Czli6YCc.js → index-D0RwTeSK.js} +7 -8
- package/dist/{index-C_F0JxFs.js → index-Di34zXvz.js} +1 -1
- package/dist/{index-BVls8ERM.js → index-DtlEsLvC.js} +1 -1
- package/dist/{index-DNSEyYgh.js → index-KJ9fWfKI.js} +2 -2
- package/dist/{index-Cd-tJwMs.js → index-Z1kANjy2.js} +1 -1
- package/dist/{index-q90FGGn5.js → index-mkULcMHp.js} +1 -1
- package/dist/{index-Bxp7-J4q.js → index-ux77Q19k.js} +24 -25
- package/dist/{index-B2HcSYJy.js → index-v0Wp7wZh.js} +11 -12
- package/dist/{index.esm2017-1tPNvAVS.js → index.esm2017-7ccdC84w.js} +132 -132
- package/dist/{loading-BnW9omqu.js → loading-CRmkbq3n.js} +1 -1
- package/dist/{lodash-CHIHYyCv.js → lodash-Bc-ryXNQ.js} +1 -1
- package/dist/member-import-DlkhFBuH.js +143 -0
- package/dist/{membership-ByX0MwV6.js → membership-B26RzkXD.js} +3 -3
- package/dist/{money-DT26h-9c.js → money-DQctndhn.js} +1 -1
- package/dist/{number-CLRlA2Ph.js → number-Bf6ikkos.js} +1 -1
- package/dist/objectid-rBYoX-d0.js +145 -0
- package/dist/{plugins-CqkgKVsK.js → plugins-C67nSbj6.js} +3 -3
- package/dist/{reward-DoYj0TRD.js → reward-C43tP4ms.js} +1 -1
- package/dist/{rule-builder-CnqLXEzT.js → rule-builder-C8VKx9qo.js} +1 -1
- package/dist/{rule-BfzfFw7G.js → rule-ferkW3Tn.js} +3 -3
- package/dist/{template-DOuh3jrd.js → template-6TQsSBnV.js} +6 -6
- package/dist/{timezone-CXUZ418k.js → timezone-CHLqfxGX.js} +1 -1
- package/dist/{transaction.fn-CpTfkivT.js → transaction.fn-Ck4GNkX8.js} +1 -1
- package/dist/{trigger-A20rfpV9.js → trigger-DW-HI3-m.js} +5 -5
- package/dist/{useMarketingMaterialActions-CCSX_Vu1.js → useMarketingMaterialActions-DgjXENGq.js} +3 -3
- package/dist/{usePagination-DElEO6kf.js → usePagination-DK5YxY0V.js} +1 -1
- package/dist/{user-DzTNLbUQ.js → user-CEgC8bHe.js} +1 -1
- package/dist/{vue-i18n-BxjnJjv4.js → vue-i18n-CVwaGWN7.js} +322 -322
- package/dist/{xlsx-B5E_HVo5.js → xlsx-BjSGml1D.js} +440 -440
- package/dist/{zod-DjcVp7VN.js → zod-CIM7JLfN.js} +1 -1
- package/package.json +3 -1
- package/dist/LoyaltyDashboard-gXkQ6yRd.js +0 -1345
- package/dist/Member-C0VVffcW.js +0 -281
- package/dist/MemberList-DKfVeadO.js +0 -1603
- package/dist/index-C_H8jFYf.js +0 -2743
- package/dist/index-DmBWoao-.js +0 -85
- package/dist/objectid-Bqi3tFbn.js +0 -145
package/dist/Member-C0VVffcW.js
DELETED
|
@@ -1,281 +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-a9a0E67J.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-BxjnJjv4.js";
|
|
5
|
-
import "./index-B2HcSYJy.js";
|
|
6
|
-
import "./index-BVvOGOL3.js";
|
|
7
|
-
import "./index-Bxp7-J4q.js";
|
|
8
|
-
import "./index-w-02c2Sb.js";
|
|
9
|
-
import { a as A } from "./index-Bqah4gFm.js";
|
|
10
|
-
import "./index-Czli6YCc.js";
|
|
11
|
-
import { u as g, w as j } from "./xlsx-B5E_HVo5.js";
|
|
12
|
-
import { F as z } from "./FileSaver.min-DmEepxKi.js";
|
|
13
|
-
import { useCoreStore as G } from "@feedmepos/mf-common";
|
|
14
|
-
import { useRouter as W } from "vue-router";
|
|
15
|
-
import { m as I } from "./index-DmBWoao-.js";
|
|
16
|
-
import { R as E } from "./app-BIGPr1BQ.js";
|
|
17
|
-
const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
18
|
-
key: 1,
|
|
19
|
-
class: /* @__PURE__ */ U([
|
|
20
|
-
"flex items-center",
|
|
21
|
-
"border border-fm-color-neutral-gray-300",
|
|
22
|
-
"p-16 space-x-16 rounded-md"
|
|
23
|
-
])
|
|
24
|
-
}, ee = { class: "fm-typo-en-body-lg-400 flex-1 truncate" }, te = /* @__PURE__ */ L({
|
|
25
|
-
__name: "ImportMemberDialog",
|
|
26
|
-
setup(V) {
|
|
27
|
-
const { t: a } = N(), { emitData: v } = H(), c = F(null), _ = F(null), w = F({
|
|
28
|
-
resetCollectionExpiryBalance: !0
|
|
29
|
-
}), s = [
|
|
30
|
-
"Id",
|
|
31
|
-
"Name",
|
|
32
|
-
"Phone",
|
|
33
|
-
"Email",
|
|
34
|
-
"Gender",
|
|
35
|
-
"CardNo",
|
|
36
|
-
"Birthday",
|
|
37
|
-
"Credit",
|
|
38
|
-
"CreditExpiryDate",
|
|
39
|
-
"Exp",
|
|
40
|
-
"Point",
|
|
41
|
-
"Tier",
|
|
42
|
-
"Titles",
|
|
43
|
-
"TotalTransaction",
|
|
44
|
-
"AvgSpent",
|
|
45
|
-
"TotalSpent",
|
|
46
|
-
"LastVisit",
|
|
47
|
-
"Feedback",
|
|
48
|
-
"LastSeasonTierEarned",
|
|
49
|
-
"LastSeasonPointEarned",
|
|
50
|
-
"JoinedAt",
|
|
51
|
-
"JoinedAtLocation",
|
|
52
|
-
"VisitFrequency"
|
|
53
|
-
], p = [
|
|
54
|
-
{
|
|
55
|
-
label: "CSV",
|
|
56
|
-
icon: "csv",
|
|
57
|
-
value: "csv"
|
|
58
|
-
/* csv */
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
label: "Excel",
|
|
62
|
-
icon: "description",
|
|
63
|
-
value: "xlsx"
|
|
64
|
-
/* xlsx */
|
|
65
|
-
}
|
|
66
|
-
];
|
|
67
|
-
async function d(i) {
|
|
68
|
-
var t, f;
|
|
69
|
-
c.value = ((f = (t = i.target) == null ? void 0 : t.files) == null ? void 0 : f[0]) ?? null;
|
|
70
|
-
}
|
|
71
|
-
async function y(i) {
|
|
72
|
-
switch (i) {
|
|
73
|
-
case "csv":
|
|
74
|
-
T();
|
|
75
|
-
break;
|
|
76
|
-
case "xlsx":
|
|
77
|
-
h();
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
function T() {
|
|
82
|
-
const i = new Blob([s.join(",")], {
|
|
83
|
-
type: "text/csv;charset=utf-8;"
|
|
84
|
-
});
|
|
85
|
-
z.saveAs(i, "ImportMemberTemplate.csv");
|
|
86
|
-
}
|
|
87
|
-
function h() {
|
|
88
|
-
const i = g.aoa_to_sheet([s]), t = g.book_new();
|
|
89
|
-
g.book_append_sheet(t, i, "Sheet1"), j(t, "ImportMemberTemplate.xlsx");
|
|
90
|
-
}
|
|
91
|
-
return P(c, () => {
|
|
92
|
-
v({ file: c.value, config: w.value });
|
|
93
|
-
}), (i, t) => {
|
|
94
|
-
const f = m("FmSwitch"), k = m("FmButton"), o = m("FmMenuItem"), l = m("FmMenu"), r = m("FmDropField");
|
|
95
|
-
return x(), C(R, null, [
|
|
96
|
-
b("div", K, [
|
|
97
|
-
t[3] || (t[3] = b("div", { class: "fm-typo-en-body-lg-600" }, "Advanced Setting", -1)),
|
|
98
|
-
u(f, {
|
|
99
|
-
"model-value": n(w).resetCollectionExpiryBalance ?? !0,
|
|
100
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) => n(w).resetCollectionExpiryBalance = e),
|
|
101
|
-
label: "Replace Existing Free Credit",
|
|
102
|
-
sublabel: "When enabled, this will clear existing free credit and replace with new values from the import.",
|
|
103
|
-
"label-placement": "right"
|
|
104
|
-
}, null, 8, ["model-value"])
|
|
105
|
-
]),
|
|
106
|
-
b("div", X, [
|
|
107
|
-
u(l, null, {
|
|
108
|
-
"menu-button": M(() => [
|
|
109
|
-
u(k, {
|
|
110
|
-
variant: "tertiary",
|
|
111
|
-
icon: "download",
|
|
112
|
-
label: "Download Template"
|
|
113
|
-
})
|
|
114
|
-
]),
|
|
115
|
-
default: M(() => [
|
|
116
|
-
(x(), C(R, null, $(p, (e) => u(o, {
|
|
117
|
-
key: e.value,
|
|
118
|
-
icon: e.icon,
|
|
119
|
-
label: e.label,
|
|
120
|
-
onClick: (B) => y(e.value),
|
|
121
|
-
selectable: ""
|
|
122
|
-
}, null, 8, ["icon", "label", "onClick"])), 64))
|
|
123
|
-
]),
|
|
124
|
-
_: 1
|
|
125
|
-
})
|
|
126
|
-
]),
|
|
127
|
-
n(c) ? (x(), C("div", Z, [
|
|
128
|
-
u(k, {
|
|
129
|
-
variant: n(S).Tertiary,
|
|
130
|
-
"prepend-icon": "attach_file"
|
|
131
|
-
}, null, 8, ["variant"]),
|
|
132
|
-
b("p", ee, O(n(c).name), 1),
|
|
133
|
-
b("label", {
|
|
134
|
-
ref_key: "fileLabelRef",
|
|
135
|
-
ref: _,
|
|
136
|
-
htmlFor: "file"
|
|
137
|
-
}, [
|
|
138
|
-
u(k, {
|
|
139
|
-
variant: n(S).Plain,
|
|
140
|
-
label: n(a)("Replace File"),
|
|
141
|
-
onClick: t[2] || (t[2] = () => {
|
|
142
|
-
var e;
|
|
143
|
-
return (e = n(_)) == null ? void 0 : e.click();
|
|
144
|
-
})
|
|
145
|
-
}, null, 8, ["variant", "label"]),
|
|
146
|
-
b("input", {
|
|
147
|
-
id: "file",
|
|
148
|
-
accept: ".csv, .xlsx",
|
|
149
|
-
class: "hidden",
|
|
150
|
-
type: "file",
|
|
151
|
-
multiple: "",
|
|
152
|
-
onChange: d
|
|
153
|
-
}, null, 32)
|
|
154
|
-
], 512)
|
|
155
|
-
])) : (x(), D(r, {
|
|
156
|
-
key: 0,
|
|
157
|
-
onFileUpload: t[1] || (t[1] = (e) => c.value = e),
|
|
158
|
-
accept: ".csv, .xlsx",
|
|
159
|
-
"max-file-size": 5e6
|
|
160
|
-
}))
|
|
161
|
-
], 64);
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
}), ne = { class: "px-24 flex flex-col gap-y-16 pb-24" }, ke = /* @__PURE__ */ L({
|
|
165
|
-
__name: "Member",
|
|
166
|
-
setup(V) {
|
|
167
|
-
var t, f, k;
|
|
168
|
-
const a = W(), { t: v } = N(), c = J(), _ = Q(), w = G();
|
|
169
|
-
v("connect.loyalty.member.import"), v("connect.navigation.queue");
|
|
170
|
-
const s = [
|
|
171
|
-
{
|
|
172
|
-
label: v("connect.loyalty.member.tabs.member_list"),
|
|
173
|
-
value: E["$connect-LOYALTY_MEMBER_LIST"],
|
|
174
|
-
actions: (k = (f = (t = w.sessionUser) == null ? void 0 : t.value) == null ? void 0 : f.role) != null && k.isAdmin ? [] : []
|
|
175
|
-
}
|
|
176
|
-
], p = Y(() => {
|
|
177
|
-
var l, r, e;
|
|
178
|
-
return a.currentRoute.value.name != E["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
|
|
179
|
-
title: d.value.label,
|
|
180
|
-
actions: d.value.actions,
|
|
181
|
-
description: void 0
|
|
182
|
-
} : (d.value = s[1], {
|
|
183
|
-
backButton: !0,
|
|
184
|
-
title: v("connect.loyalty.member.title"),
|
|
185
|
-
actions: [],
|
|
186
|
-
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})`,
|
|
187
|
-
onBackButton: async () => {
|
|
188
|
-
await a.push({ name: E["$connect-LOYALTY_MEMBER_LIST"] });
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
}), d = F(
|
|
192
|
-
s.find((o) => o.value === a.currentRoute.value.name) ?? s[0]
|
|
193
|
-
), y = F();
|
|
194
|
-
async function T(o) {
|
|
195
|
-
await a.push({ name: o });
|
|
196
|
-
}
|
|
197
|
-
async function h() {
|
|
198
|
-
c.open({
|
|
199
|
-
title: "Upload File",
|
|
200
|
-
closeButton: !0,
|
|
201
|
-
dismissAway: !1,
|
|
202
|
-
contentComponent: te,
|
|
203
|
-
primaryActions: { text: "Import", close: !1 }
|
|
204
|
-
}).onPrimary(async (o) => {
|
|
205
|
-
if (!o) {
|
|
206
|
-
_.open({
|
|
207
|
-
type: "error",
|
|
208
|
-
title: "Please upload a file"
|
|
209
|
-
});
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
const { file: l, config: r } = o;
|
|
213
|
-
if (!l)
|
|
214
|
-
_.open({
|
|
215
|
-
type: "error",
|
|
216
|
-
title: "Please upload a file"
|
|
217
|
-
});
|
|
218
|
-
else {
|
|
219
|
-
const e = new FormData();
|
|
220
|
-
e.append("file", l), e.append("config", JSON.stringify(r)), await I.import(e), _.open({
|
|
221
|
-
type: "info",
|
|
222
|
-
title: "Import begins soon. Check Queue for updates.",
|
|
223
|
-
action: "View",
|
|
224
|
-
onAction: async () => {
|
|
225
|
-
await a.push({
|
|
226
|
-
name: E["$connect-QUEUE"],
|
|
227
|
-
query: { type: [A.enum.MEMBER_IMPORTED] }
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
}), c.close();
|
|
231
|
-
}
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
function i(o) {
|
|
235
|
-
switch (o) {
|
|
236
|
-
case "import":
|
|
237
|
-
h();
|
|
238
|
-
break;
|
|
239
|
-
case "queue":
|
|
240
|
-
a.push({
|
|
241
|
-
name: E["$connect-QUEUE"],
|
|
242
|
-
query: { type: [A.enum.MEMBER_IMPORTED] }
|
|
243
|
-
});
|
|
244
|
-
break;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
return P(
|
|
248
|
-
() => a.currentRoute.value.name,
|
|
249
|
-
async (o) => {
|
|
250
|
-
d.value = s.find((r) => r.value === o) ?? s[0];
|
|
251
|
-
const l = a.currentRoute.value.params.id;
|
|
252
|
-
l && (y.value = await I.readById(l));
|
|
253
|
-
},
|
|
254
|
-
{ immediate: !0 }
|
|
255
|
-
), (o, l) => {
|
|
256
|
-
const r = m("FmPageHead"), e = m("FmTabs"), B = m("RouterView");
|
|
257
|
-
return x(), C(R, null, [
|
|
258
|
-
u(r, {
|
|
259
|
-
actions: n(p).actions,
|
|
260
|
-
title: n(p).title,
|
|
261
|
-
description: n(p).description,
|
|
262
|
-
"back-button": n(p).backButton,
|
|
263
|
-
"onClick:back": n(p).onBackButton,
|
|
264
|
-
"onClick:action": i
|
|
265
|
-
}, null, 8, ["actions", "title", "description", "back-button", "onClick:back"]),
|
|
266
|
-
b("div", ne, [
|
|
267
|
-
n(a).currentRoute.value.name != n(E)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (x(), D(e, {
|
|
268
|
-
key: 0,
|
|
269
|
-
"model-value": n(d).value,
|
|
270
|
-
items: s,
|
|
271
|
-
"onUpdate:modelValue": T
|
|
272
|
-
}, null, 8, ["model-value"])) : q("", !0),
|
|
273
|
-
u(B)
|
|
274
|
-
])
|
|
275
|
-
], 64);
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
|
-
export {
|
|
280
|
-
ke as default
|
|
281
|
-
};
|