1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[564],{53256:function(e,l,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/collections",function(){return o(82347)}])},82347:function(e,l,o){"use strict";o.r(l),o.d(l,{default:function(){return O}});var n=o(52322),t=o(70024),a=o(18017);let i=(0,t.cn)("table"),r=(0,t.cn)({field:a.pd.TotalVolume,order:a.Sk.Desc});var s=o(95405),c=o.n(s),d=o(56957),u=o(76138),_=o(41664),h=o.n(_),v=o(1644),m=o(48184);let g=()=>{var e,l;let{data:o}=(0,a.r6)(),{data:n,loading:t,networkStatus:i,fetchMore:r}=(0,a.Vh)({notifyOnNetworkStatusChange:!0}),{hasNextPage:s=!1}=null!==(e=null==n?void 0:n.collections.pageInfo)&&void 0!==e?e:{},{totalCount:c=0}=null!==(l=null==o?void 0:o.collections)&&void 0!==l?l:{},d=t||i===v.I.fetchMore;return{loading:d,totalCount:c,collections:(0,m.P_)(null==n?void 0:n.collections),fetchMore:()=>{s&&!d&&r({variables:{after:null==n?void 0:n.collections.pageInfo.endCursor}})}}};var f=o(3713),x=o.n(f);let j=e=>{let{scrollable:l=!1}=e,[o,a]=(0,t.KO)(i),{loading:r,totalCount:s}=g();return(0,n.jsx)("div",{className:[x().header,l&&x().scrollable].join(" "),children:(0,n.jsxs)("div",{className:x().container,children:[(0,n.jsx)("div",{className:x().totals,children:r?"Loading collection...":"".concat((0,u.khM)(null!=s?s:0)," ").concat(1===s?"Collection":"Collections")}),(0,n.jsx)("div",{className:x().viewControls,children:(0,n.jsx)(u.COr,{leftIcon:u.zB6,leftValue:"gallery",rightIcon:u.DE2,rightValue:"table",value:o,onChange:e=>a(e)})})]})})};var C=o(5474),b=o.n(C);let p=()=>{var e,l;let{collections:o,loading:t,fetchMore:a}=g(),i=(0,d.t3)(a);return t&&0===o.length?(0,n.jsxs)("div",{className:[b().container,b().shimmer].join(" "),children:[(0,n.jsx)(j,{scrollable:!0}),(0,n.jsx)("div",{className:b().gallery,children:Array.from(Array(50),(e,l)=>(0,n.jsx)(u.Krc,{},l))})]}):(0,n.jsxs)("div",{className:b().container,ref:i,children:[(0,n.jsx)(j,{scrollable:!0}),o.length>0&&(0,n.jsx)("div",{className:b().gallery,children:o.map(o=>{let{id:t,image:a,name:i,slug:r,statistics:s}=o;return(0,n.jsx)(u.ztj,{id:t,image:a,name:null!=i?i:"",floor:null!==(e=s.floorPrice)&&void 0!==e?e:null,volumeTitle:"Total volume",volume:null!==(l=s.totalVolume)&&void 0!==l?l:null,collectionUrl:"/collections/".concat(r),Link:h()},t)})}),(0,n.jsx)(u.TFA,{isLoading:t,size:"large"})]})};var N=o(11163),y=o(2784);let w=()=>{var e,l;let o=(0,t.Dv)(r),{data:n}=(0,a.r6)(),{data:i,loading:s,networkStatus:c,fetchMore:d}=(0,a.Vh)({variables:{sortBy:o},notifyOnNetworkStatusChange:!0}),{hasNextPage:u=!1}=null!==(e=null==i?void 0:i.collections.pageInfo)&&void 0!==e?e:{},{totalCount:_=0}=null!==(l=null==n?void 0:n.collections)&&void 0!==l?l:{},h=s||c===v.I.fetchMore;return{loading:h,totalCount:_,collections:(0,m.P_)(null==i?void 0:i.collections),fetchMore:()=>{u&&!h&&d({variables:{after:null==i?void 0:i.collections.pageInfo.endCursor}})}}};var T=o(49750),k=o.n(T);let I=()=>{let e=(0,N.useRouter)(),[l,o]=(0,t.KO)(r),{collections:i,loading:s,fetchMore:c}=w(),d=(0,y.useMemo)(()=>[{id:"position",label:"",align:"right",width:"60px",renderer:(e,l)=>"#".concat(l+1)},{id:"name",label:"",renderer:e=>(0,n.jsxs)("div",{className:k().collection,children:[(0,n.jsx)(u.xRv,{className:k().image,source:e.image,size:u.bBY.SMALL}),(0,n.jsxs)("div",{className:k().collectionName,children:[(0,n.jsx)(u.xBc,{id:"collection-name-".concat(e.id),text:e.name,tooltipPosition:"right"}),e.verified&&(0,n.jsx)(u.SA,{color:u.Ilk.NeutralGrey800})]})]})},{id:a.pd.FloorPrice,label:"Floor price",align:"right",width:"15%",onSortChange:e=>o({field:a.pd.FloorPrice,order:e}),renderer:e=>(0,n.jsx)(u.WRc,{value:e.statistics.floorPrice,size:"small"})},{id:a.pd.TotalVolume,label:"Total vol",align:"right",width:"15%",onSortChange:e=>o({field:a.pd.TotalVolume,order:e}),renderer:e=>(0,n.jsx)(u.WRc,{value:e.statistics.totalVolume,size:"small"})},{id:a.pd.TotalVolumeOneDay,label:"24h Vol",align:"right",width:"15%",onSortChange:e=>o({field:a.pd.TotalVolumeOneDay,order:e}),renderer:e=>(0,n.jsx)(u.WRc,{value:e.statistics.totalVolume1d,size:"small"})},{id:a.pd.ItemsCount,label:"Items",align:"right",width:"15%",onSortChange:e=>o({field:a.pd.ItemsCount,order:e}),renderer:e=>(0,u.khM)(e.statistics.nftsCount)}],[o]),_=(0,y.useCallback)(l=>{e.push("/collections/".concat(l.slug))},[e]);return(0,n.jsxs)("div",{className:k().container,children:[(0,n.jsx)(j,{}),(0,n.jsx)("div",{className:k().table,children:(0,n.jsx)(u.iA_,{columns:d,data:i,sortBy:{id:l.field,order:l.order},loading:s,fetchMore:c,onDataClick:_})})]})},V=()=>{let[e]=(0,t.KO)(i);return(0,n.jsxs)("div",{className:c().container,children:["gallery"===e&&(0,n.jsx)(p,{}),"table"===e&&(0,n.jsx)(I,{})]})};var P=o(18797);let R=()=>(0,n.jsx)(P.Z,{children:(0,n.jsx)(V,{})});var O=R},95405:function(e){e.exports={container:"Body_container__I5lfw"}},5474:function(e){e.exports={container:"CollectionsGallery_container__szXgA",shimmer:"CollectionsGallery_shimmer__Clk2P",gallery:"CollectionsGallery_gallery__aXlJ_"}},49750:function(e){e.exports={container:"CollectionsTable_container__4If0P",table:"CollectionsTable_table__xqL8s",collection:"CollectionsTable_collection__ahzPG",image:"CollectionsTable_image__iPARH",collectionName:"CollectionsTable_collectionName__nuOBG body2",loader:"CollectionsTable_loader__cuGkw",value:"CollectionsTable_value__ZteE0"}},3713:function(e){e.exports={header:"ResultsHeader_header__DAVLC",scrollable:"ResultsHeader_scrollable___sQYy",container:"ResultsHeader_container__5gnJE",totals:"ResultsHeader_totals__gJMe0",viewControl
1s:"ResultsHeader_viewControls__wgH7u",orderBy:"ResultsHeader_orderBy__XHzJ6"}}},function(e){e.O(0,[630,293,777,30,587,566,334,797,774,888,179],function(){return e(e.s=53256)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.