@feedmepos/mf-connect 0.0.5-beta.20 → 0.0.5-beta.21
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-DUWe-WYz.js → Analytic-CVpCpEBl.js} +12 -13
- package/dist/{Broadcast-CAmI-dS9.js → Broadcast-C0SHdFpT.js} +11 -12
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CQbePPyW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B94-nKP4.js} +8 -8
- package/dist/Card-C5yXOEhK.js +827 -0
- package/dist/Collections-Ka_q_V3S.js +424 -0
- package/dist/{Credit-CxyIk-mH.js → Credit-CmTa3hjm.js} +11 -12
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-AGQwe70B.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CNSfNMA_.js} +23 -24
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-y263YYGy.js → EffectSheet.vue_vue_type_style_index_0_lang-BLfzJ46z.js} +5 -5
- package/dist/{Experience-DH6nbWal.js → Experience-yd4ZPBXy.js} +11 -12
- package/dist/{Game-BGMGl6Uw.js → Game-DYTplwOh.js} +22 -23
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rs3BEnpo.js → ImageInput.vue_vue_type_script_setup_true_lang-BuuYdlE4.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BIwBZ7FH.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BfWuKa1w.js} +1 -1
- package/dist/{MainLayout-CjvNB4RK.js → MainLayout-8tc3ZtLI.js} +2 -2
- package/dist/{Marketing-BLbR9_KN.js → Marketing-D5Le-SWn.js} +19 -20
- package/dist/{Member-BqPHWUos.js → Member-CzY5Um_y.js} +2 -2
- package/dist/{MemberList-DoBv4aBY.js → MemberList-DpFa2ttF.js} +20 -21
- package/dist/{MemberTransactions-Cri3UCrX.js → MemberTransactions-CDKkRdfp.js} +4 -4
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang--qiv_ZUS.js → MessageInput.vue_vue_type_script_setup_true_lang-BD27S5wB.js} +4 -4
- package/dist/{Mission-BXRMH__V.js → Mission-9BmMMzyr.js} +25 -26
- package/dist/{Point-MS30HaX7.js → Point-IiWgZIyI.js} +11 -12
- package/dist/{Promotion-BuOELg3x.js → Promotion-BmEQ28sH.js} +42 -44
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CAnO-3XN.js → RuleGroup.vue_vue_type_script_setup_true_lang-BhOoz0HL.js} +12 -12
- package/dist/{Segment-C9s9hDBX.js → Segment-D1ID4Rmt.js} +39 -40
- package/dist/{Setting-CHk3QEsN.js → Setting-B3WeabHJ.js} +17 -18
- package/dist/{Store-CQWAs4Ew.js → Store-CKFLaYKH.js} +18 -19
- package/dist/{StoreRewards-DJkh42Es.js → StoreRewards-DIQL173Q.js} +27 -28
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B2kjcViv.js +794 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CEBqSaBp.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C1QmPELI.js} +1 -1
- package/dist/{Tier-3zGwCsja.js → Tier-BvE47ciZ.js} +43 -43
- package/dist/{Title-TotAXw2n.js → Title-DfcczCHg.js} +42 -42
- package/dist/Transaction-CF0f3QCU.js +36 -0
- package/dist/Voucher-CCOZjT6k.js +481 -0
- package/dist/{app--rCS8dWb.js → app-B4oDOeXm.js} +1456 -1456
- package/dist/app.js +1 -1
- package/dist/{campaign-BPWXzTLO.js → campaign-BWwTQs_d.js} +2 -2
- package/dist/{collection.fn-NFB67-6j.js → collection.fn-C5XN0PPR.js} +2 -2
- package/dist/{dto-ChVvY7GG.js → dto-Ktuw3JiD.js} +138 -139
- package/dist/{effect-CbwZuhWY.js → effect-BM2dJl1a.js} +1 -1
- package/dist/export-LApNX--r.js +97 -0
- package/dist/{helper-D16-sxkv.js → helper-BUC1dAUX.js} +1 -1
- package/dist/{index-EmqFPQGb.js → index-B6GvsaDA.js} +1 -1
- package/dist/{index-DlqRXSLU.js → index-BZMMIcyM.js} +1 -1
- package/dist/{index-Blbjd5Y9.js → index-Bc-r4pik.js} +5 -5
- package/dist/{index-CGTaSvN6.js → index-Bt_xFt9g.js} +1 -1
- package/dist/{index-D-bPAs1d.js → index-C7qI5flU.js} +2 -2
- package/dist/{index-Dh6x04Wk.js → index-C86T8VON.js} +2 -2
- package/dist/{index-C7SZ9gvu.js → index-CvZ_MhCE.js} +7 -7
- package/dist/{index-vsgk07Y2.js → index-CzVShOLS.js} +1 -1
- package/dist/{index-BGAWJ6-h.js → index-DSUUVWFu.js} +3 -3
- package/dist/{index--VC0kdJZ.js → index-DVJQt0_Q.js} +2 -2
- package/dist/{plugins-Ccv9TIl4.js → loading-CM3ZyteE.js} +8204 -8108
- package/dist/{lodash-7Fz14kKI.js → lodash-DYMRs712.js} +1 -1
- package/dist/{membership-ByQds6Nb.js → membership-D0Z9EBWi.js} +3 -3
- package/dist/{money-DsiT1-aV.js → money-Cyt6uuok.js} +1 -1
- package/dist/{number-D4SI_vwy.js → number-CSBV_14_.js} +1 -1
- package/dist/{rule-NzJI8lrC.js → rule-C4ovkUox.js} +2 -2
- package/dist/{rule-builder-CNz0WgMq.js → rule-builder-DxDhft7B.js} +1 -1
- package/dist/{template-9wDwTGR-.js → template-Dd9xYS-m.js} +6 -6
- package/dist/{usePagination-CsZrmXsU.js → usePagination-cObe7G1g.js} +1 -1
- package/dist/{xlsx-CUa5ix7U.js → xlsx--baqnGDY.js} +1 -1
- package/package.json +1 -1
- package/dist/Card-DhgETjhz.js +0 -914
- package/dist/Collections-9fPXIR34.js +0 -424
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-1GgzlIRZ.js +0 -693
- package/dist/Transaction-gV9vaJCR.js +0 -34
- package/dist/Voucher-BJ-pXo7Y.js +0 -449
- package/dist/loading-B5tUSWjN.js +0 -100
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { defineComponent as O, ref as k, computed as U, onMounted as A, resolveComponent as i, openBlock as c, createElementBlock as g, Fragment as _, createVNode as r, unref as a, createElementVNode as n, withCtx as h, renderList as D, createBlock as x, resolveDynamicComponent as j, toDisplayString as f, h as M } from "vue";
|
|
2
2
|
import { _ as H } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as q, components as z } from "@feedmepos/ui-library";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { g as S, b as V } from "./dto-ChVvY7GG.js";
|
|
4
|
+
import { u as G, p as J } from "./loading-CM3ZyteE.js";
|
|
5
|
+
import { a as Q } from "./app-B4oDOeXm.js";
|
|
6
|
+
import { u as W } from "./campaign-BWwTQs_d.js";
|
|
7
|
+
import { g as S, b as V } from "./dto-Ktuw3JiD.js";
|
|
9
8
|
import { _ as X } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as Y } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as Z } from "./template-
|
|
12
|
-
import { c as y } from "./index-
|
|
9
|
+
import { _ as Y } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CNSfNMA_.js";
|
|
10
|
+
import { u as Z } from "./template-Dd9xYS-m.js";
|
|
11
|
+
import { c as y } from "./index-BZMMIcyM.js";
|
|
13
12
|
const ee = { class: "px-24 flex flex-col gap-y-16" }, te = { class: "flex items-center justify-between w-full" }, oe = { class: "flex gap-8 overflow-x-auto" }, ae = { class: "space-y-8" }, ne = { class: "flex w-full gap-4 items-center" }, se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, re = { class: "space-y-4" }, ie = { class: "fm-typo-en-body-lg-600" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = /* @__PURE__ */ n("img", {
|
|
14
13
|
src: H,
|
|
15
14
|
class: "aspect-square w-[150px]"
|
|
16
15
|
}, null, -1), de = /* @__PURE__ */ n("div", { class: "flex flex-col gap-16 text-center" }, [
|
|
17
16
|
/* @__PURE__ */ n("div", { class: "fm-typo-en-title-sm-800" }, "Create experience program"),
|
|
18
17
|
/* @__PURE__ */ n("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Experience help customers gain membership tiers. The more they interact and spend, the higher their membership level, unlocking more rewards and benefits. ")
|
|
19
|
-
], -1),
|
|
18
|
+
], -1), Fe = /* @__PURE__ */ O({
|
|
20
19
|
__name: "Experience",
|
|
21
20
|
setup(pe) {
|
|
22
21
|
const L = {
|
|
@@ -24,7 +23,7 @@ const ee = { class: "px-24 flex flex-col gap-y-16" }, te = { class: "flex items-
|
|
|
24
23
|
value: "create",
|
|
25
24
|
isPrimary: !0,
|
|
26
25
|
prependIcon: "add"
|
|
27
|
-
}, P = Z("POINT", q()), I = Q(), l = W(), { global: T, minor: w } =
|
|
26
|
+
}, P = Z("POINT", q()), I = Q(), l = W(), { global: T, minor: w } = G, s = k({
|
|
28
27
|
searchKey: "",
|
|
29
28
|
location: null
|
|
30
29
|
}), p = U(
|
|
@@ -62,7 +61,7 @@ const ee = { class: "px-24 flex flex-col gap-y-16" }, te = { class: "flex items-
|
|
|
62
61
|
}
|
|
63
62
|
], b = k();
|
|
64
63
|
async function v(e) {
|
|
65
|
-
await
|
|
64
|
+
await J.remove(`Are you sure you want to remove ${e.name}?`) && await w(
|
|
66
65
|
async () => {
|
|
67
66
|
await y.delete(e._id), await l.read("POINT");
|
|
68
67
|
},
|
|
@@ -208,5 +207,5 @@ const ee = { class: "px-24 flex flex-col gap-y-16" }, te = { class: "flex items-
|
|
|
208
207
|
}
|
|
209
208
|
});
|
|
210
209
|
export {
|
|
211
|
-
|
|
210
|
+
Fe as default
|
|
212
211
|
};
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { defineComponent as U, ref as V, computed as j, onMounted as D, resolveComponent as
|
|
1
|
+
import { defineComponent as U, ref as V, computed as j, onMounted as D, resolveComponent as l, openBlock as c, createElementBlock as _, Fragment as h, createVNode as r, unref as a, createElementVNode as n, withCtx as w, renderList as H, createBlock as x, resolveDynamicComponent as N, toDisplayString as g, h as m } from "vue";
|
|
2
2
|
import { _ as q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as z, components as b } from "@feedmepos/ui-library";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { g as L, b as A } from "./dto-ChVvY7GG.js";
|
|
4
|
+
import { u as J, a as O, p as Q } from "./loading-CM3ZyteE.js";
|
|
5
|
+
import { a as W } from "./app-B4oDOeXm.js";
|
|
6
|
+
import { u as X } from "./campaign-BWwTQs_d.js";
|
|
7
|
+
import { g as L, b as A } from "./dto-Ktuw3JiD.js";
|
|
9
8
|
import { _ as Y } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as ee } from "./template-
|
|
12
|
-
import { c as y } from "./index-
|
|
13
|
-
const oe = { class: "px-24 flex flex-col gap-y-16" }, te = { class: "flex items-center justify-between w-full" }, ae = { class: "flex gap-8 overflow-x-auto" }, ne = { class: "space-y-8" }, se = { class: "flex w-full gap-4 items-center" }, re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
9
|
+
import { _ as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CNSfNMA_.js";
|
|
10
|
+
import { u as ee } from "./template-Dd9xYS-m.js";
|
|
11
|
+
import { c as y } from "./index-BZMMIcyM.js";
|
|
12
|
+
const oe = { class: "px-24 flex flex-col gap-y-16" }, te = { class: "flex items-center justify-between w-full" }, ae = { class: "flex gap-8 overflow-x-auto" }, ne = { class: "space-y-8" }, se = { class: "flex w-full gap-4 items-center" }, re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, le = { class: "space-y-4" }, ie = { class: "fm-typo-en-body-lg-600" }, ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = /* @__PURE__ */ n("img", {
|
|
14
13
|
src: q,
|
|
15
14
|
class: "aspect-square w-[150px]"
|
|
16
15
|
}, null, -1), ue = /* @__PURE__ */ n("div", { class: "flex flex-col gap-16 text-center" }, [
|
|
17
16
|
/* @__PURE__ */ n("div", { class: "fm-typo-en-title-sm-800" }, "Create your game program"),
|
|
18
17
|
/* @__PURE__ */ n("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " The game feature adds a fun element to shopping, encouraging customers to engage more. ")
|
|
19
|
-
], -1),
|
|
18
|
+
], -1), Fe = /* @__PURE__ */ U({
|
|
20
19
|
__name: "Game",
|
|
21
20
|
setup(pe) {
|
|
22
21
|
const B = {
|
|
@@ -24,11 +23,11 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, te = { class: "flex items-
|
|
|
24
23
|
value: "create",
|
|
25
24
|
isPrimary: !0,
|
|
26
25
|
prependIcon: "add"
|
|
27
|
-
}, $ = ee("GAME", z()), E = W(),
|
|
26
|
+
}, $ = ee("GAME", z()), E = W(), i = X(), { global: G, minor: v } = J, s = V({
|
|
28
27
|
searchKey: "",
|
|
29
28
|
location: null
|
|
30
29
|
}), p = j(
|
|
31
|
-
() =>
|
|
30
|
+
() => i.campaigns.token.filter(
|
|
32
31
|
(e) => !s.value.location || !e.targetLocation || e.targetLocation.includes(s.value.location)
|
|
33
32
|
)
|
|
34
33
|
), K = [
|
|
@@ -44,7 +43,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, te = { class: "flex items-
|
|
|
44
43
|
{
|
|
45
44
|
content: e.row.original._id,
|
|
46
45
|
onClick: (o) => {
|
|
47
|
-
o.stopPropagation(),
|
|
46
|
+
o.stopPropagation(), O(e.row.original._id);
|
|
48
47
|
}
|
|
49
48
|
},
|
|
50
49
|
[
|
|
@@ -93,9 +92,9 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, te = { class: "flex items-
|
|
|
93
92
|
}
|
|
94
93
|
], C = V();
|
|
95
94
|
async function k(e) {
|
|
96
|
-
await
|
|
95
|
+
await Q.remove(`Are you sure you want to remove ${e.name}?`) && await v(
|
|
97
96
|
async () => {
|
|
98
|
-
await y.delete(e._id), await
|
|
97
|
+
await y.delete(e._id), await i.read("GAME");
|
|
99
98
|
},
|
|
100
99
|
{
|
|
101
100
|
message: `Removing ${e.name}`,
|
|
@@ -120,7 +119,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, te = { class: "flex items-
|
|
|
120
119
|
async function M(e) {
|
|
121
120
|
await v(
|
|
122
121
|
async () => {
|
|
123
|
-
e.campaign._id ? await y.update(e.campaign._id, e) : await y.create(e), await
|
|
122
|
+
e.campaign._id ? await y.update(e.campaign._id, e) : await y.create(e), await i.read("GAME");
|
|
124
123
|
},
|
|
125
124
|
{
|
|
126
125
|
message: `${e.campaign._id ? "Updating" : "Creating"} game program`,
|
|
@@ -130,10 +129,10 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, te = { class: "flex items-
|
|
|
130
129
|
}
|
|
131
130
|
return D(async () => {
|
|
132
131
|
await G(async () => {
|
|
133
|
-
await
|
|
132
|
+
await i.read("GAME");
|
|
134
133
|
});
|
|
135
134
|
}), (e, o) => {
|
|
136
|
-
const d =
|
|
135
|
+
const d = l("FmPageHead"), u = l("FmSearch"), R = l("FmTable"), F = l("FmButton"), T = l("FmListItem"), P = l("FmList"), I = l("FmCard");
|
|
137
136
|
return c(), _(h, null, [
|
|
138
137
|
r(d, {
|
|
139
138
|
title: "Game",
|
|
@@ -148,7 +147,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, te = { class: "flex items-
|
|
|
148
147
|
placeholder: "search",
|
|
149
148
|
collapsible: ""
|
|
150
149
|
}, null, 8, ["modelValue"]),
|
|
151
|
-
a(
|
|
150
|
+
a(i).campaigns.token && a(i).campaigns.token.length > 0 ? (c(), _(h, { key: 0 }, [
|
|
152
151
|
n("div", te, [
|
|
153
152
|
n("div", ae, [
|
|
154
153
|
r(Y, {
|
|
@@ -193,8 +192,8 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, te = { class: "flex items-
|
|
|
193
192
|
(c(), x(N(a(L)(t)))),
|
|
194
193
|
n("div", re, g(t.currentReceive ?? 0) + " used ", 1)
|
|
195
194
|
]),
|
|
196
|
-
n("div",
|
|
197
|
-
n("div",
|
|
195
|
+
n("div", le, [
|
|
196
|
+
n("div", ie, g(t.name), 1),
|
|
198
197
|
n("div", ce, g(a(A)(t)), 1)
|
|
199
198
|
]),
|
|
200
199
|
n("div", me, " Token received: " + g(t.currentReceive ?? 0), 1)
|
|
@@ -239,5 +238,5 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, te = { class: "flex items-
|
|
|
239
238
|
}
|
|
240
239
|
});
|
|
241
240
|
export {
|
|
242
|
-
|
|
241
|
+
Fe as default
|
|
243
242
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as l, createElementBlock as o, createElementVNode as n, defineComponent as $, ref as v, onMounted as j, resolveComponent as m, renderSlot as h, toDisplayString as i, createCommentVNode as b, normalizeStyle as C, unref as s, Fragment as x, createVNode as w, withCtx as f, createTextVNode as g, normalizeClass as R, createBlock as F } from "vue";
|
|
2
|
-
import { _ as V } from "./app
|
|
2
|
+
import { _ as V } from "./app-B4oDOeXm.js";
|
|
3
3
|
const z = {}, H = { class: "animate-pulse flex space-x-4 bg-gray-300 dark:bg-gray-700 items-center justify-center rounded w-full h-full" }, N = /* @__PURE__ */ n("svg", {
|
|
4
4
|
class: "dark:text-gray-600 h-10 text-gray-200 w-10",
|
|
5
5
|
"aria-hidden": "true",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, watchEffect, computed, watch, openBlock, createElementBlock, normalizeStyle, onBeforeUnmount, resolveComponent, unref, createBlock } from "vue";
|
|
2
|
-
import { j as commonjsGlobal, g as getDefaultExportFromCjs } from "./app
|
|
2
|
+
import { j as commonjsGlobal, g as getDefaultExportFromCjs } from "./app-B4oDOeXm.js";
|
|
3
3
|
const v = "4.8.0", meta = {
|
|
4
4
|
g: "LottieFiles AE ",
|
|
5
5
|
a: "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as n, openBlock as o, createElementBlock as a, createVNode as c, unref as e, ref as m, resolveComponent as u, normalizeClass as _, createBlock as p, createCommentVNode as h, withDirectives as f, createElementVNode as d, vShow as w } from "vue";
|
|
2
|
-
import { _ as v, S as x } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as r } from "./app
|
|
2
|
+
import { _ as v, S as x } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-BfWuKa1w.js";
|
|
3
|
+
import { u as r } from "./app-B4oDOeXm.js";
|
|
4
4
|
import { useRoute as g } from "vue-router";
|
|
5
5
|
const S = { class: "bg-white w-full flex min-h-[calc(100svh-56px)] items-center" }, V = /* @__PURE__ */ n({
|
|
6
6
|
__name: "Splash",
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { openBlock as c, createElementBlock as u, defineComponent as D, ref as b, onMounted as z, computed as $, resolveComponent as l, Fragment as C, createVNode as r, unref as
|
|
1
|
+
import { openBlock as c, createElementBlock as u, defineComponent as D, ref as b, onMounted as z, computed as $, resolveComponent as l, Fragment as C, createVNode as r, unref as d, createElementVNode as o, withCtx as x, renderList as Y, createBlock as A, toDisplayString as B, createCommentVNode as H, h as G } from "vue";
|
|
2
2
|
import { _ as J } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { components as j } from "@feedmepos/ui-library";
|
|
4
|
-
import {
|
|
5
|
-
import { u as X } from "./loading-B5tUSWjN.js";
|
|
4
|
+
import { u as q, p as X } from "./loading-CM3ZyteE.js";
|
|
6
5
|
import { defineStore as Q } from "pinia";
|
|
7
|
-
import { F } from "./index-
|
|
6
|
+
import { F } from "./index-CzVShOLS.js";
|
|
8
7
|
import { useCoreStore as W } from "@feedmepos/mf-common";
|
|
9
|
-
import { d as y, S as Z, f as ee, _ as te } from "./app
|
|
10
|
-
import { u as ae } from "./campaign-
|
|
8
|
+
import { d as y, S as Z, f as ee, _ as te } from "./app-B4oDOeXm.js";
|
|
9
|
+
import { u as ae } from "./campaign-BWwTQs_d.js";
|
|
11
10
|
import { h as ne } from "./moment-BWErdI6_.js";
|
|
12
11
|
var oe = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedmedev.cc", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", marketingV1Portal: "https://marketing-v1.feedmedev.cc" };
|
|
13
12
|
const h = () => {
|
|
@@ -133,12 +132,12 @@ const h = () => {
|
|
|
133
132
|
function se(n, s) {
|
|
134
133
|
return c(), u("div");
|
|
135
134
|
}
|
|
136
|
-
const ie = /* @__PURE__ */ te(re, [["render", se]]), le = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-center justify-between w-full" },
|
|
135
|
+
const ie = /* @__PURE__ */ te(re, [["render", se]]), le = { class: "px-24 flex flex-col gap-y-16" }, ce = { class: "flex items-center justify-between w-full" }, de = { class: "space-y-8" }, me = { class: "fm-typo-en-body-lg-600" }, ue = { class: "fm-typo-en-body-lg-600" }, pe = { key: 0 }, ge = /* @__PURE__ */ o("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1), fe = [
|
|
137
136
|
ge
|
|
138
137
|
], ye = /* @__PURE__ */ o("img", {
|
|
139
138
|
src: J,
|
|
140
139
|
class: "w-[150px]"
|
|
141
|
-
}, null, -1), he = /* @__PURE__ */ o("p", { class: "fm-typo-en-title-sm-800" }, "Create marketing material", -1), _e = /* @__PURE__ */ o("p", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary w-4/6 text-center" }, " Boost your marketing efforts effortlessly with our AI-powered tools. Generate stunning images and captivating captions for your desired platform. ", -1),
|
|
140
|
+
}, null, -1), he = /* @__PURE__ */ o("p", { class: "fm-typo-en-title-sm-800" }, "Create marketing material", -1), _e = /* @__PURE__ */ o("p", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary w-4/6 text-center" }, " Boost your marketing efforts effortlessly with our AI-powered tools. Generate stunning images and captivating captions for your desired platform. ", -1), Oe = /* @__PURE__ */ D({
|
|
142
141
|
__name: "Marketing",
|
|
143
142
|
setup(n) {
|
|
144
143
|
const s = {
|
|
@@ -146,13 +145,13 @@ const ie = /* @__PURE__ */ te(re, [["render", se]]), le = { class: "px-24 flex f
|
|
|
146
145
|
value: "create",
|
|
147
146
|
isPrimary: !0,
|
|
148
147
|
prependIcon: "add"
|
|
149
|
-
}, p = b(!1), _ = S(), k = ae(), { global: P, minor: T } =
|
|
148
|
+
}, p = b(!1), _ = S(), k = ae(), { global: P, minor: T } = q;
|
|
150
149
|
z(async () => {
|
|
151
150
|
await P(async () => {
|
|
152
151
|
await k.read(), await _.readMarketingMaterial();
|
|
153
152
|
});
|
|
154
153
|
});
|
|
155
|
-
const
|
|
154
|
+
const m = $(() => _.marketing.filter(
|
|
156
155
|
(t) => t.name.includes(i.value.searchKey.toLowerCase())
|
|
157
156
|
)), g = b(
|
|
158
157
|
S().defaultMarketing
|
|
@@ -192,7 +191,7 @@ const ie = /* @__PURE__ */ te(re, [["render", se]]), le = { class: "px-24 flex f
|
|
|
192
191
|
}
|
|
193
192
|
];
|
|
194
193
|
async function I(t) {
|
|
195
|
-
await
|
|
194
|
+
await X.remove(`Are you sure you want to remove ${t.name}?`) && await T(
|
|
196
195
|
async () => {
|
|
197
196
|
await N.deleteMarketing(t._id), await _.readMarketingMaterial();
|
|
198
197
|
},
|
|
@@ -214,7 +213,7 @@ const ie = /* @__PURE__ */ te(re, [["render", se]]), le = { class: "px-24 flex f
|
|
|
214
213
|
r(v, {
|
|
215
214
|
title: "Marketing material",
|
|
216
215
|
class: "xs:hidden",
|
|
217
|
-
actions: m
|
|
216
|
+
actions: d(m).length > 0 ? [s] : [],
|
|
218
217
|
"onClick:action": e[0] || (e[0] = () => f())
|
|
219
218
|
}, null, 8, ["actions"]),
|
|
220
219
|
o("div", le, [
|
|
@@ -231,7 +230,7 @@ const ie = /* @__PURE__ */ te(re, [["render", se]]), le = { class: "px-24 flex f
|
|
|
231
230
|
"is-open": p.value,
|
|
232
231
|
"onUpdate:isOpen": e[3] || (e[3] = (a) => p.value = a)
|
|
233
232
|
}, null, 8, ["modelValue", "is-open"]),
|
|
234
|
-
m
|
|
233
|
+
d(m).length > 0 ? (c(), u(C, { key: 0 }, [
|
|
235
234
|
o("div", ce, [
|
|
236
235
|
r(O, {
|
|
237
236
|
modelValue: i.value.searchKey,
|
|
@@ -243,7 +242,7 @@ const ie = /* @__PURE__ */ te(re, [["render", se]]), le = { class: "px-24 flex f
|
|
|
243
242
|
]),
|
|
244
243
|
r(R, {
|
|
245
244
|
class: "xs:hidden",
|
|
246
|
-
"row-data": m
|
|
245
|
+
"row-data": d(m),
|
|
247
246
|
"column-defs": L,
|
|
248
247
|
"search-value": i.value.searchKey,
|
|
249
248
|
"column-filter": [],
|
|
@@ -252,7 +251,7 @@ const ie = /* @__PURE__ */ te(re, [["render", se]]), le = { class: "px-24 flex f
|
|
|
252
251
|
}, null, 8, ["row-data", "search-value"]),
|
|
253
252
|
r(E, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
254
253
|
default: x(() => [
|
|
255
|
-
(c(!0), u(C, null, Y(m
|
|
254
|
+
(c(!0), u(C, null, Y(d(m).filter(
|
|
256
255
|
(a) => a.name.toLowerCase().includes(i.value.searchKey.toLowerCase())
|
|
257
256
|
), (a) => (c(), A(U, {
|
|
258
257
|
key: a._id.toString(),
|
|
@@ -262,9 +261,9 @@ const ie = /* @__PURE__ */ te(re, [["render", se]]), le = { class: "px-24 flex f
|
|
|
262
261
|
default: x(() => {
|
|
263
262
|
var w;
|
|
264
263
|
return [
|
|
265
|
-
o("div",
|
|
266
|
-
o("div",
|
|
267
|
-
o("div", ue, B(a.campaign === null || a.campaign === void 0 ? "-" : (w =
|
|
264
|
+
o("div", de, [
|
|
265
|
+
o("div", me, B(a.name), 1),
|
|
266
|
+
o("div", ue, B(a.campaign === null || a.campaign === void 0 ? "-" : (w = d(k).campaigns.all.find(
|
|
268
267
|
(M) => M._id === a.campaign
|
|
269
268
|
)) == null ? void 0 : w.name), 1)
|
|
270
269
|
]),
|
|
@@ -281,7 +280,7 @@ const ie = /* @__PURE__ */ te(re, [["render", se]]), le = { class: "px-24 flex f
|
|
|
281
280
|
]),
|
|
282
281
|
_: 1
|
|
283
282
|
}),
|
|
284
|
-
m
|
|
283
|
+
d(m).length == 0 ? (c(), u("div", pe, fe)) : H("", !0)
|
|
285
284
|
], 64)) : (c(), A(K, {
|
|
286
285
|
key: 1,
|
|
287
286
|
variant: "outlined",
|
|
@@ -305,5 +304,5 @@ const ie = /* @__PURE__ */ te(re, [["render", se]]), le = { class: "px-24 flex f
|
|
|
305
304
|
}
|
|
306
305
|
});
|
|
307
306
|
export {
|
|
308
|
-
|
|
307
|
+
Oe as default
|
|
309
308
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as f, computed as T, ref as p, watch as k, resolveComponent as i, openBlock as d, createElementBlock as B, Fragment as E, createVNode as _, unref as t, createElementVNode as M, createBlock as A, createCommentVNode as L } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { b as u, R as r } from "./app-B4oDOeXm.js";
|
|
3
3
|
import { useRouter as N } from "vue-router";
|
|
4
|
-
import { m as Y } from "./index-
|
|
4
|
+
import { m as Y } from "./index-Bt_xFt9g.js";
|
|
5
5
|
const w = { class: "px-24 flex flex-col gap-y-16 pb-24" }, V = /* @__PURE__ */ f({
|
|
6
6
|
__name: "Member",
|
|
7
7
|
setup(C) {
|
|
@@ -4,21 +4,20 @@ var at = (F, I, g) => Ot(F, typeof I != "symbol" ? I + "" : I, g);
|
|
|
4
4
|
import { defineComponent as je, computed as te, ref as ue, resolveComponent as U, openBlock as V, createElementBlock as X, Fragment as fe, createElementVNode as p, unref as s, createBlock as ne, createCommentVNode as Te, createVNode as D, renderList as Ce, withCtx as ye, createTextVNode as ut, toDisplayString as J, withDirectives as dt, vShow as mt, onMounted as ft, isRef as Bt, h as ve } from "vue";
|
|
5
5
|
import { h as $ } from "./moment-BWErdI6_.js";
|
|
6
6
|
import { useDialog as Ze, components as Ve } from "@feedmepos/ui-library";
|
|
7
|
-
import { g as Ut, a as pt, c as Yt,
|
|
8
|
-
import { u as Qe, w as jt } from "./xlsx
|
|
9
|
-
import { p as it } from "./
|
|
10
|
-
import { u as et, C as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { F as Kt, a as Gt } from "./index-
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { C as Xe } from "./collection.fn-NFB67-6j.js";
|
|
7
|
+
import { g as Ut, a as pt, c as Yt, b as qt } from "./app-B4oDOeXm.js";
|
|
8
|
+
import { u as Qe, w as jt } from "./xlsx--baqnGDY.js";
|
|
9
|
+
import { p as it, b as st, u as bt } from "./loading-CM3ZyteE.js";
|
|
10
|
+
import { u as et, C as lt, s as zt } from "./membership-D0Z9EBWi.js";
|
|
11
|
+
import { _ as ct } from "./lodash-DYMRs712.js";
|
|
12
|
+
import { F as Kt, a as Gt } from "./index-C7qI5flU.js";
|
|
13
|
+
import { F as Wt } from "./index-DSUUVWFu.js";
|
|
14
|
+
import { C as Xe } from "./collection.fn-C5XN0PPR.js";
|
|
16
15
|
import { defineStore as Ht } from "pinia";
|
|
17
|
-
import { m as ce } from "./index-
|
|
16
|
+
import { m as ce } from "./index-Bt_xFt9g.js";
|
|
18
17
|
import { o as vt } from "./objectId-dwaoBfJX.js";
|
|
19
|
-
import { f as qe } from "./number-
|
|
20
|
-
import { t as Jt } from "./money-
|
|
21
|
-
import { u as Qt, _ as Xt } from "./usePagination-
|
|
18
|
+
import { f as qe } from "./number-CSBV_14_.js";
|
|
19
|
+
import { t as Jt } from "./money-Cyt6uuok.js";
|
|
20
|
+
import { u as Qt, _ as Xt } from "./usePagination-cObe7G1g.js";
|
|
22
21
|
import { g as Zt, a as en, b as tn } from "./user-Bm4KttFq.js";
|
|
23
22
|
import { useRouter as nn } from "vue-router";
|
|
24
23
|
class rn {
|
|
@@ -996,12 +995,12 @@ const an = /* @__PURE__ */ Ut(on), sn = { class: "flex flex-col" }, ln = /* @__P
|
|
|
996
995
|
default: ye(() => {
|
|
997
996
|
var L, c, E, v, x, t;
|
|
998
997
|
return [
|
|
999
|
-
p("div", pn, J(g.action == "send" ? "Send" : "Deduct") + " " + J(s(
|
|
998
|
+
p("div", pn, J(g.action == "send" ? "Send" : "Deduct") + " " + J(s(lt)[g.type.toUpperCase()].name), 1),
|
|
1000
999
|
p("div", bn, [
|
|
1001
1000
|
D(W, {
|
|
1002
1001
|
modelValue: s(w).amount,
|
|
1003
1002
|
"onUpdate:modelValue": C[0] || (C[0] = (e) => s(w).amount = e),
|
|
1004
|
-
label: `${s(
|
|
1003
|
+
label: `${s(lt)[g.type.toUpperCase()].name} amount`,
|
|
1005
1004
|
"is-currency": !0,
|
|
1006
1005
|
"max-fraction-digits": 2,
|
|
1007
1006
|
"helper-state": (L = s(A)) != null && L.amount ? "error" : void 0,
|
|
@@ -1152,7 +1151,7 @@ const an = /* @__PURE__ */ Ut(on), sn = { class: "flex flex-col" }, ln = /* @__P
|
|
|
1152
1151
|
label: "Tier",
|
|
1153
1152
|
getter: (r) => {
|
|
1154
1153
|
var P, T, y, _, k;
|
|
1155
|
-
const o = (((T =
|
|
1154
|
+
const o = (((T = ct.first((P = A.member.collection) == null ? void 0 : P.TIER)) == null ? void 0 : T.balance) || 0) - 1, d = L.value.name, h = ((_ = (y = r.collection) == null ? void 0 : y.POINT) == null ? void 0 : _[0].balance) ?? 0, f = K.sortedTiers[o + 1], O = ((k = f == null ? void 0 : f.option) == null ? void 0 : k.to) ?? 1 / 0;
|
|
1156
1155
|
return `${d} (${h}/${O})`;
|
|
1157
1156
|
}
|
|
1158
1157
|
},
|
|
@@ -1178,7 +1177,7 @@ const an = /* @__PURE__ */ Ut(on), sn = { class: "flex flex-col" }, ln = /* @__P
|
|
|
1178
1177
|
},
|
|
1179
1178
|
{
|
|
1180
1179
|
label: "Total order",
|
|
1181
|
-
getter: (r) =>
|
|
1180
|
+
getter: (r) => st.singularOrPlural(r.stats.visitCount, "bill")
|
|
1182
1181
|
},
|
|
1183
1182
|
{
|
|
1184
1183
|
label: "Last visit",
|
|
@@ -1186,7 +1185,7 @@ const an = /* @__PURE__ */ Ut(on), sn = { class: "flex flex-col" }, ln = /* @__P
|
|
|
1186
1185
|
},
|
|
1187
1186
|
{
|
|
1188
1187
|
label: "Frequency",
|
|
1189
|
-
getter: (r) => `Every ${
|
|
1188
|
+
getter: (r) => `Every ${st.singularOrPlural(Number(Math.ceil(r.stats.avgVisitFrequency).toFixed(0)), "day")}`
|
|
1190
1189
|
},
|
|
1191
1190
|
{
|
|
1192
1191
|
label: "Average spend",
|
|
@@ -1208,7 +1207,7 @@ const an = /* @__PURE__ */ Ut(on), sn = { class: "flex flex-col" }, ln = /* @__P
|
|
|
1208
1207
|
// },
|
|
1209
1208
|
], L = te(() => {
|
|
1210
1209
|
var d, h;
|
|
1211
|
-
const r = (((h =
|
|
1210
|
+
const r = (((h = ct.first((d = A.member.collection) == null ? void 0 : d.TIER)) == null ? void 0 : h.balance) || 0) - 1, o = K.sortedTiers[r];
|
|
1212
1211
|
return { name: (o == null ? void 0 : o.name) || "-", tier: r, config: o };
|
|
1213
1212
|
}), c = te(() => {
|
|
1214
1213
|
var r;
|
|
@@ -1409,7 +1408,7 @@ const an = /* @__PURE__ */ Ut(on), sn = { class: "flex flex-col" }, ln = /* @__P
|
|
|
1409
1408
|
}, 8, ["modelValue"]);
|
|
1410
1409
|
};
|
|
1411
1410
|
}
|
|
1412
|
-
}), cr = { class: "flex items-center justify-end" },
|
|
1411
|
+
}), cr = { class: "flex items-center justify-end" }, Mr = /* @__PURE__ */ je({
|
|
1413
1412
|
__name: "MemberList",
|
|
1414
1413
|
setup(F) {
|
|
1415
1414
|
const I = gt(), g = et(), w = pt(), { minor: K } = bt, S = nn(), G = [
|
|
@@ -1720,5 +1719,5 @@ const an = /* @__PURE__ */ Ut(on), sn = { class: "flex flex-col" }, ln = /* @__P
|
|
|
1720
1719
|
}
|
|
1721
1720
|
});
|
|
1722
1721
|
export {
|
|
1723
|
-
|
|
1722
|
+
Mr as default
|
|
1724
1723
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as m, ref as i, resolveComponent as p, openBlock as t, createElementBlock as _, createVNode as d, unref as e, createBlock as r, createCommentVNode as f } from "vue";
|
|
2
|
-
import { _ as v, a as b } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import {
|
|
4
|
-
const x = { class: "flex flex-col gap-y-32 pb-24" },
|
|
2
|
+
import { _ as v, a as b } from "./StoreTransactions.vue_vue_type_script_setup_true_lang-B2kjcViv.js";
|
|
3
|
+
import { R as k } from "./app-B4oDOeXm.js";
|
|
4
|
+
const x = { class: "flex flex-col gap-y-32 pb-24" }, V = /* @__PURE__ */ m({
|
|
5
5
|
__name: "MemberTransactions",
|
|
6
6
|
setup(C) {
|
|
7
7
|
const l = [
|
|
@@ -34,5 +34,5 @@ const x = { class: "flex flex-col gap-y-32 pb-24" }, F = /* @__PURE__ */ m({
|
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
V as default
|
|
38
38
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as M, shallowRef as R, openBlock as p, createElementBlock as w, normalizeStyle as O, ref as V, resolveComponent as g, createBlock as E, unref as s, isRef as N, withCtx as v, createVNode as h, createElementVNode as x, 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 "./
|
|
3
|
-
import { r as W } from "./index-
|
|
4
|
-
import { _ as Z } from "./app
|
|
5
|
-
import { _ as Q, S as X } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { p as K } from "./loading-CM3ZyteE.js";
|
|
3
|
+
import { r as W } from "./index-CvZ_MhCE.js";
|
|
4
|
+
import { _ as Z } from "./app-B4oDOeXm.js";
|
|
5
|
+
import { _ as Q, S as X } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-BfWuKa1w.js";
|
|
6
6
|
import { c as Y } from "./object-qECH92oz.js";
|
|
7
7
|
const ee = {
|
|
8
8
|
"user.name": {
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { defineComponent as j, ref as I, computed as A, onMounted as D, resolveComponent as r, openBlock as c, createElementBlock as _, Fragment as h, createVNode as i, unref as a, createElementVNode as s, withCtx as w, renderList as E, createBlock as x, resolveDynamicComponent as H, toDisplayString as y, h as m } from "vue";
|
|
2
2
|
import { _ as q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as z, components as C } from "@feedmepos/ui-library";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { g as M, b as V } from "./dto-ChVvY7GG.js";
|
|
4
|
+
import { u as G, a as J, p as Q } from "./loading-CM3ZyteE.js";
|
|
5
|
+
import { a as W } from "./app-B4oDOeXm.js";
|
|
6
|
+
import { u as X } from "./campaign-BWwTQs_d.js";
|
|
7
|
+
import { g as M, b as V } from "./dto-Ktuw3JiD.js";
|
|
9
8
|
import { _ as Y } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as ee } from "./template-
|
|
9
|
+
import { _ as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CNSfNMA_.js";
|
|
10
|
+
import { u as ee } from "./template-Dd9xYS-m.js";
|
|
12
11
|
import { s as oe } from "./index-CuvNtC_M.js";
|
|
13
|
-
import { c as g } from "./index-
|
|
14
|
-
const te = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ne = { class: "space-y-8" }, ie = { class: "flex w-full gap-4 items-center" }, re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, le = { class: "space-y-4" }, ce = { class: "fm-typo-en-body-lg-600" }, me = { 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" },
|
|
12
|
+
import { c as g } from "./index-BZMMIcyM.js";
|
|
13
|
+
const te = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ne = { class: "space-y-8" }, ie = { class: "flex w-full gap-4 items-center" }, re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, le = { class: "space-y-4" }, ce = { class: "fm-typo-en-body-lg-600" }, me = { 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 = /* @__PURE__ */ s("img", {
|
|
15
14
|
src: q,
|
|
16
15
|
class: "aspect-square w-[150px]"
|
|
17
|
-
}, null, -1),
|
|
16
|
+
}, null, -1), pe = /* @__PURE__ */ s("div", { class: "flex flex-col gap-16 text-center" }, [
|
|
18
17
|
/* @__PURE__ */ s("div", { class: "fm-typo-en-title-sm-800" }, "Create your mission program"),
|
|
19
18
|
/* @__PURE__ */ s("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " The mission feature adds a fun element to shopping, encouraging customers to engage more. ")
|
|
20
|
-
], -1),
|
|
19
|
+
], -1), Ie = /* @__PURE__ */ j({
|
|
21
20
|
__name: "Mission",
|
|
22
21
|
setup(fe) {
|
|
23
22
|
const L = {
|
|
@@ -25,7 +24,7 @@ const te = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
25
24
|
value: "create",
|
|
26
25
|
isPrimary: !0,
|
|
27
26
|
prependIcon: "add"
|
|
28
|
-
}, B = ee("MISSION", z()), $ = W(), l = X(), { global: K, minor: b } =
|
|
27
|
+
}, B = ee("MISSION", z()), $ = W(), l = X(), { global: K, minor: b } = G, n = I({
|
|
29
28
|
searchKey: "",
|
|
30
29
|
location: null
|
|
31
30
|
}), d = A(
|
|
@@ -45,7 +44,7 @@ const te = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
45
44
|
{
|
|
46
45
|
content: e.row.original._id,
|
|
47
46
|
onClick: (o) => {
|
|
48
|
-
o.stopPropagation(),
|
|
47
|
+
o.stopPropagation(), J(e.row.original._id);
|
|
49
48
|
}
|
|
50
49
|
},
|
|
51
50
|
[
|
|
@@ -99,7 +98,7 @@ const te = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
99
98
|
}
|
|
100
99
|
], v = I();
|
|
101
100
|
async function S(e) {
|
|
102
|
-
await
|
|
101
|
+
await Q.remove(`Are you sure you want to remove ${e.name}?`) && await b(
|
|
103
102
|
async () => {
|
|
104
103
|
await g.delete(e._id), await l.read("MISSION");
|
|
105
104
|
},
|
|
@@ -110,16 +109,16 @@ const te = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
110
109
|
);
|
|
111
110
|
}
|
|
112
111
|
async function f(e) {
|
|
113
|
-
e ? await o() : B.open(async (
|
|
114
|
-
await o(
|
|
112
|
+
e ? await o() : B.open(async (u) => {
|
|
113
|
+
await o(u);
|
|
115
114
|
});
|
|
116
|
-
async function o(
|
|
117
|
-
var
|
|
118
|
-
(
|
|
115
|
+
async function o(u) {
|
|
116
|
+
var p;
|
|
117
|
+
(p = v.value) == null || p.showSheet(
|
|
119
118
|
!0,
|
|
120
119
|
"MISSION",
|
|
121
120
|
e ? await g.readById(e._id) : void 0,
|
|
122
|
-
|
|
121
|
+
u
|
|
123
122
|
);
|
|
124
123
|
}
|
|
125
124
|
}
|
|
@@ -139,15 +138,15 @@ const te = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
139
138
|
await l.read("MISSION"), console.log(d);
|
|
140
139
|
});
|
|
141
140
|
}), (e, o) => {
|
|
142
|
-
const
|
|
141
|
+
const u = r("FmPageHead"), p = r("FmSearch"), P = r("FmTable"), F = r("FmButton"), T = r("FmListItem"), O = r("FmList"), U = r("FmCard");
|
|
143
142
|
return c(), _(h, null, [
|
|
144
|
-
i(
|
|
143
|
+
i(u, {
|
|
145
144
|
title: "Mission",
|
|
146
145
|
actions: a(d).length > 0 ? [L] : [],
|
|
147
146
|
"onClick:action": o[0] || (o[0] = () => f())
|
|
148
147
|
}, null, 8, ["actions"]),
|
|
149
148
|
s("div", te, [
|
|
150
|
-
i(
|
|
149
|
+
i(p, {
|
|
151
150
|
modelValue: a(n).searchKey,
|
|
152
151
|
"onUpdate:modelValue": o[1] || (o[1] = (t) => a(n).searchKey = t),
|
|
153
152
|
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
@@ -167,7 +166,7 @@ const te = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
167
166
|
items: a($).locationItems
|
|
168
167
|
}, null, 8, ["modelValue", "items"])
|
|
169
168
|
]),
|
|
170
|
-
i(
|
|
169
|
+
i(p, {
|
|
171
170
|
modelValue: a(n).searchKey,
|
|
172
171
|
"onUpdate:modelValue": o[3] || (o[3] = (t) => a(n).searchKey = t),
|
|
173
172
|
class: "xs:hidden",
|
|
@@ -223,8 +222,8 @@ const te = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
223
222
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
224
223
|
}, {
|
|
225
224
|
default: w(() => [
|
|
226
|
-
pe,
|
|
227
225
|
ue,
|
|
226
|
+
pe,
|
|
228
227
|
i(F, {
|
|
229
228
|
variant: "primary",
|
|
230
229
|
label: "Create Mission program",
|
|
@@ -245,5 +244,5 @@ const te = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
245
244
|
}
|
|
246
245
|
});
|
|
247
246
|
export {
|
|
248
|
-
|
|
247
|
+
Ie as default
|
|
249
248
|
};
|