var fa=Object.create;var De=Object.defineProperty;var Ea=Object.getOwnPropertyDescriptor;var ya=Object.getOwnPropertyNames;var ha=Object.getPrototypeOf,Sa=Object.prototype.hasOwnProperty;var ba=(t,n)=>{for(var o in n)De(t,o,{get:n[o],enumerable:!0})},Rt=(t,n,o,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of ya(n))!Sa.call(t,i)&&i!==o&&De(t,i,{get:()=>n[i],enumerable:!(a=Ea(n,i))||a.enumerable});return t};var B=(t,n,o)=>(o=t!=null?fa(ha(t)):{},Rt(n||!t||!t.__esModule?De(o,"default",{value:t,enumerable:!0}):o,t)),Aa=t=>Rt(De({},"__esModule",{value:!0}),t);var Hr={};ba(Hr,{LoadingScreen:()=>Go,default:()=>Ur});module.exports=Aa(Hr);var f=require("@chakra-ui/react"),h=require("react"),Wo=require("@solana/wallet-adapter-react");var Y=B(require("axios"),1);var at=require("react"),Na=require("react/jsx-runtime"),Zr=(0,at.createContext)(void 0),ie="production";var $=ie==="development"?"https://qa-api-v2.bandit.network/sdk":"https://api-v2.bandit.network/sdk";var rt=async(t,n,o)=>{try{return(await Y.default.get(`${$}/collection/unstoppable/searchDomain?query=${n}&wallet_address=${o}`,{headers:{"X-API-KEY":t}})).data}catch(a){throw new Error(a)}},vt=async(t,n)=>{try{return(await Y.default.post(`${$}/collection/unstoppable/claim`,n,{headers:{"X-API-KEY":t}})).data}catch(o){throw o}},kt=async(t,n)=>{try{return(await Y.default.post(`${$}/collection/unstoppable/lockDomain`,n,{headers:{"X-API-KEY":t}})).data}catch(o){throw o}},Lt=async(t,n,o,a)=>{try{return(await Y.default.get(`${$}/collection/unstoppable/updatedPrice?domain=${n}&currency=${o}&wallet_address=${a}`,{headers:{"X-API-KEY":t}})).data}catch(i){throw i}},it=async(t,n)=>{try{return(await Y.default.get(`${$}/collection/sns/searchDomain?=&query=${n}`,{headers:{"X-API-KEY":t}})).data}catch(o){throw new Error(o)}},Bt=async(t,n,o,a,i,s)=>{try{return(await Y.default.post(`${$}/collection/sns/registerDomain`,{name:n,claimWallet:o,price:a,payUsing:i,space:s},{headers:{"X-API-KEY":t}})).data}catch(l){throw new Error(l)}},Dt=async(t,n,o)=>{try{return(await Y.default.post(`${$}/collection/sns/claimDomain`,{name:n,transactionHash:o},{headers:{"X-API-KEY":t}})).data}catch(a){throw new Error(a)}},st=async(t,n)=>{try{return(await Y.default.get(`${$}/collection/ens/searchDomains?query=${n}.eth`,{headers:{"X-API-KEY":t}})).data}catch(o){throw new Error(o)}},Pt=async(t,n)=>{try{return(await Y.default.post(`${$}/collection/ens/claimDomain`,n,{headers:{"X-API-KEY":t}})).data}catch(o){throw o}};var Ne=(t,n)=>t?t.length>n?t.substr(0,n-1)+"..."+t.substr(t.length-(n-1),t.length-1):t:"";var Wt=(t,n)=>{let o;return function(...a){o&&clearTimeout(o),o=setTimeout(()=>{t.apply(this,a)},n)}};var ti=require("react"),se=require("@chakra-ui/react"),ge=require("react/jsx-runtime"),ga=({validators:t,fullWidth:n=!1,...o})=>{let a=t.find(m=>!m.should),i={...o,...a?.fallbackProps},{children:s,onClick:l,disabled:N,helperText:b,isLoading:g=!1}=i;return(0,ge.jsxs)(se.Box,{style:{textAlign:"center"},children:[(0,ge.jsx)(se.Button,{w:n?"full":"",variant:"primary",onClick:l,isDisabled:N,isLoading:g,loadingText:s,children:s}),b&&(0,ge.jsx)(se.Text,{color:"foreground",fontSize:"12px",textAlign:"center",mb:"10px",lineHeight:1,mt:2,children:b})]})},Ut=ga;var ai=require("react"),H=require("@chakra-ui/react"),Ht=B(require("@emotion/styled"),1),U=require("react/jsx-runtime"),Ia=(0,Ht.default)(H.Text)`
  position: relative;
  width: fit-content;
  margin: 0 auto;

  &:after {
    content: '';
    border-top: 1px solid #2d3748;
    width: 100%;
    height: 1px;
    position: absolute;
    top: 50%;
    left: 0;
  }
`,Ca=({selected:t,onSelect:n,onUnSelect:o,domain:a,currency:i})=>{let{name:s,availability:l,rate:N,discountedRate:b,discount:g}=a,{price:m,status:u}=l,{subTotal:{usdCents:T}}=m,y=c=>{c.stopPropagation(),o()},p=()=>{if(u==="NOT_AVAILABLE")return"Sold";if(t)return"Selected";if(!t)return"Select"},P=()=>{t?o():t||n()};return(0,U.jsx)(H.Box,{position:"relative",paddingY:2,mb:3,zIndex:"1",border:"1px solid #cccccc",borderRadius:10,flexDir:"row",children:(0,U.jsxs)(H.Flex,{paddingX:3,align:"center",justify:"space-between",flexDir:"row",children:[(0,U.jsx)(H.Text,{fontSize:14,children:s}),(0,U.jsxs)(H.Flex,{align:"center",children:[u==="AVAILABLE"&&(0,U.jsxs)(H.Box,{mr:4,children:[(0,U.jsxs)(H.Text,{textAlign:"center",fontSize:12,fontWeight:600,children:[b[i]??T/100," ",i," ",(0,U.jsxs)("span",{style:{fontWeight:600},children:["($",b.USDT,")"]})]}),g>0&&(0,U.jsxs)(H.Flex,{children:[(0,U.jsxs)(Ia,{textAlign:"center",fontSize:10,fontWeight:500,lineHeight:1,children:[N[i]??T/100," ",i," ",(0,U.jsxs)("span",{style:{fontWeight:400},children:["($",T/100,")"]})]}),(0,U.jsxs)(H.Text,{ml:1,textAlign:"center",fontSize:10,fontWeight:500,lineHeight:1,color:"green",children:["(",g,"% off)"]})]})]}),(0,U.jsx)(H.Button,{size:"sm",variant:"outline",bg:t?"input":"initial",minWidth:"20",onClick:P,isDisabled:u==="NOT_AVAILABLE",children:p()})]})]})})},zt=Ca;var si=require("react"),Pe=require("@chakra-ui/react"),Gt=require("@chakra-ui/icons"),Ie=require("react/jsx-runtime"),xa=()=>(0,Ie.jsxs)(Pe.Flex,{marginY:8,direction:"column",align:"center",children:[(0,Ie.jsx)(Gt.Search2Icon,{mb:3}),(0,Ie.jsx)(Pe.Text,{fontSize:"md",fontWeight:500,width:"80%",textAlign:"center",margin:"0 auto",children:"Find your perfect domain by typing into the search field above."})]}),Ft=xa;var Uo=B(require("@emotion/styled"),1),Nt=require("@solana/web3.js"),Ho=require("@web3-react/core"),ae=B(require("bignumber.js"),1),zo=require("react-redux");var Vt=require("@reduxjs/toolkit"),wa={selectedCollectionId:null,showMint:!1,collectionViewOpen:!1,selectedSpaceId:!1},Kt=(0,Vt.createSlice)({name:"collection",initialState:wa,reducers:{updateSelectedCollectionId(t,{payload:{id:n}}){t.selectedCollectionId=n},updateShowMint(t,{payload:{showMint:n}}){t.showMint=n},updateCollectionViewOpen(t,{payload:{collectionViewOpen:n}}){t.collectionViewOpen=n},updateSelectedSpaceId(t,{payload:{id:n}}){t.selectedSpaceId=n}}}),{updateSelectedCollectionId:Zt,updateShowMint:pi,updateCollectionViewOpen:mi,updateSelectedSpaceId:di}=Kt.actions,ui=Kt.reducer;var e={MAINNET:1,GOERLI:5,SHARDEUM20:8081,SHARDEUM_SPHINX:8082,BINANCE:56,BINANCE_TESTNET:97,SOLANA:9090,SOLANA_DEVNET:9091,POLYGON_MAINNET:137,POLYGON_MUMBAI:80001,STACKS_TESTNET:6061,STACKS_MAINNET:6060,BASE_MAINNET:8453,BASE_TESTNET:84531,CORE_MAINNET:1116,CORE_TESTNET:1115,TELOS_MAINNET:40,TELOS_TESTNET:41,OPTIMISM_MAINNET:10,OPTIMISM_GOERLI:420,ARBITRUM:42161,ARBITRUM_GOERLI:421613,AVALANCHE:43114,AVALANCHE_TESTNET:43113,ZORA_MAINNET:7777777,ZORA_GOERLI:999,MANTA:169,MANTA_TESTNET:3441005,ZETA:7e3,ZETA_TESTNET:7001,OMNI_TESTNET:165},fi={[e.MAINNET]:"mainnet",[e.GOERLI]:"goerli",[e.BINANCE]:"binance smart chain",[e.BINANCE_TESTNET]:"binance smart chain - testnet",[e.SHARDEUM20]:"Shardeum Liberty 2.0",[e.SHARDEUM_SPHINX]:"Shardeum Sphinx",[e.BASE_MAINNET]:"base mainnet",[e.BASE_TESTNET]:"base goerli",[e.CORE_MAINNET]:"core mainnet",[e.CORE_TESTNET]:"core testnet",[e.TELOS_MAINNET]:"telos mainnet",[e.TELOS_TESTNET]:"telos testnet",[e.OPTIMISM_MAINNET]:"optimism mainnet",[e.OPTIMISM_GOERLI]:"optimism goerli",[e.ARBITRUM]:"arbitrum",[e.ARBITRUM_GOERLI]:"arbitrum goerli",[e.AVALANCHE]:"avalanche",[e.AVALANCHE_TESTNET]:"avalanche testnet",[e.ZORA_MAINNET]:"zora mainnet",[e.ZORA_GOERLI]:"zora goerli",[e.MANTA]:"manta",[e.MANTA_TESTNET]:"manta testnet",[e.ZETA]:"zeta",[e.ZETA_TESTNET]:"zeta testnet",[e.OMNI_TESTNET]:"omni testnet"},Ei={[e.MAINNET]:"eth",[e.GOERLI]:"goerli",[e.BINANCE]:"bsc",[e.BINANCE_TESTNET]:"bsc-testnet",[e.SOLANA]:"solana",[e.SOLANA_DEVNET]:"solana-devnet",[e.SHARDEUM20]:"Shardeum-Liberty-2.0",[e.POLYGON_MAINNET]:"polygon-mainnet",[e.POLYGON_MUMBAI]:"polygon-mumbai",[e.BASE_MAINNET]:"base-mainnet",[e.BASE_TESTNET]:"base-goerli",[e.CORE_MAINNET]:"core",[e.CORE_TESTNET]:"core-testnet",[e.TELOS_MAINNET]:"telos-mainnet",[e.TELOS_TESTNET]:"telos-testnet",[e.OPTIMISM_MAINNET]:"optimism-mainnet",[e.OPTIMISM_GOERLI]:"optimism-goerli",[e.ARBITRUM]:"arbitrum",[e.ARBITRUM_GOERLI]:"arbitrum-goerli",[e.AVALANCHE]:"avalanche",[e.AVALANCHE_TESTNET]:"avalanche-testnet",[e.ZORA_MAINNET]:"zora-mainnet",[e.ZORA_GOERLI]:"zora-goerli",[e.MANTA]:"manta",[e.MANTA_TESTNET]:"manta-testnet",[e.ZETA]:"zeta",[e.ZETA_TESTNET]:"zeta-testnet",[e.OMNI_TESTNET]:"omni-testnet"},E={[e.MAINNET]:"https://etherscan.io/",[e.GOERLI]:"https://goerli.etherscan.io/",[e.BINANCE]:"https://bscscan.com/",[e.BINANCE_TESTNET]:"https://testnet.bscscan.com/",[e.SOLANA]:"https://solscan.io/",[e.SOLANA_DEVNET]:"https://solscan.io/",[e.SHARDEUM20]:"https://explorer-dapps.shardeum.org/",[e.SHARDEUM_SPHINX]:"https://explorer-sphinx.shardeum.org/",[e.POLYGON_MAINNET]:"https://polygonscan.com/",[e.POLYGON_MUMBAI]:"https://mumbai.polygonscan.com/",[e.STACKS_TESTNET]:"https://explorer.stacks.co/",[e.STACKS_MAINNET]:"https://explorer.stacks.co/",[e.BASE_MAINNET]:"https://basescan.org/",[e.BASE_TESTNET]:"https://goerli.basescan.org/",[e.CORE_MAINNET]:"https://scan.coredao.org/",[e.CORE_TESTNET]:"https://scan.test.btcs.network/",[e.TELOS_MAINNET]:"https://teloscan.io/",[e.TELOS_TESTNET]:"https://testnet.teloscan.io/",[e.OPTIMISM_MAINNET]:"https://optimistic.etherscan.io/",[e.OPTIMISM_GOERLI]:"https://optimism-goerli.blockscout.com/",[e.ARBITRUM]:"https://arbiscan.io/",[e.ARBITRUM_GOERLI]:"https://goerli-rollup-explorer.arbitrum.io/",[e.AVALANCHE]:"https://snowtrace.io/",[e.AVALANCHE_TESTNET]:"https://testnet.snowtrace.io/",[e.ZORA_MAINNET]:"https://explorer.zora.energy/",[e.ZORA_GOERLI]:"https://testnet.explorer.zora.energy/",[e.MANTA]:"https://pacific-explorer.manta.network/",[e.MANTA_TESTNET]:"https://pacific-explorer.testnet.manta.network/",[e.ZETA]:"https://explorer.mainnet.zetachain.com/",[e.ZETA_TESTNET]:"https://athens3.explorer.zetachain.com/",[e.OMNI_TESTNET]:"https://testnet.explorer.omni.network/"},$t={[e.MAINNET]:{explorer:E[e.MAINNET],label:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18}},[e.GOERLI]:{explorer:E[e.GOERLI],label:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"gETH",decimals:18}},[e.BINANCE]:{explorer:E[e.BINANCE],label:"BNB Smart Chain",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18}},[e.BINANCE_TESTNET]:{explorer:E[e.BINANCE_TESTNET],label:"BNB Smart Chain Testnet",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18}},[e.SHARDEUM20]:{explorer:E[e.SHARDEUM20],label:"Shardeum Sphinx DApp",nativeCurrency:{name:"SHM",symbol:"SHM",decimals:18}},[e.SHARDEUM_SPHINX]:{explorer:E[e.SHARDEUM_SPHINX],label:"Shardeum Sphinx",nativeCurrency:{name:"SHM",symbol:"SHM",decimals:18}},[e.POLYGON_MUMBAI]:{explorer:E[e.POLYGON_MUMBAI],label:"Mumbai",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18}},[e.POLYGON_MAINNET]:{explorer:E[e.POLYGON_MAINNET],label:"Polygon",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18}},[e.SOLANA_DEVNET]:{explorer:E[e.SOLANA_DEVNET],label:"Solana Devnet",nativeCurrency:{name:"SOL",symbol:"SOL",decimals:9}},[e.SOLANA]:{explorer:E[e.SOLANA],label:"Solana",nativeCurrency:{name:"SOL",symbol:"SOL",decimals:9}},[e.BASE_MAINNET]:{explorer:E[e.BASE_MAINNET],label:"Base",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.BASE_TESTNET]:{explorer:E[e.BASE_TESTNET],label:"Base Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.CORE_MAINNET]:{explorer:E[e.CORE_MAINNET],label:"Core",nativeCurrency:{name:"CORE",symbol:"CORE",decimals:18}},[e.CORE_TESTNET]:{explorer:E[e.CORE_TESTNET],label:"Core Testnet",nativeCurrency:{name:"CORE",symbol:"CORE",decimals:18}},[e.STACKS_MAINNET]:{explorer:E[e.STACKS_MAINNET],label:"Stacks",nativeCurrency:{name:"STACKS",symbol:"STACKS",decimals:18}},[e.STACKS_TESTNET]:{explorer:E[e.STACKS_MAINNET],label:"Stacks Testnet",nativeCurrency:{name:"STACKS",symbol:"STACKS",decimals:18}},[e.TELOS_MAINNET]:{explorer:E[e.TELOS_MAINNET],label:"Telos",nativeCurrency:{name:"TLOS",symbol:"TLOS",decimals:18}},[e.TELOS_TESTNET]:{explorer:E[e.TELOS_TESTNET],label:"Telos Testnet",nativeCurrency:{name:"TLOS",symbol:"TLOS",decimals:18}},[e.OPTIMISM_MAINNET]:{explorer:E[e.OPTIMISM_MAINNET],label:"Optimism",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.OPTIMISM_GOERLI]:{explorer:E[e.OPTIMISM_GOERLI],label:"Optimism Goerli",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.ARBITRUM]:{explorer:E[e.ARBITRUM],label:"Arbitrum",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.ARBITRUM_GOERLI]:{explorer:E[e.ARBITRUM_GOERLI],label:"Arbitrum Goerli",nativeCurrency:{name:"AGOR",symbol:"AGOR",decimals:18}},[e.AVALANCHE]:{explorer:E[e.AVALANCHE],label:"Avalanche",nativeCurrency:{name:"AVAX",symbol:"AVAX",decimals:18}},[e.AVALANCHE_TESTNET]:{explorer:E[e.AVALANCHE_TESTNET],label:"Avalanche Testnet",nativeCurrency:{name:"AVAX",symbol:"AVAX",decimals:18}},[e.ZORA_MAINNET]:{explorer:E[e.ZORA_MAINNET],label:"Zora",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.ZORA_GOERLI]:{explorer:E[e.ZORA_GOERLI],label:"Zora Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.MANTA]:{explorer:E[e.MANTA],label:"Manta",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.MANTA_TESTNET]:{explorer:E[e.MANTA_TESTNET],label:"Manta Testnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18}},[e.ZETA]:{explorer:E[e.ZETA],label:"Zeta",nativeCurrency:{name:"ZETA",symbol:"ZETA",decimals:18}},[e.ZETA_TESTNET]:{explorer:E[e.ZETA_TESTNET],label:"Zeta Testnet",nativeCurrency:{name:"ZETA",symbol:"ZETA",decimals:18}},[e.OMNI_TESTNET]:{explorer:E[e.OMNI_TESTNET],label:"Omni Testnet",nativeCurrency:{name:"OMNI",symbol:"OMNI",decimals:18}}},yi=Object.values(e).filter(t=>typeof t=="number"),Ma=[1,5,56,4,97,8081,8082,137,80001,8453,84531,1116,1115,40,41,10,420,42161,421613,43114,43113,7777777,999,3441005,7001,169,7e3,165],Yt=Ma;var We=require("@web3-react/core"),jt=require("@web3-react/metamask"),Jt=require("@web3-react/network"),Qt=require("@web3-react/walletconnect-v2");var bi={[e.MAINNET]:"Ethereum",[e.GOERLI]:"Goerli",[e.BINANCE]:"BNB Smart Chain",[e.BINANCE_TESTNET]:"BNB Smart Chain Testnet",[e.SOLANA]:"Solana Mainnet",[e.SOLANA_DEVNET]:"Solana Devnet",[e.SHARDEUM20]:"Shardeum Sphinx DApp 1.X",[e.SHARDEUM_SPHINX]:"Shardeum Sphinx",[e.POLYGON_MUMBAI]:"Polygon Mumbai",[e.POLYGON_MAINNET]:"Polygon",[e.BASE_MAINNET]:"Base Mainnet",[e.BASE_TESTNET]:"Base Goerli",[e.CORE_MAINNET]:"Core Mainnet",[e.CORE_TESTNET]:"Core Testnet",[e.TELOS_MAINNET]:"Telos",[e.TELOS_TESTNET]:"Telos Testnet",[e.OPTIMISM_MAINNET]:"Optimism",[e.OPTIMISM_GOERLI]:"Optimism Goerli",[e.ARBITRUM]:"Arbitrum",[e.ARBITRUM_GOERLI]:"Arbitrum Goerli",[e.AVALANCHE]:"Avalanche",[e.AVALANCHE_TESTNET]:"Avalanche Testnet",[e.ZORA_MAINNET]:"Zora Mainnet",[e.ZORA_GOERLI]:"Zora Goerli",[e.MANTA]:"Manta",[e.MANTA_TESTNET]:"Manta Testnet",[e.ZETA]:"Zeta",[e.ZETA_TESTNET]:"ZetaChain Testnet",[e.OMNI_TESTNET]:"Omni Testnet"},Ai={[e.MAINNET]:{name:"Ethereum mainnet",api:"https://api.etherscan.io/api",key:"7GJC7W52P7BJ3ESQCBGG2YP3M597M69ZEC",explorer:"https://etherscan.io"},[e.GOERLI]:{name:"Goerli",api:"https://api-goerli.etherscan.io/api",key:"7GJC7W52P7BJ3ESQCBGG2YP3M597M69ZEC",explorer:"https://goerli.etherscan.io"},[e.BINANCE]:{name:"Binance smart chain mainnet",api:"https://api.bscscan.com/api",key:"3THBPRKH4RNSF4KF52JFAJZX92SHX2FUIV",explorer:"https://bscscan.com"},[e.BINANCE_TESTNET]:{name:"Binance smart chain testnet",api:"https://api-testnet.bscscan.com/api",key:"3THBPRKH4RNSF4KF52JFAJZX92SHX2FUIV",explorer:"https://testnet.bscscan.com"},[e.SHARDEUM20]:{name:"Shadreum liberty 2.0",api:"",key:"",explorer:"https://explorer-liberty20.shardeum.org/"},[e.SOLANA]:{name:"Solana",api:"",key:""},[e.SOLANA_DEVNET]:{name:"Solana devnet",api:"",key:""},[e.BASE_MAINNET]:{name:"Base mainnet",api:"",key:"",explorer:"https://basescan.org"},[e.BASE_TESTNET]:{name:"Base testnet",api:"",key:"",explorer:"https://goerli.basescan.org"},[e.CORE_MAINNET]:{name:"Core mainnet",api:"",key:"",explorer:"https://scan.coredao.org/"},[e.CORE_TESTNET]:{name:"Core testnet",api:"",key:"",explorer:"https://scan.test.btcs.network/"},[e.MANTA]:{name:"Manta",api:"",key:"",explorer:"https://pacific-explorer.manta.network"},[e.MANTA_TESTNET]:{name:"Manta testnet",api:"",key:"",explorer:"https://pacific-explorer.testnet.manta.network"},[e.ZETA]:{name:"ZetaChain mainnet",api:"",key:"",explorer:"https://explorer.mainnet.zetachain.com"},[e.MANTA_TESTNET]:{name:"ZetaChain testnet",api:"",key:"",explorer:"https://athens3.explorer.zetachain.com"}},Ce={[e.MAINNET]:"https://attentive-dark-slug.quiknode.pro/3b2478b2d351ebcec1f782076ece31b2a6c94ce8",[e.GOERLI]:"https://goerli.infura.io/v3/82e1f883cd2d45608ba6022fa9432ff0",[e.SHARDEUM20]:"https://dapps.shardeum.org/",[e.SHARDEUM_SPHINX]:"https://sphinx.shardeum.org/",[e.BINANCE]:"https://cold-green-snowflake.bsc.quiknode.pro/df79c99750fe774f3e16a8baddd8788dd627597a",[e.BINANCE_TESTNET]:"https://data-seed-prebsc-1-s1.binance.org:8545",[e.POLYGON_MUMBAI]:"https://polygon-mumbai.infura.io/v3/3e34307cdece46d9a15cce3d2a7525a2",[e.POLYGON_MAINNET]:"https://hardworking-sleek-shadow.matic.quiknode.pro/36b5bd8dec912863be0fe401fad61fce7634fdb8",[e.BASE_MAINNET]:"https://mainnet.base.org",[e.BASE_TESTNET]:"https://goerli.base.org",[e.CORE_MAINNET]:"https://rpc.coredao.org/",[e.CORE_TESTNET]:"https://rpc.test.btcs.network/",[e.TELOS_MAINNET]:"https://mainnet.telos.net/evm",[e.TELOS_TESTNET]:"https://testnet.telos.net/evm",[e.OPTIMISM_GOERLI]:"https://goerli.optimism.io",[e.OPTIMISM_MAINNET]:"https://optimism.meowrpc.com",[e.ARBITRUM]:"https://arb1.arbitrum.io/rpc",[e.ARBITRUM_GOERLI]:"https://endpoints.omniatech.io/v1/arbitrum/goerli/public",[e.AVALANCHE]:"https://api.avax.network/ext/bc/C/rpc",[e.AVALANCHE_TESTNET]:"https://api.avax-test.network/ext/bc/C/rpc",[e.ZORA_MAINNET]:"https://rpc.zora.energy",[e.ZORA_GOERLI]:"https://testnet.rpc.zora.energy",[e.MANTA]:"https://pacific-rpc.manta.network/http",[e.MANTA_TESTNET]:"https://manta-testnet.calderachain.xyz/http",[e.ZETA]:"https://api.mainnet.zetachain.com/evm",[e.ZETA_TESTNET]:"https://zetachain-athens-evm.blockpi.network/v1/rpc/public",[e.OMNI_TESTNET]:"https://testnet.omni.network"},Xt={[e.MAINNET]:"https://mainnet.infura.io/v3/3e34307cdece46d9a15cce3d2a7525a2",[e.GOERLI]:"https://goerli.infura.io/v3/82e1f883cd2d45608ba6022fa9432ff0",[e.BINANCE]:"https://bsc-dataseed.binance.org",[e.SHARDEUM_SPHINX]:"https://sphinx.shardeum.org/",[e.SHARDEUM20]:"https://dapps.shardeum.org/",[e.BINANCE_TESTNET]:"https://data-seed-prebsc-1-s1.binance.org:8545",[e.POLYGON_MUMBAI]:"https://endpoints.omniatech.io/v1/matic/mumbai/public",[e.POLYGON_MAINNET]:"https://polygon.llamarpc.com",[e.BASE_MAINNET]:"https://mainnet.base.org",[e.BASE_TESTNET]:"https://goerli.base.org",[e.TELOS_MAINNET]:"https://mainnet.telos.net/evm",[e.TELOS_TESTNET]:"https://testnet.telos.net/evm",[e.OPTIMISM_GOERLI]:"https://goerli.optimism.io",[e.OPTIMISM_MAINNET]:"https://optimism.meowrpc.com",[e.ARBITRUM]:"https://arb1.arbitrum.io/rpc",[e.ARBITRUM_GOERLI]:"https://endpoints.omniatech.io/v1/arbitrum/goerli/public",[e.AVALANCHE]:"https://api.avax.network/ext/bc/C/rpc",[e.AVALANCHE_TESTNET]:"https://api.avax-test.network/ext/bc/C/rpc",[e.ZORA_MAINNET]:"https://rpc.zora.energy",[e.ZORA_GOERLI]:"https://testnet.rpc.zora.energy",[e.MANTA]:"https://pacific-rpc.manta.network/http",[e.MANTA_TESTNET]:"https://manta-testnet.calderachain.xyz/http",[e.ZETA]:"https://api.mainnet.zetachain.com/evm",[e.ZETA_TESTNET]:"https://zetachain-athens-evm.blockpi.network/v1/rpc/public",[e.OMNI_TESTNET]:"https://testnet.omni.network"},qt={[e.MAINNET]:["https://api.mycryptoapi.com/eth","https://cloudflare-eth.com","https://rpc.ankr.com/eth","https://eth-mainnet.public.blastapi.io"],[e.GOERLI]:["https://rpc.goerli.mudit.blog/","https://rpc.ankr.com/eth_goerli"]},Ni={[e.MAINNET]:encodeURIComponent("ethereum"),[e.GOERLI]:encodeURIComponent("goerli"),[e.BINANCE]:encodeURIComponent("binance"),[e.BINANCE_TESTNET]:encodeURIComponent("binance testnet"),[e.SOLANA]:encodeURIComponent("solana"),[e.SOLANA_DEVNET]:encodeURIComponent("solana_devnet"),[e.SHARDEUM20]:encodeURIComponent("shardeum 2.0"),[e.POLYGON_MAINNET]:encodeURIComponent("polygon"),[e.POLYGON_MUMBAI]:encodeURIComponent("polygon-mumbai"),[e.STACKS_MAINNET]:encodeURIComponent("stacks"),[e.STACKS_TESTNET]:encodeURIComponent("stacks testnet"),[e.BASE_MAINNET]:encodeURIComponent("base mainnet"),[e.BASE_TESTNET]:encodeURIComponent("base testnet"),[e.CORE_MAINNET]:encodeURIComponent("core mainnet"),[e.CORE_TESTNET]:encodeURIComponent("core testnet"),[e.MANTA]:encodeURIComponent("manta"),[e.MANTA_TESTNET]:encodeURIComponent("manta testnet"),[e.ZETA]:encodeURIComponent("zeta"),[e.ZETA_TESTNET]:encodeURIComponent("zeta testnet")},gi={[e.MAINNET]:"ETHEREUM",[e.GOERLI]:"GOERLI",[e.BINANCE]:"BSC",[e.BINANCE_TESTNET]:"BSC_TESTNET",[e.SOLANA]:"SOLANA",[e.SOLANA_DEVNET]:"SOLANA_DEVNET",[e.SHARDEUM20]:"SHARDEUM",[e.SHARDEUM_SPHINX]:"SHARDEUM_SPHINX_1.X",[e.POLYGON_MAINNET]:"POLYGON",[e.POLYGON_MUMBAI]:"POLYGON_MUMBAI",[e.STACKS_MAINNET]:"STACKS",[e.STACKS_TESTNET]:"STACKS_TESTNET",[e.BASE_MAINNET]:"BASE_MAINNET",[e.BASE_TESTNET]:"BASE_GOERLI",[e.CORE_MAINNET]:"CORE",[e.CORE_TESTNET]:"CORE_TESTNET",[e.TELOS_MAINNET]:"TELOS_MAINNET",[e.TELOS_TESTNET]:"TELOS_TESTNET",[e.OPTIMISM_MAINNET]:"OPTIMISM",[e.OPTIMISM_GOERLI]:"OPTIMISM_GOERLI",[e.ARBITRUM]:"ARBITRUM",[e.ARBITRUM_GOERLI]:"ARBITRUM_GOERLI",[e.AVALANCHE]:"AVALANCHE",[e.AVALANCHE_TESTNET]:"AVALANCHE_TESTNET",[e.ZORA_GOERLI]:"ZORA_GOERLI",[e.ZORA_MAINNET]:"ZORA",[e.MANTA]:"MANTA",[e.MANTA_TESTNET]:"MANTA_TESTNET",[e.ZETA]:"ZETA",[e.ZETA_TESTNET]:"ZETA_TESTNET",[e.OMNI_TESTNET]:"OMNI_TESTNET"};var lt={INJECTED:"INJECTED",WALLET_CONNECT:"WALLET_CONNECT",NETWORK:"NETWORK"};function en(t){console.debug(`web3-react error: ${t}`)}function _a(t){en(t)}var[Oa,Ra]=(0,We.initializeConnector)(t=>new Jt.Network({actions:t,urlMap:Ce,defaultChainId:1})),tn={connector:Oa,hooks:Ra,type:lt.NETWORK},[va,ka]=(0,We.initializeConnector)(t=>new jt.MetaMask({actions:t,onError:_a})),xi={connector:va,hooks:ka,type:lt.INJECTED},[La,Ba]=(0,We.initializeConnector)(t=>{let n=Object.entries(Ce).reduce((o,[a,i])=>({...o,[a]:i[0]}),{});return new Qt.WalletConnect({actions:t,options:{projectId:"600da6aac724cb2c05d52087cb405879",chains:[1],optionalChains:[5,137,80001,56,97,8081],showQrModal:!0,qrModalOptions:{themeVariables:{"--wcm-z-index":"2147483647"}}},onError:en})}),nn={connector:La,hooks:Ba,type:lt.WALLET_CONNECT};function Da(t){switch(t){case e.MAINNET:case e.GOERLI:case e.BINANCE:case e.BINANCE_TESTNET:case e.SHARDEUM_SPHINX:case e.SHARDEUM20:case e.POLYGON_MAINNET:case e.POLYGON_MUMBAI:case e.BASE_MAINNET:case e.BASE_TESTNET:case e.CORE_MAINNET:case e.CORE_TESTNET:case e.TELOS_MAINNET:case e.TELOS_TESTNET:case e.OPTIMISM_MAINNET:case e.OPTIMISM_GOERLI:case e.ARBITRUM:case e.ARBITRUM_GOERLI:case e.AVALANCHE:case e.AVALANCHE_TESTNET:case e.ZORA_MAINNET:case e.ZORA_GOERLI:case e.MANTA:case e.MANTA_TESTNET:case e.ZETA:case e.ZETA_TESTNET:case e.OMNI_TESTNET:return Xt[t];default:return qt[t][0]}}function Pa(t){return!!t&&Yt.includes(t)}var on=async(t,n)=>{if(Pa(n))if(t===nn.connector||t===tn.connector)await t.activate(n);else{let o=$t[n],a={chainId:n,chainName:o.label,rpcUrls:[Da(n)],nativeCurrency:o.nativeCurrency,blockExplorerUrls:[o.explorer]};await t.activate(a)}else throw new Error(`Chain ${n} not supported for connector (${typeof t})`)};var xe=B(require("@emotion/styled"),1),Ue=require("@chakra-ui/react"),an=require("@chakra-ui/icons"),vi=(0,xe.default)(Ue.Box)`
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: var(--bad-colors-background);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
`,ki=xe.default.a`
  // color: ${({theme:t})=>t.colors.primary} !important;
  // border-bottom: 1px solid ${({theme:t})=>t.colors.primary} !important;
  margin-top: 10px;
  font-size: 14px;
`,rn=(0,xe.default)(an.CloseIcon)`
  position: absolute;
  right: 5%;
  top: 20px;
  width: 16px;
  height: 16px;
  cursor: pointer;
`,Li=(0,xe.default)(Ue.Button)`
  &:hover {
    background-color: ${({theme:t})=>t.colors.foreground} !important;
    color: ${({theme:t})=>t.colors.background};
  }
`;var sn=[{label:"BONK (Solana)",value:"BONK",ticker:"BONK",address:"ERkzwkBkPeF1Q2LJr9Jqr2dcy4zZSV1pX6VGFxDmniM2",chain:9091,decimals:6,id:9},{label:"SOL (Solana)",value:"SOL",ticker:"SOL",address:"",chain:9091,decimals:9,id:6},{label:"USDT (Solana)",value:"SOL_USDT",ticker:"USDT",address:"26TJZb2cciYM95dioxB5u7Yo2A3seLXEkbrLAaiCNwSr",chain:9091,decimals:6,id:12}],ln=[{label:"BONK (Solana)",value:"BONK",ticker:"BONK",address:"DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",chain:9091,decimals:5,id:9},{label:"SOL (Solana)",value:"SOL",ticker:"SOL",address:"",chain:9091,decimals:9,id:6},{label:"USDT (Solana)",value:"SOL_USDT",ticker:"USDT",address:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",chain:9091,decimals:6,id:12}],cn=[{label:"USDT (Goerli)",value:"ETH_USDT",ticker:"USDT",address:"0x72904413f681e3ad1e054eb5473e65e57aa6856e",chain:5},{label:"ETH (Goerli)",value:"ETH",ticker:"ETH",chain:5},{label:"MATIC (Mumbai)",value:"MATIC",ticker:"MATIC",chain:80001},{label:"USDT (Mumbai)",value:"MATIC_USDT",ticker:"USDT",address:"0xf35524a13b9f49885a7c6848f5b164603db92bc0",chain:80001}],pn=[{label:"ETH (Ethereum)",value:"ETH",ticker:"ETH",chain:1},{label:"USDT (Ethereum)",value:"ETH_USDT",ticker:"USDT",address:"0xdac17f958d2ee523a2206206994597c13d831ec7",chain:1},{label:"MATIC (Polygon)",value:"MATIC",ticker:"MATIC",chain:137},{label:"USDT (Polygon)",value:"MATIC_USDT",ticker:"USDT",address:"0xc2132d05d31c914a87c6611c10748aeb04b58e8f",chain:137}];var me=require("react");var fn=require("@web3-react/core"),En=require("react");var mn=require("@ethersproject/address"),dn=require("@ethersproject/constants"),un=require("@ethersproject/contracts");function Wa(t,n){return t.getSigner(n).connectUnchecked()}function Ua(t,n){return n?Wa(t,n):t}function Tn(t,n,o,a){if(!(0,mn.isAddress)(t)||t===dn.AddressZero)throw Error(`Invalid 'address' parameter '${t}'.`);return new un.Contract(t,n,Ua(o,a))}function le(t,n,o=!0){let{provider:a,account:i,chainId:s}=(0,fn.useWeb3React)();return(0,En.useMemo)(()=>{if(!t||!n||!a||!s)return null;let l;if(typeof t=="string"?l=t:l=t[s],!l)return null;try{return Tn(l,n,a,o&&i?i:void 0)}catch(N){return console.error("Failed to get contract",N),null}},[t,n,a,s,o,i])}var Hn=require("@ethersproject/address");var He=[{inputs:[{internalType:"uint256",name:"initialSupply",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}];var zn=require("@web3-react/core"),Ve=require("@solana/wallet-adapter-react"),de=require("@solana/web3.js"),Fe=B(require("bignumber.js"),1);var ze=require("react"),Ha=t=>{let n=(0,ze.useRef)();return(0,ze.useEffect)(()=>{n.current=t},[t]),n.current},ct=Ha;var yn=B(require("bignumber.js"),1),za=new yn.default(10),hn=za.pow(18);var Un=require("react");var pe=require("react"),or=require("@solana/wallet-adapter-react"),ar=require("@web3-react/core");var Sn=require("react"),bn=require("@stacks/connect");var F=t=>t?t?.chains?.includes("SOL"):!1,pt=t=>t?t?.chains?.includes("EVM"):!1;var An=require("@reduxjs/toolkit"),Ga={selectedWallet:void 0,selectedSolanaWallet:void 0,accessKey:null,details:{}},Nn=(0,An.createSlice)({name:"user",initialState:Ga,reducers:{updateSelectedWallet(t,{payload:{wallet:n}}){t.selectedWallet=n},updateSolanaSelectedWallet(t,{payload:{wallet:n}}){t.selectedSolanaWallet=n},updateAccessKey(t,{payload:{accessKey:n}}){t.accessKey=n},updateUserDetails(t,{payload:{details:n}}){t.details=n}}}),{updateSelectedWallet:Fa,updateSolanaSelectedWallet:Zi,updateAccessKey:$i,updateUserDetails:Yi}=Nn.actions,Xi=Nn.reducer;var rr=require("react-redux");var nr=require("react");var we=require("@web3-react/core"),wn=require("@web3-react/metamask"),dt=require("@web3-react/walletconnect-v2"),Mn=require("@web3-react/network");var Va=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,Ka=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,gn=t=>typeof window>"u"||typeof navigator>"u"?!1:Va.test(navigator.userAgent)||Ka.test(navigator.userAgent.substring(0,4))||Cn(t)||In(),In=()=>typeof window>"u"||typeof navigator>"u"?!1:/iPhone/.test(navigator.userAgent),Cn=t=>{if(typeof window>"u"||typeof navigator>"u")return!1;let n=t||navigator.maxTouchPoints;return/iPad/.test(navigator.userAgent)||/Mac/.test(navigator.userAgent)&&n===5},mt=t=>typeof window>"u"||typeof navigator>"u"?!1:In()||Cn(t),xn=()=>typeof window>"u"||typeof navigator>"u"?!1:navigator.userAgent.includes("SamsungBrowser");var Me={METAMASK:"Metamask",BRAVE:"braveEvm",WALLET_CONNECT:"WalletConnect",HAHA_WALLET:"Haha",NETWORK:"Network"},Za=t=>{window?.ReactNativeWebView?.postMessage(JSON.stringify(t))},[_n,On]=(0,we.initializeConnector)(t=>new wn.MetaMask({actions:t})),Rn={connector:_n,hooks:On,name:Me.METAMASK,isInstalled:()=>window?.ethereum?.isMetaMask,handleMobile:(t,n)=>{mt()?window.open(`${n.native}?uri=${encodeURIComponent(t??"")}`,"_self","noreferrer noopener"):window.open(`${n.universal}?uri=${encodeURIComponent(t??"")}`,"_self","noreferrer noopener")}},es={connector:_n,hooks:On,name:Me.BRAVE,isInstalled:()=>window?.ethereum?.isBraveWallet,handleMobile:(t,n)=>{mt()?window.open(`${n.native}?uri=${encodeURIComponent(t??"")}`,"_self","noreferrer noopener"):window.open(`${n.universal}?uri=${encodeURIComponent(t??"")}`,"_self","noreferrer noopener")}},[$a,Ya]=(0,we.initializeConnector)(t=>new dt.WalletConnect({actions:t,options:{projectId:"600da6aac724cb2c05d52087cb405879",chains:[1],optionalChains:[5,137,80001,56,97,8081],showQrModal:!1,qrModalOptions:{themeVariables:{"--wcm-z-index":"2147483647"}}},onError:n=>{console.log(n)}})),[Xa,ts]=(0,we.initializeConnector)(t=>new dt.WalletConnect({actions:t,options:{projectId:"600da6aac724cb2c05d52087cb405879",chains:[1],optionalChains:[5,137,80001,56,97,8081],showQrModal:!0,qrModalOptions:{themeVariables:{"--wcm-z-index":"2147483647"}}},onError:n=>{console.log(n)}})),ut={connector:$a,mobileConnector:Xa,hooks:Ya,name:Me.WALLET_CONNECT,isInstalled:()=>!1},vn={...ut,name:Me.HAHA_WALLET,handleMobile(t){if(window.sendWalletConnectQR!==void 0)Za({type:"walletconnect_haha",uri:t});else{let n=encodeURIComponent(window.location.toString()),o=encodeURIComponent(window.location.origin);window.location.assign(`haha://opensea?link=${n}`)}}},[qa,ja]=(0,we.initializeConnector)(t=>new Mn.Network({actions:t,urlMap:Ce})),kn={connector:qa,hooks:ja,name:Me.NETWORK,isInstalled:()=>!1};var _e=t=>t?t.replace(/\W/g,"").toLowerCase():"";var ce=require("@stacks/connect"),Ja=new ce.AppConfig(["store_write","publish_data"]),Tt=class{constructor(){this.id="stacks",this.name="Stacks",this.supportedChain="STACKS",this.userSession=new ce.UserSession({appConfig:Ja})}activate(n,o){(0,ce.showConnect)({appDetails:{name:"Bandit",icon:window.location.origin+"/logo512.png"},redirectTo:"/",onFinish:n,onCancel:o,userSession:this.userSession})}setUserSession(n){this.userSession=n}getUserSession(){return this.userSession}},Ln={connector:new Tt,hooks:null,name:"Stacks",isInstalled:()=>!0,handleMobile(){}};var Bn=require("@solana/wallet-adapter-phantom");var Dn={connector:new Bn.PhantomWalletAdapter,hooks:null,name:"Phantom",isInstalled:()=>window?.solana?.isPhantom,handleMobile(){let t=encodeURIComponent(window.location.toString()),n=encodeURIComponent(window.location.origin);gn()&&(xn()?window.location.assign(`phantom://browse/${t}?ref=${n}`):window.location.assign(`https://phantom.app/ul/browse/${t}?ref=${n}`))}};var Qa=()=>[Rn,ut,vn,kn],er=()=>[Dn],tr=()=>[Ln],Pn=()=>[...Qa().filter(t=>_e(t.name)!==_e("network")),...er(),...tr()];var hs=Pn();var ir=require("react/jsx-runtime"),Wn=(0,pe.createContext)(void 0);var sr=()=>{let t=(0,Un.useContext)(Wn);if(!t)throw Error("Component is not wrapper under wallet context provider");return t},Ge=sr;var ft={ETH:0,MATIC:0,ETH_USDT:0,MATIC_USDT:0,BONK:0,SOL:0,SOL_USDT:0,SHM:0,TLOS:0,AGOR:0,AVAX:0,ZETA:0,OMNI:0};function Gn({currency:t,address:n,tokenDecimals:o=1,refresh:a=!1}){let[i,s]=(0,me.useState)(ft),{account:l,provider:N}=(0,zn.useWeb3React)(),b=le((0,Hn.isAddress)(n)?n:null,He),{connection:g}=(0,Ve.useConnection)(),{publicKey:m}=(0,Ve.useWallet)(),{selectedWallet:u}=Ge(),T=ct(m?.toBase58()),y=ct(l),p=async(c,x)=>{try{if(!g)return;let S=new de.PublicKey(c),G=new de.PublicKey(x),{value:O}=await g.getTokenAccountsByOwner(G,{mint:S});if(O.length===0)return 0;let ee=O[0].pubkey,{value:{uiAmount:V}}=await g.getTokenAccountBalance(ee);return s(re=>({...re,[t]:V})),V}catch(S){console.log(S)}},P=async c=>{try{if(!g)return;let x=await g.getBalance(new de.PublicKey(c));return s(S=>({...S,[t]:new Fe.default(x).dividedBy(de.LAMPORTS_PER_SOL).toNumber()})),x}catch(x){console.log(x)}};return(0,me.useEffect)(()=>{u?.chains.includes("SOL")?T&&T!==m?.toBase58()&&s(ft):y&&y!==l&&s(ft)},[u,T,y,m,l,a]),(0,me.useEffect)(()=>{u?.chains.includes("SOL")&&m&&(t==="SOL"?P(m.toBase58()):(t==="SOL_USDT"||t==="BONK")&&p(n,m.toBase58()))},[u,m,t,a]),(0,me.useEffect)(()=>{if(u?.chains.includes("EVM")&&N&&l){let c=async()=>{try{let S=await N.getBalance(l);s(G=>({...G,[t]:new Fe.default(S.toString()).dividedBy(hn).toNumber()}))}catch(S){console.log(S)}},x=async()=>{try{let S=await b.balanceOf(l);s(G=>({...G,[t]:new Fe.default(S.toString()).dividedBy(10**o).toNumber()}))}catch(S){console.log(S)}};["ETH","MATIC","BNB","SHM","TLOS","AGOR","AVAX"].includes(t)?c():b&&x()}},[u,N,l,t,n,b,o,a]),{balances:i}}var Vn=require("@web3-react/core"),Et=B(require("bignumber.js"),1),Kn=require("react");var Fn=[{inputs:[{internalType:"contract BaseRegistrar",name:"_base",type:"address"},{internalType:"contract PriceOracle",name:"_prices",type:"address"},{internalType:"uint256",name:"_minCommitmentAge",type:"uint256"},{internalType:"uint256",name:"_maxCommitmentAge",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"name",type:"string"},{indexed:!0,internalType:"bytes32",name:"label",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"uint256",name:"cost",type:"uint256"},{indexed:!1,internalType:"uint256",name:"expires",type:"uint256"}],name:"NameRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"name",type:"string"},{indexed:!0,internalType:"bytes32",name:"label",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"cost",type:"uint256"},{indexed:!1,internalType:"uint256",name:"expires",type:"uint256"}],name:"NameRenewed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oracle",type:"address"}],name:"NewPriceOracle",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{constant:!0,inputs:[],name:"MIN_REGISTRATION_DURATION",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"string",name:"name",type:"string"}],name:"available",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"commitment",type:"bytes32"}],name:"commit",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"commitments",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"string",name:"name",type:"string"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes32",name:"secret",type:"bytes32"}],name:"makeCommitment",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[{internalType:"string",name:"name",type:"string"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes32",name:"secret",type:"bytes32"},{internalType:"address",name:"resolver",type:"address"},{internalType:"address",name:"addr",type:"address"}],name:"makeCommitmentWithConfig",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[],name:"maxCommitmentAge",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"minCommitmentAge",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"string",name:"name",type:"string"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"duration",type:"uint256"},{internalType:"bytes32",name:"secret",type:"bytes32"}],name:"register",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[{internalType:"string",name:"name",type:"string"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"duration",type:"uint256"},{internalType:"bytes32",name:"secret",type:"bytes32"},{internalType:"address",name:"resolver",type:"address"},{internalType:"address",name:"addr",type:"address"}],name:"registerWithConfig",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[{internalType:"string",name:"name",type:"string"},{internalType:"uint256",name:"duration",type:"uint256"}],name:"renew",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[],name:"renounceOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"string",name:"name",type:"string"},{internalType:"uint256",name:"duration",type:"uint256"}],name:"rentPrice",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_minCommitmentAge",type:"uint256"},{internalType:"uint256",name:"_maxCommitmentAge",type:"uint256"}],name:"setCommitmentAges",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"contract PriceOracle",name:"_prices",type:"address"}],name:"setPriceOracle",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes4",name:"interfaceID",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"string",name:"name",type:"string"}],name:"valid",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[],name:"withdraw",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}];var lr=()=>{let t=le("0x283af0b28c62c092c9727f1ee09c02ca627eb7f5",Fn),{provider:n}=(0,Vn.useWeb3React)();return{registerEnsDomain:(0,Kn.useCallback)(async(a,i,s,l,N,b,g,m,u,T)=>{try{let y=l*31536e3,p=(0,Et.default)(N).multipliedBy(y).multipliedBy(1.1).toFixed(0);console.log("totalRentPrice",p.toString());let P=new Uint8Array(32);window.crypto.getRandomValues(P);let c="0x"+Array.from(P).map(V=>V.toString(16).padStart(2,"0")).join(""),x=await n.getGasPrice(),S=await t.makeCommitmentWithConfig(i,s,c,"0x231b0Ee14048e9dCcD1d247744d114a4EB5E8E63",s),G=await t.commit(S);await new Promise(V=>setTimeout(()=>V(),6e4));let O=await t.registerWithConfig(i,s,y,c,"0x231b0Ee14048e9dCcD1d247744d114a4EB5E8E63",s,{value:p.toString(),gasLimit:4e5,gasPrice:x}),ee=O.hash;await O.wait(),console.log(ee),T&&await Pt(a,{name:`${i}.eth`,transactionHash:ee,transferWallet:b,claimWallet:g,price:p,discountedPrice:new Et.default(m).times(DEFAULT_TOKEN_DECIMAL).toString(),currency:u})}catch(y){throw console.log(y),y}},[]),ensRegistarController:t}},Zn=lr;var Ke=require("@solana/wallet-adapter-react"),$n=require("@solana/web3.js"),Yn=require("react");var cr=()=>{let t=(0,Ke.useWallet)(),{connection:n}=(0,Ke.useConnection)();return{registerSns:(0,Yn.useCallback)(async(a,i,s,l,N,b)=>{if(!(!t.connected||!t.publicKey||!n))try{let g=i,m=await Bt(a,l.name,N,g.toString(),s.value,b*1e3),u=await n.getLatestBlockhash(),T=$n.Transaction.from(Buffer.from(m));T.recentBlockhash=u.blockhash;let y=await t.sendTransaction(T,n);console.log(y),await Dt(a,l.name,y)}catch(g){throw g}},[t,n])}},Xn=cr;var yt=require("react");var ao=require("@chakra-ui/react"),Ze=require("@solana/wallet-adapter-react"),Ee=require("@solana/web3.js"),fe=require("@metaplex-foundation/js"),Q=require("@solana/spl-token"),ht=B(require("bignumber.js"),1);var ro=require("@ethersproject/address");var io=require("@web3-react/core");var Ys=require("react"),Te=require("@chakra-ui/react"),Qn=require("@ethersproject/address"),eo=B(require("@emotion/styled"),1);var qn=B(require("react"),1),z=require("@chakra-ui/react"),jn=require("@chakra-ui/anatomy"),te=require("react/jsx-runtime"),ue=qn.default.forwardRef(({label:t,error:n,placeholder:o,helperText:a,isInvalid:i,as:s=z.Input,InputLeftAddon:l,InputRightAddon:N,...b},g)=>{let{disabled:m}=b;return(0,te.jsxs)(z.FormControl,{isInvalid:i,opacity:m?.4:1,children:[t&&(0,te.jsx)(z.Text,{color:i?"destructive":"foreground",fontWeight:"medium",fontSize:"sm",lineHeight:1,children:t}),(0,te.jsxs)(z.InputGroup,{mt:"2",children:[l,(0,te.jsx)(s,{variant:"",placeholder:o,...b,ref:g}),N]}),a&&(0,te.jsx)(z.Text,{fontSize:"xs",mt:2,color:"mutedForeground",children:a}),i&&n&&(0,te.jsx)(z.Text,{fontSize:"xs",mt:2,color:"destructive",children:n})]})}),{definePartsStyle:Jn,defineMultiStyleConfig:pr}=(0,z.createMultiStyleConfigHelpers)(jn.inputAnatomy.keys),mr=Jn({field:{color:"foreground",background:"background",boxShadow:"base",borderWidth:"1px",borderStyle:"solid",borderColor:"input",borderRadius:"lg",_focusVisible:{borderColor:"ring"},_hover:{},_disabled:{opacity:1},_placeholder:{color:"mutedForeground"}}}),dr=(0,z.defineStyle)({borderRadius:"md"}),ur={sm:Jn({field:dr})},Zs=pr({baseStyle:mr,sizes:ur});var Oe=require("react/jsx-runtime"),Tr=(0,eo.default)(Te.Box)`
  position: relative;
  &:after {
    content: '';
    position: absolute;
    top: -30px;
    width: 100%;
    height: 32px;
    background: rgb(255, 255, 255);
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
  }
`,fr=({address:t,setAddress:n})=>{let o=(0,Te.useToast)();return(0,Oe.jsxs)(Tr,{paddingY:4,children:[(0,Oe.jsx)(ue,{placeholder:"Enter ethereum wallet address",value:t,onChange:i=>{let s=i.target.value;(0,Qn.isAddress)(s)?n(s):(o({title:"Invalid ethereum address",description:"Please enter valid address",status:"error"}),n(""))}}),(0,Oe.jsx)(Te.Text,{fontSize:14,mt:2,children:"Note: Enter correct wallet address for domain mapping. We are not liable for any discrepancies caused by an incorrect address"})]})},to=fr;var so=require("@ethersproject/units");var po=require("react/jsx-runtime"),lo=ie==="production",no=lo?"HGZmW9bWZZhVvfGbBBU1dvYHsXwi7BqPX5vG39v87iXW":"5bPVXMADTeJCbZ1dMfn6GRm8Zm1mSbwR84UsyRT4eVAT",oo=lo?"0x4D535c34DD050B0Bc0e7dC6A988a1443Dfb520ac":"0x663Bae08ad96BC7D0f5F895dAb6daA84F9F6De0C",Er=t=>{let n=(0,ao.useToast)(),{connection:o}=(0,Ze.useConnection)(),a=(0,Ze.useWallet)(),i=le((0,ro.isAddress)(t.address)?t.address:null,He),{account:s,provider:l}=(0,io.useWeb3React)(),N=(0,yt.useCallback)(async(m,u)=>{try{let T=await o.getLatestBlockhash(),y=new Ee.Transaction;if(u.value==="BONK"||u.value==="SOL_USDT"){let P=u.address,c=new fe.PublicKey(no),x=new fe.PublicKey(P),S=(0,Q.getAssociatedTokenAddressSync)(x,a.publicKey),G=await o.getTokenAccountsByOwner(c,{mint:x,programId:Q.TOKEN_PROGRAM_ID}),O=(0,Q.getAssociatedTokenAddressSync)(x,c);G.value?.length||y.add((0,Q.createAssociatedTokenAccountInstruction)(a.publicKey,O,c,x)),y.add((0,Q.createTransferCheckedInstruction)(S,x,O,a.publicKey,(0,fe.toBigNumber)(m*10**u.decimals),u.decimals))}else y.add(Ee.SystemProgram.transfer({fromPubkey:a.publicKey,toPubkey:new fe.PublicKey(no),lamports:new ht.default(m).multipliedBy(Ee.LAMPORTS_PER_SOL).toNumber()}));return y.feePayer=a.publicKey,y.recentBlockhash=T.blockhash,await a.sendTransaction(y,o,{signers:[],preflightCommitment:"max"})}catch(T){throw T}},[a.connected]);return{registerUd:(0,yt.useCallback)(async(m,u,T,y,p,P,c,x)=>{try{let S=null,{token:G,discountedValue:O,value:ee}=await Lt(m,u.name,T.value,y);if(T.ticker!=="USDT"&&O!==u.discountedRate[T.value]){n({title:"Price changed",status:"warning",duration:2e3}),x();return}if(await kt(m,{name:u.name,claimWallet:p,raw:G,discountedPrice:O,price:ee,currency:T.value}),c.current&&clearInterval(c.current),T.value==="BONK"||T.value==="SOL_USDT"||T.value==="SOL")S=await N(O,T);else if(T.value==="ETH_USDT"||T.value==="MATIC_USDT"){let V=new ht.default(O).multipliedBy(BIG_TEN.pow(6).toNumber()).toString();S=(await(await i.transfer(oo,V)).wait()).transactionHash}else(T.value==="ETH"||T.value==="MATIC")&&(S=(await(await l.getSigner().sendTransaction({from:s,to:oo,value:(0,so.parseUnits)(O,"ether").toHexString()})).wait()).transactionHash);console.log(S),await vt(m,{name:u.name,transactionHash:S,transferWallet:P?.chains?.includes("SOL")?a.publicKey.toBase58():s,claimWallet:p})}catch(S){throw S}},[l,N]),renderAddressInput:({address:m,setAddress:u})=>(0,po.jsx)(to,{address:m,setAddress:u})}},co=Er;var ml=require("react"),St=require("@chakra-ui/react");var rl=require("react"),mo=B(require("@emotion/styled"),1),uo=require("@chakra-ui/react"),ye=require("react/jsx-runtime"),yr=(0,mo.default)(uo.Text)`
  .one {
    opacity: 0;
    -webkit-animation: dot 1.3s infinite;
    -webkit-animation-delay: 0s;
    animation: dot 1.3s infinite;
    animation-delay: 0s;
  }

  .two {
    opacity: 0;
    -webkit-animation: dot 1.3s infinite;
    -webkit-animation-delay: 0.2s;
    animation: dot 1.3s infinite;
    animation-delay: 0.2s;
  }

  .three {
    opacity: 0;
    -webkit-animation: dot 1.3s infinite;
    -webkit-animation-delay: 0.3s;
    animation: dot 1.3s infinite;
    animation-delay: 0.3s;
  }

  @-webkit-keyframes dot {
    0% {
      opacity: 0;
    }
    50% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

  @keyframes dot {
    0% {
      opacity: 0;
    }
    50% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
`,hr=({text:t="Loading",...n})=>(0,ye.jsxs)(yr,{...n,children:[t,(0,ye.jsx)("span",{className:"one",children:"."}),(0,ye.jsx)("span",{className:"two",children:"."}),(0,ye.jsx)("span",{className:"three",children:"."})]}),To=hr;var ll=require("react"),fo=require("@chakra-ui/react"),yo=require("react/jsx-runtime"),Sr=({...t})=>(0,yo.jsx)(fo.Spinner,{thickness:"4px",speed:"1.5s",emptyColor:"input",color:"black",size:"xl",...t}),Eo=Sr;var he=require("react/jsx-runtime"),br=({completed:t,message:n})=>t?null:(0,he.jsxs)(St.Flex,{flexDir:"column",w:"full",justifyContent:"center",alignItems:"center",children:[(0,he.jsxs)(St.Flex,{align:"center",mb:"4",children:[(0,he.jsx)(Eo,{size:"md",mr:"10px"}),(0,he.jsx)(To,{text:"Minting In Progress",fontSize:22,fontWeight:600})]}),n()]}),ho=br;var El=require("react"),$e=require("@chakra-ui/react"),bt=require("react/jsx-runtime"),Ar=()=>(0,bt.jsx)($e.Flex,{height:"350px",justify:"center",align:"center",children:(0,bt.jsx)($e.Spinner,{thickness:"4px",size:"lg"})}),So=Ar;var No=require("react");var bo=require("@chakra-ui/react"),Sl=require("react"),oe=require("react/jsx-runtime"),Nr=t=>(0,oe.jsx)(bo.Box,{as:"svg",width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)("g",{id:"a4e07f86",children:(0,oe.jsxs)("g",{id:"fc8efcce",children:[(0,oe.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,oe.jsx)("path",{id:"26f77c74",d:"M35.4165 50.0007L45.8332 60.4173L66.6665 39.584",stroke:"white",strokeWidth:"8.33333",strokeLinecap:"round",strokeLinejoin:"round"})]})})}),Ao=Nr;var w=require("@chakra-ui/react");var go=B(require("@emotion/styled"),1),Io=require("react-icons/ai"),Co=require("react-icons/fa"),I=require("react/jsx-runtime"),gr="",Ir="",Cr="",xr=(0,go.default)(w.Box)`
  //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;
  `};
`,At=({imageSrc:t,title:n,onClick:o})=>(0,I.jsxs)(w.Flex,{align:"center",justify:"space-between",borderWidth:"1.5px",borderColor:"gray.400",borderRadius:"lg",p:1,mb:2,children:[(0,I.jsxs)(w.Flex,{align:"center",children:[(0,I.jsx)(w.Image,{src:t,w:8,h:8,borderRadius:"50%"}),(0,I.jsx)(w.Text,{fontSize:"12px",fontWeight:600,mb:1,ml:3,children:n})]}),o&&(0,I.jsx)(w.Button,{size:"xs",bg:"gray.800",color:"white",_hover:{bg:"gray.800"},onClick:o,children:"Claim here"})]}),wr=({address:t,showOffers:n,onClickCollection:o,website:a,twitterHandle:i,isEnsDomain:s})=>{let[l,N]=(0,No.useState)(!1),b=()=>{s?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,I.jsx)(w.Box,{children:(0,I.jsxs)(w.Flex,{flexDir:"column",align:"center",position:"relative",w:"full",userSelect:"none",p:8,children:[(0,I.jsx)(w.Image,{src:Ao,w:"75",h:"75"}),(0,I.jsx)(w.Text,{textAlign:"center",mt:"4",fontSize:"20",fontWeight:"semibold",children:"Domain purchased successfully \u{1F389}"}),(0,I.jsxs)(w.Text,{textAlign:"center",marginY:"4",fontSize:14,children:["Note: Login to"," ",(0,I.jsx)(w.Link,{href:a(),target:"_blank",children:a()})," ","using ",(0,I.jsx)("b",{children:Ne(t,6)})," address to view your domain. It might take upto 10 minutes to register your domain."]}),(0,I.jsx)(w.Button,{mb:5,border:"1.5px solid",w:"fit-content",borderColor:"input",size:"sm",fontWeight:500,rightIcon:(0,I.jsx)(Co.FaTwitter,{width:20,height:20,color:"#1DA1F2"}),onClick:b,children:"Celebrate"}),n&&(0,I.jsxs)(xr,{bg:"gray.200",offersOpen:l,children:[(0,I.jsxs)(w.Flex,{justify:"space-between",align:"center",children:[(0,I.jsx)(w.Text,{fontSize:"sm",fontWeight:600,mb:1,children:"Exclusive rewards for purchasing UD"}),(0,I.jsx)(Io.AiOutlineFullscreen,{cursor:"pointer",onClick:()=>N(!l)})]}),(0,I.jsx)(w.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,I.jsx)(At,{imageSrc:Cr,onClick:()=>o("64072"),title:"Claim 100 $BAD token wrapped Bandit NFTs by Bandit"}),(0,I.jsx)(At,{imageSrc:gr,title:"Eligible to receive 400K $BONK coins after the offer period by BONK"}),(0,I.jsx)(At,{imageSrc:Ir,title:"Get 15% discount on all services by NFT Evening"}),(0,I.jsx)(w.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."})]})]})})},xo=wr;var C=require("@chakra-ui/react"),Oo=require("@solana/web3.js");var A=require("@chakra-ui/react"),wo=B(require("@emotion/styled"),1),Mo=require("@solana/web3.js"),xl=require("react"),_=require("react/jsx-runtime"),Mr="https://docs.bonfida.org/collection/naming-service/how-to-create-a-solana-domain-name/purchasing-a-domain-name/direct-registration",_r=(0,wo.default)(A.Flex)`
  position: relative;
`,Or=({size:t,setSize:n,loading:o,subTotalPrice:a})=>(0,_.jsxs)(_r,{paddingY:4,flexDir:"column",alignItems:"center",children:[(0,_.jsxs)(A.Slider,{defaultValue:0,min:1,max:10,step:1,w:"94%",onChange:s=>{n(s)},value:t,children:[(0,_.jsxs)(A.SliderTrack,{bg:"muted",children:[(0,_.jsx)(A.Box,{position:"relative",right:10}),(0,_.jsx)(A.SliderFilledTrack,{bg:"mutedForeground"})]}),(0,_.jsx)(A.SliderThumb,{boxSize:4,borderColor:"mutedForeground",borderWidth:"1"})]}),(0,_.jsxs)(A.Flex,{justifyContent:"space-between",w:"full",mt:"1",children:[(0,_.jsx)(A.Text,{fontSize:"12",children:"1 Kb"}),(0,_.jsx)(A.Text,{fontSize:"12",children:"10 Kb"})]}),(0,_.jsxs)(A.Flex,{w:"full",justifyContent:"space-between",children:[(0,_.jsxs)(A.Text,{fontSize:14,mt:4,fontWeight:"semibold",children:["Selected Size: ",`${t} Kb`]}),(0,_.jsx)(A.Text,{fontSize:14,mt:4,textDecoration:"underline",cursor:"pointer",onClick:()=>window.open(Mr),textAlign:"right",children:"How much storage is right for you?"})]}),(0,_.jsxs)(A.Flex,{w:"full",justifyContent:"space-between",alignItems:"center",children:[(0,_.jsx)(A.Text,{fontSize:14,mt:4,fontWeight:"bold",children:"Storage cost"}),(0,_.jsxs)(A.Flex,{alignItems:"flex-end",justifyContent:"center",mt:4,children:[o?(0,_.jsx)(A.Spinner,{size:"xs",mb:"1"}):(0,_.jsxs)(A.Text,{fontSize:14,fontWeight:"bold",children:["+",`${(a/Mo.LAMPORTS_PER_SOL).toFixed(5)}`]}),(0,_.jsx)(A.Text,{ml:"1",fontSize:14,fontWeight:"bold",children:"SOL"})]})]})]}),_o=Or;var R=require("react/jsx-runtime"),Rr=({size:t,setSize:n,onOpen:o,onClose:a,isOpen:i,loading:s,subTotalPrice:l})=>(0,R.jsxs)(C.Flex,{mt:"2",justifyContent:"space-between",children:[(0,R.jsxs)(C.Flex,{alignItems:"center",children:[(0,R.jsx)(C.Text,{fontSize:"12",mr:"1",children:"Storage Cost:"}),(0,R.jsx)(C.Text,{textDecoration:"underline",fontSize:"12",cursor:"pointer",onClick:o,children:"Edit"})]}),(0,R.jsxs)(C.Flex,{alignItems:"center",justifyContent:"center",children:[s?(0,R.jsx)(C.Spinner,{size:"xs"}):(0,R.jsxs)(C.Text,{fontSize:"12",fontWeight:"bold",children:["+",`${(l/Oo.LAMPORTS_PER_SOL).toFixed(5)}`]}),(0,R.jsx)(C.Text,{ml:"1",fontSize:"12",fontWeight:"bold",children:"SOL"}),(0,R.jsx)(C.Text,{fontSize:"12",mx:"1",children:`(${t} KB)`})]}),(0,R.jsxs)(C.Modal,{blockScrollOnMount:!1,isOpen:i,onClose:a,isCentered:!0,children:[(0,R.jsx)(C.ModalOverlay,{}),(0,R.jsxs)(C.ModalContent,{children:[(0,R.jsx)(C.ModalHeader,{children:"Edit storage size"}),(0,R.jsx)(C.ModalCloseButton,{}),(0,R.jsxs)(C.ModalBody,{children:[(0,R.jsx)(C.Text,{fontSize:"12",py:"2",px:"4",borderColor:"mutedForeground",borderWidth:"1px",borderStyle:"solid",borderRadius:"8",children:"Storage size cannot be changed after initial registration."}),(0,R.jsx)(_o,{size:t,setSize:n,loading:s,subTotalPrice:l})]})]})]})]}),Ro=Rr;var M=require("@chakra-ui/react");var j=require("@chakra-ui/react"),Lo=B(require("@emotion/styled"),1),Ll=require("react");var Se=require("react"),Ye=B(require("@emotion/styled"),1),Xe=require("@chakra-ui/icons"),ne=require("@chakra-ui/react");var X=require("react/jsx-runtime"),vr=(0,Ye.default)(ne.Box)`
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px;
  height: 40px;
  border-radius: 12px;
`,vo=(0,Ye.default)(ne.Button)`
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 32px;
  width: 32px;
  //border-radius: 12px;
  //border: none;
  //border: 1px solid ${t=>t.theme.colors.border};
  pointer-events: ${t=>t.disabled?"none":"unset"};
  opacity: ${t=>t.disabled?"0.5":"1"};

  &:active {
    border: 1px solid ${t=>t.theme.colors.foreground};
  }

  svg {
    path {
      fill: ${t=>t.theme.colors.foreground};
    }
  }
`,kr=(0,Ye.default)(ue)`
  justify-content: center;
  font-size: 18px;
  min-width: 60px;
  user-select: none;
  border: none;
  box-shadow: none;
  max-width: 80px;
  text-align: center;
`,Lr=({initialState:t=1,maxState:n,onChange:o,value:a,onError:i})=>{let[s,l]=(0,Se.useState)(t);return(0,Se.useEffect)(()=>{o(s)},[s]),(0,Se.useEffect)(()=>{l(t)},[t]),(0,Se.useEffect)(()=>{n>0&&a>n||s<1?i(!0):i(!1)},[n,a,s]),(0,X.jsxs)(ne.Flex,{flexDirection:"column",alignItems:"flex-end",children:[(0,X.jsxs)(vr,{children:[(0,X.jsx)(vo,{variant:"outline",onClick:()=>{a>t&&l(m=>a-1)},disabled:a===1,children:(0,X.jsx)(Xe.MinusIcon,{})}),(0,X.jsx)(kr,{value:a,onChange:m=>{let u=Number(m.target.value);l(u)}}),(0,X.jsx)(vo,{variant:"outline",onClick:()=>{n?a<n&&l(m=>a+1):l(m=>a+1)},disabled:n===a||!n,children:(0,X.jsx)(Xe.AddIcon,{})})]}),(n>0&&a>n||s<1)&&(0,X.jsxs)(ne.Text,{fontSize:12,mt:10,color:"#E11900",children:["Enter quantity between 1 to ",n]})]})},ko=Lr;var q=require("react/jsx-runtime"),Br=(0,Lo.default)(j.Flex)`
  position: relative;
`,Dr=({duration:t,setDuration:n,loading:o,subTotalPrice:a,payUsing:i})=>(0,q.jsxs)(Br,{paddingY:4,flexDir:"column",alignItems:"center",children:[(0,q.jsx)(ko,{initialState:1,maxState:1e4,onChange:n,onError:()=>{},value:t}),(0,q.jsxs)(j.Flex,{w:"full",justifyContent:"space-between",alignItems:"center",children:[(0,q.jsx)(j.Text,{fontSize:14,mt:4,fontWeight:"bold",children:`${t} year registration`}),(0,q.jsxs)(j.Flex,{alignItems:"flex-end",justifyContent:"center",mt:4,children:[o?(0,q.jsx)(j.Spinner,{size:"xs",mb:"1.5"}):(0,q.jsx)(j.Text,{fontSize:14,fontWeight:"bold",children:`${a?.toFixed(5)}`}),(0,q.jsx)(j.Text,{ml:"1",fontSize:14,fontWeight:"bold",children:i?.ticker})]})]})]}),Bo=Dr;var D=require("react/jsx-runtime"),Pr=({selectedDomain:t,duration:n,selectDuration:o,onOpen:a,onClose:i,isOpen:s,loading:l,subTotalPrice:N,payUsing:b})=>{let g=(0,M.useToast)();return(0,D.jsxs)(M.Flex,{justifyContent:"space-between",children:[(0,D.jsxs)(M.Flex,{alignItems:"center",children:[(0,D.jsx)(M.Text,{fontSize:"12",mr:"1",children:"Duration:"}),(0,D.jsx)(M.Text,{textDecoration:"underline",fontSize:"12",cursor:"pointer",onClick:()=>{if(!t)return g({title:"Select Domain",status:"warning"});a()},children:"Edit"})]}),(0,D.jsx)(M.Text,{fontSize:"12",mr:"1",children:`${n} Year`}),(0,D.jsxs)(M.Modal,{blockScrollOnMount:!1,isOpen:s,onClose:i,isCentered:!0,children:[(0,D.jsx)(M.ModalOverlay,{}),(0,D.jsxs)(M.ModalContent,{children:[(0,D.jsx)(M.ModalHeader,{children:"Registration duration"}),(0,D.jsx)(M.ModalCloseButton,{}),(0,D.jsxs)(M.ModalBody,{children:[(0,D.jsx)(M.Text,{fontSize:"12",py:"2",px:"4",borderColor:"mutedForeground",borderWidth:"1px",borderStyle:"solid",borderRadius:"8",children:"Extending for multiple years will save money on network costs by avoiding yearly transactions."}),(0,D.jsx)(Bo,{duration:n,setDuration:o,loading:l,subTotalPrice:N,payUsing:b})]})]})]})]})},Do=Pr;var d=require("react/jsx-runtime"),Go=(0,Uo.default)(f.Box)`
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
`,gt=ie==="production";var Po=gt?ln:sn,qe=gt?pn:cn,Wr=({accessKey:t,onClickClose:n,collectionState:o,disconnectWallet:a})=>{let[i,s]=(0,h.useState)(""),[l,N]=(0,h.useState)(1),[b,g]=(0,h.useState)(!1),[m,u]=(0,h.useState)(""),[T,y]=(0,h.useState)([]),[p,P]=(0,h.useState)({label:null,value:null,chain:null}),[c,x]=(0,h.useState)(""),[S,G]=(0,h.useState)(!1),[O,ee]=(0,h.useState)(!1),[V,re]=(0,h.useState)(!1),[je,Re]=(0,h.useState)(!1),[It,Je]=(0,h.useState)(0),[Fo,ve]=(0,h.useState)(!1),[Ct,xt]=(0,h.useState)(0),{isOpen:Vo,onOpen:Ko,onClose:Zo}=(0,f.useDisclosure)(),{isOpen:$o,onOpen:Yo,onClose:Xo}=(0,f.useDisclosure)(),[ke,qo]=(0,h.useState)(1),{primaryAddress:Le,selectedWallet:W,setShowWallets:jo,setFilterChains:Jo}=Ge(),k=o?.contract?.contractAddress==="bonfida-sns",K=o?.contract?.contractAddress==="unstoppable-domain",L=!k&&!K,{connection:Qe}=(0,Wo.useConnection)(),Qo=(0,zo.useDispatch)(),{chainId:ea,account:et}=(0,Ho.useWeb3React)(),J=Le,{balances:be}=Gn({currency:p.value,address:p.address,tokenDecimals:p.decimals}),{registerUd:ta,renderAddressInput:na}=K&&co(p),{registerEnsDomain:oa,ensRegistarController:wt}=L&&Zn(),{registerSns:aa}=k&&Xn(),ra=(0,f.useToast)(),Z=(0,h.useRef)();(0,h.useEffect)(()=>(F(W)?P(Po[0]):(P(qe[0]),s(Le)),()=>{Z.current&&clearInterval(Z.current)}),[W,Le]),(0,h.useEffect)(()=>{J&&Ae()},[J]);let Be=(0,h.useCallback)(async()=>{try{re(!0);let r;if(K?r=await rt(t,m,J):k?r=await it(t,m):L&&(r=await st(t,m)),c){let v=r.find(ot=>ot.name===c.name);v?x(v):c("")}y(r)}catch{}finally{re(!1)}},[t,m,J]),Ae=(0,h.useCallback)(Wt(async()=>{try{if(!m?.length)return;Z.current&&clearInterval(Z.current),y([]),g(!0),x("");let r=m.trim().replace(/\s+/g,"-");if(K){let v=await rt(t,encodeURIComponent(r),J);v?.length&&(y(v),Z.current=setInterval(Be,3e4))}else if(k){let v=await it(t,r);v?.length&&(y(v),Z.current=setInterval(Be,3e4))}else if(L){let v=await st(t,r);v?.length&&(y(v),Z.current=setInterval(Be,3e4))}}catch(r){console.log(r)}finally{g(!1)}},400),[m,t,Be,J]),ia=r=>{u(k||L?r.target.value.split(".")[0]:r.target.value)},Mt=()=>F(W)?Po:L?[qe[0],qe[1]]:qe,tt=(0,h.useCallback)((r=0)=>(c&&(p.ticker==="USDT"?Je(c.discountedRate.USDT):(p.value!=="SOL"&&F(W)&&(r=0),Je(Number(c.discountedRate[p.value])+r))),0),[c,p]),sa=()=>ea===p.chain,nt=(0,h.useCallback)((r=0)=>{if(!c)return!0;k?p.ticker==="SOL"?Re(new ae.default(be[p.value]).gte(new ae.default(c?.discountedRate[p.ticker]).plus(r/Nt.LAMPORTS_PER_SOL).toNumber())):Re(new ae.default(be[p.value]).gte(Number(c?.discountedRate[p.ticker]))):Re(new ae.default(be[p.value]).gte(Number(c?.discountedRate[p.ticker]+r)))},[c,be,p]),_t=(0,h.useCallback)(async()=>{if(Qe&&k&&c)try{ve(!0);let r=await Qe.getMinimumBalanceForRentExemption(l*1e3);xt(r),nt(r),tt(r/Nt.LAMPORTS_PER_SOL)}catch(r){console.log(r)}finally{ve(!1)}else if(c&&L&&wt)try{ve(!0);let r=(0,ae.default)(Number(c?.discountedRate[p.ticker])).multipliedBy(ke);xt(r.toNumber()),Re(new ae.default(be[p.value]).gte(r.toNumber())),Je(r.toNumber())}catch(r){console.log(r)}finally{ve(!1)}},[Qe,l,p,L,c,wt,ke]);(0,h.useEffect)(()=>{tt(),nt(),_t()},[tt,nt,_t]);let la=async()=>{try{await on(W.connector,p.chain)}catch(r){console.log(r)}},ca=r=>{let ot=Mt().filter(Ta=>Ta.value===r.target.value);P(ot[0])},Ot=r=>{x(r)},pa=r=>{var v=r.keyCode||r.which;v===13&&m?.length>0&&Ae()},ma=r=>{Qo(Zt({id:r}))},da=async()=>{try{G(!0),Z.current&&clearInterval(Z.current),K?await ta(t,c,p,J,i,W,Z,Ae):k?await aa(t,It,p,c,J,l):L&&await oa(t,c.name.split(".")[0],et,ke,c?.availability?.price?.weiPerSecond,et,i,c?.discountedRate[p.value],p.value,gt),ee(!0)}catch(r){x(""),Ae(),ra({title:"Failed to mint",description:r?.response?.data?.data||r.reason||r.message,status:"error",duration:1e3}),console.log(r)}finally{G(!1)}},ua=r=>{qo(r)},zr=()=>{if(k)return!!F(W);if(K)return!0;if(L)return!F(W)},Gr=()=>{if(k&&!F(W))return"Connect Wallet";if(L&&pt(W))return"Connect to EVM Wallet"};return(0,d.jsxs)(f.Box,{children:[(S||O)&&(0,d.jsxs)(Go,{children:[O&&(0,d.jsx)(rn,{onClick:n,zIndex:1}),(0,d.jsx)(ho,{completed:O,message:()=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(f.Text,{fontSize:14,fontWeight:500,children:[`Minting ${c.name} to ${F(W)?Ne(J,5):Ne(et,5)}`,"."]}),(0,d.jsx)(f.Text,{fontSize:14,fontWeight:500,children:"Please do not refresh the page."}),L&&(0,d.jsxs)(f.Flex,{flexDir:"column",alignItems:"center",mt:"2",children:[(0,d.jsx)(f.Text,{fontSize:14,fontWeight:600,mt:"2",children:"Registering your domain takes three steps"}),(0,d.jsx)(f.Text,{fontSize:14,fontWeight:500,mt:"2",children:"1. Complete the claim transaction to begin the process."}),(0,d.jsx)(f.Text,{fontSize:14,fontWeight:500,mt:"2",children:"2. Waits 60 seconds for the claim transaction to complete."}),(0,d.jsx)(f.Text,{fontSize:14,fontWeight:500,mt:"2",children:"3. Complete the register transaction to secure your name."})]})]})}),O&&(0,d.jsx)(xo,{address:i,onClickCollection:ma,showOffers:!1,website:()=>{if(K)return"https://unstoppabledomains.com";if(L)return"https://ens.domains";if(k)return"https://sns.id/"},twitterHandle:()=>{if(K)return"@unstoppableweb";if(L)return"@ensdomains";if(k)return"@bonfida"},isEnsDomain:L})]}),(0,d.jsxs)(f.Flex,{mt:4,children:[(0,d.jsx)(ue,{id:"ud-search",placeholder:"Search for your new domain",onChange:ia,onKeyPress:pa,size:"md",autoComplete:"off"}),(0,d.jsx)(f.Button,{size:"md",variant:"primary",cursor:"pointer",onClick:Ae,ml:3,mt:2,children:"Search"})]}),!T?.length&&!b&&(0,d.jsx)(Ft,{}),b&&(0,d.jsx)(So,{}),!!T?.length&&(0,d.jsxs)(f.Box,{children:[(0,d.jsxs)(f.Flex,{justifyContent:"space-between",mt:4,alignItems:"center",children:[(0,d.jsx)(f.Text,{color:"foreground",fontWeight:400,fontSize:14,children:"Pay using"}),(0,d.jsx)(f.Flex,{justifyContent:"center",align:"center",mb:2,children:(0,d.jsx)(f.Select,{value:p?.value,size:"sm",onChange:ca,borderColor:"muted",borderWidth:"1.5px",borderRadius:"lg",boxShadow:"base",_hover:{},children:Mt().map(({label:r,value:v})=>(0,d.jsx)("option",{value:v,children:r}))})})]}),(0,d.jsx)(f.Box,{h:c&&F(W)&&!k?"100px":"250px",overflowY:"auto",pt:2,position:"relative",children:T.map((r,v)=>(0,d.jsx)(zt,{domain:{...r,name:k?r?.name+".sol":r?.name},selected:r.name===c?.name,onSelect:()=>Ot(r),onUnSelect:()=>Ot(""),currency:p?.ticker},v))}),k&&(0,d.jsx)(Ro,{size:l,setSize:N,onOpen:Ko,onClose:Zo,isOpen:Vo,loading:Fo,subTotalPrice:Ct}),L&&(0,d.jsx)(Do,{selectedDomain:c,duration:ke,selectDuration:ua,onOpen:Yo,onClose:Xo,isOpen:$o,loading:b,subTotalPrice:Ct,payUsing:p}),c&&F(W)&&K&&na({address:i,setAddress:s}),(0,d.jsx)(f.Box,{mt:"15px",children:(0,d.jsxs)(Ut,{validators:[{should:!!Le,fallbackProps:{onClick:()=>{Jo(K?["EVM","SOL"]:L?["EVM"]:["SOL"]),jo(!0)},children:"Connect Wallet"}},{should:F(W)?!0:sa(),fallbackProps:{onClick:la,children:"Switch Network"}},{should:!!c,fallbackProps:{onClick:()=>{},children:"Select Domain",disabled:!0}},{should:k||!!i,fallbackProps:{onClick:()=>{},children:"Enter Ethereum address..",disabled:!0}},{should:je,fallbackProps:{onClick:()=>{},children:"Insufficient balance",disabled:!0}},{should:!V,fallbackProps:{onClick:()=>{},children:"Fetching best price..",disabled:!0}}],onClick:da,children:[(0,d.jsxs)(f.Box,{mr:"20px",children:[(0,d.jsxs)(f.Text,{color:"background",fontSize:12,children:[It," ",p.ticker]}),(0,d.jsx)(f.Text,{color:"background",textAlign:"left",fontSize:"8px",mt:"2px",children:"Total amount"})]}),(0,d.jsx)(f.Text,{color:"background",children:"Mint"})]})})]})]})},Ur=Wr;0&&(module.exports={LoadingScreen});
