@feedmepos/mf-connect 0.0.16-beta.12 → 0.0.16-beta.13
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-DIc9BYb0.js → Analytic-B8FGU0B7.js} +32 -32
- package/dist/App-BXAJ1Z_T.js +6260 -0
- package/dist/{Broadcast-dVPgK5QV.js → Broadcast-DvmjAtxH.js} +8 -8
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-TnEPvafD.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Dvp3mOEx.js} +8 -8
- package/dist/{Card-Bj2Yd2pr.js → Card-DblSxqRr.js} +28 -28
- package/dist/{Collections-Fkb_zzqZ.js → Collections-C4KRnnWW.js} +4 -4
- package/dist/{Credit-DHn9OkE8.js → Credit-C5MbDbWr.js} +8 -8
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C1ZXQski.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-2MKUx_As.js} +718 -718
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-D6mWny8y.js → EffectSheet.vue_vue_type_style_index_0_lang-CCsxDg45.js} +5 -5
- package/dist/{Experience-DX3aJihS.js → Experience-CmDLg17p.js} +8 -8
- package/dist/{Game-CcVQvETd.js → Game-5zvjlfuj.js} +8 -8
- package/dist/{Marketing-B9kykWEh.js → Marketing-BVpimsBU.js} +5 -5
- package/dist/Member-BkOqtn9n.js +69 -0
- package/dist/{MemberList-BUDxqMEK.js → MemberList-3IvxRInu.js} +105 -105
- package/dist/{MemberTransactions-Bh_tT1Rp.js → MemberTransactions-DRpV77Pn.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Cj3-JHOX.js → MessageInput.vue_vue_type_script_setup_true_lang-CBvpHaAl.js} +2 -2
- package/dist/{Mission-DDvgCLy0.js → Mission-9fJLMJKS.js} +8 -8
- package/dist/{Point-BbPkt4kF.js → Point-7O6IdhWH.js} +8 -8
- package/dist/Promotion-XqpFw0IZ.js +247 -0
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BGjeTeqS.js → RuleGroup.vue_vue_type_script_setup_true_lang-1Fko0V0J.js} +14 -14
- package/dist/{Segment-DAcpZWIN.js → Segment-DMaHcJT_.js} +8 -8
- package/dist/{Setting-CgXohUPt.js → Setting-DQh2aqfD.js} +8 -8
- package/dist/{Store-BVyHbQ8o.js → Store-WvEUlY9N.js} +393 -393
- package/dist/{StoreRewards-sccMDbkj.js → StoreRewards-D50uR2b9.js} +11 -11
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang--sdQ_l8g.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Cm0lHUkP.js} +6 -6
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CXlkvt2u.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BnjVkkS1.js} +1 -1
- package/dist/{Tier--P27XXbB.js → Tier-CqNKi52t.js} +14 -14
- package/dist/{Title-B27S3SxD.js → Title-CzBp5ig0.js} +14 -14
- package/dist/{Transaction-CYTtwwHY.js → Transaction-EKIwyavj.js} +2 -2
- package/dist/{Voucher-BZ8PKgO5.js → Voucher-Dhpzn8gs.js} +11 -11
- package/dist/{app-FfENBuoE.js → app-3-6LVz11.js} +27 -24
- package/dist/{app-CnKzqAcN.js → app-DM-4iSsh.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-CXyP9G7A.js → business-Wk7ElvEz.js} +1 -1
- package/dist/{campaign-0aM2KYOy.js → campaign-tHUDB7cm.js} +2 -2
- package/dist/{collection.fn-FicQhH1t.js → collection.fn-DS11Xpbu.js} +2 -2
- package/dist/{dto-BiYLkVdL.js → dto-B8X9qnLh.js} +147 -147
- package/dist/{effect-Cg-eNEjg.js → effect-BH3AL4S6.js} +9 -9
- package/dist/{export-D7BuObOL.js → export-DAAmj_h9.js} +3 -3
- package/dist/{helper-DvD-D7c7.js → helper-BSKllptD.js} +1 -1
- package/dist/index-5FIs0G8O.js +29193 -0
- package/dist/{index-DmdKoKk_.js → index-B0Pw9YQd.js} +2 -2
- package/dist/{index-BRXg5Si1.js → index-BH-mOC5-.js} +5 -5
- package/dist/{index-B1Q0GAWp.js → index-BO94KhQO.js} +1 -1
- package/dist/{index-BuDwICBJ.js → index-BgIWS3vT.js} +5 -5
- package/dist/{index-B6c-fUij.js → index-CIBWHBM-.js} +2 -2
- package/dist/{index-DA-fzkRR.js → index-CPxCpRFW.js} +3 -3
- package/dist/{index-Dkeb_9ER.js → index-CoYSYku2.js} +1 -1
- package/dist/{index-G-88ujCM.js → index-DOFTUTiA.js} +1 -1
- package/dist/{index-BP_5cfKa.js → index-DmxAa1MA.js} +1 -1
- package/dist/{index-CDMC-8iO.js → index-Z7d84hDW.js} +7 -2
- package/dist/{index-CcZt3OrE.js → index-vIwngIP9.js} +1 -1
- package/dist/index.esm2017-jX1Q0DsS.js +3069 -0
- package/dist/{loading-uCNeZibp.js → loading-DeWfPgai.js} +10751 -13605
- package/dist/{membership-DFRO9TyM.js → membership-oIubaesw.js} +3 -3
- package/dist/money-D-3GphEZ.js +15 -0
- package/dist/number-D_Fi0beD.js +12 -0
- package/dist/{rule-Ch2HRiGw.js → rule-C37bqQrm.js} +314 -343
- package/dist/{rule-builder-B_M9yvEe.js → rule-builder-DPQJ8Tbv.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-1o0LbOoJ.js → template-CIStnXhd.js} +4 -4
- package/dist/tslib.es6-BCqqvLQ_.js +44 -0
- package/dist/{vue-i18n-AtGIa4qH.js → vue-i18n-jf-SfrQy.js} +272 -272
- package/dist/{xlsx-pChq0adn.js → xlsx-C91dwH9k.js} +1 -1
- package/package.json +11 -11
- package/dist/App-BzzL9_Jw.js +0 -177
- package/dist/Member-RoJSCSC5.js +0 -69
- package/dist/Promotion-DEo-lxpX.js +0 -221
- package/dist/index-B4UZgSB-.js +0 -28058
- package/dist/money-OtkT4Pzp.js +0 -15
- package/dist/number-Cg3NCouc.js +0 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, ref as p, resolveComponent as _, openBlock as l, createElementBlock as d, createVNode as f, unref as e, createBlock as r, createCommentVNode as v } from "vue";
|
|
2
|
-
import { _ as b, a as k } from "./StoreTransactions.vue_vue_type_script_setup_true_lang
|
|
2
|
+
import { _ as b, a as k } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-Cm0lHUkP.js";
|
|
3
3
|
import { useRouter as x } from "vue-router";
|
|
4
4
|
const C = { class: "flex flex-col gap-y-32 pb-24" }, N = /* @__PURE__ */ i({
|
|
5
5
|
__name: "MemberTransactions",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as M, shallowRef as R, openBlock as p, createElementBlock as _, normalizeStyle as O, ref as V, resolveComponent as g, createBlock as E, unref as s, isRef as N, withCtx as x, createVNode as h, createElementVNode as v, createCommentVNode as B, withDirectives as D, vShow as A, computed as q, onMounted as J, Fragment as U, createTextVNode as P, toDisplayString as z, renderList as G } from "vue";
|
|
2
|
-
import { p as K } from "./loading-
|
|
3
|
-
import { r as W } from "./index-
|
|
2
|
+
import { p as K } from "./loading-DeWfPgai.js";
|
|
3
|
+
import { r as W } from "./index-BgIWS3vT.js";
|
|
4
4
|
import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import { _ as Q, S as X } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js";
|
|
6
6
|
import { c as Y } from "./object-qECH92oz.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as $, ref as L, computed as E, h as m, onMounted as A, resolveComponent as c, openBlock as d, createElementBlock as h, Fragment as w, createVNode as r, unref as t, createElementVNode as s, withCtx as b, renderList as H, createBlock as x, resolveDynamicComponent as q, toDisplayString as p } from "vue";
|
|
2
2
|
import { _ as z } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as G, components as v } from "@feedmepos/ui-library";
|
|
4
|
-
import { a as J, p as Q, u as W } from "./loading-
|
|
5
|
-
import { u as X } from "./business-
|
|
6
|
-
import { u as Y } from "./campaign-
|
|
7
|
-
import { g as V, b as M } from "./dto-
|
|
4
|
+
import { a as J, p as Q, u as W } from "./loading-DeWfPgai.js";
|
|
5
|
+
import { u as X } from "./business-Wk7ElvEz.js";
|
|
6
|
+
import { u as Y } from "./campaign-tHUDB7cm.js";
|
|
7
|
+
import { g as V, b as M } from "./dto-B8X9qnLh.js";
|
|
8
8
|
import { _ as Z } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
9
|
-
import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as oe } from "./template-
|
|
9
|
+
import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-2MKUx_As.js";
|
|
10
|
+
import { u as oe } from "./template-CIStnXhd.js";
|
|
11
11
|
import { s as te } from "./index-CuvNtC_M.js";
|
|
12
|
-
import { u as ne } from "./vue-i18n-
|
|
13
|
-
import { c as _ } from "./index-
|
|
12
|
+
import { u as ne } from "./vue-i18n-jf-SfrQy.js";
|
|
13
|
+
import { c as _ } from "./index-Z7d84hDW.js";
|
|
14
14
|
const ae = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-center justify-between w-full" }, ie = { class: "flex gap-8 overflow-x-auto" }, re = { class: "space-y-8" }, ce = { class: "flex w-full gap-4 items-center" }, le = { 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" }, ge = { class: "flex flex-col gap-16 text-center" }, fe = { class: "fm-typo-en-title-sm-800" }, ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Be = /* @__PURE__ */ $({
|
|
15
15
|
__name: "Mission",
|
|
16
16
|
setup(_e) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as j, ref as V, computed as A, h as E, onMounted as M, resolveComponent as l, openBlock as d, createElementBlock as h, Fragment as b, createVNode as r, unref as t, withCtx as g, createElementVNode as n, toDisplayString as c, renderList as H, createBlock as w, resolveDynamicComponent as q } from "vue";
|
|
2
2
|
import { _ as z } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as G, components as J } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as Q, u as W } from "./loading-
|
|
5
|
-
import { u as X } from "./business-
|
|
6
|
-
import { u as Y } from "./campaign-
|
|
7
|
-
import { g as I, b as P } from "./dto-
|
|
4
|
+
import { p as Q, u as W } from "./loading-DeWfPgai.js";
|
|
5
|
+
import { u as X } from "./business-Wk7ElvEz.js";
|
|
6
|
+
import { u as Y } from "./campaign-tHUDB7cm.js";
|
|
7
|
+
import { g as I, b as P } from "./dto-B8X9qnLh.js";
|
|
8
8
|
import { _ as Z } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
9
|
-
import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as te } from "./template-
|
|
11
|
-
import { u as oe } from "./vue-i18n-
|
|
12
|
-
import { c as _ } from "./index-
|
|
9
|
+
import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-2MKUx_As.js";
|
|
10
|
+
import { u as te } from "./template-CIStnXhd.js";
|
|
11
|
+
import { u as oe } from "./vue-i18n-jf-SfrQy.js";
|
|
12
|
+
import { c as _ } from "./index-Z7d84hDW.js";
|
|
13
13
|
const ae = { class: "flex items-center" }, ne = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, se = { class: "px-24 flex flex-col gap-y-16" }, ie = { class: "flex items-center justify-between w-full" }, re = { class: "flex gap-8 overflow-x-auto" }, le = { class: "space-y-8" }, ce = { class: "flex w-full gap-4 items-center" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "space-y-4" }, pe = { class: "fm-typo-en-body-lg-600" }, ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "flex flex-col gap-16 text-center" }, ge = { class: "fm-typo-en-title-sm-800" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Be = /* @__PURE__ */ j({
|
|
14
14
|
__name: "Point",
|
|
15
15
|
setup(he) {
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { defineComponent as H, ref as S, computed as q, h as z, onMounted as G, resolveComponent as l, openBlock as m, createElementBlock as h, Fragment as w, createVNode as r, unref as a, createElementVNode as s, withCtx as v, renderList as J, createBlock as b, resolveDynamicComponent as Q, toDisplayString as g } from "vue";
|
|
2
|
+
import { _ as W } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as X, components as Y } from "@feedmepos/ui-library";
|
|
4
|
+
import { c as O, p as I, u as Z } from "./loading-DeWfPgai.js";
|
|
5
|
+
import { u as ee } from "./business-Wk7ElvEz.js";
|
|
6
|
+
import { u as oe } from "./campaign-tHUDB7cm.js";
|
|
7
|
+
import { u as te } from "./vue-i18n-jf-SfrQy.js";
|
|
8
|
+
import { g as V } from "./dto-B8X9qnLh.js";
|
|
9
|
+
import { e as L } from "./effect-BH3AL4S6.js";
|
|
10
|
+
import { _ as ne } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
11
|
+
import { _ as ae } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-2MKUx_As.js";
|
|
12
|
+
import { u as se } from "./template-CIStnXhd.js";
|
|
13
|
+
import { c as u } from "./index-Z7d84hDW.js";
|
|
14
|
+
const ie = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, le = { class: "flex gap-8 overflow-x-auto" }, ce = { class: "space-y-8" }, me = { class: "flex w-full gap-4 items-center" }, pe = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le = /* @__PURE__ */ H({
|
|
15
|
+
__name: "Promotion",
|
|
16
|
+
setup(_e) {
|
|
17
|
+
const { t } = te(), T = {
|
|
18
|
+
label: t("connect.promotion.createCampaign"),
|
|
19
|
+
value: "create",
|
|
20
|
+
isPrimary: !0,
|
|
21
|
+
prependIcon: "add"
|
|
22
|
+
}, B = {
|
|
23
|
+
label: "Force sync",
|
|
24
|
+
value: "sync",
|
|
25
|
+
isPrimary: !1,
|
|
26
|
+
prependIcon: "refresh"
|
|
27
|
+
}, M = se("PROMOTION", X()), x = ee(), f = oe(), { global: R, minor: _ } = Z, i = S({
|
|
28
|
+
searchKey: "",
|
|
29
|
+
location: null
|
|
30
|
+
}), c = q(
|
|
31
|
+
() => f.campaigns.promotion.filter(
|
|
32
|
+
(e) => !i.value.location || !e.targetLocation || e.targetLocation.includes(i.value.location)
|
|
33
|
+
)
|
|
34
|
+
), K = [
|
|
35
|
+
{
|
|
36
|
+
header: t("connect.promotion.promotionTitle"),
|
|
37
|
+
accessorFn: (e) => e.name
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
header: t("connect.promotion.status"),
|
|
41
|
+
cell(e) {
|
|
42
|
+
return V(e.row.original);
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
header: t("connect.promotion.type"),
|
|
47
|
+
accessorFn: (e) => `${O.title(e.effect.options.target)} promotion`
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
header: t("connect.promotion.summary"),
|
|
51
|
+
accessorFn: (e) => L(e.effect)
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
header: t("connect.promotion.actions"),
|
|
55
|
+
cell(e) {
|
|
56
|
+
return z(Y.FmButton, {
|
|
57
|
+
variant: "tertiary",
|
|
58
|
+
icon: "delete",
|
|
59
|
+
iconColor: "neutral-gray-400",
|
|
60
|
+
onClick: (n) => {
|
|
61
|
+
n.stopPropagation(), F(e.row.original);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
], C = S();
|
|
67
|
+
async function F(e) {
|
|
68
|
+
await I.remove(t("promotion.confirmRemove", { name: e.name })) && await _(
|
|
69
|
+
async () => {
|
|
70
|
+
await u.delete(e._id), await f.read("PROMOTION");
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
message: t("promotion.removing", { name: e.name }),
|
|
74
|
+
successMessage: t("promotion.removedSuccessfully", { name: e.name })
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
async function y(e) {
|
|
79
|
+
e ? await n() : M.open(async (p) => {
|
|
80
|
+
await n(p);
|
|
81
|
+
});
|
|
82
|
+
async function n(p) {
|
|
83
|
+
var d;
|
|
84
|
+
(d = C.value) == null || d.showSheet(
|
|
85
|
+
!0,
|
|
86
|
+
"PROMOTION",
|
|
87
|
+
e ? await u.readById(e._id) : void 0,
|
|
88
|
+
p
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
async function N(e) {
|
|
93
|
+
await _(
|
|
94
|
+
async () => {
|
|
95
|
+
e.campaign._id ? await u.update(e.campaign._id, e) : await u.create(e), await f.read("PROMOTION");
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
message: t(e.campaign._id ? "promotion.updating" : "promotion.creating"),
|
|
99
|
+
successMessage: t(
|
|
100
|
+
e.campaign._id ? "promotion.updatedSuccessfully" : "promotion.createdSuccessfully"
|
|
101
|
+
)
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
async function A(e) {
|
|
106
|
+
switch (e) {
|
|
107
|
+
case "create":
|
|
108
|
+
y();
|
|
109
|
+
break;
|
|
110
|
+
case "sync":
|
|
111
|
+
await I.confirm(
|
|
112
|
+
"Are you sure you want to synchronize all promotions to POS?",
|
|
113
|
+
"Force sync"
|
|
114
|
+
) && _(
|
|
115
|
+
async () => {
|
|
116
|
+
await u.syncAllPromotion();
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
message: "Syncing promotions...",
|
|
120
|
+
successMessage: "All promotions synced"
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return G(async () => {
|
|
127
|
+
await R(async () => {
|
|
128
|
+
await x.readLocations(), await f.read("PROMOTION");
|
|
129
|
+
});
|
|
130
|
+
}), (e, n) => {
|
|
131
|
+
const p = l("FmPageHead"), d = l("FmSearch"), $ = l("FmTable"), D = l("FmChip"), k = l("FmButton"), U = l("FmListItem"), j = l("FmList"), E = l("FmCard");
|
|
132
|
+
return m(), h(w, null, [
|
|
133
|
+
r(p, {
|
|
134
|
+
title: a(t)("connect.promotion.title"),
|
|
135
|
+
actions: a(c).length > 0 ? [T, B] : [],
|
|
136
|
+
"onClick:action": A
|
|
137
|
+
}, null, 8, ["title", "actions"]),
|
|
138
|
+
s("div", ie, [
|
|
139
|
+
r(d, {
|
|
140
|
+
modelValue: i.value.searchKey,
|
|
141
|
+
"onUpdate:modelValue": n[0] || (n[0] = (o) => i.value.searchKey = o),
|
|
142
|
+
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
143
|
+
placeholder: a(t)("connect.promotion.search"),
|
|
144
|
+
collapsible: ""
|
|
145
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
146
|
+
a(c) && a(c).length > 0 ? (m(), h(w, { key: 0 }, [
|
|
147
|
+
s("div", re, [
|
|
148
|
+
s("div", le, [
|
|
149
|
+
r(ne, {
|
|
150
|
+
modelValue: i.value.location,
|
|
151
|
+
"onUpdate:modelValue": n[1] || (n[1] = (o) => i.value.location = o),
|
|
152
|
+
label: a(t)("connect.promotion.location"),
|
|
153
|
+
"show-item-label": !0,
|
|
154
|
+
icon: "storefront",
|
|
155
|
+
placement: "bottom-start",
|
|
156
|
+
items: a(x).locationItems
|
|
157
|
+
}, null, 8, ["modelValue", "label", "items"])
|
|
158
|
+
]),
|
|
159
|
+
r(d, {
|
|
160
|
+
modelValue: i.value.searchKey,
|
|
161
|
+
"onUpdate:modelValue": n[2] || (n[2] = (o) => i.value.searchKey = o),
|
|
162
|
+
class: "xs:hidden",
|
|
163
|
+
placeholder: "search",
|
|
164
|
+
collapsible: ""
|
|
165
|
+
}, null, 8, ["modelValue"])
|
|
166
|
+
]),
|
|
167
|
+
r($, {
|
|
168
|
+
class: "xs:hidden",
|
|
169
|
+
"row-data": a(c),
|
|
170
|
+
"column-defs": K,
|
|
171
|
+
"search-value": i.value.searchKey,
|
|
172
|
+
"column-filter": [],
|
|
173
|
+
onRowClick: n[3] || (n[3] = (o) => y(o.original)),
|
|
174
|
+
"hide-footer": a(c).length < 10
|
|
175
|
+
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
176
|
+
r(j, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
177
|
+
default: v(() => [
|
|
178
|
+
(m(!0), h(w, null, J(a(c).filter(
|
|
179
|
+
(o) => o.name.toLowerCase().includes(i.value.searchKey.toLowerCase())
|
|
180
|
+
), (o) => (m(), b(U, {
|
|
181
|
+
key: o._id.toString(),
|
|
182
|
+
onClick: (P) => y(o),
|
|
183
|
+
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
184
|
+
}, {
|
|
185
|
+
default: v(() => [
|
|
186
|
+
s("div", ce, [
|
|
187
|
+
s("div", me, [
|
|
188
|
+
(m(), b(Q(a(V)(o)))),
|
|
189
|
+
r(D, {
|
|
190
|
+
class: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
|
|
191
|
+
compact: !0,
|
|
192
|
+
label: `${a(O).title(o.effect.options.target)} promotion`
|
|
193
|
+
}, null, 8, ["label"])
|
|
194
|
+
]),
|
|
195
|
+
s("div", pe, [
|
|
196
|
+
s("div", de, g(o.name), 1),
|
|
197
|
+
s("div", ue, g(a(L)(o.effect)), 1)
|
|
198
|
+
])
|
|
199
|
+
]),
|
|
200
|
+
r(k, {
|
|
201
|
+
icon: "delete",
|
|
202
|
+
"icon-color": "neutral-gray-400",
|
|
203
|
+
variant: "tertiary",
|
|
204
|
+
onClick: (P) => (P.stopPropagation(), F(o))
|
|
205
|
+
}, null, 8, ["onClick"])
|
|
206
|
+
]),
|
|
207
|
+
_: 2
|
|
208
|
+
}, 1032, ["onClick"]))), 128))
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
})
|
|
212
|
+
], 64)) : (m(), b(E, {
|
|
213
|
+
key: 1,
|
|
214
|
+
variant: "outlined",
|
|
215
|
+
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
216
|
+
}, {
|
|
217
|
+
default: v(() => [
|
|
218
|
+
n[5] || (n[5] = s("img", {
|
|
219
|
+
src: W,
|
|
220
|
+
class: "aspect-square w-[150px]"
|
|
221
|
+
}, null, -1)),
|
|
222
|
+
s("div", fe, [
|
|
223
|
+
s("div", ye, g(a(t)("connect.promotion.createPromotionCampaign")), 1),
|
|
224
|
+
s("div", ge, g(a(t)("connect.promotion.description")), 1)
|
|
225
|
+
]),
|
|
226
|
+
r(k, {
|
|
227
|
+
variant: "primary",
|
|
228
|
+
label: a(t)("connect.promotion.createPromotionCampaign"),
|
|
229
|
+
icon: "add",
|
|
230
|
+
onClick: n[4] || (n[4] = (o) => y())
|
|
231
|
+
}, null, 8, ["label"])
|
|
232
|
+
]),
|
|
233
|
+
_: 1
|
|
234
|
+
}))
|
|
235
|
+
]),
|
|
236
|
+
r(ae, {
|
|
237
|
+
ref_key: "sheetRef",
|
|
238
|
+
ref: C,
|
|
239
|
+
"onSubmit:modelValue": N
|
|
240
|
+
}, null, 512)
|
|
241
|
+
], 64);
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
export {
|
|
246
|
+
Le as default
|
|
247
|
+
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { defineComponent as N, computed as M, resolveComponent as g, openBlock as n, createElementBlock as F, createElementVNode as U, createVNode as v, unref as e, createTextVNode as ee, toDisplayString as j, withCtx as B, onMounted as K, createBlock as T, createCommentVNode as _, ref as P, Fragment as Y, renderList as A, normalizeClass as L, watch as ie, resolveDynamicComponent as ae, onBeforeMount as ue, isRef as me, createSlots as de } from "vue";
|
|
2
|
-
import { c as pe, C as ye, d as ce, e as ve, f as fe } from "./index-
|
|
3
|
-
import { R as D, a as be } from "./rule-builder-
|
|
4
|
-
import { a as ge, R as O, S as ke, C as H, W as Ve, T as ne, O as Ee } from "./rule-
|
|
5
|
-
import { p as Fe } from "./loading-
|
|
2
|
+
import { c as pe, C as ye, d as ce, e as ve, f as fe } from "./index-CoYSYku2.js";
|
|
3
|
+
import { R as D, a as be } from "./rule-builder-DPQJ8Tbv.js";
|
|
4
|
+
import { a as ge, R as O, S as ke, C as H, W as Ve, T as ne, O as Ee } from "./rule-C37bqQrm.js";
|
|
5
|
+
import { p as Fe } from "./loading-DeWfPgai.js";
|
|
6
6
|
import { useDialog as te, useDialogChild as se } from "@feedmepos/ui-library";
|
|
7
7
|
import { h as J } from "./moment-BWErdI6_.js";
|
|
8
|
-
import { z as Se } from "./app-
|
|
9
|
-
import { u as z } from "./membership-
|
|
10
|
-
import { u as re } from "./business-
|
|
11
|
-
import { _ as I } from "./index-
|
|
8
|
+
import { z as Se } from "./app-3-6LVz11.js";
|
|
9
|
+
import { u as z } from "./membership-oIubaesw.js";
|
|
10
|
+
import { u as re } from "./business-Wk7ElvEz.js";
|
|
11
|
+
import { _ as I } from "./index-BH-mOC5-.js";
|
|
12
12
|
import { c as le } from "./object-qECH92oz.js";
|
|
13
13
|
import { Z } from "./zod-W_PvIofQ.js";
|
|
14
|
-
import { e as Te } from "./app-
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./index-
|
|
17
|
-
import "./index-
|
|
18
|
-
import "./index-
|
|
19
|
-
import "./index-
|
|
14
|
+
import { e as Te } from "./app-DM-4iSsh.js";
|
|
15
|
+
import "./index-CIBWHBM-.js";
|
|
16
|
+
import "./index-BgIWS3vT.js";
|
|
17
|
+
import "./index-CPxCpRFW.js";
|
|
18
|
+
import "./index-B0Pw9YQd.js";
|
|
19
|
+
import "./index-DmxAa1MA.js";
|
|
20
20
|
const xe = { class: "flex items-center justify-between" }, Ce = { class: "flex items-center gap-8 xs:flex-wrap" }, Ue = { class: "text-fm-color-primary line-clamp-1 text-ellipsis" }, Re = /* @__PURE__ */ N({
|
|
21
21
|
__name: "RuleEntry",
|
|
22
22
|
props: {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { defineComponent as A, onMounted as N, openBlock as u, createElementBlock as b, createElementVNode as a, toDisplayString as x, unref as t, createVNode as l, createCommentVNode as G, ref as w, computed as j, resolveComponent as c, createBlock as B, isRef as J, createSlots as W, withCtx as g, Fragment as I, h as R, reactive as Q, watch as X, onBeforeMount as ee, renderList as te } from "vue";
|
|
2
2
|
import { _ as oe } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { F as E, p as ae, u as ne } from "./loading-
|
|
3
|
+
import { F as E, p as ae, u as ne } from "./loading-DeWfPgai.js";
|
|
4
4
|
import { components as L } from "@feedmepos/ui-library";
|
|
5
5
|
import { l as se } from "./lodash-B5I3zXaY.js";
|
|
6
|
-
import { u as le } from "./vue-i18n-
|
|
6
|
+
import { u as le } from "./vue-i18n-jf-SfrQy.js";
|
|
7
7
|
import { Z as re } from "./zod-W_PvIofQ.js";
|
|
8
|
-
import { a as ie } from "./index-
|
|
8
|
+
import { a as ie } from "./index-CPxCpRFW.js";
|
|
9
9
|
import { u as me } from "./app-wDQR6dpb.js";
|
|
10
|
-
import { R as de } from "./rule-builder-
|
|
10
|
+
import { R as de } from "./rule-builder-DPQJ8Tbv.js";
|
|
11
11
|
import { _ as ce } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CWt4tVdk.js";
|
|
12
|
-
import { _ as ue } from "./RuleGroup.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { _ as ue } from "./RuleGroup.vue_vue_type_script_setup_true_lang-1Fko0V0J.js";
|
|
13
13
|
import { h as P } from "./moment-BWErdI6_.js";
|
|
14
14
|
import { u as pe, _ as fe } from "./usePagination-BeF5K3M7.js";
|
|
15
|
-
import { s as k } from "./membership-
|
|
15
|
+
import { s as k } from "./membership-oIubaesw.js";
|
|
16
16
|
import { o as ge } from "./objectId-dwaoBfJX.js";
|
|
17
|
-
import { u as ye } from "./business-
|
|
18
|
-
import { m as ve } from "./index-
|
|
17
|
+
import { u as ye } from "./business-Wk7ElvEz.js";
|
|
18
|
+
import { m as ve } from "./index-vIwngIP9.js";
|
|
19
19
|
const _e = ie.extend({
|
|
20
20
|
_id: E.optional(),
|
|
21
21
|
business: E.optional()
|
|
@@ -2,16 +2,16 @@ import { defineComponent as He, ref as H, computed as se, onMounted as Ke, resol
|
|
|
2
2
|
import { h as dt } from "./moment-BWErdI6_.js";
|
|
3
3
|
import { Z as ke } from "./zod-W_PvIofQ.js";
|
|
4
4
|
import { useDialog as Ye } from "@feedmepos/ui-library";
|
|
5
|
-
import { a as je, u as ft, p as mt, f as K } from "./loading-
|
|
5
|
+
import { a as je, u as ft, p as mt, f as K } from "./loading-DeWfPgai.js";
|
|
6
6
|
import { u as gt } from "./app-wDQR6dpb.js";
|
|
7
|
-
import { u as ve, l as Je } from "./business-
|
|
8
|
-
import { u as qe } from "./membership-
|
|
9
|
-
import { m as ht, l as pt } from "./index-
|
|
7
|
+
import { u as ve, l as Je } from "./business-Wk7ElvEz.js";
|
|
8
|
+
import { u as qe } from "./membership-oIubaesw.js";
|
|
9
|
+
import { m as ht, l as pt } from "./index-BgIWS3vT.js";
|
|
10
10
|
import { _ as Ve } from "./ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js";
|
|
11
|
-
import { _ as yt } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { _ as wt } from "./MessageInput.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { u as bt } from "./vue-i18n-
|
|
14
|
-
import { m as vt } from "./index-
|
|
11
|
+
import { _ as yt } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-BnjVkkS1.js";
|
|
12
|
+
import { _ as wt } from "./MessageInput.vue_vue_type_script_setup_true_lang-CBvpHaAl.js";
|
|
13
|
+
import { u as bt } from "./vue-i18n-jf-SfrQy.js";
|
|
14
|
+
import { m as vt } from "./index-BO94KhQO.js";
|
|
15
15
|
import { o as Ct } from "./objectId-dwaoBfJX.js";
|
|
16
16
|
import { a as Et } from "./object-qECH92oz.js";
|
|
17
17
|
var ee = {}, Bt = function() {
|