(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{8312:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(6209)}])},5370:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var a=n(5893),i=n(5942),s=n.n(i),r=()=>(0,a.jsx)("div",{className:s().modal,children:(0,a.jsx)("div",{className:s().modalContent,children:(0,a.jsx)("div",{className:[s().spinner,s().spinner4].join(" ")})})}),o=t=>{let{classes:e,loading:n,clickFunction:i,children:s}=t;return(0,a.jsxs)(a.Fragment,{children:[n&&(0,a.jsx)(r,{}),(0,a.jsx)("div",{onClick:i,className:e.join(" "),children:s})]})}},6442:function(t,e,n){"use strict";n.d(e,{A:function(){return v}});var a=n(5893),i=n(8),s=n.n(i),r=n(1664),o=n.n(r),l=n(1163),c=n(7294),u=()=>{let t=(0,l.useRouter)(),[e,n]=(0,c.useState)(!1),i=()=>{n(!e)};(0,c.useEffect)(()=>{function t(){window.innerWidth>700&&n(!1)}return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)});let r=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("li",{className:"/"===t.pathname?s().active:void 0,children:(0,a.jsx)(o(),{href:"/",children:"Dota 2 Strat Roulette"})}),(0,a.jsx)("li",{className:"/strats"===t.pathname?s().active:void 0,children:(0,a.jsx)(o(),{href:"/strats",children:"Strats"})}),(0,a.jsx)("li",{className:"/builds"===t.pathname?s().active:void 0,children:(0,a.jsx)(o(),{href:"/builds",children:"Builds"})}),(0,a.jsx)("li",{className:"/about"===t.pathname?s().active:void 0,children:(0,a.jsx)(o(),{href:"/about",children:"About"})})]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:s().hamburgerButton,children:[e&&(0,a.jsx)("svg",{className:[s().hamburgerSVG,"bi","bi-x"].join(" "),xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",fill:"wheat",viewBox:"0 0 16 16",onClick:i,children:(0,a.jsx)("path",{d:"M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"})}),!e&&(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",fill:"wheat",className:[s().hamburgerSVG,"bi","bi-list"].join(" "),viewBox:"0 0 16 16",onClick:i,children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"})})]}),(0,a.jsx)("ul",{className:s().navbar,children:r()}),e&&(0,a.jsx)("ul",{className:s().mobileNavbar,children:r()})]})},d=n(9008),h=n.n(d),m=n(1799),_=n.n(m),g=n(4298),j=n.n(g),x=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j(),{strategy:"afterInteractive",async:!0,src:"https://www.googletagmanager.com/gtag/js?id=G-3VXM921NPF"}),(0,a.jsx)(j(),{strategy:"afterInteractive",id:"googleAnalytics",dangerouslySetInnerHTML:{__html:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', 'G-3VXM921NPF');"}})]});let v=t=>{let{children:e}=t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(h(),{children:[(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,a.jsx)("meta",{"ttp-equiv":"Content-Security-Policy",content:"default-src 'self'; img-src https://*; child-src 'none';"})]}),(0,a.jsx)(x,{}),(0,a.jsx)(j(),{strategy:"afterInteractive",async:!0,src:"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8246380006286748",crossOrigin:"anonymous"}),(0,a.jsxs)("div",{className:_().centreContent,children:[(0,a.jsx)(u,{}),(0,a.jsx)("div",{className:_().mainContent,children:e})]})]})}},6209:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSG:function(){return m}});var a=n(5893),i=n(5291),s=n.n(i),r=n(6442),o=n(1163),l=n(7294),c=n(5370),u=n(1288),d=n(9008),h=n.n(d),m=!0;e.default=t=>{let{strats:e}=t,n=(0,o.useRouter)(),[i,d]=(0,l.useState)(!1);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(r.A,{children:[(0,a.jsxs)(h(),{children:[(0,a.jsx)("title",{children:"Dota 2 Strat Roulette - A New Way to Play"}),(0,a.jsx)("meta",{name:"description",content:"Bring the fun back to your Dota games with unique and creative strategies to give you a new way to play the game!"})]}),(0,a.jsxs)("div",{className:s().buttonContainer,children:[(0,a.jsx)("h1",{className:s().title,children:"Dota 2 Strat Roulette"}),(0,a.jsx)("h2",{className:s().titleTagline,children:"A New Way to Play"}),(0,a.jsx)(c.Z,{classes:[s().getStratButton],loading:i,clickFunction:()=>{d(!0);let t=e[Math.floor(Math.random()*e.length)];setTimeout(()=>{n.push("/strats/".concat((0,u.D)(t.name)))},500)},children:"Get Strat"}),(0,a.jsx)("h3",{className:s().newButton,onClick:()=>{n.push("/about")},children:"First time? Click here!"})]})]})})}},1288:function(t,e,n){"use strict";n.d(e,{D:function(){return a}});let a=t=>t.split(" ").join("_")},5291:function(t){t.exports={getStratButton:"Home_getStratButton__ZYCxH",buttonContainer:"Home_buttonContainer__nOVuY",title:"Home_title__hYX6j",titleTagline:"Home_titleTagline__csQE7",newButton:"Home_newButton__GVZrl"}},1799:function(t){t.exports={centreContent:"Layout_centreContent__ZGbMZ",mainContent:"Layout_mainContent__ut07Y"}},8:function(t){t.exports={navbar:"NavBar_navbar___LVQF",active:"NavBar_active__038Y4",hamburgerButton:"NavBar_hamburgerButton__6n3D4",hamburgerSVG:"NavBar_hamburgerSVG__uv6on",mobileNavbar:"NavBar_mobileNavbar__wngvg"}},5942:function(t){t.exports={spinner:"Spinner_spinner__V06q5",spinner4:"Spinner_spinner4__utW0J",rotate:"Spinner_rotate__KarvT",modal:"Spinner_modal__I__s9"}}},function(t){t.O(0,[209,888,774,179],function(){return t(t.s=8312)}),_N_E=t.O()}]);