@feedmepos/mf-connect 0.1.38-beta.26 → 0.1.38-beta.27
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-GI7aYtUb.js → Analytic-Dgpp4zkU.js} +13 -13
- package/dist/{App-BoklLgkw.js → App-DNRzPvQb.js} +7 -7
- package/dist/{AuditLogs-DGAmSC_0.js → AuditLogs-BhG5wShL.js} +10 -10
- package/dist/{Bin-BiF3wXhU.js → Bin-BSmAVdOX.js} +8 -8
- package/dist/Broadcast-DZ-qedno.js +233 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BIGwoDq9.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BS5HDnfb.js} +6 -6
- package/dist/{Card-Bzm_iM7j.js → Card-CLTczC6l.js} +16 -16
- package/dist/{Collections-CZEDKF0v.js → Collections-CZIk5DSy.js} +6 -6
- package/dist/Credit-DGGU3d68.js +228 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Cz4ydsOk.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-FxEXBhTK.js} +32 -32
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-d67tWKfX.js → EffectSheet.vue_vue_type_style_index_0_lang-Bx_7FAYn.js} +6 -6
- package/dist/Experience-Dd0Xkp_z.js +229 -0
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
- package/dist/{Game-ooDjLDzG.js → Game-N6iQZPqM.js} +103 -97
- package/dist/{Grab-CHmDWK3s.js → Grab-Dn8pP3Vy.js} +10 -10
- package/dist/{Index-C9yMbuO8.js → Index-Do0nSsYj.js} +10 -10
- package/dist/{Marketing-BvgC-F4p.js → Marketing-BG8L2AVq.js} +6 -6
- package/dist/{Member-DP0Cm8yE.js → Member-HQWOfz1g.js} +10 -10
- package/dist/{MemberList-BYZ2NfAg.js → MemberList-jfgCK6k3.js} +25 -25
- package/dist/{MemberTransactions-DvG4SU0m.js → MemberTransactions-DYOBM90W.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-C3-IpjMr.js → MessageInput.vue_vue_type_script_setup_true_lang-DdaqUEEb.js} +7 -7
- package/dist/{Mission-CBOIiAhx.js → Mission-CkXM1dNO.js} +112 -106
- package/dist/{Overview-BqKRh6LC.js → Overview-BJWncUrN.js} +18 -18
- package/dist/Point-CfuVogKH.js +232 -0
- package/dist/{Promotion-D4HBy-As.js → Promotion-TtgchqMU.js} +11 -11
- package/dist/{Queue-BqzI56Vp.js → Queue-xaCqQVUP.js} +11 -11
- package/dist/{Record-WtLmMgjU.js → Record-D6z_Pywk.js} +8 -8
- package/dist/{Reward-yfsdyC-T.js → Reward-DBzn5tRP.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DaB5piDf.js → RewardGroup.vue_vue_type_script_setup_true_lang-CRv8xHpU.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DCKbSowE.js → RuleGroup.vue_vue_type_script_setup_true_lang-Bd8pXLRT.js} +13 -13
- package/dist/{Segment-hOxwXwqZ.js → Segment-gxBRnKo7.js} +22 -22
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-IfFZG5uK.js → SelectItems.vue_vue_type_script_setup_true_lang-DbC6xTWH.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-C9FaS4EF.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BAraQhKS.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CNd_-RAr.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CFnFyNya.js} +3 -3
- package/dist/{Setting-B7XBouh4.js → Setting-DX7hLnTQ.js} +11 -11
- package/dist/{Store-Dbg7gN9h.js → Store-C3GZXKuC.js} +19 -19
- package/dist/{StoreRewards-DoBjQyns.js → StoreRewards-CCWDGKLp.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-C3_usDfP.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DNgDoMR9.js} +21 -21
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C5BP2K1C.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DQmZE9_V.js} +1 -1
- package/dist/{Tier-Q9hjmprx.js → Tier-DbWQM6De.js} +20 -20
- package/dist/{Title-9h42ZNEa.js → Title-a2bTIZi0.js} +19 -19
- package/dist/{Transaction-B_NIJcmb.js → Transaction-f8XwfBob.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-EZ42L0jN.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DUQ0fU5s.js} +6 -6
- package/dist/{Voucher-OjdoUYOe.js → Voucher-C7Dfsqk6.js} +14 -14
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CgUFty-i.js → VoucherEditor.vue_vue_type_script_setup_true_lang-C5fm0K4i.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-D9V2WsTX.js → ZodTextField.vue_vue_type_script_setup_true_lang-A-h4HUTJ.js} +1 -1
- package/dist/{app-A-A8AXY4.js → app-BOG1dC8a.js} +32 -32
- package/dist/{app-psmMhnbB.js → app-jGPh064M.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-BkIoeq-Q.js → business--P6e14wH.js} +11 -8
- package/dist/{campaign-C0gfY75c.js → campaign-CR_hUukZ.js} +9 -9
- package/dist/{campaign-CERB2jjK.js → campaign-C_gQlNNb.js} +2 -2
- package/dist/{campaign.enum-jpIcwh1C.js → campaign.enum-Dj5o3Gnx.js} +1 -1
- package/dist/{campaign.fn-C3JAU897.js → campaign.fn-DQZ0W-EB.js} +3 -3
- package/dist/{collectible.enum-PLiXkPXk.js → collectible.enum-DQgguzyG.js} +1 -1
- package/dist/{collection.fn-BEgw5oag.js → collection.fn-1jzRWzrr.js} +2 -2
- package/dist/{dto-CzjctCKL.js → dto-C3jWvc1e.js} +4 -4
- package/dist/{effect-BzkBC2cZ.js → effect-dA2mpaCE.js} +1 -1
- package/dist/{email-addresses-BWQOZIxj.js → email-addresses-37_SE2AF.js} +1 -1
- package/dist/{export-Bqt9zope.js → export-Cn7Elq59.js} +3 -3
- package/dist/{helper-CnEOKaJw.js → helper-1FmJd7OP.js} +1 -1
- package/dist/{index-BMLcVoj2.js → index-B4j34swO.js} +1 -1
- package/dist/{index-DBN0XD-h.js → index-B9iL1w4-.js} +3 -3
- package/dist/{index-DFqn9RQx.js → index-BRALrcjU.js} +3 -3
- package/dist/{index-66ugkTKw.js → index-BcEhSpSd.js} +1 -1
- package/dist/{index-BD7Rc0qN.js → index-Bv04ElXo.js} +6 -6
- package/dist/{index-Cs3ZFd92.js → index-BwBDTG0U.js} +4 -4
- package/dist/{index-DnJuxEaY.js → index-C0TBodx0.js} +1 -1
- package/dist/{index-DfOMpXlE.js → index-C0uZD6Fb.js} +1 -1
- package/dist/{index-DEezTfBN.js → index-CCzzmRaK.js} +3 -3
- package/dist/{index-CeDl4txs.js → index-Cq9x3KEB.js} +1 -1
- package/dist/{index-DZLqscW5.js → index-DIup5B2H.js} +1 -1
- package/dist/{index-yOIVmjex.js → index-Da1osm0C.js} +1 -1
- package/dist/{index-D5aQKEmO.js → index-Oly5lYMA.js} +1 -1
- package/dist/{index-DIN-0kYC.js → index-YhB238q9.js} +2 -2
- package/dist/{index.esm2017-7gQUvseu.js → index.esm2017-pcImat1a.js} +1 -1
- package/dist/{loading-CJIHUxKM.js → loading-BIAeRmZo.js} +1 -1
- package/dist/{membership-DRnWUdOc.js → membership-D74wSltj.js} +3 -3
- package/dist/{money-I2p-gwmi.js → money-DQuZChef.js} +1 -1
- package/dist/{number-DldVO4aW.js → number-DORW-adL.js} +1 -1
- package/dist/{objectid-B_MkqbEB.js → objectid-CPqo6DS_.js} +5 -5
- package/dist/{plugins-D17305Np.js → plugins-BVLU2dc_.js} +2 -2
- package/dist/{reward-3PHDIRXM.js → reward-CsZQy2b1.js} +1 -1
- package/dist/{rule-BgMw4FoF.js → rule-CtYg9lgQ.js} +3 -3
- package/dist/{rule-builder-CmqmCe3P.js → rule-builder-TwHL3OPZ.js} +1 -1
- package/dist/{template-BR9R6E1B.js → template-DlLEQKFu.js} +4 -4
- package/dist/{timezone-CWS-nhUv.js → timezone-DGJqaz8e.js} +1 -1
- package/dist/{trigger-DsYBkR3I.js → trigger-B4JMJKDj.js} +4 -4
- package/dist/{user-B3SLxQOc.js → user-ZU2f1nbT.js} +1 -1
- package/dist/{vue-i18n-CttzNDMl.js → vue-i18n-BtpjMXUM.js} +2 -2
- package/dist/{xlsx-cNTfolRW.js → xlsx-BiJUMUcX.js} +1 -1
- package/package.json +1 -1
- package/dist/Broadcast-D5ypkyn0.js +0 -227
- package/dist/Credit-nieDAS9M.js +0 -222
- package/dist/Experience-CKeWLWIk.js +0 -223
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
- package/dist/Point-14thvTNE.js +0 -226
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { defineComponent as j, ref as i, computed as g, onMounted as B, resolveComponent as r, openBlock as m, createBlock as c, unref as o, withCtx as p, createVNode as v, normalizeClass as f, createCommentVNode as k, createElementVNode as L, toDisplayString as F, isRef as M, createElementBlock as O, Fragment as A, renderList as N } from "vue";
|
|
2
|
+
const z = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, E = /* @__PURE__ */ j({
|
|
3
|
+
__name: "FilterChip",
|
|
4
|
+
props: {
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: Array,
|
|
7
|
+
required: !1
|
|
8
|
+
},
|
|
9
|
+
label: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: !1,
|
|
12
|
+
default: ""
|
|
13
|
+
},
|
|
14
|
+
showItemLabel: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
placement: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: !1,
|
|
21
|
+
default: "bottom-end"
|
|
22
|
+
},
|
|
23
|
+
class: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: !1
|
|
26
|
+
},
|
|
27
|
+
disabled: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
required: !1
|
|
30
|
+
},
|
|
31
|
+
items: {
|
|
32
|
+
type: Array,
|
|
33
|
+
required: !0
|
|
34
|
+
},
|
|
35
|
+
icon: {
|
|
36
|
+
type: String,
|
|
37
|
+
required: !1
|
|
38
|
+
},
|
|
39
|
+
searchable: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
required: !1,
|
|
42
|
+
default: !0
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
emits: ["update:model-value"],
|
|
46
|
+
setup(u, { emit: C }) {
|
|
47
|
+
const t = u, b = C, d = i(!1), l = i({}), s = i(""), V = g(() => {
|
|
48
|
+
const e = Object.keys(l.value).length;
|
|
49
|
+
return !l.value || Object.keys(l.value).length == t.items.length || e === 0 ? "All" : `${e > 0 ? e : "None"} selected`;
|
|
50
|
+
});
|
|
51
|
+
function w(e) {
|
|
52
|
+
l.value[e] ? delete l.value[e] : l.value[e] = !0, b("update:model-value", Object.keys(l.value));
|
|
53
|
+
}
|
|
54
|
+
function _() {
|
|
55
|
+
Object.keys(l.value).length > 0 ? l.value = {} : l.value = t.items.reduce((e, n) => (e[n.value] = !0, e), {}), b("update:model-value", Object.keys(l.value));
|
|
56
|
+
}
|
|
57
|
+
const x = g(() => s.value && s.value.length > 0 ? t.items.filter(
|
|
58
|
+
(e) => e.label.toLowerCase().includes(s.value.trim().toLowerCase())
|
|
59
|
+
) : t.items);
|
|
60
|
+
return B(() => {
|
|
61
|
+
l.value = t.modelValue.reduce(
|
|
62
|
+
(e, n) => (e[n] = !0, e),
|
|
63
|
+
{}
|
|
64
|
+
), t.modelValue.length == 0;
|
|
65
|
+
}), (e, n) => {
|
|
66
|
+
const y = r("FmIcon"), q = r("FmChip"), I = r("FmTextField"), h = r("FmMenuItem"), S = r("FmMenu");
|
|
67
|
+
return m(), c(S, {
|
|
68
|
+
placement: u.placement || "bottom-end",
|
|
69
|
+
disabled: u.disabled == !0,
|
|
70
|
+
"model-value": o(d),
|
|
71
|
+
onMenuChanged: n[1] || (n[1] = (a) => d.value = a),
|
|
72
|
+
"close-on-click": !1
|
|
73
|
+
}, {
|
|
74
|
+
"menu-button": p(() => [
|
|
75
|
+
v(q, {
|
|
76
|
+
label: u.label,
|
|
77
|
+
class: f(t.class || "text-fm-color-neutral-gray-400 cursor-pointer")
|
|
78
|
+
}, {
|
|
79
|
+
default: p(() => [
|
|
80
|
+
t.icon ? (m(), c(y, {
|
|
81
|
+
key: 0,
|
|
82
|
+
name: t.icon,
|
|
83
|
+
class: f(t.class),
|
|
84
|
+
outline: "",
|
|
85
|
+
size: "sm"
|
|
86
|
+
}, null, 8, ["name", "class"])) : k("", !0),
|
|
87
|
+
L("div", z, F(t.label) + " " + F(u.showItemLabel ? o(V) : ""), 1),
|
|
88
|
+
v(y, {
|
|
89
|
+
name: o(d) ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
90
|
+
class: f(t.class),
|
|
91
|
+
outline: "",
|
|
92
|
+
size: "sm"
|
|
93
|
+
}, null, 8, ["name", "class"])
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
}, 8, ["label", "class"])
|
|
97
|
+
]),
|
|
98
|
+
default: p(() => [
|
|
99
|
+
u.searchable ? (m(), c(I, {
|
|
100
|
+
key: 0,
|
|
101
|
+
modelValue: o(s),
|
|
102
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => M(s) ? s.value = a : null),
|
|
103
|
+
placeholder: "Search locations",
|
|
104
|
+
class: "my-8"
|
|
105
|
+
}, null, 8, ["modelValue"])) : k("", !0),
|
|
106
|
+
v(h, {
|
|
107
|
+
"model-value": Object.keys(o(l)).length === t.items.length,
|
|
108
|
+
label: "All",
|
|
109
|
+
"has-checkbox": !0,
|
|
110
|
+
indeterminate: !0,
|
|
111
|
+
onClick: _
|
|
112
|
+
}, null, 8, ["model-value"]),
|
|
113
|
+
(m(!0), O(A, null, N(o(x) ?? [], (a) => (m(), c(h, {
|
|
114
|
+
key: a.value,
|
|
115
|
+
value: a.value,
|
|
116
|
+
label: a.label,
|
|
117
|
+
"has-checkbox": !0,
|
|
118
|
+
"model-value": o(l)[a.value],
|
|
119
|
+
"onUpdate:modelValue": (T) => w(a.value)
|
|
120
|
+
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 8, ["placement", "disabled", "model-value"]);
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
export {
|
|
128
|
+
E as _
|
|
129
|
+
};
|
|
@@ -1,35 +1,41 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { a as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { a as $, b as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { c as x } from "./index-
|
|
15
|
-
const
|
|
1
|
+
import { defineComponent as q, ref as v, computed as z, onMounted as O, resolveComponent as r, openBlock as f, createElementBlock as C, Fragment as b, createVNode as s, unref as o, withCtx as h, createElementVNode as n, toDisplayString as u, renderList as J, createBlock as k, resolveDynamicComponent as Q, h as l } from "vue";
|
|
2
|
+
import { _ as W } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as X, components as w } from "@feedmepos/ui-library";
|
|
4
|
+
import { a as Y, p as Z } from "./plugins-BVLU2dc_.js";
|
|
5
|
+
import { u as ee } from "./loading-BIAeRmZo.js";
|
|
6
|
+
import { u as te } from "./business--P6e14wH.js";
|
|
7
|
+
import { u as oe } from "./campaign-C_gQlNNb.js";
|
|
8
|
+
import { a as $, b as R, g as ae } from "./campaign-CR_hUukZ.js";
|
|
9
|
+
import { _ as ne } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
10
|
+
import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-FxEXBhTK.js";
|
|
11
|
+
import { u as ie } from "./template-DlLEQKFu.js";
|
|
12
|
+
import { u as re } from "./vue-i18n-BtpjMXUM.js";
|
|
13
|
+
import { _ as le } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-BAraQhKS.js";
|
|
14
|
+
import { c as x } from "./index-C0uZD6Fb.js";
|
|
15
|
+
const ce = { class: "flex items-center" }, me = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, de = { class: "px-24 flex flex-col gap-y-16" }, ue = { class: "flex items-center justify-between w-full" }, pe = { class: "flex gap-8 overflow-x-auto" }, fe = { class: "space-y-8" }, ge = { class: "flex w-full gap-4 items-center" }, ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, _e = { class: "space-y-4" }, he = { class: "fm-typo-en-body-lg-600" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ve = { class: "flex flex-col gap-16 text-center" }, Ce = { class: "fm-typo-en-title-sm-800" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Te = /* @__PURE__ */ q({
|
|
16
16
|
__name: "Game",
|
|
17
|
-
setup(
|
|
18
|
-
const { t:
|
|
19
|
-
label:
|
|
20
|
-
type:
|
|
17
|
+
setup(ke) {
|
|
18
|
+
const { t: c } = re(), E = {
|
|
19
|
+
label: c("connect.program.common.actions.create", {
|
|
20
|
+
type: c("connect.program.game.title").toLowerCase()
|
|
21
21
|
}),
|
|
22
22
|
value: "create",
|
|
23
23
|
isPrimary: !0,
|
|
24
24
|
prependIcon: "add"
|
|
25
|
-
}, K =
|
|
25
|
+
}, K = ie("GAME", X()), g = te(), p = oe(), { global: M, minor: F } = ee, i = v({
|
|
26
26
|
searchKey: "",
|
|
27
|
-
location:
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
)
|
|
32
|
-
|
|
27
|
+
location: []
|
|
28
|
+
});
|
|
29
|
+
function G(e) {
|
|
30
|
+
const t = i.value.location;
|
|
31
|
+
return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((m) => {
|
|
32
|
+
var d;
|
|
33
|
+
return (d = e == null ? void 0 : e.targetLocation) == null ? void 0 : d.includes(m);
|
|
34
|
+
}) : e.targetLocation.includes(t);
|
|
35
|
+
}
|
|
36
|
+
const y = z(
|
|
37
|
+
() => p.campaigns.token.filter((e) => G(e))
|
|
38
|
+
), I = [
|
|
33
39
|
{
|
|
34
40
|
header: "Program title",
|
|
35
41
|
accessorKey: "name",
|
|
@@ -42,7 +48,7 @@ const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-60
|
|
|
42
48
|
{
|
|
43
49
|
content: e.row.original._id,
|
|
44
50
|
onClick: (t) => {
|
|
45
|
-
t.stopPropagation(),
|
|
51
|
+
t.stopPropagation(), Y(e.row.original._id);
|
|
46
52
|
}
|
|
47
53
|
},
|
|
48
54
|
[
|
|
@@ -60,14 +66,14 @@ const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-60
|
|
|
60
66
|
},
|
|
61
67
|
{
|
|
62
68
|
header: "Status",
|
|
63
|
-
accessorFn: (e) =>
|
|
69
|
+
accessorFn: (e) => ae(e),
|
|
64
70
|
cell(e) {
|
|
65
71
|
return $(e.row.original);
|
|
66
72
|
}
|
|
67
73
|
},
|
|
68
74
|
{
|
|
69
75
|
header: "Summary",
|
|
70
|
-
accessorFn: (e) =>
|
|
76
|
+
accessorFn: (e) => R(e)
|
|
71
77
|
//v.effect,
|
|
72
78
|
},
|
|
73
79
|
{
|
|
@@ -86,7 +92,7 @@ const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-60
|
|
|
86
92
|
icon: "send",
|
|
87
93
|
iconColor: "neutral-gray-400",
|
|
88
94
|
onClick: (t) => {
|
|
89
|
-
t.stopPropagation(),
|
|
95
|
+
t.stopPropagation(), U(e.row.original);
|
|
90
96
|
}
|
|
91
97
|
}),
|
|
92
98
|
l(w.FmButton, {
|
|
@@ -94,17 +100,17 @@ const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-60
|
|
|
94
100
|
icon: "delete",
|
|
95
101
|
iconColor: "neutral-gray-400",
|
|
96
102
|
onClick: (t) => {
|
|
97
|
-
t.stopPropagation(),
|
|
103
|
+
t.stopPropagation(), P(e.row.original);
|
|
98
104
|
}
|
|
99
105
|
})
|
|
100
106
|
]);
|
|
101
107
|
}
|
|
102
108
|
}
|
|
103
|
-
], S = v(),
|
|
104
|
-
async function
|
|
105
|
-
await
|
|
109
|
+
], S = v(), L = v();
|
|
110
|
+
async function P(e) {
|
|
111
|
+
await Z.remove(`Are you sure you want to remove ${e.name}?`) && await F(
|
|
106
112
|
async () => {
|
|
107
|
-
await x.delete(e._id), await
|
|
113
|
+
await x.delete(e._id), await p.read("GAME");
|
|
108
114
|
},
|
|
109
115
|
{
|
|
110
116
|
message: `Removing ${e.name}`,
|
|
@@ -112,24 +118,24 @@ const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-60
|
|
|
112
118
|
}
|
|
113
119
|
);
|
|
114
120
|
}
|
|
115
|
-
async function
|
|
116
|
-
e ? await t() : K.open(async (
|
|
117
|
-
await t(
|
|
121
|
+
async function _(e) {
|
|
122
|
+
e ? await t() : K.open(async (m) => {
|
|
123
|
+
await t(m);
|
|
118
124
|
});
|
|
119
|
-
async function t(
|
|
120
|
-
var
|
|
121
|
-
(
|
|
125
|
+
async function t(m) {
|
|
126
|
+
var d;
|
|
127
|
+
(d = S.value) == null || d.showSheet(
|
|
122
128
|
!0,
|
|
123
129
|
"GAME",
|
|
124
130
|
e ? await x.readById(e._id) : void 0,
|
|
125
|
-
|
|
131
|
+
m
|
|
126
132
|
);
|
|
127
133
|
}
|
|
128
134
|
}
|
|
129
|
-
async function
|
|
135
|
+
async function T(e) {
|
|
130
136
|
await F(
|
|
131
137
|
async () => {
|
|
132
|
-
e.campaign._id ? await x.update(e.campaign._id, e) : await x.create(e), await
|
|
138
|
+
e.campaign._id ? await x.update(e.campaign._id, e) : await x.create(e), await p.read("GAME");
|
|
133
139
|
},
|
|
134
140
|
{
|
|
135
141
|
message: `${e.campaign._id ? "Updating" : "Creating"} game program`,
|
|
@@ -137,32 +143,32 @@ const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-60
|
|
|
137
143
|
}
|
|
138
144
|
);
|
|
139
145
|
}
|
|
140
|
-
function
|
|
146
|
+
function U(e) {
|
|
141
147
|
var t;
|
|
142
|
-
(t =
|
|
148
|
+
(t = L.value) == null || t.showSheet({
|
|
143
149
|
campaign: e
|
|
144
150
|
});
|
|
145
151
|
}
|
|
146
|
-
return
|
|
152
|
+
return O(async () => {
|
|
147
153
|
await M(async () => {
|
|
148
|
-
await
|
|
154
|
+
await p.read("GAME"), await g.readPremium();
|
|
149
155
|
});
|
|
150
156
|
}), (e, t) => {
|
|
151
|
-
const
|
|
152
|
-
return
|
|
153
|
-
s(
|
|
154
|
-
actions: o(
|
|
155
|
-
"onClick:action": t[0] || (t[0] = () =>
|
|
157
|
+
const m = r("FmPill"), d = r("FmPageHead"), V = r("FmSearch"), j = r("FmTable"), A = r("FmButton"), D = r("FmListItem"), H = r("FmList"), N = r("FmCard");
|
|
158
|
+
return f(), C(b, null, [
|
|
159
|
+
s(d, {
|
|
160
|
+
actions: o(y).length > 0 && o(g).isPremium ? [E] : [],
|
|
161
|
+
"onClick:action": t[0] || (t[0] = () => _())
|
|
156
162
|
}, {
|
|
157
163
|
title: h(() => [
|
|
158
|
-
n("div",
|
|
159
|
-
n("span",
|
|
160
|
-
s(
|
|
164
|
+
n("div", ce, [
|
|
165
|
+
n("span", me, u(o(c)("connect.program.game.title")), 1),
|
|
166
|
+
s(m, { variant: "premium" })
|
|
161
167
|
])
|
|
162
168
|
]),
|
|
163
169
|
_: 1
|
|
164
170
|
}, 8, ["actions"]),
|
|
165
|
-
n("div",
|
|
171
|
+
n("div", de, [
|
|
166
172
|
s(V, {
|
|
167
173
|
modelValue: o(i).searchKey,
|
|
168
174
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => o(i).searchKey = a),
|
|
@@ -170,18 +176,18 @@ const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-60
|
|
|
170
176
|
placeholder: "search",
|
|
171
177
|
collapsible: ""
|
|
172
178
|
}, null, 8, ["modelValue"]),
|
|
173
|
-
o(
|
|
174
|
-
n("div",
|
|
179
|
+
o(p).campaigns.token && o(p).campaigns.token.length > 0 ? (f(), C(b, { key: 0 }, [
|
|
180
|
+
n("div", ue, [
|
|
175
181
|
n("div", pe, [
|
|
176
|
-
s(
|
|
182
|
+
s(ne, {
|
|
183
|
+
label: `${o(c)("connect.common.location")}: `,
|
|
184
|
+
"right-icon": "keyboard_arrow_down",
|
|
177
185
|
modelValue: o(i).location,
|
|
178
186
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => o(i).location = a),
|
|
179
|
-
label: "Location: ",
|
|
180
|
-
"show-item-label": !0,
|
|
181
187
|
icon: "storefront",
|
|
182
|
-
|
|
183
|
-
items: o(
|
|
184
|
-
}, null, 8, ["modelValue", "items"])
|
|
188
|
+
"show-item-label": !0,
|
|
189
|
+
items: o(g).locationOptions
|
|
190
|
+
}, null, 8, ["label", "modelValue", "items"])
|
|
185
191
|
]),
|
|
186
192
|
s(V, {
|
|
187
193
|
modelValue: o(i).searchKey,
|
|
@@ -191,43 +197,43 @@ const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-60
|
|
|
191
197
|
collapsible: ""
|
|
192
198
|
}, null, 8, ["modelValue"])
|
|
193
199
|
]),
|
|
194
|
-
s(
|
|
200
|
+
s(j, {
|
|
195
201
|
class: "xs:hidden",
|
|
196
|
-
"row-data": o(
|
|
197
|
-
"column-defs":
|
|
202
|
+
"row-data": o(y),
|
|
203
|
+
"column-defs": I,
|
|
198
204
|
"search-value": o(i).searchKey,
|
|
199
205
|
"column-filter": [],
|
|
200
|
-
onRowClick: t[4] || (t[4] = (a) =>
|
|
201
|
-
"hide-footer": o(
|
|
206
|
+
onRowClick: t[4] || (t[4] = (a) => _(a.original)),
|
|
207
|
+
"hide-footer": o(y).length < 10
|
|
202
208
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
203
|
-
s(
|
|
209
|
+
s(H, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
204
210
|
default: h(() => [
|
|
205
|
-
(
|
|
211
|
+
(f(!0), C(b, null, J(o(y).filter(
|
|
206
212
|
(a) => a.name.toLowerCase().includes(o(i).searchKey.toLowerCase())
|
|
207
|
-
), (a) => (
|
|
213
|
+
), (a) => (f(), k(D, {
|
|
208
214
|
key: a._id.toString(),
|
|
209
|
-
onClick: (
|
|
215
|
+
onClick: (B) => _(a),
|
|
210
216
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
211
217
|
}, {
|
|
212
218
|
default: h(() => [
|
|
213
|
-
n("div",
|
|
214
|
-
n("div",
|
|
215
|
-
(
|
|
216
|
-
n("div",
|
|
219
|
+
n("div", fe, [
|
|
220
|
+
n("div", ge, [
|
|
221
|
+
(f(), k(Q(o($)(a)))),
|
|
222
|
+
n("div", ye, u(a.currentReceive ?? 0) + " used ", 1)
|
|
217
223
|
]),
|
|
218
|
-
n("div",
|
|
219
|
-
n("div",
|
|
220
|
-
n("div",
|
|
224
|
+
n("div", _e, [
|
|
225
|
+
n("div", he, u(a.name), 1),
|
|
226
|
+
n("div", we, u(o(R)(a)), 1)
|
|
221
227
|
]),
|
|
222
|
-
n("div",
|
|
228
|
+
n("div", xe, u(o(c)("connect.program.game.token_received", {
|
|
223
229
|
count: a.currentReceive ?? 0
|
|
224
230
|
})), 1)
|
|
225
231
|
]),
|
|
226
|
-
s(
|
|
232
|
+
s(A, {
|
|
227
233
|
icon: "delete",
|
|
228
234
|
"icon-color": "neutral-gray-400",
|
|
229
235
|
variant: "tertiary",
|
|
230
|
-
onClick: (
|
|
236
|
+
onClick: (B) => (B.stopPropagation(), P(a))
|
|
231
237
|
}, null, 8, ["onClick"])
|
|
232
238
|
]),
|
|
233
239
|
_: 2
|
|
@@ -235,38 +241,38 @@ const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-60
|
|
|
235
241
|
]),
|
|
236
242
|
_: 1
|
|
237
243
|
})
|
|
238
|
-
], 64)) : (
|
|
244
|
+
], 64)) : (f(), k(N, {
|
|
239
245
|
key: 1,
|
|
240
246
|
variant: "outlined",
|
|
241
247
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
242
248
|
}, {
|
|
243
249
|
default: h(() => [
|
|
244
250
|
t[6] || (t[6] = n("img", {
|
|
245
|
-
src:
|
|
251
|
+
src: W,
|
|
246
252
|
class: "aspect-square w-[150px]"
|
|
247
253
|
}, null, -1)),
|
|
248
|
-
n("div",
|
|
249
|
-
n("div",
|
|
250
|
-
n("div",
|
|
254
|
+
n("div", ve, [
|
|
255
|
+
n("div", Ce, u(o(c)("connect.program.game.empty_state.title")), 1),
|
|
256
|
+
n("div", be, u(o(c)("connect.program.game.empty_state.description")), 1)
|
|
251
257
|
]),
|
|
252
|
-
s(
|
|
258
|
+
s(A, {
|
|
253
259
|
variant: "primary",
|
|
254
260
|
label: "Create game program",
|
|
255
261
|
icon: "add",
|
|
256
|
-
disabled: !o(
|
|
257
|
-
onClick: t[5] || (t[5] = (a) =>
|
|
262
|
+
disabled: !o(g).isPremium,
|
|
263
|
+
onClick: t[5] || (t[5] = (a) => _())
|
|
258
264
|
}, null, 8, ["disabled"])
|
|
259
265
|
]),
|
|
260
266
|
_: 1
|
|
261
267
|
})),
|
|
262
|
-
s(
|
|
268
|
+
s(se, {
|
|
263
269
|
ref_key: "sheetRef",
|
|
264
270
|
ref: S,
|
|
265
|
-
"onSubmit:modelValue":
|
|
271
|
+
"onSubmit:modelValue": T
|
|
266
272
|
}, null, 512),
|
|
267
|
-
s(
|
|
273
|
+
s(le, {
|
|
268
274
|
ref_key: "sendCollectionSheetRef",
|
|
269
|
-
ref:
|
|
275
|
+
ref: L
|
|
270
276
|
}, null, 512)
|
|
271
277
|
])
|
|
272
278
|
], 64);
|
|
@@ -274,5 +280,5 @@ const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-60
|
|
|
274
280
|
}
|
|
275
281
|
});
|
|
276
282
|
export {
|
|
277
|
-
|
|
283
|
+
Te as default
|
|
278
284
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as q, ref as L, computed as z, h as J, onMounted as Q, resolveComponent as u, openBlock as f, createElementBlock as k, Fragment as F, createVNode as l, unref as i, withCtx as x, createElementVNode as m, renderList as W, createBlock as O, resolveDynamicComponent as X, toDisplayString as Y } from "vue";
|
|
2
2
|
import { _ as Z } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as ee, components as te } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as P } from "./plugins-
|
|
5
|
-
import { u as oe } from "./loading-
|
|
6
|
-
import { u as ne } from "./business
|
|
7
|
-
import { u as ae } from "./campaign-
|
|
8
|
-
import { u as re } from "./vue-i18n-
|
|
4
|
+
import { p as P } from "./plugins-BVLU2dc_.js";
|
|
5
|
+
import { u as oe } from "./loading-BIAeRmZo.js";
|
|
6
|
+
import { u as ne } from "./business--P6e14wH.js";
|
|
7
|
+
import { u as ae } from "./campaign-C_gQlNNb.js";
|
|
8
|
+
import { u as re } from "./vue-i18n-BtpjMXUM.js";
|
|
9
9
|
import { h as d } from "./moment-D7p2TMB-.js";
|
|
10
|
-
import { g as se, a as V } from "./campaign-
|
|
11
|
-
import { s as ie, _ as ce } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { u as le } from "./template-
|
|
13
|
-
import { _ as $ } from "./FilterChip.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { c as C } from "./index-
|
|
10
|
+
import { g as se, a as V } from "./campaign-CR_hUukZ.js";
|
|
11
|
+
import { s as ie, _ as ce } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-FxEXBhTK.js";
|
|
12
|
+
import { u as le } from "./template-DlLEQKFu.js";
|
|
13
|
+
import { _ as $ } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
14
|
+
import { c as C } from "./index-C0uZD6Fb.js";
|
|
15
15
|
const me = { class: "px-24 flex flex-col gap-y-16" }, ue = { class: "flex items-center justify-between w-full" }, de = { class: "flex gap-8 overflow-x-auto" }, pe = { class: "space-y-8" }, fe = { class: "flex w-full gap-4 items-center" }, ge = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = /* @__PURE__ */ q({
|
|
16
16
|
__name: "Grab",
|
|
17
17
|
setup(_e) {
|
|
@@ -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 B, 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-BtpjMXUM.js";
|
|
3
|
+
import "./index-B4j34swO.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-BIAeRmZo.js";
|
|
6
|
+
import { f as V, p as X } from "./plugins-BVLU2dc_.js";
|
|
7
|
+
import { u as Y, _ as Z } from "./RewardGroup.vue_vue_type_script_setup_true_lang-CRv8xHpU.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 $ } from "./app-
|
|
9
|
+
import { r as N } from "./index-Cq9x3KEB.js";
|
|
10
|
+
import { u as ae } from "./reward-CsZQy2b1.js";
|
|
11
|
+
import { u as oe } from "./business--P6e14wH.js";
|
|
12
|
+
import { u as te } from "./membership-D74wSltj.js";
|
|
13
|
+
import { R as $ } from "./app-BOG1dC8a.js";
|
|
14
14
|
const re = { class: "space-y-24" }, le = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: /* @__PURE__ */ G([
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ref as pt, reactive as Ai, defineComponent as Ot, mergeModels as Wt, useModel as Nt, onMounted as fe, resolveComponent as dt, openBlock as nt, createBlock as _t, withCtx as yt, createElementVNode as G, createVNode as ht, unref as V, createElementBlock as ft, Fragment as Tt, renderList as At, normalizeClass as Ft, toDisplayString as Pt, Transition as Fi, withDirectives as Et, renderSlot as ei, vShow as Mt, isRef as Bt, computed as St, watch as Yt, resolveDirective as Di, createTextVNode as Te, vModelText as Ue, createCommentVNode as Lt, nextTick as Mi, normalizeStyle as Ut, createStaticVNode as Li, h as Ri } from "vue";
|
|
2
2
|
import { _ as ji } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useSnackbar as de, useDialog as Ii, components as Bi } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as zi } from "./plugins-
|
|
5
|
-
import { u as ii } from "./loading-
|
|
4
|
+
import { p as zi } from "./plugins-BVLU2dc_.js";
|
|
5
|
+
import { u as ii } from "./loading-BIAeRmZo.js";
|
|
6
6
|
import { defineStore as Ui } from "pinia";
|
|
7
|
-
import { F as _e } from "./index-
|
|
7
|
+
import { F as _e } from "./index-BcEhSpSd.js";
|
|
8
8
|
import { useCoreStore as De } from "@feedmepos/mf-common";
|
|
9
|
-
import { g as ne, S as ni, b as Xi, r as Ce } from "./index-
|
|
9
|
+
import { g as ne, S as ni, b as Xi, r as Ce } from "./index-CCzzmRaK.js";
|
|
10
10
|
import { _ as Ni } from "./ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js";
|
|
11
11
|
import { s as ri, c as Zt } from "./index-CsaQJMAR.js";
|
|
12
|
-
import { u as si } from "./campaign-
|
|
12
|
+
import { u as si } from "./campaign-C_gQlNNb.js";
|
|
13
13
|
import { _ as Wi } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
import { h as Vi } from "./moment-D7p2TMB-.js";
|
|
15
|
-
import { u as Yi } from "./vue-i18n-
|
|
15
|
+
import { u as Yi } from "./vue-i18n-BtpjMXUM.js";
|
|
16
16
|
var Hi = { 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", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc" };
|
|
17
17
|
const re = () => {
|
|
18
18
|
const g = ni.getBusinessId();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineComponent as L, ref as F, watch as P, resolveComponent as m, openBlock as x, createElementBlock as h, Fragment as R, createElementVNode as b, createVNode as u, unref as n, withCtx as M, renderList as $, createBlock as D, toDisplayString as O, normalizeClass as U, computed as Y, createCommentVNode as q } from "vue";
|
|
2
|
-
import "./index-
|
|
2
|
+
import "./index-B4j34swO.js";
|
|
3
3
|
import { useDialogChild as H, FmButtonVariant as S, useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as N } from "./vue-i18n-
|
|
5
|
-
import "./index-
|
|
6
|
-
import { c as A } from "./index-
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import { u as g, w as j } from "./xlsx-
|
|
4
|
+
import { u as N } from "./vue-i18n-BtpjMXUM.js";
|
|
5
|
+
import "./index-Bv04ElXo.js";
|
|
6
|
+
import { c as A } from "./index-BwBDTG0U.js";
|
|
7
|
+
import "./index-YhB238q9.js";
|
|
8
|
+
import "./index-BcEhSpSd.js";
|
|
9
|
+
import "./index-B9iL1w4-.js";
|
|
10
|
+
import { u as g, w as j } from "./xlsx-BiJUMUcX.js";
|
|
11
11
|
import { F as z } from "./FileSaver.min-NlMItPOc.js";
|
|
12
12
|
import { useCoreStore as G } from "@feedmepos/mf-common";
|
|
13
13
|
import { useRouter as W } from "vue-router";
|
|
14
|
-
import { m as I } from "./index-
|
|
15
|
-
import { R as E } from "./app-
|
|
14
|
+
import { m as I } from "./index-Oly5lYMA.js";
|
|
15
|
+
import { R as E } from "./app-BOG1dC8a.js";
|
|
16
16
|
const K = { class: "space-y-8 mb-10" }, X = { class: "flex justify-end" }, Z = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: /* @__PURE__ */ U([
|