@feedmepos/mf-connect 0.1.46-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--PTYdTCz.js → Analytic-DrjBaKmx.js} +113 -113
- package/dist/{App-CCFCux3P.js → App-eIaytGsZ.js} +632 -622
- package/dist/{Bin-D3mLTCYx.js → Bin-CVp0eFwl.js} +9 -9
- package/dist/{Broadcast-17Aiufxx.js → Broadcast-DBgBT6yz.js} +40 -40
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CMVquBaq.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CugJWeBo.js} +18 -18
- package/dist/{Card-Bx26e5ll.js → Card-DkP6oJVn.js} +239 -239
- package/dist/{Collections-B_lm_p0s.js → Collections-DYb_aeTW.js} +31 -31
- package/dist/{Credit-Bfdh01Hf.js → Credit-WVv_PL5D.js} +74 -74
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DWNvRorl.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Dt9c2kvf.js} +756 -753
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CkYlghNU.js → EffectSheet.vue_vue_type_style_index_0_lang-DT3y4k1C.js} +96 -96
- package/dist/{Experience-DScp4H4M.js → Experience-BdH44wBG.js} +41 -41
- package/dist/{Game-Cn2BXwaA.js → Game-C7jxRESY.js} +31 -31
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js +144 -0
- package/dist/{Index-BATr5dcp.js → Index-DYr1p4sh.js} +54 -54
- package/dist/{Marketing-B6lhSaKk.js → Marketing-Djl27fez.js} +24 -24
- package/dist/{Member-Cr_Ehw_n.js → Member-CWXedfTG.js} +63 -63
- package/dist/MemberList-C2TvGi22.js +1606 -0
- package/dist/MemberOverview-wL_ailso.js +58 -0
- package/dist/{MemberTransactions-YlC-iE41.js → MemberTransactions-BSUocGg9.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-nTBRadZx.js → MessageInput.vue_vue_type_script_setup_true_lang-D8xPA6jM.js} +2287 -2221
- package/dist/{Mission-Bddme86f.js → Mission-BVx9Cqi5.js} +20 -20
- package/dist/{Overview-BGOM1IKg.js → Overview-DyXF9zfB.js} +337 -337
- package/dist/{Point-vcnTW6lY.js → Point-ovkgTwZO.js} +41 -41
- package/dist/{Promotion-DuCvytdc.js → Promotion-B0Q6GItP.js} +42 -42
- package/dist/{Queue-Cuw7WTP_.js → Queue-BAWG1Hh-.js} +12 -12
- package/dist/{Record-Dc6BPAGi.js → Record-CTp80g4A.js} +10 -10
- package/dist/{Reward-8MFxn8we.js → Reward-_Jow1lJ7.js} +173 -173
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-8k-usg9S.js → RewardGroup.vue_vue_type_script_setup_true_lang-BV8xCejA.js} +11 -11
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DkDAuGY0.js +1763 -0
- package/dist/Segment-CsdJ1SjK.js +882 -0
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-B2LYvXlN.js → SelectItems.vue_vue_type_script_setup_true_lang-DH3oIm2t.js} +14 -14
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CaFLnq7P.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DvVrjpxR.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DLAqn-0P.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D5gV89Xk.js} +3 -3
- package/dist/Setting-BZRA50LO.js +1936 -0
- package/dist/{Store-DdBnVwnq.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-BPPoaGqc.js → StoreTransactions.vue_vue_type_script_setup_true_lang-vL0vr-Xn.js} +185 -185
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D0ae_2E5.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C1ZlLdme.js} +1 -1
- package/dist/{Tier-BpQ8DXK4.js → Tier-CCYFu6kJ.js} +106 -106
- package/dist/{Title-D6jghz1v.js → Title-7Mg-Ml4z.js} +95 -95
- package/dist/{Transaction-BQWs-6G7.js → Transaction-BqZrbpZi.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-C2dJuE64.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C6ZwPUD4.js} +6 -6
- package/dist/{Voucher-DnL_66X2.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-yj2c4i_u.js → ZodTextField.vue_vue_type_script_setup_true_lang-C3NHrEIl.js} +1 -1
- package/dist/{app-Cemiie6P.js → app-2EJP4psh.js} +31 -31
- package/dist/app-Dzon--6x.js +57962 -0
- package/dist/app.js +1 -1
- package/dist/{business-BTJVFnrW.js → business-BehG4fR2.js} +1 -1
- package/dist/{campaign-XX6bwpYj.js → campaign-BpaiTG4f.js} +10 -10
- package/dist/{campaign-C34w0eci.js → campaign-CAcP56Sz.js} +2 -2
- package/dist/{campaign.enum-CTMwHgAV.js → campaign.enum-BWjI8Hop.js} +1 -1
- package/dist/{campaign.fn-nJl0vZum.js → campaign.fn-PVdB1-V1.js} +123 -123
- package/dist/{collectible.enum-DpJV0kLI.js → collectible.enum-BYmuqayi.js} +1 -1
- package/dist/{collection.fn-D5beOWlp.js → collection.fn-CbH8hbWW.js} +2 -2
- package/dist/{dto-CCxjvwZe.js → dto-Dd3Oc4QO.js} +4 -4
- package/dist/{effect-B9ryfTOn.js → effect-DvEQNEl0.js} +1 -1
- package/dist/{email-addresses-Bn80jSud.js → email-addresses-C-9JrAi8.js} +1 -1
- package/dist/{export-CLB408ho.js → export-RWE9Cn-d.js} +4 -4
- package/dist/{helper-DgoAVTVe.js → helper-Bl6LdWED.js} +1 -1
- package/dist/{index-D90Ba87K.js → index-1bU9cLqV.js} +1 -1
- package/dist/{index-DsgbkezN.js → index-BCQMVr1J.js} +1 -1
- package/dist/{index-Djq2lySj.js → index-Bgnrbk5x.js} +1 -1
- package/dist/{index-Blmkh0Ui.js → index-Bjf5Z2QE.js} +4 -4
- package/dist/{index-DUtQaOO2.js → index-CFW9ogow.js} +1 -1
- package/dist/{index-t_4aIo1w.js → index-CfgczUMX.js} +2 -2
- package/dist/{index-FMcRNPk_.js → index-CzCqc7ph.js} +1 -1
- package/dist/{index-B9wdSOIQ.js → index-DX1X6Owa.js} +1 -1
- package/dist/{index-KYo_FgI8.js → index-DZN5WWgq.js} +3 -3
- package/dist/{index-B2BKFdEy.js → index-DhUvELhc.js} +1023 -1023
- package/dist/{index-DCrV9spQ.js → index-DpoNuVc-.js} +6 -6
- package/dist/{index-JY8MjiBK.js → index-G_XSbrXB.js} +3 -3
- package/dist/{index-bkL81TwC.js → index-VVy4GPzJ.js} +1 -1
- package/dist/{index-eiHOH5QM.js → index-wOExBjGo.js} +1 -1
- package/dist/{index.esm2017-toVKAoKi.js → index.esm2017-DfgZFSqe.js} +1 -1
- package/dist/{loading-vrEcUlJa.js → loading-qlqqYGF3.js} +1 -1
- package/dist/{membership-ChiyKtoA.js → membership-Bh_1iu5v.js} +3 -3
- package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
- package/dist/{money-tOAuywfS.js → money-DvTB_Fek.js} +1 -1
- package/dist/{number-DiXSJR50.js → number-DJQ3gi1P.js} +1 -1
- package/dist/objectid-BKU0cEuv.js +145 -0
- package/dist/{plugins-p8ID0wqZ.js → plugins-DJpBrPbQ.js} +2 -2
- package/dist/{reward-Bo4HsVNH.js → reward-DZ4KlN9B.js} +1 -1
- package/dist/{rule-LDThYbT7.js → rule-DV0yCGlq.js} +4 -4
- package/dist/rule-builder-D6ihVPNO.js +93 -0
- package/dist/{template-C6cnCLah.js → template-ElP-JIFL.js} +63 -63
- package/dist/timezone-FaHjut_D.js +1150 -0
- package/dist/{trigger-ZyJEZVxL.js → trigger-D8wnJVTA.js} +4 -4
- package/dist/usePagination-Ds-cuHop.js +223 -0
- package/dist/{user-WDNaXiRu.js → user-NWV9KppR.js} +1 -1
- package/dist/{vue-i18n-BWI3POch.js → vue-i18n-CkbS-IDD.js} +157 -157
- package/dist/{xlsx-JDV04zZH.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-B5ogB2E6.js +0 -1606
- package/dist/MemberOverview-C2n9oJZh.js +0 -58
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DRCwMmo5.js +0 -1752
- package/dist/Segment-BJm5XtlX.js +0 -882
- package/dist/Setting-CUyfrLYA.js +0 -1936
- package/dist/StoreRewards-B_yzVh4Z.js +0 -423
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-naUCARDO.js +0 -419
- package/dist/app-Cwax62X-.js +0 -33357
- package/dist/objectid-C856JGM4.js +0 -145
- package/dist/rule-builder-7iBcFApT.js +0 -89
- package/dist/usePagination-JoYaROkV.js +0 -223
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
import { defineComponent as j, ref as P, computed as A, h as E, onMounted as M, resolveComponent as l, openBlock as d, createElementBlock as b, Fragment as w, createVNode as r, unref as t, withCtx as y, createElementVNode as n, toDisplayString as c, renderList as H, createBlock as C, 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 } 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 I } from "./campaign-
|
|
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 I } from "./campaign-BpaiTG4f.js";
|
|
9
9
|
import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as oe } from "./template-
|
|
12
|
-
import { u as ae } from "./vue-i18n-
|
|
13
|
-
import { c as _ } from "./index-
|
|
14
|
-
const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, 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" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = /* @__PURE__ */
|
|
15
|
-
src: z,
|
|
16
|
-
class: "aspect-square w-[150px]"
|
|
17
|
-
}, null, -1), _e = { class: "flex flex-col gap-16 text-center" }, he = { class: "fm-typo-en-title-sm-800" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ne = /* @__PURE__ */ j({
|
|
10
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Dt9c2kvf.js";
|
|
11
|
+
import { u as oe } from "./template-ElP-JIFL.js";
|
|
12
|
+
import { u as ae } from "./vue-i18n-CkbS-IDD.js";
|
|
13
|
+
import { c as _ } from "./index-BCQMVr1J.js";
|
|
14
|
+
const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, 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" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "flex flex-col gap-16 text-center" }, _e = { class: "fm-typo-en-title-sm-800" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ke = /* @__PURE__ */ j({
|
|
18
15
|
__name: "Point",
|
|
19
|
-
setup(
|
|
16
|
+
setup(be) {
|
|
20
17
|
const { t: s } = ae(), B = {
|
|
21
18
|
label: s("connect.program.common.actions.create", {
|
|
22
19
|
type: s("connect.program.point.title").toLowerCase()
|
|
@@ -54,8 +51,8 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
54
51
|
variant: "tertiary",
|
|
55
52
|
icon: "delete",
|
|
56
53
|
iconColor: "neutral-gray-400",
|
|
57
|
-
onClick: (
|
|
58
|
-
|
|
54
|
+
onClick: (o) => {
|
|
55
|
+
o.stopPropagation(), F(e.row.original);
|
|
59
56
|
}
|
|
60
57
|
});
|
|
61
58
|
}
|
|
@@ -73,10 +70,10 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
73
70
|
);
|
|
74
71
|
}
|
|
75
72
|
async function f(e) {
|
|
76
|
-
e ? await
|
|
77
|
-
await
|
|
73
|
+
e ? await o() : $.open(async (p) => {
|
|
74
|
+
await o(p);
|
|
78
75
|
});
|
|
79
|
-
async function
|
|
76
|
+
async function o(p) {
|
|
80
77
|
var g;
|
|
81
78
|
(g = v.value) == null || g.showSheet(
|
|
82
79
|
!0,
|
|
@@ -101,13 +98,13 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
101
98
|
await K(async () => {
|
|
102
99
|
await m.read("COIN");
|
|
103
100
|
});
|
|
104
|
-
}), (e,
|
|
101
|
+
}), (e, o) => {
|
|
105
102
|
const p = l("FmPill"), g = l("FmPageHead"), k = l("FmSearch"), O = l("FmTable"), S = l("FmButton"), U = l("FmListItem"), D = l("FmList"), T = l("FmCard");
|
|
106
103
|
return d(), b(w, null, [
|
|
107
104
|
r(g, {
|
|
108
105
|
title: t(s)("connect.program.point.title"),
|
|
109
106
|
actions: t(u).length > 0 && t(h).isPremium ? [B] : [],
|
|
110
|
-
"onClick:action":
|
|
107
|
+
"onClick:action": o[0] || (o[0] = () => f())
|
|
111
108
|
}, {
|
|
112
109
|
title: y(() => [
|
|
113
110
|
n("div", ne, [
|
|
@@ -120,7 +117,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
120
117
|
n("div", ie, [
|
|
121
118
|
r(k, {
|
|
122
119
|
modelValue: t(i).searchKey,
|
|
123
|
-
"onUpdate:modelValue":
|
|
120
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => t(i).searchKey = a),
|
|
124
121
|
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
125
122
|
placeholder: "search",
|
|
126
123
|
collapsible: ""
|
|
@@ -130,7 +127,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
130
127
|
n("div", le, [
|
|
131
128
|
r(ee, {
|
|
132
129
|
modelValue: t(i).location,
|
|
133
|
-
"onUpdate:modelValue":
|
|
130
|
+
"onUpdate:modelValue": o[2] || (o[2] = (a) => t(i).location = a),
|
|
134
131
|
label: "Location: ",
|
|
135
132
|
"show-item-label": !0,
|
|
136
133
|
icon: "storefront",
|
|
@@ -140,7 +137,7 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
140
137
|
]),
|
|
141
138
|
r(k, {
|
|
142
139
|
modelValue: t(i).searchKey,
|
|
143
|
-
"onUpdate:modelValue":
|
|
140
|
+
"onUpdate:modelValue": o[3] || (o[3] = (a) => t(i).searchKey = a),
|
|
144
141
|
class: "xs:hidden",
|
|
145
142
|
placeholder: "search",
|
|
146
143
|
collapsible: ""
|
|
@@ -152,37 +149,37 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
152
149
|
"column-defs": N,
|
|
153
150
|
"search-value": t(i).searchKey,
|
|
154
151
|
"column-filter": [],
|
|
155
|
-
onRowClick:
|
|
152
|
+
onRowClick: o[4] || (o[4] = (a) => f(a.original)),
|
|
156
153
|
"hide-footer": t(u).length < 10
|
|
157
154
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
158
155
|
r(D, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
159
156
|
default: y(() => [
|
|
160
157
|
(d(!0), b(w, null, H(t(u).filter(
|
|
161
|
-
(
|
|
162
|
-
), (
|
|
163
|
-
key:
|
|
164
|
-
onClick: (L) => f(
|
|
158
|
+
(a) => a.name.toLowerCase().includes(t(i).searchKey.toLowerCase())
|
|
159
|
+
), (a) => (d(), C(U, {
|
|
160
|
+
key: a._id.toString(),
|
|
161
|
+
onClick: (L) => f(a),
|
|
165
162
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
166
163
|
}, {
|
|
167
164
|
default: y(() => [
|
|
168
165
|
n("div", ce, [
|
|
169
166
|
n("div", me, [
|
|
170
|
-
(d(), C(q(t(V)(
|
|
167
|
+
(d(), C(q(t(V)(a)))),
|
|
171
168
|
n("div", de, c(t(s)("connect.program.point.used", {
|
|
172
|
-
count:
|
|
169
|
+
count: a.currentReceive ?? 0
|
|
173
170
|
})), 1)
|
|
174
171
|
]),
|
|
175
172
|
n("div", pe, [
|
|
176
|
-
n("div", ue, c(
|
|
177
|
-
n("div", fe, c(t(I)(
|
|
173
|
+
n("div", ue, c(a.name), 1),
|
|
174
|
+
n("div", fe, c(t(I)(a)), 1)
|
|
178
175
|
]),
|
|
179
|
-
n("div", ge, " Point received: " + c(
|
|
176
|
+
n("div", ge, " Point received: " + c(a.currentReceive ?? 0), 1)
|
|
180
177
|
]),
|
|
181
178
|
r(S, {
|
|
182
179
|
icon: "delete",
|
|
183
180
|
"icon-color": "neutral-gray-400",
|
|
184
181
|
variant: "tertiary",
|
|
185
|
-
onClick: (L) => (L.stopPropagation(), F(
|
|
182
|
+
onClick: (L) => (L.stopPropagation(), F(a))
|
|
186
183
|
}, null, 8, ["onClick"])
|
|
187
184
|
]),
|
|
188
185
|
_: 2
|
|
@@ -196,17 +193,20 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
196
193
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
197
194
|
}, {
|
|
198
195
|
default: y(() => [
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
196
|
+
o[6] || (o[6] = n("img", {
|
|
197
|
+
src: z,
|
|
198
|
+
class: "aspect-square w-[150px]"
|
|
199
|
+
}, null, -1)),
|
|
200
|
+
n("div", ye, [
|
|
201
|
+
n("div", _e, c(t(s)("connect.program.point.empty_state.title")), 1),
|
|
202
|
+
n("div", he, c(t(s)("connect.program.point.empty_state.description")), 1)
|
|
203
203
|
]),
|
|
204
204
|
r(S, {
|
|
205
205
|
variant: "primary",
|
|
206
206
|
label: "Create point program",
|
|
207
207
|
disabled: !t(h).isPremium,
|
|
208
208
|
icon: "add",
|
|
209
|
-
onClick:
|
|
209
|
+
onClick: o[5] || (o[5] = (a) => f())
|
|
210
210
|
}, null, 8, ["disabled"])
|
|
211
211
|
]),
|
|
212
212
|
_: 1
|
|
@@ -222,5 +222,5 @@ const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-60
|
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
224
|
export {
|
|
225
|
-
|
|
225
|
+
Ke as default
|
|
226
226
|
};
|
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
import { defineComponent as J, ref as S, computed as Q, h as W, onMounted as X, resolveComponent as m, openBlock as u, createElementBlock as w, Fragment as v, createVNode as
|
|
1
|
+
import { defineComponent as J, ref as S, computed as Q, h as W, onMounted as X, resolveComponent as m, openBlock as u, createElementBlock as w, Fragment as v, createVNode as l, unref as a, createElementVNode as r, withCtx as b, renderList as Y, createBlock as x, resolveDynamicComponent as Z, toDisplayString as _ } from "vue";
|
|
2
2
|
import { _ as ee } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as oe, components as te } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as O, p as L } from "./plugins-
|
|
5
|
-
import { u as ne } from "./loading-
|
|
6
|
-
import { u as ae } from "./business-
|
|
7
|
-
import { u as se } from "./campaign-
|
|
8
|
-
import { u as re } from "./vue-i18n-
|
|
9
|
-
import { g as ie, a as V } from "./campaign-
|
|
10
|
-
import { e as I } from "./effect-
|
|
11
|
-
import { _ as
|
|
12
|
-
import { u as
|
|
4
|
+
import { c as O, p as L } from "./plugins-DJpBrPbQ.js";
|
|
5
|
+
import { u as ne } from "./loading-qlqqYGF3.js";
|
|
6
|
+
import { u as ae } from "./business-BehG4fR2.js";
|
|
7
|
+
import { u as se } from "./campaign-CAcP56Sz.js";
|
|
8
|
+
import { u as re } from "./vue-i18n-CkbS-IDD.js";
|
|
9
|
+
import { g as ie, a as V } from "./campaign-BpaiTG4f.js";
|
|
10
|
+
import { e as I } from "./effect-DvEQNEl0.js";
|
|
11
|
+
import { _ as le } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Dt9c2kvf.js";
|
|
12
|
+
import { u as ce } from "./template-ElP-JIFL.js";
|
|
13
13
|
import { _ as B } from "./FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js";
|
|
14
|
-
import { c as d } from "./index-
|
|
15
|
-
const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-center justify-between w-full" }, ue = { class: "flex gap-8 overflow-x-auto" }, de = { class: "space-y-8" }, fe = { class: "flex w-full gap-4 items-center" }, ye = { class: "space-y-4" }, ge = { class: "fm-typo-en-body-lg-600" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, he = /* @__PURE__ */
|
|
16
|
-
src: ee,
|
|
17
|
-
class: "aspect-square w-[150px]"
|
|
18
|
-
}, null, -1), we = { class: "flex flex-col gap-16 text-center" }, ve = { class: "fm-typo-en-title-sm-800" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ke = /* @__PURE__ */ J({
|
|
14
|
+
import { c as d } from "./index-BCQMVr1J.js";
|
|
15
|
+
const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-center justify-between w-full" }, ue = { class: "flex gap-8 overflow-x-auto" }, de = { class: "space-y-8" }, fe = { class: "flex w-full gap-4 items-center" }, ye = { class: "space-y-4" }, ge = { class: "fm-typo-en-body-lg-600" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, he = { class: "flex flex-col gap-16 text-center" }, we = { class: "fm-typo-en-title-sm-800" }, ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae = /* @__PURE__ */ J({
|
|
19
16
|
__name: "Promotion",
|
|
20
|
-
setup(
|
|
17
|
+
setup(be) {
|
|
21
18
|
const { t: n } = re(), M = {
|
|
22
19
|
label: n("connect.promotion.createCampaign"),
|
|
23
20
|
value: "create",
|
|
@@ -28,7 +25,7 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-
|
|
|
28
25
|
value: "sync",
|
|
29
26
|
isPrimary: !1,
|
|
30
27
|
prependIcon: "refresh"
|
|
31
|
-
}, A =
|
|
28
|
+
}, A = ce("PROMOTION", oe()), C = ae(), f = se(), { global: K, minor: h } = ne, N = [
|
|
32
29
|
{
|
|
33
30
|
label: "Bill promotion",
|
|
34
31
|
value: "BILL"
|
|
@@ -44,17 +41,17 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-
|
|
|
44
41
|
});
|
|
45
42
|
function $(e) {
|
|
46
43
|
const o = s.value.location;
|
|
47
|
-
return !o || o.length === 0 || !e.targetLocation ? !0 : Array.isArray(o) ? o.some((
|
|
44
|
+
return !o || o.length === 0 || !e.targetLocation ? !0 : Array.isArray(o) ? o.some((c) => {
|
|
48
45
|
var i;
|
|
49
|
-
return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(
|
|
46
|
+
return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(c);
|
|
50
47
|
}) : e.targetLocation.includes(o);
|
|
51
48
|
}
|
|
52
49
|
function U(e) {
|
|
53
50
|
var i, g;
|
|
54
51
|
const o = s.value.effectType;
|
|
55
52
|
if (!o || o.length === 0) return !0;
|
|
56
|
-
const
|
|
57
|
-
return o.includes(
|
|
53
|
+
const c = (g = (i = e.effect) == null ? void 0 : i.options) == null ? void 0 : g.target;
|
|
54
|
+
return o.includes(c);
|
|
58
55
|
}
|
|
59
56
|
const p = Q(
|
|
60
57
|
() => f.campaigns.promotion.filter(
|
|
@@ -110,16 +107,16 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-
|
|
|
110
107
|
);
|
|
111
108
|
}
|
|
112
109
|
async function y(e) {
|
|
113
|
-
e ? await o() : A.open(async (
|
|
114
|
-
await o(
|
|
110
|
+
e ? await o() : A.open(async (c) => {
|
|
111
|
+
await o(c);
|
|
115
112
|
});
|
|
116
|
-
async function o(
|
|
113
|
+
async function o(c) {
|
|
117
114
|
var i;
|
|
118
115
|
(i = F.value) == null || i.showSheet(
|
|
119
116
|
!0,
|
|
120
117
|
"PROMOTION",
|
|
121
118
|
e ? await d.readById(e._id) : void 0,
|
|
122
|
-
|
|
119
|
+
c
|
|
123
120
|
);
|
|
124
121
|
}
|
|
125
122
|
}
|
|
@@ -164,15 +161,15 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-
|
|
|
164
161
|
await C.readLocations(), await f.read("PROMOTION");
|
|
165
162
|
});
|
|
166
163
|
}), (e, o) => {
|
|
167
|
-
const
|
|
164
|
+
const c = m("FmPageHead"), i = m("FmSearch"), g = m("FmTable"), H = m("FmChip"), T = m("FmButton"), q = m("FmListItem"), z = m("FmList"), G = m("FmCard");
|
|
168
165
|
return u(), w(v, null, [
|
|
169
|
-
c
|
|
166
|
+
l(c, {
|
|
170
167
|
title: a(n)("connect.promotion.title"),
|
|
171
168
|
actions: a(p).length > 0 ? [M, R] : [],
|
|
172
169
|
"onClick:action": j
|
|
173
170
|
}, null, 8, ["title", "actions"]),
|
|
174
171
|
r("div", me, [
|
|
175
|
-
|
|
172
|
+
l(i, {
|
|
176
173
|
modelValue: s.value.searchKey,
|
|
177
174
|
"onUpdate:modelValue": o[0] || (o[0] = (t) => s.value.searchKey = t),
|
|
178
175
|
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
@@ -182,7 +179,7 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-
|
|
|
182
179
|
a(p) && a(p).length > 0 ? (u(), w(v, { key: 0 }, [
|
|
183
180
|
r("div", pe, [
|
|
184
181
|
r("div", ue, [
|
|
185
|
-
|
|
182
|
+
l(B, {
|
|
186
183
|
label: `${a(n)("connect.common.location")}: `,
|
|
187
184
|
"right-icon": "keyboard_arrow_down",
|
|
188
185
|
modelValue: s.value.location,
|
|
@@ -191,7 +188,7 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-
|
|
|
191
188
|
"show-item-label": !0,
|
|
192
189
|
items: a(C).locationOptions
|
|
193
190
|
}, null, 8, ["label", "modelValue", "items"]),
|
|
194
|
-
|
|
191
|
+
l(B, {
|
|
195
192
|
label: "Type:",
|
|
196
193
|
"right-icon": "keyboard_arrow_down",
|
|
197
194
|
modelValue: s.value.effectType,
|
|
@@ -201,7 +198,7 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-
|
|
|
201
198
|
items: N
|
|
202
199
|
}, null, 8, ["modelValue"])
|
|
203
200
|
]),
|
|
204
|
-
|
|
201
|
+
l(i, {
|
|
205
202
|
modelValue: s.value.searchKey,
|
|
206
203
|
"onUpdate:modelValue": o[3] || (o[3] = (t) => s.value.searchKey = t),
|
|
207
204
|
class: "xs:hidden",
|
|
@@ -209,7 +206,7 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-
|
|
|
209
206
|
collapsible: ""
|
|
210
207
|
}, null, 8, ["modelValue"])
|
|
211
208
|
]),
|
|
212
|
-
|
|
209
|
+
l(g, {
|
|
213
210
|
class: "xs:hidden",
|
|
214
211
|
"row-data": a(p),
|
|
215
212
|
"column-defs": D,
|
|
@@ -218,7 +215,7 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-
|
|
|
218
215
|
onRowClick: o[4] || (o[4] = (t) => y(t.original)),
|
|
219
216
|
"hide-footer": a(p).length < 10
|
|
220
217
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
221
|
-
|
|
218
|
+
l(z, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
222
219
|
default: b(() => [
|
|
223
220
|
(u(!0), w(v, null, Y(a(p).filter(
|
|
224
221
|
(t) => t.name.toLowerCase().includes(s.value.searchKey.toLowerCase())
|
|
@@ -231,7 +228,7 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-
|
|
|
231
228
|
r("div", de, [
|
|
232
229
|
r("div", fe, [
|
|
233
230
|
(u(), x(Z(a(V)(t)))),
|
|
234
|
-
|
|
231
|
+
l(H, {
|
|
235
232
|
class: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
|
|
236
233
|
compact: !0,
|
|
237
234
|
label: `${a(O).title(t.effect.options.target)} promotion`
|
|
@@ -242,7 +239,7 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-
|
|
|
242
239
|
r("div", _e, _(a(I)(t.effect)), 1)
|
|
243
240
|
])
|
|
244
241
|
]),
|
|
245
|
-
|
|
242
|
+
l(T, {
|
|
246
243
|
icon: "delete",
|
|
247
244
|
"icon-color": "neutral-gray-400",
|
|
248
245
|
variant: "tertiary",
|
|
@@ -260,12 +257,15 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-
|
|
|
260
257
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
261
258
|
}, {
|
|
262
259
|
default: b(() => [
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
260
|
+
o[6] || (o[6] = r("img", {
|
|
261
|
+
src: ee,
|
|
262
|
+
class: "aspect-square w-[150px]"
|
|
263
|
+
}, null, -1)),
|
|
264
|
+
r("div", he, [
|
|
265
|
+
r("div", we, _(a(n)("connect.promotion.createPromotionCampaign")), 1),
|
|
266
|
+
r("div", ve, _(a(n)("connect.promotion.description")), 1)
|
|
267
267
|
]),
|
|
268
|
-
|
|
268
|
+
l(T, {
|
|
269
269
|
variant: "primary",
|
|
270
270
|
label: a(n)("connect.promotion.createPromotionCampaign"),
|
|
271
271
|
icon: "add",
|
|
@@ -275,7 +275,7 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-
|
|
|
275
275
|
_: 1
|
|
276
276
|
}))
|
|
277
277
|
]),
|
|
278
|
-
|
|
278
|
+
l(le, {
|
|
279
279
|
ref_key: "sheetRef",
|
|
280
280
|
ref: F,
|
|
281
281
|
"onSubmit:modelValue": E
|
|
@@ -285,5 +285,5 @@ const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-
|
|
|
285
285
|
}
|
|
286
286
|
});
|
|
287
287
|
export {
|
|
288
|
-
|
|
288
|
+
Ae as default
|
|
289
289
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { defineComponent as h, h as n, ref as A, watch as B, onBeforeMount as U, resolveComponent as V, openBlock as z, createElementBlock as O, Fragment as q, createVNode as m, unref as o, createElementVNode as f } from "vue";
|
|
2
|
-
import { u as L, _ as Y } from "./usePagination-
|
|
2
|
+
import { u as L, _ as Y } from "./usePagination-Ds-cuHop.js";
|
|
3
3
|
import { _ as S } from "./FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js";
|
|
4
|
-
import { c as u, a as G } from "./plugins-
|
|
4
|
+
import { c as u, a as G } from "./plugins-DJpBrPbQ.js";
|
|
5
5
|
import { useDialog as K, components as b } from "@feedmepos/ui-library";
|
|
6
|
-
import { D as c, c as d } from "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
12
|
-
import { h as y } from "./moment-
|
|
13
|
-
import { u as j } from "./vue-i18n-
|
|
14
|
-
import { u as H, v as W, w as $ } from "./index.esm2017-
|
|
6
|
+
import { D as c, c as d } from "./index-Bjf5Z2QE.js";
|
|
7
|
+
import "./index-CfgczUMX.js";
|
|
8
|
+
import "./index-DpoNuVc-.js";
|
|
9
|
+
import "./index-CFW9ogow.js";
|
|
10
|
+
import "./index-DZN5WWgq.js";
|
|
11
|
+
import "./index-DhUvELhc.js";
|
|
12
|
+
import { h as y } from "./moment-D7p2TMB-.js";
|
|
13
|
+
import { u as j } from "./vue-i18n-CkbS-IDD.js";
|
|
14
|
+
import { u as H, v as W, w as $ } from "./index.esm2017-DfgZFSqe.js";
|
|
15
15
|
import { useRoute as Q } from "vue-router";
|
|
16
|
-
import { g as J, S as X, u as Z } from "./index-
|
|
16
|
+
import { g as J, S as X, u as Z } from "./index-G_XSbrXB.js";
|
|
17
17
|
import { o as ee } from "./objectId-dwaoBfJX.js";
|
|
18
18
|
const te = () => {
|
|
19
19
|
if (!X.getBusinessId()) throw new Error("Invalid business ID");
|
|
@@ -2,20 +2,20 @@ var q = Object.defineProperty;
|
|
|
2
2
|
var G = (g, o, m) => o in g ? q(g, o, { enumerable: !0, configurable: !0, writable: !0, value: m }) : g[o] = m;
|
|
3
3
|
var z = (g, o, m) => G(g, typeof o != "symbol" ? o + "" : o, m);
|
|
4
4
|
import { defineComponent as T, ref as B, computed as H, resolveComponent as C, openBlock as I, createBlock as J, unref as n, isRef as Q, withCtx as X, createElementBlock as U, createVNode as w, withModifiers as Z, createCommentVNode as ee, createElementVNode as N, h, onMounted as re, Fragment as te } from "vue";
|
|
5
|
-
import { u as oe, _ as ae } from "./usePagination-
|
|
6
|
-
import { g as A } from "./user-
|
|
5
|
+
import { u as oe, _ as ae } from "./usePagination-Ds-cuHop.js";
|
|
6
|
+
import { g as A } from "./user-NWV9KppR.js";
|
|
7
7
|
import { components as R } from "@feedmepos/ui-library";
|
|
8
|
-
import "./index-
|
|
9
|
-
import { u as j } from "./vue-i18n-
|
|
10
|
-
import { u as L } from "./loading-
|
|
8
|
+
import "./index-DhUvELhc.js";
|
|
9
|
+
import { u as j } from "./vue-i18n-CkbS-IDD.js";
|
|
10
|
+
import { u as L } from "./loading-qlqqYGF3.js";
|
|
11
11
|
import { useCoreStore as se } from "@feedmepos/mf-common";
|
|
12
|
-
import { r as v } from "./index-
|
|
12
|
+
import { r as v } from "./index-wOExBjGo.js";
|
|
13
13
|
import { c as ie, a as ne } from "./object-qECH92oz.js";
|
|
14
|
-
import { u as ce } from "./membership-
|
|
15
|
-
import { a as le, c as de } from "./plugins-
|
|
16
|
-
import { u as V, w as me } from "./xlsx-
|
|
14
|
+
import { u as ce } from "./membership-Bh_1iu5v.js";
|
|
15
|
+
import { a as le, c as de } from "./plugins-DJpBrPbQ.js";
|
|
16
|
+
import { u as V, w as me } from "./xlsx-CdQE5RZi.js";
|
|
17
17
|
import { e as f } from "./index-vh86FiIQ.js";
|
|
18
|
-
import { h as ue } from "./moment-
|
|
18
|
+
import { h as ue } from "./moment-D7p2TMB-.js";
|
|
19
19
|
import { o as pe } from "./objectId-dwaoBfJX.js";
|
|
20
20
|
const fe = {
|
|
21
21
|
key: 0,
|