PageSourceSearch

https://gorilla-casino.biz.ua/js/searchableGames.js

js gorilla-casino.biz.ua collected 2026-10-10 00:30:50 UTC 3,007 bytes, 2 lines download raw bytes

1class SearchableGamesUtil{constructor(e){this.countryId=null,this.apiUrl="",this.isMobile=!1,{MAXIMUM_GAMES_PER_LOAD:this.MAXIMUM_GAMES_PER_LOAD,apiUrl:this.apiUrl,languageCode:this.languageCode,country:this.countryId,isMobile:this.isMobile}=e,this.isMobile=this.isMobile??!1,this.selectedCategory=null,this.selectedCollection=null,this.selectedSecondaryCollection=null,this.providerId=null,this.individuationValue=null,this.searchText="",this.page=0,this.ids=[],this.externalIds=[],this.currentRequest=null,this.hasNextPageRequest=!1,this.pageCount=-1,this.getRandom=!1}abort(){this.currentRequest?.abort()}setPageSize(e){this.MAXIMUM_GAMES_PER_LOAD=e}getParams(){let e={searchText:this.searchText,perPage:this.MAXIMUM_GAMES_PER_LOAD,page:this.page,languageCode:this.languageCode,country:this.countryId,isMobile:this.isMobile};return this.providerId&&(e.providerId=this.providerId),this.selectedCategory&&(e.categoryId=this.selectedCategory),this.selectedCollection&&(e.collectionId=this.selectedCollection),this.selectedSecondaryCollection&&(e.secondaryCollectionId=this.selectedSecondaryCollection),this.individuationValue&&(e.individuationValue=this.individuationValue),this.ids&&(e.ids=this.ids),this.externalIds&&(e.externalIds=this.externalIds),this.getRandom&&(e.getRandom=this.getRandom),e}hasNextPage(){return this.hasNextPageRequest}getPageCount(){return 0<=this.pageCount?this.pageCount:null}async requestGameData(){const a=this;let o=a.getParams();return new Promise((i,t)=>{this.currentRequest=$.get({url:a.apiUrl,method:"GET",data:o,success:function(e,t,s){a.pageCount=parseInt(s.getResponseHeader("X-Pagination-Page-Count")),a.hasNextPageRequest=!(a.pageCount-parseInt(o.page+1)<=0),i(e)},error:function(e){t(e)},complete:function(){a.currentRequest=null}})})}getGames(){let e=[];var t;for(t of this.requestGameData())e.push(generateGameHMTL(t));return e}getGamesData(){return this.requestGameData()}resetPages(){this.page=0}loadParams(e){e.hasOwnProperty("selectedCategory")&&(this.selectedCategory=e.selectedCategory),e.hasOwnProperty("providerId")&&(this.providerId=e.providerId),e.hasOwnProperty("searchText")&&(this.searchText=e.searchText),e.hasOwnProperty("selectedCollection")&&(this.selectedCollection=e.selectedCollection),e.hasOwnProperty("selectedSecondaryCollection")&&(this.selectedSecondaryCollection=e.selectedSecondaryCollection),e.hasOwnProperty("languageCode")&&(this.languageCode=e.languageCode),e.hasOwnProperty("individuationValue")&&(this.individuationValue=e.individuationValue),e.hasOwnProperty("ids")&&(this.ids=e.ids),e.hasOwnProperty("externalIds")&&(this.externalIds=e.externalIds),e.hasOwnProperty("getRandom")&&(this.getRandom=e.getRandom)}clone(){const e=new SearchableGamesUtil({MAXIMUM_GAMES_PER_LOAD:this.MAXIMUM_GAMES_PER_LOAD,apiUrl:this.apiUrl,languageCode:this.languageCode,country:this.countryId,isMobile:this.isMobile});return e.loadParams(this.getParams()),e.page=this.page,e.pageCount=this.pageCount,e}}
2//# sourceMappingURL=searchableGames.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.