@feedmepos/mf-connect 0.1.47-prod → 0.1.48-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-AnuRQDA4.js → Analytic-DrjBaKmx.js} +113 -113
- package/dist/{App-DP_jCyej.js → App-eIaytGsZ.js} +632 -622
- package/dist/{Bin-tL4lF6PB.js → Bin-CVp0eFwl.js} +9 -9
- package/dist/{Broadcast-T2a5tN8R.js → Broadcast-DBgBT6yz.js} +40 -40
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BgPJCH02.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CugJWeBo.js} +18 -18
- package/dist/{Card-Bi-ODgCc.js → Card-DkP6oJVn.js} +239 -239
- package/dist/{Collections-JHWotZ1I.js → Collections-DYb_aeTW.js} +31 -31
- package/dist/{Credit-DQQCXqS0.js → Credit-WVv_PL5D.js} +74 -74
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-hxuYl-OQ.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Dt9c2kvf.js} +756 -753
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-ECkaQxuI.js → EffectSheet.vue_vue_type_style_index_0_lang-DT3y4k1C.js} +96 -96
- package/dist/{Experience-DzTV21vX.js → Experience-BdH44wBG.js} +41 -41
- package/dist/{Game-DUCx2Dl9.js → Game-C7jxRESY.js} +31 -31
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js +144 -0
- package/dist/{Index-zynxjOOr.js → Index-DYr1p4sh.js} +54 -54
- package/dist/{Marketing-BBHDVRkR.js → Marketing-Djl27fez.js} +24 -24
- package/dist/{Member-B09bj6C3.js → Member-CWXedfTG.js} +63 -63
- package/dist/MemberList-C2TvGi22.js +1606 -0
- package/dist/MemberOverview-wL_ailso.js +58 -0
- package/dist/{MemberTransactions-DERMSs7o.js → MemberTransactions-BSUocGg9.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CAADF6vv.js → MessageInput.vue_vue_type_script_setup_true_lang-D8xPA6jM.js} +2286 -2220
- package/dist/{Mission-DAv0e_ZH.js → Mission-BVx9Cqi5.js} +20 -20
- package/dist/{Overview-D0rBTEtP.js → Overview-DyXF9zfB.js} +337 -337
- package/dist/{Point-BeBYi1BT.js → Point-ovkgTwZO.js} +41 -41
- package/dist/{Promotion-BSPU5hP9.js → Promotion-B0Q6GItP.js} +42 -42
- package/dist/{Queue-C5IFJ3iE.js → Queue-BAWG1Hh-.js} +12 -12
- package/dist/{Record-CoFSrv7j.js → Record-CTp80g4A.js} +10 -10
- package/dist/{Reward-COIOBOl-.js → Reward-_Jow1lJ7.js} +173 -173
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B9Tl7hqv.js → RewardGroup.vue_vue_type_script_setup_true_lang-BV8xCejA.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BzsYC3k2.js → RuleGroup.vue_vue_type_script_setup_true_lang-DkDAuGY0.js} +381 -381
- package/dist/{Segment-DF5SrucQ.js → Segment-CsdJ1SjK.js} +327 -327
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BSSfQu3F.js → SelectItems.vue_vue_type_script_setup_true_lang-DH3oIm2t.js} +14 -14
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DoL_gTKy.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DvVrjpxR.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cijyol1Q.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D5gV89Xk.js} +3 -3
- package/dist/Setting-BZRA50LO.js +1936 -0
- package/dist/{Store-E2_0EIy8.js → Store-CFnCN_7-.js} +238 -238
- package/dist/StoreRewards-B_McpBz-.js +423 -0
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DuatzcJ8.js → StoreTransactions.vue_vue_type_script_setup_true_lang-vL0vr-Xn.js} +185 -185
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D_r8I0h7.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C1ZlLdme.js} +1 -1
- package/dist/{Tier-CEEHsXkC.js → Tier-CCYFu6kJ.js} +106 -106
- package/dist/{Title-BMAWlGeW.js → Title-7Mg-Ml4z.js} +95 -95
- package/dist/{Transaction-CLsceq-O.js → Transaction-BqZrbpZi.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CFLekn9O.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C6ZwPUD4.js} +6 -6
- package/dist/{Voucher-Cd293WYY.js → Voucher-Yty_7SuS.js} +36 -36
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Bt12t3gB.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B8HHh8HU.js → ZodTextField.vue_vue_type_script_setup_true_lang-C3NHrEIl.js} +1 -1
- package/dist/{app-aVXsWATU.js → app-2EJP4psh.js} +31 -31
- package/dist/app-Dzon--6x.js +57962 -0
- package/dist/app.js +1 -1
- package/dist/{business-DVlHPzaL.js → business-BehG4fR2.js} +1 -1
- package/dist/{campaign-l-u9A514.js → campaign-BpaiTG4f.js} +10 -10
- package/dist/{campaign-D9KeUWA7.js → campaign-CAcP56Sz.js} +2 -2
- package/dist/{campaign.enum-Cud82tES.js → campaign.enum-BWjI8Hop.js} +1 -1
- package/dist/{campaign.fn-C-UojhHv.js → campaign.fn-PVdB1-V1.js} +166 -166
- package/dist/{collectible.enum-PrlUDScv.js → collectible.enum-BYmuqayi.js} +1 -1
- package/dist/{collection.fn-yR-xnV4g.js → collection.fn-CbH8hbWW.js} +2 -2
- package/dist/{dto-Cua1OHMY.js → dto-Dd3Oc4QO.js} +4 -4
- package/dist/{effect-B5-eXNEr.js → effect-DvEQNEl0.js} +1 -1
- package/dist/{email-addresses-BeYh5fr5.js → email-addresses-C-9JrAi8.js} +1 -1
- package/dist/{export-BUF4_DUz.js → export-RWE9Cn-d.js} +4 -4
- package/dist/{helper-CGwOThAl.js → helper-Bl6LdWED.js} +1 -1
- package/dist/{index-Cl2iYM2F.js → index-1bU9cLqV.js} +1 -1
- package/dist/{index-1BGPM6Uy.js → index-BCQMVr1J.js} +1 -1
- package/dist/{index-BmL_b0IR.js → index-Bgnrbk5x.js} +1 -1
- package/dist/{index-knuJv0ti.js → index-Bjf5Z2QE.js} +4 -4
- package/dist/{index-ng2IXlL1.js → index-CFW9ogow.js} +1 -1
- package/dist/{index-DNTd-FNx.js → index-CfgczUMX.js} +2 -2
- package/dist/{index-C-d_4n-1.js → index-CzCqc7ph.js} +1 -1
- package/dist/{index-aMDi62-C.js → index-DX1X6Owa.js} +1 -1
- package/dist/{index-DlFVLRKG.js → index-DZN5WWgq.js} +3 -3
- package/dist/{index-D5KIp8ZB.js → index-DhUvELhc.js} +3 -3
- package/dist/{index-Cx8-ipee.js → index-DpoNuVc-.js} +6 -6
- package/dist/{index-BLdVWQId.js → index-G_XSbrXB.js} +3 -3
- package/dist/{index-hX2mE0gQ.js → index-VVy4GPzJ.js} +1 -1
- package/dist/{index-CB8iWT_p.js → index-wOExBjGo.js} +1 -1
- package/dist/{index.esm2017-D8stWFci.js → index.esm2017-DfgZFSqe.js} +1 -1
- package/dist/{loading-c4b7n9Xp.js → loading-qlqqYGF3.js} +1 -1
- package/dist/{membership-oBIs4sbL.js → membership-Bh_1iu5v.js} +3 -3
- package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
- package/dist/{money-AP24H0gk.js → money-DvTB_Fek.js} +1 -1
- package/dist/{number-CwsAYC_2.js → number-DJQ3gi1P.js} +1 -1
- package/dist/objectid-BKU0cEuv.js +145 -0
- package/dist/{plugins-Dn7JDHi7.js → plugins-DJpBrPbQ.js} +2 -2
- package/dist/{reward-4wdoZeXw.js → reward-DZ4KlN9B.js} +1 -1
- package/dist/{rule-_OJza6tn.js → rule-DV0yCGlq.js} +4 -4
- package/dist/{rule-builder-DmlhHAED.js → rule-builder-D6ihVPNO.js} +1 -1
- package/dist/{template-BSQLFHf4.js → template-ElP-JIFL.js} +63 -63
- package/dist/timezone-FaHjut_D.js +1150 -0
- package/dist/{trigger-DC9tDnI2.js → trigger-D8wnJVTA.js} +4 -4
- package/dist/usePagination-Ds-cuHop.js +223 -0
- package/dist/{user-CCVOptFD.js → user-NWV9KppR.js} +1 -1
- package/dist/{vue-i18n--_Wu1nMj.js → vue-i18n-CkbS-IDD.js} +112 -112
- package/dist/{xlsx-BVMaOi8M.js → xlsx-CdQE5RZi.js} +226 -226
- package/package.json +5 -4
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
- package/dist/MemberList-DLSLGQ02.js +0 -1606
- package/dist/MemberOverview-C2n9oJZh.js +0 -58
- package/dist/Setting-Dt0sG_hk.js +0 -1936
- package/dist/StoreRewards-DuSsWnTE.js +0 -423
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Qc5cCqh5.js +0 -419
- package/dist/app-jRT7vsk_.js +0 -33357
- package/dist/objectid-CVDLTdni.js +0 -145
- package/dist/usePagination-JoYaROkV.js +0 -223
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
var te = Object.defineProperty;
|
|
2
2
|
var ae = (g, i, d) => i in g ? te(g, i, { enumerable: !0, configurable: !0, writable: !0, value: d }) : g[i] = d;
|
|
3
3
|
var K = (g, i, d) => ae(g, typeof i != "symbol" ? i + "" : i, d);
|
|
4
|
-
import { defineComponent as H, ref as f, computed as J, watch as T, resolveComponent as u, openBlock as x, createBlock as z, unref as o, isRef as j, withCtx as I, createElementVNode as
|
|
5
|
-
import { h as G } from "./moment-
|
|
4
|
+
import { defineComponent as H, ref as f, computed as J, watch as T, resolveComponent as u, openBlock as x, createBlock as z, unref as o, isRef as j, withCtx as I, createElementVNode as h, createVNode as r, createElementBlock as R, Fragment as N, renderList as le, createCommentVNode as U, onMounted as ne, h as Y } from "vue";
|
|
5
|
+
import { h as G } from "./moment-D7p2TMB-.js";
|
|
6
6
|
import { components as se } from "@feedmepos/ui-library";
|
|
7
|
-
import "./index-
|
|
7
|
+
import "./index-DhUvELhc.js";
|
|
8
8
|
import { J as re } from "./JsonViewer-v8_C7l5N.js";
|
|
9
|
-
import { u as Q } from "./loading-
|
|
9
|
+
import { u as Q } from "./loading-qlqqYGF3.js";
|
|
10
10
|
import { u as ie } from "./app-wDQR6dpb.js";
|
|
11
11
|
import { useRoute as W, useRouter as ue } from "vue-router";
|
|
12
|
-
import { c as P } from "./index-
|
|
12
|
+
import { c as P } from "./index-BCQMVr1J.js";
|
|
13
13
|
import { e as p } from "./index-vh86FiIQ.js";
|
|
14
|
-
import { u as $, w as de } from "./xlsx-
|
|
15
|
-
import { g as ce } from "./user-
|
|
16
|
-
import { u as me, _ as pe } from "./usePagination-
|
|
17
|
-
import { a as fe } from "./plugins-
|
|
18
|
-
import { m as ge } from "./index-
|
|
14
|
+
import { u as $, w as de } from "./xlsx-CdQE5RZi.js";
|
|
15
|
+
import { g as ce } from "./user-NWV9KppR.js";
|
|
16
|
+
import { u as me, _ as pe } from "./usePagination-Ds-cuHop.js";
|
|
17
|
+
import { a as fe } from "./plugins-DJpBrPbQ.js";
|
|
18
|
+
import { m as ge } from "./index-DX1X6Owa.js";
|
|
19
19
|
import { o as Ce } from "./objectId-dwaoBfJX.js";
|
|
20
|
-
const be =
|
|
20
|
+
const be = { class: "space-y-16" }, ve = { class: "gap-16 grid grid-cols-2" }, he = { class: "flex items-center gap-8" }, ye = /* @__PURE__ */ H({
|
|
21
21
|
__name: "CreateCollectionSheet",
|
|
22
22
|
emits: ["success"],
|
|
23
23
|
setup(g, { expose: i, emit: d }) {
|
|
@@ -93,7 +93,7 @@ const be = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-600" }, "Code t
|
|
|
93
93
|
function l(s) {
|
|
94
94
|
if (c.value !== "single") return !1;
|
|
95
95
|
const e = s.split(`
|
|
96
|
-
`).map((
|
|
96
|
+
`).map((v) => v.trim()).filter(Boolean);
|
|
97
97
|
return new Set(e).size !== e.length;
|
|
98
98
|
}
|
|
99
99
|
function b(s) {
|
|
@@ -110,7 +110,7 @@ const be = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-600" }, "Code t
|
|
|
110
110
|
s != e && (a.value.codeConfig.length = (a.value.codeConfig.pattern.match(/#/g) || []).length);
|
|
111
111
|
}
|
|
112
112
|
), (s, e) => {
|
|
113
|
-
const
|
|
113
|
+
const v = u("FmRadio"), M = u("FmRadioGroup"), m = u("FmSwitch"), L = u("FmStepperField"), X = u("FmSelect"), _ = u("FmTextField"), Z = u("FmTextarea"), ee = u("FmForm"), O = u("FmButton"), oe = u("FmSideSheet");
|
|
114
114
|
return x(), z(oe, {
|
|
115
115
|
"max-width": 560,
|
|
116
116
|
"dismiss-away": !0,
|
|
@@ -122,7 +122,7 @@ const be = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-600" }, "Code t
|
|
|
122
122
|
]
|
|
123
123
|
}, {
|
|
124
124
|
"side-sheet-footer": I(() => [
|
|
125
|
-
|
|
125
|
+
h("div", he, [
|
|
126
126
|
r(O, {
|
|
127
127
|
label: "Save",
|
|
128
128
|
onClick: e[12] || (e[12] = (t) => n(o(a))),
|
|
@@ -146,15 +146,15 @@ const be = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-600" }, "Code t
|
|
|
146
146
|
onValidationFailed: e[11] || (e[11] = (t) => k.value = !1)
|
|
147
147
|
}, {
|
|
148
148
|
default: I(() => [
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
h("div", null, [
|
|
150
|
+
e[16] || (e[16] = h("div", { class: "fm-typo-en-body-lg-600" }, "Code type", -1)),
|
|
151
151
|
r(M, {
|
|
152
152
|
modelValue: o(c),
|
|
153
153
|
"onUpdate:modelValue": e[0] || (e[0] = (t) => j(c) ? c.value = t : null),
|
|
154
154
|
inline: !1
|
|
155
155
|
}, {
|
|
156
156
|
default: I(() => [
|
|
157
|
-
(x(), R(N, null, le(E, (t) => r(
|
|
157
|
+
(x(), R(N, null, le(E, (t) => r(v, {
|
|
158
158
|
key: t.value,
|
|
159
159
|
value: t.value,
|
|
160
160
|
label: t.label,
|
|
@@ -164,8 +164,8 @@ const be = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-600" }, "Code t
|
|
|
164
164
|
_: 1
|
|
165
165
|
}, 8, ["modelValue"])
|
|
166
166
|
]),
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
h("div", be, [
|
|
168
|
+
e[17] || (e[17] = h("div", { class: "fm-typo-en-body-lg-600" }, "Settings", -1)),
|
|
169
169
|
o(c) === "bulk" ? (x(), R(N, { key: 0 }, [
|
|
170
170
|
r(m, {
|
|
171
171
|
"model-value": o(V),
|
|
@@ -204,7 +204,7 @@ const be = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-600" }, "Code t
|
|
|
204
204
|
label: "Custom Charset",
|
|
205
205
|
required: ""
|
|
206
206
|
}, null, 8, ["modelValue"])) : U("", !0),
|
|
207
|
-
|
|
207
|
+
h("div", ve, [
|
|
208
208
|
r(_, {
|
|
209
209
|
modelValue: o(a).codeConfig.prefix,
|
|
210
210
|
"onUpdate:modelValue": e[5] || (e[5] = (t) => o(a).codeConfig.prefix = t),
|
|
@@ -257,7 +257,7 @@ const be = /* @__PURE__ */ v("div", { class: "fm-typo-en-body-lg-600" }, "Code t
|
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
|
-
class
|
|
260
|
+
class xe {
|
|
261
261
|
constructor() {
|
|
262
262
|
K(this, "data", []);
|
|
263
263
|
}
|
|
@@ -269,7 +269,7 @@ class Se {
|
|
|
269
269
|
return $.book_append_sheet(i, d, "Collection"), i;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
const
|
|
272
|
+
const Ve = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Se = { class: "flex items-center justify-end py-4 xs:hidden" }, ze = /* @__PURE__ */ H({
|
|
273
273
|
__name: "Collections",
|
|
274
274
|
setup(g) {
|
|
275
275
|
const i = ue(), d = W(), S = f(), w = J(() => d.params.id), F = f(!1), { custom: k } = Q, q = [
|
|
@@ -346,14 +346,14 @@ const we = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Fe = { class: "flex
|
|
|
346
346
|
F.value || k(
|
|
347
347
|
async () => {
|
|
348
348
|
var s;
|
|
349
|
-
const n = new
|
|
349
|
+
const n = new xe(), l = (await P.readCollectionsByCampaignId(w.value, {
|
|
350
350
|
limit: 1,
|
|
351
351
|
skip: 0,
|
|
352
352
|
sortBy: p.sortBy,
|
|
353
353
|
descending: p.descending
|
|
354
354
|
})).meta.totalResources ?? 0, b = p.rowsPerPage;
|
|
355
355
|
for (let e = 0; e < l; e += b) {
|
|
356
|
-
const
|
|
356
|
+
const v = {
|
|
357
357
|
...p,
|
|
358
358
|
limit: b,
|
|
359
359
|
skip: p.page - 1,
|
|
@@ -361,7 +361,7 @@ const we = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Fe = { class: "flex
|
|
|
361
361
|
descending: p.descending
|
|
362
362
|
}, M = await P.readCollectionsByCampaignId(
|
|
363
363
|
w.value,
|
|
364
|
-
|
|
364
|
+
v
|
|
365
365
|
);
|
|
366
366
|
for await (const m of M.resources) {
|
|
367
367
|
const L = {
|
|
@@ -405,11 +405,11 @@ const we = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Fe = { class: "flex
|
|
|
405
405
|
],
|
|
406
406
|
"onClick:back": l[0] || (l[0] = (e) => o(i).back()),
|
|
407
407
|
"onClick:action": l[1] || (l[1] = (e) => {
|
|
408
|
-
var
|
|
409
|
-
e === "create" && ((
|
|
408
|
+
var v;
|
|
409
|
+
e === "create" && ((v = o(S)) == null || v.showSheet(!0)), e === "export" && A();
|
|
410
410
|
})
|
|
411
411
|
}),
|
|
412
|
-
|
|
412
|
+
h("div", Ve, [
|
|
413
413
|
r(s, {
|
|
414
414
|
class: "hidden xs:flex border-b border-fm-color-neutral-gray-100",
|
|
415
415
|
modelValue: o(a).searchValue,
|
|
@@ -420,7 +420,7 @@ const we = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Fe = { class: "flex
|
|
|
420
420
|
placeholder: "Search",
|
|
421
421
|
collapsible: ""
|
|
422
422
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
423
|
-
|
|
423
|
+
h("div", Se, [
|
|
424
424
|
r(s, {
|
|
425
425
|
modelValue: o(a).searchValue,
|
|
426
426
|
"onUpdate:modelValue": [
|
|
@@ -443,7 +443,7 @@ const we = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Fe = { class: "flex
|
|
|
443
443
|
onSortChange: o(B),
|
|
444
444
|
onPageChange: l[4] || (l[4] = (e) => o(y)({ pageSize: e.pageSize, pageIndex: e.pageIndex }))
|
|
445
445
|
}, null, 8, ["loading", "row-data", "row-count", "page-count", "page-index", "page-size", "onSortChange"]),
|
|
446
|
-
r(
|
|
446
|
+
r(ye, {
|
|
447
447
|
ref_key: "sheetRef",
|
|
448
448
|
ref: S,
|
|
449
449
|
onSuccess: V
|
|
@@ -454,5 +454,5 @@ const we = { class: "px-24 flex flex-col gap-y-32 pb-24" }, Fe = { class: "flex
|
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
456
|
export {
|
|
457
|
-
|
|
457
|
+
ze as default
|
|
458
458
|
};
|
|
@@ -1,27 +1,19 @@
|
|
|
1
|
-
import { defineComponent as N, ref as S, computed as j, h as M, onMounted as A, resolveComponent as
|
|
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 C, createVNode as i, unref as a, createElementVNode as n, withCtx as h, renderList as H, createBlock as v, resolveDynamicComponent as q, toDisplayString as g, createCommentVNode as z } from "vue";
|
|
2
2
|
import { _ as G } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as J, components as O } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as Q } from "./plugins-
|
|
5
|
-
import { u as W } from "./loading-
|
|
6
|
-
import { u as X } from "./business-
|
|
7
|
-
import { u as Y } from "./campaign-
|
|
8
|
-
import { g as Z, a as V, b as L } from "./campaign-
|
|
9
|
-
import { u as ee } from "./vue-i18n
|
|
4
|
+
import { p as Q } from "./plugins-DJpBrPbQ.js";
|
|
5
|
+
import { u as W } from "./loading-qlqqYGF3.js";
|
|
6
|
+
import { u as X } from "./business-BehG4fR2.js";
|
|
7
|
+
import { u as Y } from "./campaign-CAcP56Sz.js";
|
|
8
|
+
import { g as Z, a as V, b as L } from "./campaign-BpaiTG4f.js";
|
|
9
|
+
import { u as ee } from "./vue-i18n-CkbS-IDD.js";
|
|
10
10
|
import { _ as oe } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
11
|
-
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { u as ae } from "./template-
|
|
13
|
-
import { c as _ } from "./index-
|
|
14
|
-
const ne = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" },
|
|
15
|
-
ye
|
|
16
|
-
], _e = /* @__PURE__ */ n("img", {
|
|
17
|
-
src: G,
|
|
18
|
-
class: "aspect-square w-[150px]"
|
|
19
|
-
}, null, -1), he = /* @__PURE__ */ n("div", { class: "flex flex-col gap-16 text-center" }, [
|
|
20
|
-
/* @__PURE__ */ n("div", { class: "fm-typo-en-title-sm-800" }, "Create your credit program"),
|
|
21
|
-
/* @__PURE__ */ 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. ")
|
|
22
|
-
], -1), Te = /* @__PURE__ */ N({
|
|
11
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Dt9c2kvf.js";
|
|
12
|
+
import { u as ae } from "./template-ElP-JIFL.js";
|
|
13
|
+
import { c as _ } from "./index-BCQMVr1J.js";
|
|
14
|
+
const ne = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ie = { class: "space-y-8" }, le = { class: "flex w-full gap-4 items-center" }, ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { key: 0 }, Ie = /* @__PURE__ */ N({
|
|
23
15
|
__name: "Credit",
|
|
24
|
-
setup(
|
|
16
|
+
setup(ye) {
|
|
25
17
|
const { t: r } = ee(), I = {
|
|
26
18
|
label: r("connect.program.common.actions.create", {
|
|
27
19
|
type: r("connect.program.credit.title").toLowerCase()
|
|
@@ -59,8 +51,8 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
59
51
|
variant: "tertiary",
|
|
60
52
|
icon: "delete",
|
|
61
53
|
iconColor: "neutral-gray-400",
|
|
62
|
-
onClick: (
|
|
63
|
-
|
|
54
|
+
onClick: (o) => {
|
|
55
|
+
o.stopPropagation(), x(e.row.original);
|
|
64
56
|
}
|
|
65
57
|
});
|
|
66
58
|
}
|
|
@@ -82,10 +74,10 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
82
74
|
);
|
|
83
75
|
}
|
|
84
76
|
async function f(e) {
|
|
85
|
-
e ? await
|
|
86
|
-
await
|
|
77
|
+
e ? await o() : R.open(async (p) => {
|
|
78
|
+
await o(p);
|
|
87
79
|
});
|
|
88
|
-
async function
|
|
80
|
+
async function o(p) {
|
|
89
81
|
var u;
|
|
90
82
|
(u = b.value) == null || u.showSheet(
|
|
91
83
|
!0,
|
|
@@ -110,78 +102,78 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
110
102
|
await D(async () => {
|
|
111
103
|
await m.read("CREDIT");
|
|
112
104
|
});
|
|
113
|
-
}), (e,
|
|
114
|
-
const p =
|
|
115
|
-
return
|
|
116
|
-
|
|
117
|
-
title:
|
|
118
|
-
actions:
|
|
119
|
-
"onClick:action":
|
|
105
|
+
}), (e, o) => {
|
|
106
|
+
const p = l("FmPageHead"), u = l("FmSearch"), K = l("FmTable"), F = l("FmButton"), $ = l("FmListItem"), P = l("FmList"), U = l("FmCard");
|
|
107
|
+
return c(), y(C, null, [
|
|
108
|
+
i(p, {
|
|
109
|
+
title: a(r)("connect.program.credit.title"),
|
|
110
|
+
actions: a(d).length > 0 ? [I] : [],
|
|
111
|
+
"onClick:action": o[0] || (o[0] = () => f())
|
|
120
112
|
}, null, 8, ["title", "actions"]),
|
|
121
113
|
n("div", ne, [
|
|
122
|
-
|
|
123
|
-
modelValue:
|
|
124
|
-
"onUpdate:modelValue":
|
|
114
|
+
i(u, {
|
|
115
|
+
modelValue: a(s).searchKey,
|
|
116
|
+
"onUpdate:modelValue": o[1] || (o[1] = (t) => a(s).searchKey = t),
|
|
125
117
|
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
126
118
|
placeholder: "search",
|
|
127
119
|
collapsible: ""
|
|
128
120
|
}, null, 8, ["modelValue"]),
|
|
129
|
-
|
|
121
|
+
a(m).campaigns.credit && a(m).campaigns.credit.length > 0 ? (c(), y(C, { key: 0 }, [
|
|
130
122
|
n("div", re, [
|
|
131
123
|
n("div", se, [
|
|
132
|
-
|
|
133
|
-
modelValue:
|
|
134
|
-
"onUpdate:modelValue":
|
|
124
|
+
i(oe, {
|
|
125
|
+
modelValue: a(s).location,
|
|
126
|
+
"onUpdate:modelValue": o[2] || (o[2] = (t) => a(s).location = t),
|
|
135
127
|
label: "Location: ",
|
|
136
128
|
"show-item-label": !0,
|
|
137
129
|
icon: "storefront",
|
|
138
130
|
placement: "bottom-start",
|
|
139
|
-
items:
|
|
131
|
+
items: a(B).locationItems
|
|
140
132
|
}, null, 8, ["modelValue", "items"])
|
|
141
133
|
]),
|
|
142
|
-
|
|
143
|
-
modelValue:
|
|
144
|
-
"onUpdate:modelValue":
|
|
134
|
+
i(u, {
|
|
135
|
+
modelValue: a(s).searchKey,
|
|
136
|
+
"onUpdate:modelValue": o[3] || (o[3] = (t) => a(s).searchKey = t),
|
|
145
137
|
class: "xs:hidden",
|
|
146
138
|
placeholder: "search",
|
|
147
139
|
collapsible: ""
|
|
148
140
|
}, null, 8, ["modelValue"])
|
|
149
141
|
]),
|
|
150
|
-
|
|
142
|
+
i(K, {
|
|
151
143
|
class: "xs:hidden",
|
|
152
|
-
"row-data":
|
|
144
|
+
"row-data": a(d),
|
|
153
145
|
"column-defs": T,
|
|
154
|
-
"search-value":
|
|
146
|
+
"search-value": a(s).searchKey,
|
|
155
147
|
"column-filter": [],
|
|
156
|
-
onRowClick:
|
|
157
|
-
"hide-footer":
|
|
148
|
+
onRowClick: o[4] || (o[4] = (t) => f(t.original)),
|
|
149
|
+
"hide-footer": a(d).length < 10
|
|
158
150
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
159
|
-
|
|
160
|
-
default:
|
|
161
|
-
(
|
|
162
|
-
(
|
|
163
|
-
), (
|
|
164
|
-
key:
|
|
165
|
-
onClick: (k) => f(
|
|
151
|
+
i(P, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
152
|
+
default: h(() => [
|
|
153
|
+
(c(!0), y(C, null, H(a(d).filter(
|
|
154
|
+
(t) => t.name.toLowerCase().includes(a(s).searchKey.toLowerCase())
|
|
155
|
+
), (t) => (c(), v($, {
|
|
156
|
+
key: t._id.toString(),
|
|
157
|
+
onClick: (k) => f(t),
|
|
166
158
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
167
159
|
}, {
|
|
168
|
-
default:
|
|
169
|
-
n("div",
|
|
170
|
-
n("div",
|
|
171
|
-
(
|
|
172
|
-
n("div",
|
|
160
|
+
default: h(() => [
|
|
161
|
+
n("div", ie, [
|
|
162
|
+
n("div", le, [
|
|
163
|
+
(c(), v(q(a(V)(t)))),
|
|
164
|
+
n("div", ce, g(t.currentReceive ?? 0) + " used ", 1)
|
|
173
165
|
]),
|
|
174
166
|
n("div", me, [
|
|
175
|
-
n("div", de, g(
|
|
176
|
-
n("div", pe, g(
|
|
167
|
+
n("div", de, g(t.name), 1),
|
|
168
|
+
n("div", pe, g(a(L)(t)), 1)
|
|
177
169
|
]),
|
|
178
|
-
n("div", ue, " Credit received: " + g(
|
|
170
|
+
n("div", ue, " Credit received: " + g(t.currentReceive ?? 0), 1)
|
|
179
171
|
]),
|
|
180
|
-
|
|
172
|
+
i(F, {
|
|
181
173
|
icon: "delete",
|
|
182
174
|
"icon-color": "neutral-gray-400",
|
|
183
175
|
variant: "tertiary",
|
|
184
|
-
onClick: (k) => (k.stopPropagation(), x(
|
|
176
|
+
onClick: (k) => (k.stopPropagation(), x(t))
|
|
185
177
|
}, null, 8, ["onClick"])
|
|
186
178
|
]),
|
|
187
179
|
_: 2
|
|
@@ -189,25 +181,33 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
189
181
|
]),
|
|
190
182
|
_: 1
|
|
191
183
|
}),
|
|
192
|
-
|
|
193
|
-
|
|
184
|
+
a(d).length == 0 ? (c(), y("div", fe, [...o[6] || (o[6] = [
|
|
185
|
+
n("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1)
|
|
186
|
+
])])) : z("", !0)
|
|
187
|
+
], 64)) : (c(), v(U, {
|
|
194
188
|
key: 1,
|
|
195
189
|
variant: "outlined",
|
|
196
190
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
197
191
|
}, {
|
|
198
|
-
default:
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
192
|
+
default: h(() => [
|
|
193
|
+
o[7] || (o[7] = n("img", {
|
|
194
|
+
src: G,
|
|
195
|
+
class: "aspect-square w-[150px]"
|
|
196
|
+
}, null, -1)),
|
|
197
|
+
o[8] || (o[8] = n("div", { class: "flex flex-col gap-16 text-center" }, [
|
|
198
|
+
n("div", { class: "fm-typo-en-title-sm-800" }, "Create your credit program"),
|
|
199
|
+
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. ")
|
|
200
|
+
], -1)),
|
|
201
|
+
i(F, {
|
|
202
202
|
variant: "primary",
|
|
203
203
|
label: "Create credit program",
|
|
204
204
|
icon: "add",
|
|
205
|
-
onClick:
|
|
205
|
+
onClick: o[5] || (o[5] = (t) => f())
|
|
206
206
|
})
|
|
207
207
|
]),
|
|
208
208
|
_: 1
|
|
209
209
|
})),
|
|
210
|
-
|
|
210
|
+
i(te, {
|
|
211
211
|
ref_key: "sheetRef",
|
|
212
212
|
ref: b,
|
|
213
213
|
"onSubmit:modelValue": E
|
|
@@ -218,5 +218,5 @@ const ne = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
218
218
|
}
|
|
219
219
|
});
|
|
220
220
|
export {
|
|
221
|
-
|
|
221
|
+
Ie as default
|
|
222
222
|
};
|