(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[160],{7737:function(e,t,r){Promise.resolve().then(r.t.bind(r,7742,23)),Promise.resolve().then(r.bind(r,6887)),Promise.resolve().then(r.bind(r,8023))},6887:function(e,t,r){"use strict";var n=r(7437);r(2265);var o=r(1063);r(4868),t.default=e=>{let{text:t,onClick:r,type:a="button",disabled:i=!1,variant:c="primary",navigateHome:s=!1,useNavigation:l=!0,url:u}=e,{handleNavigation:d}=(0,o.V)();return(0,n.jsx)("button",{className:"button ".concat(c),onClick:()=>{if(null==u?void 0:u.startsWith("http")){let e=document.createElement("a");e.href=u,e.rel="noopener noreferrer",e.click()}else l&&u?d(u,r):l&&s?d("/",r):l?d("/casino",r,!0):r&&r()},type:a,disabled:i,children:t})}},8023:function(e,t,r){"use strict";var n=r(7437),o=r(2265),a=r(5330),i=r(1063),c=r(2173),s=r(4694),l=r.n(s);t.default=()=>{let{handleNavigation:e}=(0,i.V)(),[t,r]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=()=>{r(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let s=async()=>{e("/casino",void 0,!0)};return(0,n.jsx)("header",{className:l().header,children:(0,n.jsxs)("nav",{className:l().navbar,children:[(0,n.jsx)(a.Z,{svgPath:t?"/logo-mobile.svg":"/logo.svg",gradientIdPrefix:"header",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"}),window.history.replaceState(null,"",window.location.pathname)},alt:"".concat(c.O," Logo")}),(0,n.jsxs)("div",{className:l().headerButtons,children:[(0,n.jsx)("button",{className:"".concat(l().headerButton," ").concat(l().logIn),onClick:s,children:"Log In"}),(0,n.jsx)("button",{className:"".concat(l().headerButton," ").concat(l().signUp),onClick:s,children:"Sign Up"})]})]})})}},5330:function(e,t,r){"use strict";var n=r(7437),o=r(2265);t.Z=e=>{let{svgPath:t,gradientIdPrefix:r,onClick:a,alt:i="Logo"}=e,[c,s]=(0,o.useState)(null);return((0,o.useEffect)(()=>{fetch(t).then(e=>e.text()).then(e=>{let t=new DOMParser().parseFromString(e,"image/svg+xml").querySelector("svg");if(!t){console.error("Invalid SVG file");return}t.querySelectorAll("linearGradient, radialGradient").forEach(e=>{let n=e.getAttribute("id");if(n){let o="".concat(r,"_").concat(n);e.setAttribute("id",o),t.querySelectorAll('[fill="url(#'.concat(n,')"]')).forEach(e=>{e.setAttribute("fill","url(#".concat(o,")"))}),t.querySelectorAll('[stroke="url(#'.concat(n,')"]')).forEach(e=>{e.setAttribute("stroke","url(#".concat(o,")"))})}let o=e.querySelectorAll("stop");o.forEach((e,t)=>{if(!e.hasAttribute("offset")){let r=o.length>1?t/(o.length-1):0;e.setAttribute("offset",r.toString())}})}),s(new XMLSerializer().serializeToString(t))}).catch(e=>console.error("Error loading SVG:",e))},[t,r]),c)?(0,n.jsx)("div",{onClick:a,style:{cursor:"pointer"},role:"img","aria-label":i,dangerouslySetInnerHTML:{__html:c}}):(0,n.jsx)("div",{})}},2173:function(e,t,r){"use strict";r.d(t,{O:function(){return n},U:function(){return o}});let n="Dream Vegas",o="United Kingdom"},8922:function(e,t,r){"use strict";r.d(t,{y:function(){return o}});var n=r(3464);async function o(){try{let{website:e,offers:t}=(await n.Z.get("https://api.adkey-seo.com/api/website/get-website/".concat("946"))).data,r=t.map(e=>({...e,logo:"https://api.adkey-seo.com/storage/images/offers/".concat(e.logo)}));return{country:e.country_name,offers:r}}catch(e){return console.error("Error fetching offers:",e),{country:"",offers:[]}}}},1063:function(e,t,r){"use strict";r.d(t,{V:function(){return a}});var n=r(9376),o=r(8922);let a=()=>{let e=(0,n.useRouter)();return{handleNavigation:async(t,r,n)=>{if(r&&r(),n)try{let{offers:t}=await (0,o.y)();if(t.length>0){let r=t[0].id;e.push("/casino/".concat(r));return}}catch(e){console.error("Error fetching first offer:",e)}e.push(t)},replaceHistoryState:e=>{window.history.replaceState(null,"",e)}}}},7742:function(){},4868:function(){},4694:function(e){e.exports={header:"Header_header__gtmFw",navbar:"Header_navbar__2gyyX",headerButtons:"Header_headerButtons__xLmwl",headerButton:"Header_headerButton__JotYg",logIn:"Header_logIn__WDWji",signUp:"Header_signUp__8Ib11"}}},function(e){e.O(0,[241,258,178,301,971,997,744],function(){return e(e.s=7737)}),_N_E=e.O()}]);