@feedmepos/mf-connect 0.1.98-beta.3 → 0.1.98-beta.30

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.
Files changed (123) hide show
  1. package/dist/{App-DEtGn29M.js → App-DUpK_Q7f.js} +808 -665
  2. package/dist/{AuditLogs-Mrm0iq9P.js → AuditLogs-DWYbj4lo.js} +9 -9
  3. package/dist/{Bin-D9Pu0L6h.js → Bin-DieOnDz0.js} +8 -8
  4. package/dist/{Broadcast-BZDQtN8x.js → Broadcast-UQ-vMYLl.js} +39 -36
  5. package/dist/CampaignAnalytic-CfvtyBoa.js +1656 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Bxlbz-JW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CuJWOZ3o.js} +6 -5
  7. package/dist/{Card-BdMSuxr4.js → Card-Te7LGbdC.js} +18 -18
  8. package/dist/{Collections-D2IOFKrJ.js → Collections-C-QeTQej.js} +14 -13
  9. package/dist/Credit-B459_0Nt.js +286 -0
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-jmfMQG79.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Dp3i8kku.js} +34 -30
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BYQDCpXN.js → EffectSheet.vue_vue_type_style_index_0_lang-XgrUL64F.js} +6 -6
  12. package/dist/{Experience-Dm5TDsKH.js → Experience-BUiwaqiZ.js} +112 -86
  13. package/dist/{FileSaver.min-G6JMp965.js → FileSaver.min-BBLnxnqN.js} +1 -1
  14. package/dist/Game-iOJbGiNe.js +356 -0
  15. package/dist/{Grab-BXfBhrCM.js → Grab-bC6BeXxc.js} +32 -31
  16. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-C7EIMTui.js → ImageInput.vue_vue_type_script_setup_true_lang-eiJJrTiu.js} +1 -1
  17. package/dist/{Index-DfPPobH8.js → Index-Utb2MWAQ.js} +10 -10
  18. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Cpx1HMpd.js → LocationPicker.vue_vue_type_script_setup_true_lang-B7iWGh2L.js} +1 -1
  19. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Csse-q2U.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CppfUz1y.js} +1 -1
  20. package/dist/LoyaltyDashboard-BHSHnBpi.js +1345 -0
  21. package/dist/{MainLayout-DxAYEJg1.js → MainLayout-DMqkiGFT.js} +1 -1
  22. package/dist/{Marketing-CPQQG8Y9.js → Marketing-DGfDqW7v.js} +4 -4
  23. package/dist/{MarketingMaterialEdit-ssilnzNw.js → MarketingMaterialEdit-p5QBPd83.js} +6 -6
  24. package/dist/{Member-DmoUk3Dx.js → Member-C2KIOib-.js} +11 -11
  25. package/dist/{MemberList-Cm2BWPrW.js → MemberList-Esp9384f.js} +36 -35
  26. package/dist/{MemberTransactions-Cxr87RMl.js → MemberTransactions-CKYG04pY.js} +1 -1
  27. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DpUg4Uwi.js → MessageInput.vue_vue_type_script_setup_true_lang-CItc3B3N.js} +5434 -5279
  28. package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Bg_0YlwG.js +38 -0
  29. package/dist/Mission-BlckuFfz.js +360 -0
  30. package/dist/{Overview-CfigslHq.js → Overview-B5PSmDQr.js} +18 -18
  31. package/dist/Overview-suva6hd8.js +1104 -0
  32. package/dist/Point-CVexYech.js +288 -0
  33. package/dist/Promotion-VW7rqIn-.js +423 -0
  34. package/dist/{Queue-B7kxDPZV.js → Queue-Dh4C5OO9.js} +12 -12
  35. package/dist/{Record-BGULqygn.js → Record-CYGrQ_Cb.js} +9 -9
  36. package/dist/Review-mxbjxTB1.js +45 -0
  37. package/dist/ReviewFacebookCallback-C-pSgxeh.js +238 -0
  38. package/dist/ReviewGoogleCallback-CnNbGQdM.js +213 -0
  39. package/dist/{Reward-C0w5c1Th.js → Reward-CQ8AgV1m.js} +16 -16
  40. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CspVlyRZ.js → RewardGroup.vue_vue_type_script_setup_true_lang-DxaejEKe.js} +11 -11
  41. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-QYsK7vE4.js → RuleGroup.vue_vue_type_script_setup_true_lang-CxHheatc.js} +16 -15
  42. package/dist/{Segment-I_p06AoA.js → Segment-Crm395ad.js} +39 -37
  43. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DV79EJm9.js → SelectItems.vue_vue_type_script_setup_true_lang-CnA8A--R.js} +2 -2
  44. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CUwwzTTV.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dd-mYmBN.js} +12 -12
  45. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D2Nv32U5.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DgkPQA3H.js} +4 -4
  46. package/dist/{Setting-DOMSAMUz.js → Setting-AKRWf4zD.js} +40 -40
  47. package/dist/{SettingAdvertisements-IeGC6PHz.js → SettingAdvertisements-DD9U8S6N.js} +12 -12
  48. package/dist/Settings-D7c8sBA8.js +179 -0
  49. package/dist/{Store-DLzj0qGi.js → Store-BN3RP_u-.js} +21 -21
  50. package/dist/{StoreRewards-BPhAkGNl.js → StoreRewards-BXc96ZMM.js} +15 -15
  51. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DpcaOgdN.js → StoreTransactions.vue_vue_type_script_setup_true_lang-B76NSzNg.js} +190 -187
  52. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DUdAxdEO.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DnhMV2aq.js} +2 -2
  53. package/dist/{Tier-7MveQA4f.js → Tier-Bbktc4H8.js} +36 -34
  54. package/dist/{Title-kyAzLGqm.js → Title-BU8pzF9c.js} +39 -37
  55. package/dist/{Transaction-Chl3d3Ai.js → Transaction-B3_M0MMz.js} +2 -2
  56. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CZsaFtae.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DtFoQXUu.js} +6 -6
  57. package/dist/{Voucher-CxIPPul5.js → Voucher-CJruHWmd.js} +156 -133
  58. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BntA1IAx.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DzIQ_1Nb.js} +12 -12
  59. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CiOmadge.js → ZodTextField.vue_vue_type_script_setup_true_lang-Lq5Z_Glg.js} +2 -2
  60. package/dist/{app-5YllsPJi.js → app-CmK_zWVU.js} +3356 -2864
  61. package/dist/app.js +1 -1
  62. package/dist/{business-C0zArPJj.js → business-Br3Sboxg.js} +1 -1
  63. package/dist/campaign-53KorSW_.js +100 -0
  64. package/dist/{campaign-BHl5a5Z1.js → campaign-Dz57HOfP.js} +74 -96
  65. package/dist/{campaign.enum-CHWTkc9k.js → campaign.enum-Dx-Zo68Q.js} +1 -1
  66. package/dist/{campaign.fn-BtwnAETQ.js → campaign.fn-D-J5-IK0.js} +127 -127
  67. package/dist/{collectible.enum-BvoISTK3.js → collectible.enum-Liy2wH3s.js} +1 -1
  68. package/dist/collection.fn-cEP4Vjv6.js +26 -0
  69. package/dist/{duplicateCampaign-C27ikU2f.js → duplicateCampaign-bBnEmbXg.js} +2 -2
  70. package/dist/{effect-CARgKjhU.js → effect-RQs_nrvo.js} +1 -1
  71. package/dist/{email-addresses-CnTsfZHe.js → email-addresses-CAX-uL1B.js} +2 -2
  72. package/dist/{export-CO8-3Ob9.js → export-DSgRDjwv.js} +3 -3
  73. package/dist/google-C3S8u0mT.js +4 -0
  74. package/dist/{helper-C617AZcV.js → helper-DlEUDhaf.js} +1 -1
  75. package/dist/{index-CMfyVF2h.js → index-BA0GllA8.js} +105 -123
  76. package/dist/index-BHdJaRRQ.js +146 -0
  77. package/dist/{index-9AxeGyVh.js → index-BpXYj8xl.js} +272 -369
  78. package/dist/index-C8cXXcLk.js +45 -0
  79. package/dist/{index-Da8trM3D.js → index-CBvgQWbo.js} +1 -1
  80. package/dist/{index-gPrU9b68.js → index-CHmtKN0J.js} +8027 -10766
  81. package/dist/{index-hKv7PcTR.js → index-CJ0Ofs8g.js} +1 -1
  82. package/dist/{index-CFO8nwbC.js → index-CQ40sF6g.js} +8 -7
  83. package/dist/index-C_H8jFYf.js +2743 -0
  84. package/dist/{index-DMvP3cOz.js → index-CbBnibrX.js} +184 -210
  85. package/dist/{index-DIcwj1r2.js → index-Cm4hBY6K.js} +1 -1
  86. package/dist/{index-CtXx42Yb.js → index-D3obFXMZ.js} +1 -1
  87. package/dist/{index-B0BE7PIS.js → index-DJQCoy-g.js} +1 -1
  88. package/dist/{index-DNf6qgpV.js → index-DansV6RZ.js} +2 -2
  89. package/dist/{index-wL9aIsub.js → index-Dpyep_-G.js} +587 -578
  90. package/dist/{index-B2ZvboNZ.js → index-ZFdRmzK7.js} +1 -1
  91. package/dist/{index-CEJgFylS.js → index-fVWfEBZV.js} +26 -17
  92. package/dist/{index.esm2017-BFgbXDc8.js → index.esm2017-GDYw3ujs.js} +105 -105
  93. package/dist/{loading-BxpiUNaf.js → loading-CevzAqpQ.js} +1 -1
  94. package/dist/{lodash-rPOvq9te.js → lodash-CcmP-ZWD.js} +1 -1
  95. package/dist/{membership-lfX5TNVQ.js → membership-CP-ZGC-Y.js} +3 -3
  96. package/dist/{money-CuUoYzPn.js → money-B_CYilsX.js} +1 -1
  97. package/dist/{number-DMk8hvKt.js → number-CqWVPhp0.js} +1 -1
  98. package/dist/objectid-DkTaCd6K.js +145 -0
  99. package/dist/{plugins-CyYjHO_X.js → plugins-Br271boW.js} +3 -3
  100. package/dist/{reward-BxwaSc-X.js → reward-CKQRdG-H.js} +1 -1
  101. package/dist/{rule-76SluGaP.js → rule-D0Rv4CuV.js} +3 -3
  102. package/dist/rule-builder-BUn6UMwW.js +126 -0
  103. package/dist/{template-ByceGw-A.js → template-D5GB4cAl.js} +6 -6
  104. package/dist/timezone-DqRsL54X.js +20 -0
  105. package/dist/{trigger-CxM5x3Sj.js → trigger-Ci92pTJU.js} +5 -5
  106. package/dist/{useMarketingMaterialActions-CHXVZ61f.js → useMarketingMaterialActions-C_mu-ac8.js} +3 -3
  107. package/dist/{usePagination-BKfoMHBB.js → usePagination-CWQ2WXiM.js} +1 -1
  108. package/dist/{user-Cqjv0IpD.js → user-CeAfYeZW.js} +1 -1
  109. package/dist/{vue-i18n-Q-nKu_E3.js → vue-i18n-P_SZNhrt.js} +419 -419
  110. package/dist/{xlsx-D1LobU8O.js → xlsx-CTo0cmDn.js} +1 -1
  111. package/dist/{zod-B5vUvKbD.js → zod-CPa57Pxb.js} +1 -1
  112. package/package.json +3 -3
  113. package/dist/Credit-BWyLeJpj.js +0 -260
  114. package/dist/Game-BB81nS7Y.js +0 -330
  115. package/dist/LoyaltyDashboard-BWC3rDDk.js +0 -1082
  116. package/dist/Mission-ChWPNxbI.js +0 -334
  117. package/dist/Point-Ko81Ny1q.js +0 -262
  118. package/dist/Promotion-CfyscRNN.js +0 -397
  119. package/dist/Review-C7Nx6a5t.js +0 -959
  120. package/dist/ReviewFacebookCallback-DKmL0TYZ.js +0 -243
  121. package/dist/ReviewGoogleCallback-C6iFFEfS.js +0 -208
  122. package/dist/campaign-C_49MeEc.js +0 -219
  123. package/dist/objectid-VPzb0Etb.js +0 -145
@@ -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-CyYjHO_X.js";
5
- import { u as ae } from "./loading-BxpiUNaf.js";
6
- import { u as ne } from "./business-C0zArPJj.js";
7
- import { u as ie, c as _ } from "./campaign-C_49MeEc.js";
8
- import { b as D, c as G, a as se } from "./campaign-BHl5a5Z1.js";
9
- import { c as re, p as le } from "./duplicateCampaign-C27ikU2f.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-jmfMQG79.js";
12
- import { u as de } from "./template-ByceGw-A.js";
13
- import { u as ue } from "./vue-i18n-Q-nKu_E3.js";
14
- import { _ as pe } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-CUwwzTTV.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
- };