(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5301:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(5748)}])},345:function(e,t,n){"use strict";var r=n(5893);n(7294);t.Z=function(e){var t=e.text.split("");return(0,r.jsx)("span",{className:"md:text-3xl font-doge text-lg",children:t.map((function(e,t){return(0,r.jsx)("span",{className:"inline text-center",style:{color:"hsl(".concat(10*t,", 70%, 50%)"),fontSize:"1.5rem"},children:e},t)}))})}},5748:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(5893),s=n(7294),o=n(1163),i=n(3857);var c=n(8301),a=n(3838),l=function(){var e=(0,o.useRouter)(),t=(0,s.useRef)(null),n=function(e){var t=(0,s.useState)({x:0,y:0}),n=t[0],r=t[1];return(0,s.useEffect)((function(){if(e.current){var t=function(t){var n=t.clientX,s=t.clientY,o=e.current,i=n-o.offsetLeft-o.offsetWidth/2,c=s-o.offsetTop-o.offsetHeight/2;r({x:i,y:c})};return window.addEventListener("pointermove",t),function(){return window.removeEventListener("pointermove",t)}}}),[e]),n}(t),l=n.x,u=n.y,d=(0,c.oR)().store,f=(0,i.dd)().setModal,x=d.account,m=(0,s.useState)(0),h=m[0],p=m[1],v=["#3F3B6C","#624F82","#9F73AB","#A3C7D6","#E7153A"],g={start:{scale:1,transition:{duration:.2},backgroundColor:v[h]},end:{scale:1.2,transition:{duration:.2,yoyo:5},backgroundColor:v[(h+1)%v.length]}};(0,s.useEffect)((function(){var e=setInterval((function(){p((h+1)%v.length)}),500);return function(){return clearInterval(e)}}),[h,v.length]);var w=(0,s.useCallback)((function(){x?e.push("/auction"):f(i.oV.REQUEST_MODAL)}),[x,e,f]);return(0,r.jsxs)("div",{className:"flex h-screen w-[80%] flex-col items-center justify-center md:w-full",children:[(0,r.jsx)(a.E.div,{ref:t,className:"box",animate:{x:l,y:u},transition:{type:"spring",bounce:.25,damping:10,stiffness:70,restDelta:.01},children:(0,r.jsx)("img",{className:"md:h-35 md:w-35 h-16 w-16 rounded-md",src:"/img/cursor2.gif",alt:"no-image"})}),(0,r.jsxs)("div",{className:"flex h-[80%] w-full flex-col items-center justify-center space-y-8 rounded-2xl border-[2px] border-black bg-[#8BBCCC] px-6 md:w-[50%] md:px-12",children:[(0,r.jsx)(a.E.div,{className:"text-bold mb-4 h-20 w-[80%] rounded-xl px-5 py-3 text-center font-doge text-[20px] text-white md:h-24 md:px-6 md:py-7 md:text-[26px]",animate:"end",initial:"start",variants:g,onClick:w,onAnimationComplete:function(){return p((h+1)%v.length)},children:"DOGE MAKE HEHE"}),(0,r.jsxs)("div",{className:"flex flex-col items-center space-y-4",children:[(0,r.jsx)("span",{className:"font-comic text-[18px] md:text-[25px]",children:"Welcome to the DogeHehe Auctions!"}),(0,r.jsx)("span",{className:"font-comic text-[14px] text-white md:text-[21px]",children:"One unique NFT up for auction everyday, with artwork that's stored\n          on-chain."}),(0,r.jsx)("span",{className:"font-comic text-[14px] text-white md:text-[21px]",children:"AI generated jokes, one-liners, and philosophy on each NFT - yours to own."}),(0,r.jsx)("span",{className:"font-comic text-[18px] md:text-[25px]",children:"Auction refreshes every 24 hours - bid away!"})]})]})]})},u=n(4008),d=n(5710),f=function(){var e=(0,u.Os)(),t=e.connected,n=e.disconnect,s=(0,i.dd)().setModal,o=(0,c.oR)().store.account;return(0,r.jsx)("button",{onClick:function(){t||s(i.oV.WALLET_MODAL),t&&n()},type:"button",className:"bg-primary mr-8 flex flex-row items-center justify-center rounded-md border border-transparent bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 px-6 py-2 text-center font-doge text-base font-medium text-white shadow-sm",children:t?(0,d.Xn)(o,3):"connect"})},x=n(345),m=function(){return(0,r.jsx)("div",{className:"bg-body",children:(0,r.jsx)("div",{className:"mx-auto max-w-screen-lg p-4",children:(0,r.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,r.jsx)(x.Z,{text:"HeheDoge"}),(0,r.jsx)("div",{className:"flex items-center space-x-3",children:(0,r.jsx)(f,{})})]})})})},h=function(e){var t=e.children;return(0,r.jsxs)("div",{className:"flex min-h-screen w-full flex-col",children:[(0,r.jsx)(m,{}),(0,r.jsx)("div",{className:"flex flex-grow flex-col overflow-auto bg-body",children:t})]})},p=function(){return(0,r.jsx)(h,{children:(0,r.jsx)("div",{className:"flex h-screen flex-col",children:(0,r.jsx)("div",{className:"relative flex flex-grow items-center justify-center",children:(0,r.jsx)(l,{})})})})}},5710:function(e,t,n){"use strict";n.d(t,{Xn:function(){return s},nW:function(){return o},pv:function(){return i},j2:function(){return c}});var r=n(5553),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return e?e.substring(0,t)+"..."+e.substring(e.length-t):""},o=function(e){var t=new Date(1e3*Number(e)),n=t.getHours().toString(),r=t.getMinutes().toString();return n=Number(n)<10?"0"+n:n,r=Number(r)<10?"0"+r:r,"".concat(n,":").concat(r)},i=function(e){return Math.floor(Date.now()/1e3)-Number(e)},c=function(e){if(isNaN(Number(e)))return"...";var t=r.dF(e);return(1.05*Number(t)).toFixed(4).toString()}}},function(e){e.O(0,[154,774,888,179],(function(){return t=5301,e(e.s=t);var t}));var t=e.O();_N_E=t}]);