var Wo=Object.defineProperty,Uo=Object.defineProperties;var Ho=Object.getOwnPropertyDescriptors;var xe=Object.getOwnPropertySymbols;var kt=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable;var we=Math.pow,Rt=(t,n,o)=>n in t?Wo(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,C=(t,n)=>{for(var o in n||(n={}))kt.call(n,o)&&Rt(t,o,n[o]);if(xe)for(var o of xe(n))Lt.call(n,o)&&Rt(t,o,n[o]);return t},_=(t,n)=>Uo(t,Ho(n));var Y=(t,n)=>{var o={};for(var a in t)kt.call(t,a)&&n.indexOf(a)<0&&(o[a]=t[a]);if(t!=null&&xe)for(var a of xe(t))n.indexOf(a)<0&&Lt.call(t,a)&&(o[a]=t[a]);return o};var f=(t,n,o)=>new Promise((a,s)=>{var l=T=>{try{y(o.next(T))}catch(h){s(h)}},p=T=>{try{y(o.throw(T))}catch(h){s(h)}},y=T=>T.done?a(T.value):Promise.resolve(T.value).then(l,p);y((o=o.apply(t,n)).next())});import{Box as ce,Button as ps,Flex as Ue,Select as ms,Text as G,useDisclosure as co,useToast as ds}from"@chakra-ui/react";import{useCallback as be,useEffect as At,useRef as us,useState as R}from"react";import{useConnection as Ts}from"@solana/wallet-adapter-react";import V from"axios";import{createContext as zo,useMemo as ws}from"react";import{jsx as Os}from"react/jsx-runtime";var Ms=zo(void 0),ne="production";var H=ne==="development"?"https://qa-api-v2.bandit.network/sdk":"https://api-v2.bandit.network/sdk";var $e=(t,n,o)=>f(void 0,null,function*(){try{return(yield V.get(`${H}/collection/unstoppable/searchDomain?query=${n}&wallet_address=${o}`,{headers:{"X-API-KEY":t}})).data}catch(a){throw new Error(a)}}),Bt=(t,n)=>f(void 0,null,function*(){try{return(yield V.post(`${H}/collection/unstoppable/claim`,n,{headers:{"X-API-KEY":t}})).data}catch(o){throw o}}),Dt=(t,n)=>f(void 0,null,function*(){try{return(yield V.post(`${H}/collection/unstoppable/lockDomain`,n,{headers:{"X-API-KEY":t}})).data}catch(o){throw o}}),Pt=(t,n,o,a)=>f(void 0,null,function*(){try{return(yield V.get(`${H}/collection/unstoppable/updatedPrice?domain=${n}&currency=${o}&wallet_address=${a}`,{headers:{"X-API-KEY":t}})).data}catch(s){throw s}}),Ye=(t,n)=>f(void 0,null,function*(){try{return(yield V.get(`${H}/collection/sns/searchDomain?=&query=${n}`,{headers:{"X-API-KEY":t}})).data}catch(o){throw new Error(o)}}),Wt=(t,n,o,a,s,l)=>f(void 0,null,function*(){try{return(yield V.post(`${H}/collection/sns/registerDomain`,{name:n,claimWallet:o,price:a,payUsing:s,space:l},{headers:{"X-API-KEY":t}})).data}catch(p){throw new Error(p)}}),Ut=(t,n,o)=>f(void 0,null,function*(){try{return(yield V.post(`${H}/collection/sns/claimDomain`,{name:n,transactionHash:o},{headers:{"X-API-KEY":t}})).data}catch(a){throw new Error(a)}}),Xe=(t,n)=>f(void 0,null,function*(){try{return(yield V.get(`${H}/collection/ens/searchDomains?query=${n}.eth`,{headers:{"X-API-KEY":t}})).data}catch(o){throw new Error(o)}}),Ht=(t,n)=>f(void 0,null,function*(){try{return(yield V.post(`${H}/collection/ens/claimDomain`,n,{headers:{"X-API-KEY":t}})).data}catch(o){throw o}});var de=(t,n)=>t?t.length>n?t.substr(0,n-1)+"..."+t.substr(t.length-(n-1),t.length-1):t:"";var zt=(t,n)=>{let o;return function(...a){o&&clearTimeout(o),o=setTimeout(()=>{t.apply(this,a)},n)}};import"react";import{Box as Go,Button as Fo,Text as Vo}from"@chakra-ui/react";import{jsx as Gt,jsxs as Zo}from"react/jsx-runtime";var Ko=a=>{var s=a,{validators:t,fullWidth:n=!1}=s,o=Y(s,["validators","fullWidth"]);let l=t.find(u=>!u.should),p=C(C({},o),l==null?void 0:l.fallbackProps),{children:y,onClick:T,disabled:h,helperText:m,isLoading:d=!1}=p;return Zo(Go,{style:{textAlign:"center"},children:[Gt(Fo,{w:n?"full":"",variant:"primary",onClick:T,isDisabled:h,isLoading:d,loadingText:y,children:y}),m&&Gt(Vo,{color:"foreground",fontSize:"12px",textAlign:"center",mb:"10px",lineHeight:1,mt:2,children:m})]})},Ft=Ko;import"react";import{Box as Vt,Button as $o,Flex as qe,Text as Me}from"@chakra-ui/react";import Yo from"@emotion/styled";import{jsx as je,jsxs as K}from"react/jsx-runtime";var Xo=Yo(Me)`
  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;
  }
`,qo=({selected:t,onSelect:n,onUnSelect:o,domain:a,currency:s})=>{var i,N;let{name:l,availability:p,rate:y,discountedRate:T,discount:h}=a,{price:m,status:d}=p,{subTotal:{usdCents:u}}=m,A=S=>{S.stopPropagation(),o()},c=()=>{if(d==="NOT_AVAILABLE")return"Sold";if(t)return"Selected";if(!t)return"Select"},O=()=>{t?o():t||n()};return je(Vt,{position:"relative",paddingY:2,mb:3,zIndex:"1",border:"1px solid #cccccc",borderRadius:10,flexDir:"row",children:K(qe,{paddingX:3,align:"center",justify:"space-between",flexDir:"row",children:[je(Me,{fontSize:14,children:l}),K(qe,{align:"center",children:[d==="AVAILABLE"&&K(Vt,{mr:4,children:[K(Me,{textAlign:"center",fontSize:12,fontWeight:600,children:[(i=T[s])!=null?i:u/100," ",s," ",K("span",{style:{fontWeight:600},children:["($",T.USDT,")"]})]}),h>0&&K(qe,{children:[K(Xo,{textAlign:"center",fontSize:10,fontWeight:500,lineHeight:1,children:[(N=y[s])!=null?N:u/100," ",s," ",K("span",{style:{fontWeight:400},children:["($",u/100,")"]})]}),K(Me,{ml:1,textAlign:"center",fontSize:10,fontWeight:500,lineHeight:1,color:"green",children:["(",h,"% off)"]})]})]}),je($o,{size:"sm",variant:"outline",bg:t?"input":"initial",minWidth:"20",onClick:O,isDisabled:d==="NOT_AVAILABLE",children:c()})]})]})})},Kt=qo;import"react";import{Flex as jo,Text as Jo}from"@chakra-ui/react";import{Search2Icon as Qo}from"@chakra-ui/icons";import{jsx as Zt,jsxs as ta}from"react/jsx-runtime";var ea=()=>ta(jo,{marginY:8,direction:"column",align:"center",children:[Zt(Qo,{mb:3}),Zt(Jo,{fontSize:"md",fontWeight:500,width:"80%",textAlign:"center",margin:"0 auto",children:"Find your perfect domain by typing into the search field above."})]}),$t=ea;import fs from"@emotion/styled";import{LAMPORTS_PER_SOL as po}from"@solana/web3.js";import{useWeb3React as Es}from"@web3-react/core";import le from"bignumber.js";import{useDispatch as ys}from"react-redux";import{createSlice as na}from"@reduxjs/toolkit";var oa={selectedCollectionId:null,showMint:!1,collectionViewOpen:!1,selectedSpaceId:!1},Yt=na({name:"collection",initialState:oa,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:Xt,updateShowMint:sl,updateCollectionViewOpen:ll,updateSelectedSpaceId:cl}=Yt.actions,pl=Yt.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},dl={[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"},ul={[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/"},qt={[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}}},Tl=Object.values(e).filter(t=>typeof t=="number"),aa=[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],jt=aa;import{initializeConnector as Je}from"@web3-react/core";import{MetaMask as ra}from"@web3-react/metamask";import{Network as ia}from"@web3-react/network";import{WalletConnect as sa}from"@web3-react/walletconnect-v2";var yl={[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"},hl={[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"}},ue={[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"},Jt={[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"]},Sl={[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")},bl={[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 Qe={INJECTED:"INJECTED",WALLET_CONNECT:"WALLET_CONNECT",NETWORK:"NETWORK"};function en(t){console.debug(`web3-react error: ${t}`)}function la(t){en(t)}var[ca,pa]=Je(t=>new ia({actions:t,urlMap:ue,defaultChainId:1})),tn={connector:ca,hooks:pa,type:Qe.NETWORK},[ma,da]=Je(t=>new ra({actions:t,onError:la})),wl={connector:ma,hooks:da,type:Qe.INJECTED},[ua,Ta]=Je(t=>{let n=Object.entries(ue).reduce((o,[a,s])=>_(C({},o),{[a]:s[0]}),{});return new sa({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:ua,hooks:Ta,type:Qe.WALLET_CONNECT};function fa(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 Jt[t];default:return Qt[t][0]}}function Ea(t){return!!t&&jt.includes(t)}var on=(t,n)=>f(void 0,null,function*(){if(Ea(n))if(t===nn.connector||t===tn.connector)yield t.activate(n);else{let o=qt[n],a={chainId:n,chainName:o.label,rpcUrls:[fa(n)],nativeCurrency:o.nativeCurrency,blockExplorerUrls:[o.explorer]};yield t.activate(a)}else throw new Error(`Chain ${n} not supported for connector (${typeof t})`)});import _e from"@emotion/styled";import{Box as ya,Button as ha}from"@chakra-ui/react";import{CloseIcon as Sa}from"@chakra-ui/icons";var Wl=_e(ya)`
  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;
`,Ul=_e.a`
  // color: ${({theme:t})=>t.colors.primary} !important;
  // border-bottom: 1px solid ${({theme:t})=>t.colors.primary} !important;
  margin-top: 10px;
  font-size: 14px;
`,an=_e(Sa)`
  position: absolute;
  right: 5%;
  top: 20px;
  width: 16px;
  height: 16px;
  cursor: pointer;
`,Hl=_e(ha)`
  &:hover {
    background-color: ${({theme:t})=>t.colors.foreground} !important;
    color: ${({theme:t})=>t.colors.background};
  }
`;var rn=[{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}],sn=[{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}],ln=[{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}],cn=[{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}];import{useEffect as it,useState as or}from"react";import{useWeb3React as Ia}from"@web3-react/core";import{useMemo as xa}from"react";import{isAddress as ba}from"@ethersproject/address";import{AddressZero as Aa}from"@ethersproject/constants";import{Contract as Na}from"@ethersproject/contracts";function ga(t,n){return t.getSigner(n).connectUnchecked()}function Ca(t,n){return n?ga(t,n):t}function pn(t,n,o,a){if(!ba(t)||t===Aa)throw Error(`Invalid 'address' parameter '${t}'.`);return new Na(t,n,Ca(o,a))}function oe(t,n,o=!0){let{provider:a,account:s,chainId:l}=Ia();return xa(()=>{if(!t||!n||!a||!l)return null;let p;if(typeof t=="string"?p=t:p=t[l],!p)return null;try{return pn(p,n,a,o&&s?s:void 0)}catch(y){return console.error("Failed to get contract",y),null}},[t,n,a,l,o,s])}import{isAddress as ar}from"@ethersproject/address";var Oe=[{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"}];import{useWeb3React as rr}from"@web3-react/core";import{useConnection as ir,useWallet as sr}from"@solana/wallet-adapter-react";import{LAMPORTS_PER_SOL as lr,PublicKey as st}from"@solana/web3.js";import lt from"bignumber.js";import{useEffect as wa,useRef as Ma}from"react";var _a=t=>{let n=Ma();return wa(()=>{n.current=t},[t]),n.current},et=_a;import Oa from"bignumber.js";var va=new Oa(10),mn=va.pow(18);import{useContext as tr}from"react";import{createContext as er,useCallback as ap,useEffect as rp,useMemo as ip,useState as sp}from"react";import{useWallet as cp}from"@solana/wallet-adapter-react";import{useWeb3React as mp}from"@web3-react/core";import{useEffect as ac,useState as rc}from"react";import{AppConfig as sc,UserSession as lc}from"@stacks/connect";var B=t=>{var n;return t?(n=t==null?void 0:t.chains)==null?void 0:n.includes("SOL"):!1},tt=t=>{var n;return t?(n=t==null?void 0:t.chains)==null?void 0:n.includes("EVM"):!1};import{createSlice as Ra}from"@reduxjs/toolkit";var ka={selectedWallet:void 0,selectedSolanaWallet:void 0,accessKey:null,details:{}},dn=Ra({name:"user",initialState:ka,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:La,updateSolanaSelectedWallet:dc,updateAccessKey:uc,updateUserDetails:Tc}=dn.actions,fc=dn.reducer;import{useDispatch as Ep}from"react-redux";import{useMemo as Zc}from"react";import{initializeConnector as ke}from"@web3-react/core";import{MetaMask as Pa}from"@web3-react/metamask";import{WalletConnect as fn}from"@web3-react/walletconnect-v2";import{Network as Wa}from"@web3-react/network";var Ba=/(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,Da=/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,ve=t=>typeof window=="undefined"||typeof navigator=="undefined"?!1:Ba.test(navigator.userAgent)||Da.test(navigator.userAgent.substring(0,4))||Tn(t)||un(),un=()=>typeof window=="undefined"||typeof navigator=="undefined"?!1:/iPhone/.test(navigator.userAgent),Tn=t=>{if(typeof window=="undefined"||typeof navigator=="undefined")return!1;let n=t||navigator.maxTouchPoints;return/iPad/.test(navigator.userAgent)||/Mac/.test(navigator.userAgent)&&n===5},nt=t=>typeof window=="undefined"||typeof navigator=="undefined"?!1:un()||Tn(t),Re=()=>typeof window=="undefined"||typeof navigator=="undefined"?!1:navigator.userAgent.includes("SamsungBrowser");var Te={METAMASK:"Metamask",BRAVE:"braveEvm",WALLET_CONNECT:"WalletConnect",HAHA_WALLET:"Haha",NETWORK:"Network"},Ua=t=>{var n;(n=window==null?void 0:window.ReactNativeWebView)==null||n.postMessage(JSON.stringify(t))},[En,yn]=ke(t=>new Pa({actions:t})),hn={connector:En,hooks:yn,name:Te.METAMASK,isInstalled:()=>{var t;return(t=window==null?void 0:window.ethereum)==null?void 0:t.isMetaMask},handleMobile:(t,n)=>{nt()?window.open(`${n.native}?uri=${encodeURIComponent(t!=null?t:"")}`,"_self","noreferrer noopener"):window.open(`${n.universal}?uri=${encodeURIComponent(t!=null?t:"")}`,"_self","noreferrer noopener")}},Sn={connector:En,hooks:yn,name:Te.BRAVE,isInstalled:()=>{var t;return(t=window==null?void 0:window.ethereum)==null?void 0:t.isBraveWallet},handleMobile:(t,n)=>{nt()?window.open(`${n.native}?uri=${encodeURIComponent(t!=null?t:"")}`,"_self","noreferrer noopener"):window.open(`${n.universal}?uri=${encodeURIComponent(t!=null?t:"")}`,"_self","noreferrer noopener")}},[Ha,za]=ke(t=>new fn({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)}})),[Ga,Cc]=ke(t=>new fn({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)}})),ot={connector:Ha,mobileConnector:Ga,hooks:za,name:Te.WALLET_CONNECT,isInstalled:()=>!1},bn=_(C({},ot),{name:Te.HAHA_WALLET,handleMobile(t){if(window.sendWalletConnectQR!==void 0)Ua({type:"walletconnect_haha",uri:t});else{let n=encodeURIComponent(window.location.toString()),o=encodeURIComponent(window.location.origin);window.location.assign(`haha://opensea?link=${n}`)}}}),[Fa,Va]=ke(t=>new Wa({actions:t,urlMap:ue})),An={connector:Fa,hooks:Va,name:Te.NETWORK,isInstalled:()=>!1};var fe=t=>t?t.replace(/\W/g,"").toLowerCase():"";import{AppConfig as Ka,showConnect as Za,UserSession as $a}from"@stacks/connect";var Ya=new Ka(["store_write","publish_data"]),at=class{constructor(){this.id="stacks",this.name="Stacks",this.supportedChain="STACKS",this.userSession=new $a({appConfig:Ya})}activate(n,o){Za({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}},Nn={connector:new at,hooks:null,name:"Stacks",isInstalled:()=>!0,handleMobile(){}};import{PhantomWalletAdapter as Xa}from"@solana/wallet-adapter-phantom";var gn={connector:new Xa,hooks:null,name:"Phantom",isInstalled:()=>{var t;return(t=window==null?void 0:window.solana)==null?void 0:t.isPhantom},handleMobile(){let t=encodeURIComponent(window.location.toString()),n=encodeURIComponent(window.location.origin);ve()&&(Re()?window.location.assign(`phantom://browse/${t}?ref=${n}`):window.location.assign(`https://phantom.app/ul/browse/${t}?ref=${n}`))}};import{BraveWalletAdapter as qa}from"@solana/wallet-adapter-brave";var rt=class extends qa{constructor(){super(),this.id="brave-sol",this.name="Brave"}},Cn={connector:new rt,hooks:null,name:"BraveSol",isInstalled:()=>{var t;return(t=window==null?void 0:window.braveSolana)==null?void 0:t.isBraveWallet},handleMobile(){let t=encodeURIComponent(window.location.toString()),n=encodeURIComponent(window.location.origin);ve()&&(Re()?window.location.assign(`phantom://browse/${t}?ref=${n}`):window.location.assign(`https://phantom.app/ul/browse/${t}?ref=${n}`))}};var ja=()=>[hn,Sn,ot,bn,An],Ja=()=>[gn,Cn],Qa=()=>[Nn],In=()=>[...ja().filter(t=>fe(t.name)!==fe("network")),...Ja(),...Qa()];var qc=In();import{jsx as bp}from"react/jsx-runtime";var xn=er(void 0);var nr=()=>{let t=tr(xn);if(!t)throw Error("Component is not wrapper under wallet context provider");return t},Le=nr;var ct={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 wn({currency:t,address:n,tokenDecimals:o=1,refresh:a=!1}){let[s,l]=or(ct),{account:p,provider:y}=rr(),T=oe(ar(n)?n:null,Oe),{connection:h}=ir(),{publicKey:m}=sr(),{selectedWallet:d}=Le(),u=et(m==null?void 0:m.toBase58()),A=et(p),c=(i,N)=>f(this,null,function*(){try{if(!h)return;let S=new st(i),I=new st(N),{value:k}=yield h.getTokenAccountsByOwner(I,{mint:S});if(k.length===0)return 0;let v=k[0].pubkey,{value:{uiAmount:P}}=yield h.getTokenAccountBalance(v);return l(q=>_(C({},q),{[t]:P})),P}catch(S){console.log(S)}}),O=i=>f(this,null,function*(){try{if(!h)return;let N=yield h.getBalance(new st(i));return l(S=>_(C({},S),{[t]:new lt(N).dividedBy(lr).toNumber()})),N}catch(N){console.log(N)}});return it(()=>{d!=null&&d.chains.includes("SOL")?u&&u!==(m==null?void 0:m.toBase58())&&l(ct):A&&A!==p&&l(ct)},[d,u,A,m,p,a]),it(()=>{d!=null&&d.chains.includes("SOL")&&m&&(t==="SOL"?O(m.toBase58()):(t==="SOL_USDT"||t==="BONK")&&c(n,m.toBase58()))},[d,m,t,a]),it(()=>{if(d!=null&&d.chains.includes("EVM")&&y&&p){let i=()=>f(this,null,function*(){try{let S=yield y.getBalance(p);l(I=>_(C({},I),{[t]:new lt(S.toString()).dividedBy(mn).toNumber()}))}catch(S){console.log(S)}}),N=()=>f(this,null,function*(){try{let S=yield T.balanceOf(p);l(I=>_(C({},I),{[t]:new lt(S.toString()).dividedBy(we(10,o)).toNumber()}))}catch(S){console.log(S)}});["ETH","MATIC","BNB","SHM","TLOS","AGOR","AVAX"].includes(t)?i():T&&N()}},[d,y,p,t,n,T,o,a]),{balances:s}}import{useWeb3React as cr}from"@web3-react/core";import _n from"bignumber.js";import{useCallback as pr}from"react";var Mn=[{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 mr=()=>{let t=oe("0x283af0b28c62c092c9727f1ee09c02ca627eb7f5",Mn),{provider:n}=cr();return{registerEnsDomain:pr((a,s,l,p,y,T,h,m,d,u)=>f(void 0,null,function*(){try{let A=p*31536e3,c=_n(y).multipliedBy(A).multipliedBy(1.1).toFixed(0);console.log("totalRentPrice",c.toString());let O=new Uint8Array(32);window.crypto.getRandomValues(O);let i="0x"+Array.from(O).map(P=>P.toString(16).padStart(2,"0")).join(""),N=yield n.getGasPrice(),S=yield t.makeCommitmentWithConfig(s,l,i,"0x231b0Ee14048e9dCcD1d247744d114a4EB5E8E63",l),I=yield t.commit(S);yield new Promise(P=>setTimeout(()=>P(),6e4));let k=yield t.registerWithConfig(s,l,A,i,"0x231b0Ee14048e9dCcD1d247744d114a4EB5E8E63",l,{value:c.toString(),gasLimit:4e5,gasPrice:N}),v=k.hash;yield k.wait(),console.log(v),u&&(yield Ht(a,{name:`${s}.eth`,transactionHash:v,transferWallet:T,claimWallet:h,price:c,discountedPrice:new _n(m).times(DEFAULT_TOKEN_DECIMAL).toString(),currency:d}))}catch(A){throw console.log(A),A}}),[]),ensRegistarController:t}},On=mr;import{useConnection as dr,useWallet as ur}from"@solana/wallet-adapter-react";import{Transaction as Tr}from"@solana/web3.js";import{useCallback as fr}from"react";var Er=()=>{let t=ur(),{connection:n}=dr();return{registerSns:fr((a,s,l,p,y,T)=>f(void 0,null,function*(){if(!(!t.connected||!t.publicKey||!n))try{let h=s,m=yield Wt(a,p.name,y,h.toString(),l.value,T*1e3),d=yield n.getLatestBlockhash(),u=Tr.from(Buffer.from(m));u.recentBlockhash=d.blockhash;let A=yield t.sendTransaction(u,n);console.log(A),yield Ut(a,p.name,A)}catch(h){throw h}}),[t,n])}},vn=Er;import{useCallback as Dn}from"react";import{useToast as Dr}from"@chakra-ui/react";import{useConnection as Pr,useWallet as Wr}from"@solana/wallet-adapter-react";import{LAMPORTS_PER_SOL as Ur,SystemProgram as Hr,Transaction as zr}from"@solana/web3.js";import{PublicKey as mt,toBigNumber as Gr}from"@metaplex-foundation/js";import{createAssociatedTokenAccountInstruction as Fr,createTransferCheckedInstruction as Vr,getAssociatedTokenAddressSync as Pn,TOKEN_PROGRAM_ID as Kr}from"@solana/spl-token";import Wn from"bignumber.js";import{isAddress as Zr}from"@ethersproject/address";import{useWeb3React as $r}from"@web3-react/core";import"react";import{Box as Mr,Text as _r,useToast as Or}from"@chakra-ui/react";import{isAddress as vr}from"@ethersproject/address";import Rr from"@emotion/styled";import yr from"react";import{createMultiStyleConfigHelpers as hr,defineStyle as Sr,FormControl as br,Input as Ar,InputGroup as Nr,Text as pt}from"@chakra-ui/react";import{inputAnatomy as gr}from"@chakra-ui/anatomy";import{jsx as Be,jsxs as Rn}from"react/jsx-runtime";var ae=yr.forwardRef((m,h)=>{var d=m,{label:t,error:n,placeholder:o,helperText:a,isInvalid:s,as:l=Ar,InputLeftAddon:p,InputRightAddon:y}=d,T=Y(d,["label","error","placeholder","helperText","isInvalid","as","InputLeftAddon","InputRightAddon"]);let{disabled:u}=T;return Rn(br,{isInvalid:s,opacity:u?.4:1,children:[t&&Be(pt,{color:s?"destructive":"foreground",fontWeight:"medium",fontSize:"sm",lineHeight:1,children:t}),Rn(Nr,{mt:"2",children:[p,Be(l,_(C({variant:"",placeholder:o},T),{ref:h})),y]}),a&&Be(pt,{fontSize:"xs",mt:2,color:"mutedForeground",children:a}),s&&n&&Be(pt,{fontSize:"xs",mt:2,color:"destructive",children:n})]})}),{definePartsStyle:kn,defineMultiStyleConfig:Cr}=hr(gr.keys),Ir=kn({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"}}}),xr=Sr({borderRadius:"md"}),wr={sm:kn({field:xr})},am=Cr({baseStyle:Ir,sizes:wr});import{jsx as Ln,jsxs as Br}from"react/jsx-runtime";var kr=Rr(Mr)`
  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;
  }
`,Lr=({address:t,setAddress:n})=>{let o=Or();return Br(kr,{paddingY:4,children:[Ln(ae,{placeholder:"Enter ethereum wallet address",value:t,onChange:s=>{let l=s.target.value;vr(l)?n(l):(o({title:"Invalid ethereum address",description:"Please enter valid address",status:"error"}),n(""))}}),Ln(_r,{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"})]})},Bn=Lr;import{parseUnits as Yr}from"@ethersproject/units";import{jsx as qr}from"react/jsx-runtime";var zn=ne==="production",Un=zn?"HGZmW9bWZZhVvfGbBBU1dvYHsXwi7BqPX5vG39v87iXW":"5bPVXMADTeJCbZ1dMfn6GRm8Zm1mSbwR84UsyRT4eVAT",Hn=zn?"0x4D535c34DD050B0Bc0e7dC6A988a1443Dfb520ac":"0x663Bae08ad96BC7D0f5F895dAb6daA84F9F6De0C",Xr=t=>{let n=Dr(),{connection:o}=Pr(),a=Wr(),s=oe(Zr(t.address)?t.address:null,Oe),{account:l,provider:p}=$r(),y=Dn((m,d)=>f(void 0,null,function*(){var u;try{let A=yield o.getLatestBlockhash(),c=new zr;if(d.value==="BONK"||d.value==="SOL_USDT"){let i=d.address,N=new mt(Un),S=new mt(i),I=Pn(S,a.publicKey),k=yield o.getTokenAccountsByOwner(N,{mint:S,programId:Kr}),v=Pn(S,N);(u=k.value)!=null&&u.length||c.add(Fr(a.publicKey,v,N,S)),c.add(Vr(I,S,v,a.publicKey,Gr(m*we(10,d.decimals)),d.decimals))}else c.add(Hr.transfer({fromPubkey:a.publicKey,toPubkey:new mt(Un),lamports:new Wn(m).multipliedBy(Ur).toNumber()}));return c.feePayer=a.publicKey,c.recentBlockhash=A.blockhash,yield a.sendTransaction(c,o,{signers:[],preflightCommitment:"max"})}catch(A){throw A}}),[a.connected]);return{registerUd:Dn((m,d,u,A,c,O,i,N)=>f(void 0,null,function*(){var S;try{let I=null,{token:k,discountedValue:v,value:P}=yield Pt(m,d.name,u.value,A);if(u.ticker!=="USDT"&&v!==d.discountedRate[u.value]){n({title:"Price changed",status:"warning",duration:2e3}),N();return}if(yield Dt(m,{name:d.name,claimWallet:c,raw:k,discountedPrice:v,price:P,currency:u.value}),i.current&&clearInterval(i.current),u.value==="BONK"||u.value==="SOL_USDT"||u.value==="SOL")I=yield y(v,u);else if(u.value==="ETH_USDT"||u.value==="MATIC_USDT"){let q=new Wn(v).multipliedBy(BIG_TEN.pow(6).toNumber()).toString();I=(yield(yield s.transfer(Hn,q)).wait()).transactionHash}else(u.value==="ETH"||u.value==="MATIC")&&(I=(yield(yield p.getSigner().sendTransaction({from:l,to:Hn,value:Yr(v,"ether").toHexString()})).wait()).transactionHash);console.log(I),yield Bt(m,{name:d.name,transactionHash:I,transferWallet:(S=O==null?void 0:O.chains)!=null&&S.includes("SOL")?a.publicKey.toBase58():l,claimWallet:c})}catch(I){throw I}}),[p,y]),renderAddressInput:({address:m,setAddress:d})=>qr(Bn,{address:m,setAddress:d})}},Gn=Xr;import"react";import{Flex as Kn}from"@chakra-ui/react";import"react";import jr from"@emotion/styled";import{Text as Jr}from"@chakra-ui/react";import{jsx as dt,jsxs as ti}from"react/jsx-runtime";var Qr=jr(Jr)`
  .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;
    }
  }
`,ei=o=>{var a=o,{text:t="Loading"}=a,n=Y(a,["text"]);return ti(Qr,_(C({},n),{children:[t,dt("span",{className:"one",children:"."}),dt("span",{className:"two",children:"."}),dt("span",{className:"three",children:"."})]}))},Fn=ei;import"react";import{Spinner as ni}from"@chakra-ui/react";import{jsx as ai}from"react/jsx-runtime";var oi=n=>{var t=Y(n,[]);return ai(ni,C({thickness:"4px",speed:"1.5s",emptyColor:"input",color:"black",size:"xl"},t))},Vn=oi;import{jsx as Zn,jsxs as $n}from"react/jsx-runtime";var ri=({completed:t,message:n})=>t?null:$n(Kn,{flexDir:"column",w:"full",justifyContent:"center",alignItems:"center",children:[$n(Kn,{align:"center",mb:"4",children:[Zn(Vn,{size:"md",mr:"10px"}),Zn(Fn,{text:"Minting In Progress",fontSize:22,fontWeight:600})]}),n()]}),Yn=ri;import"react";import{Flex as ii,Spinner as si}from"@chakra-ui/react";import{jsx as Xn}from"react/jsx-runtime";var li=()=>Xn(ii,{height:"350px",justify:"center",align:"center",children:Xn(si,{thickness:"4px",size:"lg"})}),qn=li;import{useState as di}from"react";import{Box as ci}from"@chakra-ui/react";import"react";import{jsx as De,jsxs as mi}from"react/jsx-runtime";var pi=t=>De(ci,{as:"svg",width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:De("g",{id:"a4e07f86",children:mi("g",{id:"fc8efcce",children:[De("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"}),De("path",{id:"26f77c74",d:"M35.4165 50.0007L45.8332 60.4173L66.6665 39.584",stroke:"white",strokeWidth:"8.33333",strokeLinecap:"round",strokeLinejoin:"round"})]})})}),jn=pi;import{Box as Jn,Button as Qn,Flex as Pe,Image as eo,Link as ui,Text as re}from"@chakra-ui/react";import Ti from"@emotion/styled";import{AiOutlineFullscreen as fi}from"react-icons/ai";import{FaTwitter as Ei}from"react-icons/fa";import{jsx as x,jsxs as ie}from"react/jsx-runtime";var yi="",hi="",Si="",bi=Ti(Jn)`
  //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;
  `};
`,ut=({imageSrc:t,title:n,onClick:o})=>ie(Pe,{align:"center",justify:"space-between",borderWidth:"1.5px",borderColor:"gray.400",borderRadius:"lg",p:1,mb:2,children:[ie(Pe,{align:"center",children:[x(eo,{src:t,w:8,h:8,borderRadius:"50%"}),x(re,{fontSize:"12px",fontWeight:600,mb:1,ml:3,children:n})]}),o&&x(Qn,{size:"xs",bg:"gray.800",color:"white",_hover:{bg:"gray.800"},onClick:o,children:"Claim here"})]}),Ai=({address:t,showOffers:n,onClickCollection:o,website:a,twitterHandle:s,isEnsDomain:l})=>{let[p,y]=di(!1),T=()=>{l?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${s()}%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 x(Jn,{children:ie(Pe,{flexDir:"column",align:"center",position:"relative",w:"full",userSelect:"none",p:8,children:[x(eo,{src:jn,w:"75",h:"75"}),x(re,{textAlign:"center",mt:"4",fontSize:"20",fontWeight:"semibold",children:"Domain purchased successfully \u{1F389}"}),ie(re,{textAlign:"center",marginY:"4",fontSize:14,children:["Note: Login to"," ",x(ui,{href:a(),target:"_blank",children:a()})," ","using ",x("b",{children:de(t,6)})," address to view your domain. It might take upto 10 minutes to register your domain."]}),x(Qn,{mb:5,border:"1.5px solid",w:"fit-content",borderColor:"input",size:"sm",fontWeight:500,rightIcon:x(Ei,{width:20,height:20,color:"#1DA1F2"}),onClick:T,children:"Celebrate"}),n&&ie(bi,{bg:"gray.200",offersOpen:p,children:[ie(Pe,{justify:"space-between",align:"center",children:[x(re,{fontSize:"sm",fontWeight:600,mb:1,children:"Exclusive rewards for purchasing UD"}),x(fi,{cursor:"pointer",onClick:()=>y(!p)})]}),x(re,{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"}),x(ut,{imageSrc:Si,onClick:()=>o("64072"),title:"Claim 100 $BAD token wrapped Bandit NFTs by Bandit"}),x(ut,{imageSrc:yi,title:"Eligible to receive 400K $BONK coins after the offer period by BONK"}),x(ut,{imageSrc:hi,title:"Get 15% discount on all services by NFT Evening"}),x(re,{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."})]})]})})},to=Ai;import{Flex as Tt,Modal as ki,ModalBody as Li,ModalCloseButton as Bi,ModalContent as Di,ModalHeader as Pi,ModalOverlay as Wi,Spinner as Ui,Text as se}from"@chakra-ui/react";import{LAMPORTS_PER_SOL as Hi}from"@solana/web3.js";import{Box as Ni,Flex as Ee,Slider as gi,SliderFilledTrack as Ci,SliderThumb as Ii,SliderTrack as xi,Spinner as wi,Text as j}from"@chakra-ui/react";import Mi from"@emotion/styled";import{LAMPORTS_PER_SOL as _i}from"@solana/web3.js";import"react";import{jsx as Z,jsxs as $}from"react/jsx-runtime";var Oi="https://docs.bonfida.org/collection/naming-service/how-to-create-a-solana-domain-name/purchasing-a-domain-name/direct-registration",vi=Mi(Ee)`
  position: relative;
`,Ri=({size:t,setSize:n,loading:o,subTotalPrice:a})=>$(vi,{paddingY:4,flexDir:"column",alignItems:"center",children:[$(gi,{defaultValue:0,min:1,max:10,step:1,w:"94%",onChange:l=>{n(l)},value:t,children:[$(xi,{bg:"muted",children:[Z(Ni,{position:"relative",right:10}),Z(Ci,{bg:"mutedForeground"})]}),Z(Ii,{boxSize:4,borderColor:"mutedForeground",borderWidth:"1"})]}),$(Ee,{justifyContent:"space-between",w:"full",mt:"1",children:[Z(j,{fontSize:"12",children:"1 Kb"}),Z(j,{fontSize:"12",children:"10 Kb"})]}),$(Ee,{w:"full",justifyContent:"space-between",children:[$(j,{fontSize:14,mt:4,fontWeight:"semibold",children:["Selected Size: ",`${t} Kb`]}),Z(j,{fontSize:14,mt:4,textDecoration:"underline",cursor:"pointer",onClick:()=>window.open(Oi),textAlign:"right",children:"How much storage is right for you?"})]}),$(Ee,{w:"full",justifyContent:"space-between",alignItems:"center",children:[Z(j,{fontSize:14,mt:4,fontWeight:"bold",children:"Storage cost"}),$(Ee,{alignItems:"flex-end",justifyContent:"center",mt:4,children:[o?Z(wi,{size:"xs",mb:"1"}):$(j,{fontSize:14,fontWeight:"bold",children:["+",`${(a/_i).toFixed(5)}`]}),Z(j,{ml:"1",fontSize:14,fontWeight:"bold",children:"SOL"})]})]})]}),no=Ri;import{jsx as z,jsxs as J}from"react/jsx-runtime";var zi=({size:t,setSize:n,onOpen:o,onClose:a,isOpen:s,loading:l,subTotalPrice:p})=>J(Tt,{mt:"2",justifyContent:"space-between",children:[J(Tt,{alignItems:"center",children:[z(se,{fontSize:"12",mr:"1",children:"Storage Cost:"}),z(se,{textDecoration:"underline",fontSize:"12",cursor:"pointer",onClick:o,children:"Edit"})]}),J(Tt,{alignItems:"center",justifyContent:"center",children:[l?z(Ui,{size:"xs"}):J(se,{fontSize:"12",fontWeight:"bold",children:["+",`${(p/Hi).toFixed(5)}`]}),z(se,{ml:"1",fontSize:"12",fontWeight:"bold",children:"SOL"}),z(se,{fontSize:"12",mx:"1",children:`(${t} KB)`})]}),J(ki,{blockScrollOnMount:!1,isOpen:s,onClose:a,isCentered:!0,children:[z(Wi,{}),J(Di,{children:[z(Pi,{children:"Edit storage size"}),z(Bi,{}),J(Li,{children:[z(se,{fontSize:"12",py:"2",px:"4",borderColor:"mutedForeground",borderWidth:"1px",borderStyle:"solid",borderRadius:"8",children:"Storage size cannot be changed after initial registration."}),z(no,{size:t,setSize:n,loading:l,subTotalPrice:p})]})]})]})]}),oo=zi;import{Flex as so,Modal as ns,ModalBody as os,ModalCloseButton as as,ModalContent as rs,ModalHeader as is,ModalOverlay as ss,Text as We,useToast as ls}from"@chakra-ui/react";import{Flex as bt,Spinner as Ji,Text as ht}from"@chakra-ui/react";import Qi from"@emotion/styled";import"react";import{useEffect as ft,useState as Gi}from"react";import yt from"@emotion/styled";import{AddIcon as Fi,MinusIcon as Vi}from"@chakra-ui/icons";import{Box as Ki,Button as Zi,Flex as $i,Text as Yi}from"@chakra-ui/react";import{jsx as ye,jsxs as Et}from"react/jsx-runtime";var Xi=yt(Ki)`
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px;
  height: 40px;
  border-radius: 12px;
`,ao=yt(Zi)`
  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};
    }
  }
`,qi=yt(ae)`
  justify-content: center;
  font-size: 18px;
  min-width: 60px;
  user-select: none;
  border: none;
  box-shadow: none;
  max-width: 80px;
  text-align: center;
`,ji=({initialState:t=1,maxState:n,onChange:o,value:a,onError:s})=>{let[l,p]=Gi(t);return ft(()=>{o(l)},[l]),ft(()=>{p(t)},[t]),ft(()=>{n>0&&a>n||l<1?s(!0):s(!1)},[n,a,l]),Et($i,{flexDirection:"column",alignItems:"flex-end",children:[Et(Xi,{children:[ye(ao,{variant:"outline",onClick:()=>{a>t&&p(m=>a-1)},disabled:a===1,children:ye(Vi,{})}),ye(qi,{value:a,onChange:m=>{let d=Number(m.target.value);p(d)}}),ye(ao,{variant:"outline",onClick:()=>{n?a<n&&p(m=>a+1):p(m=>a+1)},disabled:n===a||!n,children:ye(Fi,{})})]}),(n>0&&a>n||l<1)&&Et(Yi,{fontSize:12,mt:10,color:"#E11900",children:["Enter quantity between 1 to ",n]})]})},ro=ji;import{jsx as he,jsxs as St}from"react/jsx-runtime";var es=Qi(bt)`
  position: relative;
`,ts=({duration:t,setDuration:n,loading:o,subTotalPrice:a,payUsing:s})=>St(es,{paddingY:4,flexDir:"column",alignItems:"center",children:[he(ro,{initialState:1,maxState:1e4,onChange:n,onError:()=>{},value:t}),St(bt,{w:"full",justifyContent:"space-between",alignItems:"center",children:[he(ht,{fontSize:14,mt:4,fontWeight:"bold",children:`${t} year registration`}),St(bt,{alignItems:"flex-end",justifyContent:"center",mt:4,children:[o?he(Ji,{size:"xs",mb:"1.5"}):he(ht,{fontSize:14,fontWeight:"bold",children:`${a==null?void 0:a.toFixed(5)}`}),he(ht,{ml:"1",fontSize:14,fontWeight:"bold",children:s==null?void 0:s.ticker})]})]})]}),io=ts;import{jsx as X,jsxs as Se}from"react/jsx-runtime";var cs=({selectedDomain:t,duration:n,selectDuration:o,onOpen:a,onClose:s,isOpen:l,loading:p,subTotalPrice:y,payUsing:T})=>{let h=ls();return Se(so,{justifyContent:"space-between",children:[Se(so,{alignItems:"center",children:[X(We,{fontSize:"12",mr:"1",children:"Duration:"}),X(We,{textDecoration:"underline",fontSize:"12",cursor:"pointer",onClick:()=>{if(!t)return h({title:"Select Domain",status:"warning"});a()},children:"Edit"})]}),X(We,{fontSize:"12",mr:"1",children:`${n} Year`}),Se(ns,{blockScrollOnMount:!1,isOpen:l,onClose:s,isCentered:!0,children:[X(ss,{}),Se(rs,{children:[X(is,{children:"Registration duration"}),X(as,{}),Se(os,{children:[X(We,{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."}),X(io,{duration:n,setDuration:o,loading:p,subTotalPrice:y,payUsing:T})]})]})]})]})},lo=cs;import{Fragment as bs,jsx as g,jsxs as D}from"react/jsx-runtime";var hs=fs(ce)`
  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;
`,Nt=ne==="production";var mo=Nt?sn:rn,He=Nt?cn:ln,Ss=({accessKey:t,onClickClose:n,collectionState:o,disconnectWallet:a})=>{var Ot,vt;let[s,l]=R(""),[p,y]=R(1),[T,h]=R(!1),[m,d]=R(""),[u,A]=R([]),[c,O]=R({label:null,value:null,chain:null}),[i,N]=R(""),[S,I]=R(!1),[k,v]=R(!1),[P,q]=R(!1),[ze,Q]=R(!1),[gt,Ge]=R(0),[uo,Ae]=R(!1),[Ct,It]=R(0),{isOpen:To,onOpen:fo,onClose:Eo}=co(),{isOpen:yo,onOpen:ho,onClose:So}=co(),[Ne,bo]=R(1),{primaryAddress:ge,selectedWallet:L,setShowWallets:Ao,setFilterChains:No}=Le(),w=((Ot=o==null?void 0:o.contract)==null?void 0:Ot.contractAddress)==="bonfida-sns",W=((vt=o==null?void 0:o.contract)==null?void 0:vt.contractAddress)==="unstoppable-domain",M=!w&&!W,{connection:Fe}=Ts(),go=ys(),{chainId:Co,account:Ve}=Es(),F=ge,{balances:pe}=wn({currency:c.value,address:c.address,tokenDecimals:c.decimals}),{registerUd:Io,renderAddressInput:xo}=W&&Gn(c),{registerEnsDomain:wo,ensRegistarController:xt}=M&&On(),{registerSns:Mo}=w&&vn(),_o=ds(),U=us();At(()=>(B(L)?O(mo[0]):(O(He[0]),l(ge)),()=>{U.current&&clearInterval(U.current)}),[L,ge]),At(()=>{F&&me()},[F]);let Ce=be(()=>f(void 0,null,function*(){try{q(!0);let r;if(W?r=yield $e(t,m,F):w?r=yield Ye(t,m):M&&(r=yield Xe(t,m)),i){let b=r.find(ee=>ee.name===i.name);b?N(b):i("")}A(r)}catch(r){}finally{q(!1)}}),[t,m,F]),me=be(zt(()=>f(void 0,null,function*(){try{if(!(m!=null&&m.length))return;U.current&&clearInterval(U.current),A([]),h(!0),N("");let r=m.trim().replace(/\s+/g,"-");if(W){let b=yield $e(t,encodeURIComponent(r),F);b!=null&&b.length&&(A(b),U.current=setInterval(Ce,3e4))}else if(w){let b=yield Ye(t,r);b!=null&&b.length&&(A(b),U.current=setInterval(Ce,3e4))}else if(M){let b=yield Xe(t,r);b!=null&&b.length&&(A(b),U.current=setInterval(Ce,3e4))}}catch(r){console.log(r)}finally{h(!1)}}),400),[m,t,Ce,F]),Oo=r=>{d(w||M?r.target.value.split(".")[0]:r.target.value)},wt=()=>B(L)?mo:M?[He[0],He[1]]:He,Ke=be((r=0)=>(i&&(c.ticker==="USDT"?Ge(i.discountedRate.USDT):(c.value!=="SOL"&&B(L)&&(r=0),Ge(Number(i.discountedRate[c.value])+r))),0),[i,c]),vo=()=>Co===c.chain,Ze=be((r=0)=>{if(!i)return!0;w?c.ticker==="SOL"?Q(new le(pe[c.value]).gte(new le(i==null?void 0:i.discountedRate[c.ticker]).plus(r/po).toNumber())):Q(new le(pe[c.value]).gte(Number(i==null?void 0:i.discountedRate[c.ticker]))):Q(new le(pe[c.value]).gte(Number((i==null?void 0:i.discountedRate[c.ticker])+r)))},[i,pe,c]),Mt=be(()=>f(void 0,null,function*(){if(Fe&&w&&i)try{Ae(!0);let r=yield Fe.getMinimumBalanceForRentExemption(p*1e3);It(r),Ze(r),Ke(r/po)}catch(r){console.log(r)}finally{Ae(!1)}else if(i&&M&&xt)try{Ae(!0);let r=le(Number(i==null?void 0:i.discountedRate[c.ticker])).multipliedBy(Ne);It(r.toNumber()),Q(new le(pe[c.value]).gte(r.toNumber())),Ge(r.toNumber())}catch(r){console.log(r)}finally{Ae(!1)}}),[Fe,p,c,M,i,xt,Ne]);At(()=>{Ke(),Ze(),Mt()},[Ke,Ze,Mt]);let Ro=()=>f(void 0,null,function*(){try{yield on(L.connector,c.chain)}catch(r){console.log(r)}}),ko=r=>{let ee=wt().filter(Ie=>Ie.value===r.target.value);O(ee[0])},_t=r=>{N(r)},Lo=r=>{var b=r.keyCode||r.which;b===13&&(m==null?void 0:m.length)>0&&me()},Bo=r=>{go(Xt({id:r}))},Do=()=>f(void 0,null,function*(){var r,b,ee,Ie;try{I(!0),U.current&&clearInterval(U.current),W?yield Io(t,i,c,F,s,L,U,me):w?yield Mo(t,gt,c,i,F,p):M&&(yield wo(t,i.name.split(".")[0],Ve,Ne,(b=(r=i==null?void 0:i.availability)==null?void 0:r.price)==null?void 0:b.weiPerSecond,Ve,s,i==null?void 0:i.discountedRate[c.value],c.value,Nt)),v(!0)}catch(te){N(""),me(),_o({title:"Failed to mint",description:((Ie=(ee=te==null?void 0:te.response)==null?void 0:ee.data)==null?void 0:Ie.data)||te.reason||te.message,status:"error",duration:1e3}),console.log(te)}finally{I(!1)}}),Po=r=>{bo(r)},As=()=>{if(w)return!!B(L);if(W)return!0;if(M)return!B(L)},Ns=()=>{if(w&&!B(L))return"Connect Wallet";if(M&&tt(L))return"Connect to EVM Wallet"};return D(ce,{children:[(S||k)&&D(hs,{children:[k&&g(an,{onClick:n,zIndex:1}),g(Yn,{completed:k,message:()=>D(bs,{children:[D(G,{fontSize:14,fontWeight:500,children:[`Minting ${i.name} to ${B(L)?de(F,5):de(Ve,5)}`,"."]}),g(G,{fontSize:14,fontWeight:500,children:"Please do not refresh the page."}),M&&D(Ue,{flexDir:"column",alignItems:"center",mt:"2",children:[g(G,{fontSize:14,fontWeight:600,mt:"2",children:"Registering your domain takes three steps"}),g(G,{fontSize:14,fontWeight:500,mt:"2",children:"1. Complete the claim transaction to begin the process."}),g(G,{fontSize:14,fontWeight:500,mt:"2",children:"2. Waits 60 seconds for the claim transaction to complete."}),g(G,{fontSize:14,fontWeight:500,mt:"2",children:"3. Complete the register transaction to secure your name."})]})]})}),k&&g(to,{address:s,onClickCollection:Bo,showOffers:!1,website:()=>{if(W)return"https://unstoppabledomains.com";if(M)return"https://ens.domains";if(w)return"https://sns.id/"},twitterHandle:()=>{if(W)return"@unstoppableweb";if(M)return"@ensdomains";if(w)return"@bonfida"},isEnsDomain:M})]}),D(Ue,{mt:4,children:[g(ae,{id:"ud-search",placeholder:"Search for your new domain",onChange:Oo,onKeyPress:Lo,size:"md",autoComplete:"off"}),g(ps,{size:"md",variant:"primary",cursor:"pointer",onClick:me,ml:3,mt:2,children:"Search"})]}),!(u!=null&&u.length)&&!T&&g($t,{}),T&&g(qn,{}),!!(u!=null&&u.length)&&D(ce,{children:[D(Ue,{justifyContent:"space-between",mt:4,alignItems:"center",children:[g(G,{color:"foreground",fontWeight:400,fontSize:14,children:"Pay using"}),g(Ue,{justifyContent:"center",align:"center",mb:2,children:g(ms,{value:c==null?void 0:c.value,size:"sm",onChange:ko,borderColor:"muted",borderWidth:"1.5px",borderRadius:"lg",boxShadow:"base",_hover:{},children:wt().map(({label:r,value:b})=>g("option",{value:b,children:r}))})})]}),g(ce,{h:i&&B(L)&&!w?"100px":"250px",overflowY:"auto",pt:2,position:"relative",children:u.map((r,b)=>g(Kt,{domain:_(C({},r),{name:w?(r==null?void 0:r.name)+".sol":r==null?void 0:r.name}),selected:r.name===(i==null?void 0:i.name),onSelect:()=>_t(r),onUnSelect:()=>_t(""),currency:c==null?void 0:c.ticker},b))}),w&&g(oo,{size:p,setSize:y,onOpen:fo,onClose:Eo,isOpen:To,loading:uo,subTotalPrice:Ct}),M&&g(lo,{selectedDomain:i,duration:Ne,selectDuration:Po,onOpen:ho,onClose:So,isOpen:yo,loading:T,subTotalPrice:Ct,payUsing:c}),i&&B(L)&&W&&xo({address:s,setAddress:l}),g(ce,{mt:"15px",children:D(Ft,{validators:[{should:!!ge,fallbackProps:{onClick:()=>{No(W?["EVM","SOL"]:M?["EVM"]:["SOL"]),Ao(!0)},children:"Connect Wallet"}},{should:B(L)?!0:vo(),fallbackProps:{onClick:Ro,children:"Switch Network"}},{should:!!i,fallbackProps:{onClick:()=>{},children:"Select Domain",disabled:!0}},{should:w||!!s,fallbackProps:{onClick:()=>{},children:"Enter Ethereum address..",disabled:!0}},{should:ze,fallbackProps:{onClick:()=>{},children:"Insufficient balance",disabled:!0}},{should:!P,fallbackProps:{onClick:()=>{},children:"Fetching best price..",disabled:!0}}],onClick:Do,children:[D(ce,{mr:"20px",children:[D(G,{color:"background",fontSize:12,children:[gt," ",c.ticker]}),g(G,{color:"background",textAlign:"left",fontSize:"8px",mt:"2px",children:"Total amount"})]}),g(G,{color:"background",children:"Mint"})]})})]})]})},_u=Ss;export{hs as LoadingScreen,_u as default};
