@feedmepos/mf-connect 0.1.98-beta.4 → 0.1.98-beta.41
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-BGv_JihW.js → App-C6JJ9uQ8.js} +808 -665
- package/dist/{AuditLogs-53rnjCmD.js → AuditLogs-CAlgtDgx.js} +12 -11
- package/dist/{Bin-B0Q_WpuY.js → Bin-D8jwhwER.js} +8 -8
- package/dist/{Broadcast-PiJE1Syl.js → Broadcast-CP8DRfkT.js} +39 -36
- package/dist/CampaignAnalytic-MVjYBFvu.js +1826 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Dz2KsBZl.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DeLURz87.js} +7 -5
- package/dist/{Card-DlqMu3Sl.js → Card-QribXJwZ.js} +21 -20
- package/dist/{Collections-BWcBlDDR.js → Collections-X9xbt43V.js} +14 -13
- package/dist/Credit-QmbsW1eb.js +286 -0
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DCvH0lGA.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-ClNieHSo.js} +35 -30
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-B_FyeWq4.js → EffectSheet.vue_vue_type_style_index_0_lang-CrGHTNhg.js} +16 -16
- package/dist/{Experience-DacFmPYy.js → Experience-CPGMg847.js} +112 -86
- package/dist/{FileSaver.min-CMZKiGkX.js → FileSaver.min-CK67LsPG.js} +1 -1
- package/dist/Game-BrkiEFCS.js +356 -0
- package/dist/GiftCardSetup-DXNBHF1A.js +542 -0
- package/dist/{Grab-DaBL5y3H.js → Grab-BgtDzK1B.js} +32 -31
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BaY_nQio.js → ImageInput.vue_vue_type_script_setup_true_lang-Dzv2AkKN.js} +1 -1
- package/dist/{Index-2UrjF35w.js → Index-KJgzalOd.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BuVBZsCN.js → LocationPicker.vue_vue_type_script_setup_true_lang-C6SBLJGQ.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-6wUxYqWe.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Dj74lJ7b.js} +1 -1
- package/dist/LoyaltyDashboard-B2JpbC01.js +1345 -0
- package/dist/MainLayout-DlfTKHQ-.js +143 -0
- package/dist/{Marketing-DEp--hFd.js → Marketing-Crx_JQpi.js} +7 -6
- package/dist/{MarketingMaterialEdit-BHL8Ptsu.js → MarketingMaterialEdit-BfsdcMXJ.js} +15 -14
- package/dist/{Member-BU1YxoEV.js → Member-C50Nrsko.js} +14 -13
- package/dist/{MemberList-zjvJBYf0.js → MemberList-C9uUKw1o.js} +37 -35
- package/dist/{MemberTransactions-BvyLV69V.js → MemberTransactions-DZ7zPOHX.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-_YOM1SlS.js → MessageInput.vue_vue_type_script_setup_true_lang-Du_ZGsbX.js} +5434 -5279
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Bg_0YlwG.js +38 -0
- package/dist/Mission-D_km8zi6.js +360 -0
- package/dist/{Overview-BToUlbsH.js → Overview-BBieK6qQ.js} +21 -20
- package/dist/Overview-B_kmLOcc.js +1316 -0
- package/dist/Point-D0q9N7f9.js +288 -0
- package/dist/Promotion-DoFTy-NK.js +423 -0
- package/dist/{Queue-D3vUkKN9.js → Queue-Dh5sDRHW.js} +13 -12
- package/dist/{Record-BViEbZZ8.js → Record-0owEBKqN.js} +9 -9
- package/dist/Review-DV2fnpOH.js +45 -0
- package/dist/ReviewFacebookCallback-D8mnAPzR.js +238 -0
- package/dist/ReviewGoogleCallback-CLzt_ox2.js +213 -0
- package/dist/{Reward-CZsvsYW_.js → Reward-Co20Xrss.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BASPLoRa.js → RewardGroup.vue_vue_type_script_setup_true_lang-0qU49c47.js} +14 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-B90meAnV.js → RuleGroup.vue_vue_type_script_setup_true_lang-qdvaXPhJ.js} +17 -15
- package/dist/{Segment-CN8NEg8w.js → Segment-7dQKeHWK.js} +38 -35
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BGyYQST4.js → SelectItems.vue_vue_type_script_setup_true_lang-BUVrUifO.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BxW-Kc6t.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DDsV9TD9.js} +37 -36
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-C9dwcEr5.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DqPZpddc.js} +4 -4
- package/dist/{Setting-DLPbZW11.js → Setting-Bvahxs-y.js} +14 -14
- package/dist/{SettingAdvertisements-BIq8gS5g.js → SettingAdvertisements-fbXLRwfb.js} +12 -12
- package/dist/Settings-C_HWDFN8.js +179 -0
- package/dist/Store-8yBKDR1b.js +2413 -0
- package/dist/{StoreRewards-BoEjVFk6.js → StoreRewards-DKaJvoJs.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Bv9ABH1K.js → StoreTransactions.vue_vue_type_script_setup_true_lang-D23XzJD7.js} +400 -455
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DNHgSfIg.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-JaFhCK_L.js} +2 -2
- package/dist/{Tier-kQ6X9h-t.js → Tier-CD-CjXC3.js} +44 -41
- package/dist/{Title-XosVAF2Y.js → Title-C_lcgye8.js} +49 -46
- package/dist/{Transaction-CO6oLPKR.js → Transaction-BvUYm-rT.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-McMR2Y7Y.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C3Yacz7K.js} +6 -6
- package/dist/{Voucher-CogaCxx2.js → Voucher-CYaG0GLU.js} +156 -133
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DjHwHFBq.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DF2JqzRe.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Dor9klZ8.js → ZodTextField.vue_vue_type_script_setup_true_lang-B4UPqSNc.js} +2 -2
- package/dist/{app-C9UPXbDs.js → app-CE5hQ4Uq.js} +6656 -5653
- package/dist/app.js +1 -1
- package/dist/{business-CYpW6-Ls.js → business-CE_4siXc.js} +1 -1
- package/dist/{campaign-BtLa7KeF.js → campaign-BP6rvSpg.js} +74 -96
- package/dist/campaign-CXQtKpeb.js +100 -0
- package/dist/{campaign.enum-DiLhS5il.js → campaign.enum-Dx-Zo68Q.js} +1 -1
- package/dist/{campaign.fn-CLB9gBHo.js → campaign.fn-DKnBpE1N.js} +119 -119
- package/dist/{collectible.enum-CmwWcfBh.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/collection.fn-Cg16QZSp.js +26 -0
- package/dist/{duplicateCampaign-DGhOBd5l.js → duplicateCampaign-DbtVAGsT.js} +2 -2
- package/dist/{effect-CY5Y6sxy.js → effect-CLI8NI4O.js} +1 -1
- package/dist/{email-addresses-BEnOHWj_.js → email-addresses-DlLiZ1io.js} +2 -2
- package/dist/{export-BgYu7SCd.js → export-6Hr34dBU.js} +3 -3
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-DTDgoyEh.js → helper-vkjFqj70.js} +1 -1
- package/dist/index-BIyKgw4m.js +72 -0
- package/dist/{index-C8ehLvXG.js → index-BLQJ-rv3.js} +1 -1
- package/dist/{index-CP-7qATP.js → index-BbTIqReL.js} +1 -1
- package/dist/index-BuMfQxMf.js +897 -0
- package/dist/index-C8cXXcLk.js +45 -0
- package/dist/{index-kS20rM5m.js → index-CSVhIZSY.js} +589 -580
- package/dist/{index-zF0gIg9H.js → index-CVHacTbc.js} +1 -1
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-goRooQn5.js → index-CmNsGhDf.js} +272 -368
- package/dist/index-CnTeeRyJ.js +53 -0
- package/dist/{index-Ck3PeOQ5.js → index-CzbNobLv.js} +105 -123
- package/dist/index-D06n1h1b.js +146 -0
- package/dist/{index-CNKP1_IW.js → index-D4SDAfbP.js} +8027 -10766
- package/dist/{index-DntoqWT_.js → index-DVnYQ3Hs.js} +1 -1
- package/dist/{index-BZVhi3ZG.js → index-DcjnS5Sv.js} +2 -2
- package/dist/{index-DtyWsBgg.js → index-Dx9h0FNH.js} +1 -1
- package/dist/{index-CDk0Itu1.js → index-YgP4ihQL.js} +1 -1
- package/dist/{index-B4IAURA_.js → index-kedErkLZ.js} +1759 -2480
- package/dist/{index-CLZnH782.js → index-lnQT4P3d.js} +10 -9
- package/dist/{index.esm2017-C79fd6cz.js → index.esm2017-Jhv2lkrq.js} +105 -105
- package/dist/{loading-Dfr_97Ri.js → loading-NY-FPxVY.js} +1 -1
- package/dist/{lodash-BX2mJOxF.js → lodash-BC_P6kLg.js} +1 -1
- package/dist/{membership-ncNOUJwj.js → membership-BWaK-9FY.js} +3 -3
- package/dist/{money-vEtTzt04.js → money-COoh4GXK.js} +1 -1
- package/dist/{number-BjgTlMsp.js → number-BX5OEXgq.js} +1 -1
- package/dist/objectid-1SUSRtmY.js +145 -0
- package/dist/{plugins-BVGqEmE1.js → plugins-ur-FAoye.js} +3 -3
- package/dist/remy-Qz_pNsUS.js +13 -0
- package/dist/{reward-BGTLhhzT.js → reward-DSsylZ22.js} +1 -1
- package/dist/{rule-BB2VX3Gy.js → rule-BM9GUd1C.js} +3 -3
- package/dist/rule-builder-gC9LH2AC.js +126 -0
- package/dist/{template-DLiHnpjK.js → template-CUV3AMFI.js} +6 -6
- package/dist/timezone-BFZhekOU.js +20 -0
- package/dist/transaction.fn-C5MlkEIC.js +64 -0
- package/dist/{trigger-DrKnfSoi.js → trigger-CbjiuoSo.js} +14 -14
- package/dist/useMarketingMaterialActions-BLisTieA.js +96 -0
- package/dist/{usePagination-Dgd-onzU.js → usePagination-Caah4sJr.js} +1 -1
- package/dist/{user-BcDUmNrZ.js → user-BZC4P_jL.js} +1 -1
- package/dist/{vue-i18n-DNBGmwox.js → vue-i18n-BYz7XAr_.js} +390 -390
- package/dist/{xlsx-BX-U0_Au.js → xlsx-Bn7BqUFA.js} +1 -1
- package/dist/{zod-Mx51GBPY.js → zod-DHH42rXG.js} +1 -1
- package/package.json +3 -3
- package/dist/Credit-CMfcuj5n.js +0 -260
- package/dist/Game-DXKnGuhR.js +0 -330
- package/dist/LoyaltyDashboard-DIArPp71.js +0 -1082
- package/dist/MainLayout-BjvTxTPG.js +0 -41
- package/dist/Mission-BNYk_aPM.js +0 -334
- package/dist/Point-B-L2326L.js +0 -262
- package/dist/Promotion-sMKGkL4w.js +0 -397
- package/dist/Review-CMBAk-Qu.js +0 -1067
- package/dist/ReviewFacebookCallback-BCJTFy3b.js +0 -243
- package/dist/ReviewGoogleCallback-DKUG075r.js +0 -208
- package/dist/Store-DNB3gUIR.js +0 -1996
- package/dist/campaign-CtoHyXVT.js +0 -219
- package/dist/index-P8Qh2yIP.js +0 -52
- package/dist/objectid-C9DiLwge.js +0 -145
- package/dist/useMarketingMaterialActions-B6zaDbNE.js +0 -107
package/dist/Game-DXKnGuhR.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-BVGqEmE1.js";
|
|
5
|
-
import { u as ae } from "./loading-Dfr_97Ri.js";
|
|
6
|
-
import { u as ne } from "./business-CYpW6-Ls.js";
|
|
7
|
-
import { u as ie, c as _ } from "./campaign-CtoHyXVT.js";
|
|
8
|
-
import { b as D, c as G, a as se } from "./campaign-BtLa7KeF.js";
|
|
9
|
-
import { c as re, p as le } from "./duplicateCampaign-DGhOBd5l.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-DCvH0lGA.js";
|
|
12
|
-
import { u as de } from "./template-DLiHnpjK.js";
|
|
13
|
-
import { u as ue } from "./vue-i18n-DNBGmwox.js";
|
|
14
|
-
import { _ as pe } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-BxW-Kc6t.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
|
-
};
|