@feedmepos/mf-connect 0.1.38-beta.21 → 0.1.38-beta.22
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-CEd_WApy.js → Analytic-CpzRbw6Z.js} +13 -13
- package/dist/{App-ulCtuU5o.js → App-mXF5fxjZ.js} +303 -307
- package/dist/{AuditLogs-BM1Np61K.js → AuditLogs-CMqOkUZr.js} +9 -9
- package/dist/{Bin-icbjnKXw.js → Bin-8pdgFB9Z.js} +8 -8
- package/dist/{Broadcast-COQ3E8vI.js → Broadcast-BPbUMgv9.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BbXEYOFK.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B_J1oubC.js} +6 -6
- package/dist/{Card-Cwh3GXi0.js → Card-I1TPvKP2.js} +16 -16
- package/dist/{Collections-EuOjzpkL.js → Collections-Bm7uK5bU.js} +6 -6
- package/dist/{Credit-BY2Fpdhh.js → Credit-D0atXzoF.js} +9 -9
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CFbgEftO.js +3109 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BLw3-hI1.js → EffectSheet.vue_vue_type_style_index_0_lang-CKfJClbj.js} +6 -6
- package/dist/{Experience-rAH7zk71.js → Experience-yPl537Z0.js} +9 -9
- package/dist/{Game-DlI0yNF0.js → Game-D51In5o6.js} +10 -10
- package/dist/Grab-CfFzOqVf.js +282 -0
- package/dist/{Index-DemXFS3d.js → Index-e2fXLyP2.js} +10 -10
- package/dist/{Marketing-shNBO9Rc.js → Marketing-Co80L4R4.js} +7112 -5424
- package/dist/{Member-C19ZgpaL.js → Member-Lbt60sle.js} +10 -10
- package/dist/{MemberList-B2tNB4yg.js → MemberList-BH4vPGKI.js} +25 -25
- package/dist/{MemberTransactions-BN3qaTVY.js → MemberTransactions-DeuCZtvO.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BY3j1h72.js → MessageInput.vue_vue_type_script_setup_true_lang-DhvpOc4l.js} +8 -8
- package/dist/{Mission-j1KI0-hJ.js → Mission-flrnw4_V.js} +10 -10
- package/dist/{Overview-BN2Vdu8Q.js → Overview-BeSCDO-z.js} +18 -18
- package/dist/{Point-8zy7QcTk.js → Point-CbPJF6zY.js} +9 -9
- package/dist/{Promotion-mcUcylXB.js → Promotion-ppwYxK04.js} +10 -10
- package/dist/{Queue-BsNv4P8u.js → Queue-BSRSIphF.js} +10 -10
- package/dist/{Record-VA6Bdlnz.js → Record-A2ryIllF.js} +8 -8
- package/dist/{Reward-CVyO3Ga1.js → Reward-RAkE3L2b.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BR9_a9bJ.js → RewardGroup.vue_vue_type_script_setup_true_lang-_TAl6moR.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Dhs2whAH.js → RuleGroup.vue_vue_type_script_setup_true_lang-BZYLaJ1g.js} +13 -13
- package/dist/{Segment-BMgcdIIS.js → Segment-CYVaOnLd.js} +22 -22
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CKRpWcn_.js → SelectItems.vue_vue_type_script_setup_true_lang-dKRYAPAC.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DZCNcdVW.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BuxR6tGK.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BESF672g.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-HZ-szV_4.js} +3 -3
- package/dist/{Setting-BMKKkZTD.js → Setting-BdVOv2fF.js} +11 -11
- package/dist/{Store-DdxMDtfL.js → Store-C2vl-tSY.js} +19 -19
- package/dist/{StoreRewards-CRyeHEMF.js → StoreRewards-OwfwKw4Z.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DS6-9WP9.js → StoreTransactions.vue_vue_type_script_setup_true_lang-B7G-XEv7.js} +20 -20
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BTKpclKX.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C0Jw4qmp.js} +1 -1
- package/dist/{Tier-D5Xmp5vV.js → Tier-CQWqWYQp.js} +20 -20
- package/dist/{Title-CsK2crqD.js → Title-B03AazFm.js} +19 -19
- package/dist/{Transaction-Dvfc9x4f.js → Transaction-CsmWCDjS.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CqCxWltm.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-D9MhrUdC.js} +6 -6
- package/dist/{Voucher-CPN7TMho.js → Voucher-BjTCDioi.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DMye9MS3.js → VoucherEditor.vue_vue_type_script_setup_true_lang-D3cSsXPi.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CnaQAEKo.js → ZodTextField.vue_vue_type_script_setup_true_lang-CcR6Ak9O.js} +1 -1
- package/dist/{app-DRBevJsF.js → app-8DN8-SZI.js} +1 -1
- package/dist/{app-DteFjR9L.js → app-BZS8hbi4.js} +740 -676
- package/dist/app.js +1 -1
- package/dist/{business-BqV9jK-p.js → business-Oqy7tPH9.js} +1 -1
- package/dist/{campaign-CsWoG6e_.js → campaign-BFjMsenC.js} +29 -25
- package/dist/{campaign-BHDq-yx-.js → campaign-Bpu-WkHc.js} +27 -14
- package/dist/{campaign.enum-Dfa96W5V.js → campaign.enum-tI-fq-RU.js} +3 -2
- package/dist/{campaign.fn-pLrwyHA_.js → campaign.fn-DnSyzNCW.js} +44 -44
- package/dist/{collectible.enum-BYTYWPsR.js → collectible.enum-BT9B1DAn.js} +1 -1
- package/dist/{collection.fn-CYLIQJig.js → collection.fn-Q0ICmTCt.js} +2 -2
- package/dist/{dto-DBfDbpyb.js → dto-BKZbH_5Z.js} +51 -39
- package/dist/{effect-D9pD5RCk.js → effect-Ev5GOyak.js} +1 -1
- package/dist/{email-addresses-BApvdLkQ.js → email-addresses-HSXm7NzC.js} +1 -1
- package/dist/{export--EfmCiw0.js → export-Dmw7vq5n.js} +3 -3
- package/dist/{helper-BHiK3pLT.js → helper-DrBwjXJd.js} +1 -1
- package/dist/{index-DXM3o6kl.js → index-B2HJgRP8.js} +1 -1
- package/dist/{index-Pd9RCQxn.js → index-BJuCnCo9.js} +1 -1
- package/dist/{index-COiVJ9pA.js → index-CLEOWcJj.js} +1 -1
- package/dist/{index-qd_dvZcw.js → index-Crg_hMJc.js} +16 -16
- package/dist/{index-CD2bkLo_.js → index-Cvk2jznV.js} +1 -1
- package/dist/{index-C1Vrltkc.js → index-D1XdOqxU.js} +1 -1
- package/dist/{index-CDLBLuYq.js → index-DCtGS9iJ.js} +845 -708
- package/dist/{index-DYgdunxw.js → index-DYsVl8va.js} +3 -3
- package/dist/{index-Bqc7PV3K.js → index-DbDvM2VB.js} +1 -1
- package/dist/{index-Cc80pBYX.js → index-DhP0hPJy.js} +1452 -1452
- package/dist/{index-B9_Tn8si.js → index-SlOkYO1R.js} +1 -1
- package/dist/{index-BSQXDDQY.js → index-XDMj6KjH.js} +3 -3
- package/dist/{index-2dknXEFJ.js → index-YYhOm5p5.js} +182 -15
- package/dist/{index-CVxruvVB.js → index-paKrqchu.js} +3 -3
- package/dist/{index.esm2017-DAWS_ALH.js → index.esm2017-CKyZQ9bN.js} +1 -1
- package/dist/{loading-BVUeda4s.js → loading-fAKR7hYD.js} +1 -1
- package/dist/{membership-BL_43RJR.js → membership-CaZBYwW5.js} +3 -3
- package/dist/{money-Cd8hLiNc.js → money-DOhWY3sh.js} +1 -1
- package/dist/{number-DVb8PSrj.js → number-DGtIZHGZ.js} +1 -1
- package/dist/{objectid-D33s3gxp.js → objectid-C0hgqKv3.js} +8 -8
- package/dist/{plugins-BKtBkC9Q.js → plugins-FfzNmwCE.js} +2 -2
- package/dist/{reward-f41dJcaL.js → reward-DzIcFmd0.js} +1 -1
- package/dist/{rule-Cbux1-fC.js → rule-DK-66nJF.js} +3 -3
- package/dist/{rule-builder-BrZeF45Z.js → rule-builder-BlS3MdnW.js} +16 -16
- package/dist/style.css +1 -1
- package/dist/{template-tqhgmIdT.js → template-Wtw44sTH.js} +4 -4
- package/dist/{timezone-DaTVH4y0.js → timezone-SzPXGYwV.js} +1 -1
- package/dist/{trigger-C34RfwrT.js → trigger-CehCt6EJ.js} +4 -4
- package/dist/{user-DgKhDLYr.js → user-BRklsZN_.js} +1 -1
- package/dist/{vue-i18n-xo56wiwi.js → vue-i18n-D8X2q1qS.js} +246 -246
- package/dist/{xlsx-D8ZZRjtf.js → xlsx-Dzv15YMt.js} +1 -1
- package/package.json +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BbsLgUMQ.js +0 -2188
- package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as P, ref as C, onMounted as Q, computed as H, resolveComponent as y, openBlock as s, createElementBlock as x, renderSlot as W, toDisplayString as w, createCommentVNode as v, createBlock as f, unref as e, isRef as q, createVNode as b, normalizeClass as G, watch as X, withCtx as F, resolveDynamicComponent as O, Fragment as _, createElementVNode as U, createTextVNode as ee } from "vue";
|
|
2
|
-
import { z as te } from "./app-
|
|
2
|
+
import { z as te } from "./app-BZS8hbi4.js";
|
|
3
3
|
import { Z as u } from "./zod-Bg2FbC-D.js";
|
|
4
|
-
import {
|
|
5
|
-
import { u as Z } from "./vue-i18n-
|
|
6
|
-
import { s as R } from "./effect-
|
|
7
|
-
import { p as ae } from "./plugins-
|
|
8
|
-
import { O as ne } from "./app-
|
|
4
|
+
import { g as le, f as oe } from "./index-Crg_hMJc.js";
|
|
5
|
+
import { u as Z } from "./vue-i18n-D8X2q1qS.js";
|
|
6
|
+
import { s as R } from "./effect-Ev5GOyak.js";
|
|
7
|
+
import { p as ae } from "./plugins-FfzNmwCE.js";
|
|
8
|
+
import { O as ne } from "./app-8DN8-SZI.js";
|
|
9
9
|
const ie = { class: "flex flex-col gap-8" }, se = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "fm-typo-en-body-lg-600"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as D, ref as S, computed as E, onMounted as U, resolveComponent as i, openBlock as m, createElementBlock as _, Fragment as x, createVNode as c, unref as t, createElementVNode as n, withCtx as h, renderList as j, createBlock as w, resolveDynamicComponent as M, toDisplayString as p, h as H } from "vue";
|
|
2
2
|
import { _ as q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as z, components as G } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as J } from "./plugins-
|
|
5
|
-
import { u as Q } from "./loading-
|
|
6
|
-
import { u as W } from "./business-
|
|
7
|
-
import { u as X } from "./campaign-
|
|
8
|
-
import { a as L, b as V, g as Y } from "./campaign-
|
|
9
|
-
import { u as Z } from "./vue-i18n-
|
|
4
|
+
import { p as J } from "./plugins-FfzNmwCE.js";
|
|
5
|
+
import { u as Q } from "./loading-fAKR7hYD.js";
|
|
6
|
+
import { u as W } from "./business-Oqy7tPH9.js";
|
|
7
|
+
import { u as X } from "./campaign-BFjMsenC.js";
|
|
8
|
+
import { a as L, b as V, g as Y } from "./campaign-Bpu-WkHc.js";
|
|
9
|
+
import { u as Z } from "./vue-i18n-D8X2q1qS.js";
|
|
10
10
|
import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
11
|
-
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { u as oe } from "./template-
|
|
13
|
-
import { c as g } from "./index-
|
|
11
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CFbgEftO.js";
|
|
12
|
+
import { u as oe } from "./template-Wtw44sTH.js";
|
|
13
|
+
import { c as g } from "./index-Cvk2jznV.js";
|
|
14
14
|
const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, re = { class: "space-y-8" }, ce = { class: "flex w-full gap-4 items-center" }, ie = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, le = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { 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" }, Pe = /* @__PURE__ */ D({
|
|
15
15
|
__name: "Experience",
|
|
16
16
|
setup(ge) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as N, ref as v, computed as q, onMounted as z, resolveComponent as r, openBlock as p, createElementBlock as C, Fragment as b, createVNode as s, unref as o, withCtx as h, createElementVNode as n, toDisplayString as c, renderList as J, createBlock as k, resolveDynamicComponent as O, h as l } from "vue";
|
|
2
2
|
import { _ as Q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as W, components as w } from "@feedmepos/ui-library";
|
|
4
|
-
import { a as X, p as Y } from "./plugins-
|
|
5
|
-
import { u as Z } from "./loading-
|
|
6
|
-
import { u as ee } from "./business-
|
|
7
|
-
import { u as te } from "./campaign-
|
|
8
|
-
import { a as $, b as A, g as oe } from "./campaign-
|
|
4
|
+
import { a as X, p as Y } from "./plugins-FfzNmwCE.js";
|
|
5
|
+
import { u as Z } from "./loading-fAKR7hYD.js";
|
|
6
|
+
import { u as ee } from "./business-Oqy7tPH9.js";
|
|
7
|
+
import { u as te } from "./campaign-BFjMsenC.js";
|
|
8
|
+
import { a as $, b as A, g as oe } from "./campaign-Bpu-WkHc.js";
|
|
9
9
|
import { _ as ae } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as ne } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as se } from "./template-
|
|
12
|
-
import { u as ie } from "./vue-i18n-
|
|
13
|
-
import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { c as x } from "./index-
|
|
10
|
+
import { _ as ne } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CFbgEftO.js";
|
|
11
|
+
import { u as se } from "./template-Wtw44sTH.js";
|
|
12
|
+
import { u as ie } from "./vue-i18n-D8X2q1qS.js";
|
|
13
|
+
import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-BuxR6tGK.js";
|
|
14
|
+
import { c as x } from "./index-Cvk2jznV.js";
|
|
15
15
|
const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-center justify-between w-full" }, pe = { class: "flex gap-8 overflow-x-auto" }, ue = { class: "space-y-8" }, fe = { class: "flex w-full gap-4 items-center" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "space-y-4" }, _e = { class: "fm-typo-en-body-lg-600" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xe = { class: "flex flex-col gap-16 text-center" }, ve = { class: "fm-typo-en-title-sm-800" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ie = /* @__PURE__ */ N({
|
|
16
16
|
__name: "Game",
|
|
17
17
|
setup(be) {
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { defineComponent as z, ref as S, computed as q, h as J, onMounted as Q, resolveComponent as m, openBlock as d, createElementBlock as h, Fragment as w, createVNode as s, unref as n, withCtx as b, createElementVNode as c, renderList as W, createBlock as v, resolveDynamicComponent as X, toDisplayString as T } from "vue";
|
|
2
|
+
import { _ as Y } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as Z, components as ee } from "@feedmepos/ui-library";
|
|
4
|
+
import { p as L } from "./plugins-FfzNmwCE.js";
|
|
5
|
+
import { u as te } from "./loading-fAKR7hYD.js";
|
|
6
|
+
import { u as oe } from "./business-Oqy7tPH9.js";
|
|
7
|
+
import { u as ae } from "./campaign-BFjMsenC.js";
|
|
8
|
+
import { u as ne } from "./vue-i18n-D8X2q1qS.js";
|
|
9
|
+
import { g as re, a as B } from "./campaign-Bpu-WkHc.js";
|
|
10
|
+
import { s as se, _ as le } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CFbgEftO.js";
|
|
11
|
+
import { u as ie } from "./template-Wtw44sTH.js";
|
|
12
|
+
import { _ as V } from "./FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js";
|
|
13
|
+
import { c as f } from "./index-Cvk2jznV.js";
|
|
14
|
+
const ce = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-center justify-between w-full" }, ue = { class: "flex gap-8 overflow-x-auto" }, de = { class: "space-y-8" }, pe = { class: "flex w-full gap-4 items-center" }, fe = { class: "flex flex-col gap-16 text-center" }, ge = { class: "fm-typo-en-title-sm-800" }, ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = /* @__PURE__ */ z({
|
|
15
|
+
__name: "Grab",
|
|
16
|
+
setup(be) {
|
|
17
|
+
const { t: a } = ne(), I = {
|
|
18
|
+
label: a("connect.grab.createCampaign"),
|
|
19
|
+
value: "create",
|
|
20
|
+
isPrimary: !0,
|
|
21
|
+
prependIcon: "add"
|
|
22
|
+
}, O = {
|
|
23
|
+
label: "Force sync",
|
|
24
|
+
value: "sync",
|
|
25
|
+
isPrimary: !1,
|
|
26
|
+
prependIcon: "refresh"
|
|
27
|
+
}, A = ie("GRAB", Z()), x = oe(), g = ae(), { global: R, minor: _ } = te, M = [
|
|
28
|
+
{
|
|
29
|
+
label: "Bill promotion",
|
|
30
|
+
value: "BILL"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: "Item promotion",
|
|
34
|
+
value: "ITEM"
|
|
35
|
+
}
|
|
36
|
+
], r = S({
|
|
37
|
+
searchKey: "",
|
|
38
|
+
location: [],
|
|
39
|
+
effectType: []
|
|
40
|
+
});
|
|
41
|
+
function K(e) {
|
|
42
|
+
const t = r.value.location;
|
|
43
|
+
return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((l) => {
|
|
44
|
+
var i;
|
|
45
|
+
return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(l);
|
|
46
|
+
}) : e.targetLocation.includes(t);
|
|
47
|
+
}
|
|
48
|
+
function $(e) {
|
|
49
|
+
var i, p;
|
|
50
|
+
const t = r.value.effectType;
|
|
51
|
+
if (!t || t.length === 0) return !0;
|
|
52
|
+
const l = (p = (i = e.effect) == null ? void 0 : i.options) == null ? void 0 : p.target;
|
|
53
|
+
return t.includes(l);
|
|
54
|
+
}
|
|
55
|
+
const u = q(
|
|
56
|
+
() => g.campaigns.grab.filter(
|
|
57
|
+
(e) => K(e) && $(e)
|
|
58
|
+
)
|
|
59
|
+
), D = [
|
|
60
|
+
{
|
|
61
|
+
header: a("connect.grab.promotionTitle"),
|
|
62
|
+
accessorFn: (e) => e.name
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
header: a("connect.grab.status"),
|
|
66
|
+
accessorFn: (e) => re(e),
|
|
67
|
+
cell(e) {
|
|
68
|
+
return B(e.row.original);
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
header: a("connect.grab.summary"),
|
|
73
|
+
cell(e) {
|
|
74
|
+
const t = se(e.row.original.discount);
|
|
75
|
+
return `${t.type} - ${t.adjustment}`;
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
header: a("connect.grab.actions"),
|
|
80
|
+
cell(e) {
|
|
81
|
+
return J(ee.FmButton, {
|
|
82
|
+
variant: "tertiary",
|
|
83
|
+
icon: "delete",
|
|
84
|
+
iconColor: "neutral-gray-400",
|
|
85
|
+
onClick: (t) => {
|
|
86
|
+
t.stopPropagation(), F(e.row.original);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
], C = S();
|
|
92
|
+
async function F(e) {
|
|
93
|
+
await L.remove(a("connect.grab.confirmRemove", { name: e.name })) && await _(
|
|
94
|
+
async () => {
|
|
95
|
+
await f.delete(e._id), await g.read("PROMOTION");
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
message: a("connect.grab.removing", { name: e.name }),
|
|
99
|
+
successMessage: a("connect.grab.removedSuccessfully", {
|
|
100
|
+
name: e.name
|
|
101
|
+
})
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
async function y(e) {
|
|
106
|
+
e ? await t() : A.open(async (l) => {
|
|
107
|
+
await t(l);
|
|
108
|
+
});
|
|
109
|
+
async function t(l) {
|
|
110
|
+
var i;
|
|
111
|
+
(i = C.value) == null || i.showSheet(
|
|
112
|
+
!0,
|
|
113
|
+
"GRAB",
|
|
114
|
+
e ? await f.readById(e._id) : void 0,
|
|
115
|
+
l
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
async function N(e) {
|
|
120
|
+
await _(
|
|
121
|
+
async () => {
|
|
122
|
+
e.campaign._id ? await f.update(e.campaign._id, e) : await f.create(e), await g.read("PROMOTION");
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
message: a(
|
|
126
|
+
e.campaign._id ? "connect.grab.updating" : "connect.grab.creating"
|
|
127
|
+
),
|
|
128
|
+
successMessage: a(
|
|
129
|
+
e.campaign._id ? "connect.grab.updatedSuccessfully" : "connect.grab.createdSuccessfully"
|
|
130
|
+
)
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
async function U(e) {
|
|
135
|
+
switch (e) {
|
|
136
|
+
case "create":
|
|
137
|
+
y();
|
|
138
|
+
break;
|
|
139
|
+
case "sync":
|
|
140
|
+
await L.confirm(
|
|
141
|
+
"Are you sure you want to synchronize all promotions to POS?",
|
|
142
|
+
"Force sync"
|
|
143
|
+
) && _(
|
|
144
|
+
async () => {
|
|
145
|
+
await f.syncAllPromotion();
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
message: "Syncing promotions...",
|
|
149
|
+
successMessage: "All promotions synced"
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return Q(async () => {
|
|
156
|
+
await R(async () => {
|
|
157
|
+
await x.readLocations(), await g.read("PROMOTION");
|
|
158
|
+
});
|
|
159
|
+
}), (e, t) => {
|
|
160
|
+
const l = m("FmPill"), i = m("FmPageHead"), p = m("FmSearch"), j = m("FmTable"), k = m("FmButton"), E = m("FmListItem"), G = m("FmList"), H = m("FmCard");
|
|
161
|
+
return d(), h(w, null, [
|
|
162
|
+
s(i, {
|
|
163
|
+
title: n(a)("connect.grab.title"),
|
|
164
|
+
actions: n(u).length > 0 ? [I, O] : [],
|
|
165
|
+
"onClick:action": U
|
|
166
|
+
}, {
|
|
167
|
+
prepend: b(() => [
|
|
168
|
+
s(l, { variant: "beta" }),
|
|
169
|
+
s(l, { variant: "premium" })
|
|
170
|
+
]),
|
|
171
|
+
_: 1
|
|
172
|
+
}, 8, ["title", "actions"]),
|
|
173
|
+
c("div", ce, [
|
|
174
|
+
s(p, {
|
|
175
|
+
modelValue: r.value.searchKey,
|
|
176
|
+
"onUpdate:modelValue": t[0] || (t[0] = (o) => r.value.searchKey = o),
|
|
177
|
+
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
178
|
+
placeholder: n(a)("connect.grab.search"),
|
|
179
|
+
collapsible: ""
|
|
180
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
181
|
+
n(u) && n(u).length > 0 ? (d(), h(w, { key: 0 }, [
|
|
182
|
+
c("div", me, [
|
|
183
|
+
c("div", ue, [
|
|
184
|
+
s(V, {
|
|
185
|
+
label: `${n(a)("connect.common.location")}: `,
|
|
186
|
+
"right-icon": "keyboard_arrow_down",
|
|
187
|
+
modelValue: r.value.location,
|
|
188
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => r.value.location = o),
|
|
189
|
+
icon: "storefront",
|
|
190
|
+
"show-item-label": !0,
|
|
191
|
+
items: n(x).locationOptions
|
|
192
|
+
}, null, 8, ["label", "modelValue", "items"]),
|
|
193
|
+
s(V, {
|
|
194
|
+
label: "Type:",
|
|
195
|
+
"right-icon": "keyboard_arrow_down",
|
|
196
|
+
modelValue: r.value.effectType,
|
|
197
|
+
"onUpdate:modelValue": t[2] || (t[2] = (o) => r.value.effectType = o),
|
|
198
|
+
icon: "filter_list",
|
|
199
|
+
"show-item-label": !0,
|
|
200
|
+
items: M
|
|
201
|
+
}, null, 8, ["modelValue"])
|
|
202
|
+
]),
|
|
203
|
+
s(p, {
|
|
204
|
+
modelValue: r.value.searchKey,
|
|
205
|
+
"onUpdate:modelValue": t[3] || (t[3] = (o) => r.value.searchKey = o),
|
|
206
|
+
class: "xs:hidden",
|
|
207
|
+
placeholder: "search",
|
|
208
|
+
collapsible: ""
|
|
209
|
+
}, null, 8, ["modelValue"])
|
|
210
|
+
]),
|
|
211
|
+
s(j, {
|
|
212
|
+
class: "xs:hidden",
|
|
213
|
+
"row-data": n(u),
|
|
214
|
+
"column-defs": D,
|
|
215
|
+
"search-value": r.value.searchKey,
|
|
216
|
+
"column-filter": [],
|
|
217
|
+
onRowClick: t[4] || (t[4] = (o) => y(o.original)),
|
|
218
|
+
"hide-footer": n(u).length < 10
|
|
219
|
+
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
220
|
+
s(G, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
221
|
+
default: b(() => [
|
|
222
|
+
(d(!0), h(w, null, W(n(u).filter(
|
|
223
|
+
(o) => o.name.toLowerCase().includes(r.value.searchKey.toLowerCase())
|
|
224
|
+
), (o) => (d(), v(E, {
|
|
225
|
+
key: o._id.toString(),
|
|
226
|
+
onClick: (P) => y(o),
|
|
227
|
+
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
228
|
+
}, {
|
|
229
|
+
default: b(() => [
|
|
230
|
+
c("div", de, [
|
|
231
|
+
c("div", pe, [
|
|
232
|
+
(d(), v(X(n(B)(o))))
|
|
233
|
+
])
|
|
234
|
+
]),
|
|
235
|
+
s(k, {
|
|
236
|
+
icon: "delete",
|
|
237
|
+
"icon-color": "neutral-gray-400",
|
|
238
|
+
variant: "tertiary",
|
|
239
|
+
onClick: (P) => (P.stopPropagation(), F(o))
|
|
240
|
+
}, null, 8, ["onClick"])
|
|
241
|
+
]),
|
|
242
|
+
_: 2
|
|
243
|
+
}, 1032, ["onClick"]))), 128))
|
|
244
|
+
]),
|
|
245
|
+
_: 1
|
|
246
|
+
})
|
|
247
|
+
], 64)) : (d(), v(H, {
|
|
248
|
+
key: 1,
|
|
249
|
+
variant: "outlined",
|
|
250
|
+
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
251
|
+
}, {
|
|
252
|
+
default: b(() => [
|
|
253
|
+
t[6] || (t[6] = c("img", {
|
|
254
|
+
src: Y,
|
|
255
|
+
class: "aspect-square w-[150px]"
|
|
256
|
+
}, null, -1)),
|
|
257
|
+
c("div", fe, [
|
|
258
|
+
c("div", ge, T(n(a)("connect.grab.createPromotionCampaign")), 1),
|
|
259
|
+
c("div", ye, T(n(a)("connect.grab.description")), 1)
|
|
260
|
+
]),
|
|
261
|
+
s(k, {
|
|
262
|
+
variant: "primary",
|
|
263
|
+
label: n(a)("connect.grab.createPromotionCampaign"),
|
|
264
|
+
icon: "add",
|
|
265
|
+
onClick: t[5] || (t[5] = (o) => y())
|
|
266
|
+
}, null, 8, ["label"])
|
|
267
|
+
]),
|
|
268
|
+
_: 1
|
|
269
|
+
}))
|
|
270
|
+
]),
|
|
271
|
+
s(le, {
|
|
272
|
+
ref_key: "sheetRef",
|
|
273
|
+
ref: C,
|
|
274
|
+
"onSubmit:modelValue": N
|
|
275
|
+
}, null, 512)
|
|
276
|
+
], 64);
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
export {
|
|
281
|
+
Ve as default
|
|
282
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as U, ref as g, watch as O, onMounted as I, resolveComponent as m, openBlock as b, createBlock as j, withCtx as P, createTextVNode as z, toDisplayString as $, createElementVNode as c, createVNode as o, unref as e, createElementBlock as F, createCommentVNode as W, normalizeClass as G, computed as L, Fragment as q, isRef as J } from "vue";
|
|
2
|
-
import { u as H } from "./vue-i18n-
|
|
3
|
-
import "./index-
|
|
2
|
+
import { u as H } from "./vue-i18n-D8X2q1qS.js";
|
|
3
|
+
import "./index-SlOkYO1R.js";
|
|
4
4
|
import { useRouter as K } from "vue-router";
|
|
5
|
-
import { u as Q } from "./loading-
|
|
6
|
-
import { f as V, p as X } from "./plugins-
|
|
7
|
-
import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { u as Q } from "./loading-fAKR7hYD.js";
|
|
6
|
+
import { f as V, p as X } from "./plugins-FfzNmwCE.js";
|
|
7
|
+
import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-_TAl6moR.js";
|
|
8
8
|
import { useDialog as ee, useSnackbar as ne, FmButtonVariant as p } from "@feedmepos/ui-library";
|
|
9
|
-
import { r as N } from "./index-
|
|
10
|
-
import { u as ae } from "./reward-
|
|
11
|
-
import { u as oe } from "./business-
|
|
12
|
-
import { u as te } from "./membership-
|
|
13
|
-
import { R as S } from "./app-
|
|
9
|
+
import { r as N } from "./index-CLEOWcJj.js";
|
|
10
|
+
import { u as ae } from "./reward-DzIcFmd0.js";
|
|
11
|
+
import { u as oe } from "./business-Oqy7tPH9.js";
|
|
12
|
+
import { u as te } from "./membership-CaZBYwW5.js";
|
|
13
|
+
import { R as S } from "./app-BZS8hbi4.js";
|
|
14
14
|
const re = { class: "space-y-24" }, le = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: /* @__PURE__ */ G([
|