PageSourceSearch

https://nft-ticketing.vercel.app/_next/static/chunks/pages/collection/explore-968aa6f97b8b8a16.js

js nft-ticketing.vercel.app collected 2026-10-03 07:24:14 UTC 5,579 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2392],{11752:function(e,t,n){e.exports=n(88027)},89887:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/collection/explore",function(){return n(89320)}])},5625:function(e,t,n){"use strict";var i=n(85893);n(67294);t.Z=function(e){for(var t=e.limitRowPerPage,n=e.totalItems,a=e.getData,l=e.currentPage,o=Math.ceil(n/t),r=[],s=1;s<=Math.ceil(n/t);s++)r.push(s);var c=l-1,u=l+1;return(0,i.jsx)("div",{className:"pagination",children:(0,i.jsxs)("div",{"aria-label":"Pagination Navigation",role:"navigation",class:"ui pagination menu",children:[l>1?(0,i.jsx)("a",{"aria-current":"false","aria-disabled":"false",tabindex:"0",value:"1","aria-label":"Previous item",type:"prevItem",class:"item",onClick:function(e){return a(c,e)},children:"\u27e8"}):"",r.map((function(e){return(0,i.jsx)("a",{"aria-current":"true","aria-disabled":"false",tabindex:"0",value:"1",type:"pageItem",class:e==l?"active item":"item",onClick:function(t){return a(e,t)},children:e})})),l<o?(0,i.jsx)("a",{"aria-current":"false","aria-disabled":"false",tabindex:"0",value:"2","aria-label":"Next item",type:"nextItem",class:"item",onClick:function(e){return a(u,e)},children:"\u27e9"}):""]})})}},89320:function(e,t,n){"use strict";n.r(t);var i=n(4111),a=n(47568),l=n(51438),o=n(52951),r=n(14924),s=n(88029),c=n(5950),u=n(70655),h=n(85893),d=n(67294),f=n(59088),m=n(35685),v=n(53643),g=n(11163),C=n.n(g),p=n(52966),_=n(5625),w=(n(96215),n(86443)),x=n(11752),k=(n.n(x)()().publicRuntimeConfig,function(e){(0,s.Z)(n,e);var t=(0,c.Z)(n);function n(e){var o;(0,l.Z)(this,n),o=t.call(this,e);var s=(0,i.Z)(o);(0,r.Z)((0,i.Z)(o),"_getCollectionByOnclickEvent",function(){var e=(0,a.Z)((function(e,t){return(0,u.__generator)(this,(function(n){switch(n.label){case 0:return t.preventDefault(),[4,s._getCollection(e)];case 1:return n.sent(),[2]}}))}));return function(t,n){return e.apply(this,arguments)}}()),o.state={initializeAuthentication:!1,totalItems:0,limitRowPerPage:0,currentPage:1,collections:"",showCollectionReady:!1,showCollectionData:"",activities:""};return o._initialGetCollections(),o}return(0,o.Z)(n,[{key:"_initializeConnectToWallet",value:function(e){var t=this;return(0,a.Z)((function(){return(0,u.__generator)(this,(function(n){switch(n.label){case 0:return[4,(0,m.initializeConnectToWallet)(f.checkIsMetamaskInstalled,f.isWalletConnect,C())];case 1:return n.sent()?(t.setState({initializeAuthentication:!0}),1!=e?[3,3]:(1,[4,t._initialGetCollections(1)])):[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}}
1))}))()}},{key:"_initialGetCollections",value:function(){var e=this;return(0,a.Z)((function(){return(0,u.__generator)(this,(function(t){switch(t.label){case 0:return 1,[4,e._getCollection(1)];case 1:return t.sent(),[2]}}))}))()}},{key:"_getCollection",value:function(e){var t=this;return(0,a.Z)((function(){var n,i,a;return(0,u.__generator)(this,(function(l){switch(l.label){case 0:return n=[],a=8,[4,fetch("/api/collection/explore?page=".concat(e,"&limitRowPerPage=").concat(a),{method:"GET",headers:{"Content-Type":"application/json"}}).then((function(e){return e.json()})).then((function(e){n=e.collections,i=e.totalItems,console.log(e)})).catch((function(e){console.error("Error:",e)}))];case 1:return l.sent(),t.setState({collections:n,totalItems:i,currentPage:e,limitRowPerPage:a}),[4,t._reformatCollectionData(n)];case 2:return l.sent(),[2]}}))}))()}},{key:"_reformatCollectionData",value:function(e){var t=this;return(0,a.Z)((function(){var n,i,a,l;return(0,u.__generator)(this,(function(o){return n="tbsv_User",i=[],a=[],l=0,e.length>0&&e.map((function(e){-1==a.indexOf(e.id)&&(a[e.id]=e.id,i[l]={name:e.name,url:e.url,logo_image:e.logo_image,featured_image:e.featured_image,userName:e["".concat(n)].username,publicAddress:e["".concat(n)].publicAddress},l++)})),t.setState({showCollectionReady:!0,showCollectionData:i}),[2]}))}))()}},{key:"componentDidMount",value:function(){(0,m.isMetamaskUserLogout)(v.removeCookies,C())}},{key:"render",value:function(){return(0,h.jsx)(p.Z,{title:"Explore Collections | NFT Ticketing",description:"Buy, Transfer and Resell NFT Tickets in Sports events, Music events, Conferences, Festivals, Parks, etc.",children:1==this.state.showCollectionReady?(0,h.jsxs)("div",{className:"exploreCollectionWrapper",children:[(0,h.jsx)(y,{showCollectionData:this.state.showCollectionData,showCollectionReady:this.state.showCollectionReady,totalAllCollections:this.state.totalItems}),(0,h.jsx)("div",{className:"ui placeholder segment",children:(0,h.jsx)("div",{className:"ui stackable center aligned three column grid",children:(0,h.jsx)("div",{className:"middle aligned row",children:(0,h.jsx)(w.Z,{parentClass:this,collectionReady:this.state.showCollectionReady,collectionData:this.state.showCollectionData})})})}),(0,h.jsx)(_.Z,{limitRowPerPage:this.state.limitRowPerPage,totalItems:this.state.totalItems,getData:this._getCollectionByOnclickEvent,currentPage:this.state.currentPage})]}):""})}}]),n}(d.Component)),y=function(e){if(0==e.showCollectionReady)return null;var t=e.showCollectionData.length;return t>0?t>1?(0,h.jsx)("div",{children:(0,h.jsxs)("h2",{children:[t," Collections ( ",e.totalAllCollections," )"]})}):(0,h.jsx)("div",{children:(0,h.jsxs)("h2",{children:["1 Collection ( ",e.totalAllCollections," ) "]})}):(0,h.jsx)("div",{children:(0,h.jsx)("h2",{children:"0 Collection"})})};t.default=k}},function(e){e.O(0,[5445,8543,3482,3714,1005,8768,3797,2751,3182,1094,8269,9378,3193,6555,2883,9122,9774,2888,179],(function(){return t=89887,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.