PageSourceSearch

https://rocketplay.com/dist/GameRow-BECe_jQr.js

js rocketplay.com collected 2026-09-29 08:18:13 UTC 7,361 bytes, 2 lines download raw bytes

1import{b as F,ax as U,R as D,y as W,s as u,o as s,a as y,p as _,l as T,D as f,h as d,t as h,E as R,e as G,k as w,B as v,j as P,c as $,r as O,ay as k,m as j,v as Y,w as H,F as V,q as x}from"./vendors-Dv9spbI1.js";import{bX as M,bW as L,bY as X,bZ as q,r as p,bT as Q,b_ as Z,b$ as J,bR as A,c0 as K,bQ as ee,c1 as B,a as te,c2 as ae,c3 as oe,c4 as se}from"./index-CIh9X4ag.js";import{g as re,d as E,C as ne,_ as N,F as le,u as z,e as ie,T as ce}from"./ui-lib-BwFvLG0X.js";const me={ref:"lobbyRow",class:"lobby-row"},ue={key:0,class:"lobby-row__cover mobile-layout-width"},ge={class:"h2"},ye={key:1,class:"h2"},de={key:2,class:"h3"},he={key:3,class:"lobby-row__cover-link"},_e={key:4,class:"lobby-row__cover-link"},fe={class:"lobby-row__carousel"},be=F({__name:"LobbyRow",props:{title:{},category:{},url:{},lazy:{type:Boolean},hasTransparentBorder:{type:Boolean},seeAllFn:{type:Function},allowChildrenMismatch:{type:Boolean}},setup(e){const a=e,t=U(),{trackGamesBlockView:b,trackShowAllClick:r}=L(),o=D("lobbyRow");W(()=>{if(!o.value)return;const l=new IntersectionObserver(S=>{var I;(I=S[0])!=null&&I.isIntersecting&&(b(a.category),l.disconnect())},{threshold:.5});l.observe(o.value)});function i(){r(a.category),t.push(a.url)}function n(){r(a.category,M.ICON),t.push(a.url)}function g(){var l;r(a.category),(l=a.seeAllFn)==null||l.call(a)}const m=$(()=>X.includes(a.category)?q(a.category):""),c=O(!0);function C(){c.value=!1}return(l,S)=>{const I=u("router-link");return s(),y("div",me,[e.title?(s(),y("div",ue,[e.url?(s(),_(I,{key:0,to:e.url,class:"lobby-row__cover-title",onClick:S[0]||(S[0]=Me=>T(r)(e.category,T(M).TEXT))},{default:f(()=>[d("p",ge,h(e.title),1),m.value&&c.value?(s(),_(re,{key:0,src:m.value,lazy:e.lazy,class:"lobby-row__icon",alt:"Lobby row icon",onError:C,onClick:R(n,["stop"])},null,8,["src","lazy"])):G("",!0)]),_:1},8,["to"])):e.seeAllFn?(s(),y("p",ye,h(e.title),1)):(s(),y("p",de,h(e.title),1)),e.url?(s(),y("div",he,[w(E,{variant:"secondary",size:"sm",onClick:i},{default:f(()=>[v(h(l.$t("GAME_ROW.BUTTON")),1)]),_:1})])):e.seeAllFn?(s(),y("div",_e,[w(E,{variant:"secondary",size:"sm",onClick:g},{default:f(()=>[v(h(l.$t("GAME_ROW.BUTTON")),1)]),_:1})])):G("",!0)])):G("",!0),d("div",fe,[w(ne,{"transparent-border":e.hasTransparentBorder,"allow-children-mismatch":e.allowChildrenMismatch},{default:f(()=>[P(l.$slots,"default")]),_:3},8,["transparent-border","allow-children-mismatch"])])],512)}}}),Ce={name:"GameItemEmpty",components:{FeIcon:le,UiButton:E},props:{url:{type:Object},category:{type:String}},setup(){const{trackShowAllClick:e}=L();return{trackShowAllClick:e}},data(){return{FeIconConfig:ie}},computed:{...k(z,{isMobile:"isMobile"}),buttonUiProps(){return{variant:"secondary",size:this.isMobile?"sm":"md"}}},methods:{handleShowAllClick(){this.trackShowAllClick(this.category),this.$router.push(this.url)}}},Ge={class:"game-item__empty-body"},we={class:"game-item__empty-wrapper"},Se={class:"game-item__empty-container"},Ie={class:"game-item__empty-text"};function ke(e,a,t,b,r,o){const i=u("FeIcon"),n=u("UiButton"),g=u("router-link");return s(),_(g,{to:t.url,custom:""},{default:f(()=>[d("a",{class:"game-item__empty",onClick:a[0]||(a[0]=R((...m)=>o.handleShowAllClick&&o.handleShowAllClick(...m),["prevent"]))},[d("div",Ge,[d("div",we,[d("div",Se,[w(i,{icon:r.FeIconConfig.icons.outline.search,class:"game-item__empty-img"},null,8,["icon"]),d("div",Ie,h(e.$t("GAME_ITEM.VIEW_ALL")),1)]),w(n,j(o.buttonUiProps,{"full-width":"",class:"game-item__empty-action",onClick:R(o.handleShowAllClick,["stop"])}),{default:f(()=>[v(h(e.$t("GAME_ITEM.VIEW_ALL_BUTTON")),1)]),_:1},16,["onClick"])])])])]),_:1},8,["to"])}const pe=N(Ce,[["render",ke]]),Ae={methods:{navigateGame(e){this.isLogged?this.$router.push({name:p.gameItem,params:{name:e.slug}}):this.$router.push({name:p.registration})},navigateDemo(e){this.$router.push({name:p.gameItem,params:{name:e.slug}})}}},Re=[A.SLUG_CATEGORY_TOP,A.SLUG_CATEGORY_NEW,A.SLUG_CATEGORY_RECOMMENDED],ve={name:"GameRow",components:{LobbyRow:be,GameItem:J,GameItemEmpty:pe,GameItemRandom:Z},mixins:[Ae],props:{games:{type:Array},title:{type:String},titleHide:{type:Boolean},category:{type:[String,Object]},url:{type:Object},urlHide:{type:Boolean},fullWidth:{type:Boolean,default:!1},gtmLocation:{type:String,default:Q.MAIN_PAGE},hasTransparentBorder:{type:Boolean,default:!0},largeItemIndex:{type:[Number,null]},showSkeletonAfterLoad:{type:Boolean},ssrSizeCarousel:{type:Object,default:null},prefetchFirstScreenMode:{type:Boolean,default:!1}},setup(e){const a=O(!1),{getIsLogged:t}=Y(te()),b=B(),r=async()=>{e.category&&await se(e.category),a.value=!0},o=async(i,n)=>{var c;const g=i===!1&&n===void 0;if(!e.category)return;if(n===void 0&&!g){await r();return}if((c=e.games)!=null&&c.length||i===n)return;const m=b.categoryGeo(e.category);b.collections[m]=oe(),a.value=!1,await r()};return H(t,(i,n)=>{o(i,n)},{immediate:!0}),{isPartialRestrictGeo:ae,loadedData:a}},data(){return{TypeImage:ce}},computed:{...k(z,{isMobile:"isMobile"}),...k(B,{getCategoryGames:"getCollection"}),...k(ee,["getGameCategoryNameBySlug"]),gameRow(){if(!this.loadedData||!this.loadedData&&this.isPartialRestrictGeo){let t=15;return this.ssrSizeCarousel&&(this.isMobile&&this.ssrSizeCarousel.mobile?t=this.ssrSizeCarousel.mobile:!this.isMobile&&this.ssrSizeCarousel.desktop&&(t=this.ssrSizeCarousel.desktop)),K(t)}return this.gamesForRow.slice(0,15)},enableRandomGame(){return Re.includes(this.category)},gamesForRow(){return this.games?this.games:this.getCategoryGames(this.category,1)},urlCategoryGames(){return this.urlHide?{}:this.url?this.url:{name:p.categoryGames,params:{slug:this.category}}},getCategoryName(){return this.titleHide?"":this.title?this.title:this.translateCategory(this.getGameCategoryNameBySlug(this.category))}},methods:{translateCategory(e){return this.$te(`GAME_NAV.CATEGORIES.${e}`)?this.$t(`GAME_NAV.CATEGORIES.${e}`):e},lazyImgMode(e){return this.prefetchFirstScreenMode===!0?this.isMobile?e>2:e>5:!0}}};function Ee(e,a,t,b,r,o){const i=u("GameItem"),n=u("GameItemRandom"),g=u("GameItemEmpty"),m=u("LobbyRow");return o.gameRow.length?(s(),_(m,{key:0,category:t.category,"has-transparent-border":t.hasTransparentBorder,title:o.getCategoryName,url:o.urlCategoryGames,lazy:!t.prefetchFirstScreenMode,"allow-children-mismatch":!!t.ssrSizeCarousel,class:"game-row"},{default:f(()=>[(s(!0),y(V,null,x(o.gameRow,(c,C)=>(s(),_(i,{key:c.id,game:c,category:t.category,"is-large":t.largeItemIndex===C,"type-image":r.TypeImage.GAME_ROW_THUMB,"gtm-location":t.gtmLocation,"gtm-index":C,lazy:o.lazyImgMode(C),onOpenDemo:l=>e.navigateDemo(c),onOpenGame:l=>e.navigateGame(c)},null,8,["game","category","is-large","type-image","gtm-location","gtm-index","lazy","onOpenDemo","onOpenGame"]))),128)),o.enableRandomGame?(s(),_(n,{key:0,"catecory-games":o.gamesForRow,
1category:t.category,"gtm-location":t.gtmLocation},null,8,["catecory-games","category","gtm-location"])):t.category?(s(),_(g,{key:1,category:t.category,url:o.urlCategoryGames},null,8,["category","url"])):G("",!0)]),_:1},8,["category","has-transparent-border","title","url","lazy","allow-children-mismatch"])):G("",!0)}const Te=N(ve,[["render",Ee]]),Ne=Object.freeze(Object.defineProperty({__proto__:null,default:Te},Symbol.toStringTag,{value:"Module"}));export{Te as G,be as _,Ne as a,Ae as g};
2//# sourceMappingURL=GameRow-BECe_jQr.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.