1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2261],{95715:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/check-eligibility/sections/connect-wallet",function(){return n(42485)}])},42485:function(e,t,n){"use strict";n.r(t);var l=n(85893),s=n(24978),i=n(93967),o=n.n(i),r=n(67294),a=n(92321),c=n(8768),d=n(18389),u=n(87066),x=n(41082);let m=e=>{let{state:t,dispatch:n}=(0,r.useContext)(d.PX),[i,o]=(0,r.useState)(!1),{isConnected:m,address:p}=(0,a.m)(),{openConnectModal:f}=(0,s.We)(),b=(0,r.useMemo)(()=>"You are checking the airdrop eligibility for Mint Genesis NFT: \n ".concat(p),[p]),{data:h,signMessageAsync:g,status:v}=(0,c.Q)();return(0,r.useEffect)(()=>{"success"===v?Promise.allSettled([u.Z.get("/api/get-proof",{params:{address:p,signature:h,message:b}}),u.Z.get("/api/nft-minted",{params:{address:p}})]).then(t=>{var l,s,i;null==n||n({type:"SAVE",payload:{address:p,signature:h,message:b,isAirdrop:!!(null===(l=t[0].value.data)||void 0===l?void 0:l.result),proof:null===(s=t[0].value.data)||void 0===s?void 0:s.result,minted:(null===(i=t[1].value.data)||void 0===i?void 0:i.result)>0}}),e.nextFn(),o(!1)}).catch(()=>{o(!1)}):"error"===v&&o(!1)},[v]),m?(0,l.jsx)("button",{className:"w-full flex items-center justify-center rounded-xl text-md font-semibold text-g-10 bg-g-1 h-28 transition-all hover:bg-[#D4DDD6]",onClick:async()=>{i||(o(!0),await g({message:b}))},children:i?(0,l.jsx)(x.Z,{}):"Sign Message"}):(0,l.jsx)("button",{className:"w-full flex items-center justify-center rounded-xl text-md font-semibold text-g-10 bg-g-1 h-28 transition-all hover:bg-[#D4DDD6]",onClick:()=>{!i&&f&&f()},children:"Connect Wallet"})};t.default=e=>{let{isConnected:t,address:n}=(0,a.m)(),[s,i]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{i(!0)},[]),(0,l.jsxs)("div",{className:o()("w-[600px] mx-auto px-12 pt-12 pb-20 bg-[#262626] rounded-3xl mb-[160px]","laptop:w-full mobile:pt-0"),children:[(0,l.jsxs)("div",{className:o()("border border-[#393939] rounded-2xl pt-20 px-20 mb-20 overflow-hidden","mobile:border-none mobile:px-0"),children:[(0,l.jsx)("h3",{className:"text-[28px] leading-[39px] text-g-1 font-light",children:"Connect Your"}),(0,l.jsx)("p",{className:"text-[28px] leading-[39px] font-extrabold mb-20",children:"Wallet"}),(0,l.jsx)("video",{className:"w-full -mb-1",autoPlay:!0,muted:!0,playsInline:!0,controls:!1,children:(0,l.jsx)("source",{src:"/video/wallet.mp4",type:"video/mp4"})})]}),(0,l.jsx)("h1",{className:"mb-4 text-lg font-semibold text-g-1",children:"Get Started"}),(0,l.jsx)("p",{className:"mb-8 text-base font-medium text-g-6",children:"Get started by connecting your wallet to verify your eligibility for the Mint Genesis NFT whitelist. Simply connect your wallet to proceed."}),(0,l.jsx)("p",{className:"mb-2 text-base font-medium text-g-6",children:"Your currently connected address:"}),(0,l.jsx)("p",{className:"mb-24 text-base font-medium text-g-1 break-words",children:n||"--"}),(0,l.jsx)(m,{nextFn:()=>{document.documentElement.clientWidth<1100?e.setCurrentIndex(e=>e+2):e.setCurrentIndex(e=>e+1)}})]})}},18389:function(e,t,n){"use strict";n.d(t,{PX:function(){return o},ac:function(){return s},zw:function(){return i}});var l=n(67294);let s={},i=(e,t)=>"SAVE"===t.type?{...e,...t.payload}:e,o=(0,l.createContext)({state:s})}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=95715)}),_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.