@feedmepos/mf-connect 0.1.37-prod → 0.1.38-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-CavR2bzs.js → Analytic-Dc1l0CZK.js} +11 -11
- package/dist/{App-Bpo0XZSs.js → App-BLg0CWv-.js} +6 -6
- package/dist/{Bin-ohZ2CZZR.js → Bin-DDbKIePj.js} +8 -8
- package/dist/{Broadcast-D5x0_-zC.js → Broadcast-CihKie6G.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CYb38NXA.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DbdBGvgR.js} +6 -6
- package/dist/{Card-BM-Lrm5y.js → Card-h1dYFE_s.js} +16 -16
- package/dist/{Collections-Cr4aoJer.js → Collections-DUXdnJqQ.js} +7 -7
- package/dist/{Credit-DzDVFv4H.js → Credit-CsGEuX9p.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bs8o9n1V.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-0gMUNtdO.js} +32 -30
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-koqrPPqM.js → EffectSheet.vue_vue_type_style_index_0_lang-CQDnl97F.js} +77 -75
- package/dist/{Experience-CjaDdbvZ.js → Experience-CBbqYrql.js} +9 -9
- package/dist/{FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js → FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js} +2 -6
- package/dist/{Game-BuiTygow.js → Game-CicPpdT5.js} +10 -10
- package/dist/{Index-CQGzUU-w.js → Index-Xgvlt4vk.js} +10 -10
- package/dist/{Marketing-BSspYuhg.js → Marketing-CqOAQgg4.js} +6 -6
- package/dist/{Member-B4S0UNGq.js → Member-D1k4ZQ95.js} +10 -10
- package/dist/{MemberList-CfnUJ3mh.js → MemberList-BdV9sxO_.js} +25 -25
- package/dist/{MemberTransactions-DzG1fY0c.js → MemberTransactions-Q0_4nT4e.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-hZUWLTWj.js → MessageInput.vue_vue_type_script_setup_true_lang-COGCJGRc.js} +4 -4
- package/dist/{Mission-BtypT2uF.js → Mission-D-TW52zn.js} +10 -10
- package/dist/{Overview-Be7bUtRO.js → Overview-BleJmxHa.js} +18 -18
- package/dist/{Point-Bw4lnLqp.js → Point-B7BYX9us.js} +9 -9
- package/dist/Promotion-BphlQC55.js +289 -0
- package/dist/{Queue-CpPEVgn8.js → Queue-DJfZqO1f.js} +11 -11
- package/dist/{Record-DQq4P69i.js → Record-Bv1P0s2g.js} +8 -8
- package/dist/{Reward-DJH0eM8u.js → Reward-CRyEjr47.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-_kw_PR0h.js → RewardGroup.vue_vue_type_script_setup_true_lang-Ckqox5Ut.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CRGep1RK.js → RuleGroup.vue_vue_type_script_setup_true_lang-Dp4ku9ep.js} +630 -543
- package/dist/{Segment-BLB4VWNJ.js → Segment-Br0Y5hzV.js} +22 -22
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Dx6Ew9Z_.js → SelectItems.vue_vue_type_script_setup_true_lang-BuB-qwcM.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B60_8Toi.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DanHGQXC.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCaJ3xKT.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCKUXnGl.js} +3 -3
- package/dist/{Setting-GRIUo7vg.js → Setting-BPFArJMv.js} +11 -11
- package/dist/{Store-H0UDQpln.js → Store-e_odFoS5.js} +20 -20
- package/dist/{StoreRewards--TNIFaCo.js → StoreRewards-wXhyzIFI.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CfB8tA5l.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CVPQt-bn.js} +20 -20
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D-jL1oGS.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CWJmeeo-.js} +1 -1
- package/dist/{Tier-CJufQcIz.js → Tier-GfdGRbTX.js} +20 -20
- package/dist/{Title-BBMgGUld.js → Title-C2ZyFxNf.js} +19 -19
- package/dist/{Transaction-DsucPnfp.js → Transaction-Dv8yYXJS.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CwOcZEQX.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CK_4iMCA.js} +6 -6
- package/dist/{Voucher-BPvxKO_w.js → Voucher-CBujqgnF.js} +150 -120
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Bg-9YqLP.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CgooH4yn.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DMs4XKXM.js → ZodTextField.vue_vue_type_script_setup_true_lang-B8pgaARn.js} +1 -1
- package/dist/{app-D3MT1deX.js → app-B2Cgyy70.js} +33 -31
- package/dist/{app-Bo0JpadQ.js → app-B8E3wp8L.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/business-BRidHvRK.js +79 -0
- package/dist/{campaign-j1c3ou7l.js → campaign-B0vnIan2.js} +2 -2
- package/dist/{campaign-Z3l7BoMg.js → campaign-B7v0a8YV.js} +9 -9
- package/dist/{campaign.enum-CVXPc5Pd.js → campaign.enum-NH5faqyS.js} +1 -1
- package/dist/{campaign.fn-rsRhHYZP.js → campaign.fn-BPHARk3Y.js} +123 -123
- package/dist/{collectible.enum-CDSikBAy.js → collectible.enum-Cun9w38h.js} +1 -1
- package/dist/{collection.fn-Bz38mGMa.js → collection.fn-RR5q6jqi.js} +2 -2
- package/dist/{dto-D648NN4s.js → dto-DK1VnGlq.js} +4 -4
- package/dist/{effect-DbMAmVSR.js → effect-CI4ZR8HW.js} +1 -1
- package/dist/{email-addresses-KOVDrRiK.js → email-addresses-bguwgnrW.js} +1 -1
- package/dist/{export-cTZf8Avd.js → export-CcepocZB.js} +3 -3
- package/dist/{helper-BYyfcLqw.js → helper-BM1JTEFS.js} +1 -1
- package/dist/index-B0Slqiqo.js +31 -0
- package/dist/{index-CTPMbFf5.js → index-B6_uPXyL.js} +12 -11
- package/dist/{index-DPBHiqsJ.js → index-BS3AjuVw.js} +1 -1
- package/dist/{index-E-0tTd0_.js → index-BfGdztHf.js} +1 -1
- package/dist/{index-BIaCtk8e.js → index-CBuCx_0r.js} +23 -10
- package/dist/{index-BMl2KZts.js → index-CLkqja9X.js} +11437 -10950
- package/dist/{index-nF9iYTlh.js → index-Cm_6xScD.js} +1 -1
- package/dist/{index-DFKmjCG1.js → index-DHEJX75j.js} +1 -1
- package/dist/index-D_gLVFsk.js +32269 -0
- package/dist/{index-B3p0hmIV.js → index-DbjZHuoG.js} +1 -1
- package/dist/{index-BTb8I_eB.js → index-De1JnaPh.js} +1 -1
- package/dist/{index-B4MqsaBz.js → index-Di6bqaLm.js} +3 -3
- package/dist/{index-CvoShC5J.js → index-DjycZwfg.js} +158 -150
- package/dist/{index-BrKXRxe_.js → index-vs1HgFHz.js} +1 -1
- package/dist/{index.esm2017-DFYwde30.js → index.esm2017-DANlqJ4g.js} +1 -1
- package/dist/{loading-vUArhX_O.js → loading-BXu9ofEu.js} +1 -1
- package/dist/{membership-BHKv29yt.js → membership-BBb7gdZg.js} +3 -3
- package/dist/{money-Bl3_QRkE.js → money-C02BW-pt.js} +1 -1
- package/dist/{number-hh_S9w7k.js → number-D7tIDv2q.js} +1 -1
- package/dist/{objectid-CEyMlMge.js → objectid-oVX5A5oa.js} +3 -3
- package/dist/{plugins-CVes2wzE.js → plugins-B5tuGbFw.js} +2 -2
- package/dist/{reward-ANZOdWzf.js → reward-CE-bnnnQ.js} +1 -1
- package/dist/{rule-BvFk5bQg.js → rule-BN5R8pYj.js} +3 -3
- package/dist/{rule-builder-BSN777PN.js → rule-builder-16JDtaoI.js} +1 -1
- package/dist/{template-Dh9lDLs_.js → template-C-zyZgxl.js} +4 -4
- package/dist/{trigger-C7THbt7R.js → trigger-DCLjl3mM.js} +7 -7
- package/dist/{user-DtNR9JY2.js → user-C7bmFOaT.js} +1 -1
- package/dist/{vue-i18n-BWyHnm4m.js → vue-i18n-Cts9OsqE.js} +157 -157
- package/dist/{xlsx-7u9SB0oa.js → xlsx-CJ5ufXk3.js} +1 -1
- package/package.json +2 -2
- package/dist/Promotion-Bg6x0rAh.js +0 -255
- package/dist/business-DMALI7ZO.js +0 -78
- package/dist/index-BsCGyJMY.js +0 -29566
- package/dist/index-Dbd4WA4r.js +0 -61
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { defineComponent as q, resolveComponent as w, openBlock as C, createElementBlock as B, Fragment as Y, createVNode as c, withCtx as V, createElementVNode as a, toDisplayString as O, unref as r, renderSlot as _e, ref as $, computed as G, watch as ie, createBlock as j, isRef as J, resolveDynamicComponent as ne, renderList as re, normalizeClass as ce, createTextVNode as de, createCommentVNode as z, h as te, onMounted as ve } from "vue";
|
|
2
2
|
import { _ as ge } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { u as Z } from "./vue-i18n-
|
|
4
|
-
import { u as ue } from "./loading-
|
|
5
|
-
import { c as we, p as K } from "./plugins-
|
|
3
|
+
import { u as Z } from "./vue-i18n-Cts9OsqE.js";
|
|
4
|
+
import { u as ue } from "./loading-BXu9ofEu.js";
|
|
5
|
+
import { c as we, p as K } from "./plugins-B5tuGbFw.js";
|
|
6
6
|
import { J as X } from "./JsonViewer-v8_C7l5N.js";
|
|
7
7
|
import { Z as N } from "./zod-Bg2FbC-D.js";
|
|
8
8
|
import { u as W } from "./app-wDQR6dpb.js";
|
|
9
|
-
import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as me } from "./reward-
|
|
11
|
-
import { l as le, c as se } from "./index-
|
|
12
|
-
import "./index-
|
|
13
|
-
import { a as be, b as xe } from "./index-
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./index-
|
|
16
|
-
import "./index-
|
|
17
|
-
import { C as fe } from "./membership-
|
|
18
|
-
import { t as ee } from "./helper-
|
|
9
|
+
import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-Ckqox5Ut.js";
|
|
10
|
+
import { u as me } from "./reward-CE-bnnnQ.js";
|
|
11
|
+
import { l as le, c as se } from "./index-DjycZwfg.js";
|
|
12
|
+
import "./index-B6_uPXyL.js";
|
|
13
|
+
import { a as be, b as xe } from "./index-CBuCx_0r.js";
|
|
14
|
+
import "./index-vs1HgFHz.js";
|
|
15
|
+
import "./index-Di6bqaLm.js";
|
|
16
|
+
import "./index-D_gLVFsk.js";
|
|
17
|
+
import { C as fe } from "./membership-BBb7gdZg.js";
|
|
18
|
+
import { t as ee } from "./helper-BM1JTEFS.js";
|
|
19
19
|
import { c as H } from "./object-qECH92oz.js";
|
|
20
20
|
import { useDialog as Ce, components as oe } from "@feedmepos/ui-library";
|
|
21
|
-
import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
22
|
-
import {
|
|
23
|
-
import { O as ke } from "./objectid-
|
|
24
|
-
import { r as pe } from "./index-
|
|
25
|
-
import { u as Pe } from "./business-
|
|
21
|
+
import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-B8pgaARn.js";
|
|
22
|
+
import { a as Se, _ as $e, b as Fe } from "./trigger-DCLjl3mM.js";
|
|
23
|
+
import { O as ke } from "./objectid-oVX5A5oa.js";
|
|
24
|
+
import { r as pe } from "./index-BfGdztHf.js";
|
|
25
|
+
import { u as Pe } from "./business-BRidHvRK.js";
|
|
26
26
|
const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, Te = { class: "flex-1" }, Ue = { class: "flex items-center gap-8" }, Ae = { class: "fm-typo-en-title-sm-800" }, Le = { class: "flex gap-8 items-center" }, Ee = { class: "space-y-4 hidden xs:block border-b border-fm-color-neutral-gray-100 px-16 flex-1 pb-24" }, Be = { class: "flex items-center justify-between" }, Oe = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, je = { class: "flex-1 space-y-4" }, De = { class: "fm-typo-en-body-lg-600" }, Ge = /* @__PURE__ */ q({
|
|
27
27
|
__name: "ReferralRewadGroupCard",
|
|
28
28
|
props: {
|
|
@@ -1,16 +1,16 @@
|
|
|
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-B5tuGbFw.js";
|
|
5
|
+
import { u as W } from "./loading-BXu9ofEu.js";
|
|
6
|
+
import { u as X } from "./business-BRidHvRK.js";
|
|
7
|
+
import { u as Y } from "./campaign-B0vnIan2.js";
|
|
8
|
+
import { g as Z, a as V, b as I } from "./campaign-B7v0a8YV.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-
|
|
10
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-0gMUNtdO.js";
|
|
11
|
+
import { u as oe } from "./template-C-zyZgxl.js";
|
|
12
|
+
import { u as ae } from "./vue-i18n-Cts9OsqE.js";
|
|
13
|
+
import { c as _ } from "./index-DbjZHuoG.js";
|
|
14
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__ */ n("img", {
|
|
15
15
|
src: z,
|
|
16
16
|
class: "aspect-square w-[150px]"
|
|
@@ -0,0 +1,289 @@
|
|
|
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 c, unref as a, createElementVNode as r, withCtx as b, renderList as Y, createBlock as x, resolveDynamicComponent as Z, toDisplayString as _ } from "vue";
|
|
2
|
+
import { _ as ee } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as oe, components as te } from "@feedmepos/ui-library";
|
|
4
|
+
import { c as O, p as L } from "./plugins-B5tuGbFw.js";
|
|
5
|
+
import { u as ne } from "./loading-BXu9ofEu.js";
|
|
6
|
+
import { u as ae } from "./business-BRidHvRK.js";
|
|
7
|
+
import { u as se } from "./campaign-B0vnIan2.js";
|
|
8
|
+
import { u as re } from "./vue-i18n-Cts9OsqE.js";
|
|
9
|
+
import { g as ie, a as V } from "./campaign-B7v0a8YV.js";
|
|
10
|
+
import { e as I } from "./effect-CI4ZR8HW.js";
|
|
11
|
+
import { _ as ce } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-0gMUNtdO.js";
|
|
12
|
+
import { u as le } from "./template-C-zyZgxl.js";
|
|
13
|
+
import { _ as B } from "./FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js";
|
|
14
|
+
import { c as d } from "./index-DbjZHuoG.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 = /* @__PURE__ */ r("img", {
|
|
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({
|
|
19
|
+
__name: "Promotion",
|
|
20
|
+
setup(xe) {
|
|
21
|
+
const { t: n } = re(), M = {
|
|
22
|
+
label: n("connect.promotion.createCampaign"),
|
|
23
|
+
value: "create",
|
|
24
|
+
isPrimary: !0,
|
|
25
|
+
prependIcon: "add"
|
|
26
|
+
}, R = {
|
|
27
|
+
label: "Force sync",
|
|
28
|
+
value: "sync",
|
|
29
|
+
isPrimary: !1,
|
|
30
|
+
prependIcon: "refresh"
|
|
31
|
+
}, A = le("PROMOTION", oe()), C = ae(), f = se(), { global: K, minor: h } = ne, N = [
|
|
32
|
+
{
|
|
33
|
+
label: "Bill promotion",
|
|
34
|
+
value: "BILL"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: "Item promotion",
|
|
38
|
+
value: "ITEM"
|
|
39
|
+
}
|
|
40
|
+
], s = S({
|
|
41
|
+
searchKey: "",
|
|
42
|
+
location: [],
|
|
43
|
+
effectType: []
|
|
44
|
+
});
|
|
45
|
+
function $(e) {
|
|
46
|
+
const o = s.value.location;
|
|
47
|
+
return !o || o.length === 0 || !e.targetLocation ? !0 : Array.isArray(o) ? o.some((l) => {
|
|
48
|
+
var i;
|
|
49
|
+
return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(l);
|
|
50
|
+
}) : e.targetLocation.includes(o);
|
|
51
|
+
}
|
|
52
|
+
function U(e) {
|
|
53
|
+
var i, g;
|
|
54
|
+
const o = s.value.effectType;
|
|
55
|
+
if (!o || o.length === 0) return !0;
|
|
56
|
+
const l = (g = (i = e.effect) == null ? void 0 : i.options) == null ? void 0 : g.target;
|
|
57
|
+
return o.includes(l);
|
|
58
|
+
}
|
|
59
|
+
const p = Q(
|
|
60
|
+
() => f.campaigns.promotion.filter(
|
|
61
|
+
(e) => $(e) && U(e)
|
|
62
|
+
)
|
|
63
|
+
), D = [
|
|
64
|
+
{
|
|
65
|
+
header: n("connect.promotion.promotionTitle"),
|
|
66
|
+
accessorFn: (e) => e.name
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
header: n("connect.promotion.status"),
|
|
70
|
+
accessorFn: (e) => ie(e),
|
|
71
|
+
cell(e) {
|
|
72
|
+
return V(e.row.original);
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
header: n("connect.promotion.type"),
|
|
77
|
+
accessorFn: (e) => `${O.title(e.effect.options.target)} promotion`
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
header: n("connect.promotion.summary"),
|
|
81
|
+
accessorFn: (e) => I(e.effect)
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
header: n("connect.promotion.actions"),
|
|
85
|
+
cell(e) {
|
|
86
|
+
return W(te.FmButton, {
|
|
87
|
+
variant: "tertiary",
|
|
88
|
+
icon: "delete",
|
|
89
|
+
iconColor: "neutral-gray-400",
|
|
90
|
+
onClick: (o) => {
|
|
91
|
+
o.stopPropagation(), k(e.row.original);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
], F = S();
|
|
97
|
+
async function k(e) {
|
|
98
|
+
await L.remove(
|
|
99
|
+
n("connect.promotion.confirmRemove", { name: e.name })
|
|
100
|
+
) && await h(
|
|
101
|
+
async () => {
|
|
102
|
+
await d.delete(e._id), await f.read("PROMOTION");
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
message: n("connect.promotion.removing", { name: e.name }),
|
|
106
|
+
successMessage: n("connect.promotion.removedSuccessfully", {
|
|
107
|
+
name: e.name
|
|
108
|
+
})
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
async function y(e) {
|
|
113
|
+
e ? await o() : A.open(async (l) => {
|
|
114
|
+
await o(l);
|
|
115
|
+
});
|
|
116
|
+
async function o(l) {
|
|
117
|
+
var i;
|
|
118
|
+
(i = F.value) == null || i.showSheet(
|
|
119
|
+
!0,
|
|
120
|
+
"PROMOTION",
|
|
121
|
+
e ? await d.readById(e._id) : void 0,
|
|
122
|
+
l
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
async function E(e) {
|
|
127
|
+
await h(
|
|
128
|
+
async () => {
|
|
129
|
+
e.campaign._id ? await d.update(e.campaign._id, e) : await d.create(e), await f.read("PROMOTION");
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
message: n(
|
|
133
|
+
e.campaign._id ? "connect.promotion.updating" : "connect.promotion.creating"
|
|
134
|
+
),
|
|
135
|
+
successMessage: n(
|
|
136
|
+
e.campaign._id ? "connect.promotion.updatedSuccessfully" : "connect.promotion.createdSuccessfully"
|
|
137
|
+
)
|
|
138
|
+
}
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
async function j(e) {
|
|
142
|
+
switch (e) {
|
|
143
|
+
case "create":
|
|
144
|
+
y();
|
|
145
|
+
break;
|
|
146
|
+
case "sync":
|
|
147
|
+
await L.confirm(
|
|
148
|
+
"Are you sure you want to synchronize all promotions to POS?",
|
|
149
|
+
"Force sync"
|
|
150
|
+
) && h(
|
|
151
|
+
async () => {
|
|
152
|
+
await d.syncAllPromotion();
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
message: "Syncing promotions...",
|
|
156
|
+
successMessage: "All promotions synced"
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
return X(async () => {
|
|
163
|
+
await K(async () => {
|
|
164
|
+
await C.readLocations(), await f.read("PROMOTION");
|
|
165
|
+
});
|
|
166
|
+
}), (e, o) => {
|
|
167
|
+
const l = m("FmPageHead"), i = m("FmSearch"), g = m("FmTable"), H = m("FmChip"), T = m("FmButton"), q = m("FmListItem"), z = m("FmList"), G = m("FmCard");
|
|
168
|
+
return u(), w(v, null, [
|
|
169
|
+
c(l, {
|
|
170
|
+
title: a(n)("connect.promotion.title"),
|
|
171
|
+
actions: a(p).length > 0 ? [M, R] : [],
|
|
172
|
+
"onClick:action": j
|
|
173
|
+
}, null, 8, ["title", "actions"]),
|
|
174
|
+
r("div", me, [
|
|
175
|
+
c(i, {
|
|
176
|
+
modelValue: s.value.searchKey,
|
|
177
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => s.value.searchKey = t),
|
|
178
|
+
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
179
|
+
placeholder: a(n)("connect.promotion.search"),
|
|
180
|
+
collapsible: ""
|
|
181
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
182
|
+
a(p) && a(p).length > 0 ? (u(), w(v, { key: 0 }, [
|
|
183
|
+
r("div", pe, [
|
|
184
|
+
r("div", ue, [
|
|
185
|
+
c(B, {
|
|
186
|
+
label: `${a(n)("connect.common.location")}: `,
|
|
187
|
+
"right-icon": "keyboard_arrow_down",
|
|
188
|
+
modelValue: s.value.location,
|
|
189
|
+
"onUpdate:modelValue": o[1] || (o[1] = (t) => s.value.location = t),
|
|
190
|
+
icon: "storefront",
|
|
191
|
+
"show-item-label": !0,
|
|
192
|
+
items: a(C).locationOptions
|
|
193
|
+
}, null, 8, ["label", "modelValue", "items"]),
|
|
194
|
+
c(B, {
|
|
195
|
+
label: "Type:",
|
|
196
|
+
"right-icon": "keyboard_arrow_down",
|
|
197
|
+
modelValue: s.value.effectType,
|
|
198
|
+
"onUpdate:modelValue": o[2] || (o[2] = (t) => s.value.effectType = t),
|
|
199
|
+
icon: "filter_list",
|
|
200
|
+
"show-item-label": !0,
|
|
201
|
+
items: N
|
|
202
|
+
}, null, 8, ["modelValue"])
|
|
203
|
+
]),
|
|
204
|
+
c(i, {
|
|
205
|
+
modelValue: s.value.searchKey,
|
|
206
|
+
"onUpdate:modelValue": o[3] || (o[3] = (t) => s.value.searchKey = t),
|
|
207
|
+
class: "xs:hidden",
|
|
208
|
+
placeholder: "search",
|
|
209
|
+
collapsible: ""
|
|
210
|
+
}, null, 8, ["modelValue"])
|
|
211
|
+
]),
|
|
212
|
+
c(g, {
|
|
213
|
+
class: "xs:hidden",
|
|
214
|
+
"row-data": a(p),
|
|
215
|
+
"column-defs": D,
|
|
216
|
+
"search-value": s.value.searchKey,
|
|
217
|
+
"column-filter": [],
|
|
218
|
+
onRowClick: o[4] || (o[4] = (t) => y(t.original)),
|
|
219
|
+
"hide-footer": a(p).length < 10
|
|
220
|
+
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
221
|
+
c(z, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
222
|
+
default: b(() => [
|
|
223
|
+
(u(!0), w(v, null, Y(a(p).filter(
|
|
224
|
+
(t) => t.name.toLowerCase().includes(s.value.searchKey.toLowerCase())
|
|
225
|
+
), (t) => (u(), x(q, {
|
|
226
|
+
key: t._id.toString(),
|
|
227
|
+
onClick: (P) => y(t),
|
|
228
|
+
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
229
|
+
}, {
|
|
230
|
+
default: b(() => [
|
|
231
|
+
r("div", de, [
|
|
232
|
+
r("div", fe, [
|
|
233
|
+
(u(), x(Z(a(V)(t)))),
|
|
234
|
+
c(H, {
|
|
235
|
+
class: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
|
|
236
|
+
compact: !0,
|
|
237
|
+
label: `${a(O).title(t.effect.options.target)} promotion`
|
|
238
|
+
}, null, 8, ["label"])
|
|
239
|
+
]),
|
|
240
|
+
r("div", ye, [
|
|
241
|
+
r("div", ge, _(t.name), 1),
|
|
242
|
+
r("div", _e, _(a(I)(t.effect)), 1)
|
|
243
|
+
])
|
|
244
|
+
]),
|
|
245
|
+
c(T, {
|
|
246
|
+
icon: "delete",
|
|
247
|
+
"icon-color": "neutral-gray-400",
|
|
248
|
+
variant: "tertiary",
|
|
249
|
+
onClick: (P) => (P.stopPropagation(), k(t))
|
|
250
|
+
}, null, 8, ["onClick"])
|
|
251
|
+
]),
|
|
252
|
+
_: 2
|
|
253
|
+
}, 1032, ["onClick"]))), 128))
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
})
|
|
257
|
+
], 64)) : (u(), x(G, {
|
|
258
|
+
key: 1,
|
|
259
|
+
variant: "outlined",
|
|
260
|
+
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
261
|
+
}, {
|
|
262
|
+
default: b(() => [
|
|
263
|
+
he,
|
|
264
|
+
r("div", we, [
|
|
265
|
+
r("div", ve, _(a(n)("connect.promotion.createPromotionCampaign")), 1),
|
|
266
|
+
r("div", be, _(a(n)("connect.promotion.description")), 1)
|
|
267
|
+
]),
|
|
268
|
+
c(T, {
|
|
269
|
+
variant: "primary",
|
|
270
|
+
label: a(n)("connect.promotion.createPromotionCampaign"),
|
|
271
|
+
icon: "add",
|
|
272
|
+
onClick: o[5] || (o[5] = (t) => y())
|
|
273
|
+
}, null, 8, ["label"])
|
|
274
|
+
]),
|
|
275
|
+
_: 1
|
|
276
|
+
}))
|
|
277
|
+
]),
|
|
278
|
+
c(ce, {
|
|
279
|
+
ref_key: "sheetRef",
|
|
280
|
+
ref: F,
|
|
281
|
+
"onSubmit:modelValue": E
|
|
282
|
+
}, null, 512)
|
|
283
|
+
], 64);
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
export {
|
|
288
|
+
Ke as default
|
|
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
2
|
import { u as L, _ as Y } from "./usePagination-JoYaROkV.js";
|
|
3
|
-
import { _ as S } from "./FilterChip.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { c as u, a as G } from "./plugins-
|
|
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-B5tuGbFw.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-
|
|
6
|
+
import { D as c, c as d } from "./index-DjycZwfg.js";
|
|
7
|
+
import "./index-B6_uPXyL.js";
|
|
8
|
+
import "./index-CBuCx_0r.js";
|
|
9
|
+
import "./index-vs1HgFHz.js";
|
|
10
|
+
import "./index-Di6bqaLm.js";
|
|
11
|
+
import "./index-D_gLVFsk.js";
|
|
12
12
|
import { h as y } from "./moment-BWErdI6_.js";
|
|
13
|
-
import { u as j } from "./vue-i18n-
|
|
14
|
-
import { u as H, v as W, w as $ } from "./index.esm2017-
|
|
13
|
+
import { u as j } from "./vue-i18n-Cts9OsqE.js";
|
|
14
|
+
import { u as H, v as W, w as $ } from "./index.esm2017-DANlqJ4g.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-CLkqja9X.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");
|
|
@@ -3,17 +3,17 @@ var G = (g, o, m) => o in g ? q(g, o, { enumerable: !0, configurable: !0, writab
|
|
|
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
5
|
import { u as oe, _ as ae } from "./usePagination-JoYaROkV.js";
|
|
6
|
-
import { g as A } from "./user-
|
|
6
|
+
import { g as A } from "./user-C7bmFOaT.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-D_gLVFsk.js";
|
|
9
|
+
import { u as j } from "./vue-i18n-Cts9OsqE.js";
|
|
10
|
+
import { u as L } from "./loading-BXu9ofEu.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-BfGdztHf.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-BBb7gdZg.js";
|
|
15
|
+
import { a as le, c as de } from "./plugins-B5tuGbFw.js";
|
|
16
|
+
import { u as V, w as me } from "./xlsx-CJ5ufXk3.js";
|
|
17
17
|
import { e as f } from "./index-vh86FiIQ.js";
|
|
18
18
|
import { h as ue } from "./moment-BWErdI6_.js";
|
|
19
19
|
import { o as pe } from "./objectId-dwaoBfJX.js";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { defineComponent as X, ref as h, computed as H, resolveComponent as f, openBlock as b, createBlock as U, unref as t, isRef as Z, withCtx as A, createElementVNode as w, createVNode as c, createCommentVNode as k, createElementBlock as M, Fragment as Y, h as F, onMounted as q, toDisplayString as B } from "vue";
|
|
2
2
|
import { _ as z } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as Q, components as L } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as G } from "./loading-
|
|
5
|
-
import { u as J, C as ee } from "./membership-
|
|
6
|
-
import { f as j, p as te } from "./plugins-
|
|
7
|
-
import { u as oe } from "./vue-i18n-
|
|
4
|
+
import { u as G } from "./loading-BXu9ofEu.js";
|
|
5
|
+
import { u as J, C as ee } from "./membership-BBb7gdZg.js";
|
|
6
|
+
import { f as j, p as te } from "./plugins-B5tuGbFw.js";
|
|
7
|
+
import { u as oe } from "./vue-i18n-Cts9OsqE.js";
|
|
8
8
|
import { c as ae } from "./object-qECH92oz.js";
|
|
9
9
|
import { Z as O } from "./zod-Bg2FbC-D.js";
|
|
10
|
-
import "./index-
|
|
11
|
-
import { F as N } from "./index-
|
|
10
|
+
import "./index-B6_uPXyL.js";
|
|
11
|
+
import { F as N } from "./index-Di6bqaLm.js";
|
|
12
12
|
import { useCoreStore as ne } from "@feedmepos/mf-common";
|
|
13
|
-
import { _ as le, a as ie } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { b as re } from "./EffectSheet.vue_vue_type_style_index_0_lang-
|
|
13
|
+
import { _ as le, a as ie } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-CgooH4yn.js";
|
|
14
|
+
import { b as re } from "./EffectSheet.vue_vue_type_style_index_0_lang-CQDnl97F.js";
|
|
15
15
|
import { J as K } from "./JsonViewer-v8_C7l5N.js";
|
|
16
|
-
import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { i as ce } from "./helper-
|
|
18
|
-
import { u as de, r as P } from "./reward-
|
|
19
|
-
import "./index-
|
|
20
|
-
import { C as pe } from "./campaign.fn-
|
|
21
|
-
import { e as me } from "./effect-
|
|
16
|
+
import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-B8pgaARn.js";
|
|
17
|
+
import { i as ce } from "./helper-BM1JTEFS.js";
|
|
18
|
+
import { u as de, r as P } from "./reward-CE-bnnnQ.js";
|
|
19
|
+
import "./index-De1JnaPh.js";
|
|
20
|
+
import { C as pe } from "./campaign.fn-BPHARk3Y.js";
|
|
21
|
+
import { e as me } from "./effect-CI4ZR8HW.js";
|
|
22
22
|
import { useRouter as ue } from "vue-router";
|
|
23
|
-
import { R as ye } from "./app-
|
|
23
|
+
import { R as ye } from "./app-B2Cgyy70.js";
|
|
24
24
|
const fe = /* @__PURE__ */ w("div", { class: "fm-typo-en-title-sm-800" }, "Earning option", -1), we = { class: "flex gap-8 items-center justify-start" }, ve = /* @__PURE__ */ X({
|
|
25
25
|
__name: "EditRewardSheet",
|
|
26
26
|
emits: ["update"],
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ref as p, defineComponent as T, computed as x, resolveComponent as y, openBlock as U, createBlock as G, unref as e, isRef as $, withCtx as b, createElementVNode as v, createVNode as u, toDisplayString as j } from "vue";
|
|
2
|
-
import { u as B } from "./loading-
|
|
2
|
+
import { u as B } from "./loading-BXu9ofEu.js";
|
|
3
3
|
import { J as P } from "./JsonViewer-v8_C7l5N.js";
|
|
4
|
-
import { _ as D } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as I } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as D } from "./ZodTextField.vue_vue_type_script_setup_true_lang-B8pgaARn.js";
|
|
5
|
+
import { _ as I } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-CK_4iMCA.js";
|
|
6
6
|
import { Z as L } from "./zod-Bg2FbC-D.js";
|
|
7
7
|
import { u as V } from "./app-wDQR6dpb.js";
|
|
8
8
|
import { defineStore as N } from "pinia";
|
|
9
|
-
import { r as k } from "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
12
|
-
import { c as E } from "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./index-
|
|
16
|
-
import { u as J } from "./vue-i18n-
|
|
9
|
+
import { r as k } from "./index-BfGdztHf.js";
|
|
10
|
+
import "./index-DjycZwfg.js";
|
|
11
|
+
import "./index-B6_uPXyL.js";
|
|
12
|
+
import { c as E } from "./index-CBuCx_0r.js";
|
|
13
|
+
import "./index-vs1HgFHz.js";
|
|
14
|
+
import "./index-Di6bqaLm.js";
|
|
15
|
+
import "./index-D_gLVFsk.js";
|
|
16
|
+
import { u as J } from "./vue-i18n-Cts9OsqE.js";
|
|
17
17
|
import { c as C } from "./object-qECH92oz.js";
|
|
18
18
|
import { useDialog as Z } from "@feedmepos/ui-library";
|
|
19
19
|
const A = N("mf-connect-referral", () => {
|