text: (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{8581:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return a(3389)}])},3389:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return h},default:function(){return _}});var r=a(5893),n=a(7294),i=a(9008),s=a(214),c=a.n(s);function o(e){e.postsPerPage,e.totalPosts;var t=e.paginateFront,a=e.paginateBack;e.currentPage;return(0,r.jsxs)("div",{className:"py-2",children:[(0,r.jsx)("nav",{className:"block"}),(0,r.jsx)("div",{children:(0,r.jsxs)("nav",{className:"relative z-0 inline-flex rounded-md shadow-sm -space-x-px","aria-label":"Pagination",children:[(0,r.jsx)("a",{onClick:function(){a()},href:"#",className:"relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50",children:(0,r.jsx)("span",{children:"Previous"})}),(0,r.jsx)("a",{onClick:function(){t()},href:"#",className:"relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50",children:(0,r.jsx)("span",{children:"Next"})})]})})]})}a(4051);var l=a(9043),d=a(6495);new l.f({uri:"https://api.thegraph.com/subgraphs/name/jona/realm",cache:new d.h});var u=function(e){var t=e.featureRarity;return(0,r.jsx)("ul",{children:t.map((function(e){return(0,r.jsxs)("li",{children:[e.feature," - ",e.total]})}))})},h=!0;function _(e){var t=e.stats,a=e.featureRarity,s=(t.id,t.totalRealms),l=(t.totalCities,t.totalFarms,t.totalAquariums,t.totalResearchLabs,t.totalCollects,t.totalStaked),d=(a.feature,a.total,(0,n.useState)(!1)),h=(d[0],d[1],(0,n.useState)(1)),_=h[0],m=h[1],x=(0,n.useState)(10)[0],p=_*x,f=p-x,g=a.slice(f,p);return(0,r.jsxs)("div",{className:c().container,children:[(0,r.jsxs)(i.default,{children:[(0,r.jsx)("title",{children:"Create Next App"}),(0,r.jsx)("meta",{name:"description",content:"Generated by create next app"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,r.jsx)("main",{className:c().main,children:(0,r.jsxs)("div",{className:"grid grid-cols-4 grid-flow-col gap-4",children:[(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:c().card,children:[(0,r.jsx)("h2",{children:"total realms"}),(0,r.jsx)("p",{children:s})]})}),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:c().card,children:[(0,r.jsx)("h2",{children:"total realms staked"}),(0,r.jsx)("p",{children:l})]})}),(0,r.jsxs)("div",{className:c().card,children:[(0,r.jsx)("h2",{children:"Geographic Feature Rarity "}),(0,r.jsx)(u,{featureRarity:g}),(0,r.jsx)(o,{postsPerPage:x,totalPosts:a.length,paginateBack:function(){return m(_-1)},paginateFront:function(){return m(_+1)},currentPage:_})]})]})})]})}},214:function(e){e.exports={container:"Home_container__bCOhY",header:"Home_header__GCVRv",main:"Home_main__nLjiQ",title:"Home_title__T09hD",description:"Home_description__41Owk",code:"Home_code__suPER",card:"Home_card___LpL1","align-bottom":"Home_align-bottom__ilglq",static_card:"Home_static_card__ZscMh",logo:"Home_logo__27_tb",grid:"Home_grid__GxQ85"}}},function(e){e.O(0,[8,774,888,179],(function(){return t=8581,e(e.s=t);var t}));var t=e.O();_N_E=t}]);