PageSourceSearch

https://re4-nft.vercel.app/_next/static/chunks/pages/index-fadba1aa734c4f29.js

js re4-nft.vercel.app collected 2026-10-03 07:35:01 UTC 10,410 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{75557:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(44369)}])},44369:function(e,t,n){"use strict";n.r(t);var a=n(34051),s=n.n(a),r=n(85893),c=n(67294),l=n(41664),i=n.n(l),o=(n(42484),n(25675)),d=n.n(o);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function m(e,t,n,a,s,r,c){try{var l=e[r](c),i=l.value}catch(o){return void n(o)}l.done?t(i):Promise.resolve(i).then(a,s)}function h(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.default=function(){var e=(0,c.useState)(),t=e[0],n=e[1],a=(0,c.useState)(""),l=a[0],o=(a[1],(0,c.useState)()),f=o[0],u=o[1],x=!1,b="fill-pink-300",p=(0,c.useState)(),g=p[0],j=p[1],w=(0,c.useState)([]),y=w[0],N=w[1],v=(0,c.useState)(0),T=(v[0],v[1]),k=(0,c.useState)(!1);k[0],k[1];if((0,c.useEffect)((function(){fetch("https://deep-index.moralis.io/api/v2/nft/0xdd1F8C6942BefEF1Cd78a9605ad79Ac5ebf78F7a?chain=matic&format=decimal&limit=100&range=100",{method:"GET",headers:{Accept:"application/json","X-API-Key":"hVkfumTeiBnFW54MhhihcnBwZSIoyZTx7PyT30plBOqMjTrS8TW13JCRL2Cu1ieq"}}).then((function(e){return e.json()})).then((function(e){return n(e.result)})).catch((function(e){return console.error(e)}))}),[]),null==f){fetch("/api/read").then((function(e){return e.json()})).then((function(e){return u(e)})).then(console.log(f)).catch((function(e){return console.error(e)}))}if(void 0!=t)return(0,r.jsxs)("div",{className:"mt-20",children:[(0,r.jsx)("div",{className:"p-5 mx-auto sm:p-10 md:p-16 text-gray-100",children:(0,r.jsxs)("div",{className:"flex flex-col mx-auto overflow-hidden rounded",children:[(0,r.jsxs)("div",{className:" z-40 max-w-xl shadow-slate-800 shadow-md p-6 pb-12 m-4 mx-auto -mb-9 space-y-6 lg:max-w-2xl sm:px-10 rounded-lg sm:mx-12 lg:rounded-md bg-pink-600",children:[(0,r.jsx)("div",{className:"space-y-2",children:(0,r.jsx)("a",{rel:"noopener noreferrer",href:"#",className:"inline-block text-2xl font-bold sm:text-3xl",children:"Vote for your favourite RE4 NFT"})}),(0,r.jsx)("div",{className:"text-gray-100 font-semibold text-sm",children:(0,r.jsxs)("p",{children:["Vote by liking the NFTs below. The competition ends at (some time), and the winner will get (some prize). ",(0,r.jsx)("br",{})," You can give a like to one, many or all"]})})]}),(0,r.jsx)("div",{className:"px-6 grid grid-cols-1 tablet:grid-cols-2 desktop:grid-cols-4",children:t.map((function(e,t){var n=e.token_hash.slice(6)+e.block_number_minted.slice(4),a=JSON.parse(e.metadata);if(void 0!=a&&""==l){var c=a.name,o=a.description,p=a.image,w=a.category;null==w&&(w="Other");var v=0;void 0!==f&&f.map((function(t){t.selectedNFT==n&&(v+=1,console.log(e.count),v=v)})),n==g?(b="animate-spin-slow",x=!0,console.log(e.count)):(b=" ",x=!1);var k=function(){var e,t=(e=s().mark((function e(){var t,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n,N((function(e){return h(e).concat([t])})),console.log("THIS IS MY CUSTOM: ",y),!y.includes(n)){e.next=8;break}return alert("You already liked this NFT!"),e.abrupt("return");case 8:a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({selectedNFT:n,liked:1})},j(n),fetch("/api/add",a).then((function(e){return console.log(e.json())}));case 9:fetch("/api/read").then((function(e){return e.json()})).then((function(e){return u(e)})).then(console.log(f)).catch((function(e){return console.error(e)}));case 10:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(a,s){var r=e.apply(t,n);function c(e){m(r,a,s,c,l,"next",e)}function l(e){m(r,a,s,c,l,"throw",e)}c(void 0)}))});return function(){return t.apply(this,arguments)}}();if("d0afad440bc33cb6183764d1670542"!=n&&"3a313cffd4c940f001d37aed545784"!=n&&"f7942156f2bc551b3b76fcd5721932"!=n&&"6c9305387278fc31bbebb306749362"!=n&&"6b7c85e8bb1eebc1f270e3c1e23654"!=n&&"04ad42d7da9b74a426148a8bb71825"!=n&&"fc72ad35021d11db8a93f81f7b8029"!=n&&"eff2d7511a0b166a504c7c56ef3234"!=n&&"8ab686566f911555d2963e96cd5418"!=n&&"809cf731034c2135fd2ffc42707175"!=n&&"cba75c65b5dc237eabafdc745f3719"!=n&&"16b58c7a716be19a4327553f295295"!=n&&"f4d9d7c012899
1cf821f3a0ab137025"!=n&&"3fd8969025a88c7307c154cfc94819"!=n&&"47073083a20bb28426688ea3c27658"!=n&&"f188f64775a909b7d9b4a2db429396"!=n&&"658f040fefb66a42fa0c6783d94871"!=n&&"18209bcebecb91481cb2618f3a6894"!=n&&"2043553dd19bbdaa69fc6f94603689"!=n&&"fe0ebdab416d80354d5008f57b2748"!=n&&"903d87495c50ddbfe1a3ae100b8572"!=n&&"3ce427d066b2a313af5062e8754615"!=n&&"da307065a9d3b4423b2c699d387137"!=n&&"edbc8f13d427e9240e305c88439968"!=n&&"85f2c700573783c7e9d4d596c87915"!=n&&"75e21b19db6b164039e80c29182791"!=n&&"d6a46a32899c7c42437d76e0ec7470"!=n)return(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"rounded-md shadow-md sm:w-96 bg-gray-900 text-gray-100 m-6 xs:w-full xs:m-0 xs:mb-4",children:[(0,r.jsx)(i(),{href:"nft/"+n,className:"",children:(0,r.jsx)(d(),{quality:"10",height:"300",width:"350",layout:"responsive",loading:"lazy",src:p,alt:"NFT RE4Industry",className:"object-cover object-center w-full h-72 bg-gray-500"})}),(0,r.jsxs)("div",{className:"p-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-3 z-40",children:[(0,r.jsx)("button",{type:"button",title:"Like NFT",onClick:function(){k(),T(v+1)},disabled:x,className:"flex items-center justify-center ".concat(b),children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"fill-pink-500",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M12 4.419c-2.826-5.695-11.999-4.064-11.999 3.27 0 7.27 9.903 10.938 11.999 15.311 2.096-4.373 12-8.041 12-15.311 0-7.327-9.17-8.972-12-3.27z"})})}),(0,r.jsx)("p",{children:v})]}),(0,r.jsx)("a",{href:"nft/"+n,children:(0,r.jsxs)("button",{type:"button",title:"Share NFT",className:"flex items-center justify-center",children:[(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:"w-5 h-5 fill-white",children:(0,r.jsx)("path",{d:"M474.444,19.857a20.336,20.336,0,0,0-21.592-2.781L33.737,213.8v38.066l176.037,70.414L322.69,496h38.074l120.3-455.4A20.342,20.342,0,0,0,474.444,19.857ZM337.257,459.693,240.2,310.37,389.553,146.788l-23.631-21.576L215.4,290.069,70.257,232.012,443.7,56.72Z"})}),(0,r.jsx)("a",{href:"nft/"+n,children:(0,r.jsx)("img",{className:"mx-4 p-2",src:"https://img.icons8.com/windows/32/FFFFFF/download--v1.png"})})]})})]}),(0,r.jsx)("div",{className:"flex flex-wrap items-center pt-3 pb-1",children:(0,r.jsx)("div",{className:"flex items-center space-x-2",children:(0,r.jsxs)("div",{className:"-space-y-1",children:[(0,r.jsx)("span",{className:"text-sm bg-slate-400 mb-10 p-1 rounded-full",children:w}),(0,r.jsx)("h2",{className:"text-xl pt-4 font-semibold leading-none",children:c}),(0,r.jsx)("span",{className:"inline-block text-sm leading-none text-gray-400",children:o})]})})})]})]},e.custom)})}}))})]})}),(0,r.jsxs)("div",{className:"bg-slate-300 grid grid-cols-1 mt-8 laptop:grid-cols-2 w-screen",id:"section-home-bg",children:[(0,r.jsx)("div",{className:"container mx-auto flex flex-col items-center justify-center mt-12 laptop:mt-0 p-4 lg:max-w-full sm:p-10 lg:flex-row",children:(0,r.jsxs)("div",{className:"bg-slate-100 p-12 rounded-2xl",children:[(0,r.jsx)("p",{className:"font-bold text-3xl mb-4",children:"What are NFTs?"}),(0,r.jsx)("p",{className:"max-w-lg",children:"Non-fungible tokens (NFTs) are cryptographic assets on a blockchain with unique identification codes and metadata that distinguish them from each other. Unlike cryptocurrencies, they cannot be traded or exchanged at equivalency. This differs from fungible tokens like cryptocurrencies, which are identical to each other and, therefore, can serve as a medium for commercial transactions."})]})}),(0,r.jsx)("section",{className:"py-6 text-gray-50",children:(0,r.jsxs)("div",{className:"container mx-auto flex flex-col items-center justify-center max-w-lg p-4 lg:max-w-full sm:p-10 lg:nflex-row",children:[(0,r.jsxs)("div",{className:" rounded-xl my-6 flex flex-col items-center justify-center flex-1 p-4 pb-8 sm:p-8 lg:p-16 bg-gray-900",children:[(0,r.jsx)("span",{className:"text-sm",children:"Create"}),(0,r.jsx)("p",{className:"text-5xl font-bold text-center",children:"Create a new NFT"}),(0,r.jsx)("p",{className:"font-semibold text-center mt-6",children:"Create a new NFT for the RE4Industry Collection with the project wallet or your own!"}),(0,r.jsx)(i(),{href:"/create-nft",children:(0,r.jsx)("a",{className:"mt-6 bg-slate-200 text-slate-600 mx-6 px-6 py-2 rounded-full font-bold shadow-sm shadow-slate-500",children:"Create NFT with wallet"})}),(0,r.jsx)(i(),{href:"/no-wallet",children:(0,r.jsx)("a",{className:"mt-4 bg-slate-200 text-slate-600 mx-6 px-6 py-2 rounded-full font-bold shadow-sm shadow-slate-500",children:"Create NFT without wallet"})})]}),(0,r.jsxs)("div",{className:"w-full my-6 flex flex-col items-center justify-center flex-1 p-4 pb-8 text-center rounded-md sm:p-8 lg:p-16 bg-purple-400 text-gray-900",children:[(0,r.jsx)("span",{className:"text-sm font-semibold rounded-xl",children:"Explore what others did"}),(0,r.jsx)("p",{className:"text-5xl font-bold",children:"Explore, like, share"}),(0,r.jsxs)("p",{className:"font-semibold mt-4",children:["See what others have created. ",(0,r.jsx)("br",{}),"Like your favourites. ",(0,r.jsx)("br",{}),"Share with friends and colleagues"]}),(0,r.jsx)(i(),{href:"/dashboard",children:(0,r.jsx)("a",{className:"mt-6 bg-slate-200 text-slate-600 mx-6 px-6 py-2 rounded-full font-bold shadow-sm shadow-slate-500",children:"Explore collection"})})]})]})})]})]})}}},function(e){e.O(0,[277,675,774,888,179],(function(){return t=75557,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.