import{useState as S}from"react";import{Box as b}from"@chakra-ui/react";import"react";import{jsx as s,jsxs as L}from"react/jsx-runtime";var v=t=>s(b,{as:"svg",width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s("g",{id:"a4e07f86",children:L("g",{id:"fc8efcce",children:[s("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"}),s("path",{id:"26f77c74",d:"M35.4165 50.0007L45.8332 60.4173L66.6665 39.584",stroke:"white",strokeWidth:"8.33333",strokeLinecap:"round",strokeLinejoin:"round"})]})})}),p=v;import{Box as m,Button as h,Flex as a,Image as u,Link as k,Text as r}from"@chakra-ui/react";var d=(t,o)=>t?t.length>o?t.substr(0,o-1)+"..."+t.substr(t.length-(o-1),t.length-1):t:"";import B from"@emotion/styled";import{AiOutlineFullscreen as T}from"react-icons/ai";import{FaTwitter as z}from"react-icons/fa";import{jsx as e,jsxs as n}from"react/jsx-runtime";var A="",C="",I="",$=B(m)`
  //margin-left: 30px;
  //margin-right: 30px;
  border: 1px solid #cccc;
  border-radius: 14px;
  padding: 10px 20px;
  height: 65px;
  overflow: hidden;
  ${({offersOpen:t})=>t&&`
    position: absolute;
    top : 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: unset;
  `};
`,l=({imageSrc:t,title:o,onClick:i})=>n(a,{align:"center",justify:"space-between",borderWidth:"1.5px",borderColor:"gray.400",borderRadius:"lg",p:1,mb:2,children:[n(a,{align:"center",children:[e(u,{src:t,w:8,h:8,borderRadius:"50%"}),e(r,{fontSize:"12px",fontWeight:600,mb:1,ml:3,children:o})]}),i&&e(h,{size:"xs",bg:"gray.800",color:"white",_hover:{bg:"gray.800"},onClick:i,children:"Claim here"})]}),N=({address:t,showOffers:o,onClickCollection:i,website:c,twitterHandle:g,isEnsDomain:w})=>{let[f,y]=S(!1),x=()=>{w?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${g()}%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 e(m,{children:n(a,{flexDir:"column",align:"center",position:"relative",w:"full",userSelect:"none",p:8,children:[e(u,{src:p,w:"75",h:"75"}),e(r,{textAlign:"center",mt:"4",fontSize:"20",fontWeight:"semibold",children:"Domain purchased successfully \u{1F389}"}),n(r,{textAlign:"center",marginY:"4",fontSize:14,children:["Note: Login to"," ",e(k,{href:c(),target:"_blank",children:c()})," ","using ",e("b",{children:d(t,6)})," address to view your domain. It might take upto 10 minutes to register your domain."]}),e(h,{mb:5,border:"1.5px solid",w:"fit-content",borderColor:"input",size:"sm",fontWeight:500,rightIcon:e(z,{width:20,height:20,color:"#1DA1F2"}),onClick:x,children:"Celebrate"}),o&&n($,{bg:"gray.200",offersOpen:f,children:[n(a,{justify:"space-between",align:"center",children:[e(r,{fontSize:"sm",fontWeight:600,mb:1,children:"Exclusive rewards for purchasing UD"}),e(T,{cursor:"pointer",onClick:()=>y(!f)})]}),e(r,{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"}),e(l,{imageSrc:I,onClick:()=>i("64072"),title:"Claim 100 $BAD token wrapped Bandit NFTs by Bandit"}),e(l,{imageSrc:A,title:"Eligible to receive 400K $BONK coins after the offer period by BONK"}),e(l,{imageSrc:C,title:"Get 15% discount on all services by NFT Evening"}),e(r,{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."})]})]})})},Q=N;export{Q as default};
