PageSourceSearch

https://rocketplay34.com/dist/CategoryPage-BaVYl2F7.js

js rocketplay34.com collected 2026-10-07 15:46:32 UTC 3,078 bytes, 2 lines download raw bytes

1import{u as D,_ as $}from"./useShowMore-D4Wpwr4j.js";import{aO as q,at as F,aF as K,c1 as J,cl as j,cr as H,c4 as y,cn as Q,r as z,c0 as W,bQ as X,bT as E,bR as l,co as Z}from"./index-CN4xOLzz.js";import{b as ee,aw as ae,U as te,v as T,w as L,y as se,o as n,a as _,h as r,t as p,k as M,e as oe,p as le,D as ne,B as re,r as d,c as t,ba as ue}from"./vendors-D_z06TSl.js";import{d as ce,_ as ge}from"./ui-lib-CSML94fI.js";import"./ReadMoreBlock-n713KcBh.js";const ie={class:"game-hall__row-cover grid-full-width"},me={class:"game-hall__row-title text--align-center h1"},_e={class:"game-hall__list grid-full-width"},pe={class:"flex flex-row justify-center items-center gap-24 lg:gap-32 grid-center-position"},de={key:0,class:"game-hall__empty-text"},ve={key:2,id:"pagination-end"},Ce=ee({__name:"CategoryPage",props:{slug:{},gamesProp:{},categoryNameProp:{},emptyTextProp:{}},setup(u){const s=ae(),{t:w,te:O}=te(),{seoMeta:R}=T(q()),a=u,{getUserLocale:N}=T(F()),c=d(1),g=d(null),i=d(!1),x=K(),{isShowMore:v,handleShowMore:P}=D({slug:ue(()=>a.slug),paginationCb:G}),I=t(()=>{var S;const e=s.name===z.main?"/home":s.path,o=R.value[e]||{};return((S=o==null?void 0:o.content)==null?void 0:S.replace(/\n/g,"").replace(/\r/g,""))||""}),{getCollection:B,getCollectionPagination:b}=J(),m=t(()=>B(a.slug,c.value+g.value,g.value)),C=t(()=>b(a.slug)),h=t(()=>a.gamesProp&&a.gamesProp.length>0?a.gamesProp:m.value.length>0?m.value:W(x.gamesPageLimit)),k=t(()=>{var e;return v.value&&m.value.length&&((e=C.value)==null?void 0:e.next_page)!==null}),U=t(()=>{const{getGameCategoryNameBySlug:e}=X(),o=e(a.slug);return O(`GAME_NAV.CATEGORIES.${o}`)?w(`GAME_NAV.CATEGORIES.${o}`):o}),A=t(()=>!h.value.length&&a.emptyTextProp),V=t(()=>a.slug===l.SLUG_CATEGORY_ALL?E.ALL_GAMES:E.CATEGORY_GRID),Y=t(()=>{const e=[l.SLUG_CATEGORY_BLACKJACK,l.SLUG_CATEGORY_BACCARAT,l.SLUG_CATEGORY_JACKPOT,l.SLUG_CATEGORY_BTC_GAMES];return N.value===Z.AUSTRALIAN_ENGLISH&&(a.slug===l.SLUG_CATEGORY_LIVE||e.includes(s.params.slug))});function f(){if(a.slug===H.FAVORITE_GAMES)return;const e=a.slug||s.params.slug;e&&y(e,s.query.page)}async function G(){var e;a.slug&&(i.value=!0,await y(a.slug,++c.value),i.value=!1,((e=C.value)==null?void 0:e.next_page)===null&&Q.removeListener())}return L(()=>s.path,()=>{c.value=1,f()}),L(v,P,{immediate:!0}),se(()=>{g.value=Number(s.query.page)>0?Number(s.query.page)-1:null,f()}),(e,o)=>(n(),_("div",null,[r("div",ie,[r("p",me,p(u.categoryNameProp||U.value),1)]),r("div",_e,[M(j,{"category-games":u.slug,"full-width":!0,games:h.value,"gtm-location":V.value},null,8,["category-games","games","gtm-location"])]),r("div",pe,[A.value?(n(),_("div",de,p(A.value),1)):oe("",!0),k.value?(n(),le(ce,{key:1,variant:"tertiary",class:"game-hall__load-more",loading:i.value,onClick:G},{default:ne(()=>[re(p(e.$t("button.LOAD_MORE")),1)]),_:1},8,["loading"])):(n(),_("div",ve))]),M($,{"show-full-text":Y.value,"static-page":I.value},null,8,["show-full-text","static-page"])]))}}),ye=ge(Ce,[["__scopeId","data-v-4aa96401"]]);export{ye as default};
2//# sourceMappingURL=CategoryPage-BaVYl2F7.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.