@feedmepos/mf-connect 0.1.38-beta.52 → 0.1.38-beta.53
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/package.json +2 -2
- package/dist/Analytic-BU1mOMoX.js +0 -760
- package/dist/App-fw6iFNxW.js +0 -4638
- package/dist/AuditLogs-CliU8167.js +0 -1887
- package/dist/Bin-C49tzfas.js +0 -166
- package/dist/Broadcast-YZVnZTCD.js +0 -232
- package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DEwsZags.js +0 -122
- package/dist/Card-DcQQyJl9.js +0 -911
- package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +0 -97
- package/dist/Collections--8lmoXWR.js +0 -540
- package/dist/Credit-CfkLFMei.js +0 -227
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +0 -128
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-t6eac8yR.js +0 -3151
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CXVOuiLI.js +0 -347
- package/dist/Experience-BnVVC2-L.js +0 -228
- package/dist/FileSaver.min-NlMItPOc.js +0 -74
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
- package/dist/Game-Dbz4DzY_.js +0 -297
- package/dist/Grab-CCqScmpp.js +0 -300
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-C5irH9v6.js +0 -145
- package/dist/Index-DPsM9D4W.js +0 -259
- package/dist/JsonViewer-v8_C7l5N.js +0 -87
- package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js +0 -18737
- package/dist/MainLayout-B1aJoR95.js +0 -41
- package/dist/Marketing-CFwxWdJq.js +0 -21761
- package/dist/Member-ZPKbf5Bk.js +0 -281
- package/dist/MemberList-BDs-70nG.js +0 -1607
- package/dist/MemberOverview-wL_ailso.js +0 -58
- package/dist/MemberTransactions-C-zHpuZF.js +0 -45
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-B2TKmOOK.js +0 -60616
- package/dist/Mission-BHkb1E9m.js +0 -301
- package/dist/Overview-DYlcqNCX.js +0 -1079
- package/dist/Point-BEhNBY2_.js +0 -231
- package/dist/Promotion-DOXRIej4.js +0 -363
- package/dist/Queue-Bwa0LWhf.js +0 -260
- package/dist/Record-BoI8l1Qq.js +0 -341
- package/dist/Reward-BVQaqAYM.js +0 -442
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-BC3dEiWi.js +0 -150
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-HpleMvjm.js +0 -1767
- package/dist/Segment-Cmy7nu27.js +0 -882
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-pab6X2DC.js +0 -181
- package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-BqIh8D8O.js +0 -189
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-CESoNd87.js +0 -147
- package/dist/Setting-DN8j_6Xv.js +0 -1993
- package/dist/SettingAdvertisements-qHdiaa6m.js +0 -264
- package/dist/Store-DfhVYCgX.js +0 -1936
- package/dist/StoreRewards-NYucFLJU.js +0 -535
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BGOcOAXR.js +0 -1036
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DRin8Jzw.js +0 -8093
- package/dist/Tier-Dl0aBuJz.js +0 -970
- package/dist/Title-DvO6Mira.js +0 -568
- package/dist/Transaction-ONVl4UZZ.js +0 -39
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-FyE25D8o.js +0 -130
- package/dist/Voucher-BZ1feYh1.js +0 -399
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Lilql8J4.js +0 -421
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-C_ZdCOPI.js +0 -56
- package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-B_RRkjaD.js +0 -42566
- package/dist/app-wDQR6dpb.js +0 -39
- package/dist/app.js +0 -7
- package/dist/business-y5qSMcd-.js +0 -82
- package/dist/campaign-CpzFl8Vr.js +0 -4
- package/dist/campaign-DHgol2Lt.js +0 -219
- package/dist/campaign-Drxe0zPX.js +0 -253
- package/dist/campaign.enum-CwAPVgPe.js +0 -21
- package/dist/campaign.fn-DMx5xsiK.js +0 -776
- package/dist/collectible.enum-Bh4jnUgP.js +0 -19
- package/dist/collection.fn-BpC_YBwG.js +0 -26
- package/dist/dto-DWkf9QOb.js +0 -222
- package/dist/effect-D5ZWGpNS.js +0 -78
- package/dist/email-addresses-DFtVESS8.js +0 -705
- package/dist/export-BtUy3sWU.js +0 -97
- package/dist/feedme.ico +0 -0
- package/dist/helper-DtWMZoWX.js +0 -86
- package/dist/index-7HXC3sH0.js +0 -56
- package/dist/index-BQlhmw75.js +0 -3
- package/dist/index-BdX7CxUg.js +0 -30076
- package/dist/index-BerRe0M3.js +0 -76
- package/dist/index-BrZ3xZzk.js +0 -146
- package/dist/index-CJzBpsBP.js +0 -3412
- package/dist/index-CQiABpeB.js +0 -32456
- package/dist/index-CqIWlGW3.js +0 -38
- package/dist/index-CsaQJMAR.js +0 -66
- package/dist/index-DPCDboPA.js +0 -32
- package/dist/index-DPaH8jaV.js +0 -8884
- package/dist/index-Dkce3JZ_.js +0 -54
- package/dist/index-DrYv_gG4.js +0 -31
- package/dist/index-SfJbKfWl.js +0 -2407
- package/dist/index-vh86FiIQ.js +0 -10
- package/dist/index.esm2017-CbvE5vCC.js +0 -3069
- package/dist/loading-BWGIK17X.js +0 -71
- package/dist/lodash-B5I3zXaY.js +0 -3678
- package/dist/membership-Zy2P6O6X.js +0 -235
- package/dist/moment-D7p2TMB-.js +0 -2583
- package/dist/money-D_fZmBbi.js +0 -15
- package/dist/number-C4DhXkCm.js +0 -12
- package/dist/object-qECH92oz.js +0 -26
- package/dist/objectId-dwaoBfJX.js +0 -7
- package/dist/objectid-C6eRcDzI.js +0 -145
- package/dist/plugins-DDAJav2s.js +0 -1817
- package/dist/reward-Dxjvmy7-.js +0 -36
- package/dist/rule-builder-ZkPWAiTl.js +0 -102
- package/dist/rule-sclqeiyk.js +0 -1951
- package/dist/style.css +0 -4
- package/dist/template-CAs0lkTY.js +0 -188
- package/dist/tier-BJDhpH6X.js +0 -4
- package/dist/tiers/tier=1.png +0 -0
- package/dist/tiers/tier=2.png +0 -0
- package/dist/tiers/tier=3.png +0 -0
- package/dist/tiers/tier=4.png +0 -0
- package/dist/timezone-5t8ki0gE.js +0 -1151
- package/dist/titles/type=diamond.png +0 -0
- package/dist/titles/type=drinks.png +0 -0
- package/dist/titles/type=food.png +0 -0
- package/dist/titles/type=heart.png +0 -0
- package/dist/titles/type=medal.png +0 -0
- package/dist/titles/type=spend.png +0 -0
- package/dist/titles/type=thank-you.png +0 -0
- package/dist/titles/type=thumbs-up.png +0 -0
- package/dist/titles/type=years.png +0 -0
- package/dist/trigger-B2fpKTfg.js +0 -213
- package/dist/tslib.es6-BCqqvLQ_.js +0 -44
- package/dist/type_drinks-D6jnpvwV.js +0 -4
- package/dist/usePagination-Ds-cuHop.js +0 -223
- package/dist/user-ORhbAsqi.js +0 -55
- package/dist/vue-i18n-cyOhW8mW.js +0 -2365
- package/dist/xlsx-4klfjFae.js +0 -15491
- package/dist/zod-BsHmzMQd.js +0 -91
|
@@ -1,129 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/Game-Dbz4DzY_.js
DELETED
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
import { defineComponent as q, ref as b, computed as z, onMounted as W, resolveComponent as c, openBlock as g, createElementBlock as k, Fragment as F, createVNode as s, unref as o, withCtx as w, createElementVNode as n, toDisplayString as u, renderList as J, createBlock as S, resolveDynamicComponent as Q, h as m } from "vue";
|
|
2
|
-
import { _ as X } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { useDialog as Y, components as x } from "@feedmepos/ui-library";
|
|
4
|
-
import { a as Z, p as ee } from "./plugins-DDAJav2s.js";
|
|
5
|
-
import { u as te } from "./loading-BWGIK17X.js";
|
|
6
|
-
import { u as oe } from "./business-y5qSMcd-.js";
|
|
7
|
-
import { u as ae, c as C } from "./campaign-DHgol2Lt.js";
|
|
8
|
-
import { b as E, c as K, a as ne } from "./campaign-Drxe0zPX.js";
|
|
9
|
-
import { _ as se } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
10
|
-
import { _ as ie } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-t6eac8yR.js";
|
|
11
|
-
import { u as re } from "./template-CAs0lkTY.js";
|
|
12
|
-
import { u as le } from "./vue-i18n-cyOhW8mW.js";
|
|
13
|
-
import { _ as ce } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-BqIh8D8O.js";
|
|
14
|
-
const me = { class: "flex items-center" }, de = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ue = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-center justify-between w-full" }, fe = { class: "flex gap-8 overflow-x-auto" }, ge = { class: "space-y-8" }, ye = { class: "flex w-full gap-4 items-center" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, he = { class: "space-y-4" }, we = { class: "fm-typo-en-body-lg-600" }, xe = { 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" }, ve = { class: "flex flex-col gap-16 text-center" }, be = { class: "fm-typo-en-title-sm-800" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Te = /* @__PURE__ */ q({
|
|
15
|
-
__name: "Game",
|
|
16
|
-
setup(Fe) {
|
|
17
|
-
const { t: d } = le(), M = {
|
|
18
|
-
label: d("connect.program.common.actions.create", {
|
|
19
|
-
type: d("connect.program.game.title").toLowerCase()
|
|
20
|
-
}),
|
|
21
|
-
value: "create",
|
|
22
|
-
isPrimary: !0,
|
|
23
|
-
prependIcon: "add"
|
|
24
|
-
}, P = Y(), U = re("GAME", P), y = oe(), p = ae(), { global: G, minor: V } = te, l = b({
|
|
25
|
-
searchKey: "",
|
|
26
|
-
location: []
|
|
27
|
-
});
|
|
28
|
-
function T(e) {
|
|
29
|
-
const t = l.value.location;
|
|
30
|
-
return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((i) => {
|
|
31
|
-
var r;
|
|
32
|
-
return (r = e == null ? void 0 : e.targetLocation) == null ? void 0 : r.includes(i);
|
|
33
|
-
}) : e.targetLocation.includes(t);
|
|
34
|
-
}
|
|
35
|
-
const _ = z(
|
|
36
|
-
() => p.campaigns.token.filter((e) => T(e))
|
|
37
|
-
), I = [
|
|
38
|
-
{
|
|
39
|
-
header: "Program title",
|
|
40
|
-
accessorKey: "name",
|
|
41
|
-
// accessorFn: (v) => v.name,
|
|
42
|
-
cell(e) {
|
|
43
|
-
return m("div", { class: "flex items-center justify-between gap-4" }, [
|
|
44
|
-
m("div", { class: "flex items-center" }, [
|
|
45
|
-
m(
|
|
46
|
-
x.FmTooltip,
|
|
47
|
-
{
|
|
48
|
-
content: e.row.original._id,
|
|
49
|
-
onClick: (t) => {
|
|
50
|
-
t.stopPropagation(), Z(e.row.original._id);
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
[
|
|
54
|
-
m(x.FmIcon, {
|
|
55
|
-
name: "info",
|
|
56
|
-
outline: !0,
|
|
57
|
-
size: "sm"
|
|
58
|
-
})
|
|
59
|
-
]
|
|
60
|
-
)
|
|
61
|
-
]),
|
|
62
|
-
m("div", { class: "flex-1" }, e.row.original.name)
|
|
63
|
-
]);
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
header: "Status",
|
|
68
|
-
accessorFn: (e) => ne(e),
|
|
69
|
-
cell(e) {
|
|
70
|
-
return E(e.row.original);
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
header: "Summary",
|
|
75
|
-
accessorFn: (e) => K(e)
|
|
76
|
-
//v.effect,
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
header: "Token received",
|
|
80
|
-
accessorFn: (e) => {
|
|
81
|
-
var t;
|
|
82
|
-
return ((t = e == null ? void 0 : e.pf_collectible) == null ? void 0 : t.currentReceive) ?? 0;
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
header: "Actions",
|
|
87
|
-
cell(e) {
|
|
88
|
-
return m("div", { class: "flex items-center gap-8" }, [
|
|
89
|
-
m(x.FmButton, {
|
|
90
|
-
variant: "tertiary",
|
|
91
|
-
icon: "send",
|
|
92
|
-
iconColor: "neutral-gray-400",
|
|
93
|
-
onClick: (t) => {
|
|
94
|
-
t.stopPropagation(), j(e.row.original);
|
|
95
|
-
}
|
|
96
|
-
}),
|
|
97
|
-
m(x.FmButton, {
|
|
98
|
-
variant: "tertiary",
|
|
99
|
-
icon: "delete",
|
|
100
|
-
iconColor: "neutral-gray-400",
|
|
101
|
-
onClick: (t) => {
|
|
102
|
-
t.stopPropagation(), R(e.row.original);
|
|
103
|
-
}
|
|
104
|
-
})
|
|
105
|
-
]);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
], L = b(), A = b();
|
|
109
|
-
async function R(e) {
|
|
110
|
-
await ee.remove(`Are you sure you want to remove ${e.name}?`) && await V(
|
|
111
|
-
async () => {
|
|
112
|
-
await C.delete(e._id), await p.read("GAME");
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
message: `Removing ${e.name}`,
|
|
116
|
-
successMessage: `Removed ${e.name} successfully`
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
async function h(e) {
|
|
121
|
-
e ? await t() : U.open(async (i) => {
|
|
122
|
-
await t(i);
|
|
123
|
-
});
|
|
124
|
-
async function t(i) {
|
|
125
|
-
var r;
|
|
126
|
-
(r = L.value) == null || r.showSheet(
|
|
127
|
-
!0,
|
|
128
|
-
"GAME",
|
|
129
|
-
e ? await C.readById(e._id) : void 0,
|
|
130
|
-
i
|
|
131
|
-
);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
async function D(e) {
|
|
135
|
-
var t, i, r;
|
|
136
|
-
e.campaign._id && ((r = (i = (t = e.campaign) == null ? void 0 : t.game) == null ? void 0 : i.rewards) != null && r.some(
|
|
137
|
-
(f) => f.type === "VOUCHER"
|
|
138
|
-
)) && await new Promise((f) => {
|
|
139
|
-
P.open({
|
|
140
|
-
title: "Confirmation",
|
|
141
|
-
message: "This will change all future vouchers? Would you like to update previous claimed vouchers expiry date and discount?",
|
|
142
|
-
primaryActions: { text: "Update all", close: !0 },
|
|
143
|
-
secondaryActions: { text: "Update future only", close: !0 }
|
|
144
|
-
}).onPrimary(async () => {
|
|
145
|
-
e.updateCollections = !0, f();
|
|
146
|
-
}).onSecondary(async () => {
|
|
147
|
-
f();
|
|
148
|
-
});
|
|
149
|
-
}), await V(
|
|
150
|
-
async () => {
|
|
151
|
-
e.campaign._id ? await C.update(e.campaign._id, e) : await C.create(e), await p.read("GAME");
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
message: `${e.campaign._id ? "Updating" : "Creating"} game program`,
|
|
155
|
-
successMessage: `Game program ${e.campaign._id ? "updated" : "created"} successfully`
|
|
156
|
-
}
|
|
157
|
-
);
|
|
158
|
-
}
|
|
159
|
-
function j(e) {
|
|
160
|
-
var t;
|
|
161
|
-
(t = A.value) == null || t.showSheet({
|
|
162
|
-
campaign: e
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
return W(async () => {
|
|
166
|
-
await G(async () => {
|
|
167
|
-
await p.read("GAME"), await y.readPremium();
|
|
168
|
-
});
|
|
169
|
-
}), (e, t) => {
|
|
170
|
-
const i = c("FmPill"), r = c("FmPageHead"), v = c("FmSearch"), f = c("FmTable"), B = c("FmButton"), H = c("FmListItem"), N = c("FmList"), O = c("FmCard");
|
|
171
|
-
return g(), k(F, null, [
|
|
172
|
-
s(r, {
|
|
173
|
-
actions: o(_).length > 0 && o(y).isPremium ? [M] : [],
|
|
174
|
-
"onClick:action": t[0] || (t[0] = () => h())
|
|
175
|
-
}, {
|
|
176
|
-
title: w(() => [
|
|
177
|
-
n("div", me, [
|
|
178
|
-
n("span", de, u(o(d)("connect.program.game.title")), 1),
|
|
179
|
-
s(i, { variant: "premium" })
|
|
180
|
-
])
|
|
181
|
-
]),
|
|
182
|
-
_: 1
|
|
183
|
-
}, 8, ["actions"]),
|
|
184
|
-
n("div", ue, [
|
|
185
|
-
s(v, {
|
|
186
|
-
modelValue: o(l).searchKey,
|
|
187
|
-
"onUpdate:modelValue": t[1] || (t[1] = (a) => o(l).searchKey = a),
|
|
188
|
-
class: "hidden xs:!block border-b-2 border-fm-color-neutral-gray-100",
|
|
189
|
-
placeholder: "search",
|
|
190
|
-
collapsible: ""
|
|
191
|
-
}, null, 8, ["modelValue"]),
|
|
192
|
-
o(p).campaigns.token && o(p).campaigns.token.length > 0 ? (g(), k(F, { key: 0 }, [
|
|
193
|
-
n("div", pe, [
|
|
194
|
-
n("div", fe, [
|
|
195
|
-
s(se, {
|
|
196
|
-
label: `${o(d)("connect.common.location")}: `,
|
|
197
|
-
"right-icon": "keyboard_arrow_down",
|
|
198
|
-
modelValue: o(l).location,
|
|
199
|
-
"onUpdate:modelValue": t[2] || (t[2] = (a) => o(l).location = a),
|
|
200
|
-
icon: "storefront",
|
|
201
|
-
"show-item-label": !0,
|
|
202
|
-
items: o(y).locationOptions
|
|
203
|
-
}, null, 8, ["label", "modelValue", "items"])
|
|
204
|
-
]),
|
|
205
|
-
s(v, {
|
|
206
|
-
modelValue: o(l).searchKey,
|
|
207
|
-
"onUpdate:modelValue": t[3] || (t[3] = (a) => o(l).searchKey = a),
|
|
208
|
-
class: "xs:hidden",
|
|
209
|
-
placeholder: "search",
|
|
210
|
-
collapsible: ""
|
|
211
|
-
}, null, 8, ["modelValue"])
|
|
212
|
-
]),
|
|
213
|
-
s(f, {
|
|
214
|
-
class: "xs:hidden",
|
|
215
|
-
"row-data": o(_),
|
|
216
|
-
"column-defs": I,
|
|
217
|
-
"search-value": o(l).searchKey,
|
|
218
|
-
"column-filter": [],
|
|
219
|
-
onRowClick: t[4] || (t[4] = (a) => h(a.original)),
|
|
220
|
-
"hide-footer": o(_).length < 10
|
|
221
|
-
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
222
|
-
s(N, { class: "hidden xs:!flex flex-col mx-[-24px]" }, {
|
|
223
|
-
default: w(() => [
|
|
224
|
-
(g(!0), k(F, null, J(o(_).filter(
|
|
225
|
-
(a) => a.name.toLowerCase().includes(o(l).searchKey.toLowerCase())
|
|
226
|
-
), (a) => (g(), S(H, {
|
|
227
|
-
key: a._id.toString(),
|
|
228
|
-
onClick: ($) => h(a),
|
|
229
|
-
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
230
|
-
}, {
|
|
231
|
-
default: w(() => [
|
|
232
|
-
n("div", ge, [
|
|
233
|
-
n("div", ye, [
|
|
234
|
-
(g(), S(Q(o(E)(a)))),
|
|
235
|
-
n("div", _e, u(a.currentReceive ?? 0) + " used ", 1)
|
|
236
|
-
]),
|
|
237
|
-
n("div", he, [
|
|
238
|
-
n("div", we, u(a.name), 1),
|
|
239
|
-
n("div", xe, u(o(K)(a)), 1)
|
|
240
|
-
]),
|
|
241
|
-
n("div", Ce, u(o(d)("connect.program.game.token_received", {
|
|
242
|
-
count: a.currentReceive ?? 0
|
|
243
|
-
})), 1)
|
|
244
|
-
]),
|
|
245
|
-
s(B, {
|
|
246
|
-
icon: "delete",
|
|
247
|
-
"icon-color": "neutral-gray-400",
|
|
248
|
-
variant: "tertiary",
|
|
249
|
-
onClick: ($) => ($.stopPropagation(), R(a))
|
|
250
|
-
}, null, 8, ["onClick"])
|
|
251
|
-
]),
|
|
252
|
-
_: 2
|
|
253
|
-
}, 1032, ["onClick"]))), 128))
|
|
254
|
-
]),
|
|
255
|
-
_: 1
|
|
256
|
-
})
|
|
257
|
-
], 64)) : (g(), S(O, {
|
|
258
|
-
key: 1,
|
|
259
|
-
variant: "outlined",
|
|
260
|
-
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
261
|
-
}, {
|
|
262
|
-
default: w(() => [
|
|
263
|
-
t[6] || (t[6] = n("img", {
|
|
264
|
-
src: X,
|
|
265
|
-
class: "aspect-square w-[150px]"
|
|
266
|
-
}, null, -1)),
|
|
267
|
-
n("div", ve, [
|
|
268
|
-
n("div", be, u(o(d)("connect.program.game.empty_state.title")), 1),
|
|
269
|
-
n("div", ke, u(o(d)("connect.program.game.empty_state.description")), 1)
|
|
270
|
-
]),
|
|
271
|
-
s(B, {
|
|
272
|
-
variant: "primary",
|
|
273
|
-
label: "Create game program",
|
|
274
|
-
icon: "add",
|
|
275
|
-
disabled: !o(y).isPremium,
|
|
276
|
-
onClick: t[5] || (t[5] = (a) => h())
|
|
277
|
-
}, null, 8, ["disabled"])
|
|
278
|
-
]),
|
|
279
|
-
_: 1
|
|
280
|
-
})),
|
|
281
|
-
s(ie, {
|
|
282
|
-
ref_key: "sheetRef",
|
|
283
|
-
ref: L,
|
|
284
|
-
"onSubmit:modelValue": D
|
|
285
|
-
}, null, 512),
|
|
286
|
-
s(ce, {
|
|
287
|
-
ref_key: "sendCollectionSheetRef",
|
|
288
|
-
ref: A
|
|
289
|
-
}, null, 512)
|
|
290
|
-
])
|
|
291
|
-
], 64);
|
|
292
|
-
};
|
|
293
|
-
}
|
|
294
|
-
});
|
|
295
|
-
export {
|
|
296
|
-
Te as default
|
|
297
|
-
};
|