(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3332],{9210:(e,r,t)=>{"use strict";t.r(r),t.d(r,{FeedPage:()=>c,default:()=>u});var n=t(37876),a=t(77328),s=t.n(a),o=t(88024),i=t(53493),h=t(20811),l=t(70450);function c(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s(),{children:(0,n.jsx)("title",{children:"Are.na"})}),(0,n.jsx)(o.Y,{children:(0,n.jsx)(i.Qp,{passthrough:!0,children:(0,n.jsx)(l.R,{})})}),(0,n.jsx)(h.J,{})]})}let u=c},16760:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(49306)}])},49306:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>c});var n=t(37876),a=t(9295),s=t(9210),o=t(65074),i=t(14232),h=t(89099),l=t(56939);function c(e){let{home:r}=e,t=(0,h.useRouter)(),{user:a}=(0,o.Jd)();return((0,i.useEffect)(()=>{a&&a.home_path&&"/"!==a.home_path&&t.replace(a.home_path)},[t,a]),r)?(0,n.jsx)(l.default,{home:r}):a?a.home_path&&"/"!==a.home_path?null:(0,n.jsx)(s.default,{}):(0,n.jsx)(l.HomePageQueryRenderer,{})}c.getInitialProps=async e=>{let{req:r,res:t}=e;if(!r||!t)return{};try{let{user:e}=await (0,a.Ht)(r,t);if(!e){let{props:e}=await (0,l._getServerSideProps)();return e}if(e.home_path&&"/"!==e.home_path){t.writeHead(307,{Location:e.home_path}),t.end();return}return{}}catch(e){return console.error(e),{}}}},70450:(e,r,t)=>{"use strict";t.d(r,{R:()=>c});var n=t(37876),a=t(53493),s=t(65074),o=t(93026),i=t(48230),h=t.n(i),l=t(89099);let c=()=>{let{user:e}=(0,s.Jd)(),{pathname:r}=(0,l.useRouter)();return(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsxs)(a.NT,{children:[(0,n.jsx)(u,{href:"/feed",active:"/"===r||"/feed"===r,children:"Feed"}),(0,n.jsx)(a.tH,{variant:"or"})]}),(0,n.jsxs)(a.NT,{children:[(0,n.jsx)(u,{href:"/explore",active:"/explore"===r,children:"Explore"}),e&&(0,n.jsx)(a.tH,{variant:"or"})]}),e&&(0,n.jsx)(a.NT,{children:(0,n.jsx)(u,{href:e.href,active:!1,children:"Profile"})})]})},u=(0,o.pH)(h(),{"&:hover":{color:"$foreground !important"},variants:{active:{true:{color:"$link !important",pointerEvents:"none"},false:{color:"$gray4 !important"}}}})}},e=>{var r=r=>e(e.s=r);e.O(0,[8096,2805,9030,559,2570,8261,811,6939,636,6593,8792],()=>r(16760)),_N_E=e.O()}]);