!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="4ff1ca4c-7849-4481-9b7c-460d6fe34464",e._sentryDebugIdIdentifier="sentry-dbid-4ff1ca4c-7849-4481-9b7c-460d6fe34464")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6544],{46815:function(e,r,t){"use strict";t.d(r,{N:function(){return o}});var n=t(24274),i=t(46329);function o(e){let r;if(!e.username)return Promise.reject(Error("No username provided"));let t=Object.assign({network:new i._Y},e),o=i._e.fromNameOrNetwork(t.network);if(t.zoneFileLookupURL){let e=`${t.zoneFileLookupURL.replace(/\/$/,"")}/${t.username}`;r=o.fetchFn(e).then(e=>e.json())}else r=o.getNameInfo(t.username);return r.then(e=>{if(e.hasOwnProperty("zonefile")&&e.hasOwnProperty("address"))return(0,n.s2)(e.zonefile,e.address,o.fetchFn);throw Error("Invalid zonefile lookup response: did not contain `address` or `zonefile` field")})}},26086:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/explore",function(){return t(68161)}])},68161:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return g}});var n=t(97458);t(52983);var i=t(26062),o=t(23293),s=t(41901);class c extends o.z{constructor(e,r){super(e,r)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,r){super.setOptions({...e,behavior:(0,s.Gm)()},r)}getOptimisticResult(e){return e.behavior=(0,s.Gm)(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...r}={}){return this.fetch({...r,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...r}={}){return this.fetch({...r,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,r){var t,n,i,o,c,u;let{state:a}=e,l=super.createResult(e,r),{isFetching:f,isRefetching:d}=l,h=f&&(null==(t=a.fetchMeta)?void 0:null==(n=t.fetchMore)?void 0:n.direction)==="forward",v=f&&(null==(i=a.fetchMeta)?void 0:null==(o=i.fetchMore)?void 0:o.direction)==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,s.Qy)(r,null==(c=a.data)?void 0:c.pages),hasPreviousPage:(0,s.ZF)(r,null==(u=a.data)?void 0:u.pages),isFetchingNextPage:h,isFetchingPreviousPage:v,isRefetching:d&&!h&&!v}}}var u=t(85566),a=t(70192),l=t(52536),f=t(96111),d=t(90248),h=t(93734),v=t(16225),p=t(86477);let b=()=>{let{user:e}=(0,p.a)(),{data:r,fetchStatus:t}=(0,f.a5)({enabled:!!e}),{isLoading:o,data:s,fetchNextPage:b,hasNextPage:g,isFetchingNextPage:w}=function(e,r,t){let n=(0,i._v)(e,r,t);return(0,u.r)(n,c)}(["get-user-explore"],e=>{let{pageParam:r}=e;return(0,l.su)({queryParams:{page:r||1}})},{getNextPageParam:e=>e.nextPage}),{observe:y}=(0,a.Y)({rootMargin:"50px 0px",onEnter:async e=>{let{unobserve:r,observe:t}=e;r(),await b(),t()}});return(0,n.jsxs)(h.c,{children:[(0,n.jsx)(d.ZT,{size:"h4",css:{fontWeight:600,pb:"$5",borderBottom:"1px solid $colors$gray6"},children:"Explore"}),s&&s.pages.map(e=>e.data.map(e=>(0,n.jsx)(v.O,{address:e.stacksAddress},e.stacksAddress))),r&&s&&g&&(0,n.jsx)("div",{ref:y}),"fetching"===t||o||w?(0,n.jsx)(d.xu,{css:{mt:"$10"},children:(0,n.jsx)(d.TK,{})}):null]})};var g=()=>(0,n.jsx)(b,{})},70192:function(e,r,t){"use strict";t.d(r,{Y:function(){return s}});var n=t(52983);function i(){return(i=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var o=function(e){var r=(0,n.useRef)(e);return r.current=e,r},s=function(e){var r=void 0===e?{}:e,t=r.root,s=r.rootMargin,c=r.threshold,u=void 0===c?0:c,a=r.trackVisibility,l=r.delay,f=r.unobserveOnEnter,d=r.onChange,h=r.onEnter,v=r.onLeave,p=(0,n.useState)({inView:!1,scrollDirection:{}}),b=p[0],g=p[1],w=(0,n.useRef)(!1),y=(0,n.useRef)({}),x=(0,n.useRef)(),P=(0,n.useRef)(!1),m=o(d),k=o(h),O=o(v),_=(0,n.useRef)(),N=(0,n.useCallback)(function(){x.current&&(x.current.disconnect(),y.current={})},[]),R=(0,n.useCallback)(function(e){e&&e!==_.current&&(N(),_.current=e),x.current&&_.current&&x.current.observe(_.current)},[N]),E=(0,n.useCallback)(function(){if(_.current){var e=_.current.getBoundingClientRect(),r=e.x,t=e.y;y.current={x:r,y:t}}},[_]);return(0,n.useEffect)(function(){if(!("IntersectionObserver"in window)||!("IntersectionObserverEntry"in window))return console.error("\uD83D\uDCA1 react-cool-inview: the browser doesn't support Intersection Observer, please install polyfill: https://github.com/wellyshen/react-cool-inview#intersection-observer-polyfill"),function(){return null};var e=!0;return x.current=new IntersectionObserver(function(r){var t=r[0],n=t.intersectionRatio,o=t.isIntersecting,s=t.boundingClientRect,c=s.x,l=s.y,d=t.isVisible,h={},v=Array.isArray(u)?Math.min.apply(Math,u):u,p=void 0!==o?o:n>0;p=v>0?n>=v:p,c<y.current.x&&(h.horizontal="left"),c>y.current.x&&(h.horizontal="right"),y.current.x=c,l<y.current.y&&(h.vertical="up"),l>y.current.y&&(h.vertical="down"),y.current.y=l;var b={entry:t,scrollDirection:h,observe:R,unobserve:N};a&&(void 0!==d||P.current||(console.warn("\uD83D\uDCA1 react-cool-inview: the browser doesn't support Intersection Observer v2, fallback to v1 behavior"),P.current=!0),void 0!==d&&(p=d)),p&&!w.current&&(f&&N(),k.current&&k.current(b)),!p&&w.current&&O.current&&O.current(b),m.current&&m.current(i({},b,{inView:p})),e&&g({inView:p,scrollDirection:h,entry:t}),w.current=p},{root:t,rootMargin:s,threshold:u,trackVisibility:a,delay:l}),R(),function(){e=!1,N()}},[f,t,s,JSON.stringify(u),a,l,R,N]),i({},b,{observe:R,unobserve:N,updatePosition:E})}}},function(e){e.O(0,[9486,5160,9583,3848,4203,3127,3760,5313,4418,8954,248,4014,1027,1194,2888,9774,179],function(){return e(e.s=26086)}),_N_E=e.O()}]);