@feedmepos/mf-connect 0.1.98-beta.21 → 0.1.98-beta.23
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/{App-B3f8GWoR.js → App-BIYX7Etx.js} +10 -9
- package/dist/{AuditLogs-LRHzzpqj.js → AuditLogs-DE4OshWT.js} +9 -9
- package/dist/{Bin-Y761Ua4-.js → Bin-Dij5sB7P.js} +8 -8
- package/dist/{Broadcast-CdRuG42N.js → Broadcast-LrxTPewm.js} +13 -12
- package/dist/CampaignAnalytic-Cd4NmVCa.js +1656 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CsULDH9l.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-NOjmA60-.js} +6 -5
- package/dist/{Card-GZ3ZLnBl.js → Card-RUIOZRGb.js} +18 -18
- package/dist/{Collections-B59fL-oS.js → Collections-D0Dm4XVh.js} +14 -13
- package/dist/{Credit-DJxzXBam.js → Credit-04KV7cl_.js} +119 -93
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C3d8frgZ.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D0_4f-Lw.js} +34 -30
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DKUFvacX.js → EffectSheet.vue_vue_type_style_index_0_lang-GJYjey-R.js} +6 -6
- package/dist/{Experience-lzpvYFPP.js → Experience-Tnx0sYuU.js} +112 -86
- package/dist/{FileSaver.min-BXoEv5ve.js → FileSaver.min-DO-YYoNK.js} +1 -1
- package/dist/Game-BQF1HhbF.js +356 -0
- package/dist/{Grab-BQgS104D.js → Grab-CbpfBdSQ.js} +32 -31
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-Cz9iB9ox.js → ImageInput.vue_vue_type_script_setup_true_lang-Dm76lZPy.js} +1 -1
- package/dist/{Index-B5UTBbUy.js → Index-Bs2XB4kq.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CLLhy4-v.js → LocationPicker.vue_vue_type_script_setup_true_lang--zUjb2sx.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BiIqs4zW.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Dix9t18W.js} +1 -1
- package/dist/LoyaltyDashboard-D-2cCqT1.js +1339 -0
- package/dist/{MainLayout-AvQ4_-oT.js → MainLayout-BtjswcYZ.js} +1 -1
- package/dist/{Marketing-Bn1ygF8d.js → Marketing-BX2dspqc.js} +4 -4
- package/dist/{MarketingMaterialEdit-Cw-VPVqE.js → MarketingMaterialEdit-BnERWjgD.js} +6 -6
- package/dist/{Member-CpEXFHIF.js → Member-BH8ly91d.js} +11 -11
- package/dist/{MemberList-gSEw_idJ.js → MemberList-vNI7GD9Z.js} +36 -35
- package/dist/{MemberTransactions-DEMzj9-y.js → MemberTransactions-CQUJBCJK.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-B4Y5KPpw.js → MessageInput.vue_vue_type_script_setup_true_lang-BzJzMifM.js} +4400 -4431
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-B1Yj3odA.js +38 -0
- package/dist/Mission-Rzjonu46.js +360 -0
- package/dist/{Overview-CMudFYOc.js → Overview-B1b0Krzj.js} +3 -3
- package/dist/{Overview-DjNcF88f.js → Overview-BYCWa5kg.js} +18 -18
- package/dist/Point-LhcogofH.js +288 -0
- package/dist/Promotion-CyHJ_Rj7.js +423 -0
- package/dist/{Queue-BjoAJoVe.js → Queue-B3TbSBGL.js} +16 -16
- package/dist/{Record-CfZFuwy_.js → Record-CMaloGsO.js} +9 -9
- package/dist/{Review-pIAxbjVU.js → Review-Cht29ZqH.js} +2 -2
- package/dist/{ReviewFacebookCallback-BRW4T-5-.js → ReviewFacebookCallback-w9E0tBZK.js} +5 -5
- package/dist/{ReviewGoogleCallback-B-6EojXR.js → ReviewGoogleCallback-wyDB2Q4d.js} +5 -5
- package/dist/{Reward-_pdE2XZp.js → Reward-CHUkCgCF.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-S5dh0IGc.js → RewardGroup.vue_vue_type_script_setup_true_lang-Dop7KXro.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-C9B7NmF0.js → RuleGroup.vue_vue_type_script_setup_true_lang-pgKnyxcj.js} +16 -15
- package/dist/{Segment-B1EMe-LZ.js → Segment-CQM0X0t8.js} +39 -37
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DAmjk8b3.js → SelectItems.vue_vue_type_script_setup_true_lang-Dgk1XFW-.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-C7sgPf8l.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-WLoT1Yuh.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DVYTZr_E.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CiIXMw2K.js} +4 -4
- package/dist/{Setting-CQQ6zacB.js → Setting-BNb9cKHW.js} +40 -40
- package/dist/{SettingAdvertisements-9Wl9VWbM.js → SettingAdvertisements-DCfDKajW.js} +12 -12
- package/dist/{Settings-Bvj2ChDR.js → Settings-D9x31jyY.js} +5 -5
- package/dist/{Store-BdUZ22g6.js → Store-CHIRPbf9.js} +21 -21
- package/dist/{StoreRewards-DsUS_Lu1.js → StoreRewards-oDCchD1I.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Zw-lIDCN.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Bs6DBPCp.js} +21 -21
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BECp3eqQ.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dg7rFNPR.js} +2 -2
- package/dist/{Tier-2-mJ3SNK.js → Tier-BnxtqLlp.js} +36 -34
- package/dist/{Title-BjeEDjxl.js → Title-Ca909tVJ.js} +39 -37
- package/dist/{Transaction--U_kJKec.js → Transaction-CXqSR6Vb.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BkLyvjA5.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DXKIcUhs.js} +6 -6
- package/dist/{Voucher-INa3N_6V.js → Voucher-0JvEJ4Jp.js} +156 -133
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-4Quzmc7-.js → VoucherEditor.vue_vue_type_script_setup_true_lang-vBymX-zC.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CPCnBExY.js → ZodTextField.vue_vue_type_script_setup_true_lang-CaLyPkwJ.js} +2 -2
- package/dist/{app-Dlqr-LX4.js → app-bITyvnZM.js} +3155 -3011
- package/dist/app.js +1 -1
- package/dist/{business-DWrfGEe_.js → business-eD0ch267.js} +1 -1
- package/dist/campaign-BFg0mmEh.js +100 -0
- package/dist/{campaign-DtNt-BqN.js → campaign-Ba602jpT.js} +74 -96
- package/dist/{campaign.enum-B9-ZpK0C.js → campaign.enum-Dx-Zo68Q.js} +1 -1
- package/dist/{campaign.fn-COxaWmi_.js → campaign.fn-DF0snp1T.js} +62 -62
- package/dist/{collectible.enum-CF0VF-r7.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/collection.fn-CBfMIjXE.js +26 -0
- package/dist/{duplicateCampaign-8ciT68QF.js → duplicateCampaign-VP_ls1ud.js} +2 -2
- package/dist/{effect-CaSn-84h.js → effect-ddINAhuZ.js} +1 -1
- package/dist/{email-addresses-BiMQ8xIx.js → email-addresses-dgDgXrMO.js} +2 -2
- package/dist/{export-BwBNgCo5.js → export-Ds2K5BsU.js} +3 -3
- package/dist/{helper-CajV_0CM.js → helper-BuMn1yMd.js} +1 -1
- package/dist/{index-CjW6Mj-1.js → index-116bBmSO.js} +1 -1
- package/dist/{index-CQj9BQlQ.js → index-2WBZTpTO.js} +105 -123
- package/dist/{index-D1--K-QL.js → index-C7yjfEJp.js} +1 -1
- package/dist/index-C8cXXcLk.js +45 -0
- package/dist/{index-Bqcfsd4p.js → index-CDY4-3Oh.js} +8 -7
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-B6tm_U_M.js → index-CssCQw59.js} +18 -17
- package/dist/{index-DWBKko92.js → index-D-VV6TQr.js} +6 -6
- package/dist/{index-CQIciFrH.js → index-D5CuHi7m.js} +1 -1
- package/dist/{index-J8pSZ3WO.js → index-D7zaIqw5.js} +1 -1
- package/dist/{index-D1vhLY7l.js → index-DeBtRbNM.js} +1 -1
- package/dist/index-DtvL6ok7.js +146 -0
- package/dist/{index-D90p28Hr.js → index-Dvs0-jZv.js} +205 -229
- package/dist/{index-BP5rdioN.js → index-IC2b3X3d.js} +8027 -10766
- package/dist/{index-DBUTFa2h.js → index-KbYR_xHX.js} +2 -2
- package/dist/{index-B6ldAC8Y.js → index-ObbBk7ec.js} +1 -1
- package/dist/{index-B0ohh62P.js → index-uwROagPY.js} +230 -351
- package/dist/{index.esm2017-QlPanYiW.js → index.esm2017-skDxCJ1A.js} +1 -1
- package/dist/{loading-CqqkzWSm.js → loading-LvohTBxf.js} +1 -1
- package/dist/{lodash-DmbW2QhA.js → lodash-Di4dt__i.js} +1 -1
- package/dist/{membership-Dcwyu-rr.js → membership-7dDyl1PB.js} +3 -3
- package/dist/{money-DWr1gi--.js → money-DLO_8Rz5.js} +1 -1
- package/dist/{number-CHhHAd1q.js → number-DI2NyHxA.js} +1 -1
- package/dist/{objectid-BsiuHVH8.js → objectid-BR7nqOFr.js} +8 -8
- package/dist/{plugins-BxmMI8fo.js → plugins-DiV6DB6H.js} +3 -3
- package/dist/{reward-DX0FjsNT.js → reward-CEQA8YFb.js} +1 -1
- package/dist/{rule-DDLcqiHH.js → rule-CK-xQMWg.js} +3 -3
- package/dist/rule-builder-DW8QDYRH.js +126 -0
- package/dist/{template-C0lF82yv.js → template-ASiRYpll.js} +6 -6
- package/dist/timezone-Bt1TXRp3.js +20 -0
- package/dist/{trigger-CsJcg_RY.js → trigger-C1t6y-O_.js} +5 -5
- package/dist/{useMarketingMaterialActions-B0iV6YzB.js → useMarketingMaterialActions-CflpOyai.js} +3 -3
- package/dist/{usePagination-4EISkyGW.js → usePagination-BtKUQnLA.js} +1 -1
- package/dist/{user-DZuSeqRY.js → user-Dv4jKByC.js} +1 -1
- package/dist/{vue-i18n-BKcwYlp1.js → vue-i18n-xbxyJhj4.js} +436 -436
- package/dist/{xlsx-C-7dia55.js → xlsx-rKKsRfvM.js} +440 -440
- package/dist/{zod-DPxXVSRw.js → zod-DpLFpQ43.js} +1 -1
- package/package.json +1 -1
- package/dist/Game-KCxIpXEC.js +0 -330
- package/dist/LoyaltyDashboard-DPHWpaNJ.js +0 -1082
- package/dist/Mission-DMtpauNQ.js +0 -334
- package/dist/Point-CgdTrgXc.js +0 -262
- package/dist/Promotion-DDQodFDb.js +0 -397
- package/dist/campaign-un9Ji1KF.js +0 -219
package/package.json
CHANGED
package/dist/Game-KCxIpXEC.js
DELETED
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
import { defineComponent as W, ref as P, computed as J, onMounted as Q, resolveComponent as m, openBlock as f, createElementBlock as V, Fragment as A, createVNode as r, unref as o, withCtx as x, createElementVNode as n, toDisplayString as g, renderList as X, createBlock as L, resolveDynamicComponent as Y, h as c } from "vue";
|
|
2
|
-
import { _ as Z } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { useDialog as ee, components as y } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as te, p as oe } from "./plugins-BxmMI8fo.js";
|
|
5
|
-
import { u as ae } from "./loading-CqqkzWSm.js";
|
|
6
|
-
import { u as ne } from "./business-DWrfGEe_.js";
|
|
7
|
-
import { u as ie, c as _ } from "./campaign-un9Ji1KF.js";
|
|
8
|
-
import { b as D, c as G, a as se } from "./campaign-DtNt-BqN.js";
|
|
9
|
-
import { c as re, p as le } from "./duplicateCampaign-8ciT68QF.js";
|
|
10
|
-
import { _ as ce } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
11
|
-
import { _ as me } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-C3d8frgZ.js";
|
|
12
|
-
import { u as de } from "./template-C0lF82yv.js";
|
|
13
|
-
import { u as ue } from "./vue-i18n-BKcwYlp1.js";
|
|
14
|
-
import { _ as pe } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-C7sgPf8l.js";
|
|
15
|
-
const fe = { class: "flex items-center" }, ge = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ye = { class: "px-24 flex flex-col gap-y-16" }, _e = { class: "flex items-center justify-between w-full" }, he = { class: "flex gap-8 overflow-x-auto" }, we = { class: "space-y-8" }, Ce = { class: "flex w-full gap-4 items-center" }, xe = { class: "space-y-4" }, ve = { class: "fm-typo-en-body-lg-600" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fe = { class: "flex items-center gap-8" }, Se = { class: "flex flex-col gap-16 text-center" }, Pe = { class: "fm-typo-en-title-sm-800" }, Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ne = /* @__PURE__ */ W({
|
|
16
|
-
__name: "Game",
|
|
17
|
-
setup(Ae) {
|
|
18
|
-
const { t: d } = ue(), K = {
|
|
19
|
-
label: d("connect.program.common.actions.create", {
|
|
20
|
-
type: d("connect.program.game.title").toLowerCase()
|
|
21
|
-
}),
|
|
22
|
-
value: "create",
|
|
23
|
-
isPrimary: !0,
|
|
24
|
-
prependIcon: "add"
|
|
25
|
-
}, B = ee(), U = de("GAME", B), h = ne(), u = ie(), { global: I, minor: R } = ae, l = P({
|
|
26
|
-
searchKey: "",
|
|
27
|
-
location: []
|
|
28
|
-
});
|
|
29
|
-
function T(e) {
|
|
30
|
-
const t = l.value.location;
|
|
31
|
-
return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((s) => {
|
|
32
|
-
var i;
|
|
33
|
-
return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(s);
|
|
34
|
-
}) : e.targetLocation.includes(t);
|
|
35
|
-
}
|
|
36
|
-
const w = J(
|
|
37
|
-
() => u.campaigns.token.filter((e) => T(e))
|
|
38
|
-
), j = [
|
|
39
|
-
{
|
|
40
|
-
header: "Program title",
|
|
41
|
-
accessorKey: "name",
|
|
42
|
-
// accessorFn: (v) => v.name,
|
|
43
|
-
cell(e) {
|
|
44
|
-
return c("div", { class: "flex items-center justify-between gap-4" }, [
|
|
45
|
-
c("div", { class: "flex items-center" }, [
|
|
46
|
-
c(
|
|
47
|
-
y.FmTooltip,
|
|
48
|
-
{
|
|
49
|
-
content: e.row.original._id,
|
|
50
|
-
onClick: (t) => {
|
|
51
|
-
t.stopPropagation(), te(e.row.original._id);
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
[
|
|
55
|
-
c(y.FmIcon, {
|
|
56
|
-
name: "info",
|
|
57
|
-
outline: !0,
|
|
58
|
-
size: "sm"
|
|
59
|
-
})
|
|
60
|
-
]
|
|
61
|
-
)
|
|
62
|
-
]),
|
|
63
|
-
c("div", { class: "flex-1" }, e.row.original.name)
|
|
64
|
-
]);
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
header: "Status",
|
|
69
|
-
accessorFn: (e) => se(e),
|
|
70
|
-
cell(e) {
|
|
71
|
-
return D(e.row.original);
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
header: "Summary",
|
|
76
|
-
accessorFn: (e) => G(e)
|
|
77
|
-
//v.effect,
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
header: "Token received",
|
|
81
|
-
accessorFn: (e) => {
|
|
82
|
-
var t;
|
|
83
|
-
return ((t = e == null ? void 0 : e.pf_collectible) == null ? void 0 : t.currentReceive) ?? 0;
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
header: "Actions",
|
|
88
|
-
cell(e) {
|
|
89
|
-
return c("div", { class: "flex items-center gap-8" }, [
|
|
90
|
-
c(y.FmButton, {
|
|
91
|
-
variant: "tertiary",
|
|
92
|
-
icon: "content_copy",
|
|
93
|
-
iconColor: "neutral-gray-400",
|
|
94
|
-
onClick: async (t) => {
|
|
95
|
-
t.stopPropagation(), await M(e.row.original);
|
|
96
|
-
}
|
|
97
|
-
}),
|
|
98
|
-
c(y.FmButton, {
|
|
99
|
-
variant: "tertiary",
|
|
100
|
-
icon: "send",
|
|
101
|
-
iconColor: "neutral-gray-400",
|
|
102
|
-
onClick: (t) => {
|
|
103
|
-
t.stopPropagation(), N(e.row.original);
|
|
104
|
-
}
|
|
105
|
-
}),
|
|
106
|
-
c(y.FmButton, {
|
|
107
|
-
variant: "tertiary",
|
|
108
|
-
icon: "delete",
|
|
109
|
-
iconColor: "neutral-gray-400",
|
|
110
|
-
onClick: (t) => {
|
|
111
|
-
t.stopPropagation(), E(e.row.original);
|
|
112
|
-
}
|
|
113
|
-
})
|
|
114
|
-
]);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
], v = P(), $ = P();
|
|
118
|
-
async function E(e) {
|
|
119
|
-
await oe.remove(`Are you sure you want to remove ${e.name}?`) && await R(
|
|
120
|
-
async () => {
|
|
121
|
-
await _.delete(e._id), await u.read("GAME");
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
message: `Removing ${e.name}`,
|
|
125
|
-
successMessage: `Removed ${e.name} successfully`
|
|
126
|
-
}
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
async function C(e) {
|
|
130
|
-
e ? await t() : U.open(async (s) => {
|
|
131
|
-
await t(s);
|
|
132
|
-
});
|
|
133
|
-
async function t(s) {
|
|
134
|
-
var i;
|
|
135
|
-
(i = v.value) == null || i.showSheet(
|
|
136
|
-
!0,
|
|
137
|
-
"GAME",
|
|
138
|
-
e ? await _.readById(e._id) : void 0,
|
|
139
|
-
s
|
|
140
|
-
);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
async function M(e) {
|
|
144
|
-
var i;
|
|
145
|
-
if (!await re(e.name))
|
|
146
|
-
return;
|
|
147
|
-
const t = await _.readById(e._id), s = le(t);
|
|
148
|
-
(i = v.value) == null || i.showSheet(
|
|
149
|
-
!0,
|
|
150
|
-
"GAME",
|
|
151
|
-
s,
|
|
152
|
-
t.template
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
async function H(e) {
|
|
156
|
-
var t, s, i;
|
|
157
|
-
e.campaign._id && ((i = (s = (t = e.campaign) == null ? void 0 : t.game) == null ? void 0 : s.rewards) != null && i.some(
|
|
158
|
-
(p) => p.type === "VOUCHER"
|
|
159
|
-
)) && await new Promise((p) => {
|
|
160
|
-
B.open({
|
|
161
|
-
title: "Confirmation",
|
|
162
|
-
message: "This will change all future vouchers? Would you like to update previous claimed vouchers expiry date and discount?",
|
|
163
|
-
primaryActions: { text: "Update all", close: !0 },
|
|
164
|
-
secondaryActions: { text: "Update future only", close: !0 }
|
|
165
|
-
}).onPrimary(async () => {
|
|
166
|
-
e.updateCollections = !0, p();
|
|
167
|
-
}).onSecondary(async () => {
|
|
168
|
-
p();
|
|
169
|
-
});
|
|
170
|
-
}), await R(
|
|
171
|
-
async () => {
|
|
172
|
-
e.campaign._id ? await _.update(e.campaign._id, e) : await _.create(e), await u.read("GAME");
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
message: `${e.campaign._id ? "Updating" : "Creating"} game program`,
|
|
176
|
-
successMessage: `Game program ${e.campaign._id ? "updated" : "created"} successfully`
|
|
177
|
-
}
|
|
178
|
-
);
|
|
179
|
-
}
|
|
180
|
-
function N(e) {
|
|
181
|
-
var t;
|
|
182
|
-
(t = $.value) == null || t.showSheet({
|
|
183
|
-
campaign: e
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
return Q(async () => {
|
|
187
|
-
await I(async () => {
|
|
188
|
-
await u.read("GAME"), await h.readPremium();
|
|
189
|
-
});
|
|
190
|
-
}), (e, t) => {
|
|
191
|
-
const s = m("FmPill"), i = m("FmPageHead"), b = m("FmSearch"), p = m("FmTable"), k = m("FmButton"), O = m("FmListItem"), q = m("FmList"), z = m("FmCard");
|
|
192
|
-
return f(), V(A, null, [
|
|
193
|
-
r(i, {
|
|
194
|
-
actions: o(w).length > 0 && o(h).isPremium ? [K] : [],
|
|
195
|
-
"onClick:action": t[0] || (t[0] = () => C())
|
|
196
|
-
}, {
|
|
197
|
-
title: x(() => [
|
|
198
|
-
n("div", fe, [
|
|
199
|
-
n("span", ge, g(o(d)("connect.program.game.title")), 1),
|
|
200
|
-
r(s, { variant: "premium" })
|
|
201
|
-
])
|
|
202
|
-
]),
|
|
203
|
-
_: 1
|
|
204
|
-
}, 8, ["actions"]),
|
|
205
|
-
n("div", ye, [
|
|
206
|
-
r(b, {
|
|
207
|
-
modelValue: o(l).searchKey,
|
|
208
|
-
"onUpdate:modelValue": t[1] || (t[1] = (a) => o(l).searchKey = a),
|
|
209
|
-
class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
|
|
210
|
-
placeholder: "search",
|
|
211
|
-
collapsible: ""
|
|
212
|
-
}, null, 8, ["modelValue"]),
|
|
213
|
-
o(u).campaigns.token && o(u).campaigns.token.length > 0 ? (f(), V(A, { key: 0 }, [
|
|
214
|
-
n("div", _e, [
|
|
215
|
-
n("div", he, [
|
|
216
|
-
r(ce, {
|
|
217
|
-
label: `${o(d)("connect.common.location")}: `,
|
|
218
|
-
"right-icon": "keyboard_arrow_down",
|
|
219
|
-
modelValue: o(l).location,
|
|
220
|
-
"onUpdate:modelValue": t[2] || (t[2] = (a) => o(l).location = a),
|
|
221
|
-
icon: "storefront",
|
|
222
|
-
"show-item-label": !0,
|
|
223
|
-
items: o(h).locationOptions
|
|
224
|
-
}, null, 8, ["label", "modelValue", "items"])
|
|
225
|
-
]),
|
|
226
|
-
r(b, {
|
|
227
|
-
modelValue: o(l).searchKey,
|
|
228
|
-
"onUpdate:modelValue": t[3] || (t[3] = (a) => o(l).searchKey = a),
|
|
229
|
-
class: "xs:hidden sm:hidden",
|
|
230
|
-
placeholder: "search",
|
|
231
|
-
collapsible: ""
|
|
232
|
-
}, null, 8, ["modelValue"])
|
|
233
|
-
]),
|
|
234
|
-
r(p, {
|
|
235
|
-
class: "xs:hidden sm:hidden",
|
|
236
|
-
"row-data": o(w),
|
|
237
|
-
"column-defs": j,
|
|
238
|
-
"search-value": o(l).searchKey,
|
|
239
|
-
"column-filter": [],
|
|
240
|
-
onRowClick: t[4] || (t[4] = (a) => C(a.original)),
|
|
241
|
-
"hide-footer": o(w).length < 10
|
|
242
|
-
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
243
|
-
r(q, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
244
|
-
default: x(() => [
|
|
245
|
-
(f(!0), V(A, null, X(o(w).filter(
|
|
246
|
-
(a) => a.name.toLowerCase().includes(o(l).searchKey.toLowerCase())
|
|
247
|
-
), (a) => (f(), L(O, {
|
|
248
|
-
key: a._id.toString(),
|
|
249
|
-
onClick: (F) => C(a),
|
|
250
|
-
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
251
|
-
}, {
|
|
252
|
-
default: x(() => {
|
|
253
|
-
var F;
|
|
254
|
-
return [
|
|
255
|
-
n("div", we, [
|
|
256
|
-
n("div", Ce, [
|
|
257
|
-
(f(), L(Y(o(D)(a))))
|
|
258
|
-
]),
|
|
259
|
-
n("div", xe, [
|
|
260
|
-
n("div", ve, g(a.name), 1),
|
|
261
|
-
n("div", be, g(o(G)(a)), 1)
|
|
262
|
-
]),
|
|
263
|
-
n("div", ke, g(o(d)("connect.program.game.token_received", {
|
|
264
|
-
count: ((F = a.pf_collectible) == null ? void 0 : F.currentReceive) ?? 0
|
|
265
|
-
})), 1)
|
|
266
|
-
]),
|
|
267
|
-
n("div", Fe, [
|
|
268
|
-
r(k, {
|
|
269
|
-
icon: "content_copy",
|
|
270
|
-
"icon-color": "neutral-gray-400",
|
|
271
|
-
variant: "tertiary",
|
|
272
|
-
onClick: async (S) => {
|
|
273
|
-
S.stopPropagation(), await M(a);
|
|
274
|
-
}
|
|
275
|
-
}, null, 8, ["onClick"]),
|
|
276
|
-
r(k, {
|
|
277
|
-
icon: "delete",
|
|
278
|
-
"icon-color": "neutral-gray-400",
|
|
279
|
-
variant: "tertiary",
|
|
280
|
-
onClick: (S) => (S.stopPropagation(), E(a))
|
|
281
|
-
}, null, 8, ["onClick"])
|
|
282
|
-
])
|
|
283
|
-
];
|
|
284
|
-
}),
|
|
285
|
-
_: 2
|
|
286
|
-
}, 1032, ["onClick"]))), 128))
|
|
287
|
-
]),
|
|
288
|
-
_: 1
|
|
289
|
-
})
|
|
290
|
-
], 64)) : (f(), L(z, {
|
|
291
|
-
key: 1,
|
|
292
|
-
variant: "outlined",
|
|
293
|
-
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
294
|
-
}, {
|
|
295
|
-
default: x(() => [
|
|
296
|
-
t[6] || (t[6] = n("img", {
|
|
297
|
-
src: Z,
|
|
298
|
-
class: "aspect-square w-[150px]"
|
|
299
|
-
}, null, -1)),
|
|
300
|
-
n("div", Se, [
|
|
301
|
-
n("div", Pe, g(o(d)("connect.program.game.empty_state.title")), 1),
|
|
302
|
-
n("div", Ve, g(o(d)("connect.program.game.empty_state.description")), 1)
|
|
303
|
-
]),
|
|
304
|
-
r(k, {
|
|
305
|
-
variant: "primary",
|
|
306
|
-
label: "Create game program",
|
|
307
|
-
icon: "add",
|
|
308
|
-
disabled: !o(h).isPremium,
|
|
309
|
-
onClick: t[5] || (t[5] = (a) => C())
|
|
310
|
-
}, null, 8, ["disabled"])
|
|
311
|
-
]),
|
|
312
|
-
_: 1
|
|
313
|
-
})),
|
|
314
|
-
r(me, {
|
|
315
|
-
ref_key: "sheetRef",
|
|
316
|
-
ref: v,
|
|
317
|
-
"onSubmit:modelValue": H
|
|
318
|
-
}, null, 512),
|
|
319
|
-
r(pe, {
|
|
320
|
-
ref_key: "sendCollectionSheetRef",
|
|
321
|
-
ref: $
|
|
322
|
-
}, null, 512)
|
|
323
|
-
])
|
|
324
|
-
], 64);
|
|
325
|
-
};
|
|
326
|
-
}
|
|
327
|
-
});
|
|
328
|
-
export {
|
|
329
|
-
Ne as default
|
|
330
|
-
};
|