!function(){"use strict";var e=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),Object.defineProperty(this,"toggleButton",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"headerBox",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"toggleButtonSelector",{enumerable:!0,configurable:!0,writable:!0,value:".js-main-menu-hamburger"}),Object.defineProperty(this,"headerBoxSelector",{enumerable:!0,configurable:!0,writable:!0,value:".js-header-box"}),this.setupElements(),this.setupListeners()}return Object.defineProperty(e.prototype,"setupElements",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.toggleButton=document.querySelector(this.toggleButtonSelector);var e=document.querySelector(this.headerBoxSelector);e&&e.parentNode instanceof HTMLElement&&(this.headerBox=e.parentNode)}}),Object.defineProperty(e.prototype,"setupListeners",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;this.toggleButton&&this.toggleButton.addEventListener("click",(function(){e.headerBox instanceof HTMLElement&&e.isMobile()&&e.isRestrictedPage()&&(e.isActive()?(e.headerBox.style.left="15px",e.headerBox.style.right="15px"):(e.headerBox.style.left="0",e.headerBox.style.right="0"))}))}}),Object.defineProperty(e.prototype,"isActive",{enumerable:!1,configurable:!0,writable:!0,value:function(){return!!this.toggleButton&&this.toggleButton.classList.contains("is-active")}}),Object.defineProperty(e.prototype,"isMobile",{enumerable:!1,configurable:!0,writable:!0,value:function(){return window.innerWidth<=575}}),Object.defineProperty(e.prototype,"isRestrictedPage",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=document.querySelector("body");return!!e&&e.classList.contains("single-casino")}}),e}(),t=function(){$(".js-from-deep").on("click",(function(){var e=$("#menu_heading").text();document.querySelectorAll(".js-main-menu li").forEach((function(t){if(t.textContent.includes(e)){var n=t.parentElement.parentElement,r=n.querySelector("span")||n.querySelector("a"),i=$("#menu_heading");i.hasClass("active")&&i.text(r.textContent)}}));var t=$(document).find(".actual"),n=t.parent(),r=n.parent();n.hasClass("menu-item-depth-0")?(t.slideUp(50).removeClass("actual"),$("#menu_heading").removeClass("active")):(t.slideUp(50).removeClass("actual"),r.addClass("actual"))}))},n=function(){var e=document.querySelector(".js-hamburger-container");e&&(e.style.display=window.innerWidth<1199?"block":"none")};$((function(e){var r,i,o;(r=document.querySelector(".js-main-menu-hamburger"))&&r.addEventListener("click",(function(){document.querySelector("body").classList.toggle("has-overlay")})),(i=document.querySelector("#menu_heading"))&&i.replaceWith(i.cloneNode(!0)),t(),function(){if(!(window.innerWidth<1199)){var e=document.querySelectorAll(".js-submenu li"),t=document.querySelector(".js-submenu");if(e.length){var n="is-borderless",r=function(){e.forEach((function(e){e.classList.contains(n)&&e.classList.remove(n)}))};e.forEach((function(e){e.addEventListener("mouseover",(function(t){if(t.currentTarget===e){if(!e.previousElementSibling)return;r(),e.previousElementSibling.classList.add(n)}}))})),t&&t.addEventListener("mouseleave",(function(){r()}))}}}(),function(){if(!(window.innerWidth>1200)){var e=document.querySelectorAll(".js-main-menu .is-empty-link");e.length&&e.forEach((function(e){var t=e.parentElement.querySelector(".js-toggle-submenu");e.addEventListener("click",(function(){t.click()}))}))}}(),(o=document.querySelectorAll(".js-submenu .active, .js-submenu .current-menu-ancestor")).length&&o.forEach((function(e){var t=e.previousElementSibling;t&&t.classList.add("is-borderless-active")})),function(){if(!(window.innerWidth>1200)){var e=window.navigator.userAgent;if(e.match(/iPad/i)||e.match(/iPhone/i)){var t=document.querySelectorAll(".js-main-menu li a");t.length&&t.forEach((function(e){e.addEventListener("click",(function(e){if(e.preventDefault(),"A"===e.currentTarget.tagName){document.querySelector(".js-main-menu-hamburger").click();var t=e.currentTarget.getAttribute("href");setTimeout((function(){t&&(window.location.href=t)}),350)}}))}))}}}(),function(){var e=document.querySelector(".js-main-menu");e&&(e.style.display="block")}(),n(),window.addEventListener("resize",(function(){n()}))})),new e}();