@feedmepos/mf-connect 0.0.16-beta.1 → 0.0.17-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/Analytic-CKM1hA08.js +612 -0
- package/dist/{Broadcast-X69Mtv3b.js → Broadcast-DzJRPvz5.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-VWLBlxy1.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D7J9gl35.js} +8 -8
- package/dist/{Card-D0X3v1UF.js → Card-BowvmBJD.js} +121 -121
- package/dist/{Collections-umR6Ehqf.js → Collections-DHi8bxpj.js} +129 -141
- package/dist/{Credit-C1EWF7R0.js → Credit-DakCAG7z.js} +7 -7
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bz6TSmbW.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-B6L77rz7.js} +22 -24
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-AhWnHG02.js → EffectSheet.vue_vue_type_style_index_0_lang-RLmpxA5_.js} +6 -6
- package/dist/{Experience-CqL8wyPm.js → Experience-CnHloEig.js} +7 -7
- package/dist/{Game--kYe64EV.js → Game-D-X4EgC-.js} +7 -7
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BjOJ3XSL.js → ImageInput.vue_vue_type_script_setup_true_lang-DZhanVR2.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DykNOOFD.js → MainLayout-BAyMP_C8.js} +53 -20
- package/dist/{Marketing-CTCQ5ZmZ.js → Marketing-c4QG38L1.js} +25 -25
- package/dist/{Member-DCduX7zP.js → Member-DQBVPHCv.js} +2 -2
- package/dist/MemberList-Ci6LRnrH.js +1718 -0
- package/dist/{MemberTransactions-CTAx5jIV.js → MemberTransactions-CztAzAA6.js} +1 -1
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-B_hDmE8e.js +203 -0
- package/dist/{Mission-CVr9rS_D.js → Mission-Cj_hi3tv.js} +7 -7
- package/dist/{Point-BnZ6M74y.js → Point-BGDCrLdw.js} +7 -7
- package/dist/{Promotion-B0PUve5S.js → Promotion-BABafzmp.js} +8 -8
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CrpJySSp.js → RuleGroup.vue_vue_type_script_setup_true_lang-C7Tqs2pq.js} +14 -14
- package/dist/{Segment-B-XpkyM5.js → Segment-Bh8bddz_.js} +18 -19
- package/dist/{Setting-Zrj5P_4m.js → Setting-ByrGfBdk.js} +541 -571
- package/dist/Store-6lrxcf8I.js +1442 -0
- package/dist/{StoreRewards-D8410Q_-.js → StoreRewards-C5bJ9hxE.js} +74 -75
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DS4APaHw.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DaboQyfR.js} +79 -82
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DUaTP2_0.js +124 -0
- package/dist/{Tier-DVWJyQ9S.js → Tier-D71DR1ez.js} +68 -71
- package/dist/{Title-B5kX64vs.js → Title-CxAYzUIx.js} +75 -78
- package/dist/{Transaction-CZBO4v4d.js → Transaction-BWRGkDrb.js} +1 -1
- package/dist/{Voucher-se-4JF9B.js → Voucher-BLy2jD1L.js} +37 -37
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +140 -0
- package/dist/{app-B2ImSO3V.js → app-BGUDahHa.js} +1 -1
- package/dist/{app-DkI7dYRN.js → app-roSGTcOh.js} +46 -46
- package/dist/app.js +1 -1
- package/dist/{campaign-BZJuknWK.js → campaign-B7-BUOfP.js} +11 -13
- package/dist/{collection.fn-DoCkZ6z4.js → collection.fn-DHlfGYAC.js} +2 -4
- package/dist/{dto-BWpvRpK2.js → dto-zv3OTrbd.js} +214 -215
- package/dist/{effect-B8kmnKvY.js → effect-DLtYeqVg.js} +1 -1
- package/dist/{export-Dm6LYnWo.js → export-Bm6xBE89.js} +3 -3
- package/dist/{helper-DR4XK3nv.js → helper-BaLvfRCZ.js} +1 -1
- package/dist/{index-DcUrk07Q.js → index-BmgXoYUK.js} +1 -1
- package/dist/{index-CuL5-ORK.js → index-D9Ft2U8O.js} +8 -9
- package/dist/{index-CWf0mh3a.js → index-DIA3Lkck.js} +2 -2
- package/dist/{index-BryrRq8O.js → index-DP2wL3EA.js} +37 -47
- package/dist/{index-CkiYkbXb.js → index-DgAr53Ae.js} +1 -1
- package/dist/{index-yxJMhfxj.js → index-DiC8aGiv.js} +66 -109
- package/dist/{index-boor8e80.js → index-DrA3F2aA.js} +27 -28
- package/dist/{index-BxkxVtgm.js → index-Qr6T_tfL.js} +1 -1
- package/dist/index-SdCqUstr.js +244 -0
- package/dist/{index-Bu4_26qI.js → index-aYwIKfns.js} +1 -1
- package/dist/{loading-BzV5acUX.js → loading-CB6v7hws.js} +4 -4
- package/dist/{lodash-mg4435Qq.js → lodash-DkICSg8W.js} +1 -1
- package/dist/{membership-CqbsLHqx.js → membership-CFVkuT3Z.js} +58 -63
- package/dist/{money-DA_gtp3q.js → money-DMEHb1PR.js} +1 -1
- package/dist/{number-C388eyOu.js → number-RVupiUMd.js} +3 -3
- package/dist/{rule-Clmr5y4j.js → rule-CpU35zT1.js} +2 -2
- package/dist/{rule-builder-BgqNbM-P.js → rule-builder-CrtuA_0Q.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-Dwp7heBA.js → template-DxvJmDC3.js} +6 -6
- package/dist/{usePagination-o5fgsZwU.js → usePagination-FlXHEH_R.js} +1 -1
- package/dist/{xlsx-BRdh9e2p.js → xlsx-BJ7B-X33.js} +309 -309
- package/package.json +2 -2
- package/dist/Analytic-C-zZmF5N.js +0 -760
- package/dist/MainLayout-D0AoA1tk.js +0 -41
- package/dist/MemberList-B0EkXZJu.js +0 -1729
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-C-BtHxSc.js +0 -432
- package/dist/Store-B2gywCt2.js +0 -1503
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-ZYjWlDJ1.js +0 -139
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-CWt4tVdk.js +0 -55
- package/dist/index-BobRgQrE.js +0 -291
- package/dist/zod-W_PvIofQ.js +0 -90
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { components as
|
|
2
|
-
import { n as o } from "./index-
|
|
3
|
-
import { h as
|
|
4
|
-
import { defineStore as
|
|
5
|
-
import { m as
|
|
6
|
-
import {
|
|
1
|
+
import { components as P } from "@feedmepos/ui-library";
|
|
2
|
+
import { n as o } from "./index-DIA3Lkck.js";
|
|
3
|
+
import { h as p, ref as n } from "vue";
|
|
4
|
+
import { defineStore as $ } from "pinia";
|
|
5
|
+
import { m as d } from "./index-aYwIKfns.js";
|
|
6
|
+
import { e as c, f as U } from "./app-roSGTcOh.js";
|
|
7
7
|
function i(t) {
|
|
8
|
-
return
|
|
8
|
+
return p(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
class: `${t.chipClass} gap-4 h-[22px] inline-flex items-center justify-center min-w-min px-8 rounded-md`
|
|
12
12
|
},
|
|
13
13
|
[
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
p(P.FmIcon, { size: "sm", name: t.icon, outline: !0 }),
|
|
15
|
+
p("span", { class: "fm-typo-en-body-md-600" }, t.name)
|
|
16
16
|
]
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
|
-
const
|
|
19
|
+
const V = {
|
|
20
20
|
[o.enum.VOUCHER]: {
|
|
21
21
|
chipClass: "!text-fm-color-secondary-halite !bg-[#fff0f6]",
|
|
22
22
|
icon: "sell",
|
|
@@ -84,7 +84,7 @@ const F = {
|
|
|
84
84
|
return i(this);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
}, m = () =>
|
|
87
|
+
}, m = () => U("segments"), k = {
|
|
88
88
|
async readAll(t) {
|
|
89
89
|
const a = c(
|
|
90
90
|
await m().get("", { params: t })
|
|
@@ -125,57 +125,54 @@ const F = {
|
|
|
125
125
|
async delete(t) {
|
|
126
126
|
return c(await m().delete(t));
|
|
127
127
|
}
|
|
128
|
-
},
|
|
129
|
-
var
|
|
130
|
-
const t =
|
|
131
|
-
const e = await
|
|
132
|
-
t.value = e,
|
|
128
|
+
}, j = $("mf-connect-membership", () => {
|
|
129
|
+
var x, E;
|
|
130
|
+
const t = n(null), a = n(null), l = n([]), u = n([]), f = n(null), h = n([]), y = n(), g = n(((x = t.value) == null ? void 0 : x.tiers) ?? []), v = n(((E = t.value) == null ? void 0 : E.pf_title) ?? []), b = n([]), C = n({ raw: [], items: [] }), w = n([]), I = async () => {
|
|
131
|
+
const e = await d.read();
|
|
132
|
+
t.value = e, f.value = e, g.value = e.tiers, v.value = e.pf_title ?? [], T(), S();
|
|
133
133
|
}, _ = async () => {
|
|
134
|
-
const e = await
|
|
135
|
-
|
|
134
|
+
const e = await d.readStore();
|
|
135
|
+
a.value = e, A(), L();
|
|
136
136
|
}, R = async () => {
|
|
137
|
-
const e = await
|
|
138
|
-
|
|
137
|
+
const e = await d.readRewards();
|
|
138
|
+
l.value = e, T(), S();
|
|
139
139
|
}, O = async () => {
|
|
140
|
-
const e = await
|
|
141
|
-
u.value = e, S(), x();
|
|
142
|
-
}, L = async () => {
|
|
143
|
-
const e = await H.readAll({
|
|
140
|
+
const e = await k.readAll({
|
|
144
141
|
skip: 0,
|
|
145
142
|
sortBy: "_id",
|
|
146
143
|
limit: 1e3
|
|
147
144
|
});
|
|
148
|
-
|
|
149
|
-
},
|
|
145
|
+
u.value = e.resources, M();
|
|
146
|
+
}, A = () => {
|
|
150
147
|
var e;
|
|
151
|
-
h.value = (((e = a.value) == null ? void 0 : e.categories) ?? []).map((
|
|
152
|
-
...
|
|
153
|
-
bundles:
|
|
154
|
-
(s,
|
|
148
|
+
h.value = (((e = a.value) == null ? void 0 : e.categories) ?? []).map((r) => ({
|
|
149
|
+
...r,
|
|
150
|
+
bundles: r.bundles.sort(
|
|
151
|
+
(s, B) => s.name.localeCompare(B.name, "en", { numeric: !0 })
|
|
155
152
|
)
|
|
156
|
-
})).sort((
|
|
157
|
-
},
|
|
158
|
-
var e,
|
|
159
|
-
|
|
153
|
+
})).sort((r, s) => r.name.localeCompare(s.name, "en", { numeric: !0 }));
|
|
154
|
+
}, L = () => {
|
|
155
|
+
var e, r, s;
|
|
156
|
+
y.value = {
|
|
160
157
|
company: (e = a.value) == null ? void 0 : e.company,
|
|
161
|
-
inclusiveTaxes: ((
|
|
158
|
+
inclusiveTaxes: ((r = a.value) == null ? void 0 : r.inclusiveTaxes) ?? [],
|
|
162
159
|
stripe: (s = a.value) == null ? void 0 : s.stripe
|
|
163
160
|
};
|
|
164
|
-
},
|
|
161
|
+
}, T = () => {
|
|
165
162
|
var e;
|
|
166
|
-
|
|
167
|
-
...
|
|
163
|
+
b.value = [
|
|
164
|
+
...l.value.filter((r) => r.type == "VOUCHER" && r.noCampaign),
|
|
168
165
|
...((e = t.value) == null ? void 0 : e.pf_title) ?? []
|
|
169
166
|
];
|
|
170
|
-
},
|
|
171
|
-
var
|
|
167
|
+
}, S = () => {
|
|
168
|
+
var r;
|
|
172
169
|
const e = [
|
|
173
|
-
...
|
|
170
|
+
...l.value.filter(
|
|
174
171
|
(s) => !["VOUCHER", "TIER", "GAME", "TITLE", "STAMP"].includes(s.type)
|
|
175
|
-
).map((s) => ({ ...s, name:
|
|
176
|
-
...((
|
|
172
|
+
).map((s) => ({ ...s, name: V[s.type].name })),
|
|
173
|
+
...((r = t.value) == null ? void 0 : r.pf_title) ?? []
|
|
177
174
|
];
|
|
178
|
-
|
|
175
|
+
C.value = {
|
|
179
176
|
raw: e,
|
|
180
177
|
items: e.map((s) => ({
|
|
181
178
|
label: `${s.type === "TITLE" ? "[T] " : ""}${s.name}`,
|
|
@@ -183,8 +180,8 @@ const F = {
|
|
|
183
180
|
raw: s
|
|
184
181
|
}))
|
|
185
182
|
};
|
|
186
|
-
},
|
|
187
|
-
|
|
183
|
+
}, M = () => {
|
|
184
|
+
w.value = u.value.map((e) => ({
|
|
188
185
|
label: e.name,
|
|
189
186
|
value: e._id,
|
|
190
187
|
raw: e
|
|
@@ -194,28 +191,26 @@ const F = {
|
|
|
194
191
|
// State
|
|
195
192
|
membership: t,
|
|
196
193
|
store: a,
|
|
197
|
-
collectibles:
|
|
198
|
-
segments:
|
|
199
|
-
payoutAccount: l,
|
|
194
|
+
collectibles: l,
|
|
195
|
+
segments: u,
|
|
200
196
|
// Actions
|
|
201
197
|
readMembership: I,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
readSegments: L,
|
|
198
|
+
readMemberStore: _,
|
|
199
|
+
readRewards: R,
|
|
200
|
+
readSegments: O,
|
|
206
201
|
// Getters
|
|
207
|
-
membershipInfo:
|
|
202
|
+
membershipInfo: f,
|
|
208
203
|
sortedStoreCategories: h,
|
|
209
|
-
storeOption:
|
|
210
|
-
sortedTiers:
|
|
211
|
-
sortedTitles:
|
|
212
|
-
bundleRewards:
|
|
213
|
-
loyaltyRewards:
|
|
214
|
-
segmentOptions:
|
|
204
|
+
storeOption: y,
|
|
205
|
+
sortedTiers: g,
|
|
206
|
+
sortedTitles: v,
|
|
207
|
+
bundleRewards: b,
|
|
208
|
+
loyaltyRewards: C,
|
|
209
|
+
segmentOptions: w
|
|
215
210
|
};
|
|
216
211
|
});
|
|
217
212
|
export {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
213
|
+
V as C,
|
|
214
|
+
k as s,
|
|
215
|
+
j as u
|
|
221
216
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as n } from "./app-roSGTcOh.js";
|
|
2
2
|
function s(t) {
|
|
3
3
|
return n.DineroFactory(t).multiply(100).toFormat(!1);
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function f(t, r = 2, o = !1) {
|
|
6
6
|
const e = parseFloat(String(t)).toFixed(r);
|
|
7
7
|
return o ? parseFloat(e).toString() : e;
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
10
|
s as F,
|
|
11
|
-
|
|
11
|
+
f
|
|
12
12
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as O } from "./moment-BWErdI6_.js";
|
|
2
|
-
import { u as ee } from "./membership-
|
|
3
|
-
import { R as K, a as we } from "./rule-builder-
|
|
2
|
+
import { u as ee } from "./membership-CFVkuT3Z.js";
|
|
3
|
+
import { R as K, a as we } from "./rule-builder-CrtuA_0Q.js";
|
|
4
4
|
var ue = [
|
|
5
5
|
"MO",
|
|
6
6
|
"TU",
|