@feedmepos/mf-connect 0.0.16-beta.10 → 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-BVk0jPDU.js → Analytic-Gq7PoNer.js} +32 -20
- package/dist/{App-BbAalq1k.js → App-Cikl5jnp.js} +33 -27
- package/dist/Broadcast-DU3JnBwZ.js +223 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DiU3MnH0.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D0I8IZIR.js} +18 -11
- package/dist/Card-hIeQ5XUH.js +825 -0
- package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +97 -0
- package/dist/Collections-B1SC1rr7.js +453 -0
- package/dist/{Credit-Bc9EzdsC.js → Credit-BgwI8DR3.js} +78 -69
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D9VR3P2d.js +2788 -0
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-DPgu45MD.js +344 -0
- package/dist/{Experience-CgKak5ik.js → Experience-C2Q-zqV6.js} +64 -55
- package/dist/{Game-QhfKqrN_.js → Game-DU2pZDGk.js} +54 -45
- 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-CyGJxUol.js +18737 -0
- package/dist/MainLayout-B1aJoR95.js +41 -0
- package/dist/{Marketing-CSx4N7UJ.js → Marketing-DWiTQp9I.js} +79 -72
- package/dist/{Member-CY6WMD8D.js → Member-BEXKBFry.js} +25 -22
- package/dist/{MemberList-8iRwm7Sz.js → MemberList-DzMdajIf.js} +321 -307
- package/dist/{MemberTransactions-CknqkWO3.js → MemberTransactions-Bciankuu.js} +1 -1
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-DH25Hfk3.js +432 -0
- package/dist/{Mission-BTy1p7lU.js → Mission-KzwRlaA5.js} +50 -40
- package/dist/{Point-A6B_ggSy.js → Point-CSKvZXHc.js} +67 -58
- package/dist/Promotion-IiwPhx8p.js +221 -0
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-4zIO3oCr.js +1751 -0
- package/dist/{Segment-CFVXtyEj.js → Segment-2Q0PonBb.js} +145 -130
- package/dist/{Setting-Jmtw-_DV.js → Setting-Df5vVRt4.js} +167 -154
- package/dist/{Store-DQypT-7e.js → Store-C0WXCKs6.js} +504 -489
- package/dist/{StoreRewards-M-utm0iI.js → StoreRewards-eSSIO0nk.js} +124 -108
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-B60mQ5kq.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BjnCRKGX.js} +131 -123
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-b0xTcoEp.js +139 -0
- package/dist/{Tier-D1jymeLK.js → Tier-v-1FkRU-.js} +144 -125
- package/dist/{Title-DN9DIP2k.js → Title-CQ2JWqBW.js} +107 -90
- package/dist/{Transaction-BAJvAoU6.js → Transaction-0OouN_6s.js} +2 -2
- package/dist/Voucher-CL0cgogx.js +488 -0
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-CWt4tVdk.js +55 -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 +2 -1
- package/dist/business-dQh3AEot.js +78 -0
- package/dist/campaign-BOl8AgKA.js +96 -0
- package/dist/campaign-CpzFl8Vr.js +4 -0
- package/dist/collection.fn-B_YsXmrP.js +26 -0
- package/dist/dto-B8NfyVPG.js +1169 -0
- package/dist/effect-C2jCStXO.js +61 -0
- package/dist/{export-DjeNY5Pc.js → export-BtZc3Yzh.js} +19 -16
- package/dist/helper-8oGsrM56.js +71 -0
- package/dist/index-6FkKY3q0.js +73 -0
- package/dist/index-C7oeXRUl.js +95 -0
- package/dist/index-CZKYIefW.js +203 -0
- package/dist/index-C_0IFnwi.js +2071 -0
- package/dist/index-CuvNtC_M.js +61 -0
- package/dist/index-DCixRRvz.js +761 -0
- package/dist/index-DFgt4-VW.js +38 -0
- package/dist/index-DYDhH9bi.js +8832 -0
- package/dist/index-Dbd4WA4r.js +61 -0
- package/dist/index-Di-kWSmf.js +1737 -0
- package/dist/index-Dn0jdj0o.js +28058 -0
- package/dist/index-DwKqFNF6.js +3 -0
- package/dist/index-HoacsZDk.js +291 -0
- package/dist/index-UTQHDUdW.js +94 -0
- package/dist/loading-D_AN6p24.js +32697 -0
- package/dist/lodash-B5I3zXaY.js +3678 -0
- package/dist/membership-Ccrx9R6r.js +221 -0
- package/dist/moment-BWErdI6_.js +2578 -0
- package/dist/money-waD-f-Zz.js +15 -0
- package/dist/number-CwTGGsh9.js +12 -0
- package/dist/object-qECH92oz.js +26 -0
- package/dist/objectId-dwaoBfJX.js +7 -0
- package/dist/rule-DJ07h3Gh.js +1973 -0
- package/dist/rule-builder-DJ-acvVD.js +89 -0
- package/dist/template-clxvNnbF.js +190 -0
- package/dist/usePagination-BeF5K3M7.js +223 -0
- package/dist/vue-i18n-BxwiXSkp.js +2365 -0
- package/dist/xlsx-BB366cdN.js +15491 -0
- package/dist/zod-W_PvIofQ.js +90 -0
- package/package.json +2 -2
- package/dist/Card-B5in1RMa.js +0 -805
- package/dist/Collections-CFCZ9YIG.js +0 -4
- package/dist/MainLayout-JbHzENFy.js +0 -4
- package/dist/app-BpzzygYP.js +0 -87765
- package/dist/money-DKGIIplY.js +0 -15
- package/dist/number-tPodRxTN.js +0 -12
|
@@ -1,68 +1,77 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { useDialog as
|
|
4
|
-
|
|
1
|
+
import { defineComponent as N, ref as S, computed as j, h as M, onMounted as A, resolveComponent as l, openBlock as c, createElementBlock as y, Fragment as h, createVNode as i, unref as a, createElementVNode as n, withCtx as C, renderList as H, createBlock as v, resolveDynamicComponent as q, toDisplayString as g, createCommentVNode as z } from "vue";
|
|
2
|
+
import { _ as G } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as J, components as O } from "@feedmepos/ui-library";
|
|
4
|
+
import { p as Q, u as W } from "./loading-D_AN6p24.js";
|
|
5
|
+
import { u as X } from "./business-dQh3AEot.js";
|
|
6
|
+
import { u as Y } from "./campaign-BOl8AgKA.js";
|
|
7
|
+
import { g as V, b as L } from "./dto-B8NfyVPG.js";
|
|
8
|
+
import { u as Z } from "./vue-i18n-BxwiXSkp.js";
|
|
9
|
+
import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
+
import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-D9VR3P2d.js";
|
|
11
|
+
import { u as te } from "./template-clxvNnbF.js";
|
|
12
|
+
import { c as _ } from "./index-UTQHDUdW.js";
|
|
13
|
+
const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-center justify-between w-full" }, re = { class: "flex gap-8 overflow-x-auto" }, se = { class: "space-y-8" }, ie = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ce = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { key: 0 }, Ve = /* @__PURE__ */ N({
|
|
5
14
|
__name: "Credit",
|
|
6
|
-
setup(
|
|
7
|
-
const { t:
|
|
8
|
-
label:
|
|
9
|
-
type:
|
|
15
|
+
setup(fe) {
|
|
16
|
+
const { t: r } = Z(), I = {
|
|
17
|
+
label: r("connect.program.common.actions.create", {
|
|
18
|
+
type: r("connect.program.credit.title").toLowerCase()
|
|
10
19
|
}),
|
|
11
20
|
value: "create",
|
|
12
21
|
isPrimary: !0,
|
|
13
22
|
prependIcon: "add"
|
|
14
|
-
},
|
|
23
|
+
}, R = te("CREDIT", J()), B = X(), m = Y(), { global: D, minor: w } = W, s = S({
|
|
15
24
|
searchKey: "",
|
|
16
25
|
location: null
|
|
17
26
|
}), d = j(
|
|
18
27
|
() => m.campaigns.credit.filter(
|
|
19
|
-
(e) => !
|
|
28
|
+
(e) => !s.value.location || !e.targetLocation || e.targetLocation.includes(s.value.location)
|
|
20
29
|
)
|
|
21
30
|
), T = [
|
|
22
31
|
{
|
|
23
|
-
header:
|
|
32
|
+
header: r("connect.program.common.table.title"),
|
|
24
33
|
accessorFn: (e) => e.name
|
|
25
34
|
},
|
|
26
35
|
{
|
|
27
|
-
header:
|
|
36
|
+
header: r("connect.program.common.table.status"),
|
|
28
37
|
cell(e) {
|
|
29
38
|
return V(e.row.original);
|
|
30
39
|
}
|
|
31
40
|
},
|
|
32
41
|
{
|
|
33
|
-
header:
|
|
42
|
+
header: r("connect.program.common.table.summary"),
|
|
34
43
|
accessorFn: (e) => L(e)
|
|
35
44
|
},
|
|
36
45
|
{
|
|
37
|
-
header:
|
|
46
|
+
header: r("connect.program.common.table.actions"),
|
|
38
47
|
cell(e) {
|
|
39
|
-
return M(
|
|
48
|
+
return M(O.FmButton, {
|
|
40
49
|
variant: "tertiary",
|
|
41
50
|
icon: "delete",
|
|
42
51
|
iconColor: "neutral-gray-400",
|
|
43
|
-
onClick: (
|
|
44
|
-
|
|
52
|
+
onClick: (o) => {
|
|
53
|
+
o.stopPropagation(), x(e.row.original);
|
|
45
54
|
}
|
|
46
55
|
});
|
|
47
56
|
}
|
|
48
57
|
}
|
|
49
58
|
], b = S();
|
|
50
59
|
async function x(e) {
|
|
51
|
-
await
|
|
60
|
+
await Q.remove(r("program.common.remove.confirm", { name: e.name })) && await w(
|
|
52
61
|
async () => {
|
|
53
62
|
await _.delete(e._id), await m.read("CREDIT");
|
|
54
63
|
},
|
|
55
64
|
{
|
|
56
|
-
message:
|
|
57
|
-
successMessage:
|
|
65
|
+
message: r("program.common.remove.removing", { name: e.name }),
|
|
66
|
+
successMessage: r("program.common.remove.removed", { name: e.name })
|
|
58
67
|
}
|
|
59
68
|
);
|
|
60
69
|
}
|
|
61
|
-
async function
|
|
62
|
-
e ? await
|
|
63
|
-
await
|
|
70
|
+
async function f(e) {
|
|
71
|
+
e ? await o() : R.open(async (p) => {
|
|
72
|
+
await o(p);
|
|
64
73
|
});
|
|
65
|
-
async function
|
|
74
|
+
async function o(p) {
|
|
66
75
|
var u;
|
|
67
76
|
(u = b.value) == null || u.showSheet(
|
|
68
77
|
!0,
|
|
@@ -87,78 +96,78 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
87
96
|
await D(async () => {
|
|
88
97
|
await m.read("CREDIT");
|
|
89
98
|
});
|
|
90
|
-
}), (e,
|
|
91
|
-
const p =
|
|
92
|
-
return c(),
|
|
93
|
-
|
|
94
|
-
title: a(
|
|
99
|
+
}), (e, o) => {
|
|
100
|
+
const p = l("FmPageHead"), u = l("FmSearch"), K = l("FmTable"), F = l("FmButton"), $ = l("FmListItem"), P = l("FmList"), U = l("FmCard");
|
|
101
|
+
return c(), y(h, null, [
|
|
102
|
+
i(p, {
|
|
103
|
+
title: a(r)("connect.program.credit.title"),
|
|
95
104
|
actions: a(d).length > 0 ? [I] : [],
|
|
96
|
-
"onClick:action":
|
|
105
|
+
"onClick:action": o[0] || (o[0] = () => f())
|
|
97
106
|
}, null, 8, ["title", "actions"]),
|
|
98
107
|
n("div", ae, [
|
|
99
|
-
|
|
100
|
-
modelValue: a(
|
|
101
|
-
"onUpdate:modelValue":
|
|
108
|
+
i(u, {
|
|
109
|
+
modelValue: a(s).searchKey,
|
|
110
|
+
"onUpdate:modelValue": o[1] || (o[1] = (t) => a(s).searchKey = t),
|
|
102
111
|
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
103
112
|
placeholder: "search",
|
|
104
113
|
collapsible: ""
|
|
105
114
|
}, null, 8, ["modelValue"]),
|
|
106
|
-
a(m).campaigns.credit && a(m).campaigns.credit.length > 0 ? (c(),
|
|
115
|
+
a(m).campaigns.credit && a(m).campaigns.credit.length > 0 ? (c(), y(h, { key: 0 }, [
|
|
107
116
|
n("div", ne, [
|
|
108
|
-
n("div",
|
|
109
|
-
|
|
110
|
-
modelValue: a(
|
|
111
|
-
"onUpdate:modelValue":
|
|
117
|
+
n("div", re, [
|
|
118
|
+
i(ee, {
|
|
119
|
+
modelValue: a(s).location,
|
|
120
|
+
"onUpdate:modelValue": o[2] || (o[2] = (t) => a(s).location = t),
|
|
112
121
|
label: "Location: ",
|
|
113
122
|
"show-item-label": !0,
|
|
114
123
|
icon: "storefront",
|
|
115
124
|
placement: "bottom-start",
|
|
116
|
-
items: a(
|
|
125
|
+
items: a(B).locationItems
|
|
117
126
|
}, null, 8, ["modelValue", "items"])
|
|
118
127
|
]),
|
|
119
|
-
|
|
120
|
-
modelValue: a(
|
|
121
|
-
"onUpdate:modelValue":
|
|
128
|
+
i(u, {
|
|
129
|
+
modelValue: a(s).searchKey,
|
|
130
|
+
"onUpdate:modelValue": o[3] || (o[3] = (t) => a(s).searchKey = t),
|
|
122
131
|
class: "xs:hidden",
|
|
123
132
|
placeholder: "search",
|
|
124
133
|
collapsible: ""
|
|
125
134
|
}, null, 8, ["modelValue"])
|
|
126
135
|
]),
|
|
127
|
-
|
|
136
|
+
i(K, {
|
|
128
137
|
class: "xs:hidden",
|
|
129
138
|
"row-data": a(d),
|
|
130
139
|
"column-defs": T,
|
|
131
|
-
"search-value": a(
|
|
140
|
+
"search-value": a(s).searchKey,
|
|
132
141
|
"column-filter": [],
|
|
133
|
-
onRowClick:
|
|
142
|
+
onRowClick: o[4] || (o[4] = (t) => f(t.original)),
|
|
134
143
|
"hide-footer": a(d).length < 10
|
|
135
144
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
136
|
-
|
|
145
|
+
i(P, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
137
146
|
default: C(() => [
|
|
138
|
-
(c(!0),
|
|
139
|
-
(
|
|
140
|
-
), (
|
|
141
|
-
key:
|
|
142
|
-
onClick: (k) =>
|
|
147
|
+
(c(!0), y(h, null, H(a(d).filter(
|
|
148
|
+
(t) => t.name.toLowerCase().includes(a(s).searchKey.toLowerCase())
|
|
149
|
+
), (t) => (c(), v($, {
|
|
150
|
+
key: t._id.toString(),
|
|
151
|
+
onClick: (k) => f(t),
|
|
143
152
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
144
153
|
}, {
|
|
145
154
|
default: C(() => [
|
|
146
|
-
n("div",
|
|
147
|
-
n("div",
|
|
148
|
-
(c(), v(q(a(V)(
|
|
149
|
-
n("div",
|
|
155
|
+
n("div", se, [
|
|
156
|
+
n("div", ie, [
|
|
157
|
+
(c(), v(q(a(V)(t)))),
|
|
158
|
+
n("div", le, g(t.currentReceive ?? 0) + " used ", 1)
|
|
150
159
|
]),
|
|
151
160
|
n("div", ce, [
|
|
152
|
-
n("div", me, g(
|
|
153
|
-
n("div", de, g(a(L)(
|
|
161
|
+
n("div", me, g(t.name), 1),
|
|
162
|
+
n("div", de, g(a(L)(t)), 1)
|
|
154
163
|
]),
|
|
155
|
-
n("div", pe, " Credit received: " + g(
|
|
164
|
+
n("div", pe, " Credit received: " + g(t.currentReceive ?? 0), 1)
|
|
156
165
|
]),
|
|
157
|
-
|
|
166
|
+
i(F, {
|
|
158
167
|
icon: "delete",
|
|
159
168
|
"icon-color": "neutral-gray-400",
|
|
160
169
|
variant: "tertiary",
|
|
161
|
-
onClick: (k) => (k.stopPropagation(), x(
|
|
170
|
+
onClick: (k) => (k.stopPropagation(), x(t))
|
|
162
171
|
}, null, 8, ["onClick"])
|
|
163
172
|
]),
|
|
164
173
|
_: 2
|
|
@@ -166,33 +175,33 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
166
175
|
]),
|
|
167
176
|
_: 1
|
|
168
177
|
}),
|
|
169
|
-
a(d).length == 0 ? (c(),
|
|
178
|
+
a(d).length == 0 ? (c(), y("div", ue, o[6] || (o[6] = [
|
|
170
179
|
n("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1)
|
|
171
180
|
]))) : z("", !0)
|
|
172
|
-
], 64)) : (c(), v(
|
|
181
|
+
], 64)) : (c(), v(U, {
|
|
173
182
|
key: 1,
|
|
174
183
|
variant: "outlined",
|
|
175
184
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
176
185
|
}, {
|
|
177
186
|
default: C(() => [
|
|
178
|
-
|
|
179
|
-
src:
|
|
187
|
+
o[7] || (o[7] = n("img", {
|
|
188
|
+
src: G,
|
|
180
189
|
class: "aspect-square w-[150px]"
|
|
181
190
|
}, null, -1)),
|
|
182
|
-
|
|
191
|
+
o[8] || (o[8] = n("div", { class: "flex flex-col gap-16 text-center" }, [
|
|
183
192
|
n("div", { class: "fm-typo-en-title-sm-800" }, "Create your credit program"),
|
|
184
193
|
n("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Credits are virtual money that customers can use to pay for their purchases, similar to cash within your store. ")
|
|
185
194
|
], -1)),
|
|
186
|
-
|
|
195
|
+
i(F, {
|
|
187
196
|
variant: "primary",
|
|
188
197
|
label: "Create credit program",
|
|
189
198
|
icon: "add",
|
|
190
|
-
onClick:
|
|
199
|
+
onClick: o[5] || (o[5] = (t) => f())
|
|
191
200
|
})
|
|
192
201
|
]),
|
|
193
202
|
_: 1
|
|
194
203
|
})),
|
|
195
|
-
|
|
204
|
+
i(oe, {
|
|
196
205
|
ref_key: "sheetRef",
|
|
197
206
|
ref: b,
|
|
198
207
|
"onSubmit:modelValue": E
|
|
@@ -203,5 +212,5 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
203
212
|
}
|
|
204
213
|
});
|
|
205
214
|
export {
|
|
206
|
-
|
|
215
|
+
Ve as default
|
|
207
216
|
};
|