@feedmepos/mf-connect 0.1.38-beta.6 → 0.1.38-beta.60
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 +13 -5
- package/dist/Analytic-NBx32reB.js +0 -761
- package/dist/App-CaK9PvMd.js +0 -4632
- package/dist/AuditLogs-C-gCCPvF.js +0 -1887
- package/dist/Bin-CL6o1JSs.js +0 -166
- package/dist/Broadcast-B2-itjvZ.js +0 -227
- package/dist/CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BIySMYGP.js +0 -121
- package/dist/Card-DNdEjt6s.js +0 -905
- package/dist/ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js +0 -97
- package/dist/Collections-DepGq6WJ.js +0 -465
- package/dist/Credit-D7K0gFwc.js +0 -222
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +0 -108
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +0 -58
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-HMjbuy2C.js +0 -2185
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-DrbMJlm5.js +0 -347
- package/dist/Experience-FlBX3eyN.js +0 -223
- package/dist/FileSaver.min-NlMItPOc.js +0 -74
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
- package/dist/Game-Cc3D7lKV.js +0 -278
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +0 -144
- package/dist/Index-2wokhhFB.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-D7PXYloN.js +0 -20073
- package/dist/Member-2xV4Izwa.js +0 -279
- package/dist/MemberList-CYgBdyJt.js +0 -1606
- package/dist/MemberOverview-wL_ailso.js +0 -58
- package/dist/MemberTransactions-DWDV01N4.js +0 -45
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Becsw31k.js +0 -60343
- package/dist/Mission-BSGc9822.js +0 -296
- package/dist/Overview-BZjto86d.js +0 -1079
- package/dist/Point-0U4TTdPW.js +0 -226
- package/dist/Promotion-DiUa0GcV.js +0 -289
- package/dist/Queue-D62r2qjy.js +0 -260
- package/dist/Record-0iF3dG7y.js +0 -341
- package/dist/Reward-C5IEJYu6.js +0 -442
- package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-S2Fd0qO8.js +0 -150
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CxlamGFP.js +0 -1751
- package/dist/Segment-BknjBrUP.js +0 -882
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-BLQlkp-j.js +0 -181
- package/dist/SendCollectionSheet.vue_vue_type_script_setup_true_lang-CaPi4hYB.js +0 -188
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-BoZ0ZpNZ.js +0 -147
- package/dist/Setting-RLI7RgmN.js +0 -1936
- package/dist/Store-gxmv8hWJ.js +0 -1842
- package/dist/StoreRewards-C_6gY_Nk.js +0 -423
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B5uzSYM4.js +0 -1029
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-yjI96ZL0.js +0 -139
- package/dist/Tier-B168DtFj.js +0 -888
- package/dist/Title-uH0RI1N3.js +0 -565
- package/dist/Transaction-Bx-pmLrJ.js +0 -39
- package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Ce_55V7l.js +0 -130
- package/dist/Voucher-Dzpz2AEB.js +0 -384
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-dbA6_6b9.js +0 -419
- package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-CfLiUj9f.js +0 -56
- package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-B90wINOO.js +0 -33357
- package/dist/app-DuUxQ1ZP.js +0 -7086
- package/dist/app-wDQR6dpb.js +0 -39
- package/dist/app.js +0 -7
- package/dist/business-B65OtB5B.js +0 -79
- package/dist/campaign-CpzFl8Vr.js +0 -4
- package/dist/campaign-iKI-L84v.js +0 -1810
- package/dist/campaign-qGy6uzrC.js +0 -96
- package/dist/campaign.enum-CZp2DmXI.js +0 -20
- package/dist/campaign.fn-DKScnmjX.js +0 -758
- package/dist/collectible.enum-CN-lnG1m.js +0 -19
- package/dist/collection.fn-mMwGQWce.js +0 -26
- package/dist/dto-C5ri8Nws.js +0 -214
- package/dist/effect-Bg3yb9T6.js +0 -78
- package/dist/email-addresses-CQsN724N.js +0 -705
- package/dist/export-BLf2dhFd.js +0 -97
- package/dist/feedme.ico +0 -0
- package/dist/helper-CFaph16Q.js +0 -71
- package/dist/index-BBPIZjw6.js +0 -31
- package/dist/index-BCGDOgxb.js +0 -38
- package/dist/index-BCPBmANe.js +0 -3120
- package/dist/index-BKOgzVx6.js +0 -32
- package/dist/index-BN2Uyvj4.js +0 -30038
- package/dist/index-BPZtjcTm.js +0 -76
- package/dist/index-BPyac0fq.js +0 -56
- package/dist/index-BkySejFg.js +0 -54
- package/dist/index-CH2d_B8c.js +0 -121
- package/dist/index-CrbnfAk8.js +0 -8861
- package/dist/index-CsaQJMAR.js +0 -66
- package/dist/index-DJwQICyC.js +0 -146
- package/dist/index-DaEQgaiW.js +0 -2213
- package/dist/index-Dkmn0jmX.js +0 -32260
- package/dist/index-Dy5p_b1S.js +0 -3
- package/dist/index-vh86FiIQ.js +0 -10
- package/dist/index.esm2017-B9vJTKYg.js +0 -3069
- package/dist/loading-MEQuW9Xa.js +0 -71
- package/dist/lodash-B5I3zXaY.js +0 -3678
- package/dist/membership-Du79A0Pl.js +0 -235
- package/dist/moment-BWErdI6_.js +0 -2578
- package/dist/money-DXgYs2-R.js +0 -15
- package/dist/number-CBMkNZvH.js +0 -12
- package/dist/object-qECH92oz.js +0 -26
- package/dist/objectId-dwaoBfJX.js +0 -7
- package/dist/objectid-BeZTZYqi.js +0 -145
- package/dist/plugins-KiMuDTPp.js +0 -208
- package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
- package/dist/reward-ClX_lWcQ.js +0 -36
- package/dist/rule-BfidJ75Y.js +0 -1951
- package/dist/rule-builder-BTcZx77a.js +0 -89
- package/dist/style.css +0 -4
- package/dist/template-DPpMK30W.js +0 -190
- 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/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-DLp1bkZP.js +0 -144
- package/dist/tslib.es6-BCqqvLQ_.js +0 -44
- package/dist/type_drinks-D6jnpvwV.js +0 -4
- package/dist/usePagination-BeF5K3M7.js +0 -223
- package/dist/user-Cq9CGBHZ.js +0 -54
- package/dist/vue-i18n-COzqUgQy.js +0 -2365
- package/dist/xlsx-Be4bARvl.js +0 -15491
- package/dist/zod-Bg2FbC-D.js +0 -90
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { defineComponent as V, ref as y, computed as q, onMounted as x, resolveComponent as s, openBlock as r, createBlock as m, unref as u, withCtx as d, createVNode as i, normalizeClass as p, createCommentVNode as j, createElementVNode as I, toDisplayString as h, createElementBlock as M, Fragment as O, renderList as S } from "vue";
|
|
2
|
-
const A = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, N = /* @__PURE__ */ V({
|
|
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
|
-
},
|
|
40
|
-
emits: ["update:model-value"],
|
|
41
|
-
setup(o, { emit: g }) {
|
|
42
|
-
const t = o, v = g, c = y(!1), e = y({}), k = q(() => {
|
|
43
|
-
const l = Object.keys(e.value).length;
|
|
44
|
-
return !e.value || Object.keys(e.value).length == t.items.length || l === 0 ? "All" : `${l > 0 ? l : "None"} selected`;
|
|
45
|
-
});
|
|
46
|
-
function _(l) {
|
|
47
|
-
e.value[l] ? delete e.value[l] : e.value[l] = !0, v("update:model-value", Object.keys(e.value));
|
|
48
|
-
}
|
|
49
|
-
function C() {
|
|
50
|
-
Object.keys(e.value).length > 0 ? e.value = {} : e.value = t.items.reduce((l, n) => (l[n.value] = !0, l), {}), v("update:model-value", Object.keys(e.value));
|
|
51
|
-
}
|
|
52
|
-
return x(() => {
|
|
53
|
-
e.value = t.modelValue.reduce(
|
|
54
|
-
(l, n) => (l[n] = !0, l),
|
|
55
|
-
{}
|
|
56
|
-
), t.modelValue.length == 0;
|
|
57
|
-
}), (l, n) => {
|
|
58
|
-
const b = s("FmIcon"), F = s("FmChip"), f = s("FmMenuItem"), w = s("FmMenu");
|
|
59
|
-
return r(), m(w, {
|
|
60
|
-
placement: o.placement || "bottom-end",
|
|
61
|
-
disabled: o.disabled == !0,
|
|
62
|
-
"model-value": u(c),
|
|
63
|
-
onMenuChanged: n[0] || (n[0] = (a) => c.value = a),
|
|
64
|
-
"close-on-click": !1
|
|
65
|
-
}, {
|
|
66
|
-
"menu-button": d(() => [
|
|
67
|
-
i(F, {
|
|
68
|
-
label: o.label,
|
|
69
|
-
class: p(t.class || "text-fm-color-neutral-gray-400 cursor-pointer")
|
|
70
|
-
}, {
|
|
71
|
-
default: d(() => [
|
|
72
|
-
t.icon ? (r(), m(b, {
|
|
73
|
-
key: 0,
|
|
74
|
-
name: t.icon,
|
|
75
|
-
class: p(t.class),
|
|
76
|
-
outline: "",
|
|
77
|
-
size: "sm"
|
|
78
|
-
}, null, 8, ["name", "class"])) : j("", !0),
|
|
79
|
-
I("div", A, h(t.label) + " " + h(o.showItemLabel ? u(k) : ""), 1),
|
|
80
|
-
i(b, {
|
|
81
|
-
name: u(c) ? "keyboard_arrow_up" : "keyboard_arrow_down",
|
|
82
|
-
class: p(t.class),
|
|
83
|
-
outline: "",
|
|
84
|
-
size: "sm"
|
|
85
|
-
}, null, 8, ["name", "class"])
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
}, 8, ["label", "class"])
|
|
89
|
-
]),
|
|
90
|
-
default: d(() => [
|
|
91
|
-
i(f, {
|
|
92
|
-
"model-value": Object.keys(u(e)).length === t.items.length,
|
|
93
|
-
label: "All",
|
|
94
|
-
"has-checkbox": !0,
|
|
95
|
-
indeterminate: !0,
|
|
96
|
-
onClick: C
|
|
97
|
-
}, null, 8, ["model-value"]),
|
|
98
|
-
(r(!0), M(O, null, S(t.items ?? [], (a) => (r(), m(f, {
|
|
99
|
-
key: a.value,
|
|
100
|
-
value: a.value,
|
|
101
|
-
label: a.label,
|
|
102
|
-
"has-checkbox": !0,
|
|
103
|
-
"model-value": u(e)[a.value],
|
|
104
|
-
"onUpdate:modelValue": (B) => _(a.value)
|
|
105
|
-
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
|
|
106
|
-
]),
|
|
107
|
-
_: 1
|
|
108
|
-
}, 8, ["placement", "disabled", "model-value"]);
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
export {
|
|
113
|
-
N as _
|
|
114
|
-
};
|
package/dist/Game-Cc3D7lKV.js
DELETED
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
import { defineComponent as N, ref as v, computed as q, onMounted as z, resolveComponent as r, openBlock as p, createElementBlock as C, Fragment as b, createVNode as s, unref as o, withCtx as h, createElementVNode as n, toDisplayString as c, renderList as J, createBlock as k, resolveDynamicComponent as O, h as l } from "vue";
|
|
2
|
-
import { _ as Q } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { useDialog as W, components as w } from "@feedmepos/ui-library";
|
|
4
|
-
import { a as X, p as Y } from "./plugins-KiMuDTPp.js";
|
|
5
|
-
import { u as Z } from "./loading-MEQuW9Xa.js";
|
|
6
|
-
import { u as ee } from "./business-B65OtB5B.js";
|
|
7
|
-
import { u as te } from "./campaign-qGy6uzrC.js";
|
|
8
|
-
import { a as $, b as A, g as oe } from "./campaign-iKI-L84v.js";
|
|
9
|
-
import { _ as ae } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as ne } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-HMjbuy2C.js";
|
|
11
|
-
import { u as se } from "./template-DPpMK30W.js";
|
|
12
|
-
import { u as ie } from "./vue-i18n-COzqUgQy.js";
|
|
13
|
-
import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-CaPi4hYB.js";
|
|
14
|
-
import { c as x } from "./index-CH2d_B8c.js";
|
|
15
|
-
const le = { class: "flex items-center" }, ce = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, me = { class: "px-24 flex flex-col gap-y-16" }, de = { class: "flex items-center justify-between w-full" }, pe = { class: "flex gap-8 overflow-x-auto" }, ue = { class: "space-y-8" }, fe = { class: "flex w-full gap-4 items-center" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "space-y-4" }, _e = { class: "fm-typo-en-body-lg-600" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xe = { class: "flex flex-col gap-16 text-center" }, ve = { class: "fm-typo-en-title-sm-800" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ie = /* @__PURE__ */ N({
|
|
16
|
-
__name: "Game",
|
|
17
|
-
setup(be) {
|
|
18
|
-
const { t: m } = ie(), E = {
|
|
19
|
-
label: m("connect.program.common.actions.create", {
|
|
20
|
-
type: m("connect.program.game.title").toLowerCase()
|
|
21
|
-
}),
|
|
22
|
-
value: "create",
|
|
23
|
-
isPrimary: !0,
|
|
24
|
-
prependIcon: "add"
|
|
25
|
-
}, K = se("GAME", W()), f = ee(), d = te(), { global: M, minor: F } = Z, i = v({
|
|
26
|
-
searchKey: "",
|
|
27
|
-
location: null
|
|
28
|
-
}), g = q(
|
|
29
|
-
() => d.campaigns.token.filter(
|
|
30
|
-
(e) => !i.value.location || !e.targetLocation || e.targetLocation.includes(i.value.location)
|
|
31
|
-
)
|
|
32
|
-
), G = [
|
|
33
|
-
{
|
|
34
|
-
header: "Program title",
|
|
35
|
-
accessorKey: "name",
|
|
36
|
-
// accessorFn: (v) => v.name,
|
|
37
|
-
cell(e) {
|
|
38
|
-
return l("div", { class: "flex items-center justify-between gap-4" }, [
|
|
39
|
-
l("div", { class: "flex items-center" }, [
|
|
40
|
-
l(
|
|
41
|
-
w.FmTooltip,
|
|
42
|
-
{
|
|
43
|
-
content: e.row.original._id,
|
|
44
|
-
onClick: (t) => {
|
|
45
|
-
t.stopPropagation(), X(e.row.original._id);
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
[
|
|
49
|
-
l(w.FmIcon, {
|
|
50
|
-
name: "info",
|
|
51
|
-
outline: !0,
|
|
52
|
-
size: "sm"
|
|
53
|
-
})
|
|
54
|
-
]
|
|
55
|
-
)
|
|
56
|
-
]),
|
|
57
|
-
l("div", { class: "flex-1" }, e.row.original.name)
|
|
58
|
-
]);
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
header: "Status",
|
|
63
|
-
accessorFn: (e) => oe(e),
|
|
64
|
-
cell(e) {
|
|
65
|
-
return $(e.row.original);
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
header: "Summary",
|
|
70
|
-
accessorFn: (e) => A(e)
|
|
71
|
-
//v.effect,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
header: "Token received",
|
|
75
|
-
accessorFn: (e) => {
|
|
76
|
-
var t;
|
|
77
|
-
return ((t = e == null ? void 0 : e.pf_collectible) == null ? void 0 : t.currentReceive) ?? 0;
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
header: "Actions",
|
|
82
|
-
cell(e) {
|
|
83
|
-
return l("div", { class: "flex items-center gap-8" }, [
|
|
84
|
-
l(w.FmButton, {
|
|
85
|
-
variant: "tertiary",
|
|
86
|
-
icon: "send",
|
|
87
|
-
iconColor: "neutral-gray-400",
|
|
88
|
-
onClick: (t) => {
|
|
89
|
-
t.stopPropagation(), T(e.row.original);
|
|
90
|
-
}
|
|
91
|
-
}),
|
|
92
|
-
l(w.FmButton, {
|
|
93
|
-
variant: "tertiary",
|
|
94
|
-
icon: "delete",
|
|
95
|
-
iconColor: "neutral-gray-400",
|
|
96
|
-
onClick: (t) => {
|
|
97
|
-
t.stopPropagation(), L(e.row.original);
|
|
98
|
-
}
|
|
99
|
-
})
|
|
100
|
-
]);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
], S = v(), P = v();
|
|
104
|
-
async function L(e) {
|
|
105
|
-
await Y.remove(`Are you sure you want to remove ${e.name}?`) && await F(
|
|
106
|
-
async () => {
|
|
107
|
-
await x.delete(e._id), await d.read("GAME");
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
message: `Removing ${e.name}`,
|
|
111
|
-
successMessage: `Removed ${e.name} successfully`
|
|
112
|
-
}
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
async function y(e) {
|
|
116
|
-
e ? await t() : K.open(async (u) => {
|
|
117
|
-
await t(u);
|
|
118
|
-
});
|
|
119
|
-
async function t(u) {
|
|
120
|
-
var _;
|
|
121
|
-
(_ = S.value) == null || _.showSheet(
|
|
122
|
-
!0,
|
|
123
|
-
"GAME",
|
|
124
|
-
e ? await x.readById(e._id) : void 0,
|
|
125
|
-
u
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
async function I(e) {
|
|
130
|
-
await F(
|
|
131
|
-
async () => {
|
|
132
|
-
e.campaign._id ? await x.update(e.campaign._id, e) : await x.create(e), await d.read("GAME");
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
message: `${e.campaign._id ? "Updating" : "Creating"} game program`,
|
|
136
|
-
successMessage: `Game program ${e.campaign._id ? "updated" : "created"} successfully`
|
|
137
|
-
}
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
function T(e) {
|
|
141
|
-
var t;
|
|
142
|
-
(t = P.value) == null || t.showSheet({
|
|
143
|
-
campaign: e
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
return z(async () => {
|
|
147
|
-
await M(async () => {
|
|
148
|
-
await d.read("GAME"), await f.readPremium();
|
|
149
|
-
});
|
|
150
|
-
}), (e, t) => {
|
|
151
|
-
const u = r("FmPill"), _ = r("FmPageHead"), V = r("FmSearch"), U = r("FmTable"), B = r("FmButton"), j = r("FmListItem"), D = r("FmList"), H = r("FmCard");
|
|
152
|
-
return p(), C(b, null, [
|
|
153
|
-
s(_, {
|
|
154
|
-
actions: o(g).length > 0 && o(f).isPremium ? [E] : [],
|
|
155
|
-
"onClick:action": t[0] || (t[0] = () => y())
|
|
156
|
-
}, {
|
|
157
|
-
title: h(() => [
|
|
158
|
-
n("div", le, [
|
|
159
|
-
n("span", ce, c(o(m)("connect.program.game.title")), 1),
|
|
160
|
-
s(u, { variant: "premium" })
|
|
161
|
-
])
|
|
162
|
-
]),
|
|
163
|
-
_: 1
|
|
164
|
-
}, 8, ["actions"]),
|
|
165
|
-
n("div", me, [
|
|
166
|
-
s(V, {
|
|
167
|
-
modelValue: o(i).searchKey,
|
|
168
|
-
"onUpdate:modelValue": t[1] || (t[1] = (a) => o(i).searchKey = a),
|
|
169
|
-
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
170
|
-
placeholder: "search",
|
|
171
|
-
collapsible: ""
|
|
172
|
-
}, null, 8, ["modelValue"]),
|
|
173
|
-
o(d).campaigns.token && o(d).campaigns.token.length > 0 ? (p(), C(b, { key: 0 }, [
|
|
174
|
-
n("div", de, [
|
|
175
|
-
n("div", pe, [
|
|
176
|
-
s(ae, {
|
|
177
|
-
modelValue: o(i).location,
|
|
178
|
-
"onUpdate:modelValue": t[2] || (t[2] = (a) => o(i).location = a),
|
|
179
|
-
label: "Location: ",
|
|
180
|
-
"show-item-label": !0,
|
|
181
|
-
icon: "storefront",
|
|
182
|
-
placement: "bottom-start",
|
|
183
|
-
items: o(f).locationItems
|
|
184
|
-
}, null, 8, ["modelValue", "items"])
|
|
185
|
-
]),
|
|
186
|
-
s(V, {
|
|
187
|
-
modelValue: o(i).searchKey,
|
|
188
|
-
"onUpdate:modelValue": t[3] || (t[3] = (a) => o(i).searchKey = a),
|
|
189
|
-
class: "xs:hidden",
|
|
190
|
-
placeholder: "search",
|
|
191
|
-
collapsible: ""
|
|
192
|
-
}, null, 8, ["modelValue"])
|
|
193
|
-
]),
|
|
194
|
-
s(U, {
|
|
195
|
-
class: "xs:hidden",
|
|
196
|
-
"row-data": o(g),
|
|
197
|
-
"column-defs": G,
|
|
198
|
-
"search-value": o(i).searchKey,
|
|
199
|
-
"column-filter": [],
|
|
200
|
-
onRowClick: t[4] || (t[4] = (a) => y(a.original)),
|
|
201
|
-
"hide-footer": o(g).length < 10
|
|
202
|
-
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
203
|
-
s(D, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
204
|
-
default: h(() => [
|
|
205
|
-
(p(!0), C(b, null, J(o(g).filter(
|
|
206
|
-
(a) => a.name.toLowerCase().includes(o(i).searchKey.toLowerCase())
|
|
207
|
-
), (a) => (p(), k(j, {
|
|
208
|
-
key: a._id.toString(),
|
|
209
|
-
onClick: (R) => y(a),
|
|
210
|
-
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
211
|
-
}, {
|
|
212
|
-
default: h(() => [
|
|
213
|
-
n("div", ue, [
|
|
214
|
-
n("div", fe, [
|
|
215
|
-
(p(), k(O(o($)(a)))),
|
|
216
|
-
n("div", ge, c(a.currentReceive ?? 0) + " used ", 1)
|
|
217
|
-
]),
|
|
218
|
-
n("div", ye, [
|
|
219
|
-
n("div", _e, c(a.name), 1),
|
|
220
|
-
n("div", he, c(o(A)(a)), 1)
|
|
221
|
-
]),
|
|
222
|
-
n("div", we, c(o(m)("connect.program.game.token_received", {
|
|
223
|
-
count: a.currentReceive ?? 0
|
|
224
|
-
})), 1)
|
|
225
|
-
]),
|
|
226
|
-
s(B, {
|
|
227
|
-
icon: "delete",
|
|
228
|
-
"icon-color": "neutral-gray-400",
|
|
229
|
-
variant: "tertiary",
|
|
230
|
-
onClick: (R) => (R.stopPropagation(), L(a))
|
|
231
|
-
}, null, 8, ["onClick"])
|
|
232
|
-
]),
|
|
233
|
-
_: 2
|
|
234
|
-
}, 1032, ["onClick"]))), 128))
|
|
235
|
-
]),
|
|
236
|
-
_: 1
|
|
237
|
-
})
|
|
238
|
-
], 64)) : (p(), k(H, {
|
|
239
|
-
key: 1,
|
|
240
|
-
variant: "outlined",
|
|
241
|
-
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
242
|
-
}, {
|
|
243
|
-
default: h(() => [
|
|
244
|
-
t[6] || (t[6] = n("img", {
|
|
245
|
-
src: Q,
|
|
246
|
-
class: "aspect-square w-[150px]"
|
|
247
|
-
}, null, -1)),
|
|
248
|
-
n("div", xe, [
|
|
249
|
-
n("div", ve, c(o(m)("connect.program.game.empty_state.title")), 1),
|
|
250
|
-
n("div", Ce, c(o(m)("connect.program.game.empty_state.description")), 1)
|
|
251
|
-
]),
|
|
252
|
-
s(B, {
|
|
253
|
-
variant: "primary",
|
|
254
|
-
label: "Create game program",
|
|
255
|
-
icon: "add",
|
|
256
|
-
disabled: !o(f).isPremium,
|
|
257
|
-
onClick: t[5] || (t[5] = (a) => y())
|
|
258
|
-
}, null, 8, ["disabled"])
|
|
259
|
-
]),
|
|
260
|
-
_: 1
|
|
261
|
-
})),
|
|
262
|
-
s(ne, {
|
|
263
|
-
ref_key: "sheetRef",
|
|
264
|
-
ref: S,
|
|
265
|
-
"onSubmit:modelValue": I
|
|
266
|
-
}, null, 512),
|
|
267
|
-
s(re, {
|
|
268
|
-
ref_key: "sendCollectionSheetRef",
|
|
269
|
-
ref: P
|
|
270
|
-
}, null, 512)
|
|
271
|
-
])
|
|
272
|
-
], 64);
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
export {
|
|
277
|
-
Ie as default
|
|
278
|
-
};
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { openBlock as l, createElementBlock as o, createElementVNode as i, defineComponent as C, ref as v, onMounted as $, resolveComponent as f, renderSlot as b, toDisplayString as r, createCommentVNode as x, normalizeStyle as R, unref as s, Fragment as h, createVNode as w, withCtx as g, createTextVNode as p, normalizeClass as V, createBlock as F } from "vue";
|
|
2
|
-
import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
const H = {}, N = { class: "animate-pulse flex space-x-4 bg-gray-300 dark:bg-gray-700 items-center justify-center rounded w-full h-full" };
|
|
4
|
-
function A(e, d) {
|
|
5
|
-
return l(), o("div", N, d[0] || (d[0] = [
|
|
6
|
-
i("svg", {
|
|
7
|
-
class: "dark:text-gray-600 h-10 text-gray-200 w-10",
|
|
8
|
-
"aria-hidden": "true",
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
fill: "currentColor",
|
|
11
|
-
viewBox: "0 0 20 18"
|
|
12
|
-
}, [
|
|
13
|
-
i("path", { d: "M18 0H2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2Zm-5.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm4.376 10.481A1 1 0 0 1 16 15H4a1 1 0 0 1-.895-1.447l3.5-7A1 1 0 0 1 7.468 6a.965.965 0 0 1 .9.5l2.775 4.757 1.546-1.887a1 1 0 0 1 1.618.1l2.541 4a1 1 0 0 1 .028 1.011Z" })
|
|
14
|
-
], -1)
|
|
15
|
-
]));
|
|
16
|
-
}
|
|
17
|
-
const D = /* @__PURE__ */ z(H, [["render", A]]), I = { class: "max-w-full max-h-[400px] space-y-4" }, L = { key: 0 }, T = { class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400" }, U = {
|
|
18
|
-
key: 1,
|
|
19
|
-
class: "h-full w-full relative bg-fm-color-neutral-white p-12 border-2 border-dashed border-fm-color-neutral-gray-300 rounded-md flex flex-col items-center justify-center gap-8 hover:border-fm-color-neutral-gray-400"
|
|
20
|
-
}, Z = ["src"], _ = ["src"], E = { class: "absolute right-0 top-0" }, O = /* @__PURE__ */ C({
|
|
21
|
-
__name: "ImageInput",
|
|
22
|
-
props: {
|
|
23
|
-
required: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
default: () => !1
|
|
26
|
-
},
|
|
27
|
-
disabled: {
|
|
28
|
-
type: Boolean,
|
|
29
|
-
default: () => !1
|
|
30
|
-
},
|
|
31
|
-
thumbnail: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: () => {
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
file: {
|
|
37
|
-
type: File,
|
|
38
|
-
default: () => {
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
label: {
|
|
42
|
-
type: String,
|
|
43
|
-
default: () => {
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
aspectRatio: {
|
|
47
|
-
type: String,
|
|
48
|
-
default: "2/3"
|
|
49
|
-
},
|
|
50
|
-
imageFit: {
|
|
51
|
-
type: String,
|
|
52
|
-
default: "contain"
|
|
53
|
-
},
|
|
54
|
-
accept: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: ".png, .jpg, .jpeg, .webm"
|
|
57
|
-
},
|
|
58
|
-
recommendedSize: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: "Recommended: 950px x 600px"
|
|
61
|
-
},
|
|
62
|
-
deleteButton: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: !0
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
emits: ["update:file"],
|
|
68
|
-
setup(e, { emit: d }) {
|
|
69
|
-
const c = e, a = v({
|
|
70
|
-
loading: !1,
|
|
71
|
-
imgsrc: c.thumbnail
|
|
72
|
-
}), m = v(!1), y = d;
|
|
73
|
-
async function u(t) {
|
|
74
|
-
return t == null ? (a.value.imgsrc = void 0, y("update:file", null)) : (m.value = !!t.type.startsWith("video/"), a.value.loading = !0, a.value.imgsrc = URL.createObjectURL(t), a.value.loading = !1, y("update:file", t));
|
|
75
|
-
}
|
|
76
|
-
return $(() => {
|
|
77
|
-
var t;
|
|
78
|
-
c.file && u(c.file), (t = c.thumbnail) != null && t.includes("mp4") && (m.value = !0);
|
|
79
|
-
}), (t, n) => {
|
|
80
|
-
const k = f("FmDropField"), S = f("FmHelperText"), B = f("FmButton");
|
|
81
|
-
return l(), o("div", I, [
|
|
82
|
-
b(t.$slots, "label", {}, () => [
|
|
83
|
-
e.label ? (l(), o("div", L, r(e.label), 1)) : x("", !0)
|
|
84
|
-
]),
|
|
85
|
-
i("div", {
|
|
86
|
-
style: R({ "aspect-ratio": e.aspectRatio }),
|
|
87
|
-
class: "flex flex-col max-h-full max-w-full"
|
|
88
|
-
}, [
|
|
89
|
-
s(a).loading ? (l(), F(D, { key: 1 })) : (l(), o(h, { key: 0 }, [
|
|
90
|
-
s(a).imgsrc ? (l(), o("div", U, [
|
|
91
|
-
s(m) ? (l(), o("video", {
|
|
92
|
-
key: 1,
|
|
93
|
-
src: s(a).imgsrc || e.thumbnail,
|
|
94
|
-
class: "w-full h-full",
|
|
95
|
-
controls: ""
|
|
96
|
-
}, null, 8, _)) : (l(), o("img", {
|
|
97
|
-
key: 0,
|
|
98
|
-
class: V([`object-${e.imageFit}`, "w-full h-full"]),
|
|
99
|
-
src: s(a).imgsrc || e.thumbnail
|
|
100
|
-
}, null, 10, Z)),
|
|
101
|
-
i("div", E, [
|
|
102
|
-
b(t.$slots, "delete-button"),
|
|
103
|
-
e.deleteButton ? (l(), F(B, {
|
|
104
|
-
key: 0,
|
|
105
|
-
class: "!text-neutral-50 !bg-neutral-700",
|
|
106
|
-
icon: "delete",
|
|
107
|
-
variant: "tertiary",
|
|
108
|
-
disabled: e.disabled,
|
|
109
|
-
onClick: n[1] || (n[1] = (j) => u(null))
|
|
110
|
-
}, null, 8, ["disabled"])) : x("", !0)
|
|
111
|
-
])
|
|
112
|
-
])) : (l(), o(h, { key: 0 }, [
|
|
113
|
-
w(k, {
|
|
114
|
-
class: "flex-1 hihiha",
|
|
115
|
-
accept: e.accept,
|
|
116
|
-
disabled: e.disabled,
|
|
117
|
-
onFileUpload: u,
|
|
118
|
-
onFileRejected: n[0] || (n[0] = (j) => u(null))
|
|
119
|
-
}, {
|
|
120
|
-
label: g(() => n[2] || (n[2] = [
|
|
121
|
-
p(r(void 0))
|
|
122
|
-
])),
|
|
123
|
-
"helper-text": g(() => n[3] || (n[3] = [
|
|
124
|
-
p(r(void 0))
|
|
125
|
-
])),
|
|
126
|
-
"accept-text": g(() => [
|
|
127
|
-
i("div", T, [
|
|
128
|
-
i("div", null, "(" + r(e.recommendedSize) + ")", 1),
|
|
129
|
-
p(" Accepts " + r(e.accept), 1)
|
|
130
|
-
])
|
|
131
|
-
]),
|
|
132
|
-
_: 1
|
|
133
|
-
}, 8, ["accept", "disabled"]),
|
|
134
|
-
w(S, { text: "" })
|
|
135
|
-
], 64))
|
|
136
|
-
], 64))
|
|
137
|
-
], 4)
|
|
138
|
-
]);
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
export {
|
|
143
|
-
O as _
|
|
144
|
-
};
|