(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[372],{2815:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/builds",function(){return n(9248)}])},5370:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(5893),a=n(5942),s=n.n(a),r=()=>(0,i.jsx)("div",{className:s().modal,children:(0,i.jsx)("div",{className:s().modalContent,children:(0,i.jsx)("div",{className:[s().spinner,s().spinner4].join(" ")})})}),l=e=>{let{classes:t,loading:n,clickFunction:a,children:s}=e;return(0,i.jsxs)(i.Fragment,{children:[n&&(0,i.jsx)(r,{}),(0,i.jsx)("div",{onClick:a,className:t.join(" "),children:s})]})}},6442:function(e,t,n){"use strict";n.d(t,{A:function(){return j}});var i=n(5893),a=n(8),s=n.n(a),r=n(1664),l=n.n(r),o=n(1163),d=n(7294),c=()=>{let e=(0,o.useRouter)(),[t,n]=(0,d.useState)(!1),a=()=>{n(!t)};(0,d.useEffect)(()=>{function e(){window.innerWidth>700&&n(!1)}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)});let r=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("li",{className:"/"===e.pathname?s().active:void 0,children:(0,i.jsx)(l(),{href:"/",children:"Dota 2 Strat Roulette"})}),(0,i.jsx)("li",{className:"/strats"===e.pathname?s().active:void 0,children:(0,i.jsx)(l(),{href:"/strats",children:"Strats"})}),(0,i.jsx)("li",{className:"/builds"===e.pathname?s().active:void 0,children:(0,i.jsx)(l(),{href:"/builds",children:"Builds"})}),(0,i.jsx)("li",{className:"/about"===e.pathname?s().active:void 0,children:(0,i.jsx)(l(),{href:"/about",children:"About"})})]});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:s().hamburgerButton,children:[t&&(0,i.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:a,children:(0,i.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"})}),!t&&(0,i.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:a,children:(0,i.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,i.jsx)("ul",{className:s().navbar,children:r()}),t&&(0,i.jsx)("ul",{className:s().mobileNavbar,children:r()})]})},u=n(9008),m=n.n(u),h=n(1799),_=n.n(h),g=n(4298),w=n.n(g),x=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w(),{strategy:"afterInteractive",async:!0,src:"https://www.googletagmanager.com/gtag/js?id=G-3VXM921NPF"}),(0,i.jsx)(w(),{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 j=e=>{let{children:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(m(),{children:[(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,i.jsx)("meta",{"ttp-equiv":"Content-Security-Policy",content:"default-src 'self'; img-src https://*; child-src 'none';"})]}),(0,i.jsx)(x,{}),(0,i.jsx)(w(),{strategy:"afterInteractive",async:!0,src:"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8246380006286748",crossOrigin:"anonymous"}),(0,i.jsxs)("div",{className:_().centreContent,children:[(0,i.jsx)(c,{}),(0,i.jsx)("div",{className:_().mainContent,children:t})]})]})}},9248:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return x},default:function(){return j}});var i=n(5893),a=n(1807),s=n.n(a),r=n(6442),l=n(5370),o=n(7294),d=n(9008),c=n.n(d),u=n(1288),m=n(9755),h=n.n(m),_=e=>{let{width:t,hero:n,imgPath:a}=e;return(0,i.jsx)(h(),{layout:"fixed",width:256,height:144,alt:n.name,src:a})},g=n(1163),w=e=>{let{builds:t,width:n,heroImgLookup:a,itemImgLookup:r}=e,l=(0,g.useRouter)(),o=e=>{l.push("/builds/".concat((0,u.D)(e)))},d=[s().itemImage1,s().itemImage2,s().itemImage3],c=(e,t)=>(0,i.jsx)("div",{className:[s().flex,1===t?s().initialBuildRowItemImageRowContainer:""].join(" "),children:e.map((e,t)=>(0,i.jsx)("div",{className:[s().imgWrapper,d[t]].join(" "),children:(0,i.jsx)(h(),{layout:"fixed",width:114,height:64,alt:e.name,src:"/itemImages/".concat(r[e.name])})},t))});return(0,i.jsx)("div",{className:s().allStratsContainer,children:t.map((e,t)=>(e.items.sort((e,t)=>e.order>=t.order?1:-1).splice(6),(0,i.jsxs)("div",{className:[s().buildRow].join(" "),onClick:()=>o(e.name),children:[(0,i.jsxs)("div",{className:[s().buildRowTextContainer].join(" "),children:[(0,i.jsx)("h2",{children:e.name}),(0,i.jsx)("p",{children:e.description})]}),(0,i.jsxs)("div",{className:s().buildRowImagesContainer,children:[(0,i.jsx)("div",{className:s().buildRowHeroImageContainer,children:(0,i.jsx)(_,{width:500,hero:e.hero,imgPath:"/heroImages/".concat(a[e.hero])})}),(0,i.jsxs)("div",{className:[s().buildRowItemContainer].join(" "),children:[c(e.items.filter((e,t)=>t%2==0),1),c(e.items.filter((e,t)=>t%2!=0),2)]})]})]},t)))})},x=!0,j=e=>{let{builds:t,itemImgLookup:n,heroImgLookup:a}=e,[d,m]=(0,o.useState)(!1),[h,_]=(0,o.useState)(),x=(0,g.useRouter)();return(0,o.useEffect)(()=>{let e=window.innerWidth;function t(){_(e)}return _(e),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(r.A,{children:[(0,i.jsxs)(c(),{children:[(0,i.jsx)("title",{children:"Dota 2 Strat Roulette - All Builds"}),(0,i.jsx)("meta",{name:"description",content:"Dota 2 builds to spice up your games!"})]}),(0,i.jsxs)("div",{className:s().allStratsPage,children:[(0,i.jsxs)("div",{className:s().allStratsTopSection,children:[(0,i.jsx)("h1",{className:s().title,children:"Builds"}),(0,i.jsx)(l.Z,{classes:[s().newStratButton],loading:d,clickFunction:()=>{m(!0);let e=t[Math.floor(Math.random()*t.length)];setTimeout(()=>{x.push("/builds/".concat((0,u.D)(e.name))),m(!1)},500)},children:"Get Build"})]}),(0,i.jsx)(w,{builds:t,width:h,itemImgLookup:n,heroImgLookup:a})]})]})})}},1288:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});let i=e=>e.split(" ").join("_")},1807:function(e){e.exports={title:"AllBuilds_title__u2m_6",allStratsTopSection:"AllBuilds_allStratsTopSection__X2tNz",allStratsContainer:"AllBuilds_allStratsContainer__gcoIN",buildRow:"AllBuilds_buildRow__e40Mf",buildRowTextContainer:"AllBuilds_buildRowTextContainer__7CbnE",buildRowItemContainer:"AllBuilds_buildRowItemContainer__F6Mby",stratRowHeroContainer:"AllBuilds_stratRowHeroContainer___ES_1",stratRowOdd:"AllBuilds_stratRowOdd__zMBRL",stratRowEven:"AllBuilds_stratRowEven__DIvgx",newStratButton:"AllBuilds_newStratButton__Kdzev",flex:"AllBuilds_flex__F7aTT",buildRowImagesContainer:"AllBuilds_buildRowImagesContainer__u8j4v",buildRowHeroImageContainer:"AllBuilds_buildRowHeroImageContainer__JdVh7",initialBuildRowItemImageRowContainer:"AllBuilds_initialBuildRowItemImageRowContainer__SGJk_",imgWrapper:"AllBuilds_imgWrapper__IbWrd",itemImage:"AllBuilds_itemImage__baRdI"}},1799:function(e){e.exports={centreContent:"Layout_centreContent__ZGbMZ",mainContent:"Layout_mainContent__ut07Y"}},8:function(e){e.exports={navbar:"NavBar_navbar___LVQF",active:"NavBar_active__038Y4",hamburgerButton:"NavBar_hamburgerButton__6n3D4",hamburgerSVG:"NavBar_hamburgerSVG__uv6on",mobileNavbar:"NavBar_mobileNavbar__wngvg"}},5942:function(e){e.exports={spinner:"Spinner_spinner__V06q5",spinner4:"Spinner_spinner4__utW0J",rotate:"Spinner_rotate__KarvT",modal:"Spinner_modal__I__s9"}}},function(e){e.O(0,[209,755,888,774,179],function(){return e(e.s=2815)}),_N_E=e.O()}]);