1"use strict";(self.tcthemejsonpFunction=self.tcthemejsonpFunction||[]).push([[3665],{3817(t,e,i){var r=i(4692);class n{constructor(t){this.current={},this.rawList=[],this.filteredList=[],r.getJSON(t.jsonList).done(e=>{this.rawList=e,this.filteredList=this.filterGPOnlyOffers(this.rawList),this.current={id:t.currentItem,index:this.filteredList.findIndex(e=>e.id===parseInt(t.currentItem))},this.current.index>-1&&this.initialize()}).fail(()=>{this.error("offers pagination json file error")})}error(t){console.log(t)}filterGPOnlyOffers(t){return t.filter(t=>1!==parseInt(t.is_guest_portal_only))}initialize(){let t=this.filteredList[this.calculatePrevious()],e=this.filteredList[this.calculateNext()];this.render(t,e)}calculatePrevious(){return 0===this.current.index?this.filteredList.length-1:this.current.index-1}calculateNext(){return this.current.index+1===this.filteredList.length?0:this.current.index+1}render(t,e){let i=document.querySelector(".module-nav__item.prev"),r=document.querySelector(".module-nav__item.next");i&&(i.href=t.url),r&&(r.href=e.url)}}const s={init:function(){"undefined"!=typeof paginationData&&new n(paginationData)}};i.d(e,["default",0,s])}}]);
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.