@feedmepos/mf-connect 0.0.16-beta.1 → 0.0.16-beta.11
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-C-zZmF5N.js → Analytic-Gq7PoNer.js} +368 -365
- package/dist/App-Cikl5jnp.js +177 -0
- package/dist/Broadcast-DU3JnBwZ.js +223 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-VWLBlxy1.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D0I8IZIR.js} +20 -20
- package/dist/Card-hIeQ5XUH.js +825 -0
- package/dist/Collections-B1SC1rr7.js +453 -0
- package/dist/Credit-BgwI8DR3.js +216 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bz6TSmbW.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D9VR3P2d.js} +1026 -1022
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-AhWnHG02.js → EffectSheet.vue_vue_type_style_index_0_lang-DPgu45MD.js} +29 -29
- package/dist/Experience-C2Q-zqV6.js +221 -0
- package/dist/Game-DU2pZDGk.js +255 -0
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
- package/dist/JsonViewer-v8_C7l5N.js +87 -0
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DykNOOFD.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js} +1 -1
- package/dist/{MainLayout-D0AoA1tk.js → MainLayout-B1aJoR95.js} +2 -2
- package/dist/Marketing-DWiTQp9I.js +316 -0
- package/dist/Member-BEXKBFry.js +69 -0
- package/dist/MemberList-DzMdajIf.js +1733 -0
- package/dist/MemberOverview-wL_ailso.js +58 -0
- package/dist/{MemberTransactions-CTAx5jIV.js → MemberTransactions-Bciankuu.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-C-BtHxSc.js → MessageInput.vue_vue_type_script_setup_true_lang-DH25Hfk3.js} +46 -46
- package/dist/Mission-KzwRlaA5.js +259 -0
- package/dist/Point-CSKvZXHc.js +222 -0
- package/dist/Promotion-IiwPhx8p.js +221 -0
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CrpJySSp.js → RuleGroup.vue_vue_type_script_setup_true_lang-4zIO3oCr.js} +545 -544
- package/dist/Segment-2Q0PonBb.js +447 -0
- package/dist/{Setting-Zrj5P_4m.js → Setting-Df5vVRt4.js} +600 -598
- package/dist/Store-C0WXCKs6.js +1503 -0
- package/dist/StoreRewards-eSSIO0nk.js +401 -0
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DS4APaHw.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BjnCRKGX.js} +106 -108
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-ZYjWlDJ1.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-b0xTcoEp.js} +1 -1
- package/dist/{Tier-DVWJyQ9S.js → Tier-v-1FkRU-.js} +464 -449
- package/dist/{Title-B5kX64vs.js → Title-CQ2JWqBW.js} +315 -299
- package/dist/Transaction-0OouN_6s.js +39 -0
- package/dist/Voucher-CL0cgogx.js +488 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/app-Bd19eW7X.js +5381 -0
- package/dist/app-CfS25Z66.js +34797 -0
- package/dist/app-wDQR6dpb.js +39 -0
- package/dist/app.js +5 -3
- package/dist/business-dQh3AEot.js +78 -0
- package/dist/{campaign-BZJuknWK.js → campaign-BOl8AgKA.js} +12 -12
- package/dist/{collection.fn-DoCkZ6z4.js → collection.fn-B_YsXmrP.js} +2 -2
- package/dist/dto-B8NfyVPG.js +1169 -0
- package/dist/{effect-B8kmnKvY.js → effect-C2jCStXO.js} +1 -1
- package/dist/{export-Dm6LYnWo.js → export-BtZc3Yzh.js} +3 -3
- package/dist/{helper-DR4XK3nv.js → helper-8oGsrM56.js} +1 -1
- package/dist/{index-DcUrk07Q.js → index-6FkKY3q0.js} +3 -3
- package/dist/{index-Bu4_26qI.js → index-C7oeXRUl.js} +1 -1
- package/dist/{index-CuL5-ORK.js → index-CZKYIefW.js} +6 -7
- package/dist/{index-yxJMhfxj.js → index-C_0IFnwi.js} +5 -5
- package/dist/{index-BryrRq8O.js → index-DCixRRvz.js} +36 -30
- package/dist/{index-CkiYkbXb.js → index-DFgt4-VW.js} +1 -1
- package/dist/{index-CWf0mh3a.js → index-DYDhH9bi.js} +177 -168
- package/dist/{index-boor8e80.js → index-Di-kWSmf.js} +3 -3
- package/dist/{app-DkI7dYRN.js → index-Dn0jdj0o.js} +9665 -13024
- package/dist/index-DwKqFNF6.js +3 -0
- package/dist/{index-BobRgQrE.js → index-HoacsZDk.js} +2 -2
- package/dist/{index-BxkxVtgm.js → index-UTQHDUdW.js} +1 -1
- package/dist/{loading-BzV5acUX.js → loading-D_AN6p24.js} +6807 -6805
- package/dist/{lodash-mg4435Qq.js → lodash-B5I3zXaY.js} +1 -1
- package/dist/{membership-CqbsLHqx.js → membership-Ccrx9R6r.js} +3 -3
- package/dist/{money-DA_gtp3q.js → money-waD-f-Zz.js} +1 -1
- package/dist/{number-C388eyOu.js → number-CwTGGsh9.js} +1 -1
- package/dist/{rule-Clmr5y4j.js → rule-DJ07h3Gh.js} +2 -2
- package/dist/{rule-builder-BgqNbM-P.js → rule-builder-DJ-acvVD.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/template-clxvNnbF.js +190 -0
- package/dist/{usePagination-o5fgsZwU.js → usePagination-BeF5K3M7.js} +86 -86
- package/dist/vue-i18n-BxwiXSkp.js +2365 -0
- package/dist/{xlsx-BRdh9e2p.js → xlsx-BB366cdN.js} +1945 -1945
- package/package.json +9 -5
- package/dist/Broadcast-X69Mtv3b.js +0 -216
- package/dist/Card-D0X3v1UF.js +0 -822
- package/dist/Collections-umR6Ehqf.js +0 -452
- package/dist/Credit-C1EWF7R0.js +0 -214
- package/dist/Experience-CqL8wyPm.js +0 -211
- package/dist/Game--kYe64EV.js +0 -250
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-BjOJ3XSL.js +0 -144
- package/dist/Marketing-CTCQ5ZmZ.js +0 -308
- package/dist/Member-DCduX7zP.js +0 -91
- package/dist/MemberList-B0EkXZJu.js +0 -1729
- package/dist/MemberOverview-C2n9oJZh.js +0 -58
- package/dist/Mission-CVr9rS_D.js +0 -248
- package/dist/Point-BnZ6M74y.js +0 -220
- package/dist/Promotion-B0PUve5S.js +0 -218
- package/dist/Segment-B-XpkyM5.js +0 -445
- package/dist/Store-B2gywCt2.js +0 -1503
- package/dist/StoreRewards-D8410Q_-.js +0 -434
- package/dist/Transaction-CZBO4v4d.js +0 -36
- package/dist/Voucher-se-4JF9B.js +0 -481
- package/dist/app-B2ImSO3V.js +0 -53382
- package/dist/dto-BWpvRpK2.js +0 -1151
- package/dist/template-Dwp7heBA.js +0 -190
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
import { openBlock as c, createElementBlock as u, defineComponent as D, ref as b, onMounted as z, computed as $, resolveComponent as l, Fragment as C, createVNode as r, unref as d, createElementVNode as o, withCtx as x, renderList as Y, createBlock as A, toDisplayString as B, createCommentVNode as H, h as G } from "vue";
|
|
2
|
-
import { _ as J } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { components as j } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as q, p as X } from "./loading-BzV5acUX.js";
|
|
5
|
-
import { defineStore as Q } from "pinia";
|
|
6
|
-
import { F } from "./index-CkiYkbXb.js";
|
|
7
|
-
import { useCoreStore as W } from "@feedmepos/mf-common";
|
|
8
|
-
import { d as y, S as Z, f as ee, _ as te } from "./app-DkI7dYRN.js";
|
|
9
|
-
import { u as ae } from "./campaign-BZJuknWK.js";
|
|
10
|
-
import { h as ne } from "./moment-BWErdI6_.js";
|
|
11
|
-
var oe = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedmedev.cc", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", marketingV1Portal: "https://marketing-v1.feedmedev.cc" };
|
|
12
|
-
const h = () => {
|
|
13
|
-
const n = Z.getBusinessId();
|
|
14
|
-
if (!n) throw new Error("Invalid business ID");
|
|
15
|
-
return ee(`businesses/${n}/marketing-materials/`, {
|
|
16
|
-
url: oe.backendUrl,
|
|
17
|
-
noIdRequired: !0
|
|
18
|
-
});
|
|
19
|
-
}, N = {
|
|
20
|
-
async read() {
|
|
21
|
-
return y(await h().get(""));
|
|
22
|
-
},
|
|
23
|
-
async createMarketing(n) {
|
|
24
|
-
return y(await h().post("", n));
|
|
25
|
-
},
|
|
26
|
-
// add id
|
|
27
|
-
async updateMarketing(n, s) {
|
|
28
|
-
return y(
|
|
29
|
-
await h().put(n, s)
|
|
30
|
-
);
|
|
31
|
-
},
|
|
32
|
-
async deleteMarketing(n) {
|
|
33
|
-
return y(await h().delete(n));
|
|
34
|
-
}
|
|
35
|
-
}, S = Q("mf-connect-marketing", {
|
|
36
|
-
state: () => {
|
|
37
|
-
var n, s;
|
|
38
|
-
return {
|
|
39
|
-
marketing: [],
|
|
40
|
-
defaultMarketing: {
|
|
41
|
-
_id: void 0,
|
|
42
|
-
business: ((s = (n = W().currentBusiness) == null ? void 0 : n.value) == null ? void 0 : s._id) ?? "",
|
|
43
|
-
name: "",
|
|
44
|
-
campaign: null,
|
|
45
|
-
keywords: "",
|
|
46
|
-
image: "",
|
|
47
|
-
headline: {
|
|
48
|
-
content: "",
|
|
49
|
-
key: void 0
|
|
50
|
-
},
|
|
51
|
-
assets: [
|
|
52
|
-
{
|
|
53
|
-
platform: F.enum.FACEBOOK,
|
|
54
|
-
contents: [
|
|
55
|
-
{
|
|
56
|
-
type: "POST",
|
|
57
|
-
size: {
|
|
58
|
-
width: 1920,
|
|
59
|
-
height: 1080
|
|
60
|
-
},
|
|
61
|
-
images: []
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
type: "STORY",
|
|
65
|
-
size: {
|
|
66
|
-
width: 1080,
|
|
67
|
-
height: 1920
|
|
68
|
-
},
|
|
69
|
-
images: []
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
platform: F.enum.INSTAGRAM,
|
|
75
|
-
contents: [
|
|
76
|
-
{
|
|
77
|
-
type: "POST",
|
|
78
|
-
size: {
|
|
79
|
-
width: 1080,
|
|
80
|
-
height: 1080
|
|
81
|
-
},
|
|
82
|
-
images: []
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
type: "STORY",
|
|
86
|
-
size: {
|
|
87
|
-
width: 1080,
|
|
88
|
-
height: 1920
|
|
89
|
-
},
|
|
90
|
-
images: []
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
type: "REEL",
|
|
94
|
-
size: {
|
|
95
|
-
width: 1080,
|
|
96
|
-
height: 1920
|
|
97
|
-
},
|
|
98
|
-
images: []
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
platform: F.enum.BRAND_APP,
|
|
104
|
-
contents: [
|
|
105
|
-
{
|
|
106
|
-
type: "IMAGE",
|
|
107
|
-
size: {
|
|
108
|
-
width: 1080,
|
|
109
|
-
height: 1920
|
|
110
|
-
},
|
|
111
|
-
images: []
|
|
112
|
-
}
|
|
113
|
-
]
|
|
114
|
-
}
|
|
115
|
-
],
|
|
116
|
-
captions: [{ language: "en", content: "" }]
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
},
|
|
120
|
-
actions: {
|
|
121
|
-
async readMarketingMaterial() {
|
|
122
|
-
const n = await N.read();
|
|
123
|
-
this.marketing = n;
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
getters: {
|
|
127
|
-
state(n) {
|
|
128
|
-
return n;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}), re = {};
|
|
132
|
-
function se(n, s) {
|
|
133
|
-
return c(), u("div");
|
|
134
|
-
}
|
|
135
|
-
const ie = /* @__PURE__ */ te(re, [["render", se]]), le = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-center justify-between w-full" }, de = { class: "space-y-8" }, me = { class: "fm-typo-en-body-lg-600" }, ue = { class: "fm-typo-en-body-lg-600" }, pe = { key: 0 }, ge = /* @__PURE__ */ o("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1), fe = [
|
|
136
|
-
ge
|
|
137
|
-
], ye = /* @__PURE__ */ o("img", {
|
|
138
|
-
src: J,
|
|
139
|
-
class: "w-[150px]"
|
|
140
|
-
}, null, -1), he = /* @__PURE__ */ o("p", { class: "fm-typo-en-title-sm-800" }, "Create marketing material", -1), _e = /* @__PURE__ */ o("p", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary w-4/6 text-center" }, " Boost your marketing efforts effortlessly with our AI-powered tools. Generate stunning images and captivating captions for your desired platform. ", -1), Oe = /* @__PURE__ */ D({
|
|
141
|
-
__name: "Marketing",
|
|
142
|
-
setup(n) {
|
|
143
|
-
const s = {
|
|
144
|
-
label: "Create marketing material",
|
|
145
|
-
value: "create",
|
|
146
|
-
isPrimary: !0,
|
|
147
|
-
prependIcon: "add"
|
|
148
|
-
}, p = b(!1), _ = S(), k = ae(), { global: P, minor: T } = q;
|
|
149
|
-
z(async () => {
|
|
150
|
-
await P(async () => {
|
|
151
|
-
await k.read(), await _.readMarketingMaterial();
|
|
152
|
-
});
|
|
153
|
-
});
|
|
154
|
-
const m = $(() => _.marketing.filter(
|
|
155
|
-
(t) => t.name.includes(i.value.searchKey.toLowerCase())
|
|
156
|
-
)), g = b(
|
|
157
|
-
S().defaultMarketing
|
|
158
|
-
), L = [
|
|
159
|
-
{
|
|
160
|
-
header: "Name",
|
|
161
|
-
accessorFn: (t) => t.name
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
header: "Campaign",
|
|
165
|
-
accessorFn: (t) => {
|
|
166
|
-
var e;
|
|
167
|
-
return t.campaign === null || t.campaign === void 0 ? "-" : (e = k.campaigns.all.find(
|
|
168
|
-
(v) => v._id === t.campaign
|
|
169
|
-
)) == null ? void 0 : e.name;
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
header: "Created date",
|
|
174
|
-
accessorFn: (t) => {
|
|
175
|
-
const e = new Date(parseInt(t._id.toString().substring(0, 8), 16) * 1e3);
|
|
176
|
-
return ne(e).format("DD MMM YYYY");
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
header: "Actions",
|
|
181
|
-
cell(t) {
|
|
182
|
-
return G(j.FmButton, {
|
|
183
|
-
variant: "tertiary",
|
|
184
|
-
icon: "delete",
|
|
185
|
-
iconColor: "neutral-gray-400",
|
|
186
|
-
onClick: (e) => {
|
|
187
|
-
e.stopPropagation(), I(t.row.original);
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
];
|
|
193
|
-
async function I(t) {
|
|
194
|
-
await X.remove(`Are you sure you want to remove ${t.name}?`) && await T(
|
|
195
|
-
async () => {
|
|
196
|
-
await N.deleteMarketing(t._id), await _.readMarketingMaterial();
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
message: `Removing ${t.name}`,
|
|
200
|
-
successMessage: `Removed ${t.name} successfully`
|
|
201
|
-
}
|
|
202
|
-
);
|
|
203
|
-
}
|
|
204
|
-
async function f(t) {
|
|
205
|
-
t ? g.value = JSON.parse(JSON.stringify(t)) : g.value = JSON.parse(JSON.stringify(S().defaultMarketing)), p.value = !0;
|
|
206
|
-
}
|
|
207
|
-
const i = b({
|
|
208
|
-
searchKey: ""
|
|
209
|
-
});
|
|
210
|
-
return (t, e) => {
|
|
211
|
-
const v = l("FmPageHead"), O = l("FmSearch"), R = l("FmTable"), V = l("FmButton"), U = l("FmListItem"), E = l("FmList"), K = l("FmCard");
|
|
212
|
-
return c(), u(C, null, [
|
|
213
|
-
r(v, {
|
|
214
|
-
title: "Marketing material",
|
|
215
|
-
class: "xs:hidden",
|
|
216
|
-
actions: d(m).length > 0 ? [s] : [],
|
|
217
|
-
"onClick:action": e[0] || (e[0] = () => f())
|
|
218
|
-
}, null, 8, ["actions"]),
|
|
219
|
-
o("div", le, [
|
|
220
|
-
r(O, {
|
|
221
|
-
modelValue: i.value.searchKey,
|
|
222
|
-
"onUpdate:modelValue": e[1] || (e[1] = (a) => i.value.searchKey = a),
|
|
223
|
-
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
224
|
-
placeholder: "search",
|
|
225
|
-
collapsible: ""
|
|
226
|
-
}, null, 8, ["modelValue"]),
|
|
227
|
-
r(ie, {
|
|
228
|
-
modelValue: g.value,
|
|
229
|
-
"onUpdate:modelValue": e[2] || (e[2] = (a) => g.value = a),
|
|
230
|
-
"is-open": p.value,
|
|
231
|
-
"onUpdate:isOpen": e[3] || (e[3] = (a) => p.value = a)
|
|
232
|
-
}, null, 8, ["modelValue", "is-open"]),
|
|
233
|
-
d(m).length > 0 ? (c(), u(C, { key: 0 }, [
|
|
234
|
-
o("div", ce, [
|
|
235
|
-
r(O, {
|
|
236
|
-
modelValue: i.value.searchKey,
|
|
237
|
-
"onUpdate:modelValue": e[4] || (e[4] = (a) => i.value.searchKey = a),
|
|
238
|
-
class: "xs:hidden",
|
|
239
|
-
placeholder: "search",
|
|
240
|
-
collapsible: ""
|
|
241
|
-
}, null, 8, ["modelValue"])
|
|
242
|
-
]),
|
|
243
|
-
r(R, {
|
|
244
|
-
class: "xs:hidden",
|
|
245
|
-
"row-data": d(m),
|
|
246
|
-
"column-defs": L,
|
|
247
|
-
"search-value": i.value.searchKey,
|
|
248
|
-
"column-filter": [],
|
|
249
|
-
onRowClick: e[5] || (e[5] = (a) => f(a.original)),
|
|
250
|
-
"hide-footer": !0
|
|
251
|
-
}, null, 8, ["row-data", "search-value"]),
|
|
252
|
-
r(E, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
253
|
-
default: x(() => [
|
|
254
|
-
(c(!0), u(C, null, Y(d(m).filter(
|
|
255
|
-
(a) => a.name.toLowerCase().includes(i.value.searchKey.toLowerCase())
|
|
256
|
-
), (a) => (c(), A(U, {
|
|
257
|
-
key: a._id.toString(),
|
|
258
|
-
onClick: (w) => f(a),
|
|
259
|
-
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
260
|
-
}, {
|
|
261
|
-
default: x(() => {
|
|
262
|
-
var w;
|
|
263
|
-
return [
|
|
264
|
-
o("div", de, [
|
|
265
|
-
o("div", me, B(a.name), 1),
|
|
266
|
-
o("div", ue, B(a.campaign === null || a.campaign === void 0 ? "-" : (w = d(k).campaigns.all.find(
|
|
267
|
-
(M) => M._id === a.campaign
|
|
268
|
-
)) == null ? void 0 : w.name), 1)
|
|
269
|
-
]),
|
|
270
|
-
r(V, {
|
|
271
|
-
icon: "delete",
|
|
272
|
-
"icon-color": "neutral-gray-400",
|
|
273
|
-
variant: "tertiary",
|
|
274
|
-
onClick: (M) => (M.stopPropagation(), I(a))
|
|
275
|
-
}, null, 8, ["onClick"])
|
|
276
|
-
];
|
|
277
|
-
}),
|
|
278
|
-
_: 2
|
|
279
|
-
}, 1032, ["onClick"]))), 128))
|
|
280
|
-
]),
|
|
281
|
-
_: 1
|
|
282
|
-
}),
|
|
283
|
-
d(m).length == 0 ? (c(), u("div", pe, fe)) : H("", !0)
|
|
284
|
-
], 64)) : (c(), A(K, {
|
|
285
|
-
key: 1,
|
|
286
|
-
variant: "outlined",
|
|
287
|
-
class: "w-full justify-center items-center flex flex-col p-[24px] gap-[24px]"
|
|
288
|
-
}, {
|
|
289
|
-
default: x(() => [
|
|
290
|
-
ye,
|
|
291
|
-
he,
|
|
292
|
-
_e,
|
|
293
|
-
r(V, {
|
|
294
|
-
label: "Add material",
|
|
295
|
-
"prepend-icon": "add",
|
|
296
|
-
onClick: e[6] || (e[6] = (a) => f())
|
|
297
|
-
})
|
|
298
|
-
]),
|
|
299
|
-
_: 1
|
|
300
|
-
}))
|
|
301
|
-
])
|
|
302
|
-
], 64);
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
export {
|
|
307
|
-
Oe as default
|
|
308
|
-
};
|
package/dist/Member-DCduX7zP.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { defineComponent as R, computed as f, ref as m, watch as T, resolveComponent as s, openBlock as p, createElementBlock as k, Fragment as B, createVNode as d, unref as n, createElementVNode as E, createBlock as M, createCommentVNode as A } from "vue";
|
|
2
|
-
import { b as u } from "./app-DkI7dYRN.js";
|
|
3
|
-
import { useRouter as L } from "vue-router";
|
|
4
|
-
import { m as N } from "./index-DcUrk07Q.js";
|
|
5
|
-
const Y = { class: "px-24 flex flex-col gap-y-16 pb-24" }, y = /* @__PURE__ */ R({
|
|
6
|
-
__name: "Member",
|
|
7
|
-
setup(w) {
|
|
8
|
-
const e = L(), o = [
|
|
9
|
-
// {
|
|
10
|
-
// label: 'Overview',
|
|
11
|
-
// value: ROUTE_NAME['$connect-LOYALTY_MEMBER_OVERVIEW'],
|
|
12
|
-
// actions: [
|
|
13
|
-
// // {
|
|
14
|
-
// // label: 'Add member',
|
|
15
|
-
// // value: 'add_member',
|
|
16
|
-
// // isPrimary: true,
|
|
17
|
-
// // prependIcon: 'add',
|
|
18
|
-
// // },
|
|
19
|
-
// ],
|
|
20
|
-
// },
|
|
21
|
-
{
|
|
22
|
-
label: "Member list",
|
|
23
|
-
value: u["$connect-LOYALTY_MEMBER_LIST"],
|
|
24
|
-
actions: [
|
|
25
|
-
// {
|
|
26
|
-
// label: 'Import member',
|
|
27
|
-
// value: 'import_member',
|
|
28
|
-
// isPrimary: false,
|
|
29
|
-
// },
|
|
30
|
-
// {
|
|
31
|
-
// label: 'Add member',
|
|
32
|
-
// value: 'add_member',
|
|
33
|
-
// isPrimary: true,
|
|
34
|
-
// prependIcon: 'add',
|
|
35
|
-
// },
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
], c = f(() => {
|
|
39
|
-
var a;
|
|
40
|
-
return e.currentRoute.value.name != u["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
|
|
41
|
-
title: r.value.label,
|
|
42
|
-
actions: r.value.actions,
|
|
43
|
-
description: void 0
|
|
44
|
-
} : (r.value = o[1], {
|
|
45
|
-
backButton: !0,
|
|
46
|
-
title: "Member's transactions",
|
|
47
|
-
actions: [],
|
|
48
|
-
description: (a = i.value) == null ? void 0 : a.name,
|
|
49
|
-
onBackButton: async () => {
|
|
50
|
-
await e.push({ name: u["$connect-LOYALTY_MEMBER_LIST"] });
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}), r = m(
|
|
54
|
-
o.find((t) => t.value === e.currentRoute.value.name) ?? o[0]
|
|
55
|
-
), i = m();
|
|
56
|
-
async function _(t) {
|
|
57
|
-
await e.push({ name: t });
|
|
58
|
-
}
|
|
59
|
-
return T(
|
|
60
|
-
() => e.currentRoute.value.name,
|
|
61
|
-
async (t) => {
|
|
62
|
-
r.value = o.find((l) => l.value === t) ?? o[0];
|
|
63
|
-
const a = e.currentRoute.value.params.id;
|
|
64
|
-
a && (i.value = await N.readById(a)), await e.push({ name: t });
|
|
65
|
-
}
|
|
66
|
-
), (t, a) => {
|
|
67
|
-
const l = s("FmPageHead"), b = s("FmTabs"), v = s("RouterView");
|
|
68
|
-
return p(), k(B, null, [
|
|
69
|
-
d(l, {
|
|
70
|
-
actions: n(c).actions,
|
|
71
|
-
title: n(c).title,
|
|
72
|
-
description: n(c).description,
|
|
73
|
-
"back-button": n(c).backButton,
|
|
74
|
-
"onClick:back": n(c).onBackButton
|
|
75
|
-
}, null, 8, ["actions", "title", "description", "back-button", "onClick:back"]),
|
|
76
|
-
E("div", Y, [
|
|
77
|
-
n(e).currentRoute.value.name != n(u)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (p(), M(b, {
|
|
78
|
-
key: 0,
|
|
79
|
-
"model-value": n(r).value,
|
|
80
|
-
items: o,
|
|
81
|
-
"onUpdate:modelValue": _
|
|
82
|
-
}, null, 8, ["model-value"])) : A("", !0),
|
|
83
|
-
d(v)
|
|
84
|
-
])
|
|
85
|
-
], 64);
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
export {
|
|
90
|
-
y as default
|
|
91
|
-
};
|