var L=Object.create;var c=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var B=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var z=(e,r)=>{for(var n in r)c(e,n,{get:r[n],enumerable:!0})},p=(e,r,n,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of k(r))!T.call(e,i)&&i!==n&&c(e,i,{get:()=>r[i],enumerable:!(a=S(r,i))||a.enumerable});return e};var A=(e,r,n)=>(n=e!=null?L(B(e)):{},p(r||!e||!e.__esModule?c(n,"default",{value:e,enumerable:!0}):n,e)),C=e=>p(c({},"__esModule",{value:!0}),e);var R={};z(R,{default:()=>O});module.exports=C(R);var u=require("react");var d=require("@chakra-ui/react"),D=require("react"),s=require("react/jsx-runtime"),I=e=>(0,s.jsx)(d.Box,{as:"svg",width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("g",{id:"a4e07f86",children:(0,s.jsxs)("g",{id:"fc8efcce",children:[(0,s.jsx)("path",{id:"725a9585",d:"M49.9999 8.33398L60.9443 16.3174L74.4909 16.2916L78.6526 29.1834L89.6272 37.125L85.4166 50.0006L89.6272 62.8763L78.6526 70.8179L74.4909 83.7096L60.9443 83.684L49.9999 91.6673L39.0555 83.684L25.5089 83.7096L21.3472 70.8179L10.3726 62.8763L14.5832 50.0006L10.3726 37.125L21.3472 29.1834L25.5089 16.2916L39.0555 16.3174L49.9999 8.33398Z",fill:"#51B592",stroke:"#52D5A7",strokeWidth:"8.33333",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{id:"26f77c74",d:"M35.4165 50.0007L45.8332 60.4173L66.6665 39.584",stroke:"white",strokeWidth:"8.33333",strokeLinecap:"round",strokeLinejoin:"round"})]})})}),m=I;var o=require("@chakra-ui/react");var h=(e,r)=>e?e.length>r?e.substr(0,r-1)+"..."+e.substr(e.length-(r-1),e.length-1):e:"";var g=A(require("@emotion/styled"),1),w=require("react-icons/ai"),y=require("react-icons/fa"),t=require("react/jsx-runtime"),$="",N="",E="",F=(0,g.default)(o.Box)`
  //margin-left: 30px;
  //margin-right: 30px;
  border: 1px solid #cccc;
  border-radius: 14px;
  padding: 10px 20px;
  height: 65px;
  overflow: hidden;
  ${({offersOpen:e})=>e&&`
    position: absolute;
    top : 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: unset;
  `};
`,l=({imageSrc:e,title:r,onClick:n})=>(0,t.jsxs)(o.Flex,{align:"center",justify:"space-between",borderWidth:"1.5px",borderColor:"gray.400",borderRadius:"lg",p:1,mb:2,children:[(0,t.jsxs)(o.Flex,{align:"center",children:[(0,t.jsx)(o.Image,{src:e,w:8,h:8,borderRadius:"50%"}),(0,t.jsx)(o.Text,{fontSize:"12px",fontWeight:600,mb:1,ml:3,children:r})]}),n&&(0,t.jsx)(o.Button,{size:"xs",bg:"gray.800",color:"white",_hover:{bg:"gray.800"},onClick:n,children:"Claim here"})]}),M=({address:e,showOffers:r,onClickCollection:n,website:a,twitterHandle:i,isEnsDomain:x})=>{let[f,b]=(0,u.useState)(!1),v=()=>{x?window.open("https://twitter.com/intent/tweet?text=Just%20secured%20my%20new%20@ensdomains%20on%20bandit.network!%20Ready%20to%20rock%20my%20online%20presence.%20&hashtags=DigitalUpgrade","_blank"):window.open(`https://twitter.com/intent/tweet?text=Ready%20to%20take%20my%20online%20identity%20to%20the%20next%20level%20with%20my%20${i()}%20on%20bandit.network.%20And%20the%20best%20part?%20I%20also%20got%20some%20amazing%20rewards%20from%20@OnBndit,%20@bonk_inu,%20@NFTevening.%20Join%20me%20and%20claim%20yours%20now!`,"_blank")};return(0,t.jsx)(o.Box,{children:(0,t.jsxs)(o.Flex,{flexDir:"column",align:"center",position:"relative",w:"full",userSelect:"none",p:8,children:[(0,t.jsx)(o.Image,{src:m,w:"75",h:"75"}),(0,t.jsx)(o.Text,{textAlign:"center",mt:"4",fontSize:"20",fontWeight:"semibold",children:"Domain purchased successfully \u{1F389}"}),(0,t.jsxs)(o.Text,{textAlign:"center",marginY:"4",fontSize:14,children:["Note: Login to"," ",(0,t.jsx)(o.Link,{href:a(),target:"_blank",children:a()})," ","using ",(0,t.jsx)("b",{children:h(e,6)})," address to view your domain. It might take upto 10 minutes to register your domain."]}),(0,t.jsx)(o.Button,{mb:5,border:"1.5px solid",w:"fit-content",borderColor:"input",size:"sm",fontWeight:500,rightIcon:(0,t.jsx)(y.FaTwitter,{width:20,height:20,color:"#1DA1F2"}),onClick:v,children:"Celebrate"}),r&&(0,t.jsxs)(F,{bg:"gray.200",offersOpen:f,children:[(0,t.jsxs)(o.Flex,{justify:"space-between",align:"center",children:[(0,t.jsx)(o.Text,{fontSize:"sm",fontWeight:600,mb:1,children:"Exclusive rewards for purchasing UD"}),(0,t.jsx)(w.AiOutlineFullscreen,{cursor:"pointer",onClick:()=>b(!f)})]}),(0,t.jsx)(o.Text,{fontSize:"xs",fontWeight:500,mb:3,children:"As a thank you, we're offering exclusive rewards to the first 2500 users by our partner platforms"}),(0,t.jsx)(l,{imageSrc:E,onClick:()=>n("64072"),title:"Claim 100 $BAD token wrapped Bandit NFTs by Bandit"}),(0,t.jsx)(l,{imageSrc:$,title:"Eligible to receive 400K $BONK coins after the offer period by BONK"}),(0,t.jsx)(l,{imageSrc:N,title:"Get 15% discount on all services by NFT Evening"}),(0,t.jsx)(o.Text,{fontSize:"2xs",children:"These rewards are only available to the first 2500 users from our partner platforms, so don't miss out! Start exploring the exciting world of web3 domains and NFTs with these amazing offers."})]})]})})},O=M;
