@feedmepos/mf-connect 0.1.38-beta.3 → 0.1.38-beta.31
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-DlzNe_iy.js → Analytic-C_nMR1Be.js} +15 -15
- package/dist/{App-S5t6byxx.js → App-s6O0r91S.js} +624 -618
- package/dist/{AuditLogs-FO7SmMm2.js → AuditLogs-BcVkpvGw.js} +14 -14
- package/dist/{Bin-D--pK-f4.js → Bin-C5g9jHoQ.js} +9 -9
- package/dist/Broadcast-JPTVWDJC.js +233 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C6MYdWnX.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CloO2B7A.js} +6 -6
- package/dist/{Card-DHL6WnwR.js → Card-Dgj6yukn.js} +143 -137
- package/dist/{Collections-DnonNjPT.js → Collections-D-aFYRCq.js} +82 -76
- package/dist/Credit-BZcRB9Wj.js +228 -0
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js → DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DnPPICf0.js +3117 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-C4zzEOCb.js → EffectSheet.vue_vue_type_style_index_0_lang-DbSiVLaJ.js} +100 -99
- package/dist/Experience-DHQPxVv3.js +229 -0
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
- package/dist/{Game-Bkl0JnBq.js → Game-C1XnMgil.js} +103 -97
- package/dist/Grab-BbHccgZO.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js} +8 -8
- package/dist/{Index-BXTpF6kN.js → Index-DYZsN2H3.js} +54 -54
- package/dist/{Marketing-kk88gqDC.js → Marketing-DnsPHYpt.js} +7112 -5424
- package/dist/{Member-Cq-orpRf.js → Member-rkdV1fVo.js} +10 -10
- package/dist/{MemberList-B0K6Djc0.js → MemberList-QaB13bxO.js} +33 -33
- package/dist/{MemberTransactions-BCrJz8M9.js → MemberTransactions-Dw5qHQVW.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BcGhTM5H.js → MessageInput.vue_vue_type_script_setup_true_lang-DGyv0LMu.js} +5789 -5515
- package/dist/{Mission-BF1Z-Veq.js → Mission-B7rAzf6O.js} +112 -106
- package/dist/{Overview-CLSBBnZz.js → Overview-Cg4Szz05.js} +21 -21
- package/dist/Point-DuKS8-0D.js +232 -0
- package/dist/{Promotion-CGwxt3l3.js → Promotion-CFtLq-LB.js} +11 -11
- package/dist/{Queue-Dihw6DCV.js → Queue-BZONVNCP.js} +13 -13
- package/dist/{Record-ChSb722p.js → Record-jNEahJNC.js} +10 -10
- package/dist/{Reward-8oKlHA-x.js → Reward-VS6C6NQO.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-D--YGFcF.js → RewardGroup.vue_vue_type_script_setup_true_lang-D4KMGgkv.js} +11 -11
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Cb-WJA0i.js +1763 -0
- package/dist/{Segment-BbYgbJ7w.js → Segment-DK5tqeOF.js} +274 -274
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Dy_G8md1.js → SelectItems.vue_vue_type_script_setup_true_lang-AYAwO37B.js} +14 -14
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BFhY3cve.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-K8js6fbo.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-WEiXy4o1.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-lcPHPa4K.js} +3 -3
- package/dist/{Setting-B75a5DWV.js → Setting-BtiUlWRc.js} +459 -444
- package/dist/{Store-Cb8Et93b.js → Store-DqFW5hr_.js} +472 -465
- package/dist/{StoreRewards-DEI9VJHO.js → StoreRewards-g-3WtxwG.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BGBl4Zla.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DNT4PWgl.js} +208 -222
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-92NnMkro.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CXYnNSta.js} +1 -1
- package/dist/{Tier-BB4AyAZV.js → Tier-SHij9zKX.js} +230 -227
- package/dist/{Title-Cla1U1ye.js → Title-_2JVV1rW.js} +142 -139
- package/dist/{Transaction-fHFbemk-.js → Transaction-BHLb6hZN.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-yS5qh7za.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DolBmHzN.js} +6 -6
- package/dist/{Voucher-CraCvVuq.js → Voucher-CJk8ZuCA.js} +14 -14
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DqKT6Fep.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BviU3rz6.js} +86 -86
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B14K5zel.js → ZodTextField.vue_vue_type_script_setup_true_lang-R4Xcn7gl.js} +1 -1
- package/dist/app-BpcIC6Ud.js +57962 -0
- package/dist/{app-B8hYhD6p.js → app-D9ygZVP0.js} +678 -597
- package/dist/app.js +1 -1
- package/dist/{business-CwtLYoAT.js → business-CzJxdKc-.js} +11 -8
- package/dist/{campaign-BwM5SLyy.js → campaign-RKjwSpJk.js} +29 -16
- package/dist/{campaign-Bea47E3G.js → campaign-s_7F9I6R.js} +29 -25
- package/dist/{campaign.enum-v4z9v1aa.js → campaign.enum-BlGYJ6p4.js} +3 -2
- package/dist/{campaign.fn-CV5s8XUt.js → campaign.fn-aH0pz1jU.js} +95 -95
- package/dist/{collectible.enum-BGt9xa0D.js → collectible.enum-DYV8J5Mg.js} +1 -1
- package/dist/{collection.fn-DFzVxsA9.js → collection.fn-lLG_rLyd.js} +2 -2
- package/dist/dto-Cx-z2h2_.js +222 -0
- package/dist/{effect-DQtWLIrF.js → effect-DV2GiHqM.js} +1 -1
- package/dist/{email-addresses-I8wDL9bh.js → email-addresses-DTfbKDsC.js} +1 -1
- package/dist/{export-BauRZnqp.js → export-hHjutAC3.js} +4 -4
- package/dist/{helper-B2Q1CLCG.js → helper-oy_DH4P5.js} +1 -1
- package/dist/{index-CCJqmSob.js → index-8t9y1bUZ.js} +1 -1
- package/dist/{index-B20y17xe.js → index-B1C5UjP5.js} +3 -3
- package/dist/{index-DQpw4Va-.js → index-B79nkieV.js} +1452 -1452
- package/dist/{index-DGuR3NRj.js → index-BA6oC2L9.js} +3 -3
- package/dist/{index-BdizAaMz.js → index-Ba05Naif.js} +16 -16
- package/dist/{index-B1Bdn9rV.js → index-BoRTW-dI.js} +196 -16
- package/dist/{index-CgYAHnlX.js → index-CUGS4y58.js} +861 -714
- package/dist/{index-IXY9hkrD.js → index-CV_3mltA.js} +1 -1
- package/dist/{index-DtfWwcp4.js → index-ClgsfK3Y.js} +1 -1
- package/dist/{index-dK8fMQ5h.js → index-CtxtD8HE.js} +1 -1
- package/dist/{index-aguYFa7D.js → index-CycW9ri6.js} +6347 -6305
- package/dist/{index-s1IB44jY.js → index-D8JDdV2w.js} +1 -1
- package/dist/{index-Bv3aqvRF.js → index-DJlZYwDo.js} +11 -4
- package/dist/{index-yOFbPJEE.js → index-sSxaqeIi.js} +1 -1
- package/dist/{index.esm2017-VwpfHNpU.js → index.esm2017-B3-oEraK.js} +34 -34
- package/dist/{loading-BFKvxqlx.js → loading-D98ofaCB.js} +1 -1
- package/dist/{membership-Cgzqg1Vw.js → membership-CwbI7ZrE.js} +3 -3
- package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
- package/dist/{money-DIh7Uegf.js → money-D5cHxcPB.js} +1 -1
- package/dist/{number-onslf0BL.js → number-CPEEKMZZ.js} +1 -1
- package/dist/objectid-Be_atBnH.js +145 -0
- package/dist/{plugins-hfoXoiK2.js → plugins-B55BRo5q.js} +2 -2
- package/dist/{reward-CYC7hCgM.js → reward-xrTcTYjt.js} +1 -1
- package/dist/rule-builder-NTDBB2kj.js +93 -0
- package/dist/{rule-C_M3oFLI.js → rule-w89XmfIg.js} +4 -4
- package/dist/style.css +1 -1
- package/dist/{template-C6URy7QF.js → template-Bt_auQZW.js} +5 -5
- package/dist/timezone-BcBn2Kb_.js +1151 -0
- package/dist/{trigger-CZAiHFT5.js → trigger-D_6mNiva.js} +4 -4
- package/dist/usePagination-Ds-cuHop.js +223 -0
- package/dist/{user-uo2wREaB.js → user-B6YOJ_7r.js} +1 -1
- package/dist/{vue-i18n-Ba5EWUgR.js → vue-i18n-QvFKKqSt.js} +418 -418
- package/dist/{xlsx-CIJPKm4G.js → xlsx-Dr9Ctrs4.js} +1 -1
- package/package.json +6 -5
- package/dist/Broadcast-BYL3w06w.js +0 -227
- package/dist/Credit-BMeykOe-.js +0 -222
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D6Ps8njr.js +0 -2185
- package/dist/Experience-Lu8sCso6.js +0 -223
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
- package/dist/Point-BZ2Bgfw8.js +0 -226
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-GSqXPvRs.js +0 -1728
- package/dist/app-BVCw28s0.js +0 -33357
- package/dist/dto-BgJqr4qT.js +0 -214
- package/dist/objectid-vtlpVGBH.js +0 -145
- package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
- package/dist/rule-builder-BOG14MYK.js +0 -89
- package/dist/usePagination-BeF5K3M7.js +0 -223
|
@@ -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-B55BRo5q.js";
|
|
5
|
+
import { u as ee } from "./loading-D98ofaCB.js";
|
|
6
|
+
import { u as te } from "./business-CzJxdKc-.js";
|
|
7
|
+
import { u as oe } from "./campaign-s_7F9I6R.js";
|
|
8
|
+
import { a as $, b as R, g as ae } from "./campaign-RKjwSpJk.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-DnPPICf0.js";
|
|
11
|
+
import { u as ie } from "./template-Bt_auQZW.js";
|
|
12
|
+
import { u as re } from "./vue-i18n-QvFKKqSt.js";
|
|
13
|
+
import { _ as le } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-K8js6fbo.js";
|
|
14
|
+
import { c as x } from "./index-sSxaqeIi.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
|
};
|