"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3077],{36156:function(n,e,t){var l=t(67608);$(document).ready((function(){(0,l.yv)()}))},68825:function(n,e,t){t(96647),t(75505),t(87714),t(82801),t(1174),t(74916),t(15306),t(69826),t(41539),t(92222),t(73210);var l=t(67608);t(47770),t(1589);var a=0,i=null,o=!1;function s(){if($(".landingbox-tabnav").length>0){var n=$(".landingbox-tabnav .landingbox-tabnav--item.active").text().replace(/\s+/g,""),e=!1;$("#bonus_game_type option").each((function(){if($(this).text().replace(/\s+/g,"")===n)return $(this).prop("selected",!0),$("#bonus_game_type").siblings(".select2-container").find(".select2-selection__rendered").text($(this).text()),e=!0,!1})),e||$("#bonus_game_type").siblings(".select2-container").find(".select2-selection__rendered").text("All Types")}}function r(){$(window).width()<1200&&$(".casino-item.bonus").each((function(){var n=$(this).children(".casino-item--banking"),e=$(this).children(".casino-item--code");n.length&&!n.html().trim()&&n.remove(),e.length&&""===$.trim(e.text())&&e.remove()}))}$(document).ready((function(){var n,e,t=$(".casino-block--holder.bonuses").data("query"),c=atob(t),d=JSON.parse(c);n=$(".casino-block--holder.bonuses").data("region")?$(".casino-block--holder.bonuses").data("region"):region,$(".casino-block--holder.bonuses").data("page")&&(e=!0);var u=null,h=d.order,b=d.hasOwnProperty("softwareId")?d.softwareId:null,g=d.hasOwnProperty("bankingId")?d.bankingId:null,f=null,v=null,p=!1,m=null,k=null,w=d.hasOwnProperty("gameTypeId")?d.gameTypeId:null;function x(){u=null,i=null,$("#load-more-bonuses").data("list",2),$("#load-all-bonuses").data("list",2)}s(),$("#load-more-bonuses").click((function(n){var e;n.preventDefault();var t=$(this);e=t.data("list"),t.data("list",e+1),$("#load-all-bonuses").data("list",e+1),u=e,I()})),$("#load-all-bonuses").on("click",(function(){var n,e=$(this);i=!0,n=e.data("list"),e.data("list",n+1),u=n,I(),$(window).bind("scroll",(function(){null!=i&&!1===o&&a>0&&$(window).scrollTop()>=$(".bonuses-holder").offset().top+$(".bonuses-holder").outerHeight()-window.innerHeight&&(n=e.data("list"),e.data("list",n+1),u=n,I())}))})),$(document).on("change","#onlyCashable",(function(){m=!!$(this).prop("checked")||null,I()})),$(document).on("change","#bonus_all_filters select.selector",(function(){if("country"===$(this).data("filter")&&(n=(0,l.Ne)($(this),".casino-block--holder.bonuses .country-info-box","#bonus_all_filters #bonus_country",n)),"software"===$(this).data("filter")&&0!=b&&(b=$(this).val()),"banking"===$(this).data("filter")&&(g=$(this).val()),"game-type"===$(this).data("filter")&&(w=$(this).val(),$(".landingbox-tabnav").length>0)){var e=$(this).find("option:selected").text().replace(/\s+/g,"");$(".landingbox-tabnav .landingbox-tabnav--item").each((function(){$(this).text().replace(/\s+/g,"")===e?($(this).addClass("active"),$(this).siblings().removeClass("active")):$(this).removeClass("active")}))}!1===p&&(x(),I())})),$(".rating-slider").each((function(){$(this).slider({range:"min",step:.5,min:0,max:5,slide:function(n,e){0!==e.value?($(this).parent().find(".filter-value").html(e.value+"+").show(),$(this).parent().find(".filter-value-all").hide()):($(this).parent().find(".filter-value").hide(),$(this).parent().find(".filter-value-all").show())}})})),r(),$(window).resize((function(){r()})),$(".casino-block--holder.bonuses .reset-country").click((function(){n=null,p=!0,p=!1,$("#bonus_country").val(null).trigger("change"),x(),$(".casino-block--holder.bonuses .country-info-box").hide()})),$(".rating-slider.bonus").on("slidechange",(function(n,e){v=e.value,x(),I()}));var y=window.location.hash;function C(){$(".landingbox-tabnav--item").each((function(){var n=$(this).data("fragment");y===n&&(_.call(this),$(this).css("order",-1))}))}function _(){$(this).data("value");w="gameTypeId"===$(this).data("params")?$(this).data("value"):null,k="typeId"===$(this).data("params")?$(this).data("value"):null,$(this).addClass("active"),$(this).siblings().removeClass("active"),x(),I()}function I(){!function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,h=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,b=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,g=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null,f=arguments.length>10&&void 0!==arguments[10]?arguments[10]:null,v=arguments.length>11&&void 0!==arguments[11]?arguments[11]:null,p="/web/partial/bonus/list?";null!=f&&(p+="&order"+f);null!=n&&(p+="&region="+n);null!=e&&(p+="&page="+e);null!=i&&(p+="&softwareId="+i);null!=c&&(p+="&bankingId="+c);null!=d&&""!==d&&(p+="&name="+d);null!=u&&0!==u&&(p+="&rating="+u);null!=g&&(p+="&gameTypeId="+g);null!=h&&(p+="&cashable="+h);null!=b&&(p+="&typeId="+b);null!=v&&(p+="&bonusPage=true");p+="&pagination=true&showColoredLogo=true",$(".spinner-holder").addClass("d-flex"),o=!0,$(".casino-block--holder.bonuses .remaining").removeClass("active"),$(".casino-block--holder.bonuses .buttons").hide(),null==e&&null==t&&$(".bonuses-holder").html("");$.ajax({url:p,dataType:"html",type:"get",success:function(n,i,c){var d=n,u=c.getResponseHeader("x-total");$(".bonuses-holder").append(d);var h=c.getResponseHeader("x-page-items"),b=$(".load").data("items");(a=u-(b*((e||"1")-1)+parseInt(h)))>0?($(".casino-block--holder.bonuses .remaining-no").html(a),$(".casino-block--holder.bonuses .load").addClass("active"),null==t&&$(".casino-block--holder.bonuses .buttons").show()):($(".casino-block--holder.bonuses .load").removeClass("active"),$(".casino-block--holder.bonuses .remaining-no").text("no")),$(".casino-block--holder.bonuses .remaining").addClass("active"),s(),$(".bonus-hover").each((function(){var n=$(this),e=$(this).parents(".hover-block");$(this).css("left","calc(-".concat(n.width()/2,"px + ").concat(e.width()/2,"px)"))})),(0,l.Nu)(),$(".spinner-holder").removeClass("d-flex"),r(),o=!1}})}(n,u,i,b,g,f,v,m,k,w,h,e)}$(".view-all-button").on("click",(function(n){n.preventDefault(),y="#".concat($(this).attr("href").split("#")[1]),C()})),C(),$(".landingbox-tabnav--item").click((function(){_.call(this)})),$(".sort-block.bonuses .dropdown-item").each((function(){$(this).click((function(){var n=$(this).html();$(this).parent().parent().find(".dropdown-toggle").html(n),h=$(this).data("filter"),x(),I(),$(this).parent().hide()}))})),$(".sort-block.bonuses .dropdown-toggle").click((function(){$(this).siblings().toggle()})),$(".casino-block--holder.bonuses .toggle-filters").each((function(){var n=$(this).text(),e=$(this).data("toggle-text");$(this).click((function(){$(this).hasClass("active")?($("#"+$(this).data("toggle")).slideUp(200),$(this).html('<i class="fa-regular fa-bars-filter"></i> '.concat(n)).removeClass("active")):($("#"+$(this).data("toggle")).slideDown(200),$(this).html('<i class="fa-regular fa-bars-filter"></i> '.concat(e)).addClass("active"))}))})),$("#bonusSearch").donetyping((function(n){null!==$(this).val()&&(f=$(this).val(),x(),I())}))}))}},function(n){var e=function(e){return n(n.s=e)};n.O(0,[9755,102,4140,9439,6549,5260,7608,6783,7170,7722],(function(){return e(36156),e(17170),e(68825)}));n.O()}]);