1(()=>{"use strict";var t={2652:function(t,e,o){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=n(o(2956));new(function(){function t(){this.http=new s.default,this.initFavoriteSlotsButtons(),this.initFavoriteCasinosButtons(),this.slotsLoadedEvent(),this.casinosLoadedEvent()}return t.prototype.initFavoriteSlotsButtons=function(){var t=this;this.favoritesSlotsButtons=[].slice.call(document.querySelectorAll(".js-favarite-slot-btn")),this.favoritesSlotsButtons.length&&this.favoritesSlotsButtons.forEach((function(e){e.classList.remove("js-favarite-slot-btn"),e.addEventListener("click",t.onFavoriteSlotButtonClick.bind(t))}))},t.prototype.initFavoriteCasinosButtons=function(){var t=this;this.favoritesCasinosButtons=[].slice.call(document.querySelectorAll(".js-favarite-casino-btn")),this.favoritesCasinosButtons.length&&this.favoritesCasinosButtons.forEach((function(e){e.classList.remove("js-favarite-casino-btn"),e.addEventListener("click",t.onFavoriteCasinoButtonClick.bind(t))}))},t.prototype.onFavoriteSlotButtonClick=function(t){var e=t.currentTarget.dataset.game,o=[].slice.call(document.querySelectorAll('[data-game="'+e+'"]'));this.http.request("get",{action:"add_favorites",game_id:e}).then((function(){o.length&&o.forEach((function(t){return t.classList.toggle("added")}))}))},t.prototype.onFavoriteCasinoButtonClick=function(t){var e=t.currentTarget.dataset.casino,o=[].slice.call(document.querySelectorAll('[data-casino="'+e+'"]'));this.http.request("get",{action:"add_casino_favorites",casino_id:e}).then((function(){o.length&&o.forEach((function(t){return t.classList.toggle("added")}))}))},t.prototype.slotsLoadedEvent=function(){var t=this;document.addEventListener("slotsLoadedEvent",(function(){t.initFavoriteSlotsButtons()}))},t.prototype.casinosLoadedEvent=function(){var t=this;document.addEventListener("casinosLoadedEvent",(function(){t.initFavoriteCasinosButtons()}))},t}())},2956:(t,e,o)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=o(9750),s=function(){function t(){this.BASE_URL=void 0!==window.vars?window.vars.ajax_url:window.ajaxurl}return t.prototype.queryParams=function(t){var e=this;return void 0===t&&(t=[]),Object.keys(t).map((function(o){return"object"==typeof t[o]?e.queryParams(t[o]):encodeURIComponent(o)+"="+encodeURIComponent(t[o])})).join("&")},t.prototype.withQuery=function(t,e){void 0===e&&(e={});var o=this.queryParams(e);return o?t+(-1===t.indexOf("?")?"?":"&")+o:t},t.prototype.parseXHRResult=function(t){return{ok:t.status>=200&&t.status<300,status:t.status,statusText:t.statusText,headers:t.getAllResponseHeaders(),data:t.responseText,json:function(){return JSON.parse(t.responseText)}}},t.prototype.errorResponse=function(t,e){return void 0===e&&(e=null),{ok:!1,status:t.status,statusText:t.statusText,headers:t.getAllResponseHeaders(),data:e||t.statusText,json:function(){return JSON.parse(e||t.statusText)}}},t.prototype.request=function(t,e,o,s,r){var i=this;void 0===e&&(e={}),void 0===o&&(o=null),void 0===s&&(s=!0),void 0===r&&(r=n.DEFAULT_REQUEST_OPTIONS);var a=r.ignoreCache||n.DEFAULT_REQUEST_OPTIONS.ignoreCache,u=r.headers||n.DEFAULT_REQUEST_OPTIONS.headers,c=r.timeout||n.DEFAULT_REQUEST_OPTIONS.timeout;return s&&void 0!==this.xhr&&this.xhr.abort(),this.xhr=new XMLHttpRequest,new Promise((function(n){var s=i.xhr;s.open(t,i.withQuery(i.BASE_URL,e)),u&&Object.keys(u).forEach((function(t){return s.setRequestHeader(t,u[t])})),a&&s.setRequestHeader("Cache-Control","no-cache"),s.timeout=c,s.onload=function(){n(i.parseXHRResult(s))},s.onerror=function(){n(i.errorResponse(s,"Failed to make request."))},s.ontimeout=function(){n(i.errorResponse(s,"Request took longer than expected."))},"post"===t&&o?(s.setRequestHeader("Content-Type","application/json;charset=UTF-8"),s.send(JSON.stringify(o))):s.send()}))},t}();e.default=s},9750:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_REQUEST_OPTIONS=void 0,e.DEFAULT_REQUEST_OPTIONS={ignoreCache:!1,headers:{Accept:"application/json, text/javascript, text/plain"},timeout:5e4}}},e={};(function o(n){var s=e[n];if(void 0!==s)return s.exports;var r=e[n]={exports:{}};
1return t[n].call(r.exports,r,r.exports,o),r.exports})(2652)})();
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.